@claudexor/schema 3.10.4 → 3.11.0
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 +24 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +5 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/attempt-execution.d.ts +112 -0
- package/dist/attempt-execution.d.ts.map +1 -0
- package/dist/attempt-execution.js +15 -0
- package/dist/attempt-execution.js.map +1 -0
- package/dist/budget.d.ts +76 -0
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +12 -0
- package/dist/budget.js.map +1 -1
- package/dist/control-harness-list.d.ts +18 -0
- package/dist/control-harness-list.d.ts.map +1 -1
- package/dist/control-harness-models.d.ts +1042 -0
- package/dist/control-harness-models.d.ts.map +1 -0
- package/dist/control-harness-models.js +47 -0
- package/dist/control-harness-models.js.map +1 -0
- package/dist/control-operation-responses.d.ts +73 -21
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +6 -0
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +270 -85
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +12 -1
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-execution.d.ts +6 -0
- package/dist/control-run-execution.d.ts.map +1 -1
- package/dist/control-run-execution.js +6 -0
- package/dist/control-run-execution.js.map +1 -1
- package/dist/control-thread-apply.d.ts +12 -0
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control.d.ts +181 -146
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +25 -33
- package/dist/control.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +36 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/decision.d.ts +16 -8
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +5 -0
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +8 -0
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +1 -0
- package/dist/delivery.js.map +1 -1
- package/dist/files-manifest.d.ts +501 -0
- package/dist/files-manifest.d.ts.map +1 -0
- package/dist/files-manifest.js +77 -0
- package/dist/files-manifest.js.map +1 -0
- package/dist/harness-model.d.ts +86 -0
- package/dist/harness-model.d.ts.map +1 -0
- package/dist/harness-model.js +34 -0
- package/dist/harness-model.js.map +1 -0
- package/dist/harness.d.ts +183 -27
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +19 -31
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +379 -56
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/mcp-run-result.js +3 -0
- package/dist/mcp-run-result.js.map +1 -1
- package/dist/model-operation.d.ts +1371 -0
- package/dist/model-operation.d.ts.map +1 -1
- package/dist/model-operation.js +36 -0
- package/dist/model-operation.js.map +1 -1
- package/dist/processing.d.ts +94 -0
- package/dist/processing.d.ts.map +1 -0
- package/dist/processing.js +45 -0
- package/dist/processing.js.map +1 -0
- package/dist/readiness.d.ts +14 -0
- package/dist/readiness.d.ts.map +1 -1
- package/dist/run-facts.d.ts +28 -28
- package/dist/run-facts.js +4 -4
- package/dist/run-facts.js.map +1 -1
- package/dist/run-strategy.d.ts +1 -0
- package/dist/run-strategy.d.ts.map +1 -1
- package/dist/run-strategy.js +2 -0
- package/dist/run-strategy.js.map +1 -1
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +3 -1
- package/dist/status-projection.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +22 -1
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +9 -0
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +2 -0
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +263 -41
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +5 -8
- package/dist/telemetry.js.map +1 -1
- package/dist/workproduct.d.ts +4 -4
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js +4 -4
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +14 -11
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +14 -9
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +25 -0
- package/generated/AttemptExecutionEvidence.schema.json +187 -0
- package/generated/BudgetLease.schema.json +39 -0
- package/generated/ControlApplyCheckRequest.schema.json +7 -0
- package/generated/ControlApplyRequest.schema.json +7 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +25 -0
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +25 -0
- package/generated/ControlDeliveryResponse.schema.json +10 -0
- package/generated/ControlHarnessAccountCatalog.schema.json +208 -0
- package/generated/ControlHarnessAccountModelsResponse.schema.json +320 -0
- package/generated/ControlHarnessListResponse.schema.json +25 -0
- package/generated/ControlHarnessModelsQueryResponse.schema.json +347 -0
- package/generated/ControlHarnessModelsResponse.schema.json +89 -0
- package/generated/ControlModelAccountCatalogResponse.schema.json +339 -0
- package/generated/ControlModelCatalogQueryResponse.schema.json +346 -0
- package/generated/ControlModelCatalogResponse.schema.json +86 -0
- package/generated/ControlModelOperationDetail.schema.json +39 -0
- package/generated/ControlModelSourcesAccountsResponse.schema.json +61 -0
- package/generated/ControlModelSourcesQueryResponse.schema.json +98 -0
- package/generated/ControlRunAgainDraft.schema.json +29 -0
- package/generated/ControlRunDecisionRequest.schema.json +4 -3
- package/generated/ControlRunDecisionResponse.schema.json +2 -1
- package/generated/ControlRunDetail.schema.json +234 -28
- package/generated/ControlRunListResponse.schema.json +18 -4
- package/generated/ControlRunStartRequest.schema.json +29 -0
- package/generated/ControlRunSummary.schema.json +18 -4
- package/generated/ControlThreadApplyResponse.schema.json +10 -0
- package/generated/ControlThreadDetail.schema.json +9 -4
- package/generated/ControlThreadTurnRequest.schema.json +45 -0
- package/generated/DecisionRecord.schema.json +8 -1
- package/generated/HarnessEvent.schema.json +146 -0
- package/generated/HarnessManifest.schema.json +25 -0
- package/generated/HarnessModel.schema.json +89 -0
- package/generated/HarnessStatusDto.schema.json +25 -0
- package/generated/McpRunHandleResult.schema.json +205 -9
- package/generated/McpRunToolResult.schema.json +196 -9
- package/generated/ModelCallRequest.schema.json +9 -0
- package/generated/ModelCallResult.schema.json +124 -0
- package/generated/ProcessingCapability.schema.json +95 -0
- package/generated/ProcessingCostBasis.schema.json +45 -0
- package/generated/ProcessingPreference.schema.json +15 -0
- package/generated/ProcessingReceipt.schema.json +94 -0
- package/generated/RunFacts.schema.json +6 -1
- package/generated/RunTelemetry.schema.json +168 -1
- package/generated/TaskContract.schema.json +9 -0
- package/generated/UsageCostBasis.schema.json +31 -0
- package/generated/UsageCostSummary.schema.json +44 -0
- package/generated/WorkProduct.schema.json +4 -3
- package/generated/WorkspaceEnvelope.schema.json +25 -5
- package/generated/WorkspaceFilesManifest.schema.json +160 -0
- package/generated/WorkspaceKind.schema.json +13 -0
- package/package.json +2 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { ProcessingCapability } from "./processing.js";
|
|
3
|
+
/**
|
|
4
|
+
* One enumerable model offered by a harness. Deliberately small: only the
|
|
5
|
+
* fields a real enumeration source (an OpenAI-compatible `GET /v1/models`)
|
|
6
|
+
* can honestly populate. `label`/`context_window` are nullable because the
|
|
7
|
+
* raw `{data:[{id}]}` list rarely carries them.
|
|
8
|
+
*/
|
|
9
|
+
export const HarnessModel = z
|
|
10
|
+
.object({
|
|
11
|
+
processing: ProcessingCapability.optional(),
|
|
12
|
+
id: z.string().describe("Model id as the vendor enumerates it."),
|
|
13
|
+
label: z
|
|
14
|
+
.string()
|
|
15
|
+
.nullable()
|
|
16
|
+
.default(null)
|
|
17
|
+
.describe("Human-readable model label; null when the enumeration source has none."),
|
|
18
|
+
context_window: z
|
|
19
|
+
.number()
|
|
20
|
+
.int()
|
|
21
|
+
.positive()
|
|
22
|
+
.nullable()
|
|
23
|
+
.default(null)
|
|
24
|
+
.describe("Context window in tokens; null when the enumeration source does not report it."),
|
|
25
|
+
/** Credential routes the model is scoped to per the manifest annotation;
|
|
26
|
+
* null = unannotated (available on every route). */
|
|
27
|
+
routes: z
|
|
28
|
+
.array(z.enum(["local_session", "api_key"]))
|
|
29
|
+
.nullable()
|
|
30
|
+
.default(null)
|
|
31
|
+
.describe("Credential routes the model is scoped to; null = every route."),
|
|
32
|
+
})
|
|
33
|
+
.describe("One enumerable model offered by a harness, limited to fields a real enumeration source can honestly populate.");
|
|
34
|
+
//# sourceMappingURL=harness-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness-model.js","sourceRoot":"","sources":["../src/harness-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,UAAU,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAChE,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,wEAAwE,CAAC;IACrF,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,gFAAgF,CAAC;IAC7F;wDACoD;IACpD,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC;SAC3C,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,+DAA+D,CAAC;CAC7E,CAAC;KACD,QAAQ,CACP,+GAA+G,CAChH,CAAC"}
|
package/dist/harness.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export type WebPolicySupport = z.infer<typeof WebPolicySupport>;
|
|
|
28
28
|
* gate that reads it).
|
|
29
29
|
*/
|
|
30
30
|
export declare const HarnessCapabilities: z.ZodObject<{
|
|
31
|
+
processing_preferences: z.ZodOptional<z.ZodArray<z.ZodEnum<["standard", "fast", "economy"]>, "many">>;
|
|
31
32
|
plan: z.ZodDefault<z.ZodBoolean>;
|
|
32
33
|
implement: z.ZodDefault<z.ZodBoolean>;
|
|
33
34
|
implementation_transport: z.ZodDefault<z.ZodEnum<["workspace", "git_patch_envelope"]>>;
|
|
@@ -116,9 +117,10 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
116
117
|
* apart. Null = never verified / not applicable.
|
|
117
118
|
*/
|
|
118
119
|
effort_levels_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
model_inventory_routes: z.ZodOptional<z.ZodArray<z.ZodEnum<["local_session", "api_key"]>, "many">>;
|
|
119
121
|
/**
|
|
120
122
|
* Known model ids/aliases this harness accepts — the manifest-declared model
|
|
121
|
-
* truth source
|
|
123
|
+
* truth source when no live `models()` producer applies to the credential route.
|
|
122
124
|
* STRICT: an explicit model outside the active truth source is refused
|
|
123
125
|
* at settings-write, run preflight, and reviewer resolution; a harness with
|
|
124
126
|
* NO truth source (no `models()` and an empty list) refuses every explicit
|
|
@@ -144,6 +146,7 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
144
146
|
*/
|
|
145
147
|
known_models_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
146
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
147
150
|
plan: boolean;
|
|
148
151
|
implement: boolean;
|
|
149
152
|
implementation_transport: "git_patch_envelope" | "workspace";
|
|
@@ -166,12 +169,14 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
166
169
|
default: string | null;
|
|
167
170
|
}>;
|
|
168
171
|
effort_levels_verified_against: string | null;
|
|
172
|
+
model_inventory_routes?: ("api_key" | "local_session")[] | undefined;
|
|
169
173
|
known_models: (string | {
|
|
170
174
|
id: string;
|
|
171
175
|
routes: ("api_key" | "local_session")[];
|
|
172
176
|
})[];
|
|
173
177
|
known_models_verified_against: string | null;
|
|
174
178
|
}, {
|
|
179
|
+
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
175
180
|
plan?: boolean | undefined;
|
|
176
181
|
implement?: boolean | undefined;
|
|
177
182
|
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
@@ -194,6 +199,7 @@ export declare const HarnessCapabilities: z.ZodObject<{
|
|
|
194
199
|
default?: string | null | undefined;
|
|
195
200
|
}> | undefined;
|
|
196
201
|
effort_levels_verified_against?: string | null | undefined;
|
|
202
|
+
model_inventory_routes?: ("api_key" | "local_session")[] | undefined;
|
|
197
203
|
known_models?: (string | {
|
|
198
204
|
id: string;
|
|
199
205
|
routes: ("api_key" | "local_session")[];
|
|
@@ -488,31 +494,7 @@ export declare const HarnessCapabilityProfile: z.ZodDefault<z.ZodObject<{
|
|
|
488
494
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
489
495
|
}>>;
|
|
490
496
|
export type HarnessCapabilityProfile = z.infer<typeof HarnessCapabilityProfile>;
|
|
491
|
-
|
|
492
|
-
* One enumerable model offered by a harness. Deliberately small: only the
|
|
493
|
-
* fields a real enumeration source (an OpenAI-compatible `GET /v1/models`)
|
|
494
|
-
* can honestly populate. `label`/`context_window` are nullable because the
|
|
495
|
-
* raw `{data:[{id}]}` list rarely carries them.
|
|
496
|
-
*/
|
|
497
|
-
export declare const HarnessModel: z.ZodObject<{
|
|
498
|
-
id: z.ZodString;
|
|
499
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
500
|
-
context_window: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
501
|
-
/** Credential routes the model is scoped to per the manifest annotation;
|
|
502
|
-
* null = unannotated (available on every route). */
|
|
503
|
-
routes: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodEnum<["local_session", "api_key"]>, "many">>>;
|
|
504
|
-
}, "strip", z.ZodTypeAny, {
|
|
505
|
-
id: string;
|
|
506
|
-
label: string | null;
|
|
507
|
-
context_window: number | null;
|
|
508
|
-
routes: ("api_key" | "local_session")[] | null;
|
|
509
|
-
}, {
|
|
510
|
-
id: string;
|
|
511
|
-
label?: string | null | undefined;
|
|
512
|
-
context_window?: number | null | undefined;
|
|
513
|
-
routes?: ("api_key" | "local_session")[] | null | undefined;
|
|
514
|
-
}>;
|
|
515
|
-
export type HarnessModel = z.infer<typeof HarnessModel>;
|
|
497
|
+
export { HarnessModel } from "./harness-model.js";
|
|
516
498
|
export declare const HarnessManifest: z.ZodObject<{
|
|
517
499
|
id: z.ZodString;
|
|
518
500
|
display_name: z.ZodString;
|
|
@@ -779,6 +761,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
779
761
|
}>>;
|
|
780
762
|
/** Compatibility convenience fields. New routing/UI should prefer capability_profile. */
|
|
781
763
|
capabilities: z.ZodObject<{
|
|
764
|
+
processing_preferences: z.ZodOptional<z.ZodArray<z.ZodEnum<["standard", "fast", "economy"]>, "many">>;
|
|
782
765
|
plan: z.ZodDefault<z.ZodBoolean>;
|
|
783
766
|
implement: z.ZodDefault<z.ZodBoolean>;
|
|
784
767
|
implementation_transport: z.ZodDefault<z.ZodEnum<["workspace", "git_patch_envelope"]>>;
|
|
@@ -867,9 +850,10 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
867
850
|
* apart. Null = never verified / not applicable.
|
|
868
851
|
*/
|
|
869
852
|
effort_levels_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
853
|
+
model_inventory_routes: z.ZodOptional<z.ZodArray<z.ZodEnum<["local_session", "api_key"]>, "many">>;
|
|
870
854
|
/**
|
|
871
855
|
* Known model ids/aliases this harness accepts — the manifest-declared model
|
|
872
|
-
* truth source
|
|
856
|
+
* truth source when no live `models()` producer applies to the credential route.
|
|
873
857
|
* STRICT: an explicit model outside the active truth source is refused
|
|
874
858
|
* at settings-write, run preflight, and reviewer resolution; a harness with
|
|
875
859
|
* NO truth source (no `models()` and an empty list) refuses every explicit
|
|
@@ -895,6 +879,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
895
879
|
*/
|
|
896
880
|
known_models_verified_against: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
897
881
|
}, "strip", z.ZodTypeAny, {
|
|
882
|
+
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
898
883
|
plan: boolean;
|
|
899
884
|
implement: boolean;
|
|
900
885
|
implementation_transport: "git_patch_envelope" | "workspace";
|
|
@@ -917,12 +902,14 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
917
902
|
default: string | null;
|
|
918
903
|
}>;
|
|
919
904
|
effort_levels_verified_against: string | null;
|
|
905
|
+
model_inventory_routes?: ("api_key" | "local_session")[] | undefined;
|
|
920
906
|
known_models: (string | {
|
|
921
907
|
id: string;
|
|
922
908
|
routes: ("api_key" | "local_session")[];
|
|
923
909
|
})[];
|
|
924
910
|
known_models_verified_against: string | null;
|
|
925
911
|
}, {
|
|
912
|
+
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
926
913
|
plan?: boolean | undefined;
|
|
927
914
|
implement?: boolean | undefined;
|
|
928
915
|
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
@@ -945,6 +932,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
945
932
|
default?: string | null | undefined;
|
|
946
933
|
}> | undefined;
|
|
947
934
|
effort_levels_verified_against?: string | null | undefined;
|
|
935
|
+
model_inventory_routes?: ("api_key" | "local_session")[] | undefined;
|
|
948
936
|
known_models?: (string | {
|
|
949
937
|
id: string;
|
|
950
938
|
routes: ("api_key" | "local_session")[];
|
|
@@ -999,6 +987,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
999
987
|
mcp_injection_requires_full_access: boolean;
|
|
1000
988
|
};
|
|
1001
989
|
capabilities: {
|
|
990
|
+
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
1002
991
|
plan: boolean;
|
|
1003
992
|
implement: boolean;
|
|
1004
993
|
implementation_transport: "git_patch_envelope" | "workspace";
|
|
@@ -1021,6 +1010,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
1021
1010
|
default: string | null;
|
|
1022
1011
|
}>;
|
|
1023
1012
|
effort_levels_verified_against: string | null;
|
|
1013
|
+
model_inventory_routes?: ("api_key" | "local_session")[] | undefined;
|
|
1024
1014
|
known_models: (string | {
|
|
1025
1015
|
id: string;
|
|
1026
1016
|
routes: ("api_key" | "local_session")[];
|
|
@@ -1075,6 +1065,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
1075
1065
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
1076
1066
|
} | undefined;
|
|
1077
1067
|
capabilities: {
|
|
1068
|
+
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
1078
1069
|
plan?: boolean | undefined;
|
|
1079
1070
|
implement?: boolean | undefined;
|
|
1080
1071
|
implementation_transport?: "git_patch_envelope" | "workspace" | undefined;
|
|
@@ -1097,6 +1088,7 @@ export declare const HarnessManifest: z.ZodObject<{
|
|
|
1097
1088
|
default?: string | null | undefined;
|
|
1098
1089
|
}> | undefined;
|
|
1099
1090
|
effort_levels_verified_against?: string | null | undefined;
|
|
1091
|
+
model_inventory_routes?: ("api_key" | "local_session")[] | undefined;
|
|
1100
1092
|
known_models?: (string | {
|
|
1101
1093
|
id: string;
|
|
1102
1094
|
routes: ("api_key" | "local_session")[];
|
|
@@ -1237,6 +1229,46 @@ export declare const ExtraMcpServer: z.ZodObject<{
|
|
|
1237
1229
|
export type ExtraMcpServer = z.infer<typeof ExtraMcpServer>;
|
|
1238
1230
|
/** Spec passed to a harness adapter's run(). */
|
|
1239
1231
|
export declare const HarnessRunSpec: z.ZodObject<{
|
|
1232
|
+
processing_preference: z.ZodOptional<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
1233
|
+
processing: z.ZodOptional<z.ZodObject<{
|
|
1234
|
+
requested: z.ZodNullable<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
1235
|
+
submitted: z.ZodNullable<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
1236
|
+
submittedNative: z.ZodNullable<z.ZodString>;
|
|
1237
|
+
observed: z.ZodEnum<["standard", "fast", "economy", "mixed", "unknown"]>;
|
|
1238
|
+
observedNative: z.ZodArray<z.ZodString, "many">;
|
|
1239
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1240
|
+
source: z.ZodString;
|
|
1241
|
+
}, "strict", z.ZodTypeAny, {
|
|
1242
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
1243
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
1244
|
+
submittedNative: string | null;
|
|
1245
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
1246
|
+
observedNative: string[];
|
|
1247
|
+
reason: string | null;
|
|
1248
|
+
source: string;
|
|
1249
|
+
}, {
|
|
1250
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
1251
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
1252
|
+
submittedNative: string | null;
|
|
1253
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
1254
|
+
observedNative: string[];
|
|
1255
|
+
reason: string | null;
|
|
1256
|
+
source: string;
|
|
1257
|
+
}>>;
|
|
1258
|
+
processing_cost_basis: z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
nativeMode: z.ZodNullable<z.ZodString>;
|
|
1260
|
+
kind: z.ZodEnum<["included", "paid_credits", "cash", "valuation", "unknown"]>;
|
|
1261
|
+
source: z.ZodString;
|
|
1262
|
+
}, "strict", z.ZodTypeAny, {
|
|
1263
|
+
nativeMode: string | null;
|
|
1264
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
1265
|
+
source: string;
|
|
1266
|
+
}, {
|
|
1267
|
+
nativeMode: string | null;
|
|
1268
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
1269
|
+
source: string;
|
|
1270
|
+
}>>;
|
|
1271
|
+
processing_allow_paid: z.ZodOptional<z.ZodBoolean>;
|
|
1240
1272
|
session_id: z.ZodString;
|
|
1241
1273
|
intent: z.ZodEnum<["plan", "spec", "implement", "create_from_scratch", "repair", "review", "verify", "synthesize", "explain", "audit"]>;
|
|
1242
1274
|
prompt: z.ZodString;
|
|
@@ -1544,6 +1576,22 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1544
1576
|
}>>>;
|
|
1545
1577
|
extra: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1546
1578
|
}, "strip", z.ZodTypeAny, {
|
|
1579
|
+
processing_preference?: "economy" | "fast" | "standard" | undefined;
|
|
1580
|
+
processing?: {
|
|
1581
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
1582
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
1583
|
+
submittedNative: string | null;
|
|
1584
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
1585
|
+
observedNative: string[];
|
|
1586
|
+
reason: string | null;
|
|
1587
|
+
source: string;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
processing_cost_basis?: {
|
|
1590
|
+
nativeMode: string | null;
|
|
1591
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
1592
|
+
source: string;
|
|
1593
|
+
} | undefined;
|
|
1594
|
+
processing_allow_paid?: boolean | undefined;
|
|
1547
1595
|
session_id: string;
|
|
1548
1596
|
intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
|
|
1549
1597
|
prompt: string;
|
|
@@ -1627,6 +1675,22 @@ export declare const HarnessRunSpec: z.ZodObject<{
|
|
|
1627
1675
|
} | null | undefined;
|
|
1628
1676
|
extra: Record<string, unknown>;
|
|
1629
1677
|
}, {
|
|
1678
|
+
processing_preference?: "economy" | "fast" | "standard" | undefined;
|
|
1679
|
+
processing?: {
|
|
1680
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
1681
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
1682
|
+
submittedNative: string | null;
|
|
1683
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
1684
|
+
observedNative: string[];
|
|
1685
|
+
reason: string | null;
|
|
1686
|
+
source: string;
|
|
1687
|
+
} | undefined;
|
|
1688
|
+
processing_cost_basis?: {
|
|
1689
|
+
nativeMode: string | null;
|
|
1690
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
1691
|
+
source: string;
|
|
1692
|
+
} | undefined;
|
|
1693
|
+
processing_allow_paid?: boolean | undefined;
|
|
1630
1694
|
session_id: string;
|
|
1631
1695
|
intent: "audit" | "create_from_scratch" | "explain" | "implement" | "plan" | "repair" | "review" | "spec" | "synthesize" | "verify";
|
|
1632
1696
|
prompt: string;
|
|
@@ -1894,6 +1958,44 @@ export declare const InputTokenUsage: z.ZodObject<{
|
|
|
1894
1958
|
export type InputTokenUsage = z.infer<typeof InputTokenUsage>;
|
|
1895
1959
|
/** Normalized event emitted by every adapter (the SSOT of adapter output). */
|
|
1896
1960
|
export declare const HarnessEvent: z.ZodObject<{
|
|
1961
|
+
processing: z.ZodOptional<z.ZodObject<{
|
|
1962
|
+
requested: z.ZodNullable<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
1963
|
+
submitted: z.ZodNullable<z.ZodEnum<["standard", "fast", "economy"]>>;
|
|
1964
|
+
submittedNative: z.ZodNullable<z.ZodString>;
|
|
1965
|
+
observed: z.ZodEnum<["standard", "fast", "economy", "mixed", "unknown"]>;
|
|
1966
|
+
observedNative: z.ZodArray<z.ZodString, "many">;
|
|
1967
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1968
|
+
source: z.ZodString;
|
|
1969
|
+
}, "strict", z.ZodTypeAny, {
|
|
1970
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
1971
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
1972
|
+
submittedNative: string | null;
|
|
1973
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
1974
|
+
observedNative: string[];
|
|
1975
|
+
reason: string | null;
|
|
1976
|
+
source: string;
|
|
1977
|
+
}, {
|
|
1978
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
1979
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
1980
|
+
submittedNative: string | null;
|
|
1981
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
1982
|
+
observedNative: string[];
|
|
1983
|
+
reason: string | null;
|
|
1984
|
+
source: string;
|
|
1985
|
+
}>>;
|
|
1986
|
+
processing_cost_basis: z.ZodOptional<z.ZodObject<{
|
|
1987
|
+
nativeMode: z.ZodNullable<z.ZodString>;
|
|
1988
|
+
kind: z.ZodEnum<["included", "paid_credits", "cash", "valuation", "unknown"]>;
|
|
1989
|
+
source: z.ZodString;
|
|
1990
|
+
}, "strict", z.ZodTypeAny, {
|
|
1991
|
+
nativeMode: string | null;
|
|
1992
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
1993
|
+
source: string;
|
|
1994
|
+
}, {
|
|
1995
|
+
nativeMode: string | null;
|
|
1996
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
1997
|
+
source: string;
|
|
1998
|
+
}>>;
|
|
1897
1999
|
type: z.ZodEnum<["started", "thinking", "message", "tool_call", "tool_result", "interaction_requested", "file_change", "patch_produced", "usage", "error", "status", "context", "completed"]>;
|
|
1898
2000
|
session_id: z.ZodString;
|
|
1899
2001
|
ts: z.ZodString;
|
|
@@ -2060,6 +2162,16 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2060
2162
|
cache_write_tokens: number | null;
|
|
2061
2163
|
}>>;
|
|
2062
2164
|
cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
2165
|
+
cost_basis: z.ZodOptional<z.ZodObject<{
|
|
2166
|
+
kind: z.ZodEnum<["cash", "valuation", "unknown"]>;
|
|
2167
|
+
source: z.ZodString;
|
|
2168
|
+
}, "strict", z.ZodTypeAny, {
|
|
2169
|
+
kind: "cash" | "unknown" | "valuation";
|
|
2170
|
+
source: string;
|
|
2171
|
+
}, {
|
|
2172
|
+
kind: "cash" | "unknown" | "valuation";
|
|
2173
|
+
source: string;
|
|
2174
|
+
}>>;
|
|
2063
2175
|
/** True when cost_usd is derived from token pricing (not natively reported). */
|
|
2064
2176
|
estimated: z.ZodOptional<z.ZodBoolean>;
|
|
2065
2177
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2072,6 +2184,10 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2072
2184
|
cache_write_tokens: number | null;
|
|
2073
2185
|
} | undefined;
|
|
2074
2186
|
cost_usd?: number | undefined;
|
|
2187
|
+
cost_basis?: {
|
|
2188
|
+
kind: "cash" | "unknown" | "valuation";
|
|
2189
|
+
source: string;
|
|
2190
|
+
} | undefined;
|
|
2075
2191
|
estimated?: boolean | undefined;
|
|
2076
2192
|
}, {
|
|
2077
2193
|
input_tokens?: number | undefined;
|
|
@@ -2083,6 +2199,10 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2083
2199
|
cache_write_tokens: number | null;
|
|
2084
2200
|
} | undefined;
|
|
2085
2201
|
cost_usd?: number | undefined;
|
|
2202
|
+
cost_basis?: {
|
|
2203
|
+
kind: "cash" | "unknown" | "valuation";
|
|
2204
|
+
source: string;
|
|
2205
|
+
} | undefined;
|
|
2086
2206
|
estimated?: boolean | undefined;
|
|
2087
2207
|
}>>;
|
|
2088
2208
|
observed_model: z.ZodOptional<z.ZodString>;
|
|
@@ -2285,6 +2405,20 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2285
2405
|
aborted: z.ZodOptional<z.ZodBoolean>;
|
|
2286
2406
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2287
2407
|
}, "strip", z.ZodTypeAny, {
|
|
2408
|
+
processing?: {
|
|
2409
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
2410
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
2411
|
+
submittedNative: string | null;
|
|
2412
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
2413
|
+
observedNative: string[];
|
|
2414
|
+
reason: string | null;
|
|
2415
|
+
source: string;
|
|
2416
|
+
} | undefined;
|
|
2417
|
+
processing_cost_basis?: {
|
|
2418
|
+
nativeMode: string | null;
|
|
2419
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
2420
|
+
source: string;
|
|
2421
|
+
} | undefined;
|
|
2288
2422
|
type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
|
|
2289
2423
|
session_id: string;
|
|
2290
2424
|
ts: string;
|
|
@@ -2337,6 +2471,10 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2337
2471
|
cache_write_tokens: number | null;
|
|
2338
2472
|
} | undefined;
|
|
2339
2473
|
cost_usd?: number | undefined;
|
|
2474
|
+
cost_basis?: {
|
|
2475
|
+
kind: "cash" | "unknown" | "valuation";
|
|
2476
|
+
source: string;
|
|
2477
|
+
} | undefined;
|
|
2340
2478
|
estimated?: boolean | undefined;
|
|
2341
2479
|
} | undefined;
|
|
2342
2480
|
observed_model?: string | undefined;
|
|
@@ -2393,6 +2531,20 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2393
2531
|
aborted?: boolean | undefined;
|
|
2394
2532
|
payload?: Record<string, unknown> | undefined;
|
|
2395
2533
|
}, {
|
|
2534
|
+
processing?: {
|
|
2535
|
+
requested: "economy" | "fast" | "standard" | null;
|
|
2536
|
+
submitted: "economy" | "fast" | "standard" | null;
|
|
2537
|
+
submittedNative: string | null;
|
|
2538
|
+
observed: "economy" | "fast" | "mixed" | "standard" | "unknown";
|
|
2539
|
+
observedNative: string[];
|
|
2540
|
+
reason: string | null;
|
|
2541
|
+
source: string;
|
|
2542
|
+
} | undefined;
|
|
2543
|
+
processing_cost_basis?: {
|
|
2544
|
+
nativeMode: string | null;
|
|
2545
|
+
kind: "cash" | "included" | "paid_credits" | "unknown" | "valuation";
|
|
2546
|
+
source: string;
|
|
2547
|
+
} | undefined;
|
|
2396
2548
|
type: "completed" | "context" | "error" | "file_change" | "interaction_requested" | "message" | "patch_produced" | "started" | "status" | "thinking" | "tool_call" | "tool_result" | "usage";
|
|
2397
2549
|
session_id: string;
|
|
2398
2550
|
ts: string;
|
|
@@ -2445,6 +2597,10 @@ export declare const HarnessEvent: z.ZodObject<{
|
|
|
2445
2597
|
cache_write_tokens: number | null;
|
|
2446
2598
|
} | undefined;
|
|
2447
2599
|
cost_usd?: number | undefined;
|
|
2600
|
+
cost_basis?: {
|
|
2601
|
+
kind: "cash" | "unknown" | "valuation";
|
|
2602
|
+
source: string;
|
|
2603
|
+
} | undefined;
|
|
2448
2604
|
estimated?: boolean | undefined;
|
|
2449
2605
|
} | undefined;
|
|
2450
2606
|
observed_model?: string | undefined;
|
package/dist/harness.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../src/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
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2BlE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8GhE,gFAAgF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAepF;;6EAEyE;;IAIzE,2EAA2E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAa3E;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBH;;;;;OAKG;;;;;;;;;;;;;;;;;IAIH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;IAsCH;;;;OAIG;;;;;;;;;;;IAmBH;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0D+E,CAAC;AACvF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/harness.js
CHANGED
|
@@ -9,6 +9,7 @@ import { ImplementationTransport, RawContextPacket, RawGitPatchEnvelope, RawPatc
|
|
|
9
9
|
import { QuotaConstraint, QuotaSource } from "./quota.js";
|
|
10
10
|
import { RateLimitSignal } from "./rate-limit.js";
|
|
11
11
|
import { EffortHint, ModelEffortCapability } from "./effort.js";
|
|
12
|
+
import { ProcessingCostBasis, ProcessingPreference, ProcessingReceipt, UsageCostBasis, } from "./processing.js";
|
|
12
13
|
import { AuthCapabilities } from "./platform-auth.js";
|
|
13
14
|
export * from "./platform-auth.js";
|
|
14
15
|
// Re-exported so sibling contract modules keep one import path for the type.
|
|
@@ -47,6 +48,10 @@ export const WebPolicySupport = z
|
|
|
47
48
|
*/
|
|
48
49
|
export const HarnessCapabilities = z
|
|
49
50
|
.object({
|
|
51
|
+
processing_preferences: z
|
|
52
|
+
.array(ProcessingPreference)
|
|
53
|
+
.optional()
|
|
54
|
+
.describe("Service preferences translated by this adapter; model/account support is separate."),
|
|
50
55
|
plan: z.boolean().default(false).describe("The harness can produce plans (plan intent)."),
|
|
51
56
|
implement: z
|
|
52
57
|
.boolean()
|
|
@@ -172,9 +177,14 @@ export const HarnessCapabilities = z
|
|
|
172
177
|
.nullable()
|
|
173
178
|
.default(null)
|
|
174
179
|
.describe("Vendor CLI version the effort ladders were last verified against; null = never verified / not applicable."),
|
|
180
|
+
model_inventory_routes: z
|
|
181
|
+
.array(z.enum(["local_session", "api_key"]))
|
|
182
|
+
.min(1)
|
|
183
|
+
.optional()
|
|
184
|
+
.describe("Credential routes supported by the adapter's live models() producer; omitted preserves all-route support. Other routes use manifest known_models, never another account's live inventory."),
|
|
175
185
|
/**
|
|
176
186
|
* Known model ids/aliases this harness accepts — the manifest-declared model
|
|
177
|
-
* truth source
|
|
187
|
+
* truth source when no live `models()` producer applies to the credential route.
|
|
178
188
|
* STRICT: an explicit model outside the active truth source is refused
|
|
179
189
|
* at settings-write, run preflight, and reviewer resolution; a harness with
|
|
180
190
|
* NO truth source (no `models()` and an empty list) refuses every explicit
|
|
@@ -281,36 +291,7 @@ export const HarnessCapabilityProfile = z
|
|
|
281
291
|
})
|
|
282
292
|
.default({})
|
|
283
293
|
.describe("Structured per-harness facts the engine consumes: auth routing, isolation containment, readonly mechanism, finite attachment inputs, and MCP injection.");
|
|
284
|
-
|
|
285
|
-
* One enumerable model offered by a harness. Deliberately small: only the
|
|
286
|
-
* fields a real enumeration source (an OpenAI-compatible `GET /v1/models`)
|
|
287
|
-
* can honestly populate. `label`/`context_window` are nullable because the
|
|
288
|
-
* raw `{data:[{id}]}` list rarely carries them.
|
|
289
|
-
*/
|
|
290
|
-
export const HarnessModel = z
|
|
291
|
-
.object({
|
|
292
|
-
id: z.string().describe("Model id as the vendor enumerates it."),
|
|
293
|
-
label: z
|
|
294
|
-
.string()
|
|
295
|
-
.nullable()
|
|
296
|
-
.default(null)
|
|
297
|
-
.describe("Human-readable model label; null when the enumeration source has none."),
|
|
298
|
-
context_window: z
|
|
299
|
-
.number()
|
|
300
|
-
.int()
|
|
301
|
-
.positive()
|
|
302
|
-
.nullable()
|
|
303
|
-
.default(null)
|
|
304
|
-
.describe("Context window in tokens; null when the enumeration source does not report it."),
|
|
305
|
-
/** Credential routes the model is scoped to per the manifest annotation;
|
|
306
|
-
* null = unannotated (available on every route). */
|
|
307
|
-
routes: z
|
|
308
|
-
.array(z.enum(["local_session", "api_key"]))
|
|
309
|
-
.nullable()
|
|
310
|
-
.default(null)
|
|
311
|
-
.describe("Credential routes the model is scoped to; null = every route."),
|
|
312
|
-
})
|
|
313
|
-
.describe("One enumerable model offered by a harness, limited to fields a real enumeration source can honestly populate.");
|
|
294
|
+
export { HarnessModel } from "./harness-model.js";
|
|
314
295
|
export const HarnessManifest = z
|
|
315
296
|
.object({
|
|
316
297
|
id: Id.describe("Harness id (codex, claude, cursor, opencode, raw-api, ...)."),
|
|
@@ -405,6 +386,10 @@ export const ExtraMcpServer = z
|
|
|
405
386
|
/** Spec passed to a harness adapter's run(). */
|
|
406
387
|
export const HarnessRunSpec = z
|
|
407
388
|
.object({
|
|
389
|
+
processing_preference: ProcessingPreference.optional(),
|
|
390
|
+
processing: ProcessingReceipt.optional().describe("Prepared native service choice for this exact attempt."),
|
|
391
|
+
processing_cost_basis: ProcessingCostBasis.optional(),
|
|
392
|
+
processing_allow_paid: z.boolean().optional(),
|
|
408
393
|
session_id: Id.describe("Session id this run belongs to."),
|
|
409
394
|
intent: Intent,
|
|
410
395
|
prompt: z.string().describe("Prompt text delivered to the harness."),
|
|
@@ -620,6 +605,8 @@ export const InputTokenUsage = z
|
|
|
620
605
|
/** Normalized event emitted by every adapter (the SSOT of adapter output). */
|
|
621
606
|
export const HarnessEvent = z
|
|
622
607
|
.object({
|
|
608
|
+
processing: ProcessingReceipt.optional(),
|
|
609
|
+
processing_cost_basis: ProcessingCostBasis.optional(),
|
|
623
610
|
type: z
|
|
624
611
|
.enum([
|
|
625
612
|
"started",
|
|
@@ -673,6 +660,7 @@ export const HarnessEvent = z
|
|
|
673
660
|
.describe("Reported cache token count; relation to input_tokens is harness-specific."),
|
|
674
661
|
input_token_usage: InputTokenUsage.optional(),
|
|
675
662
|
cost_usd: z.number().nonnegative().optional().describe("Cost in USD."),
|
|
663
|
+
cost_basis: UsageCostBasis.optional(),
|
|
676
664
|
/** True when cost_usd is derived from token pricing (not natively reported). */
|
|
677
665
|
estimated: z
|
|
678
666
|
.boolean()
|