@claudexor/schema 3.1.1 → 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 (85) hide show
  1. package/dist/agent-capabilities.d.ts +89 -1
  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 +4 -4
  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/control-operation-responses.d.ts +133 -29
  14. package/dist/control-operation-responses.d.ts.map +1 -1
  15. package/dist/control-operation-responses.js +25 -0
  16. package/dist/control-operation-responses.js.map +1 -1
  17. package/dist/control-run-detail.d.ts +1405 -197
  18. package/dist/control-run-detail.d.ts.map +1 -1
  19. package/dist/control-run-detail.js +6 -0
  20. package/dist/control-run-detail.js.map +1 -1
  21. package/dist/control-run-retry.d.ts +2 -2
  22. package/dist/control.d.ts +351 -79
  23. package/dist/control.d.ts.map +1 -1
  24. package/dist/control.js +23 -28
  25. package/dist/control.js.map +1 -1
  26. package/dist/decision.d.ts +5 -0
  27. package/dist/decision.d.ts.map +1 -1
  28. package/dist/decision.js +7 -3
  29. package/dist/decision.js.map +1 -1
  30. package/dist/delegation.d.ts +73 -0
  31. package/dist/delegation.d.ts.map +1 -0
  32. package/dist/delegation.js +120 -0
  33. package/dist/delegation.js.map +1 -0
  34. package/dist/events.d.ts +4 -4
  35. package/dist/events.d.ts.map +1 -1
  36. package/dist/events.js +3 -0
  37. package/dist/events.js.map +1 -1
  38. package/dist/harness.d.ts +15 -15
  39. package/dist/harness.d.ts.map +1 -1
  40. package/dist/harness.js +10 -14
  41. package/dist/harness.js.map +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +1 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/readiness.d.ts +38 -0
  47. package/dist/readiness.d.ts.map +1 -1
  48. package/dist/readiness.js +4 -0
  49. package/dist/readiness.js.map +1 -1
  50. package/dist/request-requirements.d.ts +7 -7
  51. package/dist/request-requirements.d.ts.map +1 -1
  52. package/dist/request-requirements.js +2 -1
  53. package/dist/request-requirements.js.map +1 -1
  54. package/dist/task.d.ts +42 -0
  55. package/dist/task.d.ts.map +1 -1
  56. package/dist/task.js +11 -0
  57. package/dist/task.js.map +1 -1
  58. package/dist/telemetry.d.ts +87 -49
  59. package/dist/telemetry.d.ts.map +1 -1
  60. package/dist/telemetry.js +6 -9
  61. package/dist/telemetry.js.map +1 -1
  62. package/dist/workspace.d.ts +1 -1
  63. package/dist/workspace.js +7 -7
  64. package/dist/workspace.js.map +1 -1
  65. package/generated/AgentCapabilityCatalog.schema.json +39 -1
  66. package/generated/ControlHarnessListResponse.schema.json +48 -2
  67. package/generated/ControlRunAgainDraft.schema.json +6 -2
  68. package/generated/ControlRunControlResponse.schema.json +8 -0
  69. package/generated/ControlRunDetail.schema.json +116 -14
  70. package/generated/ControlRunListResponse.schema.json +93 -9
  71. package/generated/ControlRunStartRequest.schema.json +6 -2
  72. package/generated/ControlRunSummary.schema.json +93 -9
  73. package/generated/ControlThreadDetail.schema.json +64 -0
  74. package/generated/ControlThreadTurnRequest.schema.json +1 -1
  75. package/generated/DecisionRecord.schema.json +10 -1
  76. package/generated/HarnessManifest.schema.json +2 -2
  77. package/generated/HarnessStatusDto.schema.json +48 -2
  78. package/generated/McpRunHandleResult.schema.json +72 -1
  79. package/generated/McpRunToolResult.schema.json +69 -0
  80. package/generated/RunEvent.schema.json +1 -0
  81. package/generated/RunFailure.schema.json +4 -3
  82. package/generated/RunTelemetry.schema.json +61 -2
  83. package/generated/TaskContract.schema.json +43 -3
  84. package/generated/WorkspaceEnvelope.schema.json +6 -6
  85. package/package.json +2 -2
@@ -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"
@@ -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.1",
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.1"
23
+ "@claudexor/util": "3.1.2"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",