skill-family-studio 0.7.0 → 0.7.1

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.7.0",
4
+ "version": "0.7.1",
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.7.0",
4
+ "version": "0.7.1",
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.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
5
5
  "author": {
6
6
  "name": "广州市风荷科技有限公司"
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.7.0
3
+ ## 0.7.1
4
4
 
5
5
  - 新增 **跨平台一键桌面装机与零参数启动器**(`install-app` / `status-app` / `uninstall-app` / `app`):macOS 本机直接生成无 Gatekeeper 隔离属性的 `Skill Family Studio.app`(支持 `swiftc` 原生 `WKWebView` 独立窗口与自动寻址 Node 22),Windows 与 Linux 分别生成独立无黑框启动器与 XDG 桌面入口,默认托管工作区与偏好配置文件。
6
6
  - 上线顶栏 **「环境胶囊(`⌘,`)」** 与 **「新手专注模式 ↔ 架构师全景模式(`⌘E`)」** 双模壳层:支持运行期热切换当前项目目录、扫描范围、可用智能体引擎(Claude Code / Codex / DeepSeek Harness / Kimi Code)与读写模式锁;未初始化或托管新建项目默认进入单主线 5 步专注向导,隐藏内部编号、YAML 与手动 `sha256` 复选框。
package/USER-GUIDE.md CHANGED
@@ -1,4 +1,4 @@
1
- # Skill Family Studio 操作手册(跨智能体编排与逐步骤指南)
1
+ # Skill Family Studio 操作手册(跨智能体编排与分步骤指南)
2
2
 
3
3
  > 零 CDN、纯本地的跨智能体工程编排工作台。接入本机已订阅的编程 CLI,顺着「准备篇 + 第 1 步至第 5 步」完成对话试做、需求设计、多智能体开发、测试盲测与发布交付。
4
4
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-family-studio",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
6
6
  "author": "广州市风荷科技有限公司",
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.7.0",
4
+ "version": "0.7.1",
5
5
  "description": "单端口统一承载制品图谱审阅、跨仓双向对齐、模板新建与智能体运行监控的本地离线研发控制台。",
6
6
  "author": "广州市风荷科技有限公司",
7
7
  "repository": "https://github.com/ifoohoo/skill-family-studio"
@@ -54,7 +54,7 @@ export const STUDIO_MANUAL_CHAPTERS = Object.freeze([
54
54
  ]);
55
55
 
56
56
  export const STUDIO_GUIDE_MODEL = Object.freeze({
57
- title: 'Skill Family Studio 操作手册(跨智能体编排与逐步骤指南)',
57
+ title: 'Skill Family Studio 操作手册(跨智能体编排与分步骤指南)',
58
58
  subtitle: '零 CDN、纯本地的跨智能体工程编排工作台。接入本机已订阅的编程 CLI,顺着「准备篇 + 第 1 步至第 5 步」完成对话试做、需求设计、多智能体开发、测试盲测与发布交付。',
59
59
  whyItExists: [
60
60
  '无论是从零打磨一个轻量业务工具,还是协作治理一套跨仓技能族工程,日常往往卡在三件事上:不知道本机已装的编程智能体怎么协同分工、审阅改稿时反复手工复制粘贴提示词、改完规则又担心误伤正在给同事用的正式版本。',
@@ -4931,13 +4931,19 @@ export function deriveLifecycleAndSubpathTree({
4931
4931
  moduleId: 'lifecycle',
4932
4932
  title: '本页核对:多仓协同与基线',
4933
4933
  nodes: [
4934
- makeTreeNode('lifecycle_baseline_align', '多仓基线依赖对齐', hasPopulatedGraph && truth1ReviewAndReturnsOk ? 'completed' : (changesRequestedCount > 0 ? 'rework' : 'pending')),
4934
+ makeTreeNode(
4935
+ 'lifecycle_baseline_align',
4936
+ '多仓基线依赖对齐',
4937
+ Boolean(repoInfo?.ownsLifecycleMatrix) && hasPopulatedGraph && truth1ReviewAndReturnsOk
4938
+ ? 'completed'
4939
+ : (changesRequestedCount > 0 ? 'rework' : 'pending'),
4940
+ ),
4935
4941
  makeTreeNode(
4936
4942
  'lifecycle_risk_zero',
4937
4943
  '跨仓风险与退回清零',
4938
- threeTruthPassed
4944
+ Boolean(repoInfo?.ownsLifecycleMatrix) && threeTruthPassed
4939
4945
  ? 'completed'
4940
- : (hadPriorVerification || openReturnedSampleCount > 0 || changesRequestedCount > 0 ? 'rework' : 'pending'),
4946
+ : (Boolean(repoInfo?.ownsLifecycleMatrix) && (hadPriorVerification || openReturnedSampleCount > 0 || changesRequestedCount > 0) ? 'rework' : 'pending'),
4941
4947
  ),
4942
4948
  ],
4943
4949
  },
package/src/server.mjs CHANGED
@@ -1940,6 +1940,7 @@ export async function createStudioServer({
1940
1940
  specCount,
1941
1941
  allocatedCount,
1942
1942
  decomposedCount,
1943
+ ownsLifecycleMatrix: Boolean(resolvedEntry?.ownsLifecycleMatrix || resolvedEntry?.publicSnapshot?.ownsLifecycleMatrix),
1943
1944
  };
1944
1945
 
1945
1946
  const sliceRows = Array.isArray(slicesBoardRes?.slices) ? slicesBoardRes.slices : [];
package/src/ui/app.mjs CHANGED
@@ -266,7 +266,10 @@ function isCleanReadOnlyConsumer() {
266
266
 
267
267
  if (typeof document !== 'undefined') {
268
268
  document.documentElement.dataset.demo = isDemoMode ? '1' : '0';
269
+ const isEmbedQs = typeof location !== 'undefined' && new URLSearchParams(location.search || '').get('embed') === '1';
270
+ if (isEmbedQs) document.documentElement.dataset.embed = '1';
269
271
  document.documentElement.dataset.shellMode = isCleanShellActive() ? 'clean' : 'legacy';
272
+ document.documentElement.dataset.consumerView = isCleanReadOnlyConsumer() ? '1' : '0';
270
273
  }
271
274
 
272
275
  function resolveCleanTabFromUrl(rawTab, urlMode, fallback = 'dialogue') {
@@ -532,6 +535,9 @@ function switchCleanTab(nextCleanTab, { skipScrollReset = false } = {}) {
532
535
  closeEnvPopover();
533
536
  closeSecurityPopover();
534
537
  closeModuleDropdown();
538
+ if (typeof document !== 'undefined') {
539
+ document.getElementById('st-wizard-modal')?.remove();
540
+ }
535
541
  if (targetTab !== 'orchestration') stopLockTicker();
536
542
  if (targetTab !== 'graph' && graphAbortCtrl) {
537
543
  graphAbortCtrl.abort();
@@ -883,7 +889,7 @@ function buildFallbackSubpathTrees() {
883
889
  moduleId: 'lifecycle',
884
890
  title: '本页核对:多仓协同与基线',
885
891
  nodes: [
886
- { id: 'lifecycle_baseline_align', label: '多仓基线依赖对齐', status: hasGraph ? 'completed' : 'pending', symbol: railStatusSymbol(hasGraph ? 'completed' : 'pending') },
892
+ { id: 'lifecycle_baseline_align', label: '多仓基线依赖对齐', status: state.lifecycleSummary?.available ? 'completed' : 'pending', symbol: railStatusSymbol(state.lifecycleSummary?.available ? 'completed' : 'pending') },
887
893
  { id: 'lifecycle_risk_zero', label: '跨仓风险与退回清零', status: dirty ? 'rework' : 'pending', symbol: railStatusSymbol(dirty ? 'rework' : 'pending') },
888
894
  ],
889
895
  },
@@ -1391,7 +1397,59 @@ function renderCleanRightProgressRail() {
1391
1397
 
1392
1398
  const activeClean = state.cleanTab || 'dialogue';
1393
1399
  const roConsumer = isCleanReadOnlyConsumer();
1400
+ document.documentElement.dataset.consumerView = roConsumer ? '1' : '0';
1401
+ rail.hidden = false;
1394
1402
  const lp = getEffectiveLifecycleProgress();
1403
+ if (roConsumer) {
1404
+ preserveScrollAndFocus(rail, () => {
1405
+ rail.replaceChildren();
1406
+ const fullBody = el('div', null, 'st-rail-full-body');
1407
+ fullBody.setAttribute('data-testid', 'colleague-readonly-rail-status');
1408
+ const liveSec = el('section', null, 'st-clean-rail-section');
1409
+ const liveHead = el('div', null, 'st-clean-rail-section-title');
1410
+ liveHead.append(el('span', '日常运行状态'));
1411
+ liveSec.append(liveHead);
1412
+ if (lp.liveReleaseBadge?.hasLiveRelease) {
1413
+ const badgeBox = el('div', null, 'st-clean-rail-live-badge');
1414
+ badgeBox.setAttribute('data-testid', 'clean-live-release-badge');
1415
+ badgeBox.append(el('span', '线上正式版:稳定运行 ✓'));
1416
+ if (lp.liveReleaseBadge.versionLabel) {
1417
+ badgeBox.append(el('span', `当前正式版 ${lp.liveReleaseBadge.versionLabel}`, 'st-muted-xs'));
1418
+ }
1419
+ liveSec.append(badgeBox);
1420
+ } else {
1421
+ liveSec.append(el('div', '等待作者发布正式可用版本,届时可直接运行核验。', 'st-muted-xs'));
1422
+ }
1423
+ fullBody.append(liveSec);
1424
+
1425
+ const microSec = el('section', null, 'st-clean-rail-section');
1426
+ const microHead = el('div', null, 'st-clean-rail-section-title');
1427
+ microHead.append(el('span', '当前视角说明'));
1428
+ microSec.append(microHead);
1429
+ const microWrap = el('div', null, 'st-clean-rail-tree');
1430
+ microWrap.setAttribute('data-testid', 'clean-micro-subpath-tree');
1431
+ const roItems = [
1432
+ { id: 'colleague_view_locked', label: '同事只读运行视角', state: 'completed', active: true, note: '作者研发页签与配置修改已自动锁定隔离' },
1433
+ { id: 'colleague_daily_ready', label: lp.liveReleaseBadge?.hasLiveRelease ? '正式工具已就绪,可直接核验签字' : '待作者启用正式版本后开放运行', state: lp.liveReleaseBadge?.hasLiveRelease ? 'completed' : 'pending', active: false, note: '' },
1434
+ ];
1435
+ for (const item of roItems) {
1436
+ const nodeEl = el('div', null, `st-clean-rail-node is-${item.state}${item.active ? ' is-active' : ''}`);
1437
+ nodeEl.setAttribute('data-testid', `micro-subpath-node-${item.id}`);
1438
+ nodeEl.setAttribute('data-node-state', item.state);
1439
+ const rowHead = el('div', null, 'st-clean-rail-node-head');
1440
+ const rowTitle = el('span', null, 'st-clean-rail-node-title');
1441
+ rowTitle.append(el('span', railStatusSymbol(item.state), 'st-clean-rail-symbol'), el('span', item.label));
1442
+ rowHead.append(rowTitle);
1443
+ nodeEl.append(rowHead);
1444
+ if (item.note) nodeEl.append(el('div', item.note, 'st-clean-rail-conclusion'));
1445
+ microWrap.append(nodeEl);
1446
+ }
1447
+ microSec.append(microWrap);
1448
+ fullBody.append(microSec);
1449
+ rail.append(fullBody);
1450
+ }, { doc: document });
1451
+ return;
1452
+ }
1395
1453
  const fbTrees = buildFallbackSubpathTrees();
1396
1454
  const dlg = ensureCleanShellState(state).dialogue;
1397
1455
  const envWarn = computeEnvRailWarning();
@@ -1720,10 +1778,13 @@ function renderCleanRightProgressRail() {
1720
1778
  btn.setAttribute('aria-label', isGuideNode ? `跳转到章节:${assertionLabel}` : `${assertionLabel}${nState === 'completed' ? ',已达标' : ',待核对'}`);
1721
1779
  const rowHead = el('div', null, 'st-clean-rail-node-head');
1722
1780
  const rowTitle = el('span', null, 'st-clean-rail-node-title');
1723
- rowTitle.append(
1724
- el('span', isGuideNode ? `${nodeIdx + 1}.` : (node.symbol || railStatusSymbol(nState)), 'st-clean-rail-symbol'),
1725
- el('span', assertionLabel),
1726
- );
1781
+ const guideNumPrefix = isGuideNode
1782
+ ? (/^[一二三四五六七八九十]+、/.test(assertionLabel) ? '' : `${nodeIdx + 1}.`)
1783
+ : (node.symbol || railStatusSymbol(nState));
1784
+ if (guideNumPrefix) {
1785
+ rowTitle.append(el('span', guideNumPrefix, 'st-clean-rail-symbol'));
1786
+ }
1787
+ rowTitle.append(el('span', assertionLabel));
1727
1788
  rowHead.append(rowTitle);
1728
1789
  if (isCur) {
1729
1790
  rowHead.append(el('span', '当前所在', 'st-clean-rail-here-pill st-sr-only'));
@@ -3261,6 +3322,9 @@ function switchTab(nextTab) {
3261
3322
  closeEnvPopover();
3262
3323
  closeSecurityPopover();
3263
3324
  closeModuleDropdown();
3325
+ if (typeof document !== 'undefined') {
3326
+ document.getElementById('st-wizard-modal')?.remove();
3327
+ }
3264
3328
  if (state.navState) {
3265
3329
  state.navState.triView = 'overview';
3266
3330
  state.navState.developerDetailsExpanded = true;
@@ -10870,6 +10934,11 @@ async function sendAcpChatMessage(customPrompt = null) {
10870
10934
  diffs: [],
10871
10935
  };
10872
10936
  turns.push(assistantTurn);
10937
+ if (v8.acpEventSource) {
10938
+ try { v8.acpEventSource.close(); } catch {}
10939
+ v8.acpEventSource = null;
10940
+ }
10941
+ const myStreamSeq = (v8.acpStreamSeq = (Number(v8.acpStreamSeq) || 0) + 1);
10873
10942
  v8.acpStreamingActive = true;
10874
10943
  v8.acpActiveRunId = null;
10875
10944
  v8.acpMentionsOpen = false;
@@ -10994,21 +11063,25 @@ async function sendAcpChatMessage(customPrompt = null) {
10994
11063
  es.addEventListener('plan_update', () => {});
10995
11064
  es.addEventListener('turn_complete', () => {
10996
11065
  es.close();
10997
- v8.acpEventSource = null;
10998
- v8.acpStreamingActive = false;
10999
11066
  assistantTurn.isStreaming = false;
11000
11067
  assistantTurn.tools.forEach(t => { if (t.status === 'running') t.status = 'done'; });
11001
11068
  syncTurnToolsInPlace();
11002
11069
  syncTurnDiffChipsInPlace();
11003
11070
  updateStreamingRenderer(true);
11004
- syncAbortButtonIdle();
11071
+ if (v8.acpStreamSeq === myStreamSeq) {
11072
+ if (v8.acpEventSource === es) v8.acpEventSource = null;
11073
+ v8.acpStreamingActive = false;
11074
+ syncAbortButtonIdle();
11075
+ }
11005
11076
  });
11006
11077
  es.onerror = () => {
11007
11078
  es.close();
11008
- v8.acpEventSource = null;
11009
- v8.acpStreamingActive = false;
11010
11079
  assistantTurn.isStreaming = false;
11011
- syncAbortButtonIdle();
11080
+ if (v8.acpStreamSeq === myStreamSeq) {
11081
+ if (v8.acpEventSource === es) v8.acpEventSource = null;
11082
+ v8.acpStreamingActive = false;
11083
+ syncAbortButtonIdle();
11084
+ }
11012
11085
  };
11013
11086
  return;
11014
11087
  }
@@ -12813,7 +12886,7 @@ async function boot() {
12813
12886
  slices: seedSlices,
12814
12887
  currentRelease,
12815
12888
  consumerLockMode: persistedUiState?.consumerLockMode || state.envState?.consumerLockMode || 'editable',
12816
- securityTier: state.envState?.securityTier || persistedUiState?.securityTier || 'public',
12889
+ securityTier: persistedUiState?.securityTier || state.envState?.securityTier || 'public',
12817
12890
  sandboxStatus: state.envState?.sandboxStatus || { tier: 'kernel_enforced', reason: null },
12818
12891
  hasWorkspaceCopyIsolation: true,
12819
12892
  search: location.search,
@@ -5745,10 +5745,19 @@ export function mountCleanTestsModule(host, opts = {}) {
5745
5745
  statusUrl,
5746
5746
  } = resolveActiveTestStatusQuery(state, curRepoId, lp, { useReleaseSelectedTrack: false });
5747
5747
 
5748
+ tsState.onStatusSettledByKey ??= {};
5749
+ const remountTestsIfActive = () => {
5750
+ if ((!state.cleanTab || state.cleanTab === 'tests') && (!state.repoId || state.repoId === curRepoId)) {
5751
+ mountCleanTestsModule(host, opts);
5752
+ }
5753
+ };
5748
5754
  const fetchTestsStatus = (force = false) => {
5749
5755
  const needsForce = force || Boolean(tsState.needsStatusRefresh);
5750
- if (!needsForce && (Object.hasOwn(tsState.statusByKey, statusKey) || tsState.loadingByKey[statusKey])) return;
5751
- if (tsState.loadingByKey[statusKey] && !force) return;
5756
+ if (!needsForce && Object.hasOwn(tsState.statusByKey, statusKey)) return;
5757
+ if (tsState.loadingByKey[statusKey] && !force) {
5758
+ tsState.onStatusSettledByKey[statusKey] = remountTestsIfActive;
5759
+ return;
5760
+ }
5752
5761
  if (typeof apiJson !== 'function') return;
5753
5762
  tsState.needsStatusRefresh = false;
5754
5763
  tsState.loadingByKey[statusKey] = true;
@@ -5763,9 +5772,10 @@ export function mountCleanTestsModule(host, opts = {}) {
5763
5772
  })
5764
5773
  .finally(() => {
5765
5774
  tsState.loadingByKey[statusKey] = false;
5766
- if ((!state.cleanTab || state.cleanTab === 'tests') && (!state.repoId || state.repoId === curRepoId)) {
5767
- mountCleanTestsModule(host, opts);
5768
- }
5775
+ const settledCb = tsState.onStatusSettledByKey?.[statusKey];
5776
+ if (tsState.onStatusSettledByKey) delete tsState.onStatusSettledByKey[statusKey];
5777
+ remountTestsIfActive();
5778
+ if (typeof settledCb === 'function' && settledCb !== remountTestsIfActive) settledCb();
5769
5779
  });
5770
5780
  };
5771
5781
  fetchTestsStatus(false);
@@ -5804,12 +5814,6 @@ export function mountCleanTestsModule(host, opts = {}) {
5804
5814
  }
5805
5815
  };
5806
5816
 
5807
- const remountTestsIfActive = () => {
5808
- if ((!state.cleanTab || state.cleanTab === 'tests') && (!state.repoId || state.repoId === curRepoId)) {
5809
- mountCleanTestsModule(host, opts);
5810
- }
5811
- };
5812
-
5813
5817
  const startTestRun = async ({ mode, testFile = null }) => {
5814
5818
  if (tsState.runStatus === 'running') return;
5815
5819
  if (tsState.eventSource) { try { tsState.eventSource.close(); } catch {} tsState.eventSource = null; }
@@ -6018,7 +6022,7 @@ export function mountCleanTestsModule(host, opts = {}) {
6018
6022
  }]
6019
6023
  : []);
6020
6024
  const testsMetricsSentence = normalizedSuite.summary.executedTotal > 0
6021
- ? `实测通过 ${normalizedSuite.summary.passedCount} / ${normalizedSuite.summary.executedTotal} | E2E 场景 ${normalizedSuite.summary.e2eCaseCount} 条(冒烟 ${normalizedSuite.summary.smokeCaseCount} 条)。`
6025
+ ? `${!hasLocalPass ? '历史归档收据通过' : '实测通过'} ${normalizedSuite.summary.passedCount} / ${normalizedSuite.summary.executedTotal} | E2E 场景 ${normalizedSuite.summary.e2eCaseCount} 条(冒烟 ${normalizedSuite.summary.smokeCaseCount} 条)。`
6022
6026
  : (runtimeFallbackReceipt && runtimeFallbackReceipt.status
6023
6027
  ? `实测脚本通过 ${runtimeFallbackReceipt.status === 'passed' ? Math.max(testFiles.length, 1) : 0} / ${Math.max(testFiles.length, 1)}${normalizedSuite.summary.e2eCaseCount > 0 ? ` | E2E 场景 ${normalizedSuite.summary.e2eCaseCount} 条(冒烟 ${normalizedSuite.summary.smokeCaseCount} 条)` : `(共 ${Math.max(testFiles.length, 1)} 个验证脚本已核收)`}。`
6024
6028
  : `${testFiles.length > 0 ? `共 ${testFiles.length} 个验证脚本待首次运行` : '尚未配置测试脚本'}${normalizedSuite.summary.e2eCaseCount > 0 ? ` | E2E 场景 ${normalizedSuite.summary.e2eCaseCount} 条` : ''}。`);
@@ -6235,7 +6239,7 @@ export function mountCleanTestsModule(host, opts = {}) {
6235
6239
  disHint.dataset.disambig = '1';
6236
6240
  left.append(disHint);
6237
6241
  }
6238
- const right = mk('div', null, 'st-focus-title-row');
6242
+ const right = mk('div', null, 'st-focus-title-row st-case-row-right');
6239
6243
  right.append(
6240
6244
  badge(c.isSmoke ? '冒烟集' : '全量回归', c.isSmoke ? 'emerald' : 'zinc'),
6241
6245
  mk('span', isExpanded ? '▴' : '▾', 'st-muted-xs'),
@@ -6425,7 +6429,7 @@ export function mountCleanTestsModule(host, opts = {}) {
6425
6429
  mk('strong', tfLabel, 'st-primary-title'),
6426
6430
  mk('span', tf.moduleArea || tfIdentity.moduleArea || '自动化验证脚本', 'st-muted-xs'),
6427
6431
  );
6428
- const right = mk('div', null, 'st-focus-title-row');
6432
+ const right = mk('div', null, 'st-focus-title-row st-case-row-right');
6429
6433
  const singleRes = tsState.singleRunResults[filePath] || statusPayload?.scriptStatuses?.[filePath] || null;
6430
6434
  if (singleRes) {
6431
6435
  right.append(badge(
@@ -6727,8 +6731,11 @@ export function mountCleanReleaseModule(host, opts = {}) {
6727
6731
  remountReleaseIfActive();
6728
6732
  });
6729
6733
  }
6734
+ testsState.onStatusSettledByKey ??= {};
6730
6735
  const needStatusFetch = Boolean(testsState.needsStatusRefresh) || !Object.hasOwn(testsState.statusByKey, statusCacheKey);
6731
- if (!isReadOnlyConsumer && needStatusFetch && !testsState.loadingByKey[statusCacheKey] && typeof apiJson === 'function') {
6736
+ if (!isReadOnlyConsumer && needStatusFetch && testsState.loadingByKey[statusCacheKey]) {
6737
+ testsState.onStatusSettledByKey[statusCacheKey] = remountReleaseIfActive;
6738
+ } else if (!isReadOnlyConsumer && needStatusFetch && typeof apiJson === 'function') {
6732
6739
  testsState.needsStatusRefresh = false;
6733
6740
  testsState.loadingByKey[statusCacheKey] = true;
6734
6741
  void apiJson(statusUrl)
@@ -6739,7 +6746,10 @@ export function mountCleanReleaseModule(host, opts = {}) {
6739
6746
  .catch(() => null)
6740
6747
  .finally(() => {
6741
6748
  testsState.loadingByKey[statusCacheKey] = false;
6749
+ const settledCb = testsState.onStatusSettledByKey?.[statusCacheKey];
6750
+ if (testsState.onStatusSettledByKey) delete testsState.onStatusSettledByKey[statusCacheKey];
6742
6751
  remountReleaseIfActive();
6752
+ if (typeof settledCb === 'function' && settledCb !== remountReleaseIfActive) settledCb();
6743
6753
  });
6744
6754
  }
6745
6755
 
@@ -1103,9 +1103,16 @@ export function mountLifecyclePanel(host, {
1103
1103
  if (!data || !data.available) {
1104
1104
  const empty = mk('div', null, 'st-card st-guide-section');
1105
1105
  empty.append(
1106
- mk('h3', '当前工作区未配置全周期协同模型注册表', 'st-lc-sec-title'),
1107
- mk('p', '当高阶规划工作区声明 lifecycle-collaboration-model 集合或存在 lifecycle-ecosystem.registry.json 时,本驾驶舱将自动激活。', 'st-muted-xs'),
1106
+ mk('h3', '当前项目为独立工作区,未启用跨仓协同总览', 'st-lc-sec-title'),
1107
+ mk('p', '跨仓生态横展矩阵仅在多仓组合治理工作区配置后自动启用;常规单项目研发请直接沿「① 构想与对话」至「⑤ 试用与发布」推进。', 'st-muted-xs'),
1108
1108
  );
1109
+ if (typeof onOpenWorkbench === 'function') {
1110
+ const backBtn = mk('button', '返回当前项目工作台', 'st-btn st-btn-sm');
1111
+ backBtn.type = 'button';
1112
+ backBtn.setAttribute('data-testid', 'lifecycle-empty-back-btn');
1113
+ backBtn.addEventListener('click', () => { onOpenWorkbench(); });
1114
+ empty.append(backBtn);
1115
+ }
1109
1116
  host.append(empty);
1110
1117
  return;
1111
1118
  }
package/src/ui/stb-ui.mjs CHANGED
@@ -495,7 +495,7 @@ export function mountSampleTrialPanel(host, {
495
495
  subjField.append(domEl(doc, 'span', '绑定试跑技能对象(可选已发现仓库技能)', 'st-field-label'));
496
496
  const subjSel = domEl(doc, 'select', null, 'st-input');
497
497
  subjSel.dataset.testid = 'trial-subject-select';
498
- const defOpt = domEl(doc, 'option', `内置样例主体 (sample:${state.rtTrialPresetId})`);
498
+ const defOpt = domEl(doc, 'option', '内置默认样例(自动隔离沙箱执行)');
499
499
  defOpt.value = '';
500
500
  subjSel.append(defOpt);
501
501
  for (const sk of repoSkills) {
package/src/ui/studio.css CHANGED
@@ -6497,6 +6497,8 @@ button.st-clean-rail-node {
6497
6497
  transition: background 140ms var(--ease-fluid), color 140ms var(--ease-fluid);
6498
6498
  }
6499
6499
 
6500
+ .st-clean-rail-node:has(> .st-clean-rail-reason),
6501
+ .st-clean-rail-node:has(> .st-clean-rail-conclusion),
6500
6502
  button.st-clean-rail-node:has(> .st-clean-rail-reason),
6501
6503
  button.st-clean-rail-node:has(> .st-clean-rail-conclusion) {
6502
6504
  flex-direction: column;
@@ -6584,8 +6586,7 @@ button.st-clean-rail-node.is-guide-nav.is-active {
6584
6586
  min-width: 0;
6585
6587
  font-weight: 500;
6586
6588
  line-height: 1.35;
6587
- word-break: keep-all;
6588
- overflow-wrap: break-word;
6589
+ overflow-wrap: anywhere;
6589
6590
  }
6590
6591
 
6591
6592
  .st-clean-rail-symbol {
@@ -8827,6 +8828,69 @@ button.st-embed-companion-footer:hover,
8827
8828
  align-items: flex-start;
8828
8829
  gap: 8px;
8829
8830
  }
8831
+ .st-case-row-right {
8832
+ flex-wrap: nowrap;
8833
+ flex-shrink: 0;
8834
+ white-space: nowrap;
8835
+ gap: 6px;
8836
+ }
8837
+ .st-guide-visual-card > .st-badge {
8838
+ align-self: flex-start;
8839
+ width: fit-content;
8840
+ }
8841
+ [data-theme="dark"] ::-webkit-scrollbar {
8842
+ width: 8px;
8843
+ height: 8px;
8844
+ }
8845
+ [data-theme="dark"] ::-webkit-scrollbar-track {
8846
+ background: var(--st-surface);
8847
+ }
8848
+ [data-theme="dark"] ::-webkit-scrollbar-thumb {
8849
+ background: var(--st-border-strong);
8850
+ border-radius: var(--r-xs);
8851
+ }
8852
+ [data-theme="dark"] .st-modal-backdrop {
8853
+ background: rgba(2, 6, 23, 0.78);
8854
+ }
8855
+ [data-theme="dark"] .st-env-tier-card.is-active,
8856
+ [data-theme="dark"] .st-env-tier-btn.is-active,
8857
+ [data-theme="dark"] .st-env-tier-btn.is-active span,
8858
+ [data-theme="dark"] .st-env-tier-btn.is-selected,
8859
+ [data-theme="dark"] .st-env-tier-btn.is-selected span {
8860
+ color: #eef2ff;
8861
+ }
8862
+ #st-env-popover {
8863
+ padding-bottom: 14px;
8864
+ }
8865
+ .st-stb-kpi-item {
8866
+ min-width: 0;
8867
+ overflow: hidden;
8868
+ }
8869
+ .st-stb-kpi-item .st-badge {
8870
+ max-width: 100%;
8871
+ white-space: normal;
8872
+ word-break: break-all;
8873
+ line-height: 1.35;
8874
+ height: auto;
8875
+ }
8876
+ [data-theme="dark"] .st-wiz-card-desc,
8877
+ [data-theme="dark"] .st-template-card .st-muted-xs {
8878
+ color: #c7d2fe;
8879
+ }
8880
+ [data-testid="colleague-readonly-rail-status"] .st-clean-rail-node {
8881
+ cursor: default;
8882
+ }
8883
+ [data-testid="colleague-readonly-rail-status"] .st-clean-rail-conclusion {
8884
+ white-space: normal;
8885
+ overflow: visible;
8886
+ text-overflow: unset;
8887
+ }
8888
+ [data-consumer-view="1"] #st-lock-pair,
8889
+ [data-consumer-view="1"] #st-progress-pair,
8890
+ [data-consumer-view="1"] #st-role-pair,
8891
+ [data-consumer-view="1"] #st-edit-repo-meta-btn {
8892
+ display: none !important;
8893
+ }
8830
8894
 
8831
8895
 
8832
8896
 
@@ -115,7 +115,7 @@ export function mountTemplateWizardPanel(host, {
115
115
 
116
116
  const renderLeftForm = () => {
117
117
  leftCol.replaceChildren();
118
- leftCol.append(mkEl(doc, 'h4', '① 选择 Hub 起步编排蓝图模板', 'st-stb-subtitle'));
118
+ leftCol.append(mkEl(doc, 'h4', '① 选择起步编排蓝图模板', 'st-stb-subtitle'));
119
119
 
120
120
  const tplList = mkEl(doc, 'div', null, 'st-wizard-tpl-list');
121
121
  for (const tpl of templates) {
@@ -164,13 +164,13 @@ export function mountTemplateWizardPanel(host, {
164
164
  };
165
165
 
166
166
  formGrid.append(
167
- mkInputField('项目标识 (kebab-case) *', 'projectId', '例如:cost-audit-helper', 'wizard-project-id'),
167
+ mkInputField('项目标识(小写英文与连字符)*', 'projectId', '例如:cost-audit-helper', 'wizard-project-id'),
168
168
  mkInputField('项目中文名称 *', 'projectName', '例如:成本合规辅助技能族', 'wizard-project-name'),
169
169
  mkInputField('父目录路径(相对当前工作区)*', 'parentDir', '默认 .. (同级目录新建空文件夹)', 'wizard-parent-dir'),
170
170
  );
171
171
 
172
172
  const licField = mkEl(doc, 'label', null, 'st-field');
173
- licField.append(mkEl(doc, 'span', '开源/商业许可画像(Foundation 权威注册表)', 'st-field-label'));
173
+ licField.append(mkEl(doc, 'span', '开源/商业许可画像', 'st-field-label'));
174
174
  const licSel = mkEl(doc, 'select', null, 'st-input');
175
175
  licSel.disabled = !writable;
176
176
  licSel.dataset.testid = 'wizard-licensing-select';
@@ -251,8 +251,8 @@ export function mountTemplateWizardPanel(host, {
251
251
  for (const [k, v, tone] of [
252
252
  ['目标路径状态', targetOk ? `可安全创建 (${pv.target.displayPath})` : `非空或不可用 (${pv.target?.state})`, targetOk ? 'emerald' : 'rose'],
253
253
  ['拟写入文件总数', `${pv.counts?.totalFiles ?? 0} 个文件`, 'indigo'],
254
- ['受管契约 / 手写源', `受管 ${pv.counts?.foundationManaged ?? 0} | 手写 ${pv.counts?.handwritten ?? 0}`, 'zinc'],
255
- ['planDigest 预演摘要', `sha256:${shortDigest(pv.planDigest, 16)}`, 'indigo'],
254
+ ['受管配置 / 手写源', `受管 ${pv.counts?.foundationManaged ?? 0} | 手写 ${pv.counts?.handwritten ?? 0}`, 'zinc'],
255
+ ['预演确认摘要', `sha256:${shortDigest(pv.planDigest, 16)}`, 'indigo'],
256
256
  ]) {
257
257
  const item = mkEl(doc, 'div', null, `st-stb-kpi-item is-${tone}`);
258
258
  item.append(mkEl(doc, 'div', k, 'st-muted-xs'));
@@ -265,8 +265,8 @@ export function mountTemplateWizardPanel(host, {
265
265
  if (pv.template?.blueprintDigestSha256) {
266
266
  const bpBar = mkEl(doc, 'div', null, 'st-lc-probe-box');
267
267
  bpBar.append(
268
- mkEl(doc, 'strong', `已绑定编排蓝图契约:${pv.template.title}`),
269
- mkEl(doc, 'div', `blueprintRef = sha256:${pv.template.blueprintDigestSha256}`, 'st-lc-probe-source st-tabular'),
268
+ mkEl(doc, 'strong', `已绑定编排蓝图:${pv.template.title}`),
269
+ mkEl(doc, 'div', `蓝图校验摘要:sha256:${shortDigest(pv.template.blueprintDigestSha256, 20)}`, 'st-lc-probe-source st-tabular'),
270
270
  );
271
271
  rightCol.append(bpBar);
272
272
  }
@@ -275,7 +275,7 @@ export function mountTemplateWizardPanel(host, {
275
275
  const tbl = mkEl(doc, 'table', null, 'st-stb-table');
276
276
  const thead = mkEl(doc, 'thead');
277
277
  const hr = mkEl(doc, 'tr');
278
- for (const h of ['拟生成相对路径', '闭世界分类', '来源层', '内容 SHA-256 前缀']) {
278
+ for (const h of ['拟生成相对路径', '文件类别', '来源层', '内容校验前缀']) {
279
279
  hr.append(mkEl(doc, 'th', h));
280
280
  }
281
281
  thead.append(hr);
@@ -284,7 +284,7 @@ export function mountTemplateWizardPanel(host, {
284
284
  const tr = mkEl(doc, 'tr');
285
285
  tr.append(
286
286
  mkEl(doc, 'td', f.path, 'st-tabular'),
287
- mkEl(doc, 'td', f.fileClass === 'managed' ? '受管锁绑定' : '手写源事实'),
287
+ mkEl(doc, 'td', f.fileClass === 'managed' ? '受管配置' : '手写源文件'),
288
288
  mkEl(doc, 'td', f.source === 'foundation-scaffold' ? '官方工程骨架' : '蓝图与图谱种子'),
289
289
  mkEl(doc, 'td', shortDigest(f.sha256, 14), 'st-tabular'),
290
290
  );
@@ -320,7 +320,7 @@ export function mountTemplateWizardPanel(host, {
320
320
  mkEl(
321
321
  doc,
322
322
  'span',
323
- `【HITL 摘要确认】我已核对目标空路径 (${pv.target.displayPath}) 与预演摘要 sha256:${shortDigest(pv.planDigest, 16)},确认授权在本地创建骨架。`,
323
+ `【人工确认】我已核对目标空路径 (${pv.target.displayPath}) 与预演摘要 sha256:${shortDigest(pv.planDigest, 16)},确认授权在本地创建骨架。`,
324
324
  ),
325
325
  );
326
326
 
@@ -392,8 +392,19 @@ export async function openTemplateWizardModal({
392
392
  const modalShell = mkEl(doc, 'div', null, 'st-card st-modal st-wizard-modal');
393
393
  modalShell.append(mkEl(doc, 'p', '正在加载 Foundation 许可画像与 Hub 模板目录…', 'st-muted-xs'));
394
394
  backdrop.append(modalShell);
395
+ const closeBackdrop = () => {
396
+ doc.removeEventListener('keydown', onEscClose);
397
+ backdrop.remove();
398
+ };
399
+ const onEscClose = ev => {
400
+ if (ev.key === 'Escape') {
401
+ ev.preventDefault?.();
402
+ closeBackdrop();
403
+ }
404
+ };
405
+ doc.addEventListener('keydown', onEscClose);
395
406
  backdrop.addEventListener('click', ev => {
396
- if (ev.target === backdrop) backdrop.remove();
407
+ if (ev.target === backdrop) closeBackdrop();
397
408
  });
398
409
  doc.body.append(backdrop);
399
410
 
@@ -405,9 +416,9 @@ export async function openTemplateWizardModal({
405
416
  doc,
406
417
  apiJson,
407
418
  isModal: true,
408
- onCancel: () => backdrop.remove(),
419
+ onCancel: closeBackdrop,
409
420
  onCreated: async created => {
410
- backdrop.remove();
421
+ closeBackdrop();
411
422
  await onCreated?.(created);
412
423
  },
413
424
  });
@@ -1205,6 +1205,7 @@ export function serializeUiStateForPersistence(navState) {
1205
1205
  triView: TRI_VIEWS.includes(navState?.triView) ? navState.triView : 'wizard',
1206
1206
  developerDetailsExpanded: Boolean(navState?.developerDetailsExpanded),
1207
1207
  consumerLockMode: navState?.consumerLockMode === 'locked_consumer' ? 'locked_consumer' : 'editable',
1208
+ securityTier: navState?.securityTier === 'intranet' ? 'intranet' : (navState?.securityTier === 'unconfigured' ? 'unconfigured' : 'public'),
1208
1209
  activeScreen: navState?.activeScreen || 'launcher',
1209
1210
  activeScenario: navState?.activeScenario || 'launcher',
1210
1211
  sidebarCollapsed: Boolean(navState?.sidebarCollapsed),