dsh-chief 1.2.0 → 1.3.0
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.
- package/CHANGELOG.md +51 -0
- package/README.en.md +28 -13
- package/README.md +27 -12
- package/api-routes.js +1274 -0
- package/archive-cabinets.js +766 -0
- package/archive-core.js +761 -0
- package/archive-dossiers.js +1185 -0
- package/archive-precipitated.js +428 -0
- package/archives.js +63 -2991
- package/auto-continue.js +11 -1
- package/board-actions.js +1879 -0
- package/board-schema.js +580 -0
- package/board-store.js +392 -0
- package/chief-approvals.js +841 -0
- package/chief-archives.js +905 -0
- package/chief-commands.js +2513 -0
- package/chief-compaction.js +591 -0
- package/chief-executor.js +859 -153
- package/chief-models.js +578 -0
- package/chief-network.js +720 -0
- package/chief-review.js +1064 -0
- package/chief-state.js +1777 -0
- package/chief-view.js +553 -0
- package/chief.js +94 -7492
- package/client.js +11959 -10923
- package/digest.js +8 -8
- package/index.js +154 -6095
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/model-tools.js +755 -0
- package/package.json +48 -17
- package/runtime-hooks.js +629 -0
- package/subagent-runtime.js +1399 -0
package/digest.js
CHANGED
|
@@ -410,17 +410,17 @@ function teamTaskLines(tasks, max) {
|
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
function chiefPostureLine(permissionMode) {
|
|
413
|
-
const mode = String(permissionMode || '
|
|
414
|
-
if (mode === 'read-only') {
|
|
415
|
-
return '🛡️ 权限 posture
|
|
413
|
+
const mode = String(permissionMode || 'advisor').trim()
|
|
414
|
+
if (mode === 'advisor' || mode === 'read-only') {
|
|
415
|
+
return '🛡️ 权限 posture=L0 顾问模式 (advisor · 只读默认):只观察、只分析、只建议;禁改工作区与工作流;需要更高参谋协同请调 chief_board({ action: "permission.request", targetMode: "assistant|strategist|chief", reason })。'
|
|
416
416
|
}
|
|
417
|
-
if (mode === '
|
|
418
|
-
return '🛡️ 权限 posture
|
|
417
|
+
if (mode === 'assistant') {
|
|
418
|
+
return '🛡️ 权限 posture=L1 助手模式 (assistant):允许维护参谋看板/记忆/档案;不改项目工作区、不接管主子代理工作流;如需授权请调 chief_board({ action: "permission.request" })。'
|
|
419
419
|
}
|
|
420
|
-
if (mode === 'auto-review') {
|
|
421
|
-
return '🛡️ 权限 posture
|
|
420
|
+
if (mode === 'strategist' || mode === 'workspace-write' || mode === 'auto-review') {
|
|
421
|
+
return '🛡️ 权限 posture=L2 参谋模式 (strategist · 逐项授权):可申请改工作区与调主/子代理工作流,每项受控操作需用户弹窗「允许本次操作」后执行,严守禁止红线。'
|
|
422
422
|
}
|
|
423
|
-
return '🛡️ 权限 posture
|
|
423
|
+
return '🛡️ 权限 posture=L3 参谋长模式 (chief · 已主动确认风险):参谋拥有最高自主实权(全盘读写、测试命令、切换/协调主子代理与压缩);主模型/子代理严守安全卫兵硬规则与禁止红线。'
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
/** The injected section. Never throws: a broken digest must not break a prompt. */
|