@mstar-harness/dsh 2.1.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.
Files changed (146) hide show
  1. package/README.i18n.yaml +7 -0
  2. package/README.md +448 -0
  3. package/README.zh.md +221 -0
  4. package/bundle/README.md +312 -0
  5. package/bundle/cordis.patch.yml +17 -0
  6. package/dist/client/index.d.ts +14 -0
  7. package/dist/client/panel/PanelView.d.ts +67 -0
  8. package/dist/client/panel/TabNav.d.ts +28 -0
  9. package/dist/client/panel/graph/event-log.d.ts +76 -0
  10. package/dist/client/panel/graph/project-graph.d.ts +499 -0
  11. package/dist/client/panel/graph/schema.d.ts +224 -0
  12. package/dist/client/panel/guards.d.ts +12 -0
  13. package/dist/client/panel/locale.d.ts +134 -0
  14. package/dist/client/panel/pages/AgentCanvasPage.d.ts +363 -0
  15. package/dist/client/panel/pages/EventLogPage.d.ts +48 -0
  16. package/dist/client/panel/pages/IterationInfoSection.d.ts +80 -0
  17. package/dist/client/panel/pages/IterationTaskPage.d.ts +37 -0
  18. package/dist/client/panel/panel-meta.d.ts +18 -0
  19. package/dist/client/panel/plan-sort.d.ts +54 -0
  20. package/dist/client/panel/sidebar.d.ts +17 -0
  21. package/dist/client/panel/state-section.d.ts +23 -0
  22. package/dist/client/panel/use-mstar-engine-status.d.ts +42 -0
  23. package/dist/client/panel/zones/Legend.d.ts +18 -0
  24. package/dist/client/panel/zones/TaskBoard.d.ts +40 -0
  25. package/dist/client.d.ts +1 -0
  26. package/dist/client.js +4486 -0
  27. package/dist/gates/_shared.d.ts +198 -0
  28. package/dist/gates/adapter.d.ts +131 -0
  29. package/dist/gates/agent-flow.d.ts +320 -0
  30. package/dist/gates/catalog.d.ts +118 -0
  31. package/dist/gates/dispatch.d.ts +152 -0
  32. package/dist/gates/seams.d.ts +152 -0
  33. package/dist/gates/skill-lint.d.ts +87 -0
  34. package/dist/gates/status.d.ts +81 -0
  35. package/dist/gates/tools.d.ts +37 -0
  36. package/dist/index.d.ts +107 -0
  37. package/dist/index.js +5748 -0
  38. package/dist/invariant.d.ts +15 -0
  39. package/dist/invariant.js +29 -0
  40. package/dist/service.d.ts +96 -0
  41. package/dist/types.d.ts +241 -0
  42. package/harness-commands/codebase-audit.md +40 -0
  43. package/harness-commands/iteration-drive.md +129 -0
  44. package/harness-commands/iteration-loop.md +139 -0
  45. package/harness-commands/iteration-start.md +179 -0
  46. package/harness-skills/grill-me/SKILL.md +10 -0
  47. package/harness-skills/mstar-audit/SKILL.md +183 -0
  48. package/harness-skills/mstar-audit/references/audit-playbook.md +130 -0
  49. package/harness-skills/mstar-audit/references/finding-format.md +65 -0
  50. package/harness-skills/mstar-branch-worktree/SKILL.md +219 -0
  51. package/harness-skills/mstar-branch-worktree/references/parallel-writable-pre-dispatch.md +68 -0
  52. package/harness-skills/mstar-coding-behavior/SKILL.md +147 -0
  53. package/harness-skills/mstar-compound/SKILL.md +105 -0
  54. package/harness-skills/mstar-compound/assets/resolution-template.md +94 -0
  55. package/harness-skills/mstar-compound/references/category-mapping.md +37 -0
  56. package/harness-skills/mstar-compound/references/compound-workflow.md +155 -0
  57. package/harness-skills/mstar-compound/references/concepts-vocabulary.md +44 -0
  58. package/harness-skills/mstar-compound/references/schema.yaml +122 -0
  59. package/harness-skills/mstar-compound-refresh/SKILL.md +140 -0
  60. package/harness-skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +164 -0
  61. package/harness-skills/mstar-design-md/SKILL.md +142 -0
  62. package/harness-skills/mstar-design-md/references/completeness-checklist.md +181 -0
  63. package/harness-skills/mstar-design-md/references/design-md-spec.md +508 -0
  64. package/harness-skills/mstar-design-md/references/vercel-example.md +200 -0
  65. package/harness-skills/mstar-design-md/templates/DESIGN.dark.md.template +354 -0
  66. package/harness-skills/mstar-design-md/templates/DESIGN.md.template +474 -0
  67. package/harness-skills/mstar-dispatch-gates/SKILL.md +128 -0
  68. package/harness-skills/mstar-dispatch-gates/references/leaf-executor-checklist.md +23 -0
  69. package/harness-skills/mstar-harness-core/SKILL.md +180 -0
  70. package/harness-skills/mstar-host/SKILL.md +78 -0
  71. package/harness-skills/mstar-host/references/_shared/host-role-binding-core.md +51 -0
  72. package/harness-skills/mstar-host/references/_shared/plan-mode-bridge-core.md +91 -0
  73. package/harness-skills/mstar-host/references/codex.md +61 -0
  74. package/harness-skills/mstar-host/references/cursor-plan-mode-bridge.md +159 -0
  75. package/harness-skills/mstar-host/references/cursor.md +183 -0
  76. package/harness-skills/mstar-host/references/dsh.md +502 -0
  77. package/harness-skills/mstar-host/references/kimi-plan-mode-bridge.md +36 -0
  78. package/harness-skills/mstar-host/references/kimi.md +136 -0
  79. package/harness-skills/mstar-host/references/omp-plan-mode-bridge.md +32 -0
  80. package/harness-skills/mstar-host/references/omp.md +244 -0
  81. package/harness-skills/mstar-host/references/opencode.md +76 -0
  82. package/harness-skills/mstar-host/references/parallel-dispatch.md +68 -0
  83. package/harness-skills/mstar-host/references/zcode-plan-mode-bridge.md +36 -0
  84. package/harness-skills/mstar-host/references/zcode.md +129 -0
  85. package/harness-skills/mstar-iteration/SKILL.md +393 -0
  86. package/harness-skills/mstar-iteration/references/autonomous-direction-lock.md +90 -0
  87. package/harness-skills/mstar-iteration/references/iteration-artifact-boundaries.md +103 -0
  88. package/harness-skills/mstar-iteration/references/iteration-compass-template.md +142 -0
  89. package/harness-skills/mstar-iteration/references/iteration-corpus-hygiene.md +45 -0
  90. package/harness-skills/mstar-iteration/references/iteration-workspace-readme-template.md +27 -0
  91. package/harness-skills/mstar-iteration/references/phase-2-worktree-lease.md +193 -0
  92. package/harness-skills/mstar-iteration/references/phase-3-iteration-close.md +95 -0
  93. package/harness-skills/mstar-iteration/references/phase-4-5-pr-delivery.md +84 -0
  94. package/harness-skills/mstar-iteration/references/phase5-helper-discovery.md +24 -0
  95. package/harness-skills/mstar-phase-gates/SKILL.md +112 -0
  96. package/harness-skills/mstar-plan-artifacts/SKILL.md +46 -0
  97. package/harness-skills/mstar-plan-artifacts/references/done-compaction.md +88 -0
  98. package/harness-skills/mstar-plan-artifacts/references/knowledge-and-designs.md +100 -0
  99. package/harness-skills/mstar-plan-artifacts/references/plan-files-and-reports.md +99 -0
  100. package/harness-skills/mstar-plan-artifacts/references/plan-quality-bar.md +99 -0
  101. package/harness-skills/mstar-plan-artifacts/references/status-and-residuals.md +570 -0
  102. package/harness-skills/mstar-plan-artifacts/templates/README.md +9 -0
  103. package/harness-skills/mstar-plan-artifacts/templates/notes.empty.json +5 -0
  104. package/harness-skills/mstar-plan-artifacts/templates/plan.main.md +54 -0
  105. package/harness-skills/mstar-plan-artifacts/templates/plans-done.empty.json +3 -0
  106. package/harness-skills/mstar-plan-artifacts/templates/status.empty.json +7 -0
  107. package/harness-skills/mstar-plan-conventions/SKILL.md +165 -0
  108. package/harness-skills/mstar-plan-conventions/references/artifact-storage-paths.md +50 -0
  109. package/harness-skills/mstar-plan-conventions/references/effort-estimation.md +38 -0
  110. package/harness-skills/mstar-plan-conventions/references/harness-bootstrap-and-agents-layering.md +93 -0
  111. package/harness-skills/mstar-review-qc/SKILL.md +60 -0
  112. package/harness-skills/mstar-review-qc/references/review-responsibility-boundaries.md +54 -0
  113. package/harness-skills/mstar-roles/SKILL.md +86 -0
  114. package/harness-skills/mstar-roles/references/_shared/leaf-executor-core.md +46 -0
  115. package/harness-skills/mstar-roles/references/architect.md +114 -0
  116. package/harness-skills/mstar-roles/references/code-reviewer.md +109 -0
  117. package/harness-skills/mstar-roles/references/frontend-dev.md +70 -0
  118. package/harness-skills/mstar-roles/references/fullstack-dev-shared.md +89 -0
  119. package/harness-skills/mstar-roles/references/ops-engineer.md +78 -0
  120. package/harness-skills/mstar-roles/references/product-manager.md +107 -0
  121. package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +198 -0
  122. package/harness-skills/mstar-roles/references/project-manager/plan-management.md +61 -0
  123. package/harness-skills/mstar-roles/references/project-manager/qa-trigger-matrix.md +56 -0
  124. package/harness-skills/mstar-roles/references/project-manager/qc-and-residuals.md +98 -0
  125. package/harness-skills/mstar-roles/references/project-manager/routing-and-dev-allocation.md +99 -0
  126. package/harness-skills/mstar-roles/references/project-manager.md +310 -0
  127. package/harness-skills/mstar-roles/references/prompt-engineer.md +71 -0
  128. package/harness-skills/mstar-roles/references/qa-engineer/acceptance-gate.md +62 -0
  129. package/harness-skills/mstar-roles/references/qa-engineer.md +79 -0
  130. package/harness-skills/mstar-roles/references/qc-specialist/deep-review-lenses.md +95 -0
  131. package/harness-skills/mstar-roles/references/qc-specialist/report-template.md +72 -0
  132. package/harness-skills/mstar-roles/references/qc-specialist/reviewer-checklist.md +44 -0
  133. package/harness-skills/mstar-roles/references/qc-specialist/reviewer-workflow.md +57 -0
  134. package/harness-skills/mstar-roles/references/qc-specialist-shared.md +128 -0
  135. package/harness-skills/mstar-roles/references/writing-specialist.md +59 -0
  136. package/harness-skills/mstar-sdd/SKILL.md +133 -0
  137. package/harness-skills/mstar-sdd/references/file-handoffs.md +83 -0
  138. package/harness-skills/mstar-sdd/references/implementer-continuation-prompt.md +44 -0
  139. package/harness-skills/mstar-sdd/references/implementer-prompt.md +56 -0
  140. package/harness-skills/mstar-sdd/references/sticky-implementer-session.md +103 -0
  141. package/harness-skills/mstar-sdd/references/task-reviewer-prompt.md +53 -0
  142. package/harness-skills/mstar-skill-authoring/SKILL.md +162 -0
  143. package/harness-skills/mstar-skill-authoring/references/skillsbench-authoring.md +117 -0
  144. package/harness-skills/mstar-strategy/SKILL.md +130 -0
  145. package/harness-skills/pm/SKILL.md +40 -0
  146. package/package.json +92 -0
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Morning Star harness gates for dsh (DeepSeek Harness).
3
+ *
4
+ * Cordis function plugin: named exports only — the dsh Loader discards the plugin's namespace
5
+ * (dropping `inject` metadata) when a default export is present, so this module never
6
+ * default-exports. Registrations happen through `ctx` effects/events in `apply`.
7
+ *
8
+ * @module @mstar-harness/dsh
9
+ */
10
+ import { type Context } from '@deepseek-ai/cordis';
11
+ import { Config } from './gates/_shared.ts';
12
+ import type { StatusGateAdvisory } from './gates/status.ts';
13
+ import type { SkillLintAdvisory } from './gates/skill-lint.ts';
14
+ import type { SeamLintAdvisory } from './gates/seams.ts';
15
+ import { DshHostAdapter } from './gates/adapter.ts';
16
+ import type { DispatchGateAdvisory } from './gates/dispatch.ts';
17
+ export { DshMstar } from './service.ts';
18
+ export type { DshMstarOptions } from './service.ts';
19
+ export type { MstarEngineStatusSource, MstarHarnessState, MstarIterationGateView, AgentFlowEventView, AgentFlowSummaryRow, AgentFlowView, } from './types.ts';
20
+ export { AGENT_FLOW_FILE, AGENT_FLOW_MAX_EVENTS, SETTLE_SEAM, readAgentFlow, recordDispatch, recordSettle, } from './gates/agent-flow.ts';
21
+ export type { AgentFlowEvent, DispatchVerdict, SettleOutcome } from './gates/agent-flow.ts';
22
+ export { Config, HarnessResolver, skillLocalConfig } from './gates/_shared.ts';
23
+ export type { StatusGateAdvisory } from './gates/status.ts';
24
+ export { SkillLintVetoError, lintSkillDoc, lintSkillWrite } from './gates/skill-lint.ts';
25
+ export type { SkillLintAdvisory } from './gates/skill-lint.ts';
26
+ export { SeamVetoError, lintSeamWrite, lintDesignMdWrite, lintAuditWrite, lintCompoundWrite, lintRolesWrite } from './gates/seams.ts';
27
+ export type { SeamId, SeamLintAdvisory } from './gates/seams.ts';
28
+ export type { DispatchGateAdvisory } from './gates/dispatch.ts';
29
+ export { DshHostAdapter } from './gates/adapter.ts';
30
+ export type { DshHostAdapterOptions } from './gates/adapter.ts';
31
+ /** Cordis function-plugin name registered by the Loader. */
32
+ export declare const name = "dsh";
33
+ /**
34
+ * Services required before this plugin's `apply` fiber starts.
35
+ * Empty for the scaffold: the plan's gates register on events (`fs/write-intent`,
36
+ * `tools/pre-execute`), not on injected services; `inject` grows if a service seam is needed.
37
+ */
38
+ export declare const inject: string[];
39
+ declare module '@deepseek-ai/cordis' {
40
+ interface Context {
41
+ /**
42
+ * The plugin's engine `HostAdapter` implementation (`host: 'dsh'`) —
43
+ * provided as a dsh service (constructed in `apply`, same convention as
44
+ * `ctx.dshMstar`) so host hooks and future inject consumers share the
45
+ * one instance.
46
+ */
47
+ dshHostAdapter: DshHostAdapter;
48
+ }
49
+ interface Events {
50
+ /**
51
+ * Advisory: a subagent dispatch passed the dispatch gate in warn mode
52
+ * (violations logged, dispatch allowed). Emitted only when the Assignment
53
+ * has violations; clean passes stay silent.
54
+ * @param payload - the gate verdict and dispatch identity.
55
+ * @mode emit
56
+ */
57
+ 'mstar/dispatch-gate'(payload: DispatchGateAdvisory): void;
58
+ /**
59
+ * Advisory: a `{HARNESS_DIR}/status.json` write/edit intent passed the
60
+ * status gate in warn mode (violations logged, write allowed). Emitted
61
+ * only when the current document has violations; clean passes stay silent.
62
+ * @param payload - the gate verdict and target.
63
+ * @mode emit
64
+ */
65
+ 'mstar/status-gate'(payload: StatusGateAdvisory): void;
66
+ /**
67
+ * Advisory: a `SKILL.md` write-intent under a configured skill root
68
+ * found skill-authoring lint violations in the pre-write on-disk
69
+ * document (warn mode), was allowed as a hard-mode repair escape, or
70
+ * degraded to allow. Emitted only when the current document has
71
+ * violations; clean passes stay silent.
72
+ * @param payload - the lint verdict and target.
73
+ * @mode emit
74
+ */
75
+ 'mstar/skill-lint'(payload: SkillLintAdvisory): void;
76
+ /**
77
+ * Advisory: an artifact-scoped write-intent (DESIGN.md / DESIGN.dark.md,
78
+ * audit plan files under `plans/audit-*`, knowledge docs under
79
+ * `{HARNESS_DIR}/knowledge/`, mstar-roles SKILL.md + references) found
80
+ * engine violations in the pre-write on-disk document (warn mode), was
81
+ * allowed as a hard-mode repair escape, or degraded to allow. Emitted
82
+ * only when the current document has violations; clean passes stay
83
+ * silent. The `seam` field discriminates the four gates.
84
+ * @param payload - the gate verdict, seam, and target.
85
+ * @mode emit
86
+ */
87
+ 'mstar/seam-lint'(payload: SeamLintAdvisory): void;
88
+ }
89
+ }
90
+ /**
91
+ * Apply the plugin to the registrant context: resolve `{HARNESS_DIR}` via the
92
+ * engine (per-workspace — the probe never starts from the process cwd),
93
+ * expose the engine surface as `ctx.dshMstar`, construct the host
94
+ * adapter (the gates route through it — one code path with the host hooks),
95
+ * and register the status gate on the fs intent waterfalls + the dispatch
96
+ * gate on `tools/pre-execute`.
97
+ *
98
+ * Layering: the gates are co-located engine wrappers in this
99
+ * module importing `@mstar-harness/engine` directly (same plugin, engine
100
+ * bundled at build time); `ctx.dshMstar` is the composition/test façade for
101
+ * future inject consumers (catalogs) — see the README Service section; the
102
+ * adapter is the host-facing facade. The engine is the single grammar for
103
+ * both paths.
104
+ * @param ctx - Cordis context of the composed app.
105
+ * @param config - validated plugin configuration.
106
+ */
107
+ export declare function apply(ctx: Context, config: Config): void;