warpmetal 0.9.1 → 0.9.3
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.
package/package.json
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"takeoverReport"
|
|
33
33
|
],
|
|
34
34
|
"$defs": {
|
|
35
|
+
"managerMode": {"type": "string", "enum": ["off", "recommend", "auto_steer"]},
|
|
35
36
|
"id": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{3,159}$"},
|
|
36
37
|
"providerId": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"},
|
|
37
38
|
"modelId": {"type": "string", "pattern": "^(?!.*://)[A-Za-z0-9][A-Za-z0-9._:/-]{0,159}$"},
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
"version": {"const": 1},
|
|
163
164
|
"requestId": {"$ref": "#/$defs/id"},
|
|
164
165
|
"expectedRevision": {"type": "integer", "minimum": 1},
|
|
165
|
-
"mode": {"
|
|
166
|
+
"mode": {"$ref": "#/$defs/managerMode"},
|
|
166
167
|
"allowedRules": {"type": "array", "maxItems": 4, "uniqueItems": true, "items": {"$ref": "#/$defs/rule"}},
|
|
167
168
|
"dailyRunLimit": {"type": "integer", "minimum": 0, "maximum": 30},
|
|
168
169
|
"dailyInputTokenLimit": {"type": "integer", "minimum": 0, "maximum": 480000},
|
|
@@ -178,7 +179,7 @@
|
|
|
178
179
|
"formatVersion": {"const": 1},
|
|
179
180
|
"sandboxId": {"$ref": "#/$defs/id"},
|
|
180
181
|
"revision": {"type": "integer", "minimum": 1},
|
|
181
|
-
"mode": {"
|
|
182
|
+
"mode": {"$ref": "#/$defs/managerMode"},
|
|
182
183
|
"allowedRules": {"type": "array", "maxItems": 4, "uniqueItems": true, "items": {"$ref": "#/$defs/rule"}},
|
|
183
184
|
"dailyRunLimit": {"type": "integer", "minimum": 0, "maximum": 30},
|
|
184
185
|
"dailyInputTokenLimit": {"type": "integer", "minimum": 0, "maximum": 480000},
|
|
@@ -186,10 +187,11 @@
|
|
|
186
187
|
"effectiveLimits": {"$ref": "#/$defs/effectiveLimits"},
|
|
187
188
|
"authorizationExpiresAt": {"type": ["string", "null"], "format": "date-time"},
|
|
188
189
|
"appliedRevision": {"type": ["integer", "null"], "minimum": 1},
|
|
189
|
-
"status": {"type": "string", "enum": ["awaiting_runtime", "applied", "expired", "unavailable"]},
|
|
190
|
+
"status": {"type": "string", "enum": ["awaiting_runtime", "awaiting_guidance", "applied", "expired", "unavailable"]},
|
|
190
191
|
"recommend": {"$ref": "#/$defs/capability"},
|
|
191
192
|
"modelRoutes": {"type": "array", "maxItems": 8, "items": {"$ref": "#/$defs/modelRoute"}},
|
|
192
193
|
"autoSteer": {"$ref": "#/$defs/capability"},
|
|
194
|
+
"autoSteerPolicy": {"type": ["object", "null"], "additionalProperties": false, "properties": {"formatVersion": {"const": 1}, "available": {"type": "boolean"}, "reason": {"type": ["string", "null"], "enum": [null, "native_guard_unqualified", "runtime_unavailable", "source_unavailable"]}, "qualifiedTuple": {"type": ["object", "null"]}}, "required": ["formatVersion", "available", "reason", "qualifiedTuple"]},
|
|
193
195
|
"updatedAt": {"type": "string", "format": "date-time"}
|
|
194
196
|
},
|
|
195
197
|
"required": ["formatVersion", "sandboxId", "revision", "mode", "allowedRules", "dailyRunLimit", "dailyInputTokenLimit", "dailyOutputTokenLimit", "effectiveLimits", "authorizationExpiresAt", "appliedRevision", "status", "recommend", "modelRoutes", "autoSteer", "updatedAt"]
|
|
@@ -331,6 +333,7 @@
|
|
|
331
333
|
"additionalProperties": false,
|
|
332
334
|
"properties": {
|
|
333
335
|
"runId": {"$ref": "#/$defs/id"},
|
|
336
|
+
"guidance": {"type": ["object", "null"], "additionalProperties": false, "properties": {"formatVersion": {"const": 1}, "sandboxId": {"$ref": "#/$defs/id"}, "reservationId": {"$ref": "#/$defs/id"}, "runId": {"$ref": "#/$defs/id"}, "revision": {"type": "integer", "minimum": 1}, "bindingDigest": {"$ref": "#/$defs/digest"}, "guidanceDigest": {"$ref": "#/$defs/digest"}, "guardId": {"type": "string"}, "pendingInputId": {"type": "string"}, "state": {"enum": ["pending", "available_to_worker", "cancelled", "refused", "unknown"]}, "refusalCode": {"type": ["string", "null"]}, "logCursor": {"type": ["integer", "null"], "minimum": 0}, "observedAt": {"type": "string"}, "admittedAt": {"type": ["string", "null"]}, "availableAt": {"type": ["string", "null"]}, "settledAt": {"type": ["string", "null"]}, "receiptDigest": {"$ref": "#/$defs/digest"}}, "required": ["formatVersion", "sandboxId", "reservationId", "runId", "revision", "bindingDigest", "guidanceDigest", "guardId", "pendingInputId", "state", "refusalCode", "logCursor", "observedAt", "admittedAt", "availableAt", "settledAt", "receiptDigest"]},
|
|
334
337
|
"reservationId": {"$ref": "#/$defs/id"},
|
|
335
338
|
"requestId": {"$ref": "#/$defs/id"},
|
|
336
339
|
"manual": {"type": "boolean"},
|
|
@@ -363,14 +366,14 @@
|
|
|
363
366
|
},
|
|
364
367
|
"resumeRequest": {
|
|
365
368
|
"type": "object", "additionalProperties": false,
|
|
366
|
-
"properties": {"version": {"const": 1}, "resumeOperationId": {"$ref": "#/$defs/id"}, "requestId": {"$ref": "#/$defs/id"}, "action": {"const": "resume_manager_and_release_member"}, "expectedTakeoverRevision": {"type": "integer", "minimum": 1}, "expectedPolicyRevision": {"type": "integer", "minimum": 1}, "expectedHoldRevision": {"type": "integer", "minimum": 1}, "restoreMode": {"
|
|
369
|
+
"properties": {"version": {"const": 1}, "resumeOperationId": {"$ref": "#/$defs/id"}, "requestId": {"$ref": "#/$defs/id"}, "action": {"const": "resume_manager_and_release_member"}, "expectedTakeoverRevision": {"type": "integer", "minimum": 1}, "expectedPolicyRevision": {"type": "integer", "minimum": 1}, "expectedHoldRevision": {"type": "integer", "minimum": 1}, "restoreMode": {"$ref": "#/$defs/managerMode"}, "source": {"$ref": "#/$defs/source"}, "target": {"$ref": "#/$defs/target"}},
|
|
367
370
|
"required": ["version", "resumeOperationId", "requestId", "action", "expectedTakeoverRevision", "expectedPolicyRevision", "expectedHoldRevision", "restoreMode", "source", "target"]
|
|
368
371
|
},
|
|
369
372
|
"takeover": {
|
|
370
373
|
"type": "object", "additionalProperties": false,
|
|
371
374
|
"properties": {
|
|
372
375
|
"formatVersion": {"const": 1}, "operationId": {"$ref": "#/$defs/id"}, "predecessorOperationId": {"oneOf": [{"$ref": "#/$defs/id"}, {"type": "null"}]}, "requestId": {"$ref": "#/$defs/id"}, "revision": {"type": "integer", "minimum": 1}, "action": {"type": "string", "enum": ["pause_manager_and_hold_member", "resume_manager_and_release_member"]}, "state": {"type": "string", "enum": ["awaiting_runtime", "ready", "unsettled", "superseded", "failed", "resumed"]}, "findingId": {"$ref": "#/$defs/id"}, "source": {"$ref": "#/$defs/source"}, "target": {"$ref": "#/$defs/target"},
|
|
373
|
-
"monitorPolicy": {"type": "object", "additionalProperties": false, "properties": {"desiredMode": {"
|
|
376
|
+
"monitorPolicy": {"type": "object", "additionalProperties": false, "properties": {"desiredMode": {"$ref": "#/$defs/managerMode"}, "desiredRevision": {"type": "integer", "minimum": 1}, "appliedRevision": {"type": ["integer", "null"], "minimum": 1}}, "required": ["desiredMode", "desiredRevision", "appliedRevision"]},
|
|
374
377
|
"memberHold": {"type": "object", "additionalProperties": false, "properties": {"holdId": {"$ref": "#/$defs/id"}, "desiredState": {"type": "string", "enum": ["active", "released"]}, "desiredRevision": {"type": "integer", "minimum": 1}, "brokerApplied": {"type": "boolean"}, "nodeAppliedRevision": {"type": ["integer", "null"], "minimum": 1}}, "required": ["holdId", "desiredState", "desiredRevision", "brokerApplied", "nodeAppliedRevision"]},
|
|
375
378
|
"pendingInput": {"type": "object", "additionalProperties": false, "properties": {"state": {"type": "string", "enum": ["awaiting_runtime", "none_pending", "canceled", "already_available_to_worker", "unknown"]}, "alreadyConsumed": {"type": "boolean"}}, "required": ["state", "alreadyConsumed"]},
|
|
376
379
|
"handoff": {"type": "object", "additionalProperties": false, "properties": {"capability": {"type": "string", "enum": ["exact_session", "inspection_only", "unavailable"]}, "reason": {"$ref": "#/$defs/capabilityReason"}}, "required": ["capability", "reason"]},
|
|
@@ -385,7 +388,7 @@
|
|
|
385
388
|
},
|
|
386
389
|
"policyManifest": {
|
|
387
390
|
"type": "object", "additionalProperties": false,
|
|
388
|
-
"properties": {"formatVersion": {"const": 1}, "sandboxId": {"$ref": "#/$defs/id"}, "sandboxGeneration": {"type": "integer", "minimum": 1}, "policyRevision": {"type": "integer", "minimum": 1}, "mode": {"
|
|
391
|
+
"properties": {"formatVersion": {"const": 1}, "sandboxId": {"$ref": "#/$defs/id"}, "sandboxGeneration": {"type": "integer", "minimum": 1}, "policyRevision": {"type": "integer", "minimum": 1}, "mode": {"$ref": "#/$defs/managerMode"}, "allowedRules": {"type": "array", "maxItems": 4, "items": {"$ref": "#/$defs/rule"}}, "dailyRunLimit": {"type": "integer", "minimum": 0, "maximum": 30}, "dailyInputTokenLimit": {"type": "integer", "minimum": 0, "maximum": 480000}, "dailyOutputTokenLimit": {"type": "integer", "minimum": 0, "maximum": 60000}, "effectiveLimits": {"$ref": "#/$defs/effectiveLimits"}, "managerProfile": {"$ref": "#/$defs/managerProfile"}, "validUntil": {"type": "string", "format": "date-time"}, "runGeneration": {"type": "integer", "minimum": 1}, "autoSteerAvailable": {"type": "boolean"}},
|
|
389
392
|
"required": ["formatVersion", "sandboxId", "sandboxGeneration", "policyRevision", "mode", "allowedRules", "dailyRunLimit", "dailyInputTokenLimit", "dailyOutputTokenLimit", "effectiveLimits", "managerProfile", "validUntil", "runGeneration", "autoSteerAvailable"]
|
|
390
393
|
},
|
|
391
394
|
"policyReport": {
|
|
@@ -395,7 +398,7 @@
|
|
|
395
398
|
},
|
|
396
399
|
"recommendCapabilityReport": {
|
|
397
400
|
"type": "object", "additionalProperties": false,
|
|
398
|
-
"properties": {"source": {"$ref": "#/$defs/source"}, "providerRouteDigest": {"$ref": "#/$defs/digest"}, "providerId": {"$ref": "#/$defs/providerId"}, "modelId": {"$ref": "#/$defs/modelId"}, "protocol": {"const": "opencode-supervisor/1"}, "recipeIds": {"type": "array", "maxItems": 4, "uniqueItems": true, "items": {"$ref": "#/$defs/recipe"}}, "maxInputTokens": {"const": 8000}, "maxOutputTokens": {"const": 1000}, "toolsAllowed": {"const": false}, "mediaAllowed": {"const": false}, "managerProfile": {"$ref": "#/$defs/managerProfile"}, "available": {"type": "boolean"}, "reason": {"$ref": "#/$defs/capabilityReason"}},
|
|
401
|
+
"properties": {"source": {"$ref": "#/$defs/source"}, "providerRouteDigest": {"$ref": "#/$defs/digest"}, "providerId": {"$ref": "#/$defs/providerId"}, "modelId": {"$ref": "#/$defs/modelId"}, "protocol": {"const": "opencode-supervisor/1"}, "recipeIds": {"type": "array", "maxItems": 4, "uniqueItems": true, "items": {"$ref": "#/$defs/recipe"}}, "maxInputTokens": {"const": 8000}, "maxOutputTokens": {"const": 1000}, "toolsAllowed": {"const": false}, "mediaAllowed": {"const": false}, "managerProfile": {"$ref": "#/$defs/managerProfile"}, "nativeGuard": {"type": "object", "additionalProperties": false, "properties": {"guardVersion": {"type": "string"}, "customVersion": {"type": "string"}, "sourceRevision": {"type": "string"}, "patchDigest": {"$ref": "#/$defs/digest"}, "artifactSha256": {"$ref": "#/$defs/digest"}, "binarySha256": {"$ref": "#/$defs/digest"}}, "required": ["guardVersion", "customVersion", "sourceRevision", "patchDigest", "artifactSha256", "binarySha256"]}, "managerPluginDigest": {"$ref": "#/$defs/digest"}, "available": {"type": "boolean"}, "reason": {"$ref": "#/$defs/capabilityReason"}},
|
|
399
402
|
"required": ["source", "providerRouteDigest", "providerId", "modelId", "protocol", "recipeIds", "maxInputTokens", "maxOutputTokens", "toolsAllowed", "mediaAllowed", "managerProfile", "available", "reason"]
|
|
400
403
|
},
|
|
401
404
|
"reviewManifest": {
|
package/src/contracts/manager.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from worker/account/manager.ts; SHA-256
|
|
1
|
+
// Generated from worker/account/manager.ts; SHA-256 8fd995bfe7af0edb3f4ac6fa077fee10a50238021dd9872934dac0510aed4965.
|
|
2
2
|
/** The owner boundary accepts only the canonical closed, metadata-only schema. */
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
const contract = JSON.parse(readFileSync(new URL("./agent-manager-control-v1.schema.json", import.meta.url), "utf8"));
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"worker/account/work.ts": "e4176707a30848118bd44d1c369fc4303a267300fc981560d58c618b279ce516",
|
|
5
5
|
"worker/account/work-handoff.ts": "d89273eeab925968f757e6458542681d88356a494e6fc7d7af800193c371fb3d",
|
|
6
6
|
"worker/account/insights.ts": "826eb08f9496415b408fe943d9eec33a6c8480a52474df76c118f471f6d42d1f",
|
|
7
|
-
"worker/account/manager.ts": "
|
|
7
|
+
"worker/account/manager.ts": "8fd995bfe7af0edb3f4ac6fa077fee10a50238021dd9872934dac0510aed4965",
|
|
8
8
|
"worker/account/session-handoff.ts": "d2bc3e8fc85cc686e4eba1fe539e18d5f1c8c2c832667b321b305fa0c8421396",
|
|
9
9
|
"worker/account/http.ts#isPlainObject": "45a498e37caa3c89d198945a127cf050b9c11712c0a1ca050fac83a9b60c34b2",
|
|
10
|
-
"backend/contracts/agent-manager-control-v1.schema.json": "
|
|
10
|
+
"backend/contracts/agent-manager-control-v1.schema.json": "52e2ca429c020d2f4393b9cecaad804dfe4ed74d3cf2d50fe4a8a1897f52e90d"
|
|
11
11
|
}
|
|
12
12
|
}
|