chore(release): publish supplemental packages and remove internal reports
Validate ShrinkSDK Workspace / catalog (push) Successful in 4s
Validate ShrinkSDK Workspace / unity (push) Successful in 3m20s

This commit is contained in:
2026-09-29 10:42:21 +08:00
parent 08246ddb01
commit 0d9e04c09d
25 changed files with 185 additions and 967 deletions
@@ -1,14 +1,15 @@
param([string]$Revision = 'b93f3e61223e7572588b67c0d3935073817f0da6')
$ErrorActionPreference = 'Stop'
$root = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '../../..'))
$destination = Join-Path $root 'Artifacts/AgentSupport/BaselineContext'
New-Item -ItemType Directory -Force -Path $destination | Out-Null
$module = Join-Path $root 'Assets/Modules/ShrinkContext.Core'
$files = git -C $module ls-tree -r --name-only HEAD Runtime
$files = git -C $module ls-tree -r --name-only $Revision Runtime
foreach ($file in $files) {
if (-not $file.EndsWith('.cs')) { continue }
$target = Join-Path $destination $file
New-Item -ItemType Directory -Force -Path ([IO.Path]::GetDirectoryName($target)) | Out-Null
$source = (git -C $module show "HEAD:$file") -join "`n"
$source = (git -C $module show "${Revision}:$file") -join "`n"
[IO.File]::WriteAllText($target, $source.Replace('ShrinkContext', 'BaselineContext'), [Text.UTF8Encoding]::new($false))
}
git -C $module rev-parse HEAD | Set-Content -Encoding utf8 (Join-Path $destination 'revision.txt')
git -C $module rev-parse $Revision | Set-Content -Encoding utf8 (Join-Path $destination 'revision.txt')
+5 -4
View File
@@ -3,12 +3,13 @@
本地语义导航与能力查询工具。无需模型 API、向量数据库或常驻服务。
```powershell
dotnet pack Tools/AgentSupport/Shrink.Inspect -c Release -o Artifacts/Inspect
dotnet tool install ShrinkSDK.Inspect --tool-path Artifacts/Inspect/bin --add-source Artifacts/Inspect --version 0.1.2
Artifacts/Inspect/bin/shrink inspect capabilities "存档" --root .
Artifacts/Inspect/bin/shrink inspect modules --root .
dotnet tool install ShrinkSDK.Inspect --tool-path .tools --add-source https://git.crash.work/api/packages/ShrinkSDK/nuget/index.json --version 0.1.2
.tools/shrink inspect capabilities "存档" --root .
.tools/shrink inspect modules --root .
```
开发工具本身时,可用 `dotnet pack Tools/AgentSupport/Shrink.Inspect -c Release -o Artifacts/Inspect` 构建本地包。
支持 `modules`、`capabilities`、`symbol`、`flow`、`impact`、`check`。能力默认 3 项;其他结果默认 20 项,链路深度 2。使用 `--module`、`--limit`、`--depth` 缩小或展开,`--json` 返回结构化数据。
Unity 使用菜单 **Tools/ShrinkSDK/Inspection/Export compilation inputs** 导出实际编译引用、源文件和宏,然后传入 `--compilation Artifacts/Inspection/compilation.json`。没有导出时 IDE 工程输入只作为可能过期的辅助;无工程输入时采用标记不完整的源码候选索引。