skill-family-studio 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "platformId": "codex",
3
3
  "familyId": "skill-family-studio",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "logicalMappings": [
6
6
  {
7
7
  "logicalName": "skill-family-studio",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "platformId": "claude",
3
3
  "familyId": "skill-family-studio",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "logicalMappings": [
6
6
  {
7
7
  "logicalName": "skill-family-studio",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.0
3
+ ## 0.2.2
4
+
5
+ - 升级对齐 `artifact-graph@1.2.3`(细粒度提示词与 `SKILL.md`/`references/**` 非代码资产 SHA-256 锁)与 `skill-family-execution-driver@0.2.1`(厂商中立受管多宿主 CLI 采集驱动与 `./replay-driver` 导出)。
6
+ - 正式纳入公开包映射并导出 `./blueprint-canvas`(零 `innerHTML` 受限枚举多会话编排蓝图画布、实时反自审与外部副作用 HITL 门禁支配检查及 `blueprintRef` 规范化 SHA-256 摘要生成)。
7
+
8
+ ## 0.2.1
4
9
 
5
10
  - 单端口统一承载三业务主页签(审阅与对齐、制品图谱、运行监控)与按需「📖 手册」,提供零配置单仓与声明式多仓发现。
6
11
  - 支持高阶规划仓 4 列需求进展与双向对齐总览表、机器派生满足度(严格校对代码/测试双锁 SHA-256)、跨仓一键互跳与高阶无代码锁豁免说明。
package/README.md CHANGED
@@ -28,6 +28,7 @@ npm install -g skill-family-studio
28
28
  2. **全站实体第一身份与统一表头 `ⓘ` 口径**:无论是高阶对齐表、子仓绑定、审阅目录、运行计划还是智能体编队,均将中文标题与正文第一句自然摘要放于首位,编号与文件路径退居辅助位置;高频列表头以单一 `ⓘ` 集中阐释列规则与状态字典,行内仅真正异常与漂移告警保留诊断 `ⓘ`。
29
29
  3. **折叠目录树、现代长文排版与草稿不丢失**:逐篇审阅左侧提供「① 用户故事 → ② 生命周期讲解 → ③ 需求总纲 → ④ 场景剧本 → ⑤ 领域模型与架构设计 → 附:机器数据契约 (.json/.yaml · 自动跳过)」手风琴折叠目录树,支持关键词穿透搜索;正文顶部呈现 Hero 摘要卡、GitHub Callout 与用户故事卡片;Archify 业务逻辑图通过 `&embed=1` 纯净内嵌,未提交批注与备注草稿自动暂存(「📝 草稿」)并支持 5 秒撤销,零侵入保存在 `.skill-family-studio/reviews.json`。
30
30
  4. **双栏主从运行监控(活跃 + 历史计划树 & 多宿主编队)**:「🌳 任务推进树」左侧聚合活跃运行计划与近期进行中/已完成历史计划、右侧展开多级树与进度条;「🛰️ 智能体会话编队」左侧以宿主过滤芯片和摘要卡片直选 Antigravity / Claude / Codex / 沙箱编队,右侧联动渲染网络拓扑、协作泳道与 Markdown 事件简报;「🩺 异常排障」实时汇报运行时排他写锁、事件哈希链与子进程看门狗。
31
+ 5. **全周期协同矩阵与受限枚举编排蓝图画布(`./blueprint-canvas`)**:「🧭 全周期协同」视图基于 `artifact-graph@1.2.3`(支持细粒度提示词与非代码资产锁)与 `skill-family-execution-driver@0.2.1` 实时核验三环泳道与里程碑机器探针,并内置受限枚举多会话编排蓝图编辑器,实时执行图连通性、独立复核防自审与外部副作用人工门禁(HITL)支配检查,一键导出规范化 `blueprintRef` SHA-256 摘要。
31
32
 
32
33
  ## 环境要求
33
34
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
6
6
  "author": "广州市风荷科技有限公司",
@@ -16,7 +16,8 @@
16
16
  ".": "./src/index.mjs",
17
17
  "./cli": "./bin/skill-family-studio.mjs",
18
18
  "./layout": "./src/graph-layout.mjs",
19
- "./review-state": "./src/review-state.mjs"
19
+ "./review-state": "./src/review-state.mjs",
20
+ "./blueprint-canvas": "./src/ui/blueprint-canvas.mjs"
20
21
  },
21
22
  "files": [
22
23
  "bin",
@@ -39,8 +40,9 @@
39
40
  "NOTICE"
40
41
  ],
41
42
  "dependencies": {
42
- "artifact-graph": "1.2.0",
43
+ "artifact-graph": "1.2.3",
43
44
  "skill-family-contracts": "0.39.2",
45
+ "skill-family-execution-driver": "0.2.1",
44
46
  "skill-family-harness-node": "0.39.2",
45
47
  "skill-family-engineering-kit": "0.39.2",
46
48
  "yaml": "2.9.0"
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
3
  "displayName": "Skill Family Studio",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "description": "单端口统一承载 artifact-graph 宽屏制品图谱审阅与 Foundation 运行态监控的本地离线研发控制台。",
6
6
  "author": "广州市风荷科技有限公司",
7
7
  "repository": "https://github.com/ifoohoo/skill-family-studio"
@@ -641,14 +641,14 @@ async function probeHubActual(hubRepoReal, registryRepos) {
641
641
  });
642
642
  }
643
643
  }
644
- if (repo.publicName === 'skill-eval') {
644
+ if (repo.publicName === 'skill-eval' || repo.publicName === 'skill-family-eval') {
645
645
  const legacyHeimdall = uniqueMatches.find(m => m.providerId === 'heimdall' && m.lifecycleState === 'active');
646
646
  if (legacyHeimdall) {
647
647
  drifts.push({
648
648
  repoId: repo.id,
649
649
  publicName: repo.publicName,
650
650
  kind: 'legacy_heimdall_active_in_hub',
651
- detail: `skill-eval 在 Hub (${providerSource || marketSource}) 中仍以旧壳名 providerId="heimdall" 处于 active 状态,待重塑切换`,
651
+ detail: `${repo.publicName} 在 Hub (${providerSource || marketSource}) 中仍以旧壳名 providerId="heimdall" 处于 active 状态,待重塑切换`,
652
652
  });
653
653
  }
654
654
  }
@@ -955,8 +955,9 @@ async function evaluateArchitecturalRisks(rawRisks, probedRepos, probedByKey, hu
955
955
  : 'Hub 台账状态与生命周期三环注册表完全一致,无退役/旧壳残留。';
956
956
  probeSource = hubActual.probeSource;
957
957
  } else if (risk.probeKind === 'eval_shell_reshape') {
958
- const evalRepo = lookupProbedRepo(probedByKey, 'skill-eval')
959
- || probedRepos.find(r => r.publicName === 'skill-eval');
958
+ const evalRepo = lookupProbedRepo(probedByKey, 'skill-family-eval')
959
+ || lookupProbedRepo(probedByKey, 'skill-eval')
960
+ || probedRepos.find(r => r.publicName === 'skill-family-eval' || r.publicName === 'skill-eval');
960
961
  const ver = evalRepo?.live?.sourceVersion?.version || null;
961
962
  const fndAligned = Boolean(evalRepo?.live?.foundation?.alignedWithExpected && evalRepo?.live?.foundation?.foundationTrackActual === '0.39.x');
962
963
  const requiredEngineModules = evalRepo ? await Promise.all([
@@ -964,13 +965,17 @@ async function evaluateArchitecturalRisks(rawRisks, probedRepos, probedByKey, hu
964
965
  'packages/skill-eval/src/judge-calibration.mjs',
965
966
  'packages/skill-eval/src/sfa-hard-gate.mjs',
966
967
  'packages/skill-eval/src/scorecard-engine.mjs',
968
+ 'packages/skill-eval/src/eval-conclusion.mjs',
967
969
  'packages/skill-eval/schemas/scorecard.schema.json',
968
970
  ].map(rel => checkAnyFileInTargets([evalRepo], [rel]).then(hits => hits.length > 0))) : [];
969
- const allModulesPresent = requiredEngineModules.length === 5 && requiredEngineModules.every(Boolean);
971
+ const allModulesPresent = requiredEngineModules.length === 6 && requiredEngineModules.every(Boolean);
972
+ const hasLegacyHeimdallDir = evalRepo?.live?.realPath
973
+ ? await existsDir(join(evalRepo.live.realPath, 'heimdall'))
974
+ : false;
970
975
  const receiptReady = Boolean(evalRepo?.live?.locksAndReceipt?.receiptPassed && evalRepo?.live?.locksAndReceipt?.lockPresent);
971
- detected = !evalRepo?.live?.existsOnDisk || isPlaceholderVersion(ver) || !fndAligned || !allModulesPresent || !receiptReady;
976
+ detected = !evalRepo?.live?.existsOnDisk || isPlaceholderVersion(ver) || !fndAligned || !allModulesPresent || hasLegacyHeimdallDir || !receiptReady;
972
977
  liveEvidence = evalRepo?.live?.existsOnDisk
973
- ? `当前版本=${ver || '未声明'},底座=${evalRepo.live.foundation?.foundationTrackActual || 'not-applicable'},核心模块=${allModulesPresent ? '5/5 就绪' : '缺失'},锁与收据=${evalRepo.live.locksAndReceipt?.badgeLabel || '未建'}`
978
+ ? `当前版本=${ver || '未声明'},底座=${evalRepo.live.foundation?.foundationTrackActual || 'not-applicable'},核心模块=${allModulesPresent ? '6/6 就绪' : '缺失'},heimdall残留=${hasLegacyHeimdallDir ? '存在' : '已清理'},锁与收据=${evalRepo.live.locksAndReceipt?.badgeLabel || '未建'}`
974
979
  : '本地未检出已重塑的计分卡引擎包';
975
980
  probeSource = evalRepo?.live?.existsOnDisk
976
981
  ? `skill-eval/${evalRepo.live.sourceVersion?.probeSource || 'package.json'} + packages/skill-eval/src/* + sft-runs.json`
@@ -1209,55 +1214,147 @@ async function evaluateRoadmapMilestones(rawRoadmap, ctx) {
1209
1214
  liveDetail = `ACP Driver 包:${driverReady ? driverPkgHits[0] : '待建'} · STB Schema:${stbHits[0] || '待建'} · SFA 封存对账实证:${verifiedSampleReady ? '已就绪' : '待核验'}`;
1210
1215
  probeSource = 'packages/execution-driver + session-trace-bundle.schema.json + SFA 封存对账结论探针';
1211
1216
  } else if (ms.probeCheck === 'blueprint_canvas_and_mocks') {
1212
- const targets = resolveMilestoneTargets(ms.ownerRepos, r => r.ring === 'core' && r.live?.existsOnDisk);
1213
- const bpHits = await checkAnyFileInTargets(targets, [
1217
+ const studioRepo = lookupProbedRepo(probedByKey, 'skill-family-studio')
1218
+ || probedRepos.find(r => r.publicName === 'skill-family-studio');
1219
+ const sftRepo = lookupProbedRepo(probedByKey, 'skill-family-test')
1220
+ || probedRepos.find(r => r.publicName === 'skill-family-test');
1221
+ const bpHits = studioRepo ? await checkAnyFileInTargets([studioRepo], [
1214
1222
  'packages/skill-family-studio/src/ui/blueprint-canvas.mjs',
1215
1223
  'src/ui/blueprint-canvas.mjs',
1216
- ]);
1217
- const mockHits = await checkAnyFileInTargets(targets, [
1218
- 'packages/tool-mock-sandbox/package.json',
1219
- 'src/mock-recorder.mjs',
1220
- ]);
1221
- if (bpHits.length > 0 && mockHits.length > 0) {
1224
+ ]) : [];
1225
+ const replayHits = sftRepo ? await checkAnyFileInTargets([sftRepo], [
1226
+ 'packages/skill-family-test/src/tool-mock-replay.mjs',
1227
+ 'src/tool-mock-replay.mjs',
1228
+ ]) : [];
1229
+ let bpSemanticReady = false;
1230
+ if (studioRepo?.live?.realPath && bpHits.length > 0) {
1231
+ const studioPrefix = studioRepo.publicName ? `${studioRepo.publicName}/` : `${studioRepo.name}/`;
1232
+ const bpRel = bpHits[0].startsWith(studioPrefix)
1233
+ ? bpHits[0].slice(studioPrefix.length)
1234
+ : bpHits[0].startsWith(`${studioRepo.name}/`)
1235
+ ? bpHits[0].slice(studioRepo.name.length + 1)
1236
+ : bpHits[0];
1237
+ const bpSrc = await readTextContainedSafe(studioRepo.live.realPath, bpRel);
1238
+ bpSemanticReady = Boolean(
1239
+ bpSrc &&
1240
+ !/\.\s*innerHTML\b/.test(bpSrc) &&
1241
+ bpSrc.includes('BLUEPRINT_ENUMS') &&
1242
+ /export\s+function\s+validateBlueprintCanvasDraft\b/.test(bpSrc) &&
1243
+ /export\s+function\s+computeBlueprintDigestSync\b/.test(bpSrc) &&
1244
+ /export\s+function\s+renderBlueprintCanvasSubView\b/.test(bpSrc),
1245
+ );
1246
+ }
1247
+ let replaySemanticReady = false;
1248
+ if (sftRepo?.live?.realPath && replayHits.length > 0) {
1249
+ const sftPrefix = sftRepo.publicName ? `${sftRepo.publicName}/` : `${sftRepo.name}/`;
1250
+ const replayRel = replayHits[0].startsWith(sftPrefix)
1251
+ ? replayHits[0].slice(sftPrefix.length)
1252
+ : replayHits[0].startsWith(`${sftRepo.name}/`)
1253
+ ? replayHits[0].slice(sftRepo.name.length + 1)
1254
+ : replayHits[0];
1255
+ const replaySrc = await readTextContainedSafe(sftRepo.live.realPath, replayRel);
1256
+ replaySemanticReady = Boolean(
1257
+ replaySrc &&
1258
+ /export\s+function\s+sealToolMockFixture\b/.test(replaySrc) &&
1259
+ /export\s+function\s+verifyToolMockFixtureSeal\b/.test(replaySrc) &&
1260
+ /export\s+function\s+verifyToolReplayRun\b/.test(replaySrc),
1261
+ );
1262
+ }
1263
+ if (bpSemanticReady && replaySemanticReady) {
1222
1264
  status = 'passed';
1223
1265
  badgeLabel = '✅ 已达成';
1224
1266
  badgeTone = 'emerald';
1225
- } else if (bpHits.length > 0 || mockHits.length > 0) {
1267
+ } else if (bpHits.length > 0 || replayHits.length > 0) {
1226
1268
  status = 'partial';
1227
1269
  badgeLabel = '🔵 部分落盘';
1228
1270
  badgeTone = 'indigo';
1229
1271
  }
1230
- liveDetail = `编排蓝图画布:${bpHits[0] || '待建'} · 工具替身录制沙箱:${mockHits[0] || '待建'}`;
1231
- probeSource = 'blueprint-canvas.mjs + packages/tool-mock-sandbox 探针';
1272
+ liveDetail = `编排蓝图画布:${bpSemanticReady ? bpHits[0] : (bpHits[0] ? `${bpHits[0]} (语义探针未齐)` : '待建设')} · sft 工具替身回放:${replaySemanticReady ? replayHits[0] : (replayHits[0] ? `${replayHits[0]} (导出未齐)` : '待建设')}`;
1273
+ probeSource = 'skill-family-studio/blueprint-canvas.mjs + skill-family-test/tool-mock-replay.mjs 内容语义探针';
1232
1274
  } else if (ms.probeCheck === 'skill_eval_scorecard_engine') {
1233
- const evalRepo = lookupProbedRepo(probedByKey, 'skill-eval')
1234
- || probedRepos.find(r => r.publicName === 'skill-eval');
1275
+ const evalRepo = lookupProbedRepo(probedByKey, 'skill-family-eval')
1276
+ || lookupProbedRepo(probedByKey, 'skill-eval')
1277
+ || probedRepos.find(r => r.publicName === 'skill-family-eval' || r.publicName === 'skill-eval');
1278
+ const rsRepo = lookupProbedRepo(probedByKey, 'release-skill')
1279
+ || probedRepos.find(r => r.publicName === 'release-skill');
1280
+ const sfaRepo = lookupProbedRepo(probedByKey, 'skill-failure-auditor')
1281
+ || probedRepos.find(r => r.publicName === 'skill-failure-auditor');
1235
1282
  const requiredModules = [
1236
1283
  'packages/skill-eval/package.json',
1237
1284
  'packages/skill-eval/src/oracle-vault.mjs',
1238
1285
  'packages/skill-eval/src/judge-calibration.mjs',
1239
1286
  'packages/skill-eval/src/sfa-hard-gate.mjs',
1240
1287
  'packages/skill-eval/src/scorecard-engine.mjs',
1288
+ 'packages/skill-eval/src/eval-conclusion.mjs',
1241
1289
  'packages/skill-eval/schemas/scorecard.schema.json',
1242
1290
  ];
1243
1291
  const moduleChecks = evalRepo ? await Promise.all(
1244
1292
  requiredModules.map(rel => checkAnyFileInTargets([evalRepo], [rel]).then(hits => hits[0] || null)),
1245
1293
  ) : [];
1246
1294
  const presentCount = moduleChecks.filter(Boolean).length;
1295
+ let adversarialReady = false;
1296
+ if (evalRepo?.live?.realPath) {
1297
+ const advSrc = await readTextContainedSafe(
1298
+ evalRepo.live.realPath,
1299
+ 'packages/skill-eval/src/adversarial-suite.mjs',
1300
+ );
1301
+ adversarialReady = Boolean(
1302
+ advSrc &&
1303
+ advSrc.includes('ADVERSARIAL_SUITE_ID') &&
1304
+ advSrc.includes('evaluateAdversarialRun'),
1305
+ );
1306
+ }
1307
+ let rsEvalProofReady = false;
1308
+ if (rsRepo?.live?.realPath) {
1309
+ const rsProofSrc = await readTextContainedSafe(
1310
+ rsRepo.live.realPath,
1311
+ 'packages/release-skill/src/commands/professional-proof.mjs',
1312
+ );
1313
+ rsEvalProofReady = Boolean(
1314
+ rsProofSrc &&
1315
+ /export\s+async\s+function\s+readEvalProfessionalProof\b/.test(rsProofSrc),
1316
+ );
1317
+ }
1318
+ const sfaAligned = sfaRepo?.live?.existsOnDisk
1319
+ ? Boolean(sfaRepo.live.foundation?.alignedWithExpected && sfaRepo.live.foundation?.foundationTrackActual === '0.39.x')
1320
+ : true;
1321
+ const hubEvalActive = (hubActual.providers || []).some(
1322
+ p =>
1323
+ p.capabilityId === 'quality-evaluation' &&
1324
+ (p.providerId === 'skill-family-eval' || p.providerId === 'skill-eval') &&
1325
+ p.lifecycleState === 'active' &&
1326
+ p.integrationStatus === 'published-verified',
1327
+ );
1247
1328
  const verReady = evalRepo?.live?.existsOnDisk && !isPlaceholderVersion(evalRepo.live.sourceVersion?.version);
1248
- const fndReady = evalRepo?.live?.foundation?.foundationTrackActual === '0.39.x';
1329
+ const fndReady = Boolean(
1330
+ evalRepo?.live?.foundation?.alignedWithExpected &&
1331
+ evalRepo?.live?.foundation?.foundationTrackActual === '0.39.x' &&
1332
+ sfaAligned,
1333
+ );
1334
+ const siteReady = Boolean(evalRepo?.live?.docSite?.isIndependentSite);
1249
1335
  const receiptReady = Boolean(evalRepo?.live?.locksAndReceipt?.receiptPassed);
1250
- if (verReady && fndReady && presentCount === requiredModules.length && receiptReady) {
1336
+ if (
1337
+ verReady &&
1338
+ fndReady &&
1339
+ presentCount === requiredModules.length &&
1340
+ siteReady &&
1341
+ receiptReady &&
1342
+ rsEvalProofReady &&
1343
+ hubEvalActive &&
1344
+ adversarialReady
1345
+ ) {
1251
1346
  status = 'passed';
1252
- badgeLabel = '✅ 已达成';
1347
+ badgeLabel = '✅ 已达成 (含对抗评测与 P7 门禁闭环)';
1253
1348
  badgeTone = 'emerald';
1254
1349
  } else if (presentCount > 0 || fndReady) {
1255
1350
  status = 'partial';
1256
- badgeLabel = '🔵 重塑推进中';
1351
+ badgeLabel = adversarialReady
1352
+ ? '🔵 引擎与对抗包已落盘(待上下游门禁串联)'
1353
+ : '🔵 0.1.0 引擎就绪(待 4B-2 安全对抗套件)';
1257
1354
  badgeTone = 'indigo';
1258
1355
  }
1259
- liveDetail = `skill-eval 当前版本=${evalRepo?.live?.sourceVersion?.version || '0.0.0'},核心模块=${presentCount}/${requiredModules.length},测试收据=${receiptReady ? '已通过' : '待核验'}`;
1260
- probeSource = 'skill-eval/packages/skill-eval/src/* + sft-runs.json 探针';
1356
+ liveDetail = `skill-family-eval v${evalRepo?.live?.sourceVersion?.version || '0.0.0'},核心模块=${presentCount}/${requiredModules.length},P7门禁=${rsEvalProofReady ? '已接线' : '待接线'},Hub槽位=${hubEvalActive ? 'active' : '待切换'},对抗套件=${adversarialReady ? '已就绪' : '待 4B-2'}`;
1357
+ probeSource = 'skill-eval/src/* + release-skill/professional-proof.mjs + Hub lifecycle-providers.mjs';
1261
1358
  } else if (ms.probeCheck === 'studio_server_otel_dengbao') {
1262
1359
  const targets = resolveMilestoneTargets(ms.ownerRepos, r => r.ring === 'core' && r.live?.existsOnDisk);
1263
1360
  const srvHits = await checkAnyFileInTargets(targets, [
package/src/server.mjs CHANGED
@@ -817,6 +817,7 @@ export async function createStudioServer({
817
817
  '/assets/fleet-ui.mjs': { file: join(UI_DIR, 'fleet-ui.mjs'), type: MIME_TYPES['.mjs'] },
818
818
  '/assets/stb-ui.mjs': { file: join(UI_DIR, 'stb-ui.mjs'), type: MIME_TYPES['.mjs'] },
819
819
  '/assets/lifecycle-ui.mjs': { file: join(UI_DIR, 'lifecycle-ui.mjs'), type: MIME_TYPES['.mjs'] },
820
+ '/assets/blueprint-canvas.mjs': { file: join(UI_DIR, 'blueprint-canvas.mjs'), type: MIME_TYPES['.mjs'] },
820
821
  '/graph-layout.mjs': { file: join(PKG_SRC_DIR, 'graph-layout.mjs'), type: MIME_TYPES['.mjs'] },
821
822
  '/assets/graph-layout.mjs': { file: join(PKG_SRC_DIR, 'graph-layout.mjs'), type: MIME_TYPES['.mjs'] },
822
823
  };
@@ -455,7 +455,7 @@ export function buildSandboxFleetSample(nowIso = new Date().toISOString()) {
455
455
  role: 'coordinator',
456
456
  roleShort: '主控',
457
457
  hueIndex: 0,
458
- model: 'gemini-4-xhigh',
458
+ model: 'flagship-reasoning',
459
459
  status: 'running',
460
460
  startedAt: iso(0),
461
461
  updatedAt: iso(595),
@@ -475,7 +475,7 @@ export function buildSandboxFleetSample(nowIso = new Date().toISOString()) {
475
475
  role: 'subagent',
476
476
  roleShort: '架构',
477
477
  hueIndex: 1,
478
- model: 'gemini-4-high',
478
+ model: 'balanced-coding',
479
479
  status: 'completed',
480
480
  startedAt: iso(25),
481
481
  updatedAt: iso(260),
@@ -495,7 +495,7 @@ export function buildSandboxFleetSample(nowIso = new Date().toISOString()) {
495
495
  role: 'subagent',
496
496
  roleShort: '前端',
497
497
  hueIndex: 2,
498
- model: 'gemini-4-high',
498
+ model: 'balanced-coding',
499
499
  status: 'running',
500
500
  startedAt: iso(35),
501
501
  updatedAt: iso(590),
@@ -515,7 +515,7 @@ export function buildSandboxFleetSample(nowIso = new Date().toISOString()) {
515
515
  role: 'subagent',
516
516
  roleShort: '文档',
517
517
  hueIndex: 3,
518
- model: 'gemini-4-high',
518
+ model: 'balanced-coding',
519
519
  status: 'completed',
520
520
  startedAt: iso(50),
521
521
  updatedAt: iso(310),
@@ -535,7 +535,7 @@ export function buildSandboxFleetSample(nowIso = new Date().toISOString()) {
535
535
  role: 'subagent',
536
536
  roleShort: '核验',
537
537
  hueIndex: 4,
538
- model: 'gemini-4-high',
538
+ model: 'balanced-coding',
539
539
  status: 'completed',
540
540
  startedAt: iso(330),
541
541
  updatedAt: iso(520),
@@ -555,7 +555,7 @@ export function buildSandboxFleetSample(nowIso = new Date().toISOString()) {
555
555
  role: 'reviewer',
556
556
  roleShort: '审阅',
557
557
  hueIndex: 5,
558
- model: 'gemini-4-xhigh',
558
+ model: 'flagship-reasoning',
559
559
  status: 'completed',
560
560
  startedAt: iso(525),
561
561
  updatedAt: iso(585),
@@ -2,9 +2,10 @@
2
2
 
3
3
  import { execFile } from 'node:child_process';
4
4
  import { randomBytes } from 'node:crypto';
5
- import { existsSync } from 'node:fs';
5
+ import { existsSync, lstatSync, readdirSync } from 'node:fs';
6
6
  import { copyFile, mkdir, mkdtemp, readdir, readFile, realpath, rm, writeFile } from 'node:fs/promises';
7
- import { tmpdir } from 'node:os';
7
+ import { createRequire } from 'node:module';
8
+ import { homedir, tmpdir } from 'node:os';
8
9
  import path from 'node:path';
9
10
  import { fileURLToPath, pathToFileURL } from 'node:url';
10
11
  import { promisify } from 'node:util';
@@ -199,26 +200,105 @@ export function summarizeStbEntry(id, sourceLabel, bundle, report, conclusion) {
199
200
  };
200
201
  }
201
202
 
202
- function resolveWorkspaceDriverPaths(root) {
203
- const candidates = [
204
- path.resolve(root),
205
- path.resolve(root, 'skill-family-studio-workspace'),
206
- WORKSPACE_CANDIDATE_ROOT,
203
+ const localRequire = createRequire(import.meta.url);
204
+ const IS_SOURCE_CHECKOUT = path.basename(path.dirname(STUDIO_PKG_ROOT)) === 'packages'
205
+ && !STUDIO_PKG_ROOT.split(path.sep).includes('node_modules');
206
+
207
+ function isRegularNonSymlinkFile(candidatePath) {
208
+ try {
209
+ const st = lstatSync(candidatePath);
210
+ return st.isFile() && !st.isSymbolicLink();
211
+ } catch {
212
+ return false;
213
+ }
214
+ }
215
+
216
+ function isNonSymlinkDir(candidatePath) {
217
+ try {
218
+ const st = lstatSync(candidatePath);
219
+ return st.isDirectory() && !st.isSymbolicLink();
220
+ } catch {
221
+ return false;
222
+ }
223
+ }
224
+
225
+ function discoverSfaEvaluationTool() {
226
+ const envTool = typeof process.env.SFA_EVALUATION_TOOL_PATH === 'string'
227
+ ? process.env.SFA_EVALUATION_TOOL_PATH.trim()
228
+ : '';
229
+ if (envTool) {
230
+ const resolvedEnv = path.resolve(envTool);
231
+ if (isRegularNonSymlinkFile(resolvedEnv)) return resolvedEnv;
232
+ }
233
+
234
+ const relativeProbes = [
235
+ 'scripts/evaluation_tool.py',
236
+ 'platforms/claude-code/skill/scripts/evaluation_tool.py',
237
+ 'platforms/codex/skill/scripts/evaluation_tool.py',
238
+ 'packages/skill-failure-auditor/plugin-src/core/scripts/evaluation_tool.py',
207
239
  ];
208
- for (const base of candidates) {
209
- const driverEntry = path.join(base, 'packages/execution-driver/src/index.mjs');
210
- const fixturesDir = path.join(base, 'packages/execution-driver/fixtures');
211
- if (existsSync(driverEntry)) {
212
- const parentEco = path.resolve(base, '..');
213
- const sfaTool = path.join(
214
- parentEco,
215
- 'skill-failure-auditor-workspace/packages/skill-failure-auditor/plugin-src/core/scripts/evaluation_tool.py',
216
- );
240
+
241
+ const home = homedir();
242
+ for (const installedBase of [
243
+ path.join(home, '.agents/skills/skill-failure-auditor'),
244
+ path.join(home, '.claude/skills/skill-failure-auditor'),
245
+ ]) {
246
+ if (!isNonSymlinkDir(installedBase)) continue;
247
+ for (const rel of relativeProbes) {
248
+ const hit = path.join(installedBase, rel);
249
+ if (isRegularNonSymlinkFile(hit)) return hit;
250
+ }
251
+ }
252
+
253
+ if (IS_SOURCE_CHECKOUT) {
254
+ const checkoutParent = path.resolve(WORKSPACE_CANDIDATE_ROOT, '..');
255
+ if (isNonSymlinkDir(checkoutParent)) {
256
+ try {
257
+ for (const ent of readdirSync(checkoutParent, { withFileTypes: true })) {
258
+ if (!ent.isDirectory() || ent.isSymbolicLink() || ent.name.startsWith('.')) continue;
259
+ if (!ent.name.includes('skill-failure-auditor')) continue;
260
+ const childBase = path.join(checkoutParent, ent.name);
261
+ if (!isNonSymlinkDir(childBase)) continue;
262
+ for (const rel of relativeProbes) {
263
+ const hit = path.join(childBase, rel);
264
+ if (isRegularNonSymlinkFile(hit)) return hit;
265
+ }
266
+ }
267
+ } catch {
268
+ // ignore unreadable parent dir
269
+ }
270
+ }
271
+ }
272
+ return null;
273
+ }
274
+
275
+ export function resolveWorkspaceDriverPaths(_root) {
276
+ const sfaTool = discoverSfaEvaluationTool();
277
+ try {
278
+ const resolvedEntry = localRequire.resolve('skill-family-execution-driver');
279
+ if (resolvedEntry && isRegularNonSymlinkFile(resolvedEntry)) {
280
+ const pkgDir = path.resolve(path.dirname(resolvedEntry), '..');
281
+ const fixturesDir = path.join(pkgDir, 'fixtures');
282
+ return {
283
+ available: true,
284
+ driverEntry: resolvedEntry,
285
+ fixturesDir: isNonSymlinkDir(fixturesDir) ? fixturesDir : null,
286
+ sfaTool,
287
+ };
288
+ }
289
+ } catch {
290
+ // fallback to local source checkout layout when running uninstalled tests
291
+ }
292
+
293
+ if (IS_SOURCE_CHECKOUT) {
294
+ const driverEntry = path.join(WORKSPACE_CANDIDATE_ROOT, 'packages/execution-driver/src/index.mjs');
295
+ const fixturesDir = path.join(WORKSPACE_CANDIDATE_ROOT, 'packages/execution-driver/fixtures');
296
+ if (isRegularNonSymlinkFile(driverEntry)) {
217
297
  return {
218
298
  available: true,
219
299
  driverEntry,
220
- fixturesDir,
221
- sfaTool: existsSync(sfaTool) ? sfaTool : null,
300
+ fixturesDir: isNonSymlinkDir(fixturesDir) ? fixturesDir : null,
301
+ sfaTool,
222
302
  };
223
303
  }
224
304
  }