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.
Files changed (41) hide show
  1. package/CHANGELOG.md +87 -1
  2. package/CLI_COMMAND_MATRIX.md +1176 -0
  3. package/README.md +58 -5
  4. package/dist/cli.js +267 -12
  5. package/dist/command-contract.json +7473 -0
  6. package/dist/commands/capability.js +13 -8
  7. package/dist/commands/doctor.js +370 -86
  8. package/dist/commands/fix.js +924 -0
  9. package/dist/commands/format.js +9 -3
  10. package/dist/commands/skill.js +13 -3
  11. package/dist/commands/skill_support.js +3 -3
  12. package/dist/commands/spec.js +101 -0
  13. package/dist/commands/status.js +270 -0
  14. package/dist/commands/subgraph.js +300 -0
  15. package/dist/commands/validate.js +1 -1
  16. package/dist/commands/work.js +569 -20
  17. package/dist/commands/workspace.js +19 -7
  18. package/dist/graph/agent_file_types.js +95 -7
  19. package/dist/graph/capabilities_indexer.js +89 -2
  20. package/dist/graph/frontmatter.js +6 -0
  21. package/dist/graph/node.js +8 -2
  22. package/dist/init/AGENT_START.md +5 -1
  23. package/dist/init/CLI_COMMAND_MATRIX.md +36 -0
  24. package/dist/init/README.md +41 -2
  25. package/dist/init/init-manifest.json +20 -20
  26. package/dist/init/templates/default/receipt.md +12 -1
  27. package/dist/init/templates/default/spec.md +8 -6
  28. package/dist/init/templates/default/work.md +5 -1
  29. package/dist/init/templates/default/work_order.md +11 -0
  30. package/dist/init/templates/specs/agent.SPEC.md +45 -4
  31. package/dist/init/templates/specs/api.SPEC.md +1 -0
  32. package/dist/init/templates/specs/base.SPEC.md +45 -12
  33. package/dist/init/templates/specs/capability.SPEC.md +16 -3
  34. package/dist/init/templates/specs/integration.SPEC.md +1 -0
  35. package/dist/init/templates/specs/model.SPEC.md +1 -0
  36. package/dist/init/templates/specs/project.SPEC.md +14 -1
  37. package/dist/init/templates/specs/{omniruntime-agent.SPEC.md → runtime-agent.SPEC.md} +13 -3
  38. package/dist/init/templates/specs/runtime-image.SPEC.md +1 -0
  39. package/dist/init/templates/specs/tool.SPEC.md +1 -0
  40. package/dist/util/argparse.js +9 -0
  41. package/package.json +12 -3
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "mdkg",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Markdown Knowledge Graph",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "mdkg": "dist/cli.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "node scripts/clean-build-output.js && tsc -p tsconfig.build.json && node scripts/add-shebang.js && node scripts/copy-init-assets.js",
10
+ "build": "node scripts/clean-build-output.js && tsc -p tsconfig.build.json && node scripts/add-shebang.js && node scripts/copy-init-assets.js && node scripts/generate-command-contract.js --write",
11
11
  "build:test": "node scripts/clean-build-output.js tests && tsc -p tsconfig.test.json",
12
12
  "test": "npm run build && npm run build:test && node --test dist/tests/**/*.test.js",
13
13
  "test:coverage": "npm run build && npm run build:test && node --test --experimental-test-coverage dist/tests/**/*.test.js",
@@ -23,6 +23,12 @@
23
23
  "smoke:db-materializer": "npm run build && node scripts/smoke-db-materializer.js",
24
24
  "smoke:db-snapshot": "npm run build && node scripts/smoke-db-snapshot.js",
25
25
  "smoke:archive-work": "npm run build && node scripts/smoke-archive-work.js",
26
+ "smoke:work-invocation": "npm run build && node scripts/smoke-work-invocation.js",
27
+ "smoke:cli-ux-polish": "npm run build && node scripts/smoke-cli-ux-polish.js",
28
+ "smoke:operator-health": "npm run build && node scripts/smoke-operator-health.js",
29
+ "smoke:fix-plan": "npm run build && node scripts/smoke-fix-plan.js",
30
+ "smoke:branch-conflicts": "npm run build && node scripts/smoke-branch-conflicts.js",
31
+ "smoke:command-docs": "npm run build && node scripts/smoke-command-docs.js",
26
32
  "smoke:bundle": "npm run build && node scripts/smoke-bundle.js",
27
33
  "smoke:bundle-import": "npm run smoke:subgraph",
28
34
  "smoke:visibility": "npm run build && node scripts/smoke-visibility.js",
@@ -31,8 +37,9 @@
31
37
  "smoke:goal": "npm run build && node scripts/smoke-goal.js",
32
38
  "cli:snapshot": "npm run build && node scripts/cli_help_snapshot.js",
33
39
  "cli:check": "npm run build && node scripts/cli_help_snapshot.js --check",
40
+ "cli:contract": "npm run build && node scripts/generate-command-contract.js --check",
34
41
  "prepack": "npm run build && node scripts/assert-publish-ready.js",
35
- "prepublishOnly": "npm run test && npm run cli:check && 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:bundle && 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",
42
+ "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:command-docs && npm run smoke:bundle && 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",
36
43
  "postinstall": "node scripts/postinstall.js",
37
44
  "smoke:subgraph": "npm run build && node scripts/smoke-subgraph.js"
38
45
  },
@@ -42,6 +49,7 @@
42
49
  },
43
50
  "files": [
44
51
  "dist/cli.js",
52
+ "dist/command-contract.json",
45
53
  "dist/commands/",
46
54
  "dist/core/",
47
55
  "dist/graph/",
@@ -51,6 +59,7 @@
51
59
  "dist/util/",
52
60
  "scripts/postinstall.js",
53
61
  "README.md",
62
+ "CLI_COMMAND_MATRIX.md",
54
63
  "CHANGELOG.md",
55
64
  "CONTRIBUTING.md",
56
65
  "LICENSE"