@mstar-harness/dsh 3.7.0 → 3.7.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.
- package/README.i18n.yaml +2 -2
- package/README.md +4 -2
- package/README.zh.md +4 -2
- package/dist/gates/_shared.d.ts +18 -7
- package/dist/gates/fallbacks-advisory.d.ts +53 -15
- package/dist/gates/role-persona.d.ts +121 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +268 -161
- package/harness-skills/mstar-harness-core/SKILL.md +8 -1
- package/harness-skills/mstar-host/references/omp.md +2 -2
- package/harness-skills/mstar-host/references/zcode.md +7 -1
- package/package.json +1 -1
- package/harness-agents/project-manager.md +0 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-harness-core
|
|
3
|
-
description: Morning Star (启明星) harness **生命周期 / 授权语义权威与全局入口** —— 信息源优先级、最小交付循环、状态机与 Done 权限、Task category 路由(含 quick 禁豁免)、@explore 边界、长任务纪律、核心研发守则、护栏不变量、Morning Star Skill 索引与宿主入口。加载**选择**权威在 **`mstar-roles`**(hub § Load Order 按 Assignment `Skill presets:` 决策;本 skill 不另设全局必读表):PM 与标准路线仍以本 skill 为全局入口;独立直接调用专题时本 skill 是首个依赖;explicit `none` 角色路线以身份 + 角色自有方法自洽(唯一 hub bootstrap 例外)。`@project-manager` 开轮必读 + `mstar-dispatch-gates` / `mstar-phase-gates` / `mstar-conventions` 等;实现/审查/QA 按其角色 preset 清单加载。Prepare/派发/Git/residual/QC 细则在专题 skill
|
|
3
|
+
description: Morning Star (启明星) harness **生命周期 / 授权语义权威与全局入口** —— 信息源优先级、最小交付循环、状态机与 Done 权限、Task category 路由(含 quick 禁豁免)、@explore 边界、长任务纪律、核心研发守则、护栏不变量、Morning Star Skill 索引与宿主入口。加载**选择**权威在 **`mstar-roles`**(hub § Load Order 按 Assignment `Skill presets:` 决策;本 skill 不另设全局必读表):PM 与标准路线仍以本 skill 为全局入口;独立直接调用专题时本 skill 是首个依赖;explicit `none` 角色路线以身份 + 角色自有方法自洽(唯一 hub bootstrap 例外)。`@project-manager` 开轮必读 + `mstar-dispatch-gates` / `mstar-phase-gates` / `mstar-conventions` 等;实现/审查/QA 按其角色 preset 清单加载。Prepare/派发/Git/residual/QC 细则在专题 skill,不在此重复。版本漂移(version drift)/ CLI 与插件版本不一致 / 提示更新插件或 CLI → 按「版本对齐」节处理(doctor 检查 + 定向更新提示)。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Morning Star Harness Core(启明星核心)
|
|
@@ -123,6 +123,13 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
123
123
|
| Kimi | `Agent`/`AgentSwarm`(仅 `coder`/`explore`/`plan`);角色绑定在 prompt(C5b);Plan 双写 → `references/kimi.md` · `kimi-plan-mode-bridge.md` |
|
|
124
124
|
| 其它 | 同 `mstar-host` skill;按工具信号选 reference |
|
|
125
125
|
|
|
126
|
+
## 版本对齐(CLI ↔ host 插件)
|
|
127
|
+
|
|
128
|
+
- 全局 CLI 与已安装的宿主插件**独立升级**;版本漂移是已知故障源(skills/commands 与 CLI 预期不再匹配)。
|
|
129
|
+
- 检查:`mstar-harness doctor --target <host>`(全部宿主已实现:opencode / cursor / codex / zcode / omp / dsh / kimi)。
|
|
130
|
+
- **CLI 较新** → 提示用户更新宿主插件;**插件较新** → 提示用户更新全局 CLI(`npm i -g @mstar-harness/cli@latest`)。
|
|
131
|
+
- 触发纪律:harness 行为异常/疑似过期、已知新版本发布后、或用户要求时运行——**不是**每个会话都跑。
|
|
132
|
+
|
|
126
133
|
## 核心研发守则
|
|
127
134
|
|
|
128
135
|
全局工程不变量,适用于所有角色;实现级操作细节(The Ladder、surgical、debugging 等)→ **`mstar-coding-behavior`**。
|
|
@@ -11,7 +11,7 @@ Parallel PM dispatch: read **`parallel-dispatch.md`** when dispatching **N ≥ 2
|
|
|
11
11
|
- Plugin markers: **`.omp-plugin/plugin.json`** (Morning Star host marker) and **`.claude-plugin/plugin.json`** (Claude-compatible marketplace discovery). The **npm package** (`@mstar-harness/omp`) ships its own package-root `plugin.json` + `skills/` + `commands/` + `agents/` + `hooks/` + `tools/` mirrors; the **maintainer link path** is now `<repo>/packages/omp` (built) — hooks/tools moved into the package (2026-09-03), so linking the repo root provides skills/commands/agents only, with NO runtime gates.
|
|
12
12
|
- Runtime skills: package `skills/` (or repo `skills/` on the link path) discovered after `omp plugin install` / `omp plugin link` (OMP extension-package sub-discovery) or Claude marketplace install.
|
|
13
13
|
- Plugin commands: `commands/<name>.md` → slash **`/<name>`** (e.g. `/iteration-start`). omp uses the **filename** as the command name (no `morning-star-harness:` prefix).
|
|
14
|
-
- Plugin agents: **`agents/*.md`** are discovered into the live **`task.agent`** list after install/link + reload. Morning Star **subagent** role ids (`product-manager`, `architect`, `fullstack-dev`, `qc-specialist`, …) are valid `agent` values **when listed** — see C5. `project-manager`
|
|
14
|
+
- Plugin agents: **`agents/*.md`** are discovered into the live **`task.agent`** list after install/link + reload. Morning Star **subagent** role ids (`product-manager`, `architect`, `fullstack-dev`, `qc-specialist`, …) are valid `agent` values **when listed** — see C5. `project-manager` ships **no agent shell here** — the `mode: primary` seat is OpenCode-only (`packages/opencode/agents/`); PM enters via the `pm` skill and is never a `task` dispatch target.
|
|
15
15
|
- **No Kimi-style `sessionStart.skill`** — enter PM manually via **`/skill:pm`** (or the `pm` skill), then **Read next** → `mstar-harness-core` → `project-manager.md`.
|
|
16
16
|
- Install (user-scoped, recommended):
|
|
17
17
|
- `omp plugin install @mstar-harness/omp`
|
|
@@ -101,7 +101,7 @@ Single-task shorthand may exist depending on host version — always match the l
|
|
|
101
101
|
|
|
102
102
|
### Notes
|
|
103
103
|
|
|
104
|
-
-
|
|
104
|
+
- PM is the **primary** orchestration seat via the `pm` skill (no PM agent shell is bundled here — the `mode: primary` shell is OpenCode-only, `packages/opencode/agents/`). Do not dispatch PM-to-PM via `task` unless the live schema explicitly lists it **and** the Assignment requires it.
|
|
105
105
|
- Host generics (`scout`, `reviewer`, `designer`, …) remain useful for non-role orientation / assist — they do not replace a listed Morning Star role agent for role-owned deliverables.
|
|
106
106
|
|
|
107
107
|
### Role binding in prompt (C5b — required)
|
|
@@ -13,7 +13,7 @@ Parallel PM dispatch: read **`parallel-dispatch.md`** when dispatching **N ≥ 2
|
|
|
13
13
|
- Plugin commands: repo `commands/` → `/morning-star-harness:<name>` (e.g. `/morning-star-harness:iteration-start`).
|
|
14
14
|
- Plugin agents: repo `agents/*.md` (role frontmatter `name` + **single-line quoted English `description`** — ZCode's flat frontmatter parser cannot read `|-` block scalars and silently drops nested `tools`/`permission` maps). ZCode registers them as callable `subagent_type`s in both bare (`fullstack-dev`) and plugin-qualified (`morning-star-harness:fullstack-dev`) forms (see C5).
|
|
15
15
|
- **No `sessionStart.skill`** (ZCode has no Kimi-style session auto-load) — enter PM manually via **`/morning-star-harness:pm`** or the **`pm`** skill, then **Read next** → `mstar-harness-core` → `project-manager.md`.
|
|
16
|
-
- **Plugin hooks** (`hooks/hooks.json`, ZCode-only surface): **SessionStart** injects harness-workspace context ({HARNESS_DIR} + `status.json` summary) when a harness workspace is detected — a partial substitute for the missing session auto-load; **PreToolUse (Bash)** enforces the `mstar-branch-worktree` gates deterministically (no direct commit on the default protected branch → `MSTAR_ALLOW_DEFAULT_BRANCH_COMMIT=1` escape; no bare `git push --force` → use `--force-with-lease`; disable
|
|
16
|
+
- **Plugin hooks** (`hooks/hooks.json`, ZCode-only surface): **SessionStart** injects harness-workspace context ({HARNESS_DIR} + `status.json` summary) when a harness workspace is detected — a partial substitute for the missing session auto-load; **PreToolUse (Bash)** enforces the `mstar-branch-worktree` gates deterministically (no direct commit on the default protected branch → `MSTAR_ALLOW_DEFAULT_BRANCH_COMMIT=1` escape; no bare `git push --force` → use `--force-with-lease`; disable with `MSTAR_BRANCH_GUARD=off`); **PreToolUse (Write|Edit)** runs the engine-backed coordination-write gate (blocks writes to harness coordination documents under opt-in `.mstarc`/compass hard enforcement; disable with `MSTAR_WRITE_GATE=off`). Silent no-op outside git repos / harness workspaces. Skill text stays authoritative; these hooks only backstop it.
|
|
17
17
|
- Install (user-scoped, recommended): `npx @mstar-harness/cli init --target zcode --scope global`, then in ZCode **Settings → Plugin Management → Discover** install **morning-star-harness** from the **mstar-local** marketplace. Direct-add also works without the CLI: the repo ships `.claude-plugin/marketplace.json` (root `marketplace.json` fallback), which ZCode discovers when refreshing a `github`-source marketplace.
|
|
18
18
|
- Plugins are **user-scoped** (all projects); managed copy lives under `~/.zcode/cli/plugins/` after install.
|
|
19
19
|
- Project `.agents/skills/` symlinks are **not** required when using the plugin — commands and skills come from the plugin mount.
|
|
@@ -156,3 +156,9 @@ Cannot emit required **N** → **`Blocked`**.
|
|
|
156
156
|
- Session todos (`TodoWrite`) are not durable SSOT unless mirrored to `{HARNESS_DIR}`.
|
|
157
157
|
- Morning Star roles **are** registered as ZCode subagent types from `agents/*.md` — but the shells are thin, so role binding is **still always** prompt + skill load (C5b); prefer bare role ids, the qualified form can fall back to the default prompt.
|
|
158
158
|
- ZCode has no `sessionStart.skill`; new sessions do **not** auto-load PM — invoke `/morning-star-harness:pm` or `/skill:pm` manually.
|
|
159
|
+
|
|
160
|
+
## Plugin/CLI version alignment
|
|
161
|
+
|
|
162
|
+
- Installed plugin versions live under `~/.zcode/cli/plugins/cache/<marketplace>/morning-star-harness/<version>/` (one version directory per install; highest semver wins).
|
|
163
|
+
- Update entry: **Settings → Plugin Management → update from the `mstar-local` marketplace**.
|
|
164
|
+
- Behavioral contract (when to check, which side to update) → **`mstar-harness-core`**「版本对齐(CLI ↔ host 插件)」.
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: project-manager
|
|
3
|
-
description: "Project Manager - coordinate the team, track progress, and orchestrate execution across roles."
|
|
4
|
-
mode: primary
|
|
5
|
-
tools:
|
|
6
|
-
write: true
|
|
7
|
-
edit: true
|
|
8
|
-
bash: true
|
|
9
|
-
permission:
|
|
10
|
-
task:
|
|
11
|
-
"*": allow
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Morning Star Role Binding
|
|
15
|
-
|
|
16
|
-
You are `project-manager`. The complete role prompt is provided by the `mstar-roles` skill.
|
|
17
|
-
|
|
18
|
-
- Skill: `mstar-roles` skill
|
|
19
|
-
- Role reference: `references/project-manager.md` in the `mstar-roles` skill
|
|
20
|
-
- Role parameters: `role_id=project-manager`, `mode=primary`
|
|
21
|
-
|
|
22
|
-
## Mandatory First Steps
|
|
23
|
-
|
|
24
|
-
This file is a routing shell — NOT your complete role prompt. **Before any work, load in order:**
|
|
25
|
-
|
|
26
|
-
1. `skill` → `mstar-harness-core` (state machine, gates, routing — global SSOT)
|
|
27
|
-
2. `skill` → `mstar-roles` (role mapping & parameter table)
|
|
28
|
-
3. `Read` → `references/project-manager.md` listed above
|
|
29
|
-
|
|
30
|
-
System reminders like "ALREADY LOADED" refer to prior sessions — you MUST load these for THIS session.
|