@claudexor/schema 1.0.1 → 2.1.1
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/dist/agent-capabilities.d.ts +102 -30
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +117 -52
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1444 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +371 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +147 -18
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +80 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +829 -135
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +195 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-gc.d.ts +185 -0
- package/dist/control-gc.d.ts.map +1 -0
- package/dist/control-gc.js +81 -0
- package/dist/control-gc.js.map +1 -0
- package/dist/control-operation-responses.d.ts +1298 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +556 -247
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1688 -1334
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +592 -333
- package/dist/control.js.map +1 -1
- package/dist/credential-profile.d.ts +454 -0
- package/dist/credential-profile.d.ts.map +1 -0
- package/dist/credential-profile.js +140 -0
- package/dist/credential-profile.js.map +1 -0
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +41 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +47 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +5 -5
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +775 -237
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +314 -111
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +150 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +117 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +269 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +58 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/readiness.d.ts +596 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +87 -0
- package/dist/readiness.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +29 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +13 -13
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9811 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +475 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +178 -61
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1657 -60
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +144 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +487 -72
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +194 -16
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +89 -51
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +56 -11
- package/dist/thread.js.map +1 -1
- package/dist/tool-ref.d.ts +45 -0
- package/dist/tool-ref.d.ts.map +1 -0
- package/dist/tool-ref.js +45 -0
- package/dist/tool-ref.js.map +1 -0
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +3 -3
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +44 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlCredentialProfileCreateRequest.schema.json +32 -0
- package/generated/ControlCredentialProfileCreateResponse.schema.json +142 -0
- package/generated/ControlCredentialProfileDeleteResponse.schema.json +107 -0
- package/generated/ControlCredentialProfilesResponse.schema.json +155 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlGcReceipt.schema.json +170 -0
- package/generated/ControlGcRequest.schema.json +18 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +198 -14
- package/generated/ControlHarnessModelsResponse.schema.json +19 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +9 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +177 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +539 -0
- package/generated/ControlRunDetail.schema.json +373 -34
- package/generated/ControlRunListResponse.schema.json +968 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +123 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +312 -21
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +128 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +119 -40
- package/generated/ControlSetupJob.schema.json +770 -64
- package/generated/ControlSetupJobCreateRequest.schema.json +16 -13
- package/generated/ControlSetupJobEvent.schema.json +869 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +770 -64
- package/generated/ControlSetupJobSnapshot.schema.json +878 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +36 -6
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadCreateRequest.schema.json +6 -2
- package/generated/ControlThreadDetail.schema.json +64 -12
- package/generated/ControlThreadListResponse.schema.json +36 -6
- package/generated/ControlThreadTurnRequest.schema.json +413 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +12 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/CredentialProfile.schema.json +78 -0
- package/generated/CredentialProfileStatus.schema.json +61 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +238 -55
- package/generated/HarnessEvent.schema.json +259 -11
- package/generated/HarnessManifest.schema.json +96 -14
- package/generated/HarnessModel.schema.json +19 -0
- package/generated/HarnessStatusDto.schema.json +198 -14
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunEvent.schema.json +3 -0
- package/generated/RunTelemetry.schema.json +280 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/Session.schema.json +14 -0
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +224 -30
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +74 -6
- package/generated/ThreadHeadPing.schema.json +40 -0
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +3 -2
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
package/dist/telemetry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB,uEAI3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB;;IAG1B,oCAAoC;;IAEpC,wGAAwG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BzG,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe;;;;;IAUxB,uFAAuF;;;;;;;;;;;;;;;;;EAWlC,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;EAcqD,CAAC;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB,sEAEyD,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,O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Kind, SchemaVersion, } from "./primitives.js";
|
|
3
|
-
import { ToolKind } from "./
|
|
3
|
+
import { ToolKind } from "./tool-ref.js";
|
|
4
|
+
import { AuthMode } from "./budget.js";
|
|
5
|
+
import { AuthPreference } from "./primitives.js";
|
|
6
|
+
import { AuthRouteReason, AuthSourceKind } from "./auth.js";
|
|
7
|
+
import { RequestRequirementResolution } from "./request-requirements.js";
|
|
4
8
|
/**
|
|
5
9
|
* Run telemetry artifact (`final/telemetry.yaml`).
|
|
6
10
|
*
|
|
@@ -20,22 +24,48 @@ export const WebEvidenceRecord = z
|
|
|
20
24
|
/** Mode actually executed by the harness route (e.g. claude `cached` upgrades to `live`, disclosed). */
|
|
21
25
|
effective_mode: ExternalContextPolicy.default("auto").describe("Policy actually executed by the harness route (disclosed upgrades, e.g. cached to live)."),
|
|
22
26
|
attempted: z.boolean().default(false).describe("Whether any web activity was attempted."),
|
|
23
|
-
satisfied: z
|
|
27
|
+
satisfied: z
|
|
28
|
+
.boolean()
|
|
29
|
+
.default(false)
|
|
30
|
+
.describe("Whether the web-evidence requirement was satisfied."),
|
|
24
31
|
status: WebEvidenceStatus.default("none"),
|
|
25
|
-
tool: z
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
tool: z
|
|
33
|
+
.string()
|
|
34
|
+
.nullable()
|
|
35
|
+
.default(null)
|
|
36
|
+
.describe("Web tool that produced the evidence, when any."),
|
|
37
|
+
target: z
|
|
38
|
+
.string()
|
|
39
|
+
.nullable()
|
|
40
|
+
.default(null)
|
|
41
|
+
.describe("Redacted target (query/url) of the web activity, when any."),
|
|
42
|
+
error_summary: z
|
|
43
|
+
.string()
|
|
44
|
+
.nullable()
|
|
45
|
+
.default(null)
|
|
46
|
+
.describe("Redacted error detail when web activity failed."),
|
|
28
47
|
})
|
|
29
48
|
.describe("Typed web-evidence record computed by the orchestrator; surfaces project it and never re-derive evidence from raw events.");
|
|
30
49
|
export const ToolErrorRecord = z
|
|
31
50
|
.object({
|
|
32
51
|
tool: z.string().describe("Native tool name that errored."),
|
|
33
52
|
kind: ToolKind.default("other"),
|
|
34
|
-
target: z
|
|
53
|
+
target: z
|
|
54
|
+
.string()
|
|
55
|
+
.nullable()
|
|
56
|
+
.default(null)
|
|
57
|
+
.describe("Redacted target of the tool use, when known."),
|
|
35
58
|
summary: z.string().describe("Redacted error summary."),
|
|
36
59
|
/** True when a later successful result of the same tool exists in the same attempt. */
|
|
37
|
-
recovered: z
|
|
38
|
-
|
|
60
|
+
recovered: z
|
|
61
|
+
.boolean()
|
|
62
|
+
.default(false)
|
|
63
|
+
.describe("True when a later successful result of the same tool exists in the same attempt."),
|
|
64
|
+
tool_use_id: z
|
|
65
|
+
.string()
|
|
66
|
+
.nullable()
|
|
67
|
+
.default(null)
|
|
68
|
+
.describe("Tool use id correlating the error to its call, when known."),
|
|
39
69
|
})
|
|
40
70
|
.describe("One tool error observed during an attempt.");
|
|
41
71
|
export const TransientFailureRecord = z
|
|
@@ -44,7 +74,13 @@ export const TransientFailureRecord = z
|
|
|
44
74
|
.enum(["network", "stream_disconnect", "service_unavailable", "timeout", "unknown"])
|
|
45
75
|
.default("unknown")
|
|
46
76
|
.describe("Kind of transient failure."),
|
|
47
|
-
retry_delay_ms: z
|
|
77
|
+
retry_delay_ms: z
|
|
78
|
+
.number()
|
|
79
|
+
.int()
|
|
80
|
+
.nonnegative()
|
|
81
|
+
.nullable()
|
|
82
|
+
.default(null)
|
|
83
|
+
.describe("Suggested retry delay in milliseconds, when reported."),
|
|
48
84
|
})
|
|
49
85
|
.describe("An adapter-declared transient failure that informed bounded retry policy.");
|
|
50
86
|
export const AttemptOutcomeStatus = z
|
|
@@ -56,14 +92,62 @@ export const AttemptOutcomeStatus = z
|
|
|
56
92
|
*/
|
|
57
93
|
export const AttemptOutcome = z
|
|
58
94
|
.object({
|
|
59
|
-
deliverable_present: z
|
|
60
|
-
|
|
95
|
+
deliverable_present: z
|
|
96
|
+
.boolean()
|
|
97
|
+
.default(false)
|
|
98
|
+
.describe("Whether the attempt produced the deliverable the intent asked for."),
|
|
99
|
+
gates_passed: z
|
|
100
|
+
.boolean()
|
|
101
|
+
.nullable()
|
|
102
|
+
.default(null)
|
|
103
|
+
.describe("Whether deterministic gates passed; null when no gates ran."),
|
|
61
104
|
harness_errored: z.boolean().default(false).describe("Whether the harness itself errored."),
|
|
62
|
-
web_required_unsatisfied: z
|
|
63
|
-
|
|
105
|
+
web_required_unsatisfied: z
|
|
106
|
+
.boolean()
|
|
107
|
+
.default(false)
|
|
108
|
+
.describe("True when required web evidence was not satisfied."),
|
|
109
|
+
tool_warnings_count: z
|
|
110
|
+
.number()
|
|
111
|
+
.int()
|
|
112
|
+
.nonnegative()
|
|
113
|
+
.default(0)
|
|
114
|
+
.describe("Count of tool warnings in the attempt."),
|
|
64
115
|
status: AttemptOutcomeStatus.default("success"),
|
|
65
116
|
})
|
|
66
117
|
.describe("Contract/outcome truth for one attempt; tool errors are tracked separately from deliverable production.");
|
|
118
|
+
/**
|
|
119
|
+
* Typed conformance receipt for a run started with an output schema, persisted
|
|
120
|
+
* as final/structured_output.yaml by the ONE engine validator. Surfaces project
|
|
121
|
+
* it (summary.outputConformance) and never re-validate the answer themselves.
|
|
122
|
+
*/
|
|
123
|
+
export const StructuredOutputConformance = z
|
|
124
|
+
.object({
|
|
125
|
+
schema_version: SchemaVersion,
|
|
126
|
+
status: z
|
|
127
|
+
.enum(["passed", "failed"])
|
|
128
|
+
.describe("Whether the final answer conformed to the run's output schema."),
|
|
129
|
+
reason: z
|
|
130
|
+
.string()
|
|
131
|
+
.nullable()
|
|
132
|
+
.default(null)
|
|
133
|
+
.describe("Why conformance failed (missing/unparsable answer, validator errors); null on pass."),
|
|
134
|
+
/** Present when the answer parsed as JSON at all (even non-conformant JSON
|
|
135
|
+
* is materialized to help the embedder debug and retry). */
|
|
136
|
+
output_path: z
|
|
137
|
+
.string()
|
|
138
|
+
.nullable()
|
|
139
|
+
.default(null)
|
|
140
|
+
.describe("Artifact path of the materialized structured output (final/output.json); null when the answer never parsed."),
|
|
141
|
+
generated_at: IsoTimestamp.describe("When the receipt was generated."),
|
|
142
|
+
})
|
|
143
|
+
.describe("Structured-output conformance receipt (final/structured_output.yaml): the single engine validator's verdict on the final answer.");
|
|
144
|
+
export const TokenUsage = z
|
|
145
|
+
.object({
|
|
146
|
+
input_tokens: z.number().int().nonnegative().nullable().default(null),
|
|
147
|
+
output_tokens: z.number().int().nonnegative().nullable().default(null),
|
|
148
|
+
cached_input_tokens: z.number().int().nonnegative().nullable().default(null),
|
|
149
|
+
})
|
|
150
|
+
.describe("Token usage summed from harness usage events; money is tracked separately in the budget ledger, not here. Each field is null until a harness reports it (cursor reports cost only; raw-api has no cached), so unreported never reads as 0. Do NOT sum into a grand total: codex cached is a subset of input while claude cached is disjoint from input.");
|
|
67
151
|
export const AttemptTelemetryRecord = z
|
|
68
152
|
.object({
|
|
69
153
|
attempt_id: Id.describe("Attempt id."),
|
|
@@ -78,14 +162,60 @@ export const AttemptTelemetryRecord = z
|
|
|
78
162
|
.nullable()
|
|
79
163
|
.default(null)
|
|
80
164
|
.describe("Model the harness stream actually reported; null when never disclosed (rendered as unverified, never guessed)."),
|
|
165
|
+
/**
|
|
166
|
+
* Auth route the attempt ACTUALLY ran under (route evidence, like
|
|
167
|
+
* observed_model): adapters disclose their chosen route as a typed
|
|
168
|
+
* `auth_route` payload on the started event, sourced from the credential
|
|
169
|
+
* material itself (codex: the seeded auth.json's own auth_mode; claude:
|
|
170
|
+
* the selected credentials/OAuth/api-key route). Null when never
|
|
171
|
+
* disclosed — subscription-vs-API quota attribution must treat that as
|
|
172
|
+
* unknown, never guess from manifests.
|
|
173
|
+
*/
|
|
174
|
+
auth_mode: AuthMode.nullable()
|
|
175
|
+
.default(null)
|
|
176
|
+
.describe("Auth route the attempt actually ran under (local_session subscription vs api_key), disclosed by the adapter's typed started payload; null when never disclosed (treated as unknown, never guessed)."),
|
|
177
|
+
/** Concrete credential source the attempt disclosed alongside its route
|
|
178
|
+
* (route evidence; null = undisclosed, never guessed). */
|
|
179
|
+
auth_source: AuthSourceKind.nullable()
|
|
180
|
+
.default(null)
|
|
181
|
+
.describe("Concrete credential source the attempt disclosed (native_session/api_key_env/...); null when never disclosed."),
|
|
182
|
+
/** Credential profile the attempt ACTUALLY ran under (INV-135), from the
|
|
183
|
+
* adapter's per-event stamp; rotation makes this differ from the run's
|
|
184
|
+
* requested id. Null = engine-default credentials or never disclosed. */
|
|
185
|
+
profile_id: z
|
|
186
|
+
.string()
|
|
187
|
+
.nullable()
|
|
188
|
+
.default(null)
|
|
189
|
+
.describe("Credential profile the attempt actually ran under (adapter-stamped); null = engine default or undisclosed."),
|
|
190
|
+
/** Model hint the engine actually SENT this attempt (requested side of the
|
|
191
|
+
* model x route truth; observed_model is the disclosed side). */
|
|
192
|
+
requested_model: z
|
|
193
|
+
.string()
|
|
194
|
+
.nullable()
|
|
195
|
+
.default(null)
|
|
196
|
+
.describe("Model hint the engine sent the attempt; null when the route ran on its default."),
|
|
197
|
+
request_requirements: z
|
|
198
|
+
.array(RequestRequirementResolution)
|
|
199
|
+
.default([])
|
|
200
|
+
.describe("Per-lane requested/effective capability receipts computed at preflight; never inferred by surfaces."),
|
|
81
201
|
web: WebEvidenceRecord,
|
|
82
202
|
/** Bounded by the writer (most recent first when truncated; `tool_errors_total` keeps the true count). */
|
|
83
203
|
tool_errors: z
|
|
84
204
|
.array(ToolErrorRecord)
|
|
85
205
|
.default([])
|
|
86
206
|
.describe("Tool errors, bounded by the writer (most recent first when truncated; tool_errors_total keeps the true count)."),
|
|
87
|
-
tool_errors_total: z
|
|
88
|
-
|
|
207
|
+
tool_errors_total: z
|
|
208
|
+
.number()
|
|
209
|
+
.int()
|
|
210
|
+
.nonnegative()
|
|
211
|
+
.default(0)
|
|
212
|
+
.describe("True total count of tool errors."),
|
|
213
|
+
unrecovered_tool_errors: z
|
|
214
|
+
.number()
|
|
215
|
+
.int()
|
|
216
|
+
.nonnegative()
|
|
217
|
+
.default(0)
|
|
218
|
+
.describe("Tool errors with no later successful recovery."),
|
|
89
219
|
/** tool_result events that arrived WITHOUT a status field (never treated as ok). */
|
|
90
220
|
statusless_tool_results: z
|
|
91
221
|
.number()
|
|
@@ -107,6 +237,8 @@ export const AttemptTelemetryRecord = z
|
|
|
107
237
|
.describe("Adapter-declared transient failures that informed bounded retry policy."),
|
|
108
238
|
/** Contract/outcome projection for this attempt. */
|
|
109
239
|
outcome: AttemptOutcome.default({}),
|
|
240
|
+
/** Token usage summed across this attempt's usage events. */
|
|
241
|
+
usage: TokenUsage.default({}),
|
|
110
242
|
})
|
|
111
243
|
.describe("Telemetry for one attempt: route evidence, web evidence, tool errors, dropped events, and outcome.");
|
|
112
244
|
export const RunTelemetry = z
|
|
@@ -126,7 +258,14 @@ export const RunTelemetry = z
|
|
|
126
258
|
.describe("Attempt whose output became the final answer/patch; null when no attempt succeeded."),
|
|
127
259
|
/** Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence. */
|
|
128
260
|
web: WebEvidenceRecord.describe("Run-level web evidence: the final attempt's evidence, else the most severe attempt evidence."),
|
|
129
|
-
attempts: z
|
|
261
|
+
attempts: z
|
|
262
|
+
.array(AttemptTelemetryRecord)
|
|
263
|
+
.default([])
|
|
264
|
+
.describe("Per-attempt telemetry records."),
|
|
265
|
+
request_requirements: z
|
|
266
|
+
.array(RequestRequirementResolution)
|
|
267
|
+
.default([])
|
|
268
|
+
.describe("All selected-lane capability receipts for this run."),
|
|
130
269
|
/** Sum of attempt outcome warnings; surfaces render this separately from terminal state. */
|
|
131
270
|
tool_warnings_total: z
|
|
132
271
|
.number()
|
|
@@ -134,6 +273,45 @@ export const RunTelemetry = z
|
|
|
134
273
|
.nonnegative()
|
|
135
274
|
.default(0)
|
|
136
275
|
.describe("Sum of attempt tool warnings; rendered separately from terminal state."),
|
|
276
|
+
/** Token usage summed across every attempt (candidates + synthesis), the
|
|
277
|
+
* same accounting scope as spendUsd. Each field null until some attempt
|
|
278
|
+
* reports it. Not a grand total (see TokenUsage). */
|
|
279
|
+
usage_totals: TokenUsage.default({}),
|
|
280
|
+
/** The run's auth ROUTE RECEIPT (INV-061 disclosure): requested preference,
|
|
281
|
+
* the effective route/source the deciding attempt disclosed, and a
|
|
282
|
+
* deterministic reason — computed ONCE here; summary/CLI project it
|
|
283
|
+
* verbatim. Null only on legacy artifacts written before this field. */
|
|
284
|
+
auth_route: z
|
|
285
|
+
.object({
|
|
286
|
+
requested: AuthPreference,
|
|
287
|
+
effective: AuthMode.nullable().default(null),
|
|
288
|
+
source: AuthSourceKind.nullable().default(null),
|
|
289
|
+
reason: AuthRouteReason,
|
|
290
|
+
harness_id: z.string().nullable().default(null),
|
|
291
|
+
attempt_id: z.string().nullable().default(null),
|
|
292
|
+
/** Credential profile the deciding attempt ran under (INV-135);
|
|
293
|
+
* null = engine-default credentials. */
|
|
294
|
+
profile_id: z
|
|
295
|
+
.string()
|
|
296
|
+
.nullable()
|
|
297
|
+
.default(null)
|
|
298
|
+
.describe("Credential profile the deciding attempt ran under; null = engine-default credentials."),
|
|
299
|
+
/** Typed model mismatch on the deciding attempt (Quiz-2a): the engine
|
|
300
|
+
* SENT requested but the stream DISCLOSED observed. Null when they
|
|
301
|
+
* match or either side is unknown — never inferred. Distinct from the
|
|
302
|
+
* reviewer-panel same_model_fallback route proof. */
|
|
303
|
+
model_mismatch: z
|
|
304
|
+
.object({
|
|
305
|
+
requested: z.string(),
|
|
306
|
+
observed: z.string(),
|
|
307
|
+
})
|
|
308
|
+
.nullable()
|
|
309
|
+
.default(null)
|
|
310
|
+
.describe("Requested-vs-observed model mismatch on the deciding attempt; null when they match or either side is unknown."),
|
|
311
|
+
})
|
|
312
|
+
.nullable()
|
|
313
|
+
.default(null)
|
|
314
|
+
.describe("Auth route receipt: requested preference, disclosed effective route/source, deterministic reason, and the disclosing attempt; surfaces project it verbatim."),
|
|
137
315
|
generated_at: IsoTimestamp.describe("When the telemetry artifact was generated."),
|
|
138
316
|
})
|
|
139
317
|
.describe("Run telemetry artifact (final/telemetry.yaml), the single computed source of web/tool evidence; surfaces project it and never re-derive evidence from raw events.");
|
package/dist/telemetry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,EAAE,EACF,YAAY,EACZ,QAAQ,EACR,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,EAAE,EACF,YAAY,EACZ,QAAQ,EACR,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAEzE;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;KAChE,QAAQ,CACP,4IAA4I,CAC7I,CAAC;AAGJ,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAA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zB,SAAS,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC5C,MAAM,EAAE,cAAc,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/C,MAAM,EAAE,eAAe;QACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/C;gDACwC;QACxC,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CACP,uFAAuF,CACxF;QACH;;;6DAGqD;QACrD,cAAc,EAAE,CAAC;aACd,MAAM,CAAC;YACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;YACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;SACrB,CAAC;aACD,QAAQ,EAAE;aACV,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CACP,+GAA+G,CAChH;KACJ,CAAC;SACD,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACP,6JAA6J,CAC9J;IACH,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CAClF,CAAC;KACD,QAAQ,CACP,mKAAmK,CACpK,CAAC"}
|
package/dist/thread.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import { z } from "zod";
|
|
|
10
10
|
* serializes a `SessionReboundLineage` and emits a typed `session.rebound`
|
|
11
11
|
* event (honest, lossy disclosure — never silent).
|
|
12
12
|
*/
|
|
13
|
-
/** A thread is open
|
|
14
|
-
* state — it is a live
|
|
15
|
-
export declare const ThreadState: z.ZodEnum<["active", "closed"]>;
|
|
13
|
+
/** A thread is open, archived, in 30-day trash, or terminally purged.
|
|
14
|
+
* "Blocked" is not a thread state — it is a live run projection. */
|
|
15
|
+
export declare const ThreadState: z.ZodEnum<["active", "closed", "trashed", "purged"]>;
|
|
16
16
|
export type ThreadState = z.infer<typeof ThreadState>;
|
|
17
17
|
export declare const SessionState: z.ZodEnum<["live", "stale", "rebound"]>;
|
|
18
18
|
export type SessionState = z.infer<typeof SessionState>;
|
|
@@ -38,14 +38,17 @@ export declare const ThreadWorkspace: z.ZodObject<{
|
|
|
38
38
|
worktree_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
/** Snapshot SHA the isolated worktree (or last apply) is based on. */
|
|
40
40
|
base_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
delivered_through_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
41
42
|
}, "strip", z.ZodTypeAny, {
|
|
42
43
|
mode: "in_place" | "isolated";
|
|
43
44
|
worktree_path: string | null;
|
|
44
45
|
base_sha: string | null;
|
|
46
|
+
delivered_through_run_id: string | null;
|
|
45
47
|
}, {
|
|
46
48
|
mode?: "in_place" | "isolated" | undefined;
|
|
47
49
|
worktree_path?: string | null | undefined;
|
|
48
50
|
base_sha?: string | null | undefined;
|
|
51
|
+
delivered_through_run_id?: string | null | undefined;
|
|
49
52
|
}>;
|
|
50
53
|
export type ThreadWorkspace = z.infer<typeof ThreadWorkspace>;
|
|
51
54
|
/** The Claudexor-owned conversation. SSOT for lineage; vendor sessions are caches. */
|
|
@@ -70,6 +73,9 @@ export declare const Thread: z.ZodObject<{
|
|
|
70
73
|
mode: z.ZodDefault<z.ZodEnum<["ask", "plan", "audit", "agent", "orchestrate"]>>;
|
|
71
74
|
/** Per-thread auth preference override (subscription/api_key/auto). */
|
|
72
75
|
auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
|
|
76
|
+
/** Sticky credential profile for the thread (INV-135): turns inherit it
|
|
77
|
+
* unless they carry an explicit per-turn profile; null = engine default. */
|
|
78
|
+
credential_profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
73
79
|
/** Sticky orchestrate/primary harness for the thread (re-routable). A bias /
|
|
74
80
|
* ordering hint, NOT a privileged role — orderPool just pins it first. */
|
|
75
81
|
primary_harness: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -84,26 +90,40 @@ export declare const Thread: z.ZodObject<{
|
|
|
84
90
|
worktree_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
85
91
|
/** Snapshot SHA the isolated worktree (or last apply) is based on. */
|
|
86
92
|
base_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
delivered_through_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
87
94
|
}, "strip", z.ZodTypeAny, {
|
|
88
95
|
mode: "in_place" | "isolated";
|
|
89
96
|
worktree_path: string | null;
|
|
90
97
|
base_sha: string | null;
|
|
98
|
+
delivered_through_run_id: string | null;
|
|
91
99
|
}, {
|
|
92
100
|
mode?: "in_place" | "isolated" | undefined;
|
|
93
101
|
worktree_path?: string | null | undefined;
|
|
94
102
|
base_sha?: string | null | undefined;
|
|
103
|
+
delivered_through_run_id?: string | null | undefined;
|
|
95
104
|
}>>;
|
|
96
105
|
/** Ordered run lineage (each run is a turn move). */
|
|
97
106
|
run_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
98
107
|
head_run_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
state: z.ZodDefault<z.ZodEnum<["active", "closed"]>>;
|
|
108
|
+
state: z.ZodDefault<z.ZodEnum<["active", "closed", "trashed", "purged"]>>;
|
|
109
|
+
trashed_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
purge_after: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
pre_trash_state: z.ZodDefault<z.ZodNullable<z.ZodEnum<["active", "closed"]>>>;
|
|
100
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
state: "active" | "closed" | "trashed" | "purged";
|
|
114
|
+
created_at: string;
|
|
115
|
+
workspace: {
|
|
116
|
+
mode: "in_place" | "isolated";
|
|
117
|
+
worktree_path: string | null;
|
|
118
|
+
base_sha: string | null;
|
|
119
|
+
delivered_through_run_id: string | null;
|
|
120
|
+
};
|
|
121
|
+
mode: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
122
|
+
schema_version: 2;
|
|
101
123
|
id: string;
|
|
102
124
|
auth_preference: "auto" | "subscription" | "api_key";
|
|
125
|
+
credential_profile_id: string | null;
|
|
103
126
|
title: string | null;
|
|
104
|
-
mode: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
105
|
-
schema_version: 2;
|
|
106
|
-
created_at: string;
|
|
107
127
|
updated_at: string;
|
|
108
128
|
repo: {
|
|
109
129
|
root: string;
|
|
@@ -111,36 +131,38 @@ export declare const Thread: z.ZodObject<{
|
|
|
111
131
|
} | null;
|
|
112
132
|
primary_harness: string | null;
|
|
113
133
|
eligible_harnesses: string[];
|
|
114
|
-
workspace: {
|
|
115
|
-
mode: "in_place" | "isolated";
|
|
116
|
-
worktree_path: string | null;
|
|
117
|
-
base_sha: string | null;
|
|
118
|
-
};
|
|
119
134
|
run_ids: string[];
|
|
120
135
|
head_run_id: string | null;
|
|
121
|
-
|
|
136
|
+
trashed_at: string | null;
|
|
137
|
+
purge_after: string | null;
|
|
138
|
+
pre_trash_state: "active" | "closed" | null;
|
|
122
139
|
}, {
|
|
123
|
-
id: string;
|
|
124
|
-
schema_version: 2;
|
|
125
140
|
created_at: string;
|
|
141
|
+
schema_version: 2;
|
|
142
|
+
id: string;
|
|
126
143
|
updated_at: string;
|
|
144
|
+
state?: "active" | "closed" | "trashed" | "purged" | undefined;
|
|
145
|
+
workspace?: {
|
|
146
|
+
mode?: "in_place" | "isolated" | undefined;
|
|
147
|
+
worktree_path?: string | null | undefined;
|
|
148
|
+
base_sha?: string | null | undefined;
|
|
149
|
+
delivered_through_run_id?: string | null | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
127
152
|
auth_preference?: "auto" | "subscription" | "api_key" | undefined;
|
|
153
|
+
credential_profile_id?: string | null | undefined;
|
|
128
154
|
title?: string | null | undefined;
|
|
129
|
-
mode?: "ask" | "plan" | "audit" | "agent" | "orchestrate" | undefined;
|
|
130
155
|
repo?: {
|
|
131
156
|
root: string;
|
|
132
157
|
base_ref: string;
|
|
133
158
|
} | null | undefined;
|
|
134
159
|
primary_harness?: string | null | undefined;
|
|
135
160
|
eligible_harnesses?: string[] | undefined;
|
|
136
|
-
workspace?: {
|
|
137
|
-
mode?: "in_place" | "isolated" | undefined;
|
|
138
|
-
worktree_path?: string | null | undefined;
|
|
139
|
-
base_sha?: string | null | undefined;
|
|
140
|
-
} | undefined;
|
|
141
161
|
run_ids?: string[] | undefined;
|
|
142
162
|
head_run_id?: string | null | undefined;
|
|
143
|
-
|
|
163
|
+
trashed_at?: string | null | undefined;
|
|
164
|
+
purge_after?: string | null | undefined;
|
|
165
|
+
pre_trash_state?: "active" | "closed" | null | undefined;
|
|
144
166
|
}>;
|
|
145
167
|
export type Thread = z.infer<typeof Thread>;
|
|
146
168
|
/** A re-hostable pointer to one harness's native CLI session for a thread. */
|
|
@@ -151,27 +173,33 @@ export declare const Session: z.ZodObject<{
|
|
|
151
173
|
/** The vendor CLI session id (codex thread id / claude session uuid / ...). */
|
|
152
174
|
native_session_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
153
175
|
resume_kind: z.ZodDefault<z.ZodEnum<["resume_by_id", "none"]>>;
|
|
176
|
+
/** Credential profile the vendor session was created under (INV-135).
|
|
177
|
+
* Resume must never cross profiles: a session recorded under profile A is
|
|
178
|
+
* ineligible for a turn running as profile B (or as the null default). */
|
|
179
|
+
profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
154
180
|
last_observed_model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
155
181
|
state: z.ZodDefault<z.ZodEnum<["live", "stale", "rebound"]>>;
|
|
156
182
|
created_at: z.ZodString;
|
|
157
183
|
updated_at: z.ZodString;
|
|
158
184
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
|
|
185
|
+
state: "live" | "stale" | "rebound";
|
|
186
|
+
profile_id: string | null;
|
|
160
187
|
harness_id: string;
|
|
161
188
|
created_at: string;
|
|
189
|
+
id: string;
|
|
162
190
|
updated_at: string;
|
|
163
|
-
state: "live" | "stale" | "rebound";
|
|
164
191
|
thread_id: string;
|
|
165
192
|
native_session_id: string | null;
|
|
166
193
|
resume_kind: "none" | "resume_by_id";
|
|
167
194
|
last_observed_model: string | null;
|
|
168
195
|
}, {
|
|
169
|
-
id: string;
|
|
170
196
|
harness_id: string;
|
|
171
197
|
created_at: string;
|
|
198
|
+
id: string;
|
|
172
199
|
updated_at: string;
|
|
173
200
|
thread_id: string;
|
|
174
201
|
state?: "live" | "stale" | "rebound" | undefined;
|
|
202
|
+
profile_id?: string | null | undefined;
|
|
175
203
|
native_session_id?: string | null | undefined;
|
|
176
204
|
resume_kind?: "none" | "resume_by_id" | undefined;
|
|
177
205
|
last_observed_model?: string | null | undefined;
|
|
@@ -227,23 +255,29 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
227
255
|
prompt: z.ZodDefault<z.ZodString>;
|
|
228
256
|
/** Files/images the user attached to this turn (resolved scoped paths). */
|
|
229
257
|
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
230
|
-
|
|
231
|
-
kind: z.
|
|
232
|
-
mime: z.
|
|
233
|
-
name: z.
|
|
258
|
+
resource_id: z.ZodString;
|
|
259
|
+
kind: z.ZodEnum<["image", "file"]>;
|
|
260
|
+
mime: z.ZodString;
|
|
261
|
+
name: z.ZodString;
|
|
262
|
+
sha256: z.ZodString;
|
|
263
|
+
size_bytes: z.ZodNumber;
|
|
234
264
|
path: z.ZodString;
|
|
235
|
-
}, "
|
|
265
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
266
|
path: string;
|
|
237
|
-
id: string;
|
|
238
|
-
kind: "image" | "file";
|
|
239
|
-
mime: string;
|
|
240
267
|
name: string;
|
|
268
|
+
kind: "file" | "image";
|
|
269
|
+
resource_id: string;
|
|
270
|
+
mime: string;
|
|
271
|
+
sha256: string;
|
|
272
|
+
size_bytes: number;
|
|
241
273
|
}, {
|
|
242
274
|
path: string;
|
|
243
|
-
|
|
244
|
-
kind
|
|
245
|
-
|
|
246
|
-
|
|
275
|
+
name: string;
|
|
276
|
+
kind: "file" | "image";
|
|
277
|
+
resource_id: string;
|
|
278
|
+
mime: string;
|
|
279
|
+
sha256: string;
|
|
280
|
+
size_bytes: number;
|
|
247
281
|
}>, "many">>;
|
|
248
282
|
/** Why this turn has no run (enqueue/preflight refusal); null once a run binds. */
|
|
249
283
|
enqueue_error: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -270,17 +304,19 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
270
304
|
}>>>;
|
|
271
305
|
created_at: z.ZodString;
|
|
272
306
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
|
|
307
|
+
created_at: string;
|
|
274
308
|
kind: "initial" | "followup" | "decision";
|
|
309
|
+
id: string;
|
|
275
310
|
prompt: string;
|
|
276
311
|
attachments: {
|
|
277
312
|
path: string;
|
|
278
|
-
id: string;
|
|
279
|
-
kind: "image" | "file";
|
|
280
|
-
mime: string;
|
|
281
313
|
name: string;
|
|
314
|
+
kind: "file" | "image";
|
|
315
|
+
resource_id: string;
|
|
316
|
+
mime: string;
|
|
317
|
+
sha256: string;
|
|
318
|
+
size_bytes: number;
|
|
282
319
|
}[];
|
|
283
|
-
created_at: string;
|
|
284
320
|
thread_id: string;
|
|
285
321
|
run_id: string | null;
|
|
286
322
|
parent_run_id: string | null;
|
|
@@ -292,17 +328,19 @@ export declare const ThreadTurn: z.ZodObject<{
|
|
|
292
328
|
failed_at: string;
|
|
293
329
|
} | null;
|
|
294
330
|
}, {
|
|
295
|
-
id: string;
|
|
296
331
|
created_at: string;
|
|
332
|
+
id: string;
|
|
297
333
|
thread_id: string;
|
|
298
334
|
kind?: "initial" | "followup" | "decision" | undefined;
|
|
299
335
|
prompt?: string | undefined;
|
|
300
336
|
attachments?: {
|
|
301
337
|
path: string;
|
|
302
|
-
|
|
303
|
-
kind
|
|
304
|
-
|
|
305
|
-
|
|
338
|
+
name: string;
|
|
339
|
+
kind: "file" | "image";
|
|
340
|
+
resource_id: string;
|
|
341
|
+
mime: string;
|
|
342
|
+
sha256: string;
|
|
343
|
+
size_bytes: number;
|
|
306
344
|
}[] | undefined;
|
|
307
345
|
run_id?: string | null | undefined;
|
|
308
346
|
parent_run_id?: string | null | undefined;
|
|
@@ -331,18 +369,18 @@ export declare const SessionReboundLineage: z.ZodObject<{
|
|
|
331
369
|
reason: z.ZodDefault<z.ZodEnum<["quota_exhausted", "money_exhausted", "subscription_exhausted", "rate_limited", "harness_error", "stall", "web_evidence_unsatisfied", "fallback_model", "not_portable", "auth_unavailable", "readiness_preferred", "manual"]>>;
|
|
332
370
|
}, "strip", z.ZodTypeAny, {
|
|
333
371
|
harness_id: string;
|
|
372
|
+
reason: "quota_exhausted" | "money_exhausted" | "subscription_exhausted" | "rate_limited" | "harness_error" | "stall" | "web_evidence_unsatisfied" | "fallback_model" | "not_portable" | "auth_unavailable" | "readiness_preferred" | "manual";
|
|
373
|
+
summary: string;
|
|
334
374
|
thread_id: string;
|
|
335
375
|
from_native_session_id: string | null;
|
|
336
376
|
to_session_id: string | null;
|
|
337
|
-
summary: string;
|
|
338
|
-
reason: "quota_exhausted" | "money_exhausted" | "subscription_exhausted" | "rate_limited" | "harness_error" | "stall" | "web_evidence_unsatisfied" | "fallback_model" | "not_portable" | "auth_unavailable" | "readiness_preferred" | "manual";
|
|
339
377
|
}, {
|
|
340
378
|
harness_id: string;
|
|
341
379
|
thread_id: string;
|
|
380
|
+
reason?: "quota_exhausted" | "money_exhausted" | "subscription_exhausted" | "rate_limited" | "harness_error" | "stall" | "web_evidence_unsatisfied" | "fallback_model" | "not_portable" | "auth_unavailable" | "readiness_preferred" | "manual" | undefined;
|
|
381
|
+
summary?: string | undefined;
|
|
342
382
|
from_native_session_id?: string | null | undefined;
|
|
343
383
|
to_session_id?: string | null | undefined;
|
|
344
|
-
summary?: string | undefined;
|
|
345
|
-
reason?: "quota_exhausted" | "money_exhausted" | "subscription_exhausted" | "rate_limited" | "harness_error" | "stall" | "web_evidence_unsatisfied" | "fallback_model" | "not_portable" | "auth_unavailable" | "readiness_preferred" | "manual" | undefined;
|
|
346
384
|
}>;
|
|
347
385
|
export type SessionReboundLineage = z.infer<typeof SessionReboundLineage>;
|
|
348
386
|
//# sourceMappingURL=thread.d.ts.map
|
package/dist/thread.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;;;;;;;;;GAUG;AAEH;
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../src/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;;;;;;;;;GAUG;AAEH;oEACoE;AACpE,eAAO,MAAM,WAAW,sDAE0E,CAAC;AACnG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,yCAItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;2CAE2C;AAC3C,eAAO,MAAM,iBAAiB,qCAI3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,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