@claudexor/schema 3.15.1 → 3.17.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 +8 -0
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +2 -1
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/control-harness-list.d.ts +9 -0
- package/dist/control-harness-list.d.ts.map +1 -1
- package/dist/control-run-detail.d.ts +10 -0
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-message.d.ts +98 -0
- package/dist/control-run-message.d.ts.map +1 -0
- package/dist/control-run-message.js +94 -0
- package/dist/control-run-message.js.map +1 -0
- package/dist/control-timeline.d.ts +6 -0
- package/dist/control-timeline.d.ts.map +1 -1
- package/dist/control-timeline.js +10 -0
- package/dist/control-timeline.js.map +1 -1
- package/dist/credential-profile-snapshot.d.ts +18 -0
- package/dist/credential-profile-snapshot.d.ts.map +1 -1
- package/dist/events.d.ts +4 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +15 -0
- package/dist/events.js.map +1 -1
- package/dist/harness-interaction.d.ts +179 -0
- package/dist/harness-interaction.d.ts.map +1 -0
- package/dist/harness-interaction.js +81 -0
- package/dist/harness-interaction.js.map +1 -0
- package/dist/harness.d.ts +29 -169
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +16 -68
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/project.d.ts +4 -0
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +6 -0
- package/dist/project.js.map +1 -1
- package/dist/readiness.d.ts +7 -0
- package/dist/readiness.d.ts.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +10 -0
- package/generated/ControlCredentialProfilesQueryResponse.schema.json +11 -1
- package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +11 -1
- package/generated/ControlHarnessListResponse.schema.json +11 -1
- package/generated/ControlRunDetail.schema.json +16 -0
- package/generated/ControlRunMessageRequest.schema.json +27 -0
- package/generated/ControlRunMessageResponse.schema.json +88 -0
- package/generated/HarnessManifest.schema.json +11 -1
- package/generated/HarnessStatusDto.schema.json +11 -1
- package/generated/RunEvent.schema.json +3 -0
- package/package.json +2 -2
|
@@ -123,6 +123,7 @@ export declare const CatalogHarness: z.ZodObject<{
|
|
|
123
123
|
remediation?: string | null | undefined;
|
|
124
124
|
requiresFullAccess?: boolean | undefined;
|
|
125
125
|
}>;
|
|
126
|
+
liveInput: z.ZodDefault<z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>>;
|
|
126
127
|
setupLogin: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
127
128
|
mode: z.ZodEnum<["in_app", "external_terminal"]>;
|
|
128
129
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -166,6 +167,7 @@ export declare const CatalogHarness: z.ZodObject<{
|
|
|
166
167
|
remediation: string | null;
|
|
167
168
|
requiresFullAccess: boolean;
|
|
168
169
|
};
|
|
170
|
+
liveInput: "mid_turn" | "next_tool_boundary" | "none";
|
|
169
171
|
setupLogin?: {
|
|
170
172
|
mode: "external_terminal" | "in_app";
|
|
171
173
|
} | null | undefined;
|
|
@@ -205,6 +207,7 @@ export declare const CatalogHarness: z.ZodObject<{
|
|
|
205
207
|
remediation?: string | null | undefined;
|
|
206
208
|
requiresFullAccess?: boolean | undefined;
|
|
207
209
|
};
|
|
210
|
+
liveInput?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
208
211
|
setupLogin?: {
|
|
209
212
|
mode: "external_terminal" | "in_app";
|
|
210
213
|
} | null | undefined;
|
|
@@ -363,6 +366,7 @@ export declare const AgentCapabilityCatalog: z.ZodObject<{
|
|
|
363
366
|
remediation?: string | null | undefined;
|
|
364
367
|
requiresFullAccess?: boolean | undefined;
|
|
365
368
|
}>;
|
|
369
|
+
liveInput: z.ZodDefault<z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>>;
|
|
366
370
|
setupLogin: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
367
371
|
mode: z.ZodEnum<["in_app", "external_terminal"]>;
|
|
368
372
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -406,6 +410,7 @@ export declare const AgentCapabilityCatalog: z.ZodObject<{
|
|
|
406
410
|
remediation: string | null;
|
|
407
411
|
requiresFullAccess: boolean;
|
|
408
412
|
};
|
|
413
|
+
liveInput: "mid_turn" | "next_tool_boundary" | "none";
|
|
409
414
|
setupLogin?: {
|
|
410
415
|
mode: "external_terminal" | "in_app";
|
|
411
416
|
} | null | undefined;
|
|
@@ -445,6 +450,7 @@ export declare const AgentCapabilityCatalog: z.ZodObject<{
|
|
|
445
450
|
remediation?: string | null | undefined;
|
|
446
451
|
requiresFullAccess?: boolean | undefined;
|
|
447
452
|
};
|
|
453
|
+
liveInput?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
448
454
|
setupLogin?: {
|
|
449
455
|
mode: "external_terminal" | "in_app";
|
|
450
456
|
} | null | undefined;
|
|
@@ -554,6 +560,7 @@ export declare const AgentCapabilityCatalog: z.ZodObject<{
|
|
|
554
560
|
remediation: string | null;
|
|
555
561
|
requiresFullAccess: boolean;
|
|
556
562
|
};
|
|
563
|
+
liveInput: "mid_turn" | "next_tool_boundary" | "none";
|
|
557
564
|
setupLogin?: {
|
|
558
565
|
mode: "external_terminal" | "in_app";
|
|
559
566
|
} | null | undefined;
|
|
@@ -629,6 +636,7 @@ export declare const AgentCapabilityCatalog: z.ZodObject<{
|
|
|
629
636
|
remediation?: string | null | undefined;
|
|
630
637
|
requiresFullAccess?: boolean | undefined;
|
|
631
638
|
};
|
|
639
|
+
liveInput?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
632
640
|
setupLogin?: {
|
|
633
641
|
mode: "external_terminal" | "in_app";
|
|
634
642
|
} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-capabilities.d.ts","sourceRoot":"","sources":["../src/agent-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAiB,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-capabilities.d.ts","sourceRoot":"","sources":["../src/agent-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAiB,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;AAiB1E;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,8BAA8B,YACzC,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,EACT,aAAa,EACb,oBAAoB,CACZ,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAI9E,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAmBkE,CAAC;AACnG,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEsD,CAAC;AAClF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAe3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EA0BjC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAQ4C,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ChC,CAAC;AACJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v3";
|
|
2
2
|
import { AccessProfile, ModeKind, ProviderFamily } from "./primitives.js";
|
|
3
|
-
import { AdapterStatus, EffortHint, ReadonlyMechanism, WriteMechanism } from "./harness.js";
|
|
3
|
+
import { AdapterStatus, EffortHint, LiveInputCapability, ReadonlyMechanism, WriteMechanism, } from "./harness.js";
|
|
4
4
|
import { WorkspaceMode } from "./thread.js";
|
|
5
5
|
import { AttachmentInputClass } from "./attachment.js";
|
|
6
6
|
import { OutputSchemaDialect } from "./output-schema-dialect.js";
|
|
@@ -116,6 +116,7 @@ export const CatalogHarness = z
|
|
|
116
116
|
readonlyMechanism: ReadonlyMechanism.describe("HOW read-only is enforced (fs_sandbox | permission_deny | tool_allowlist | none) — none means read-only intent is advisory for this harness."),
|
|
117
117
|
writeMechanism: WriteMechanism.default("none").describe("HOW workspace_write is confined (fs_sandbox | tool_policy | none) — tool_policy means an allowed shell is unconfined (no FS/network fence); consumers choosing lanes by confinement read THIS field, never a harness name."),
|
|
118
118
|
delegation: DelegationCapability.describe("Whether this installed runtime can offer Delegate through this harness."),
|
|
119
|
+
liveInput: LiveInputCapability.default("none").describe("How a live message enters one of this harness's RUNNING sessions (POST /v2/runs/:id/messages): mid_turn | next_tool_boundary | none. The harness maximum from its capability profile; the POST answers for the specific run. Omitted by engines older than 3.16.0 (= none)."),
|
|
119
120
|
setupLogin: SetupLoginCapability.nullable()
|
|
120
121
|
.optional()
|
|
121
122
|
.describe("Effective setup-login flow for this harness on the current host; current producers emit null or an object, while omission identifies a legacy catalog row."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-capabilities.js","sourceRoot":"","sources":["../src/agent-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,
|
|
1
|
+
{"version":3,"file":"agent-capabilities.js","sourceRoot":"","sources":["../src/agent-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EACL,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,iBAAiB,E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
mcp_injection: z.ZodDefault<z.ZodBoolean>;
|
|
173
173
|
mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
+
live_input: z.ZodDefault<z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>>;
|
|
174
175
|
}, "strip", z.ZodTypeAny, {
|
|
175
176
|
auth: {
|
|
176
177
|
supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
|
|
@@ -208,6 +209,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
208
209
|
}[];
|
|
209
210
|
mcp_injection: boolean;
|
|
210
211
|
mcp_injection_requires_full_access: boolean;
|
|
212
|
+
live_input: "mid_turn" | "next_tool_boundary" | "none";
|
|
211
213
|
}, {
|
|
212
214
|
auth?: {
|
|
213
215
|
supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
|
|
@@ -245,6 +247,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
245
247
|
}[] | undefined;
|
|
246
248
|
mcp_injection?: boolean | undefined;
|
|
247
249
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
250
|
+
live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
248
251
|
}>>;
|
|
249
252
|
capabilities: z.ZodObject<{
|
|
250
253
|
processing_preferences: z.ZodOptional<z.ZodArray<z.ZodEnum<["standard", "fast", "economy"]>, "many">>;
|
|
@@ -398,6 +401,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
398
401
|
}[];
|
|
399
402
|
mcp_injection: boolean;
|
|
400
403
|
mcp_injection_requires_full_access: boolean;
|
|
404
|
+
live_input: "mid_turn" | "next_tool_boundary" | "none";
|
|
401
405
|
};
|
|
402
406
|
capabilities: {
|
|
403
407
|
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
@@ -477,6 +481,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
477
481
|
}[] | undefined;
|
|
478
482
|
mcp_injection?: boolean | undefined;
|
|
479
483
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
484
|
+
live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
480
485
|
} | undefined;
|
|
481
486
|
capabilities: {
|
|
482
487
|
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
@@ -659,6 +664,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
659
664
|
}[];
|
|
660
665
|
mcp_injection: boolean;
|
|
661
666
|
mcp_injection_requires_full_access: boolean;
|
|
667
|
+
live_input: "mid_turn" | "next_tool_boundary" | "none";
|
|
662
668
|
};
|
|
663
669
|
capabilities: {
|
|
664
670
|
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
@@ -779,6 +785,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
779
785
|
}[] | undefined;
|
|
780
786
|
mcp_injection?: boolean | undefined;
|
|
781
787
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
788
|
+
live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
782
789
|
} | undefined;
|
|
783
790
|
capabilities: {
|
|
784
791
|
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
@@ -917,6 +924,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
917
924
|
}[];
|
|
918
925
|
mcp_injection: boolean;
|
|
919
926
|
mcp_injection_requires_full_access: boolean;
|
|
927
|
+
live_input: "mid_turn" | "next_tool_boundary" | "none";
|
|
920
928
|
};
|
|
921
929
|
capabilities: {
|
|
922
930
|
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
@@ -1045,6 +1053,7 @@ export declare const ControlHarnessListResponse: z.ZodObject<{
|
|
|
1045
1053
|
}[] | undefined;
|
|
1046
1054
|
mcp_injection?: boolean | undefined;
|
|
1047
1055
|
mcp_injection_requires_full_access?: boolean | undefined;
|
|
1056
|
+
live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
1048
1057
|
} | undefined;
|
|
1049
1058
|
capabilities: {
|
|
1050
1059
|
processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-harness-list.d.ts","sourceRoot":"","sources":["../src/control-harness-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"control-harness-list.d.ts","sourceRoot":"","sources":["../src/control-harness-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUI,CAAC;AAC5C,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -2465,6 +2465,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
2465
2465
|
ts: z.ZodOptional<z.ZodString>;
|
|
2466
2466
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2467
2467
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2468
|
+
messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2469
|
+
outcome: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2468
2470
|
title: z.ZodString;
|
|
2469
2471
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2470
2472
|
textKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<["thinking", "message"]>>>;
|
|
@@ -2480,6 +2482,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
2480
2482
|
ts?: string | undefined;
|
|
2481
2483
|
harnessId: string | null;
|
|
2482
2484
|
attemptId: string | null;
|
|
2485
|
+
messageId: string | null;
|
|
2486
|
+
outcome: string | null;
|
|
2483
2487
|
title: string;
|
|
2484
2488
|
detail: string | null;
|
|
2485
2489
|
textKind: "message" | "thinking" | null;
|
|
@@ -2495,6 +2499,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
2495
2499
|
ts?: string | undefined;
|
|
2496
2500
|
harnessId?: string | null | undefined;
|
|
2497
2501
|
attemptId?: string | null | undefined;
|
|
2502
|
+
messageId?: string | null | undefined;
|
|
2503
|
+
outcome?: string | null | undefined;
|
|
2498
2504
|
title: string;
|
|
2499
2505
|
detail?: string | null | undefined;
|
|
2500
2506
|
textKind?: "message" | "thinking" | null | undefined;
|
|
@@ -3939,6 +3945,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
3939
3945
|
ts?: string | undefined;
|
|
3940
3946
|
harnessId: string | null;
|
|
3941
3947
|
attemptId: string | null;
|
|
3948
|
+
messageId: string | null;
|
|
3949
|
+
outcome: string | null;
|
|
3942
3950
|
title: string;
|
|
3943
3951
|
detail: string | null;
|
|
3944
3952
|
textKind: "message" | "thinking" | null;
|
|
@@ -4666,6 +4674,8 @@ export declare const ControlRunDetail: z.ZodObject<{
|
|
|
4666
4674
|
ts?: string | undefined;
|
|
4667
4675
|
harnessId?: string | null | undefined;
|
|
4668
4676
|
attemptId?: string | null | undefined;
|
|
4677
|
+
messageId?: string | null | undefined;
|
|
4678
|
+
outcome?: string | null | undefined;
|
|
4669
4679
|
title: string;
|
|
4670
4680
|
detail?: string | null | undefined;
|
|
4671
4681
|
textKind?: "message" | "thinking" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-run-detail.d.ts","sourceRoot":"","sources":["../src/control-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,Q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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtE,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* Upper bound of one live message, in UTF-16 code units: zod's `.max` counts
|
|
4
|
+
* the JS string length, so a message of astral-plane characters reaches the
|
|
5
|
+
* bound at half as many visible characters. Stated in the request description.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LIVE_MESSAGE_MAX_UTF16_UNITS = 65536;
|
|
8
|
+
/** Body of `POST /v2/runs/:id/messages`. */
|
|
9
|
+
export declare const ControlRunMessageRequest: z.ZodObject<{
|
|
10
|
+
text: z.ZodString;
|
|
11
|
+
expectedAttemptId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
text: string;
|
|
14
|
+
expectedAttemptId?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
text: string;
|
|
17
|
+
expectedAttemptId?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type ControlRunMessageRequest = z.infer<typeof ControlRunMessageRequest>;
|
|
20
|
+
/**
|
|
21
|
+
* Typed outcome of one live-message submission. `accepted` is true on the wire
|
|
22
|
+
* ONLY for `delivered` and `accepted`.
|
|
23
|
+
*
|
|
24
|
+
* - `accepted`: the harness's documented acceptance boundary was observed
|
|
25
|
+
* (Codex: `turn/steer` returned `{turnId}`); consumption is unproved.
|
|
26
|
+
* - `delivered`: a correlated native consumption event was observed (Codex:
|
|
27
|
+
* the `userMessage` echo whose `clientId` equals the message id); obedience
|
|
28
|
+
* is unproved.
|
|
29
|
+
* - `rejected`: an explicit refusal of THIS submission (a vendor RPC refusal
|
|
30
|
+
* on a still-active turn, a caller error such as `multi_attempt`, or the
|
|
31
|
+
* daemon could not persist admission).
|
|
32
|
+
* - `not_active`: no eligible target existed before dispatch (no live
|
|
33
|
+
* attempt, terminal run, turn gap, attempt mismatch, pending interaction).
|
|
34
|
+
* - `unsupported`: the harness/transport/run scope has no live-input channel
|
|
35
|
+
* (adapter lacks `message`, profile `none`, thread-bound run, legacy exec
|
|
36
|
+
* path).
|
|
37
|
+
* - `delivery_unknown`: the message MAY have landed (transport loss,
|
|
38
|
+
* malformed reply, timeout, receipt-save failure). `accepted:false` here
|
|
39
|
+
* never means "safe to resend under a new key".
|
|
40
|
+
*/
|
|
41
|
+
export declare const LiveMessageOutcome: z.ZodEnum<["delivered", "accepted", "rejected", "not_active", "unsupported", "delivery_unknown"]>;
|
|
42
|
+
export type LiveMessageOutcome = z.infer<typeof LiveMessageOutcome>;
|
|
43
|
+
/** Typed reason beside a non-`delivered` outcome, filled from adapter/registry state only (INV-049). */
|
|
44
|
+
export declare const LiveMessageReason: z.ZodEnum<["no_active_turn", "run_terminal", "attempt_mismatch", "no_live_session", "multi_attempt", "thread_bound", "interaction_pending", "rpc_refused", "admission_persist_failed", "transport_lost", "response_timeout"]>;
|
|
45
|
+
export type LiveMessageReason = z.infer<typeof LiveMessageReason>;
|
|
46
|
+
/** Receipt of `POST /v2/runs/:id/messages`. EVERY typed outcome is HTTP 200. */
|
|
47
|
+
export declare const ControlRunMessageResponse: z.ZodObject<{
|
|
48
|
+
accepted: z.ZodBoolean;
|
|
49
|
+
outcome: z.ZodEnum<["delivered", "accepted", "rejected", "not_active", "unsupported", "delivery_unknown"]>;
|
|
50
|
+
reason: z.ZodOptional<z.ZodEnum<["no_active_turn", "run_terminal", "attempt_mismatch", "no_live_session", "multi_attempt", "thread_bound", "interaction_pending", "rpc_refused", "admission_persist_failed", "transport_lost", "response_timeout"]>>;
|
|
51
|
+
runId: z.ZodString;
|
|
52
|
+
messageId: z.ZodString;
|
|
53
|
+
attemptId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
harnessId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
liveInput: z.ZodOptional<z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>>;
|
|
56
|
+
nativeTurnId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
message: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, "strict", z.ZodTypeAny, {
|
|
59
|
+
accepted: boolean;
|
|
60
|
+
outcome: "accepted" | "delivered" | "delivery_unknown" | "not_active" | "rejected" | "unsupported";
|
|
61
|
+
reason?: "admission_persist_failed" | "attempt_mismatch" | "interaction_pending" | "multi_attempt" | "no_active_turn" | "no_live_session" | "response_timeout" | "rpc_refused" | "run_terminal" | "thread_bound" | "transport_lost" | undefined;
|
|
62
|
+
runId: string;
|
|
63
|
+
messageId: string;
|
|
64
|
+
attemptId?: string | undefined;
|
|
65
|
+
harnessId?: string | undefined;
|
|
66
|
+
liveInput?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
67
|
+
nativeTurnId?: string | undefined;
|
|
68
|
+
message?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
accepted: boolean;
|
|
71
|
+
outcome: "accepted" | "delivered" | "delivery_unknown" | "not_active" | "rejected" | "unsupported";
|
|
72
|
+
reason?: "admission_persist_failed" | "attempt_mismatch" | "interaction_pending" | "multi_attempt" | "no_active_turn" | "no_live_session" | "response_timeout" | "rpc_refused" | "run_terminal" | "thread_bound" | "transport_lost" | undefined;
|
|
73
|
+
runId: string;
|
|
74
|
+
messageId: string;
|
|
75
|
+
attemptId?: string | undefined;
|
|
76
|
+
harnessId?: string | undefined;
|
|
77
|
+
liveInput?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
|
|
78
|
+
nativeTurnId?: string | undefined;
|
|
79
|
+
message?: string | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
export type ControlRunMessageResponse = z.infer<typeof ControlRunMessageResponse>;
|
|
82
|
+
/** Input of the daemon's in-process `sendRunMessage` service (the route's call). */
|
|
83
|
+
export interface LiveMessageInput {
|
|
84
|
+
runId: string;
|
|
85
|
+
text: string;
|
|
86
|
+
expectedAttemptId?: string;
|
|
87
|
+
/** The Idempotency-Key verbatim; correlates native echoes and journal rows. */
|
|
88
|
+
messageId: string;
|
|
89
|
+
}
|
|
90
|
+
/** What the daemon registry (and, 1:1, the adapter) answers for one submission. */
|
|
91
|
+
export type LiveMessageDelivery = Pick<ControlRunMessageResponse, "outcome" | "reason" | "attemptId" | "harnessId" | "liveInput" | "nativeTurnId" | "message">;
|
|
92
|
+
/**
|
|
93
|
+
* Result of `HarnessAdapter.message(sessionId, {messageId, text})`: the
|
|
94
|
+
* adapter's typed verdict, passed through the registry unchanged (including
|
|
95
|
+
* `delivery_unknown`). Reasons come from adapter state, never from prose.
|
|
96
|
+
*/
|
|
97
|
+
export type LiveMessageAdapterResult = Pick<LiveMessageDelivery, "outcome" | "reason" | "nativeTurnId">;
|
|
98
|
+
//# sourceMappingURL=control-run-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-run-message.d.ts","sourceRoot":"","sources":["../src/control-run-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,QAAS,CAAC;AAEnD,4CAA4C;AAC5C,eAAO,MAAM,wBAAwB;;;;;;;;;EAoBlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,mGAI5B,CAAC;AACJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,wGAAwG;AACxG,eAAO,MAAM,iBAAiB,+NAgB3B,CAAC;AACJ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,gFAAgF;AAChF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,mFAAmF;AACnF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,yBAAyB,EACzB,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,SAAS,CAC5F,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,mBAAmB,EACnB,SAAS,GAAG,QAAQ,GAAG,cAAc,CACtC,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { Id } from "./primitives.js";
|
|
3
|
+
import { LiveInputCapability } from "./harness-interaction.js";
|
|
4
|
+
/**
|
|
5
|
+
* Upper bound of one live message, in UTF-16 code units: zod's `.max` counts
|
|
6
|
+
* the JS string length, so a message of astral-plane characters reaches the
|
|
7
|
+
* bound at half as many visible characters. Stated in the request description.
|
|
8
|
+
*/
|
|
9
|
+
export const LIVE_MESSAGE_MAX_UTF16_UNITS = 65_536;
|
|
10
|
+
/** Body of `POST /v2/runs/:id/messages`. */
|
|
11
|
+
export const ControlRunMessageRequest = z
|
|
12
|
+
.object({
|
|
13
|
+
text: z
|
|
14
|
+
.string()
|
|
15
|
+
.min(1)
|
|
16
|
+
.max(LIVE_MESSAGE_MAX_UTF16_UNITS)
|
|
17
|
+
.describe("The message to place into the run's active attempt. 1..65536 UTF-16 code units (the JS string length, not bytes or visible characters); an over-long body is a 400, never truncated. Secret-like values are refused (inline_secret_rejected) like every prompt ingress."),
|
|
18
|
+
expectedAttemptId: z
|
|
19
|
+
.string()
|
|
20
|
+
.min(1)
|
|
21
|
+
.optional()
|
|
22
|
+
.describe("Target attempt id. Required when the run has several live attempts (race n>1): without it the daemon answers rejected/multi_attempt. A mismatch with the live attempt answers not_active/attempt_mismatch."),
|
|
23
|
+
})
|
|
24
|
+
.strict()
|
|
25
|
+
.describe("Live message into a running run. Send with an Idempotency-Key (the message id): a replay under the same key returns the recorded receipt without a second delivery.");
|
|
26
|
+
/**
|
|
27
|
+
* Typed outcome of one live-message submission. `accepted` is true on the wire
|
|
28
|
+
* ONLY for `delivered` and `accepted`.
|
|
29
|
+
*
|
|
30
|
+
* - `accepted`: the harness's documented acceptance boundary was observed
|
|
31
|
+
* (Codex: `turn/steer` returned `{turnId}`); consumption is unproved.
|
|
32
|
+
* - `delivered`: a correlated native consumption event was observed (Codex:
|
|
33
|
+
* the `userMessage` echo whose `clientId` equals the message id); obedience
|
|
34
|
+
* is unproved.
|
|
35
|
+
* - `rejected`: an explicit refusal of THIS submission (a vendor RPC refusal
|
|
36
|
+
* on a still-active turn, a caller error such as `multi_attempt`, or the
|
|
37
|
+
* daemon could not persist admission).
|
|
38
|
+
* - `not_active`: no eligible target existed before dispatch (no live
|
|
39
|
+
* attempt, terminal run, turn gap, attempt mismatch, pending interaction).
|
|
40
|
+
* - `unsupported`: the harness/transport/run scope has no live-input channel
|
|
41
|
+
* (adapter lacks `message`, profile `none`, thread-bound run, legacy exec
|
|
42
|
+
* path).
|
|
43
|
+
* - `delivery_unknown`: the message MAY have landed (transport loss,
|
|
44
|
+
* malformed reply, timeout, receipt-save failure). `accepted:false` here
|
|
45
|
+
* never means "safe to resend under a new key".
|
|
46
|
+
*/
|
|
47
|
+
export const LiveMessageOutcome = z
|
|
48
|
+
.enum(["delivered", "accepted", "rejected", "not_active", "unsupported", "delivery_unknown"])
|
|
49
|
+
.describe("delivered = native consumption observed; accepted = native acceptance boundary observed (consumption unproved); rejected = explicit refusal of this submission; not_active = no eligible target before dispatch; unsupported = no live-input channel for this harness/transport/run scope; delivery_unknown = the message may have landed (never a safe-to-resend signal).");
|
|
50
|
+
/** Typed reason beside a non-`delivered` outcome, filled from adapter/registry state only (INV-049). */
|
|
51
|
+
export const LiveMessageReason = z
|
|
52
|
+
.enum([
|
|
53
|
+
"no_active_turn",
|
|
54
|
+
"run_terminal",
|
|
55
|
+
"attempt_mismatch",
|
|
56
|
+
"no_live_session",
|
|
57
|
+
"multi_attempt",
|
|
58
|
+
"thread_bound",
|
|
59
|
+
"interaction_pending",
|
|
60
|
+
"rpc_refused",
|
|
61
|
+
"admission_persist_failed",
|
|
62
|
+
"transport_lost",
|
|
63
|
+
"response_timeout",
|
|
64
|
+
])
|
|
65
|
+
.describe("Why the outcome is not delivered: no_active_turn (the harness has no active native turn), run_terminal, attempt_mismatch (expectedAttemptId is not the live attempt), no_live_session (no registered live attempt, no adapter channel, or no native session yet), multi_attempt (several live attempts and no expectedAttemptId), thread_bound (thread turns are not steerable in v1), interaction_pending (a question is open; the message was not sent), rpc_refused (the vendor refused the steer on a still-active turn), admission_persist_failed (the daemon could not journal admission; nothing was sent), transport_lost, response_timeout.");
|
|
66
|
+
/** Receipt of `POST /v2/runs/:id/messages`. EVERY typed outcome is HTTP 200. */
|
|
67
|
+
export const ControlRunMessageResponse = z
|
|
68
|
+
.object({
|
|
69
|
+
accepted: z
|
|
70
|
+
.boolean()
|
|
71
|
+
.describe("True only for outcome delivered or accepted; false for every other outcome."),
|
|
72
|
+
outcome: LiveMessageOutcome,
|
|
73
|
+
reason: LiveMessageReason.optional(),
|
|
74
|
+
runId: Id.describe("Run the message was addressed to."),
|
|
75
|
+
messageId: z
|
|
76
|
+
.string()
|
|
77
|
+
.min(1)
|
|
78
|
+
.max(256)
|
|
79
|
+
.describe("The submission's identity: the Idempotency-Key verbatim. Replaying it returns this receipt again; a new message needs a new key."),
|
|
80
|
+
attemptId: z
|
|
81
|
+
.string()
|
|
82
|
+
.optional()
|
|
83
|
+
.describe("Live attempt the message targeted, when one was selected."),
|
|
84
|
+
harnessId: z.string().optional().describe("Harness of the targeted attempt."),
|
|
85
|
+
liveInput: LiveInputCapability.optional().describe("The targeted harness's declared live-input channel (its capability profile), when an attempt was selected."),
|
|
86
|
+
nativeTurnId: z
|
|
87
|
+
.string()
|
|
88
|
+
.optional()
|
|
89
|
+
.describe("Native turn id the harness reported on acceptance (Codex turn/steer result)."),
|
|
90
|
+
message: z.string().optional().describe("Human-readable detail."),
|
|
91
|
+
})
|
|
92
|
+
.strict()
|
|
93
|
+
.describe("Receipt of a live message into a running run; every typed outcome answers HTTP 200 (unlike the answer/control routes), so read `outcome`, not the status code.");
|
|
94
|
+
//# sourceMappingURL=control-run-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-run-message.js","sourceRoot":"","sources":["../src/control-run-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;AAEnD,4CAA4C;AAC5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,4BAA4B,CAAC;SACjC,QAAQ,CACP,yQAAyQ,CAC1Q;I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AAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC7E,SAAS,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAChD,4GAA4G,CAC7G;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAClE,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CACP,gKAAgK,CACjK,CAAC"}
|
|
@@ -4,6 +4,8 @@ export declare const ControlTimelineEvent: z.ZodObject<{
|
|
|
4
4
|
ts: z.ZodOptional<z.ZodString>;
|
|
5
5
|
harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
messageId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
outcome: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
9
|
title: z.ZodString;
|
|
8
10
|
detail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
textKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<["thinking", "message"]>>>;
|
|
@@ -24,6 +26,8 @@ export declare const ControlTimelineEvent: z.ZodObject<{
|
|
|
24
26
|
ts?: string | undefined;
|
|
25
27
|
harnessId: string | null;
|
|
26
28
|
attemptId: string | null;
|
|
29
|
+
messageId: string | null;
|
|
30
|
+
outcome: string | null;
|
|
27
31
|
title: string;
|
|
28
32
|
detail: string | null;
|
|
29
33
|
textKind: "message" | "thinking" | null;
|
|
@@ -39,6 +43,8 @@ export declare const ControlTimelineEvent: z.ZodObject<{
|
|
|
39
43
|
ts?: string | undefined;
|
|
40
44
|
harnessId?: string | null | undefined;
|
|
41
45
|
attemptId?: string | null | undefined;
|
|
46
|
+
messageId?: string | null | undefined;
|
|
47
|
+
outcome?: string | null | undefined;
|
|
42
48
|
title: string;
|
|
43
49
|
detail?: string | null | undefined;
|
|
44
50
|
textKind?: "message" | "thinking" | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-timeline.d.ts","sourceRoot":"","sources":["../src/control-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"control-timeline.d.ts","sourceRoot":"","sources":["../src/control-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;IAoD7B;;;;+CAI2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAagB,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/control-timeline.js
CHANGED
|
@@ -5,6 +5,16 @@ export const ControlTimelineEvent = z
|
|
|
5
5
|
ts: z.string().optional().describe("Event timestamp."),
|
|
6
6
|
harnessId: z.string().nullable().default(null).describe("Harness involved, when any."),
|
|
7
7
|
attemptId: z.string().nullable().default(null).describe("Attempt involved, when any."),
|
|
8
|
+
messageId: z
|
|
9
|
+
.string()
|
|
10
|
+
.nullable()
|
|
11
|
+
.default(null)
|
|
12
|
+
.describe("Live-message id on message.* receipt rows and on the adapter's live_input_delivered status row, when any."),
|
|
13
|
+
outcome: z
|
|
14
|
+
.string()
|
|
15
|
+
.nullable()
|
|
16
|
+
.default(null)
|
|
17
|
+
.describe("Typed live-message outcome on message.* rows (delivered | accepted | rejected | not_active | unsupported | delivery_unknown); `delivered` on the adapter's consumption status row; null elsewhere."),
|
|
8
18
|
title: z.string().describe("Human-readable event title."),
|
|
9
19
|
detail: z
|
|
10
20
|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