@claudexor/schema 3.15.0 → 3.16.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.
Files changed (47) hide show
  1. package/dist/agent-capabilities.d.ts +8 -0
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +2 -1
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/control-harness-list.d.ts +9 -0
  6. package/dist/control-harness-list.d.ts.map +1 -1
  7. package/dist/control-run-detail.d.ts +10 -0
  8. package/dist/control-run-detail.d.ts.map +1 -1
  9. package/dist/control-run-message.d.ts +98 -0
  10. package/dist/control-run-message.d.ts.map +1 -0
  11. package/dist/control-run-message.js +94 -0
  12. package/dist/control-run-message.js.map +1 -0
  13. package/dist/control-timeline.d.ts +6 -0
  14. package/dist/control-timeline.d.ts.map +1 -1
  15. package/dist/control-timeline.js +10 -0
  16. package/dist/control-timeline.js.map +1 -1
  17. package/dist/credential-profile-snapshot.d.ts +18 -0
  18. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  19. package/dist/events.d.ts +4 -4
  20. package/dist/events.d.ts.map +1 -1
  21. package/dist/events.js +15 -0
  22. package/dist/events.js.map +1 -1
  23. package/dist/harness-interaction.d.ts +179 -0
  24. package/dist/harness-interaction.d.ts.map +1 -0
  25. package/dist/harness-interaction.js +81 -0
  26. package/dist/harness-interaction.js.map +1 -0
  27. package/dist/harness.d.ts +27 -169
  28. package/dist/harness.d.ts.map +1 -1
  29. package/dist/harness.js +15 -68
  30. package/dist/harness.js.map +1 -1
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +1 -0
  34. package/dist/index.js.map +1 -1
  35. package/dist/readiness.d.ts +7 -0
  36. package/dist/readiness.d.ts.map +1 -1
  37. package/generated/AgentCapabilityCatalog.schema.json +10 -0
  38. package/generated/ControlCredentialProfilesQueryResponse.schema.json +11 -1
  39. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +11 -1
  40. package/generated/ControlHarnessListResponse.schema.json +11 -1
  41. package/generated/ControlRunDetail.schema.json +16 -0
  42. package/generated/ControlRunMessageRequest.schema.json +27 -0
  43. package/generated/ControlRunMessageResponse.schema.json +88 -0
  44. package/generated/HarnessManifest.schema.json +11 -1
  45. package/generated/HarnessStatusDto.schema.json +11 -1
  46. package/generated/RunEvent.schema.json +3 -0
  47. package/package.json +2 -2
@@ -444,6 +444,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
444
444
  }>, "many">>;
445
445
  mcp_injection: z.ZodDefault<z.ZodBoolean>;
446
446
  mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
447
+ live_input: z.ZodDefault<z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>>;
447
448
  }, "strip", z.ZodTypeAny, {
448
449
  auth: {
449
450
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
@@ -481,6 +482,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
481
482
  }[];
482
483
  mcp_injection: boolean;
483
484
  mcp_injection_requires_full_access: boolean;
485
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
484
486
  }, {
485
487
  auth?: {
486
488
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
@@ -518,6 +520,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
518
520
  }[] | undefined;
519
521
  mcp_injection?: boolean | undefined;
520
522
  mcp_injection_requires_full_access?: boolean | undefined;
523
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
521
524
  }>>;
522
525
  capabilities: z.ZodObject<{
523
526
  processing_preferences: z.ZodOptional<z.ZodArray<z.ZodEnum<["standard", "fast", "economy"]>, "many">>;
@@ -671,6 +674,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
671
674
  }[];
672
675
  mcp_injection: boolean;
673
676
  mcp_injection_requires_full_access: boolean;
677
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
674
678
  };
675
679
  capabilities: {
676
680
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -750,6 +754,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
750
754
  }[] | undefined;
751
755
  mcp_injection?: boolean | undefined;
752
756
  mcp_injection_requires_full_access?: boolean | undefined;
757
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
753
758
  } | undefined;
754
759
  capabilities: {
755
760
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -932,6 +937,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
932
937
  }[];
933
938
  mcp_injection: boolean;
934
939
  mcp_injection_requires_full_access: boolean;
940
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
935
941
  };
936
942
  capabilities: {
937
943
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -1052,6 +1058,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1052
1058
  }[] | undefined;
1053
1059
  mcp_injection?: boolean | undefined;
1054
1060
  mcp_injection_requires_full_access?: boolean | undefined;
1061
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
1055
1062
  } | undefined;
1056
1063
  capabilities: {
1057
1064
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -1550,6 +1557,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1550
1557
  }[];
1551
1558
  mcp_injection: boolean;
1552
1559
  mcp_injection_requires_full_access: boolean;
1560
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
1553
1561
  };
1554
1562
  capabilities: {
1555
1563
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -1787,6 +1795,7 @@ export declare const ControlCredentialProfilesSnapshotResponse: z.ZodObject<{
1787
1795
  }[] | undefined;
1788
1796
  mcp_injection?: boolean | undefined;
1789
1797
  mcp_injection_requires_full_access?: boolean | undefined;
1798
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
1790
1799
  } | undefined;
1791
1800
  capabilities: {
1792
1801
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -2755,6 +2764,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2755
2764
  }>, "many">>;
2756
2765
  mcp_injection: z.ZodDefault<z.ZodBoolean>;
2757
2766
  mcp_injection_requires_full_access: z.ZodDefault<z.ZodBoolean>;
2767
+ live_input: z.ZodDefault<z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>>;
2758
2768
  }, "strip", z.ZodTypeAny, {
2759
2769
  auth: {
2760
2770
  supported_sources: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[];
@@ -2792,6 +2802,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2792
2802
  }[];
2793
2803
  mcp_injection: boolean;
2794
2804
  mcp_injection_requires_full_access: boolean;
2805
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
2795
2806
  }, {
2796
2807
  auth?: {
2797
2808
  supported_sources?: ("api_key_env" | "api_key_flag" | "native_session" | "none" | "oauth_token_env" | "provider_auth_file")[] | undefined;
@@ -2829,6 +2840,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2829
2840
  }[] | undefined;
2830
2841
  mcp_injection?: boolean | undefined;
2831
2842
  mcp_injection_requires_full_access?: boolean | undefined;
2843
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
2832
2844
  }>>;
2833
2845
  capabilities: z.ZodObject<{
2834
2846
  processing_preferences: z.ZodOptional<z.ZodArray<z.ZodEnum<["standard", "fast", "economy"]>, "many">>;
@@ -2982,6 +2994,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
2982
2994
  }[];
2983
2995
  mcp_injection: boolean;
2984
2996
  mcp_injection_requires_full_access: boolean;
2997
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
2985
2998
  };
2986
2999
  capabilities: {
2987
3000
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -3061,6 +3074,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3061
3074
  }[] | undefined;
3062
3075
  mcp_injection?: boolean | undefined;
3063
3076
  mcp_injection_requires_full_access?: boolean | undefined;
3077
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
3064
3078
  } | undefined;
3065
3079
  capabilities: {
3066
3080
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -3243,6 +3257,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3243
3257
  }[];
3244
3258
  mcp_injection: boolean;
3245
3259
  mcp_injection_requires_full_access: boolean;
3260
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
3246
3261
  };
3247
3262
  capabilities: {
3248
3263
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -3363,6 +3378,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3363
3378
  }[] | undefined;
3364
3379
  mcp_injection?: boolean | undefined;
3365
3380
  mcp_injection_requires_full_access?: boolean | undefined;
3381
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
3366
3382
  } | undefined;
3367
3383
  capabilities: {
3368
3384
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -3861,6 +3877,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
3861
3877
  }[];
3862
3878
  mcp_injection: boolean;
3863
3879
  mcp_injection_requires_full_access: boolean;
3880
+ live_input: "mid_turn" | "next_tool_boundary" | "none";
3864
3881
  };
3865
3882
  capabilities: {
3866
3883
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -4098,6 +4115,7 @@ export declare const ControlCredentialProfilesQueryResponse: z.ZodUnion<[z.ZodOb
4098
4115
  }[] | undefined;
4099
4116
  mcp_injection?: boolean | undefined;
4100
4117
  mcp_injection_requires_full_access?: boolean | undefined;
4118
+ live_input?: "mid_turn" | "next_tool_boundary" | "none" | undefined;
4101
4119
  } | undefined;
4102
4120
  capabilities: {
4103
4121
  processing_preferences?: ("economy" | "fast" | "standard")[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"credential-profile-snapshot.d.ts","sourceRoot":"","sources":["../src/credential-profile-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B;+EAC+E;AAC/E,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqC,CAAC;AACzF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAC"}
package/dist/events.d.ts CHANGED
@@ -56,7 +56,7 @@ export declare const JournaledRunCreatedPayload: z.ZodObject<{
56
56
  prompt_bytes: z.ZodNumber;
57
57
  }, z.ZodTypeAny, "passthrough">>;
58
58
  export type JournaledRunCreatedPayload = z.infer<typeof JournaledRunCreatedPayload>;
59
- export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
59
+ export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
60
60
  export type RunEventType = z.infer<typeof RunEventType>;
61
61
  /**
62
62
  * Typed receipt emitted only after a user-facing run artifact has materialized.
@@ -245,7 +245,7 @@ export declare const RunEvent: z.ZodObject<{
245
245
  /** Thread this run is a turn of, when any. Lets the global event multiplex
246
246
  * route live progress to a chat surface without a reverse job lookup. */
247
247
  thread_id: z.ZodOptional<z.ZodString>;
248
- type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
248
+ type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied"]>;
249
249
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
250
  }, "strip", z.ZodTypeAny, {
251
251
  seq?: number | undefined;
@@ -253,7 +253,7 @@ export declare const RunEvent: z.ZodObject<{
253
253
  run_id: string;
254
254
  task_id: string;
255
255
  thread_id?: string | undefined;
256
- type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
256
+ type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
257
257
  payload: Record<string, unknown>;
258
258
  }, {
259
259
  seq?: number | undefined;
@@ -261,7 +261,7 @@ export declare const RunEvent: z.ZodObject<{
261
261
  run_id: string;
262
262
  task_id: string;
263
263
  thread_id?: string | undefined;
264
- type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
264
+ type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted";
265
265
  payload?: Record<string, unknown> | undefined;
266
266
  }>;
267
267
  export type RunEvent = z.infer<typeof RunEvent>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAU4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;EAoBxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;gCAiBpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF,eAAO,MAAM,YAAY,klDA8ItB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAY+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1C,CAAC;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAoB9B,CAAC;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,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;;EAKO,CAAC;AACrF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
package/dist/events.js CHANGED
@@ -128,6 +128,21 @@ export const RunEventType = z
128
128
  "interaction.answered",
129
129
  "interaction.timeout",
130
130
  "interaction.answer_discarded",
131
+ /** Live message into a running attempt (`POST /v2/runs/:id/messages`).
132
+ * `message.accepted` = daemon ADMISSION, journaled through a
133
+ * failure-propagating append BEFORE any native dispatch (nothing is sent
134
+ * when it cannot land). `message.delivered` = a correlated native
135
+ * consumption event was observed. `message.refused` = a typed non-delivery
136
+ * (`outcome` rejected | not_active | unsupported | delivery_unknown plus
137
+ * `reason`). A native `accepted` verdict adds no row: it is the receipt the
138
+ * route returns and replays under the same Idempotency-Key. Payload:
139
+ * {message_id, attempt_id?, harness_id?, outcome?, reason?, live_input?,
140
+ * native_turn_id?, text_sha256, text_bytes, text, title}; the journaled
141
+ * copy drops `text` (daemon journaled-run-events.ts), the per-run
142
+ * events.jsonl keeps it, and the timeline shows it as the row detail. */
143
+ "message.accepted",
144
+ "message.delivered",
145
+ "message.refused",
131
146
  "plan.progress",
132
147
  "plan.questions",
133
148
  "plan.brief.materialized",
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CA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AAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAChG,CAAC;KACD,QAAQ,CAAC,uEAAuE,CAAC,CAAC"}
@@ -0,0 +1,179 @@
1
+ import { z } from "zod/v3";
2
+ /**
3
+ * How a live message can enter an ALREADY RUNNING harness session (the
4
+ * `POST /v2/runs/:id/messages` capability). `mid_turn`: the harness consumes
5
+ * the message inside the active turn (Codex `turn/steer`). `next_tool_boundary`:
6
+ * queued and consumed at the next tool boundary of the same turn. `none`: no
7
+ * truthful live-input channel; the engine answers `unsupported` without any
8
+ * native write. Declared per adapter; the POST is the run's truth.
9
+ */
10
+ export declare const LiveInputCapability: z.ZodEnum<["mid_turn", "next_tool_boundary", "none"]>;
11
+ export type LiveInputCapability = z.infer<typeof LiveInputCapability>;
12
+ /**
13
+ * One multiple-choice option of an interactive question (AskUserQuestion-style).
14
+ */
15
+ export declare const InteractionOption: z.ZodObject<{
16
+ label: z.ZodString;
17
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ label: string;
20
+ description: string | null;
21
+ }, {
22
+ label: string;
23
+ description?: string | null | undefined;
24
+ }>;
25
+ export type InteractionOption = z.infer<typeof InteractionOption>;
26
+ export declare const InteractionQuestion: z.ZodObject<{
27
+ id: z.ZodString;
28
+ question: z.ZodString;
29
+ /** Short chip/header text some harnesses attach to a question. */
30
+ header: z.ZodDefault<z.ZodNullable<z.ZodString>>;
31
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
32
+ label: z.ZodString;
33
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ label: string;
36
+ description: string | null;
37
+ }, {
38
+ label: string;
39
+ description?: string | null | undefined;
40
+ }>, "many">>;
41
+ multi_select: z.ZodDefault<z.ZodBoolean>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ id: string;
44
+ question: string;
45
+ header: string | null;
46
+ options: {
47
+ label: string;
48
+ description: string | null;
49
+ }[];
50
+ multi_select: boolean;
51
+ }, {
52
+ id: string;
53
+ question: string;
54
+ header?: string | null | undefined;
55
+ options?: {
56
+ label: string;
57
+ description?: string | null | undefined;
58
+ }[] | undefined;
59
+ multi_select?: boolean | undefined;
60
+ }>;
61
+ export type InteractionQuestion = z.infer<typeof InteractionQuestion>;
62
+ /**
63
+ * A live request for user input raised by an interactive harness session.
64
+ * Carried on `interaction_requested` HarnessEvents and projected into
65
+ * `interaction.requested` RunEvents.
66
+ */
67
+ export declare const InteractionRequest: z.ZodObject<{
68
+ interaction_id: z.ZodString;
69
+ questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ question: z.ZodString;
72
+ /** Short chip/header text some harnesses attach to a question. */
73
+ header: z.ZodDefault<z.ZodNullable<z.ZodString>>;
74
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
75
+ label: z.ZodString;
76
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ label: string;
79
+ description: string | null;
80
+ }, {
81
+ label: string;
82
+ description?: string | null | undefined;
83
+ }>, "many">>;
84
+ multi_select: z.ZodDefault<z.ZodBoolean>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ id: string;
87
+ question: string;
88
+ header: string | null;
89
+ options: {
90
+ label: string;
91
+ description: string | null;
92
+ }[];
93
+ multi_select: boolean;
94
+ }, {
95
+ id: string;
96
+ question: string;
97
+ header?: string | null | undefined;
98
+ options?: {
99
+ label: string;
100
+ description?: string | null | undefined;
101
+ }[] | undefined;
102
+ multi_select?: boolean | undefined;
103
+ }>, "many">>;
104
+ /** Native tool that raised the request (e.g. "AskUserQuestion"). */
105
+ source_tool: z.ZodDefault<z.ZodNullable<z.ZodString>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ interaction_id: string;
108
+ questions: {
109
+ id: string;
110
+ question: string;
111
+ header: string | null;
112
+ options: {
113
+ label: string;
114
+ description: string | null;
115
+ }[];
116
+ multi_select: boolean;
117
+ }[];
118
+ source_tool: string | null;
119
+ }, {
120
+ interaction_id: string;
121
+ questions?: {
122
+ id: string;
123
+ question: string;
124
+ header?: string | null | undefined;
125
+ options?: {
126
+ label: string;
127
+ description?: string | null | undefined;
128
+ }[] | undefined;
129
+ multi_select?: boolean | undefined;
130
+ }[] | undefined;
131
+ source_tool?: string | null | undefined;
132
+ }>;
133
+ export type InteractionRequest = z.infer<typeof InteractionRequest>;
134
+ export declare const InteractionAnswer: z.ZodObject<{
135
+ question_id: z.ZodString;
136
+ selected_labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
137
+ free_text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ question_id: string;
140
+ selected_labels: string[];
141
+ free_text: string | null;
142
+ }, {
143
+ question_id: string;
144
+ selected_labels?: string[] | undefined;
145
+ free_text?: string | null | undefined;
146
+ }>;
147
+ export type InteractionAnswer = z.infer<typeof InteractionAnswer>;
148
+ export declare const InteractionAnswerSet: z.ZodObject<{
149
+ interaction_id: z.ZodString;
150
+ answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
151
+ question_id: z.ZodString;
152
+ selected_labels: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
153
+ free_text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ question_id: string;
156
+ selected_labels: string[];
157
+ free_text: string | null;
158
+ }, {
159
+ question_id: string;
160
+ selected_labels?: string[] | undefined;
161
+ free_text?: string | null | undefined;
162
+ }>, "many">>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ interaction_id: string;
165
+ answers: {
166
+ question_id: string;
167
+ selected_labels: string[];
168
+ free_text: string | null;
169
+ }[];
170
+ }, {
171
+ interaction_id: string;
172
+ answers?: {
173
+ question_id: string;
174
+ selected_labels?: string[] | undefined;
175
+ free_text?: string | null | undefined;
176
+ }[] | undefined;
177
+ }>;
178
+ export type InteractionAnswerSet = z.infer<typeof InteractionAnswerSet>;
179
+ //# sourceMappingURL=harness-interaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-interaction.d.ts","sourceRoot":"","sources":["../src/harness-interaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,uDAI7B,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EASuC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,mBAAmB;;;IAI5B,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYL,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;QApB3B,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BlE,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOc,CAAC;AACvF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAU+B,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKmD,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { z } from "zod/v3";
2
+ import { Id } from "./primitives.js";
3
+ /**
4
+ * How a live message can enter an ALREADY RUNNING harness session (the
5
+ * `POST /v2/runs/:id/messages` capability). `mid_turn`: the harness consumes
6
+ * the message inside the active turn (Codex `turn/steer`). `next_tool_boundary`:
7
+ * queued and consumed at the next tool boundary of the same turn. `none`: no
8
+ * truthful live-input channel; the engine answers `unsupported` without any
9
+ * native write. Declared per adapter; the POST is the run's truth.
10
+ */
11
+ export const LiveInputCapability = z
12
+ .enum(["mid_turn", "next_tool_boundary", "none"])
13
+ .describe("How a live message enters a running session: mid_turn (consumed inside the active turn), next_tool_boundary (queued until the same turn's next tool boundary), none (no truthful channel; the engine answers unsupported).");
14
+ /**
15
+ * One multiple-choice option of an interactive question (AskUserQuestion-style).
16
+ */
17
+ export const InteractionOption = z
18
+ .object({
19
+ label: z.string().describe("Option label shown to the user."),
20
+ description: z
21
+ .string()
22
+ .nullable()
23
+ .default(null)
24
+ .describe("Optional longer explanation of the option."),
25
+ })
26
+ .describe("One multiple-choice option of an interactive question.");
27
+ export const InteractionQuestion = z
28
+ .object({
29
+ id: Id.describe("Question id."),
30
+ question: z.string().describe("The question text."),
31
+ /** Short chip/header text some harnesses attach to a question. */
32
+ header: z
33
+ .string()
34
+ .nullable()
35
+ .default(null)
36
+ .describe("Short chip/header text some harnesses attach to a question."),
37
+ options: z
38
+ .array(InteractionOption)
39
+ .default([])
40
+ .describe("Selectable options; empty for free-text-only questions."),
41
+ multi_select: z.boolean().default(false).describe("Whether multiple options may be selected."),
42
+ })
43
+ .describe("One question of an interactive user-input request.");
44
+ /**
45
+ * A live request for user input raised by an interactive harness session.
46
+ * Carried on `interaction_requested` HarnessEvents and projected into
47
+ * `interaction.requested` RunEvents.
48
+ */
49
+ export const InteractionRequest = z
50
+ .object({
51
+ interaction_id: Id.describe("Interaction id used to correlate the answer set."),
52
+ questions: z
53
+ .array(InteractionQuestion)
54
+ .default([])
55
+ .describe("Questions the harness wants answered."),
56
+ /** Native tool that raised the request (e.g. "AskUserQuestion"). */
57
+ source_tool: z
58
+ .string()
59
+ .nullable()
60
+ .default(null)
61
+ .describe('Native tool that raised the request (e.g. "AskUserQuestion").'),
62
+ })
63
+ .describe("A live request for user input raised by an interactive harness session.");
64
+ export const InteractionAnswer = z
65
+ .object({
66
+ question_id: Id.describe("Id of the question being answered."),
67
+ selected_labels: z.array(z.string()).default([]).describe("Labels of the selected options."),
68
+ free_text: z
69
+ .string()
70
+ .nullable()
71
+ .default(null)
72
+ .describe("Free-text answer; null when only options were selected."),
73
+ })
74
+ .describe("The user's answer to one interactive question.");
75
+ export const InteractionAnswerSet = z
76
+ .object({
77
+ interaction_id: Id.describe("Interaction this answer set responds to."),
78
+ answers: z.array(InteractionAnswer).default([]).describe("Answers, one per question."),
79
+ })
80
+ .describe("Typed answers delivered back into a live interactive harness session.");
81
+ //# sourceMappingURL=harness-interaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness-interaction.js","sourceRoot":"","sources":["../src/harness-interaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,IAAI,CAAC,CAAC,UAAU,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC;KAChD,QAAQ,CACP,4NAA4N,CAC7N,CAAC;AAGJ;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC7D,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ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