@zhivex-ai/harness 1.0.0 → 1.1.0-rc.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 (181) hide show
  1. package/CHANGELOG.md +97 -1
  2. package/README.md +52 -306
  3. package/SECURITY.md +1 -1
  4. package/SUPPORT.md +7 -3
  5. package/benchmarks/README.md +3 -3
  6. package/contracts/client-protocol-v1.schema.json +341 -0
  7. package/contracts/public-api.json +100 -1
  8. package/contracts/stable-api-signatures.json +14 -14
  9. package/dist/approval-diff.d.ts +45 -0
  10. package/dist/approval-history.d.ts +38 -0
  11. package/dist/approval-preview.d.ts +26 -0
  12. package/dist/cli-credentials.d.ts +38 -0
  13. package/dist/cli-help.d.ts +3 -0
  14. package/dist/cli-options.d.ts +1 -1
  15. package/dist/cli-stream.d.ts +3 -3
  16. package/dist/cli.d.ts +15 -69
  17. package/dist/cli.js +13796 -10032
  18. package/dist/client-contract.d.ts +208 -0
  19. package/dist/console-commands.d.ts +6 -0
  20. package/dist/console-context.d.ts +5 -1
  21. package/dist/console-input.d.ts +44 -4
  22. package/dist/console-model-catalog.d.ts +25 -0
  23. package/dist/console-navigation.d.ts +27 -0
  24. package/dist/console-presentation.d.ts +18 -0
  25. package/dist/console-welcome.d.ts +13 -0
  26. package/dist/execution-environment.d.ts +4 -0
  27. package/dist/harness.d.ts +3 -0
  28. package/dist/hostile-repository-demo.js +1913 -798
  29. package/dist/index.d.ts +7 -0
  30. package/dist/index.js +7908 -6330
  31. package/dist/local-service.d.ts +34 -0
  32. package/dist/operations.d.ts +23 -1
  33. package/dist/orchestration.d.ts +3 -0
  34. package/dist/persistence-secrets.d.ts +2 -0
  35. package/dist/recorded-workspace.d.ts +4 -0
  36. package/dist/run-document.d.ts +91 -0
  37. package/dist/runtime-policy.d.ts +4 -4
  38. package/dist/service-cli.d.ts +2 -0
  39. package/dist/service-cli.js +10858 -0
  40. package/dist/service-client-cli.d.ts +2 -0
  41. package/dist/service-events.d.ts +50 -0
  42. package/dist/sessions.d.ts +3 -0
  43. package/dist/sqlite-access.d.ts +26 -0
  44. package/dist/sqlite-database.d.ts +2 -0
  45. package/dist/state-backup.d.ts +8 -0
  46. package/dist/task-memory.d.ts +2 -2
  47. package/dist/terminal-continuation.d.ts +3 -0
  48. package/dist/terminal-markdown.d.ts +1 -0
  49. package/dist/terminal-ui.d.ts +5 -0
  50. package/dist/usage-ledger.d.ts +84 -0
  51. package/dist/verify-historical-migrations.js +5699 -5191
  52. package/dist/workspace.d.ts +22 -0
  53. package/dist/zhx.js +13796 -10032
  54. package/docs/CLI.md +136 -30
  55. package/docs/CLIENT_PROTOCOL.md +212 -0
  56. package/docs/CREDENTIALS.md +59 -0
  57. package/docs/DURABLE_OPERATIONS.md +2 -2
  58. package/docs/FIRST_USE.md +82 -0
  59. package/docs/FIRST_USE_EXAMPLE.md +40 -0
  60. package/docs/HOSTILE_REPOSITORY_DEMO.md +1 -1
  61. package/docs/LOCAL_SERVICE.md +142 -0
  62. package/docs/README.md +24 -23
  63. package/docs/THREAT_MODEL.md +1 -1
  64. package/docs/TIME_TO_SAFE_FIX.md +2 -2
  65. package/docs/USAGE.md +181 -0
  66. package/evaluations/daily-cli-cohort.json +33 -0
  67. package/evaluations/representative-assembly-matrix.json +19 -1
  68. package/examples/README.md +26 -0
  69. package/examples/first-use/greeting.test.ts +3 -0
  70. package/examples/first-use/greeting.ts +1 -0
  71. package/examples/first-use/package.json +7 -0
  72. package/package.json +34 -9
  73. package/ROADMAP.md +0 -414
  74. package/benchmarks/baselines/context-navigation-2026-09-09.json +0 -94
  75. package/benchmarks/baselines/efficiency-2026-09-08.json +0 -233
  76. package/benchmarks/baselines/external-final-2026-09-08.json +0 -588
  77. package/benchmarks/baselines/external-intermediate-2026-09-08.json +0 -116
  78. package/benchmarks/baselines/external-matched-openai-2026-09-08.json +0 -1922
  79. package/benchmarks/baselines/external-matched-qwen-2026-09-08.json +0 -1706
  80. package/benchmarks/baselines/external-pilot-2026-09-08.json +0 -439
  81. package/benchmarks/baselines/external-qwen-flash-2026-09-08.json +0 -1570
  82. package/benchmarks/baselines/external-qwen-remediation-2026-09-09.json +0 -1509
  83. package/benchmarks/baselines/external-qwen-sdk-114-progress-2026-09-09.json +0 -2509
  84. package/benchmarks/baselines/external-sdk-upgrade-2026-09-08.json +0 -564
  85. package/benchmarks/baselines/external-verifier-recovery-2026-09-09.json +0 -794
  86. package/benchmarks/baselines/full-harness-review-2026-09-10.json +0 -134
  87. package/benchmarks/baselines/harness-audit-2026-09-09.json +0 -136
  88. package/benchmarks/baselines/harness-remediation-2026-09-09.json +0 -160
  89. package/benchmarks/baselines/oci-remediation-2026-09-10.json +0 -535
  90. package/benchmarks/baselines/rc14-holdout-2026-09-10.json +0 -854
  91. package/benchmarks/baselines/repair-architecture-audit-2026-09-09.json +0 -75
  92. package/benchmarks/baselines/time-to-safe-fix-live-expanded-2026-08-21.json +0 -186
  93. package/benchmarks/baselines/time-to-safe-fix-live-smoke-2026-08-21.json +0 -186
  94. package/docs/GA_READINESS.md +0 -29
  95. package/docs/GEMINI_1_0_DECISION.md +0 -9
  96. package/docs/LIVE_CERTIFICATION.md +0 -107
  97. package/docs/RC13_SECURITY_REVIEW.md +0 -28
  98. package/docs/RC14_DELEGATED_SECURITY_DECISION.md +0 -80
  99. package/docs/RC14_SECURITY_REVIEW.md +0 -40
  100. package/docs/RELEASE.md +0 -96
  101. package/docs/ROLLBACK.md +0 -9
  102. package/docs/SECURITY_REVIEW_EVIDENCE.md +0 -17
  103. package/docs/ga-readiness.json +0 -366
  104. package/docs/reports/EFFICIENCY_REVIEW.md +0 -156
  105. package/docs/reports/EXTERNAL_COMPARISON.md +0 -434
  106. package/docs/reports/FULL_HARNESS_REVIEW_2026-09-10.md +0 -200
  107. package/docs/reports/GA_BUDGET_REMEDIATION_2026-09-19.md +0 -38
  108. package/docs/reports/GA_REPAIR_RECOVERY_2026-09-19.md +0 -700
  109. package/docs/reports/GA_VALIDATION_2026-09-19.md +0 -111
  110. package/docs/reports/HARNESS_ARCHITECTURE_REVIEW_2026-09-09.md +0 -202
  111. package/docs/reports/HARNESS_AUDIT_2026-09-09.md +0 -306
  112. package/docs/reports/HARNESS_REMEDIATION_2026-09-09.md +0 -74
  113. package/docs/reports/HARNESS_REMEDIATION_2026-09-10.md +0 -90
  114. package/docs/reports/MODEL_COMPARISON_2026-09-09.md +0 -184
  115. package/docs/reports/QWEN_REMEDIATION_COMPARISON_2026-09-09.md +0 -142
  116. package/docs/reports/RC14_VALIDATION_2026-09-10.md +0 -45
  117. package/docs/reports/README.md +0 -26
  118. package/docs/reports/evidence/ga-budget-remediation-2026-09-19.json +0 -133
  119. package/docs/reports/evidence/ga-catalog-ablation-2026-09-19.json +0 -699
  120. package/docs/reports/evidence/ga-catalog-ablation-plan-2026-09-19.json +0 -40
  121. package/docs/reports/evidence/ga-catalog-observed-2026-09-19.json +0 -985
  122. package/docs/reports/evidence/ga-catalog-observed-plan-2026-09-19.json +0 -28
  123. package/docs/reports/evidence/ga-catalog-observed-status-2026-09-19.json +0 -15
  124. package/docs/reports/evidence/ga-complete-local-check-2026-09-19.json +0 -47
  125. package/docs/reports/evidence/ga-completion-reminder-2026-09-19.json +0 -22
  126. package/docs/reports/evidence/ga-fresh-cohort-plan-2026-09-19.json +0 -54
  127. package/docs/reports/evidence/ga-fresh-cohort-preparation-2026-09-19.json +0 -242
  128. package/docs/reports/evidence/ga-fresh-cohort-result-2026-09-19.json +0 -4318
  129. package/docs/reports/evidence/ga-local-validation-followup-2026-09-19.json +0 -66
  130. package/docs/reports/evidence/ga-node-consumers-2026-09-19.json +0 -31
  131. package/docs/reports/evidence/ga-package-content-validation-2026-09-19.json +0 -22
  132. package/docs/reports/evidence/ga-plan-completion-2026-09-19.json +0 -39
  133. package/docs/reports/evidence/ga-plan-reserve-2026-09-19.json +0 -573
  134. package/docs/reports/evidence/ga-plan-reserve-plan-2026-09-19.json +0 -24
  135. package/docs/reports/evidence/ga-plan-transition-2026-09-19.json +0 -19
  136. package/docs/reports/evidence/ga-private-verifier-plan-2026-09-19.json +0 -24
  137. package/docs/reports/evidence/ga-private-verifier-root-cause-2026-09-19.json +0 -41
  138. package/docs/reports/evidence/ga-published-sdk-2026-09-19.json +0 -35
  139. package/docs/reports/evidence/ga-python-checkout-imports-2026-09-19.json +0 -95
  140. package/docs/reports/evidence/ga-python-origin-delivery-2026-09-19.json +0 -211
  141. package/docs/reports/evidence/ga-python-origin-delivery-plan-2026-09-19.json +0 -27
  142. package/docs/reports/evidence/ga-qwen-patched-package-2026-09-19.json +0 -1092
  143. package/docs/reports/evidence/ga-qwen-patched-package-plan-2026-09-19.json +0 -18
  144. package/docs/reports/evidence/ga-qwen-published-2026-09-19.json +0 -571
  145. package/docs/reports/evidence/ga-qwen-published-plan-2026-09-19.json +0 -18
  146. package/docs/reports/evidence/ga-qwen-tool-choice-2026-09-19.json +0 -85
  147. package/docs/reports/evidence/ga-qwen-tool-choice-patched-2026-09-19.json +0 -85
  148. package/docs/reports/evidence/ga-recovery-development-2026-09-19.json +0 -1066
  149. package/docs/reports/evidence/ga-recovery-graded-development-2026-09-19.json +0 -1313
  150. package/docs/reports/evidence/ga-recovery-graded-v2-2026-09-19.json +0 -1151
  151. package/docs/reports/evidence/ga-recovery-v3-2026-09-19.json +0 -3943
  152. package/docs/reports/evidence/ga-recovery-v4-2026-09-19.json +0 -1055
  153. package/docs/reports/evidence/ga-recovery-v5-2026-09-19.json +0 -1245
  154. package/docs/reports/evidence/ga-recovery-v6-2026-09-19.json +0 -699
  155. package/docs/reports/evidence/ga-recovery-v7-2026-09-19.json +0 -854
  156. package/docs/reports/evidence/ga-recovery-v8-2026-09-19.json +0 -596
  157. package/docs/reports/evidence/ga-required-delivery-2026-09-19.json +0 -25
  158. package/docs/reports/evidence/ga-required-delivery-live-2026-09-19.json +0 -1337
  159. package/docs/reports/evidence/ga-required-delivery-live-plan-2026-09-19.json +0 -25
  160. package/docs/reports/evidence/ga-retained-candidate-grading-2026-09-19.json +0 -30
  161. package/docs/reports/evidence/ga-tool-selection-live-2026-09-19.json +0 -559
  162. package/docs/reports/evidence/ga-tool-selection-live-plan-2026-09-19.json +0 -28
  163. package/docs/reports/evidence/ga-tool-selection-recovery-2026-09-19.json +0 -27
  164. package/docs/reports/evidence/ga-validation-2026-09-19.json +0 -236
  165. package/docs/reports/evidence/ga-verifier-discovery-live-2026-09-19.json +0 -1369
  166. package/docs/reports/evidence/ga-verifier-discovery-plan-2026-09-19.json +0 -29
  167. package/docs/reports/evidence/ga-verifier-failure-identification-2026-09-19.json +0 -30
  168. package/docs/reports/evidence/ga-verifier-feedback-2026-09-19.json +0 -65
  169. package/docs/reports/evidence/ga-verifier-hints-live-2026-09-19.json +0 -1297
  170. package/docs/reports/evidence/ga-verifier-hints-plan-2026-09-19.json +0 -27
  171. package/docs/reports/evidence/ga-work-boundary-context-analysis-2026-09-19.json +0 -113
  172. package/docs/reports/evidence/ga-work-boundary-live-2026-09-19.json +0 -301
  173. package/docs/reports/evidence/ga-work-boundary-live-plan-2026-09-19.json +0 -84
  174. package/docs/reports/evidence/ga-work-budget-planning-2026-09-19.json +0 -32
  175. package/docs/reports/evidence/ga-working-context-2026-09-19.json +0 -22
  176. package/docs/reports/evidence/rc14-delegated-security-review-2026-09-20.json +0 -81
  177. package/docs/reports/evidence/rc14-ga-gate-2026-09-20.json +0 -18
  178. package/docs/reports/evidence/rc14-representative-2026-09-20.json +0 -509
  179. package/docs/reports/evidence/rc14-security-regressions-2026-09-20.json +0 -64
  180. package/docs/reports/evidence/security-current-2026-09-19.json +0 -91
  181. package/docs/reports/evidence/security-remediation-2026-09-19.json +0 -97
@@ -0,0 +1,341 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "protocolVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "requestId": {
10
+ "type": "string",
11
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
12
+ },
13
+ "connectionId": {
14
+ "type": "string",
15
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
16
+ },
17
+ "command": {
18
+ "oneOf": [
19
+ {
20
+ "type": "object",
21
+ "properties": {
22
+ "method": {
23
+ "type": "string",
24
+ "const": "project.get"
25
+ },
26
+ "projectId": {
27
+ "type": "string",
28
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
29
+ }
30
+ },
31
+ "required": [
32
+ "method",
33
+ "projectId"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ {
38
+ "type": "object",
39
+ "properties": {
40
+ "method": {
41
+ "type": "string",
42
+ "const": "session.list"
43
+ },
44
+ "projectId": {
45
+ "type": "string",
46
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
47
+ },
48
+ "search": {
49
+ "type": "string",
50
+ "maxLength": 256
51
+ }
52
+ },
53
+ "required": [
54
+ "method",
55
+ "projectId"
56
+ ],
57
+ "additionalProperties": false
58
+ },
59
+ {
60
+ "type": "object",
61
+ "properties": {
62
+ "method": {
63
+ "type": "string",
64
+ "const": "session.create"
65
+ },
66
+ "projectId": {
67
+ "type": "string",
68
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
69
+ },
70
+ "idempotencyKey": {
71
+ "type": "string",
72
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
73
+ },
74
+ "title": {
75
+ "type": "string",
76
+ "maxLength": 256
77
+ }
78
+ },
79
+ "required": [
80
+ "method",
81
+ "projectId",
82
+ "idempotencyKey"
83
+ ],
84
+ "additionalProperties": false
85
+ },
86
+ {
87
+ "type": "object",
88
+ "properties": {
89
+ "method": {
90
+ "type": "string",
91
+ "const": "session.get"
92
+ },
93
+ "projectId": {
94
+ "type": "string",
95
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
96
+ },
97
+ "sessionId": {
98
+ "type": "string",
99
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
100
+ }
101
+ },
102
+ "required": [
103
+ "method",
104
+ "projectId",
105
+ "sessionId"
106
+ ],
107
+ "additionalProperties": false
108
+ },
109
+ {
110
+ "type": "object",
111
+ "properties": {
112
+ "method": {
113
+ "type": "string",
114
+ "const": "session.rename"
115
+ },
116
+ "projectId": {
117
+ "type": "string",
118
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
119
+ },
120
+ "sessionId": {
121
+ "type": "string",
122
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
123
+ },
124
+ "idempotencyKey": {
125
+ "type": "string",
126
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
127
+ },
128
+ "expectedRevision": {
129
+ "type": "integer",
130
+ "minimum": 0,
131
+ "maximum": 9007199254740991
132
+ },
133
+ "title": {
134
+ "type": "string",
135
+ "maxLength": 256
136
+ }
137
+ },
138
+ "required": [
139
+ "method",
140
+ "projectId",
141
+ "sessionId",
142
+ "idempotencyKey",
143
+ "expectedRevision",
144
+ "title"
145
+ ],
146
+ "additionalProperties": false
147
+ },
148
+ {
149
+ "type": "object",
150
+ "properties": {
151
+ "method": {
152
+ "type": "string",
153
+ "const": "run.start"
154
+ },
155
+ "projectId": {
156
+ "type": "string",
157
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
158
+ },
159
+ "sessionId": {
160
+ "type": "string",
161
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
162
+ },
163
+ "idempotencyKey": {
164
+ "type": "string",
165
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
166
+ },
167
+ "expectedRevision": {
168
+ "type": "integer",
169
+ "minimum": 0,
170
+ "maximum": 9007199254740991
171
+ },
172
+ "prompt": {
173
+ "type": "string",
174
+ "minLength": 1,
175
+ "maxLength": 65536
176
+ }
177
+ },
178
+ "required": [
179
+ "method",
180
+ "projectId",
181
+ "sessionId",
182
+ "idempotencyKey",
183
+ "expectedRevision",
184
+ "prompt"
185
+ ],
186
+ "additionalProperties": false
187
+ },
188
+ {
189
+ "type": "object",
190
+ "properties": {
191
+ "method": {
192
+ "type": "string",
193
+ "const": "run.get"
194
+ },
195
+ "projectId": {
196
+ "type": "string",
197
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
198
+ },
199
+ "sessionId": {
200
+ "type": "string",
201
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
202
+ },
203
+ "runId": {
204
+ "type": "string",
205
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
206
+ },
207
+ "includeReview": {
208
+ "type": "boolean"
209
+ },
210
+ "decisionOffset": {
211
+ "type": "integer",
212
+ "minimum": 0,
213
+ "maximum": 512
214
+ }
215
+ },
216
+ "required": [
217
+ "method",
218
+ "projectId",
219
+ "sessionId",
220
+ "runId"
221
+ ],
222
+ "additionalProperties": false
223
+ },
224
+ {
225
+ "type": "object",
226
+ "properties": {
227
+ "method": {
228
+ "type": "string",
229
+ "const": "approval.resolve"
230
+ },
231
+ "projectId": {
232
+ "type": "string",
233
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
234
+ },
235
+ "sessionId": {
236
+ "type": "string",
237
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
238
+ },
239
+ "runId": {
240
+ "type": "string",
241
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
242
+ },
243
+ "idempotencyKey": {
244
+ "type": "string",
245
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
246
+ },
247
+ "expectedRevision": {
248
+ "type": "integer",
249
+ "minimum": 0,
250
+ "maximum": 9007199254740991
251
+ },
252
+ "decisions": {
253
+ "minItems": 1,
254
+ "maxItems": 64,
255
+ "type": "array",
256
+ "items": {
257
+ "type": "object",
258
+ "properties": {
259
+ "approvalId": {
260
+ "type": "string",
261
+ "minLength": 1,
262
+ "maxLength": 256
263
+ },
264
+ "digest": {
265
+ "type": "string",
266
+ "pattern": "^[a-f0-9]{64}$"
267
+ },
268
+ "approve": {
269
+ "type": "boolean"
270
+ }
271
+ },
272
+ "required": [
273
+ "approvalId",
274
+ "digest",
275
+ "approve"
276
+ ],
277
+ "additionalProperties": false
278
+ }
279
+ }
280
+ },
281
+ "required": [
282
+ "method",
283
+ "projectId",
284
+ "sessionId",
285
+ "runId",
286
+ "idempotencyKey",
287
+ "expectedRevision",
288
+ "decisions"
289
+ ],
290
+ "additionalProperties": false
291
+ },
292
+ {
293
+ "type": "object",
294
+ "properties": {
295
+ "method": {
296
+ "type": "string",
297
+ "const": "run.cancel"
298
+ },
299
+ "projectId": {
300
+ "type": "string",
301
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
302
+ },
303
+ "sessionId": {
304
+ "type": "string",
305
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
306
+ },
307
+ "runId": {
308
+ "type": "string",
309
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
310
+ },
311
+ "idempotencyKey": {
312
+ "type": "string",
313
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
314
+ },
315
+ "expectedRevision": {
316
+ "type": "integer",
317
+ "minimum": 0,
318
+ "maximum": 9007199254740991
319
+ }
320
+ },
321
+ "required": [
322
+ "method",
323
+ "projectId",
324
+ "sessionId",
325
+ "runId",
326
+ "idempotencyKey",
327
+ "expectedRevision"
328
+ ],
329
+ "additionalProperties": false
330
+ }
331
+ ]
332
+ }
333
+ },
334
+ "required": [
335
+ "protocolVersion",
336
+ "requestId",
337
+ "connectionId",
338
+ "command"
339
+ ],
340
+ "additionalProperties": false
341
+ }
@@ -24,6 +24,7 @@
24
24
  "DEFAULT_TIME_TO_SAFE_FIX_GOAL",
25
25
  "EDIT_CONTRACT_SCHEMA_VERSION",
26
26
  "EDIT_DIGEST_ALGORITHM",
27
+ "HARNESS_CLIENT_PROTOCOL_VERSION",
27
28
  "HARNESS_CONFIG_MIGRATABLE_SCHEMA_VERSIONS",
28
29
  "HARNESS_CONFIG_SCHEMA_VERSION",
29
30
  "HARNESS_CONTEXT_BUNDLE_SCHEMA_VERSION",
@@ -132,6 +133,7 @@
132
133
  "createEmptyHarnessContextBundle",
133
134
  "createExecutionEnvironmentTools",
134
135
  "createHarness",
136
+ "createHarnessClientAdapter",
135
137
  "createHarnessLifecycleDispatcher",
136
138
  "createHarnessMcpTools",
137
139
  "createHarnessOciExecutionEnvironment",
@@ -161,11 +163,14 @@
161
163
  "formatApproval",
162
164
  "formatTerminalEvent",
163
165
  "formatTerminalHeader",
166
+ "harnessClientCommandSchema",
167
+ "harnessClientRequestSchema",
164
168
  "harnessContextConfigurationSchema",
165
169
  "harnessContextFingerprintInput",
166
170
  "harnessErrorDocument",
167
171
  "harnessExecutionSession",
168
172
  "harnessLifecycleFingerprintInput",
173
+ "harnessLocalCredentialsSchema",
169
174
  "harnessSkillLoadInputSchema",
170
175
  "importHarnessStateBackup",
171
176
  "importHarnessStateBackupFile",
@@ -186,6 +191,7 @@
186
191
  "normalizeHarnessError",
187
192
  "normalizeHarnessMcpConfiguration",
188
193
  "openCliSessionStore",
194
+ "openHarnessActivityStore",
189
195
  "openHarnessPersistence",
190
196
  "openSessionStore",
191
197
  "parseCliJsonDocument",
@@ -195,8 +201,11 @@
195
201
  "providerAvailability",
196
202
  "providerDescriptor",
197
203
  "quarantineFileInputSchema",
204
+ "readHarnessLocalCredentials",
198
205
  "readHarnessStateBackup",
206
+ "recoverHarnessLocalService",
199
207
  "renderHarnessContextInstructions",
208
+ "requestHarnessLocalService",
200
209
  "resolveHarnessConfig",
201
210
  "resolveHarnessModelRoutes",
202
211
  "resolveTerminalApprovals",
@@ -208,6 +217,7 @@
208
217
  "serializeHarnessModelRoutes",
209
218
  "serializeStreamEvent",
210
219
  "serializeStreamResult",
220
+ "startHarnessLocalService",
211
221
  "stateBackupBundleSchema",
212
222
  "streamEventDocument",
213
223
  "streamResultDocument",
@@ -298,6 +308,7 @@
298
308
  ],
299
309
  "experimentalRuntimeExports": [
300
310
  "DEFAULT_TIME_TO_SAFE_FIX_GOAL",
311
+ "HARNESS_CLIENT_PROTOCOL_VERSION",
301
312
  "TIME_TO_SAFE_FIX_CARRIERS",
302
313
  "TIME_TO_SAFE_FIX_DIAGNOSTIC_CODES",
303
314
  "TIME_TO_SAFE_FIX_FAILURE_ORIGINS",
@@ -306,10 +317,19 @@
306
317
  "TIME_TO_SAFE_FIX_PROFILES",
307
318
  "TIME_TO_SAFE_FIX_SCHEMA_VERSION",
308
319
  "classifyTimeToSafeFixFailure",
320
+ "createHarnessClientAdapter",
309
321
  "createTimeToSafeFixCases",
310
322
  "createTimeToSafeFixReport",
311
323
  "createTimeToSafeFixSample",
324
+ "harnessClientCommandSchema",
325
+ "harnessClientRequestSchema",
326
+ "harnessLocalCredentialsSchema",
312
327
  "injectTimeToSafeFixAttack",
328
+ "openHarnessActivityStore",
329
+ "readHarnessLocalCredentials",
330
+ "recoverHarnessLocalService",
331
+ "requestHarnessLocalService",
332
+ "startHarnessLocalService",
313
333
  "timeToSafeFixDriverResultSchema",
314
334
  "timeToSafeFixLatencyStatistics",
315
335
  "timeToSafeFixTaskSchema"
@@ -492,8 +512,23 @@
492
512
  "ExternalAttestationReference",
493
513
  "FileDigest",
494
514
  "ForkSessionInput",
515
+ "HarnessActivityEvent",
516
+ "HarnessActivityOptions",
517
+ "HarnessActivityPage",
518
+ "HarnessActivitySnapshot",
519
+ "HarnessActivityStore",
495
520
  "HarnessBudget",
496
521
  "HarnessCheck",
522
+ "HarnessClientAdapter",
523
+ "HarnessClientAdapterOptions",
524
+ "HarnessClientCommand",
525
+ "HarnessClientData",
526
+ "HarnessClientErrorCode",
527
+ "HarnessClientNegotiation",
528
+ "HarnessClientRequest",
529
+ "HarnessClientResponse",
530
+ "HarnessClientRun",
531
+ "HarnessClientSession",
497
532
  "HarnessCommandResult",
498
533
  "HarnessCompactionConfig",
499
534
  "HarnessConfig",
@@ -519,6 +554,9 @@
519
554
  "HarnessLifecycleHookFailure",
520
555
  "HarnessLifecycleHookRegistration",
521
556
  "HarnessLoadedSkill",
557
+ "HarnessLocalCredentials",
558
+ "HarnessLocalService",
559
+ "HarnessLocalServiceOptions",
522
560
  "HarnessMcpClients",
523
561
  "HarnessMcpConfiguration",
524
562
  "HarnessMcpPermission",
@@ -775,6 +813,24 @@
775
813
  "WorkspaceTopologyFile"
776
814
  ],
777
815
  "experimentalTypeExports": [
816
+ "HarnessActivityEvent",
817
+ "HarnessActivityOptions",
818
+ "HarnessActivityPage",
819
+ "HarnessActivitySnapshot",
820
+ "HarnessActivityStore",
821
+ "HarnessClientAdapter",
822
+ "HarnessClientAdapterOptions",
823
+ "HarnessClientCommand",
824
+ "HarnessClientData",
825
+ "HarnessClientErrorCode",
826
+ "HarnessClientNegotiation",
827
+ "HarnessClientRequest",
828
+ "HarnessClientResponse",
829
+ "HarnessClientRun",
830
+ "HarnessClientSession",
831
+ "HarnessLocalCredentials",
832
+ "HarnessLocalService",
833
+ "HarnessLocalServiceOptions",
778
834
  "TimeToSafeFixAggregate",
779
835
  "TimeToSafeFixCarrier",
780
836
  "TimeToSafeFixCase",
@@ -856,6 +912,10 @@
856
912
  },
857
913
  "run": {
858
914
  "allowed": [
915
+ "--service",
916
+ "--session",
917
+ "--pricing-file",
918
+ "--usage-limit-usd",
859
919
  "--provider",
860
920
  "--model",
861
921
  "--profile",
@@ -917,6 +977,20 @@
917
977
  "--subagent"
918
978
  ],
919
979
  "conflicts": {
980
+ "--usage-limit-usd": [
981
+ "--max-cost-usd",
982
+ "--input-cost-per-million",
983
+ "--output-cost-per-million"
984
+ ],
985
+ "--max-cost-usd": [
986
+ "--usage-limit-usd"
987
+ ],
988
+ "--input-cost-per-million": [
989
+ "--usage-limit-usd"
990
+ ],
991
+ "--output-cost-per-million": [
992
+ "--usage-limit-usd"
993
+ ],
920
994
  "--json": [
921
995
  "--jsonl"
922
996
  ],
@@ -927,6 +1001,8 @@
927
1001
  },
928
1002
  "review": {
929
1003
  "allowed": [
1004
+ "--pricing-file",
1005
+ "--usage-limit-usd",
930
1006
  "--provider",
931
1007
  "--model",
932
1008
  "--profile",
@@ -961,6 +1037,9 @@
961
1037
  },
962
1038
  "chat": {
963
1039
  "allowed": [
1040
+ "--service",
1041
+ "--pricing-file",
1042
+ "--usage-limit-usd",
964
1043
  "--provider",
965
1044
  "--model",
966
1045
  "--profile",
@@ -1021,6 +1100,20 @@
1021
1100
  "--subagent"
1022
1101
  ],
1023
1102
  "conflicts": {
1103
+ "--usage-limit-usd": [
1104
+ "--max-cost-usd",
1105
+ "--input-cost-per-million",
1106
+ "--output-cost-per-million"
1107
+ ],
1108
+ "--max-cost-usd": [
1109
+ "--usage-limit-usd"
1110
+ ],
1111
+ "--input-cost-per-million": [
1112
+ "--usage-limit-usd"
1113
+ ],
1114
+ "--output-cost-per-million": [
1115
+ "--usage-limit-usd"
1116
+ ],
1024
1117
  "--session": [
1025
1118
  "--continue"
1026
1119
  ],
@@ -1098,6 +1191,8 @@
1098
1191
  },
1099
1192
  "resume": {
1100
1193
  "allowed": [
1194
+ "--service",
1195
+ "--session",
1101
1196
  "--workspace",
1102
1197
  "--state-dir",
1103
1198
  "--store",
@@ -1218,6 +1313,7 @@
1218
1313
  },
1219
1314
  "sessions:list": {
1220
1315
  "allowed": [
1316
+ "--service",
1221
1317
  "--workspace",
1222
1318
  "--state-dir",
1223
1319
  "--store",
@@ -1225,7 +1321,8 @@
1225
1321
  "--user",
1226
1322
  "--namespace",
1227
1323
  "--limit",
1228
- "--json"
1324
+ "--json",
1325
+ "--search"
1229
1326
  ],
1230
1327
  "required": [],
1231
1328
  "repeatable": [],
@@ -1233,6 +1330,7 @@
1233
1330
  },
1234
1331
  "sessions:inspect": {
1235
1332
  "allowed": [
1333
+ "--service",
1236
1334
  "--workspace",
1237
1335
  "--state-dir",
1238
1336
  "--store",
@@ -1247,6 +1345,7 @@
1247
1345
  },
1248
1346
  "sessions:rename": {
1249
1347
  "allowed": [
1348
+ "--service",
1250
1349
  "--workspace",
1251
1350
  "--state-dir",
1252
1351
  "--store",
@@ -25,11 +25,11 @@
25
25
  },
26
26
  {
27
27
  "name": "CLI_OPTION_DEFINITIONS",
28
- "sha256": "sha256:abac6eb7d619426d6573f4e5e3a5f03df96dda8a289bb987b6587ebecb0497e2"
28
+ "sha256": "sha256:ac981aadf7a89313aa9744aca63c61d700797f6356bd43cf92be4984ea5e8d80"
29
29
  },
30
30
  {
31
31
  "name": "CLI_OPTION_NAMES",
32
- "sha256": "sha256:0cdfbf993d662f8779f5a9cb428f667617befc772878f148029afa8f2324db13"
32
+ "sha256": "sha256:2c94006a4fcb5a7df4e5d24fe57533b436f630bf656ffae864f7e461f0c694ac"
33
33
  },
34
34
  {
35
35
  "name": "DEFAULT_ALLOWED_CHECKS",
@@ -125,7 +125,7 @@
125
125
  },
126
126
  {
127
127
  "name": "Workspace",
128
- "sha256": "sha256:58d3cb1d3c4db4e3832fd4c2445febca984d08c2bf62f035dbe2aa3d4cde14c1"
128
+ "sha256": "sha256:3e26e6e06d28107c6191ff010e80470beaa34a548bef1556caa46c96a2f966fe"
129
129
  },
130
130
  {
131
131
  "name": "appendUserMessage",
@@ -165,7 +165,7 @@
165
165
  },
166
166
  {
167
167
  "name": "createHarness",
168
- "sha256": "sha256:ca0c0fb64f2383e909b85bd8849557efefc88139a48d4f6056a192fa9a3626eb"
168
+ "sha256": "sha256:7cea05d51dff835bef5f3205e917273797af3ce09084ab99b608671c2812ccfb"
169
169
  },
170
170
  {
171
171
  "name": "createHarnessMcpTools",
@@ -173,7 +173,7 @@
173
173
  },
174
174
  {
175
175
  "name": "createHarnessOciExecutionEnvironment",
176
- "sha256": "sha256:9ead262d7b342c1135c68e3ff20f99afb251bf03698ed2fd97c4d97bfbb9afb7"
176
+ "sha256": "sha256:6a62e4a6befffc36d8f702c45a0a833fdb62b6eaf64bf28a13200fc30dafd8c4"
177
177
  },
178
178
  {
179
179
  "name": "createHarnessStateBackup",
@@ -209,7 +209,7 @@
209
209
  },
210
210
  {
211
211
  "name": "inspectHarnessRun",
212
- "sha256": "sha256:3c78972d143f0ca2f876cc70faa050e270be58c3ae087b4cd9195b096063c8c3"
212
+ "sha256": "sha256:cc09fcb2817b6796298ee5646f4e3da859e2dfd5535be14c524c6632a1dba4fd"
213
213
  },
214
214
  {
215
215
  "name": "inspectHarnessState",
@@ -237,7 +237,7 @@
237
237
  },
238
238
  {
239
239
  "name": "openCliSessionStore",
240
- "sha256": "sha256:97c478975ef9e6429585f6b7e321ddbdc3aee3bca99805ec29754ffb4e80ec9a"
240
+ "sha256": "sha256:6d2195438f3b197d19539d1df089eb041660675b3d1b76b79526cb077a5d8129"
241
241
  },
242
242
  {
243
243
  "name": "openHarnessPersistence",
@@ -273,7 +273,7 @@
273
273
  },
274
274
  {
275
275
  "name": "runHarness",
276
- "sha256": "sha256:7f4f1fe535e0a3a172e330e52641c6bc96421780262bf171c13a6863898ba811"
276
+ "sha256": "sha256:584ffc9c7bfbdfc556226907d97d68d7e5d82ec67e39688b6bb79c03b8e1361a"
277
277
  },
278
278
  {
279
279
  "name": "serializeStreamEvent",
@@ -331,7 +331,7 @@
331
331
  },
332
332
  {
333
333
  "name": "CliOptionName",
334
- "sha256": "sha256:7e0741e36631f52abf2a74cbf43be7bd08371fcf550e3d0ea7008305c940ed05"
334
+ "sha256": "sha256:9628cdc1bd1d28ff1ecb4e29091a04a6cfdff48c4b9da2d49c1d64ca003f7a76"
335
335
  },
336
336
  {
337
337
  "name": "CliReviewGroupDocument",
@@ -363,7 +363,7 @@
363
363
  },
364
364
  {
365
365
  "name": "CliSessionStore",
366
- "sha256": "sha256:0f7af5faf8b98df07c7a7c12a997d36699263bff00f2075c0ab2bca7d8e056a2"
366
+ "sha256": "sha256:b081dd3745468fdb7fd020fbb19dabc79517519e7e865c80ca501ed26a47a357"
367
367
  },
368
368
  {
369
369
  "name": "CliStreamErrorDocument",
@@ -375,7 +375,7 @@
375
375
  },
376
376
  {
377
377
  "name": "CreateHarnessOptions",
378
- "sha256": "sha256:017993641b72591c489645cbe20a509d150146054f2abece3003e18cd34578cf"
378
+ "sha256": "sha256:d519d636d27673caaf1307f60094a67fb6791009f4c05dd61d6c64559940c207"
379
379
  },
380
380
  {
381
381
  "name": "HarnessBudget",
@@ -427,7 +427,7 @@
427
427
  },
428
428
  {
429
429
  "name": "HarnessExecutionSession",
430
- "sha256": "sha256:c0c52240a22c28cd18fbb785b2e47ed5b301bbc0563d7defa4c22e6a6df828b3"
430
+ "sha256": "sha256:3bf8a21fccb5793b92bbbd10c6a99f07bf404096422246e8c18d93bff328c743"
431
431
  },
432
432
  {
433
433
  "name": "HarnessMcpConfiguration",
@@ -487,8 +487,8 @@
487
487
  },
488
488
  {
489
489
  "name": "ZhivexHarness",
490
- "sha256": "sha256:27e2328490ff8d59117345a288fde3232d88aac7b19db416da5c9b7ac13a1b66"
490
+ "sha256": "sha256:984c1171cdd88a8138de73523aca11f384d6bcedefdd9c688b346e60c56ee7fb"
491
491
  }
492
492
  ],
493
- "digest": "sha256:0fc669c5720a7d43e7b79998b82fa984c1b155c7b7f994e6347b4264189246bb"
493
+ "digest": "sha256:9a4abc106a3713d3295e440c42f5a3a75f40719c630d2800317e1e9e30ca5ece"
494
494
  }