coaiajs 0.4.3 → 0.5.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 (78) hide show
  1. package/README.md +24 -5
  2. package/dist/mcp/config.d.ts.map +1 -1
  3. package/dist/mcp/config.js +13 -1
  4. package/dist/mcp/config.js.map +1 -1
  5. package/dist/mcp/server.js +11 -1
  6. package/dist/mcp/server.js.map +1 -1
  7. package/dist/src/cli.js +62 -2
  8. package/dist/src/cli.js.map +1 -1
  9. package/dist/src/index.d.ts +1 -0
  10. package/dist/src/index.d.ts.map +1 -1
  11. package/dist/src/index.js +1 -0
  12. package/dist/src/index.js.map +1 -1
  13. package/dist/src/narrative/argument-hygiene.d.ts +46 -0
  14. package/dist/src/narrative/argument-hygiene.d.ts.map +1 -0
  15. package/dist/src/narrative/argument-hygiene.js +155 -0
  16. package/dist/src/narrative/argument-hygiene.js.map +1 -0
  17. package/dist/src/narrative/contract.d.ts +200 -0
  18. package/dist/src/narrative/contract.d.ts.map +1 -0
  19. package/dist/src/narrative/contract.js +274 -0
  20. package/dist/src/narrative/contract.js.map +1 -0
  21. package/dist/src/narrative/github-bridge.d.ts +23 -0
  22. package/dist/src/narrative/github-bridge.d.ts.map +1 -0
  23. package/dist/src/narrative/github-bridge.js +320 -0
  24. package/dist/src/narrative/github-bridge.js.map +1 -0
  25. package/dist/src/narrative/graph-manager.d.ts +83 -2
  26. package/dist/src/narrative/graph-manager.d.ts.map +1 -1
  27. package/dist/src/narrative/graph-manager.js +444 -54
  28. package/dist/src/narrative/graph-manager.js.map +1 -1
  29. package/dist/src/narrative/index.d.ts +24 -3
  30. package/dist/src/narrative/index.d.ts.map +1 -1
  31. package/dist/src/narrative/index.js +36 -15
  32. package/dist/src/narrative/index.js.map +1 -1
  33. package/dist/src/narrative/jsonl-preservation.d.ts +26 -0
  34. package/dist/src/narrative/jsonl-preservation.d.ts.map +1 -0
  35. package/dist/src/narrative/jsonl-preservation.js +293 -0
  36. package/dist/src/narrative/jsonl-preservation.js.map +1 -0
  37. package/dist/src/narrative/jsonl-records.d.ts +31 -0
  38. package/dist/src/narrative/jsonl-records.d.ts.map +1 -0
  39. package/dist/src/narrative/jsonl-records.js +69 -0
  40. package/dist/src/narrative/jsonl-records.js.map +1 -0
  41. package/dist/src/narrative/tool-definitions.d.ts +2 -1
  42. package/dist/src/narrative/tool-definitions.d.ts.map +1 -1
  43. package/dist/src/narrative/tool-definitions.js +134 -1
  44. package/dist/src/narrative/tool-definitions.js.map +1 -1
  45. package/dist/src/narrative/tool-handlers.d.ts.map +1 -1
  46. package/dist/src/narrative/tool-handlers.js +203 -20
  47. package/dist/src/narrative/tool-handlers.js.map +1 -1
  48. package/dist/src/narrative/types.d.ts +1 -1
  49. package/dist/src/narrative/types.d.ts.map +1 -1
  50. package/dist/src/narrative/validation.d.ts +13 -2
  51. package/dist/src/narrative/validation.d.ts.map +1 -1
  52. package/dist/src/narrative/validation.js +19 -4
  53. package/dist/src/narrative/validation.js.map +1 -1
  54. package/dist/src/skill.d.ts +78 -0
  55. package/dist/src/skill.d.ts.map +1 -0
  56. package/dist/src/skill.js +341 -0
  57. package/dist/src/skill.js.map +1 -0
  58. package/dist/src/types.d.ts +189 -0
  59. package/dist/src/types.d.ts.map +1 -1
  60. package/dist/src/types.js.map +1 -1
  61. package/dist/src/version.d.ts +9 -0
  62. package/dist/src/version.d.ts.map +1 -1
  63. package/dist/src/version.js +30 -14
  64. package/dist/src/version.js.map +1 -1
  65. package/docs/LINEAGE-COAIA-NARRATIVE.md +150 -0
  66. package/llms-full.txt +93 -8
  67. package/llms.txt +6 -3
  68. package/package.json +11 -1
  69. package/skills/coaiajs/SKILL.md +151 -0
  70. package/skills/coaiajs/references/beyond-narrative.md +82 -0
  71. package/skills/coaiajs/references/creative-orientation.md +42 -0
  72. package/skills/coaiajs/references/delayed-resolution.md +48 -0
  73. package/skills/coaiajs/references/install-and-environment.md +85 -0
  74. package/skills/coaiajs/references/mcp-tools.md +83 -0
  75. package/skills/coaiajs/references/narrative-beats.md +44 -0
  76. package/skills/coaiajs/references/reading-the-store.md +66 -0
  77. package/skills/coaiajs/references/structural-tension-charting.md +71 -0
  78. package/skills/coaiajs/references/wampum-belts.md +72 -0
@@ -0,0 +1,72 @@
1
+ # Wampum Belts
2
+
3
+ A Wampum Belt is a non-linear mnemonic grid that runs in **parallel** with the linear
4
+ narrative beats. Beats are a sequence; a belt is a surface where position itself carries
5
+ meaning.
6
+
7
+ Reach for a belt when the order of things is not a line: when a reading depends on where
8
+ it sits relative to its neighbours, when several perspectives on one bead are all true,
9
+ or when a commitment needs a witness rather than a timestamp.
10
+
11
+ ## Shape
12
+
13
+ A belt has `rows` × `cols` positions. Each position holds at most one bead, written once.
14
+
15
+ A bead carries:
16
+
17
+ | Field | Meaning |
18
+ |---|---|
19
+ | `mnemonic` | Short anchor phrase |
20
+ | `color` | `white`, `purple`, `black`, or `mixed` |
21
+ | `position` | `{ row, col }`, zero-indexed, inside the grid |
22
+ | `reading` | The canonical meaning |
23
+ | `relationalReadings` | Optional per-perspective readings, keyed `left` / `center` / `right` / `row:N` / `col:N` |
24
+ | `ceremonyLink` | Optional tie to a chart or a beat |
25
+ | `observations` | Free notes |
26
+
27
+ `read_wampum_belt` with a `position` resolves the reading for that position: it prefers
28
+ `col:N`, then `row:N`, then the positional label (`left` / `center` / `right`), and falls
29
+ back to the canonical `reading`.
30
+
31
+ ## Ceremony links
32
+
33
+ `ceremonyLink.ceremonyType` is one of `commitment`, `accountability`, `witness`, or
34
+ `renewal`. With `chartId` it writes a `wampum_holds_accountable` edge to that chart; with
35
+ `beatName` it writes a `wampum_witnesses` edge to that beat.
36
+
37
+ **The edge is subject to the bead, not the belt.** A relation's identity in the store is
38
+ `(from, to, relationType)`. With the belt as subject, a second bead linking the same chart
39
+ under a different `ceremonyType` collided on that triple: the existence check matched, the
40
+ edge was skipped, and the bead kept a ceremony type the graph had no edge for. Silent
41
+ discard, with the bead's own record disagreeing with the graph and nothing saying so.
42
+
43
+ A bead id is `bead_<beltId>_<row>_<col>` and a position is written once, so
44
+ `(bead, target, relationType)` is unique by construction and every ceremony link survives
45
+ carrying its own type.
46
+
47
+ ## Tools
48
+
49
+ ```json
50
+ { "tool": "create_wampum_belt",
51
+ "arguments": { "title": "Release ceremony", "purpose": "Hold what each step promised", "rows": 2, "cols": 3 } }
52
+ ```
53
+
54
+ ```json
55
+ { "tool": "add_wampum_bead",
56
+ "arguments": {
57
+ "beltId": "belt_1757200000000",
58
+ "mnemonic": "witnessed",
59
+ "color": "purple",
60
+ "position": { "row": 0, "col": 1 },
61
+ "reading": "The publish was seen by someone other than its author",
62
+ "relationalReadings": { "center": "seen from the middle of the belt" },
63
+ "ceremonyLink": { "ceremonyType": "witness", "chartId": "chart_1757200000000" }
64
+ } }
65
+ ```
66
+
67
+ ```json
68
+ { "tool": "read_wampum_belt", "arguments": { "beltId": "belt_1757200000000" } }
69
+ ```
70
+
71
+ Out-of-bounds positions, occupied positions, and non-integer grids are refused with the
72
+ reason named.