@nimiplatform/nimi-coding 0.1.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/LICENSE +21 -0
- package/README.md +348 -0
- package/adapters/README.md +25 -0
- package/adapters/claude/README.md +89 -0
- package/adapters/claude/profile.yaml +70 -0
- package/adapters/codex/README.md +53 -0
- package/adapters/codex/profile.yaml +78 -0
- package/adapters/oh-my-codex/README.md +185 -0
- package/adapters/oh-my-codex/profile.yaml +46 -0
- package/bin/nimicoding.mjs +6 -0
- package/cli/commands/admit-high-risk-decision.mjs +108 -0
- package/cli/commands/audit-sweep.mjs +341 -0
- package/cli/commands/blueprint-audit.mjs +91 -0
- package/cli/commands/clear.mjs +168 -0
- package/cli/commands/closeout.mjs +183 -0
- package/cli/commands/decide-high-risk-execution.mjs +124 -0
- package/cli/commands/doctor.mjs +53 -0
- package/cli/commands/generate-spec-derived-docs.mjs +131 -0
- package/cli/commands/handoff.mjs +123 -0
- package/cli/commands/ingest-high-risk-execution.mjs +95 -0
- package/cli/commands/review-high-risk-execution.mjs +95 -0
- package/cli/commands/start.mjs +717 -0
- package/cli/commands/topic-formatters.mjs +382 -0
- package/cli/commands/topic-goal.mjs +33 -0
- package/cli/commands/topic-options-shared.mjs +27 -0
- package/cli/commands/topic-options-workflow.mjs +767 -0
- package/cli/commands/topic-options.mjs +626 -0
- package/cli/commands/topic-runner.mjs +169 -0
- package/cli/commands/topic.mjs +795 -0
- package/cli/commands/validate-acceptance.mjs +5 -0
- package/cli/commands/validate-ai-governance.mjs +214 -0
- package/cli/commands/validate-execution-packet.mjs +5 -0
- package/cli/commands/validate-orchestration-state.mjs +5 -0
- package/cli/commands/validate-prompt.mjs +5 -0
- package/cli/commands/validate-spec-audit.mjs +27 -0
- package/cli/commands/validate-spec-governance.mjs +124 -0
- package/cli/commands/validate-spec-tree.mjs +27 -0
- package/cli/commands/validate-worker-output.mjs +5 -0
- package/cli/constants.mjs +489 -0
- package/cli/help.mjs +134 -0
- package/cli/index.mjs +103 -0
- package/cli/lib/adapter-profiles.mjs +403 -0
- package/cli/lib/audit-execution.mjs +52 -0
- package/cli/lib/audit-sweep-runtime/admissions.mjs +381 -0
- package/cli/lib/audit-sweep-runtime/audit-validity.mjs +333 -0
- package/cli/lib/audit-sweep-runtime/chunks.mjs +697 -0
- package/cli/lib/audit-sweep-runtime/closeout.mjs +144 -0
- package/cli/lib/audit-sweep-runtime/codex-auditor-evidence.mjs +639 -0
- package/cli/lib/audit-sweep-runtime/codex-auditor.mjs +515 -0
- package/cli/lib/audit-sweep-runtime/common.mjs +329 -0
- package/cli/lib/audit-sweep-runtime/coverage-quality.mjs +172 -0
- package/cli/lib/audit-sweep-runtime/evidence-assignment.mjs +152 -0
- package/cli/lib/audit-sweep-runtime/format.mjs +57 -0
- package/cli/lib/audit-sweep-runtime/ingest.mjs +486 -0
- package/cli/lib/audit-sweep-runtime/inventory-spec-chunks.mjs +198 -0
- package/cli/lib/audit-sweep-runtime/inventory.mjs +728 -0
- package/cli/lib/audit-sweep-runtime/ledger.mjs +315 -0
- package/cli/lib/audit-sweep-runtime/p0p1-profile.mjs +101 -0
- package/cli/lib/audit-sweep-runtime/remediation.mjs +349 -0
- package/cli/lib/audit-sweep-runtime/rerun.mjs +129 -0
- package/cli/lib/audit-sweep-runtime/risk-budget.mjs +300 -0
- package/cli/lib/audit-sweep-runtime/status.mjs +62 -0
- package/cli/lib/audit-sweep-runtime/validators-ledger.mjs +215 -0
- package/cli/lib/audit-sweep-runtime/validators.mjs +758 -0
- package/cli/lib/audit-sweep.mjs +18 -0
- package/cli/lib/authority-convergence.mjs +309 -0
- package/cli/lib/blueprint-audit.mjs +370 -0
- package/cli/lib/bootstrap.mjs +228 -0
- package/cli/lib/closeout.mjs +623 -0
- package/cli/lib/codex-sdk-runner.mjs +76 -0
- package/cli/lib/contracts.mjs +180 -0
- package/cli/lib/doctor.mjs +18 -0
- package/cli/lib/entrypoints.mjs +274 -0
- package/cli/lib/external-execution.mjs +101 -0
- package/cli/lib/fs-helpers.mjs +33 -0
- package/cli/lib/handoff.mjs +785 -0
- package/cli/lib/high-risk-admission.mjs +442 -0
- package/cli/lib/high-risk-decision.mjs +324 -0
- package/cli/lib/high-risk-ingest.mjs +317 -0
- package/cli/lib/high-risk-review.mjs +263 -0
- package/cli/lib/internal/contracts-loaders.mjs +132 -0
- package/cli/lib/internal/contracts-parse-high-risk.mjs +131 -0
- package/cli/lib/internal/contracts-parse.mjs +457 -0
- package/cli/lib/internal/contracts-validators.mjs +398 -0
- package/cli/lib/internal/doctor-bootstrap-surface.mjs +359 -0
- package/cli/lib/internal/doctor-delegated-surface.mjs +256 -0
- package/cli/lib/internal/doctor-finalize.mjs +385 -0
- package/cli/lib/internal/doctor-format.mjs +286 -0
- package/cli/lib/internal/doctor-inspectors.mjs +294 -0
- package/cli/lib/internal/doctor-state.mjs +205 -0
- package/cli/lib/internal/governance/ai/ai-context-budget-core.mjs +315 -0
- package/cli/lib/internal/governance/ai/ai-structure-budget-core.mjs +358 -0
- package/cli/lib/internal/governance/ai/check-agents-freshness.mjs +155 -0
- package/cli/lib/internal/governance/ai/check-high-risk-doc-metadata-core.mjs +173 -0
- package/cli/lib/internal/governance/config.mjs +150 -0
- package/cli/lib/internal/governance/runner.mjs +35 -0
- package/cli/lib/internal/governance/shared/read-yaml-with-fragments.mjs +49 -0
- package/cli/lib/internal/validators-artifacts.mjs +515 -0
- package/cli/lib/internal/validators-shared.mjs +28 -0
- package/cli/lib/internal/validators-spec-helpers.mjs +186 -0
- package/cli/lib/internal/validators-spec.mjs +410 -0
- package/cli/lib/shared.mjs +83 -0
- package/cli/lib/topic-draft-packets.mjs +48 -0
- package/cli/lib/topic-goal.mjs +361 -0
- package/cli/lib/topic-runner.mjs +772 -0
- package/cli/lib/topic.mjs +93 -0
- package/cli/lib/ui.mjs +178 -0
- package/cli/lib/validators.mjs +78 -0
- package/cli/lib/value-helpers.mjs +24 -0
- package/cli/lib/yaml-helpers.mjs +133 -0
- package/cli/nimicoding.mjs +1 -0
- package/cli/seeds/bootstrap.mjs +47 -0
- package/config/audit-execution-artifacts.yaml +20 -0
- package/config/bootstrap.yaml +6 -0
- package/config/external-execution-artifacts.yaml +16 -0
- package/config/host-adapter.yaml +30 -0
- package/config/host-profile.yaml +29 -0
- package/config/installer-evidence.yaml +31 -0
- package/config/skill-installer.yaml +23 -0
- package/config/skill-manifest.yaml +46 -0
- package/config/skills.yaml +30 -0
- package/config/spec-generation-inputs.yaml +25 -0
- package/contracts/acceptance.schema.yaml +16 -0
- package/contracts/admission-checklist.schema.yaml +15 -0
- package/contracts/audit-chunk.schema.yaml +110 -0
- package/contracts/audit-closeout.schema.yaml +51 -0
- package/contracts/audit-finding.schema.yaml +61 -0
- package/contracts/audit-ledger.schema.yaml +138 -0
- package/contracts/audit-plan.schema.yaml +123 -0
- package/contracts/audit-remediation-map.schema.yaml +51 -0
- package/contracts/audit-rerun.schema.yaml +31 -0
- package/contracts/audit-sweep-result.yaml +49 -0
- package/contracts/authority-convergence-audit.schema.yaml +19 -0
- package/contracts/closeout.schema.yaml +25 -0
- package/contracts/decision-review.schema.yaml +16 -0
- package/contracts/doc-spec-audit-result.yaml +19 -0
- package/contracts/execution-packet.schema.yaml +49 -0
- package/contracts/external-host-compatibility.yaml +22 -0
- package/contracts/forbidden-shortcuts.catalog.yaml +23 -0
- package/contracts/high-risk-admission.schema.yaml +23 -0
- package/contracts/high-risk-execution-result.yaml +20 -0
- package/contracts/orchestration-state.schema.yaml +41 -0
- package/contracts/overflow-continuation.schema.yaml +12 -0
- package/contracts/packet.schema.yaml +30 -0
- package/contracts/pending-note.schema.yaml +17 -0
- package/contracts/prompt.schema.yaml +12 -0
- package/contracts/remediation.schema.yaml +16 -0
- package/contracts/result.schema.yaml +24 -0
- package/contracts/spec-generation-audit.schema.yaml +31 -0
- package/contracts/spec-generation-inputs.schema.yaml +39 -0
- package/contracts/spec-reconstruction-result.yaml +37 -0
- package/contracts/topic-goal.schema.yaml +78 -0
- package/contracts/topic-run-ledger.schema.yaml +72 -0
- package/contracts/topic-step-decision.schema.yaml +45 -0
- package/contracts/topic.schema.yaml +65 -0
- package/contracts/true-close.schema.yaml +15 -0
- package/contracts/wave.schema.yaml +29 -0
- package/contracts/worker-output.schema.yaml +15 -0
- package/methodology/audit-sweep-p0p1-recall.yaml +45 -0
- package/methodology/authority-convergence-policy.yaml +42 -0
- package/methodology/core.yaml +25 -0
- package/methodology/four-closure-policy.yaml +28 -0
- package/methodology/overflow-continuation-policy.yaml +14 -0
- package/methodology/role-separation-policy.yaml +28 -0
- package/methodology/skill-exchange-projection.yaml +114 -0
- package/methodology/skill-handoff.yaml +34 -0
- package/methodology/skill-installer-result.yaml +27 -0
- package/methodology/skill-installer-summary-projection.yaml +181 -0
- package/methodology/skill-runtime.yaml +23 -0
- package/methodology/spec-reconstruction.yaml +63 -0
- package/methodology/spec-target-truth-profile.yaml +53 -0
- package/methodology/topic-lifecycle-report.yaml +144 -0
- package/methodology/topic-lifecycle.yaml +37 -0
- package/methodology/topic-naming-ontology.yaml +21 -0
- package/methodology/topic-ontology.yaml +38 -0
- package/methodology/topic-validation-policy.yaml +9 -0
- package/methodology/wave-dag-policy.yaml +14 -0
- package/package.json +50 -0
- package/spec/_meta/command-gating-matrix.yaml +110 -0
- package/spec/_meta/generate-drift-migration-checklist.yaml +155 -0
- package/spec/_meta/governance-routing-cutover-checklist.yaml +35 -0
- package/spec/_meta/phase2-impacted-surface-matrix.yaml +44 -0
- package/spec/_meta/spec-authority-cutover-readiness.yaml +104 -0
- package/spec/_meta/spec-tree-model.yaml +72 -0
- package/spec/bootstrap-state.yaml +99 -0
- package/spec/product-scope.yaml +56 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
export const VERSION = "0.1.0";
|
|
2
|
+
export const PACKAGE_NAME = "@nimiplatform/nimi-coding";
|
|
3
|
+
export const BOOTSTRAP_CONTRACT_ID = "nimicoding.bootstrap";
|
|
4
|
+
export const BOOTSTRAP_CONTRACT_VERSION = 1;
|
|
5
|
+
export const HANDOFF_PAYLOAD_CONTRACT_VERSION = "nimicoding.handoff.v1";
|
|
6
|
+
export const CLOSEOUT_PAYLOAD_CONTRACT_VERSION = "nimicoding.closeout.v1";
|
|
7
|
+
export const HIGH_RISK_INGEST_PAYLOAD_CONTRACT_VERSION = "nimicoding.high-risk-ingest.v1";
|
|
8
|
+
export const HIGH_RISK_REVIEW_PAYLOAD_CONTRACT_VERSION = "nimicoding.high-risk-review.v1";
|
|
9
|
+
export const HIGH_RISK_DECISION_PAYLOAD_CONTRACT_VERSION = "nimicoding.high-risk-decision.v1";
|
|
10
|
+
export const HIGH_RISK_ADMISSION_PAYLOAD_CONTRACT_VERSION = "nimicoding.high-risk-admission.v1";
|
|
11
|
+
export const STANDALONE_COMPLETION_PROFILE = "boundary_complete";
|
|
12
|
+
export const STANDALONE_COMPLETION_STATUS = {
|
|
13
|
+
COMPLETE: "complete",
|
|
14
|
+
DRIFTED: "drifted",
|
|
15
|
+
INCOMPLETE: "incomplete",
|
|
16
|
+
};
|
|
17
|
+
export const STANDALONE_COMPLETED_SURFACES = [
|
|
18
|
+
"bootstrap",
|
|
19
|
+
"doctor",
|
|
20
|
+
"handoff",
|
|
21
|
+
"validators",
|
|
22
|
+
"topic_lifecycle_report_methodology",
|
|
23
|
+
"closeout",
|
|
24
|
+
"ingest",
|
|
25
|
+
"review",
|
|
26
|
+
"decision",
|
|
27
|
+
"admission",
|
|
28
|
+
"host_overlay_recognition",
|
|
29
|
+
];
|
|
30
|
+
export const STANDALONE_DEFERRED_EXECUTION_SURFACES = [
|
|
31
|
+
"packet_bound_run_kernel",
|
|
32
|
+
"provider_backed_execution",
|
|
33
|
+
"scheduler",
|
|
34
|
+
"notification",
|
|
35
|
+
"automation_backend",
|
|
36
|
+
"multi_topic_orchestration",
|
|
37
|
+
];
|
|
38
|
+
export const STANDALONE_PROMOTED_PARITY_GAP_SUMMARY = [
|
|
39
|
+
"packet_bound_run_kernel",
|
|
40
|
+
"provider_backed_execution",
|
|
41
|
+
"scheduler_automation_notification",
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export const LOCAL_GITIGNORE_ENTRIES = [".nimi/local/", ".nimi/cache/", ".nimi/topics/"];
|
|
45
|
+
|
|
46
|
+
export const AGENTS_BEGIN = "<!-- nimicoding:managed:agents:start -->";
|
|
47
|
+
export const AGENTS_END = "<!-- nimicoding:managed:agents:end -->";
|
|
48
|
+
export const CLAUDE_BEGIN = "<!-- nimicoding:managed:claude:start -->";
|
|
49
|
+
export const CLAUDE_END = "<!-- nimicoding:managed:claude:end -->";
|
|
50
|
+
|
|
51
|
+
export const SPEC_RECONSTRUCTION_RESULT_CONTRACT_REF = ".nimi/contracts/spec-reconstruction-result.yaml";
|
|
52
|
+
export const DOC_SPEC_AUDIT_RESULT_CONTRACT_REF = ".nimi/contracts/doc-spec-audit-result.yaml";
|
|
53
|
+
export const AUDIT_SWEEP_RESULT_CONTRACT_REF = ".nimi/contracts/audit-sweep-result.yaml";
|
|
54
|
+
export const AUDIT_PLAN_SCHEMA_REF = ".nimi/contracts/audit-plan.schema.yaml";
|
|
55
|
+
export const AUDIT_CHUNK_SCHEMA_REF = ".nimi/contracts/audit-chunk.schema.yaml";
|
|
56
|
+
export const AUDIT_FINDING_SCHEMA_REF = ".nimi/contracts/audit-finding.schema.yaml";
|
|
57
|
+
export const AUDIT_LEDGER_SCHEMA_REF = ".nimi/contracts/audit-ledger.schema.yaml";
|
|
58
|
+
export const AUDIT_REMEDIATION_MAP_SCHEMA_REF = ".nimi/contracts/audit-remediation-map.schema.yaml";
|
|
59
|
+
export const AUDIT_RERUN_SCHEMA_REF = ".nimi/contracts/audit-rerun.schema.yaml";
|
|
60
|
+
export const AUDIT_CLOSEOUT_SCHEMA_REF = ".nimi/contracts/audit-closeout.schema.yaml";
|
|
61
|
+
export const HIGH_RISK_EXECUTION_RESULT_CONTRACT_REF = ".nimi/contracts/high-risk-execution-result.yaml";
|
|
62
|
+
export const HIGH_RISK_ADMISSION_CONTRACT_REF = ".nimi/contracts/high-risk-admission.schema.yaml";
|
|
63
|
+
export const EXTERNAL_HOST_COMPATIBILITY_CONTRACT_REF = ".nimi/contracts/external-host-compatibility.yaml";
|
|
64
|
+
export const HOST_ADAPTER_CONFIG_REF = ".nimi/config/host-adapter.yaml";
|
|
65
|
+
export const EXTERNAL_EXECUTION_ARTIFACTS_CONFIG_REF = ".nimi/config/external-execution-artifacts.yaml";
|
|
66
|
+
export const AUDIT_EXECUTION_ARTIFACTS_CONFIG_REF = ".nimi/config/audit-execution-artifacts.yaml";
|
|
67
|
+
export const EXECUTION_PACKET_SCHEMA_REF = ".nimi/contracts/execution-packet.schema.yaml";
|
|
68
|
+
export const ORCHESTRATION_STATE_SCHEMA_REF = ".nimi/contracts/orchestration-state.schema.yaml";
|
|
69
|
+
export const PROMPT_SCHEMA_REF = ".nimi/contracts/prompt.schema.yaml";
|
|
70
|
+
export const WORKER_OUTPUT_SCHEMA_REF = ".nimi/contracts/worker-output.schema.yaml";
|
|
71
|
+
export const ACCEPTANCE_SCHEMA_REF = ".nimi/contracts/acceptance.schema.yaml";
|
|
72
|
+
export const ADAPTER_PACKAGE_PROFILE_REFS = {
|
|
73
|
+
codex: "adapters/codex/profile.yaml",
|
|
74
|
+
oh_my_codex: "adapters/oh-my-codex/profile.yaml",
|
|
75
|
+
claude: "adapters/claude/profile.yaml",
|
|
76
|
+
};
|
|
77
|
+
export const EXTERNAL_HOST_COMPATIBILITY_REQUIRED_BEHAVIOR = [
|
|
78
|
+
"consume_handoff_json_as_authoritative_contract",
|
|
79
|
+
"treat_handoff_prompt_as_human_projection_only",
|
|
80
|
+
"read_project_local_nimi_truth",
|
|
81
|
+
"route_declared_external_skills",
|
|
82
|
+
"fail_closed_on_missing_authority",
|
|
83
|
+
];
|
|
84
|
+
export const EXTERNAL_HOST_COMPATIBILITY_SUPPORTED_POSTURE = [
|
|
85
|
+
"host_agnostic_external_host",
|
|
86
|
+
];
|
|
87
|
+
export const EXTERNAL_HOST_COMPATIBILITY_FORBIDDEN_BEHAVIOR = [
|
|
88
|
+
"assume_packaged_run_kernel",
|
|
89
|
+
"assume_provider_or_scheduler_ownership",
|
|
90
|
+
"promote_runtime_state_to_semantic_truth",
|
|
91
|
+
"redefine_acceptance_disposition_or_finding_judgment",
|
|
92
|
+
];
|
|
93
|
+
export const EXTERNAL_HOST_COMPATIBILITY_SUPPORTED_HOST_EXAMPLES = [
|
|
94
|
+
"oh_my_codex",
|
|
95
|
+
"codex",
|
|
96
|
+
"claude",
|
|
97
|
+
"gemini",
|
|
98
|
+
];
|
|
99
|
+
|
|
100
|
+
export const HIGH_RISK_ADMISSION_REQUIRED_TOP_LEVEL_KEYS = [
|
|
101
|
+
"admissions",
|
|
102
|
+
"admission_rules",
|
|
103
|
+
"semantic_constraints",
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
export const HIGH_RISK_ADMISSION_RECORD_REQUIRED_FIELDS = [
|
|
107
|
+
"topic_id",
|
|
108
|
+
"packet_id",
|
|
109
|
+
"disposition",
|
|
110
|
+
"admitted_at",
|
|
111
|
+
"manager_review_owner",
|
|
112
|
+
"summary",
|
|
113
|
+
"source_decision_contract",
|
|
114
|
+
];
|
|
115
|
+
|
|
116
|
+
export const HIGH_RISK_ADMISSION_DISPOSITION_ENUM = [
|
|
117
|
+
"complete",
|
|
118
|
+
"partial",
|
|
119
|
+
"deferred",
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
export const SPEC_RECONSTRUCTION_SUMMARY_REQUIRED_FIELDS = [
|
|
123
|
+
"generated_paths",
|
|
124
|
+
"audit_ref",
|
|
125
|
+
"coverage_summary",
|
|
126
|
+
"unresolved_file_count",
|
|
127
|
+
"inferred_file_count",
|
|
128
|
+
"status",
|
|
129
|
+
"summary",
|
|
130
|
+
"verified_at",
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
export const SPEC_RECONSTRUCTION_SUMMARY_STATUS = [
|
|
134
|
+
"reconstructed",
|
|
135
|
+
"partial",
|
|
136
|
+
"blocked",
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
export const SPEC_GENERATION_AUDIT_REQUIRED_TOP_LEVEL_FIELDS = [
|
|
140
|
+
"generation_mode",
|
|
141
|
+
"canonical_target_root",
|
|
142
|
+
"declared_profile",
|
|
143
|
+
"input_roots",
|
|
144
|
+
"files",
|
|
145
|
+
];
|
|
146
|
+
|
|
147
|
+
export const SPEC_GENERATION_AUDIT_FILE_REQUIRED_FIELDS = [
|
|
148
|
+
"canonical_path",
|
|
149
|
+
"file_class",
|
|
150
|
+
"source_refs",
|
|
151
|
+
"source_basis",
|
|
152
|
+
"coverage_status",
|
|
153
|
+
"unresolved_items",
|
|
154
|
+
];
|
|
155
|
+
|
|
156
|
+
export const SPEC_GENERATION_AUDIT_SOURCE_BASIS_ENUM = [
|
|
157
|
+
"grounded",
|
|
158
|
+
"mixed_grounded_and_inferred",
|
|
159
|
+
"inferred",
|
|
160
|
+
];
|
|
161
|
+
|
|
162
|
+
export const SPEC_GENERATION_AUDIT_COVERAGE_STATUS_ENUM = [
|
|
163
|
+
"complete",
|
|
164
|
+
"partial",
|
|
165
|
+
"placeholder_not_allowed",
|
|
166
|
+
];
|
|
167
|
+
|
|
168
|
+
export const DOC_SPEC_AUDIT_SUMMARY_REQUIRED_FIELDS = [
|
|
169
|
+
"compared_paths",
|
|
170
|
+
"finding_count",
|
|
171
|
+
"status",
|
|
172
|
+
"summary",
|
|
173
|
+
"verified_at",
|
|
174
|
+
];
|
|
175
|
+
|
|
176
|
+
export const DOC_SPEC_AUDIT_SUMMARY_STATUS = [
|
|
177
|
+
"aligned",
|
|
178
|
+
"drift_detected",
|
|
179
|
+
"blocked",
|
|
180
|
+
];
|
|
181
|
+
|
|
182
|
+
export const AUDIT_SWEEP_SUMMARY_REQUIRED_FIELDS = [
|
|
183
|
+
"plan_ref",
|
|
184
|
+
"chunk_refs",
|
|
185
|
+
"ledger_ref",
|
|
186
|
+
"report_ref",
|
|
187
|
+
"remediation_map_ref",
|
|
188
|
+
"audit_closeout_ref",
|
|
189
|
+
"evidence_refs",
|
|
190
|
+
"finding_count",
|
|
191
|
+
"unresolved_finding_count",
|
|
192
|
+
"status",
|
|
193
|
+
"coverage_scope",
|
|
194
|
+
"coverage_quality",
|
|
195
|
+
"audit_validity",
|
|
196
|
+
"summary",
|
|
197
|
+
"verified_at",
|
|
198
|
+
];
|
|
199
|
+
|
|
200
|
+
export const AUDIT_SWEEP_SUMMARY_STATUS = [
|
|
201
|
+
"candidate_ready",
|
|
202
|
+
"partial",
|
|
203
|
+
"partial_authority_only",
|
|
204
|
+
"blocked_evidence_incomplete",
|
|
205
|
+
"blocked",
|
|
206
|
+
];
|
|
207
|
+
|
|
208
|
+
export const HIGH_RISK_EXECUTION_SUMMARY_REQUIRED_FIELDS = [
|
|
209
|
+
"packet_ref",
|
|
210
|
+
"orchestration_state_ref",
|
|
211
|
+
"prompt_ref",
|
|
212
|
+
"worker_output_ref",
|
|
213
|
+
"evidence_refs",
|
|
214
|
+
"status",
|
|
215
|
+
"summary",
|
|
216
|
+
"verified_at",
|
|
217
|
+
];
|
|
218
|
+
|
|
219
|
+
export const HIGH_RISK_EXECUTION_SUMMARY_STATUS = [
|
|
220
|
+
"candidate_ready",
|
|
221
|
+
"blocked",
|
|
222
|
+
"failed",
|
|
223
|
+
];
|
|
224
|
+
|
|
225
|
+
export const HIGH_RISK_EXECUTION_ARTIFACT_ROOTS = {
|
|
226
|
+
packet_ref: ".nimi/local/packets",
|
|
227
|
+
orchestration_state_ref: ".nimi/local/orchestration",
|
|
228
|
+
prompt_ref: ".nimi/local/prompts",
|
|
229
|
+
worker_output_ref: ".nimi/local/outputs",
|
|
230
|
+
evidence_refs: ".nimi/local/evidence",
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export const AUDIT_SWEEP_ARTIFACT_ROOTS = {
|
|
234
|
+
plan_ref: ".nimi/local/audit/plans",
|
|
235
|
+
chunk_refs: ".nimi/local/audit/chunks",
|
|
236
|
+
ledger_ref: ".nimi/local/audit/ledgers",
|
|
237
|
+
report_ref: ".nimi/local/audit/reports",
|
|
238
|
+
remediation_map_ref: ".nimi/local/audit/remediation-maps",
|
|
239
|
+
audit_closeout_ref: ".nimi/local/audit/closeouts",
|
|
240
|
+
packet_ref: ".nimi/local/audit/packets",
|
|
241
|
+
evidence_refs: ".nimi/local/audit/evidence",
|
|
242
|
+
run_ledger_ref: ".nimi/local/audit/runs",
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export const HIGH_RISK_EXECUTION_ARTIFACT_HARD_CONSTRAINTS = [
|
|
246
|
+
"external_execution_artifacts_remain_operational_only",
|
|
247
|
+
"imported_refs_must_stay_under_declared_local_roots",
|
|
248
|
+
"candidate_artifacts_must_not_override_semantic_truth",
|
|
249
|
+
];
|
|
250
|
+
|
|
251
|
+
export const AUDIT_SWEEP_ARTIFACT_HARD_CONSTRAINTS = [
|
|
252
|
+
"audit_execution_artifacts_remain_operational_only",
|
|
253
|
+
"imported_refs_must_stay_under_declared_local_roots",
|
|
254
|
+
"candidate_artifacts_must_not_override_semantic_truth",
|
|
255
|
+
];
|
|
256
|
+
|
|
257
|
+
export const DOC_SPEC_AUDIT_DEFAULT_COMPARED_PATHS = [
|
|
258
|
+
"README.md",
|
|
259
|
+
".nimi/spec",
|
|
260
|
+
];
|
|
261
|
+
|
|
262
|
+
export const SPEC_TREE_MODEL_REF = ".nimi/spec/_meta/spec-tree-model.yaml";
|
|
263
|
+
export const BLUEPRINT_REFERENCE_REF = ".nimi/spec/_meta/blueprint-reference.yaml";
|
|
264
|
+
export const COMMAND_GATING_MATRIX_REF = ".nimi/spec/_meta/command-gating-matrix.yaml";
|
|
265
|
+
export const GENERATE_DRIFT_MIGRATION_CHECKLIST_REF = ".nimi/spec/_meta/generate-drift-migration-checklist.yaml";
|
|
266
|
+
export const GOVERNANCE_ROUTING_CUTOVER_CHECKLIST_REF = ".nimi/spec/_meta/governance-routing-cutover-checklist.yaml";
|
|
267
|
+
export const PHASE2_IMPACTED_SURFACE_MATRIX_REF = ".nimi/spec/_meta/phase2-impacted-surface-matrix.yaml";
|
|
268
|
+
export const SPEC_GENERATION_AUDIT_REF = ".nimi/spec/_meta/spec-generation-audit.yaml";
|
|
269
|
+
export const SPEC_GENERATION_INPUTS_REF = ".nimi/config/spec-generation-inputs.yaml";
|
|
270
|
+
export const SPEC_GENERATION_INPUTS_CONTRACT_REF = ".nimi/contracts/spec-generation-inputs.schema.yaml";
|
|
271
|
+
export const SPEC_GENERATION_AUDIT_CONTRACT_REF = ".nimi/contracts/spec-generation-audit.schema.yaml";
|
|
272
|
+
|
|
273
|
+
export const SKILL_RESULT_CONTRACT_REFS = {
|
|
274
|
+
spec_reconstruction: SPEC_RECONSTRUCTION_RESULT_CONTRACT_REF,
|
|
275
|
+
doc_spec_audit: DOC_SPEC_AUDIT_RESULT_CONTRACT_REF,
|
|
276
|
+
audit_sweep: AUDIT_SWEEP_RESULT_CONTRACT_REF,
|
|
277
|
+
high_risk_execution: HIGH_RISK_EXECUTION_RESULT_CONTRACT_REF,
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export const REQUIRED_BOOTSTRAP_FILES = [
|
|
281
|
+
".nimi/methodology/core.yaml",
|
|
282
|
+
".nimi/methodology/spec-reconstruction.yaml",
|
|
283
|
+
".nimi/methodology/skill-runtime.yaml",
|
|
284
|
+
".nimi/methodology/skill-installer-result.yaml",
|
|
285
|
+
".nimi/methodology/skill-installer-summary-projection.yaml",
|
|
286
|
+
".nimi/methodology/skill-exchange-projection.yaml",
|
|
287
|
+
".nimi/methodology/skill-handoff.yaml",
|
|
288
|
+
SPEC_TREE_MODEL_REF,
|
|
289
|
+
COMMAND_GATING_MATRIX_REF,
|
|
290
|
+
GENERATE_DRIFT_MIGRATION_CHECKLIST_REF,
|
|
291
|
+
GOVERNANCE_ROUTING_CUTOVER_CHECKLIST_REF,
|
|
292
|
+
PHASE2_IMPACTED_SURFACE_MATRIX_REF,
|
|
293
|
+
".nimi/spec/product-scope.yaml",
|
|
294
|
+
".nimi/spec/bootstrap-state.yaml",
|
|
295
|
+
".nimi/config/bootstrap.yaml",
|
|
296
|
+
".nimi/config/skills.yaml",
|
|
297
|
+
".nimi/config/skill-manifest.yaml",
|
|
298
|
+
SPEC_GENERATION_INPUTS_REF,
|
|
299
|
+
".nimi/config/host-profile.yaml",
|
|
300
|
+
HOST_ADAPTER_CONFIG_REF,
|
|
301
|
+
EXTERNAL_EXECUTION_ARTIFACTS_CONFIG_REF,
|
|
302
|
+
AUDIT_EXECUTION_ARTIFACTS_CONFIG_REF,
|
|
303
|
+
".nimi/config/skill-installer.yaml",
|
|
304
|
+
".nimi/config/installer-evidence.yaml",
|
|
305
|
+
SPEC_RECONSTRUCTION_RESULT_CONTRACT_REF,
|
|
306
|
+
DOC_SPEC_AUDIT_RESULT_CONTRACT_REF,
|
|
307
|
+
AUDIT_SWEEP_RESULT_CONTRACT_REF,
|
|
308
|
+
AUDIT_PLAN_SCHEMA_REF,
|
|
309
|
+
AUDIT_CHUNK_SCHEMA_REF,
|
|
310
|
+
AUDIT_FINDING_SCHEMA_REF,
|
|
311
|
+
AUDIT_LEDGER_SCHEMA_REF,
|
|
312
|
+
AUDIT_REMEDIATION_MAP_SCHEMA_REF,
|
|
313
|
+
AUDIT_RERUN_SCHEMA_REF,
|
|
314
|
+
AUDIT_CLOSEOUT_SCHEMA_REF,
|
|
315
|
+
HIGH_RISK_EXECUTION_RESULT_CONTRACT_REF,
|
|
316
|
+
HIGH_RISK_ADMISSION_CONTRACT_REF,
|
|
317
|
+
SPEC_GENERATION_INPUTS_CONTRACT_REF,
|
|
318
|
+
SPEC_GENERATION_AUDIT_CONTRACT_REF,
|
|
319
|
+
EXTERNAL_HOST_COMPATIBILITY_CONTRACT_REF,
|
|
320
|
+
EXECUTION_PACKET_SCHEMA_REF,
|
|
321
|
+
ORCHESTRATION_STATE_SCHEMA_REF,
|
|
322
|
+
PROMPT_SCHEMA_REF,
|
|
323
|
+
WORKER_OUTPUT_SCHEMA_REF,
|
|
324
|
+
ACCEPTANCE_SCHEMA_REF,
|
|
325
|
+
];
|
|
326
|
+
|
|
327
|
+
export const REQUIRED_LOCAL_DIRS = [".nimi/local", ".nimi/cache"];
|
|
328
|
+
|
|
329
|
+
export const REQUIRED_BOOTSTRAP_DIRS = [
|
|
330
|
+
".nimi/methodology",
|
|
331
|
+
".nimi/spec",
|
|
332
|
+
".nimi/config",
|
|
333
|
+
".nimi/contracts",
|
|
334
|
+
".nimi/local",
|
|
335
|
+
".nimi/cache",
|
|
336
|
+
];
|
|
337
|
+
|
|
338
|
+
export const HIGH_RISK_SCHEMA_SPECS = {
|
|
339
|
+
[EXECUTION_PACKET_SCHEMA_REF]: {
|
|
340
|
+
id: "nimi-coding.execution-packet.v1",
|
|
341
|
+
kind: "execution-packet",
|
|
342
|
+
listFields: {
|
|
343
|
+
required: [
|
|
344
|
+
"packet_id",
|
|
345
|
+
"topic_id",
|
|
346
|
+
"status",
|
|
347
|
+
"owner",
|
|
348
|
+
"created_at",
|
|
349
|
+
"updated_at",
|
|
350
|
+
"baseline_ref",
|
|
351
|
+
"entry_phase_id",
|
|
352
|
+
"phases",
|
|
353
|
+
"escalation_policy",
|
|
354
|
+
"notification_settings",
|
|
355
|
+
"resume_policy",
|
|
356
|
+
],
|
|
357
|
+
status_enum: ["draft", "frozen", "superseded", "archived"],
|
|
358
|
+
phase_required: [
|
|
359
|
+
"phase_id",
|
|
360
|
+
"goal",
|
|
361
|
+
"authority_refs",
|
|
362
|
+
"write_scope",
|
|
363
|
+
"read_scope",
|
|
364
|
+
"required_checks",
|
|
365
|
+
"completion_criteria",
|
|
366
|
+
"escalation_conditions",
|
|
367
|
+
"next_on_success",
|
|
368
|
+
"stop_on_failure",
|
|
369
|
+
],
|
|
370
|
+
phase_stop_on_failure_enum: ["pause", "stop"],
|
|
371
|
+
escalation_policy_required: ["pause_conditions", "manager_decision_required"],
|
|
372
|
+
notification_settings_required: ["on_block", "on_final_completion", "on_progress"],
|
|
373
|
+
resume_policy_required: ["same_revision_resume_allowed_reasons", "new_packet_required_on"],
|
|
374
|
+
},
|
|
375
|
+
requiredRules: [
|
|
376
|
+
"baseline_ref must resolve to a baseline artifact",
|
|
377
|
+
"entry_phase_id must exist in phases[].phase_id",
|
|
378
|
+
"next_on_success must be null or an existing phase_id",
|
|
379
|
+
"packet must not encode transport secrets, runtime state, or semantic acceptance outcomes",
|
|
380
|
+
],
|
|
381
|
+
},
|
|
382
|
+
[ORCHESTRATION_STATE_SCHEMA_REF]: {
|
|
383
|
+
id: "nimi-coding.orchestration-state.v1",
|
|
384
|
+
kind: "orchestration-state",
|
|
385
|
+
listFields: {
|
|
386
|
+
required: [
|
|
387
|
+
"state_id",
|
|
388
|
+
"topic_id",
|
|
389
|
+
"packet_ref",
|
|
390
|
+
"run_status",
|
|
391
|
+
"current_phase_id",
|
|
392
|
+
"last_completed_phase_id",
|
|
393
|
+
"awaiting_human_action",
|
|
394
|
+
"updated_at",
|
|
395
|
+
"owner",
|
|
396
|
+
],
|
|
397
|
+
optional: [
|
|
398
|
+
"pause_reason",
|
|
399
|
+
"notification_refs",
|
|
400
|
+
"current_prompt_ref",
|
|
401
|
+
"latest_worker_output_ref",
|
|
402
|
+
"latest_acceptance_ref",
|
|
403
|
+
"latest_evidence_refs",
|
|
404
|
+
"started_at",
|
|
405
|
+
],
|
|
406
|
+
run_status_enum: [
|
|
407
|
+
"running",
|
|
408
|
+
"paused",
|
|
409
|
+
"awaiting_confirmation",
|
|
410
|
+
"completed",
|
|
411
|
+
"failed",
|
|
412
|
+
"superseded",
|
|
413
|
+
],
|
|
414
|
+
notification_ref_required: ["event", "correlation_id"],
|
|
415
|
+
},
|
|
416
|
+
requiredRules: [
|
|
417
|
+
"packet_ref must resolve to an execution packet artifact",
|
|
418
|
+
"current_phase_id and last_completed_phase_id must be null or existing packet phase ids",
|
|
419
|
+
"running state requires current_phase_id",
|
|
420
|
+
"paused state requires current_phase_id, pause_reason, and awaiting_human_action",
|
|
421
|
+
"awaiting_confirmation state requires current_phase_id and awaiting_human_action and is legacy-only for older runs",
|
|
422
|
+
"failed state requires awaiting_human_action",
|
|
423
|
+
"completed state requires last_completed_phase_id and must not carry current_phase_id, awaiting_human_action, or pause_reason",
|
|
424
|
+
"resume_token and transport secrets are forbidden",
|
|
425
|
+
"notification_refs entries may track event/correlation emission refs, but they must not become notification log state ownership",
|
|
426
|
+
"orchestration state must not encode semantic acceptance or finding judgments",
|
|
427
|
+
],
|
|
428
|
+
},
|
|
429
|
+
[PROMPT_SCHEMA_REF]: {
|
|
430
|
+
id: "nimi-coding.prompt.v1",
|
|
431
|
+
kind: "prompt",
|
|
432
|
+
listFields: {
|
|
433
|
+
required_blocks: [
|
|
434
|
+
"Task Goal",
|
|
435
|
+
"Authority Reads",
|
|
436
|
+
"Confirmed State",
|
|
437
|
+
"Hard Constraints",
|
|
438
|
+
"Must Complete",
|
|
439
|
+
"Explicit Non-Goals",
|
|
440
|
+
"Required Checks",
|
|
441
|
+
"Required Final Output Format",
|
|
442
|
+
"Blocker Escalation Rule",
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
requiredRules: [],
|
|
446
|
+
},
|
|
447
|
+
[WORKER_OUTPUT_SCHEMA_REF]: {
|
|
448
|
+
id: "nimi-coding.worker-output.v1",
|
|
449
|
+
kind: "worker-output",
|
|
450
|
+
listFields: {
|
|
451
|
+
required_blocks: [
|
|
452
|
+
"Findings",
|
|
453
|
+
"Implementation summary",
|
|
454
|
+
"Files changed",
|
|
455
|
+
"Checks run",
|
|
456
|
+
"Remaining gaps / risks",
|
|
457
|
+
"Runner Signal",
|
|
458
|
+
],
|
|
459
|
+
optional_blocks: [
|
|
460
|
+
"Chosen decision",
|
|
461
|
+
"Authority / spec impact",
|
|
462
|
+
"Guard behavior decision",
|
|
463
|
+
"Next implementation step",
|
|
464
|
+
"Remaining blockers",
|
|
465
|
+
],
|
|
466
|
+
},
|
|
467
|
+
requiredRules: [],
|
|
468
|
+
},
|
|
469
|
+
[ACCEPTANCE_SCHEMA_REF]: {
|
|
470
|
+
id: "nimi-coding.acceptance.v1",
|
|
471
|
+
kind: "acceptance",
|
|
472
|
+
listFields: {
|
|
473
|
+
required_order: [
|
|
474
|
+
"authority alignment",
|
|
475
|
+
"phase closure",
|
|
476
|
+
"evidence sufficiency",
|
|
477
|
+
"disposition",
|
|
478
|
+
"next step or reopen",
|
|
479
|
+
],
|
|
480
|
+
disposition_enum: ["complete", "partial", "deferred"],
|
|
481
|
+
required_blocks: [
|
|
482
|
+
"Findings",
|
|
483
|
+
"Current Phase Disposition",
|
|
484
|
+
"Next Step or Reopen Condition",
|
|
485
|
+
],
|
|
486
|
+
},
|
|
487
|
+
requiredRules: [],
|
|
488
|
+
},
|
|
489
|
+
};
|
package/cli/help.mjs
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { VERSION } from "./constants.mjs";
|
|
2
|
+
import {
|
|
3
|
+
localize,
|
|
4
|
+
styleCommand,
|
|
5
|
+
styleHeading,
|
|
6
|
+
styleMuted,
|
|
7
|
+
} from "./lib/ui.mjs";
|
|
8
|
+
|
|
9
|
+
export function helpText() {
|
|
10
|
+
const lines = [
|
|
11
|
+
styleHeading(`nimicoding ${VERSION}`),
|
|
12
|
+
"",
|
|
13
|
+
localize("Usage:", "用法:"),
|
|
14
|
+
` ${styleCommand("nimicoding --help")}`,
|
|
15
|
+
` ${styleCommand("nimicoding --version")}`,
|
|
16
|
+
` ${styleCommand("nimicoding start")}`,
|
|
17
|
+
` ${styleCommand("nimicoding start --yes")}`,
|
|
18
|
+
` ${styleCommand("nimicoding start --host <generic|codex|claude|oh-my-codex>")}`,
|
|
19
|
+
` ${styleCommand("nimicoding clear")}`,
|
|
20
|
+
` ${styleCommand("nimicoding clear --yes")}`,
|
|
21
|
+
` ${styleCommand("nimicoding topic create <slug> --justification <text> [--title <text>] [--json]")}`,
|
|
22
|
+
` ${styleCommand("nimicoding topic status [<topic-id>|<topic-path>] [--json]")}`,
|
|
23
|
+
` ${styleCommand("nimicoding topic run-next-step <topic-id> [--json]")}`,
|
|
24
|
+
` ${styleCommand("nimicoding topic run-ledger <init|record|build|status> <topic-id> --run-id <id> [--json]")}`,
|
|
25
|
+
` ${styleCommand("nimicoding topic-runner <step|run> <topic-id> --run-id <id> --adapter <codex|oh_my_codex|claude> [--execute-host] [--json]")}`,
|
|
26
|
+
` ${styleCommand("nimicoding topic validate [<topic-id>|<topic-path>] [--json]")}`,
|
|
27
|
+
` ${styleCommand("nimicoding topic validate graph <topic-id> [--json]")}`,
|
|
28
|
+
` ${styleCommand("nimicoding topic validate admission <topic-id> <wave-id> [--json]")}`,
|
|
29
|
+
` ${styleCommand("nimicoding topic wave add <topic-id> <wave-id> <slug> --goal <text> --owner-domain <text> [--dep <wave-id>] [--json]")}`,
|
|
30
|
+
` ${styleCommand("nimicoding topic wave select <topic-id> <wave-id> [--json]")}`,
|
|
31
|
+
` ${styleCommand("nimicoding topic wave admit <topic-id> <wave-id> [--json]")}`,
|
|
32
|
+
` ${styleCommand("nimicoding topic packet freeze <topic-id> --from <draft-path> [--json]")}`,
|
|
33
|
+
` ${styleCommand("nimicoding topic worker dispatch <topic-id> --packet <packet-id> [--json]")}`,
|
|
34
|
+
` ${styleCommand("nimicoding topic audit dispatch <topic-id> --packet <packet-id> [--json]")}`,
|
|
35
|
+
` ${styleCommand("nimicoding topic result record <topic-id> --kind <worker|implementation|audit|preflight|judgement> --verdict <PASS|NEEDS_REVISION|FAIL|OVERFLOW> --from <path> --verified-at <iso8601> [--json]")}`,
|
|
36
|
+
` ${styleCommand("nimicoding topic remediation open <topic-id> --kind <a|b|continuation|execution-state-closure> --reason <token> [--overflowed-packet <packet-id>] [--json]")}`,
|
|
37
|
+
` ${styleCommand("nimicoding topic overflow continue <topic-id> --packet <continuation-packet-id> --overflowed-packet <packet-id> --manager-judgement <text> --same-owner-domain [--json]")}`,
|
|
38
|
+
` ${styleCommand("nimicoding topic hold <topic-id> --reason <token> --summary <text> [--reopen-criteria <text>] [--close-trigger <text>] [--json]")}`,
|
|
39
|
+
` ${styleCommand("nimicoding topic resume <topic-id> --criteria-met <text> [--json]")}`,
|
|
40
|
+
` ${styleCommand("nimicoding topic validate closure <topic-id> <wave-id> [--json]")}`,
|
|
41
|
+
` ${styleCommand("nimicoding topic closeout wave <topic-id> <wave-id> --authority <open|closed|blocked> --semantic <open|closed|blocked> --consumer <open|closed|blocked> --drift-resistance <open|closed|blocked> --disposition <complete|partial|deferred> [--json]")}`,
|
|
42
|
+
` ${styleCommand("nimicoding topic true-close-audit <topic-id> --judgement <text> [--json]")}`,
|
|
43
|
+
` ${styleCommand("nimicoding topic closeout topic <topic-id> --authority <open|closed|blocked> --semantic <open|closed|blocked> --consumer <open|closed|blocked> --drift-resistance <open|closed|blocked> --disposition <complete|partial|deferred> [--json]")}`,
|
|
44
|
+
` ${styleCommand("nimicoding topic decision-review <topic-id> <slug> --decision <text> --replaced-scope <text> --active-replacement-scope <text> [--disposition <retired|superseded|unchanged>] [--target-wave <wave-id>] [--date <YYYY-MM-DD>] [--json]")}`,
|
|
45
|
+
` ${styleCommand("nimicoding doctor")}`,
|
|
46
|
+
` ${styleCommand("nimicoding doctor --verbose")}`,
|
|
47
|
+
` ${styleCommand("nimicoding doctor --json")}`,
|
|
48
|
+
` ${styleCommand("nimicoding blueprint-audit [--blueprint-root <path>] [--canonical-root <path>] [--json] [--write-local]")}`,
|
|
49
|
+
` ${styleCommand("nimicoding handoff --skill <skill-id>")}`,
|
|
50
|
+
` ${styleCommand("nimicoding handoff --skill <skill-id> --json")}`,
|
|
51
|
+
` ${styleCommand("nimicoding handoff --skill <skill-id> --prompt")}`,
|
|
52
|
+
` ${styleCommand("nimicoding audit-sweep plan --root <dir> [--criteria <csv>] [--exclude <csv>] [--max-files <n>] [--sweep-id <id>] [--json]")}`,
|
|
53
|
+
` ${styleCommand("nimicoding audit-sweep chunk dispatch --sweep-id <id> --chunk-id <chunk-id> --dispatched-at <iso8601> [--auditor <id>] [--json]")}`,
|
|
54
|
+
` ${styleCommand("nimicoding audit-sweep chunk audit-codex --sweep-id <id> --chunk-id <chunk-id> --dispatched-at <iso8601> --verified-at <iso8601> --reviewed-at <iso8601> [--from-raw-output <ref>] [--timeout-ms <ms>] [--json]")}`,
|
|
55
|
+
` ${styleCommand("nimicoding audit-sweep chunk ingest --sweep-id <id> --chunk-id <chunk-id> --from <json> --verified-at <iso8601> [--json]")}`,
|
|
56
|
+
` ${styleCommand("nimicoding audit-sweep chunk review --sweep-id <id> --chunk-id <chunk-id> --verdict <pass|fail> --reviewed-at <iso8601> [--summary <text>] [--json]")}`,
|
|
57
|
+
` ${styleCommand("nimicoding audit-sweep chunk skip --sweep-id <id> --chunk-id <chunk-id> --reason <text> --skipped-at <iso8601> [--json]")}`,
|
|
58
|
+
` ${styleCommand("nimicoding audit-sweep ledger build --sweep-id <id> [--verified-at <iso8601>] [--json]")}`,
|
|
59
|
+
` ${styleCommand("nimicoding audit-sweep remediation-map build --sweep-id <id> [--max-findings <n>] [--verified-at <iso8601>] [--json]")}`,
|
|
60
|
+
` ${styleCommand("nimicoding audit-sweep finding resolve --sweep-id <id> --finding-id <id> --disposition <remediated|accepted-risk|false-positive|deferred-backlog> --from <json> --verified-at <iso8601> [--json]")}`,
|
|
61
|
+
` ${styleCommand("nimicoding audit-sweep closeout summary --sweep-id <id> --verified-at <iso8601> [--json]")}`,
|
|
62
|
+
` ${styleCommand("nimicoding audit-sweep status --sweep-id <id> [--json]")}`,
|
|
63
|
+
` ${styleCommand("nimicoding admit-high-risk-decision --from <json> --admitted-at <iso8601> [--json] [--write-spec]")}`,
|
|
64
|
+
` ${styleCommand("nimicoding closeout --skill <skill-id> --outcome <completed|blocked|failed> --verified-at <iso8601>")}`,
|
|
65
|
+
` ${styleCommand("nimicoding closeout --skill <skill-id> --outcome <completed|blocked|failed> --verified-at <iso8601> --json")}`,
|
|
66
|
+
` ${styleCommand("nimicoding closeout --skill <skill-id> --outcome <completed|blocked|failed> --verified-at <iso8601> --write-local")}`,
|
|
67
|
+
` ${styleCommand("nimicoding closeout --from <json> [--json] [--write-local]")}`,
|
|
68
|
+
` ${styleCommand("nimicoding decide-high-risk-execution --from <json> --acceptance <path> --verified-at <iso8601> [--json] [--write-local]")}`,
|
|
69
|
+
` ${styleCommand("nimicoding ingest-high-risk-execution --from <json> [--json] [--write-local]")}`,
|
|
70
|
+
` ${styleCommand("nimicoding review-high-risk-execution --from <json> [--json] [--write-local]")}`,
|
|
71
|
+
` ${styleCommand("nimicoding validate-execution-packet <path>")}`,
|
|
72
|
+
` ${styleCommand("nimicoding validate-orchestration-state <path>")}`,
|
|
73
|
+
` ${styleCommand("nimicoding validate-spec-governance --profile <profile-id> --scope <all|host-defined-scope>")}`,
|
|
74
|
+
` ${styleCommand("nimicoding validate-spec-audit [.nimi/spec/_meta/spec-generation-audit.yaml]")}`,
|
|
75
|
+
` ${styleCommand("nimicoding validate-spec-tree [.nimi/spec]")}`,
|
|
76
|
+
` ${styleCommand("nimicoding generate-spec-derived-docs --profile <profile-id> --scope <all|host-defined-scope> [--check]")}`,
|
|
77
|
+
` ${styleCommand("nimicoding validate-ai-governance --profile <profile-id> --scope <all|agents-freshness|context-budget|structure-budget|high-risk-doc-metadata>")}`,
|
|
78
|
+
` ${styleCommand("nimicoding validate-prompt <path>")}`,
|
|
79
|
+
` ${styleCommand("nimicoding validate-worker-output <path>")}`,
|
|
80
|
+
` ${styleCommand("nimicoding validate-acceptance <path>")}`,
|
|
81
|
+
"",
|
|
82
|
+
localize("Notes:", "说明:"),
|
|
83
|
+
styleMuted(localize(
|
|
84
|
+
" - `nimicoding topic` currently implements root control, Wave 2 graph/admission/freeze, Wave 3 dispatch/result/decision-review, Wave 4 remediation/overflow control, Wave 5 closure/true-close gates, Wave 6 read-only golden-fixture audit, and pending hold/resume lifecycle control",
|
|
85
|
+
" - `nimicoding topic` 当前实现 root control、Wave 2 graph/admission/freeze、Wave 3 dispatch/result/decision-review、Wave 4 remediation/overflow control、Wave 5 closure/true-close gate、Wave 6 只读 golden fixture 审计,以及 pending hold/resume 生命周期控制",
|
|
86
|
+
)),
|
|
87
|
+
styleMuted(localize(
|
|
88
|
+
" - `topic create` requires an explicit justification so topic entry does not silently become the default path",
|
|
89
|
+
" - `topic create` 要求显式 justification,避免 topic entry 静默变成默认路径",
|
|
90
|
+
)),
|
|
91
|
+
styleMuted(localize(
|
|
92
|
+
" - `nimicoding start` is the primary entrypoint; it sets up the project and prepares the next AI task",
|
|
93
|
+
" - `nimicoding start` 是主入口;它会准备项目并为下一项 AI 任务做好准备",
|
|
94
|
+
)),
|
|
95
|
+
styleMuted(localize(
|
|
96
|
+
" - interactive `nimicoding start` describes one option, asks once, and applies one option at a time",
|
|
97
|
+
" - 交互式 `nimicoding start` 会逐项说明、逐项确认、逐项执行",
|
|
98
|
+
)),
|
|
99
|
+
styleMuted(localize(
|
|
100
|
+
" - `nimicoding start` can also choose a target host and print a short paste-ready prompt directly in the terminal",
|
|
101
|
+
" - `nimicoding start` 还可以选择目标 Host,并直接在终端输出一段可粘贴的短 prompt",
|
|
102
|
+
)),
|
|
103
|
+
styleMuted(localize(
|
|
104
|
+
" - `nimicoding clear` removes only managed AI blocks plus package-owned .nimi/config, .nimi/contracts, and .nimi/methodology files that still match the packaged seed",
|
|
105
|
+
" - `nimicoding clear` 只会移除托管 AI 区块,以及仍与包内 seed 完全一致的 .nimi/config、.nimi/contracts、.nimi/methodology 文件",
|
|
106
|
+
)),
|
|
107
|
+
styleMuted(localize(
|
|
108
|
+
" - `nimicoding clear` does not remove .nimi/spec, .nimi/local, or .nimi/cache for you",
|
|
109
|
+
" - `nimicoding clear` 不会替你移除 .nimi/spec、.nimi/local 或 .nimi/cache",
|
|
110
|
+
)),
|
|
111
|
+
styleMuted(localize(
|
|
112
|
+
" - `nimicoding doctor` shows the user-facing summary; add `--verbose` for internal contract detail",
|
|
113
|
+
" - `nimicoding doctor` 默认显示用户视图;加 `--verbose` 可查看内部契约细节",
|
|
114
|
+
)),
|
|
115
|
+
styleMuted(localize(
|
|
116
|
+
" - `nimicoding blueprint-audit` is an optional benchmark parity check when a blueprint root is declared",
|
|
117
|
+
" - `nimicoding blueprint-audit` 是可选的 benchmark 等价检查,仅在声明 blueprint root 时使用",
|
|
118
|
+
)),
|
|
119
|
+
styleMuted(localize(
|
|
120
|
+
" - `nimicoding validate-spec-audit` checks whether the generated canonical files carry explicit file-level evidence, inference, and unresolved-gap tracking",
|
|
121
|
+
" - `nimicoding validate-spec-audit` 用于检查生成的 canonical 文件是否携带显式的逐文件证据、推断来源和未解决缺口记录",
|
|
122
|
+
)),
|
|
123
|
+
styleMuted(localize(
|
|
124
|
+
" - `nimicoding handoff --prompt` writes local prompt/json refs under .nimi/local/handoff/",
|
|
125
|
+
" - `nimicoding handoff --prompt` 会把本地 prompt/json ref 写入 .nimi/local/handoff/",
|
|
126
|
+
)),
|
|
127
|
+
styleMuted(localize(
|
|
128
|
+
" - use `--lang zh` or `--lang en` to switch human-readable output",
|
|
129
|
+
" - 使用 `--lang zh` 或 `--lang en` 切换人类可读输出语言",
|
|
130
|
+
)),
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
return `${lines.join("\n")}\n`;
|
|
134
|
+
}
|