@tomflow/chatloop-tools 0.9.17 → 0.9.18

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 (140) hide show
  1. package/package.json +3 -11
  2. package/providers/form.mjs +4 -2
  3. package/ui/form/review-app.js +122 -71
  4. package/ui/form/review.html +1 -814
  5. package/node_modules/@tomflow/chatloop-context/README.md +0 -240
  6. package/node_modules/@tomflow/chatloop-context/bin/cli.mjs +0 -48
  7. package/node_modules/@tomflow/chatloop-context/capabilities/approval.mjs +0 -151
  8. package/node_modules/@tomflow/chatloop-context/capabilities/context.mjs +0 -376
  9. package/node_modules/@tomflow/chatloop-context/capabilities/document.mjs +0 -266
  10. package/node_modules/@tomflow/chatloop-context/capabilities/evidence.mjs +0 -134
  11. package/node_modules/@tomflow/chatloop-context/capabilities/presentation.mjs +0 -82
  12. package/node_modules/@tomflow/chatloop-context/capabilities/project.mjs +0 -349
  13. package/node_modules/@tomflow/chatloop-context/capabilities/sdk.mjs +0 -72
  14. package/node_modules/@tomflow/chatloop-context/capabilities/start.mjs +0 -73
  15. package/node_modules/@tomflow/chatloop-context/capabilities/task.mjs +0 -507
  16. package/node_modules/@tomflow/chatloop-context/capabilities.generated.mjs +0 -11
  17. package/node_modules/@tomflow/chatloop-context/docs/interfaces.md +0 -182
  18. package/node_modules/@tomflow/chatloop-context/docs/operator-and-migration.md +0 -277
  19. package/node_modules/@tomflow/chatloop-context/index.mjs +0 -233
  20. package/node_modules/@tomflow/chatloop-context/lib/api-log.mjs +0 -86
  21. package/node_modules/@tomflow/chatloop-context/lib/approval-policy.mjs +0 -24
  22. package/node_modules/@tomflow/chatloop-context/lib/capability-catalog.generated.json +0 -1989
  23. package/node_modules/@tomflow/chatloop-context/lib/capability-router.mjs +0 -67
  24. package/node_modules/@tomflow/chatloop-context/lib/cli-commands.mjs +0 -280
  25. package/node_modules/@tomflow/chatloop-context/lib/context-cli.mjs +0 -298
  26. package/node_modules/@tomflow/chatloop-context/lib/context-migration.mjs +0 -280
  27. package/node_modules/@tomflow/chatloop-context/lib/core/context.mjs +0 -115
  28. package/node_modules/@tomflow/chatloop-context/lib/core/evidence.mjs +0 -51
  29. package/node_modules/@tomflow/chatloop-context/lib/core/health.mjs +0 -55
  30. package/node_modules/@tomflow/chatloop-context/lib/core/migration.mjs +0 -262
  31. package/node_modules/@tomflow/chatloop-context/lib/core/project.mjs +0 -246
  32. package/node_modules/@tomflow/chatloop-context/lib/core/review.mjs +0 -147
  33. package/node_modules/@tomflow/chatloop-context/lib/core/run.mjs +0 -343
  34. package/node_modules/@tomflow/chatloop-context/lib/core/store.mjs +0 -391
  35. package/node_modules/@tomflow/chatloop-context/lib/core/task.mjs +0 -166
  36. package/node_modules/@tomflow/chatloop-context/lib/line-review.mjs +0 -13
  37. package/node_modules/@tomflow/chatloop-context/lib/methods.mjs +0 -111
  38. package/node_modules/@tomflow/chatloop-context/lib/operations.mjs +0 -107
  39. package/node_modules/@tomflow/chatloop-context/lib/orphan-operator.mjs +0 -117
  40. package/node_modules/@tomflow/chatloop-context/lib/process-inventory.mjs +0 -20
  41. package/node_modules/@tomflow/chatloop-context/lib/project-branch.mjs +0 -312
  42. package/node_modules/@tomflow/chatloop-context/lib/project-diagnostic.mjs +0 -153
  43. package/node_modules/@tomflow/chatloop-context/lib/project-guards.mjs +0 -19
  44. package/node_modules/@tomflow/chatloop-context/lib/project-store.mjs +0 -115
  45. package/node_modules/@tomflow/chatloop-context/lib/trusted-run.mjs +0 -86
  46. package/node_modules/@tomflow/chatloop-context/lib/workspace-operator.mjs +0 -169
  47. package/node_modules/@tomflow/chatloop-context/package.json +0 -40
  48. package/node_modules/@tomflow/chatloop-context/scripts/build-capabilities.mjs +0 -114
  49. package/node_modules/@tomflow/chatloop-extension/README.md +0 -94
  50. package/node_modules/@tomflow/chatloop-extension/actions.generated.mjs +0 -11
  51. package/node_modules/@tomflow/chatloop-extension/bin/cli.mjs +0 -141
  52. package/node_modules/@tomflow/chatloop-extension/bin/native-host.mjs +0 -109
  53. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_dom.mjs +0 -1
  54. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_screenshot.mjs +0 -1
  55. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_text.mjs +0 -1
  56. package/node_modules/@tomflow/chatloop-extension/capabilities/clean.mjs +0 -1
  57. package/node_modules/@tomflow/chatloop-extension/capabilities/continue.mjs +0 -1
  58. package/node_modules/@tomflow/chatloop-extension/capabilities/handoff.mjs +0 -1
  59. package/node_modules/@tomflow/chatloop-extension/capabilities/reload.mjs +0 -1
  60. package/node_modules/@tomflow/chatloop-extension/capabilities/start.mjs +0 -1
  61. package/node_modules/@tomflow/chatloop-extension/capabilities/status.mjs +0 -1
  62. package/node_modules/@tomflow/chatloop-extension/extension/actions/clean.js +0 -120
  63. package/node_modules/@tomflow/chatloop-extension/extension/actions/common.js +0 -180
  64. package/node_modules/@tomflow/chatloop-extension/extension/actions/continue.js +0 -322
  65. package/node_modules/@tomflow/chatloop-extension/extension/actions/dom.js +0 -2
  66. package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff.js +0 -378
  67. package/node_modules/@tomflow/chatloop-extension/extension/actions/index.js +0 -2
  68. package/node_modules/@tomflow/chatloop-extension/extension/actions/model-intent.js +0 -54
  69. package/node_modules/@tomflow/chatloop-extension/extension/actions/read-mode.js +0 -9
  70. package/node_modules/@tomflow/chatloop-extension/extension/actions/reload.js +0 -20
  71. package/node_modules/@tomflow/chatloop-extension/extension/actions/screenshot.js +0 -69
  72. package/node_modules/@tomflow/chatloop-extension/extension/actions/start.js +0 -287
  73. package/node_modules/@tomflow/chatloop-extension/extension/actions/status.js +0 -23
  74. package/node_modules/@tomflow/chatloop-extension/extension/actions/text.js +0 -2
  75. package/node_modules/@tomflow/chatloop-extension/extension/background.js +0 -16
  76. package/node_modules/@tomflow/chatloop-extension/extension/clean.html +0 -5
  77. package/node_modules/@tomflow/chatloop-extension/extension/content.js +0 -40
  78. package/node_modules/@tomflow/chatloop-extension/extension/continue.html +0 -9
  79. package/node_modules/@tomflow/chatloop-extension/extension/dom.html +0 -17
  80. package/node_modules/@tomflow/chatloop-extension/extension/handoff.html +0 -9
  81. package/node_modules/@tomflow/chatloop-extension/extension/loop/action-catalog.generated.js +0 -2
  82. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-aspect.generated.js +0 -275
  83. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-observation-queue.generated.js +0 -76
  84. package/node_modules/@tomflow/chatloop-extension/extension/loop/core.js +0 -107
  85. package/node_modules/@tomflow/chatloop-extension/extension/loop/index.js +0 -36
  86. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-approval.js +0 -227
  87. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-inspect.js +0 -144
  88. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-poll.js +0 -171
  89. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-recovery.js +0 -109
  90. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer.js +0 -154
  91. package/node_modules/@tomflow/chatloop-extension/extension/loop/resources.js +0 -254
  92. package/node_modules/@tomflow/chatloop-extension/extension/manifest.json +0 -42
  93. package/node_modules/@tomflow/chatloop-extension/extension/popup.html +0 -25
  94. package/node_modules/@tomflow/chatloop-extension/extension/popup.js +0 -93
  95. package/node_modules/@tomflow/chatloop-extension/extension/reload.html +0 -17
  96. package/node_modules/@tomflow/chatloop-extension/extension/screenshot.html +0 -17
  97. package/node_modules/@tomflow/chatloop-extension/extension/start.html +0 -6
  98. package/node_modules/@tomflow/chatloop-extension/extension/status.html +0 -6
  99. package/node_modules/@tomflow/chatloop-extension/extension/text.html +0 -17
  100. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-result.js +0 -136
  101. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-take.js +0 -220
  102. package/node_modules/@tomflow/chatloop-extension/extension/worker/admission.js +0 -122
  103. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-prepare.js +0 -155
  104. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-recovery.js +0 -185
  105. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-result.js +0 -120
  106. package/node_modules/@tomflow/chatloop-extension/extension/worker/bootstrap.js +0 -172
  107. package/node_modules/@tomflow/chatloop-extension/extension/worker/manual.js +0 -165
  108. package/node_modules/@tomflow/chatloop-extension/extension/worker/readiness.js +0 -244
  109. package/node_modules/@tomflow/chatloop-extension/extension/worker/router.js +0 -181
  110. package/node_modules/@tomflow/chatloop-extension/extension/worker/scheduler.js +0 -147
  111. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-failure.js +0 -197
  112. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-finished.js +0 -200
  113. package/node_modules/@tomflow/chatloop-extension/index.mjs +0 -71
  114. package/node_modules/@tomflow/chatloop-extension/lib/action-routing.mjs +0 -18
  115. package/node_modules/@tomflow/chatloop-extension/lib/api-observation-queue.mjs +0 -74
  116. package/node_modules/@tomflow/chatloop-extension/lib/bridge.mjs +0 -208
  117. package/node_modules/@tomflow/chatloop-extension/lib/browser-launch.mjs +0 -40
  118. package/node_modules/@tomflow/chatloop-extension/lib/context-binding.mjs +0 -45
  119. package/node_modules/@tomflow/chatloop-extension/lib/context-ipc.mjs +0 -111
  120. package/node_modules/@tomflow/chatloop-extension/lib/owner-evidence.mjs +0 -67
  121. package/node_modules/@tomflow/chatloop-extension/lib/session-file.mjs +0 -120
  122. package/node_modules/@tomflow/chatloop-extension/package.json +0 -38
  123. package/node_modules/@tomflow/chatloop-extension/scripts/build-actions.mjs +0 -133
  124. package/node_modules/@tomflow/chatloop-trace/README.md +0 -105
  125. package/node_modules/@tomflow/chatloop-trace/events/context.api.mjs +0 -23
  126. package/node_modules/@tomflow/chatloop-trace/events/typed.api.call.mjs +0 -22
  127. package/node_modules/@tomflow/chatloop-trace/events.generated.mjs +0 -4
  128. package/node_modules/@tomflow/chatloop-trace/index.mjs +0 -59
  129. package/node_modules/@tomflow/chatloop-trace/lib/api-aspect.mjs +0 -273
  130. package/node_modules/@tomflow/chatloop-trace/lib/trace-reader.mjs +0 -265
  131. package/node_modules/@tomflow/chatloop-trace/lib/trace.mjs +0 -205
  132. package/node_modules/@tomflow/chatloop-trace/package.json +0 -30
  133. package/node_modules/@tomflow/chatloop-trace/scripts/build-events.mjs +0 -68
  134. package/node_modules/ps-list/index.d.ts +0 -76
  135. package/node_modules/ps-list/index.js +0 -366
  136. package/node_modules/ps-list/license +0 -9
  137. package/node_modules/ps-list/package.json +0 -44
  138. package/node_modules/ps-list/readme.md +0 -56
  139. package/node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe +0 -0
  140. package/node_modules/ps-list/vendor/fastlist-0.3.0-x86.exe +0 -0
@@ -1,134 +0,0 @@
1
- // One self-contained Context capability contract. Registered at build time.
2
- export const capability={
3
- "id": "evidence",
4
- "version": 1,
5
- "purpose": "Store evidence references; collection remains with external providers",
6
- "startWith": "evidence.list",
7
- "methods": [
8
- {
9
- "id": "evidence.list",
10
- "group": "evidence",
11
- "mode": "read",
12
- "description": "List task evidence references and verification state.",
13
- "inputSchema": {
14
- "type": "object",
15
- "required": [
16
- "operation",
17
- "projectId",
18
- "taskId"
19
- ],
20
- "additionalProperties": false,
21
- "properties": {
22
- "operation": {
23
- "const": "evidence.list"
24
- },
25
- "projectId": {
26
- "type": "string",
27
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
28
- },
29
- "taskId": {
30
- "type": "string",
31
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
32
- }
33
- }
34
- },
35
- "order": 7,
36
- "route": {
37
- "kind": "core",
38
- "method": "evidenceList",
39
- "params": [
40
- "projectId",
41
- "taskId"
42
- ]
43
- }
44
- },
45
- {
46
- "id": "evidence.attach",
47
- "group": "evidence",
48
- "mode": "write",
49
- "description": "Attach a verified external evidence reference to one task.",
50
- "inputSchema": {
51
- "type": "object",
52
- "required": [
53
- "operation",
54
- "projectId",
55
- "taskId",
56
- "expectedTaskRevision",
57
- "locator",
58
- "role",
59
- "expectedStoreEpoch",
60
- "writeRequestId"
61
- ],
62
- "additionalProperties": false,
63
- "properties": {
64
- "operation": {
65
- "const": "evidence.attach"
66
- },
67
- "projectId": {
68
- "type": "string",
69
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
70
- },
71
- "taskId": {
72
- "type": "string",
73
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
74
- },
75
- "expectedTaskRevision": {
76
- "type": "integer",
77
- "minimum": 1
78
- },
79
- "locator": {
80
- "type": "string",
81
- "minLength": 1,
82
- "maxLength": 4096
83
- },
84
- "role": {
85
- "type": "string",
86
- "pattern": "^[a-z][a-z0-9_-]{0,63}$"
87
- },
88
- "expectedStoreEpoch": {
89
- "type": "string",
90
- "minLength": 10,
91
- "maxLength": 64
92
- },
93
- "writeRequestId": {
94
- "type": "string",
95
- "minLength": 8,
96
- "maxLength": 128
97
- },
98
- "contentHash": {
99
- "type": "string",
100
- "pattern": "^[a-f0-9]{64}$"
101
- },
102
- "retention": {
103
- "enum": [
104
- "RETAINED",
105
- "EXTERNAL",
106
- "EPHEMERAL"
107
- ]
108
- },
109
- "expectedBindingRevision": {
110
- "type": "integer",
111
- "minimum": 0
112
- },
113
- "runRef": {
114
- "type": "string",
115
- "minLength": 8,
116
- "maxLength": 256
117
- },
118
- "runCredential": {
119
- "type": "string",
120
- "pattern": "^[0-9a-f]{64}$"
121
- }
122
- }
123
- },
124
- "order": 29,
125
- "route": {
126
- "kind": "core",
127
- "method": "evidenceAttach",
128
- "params": [
129
- "$args"
130
- ]
131
- }
132
- }
133
- ]
134
- };
@@ -1,82 +0,0 @@
1
- // One self-contained Context capability contract. Registered at build time.
2
- export const capability={
3
- "id": "presentation",
4
- "version": 1,
5
- "purpose": "Resolve incomplete R/P presentation evidence",
6
- "startWith": "presentation.resolve",
7
- "methods": [
8
- {
9
- "id": "presentation.resolve",
10
- "group": "presentation",
11
- "mode": "write",
12
- "description": "Resolve an uncompleted R/P presentation attempt with evidence.",
13
- "inputSchema": {
14
- "type": "object",
15
- "required": [
16
- "operation",
17
- "projectId",
18
- "taskId",
19
- "issueId",
20
- "outcome",
21
- "sourceRef",
22
- "expectedTaskRevision",
23
- "expectedStoreEpoch",
24
- "writeRequestId"
25
- ],
26
- "additionalProperties": false,
27
- "properties": {
28
- "operation": {
29
- "const": "presentation.resolve"
30
- },
31
- "projectId": {
32
- "type": "string",
33
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
34
- },
35
- "taskId": {
36
- "type": "string",
37
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
38
- },
39
- "issueId": {
40
- "type": "string",
41
- "minLength": 8,
42
- "maxLength": 64
43
- },
44
- "outcome": {
45
- "enum": [
46
- "CANCELLED",
47
- "FAILED",
48
- "REJECTED"
49
- ]
50
- },
51
- "sourceRef": {
52
- "type": "string",
53
- "minLength": 8,
54
- "maxLength": 256
55
- },
56
- "expectedTaskRevision": {
57
- "type": "integer",
58
- "minimum": 1
59
- },
60
- "expectedStoreEpoch": {
61
- "type": "string",
62
- "minLength": 10,
63
- "maxLength": 64
64
- },
65
- "writeRequestId": {
66
- "type": "string",
67
- "minLength": 8,
68
- "maxLength": 128
69
- }
70
- }
71
- },
72
- "order": 25,
73
- "route": {
74
- "kind": "core",
75
- "method": "presentationResolve",
76
- "params": [
77
- "$args"
78
- ]
79
- }
80
- }
81
- ]
82
- };
@@ -1,349 +0,0 @@
1
- // One self-contained Context capability contract. Registered at build time.
2
- export const capability={
3
- "id": "project",
4
- "version": 1,
5
- "purpose": "Identity, authority, workspace resolution and immutable Project Materials",
6
- "startWith": "project.open",
7
- "methods": [
8
- {
9
- "id": "project.list",
10
- "group": "project",
11
- "mode": "read",
12
- "description": "List authorized Project identities in a fixed {projects,incomplete,nextCursor,limit} page, default limit=30; use a visible Project cursor to continue.",
13
- "inputSchema": {
14
- "type": "object",
15
- "required": [
16
- "operation"
17
- ],
18
- "additionalProperties": false,
19
- "properties": {
20
- "operation": {
21
- "const": "project.list"
22
- },
23
- "limit": {
24
- "type": "integer",
25
- "minimum": 1,
26
- "maximum": 100
27
- },
28
- "cursor": {
29
- "type": "string",
30
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
31
- }
32
- }
33
- },
34
- "order": 0,
35
- "route": {
36
- "kind": "adapter",
37
- "name": "project.list"
38
- }
39
- },
40
- {
41
- "id": "project.authority",
42
- "group": "project",
43
- "mode": "read",
44
- "description": "Check whether a project is actually managed and writable.",
45
- "inputSchema": {
46
- "type": "object",
47
- "required": [
48
- "operation",
49
- "projectId"
50
- ],
51
- "additionalProperties": false,
52
- "properties": {
53
- "operation": {
54
- "const": "project.authority"
55
- },
56
- "projectId": {
57
- "type": "string",
58
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
59
- }
60
- }
61
- },
62
- "order": 1,
63
- "route": {
64
- "kind": "core",
65
- "method": "projectBusinessAuthority",
66
- "params": [
67
- "projectId"
68
- ]
69
- }
70
- },
71
- {
72
- "id": "project.material.list",
73
- "group": "project",
74
- "mode": "read",
75
- "description": "List versioned project materials without returning full bodies.",
76
- "inputSchema": {
77
- "type": "object",
78
- "required": [
79
- "operation",
80
- "projectId"
81
- ],
82
- "additionalProperties": false,
83
- "properties": {
84
- "operation": {
85
- "const": "project.material.list"
86
- },
87
- "projectId": {
88
- "type": "string",
89
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
90
- }
91
- }
92
- },
93
- "order": 2,
94
- "route": {
95
- "kind": "core",
96
- "method": "projectMaterialList",
97
- "params": [
98
- "projectId"
99
- ]
100
- }
101
- },
102
- {
103
- "id": "project.material.get",
104
- "group": "project",
105
- "mode": "read",
106
- "description": "Read exact reviewed project Instructions or historical material by version.",
107
- "inputSchema": {
108
- "type": "object",
109
- "required": [
110
- "operation",
111
- "projectId",
112
- "materialId",
113
- "version"
114
- ],
115
- "additionalProperties": false,
116
- "properties": {
117
- "operation": {
118
- "const": "project.material.get"
119
- },
120
- "projectId": {
121
- "type": "string",
122
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
123
- },
124
- "materialId": {
125
- "type": "string",
126
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
127
- },
128
- "version": {
129
- "type": "integer",
130
- "minimum": 1
131
- }
132
- }
133
- },
134
- "order": 3,
135
- "route": {
136
- "kind": "core",
137
- "method": "projectMaterialGet",
138
- "params": [
139
- "projectId",
140
- "materialId",
141
- "version"
142
- ]
143
- }
144
- },
145
- {
146
- "id": "project.resolve",
147
- "group": "project",
148
- "mode": "read",
149
- "description": "Find authorized projects matching confirmed workspace roots; never guesses identity.",
150
- "inputSchema": {
151
- "type": "object",
152
- "required": [
153
- "operation",
154
- "workspaceRoots"
155
- ],
156
- "additionalProperties": false,
157
- "properties": {
158
- "operation": {
159
- "const": "project.resolve"
160
- },
161
- "workspaceRoots": {
162
- "type": "array",
163
- "minItems": 1,
164
- "maxItems": 16,
165
- "items": {
166
- "type": "string",
167
- "maxLength": 4096
168
- }
169
- }
170
- }
171
- },
172
- "order": 13,
173
- "route": {
174
- "kind": "adapter",
175
- "name": "project.resolve"
176
- }
177
- },
178
- {
179
- "id": "project.open",
180
- "group": "project",
181
- "mode": "read",
182
- "description": "Open an authorized project summary, current instruction reference and task candidates.",
183
- "inputSchema": {
184
- "type": "object",
185
- "required": [
186
- "operation",
187
- "projectId"
188
- ],
189
- "additionalProperties": false,
190
- "properties": {
191
- "operation": {
192
- "const": "project.open"
193
- },
194
- "projectId": {
195
- "type": "string",
196
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
197
- }
198
- }
199
- },
200
- "order": 14,
201
- "route": {
202
- "kind": "adapter",
203
- "name": "project.open"
204
- }
205
- },
206
- {
207
- "id": "project.material.put",
208
- "group": "project",
209
- "mode": "write",
210
- "description": "Write one immutable project material version.",
211
- "inputSchema": {
212
- "type": "object",
213
- "required": [
214
- "operation",
215
- "projectId",
216
- "materialId",
217
- "version",
218
- "kind",
219
- "body",
220
- "expectedProjectRevision",
221
- "expectedStoreEpoch",
222
- "writeRequestId"
223
- ],
224
- "additionalProperties": false,
225
- "properties": {
226
- "operation": {
227
- "const": "project.material.put"
228
- },
229
- "projectId": {
230
- "type": "string",
231
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
232
- },
233
- "materialId": {
234
- "type": "string",
235
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
236
- },
237
- "version": {
238
- "type": "integer",
239
- "minimum": 1
240
- },
241
- "kind": {
242
- "enum": [
243
- "R",
244
- "P",
245
- "INSTRUCTIONS",
246
- "HISTORY",
247
- "LEGACY_EVIDENCE",
248
- "REFERENCE"
249
- ]
250
- },
251
- "body": {
252
- "type": "string",
253
- "minLength": 1,
254
- "maxLength": 4194304
255
- },
256
- "expectedProjectRevision": {
257
- "type": "integer",
258
- "minimum": 1
259
- },
260
- "expectedStoreEpoch": {
261
- "type": "string",
262
- "minLength": 10,
263
- "maxLength": 64
264
- },
265
- "writeRequestId": {
266
- "type": "string",
267
- "minLength": 8,
268
- "maxLength": 128
269
- },
270
- "sourcePath": {
271
- "type": "string",
272
- "minLength": 1,
273
- "maxLength": 4096
274
- },
275
- "contentHash": {
276
- "type": "string",
277
- "pattern": "^[a-f0-9]{64}$"
278
- },
279
- "provenance": {
280
- "enum": [
281
- "USER_AUTHORED",
282
- "LEGACY_UNVERIFIED"
283
- ]
284
- }
285
- }
286
- },
287
- "order": 16,
288
- "route": {
289
- "kind": "core",
290
- "method": "projectMaterialPut",
291
- "params": [
292
- "$args"
293
- ]
294
- }
295
- },
296
- {
297
- "id": "project.patch",
298
- "group": "project",
299
- "mode": "write",
300
- "description": "Change project context and explicit current Instructions reference with CAS.",
301
- "inputSchema": {
302
- "type": "object",
303
- "required": [
304
- "operation",
305
- "projectId",
306
- "expectedProjectRevision",
307
- "sharedContext",
308
- "expectedStoreEpoch",
309
- "writeRequestId"
310
- ],
311
- "additionalProperties": false,
312
- "properties": {
313
- "operation": {
314
- "const": "project.patch"
315
- },
316
- "projectId": {
317
- "type": "string",
318
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
319
- },
320
- "expectedProjectRevision": {
321
- "type": "integer",
322
- "minimum": 1
323
- },
324
- "sharedContext": {
325
- "type": "object"
326
- },
327
- "expectedStoreEpoch": {
328
- "type": "string",
329
- "minLength": 10,
330
- "maxLength": 64
331
- },
332
- "writeRequestId": {
333
- "type": "string",
334
- "minLength": 8,
335
- "maxLength": 128
336
- }
337
- }
338
- },
339
- "order": 17,
340
- "route": {
341
- "kind": "core",
342
- "method": "projectPatch",
343
- "params": [
344
- "$args"
345
- ]
346
- }
347
- }
348
- ]
349
- };
@@ -1,72 +0,0 @@
1
- // One self-contained Context capability contract. Registered at build time.
2
- export const capability={
3
- "id": "sdk",
4
- "version": 1,
5
- "purpose": "Method discovery and exact schemas; no Project Store access",
6
- "startWith": "sdk.methods.describe",
7
- "methods": [
8
- {
9
- "id": "sdk.methods.list",
10
- "group": "sdk",
11
- "mode": "read",
12
- "description": "Discover capability groups first (view=groups), then methods by group and exact schemas via sdk.methods.describe.",
13
- "inputSchema": {
14
- "type": "object",
15
- "required": [
16
- "operation"
17
- ],
18
- "additionalProperties": false,
19
- "properties": {
20
- "operation": {
21
- "const": "sdk.methods.list"
22
- },
23
- "group": {
24
- "type": "string",
25
- "minLength": 1,
26
- "maxLength": 64
27
- },
28
- "view": {
29
- "enum": [
30
- "methods",
31
- "groups"
32
- ]
33
- }
34
- }
35
- },
36
- "order": 11,
37
- "route": {
38
- "kind": "adapter",
39
- "name": "sdk.methods.list"
40
- }
41
- },
42
- {
43
- "id": "sdk.methods.describe",
44
- "group": "sdk",
45
- "mode": "read",
46
- "description": "Read the exact input schema, semantics and failure conditions of one method.",
47
- "inputSchema": {
48
- "type": "object",
49
- "required": [
50
- "operation",
51
- "methodId"
52
- ],
53
- "additionalProperties": false,
54
- "properties": {
55
- "operation": {
56
- "const": "sdk.methods.describe"
57
- },
58
- "methodId": {
59
- "type": "string",
60
- "minLength": 3,
61
- "maxLength": 128
62
- }
63
- }
64
- },
65
- "order": 12,
66
- "route": {
67
- "kind": "adapter",
68
- "name": "sdk.methods.describe"
69
- }
70
- }
71
- ]
72
- };