mdkg 0.3.0 → 0.3.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "tool": "mdkg",
4
- "mdkg_version": "0.3.0",
4
+ "mdkg_version": "0.3.2",
5
5
  "files": [
6
6
  {
7
7
  "path": ".mdkg/config.json",
@@ -46,7 +46,7 @@
46
46
  {
47
47
  "path": ".mdkg/core/rule-5-release-and-versioning.md",
48
48
  "category": "core",
49
- "sha256": "e97b00aa3ade29011f1f2b482042ec292f74aad8b1d72e2f8e691cdeca5d4f70"
49
+ "sha256": "d7862806f999ae23b1d8bc3446f8c81b3a7fdd7d87920d966f59795a84978a03"
50
50
  },
51
51
  {
52
52
  "path": ".mdkg/core/rule-6-templates-and-schemas.md",
@@ -61,7 +61,7 @@
61
61
  {
62
62
  "path": ".mdkg/README.md",
63
63
  "category": "mdkg_doc",
64
- "sha256": "353aa7318974d4b3dbdf772ae5a3deb2d41b5d71ea5308d260aab8081121548b"
64
+ "sha256": "c08de01602698af7eb46b70e9459df9c2fa6e6c32c06b2daab3f697baa450e0d"
65
65
  },
66
66
  {
67
67
  "path": ".mdkg/skills/build-pack-and-execute-task/SKILL.md",
@@ -163,6 +163,11 @@
163
163
  "category": "template",
164
164
  "sha256": "8c96e0b6dafa65acb83a2d84519e05a7354896aec8991c148650e9ec58196c77"
165
165
  },
166
+ {
167
+ "path": ".mdkg/templates/default/spike.md",
168
+ "category": "template",
169
+ "sha256": "ac805dca7e6edcdad35e24b615dc7399cbae3bed676b9da57e24a393eb425245"
170
+ },
166
171
  {
167
172
  "path": ".mdkg/templates/default/task.md",
168
173
  "category": "template",
@@ -256,7 +261,7 @@
256
261
  {
257
262
  "path": "CLI_COMMAND_MATRIX.md",
258
263
  "category": "startup_doc",
259
- "sha256": "48c1b7fbef3a01faf5ddf8bb232b19362b49ef2a371a7c38ae11302c8b3bccac"
264
+ "sha256": "888c5ce1372c0a7ba2c24bfe0aea97e221804cab1fa8940e06dc050330830a76"
260
265
  },
261
266
  {
262
267
  "path": "llms.txt",
@@ -0,0 +1,81 @@
1
+ ---
2
+ id: {{id}}
3
+ type: spike
4
+ title: {{title}}
5
+ status: {{status}}
6
+ priority: {{priority}}
7
+ epic: {{epic}}
8
+ parent: {{parent}}
9
+ prev: {{prev}}
10
+ next: {{next}}
11
+ tags: []
12
+ owners: []
13
+ links: []
14
+ artifacts: []
15
+ relates: []
16
+ blocked_by: []
17
+ blocks: []
18
+ refs: []
19
+ aliases: []
20
+ skills: []
21
+ created: {{created}}
22
+ updated: {{updated}}
23
+ ---
24
+
25
+ # Research Question
26
+
27
+ State the question this spike must answer.
28
+
29
+ # Context And Constraints
30
+
31
+ - constraint 1
32
+ - constraint 2
33
+
34
+ # Search Plan
35
+
36
+ - source or query 1
37
+ - source or query 2
38
+
39
+ # Findings
40
+
41
+ - finding 1
42
+ - finding 2
43
+
44
+ # Options And Tradeoffs
45
+
46
+ - option 1: tradeoff
47
+ - option 2: tradeoff
48
+
49
+ # Recommendation
50
+
51
+ Summarize the recommended direction and why.
52
+
53
+ # Follow-Up Nodes To Create
54
+
55
+ - task/test/decision candidate 1
56
+ - task/test/decision candidate 2
57
+
58
+ # Skill Candidates
59
+
60
+ - skill candidate 1
61
+ - skill candidate 2
62
+
63
+ # Data Structures And Algorithms Notes
64
+
65
+ - note 1
66
+
67
+ # UX Notes
68
+
69
+ - note 1
70
+
71
+ # Security Notes
72
+
73
+ - note 1
74
+
75
+ # mdkg.dev Launch Implications
76
+
77
+ - implication 1
78
+
79
+ # Evidence And Sources
80
+
81
+ - source 1
@@ -21,9 +21,10 @@ const FALLBACK_TYPES = [
21
21
  "feat",
22
22
  "task",
23
23
  "bug",
24
+ "spike",
24
25
  "checkpoint",
25
26
  ];
26
- const WORK_TYPES = ["goal", "epic", "feat", "task", "bug", "checkpoint"];
27
+ const WORK_TYPES = ["goal", "epic", "feat", "task", "bug", "spike", "checkpoint"];
27
28
  function idNumber(id) {
28
29
  const match = id.match(/-(\d+)$/);
29
30
  if (!match) {
@@ -76,7 +77,7 @@ function buildOrderKey(index, rootQid, qid, depths) {
76
77
  const node = index.nodes[qid];
77
78
  const root = index.nodes[rootQid];
78
79
  const depth = depths.get(qid);
79
- const rootIsTask = root.type === "task" || root.type === "bug";
80
+ const rootIsTask = root.type === "task" || root.type === "bug" || root.type === "spike";
80
81
  if (qid === rootQid) {
81
82
  return {
82
83
  group: 0,
@@ -94,6 +94,7 @@ const VALUE_FLAGS = new Set([
94
94
  "--requires",
95
95
  "--target",
96
96
  "--snapshot",
97
+ "--family",
97
98
  ]);
98
99
  const BOOLEAN_FLAGS = new Set([
99
100
  "--tolerant",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "mdkg",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
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",
@@ -25,6 +25,11 @@
25
25
  "smoke:archive-work": "npm run build && node scripts/smoke-archive-work.js",
26
26
  "smoke:work-invocation": "npm run build && node scripts/smoke-work-invocation.js",
27
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",
32
+ "smoke:spike": "npm run build && node scripts/smoke-spike.js",
28
33
  "smoke:bundle": "npm run build && node scripts/smoke-bundle.js",
29
34
  "smoke:bundle-import": "npm run smoke:subgraph",
30
35
  "smoke:visibility": "npm run build && node scripts/smoke-visibility.js",
@@ -33,8 +38,9 @@
33
38
  "smoke:goal": "npm run build && node scripts/smoke-goal.js",
34
39
  "cli:snapshot": "npm run build && node scripts/cli_help_snapshot.js",
35
40
  "cli:check": "npm run build && node scripts/cli_help_snapshot.js --check",
41
+ "cli:contract": "npm run build && node scripts/generate-command-contract.js --check",
36
42
  "prepack": "npm run build && node scripts/assert-publish-ready.js",
37
- "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:work-invocation && npm run smoke:cli-ux-polish && 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",
43
+ "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:spike && 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",
38
44
  "postinstall": "node scripts/postinstall.js",
39
45
  "smoke:subgraph": "npm run build && node scripts/smoke-subgraph.js"
40
46
  },
@@ -44,6 +50,7 @@
44
50
  },
45
51
  "files": [
46
52
  "dist/cli.js",
53
+ "dist/command-contract.json",
47
54
  "dist/commands/",
48
55
  "dist/core/",
49
56
  "dist/graph/",
@@ -53,6 +60,7 @@
53
60
  "dist/util/",
54
61
  "scripts/postinstall.js",
55
62
  "README.md",
63
+ "CLI_COMMAND_MATRIX.md",
56
64
  "CHANGELOG.md",
57
65
  "CONTRIBUTING.md",
58
66
  "LICENSE"