@quolu/lattice 0.60.3 → 0.60.5

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 (71) hide show
  1. package/LICENSE +147 -147
  2. package/README.ja.md +387 -387
  3. package/README.md +291 -291
  4. package/bin/lattice-dashboard.mjs +7 -3
  5. package/bin/lattice-mcp.mjs +0 -0
  6. package/bin/lattice-scripted-adapter.mjs +0 -0
  7. package/bin/lattice-scripted-worker.mjs +0 -0
  8. package/bin/lattice-work-order-adapter.mjs +0 -0
  9. package/bin/lattice.mjs +2 -4
  10. package/docs/bridge-setup.md +239 -239
  11. package/docs/schemas/lattice.executor_packet.v1.schema.json +57 -57
  12. package/docs/schemas/lattice.executor_receipt.v1.schema.json +66 -66
  13. package/docs/schemas/lattice.phase_todo_revision.v3.schema.json +360 -360
  14. package/docs/schemas/lattice.plan_create_input.v1.schema.json +56 -56
  15. package/docs/schemas/lattice.plan_create_input.v2.schema.json +72 -72
  16. package/docs/schemas/lattice.plan_create_input.v3.schema.json +81 -81
  17. package/docs/schemas/lattice.plan_create_input.v4.schema.json +85 -85
  18. package/docs/schemas/lattice.plan_scope_review.v1.schema.json +55 -55
  19. package/docs/schemas/lattice.run_request.v1.schema.json +238 -238
  20. package/docs/schemas/lattice.runtime_adapter_capabilities.v2.schema.json +55 -55
  21. package/docs/schemas/lattice.runtime_adapter_registration_input.v1.schema.json +78 -78
  22. package/docs/schemas/lattice.runtime_adapter_registration_input.v2.schema.json +86 -86
  23. package/docs/schemas/lattice.todo_extraction.v2.schema.json +298 -298
  24. package/docs/schemas/lattice.todo_extraction.v3.schema.json +150 -150
  25. package/docs/schemas/lattice.todo_extraction.v4.schema.json +161 -161
  26. package/docs/schemas/lattice.todo_revision.v2.schema.json +260 -260
  27. package/docs/schemas/lattice.todo_revision_set.v3.schema.json +363 -363
  28. package/docs/schemas/lattice.todo_structure_binding.v1.schema.json +47 -47
  29. package/docs/schemas/lattice.todo_structure_realization.v1.schema.json +55 -55
  30. package/docs/schemas/lattice.todo_structure_set.v1.schema.json +264 -264
  31. package/package.json +109 -108
  32. package/sensor/LICENSE +21 -21
  33. package/sensor/NOTICE +19 -19
  34. package/sensor/dist/bin/lattice-sensor.js +9 -9
  35. package/sensor/dist/bin/node-version-check.js +1 -1
  36. package/sensor/dist/bin/node-version-check.js.map +1 -1
  37. package/sensor/dist/db/index.js +24 -24
  38. package/sensor/dist/db/migrations.js +41 -41
  39. package/sensor/dist/db/queries.js +164 -164
  40. package/sensor/dist/db/schema.sql +205 -205
  41. package/sensor/dist/directory.js +5 -5
  42. package/sensor/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
  43. package/sensor/dist/extraction/wasm/tree-sitter-cfml.wasm +0 -0
  44. package/sensor/dist/extraction/wasm/tree-sitter-cfquery.wasm +0 -0
  45. package/sensor/dist/extraction/wasm/tree-sitter-cfscript.wasm +0 -0
  46. package/sensor/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
  47. package/sensor/dist/extraction/wasm/tree-sitter-erlang.wasm +0 -0
  48. package/sensor/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
  49. package/sensor/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
  50. package/sensor/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
  51. package/sensor/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
  52. package/sensor/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
  53. package/sensor/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
  54. package/sensor/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
  55. package/sensor/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
  56. package/sensor/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
  57. package/sensor/dist/mcp/liveness-watchdog.js +53 -53
  58. package/sensor/dist/mcp/server-instructions.js +95 -95
  59. package/sensor/dist/sync/worktree.js +1 -1
  60. package/sensor/dist/sync/worktree.js.map +1 -1
  61. package/sensor/package.json +56 -56
  62. package/src/bridge-daemon.mjs +11 -3
  63. package/src/bridge-hub-landing.mjs +1 -1
  64. package/src/runtime-cli.mjs +7 -0
  65. package/src/runtime-managed-supervisor.mjs +9 -1
  66. package/src/sensor-node-runtime.mjs +3 -3
  67. package/src/todo-cli.mjs +5 -4
  68. package/src/todo-dashboard-registry.mjs +32 -12
  69. package/src/todo-gantt-live.mjs +18 -4
  70. package/src/todo-store-git-transaction.mjs +1 -1
  71. package/src/todo-store.mjs +128 -20
@@ -1,66 +1,66 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://github.com/kitepon-rgb/Lattice/blob/main/docs/schemas/lattice.executor_receipt.v1.schema.json",
4
- "title": "lattice.executor_receipt.v1",
5
- "description": "The receipt an executor returns for one dispatched packet. `packet_digest` is what attributes it to the packet it received.",
6
- "$comment": "Runtime validation additionally enforces canonical JSON bytes and the self-digest rule for `receipt_digest`. Acceptance is decided by event order, not by the receipt's own claims: the binding is checked against the `executor_dispatched` / `epoch_rebound` event that recorded the handle, worktree and packet digest for that TODO.",
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": [
10
- "schema",
11
- "receipt_id",
12
- "executor_handle",
13
- "worktree_id",
14
- "base_sha",
15
- "plan_epoch",
16
- "packet_digest",
17
- "todo_id",
18
- "checkpoint_digest",
19
- "observed_diff",
20
- "receipt_digest"
21
- ],
22
- "properties": {
23
- "schema": { "const": "lattice.executor_receipt.v1" },
24
- "receipt_id": { "$ref": "#/$defs/identifier" },
25
- "executor_handle": { "$ref": "#/$defs/identifier" },
26
- "worktree_id": { "$ref": "#/$defs/identifier" },
27
- "base_sha": { "$ref": "#/$defs/gitSha" },
28
- "plan_epoch": { "type": "integer", "minimum": 0 },
29
- "packet_digest": {
30
- "$ref": "#/$defs/digest",
31
- "$comment": "Attribution to the received `executor_packet.v1`. This is the only link back to the dispatch."
32
- },
33
- "todo_id": {
34
- "$ref": "#/$defs/identifier",
35
- "$comment": "Carried through from `run_request.v1`. It is not qualified by any TODO store project/plan/revision identity, so a receipt alone does not prove which TODO store task it belongs to."
36
- },
37
- "checkpoint_digest": { "$ref": "#/$defs/digest" },
38
- "observed_diff": {
39
- "type": "array",
40
- "maxItems": 256,
41
- "items": {
42
- "type": "object",
43
- "additionalProperties": false,
44
- "required": ["path", "change"],
45
- "properties": {
46
- "path": { "$ref": "#/$defs/repoRelativePath" },
47
- "change": { "enum": ["added", "modified", "deleted"] }
48
- }
49
- }
50
- },
51
- "receipt_digest": { "$ref": "#/$defs/digest" }
52
- },
53
- "$defs": {
54
- "identifier": {
55
- "type": "string",
56
- "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$"
57
- },
58
- "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
59
- "gitSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
60
- "repoRelativePath": {
61
- "type": "string",
62
- "minLength": 1,
63
- "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\u0000-\\u001f\\u007f\\\\]+$"
64
- }
65
- }
66
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.executor_receipt.v1.schema.json",
4
+ "title": "lattice.executor_receipt.v1",
5
+ "description": "The receipt an executor returns for one dispatched packet. `packet_digest` is what attributes it to the packet it received.",
6
+ "$comment": "Runtime validation additionally enforces canonical JSON bytes and the self-digest rule for `receipt_digest`. Acceptance is decided by event order, not by the receipt's own claims: the binding is checked against the `executor_dispatched` / `epoch_rebound` event that recorded the handle, worktree and packet digest for that TODO.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schema",
11
+ "receipt_id",
12
+ "executor_handle",
13
+ "worktree_id",
14
+ "base_sha",
15
+ "plan_epoch",
16
+ "packet_digest",
17
+ "todo_id",
18
+ "checkpoint_digest",
19
+ "observed_diff",
20
+ "receipt_digest"
21
+ ],
22
+ "properties": {
23
+ "schema": { "const": "lattice.executor_receipt.v1" },
24
+ "receipt_id": { "$ref": "#/$defs/identifier" },
25
+ "executor_handle": { "$ref": "#/$defs/identifier" },
26
+ "worktree_id": { "$ref": "#/$defs/identifier" },
27
+ "base_sha": { "$ref": "#/$defs/gitSha" },
28
+ "plan_epoch": { "type": "integer", "minimum": 0 },
29
+ "packet_digest": {
30
+ "$ref": "#/$defs/digest",
31
+ "$comment": "Attribution to the received `executor_packet.v1`. This is the only link back to the dispatch."
32
+ },
33
+ "todo_id": {
34
+ "$ref": "#/$defs/identifier",
35
+ "$comment": "Carried through from `run_request.v1`. It is not qualified by any TODO store project/plan/revision identity, so a receipt alone does not prove which TODO store task it belongs to."
36
+ },
37
+ "checkpoint_digest": { "$ref": "#/$defs/digest" },
38
+ "observed_diff": {
39
+ "type": "array",
40
+ "maxItems": 256,
41
+ "items": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": ["path", "change"],
45
+ "properties": {
46
+ "path": { "$ref": "#/$defs/repoRelativePath" },
47
+ "change": { "enum": ["added", "modified", "deleted"] }
48
+ }
49
+ }
50
+ },
51
+ "receipt_digest": { "$ref": "#/$defs/digest" }
52
+ },
53
+ "$defs": {
54
+ "identifier": {
55
+ "type": "string",
56
+ "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$"
57
+ },
58
+ "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
59
+ "gitSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
60
+ "repoRelativePath": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\u0000-\\u001f\\u007f\\\\]+$"
64
+ }
65
+ }
66
+ }