@claudexor/schema 3.1.0 → 3.1.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 (100) hide show
  1. package/dist/agent-capabilities.d.ts +97 -9
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +5 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +102 -0
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +17 -0
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/budget.d.ts +13 -13
  10. package/dist/budget.d.ts.map +1 -1
  11. package/dist/budget.js +2 -0
  12. package/dist/budget.js.map +1 -1
  13. package/dist/config.d.ts +70 -38
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/config.js +12 -1
  16. package/dist/config.js.map +1 -1
  17. package/dist/control-operation-responses.d.ts +160 -56
  18. package/dist/control-operation-responses.d.ts.map +1 -1
  19. package/dist/control-operation-responses.js +25 -0
  20. package/dist/control-operation-responses.js.map +1 -1
  21. package/dist/control-run-detail.d.ts +1413 -205
  22. package/dist/control-run-detail.d.ts.map +1 -1
  23. package/dist/control-run-detail.js +6 -0
  24. package/dist/control-run-detail.js.map +1 -1
  25. package/dist/control-run-retry.d.ts +2 -2
  26. package/dist/control.d.ts +486 -163
  27. package/dist/control.d.ts.map +1 -1
  28. package/dist/control.js +23 -28
  29. package/dist/control.js.map +1 -1
  30. package/dist/decision.d.ts +5 -0
  31. package/dist/decision.d.ts.map +1 -1
  32. package/dist/decision.js +7 -3
  33. package/dist/decision.js.map +1 -1
  34. package/dist/delegation.d.ts +73 -0
  35. package/dist/delegation.d.ts.map +1 -0
  36. package/dist/delegation.js +120 -0
  37. package/dist/delegation.js.map +1 -0
  38. package/dist/effort.d.ts +132 -0
  39. package/dist/effort.d.ts.map +1 -0
  40. package/dist/effort.js +167 -0
  41. package/dist/effort.js.map +1 -0
  42. package/dist/events.d.ts +4 -4
  43. package/dist/events.d.ts.map +1 -1
  44. package/dist/events.js +9 -0
  45. package/dist/events.js.map +1 -1
  46. package/dist/gate.d.ts +2 -2
  47. package/dist/harness.d.ts +113 -40
  48. package/dist/harness.d.ts.map +1 -1
  49. package/dist/harness.js +40 -27
  50. package/dist/harness.js.map +1 -1
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +2 -0
  54. package/dist/index.js.map +1 -1
  55. package/dist/operation.d.ts +16 -16
  56. package/dist/readiness.d.ts +86 -7
  57. package/dist/readiness.d.ts.map +1 -1
  58. package/dist/readiness.js +4 -0
  59. package/dist/readiness.js.map +1 -1
  60. package/dist/request-requirements.d.ts +7 -7
  61. package/dist/request-requirements.d.ts.map +1 -1
  62. package/dist/request-requirements.js +2 -1
  63. package/dist/request-requirements.js.map +1 -1
  64. package/dist/task.d.ts +104 -59
  65. package/dist/task.d.ts.map +1 -1
  66. package/dist/task.js +20 -8
  67. package/dist/task.js.map +1 -1
  68. package/dist/telemetry.d.ts +103 -65
  69. package/dist/telemetry.d.ts.map +1 -1
  70. package/dist/telemetry.js +6 -9
  71. package/dist/telemetry.js.map +1 -1
  72. package/dist/workspace.d.ts +1 -1
  73. package/dist/workspace.js +7 -7
  74. package/dist/workspace.js.map +1 -1
  75. package/generated/AgentCapabilityCatalog.schema.json +43 -9
  76. package/generated/ControlHarnessListResponse.schema.json +93 -11
  77. package/generated/ControlHarnessSettingsPatch.schema.json +4 -8
  78. package/generated/ControlRunAgainDraft.schema.json +9 -9
  79. package/generated/ControlRunControlResponse.schema.json +8 -0
  80. package/generated/ControlRunDetail.schema.json +119 -21
  81. package/generated/ControlRunListResponse.schema.json +96 -16
  82. package/generated/ControlRunStartRequest.schema.json +9 -9
  83. package/generated/ControlRunSummary.schema.json +96 -16
  84. package/generated/ControlSettingsSnapshot.schema.json +4 -8
  85. package/generated/ControlSettingsUpdateRequest.schema.json +4 -8
  86. package/generated/ControlThreadDetail.schema.json +64 -0
  87. package/generated/ControlThreadTurnRequest.schema.json +4 -8
  88. package/generated/DecisionRecord.schema.json +10 -1
  89. package/generated/GlobalConfig.schema.json +4 -8
  90. package/generated/HarnessManifest.schema.json +47 -11
  91. package/generated/HarnessStatusDto.schema.json +93 -11
  92. package/generated/McpRunHandleResult.schema.json +72 -1
  93. package/generated/McpRunToolResult.schema.json +69 -0
  94. package/generated/ProjectConfig.schema.json +26 -0
  95. package/generated/RunEvent.schema.json +2 -0
  96. package/generated/RunFailure.schema.json +4 -3
  97. package/generated/RunTelemetry.schema.json +61 -2
  98. package/generated/TaskContract.schema.json +48 -12
  99. package/generated/WorkspaceEnvelope.schema.json +6 -6
  100. package/package.json +2 -2
@@ -260,7 +260,8 @@
260
260
  "type": "string",
261
261
  "enum": [
262
262
  "browser",
263
- "path_deny"
263
+ "path_deny",
264
+ "delegation"
264
265
  ]
265
266
  },
266
267
  "harness_id": {
@@ -284,6 +285,7 @@
284
285
  "manifest_unsupported",
285
286
  "web_policy_off",
286
287
  "access_profile_incompatible",
288
+ "runtime_unavailable",
287
289
  "postdiff_only"
288
290
  ]
289
291
  },
@@ -383,7 +385,7 @@
383
385
  "recovered": {
384
386
  "type": "boolean",
385
387
  "default": false,
386
- "description": "True when a later successful result of the same tool exists in the same attempt."
388
+ "description": "True when a later successful result matches this failed invocation."
387
389
  },
388
390
  "tool_use_id": {
389
391
  "type": [
@@ -780,6 +782,61 @@
780
782
  "default": [],
781
783
  "description": "All selected-lane capability receipts for this run."
782
784
  },
785
+ "delegation": {
786
+ "anyOf": [
787
+ {
788
+ "type": "object",
789
+ "properties": {
790
+ "requested": {
791
+ "type": "boolean",
792
+ "default": false
793
+ },
794
+ "effective": {
795
+ "type": "boolean",
796
+ "default": false
797
+ },
798
+ "used": {
799
+ "type": "boolean",
800
+ "default": false
801
+ },
802
+ "reason": {
803
+ "type": "string",
804
+ "enum": [
805
+ "pending",
806
+ "not_requested",
807
+ "injected_unused",
808
+ "used",
809
+ "runtime_unavailable",
810
+ "manifest_unsupported",
811
+ "access_profile_incompatible",
812
+ "partially_degraded",
813
+ "startup_failed"
814
+ ],
815
+ "default": "not_requested"
816
+ },
817
+ "remediation": {
818
+ "anyOf": [
819
+ {
820
+ "type": "string",
821
+ "minLength": 1
822
+ },
823
+ {
824
+ "type": "null"
825
+ }
826
+ ],
827
+ "default": null
828
+ }
829
+ },
830
+ "additionalProperties": false,
831
+ "description": "Engine-owned Delegate requested/effective/used receipt; surfaces project it without parsing model output."
832
+ },
833
+ {
834
+ "type": "null"
835
+ }
836
+ ],
837
+ "description": "Run-level Delegate receipt aggregated from engine injection and typed tool evidence; null on legacy artifacts that did not record it.",
838
+ "default": null
839
+ },
783
840
  "tool_warnings_total": {
784
841
  "type": "integer",
785
842
  "minimum": 0,
@@ -948,6 +1005,8 @@
948
1005
  "quality_tier",
949
1006
  "expiring_quota_slack",
950
1007
  "all_incremental_cash_unknown",
1008
+ "delegate_effective_first",
1009
+ "explicit_primary",
951
1010
  "declared_order"
952
1011
  ],
953
1012
  "description": "Typed decisive reason the pool ranked the way it did (QA-034)."
@@ -70,6 +70,48 @@
70
70
  "additionalProperties": false,
71
71
  "description": "Canonical run mode for this task."
72
72
  },
73
+ "delegation_requested": {
74
+ "type": "boolean",
75
+ "default": false,
76
+ "description": "Whether the caller requested the Delegate agent strategy."
77
+ },
78
+ "run_lineage": {
79
+ "type": "object",
80
+ "properties": {
81
+ "parent_run_id": {
82
+ "anyOf": [
83
+ {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "description": "Non-empty identifier string."
87
+ },
88
+ {
89
+ "type": "null"
90
+ }
91
+ ],
92
+ "description": "Non-empty identifier string.",
93
+ "default": null
94
+ },
95
+ "delegated_from_run_id": {
96
+ "anyOf": [
97
+ {
98
+ "$ref": "#/definitions/TaskContract/properties/run_lineage/properties/parent_run_id/anyOf/0"
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ],
104
+ "description": "Non-empty identifier string.",
105
+ "default": null
106
+ }
107
+ },
108
+ "additionalProperties": false,
109
+ "default": {
110
+ "parent_run_id": null,
111
+ "delegated_from_run_id": null
112
+ },
113
+ "description": "Server-owned run lineage; delegated_from_run_id is present only for a Claudexor belt child."
114
+ },
73
115
  "user_intent": {
74
116
  "type": "object",
75
117
  "properties": {
@@ -118,9 +160,7 @@
118
160
  "credential_profile_id": {
119
161
  "anyOf": [
120
162
  {
121
- "type": "string",
122
- "minLength": 1,
123
- "description": "Non-empty identifier string."
163
+ "$ref": "#/definitions/TaskContract/properties/run_lineage/properties/parent_run_id/anyOf/0"
124
164
  },
125
165
  {
126
166
  "type": "null"
@@ -151,7 +191,7 @@
151
191
  "type": "string"
152
192
  },
153
193
  "default": [],
154
- "description": "Approval globs — path globs (e.g. `migrations/**`, `**/*.env`) whose changes escalate a run to a human-approval gate before it can be applied. Spec/config-owned and never suppressed by per-run protected-path approvals."
194
+ "description": "Approval globs — path globs (e.g. `migrations/**`, `**/*.env`) whose matching create, modify, delete, or rename changes escalate a run to a human-approval gate before it can be applied. Project-config-owned and never suppressed by per-run protected-path approvals."
155
195
  },
156
196
  "deny_paths": {
157
197
  "type": "array",
@@ -512,14 +552,10 @@
512
552
  "type": "object",
513
553
  "additionalProperties": {
514
554
  "type": "string",
515
- "enum": [
516
- "low",
517
- "medium",
518
- "high",
519
- "xhigh",
520
- "max"
521
- ],
522
- "description": "Cross-harness reasoning-effort level, weakest to strongest; adapters declare the subset they support and a shared normalizer clamps requests onto the nearest supported level."
555
+ "minLength": 1,
556
+ "maxLength": 32,
557
+ "pattern": "^[a-z0-9]+(?:[_-][a-z0-9]+)*$",
558
+ "description": "Cross-harness reasoning-effort level as a lowercase slug (open vocabulary, mirroring the vendor contract); adapters advertise the levels they accept per model, ordered weakest to strongest by the vendor itself, and a shared normalizer passes advertised levels through, clamps inside the vendor order, and refuses levels the advertised ladder has never seen."
523
559
  },
524
560
  "default": {},
525
561
  "description": "Resolved harness-scoped reasoning-effort map for this run (harness id to effort), frozen so an Exact Retry replays the same effort instead of re-resolving current settings."
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "base_ref": {
27
27
  "type": "string",
28
- "description": "Git ref the worktree was created from."
28
+ "description": "Git ref the checkout was created from."
29
29
  },
30
30
  "base_sha": {
31
31
  "type": [
@@ -37,15 +37,15 @@
37
37
  },
38
38
  "worktree_path": {
39
39
  "type": "string",
40
- "description": "Absolute path of the isolated git worktree."
40
+ "description": "Absolute path of the isolated Git checkout."
41
41
  },
42
42
  "branch_name": {
43
43
  "type": "string",
44
- "description": "Branch created for the worktree."
44
+ "description": "Clone-local branch created for the checkout."
45
45
  },
46
46
  "home_dir": {
47
47
  "type": "string",
48
- "description": "Scoped HOME directory for the harness process (kept outside the worktree)."
48
+ "description": "Scoped HOME directory for the harness process (kept outside the checkout)."
49
49
  },
50
50
  "harness_config_dirs": {
51
51
  "type": "object",
@@ -53,7 +53,7 @@
53
53
  "type": "string"
54
54
  },
55
55
  "default": {},
56
- "description": "Scoped per-harness config directories keyed by harness id (kept outside the worktree)."
56
+ "description": "Scoped per-harness config directories keyed by harness id (kept outside the checkout)."
57
57
  },
58
58
  "policy_profile": {
59
59
  "type": "string",
@@ -87,7 +87,7 @@
87
87
  "created_at"
88
88
  ],
89
89
  "additionalProperties": false,
90
- "description": "An isolated execution envelope: a git worktree for files plus scoped env/HOME/harness-config isolation."
90
+ "description": "An isolated execution envelope: a private Git checkout plus scoped env/HOME/harness-config isolation."
91
91
  }
92
92
  },
93
93
  "$schema": "http://json-schema.org/draft-07/schema#"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "license": "MIT",
5
5
  "description": "Single source of truth for all Claudexor data shapes (Zod + generated JSON Schema).",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "zod": "^3.24.1",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@claudexor/util": "3.1.0"
23
+ "@claudexor/util": "3.1.2"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",