@quolu/lattice 0.63.0 → 0.63.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.
Files changed (60) hide show
  1. package/LICENSE +147 -147
  2. package/README.ja.md +378 -378
  3. package/README.md +303 -303
  4. package/bin/lattice-mcp.mjs +0 -0
  5. package/bin/lattice-scripted-adapter.mjs +0 -0
  6. package/bin/lattice-scripted-worker.mjs +0 -0
  7. package/bin/lattice-work-order-adapter.mjs +0 -0
  8. package/bin/lattice.mjs +3 -1
  9. package/docs/bridge-setup.md +248 -248
  10. package/docs/schemas/lattice.executor_packet.v1.schema.json +57 -57
  11. package/docs/schemas/lattice.executor_receipt.v1.schema.json +66 -66
  12. package/docs/schemas/lattice.phase_todo_revision.v3.schema.json +360 -360
  13. package/docs/schemas/lattice.plan_create_input.v1.schema.json +56 -56
  14. package/docs/schemas/lattice.plan_create_input.v2.schema.json +72 -72
  15. package/docs/schemas/lattice.plan_create_input.v3.schema.json +81 -81
  16. package/docs/schemas/lattice.plan_create_input.v4.schema.json +357 -85
  17. package/docs/schemas/lattice.plan_scope_review.v1.schema.json +55 -55
  18. package/docs/schemas/lattice.run_request.v1.schema.json +238 -238
  19. package/docs/schemas/lattice.runtime_adapter_capabilities.v2.schema.json +55 -55
  20. package/docs/schemas/lattice.runtime_adapter_registration_input.v1.schema.json +78 -78
  21. package/docs/schemas/lattice.runtime_adapter_registration_input.v2.schema.json +86 -86
  22. package/docs/schemas/lattice.todo_extraction.v2.schema.json +298 -298
  23. package/docs/schemas/lattice.todo_extraction.v3.schema.json +150 -150
  24. package/docs/schemas/lattice.todo_extraction.v4.schema.json +161 -161
  25. package/docs/schemas/lattice.todo_revision.v2.schema.json +260 -260
  26. package/docs/schemas/lattice.todo_revision_set.v3.schema.json +363 -363
  27. package/docs/schemas/lattice.todo_structure_binding.v1.schema.json +47 -47
  28. package/docs/schemas/lattice.todo_structure_realization.v1.schema.json +55 -55
  29. package/docs/schemas/lattice.todo_structure_set.v1.schema.json +264 -264
  30. package/package.json +109 -109
  31. package/sensor/LICENSE +21 -21
  32. package/sensor/NOTICE +19 -19
  33. package/sensor/dist/bin/lattice-sensor.js +9 -9
  34. package/sensor/dist/db/index.js +24 -24
  35. package/sensor/dist/db/migrations.js +41 -41
  36. package/sensor/dist/db/queries.js +164 -164
  37. package/sensor/dist/db/schema.sql +205 -205
  38. package/sensor/dist/directory.js +5 -5
  39. package/sensor/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
  40. package/sensor/dist/extraction/wasm/tree-sitter-cfml.wasm +0 -0
  41. package/sensor/dist/extraction/wasm/tree-sitter-cfquery.wasm +0 -0
  42. package/sensor/dist/extraction/wasm/tree-sitter-cfscript.wasm +0 -0
  43. package/sensor/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
  44. package/sensor/dist/extraction/wasm/tree-sitter-erlang.wasm +0 -0
  45. package/sensor/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
  46. package/sensor/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
  47. package/sensor/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
  48. package/sensor/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
  49. package/sensor/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
  50. package/sensor/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
  51. package/sensor/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
  52. package/sensor/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
  53. package/sensor/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
  54. package/sensor/dist/mcp/liveness-watchdog.js +53 -53
  55. package/sensor/dist/mcp/server-instructions.js +95 -95
  56. package/sensor/package.json +56 -56
  57. package/src/project-cli.mjs +164 -24
  58. package/src/todo-authoring-input.mjs +35 -5
  59. package/src/todo-cli.mjs +2 -2
  60. package/src/todo-store.mjs +52 -21
@@ -1,47 +1,47 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_structure_binding.v1.schema.json",
4
- "title": "lattice.todo_structure_binding.v1",
5
- "description": "Immutable activation binding emitted by a successful authoritative planned compile.",
6
- "$comment": "Runtime validation additionally enforces exact keys, strict timestamps, actor identity, and the canonical self-digest.",
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": [
10
- "schema", "project_id", "plan_key", "plan_version", "topology_digest", "profile",
11
- "baseline_sha", "structure_set_digest", "compiled_head_sha", "compile_artifact_digest",
12
- "activated_at", "actor", "binding_digest"
13
- ],
14
- "properties": {
15
- "schema": { "const": "lattice.todo_structure_binding.v1" },
16
- "project_id": { "$ref": "#/$defs/identifier" },
17
- "plan_key": { "$ref": "#/$defs/identifier" },
18
- "plan_version": { "$ref": "#/$defs/identifier" },
19
- "topology_digest": { "$ref": "#/$defs/digest" },
20
- "profile": { "const": "code-dataflow" },
21
- "baseline_sha": { "$ref": "#/$defs/gitSha" },
22
- "structure_set_digest": { "$ref": "#/$defs/digest" },
23
- "compiled_head_sha": { "$ref": "#/$defs/gitSha" },
24
- "compile_artifact_digest": { "$ref": "#/$defs/digest" },
25
- "activated_at": { "$ref": "#/$defs/strictTimestamp" },
26
- "actor": { "$ref": "#/$defs/actor" },
27
- "binding_digest": { "$ref": "#/$defs/digest" }
28
- },
29
- "$defs": {
30
- "identifier": { "type": "string", "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$" },
31
- "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
32
- "gitSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
33
- "strictTimestamp": {
34
- "type": "string",
35
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
36
- },
37
- "actor": {
38
- "type": "object", "additionalProperties": false,
39
- "required": ["host", "session", "agent"],
40
- "properties": {
41
- "host": { "$ref": "#/$defs/identifier" },
42
- "session": { "$ref": "#/$defs/identifier" },
43
- "agent": { "$ref": "#/$defs/identifier" }
44
- }
45
- }
46
- }
47
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_structure_binding.v1.schema.json",
4
+ "title": "lattice.todo_structure_binding.v1",
5
+ "description": "Immutable activation binding emitted by a successful authoritative planned compile.",
6
+ "$comment": "Runtime validation additionally enforces exact keys, strict timestamps, actor identity, and the canonical self-digest.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schema", "project_id", "plan_key", "plan_version", "topology_digest", "profile",
11
+ "baseline_sha", "structure_set_digest", "compiled_head_sha", "compile_artifact_digest",
12
+ "activated_at", "actor", "binding_digest"
13
+ ],
14
+ "properties": {
15
+ "schema": { "const": "lattice.todo_structure_binding.v1" },
16
+ "project_id": { "$ref": "#/$defs/identifier" },
17
+ "plan_key": { "$ref": "#/$defs/identifier" },
18
+ "plan_version": { "$ref": "#/$defs/identifier" },
19
+ "topology_digest": { "$ref": "#/$defs/digest" },
20
+ "profile": { "const": "code-dataflow" },
21
+ "baseline_sha": { "$ref": "#/$defs/gitSha" },
22
+ "structure_set_digest": { "$ref": "#/$defs/digest" },
23
+ "compiled_head_sha": { "$ref": "#/$defs/gitSha" },
24
+ "compile_artifact_digest": { "$ref": "#/$defs/digest" },
25
+ "activated_at": { "$ref": "#/$defs/strictTimestamp" },
26
+ "actor": { "$ref": "#/$defs/actor" },
27
+ "binding_digest": { "$ref": "#/$defs/digest" }
28
+ },
29
+ "$defs": {
30
+ "identifier": { "type": "string", "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$" },
31
+ "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
32
+ "gitSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
33
+ "strictTimestamp": {
34
+ "type": "string",
35
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
36
+ },
37
+ "actor": {
38
+ "type": "object", "additionalProperties": false,
39
+ "required": ["host", "session", "agent"],
40
+ "properties": {
41
+ "host": { "$ref": "#/$defs/identifier" },
42
+ "session": { "$ref": "#/$defs/identifier" },
43
+ "agent": { "$ref": "#/$defs/identifier" }
44
+ }
45
+ }
46
+ }
47
+ }
@@ -1,55 +1,55 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_structure_realization.v1.schema.json",
4
- "title": "lattice.todo_structure_realization.v1",
5
- "description": "Append-only realized logical dataflow for one applicable task.",
6
- "$comment": "Runtime validation additionally enforces canonical ordering, chain continuity, supersedes membership, structure-set identity, planned digest, UTF-8 byte bounds, and the canonical self-digest.",
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": [
10
- "schema", "project_id", "plan_key", "plan_version", "task_id", "sequence",
11
- "previous_digest", "structure_set_digest", "planned_digest", "head_sha", "commit_oids",
12
- "realized", "supersedes", "actor", "recorded_at", "realization_digest"
13
- ],
14
- "properties": {
15
- "schema": { "const": "lattice.todo_structure_realization.v1" },
16
- "project_id": { "$ref": "#/$defs/identifier" },
17
- "plan_key": { "$ref": "#/$defs/identifier" },
18
- "plan_version": { "$ref": "#/$defs/identifier" },
19
- "task_id": { "$ref": "#/$defs/identifier" },
20
- "sequence": { "type": "integer", "minimum": 1 },
21
- "previous_digest": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
22
- "structure_set_digest": { "$ref": "#/$defs/digest" },
23
- "planned_digest": { "$ref": "#/$defs/digest" },
24
- "head_sha": { "$ref": "#/$defs/gitSha" },
25
- "commit_oids": {
26
- "type": "array", "minItems": 1, "maxItems": 256, "uniqueItems": true,
27
- "items": { "$ref": "#/$defs/gitSha" }
28
- },
29
- "realized": {
30
- "$ref": "lattice.todo_structure_set.v1.schema.json#/$defs/transform"
31
- },
32
- "supersedes": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
33
- "actor": { "$ref": "#/$defs/actor" },
34
- "recorded_at": { "$ref": "#/$defs/strictTimestamp" },
35
- "realization_digest": { "$ref": "#/$defs/digest" }
36
- },
37
- "$defs": {
38
- "identifier": { "type": "string", "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$" },
39
- "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
40
- "gitSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
41
- "strictTimestamp": {
42
- "type": "string",
43
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
44
- },
45
- "actor": {
46
- "type": "object", "additionalProperties": false,
47
- "required": ["host", "session", "agent"],
48
- "properties": {
49
- "host": { "$ref": "#/$defs/identifier" },
50
- "session": { "$ref": "#/$defs/identifier" },
51
- "agent": { "$ref": "#/$defs/identifier" }
52
- }
53
- }
54
- }
55
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_structure_realization.v1.schema.json",
4
+ "title": "lattice.todo_structure_realization.v1",
5
+ "description": "Append-only realized logical dataflow for one applicable task.",
6
+ "$comment": "Runtime validation additionally enforces canonical ordering, chain continuity, supersedes membership, structure-set identity, planned digest, UTF-8 byte bounds, and the canonical self-digest.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schema", "project_id", "plan_key", "plan_version", "task_id", "sequence",
11
+ "previous_digest", "structure_set_digest", "planned_digest", "head_sha", "commit_oids",
12
+ "realized", "supersedes", "actor", "recorded_at", "realization_digest"
13
+ ],
14
+ "properties": {
15
+ "schema": { "const": "lattice.todo_structure_realization.v1" },
16
+ "project_id": { "$ref": "#/$defs/identifier" },
17
+ "plan_key": { "$ref": "#/$defs/identifier" },
18
+ "plan_version": { "$ref": "#/$defs/identifier" },
19
+ "task_id": { "$ref": "#/$defs/identifier" },
20
+ "sequence": { "type": "integer", "minimum": 1 },
21
+ "previous_digest": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
22
+ "structure_set_digest": { "$ref": "#/$defs/digest" },
23
+ "planned_digest": { "$ref": "#/$defs/digest" },
24
+ "head_sha": { "$ref": "#/$defs/gitSha" },
25
+ "commit_oids": {
26
+ "type": "array", "minItems": 1, "maxItems": 256, "uniqueItems": true,
27
+ "items": { "$ref": "#/$defs/gitSha" }
28
+ },
29
+ "realized": {
30
+ "$ref": "lattice.todo_structure_set.v1.schema.json#/$defs/transform"
31
+ },
32
+ "supersedes": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
33
+ "actor": { "$ref": "#/$defs/actor" },
34
+ "recorded_at": { "$ref": "#/$defs/strictTimestamp" },
35
+ "realization_digest": { "$ref": "#/$defs/digest" }
36
+ },
37
+ "$defs": {
38
+ "identifier": { "type": "string", "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$" },
39
+ "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
40
+ "gitSha": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
41
+ "strictTimestamp": {
42
+ "type": "string",
43
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
44
+ },
45
+ "actor": {
46
+ "type": "object", "additionalProperties": false,
47
+ "required": ["host", "session", "agent"],
48
+ "properties": {
49
+ "host": { "$ref": "#/$defs/identifier" },
50
+ "session": { "$ref": "#/$defs/identifier" },
51
+ "agent": { "$ref": "#/$defs/identifier" }
52
+ }
53
+ }
54
+ }
55
+ }