mdkg 0.2.0 → 0.3.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.
- package/CHANGELOG.md +87 -1
- package/CLI_COMMAND_MATRIX.md +1176 -0
- package/README.md +58 -5
- package/dist/cli.js +267 -12
- package/dist/command-contract.json +7473 -0
- package/dist/commands/capability.js +13 -8
- package/dist/commands/doctor.js +370 -86
- package/dist/commands/fix.js +924 -0
- package/dist/commands/format.js +9 -3
- package/dist/commands/skill.js +13 -3
- package/dist/commands/skill_support.js +3 -3
- package/dist/commands/spec.js +101 -0
- package/dist/commands/status.js +270 -0
- package/dist/commands/subgraph.js +300 -0
- package/dist/commands/validate.js +1 -1
- package/dist/commands/work.js +569 -20
- package/dist/commands/workspace.js +19 -7
- package/dist/graph/agent_file_types.js +95 -7
- package/dist/graph/capabilities_indexer.js +89 -2
- package/dist/graph/frontmatter.js +6 -0
- package/dist/graph/node.js +8 -2
- package/dist/init/AGENT_START.md +5 -1
- package/dist/init/CLI_COMMAND_MATRIX.md +36 -0
- package/dist/init/README.md +41 -2
- package/dist/init/init-manifest.json +20 -20
- package/dist/init/templates/default/receipt.md +12 -1
- package/dist/init/templates/default/spec.md +8 -6
- package/dist/init/templates/default/work.md +5 -1
- package/dist/init/templates/default/work_order.md +11 -0
- package/dist/init/templates/specs/agent.SPEC.md +45 -4
- package/dist/init/templates/specs/api.SPEC.md +1 -0
- package/dist/init/templates/specs/base.SPEC.md +45 -12
- package/dist/init/templates/specs/capability.SPEC.md +16 -3
- package/dist/init/templates/specs/integration.SPEC.md +1 -0
- package/dist/init/templates/specs/model.SPEC.md +1 -0
- package/dist/init/templates/specs/project.SPEC.md +14 -1
- package/dist/init/templates/specs/{omniruntime-agent.SPEC.md → runtime-agent.SPEC.md} +13 -3
- package/dist/init/templates/specs/runtime-image.SPEC.md +1 -0
- package/dist/init/templates/specs/tool.SPEC.md +1 -0
- package/dist/util/argparse.js +9 -0
- package/package.json +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,93 @@ This project follows a pragmatic changelog style inspired by Keep a Changelog. V
|
|
|
6
6
|
|
|
7
7
|
mdkg is pre-v1 public alpha software. Command, graph, cache, bundle, and DAL contracts may change quickly while the project converges on a stable v1 surface.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Unreleased
|
|
10
|
+
|
|
11
|
+
### Planned
|
|
12
|
+
|
|
13
|
+
- No changes yet.
|
|
14
|
+
|
|
15
|
+
## 0.3.1 - 2026-06-11
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Added `mdkg status --json` as a read-only operator health summary covering
|
|
20
|
+
package/release metadata, Git state, graph/index freshness, selected-goal
|
|
21
|
+
state, project DB verification state, and generated cache health.
|
|
22
|
+
- Added strict typed doctor checks with `mdkg doctor --strict --json`,
|
|
23
|
+
including stable check ids, status/severity fields, remediation text, selected
|
|
24
|
+
goal stale/achieved detection, and enabled project DB verification failures.
|
|
25
|
+
- Added dry-run-only `mdkg fix plan --json` with receipt-shaped repair plans for
|
|
26
|
+
generated index/cache state, missing graph references, and duplicate local ids.
|
|
27
|
+
- Added read-only `mdkg subgraph audit` and `mdkg subgraph upgrade-plan`
|
|
28
|
+
receipts for child graph source-path health, root-owned bundle safety,
|
|
29
|
+
materialized-tree safety, dirty child repo refusal, and downstream sync/verify
|
|
30
|
+
planning.
|
|
31
|
+
- Added generated `dist/command-contract.json` metadata and `npm run
|
|
32
|
+
cli:contract` so command docs can be generated from mdkg-native command
|
|
33
|
+
policy metadata before `mdkg.dev` launch.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- Hardened mutating command paths with mutation locks and atomic writes for
|
|
38
|
+
format, skill, and workspace updates.
|
|
39
|
+
- Extended prepublish readiness with operator-health, fix-plan,
|
|
40
|
+
branch-conflict, and command-docs packed smoke coverage.
|
|
41
|
+
- Updated README, `CLI_COMMAND_MATRIX.md`, init assets, help snapshots, and
|
|
42
|
+
publish-readiness assertions for the new operator-health, fix-planning,
|
|
43
|
+
subgraph safety, branch safety, generated command contract, and docs
|
|
44
|
+
readiness surfaces.
|
|
45
|
+
|
|
46
|
+
### Security
|
|
47
|
+
|
|
48
|
+
- Kept repair planning, subgraph upgrade planning, and operator health commands
|
|
49
|
+
read-only by default; apply behavior, child repo mutation, worker execution,
|
|
50
|
+
and public event/reducer/lease/materializer CLI remain deferred.
|
|
51
|
+
|
|
52
|
+
## 0.3.0 - 2026-06-06
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
|
|
56
|
+
- Added optional `SPEC.md` reusable capability records with strict validation
|
|
57
|
+
for supported `spec_kind` values and diagnostics that reject documentation-only
|
|
58
|
+
misuse while keeping repos without SPEC files valid.
|
|
59
|
+
- Added focused `mdkg spec list/show/validate` commands for optional SPEC
|
|
60
|
+
capability discovery alongside the broader `mdkg capability ...` surface.
|
|
61
|
+
- Added a dogfood mdkg CLI `SPEC.md` and linked `WORK.md` contract so the CLI's
|
|
62
|
+
graph, project DB, skill, and tool capabilities are discoverable through the
|
|
63
|
+
same capability index used by downstream repos.
|
|
64
|
+
- Added deterministic `mdkg work trigger`, `mdkg work order status`, and
|
|
65
|
+
`mdkg work receipt verify` helpers for creating submitted work-order mirrors,
|
|
66
|
+
reviewing order/receipt linkage, and validating receipt evidence without
|
|
67
|
+
executing work.
|
|
68
|
+
- Added optional `mdkg work trigger --enqueue <queue>` delivery bridging to the
|
|
69
|
+
public local project DB queue surface. The bridge requires an initialized,
|
|
70
|
+
migrated, verified DB and an explicitly created active queue, records
|
|
71
|
+
delivery refs, and still does not execute work.
|
|
72
|
+
- Added read-only SPEC/WORK capability linkage arrays for related specs, work
|
|
73
|
+
contracts, work orders, and receipts.
|
|
74
|
+
- Added packed `smoke:work-invocation` coverage for trigger-to-order-to-receipt
|
|
75
|
+
verification plus queue bridge delivery from an installed tarball.
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- Hardened default SPEC, WORK, WORK_ORDER, and RECEIPT templates with capability
|
|
80
|
+
metadata, payload hashes, queue refs, evidence hashes, redaction policies, and
|
|
81
|
+
explicit semantic-mirror boundaries.
|
|
82
|
+
- Updated README, command matrix, help snapshots, init assets, and upgrade
|
|
83
|
+
smokes for optional SPEC adoption, work invocation helpers, queue bridge
|
|
84
|
+
behavior, capability linkage, and no-SPEC backward compatibility.
|
|
85
|
+
- Strengthened init and upgrade smokes so fresh workspaces can remain SPEC-free
|
|
86
|
+
while optional SPEC/WORK templates can be created and validated on demand.
|
|
87
|
+
|
|
88
|
+
### Security
|
|
89
|
+
|
|
90
|
+
- Audited templates, docs, dogfood mirrors, and work invocation command paths for
|
|
91
|
+
no-secret and semantic-mirror boundaries before the 0.3.0 release metadata
|
|
92
|
+
bump. No raw secret, credential, payment, ledger, or canonical production
|
|
93
|
+
state values were identified.
|
|
94
|
+
|
|
95
|
+
## 0.2.0 - 2026-06-06
|
|
10
96
|
|
|
11
97
|
Release numbering note: future project DB materializer/profile release planning
|
|
12
98
|
should follow `0.1.9 -> 0.2.0` rather than continuing the line as `0.1.10`
|