mdkg 0.3.7 → 0.3.8

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 (37) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/CLI_COMMAND_MATRIX.md +81 -22
  3. package/README.md +50 -25
  4. package/dist/cli.js +70 -34
  5. package/dist/command-contract.json +354 -9
  6. package/dist/commands/capability.js +1 -0
  7. package/dist/commands/doctor.js +7 -7
  8. package/dist/commands/format.js +40 -1
  9. package/dist/commands/handoff.js +6 -0
  10. package/dist/commands/new.js +12 -3
  11. package/dist/commands/spec.js +76 -17
  12. package/dist/commands/subgraph.js +7 -4
  13. package/dist/commands/upgrade.js +70 -6
  14. package/dist/commands/validate.js +106 -3
  15. package/dist/commands/work.js +12 -5
  16. package/dist/graph/agent_file_types.js +59 -20
  17. package/dist/graph/capabilities_indexer.js +45 -3
  18. package/dist/graph/indexer.js +5 -0
  19. package/dist/graph/template_schema.js +37 -17
  20. package/dist/graph/validate_graph.js +11 -5
  21. package/dist/init/AGENT_START.md +5 -5
  22. package/dist/init/CLI_COMMAND_MATRIX.md +29 -16
  23. package/dist/init/README.md +11 -9
  24. package/dist/init/init-manifest.json +59 -4
  25. package/dist/init/templates/default/manifest.md +45 -0
  26. package/dist/init/templates/specs/agent.MANIFEST.md +80 -0
  27. package/dist/init/templates/specs/api.MANIFEST.md +33 -0
  28. package/dist/init/templates/specs/base.MANIFEST.md +120 -0
  29. package/dist/init/templates/specs/capability.MANIFEST.md +45 -0
  30. package/dist/init/templates/specs/integration.MANIFEST.md +25 -0
  31. package/dist/init/templates/specs/model.MANIFEST.md +21 -0
  32. package/dist/init/templates/specs/project.MANIFEST.md +39 -0
  33. package/dist/init/templates/specs/runtime-agent.MANIFEST.md +49 -0
  34. package/dist/init/templates/specs/runtime-image.MANIFEST.md +21 -0
  35. package/dist/init/templates/specs/tool.MANIFEST.md +25 -0
  36. package/dist/util/argparse.js +3 -0
  37. package/package.json +17 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mdkg",
3
- "version": "0.3.7",
4
- "description": "Markdown Knowledge Graph",
3
+ "version": "0.3.8",
4
+ "description": "Git-native project memory for AI coding agents",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "mdkg": "dist/cli.js"
@@ -35,7 +35,21 @@
35
35
  "smoke:semantic-refs": "npm run build && node scripts/smoke-semantic-refs.js",
36
36
  "smoke:checkpoint-templates": "npm run build && node scripts/smoke-checkpoint-templates.js",
37
37
  "smoke:handoff": "npm run build && node scripts/smoke-handoff.js",
38
+ "smoke:warning-ux": "npm run build && node scripts/smoke-warning-ux.js",
38
39
  "smoke:integration-ux": "npm run build && node scripts/smoke-integration-ux.js",
40
+ "docs:generate": "npm run build && node scripts/generate-docs-reference.js --write",
41
+ "docs:check": "npm run build && node scripts/generate-docs-reference.js --check",
42
+ "docs:check-commands": "npm run build && node scripts/check-doc-command-examples.js",
43
+ "smoke:mdkg-dev": "npm run build && node scripts/smoke-mdkg-dev.js",
44
+ "smoke:mdkg-dev-docs": "npm run build && node scripts/smoke-mdkg-dev-docs.js",
45
+ "smoke:mdkg-dev-seo": "npm run build && node scripts/smoke-mdkg-dev-seo.js",
46
+ "smoke:mdkg-dev-polish-pass2": "npm run build && node scripts/smoke-mdkg-dev-polish-pass2.js",
47
+ "smoke:mdkg-dev-polish-pass3": "npm run build && node scripts/smoke-mdkg-dev-polish-pass3.js",
48
+ "smoke:mdkg-dev-polish-pass4": "npm run build && node scripts/smoke-mdkg-dev-polish-pass4.js",
49
+ "smoke:mdkg-dev-polish-pass5": "npm run build && node scripts/smoke-mdkg-dev-polish-pass5.js",
50
+ "smoke:mdkg-dev-a11y": "npm run build && node scripts/smoke-mdkg-dev-a11y.js",
51
+ "smoke:mdkg-dev-perf": "npm run build && node scripts/smoke-mdkg-dev-perf.js",
52
+ "smoke:demo-graph": "npm run build && node scripts/smoke-demo-graph.js",
39
53
  "smoke:bundle": "npm run build && node scripts/smoke-bundle.js",
40
54
  "smoke:graph-clone": "npm run build && node scripts/smoke-graph-clone.js",
41
55
  "smoke:mcp": "npm run build && node scripts/smoke-mcp.js",
@@ -48,7 +62,7 @@
48
62
  "cli:check": "npm run build && node scripts/cli_help_snapshot.js --check",
49
63
  "cli:contract": "npm run build && node scripts/generate-command-contract.js --check",
50
64
  "prepack": "npm run build && node scripts/assert-publish-ready.js",
51
- "prepublishOnly": "npm run test && npm run cli:check && npm run cli:contract && node dist/cli.js validate && npm run smoke:consumer && npm run smoke:matrix && npm run smoke:upgrade && npm run smoke:init && npm run smoke:capabilities && npm run smoke:db && npm run smoke:db-queue && npm run smoke:db-queue-cli && npm run smoke:db-events && npm run smoke:db-materializer && npm run smoke:db-snapshot && npm run smoke:archive-work && npm run smoke:work-invocation && npm run smoke:cli-ux-polish && npm run smoke:operator-health && npm run smoke:fix-plan && npm run smoke:branch-conflicts && npm run smoke:id-repair && npm run smoke:command-docs && npm run smoke:spike && npm run smoke:goal-lifecycle && npm run smoke:semantic-refs && npm run smoke:checkpoint-templates && npm run smoke:handoff && npm run smoke:integration-ux && npm run smoke:bundle && npm run smoke:graph-clone && npm run smoke:mcp && npm run smoke:subgraph && npm run smoke:visibility && npm run smoke:sqlite && npm run smoke:parallel && npm run smoke:goal && node scripts/assert-publish-ready.js",
65
+ "prepublishOnly": "npm run test && npm run cli:check && npm run cli:contract && node dist/cli.js validate && npm run smoke:consumer && npm run smoke:matrix && npm run smoke:upgrade && npm run smoke:init && npm run smoke:capabilities && npm run smoke:db && npm run smoke:db-queue && npm run smoke:db-queue-cli && npm run smoke:db-events && npm run smoke:db-materializer && npm run smoke:db-snapshot && npm run smoke:archive-work && npm run smoke:work-invocation && npm run smoke:cli-ux-polish && npm run smoke:operator-health && npm run smoke:fix-plan && npm run smoke:branch-conflicts && npm run smoke:id-repair && npm run smoke:command-docs && npm run smoke:spike && npm run smoke:goal-lifecycle && npm run smoke:semantic-refs && npm run smoke:checkpoint-templates && npm run smoke:handoff && npm run smoke:warning-ux && npm run smoke:integration-ux && npm run smoke:mdkg-dev && npm run smoke:mdkg-dev-docs && npm run smoke:mdkg-dev-seo && npm run smoke:mdkg-dev-polish-pass2 && npm run smoke:mdkg-dev-polish-pass3 && npm run smoke:mdkg-dev-polish-pass4 && npm run smoke:mdkg-dev-polish-pass5 && npm run smoke:mdkg-dev-a11y && npm run smoke:mdkg-dev-perf && npm run smoke:demo-graph && npm run smoke:bundle && npm run smoke:graph-clone && npm run smoke:mcp && npm run smoke:subgraph && npm run smoke:visibility && npm run smoke:sqlite && npm run smoke:parallel && npm run smoke:goal && node scripts/assert-publish-ready.js",
52
66
  "postinstall": "node scripts/postinstall.js",
53
67
  "smoke:subgraph": "npm run build && node scripts/smoke-subgraph.js"
54
68
  },