@intentic/sandbox-contract 1.408.1 → 1.409.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 (154) hide show
  1. package/dist/contracts/agent.contract.d.ts +54 -0
  2. package/dist/contracts/agent.contract.d.ts.map +1 -1
  3. package/dist/contracts/agents.contract.d.ts +12 -0
  4. package/dist/contracts/agents.contract.d.ts.map +1 -1
  5. package/dist/contracts/automations.contract.d.ts.map +1 -1
  6. package/dist/contracts/automations.contract.js +1 -0
  7. package/dist/contracts/automations.contract.js.map +1 -1
  8. package/dist/contracts/capabilities.contract.d.ts +508 -0
  9. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  10. package/dist/contracts/capabilities.contract.js +74 -1
  11. package/dist/contracts/capabilities.contract.js.map +1 -1
  12. package/dist/contracts/device.contract.d.ts +23 -0
  13. package/dist/contracts/device.contract.d.ts.map +1 -1
  14. package/dist/contracts/extensions.contract.d.ts +350 -4
  15. package/dist/contracts/extensions.contract.d.ts.map +1 -1
  16. package/dist/contracts/needs.contract.d.ts +9 -0
  17. package/dist/contracts/needs.contract.d.ts.map +1 -1
  18. package/dist/contracts/runner.contract.d.ts +288 -250
  19. package/dist/contracts/runner.contract.d.ts.map +1 -1
  20. package/dist/contracts/sessions.contract.d.ts +6 -0
  21. package/dist/contracts/sessions.contract.d.ts.map +1 -1
  22. package/dist/contracts/system.contract.d.ts +27 -0
  23. package/dist/contracts/system.contract.d.ts.map +1 -1
  24. package/dist/events/agent-events.d.ts +26 -0
  25. package/dist/events/agent-events.d.ts.map +1 -1
  26. package/dist/events/agent-events.js +3 -0
  27. package/dist/events/agent-events.js.map +1 -1
  28. package/dist/events/agent-transcript.d.ts +6 -0
  29. package/dist/events/agent-transcript.d.ts.map +1 -1
  30. package/dist/events/prompt-origins.d.ts +54 -0
  31. package/dist/events/prompt-origins.d.ts.map +1 -0
  32. package/dist/events/prompt-origins.js +44 -0
  33. package/dist/events/prompt-origins.js.map +1 -0
  34. package/dist/events/transcript.d.ts +31 -45
  35. package/dist/events/transcript.d.ts.map +1 -1
  36. package/dist/events/transcript.js +3 -27
  37. package/dist/events/transcript.js.map +1 -1
  38. package/dist/netd/generated/wire.d.ts +4 -0
  39. package/dist/netd/generated/wire.d.ts.map +1 -1
  40. package/dist/oauth/google-workspace.d.ts +4 -0
  41. package/dist/oauth/google-workspace.d.ts.map +1 -0
  42. package/dist/oauth/google-workspace.js +6 -0
  43. package/dist/oauth/google-workspace.js.map +1 -0
  44. package/dist/policy/failure-codes.d.ts +4 -0
  45. package/dist/policy/failure-codes.d.ts.map +1 -1
  46. package/dist/policy/failure-codes.js +1 -0
  47. package/dist/policy/failure-codes.js.map +1 -1
  48. package/dist/policy/git/git-connections.d.ts +15 -0
  49. package/dist/policy/git/git-connections.d.ts.map +1 -0
  50. package/dist/policy/git/git-connections.js +34 -0
  51. package/dist/policy/git/git-connections.js.map +1 -0
  52. package/dist/policy/org-locks.d.ts +1 -1
  53. package/dist/policy/org-locks.d.ts.map +1 -1
  54. package/dist/policy/org-locks.js +1 -0
  55. package/dist/policy/org-locks.js.map +1 -1
  56. package/dist/protocol/raw/raw-json-routes.d.ts +121 -0
  57. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  58. package/dist/protocol/raw/raw-json-routes.js +6 -1
  59. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  60. package/dist/protocol/raw/raw-routes.d.ts +27 -0
  61. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  62. package/dist/protocol/raw/raw-routes.js +7 -0
  63. package/dist/protocol/raw/raw-routes.js.map +1 -1
  64. package/dist/schemas/capabilities.d.ts +8 -16
  65. package/dist/schemas/capabilities.d.ts.map +1 -1
  66. package/dist/schemas/capabilities.js +12 -39
  67. package/dist/schemas/capabilities.js.map +1 -1
  68. package/dist/schemas/certificate-request.d.ts +38 -0
  69. package/dist/schemas/certificate-request.d.ts.map +1 -0
  70. package/dist/schemas/certificate-request.js +18 -0
  71. package/dist/schemas/certificate-request.js.map +1 -0
  72. package/dist/schemas/device-move.d.ts +46 -0
  73. package/dist/schemas/device-move.d.ts.map +1 -0
  74. package/dist/schemas/device-move.js +34 -0
  75. package/dist/schemas/device-move.js.map +1 -0
  76. package/dist/schemas/device-sign-in.d.ts +25 -0
  77. package/dist/schemas/device-sign-in.d.ts.map +1 -0
  78. package/dist/schemas/device-sign-in.js +24 -0
  79. package/dist/schemas/device-sign-in.js.map +1 -0
  80. package/dist/schemas/devices.d.ts +50 -0
  81. package/dist/schemas/devices.d.ts.map +1 -1
  82. package/dist/schemas/devices.js +6 -0
  83. package/dist/schemas/devices.js.map +1 -1
  84. package/dist/schemas/extension-updates.d.ts +700 -8
  85. package/dist/schemas/extension-updates.d.ts.map +1 -1
  86. package/dist/schemas/git/remote-refs.d.ts +1 -0
  87. package/dist/schemas/git/remote-refs.d.ts.map +1 -1
  88. package/dist/schemas/git/remote-refs.js +5 -0
  89. package/dist/schemas/git/remote-refs.js.map +1 -1
  90. package/dist/schemas/git-installs.d.ts +20 -0
  91. package/dist/schemas/git-installs.d.ts.map +1 -0
  92. package/dist/schemas/git-installs.js +46 -0
  93. package/dist/schemas/git-installs.js.map +1 -0
  94. package/dist/schemas/hosts.d.ts +2 -0
  95. package/dist/schemas/hosts.d.ts.map +1 -1
  96. package/dist/schemas/hosts.js +2 -0
  97. package/dist/schemas/hosts.js.map +1 -1
  98. package/dist/schemas/links.d.ts +89 -0
  99. package/dist/schemas/links.d.ts.map +1 -1
  100. package/dist/schemas/links.js +72 -0
  101. package/dist/schemas/links.js.map +1 -1
  102. package/dist/schemas/mcp-sign-in.d.ts +46 -0
  103. package/dist/schemas/mcp-sign-in.d.ts.map +1 -0
  104. package/dist/schemas/mcp-sign-in.js +54 -0
  105. package/dist/schemas/mcp-sign-in.js.map +1 -0
  106. package/dist/schemas/needs.d.ts +8 -0
  107. package/dist/schemas/needs.d.ts.map +1 -1
  108. package/dist/schemas/needs.js +5 -1
  109. package/dist/schemas/needs.js.map +1 -1
  110. package/dist/schemas/system.d.ts +4 -0
  111. package/dist/schemas/system.d.ts.map +1 -1
  112. package/dist/schemas/system.js +4 -0
  113. package/dist/schemas/system.js.map +1 -1
  114. package/dist/state/definition.d.ts +6 -0
  115. package/dist/state/definition.d.ts.map +1 -1
  116. package/dist/text/mentions.d.ts +5 -0
  117. package/dist/text/mentions.d.ts.map +1 -1
  118. package/dist/text/mentions.js +15 -3
  119. package/dist/text/mentions.js.map +1 -1
  120. package/dist/text/transcript-fold.d.ts.map +1 -1
  121. package/dist/text/transcript-fold.js +4 -8
  122. package/dist/text/transcript-fold.js.map +1 -1
  123. package/package.json +5 -5
  124. package/src/contracts/automations.contract.ts +3 -0
  125. package/src/contracts/capabilities.contract.ts +98 -0
  126. package/src/events/agent-events.ts +5 -0
  127. package/src/events/prompt-origins.ts +65 -0
  128. package/src/events/transcript.ts +4 -40
  129. package/src/netd/generated/netd-wire.json +24 -0
  130. package/src/netd/generated/wire.ts +8 -2
  131. package/src/oauth/google-workspace.ts +16 -0
  132. package/src/policy/failure-codes.ts +1 -0
  133. package/src/policy/git/git-connections.test.ts +46 -0
  134. package/src/policy/git/git-connections.ts +68 -0
  135. package/src/policy/org-locks.ts +1 -0
  136. package/src/policy/tests/failure-codes.test.ts +3 -1
  137. package/src/protocol/raw/raw-json-routes.ts +13 -0
  138. package/src/protocol/raw/raw-routes.ts +13 -0
  139. package/src/schemas/capabilities.ts +16 -58
  140. package/src/schemas/certificate-request.ts +28 -0
  141. package/src/schemas/device-move.ts +54 -0
  142. package/src/schemas/device-sign-in.ts +37 -0
  143. package/src/schemas/devices.ts +11 -0
  144. package/src/schemas/git/remote-refs.ts +7 -0
  145. package/src/schemas/git-installs.ts +72 -0
  146. package/src/schemas/hosts.ts +4 -0
  147. package/src/schemas/links.ts +106 -1
  148. package/src/schemas/mcp-sign-in.ts +72 -0
  149. package/src/schemas/needs.ts +8 -1
  150. package/src/schemas/system.ts +6 -0
  151. package/src/text/mentions.test.ts +16 -1
  152. package/src/text/mentions.ts +18 -4
  153. package/src/text/transcript-fold.test.ts +8 -0
  154. package/src/text/transcript-fold.ts +4 -8
@@ -68,37 +68,6 @@ export declare const runnerContract: {
68
68
  bytesBase64: z.ZodString;
69
69
  }, z.core.$strip>>>;
70
70
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
71
- requestId: string;
72
- text: string;
73
- document?: {
74
- path: string;
75
- title: string;
76
- markdown: string;
77
- truncated?: boolean | undefined;
78
- plan?: boolean | undefined;
79
- } | undefined;
80
- kind: "plan";
81
- } | {
82
- requestId: string;
83
- questions: {
84
- question: string;
85
- header: string;
86
- multiSelect: boolean;
87
- options: {
88
- label: string;
89
- description: string;
90
- preview?: string | undefined;
91
- }[];
92
- }[];
93
- document?: {
94
- path: string;
95
- title: string;
96
- markdown: string;
97
- truncated?: boolean | undefined;
98
- plan?: boolean | undefined;
99
- } | undefined;
100
- kind: "question";
101
- } | {
102
71
  kind: "session";
103
72
  sessionId: string;
104
73
  account?: string | undefined;
@@ -154,6 +123,11 @@ export declare const runnerContract: {
154
123
  text: string;
155
124
  sentAt: number;
156
125
  attachments?: string[] | undefined;
126
+ editorContext?: {
127
+ file: string;
128
+ startLine?: number | undefined;
129
+ endLine?: number | undefined;
130
+ } | undefined;
157
131
  voice?: "agent" | "sandbox" | undefined;
158
132
  errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
159
133
  messageId?: string | undefined;
@@ -328,6 +302,37 @@ export declare const runnerContract: {
328
302
  sent?: string | undefined;
329
303
  kind: "agent_notice";
330
304
  text: string;
305
+ } | {
306
+ requestId: string;
307
+ text: string;
308
+ document?: {
309
+ path: string;
310
+ title: string;
311
+ markdown: string;
312
+ truncated?: boolean | undefined;
313
+ plan?: boolean | undefined;
314
+ } | undefined;
315
+ kind: "plan";
316
+ } | {
317
+ requestId: string;
318
+ questions: {
319
+ question: string;
320
+ header: string;
321
+ multiSelect: boolean;
322
+ options: {
323
+ label: string;
324
+ description: string;
325
+ preview?: string | undefined;
326
+ }[];
327
+ }[];
328
+ document?: {
329
+ path: string;
330
+ title: string;
331
+ markdown: string;
332
+ truncated?: boolean | undefined;
333
+ plan?: boolean | undefined;
334
+ } | undefined;
335
+ kind: "question";
331
336
  } | {
332
337
  requestId: string;
333
338
  session: string;
@@ -397,6 +402,7 @@ export declare const runnerContract: {
397
402
  link?: string | undefined;
398
403
  hint?: string | undefined;
399
404
  replace?: boolean | undefined;
405
+ multiline?: boolean | undefined;
400
406
  } | {
401
407
  kind: "grant";
402
408
  subject: "capability" | "folder" | "shelf" | "site";
@@ -689,7 +695,7 @@ export declare const runnerContract: {
689
695
  kind: "error";
690
696
  message: string;
691
697
  own?: boolean | undefined;
692
- code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
698
+ code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "standby" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
693
699
  refusal?: {
694
700
  category?: string | undefined;
695
701
  resumeAt?: string | undefined;
@@ -743,50 +749,6 @@ export declare const runnerContract: {
743
749
  unattended?: boolean | undefined;
744
750
  } | {
745
751
  kind: "done";
746
- } | {
747
- toolName: string;
748
- title?: string | undefined;
749
- displayName?: string | undefined;
750
- description?: string | undefined;
751
- reason?: string | undefined;
752
- path?: string | undefined;
753
- alwaysLabel?: string | undefined;
754
- alwaysAsks?: true | undefined;
755
- program?: {
756
- text: string;
757
- language: "bash" | "javascript";
758
- truncated: boolean;
759
- spans: {
760
- start: number;
761
- end: number;
762
- }[];
763
- } | undefined;
764
- child?: {
765
- provider: string;
766
- model: string;
767
- harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
768
- account?: string | undefined;
769
- effort?: string | undefined;
770
- thinking?: boolean | undefined;
771
- fast?: boolean | undefined;
772
- move: "answer" | "send" | "spawn";
773
- child?: string | undefined;
774
- task?: string | undefined;
775
- message?: string | undefined;
776
- on?: string | undefined;
777
- proposed?: {
778
- provider: string;
779
- model: string;
780
- harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
781
- account?: string | undefined;
782
- effort?: string | undefined;
783
- thinking?: boolean | undefined;
784
- fast?: boolean | undefined;
785
- } | undefined;
786
- } | undefined;
787
- explain?: string | undefined;
788
- requestId: string;
789
- kind: "permission";
790
752
  } | {
791
753
  window: number;
792
754
  omitted: string[];
@@ -836,54 +798,6 @@ export declare const runnerContract: {
836
798
  cachedAt?: number | undefined;
837
799
  cacheTtlMs?: number | undefined;
838
800
  kind: "context_usage";
839
- } | {
840
- outcome: "connected" | "unfinished";
841
- id?: string | undefined;
842
- kind: "capability_outcome";
843
- requestId: string;
844
- } | {
845
- outcome: "failed" | "paid";
846
- amountUsd: string;
847
- transaction?: string | undefined;
848
- network?: string | undefined;
849
- kind: "payment_receipt";
850
- requestId: string;
851
- } | {
852
- outcome: "refused" | "released";
853
- approvedBy?: string | undefined;
854
- kind: "credential_receipt";
855
- requestId: string;
856
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
857
- requestId: string;
858
- text: string;
859
- document?: {
860
- path: string;
861
- title: string;
862
- markdown: string;
863
- truncated?: boolean | undefined;
864
- plan?: boolean | undefined;
865
- } | undefined;
866
- kind: "plan";
867
- } | {
868
- requestId: string;
869
- questions: {
870
- question: string;
871
- header: string;
872
- multiSelect: boolean;
873
- options: {
874
- label: string;
875
- description: string;
876
- preview?: string | undefined;
877
- }[];
878
- }[];
879
- document?: {
880
- path: string;
881
- title: string;
882
- markdown: string;
883
- truncated?: boolean | undefined;
884
- plan?: boolean | undefined;
885
- } | undefined;
886
- kind: "question";
887
801
  } | {
888
802
  toolName: string;
889
803
  title?: string | undefined;
@@ -929,6 +843,23 @@ export declare const runnerContract: {
929
843
  requestId: string;
930
844
  kind: "permission";
931
845
  } | {
846
+ outcome: "connected" | "unfinished";
847
+ id?: string | undefined;
848
+ kind: "capability_outcome";
849
+ requestId: string;
850
+ } | {
851
+ outcome: "failed" | "paid";
852
+ amountUsd: string;
853
+ transaction?: string | undefined;
854
+ network?: string | undefined;
855
+ kind: "payment_receipt";
856
+ requestId: string;
857
+ } | {
858
+ outcome: "refused" | "released";
859
+ approvedBy?: string | undefined;
860
+ kind: "credential_receipt";
861
+ requestId: string;
862
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
932
863
  kind: "session";
933
864
  sessionId: string;
934
865
  account?: string | undefined;
@@ -984,6 +915,11 @@ export declare const runnerContract: {
984
915
  text: string;
985
916
  sentAt: number;
986
917
  attachments?: string[] | undefined;
918
+ editorContext?: {
919
+ file: string;
920
+ startLine?: number | undefined;
921
+ endLine?: number | undefined;
922
+ } | undefined;
987
923
  voice?: "agent" | "sandbox" | undefined;
988
924
  errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
989
925
  messageId?: string | undefined;
@@ -1158,6 +1094,37 @@ export declare const runnerContract: {
1158
1094
  sent?: string | undefined;
1159
1095
  kind: "agent_notice";
1160
1096
  text: string;
1097
+ } | {
1098
+ requestId: string;
1099
+ text: string;
1100
+ document?: {
1101
+ path: string;
1102
+ title: string;
1103
+ markdown: string;
1104
+ truncated?: boolean | undefined;
1105
+ plan?: boolean | undefined;
1106
+ } | undefined;
1107
+ kind: "plan";
1108
+ } | {
1109
+ requestId: string;
1110
+ questions: {
1111
+ question: string;
1112
+ header: string;
1113
+ multiSelect: boolean;
1114
+ options: {
1115
+ label: string;
1116
+ description: string;
1117
+ preview?: string | undefined;
1118
+ }[];
1119
+ }[];
1120
+ document?: {
1121
+ path: string;
1122
+ title: string;
1123
+ markdown: string;
1124
+ truncated?: boolean | undefined;
1125
+ plan?: boolean | undefined;
1126
+ } | undefined;
1127
+ kind: "question";
1161
1128
  } | {
1162
1129
  requestId: string;
1163
1130
  session: string;
@@ -1227,6 +1194,7 @@ export declare const runnerContract: {
1227
1194
  link?: string | undefined;
1228
1195
  hint?: string | undefined;
1229
1196
  replace?: boolean | undefined;
1197
+ multiline?: boolean | undefined;
1230
1198
  } | {
1231
1199
  kind: "grant";
1232
1200
  subject: "capability" | "folder" | "shelf" | "site";
@@ -1521,7 +1489,7 @@ export declare const runnerContract: {
1521
1489
  kind: "error";
1522
1490
  message: string;
1523
1491
  own?: boolean | undefined;
1524
- code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
1492
+ code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "standby" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
1525
1493
  refusal?: {
1526
1494
  category?: string | undefined;
1527
1495
  resumeAt?: string | undefined;
@@ -1624,6 +1592,50 @@ export declare const runnerContract: {
1624
1592
  cachedAt?: number | undefined;
1625
1593
  cacheTtlMs?: number | undefined;
1626
1594
  kind: "context_usage";
1595
+ } | {
1596
+ toolName: string;
1597
+ title?: string | undefined;
1598
+ displayName?: string | undefined;
1599
+ description?: string | undefined;
1600
+ reason?: string | undefined;
1601
+ path?: string | undefined;
1602
+ alwaysLabel?: string | undefined;
1603
+ alwaysAsks?: true | undefined;
1604
+ program?: {
1605
+ text: string;
1606
+ language: "bash" | "javascript";
1607
+ truncated: boolean;
1608
+ spans: {
1609
+ start: number;
1610
+ end: number;
1611
+ }[];
1612
+ } | undefined;
1613
+ child?: {
1614
+ provider: string;
1615
+ model: string;
1616
+ harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
1617
+ account?: string | undefined;
1618
+ effort?: string | undefined;
1619
+ thinking?: boolean | undefined;
1620
+ fast?: boolean | undefined;
1621
+ move: "answer" | "send" | "spawn";
1622
+ child?: string | undefined;
1623
+ task?: string | undefined;
1624
+ message?: string | undefined;
1625
+ on?: string | undefined;
1626
+ proposed?: {
1627
+ provider: string;
1628
+ model: string;
1629
+ harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
1630
+ account?: string | undefined;
1631
+ effort?: string | undefined;
1632
+ thinking?: boolean | undefined;
1633
+ fast?: boolean | undefined;
1634
+ } | undefined;
1635
+ } | undefined;
1636
+ explain?: string | undefined;
1637
+ requestId: string;
1638
+ kind: "permission";
1627
1639
  } | {
1628
1640
  outcome: "connected" | "unfinished";
1629
1641
  id?: string | undefined;
@@ -1744,6 +1756,11 @@ export declare const runnerContract: {
1744
1756
  text: z.ZodString;
1745
1757
  sentAt: z.ZodNumber;
1746
1758
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
1759
+ editorContext: z.ZodOptional<z.ZodObject<{
1760
+ file: z.ZodString;
1761
+ startLine: z.ZodOptional<z.ZodNumber>;
1762
+ endLine: z.ZodOptional<z.ZodNumber>;
1763
+ }, z.core.$strip>>;
1747
1764
  voice: z.ZodOptional<z.ZodEnum<{
1748
1765
  agent: "agent";
1749
1766
  sandbox: "sandbox";
@@ -2225,6 +2242,7 @@ export declare const runnerContract: {
2225
2242
  link: z.ZodOptional<z.ZodString>;
2226
2243
  hint: z.ZodOptional<z.ZodString>;
2227
2244
  replace: z.ZodOptional<z.ZodBoolean>;
2245
+ multiline: z.ZodOptional<z.ZodBoolean>;
2228
2246
  }, z.core.$strip>, z.ZodObject<{
2229
2247
  kind: z.ZodLiteral<"grant">;
2230
2248
  subject: z.ZodEnum<{
@@ -2642,6 +2660,7 @@ export declare const runnerContract: {
2642
2660
  "sandbox-disk-low": "sandbox-disk-low";
2643
2661
  "sandbox-memory-low": "sandbox-memory-low";
2644
2662
  "session-not-found": "session-not-found";
2663
+ standby: "standby";
2645
2664
  "subscription-required": "subscription-required";
2646
2665
  "tools-unenforced": "tools-unenforced";
2647
2666
  "trial-exhausted": "trial-exhausted";
@@ -2730,37 +2749,6 @@ export declare const runnerContract: {
2730
2749
  conversationId: z.ZodString;
2731
2750
  after: z.ZodNumber;
2732
2751
  }, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
2733
- requestId: string;
2734
- text: string;
2735
- document?: {
2736
- path: string;
2737
- title: string;
2738
- markdown: string;
2739
- truncated?: boolean | undefined;
2740
- plan?: boolean | undefined;
2741
- } | undefined;
2742
- kind: "plan";
2743
- } | {
2744
- requestId: string;
2745
- questions: {
2746
- question: string;
2747
- header: string;
2748
- multiSelect: boolean;
2749
- options: {
2750
- label: string;
2751
- description: string;
2752
- preview?: string | undefined;
2753
- }[];
2754
- }[];
2755
- document?: {
2756
- path: string;
2757
- title: string;
2758
- markdown: string;
2759
- truncated?: boolean | undefined;
2760
- plan?: boolean | undefined;
2761
- } | undefined;
2762
- kind: "question";
2763
- } | {
2764
2752
  kind: "session";
2765
2753
  sessionId: string;
2766
2754
  account?: string | undefined;
@@ -2816,6 +2804,11 @@ export declare const runnerContract: {
2816
2804
  text: string;
2817
2805
  sentAt: number;
2818
2806
  attachments?: string[] | undefined;
2807
+ editorContext?: {
2808
+ file: string;
2809
+ startLine?: number | undefined;
2810
+ endLine?: number | undefined;
2811
+ } | undefined;
2819
2812
  voice?: "agent" | "sandbox" | undefined;
2820
2813
  errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
2821
2814
  messageId?: string | undefined;
@@ -2990,6 +2983,37 @@ export declare const runnerContract: {
2990
2983
  sent?: string | undefined;
2991
2984
  kind: "agent_notice";
2992
2985
  text: string;
2986
+ } | {
2987
+ requestId: string;
2988
+ text: string;
2989
+ document?: {
2990
+ path: string;
2991
+ title: string;
2992
+ markdown: string;
2993
+ truncated?: boolean | undefined;
2994
+ plan?: boolean | undefined;
2995
+ } | undefined;
2996
+ kind: "plan";
2997
+ } | {
2998
+ requestId: string;
2999
+ questions: {
3000
+ question: string;
3001
+ header: string;
3002
+ multiSelect: boolean;
3003
+ options: {
3004
+ label: string;
3005
+ description: string;
3006
+ preview?: string | undefined;
3007
+ }[];
3008
+ }[];
3009
+ document?: {
3010
+ path: string;
3011
+ title: string;
3012
+ markdown: string;
3013
+ truncated?: boolean | undefined;
3014
+ plan?: boolean | undefined;
3015
+ } | undefined;
3016
+ kind: "question";
2993
3017
  } | {
2994
3018
  requestId: string;
2995
3019
  session: string;
@@ -3059,6 +3083,7 @@ export declare const runnerContract: {
3059
3083
  link?: string | undefined;
3060
3084
  hint?: string | undefined;
3061
3085
  replace?: boolean | undefined;
3086
+ multiline?: boolean | undefined;
3062
3087
  } | {
3063
3088
  kind: "grant";
3064
3089
  subject: "capability" | "folder" | "shelf" | "site";
@@ -3351,7 +3376,7 @@ export declare const runnerContract: {
3351
3376
  kind: "error";
3352
3377
  message: string;
3353
3378
  own?: boolean | undefined;
3354
- code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
3379
+ code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "standby" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
3355
3380
  refusal?: {
3356
3381
  category?: string | undefined;
3357
3382
  resumeAt?: string | undefined;
@@ -3405,50 +3430,6 @@ export declare const runnerContract: {
3405
3430
  unattended?: boolean | undefined;
3406
3431
  } | {
3407
3432
  kind: "done";
3408
- } | {
3409
- toolName: string;
3410
- title?: string | undefined;
3411
- displayName?: string | undefined;
3412
- description?: string | undefined;
3413
- reason?: string | undefined;
3414
- path?: string | undefined;
3415
- alwaysLabel?: string | undefined;
3416
- alwaysAsks?: true | undefined;
3417
- program?: {
3418
- text: string;
3419
- language: "bash" | "javascript";
3420
- truncated: boolean;
3421
- spans: {
3422
- start: number;
3423
- end: number;
3424
- }[];
3425
- } | undefined;
3426
- child?: {
3427
- provider: string;
3428
- model: string;
3429
- harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
3430
- account?: string | undefined;
3431
- effort?: string | undefined;
3432
- thinking?: boolean | undefined;
3433
- fast?: boolean | undefined;
3434
- move: "answer" | "send" | "spawn";
3435
- child?: string | undefined;
3436
- task?: string | undefined;
3437
- message?: string | undefined;
3438
- on?: string | undefined;
3439
- proposed?: {
3440
- provider: string;
3441
- model: string;
3442
- harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
3443
- account?: string | undefined;
3444
- effort?: string | undefined;
3445
- thinking?: boolean | undefined;
3446
- fast?: boolean | undefined;
3447
- } | undefined;
3448
- } | undefined;
3449
- explain?: string | undefined;
3450
- requestId: string;
3451
- kind: "permission";
3452
3433
  } | {
3453
3434
  window: number;
3454
3435
  omitted: string[];
@@ -3498,54 +3479,6 @@ export declare const runnerContract: {
3498
3479
  cachedAt?: number | undefined;
3499
3480
  cacheTtlMs?: number | undefined;
3500
3481
  kind: "context_usage";
3501
- } | {
3502
- outcome: "connected" | "unfinished";
3503
- id?: string | undefined;
3504
- kind: "capability_outcome";
3505
- requestId: string;
3506
- } | {
3507
- outcome: "failed" | "paid";
3508
- amountUsd: string;
3509
- transaction?: string | undefined;
3510
- network?: string | undefined;
3511
- kind: "payment_receipt";
3512
- requestId: string;
3513
- } | {
3514
- outcome: "refused" | "released";
3515
- approvedBy?: string | undefined;
3516
- kind: "credential_receipt";
3517
- requestId: string;
3518
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3519
- requestId: string;
3520
- text: string;
3521
- document?: {
3522
- path: string;
3523
- title: string;
3524
- markdown: string;
3525
- truncated?: boolean | undefined;
3526
- plan?: boolean | undefined;
3527
- } | undefined;
3528
- kind: "plan";
3529
- } | {
3530
- requestId: string;
3531
- questions: {
3532
- question: string;
3533
- header: string;
3534
- multiSelect: boolean;
3535
- options: {
3536
- label: string;
3537
- description: string;
3538
- preview?: string | undefined;
3539
- }[];
3540
- }[];
3541
- document?: {
3542
- path: string;
3543
- title: string;
3544
- markdown: string;
3545
- truncated?: boolean | undefined;
3546
- plan?: boolean | undefined;
3547
- } | undefined;
3548
- kind: "question";
3549
3482
  } | {
3550
3483
  toolName: string;
3551
3484
  title?: string | undefined;
@@ -3591,6 +3524,23 @@ export declare const runnerContract: {
3591
3524
  requestId: string;
3592
3525
  kind: "permission";
3593
3526
  } | {
3527
+ outcome: "connected" | "unfinished";
3528
+ id?: string | undefined;
3529
+ kind: "capability_outcome";
3530
+ requestId: string;
3531
+ } | {
3532
+ outcome: "failed" | "paid";
3533
+ amountUsd: string;
3534
+ transaction?: string | undefined;
3535
+ network?: string | undefined;
3536
+ kind: "payment_receipt";
3537
+ requestId: string;
3538
+ } | {
3539
+ outcome: "refused" | "released";
3540
+ approvedBy?: string | undefined;
3541
+ kind: "credential_receipt";
3542
+ requestId: string;
3543
+ }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
3594
3544
  kind: "session";
3595
3545
  sessionId: string;
3596
3546
  account?: string | undefined;
@@ -3646,6 +3596,11 @@ export declare const runnerContract: {
3646
3596
  text: string;
3647
3597
  sentAt: number;
3648
3598
  attachments?: string[] | undefined;
3599
+ editorContext?: {
3600
+ file: string;
3601
+ startLine?: number | undefined;
3602
+ endLine?: number | undefined;
3603
+ } | undefined;
3649
3604
  voice?: "agent" | "sandbox" | undefined;
3650
3605
  errand?: "ci-fix" | "ci-fix-nudge" | "land-breakage" | "land-conflict" | "land-fix" | "land-fix-nudge" | "land-held" | "push-fix" | "push-fix-nudge" | "verify-nudge" | undefined;
3651
3606
  messageId?: string | undefined;
@@ -3820,6 +3775,37 @@ export declare const runnerContract: {
3820
3775
  sent?: string | undefined;
3821
3776
  kind: "agent_notice";
3822
3777
  text: string;
3778
+ } | {
3779
+ requestId: string;
3780
+ text: string;
3781
+ document?: {
3782
+ path: string;
3783
+ title: string;
3784
+ markdown: string;
3785
+ truncated?: boolean | undefined;
3786
+ plan?: boolean | undefined;
3787
+ } | undefined;
3788
+ kind: "plan";
3789
+ } | {
3790
+ requestId: string;
3791
+ questions: {
3792
+ question: string;
3793
+ header: string;
3794
+ multiSelect: boolean;
3795
+ options: {
3796
+ label: string;
3797
+ description: string;
3798
+ preview?: string | undefined;
3799
+ }[];
3800
+ }[];
3801
+ document?: {
3802
+ path: string;
3803
+ title: string;
3804
+ markdown: string;
3805
+ truncated?: boolean | undefined;
3806
+ plan?: boolean | undefined;
3807
+ } | undefined;
3808
+ kind: "question";
3823
3809
  } | {
3824
3810
  requestId: string;
3825
3811
  session: string;
@@ -3889,6 +3875,7 @@ export declare const runnerContract: {
3889
3875
  link?: string | undefined;
3890
3876
  hint?: string | undefined;
3891
3877
  replace?: boolean | undefined;
3878
+ multiline?: boolean | undefined;
3892
3879
  } | {
3893
3880
  kind: "grant";
3894
3881
  subject: "capability" | "folder" | "shelf" | "site";
@@ -4183,7 +4170,7 @@ export declare const runnerContract: {
4183
4170
  kind: "error";
4184
4171
  message: string;
4185
4172
  own?: boolean | undefined;
4186
- code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
4173
+ code?: "account-not-allowed" | "account-not-entitled" | "acp-auth-required" | "agent-busy" | "agent-domain-refused" | "claude-not-entitled" | "claude-reauth" | "claude-token-refused" | "codex-advisory" | "codex-model-invalid" | "codex-reauth" | "context-overflow" | "context-window-too-small" | "endpoint-gone" | "engine-version-floor" | "grok-model-invalid" | "harness-incomplete" | "model-helper-only" | "model-unavailable" | "privacy-instructions" | "privacy-unshielded" | "provider-outage" | "rate_limit" | "safeguard-flagged" | "sandbox-disk-low" | "sandbox-memory-low" | "session-not-found" | "standby" | "subscription-required" | "tools-unenforced" | "trial-exhausted" | "trial-model-unavailable" | "trial-unavailable" | "turn-cap" | "unknown-command" | "workspace-broken" | "workspace-setup" | undefined;
4187
4174
  refusal?: {
4188
4175
  category?: string | undefined;
4189
4176
  resumeAt?: string | undefined;
@@ -4286,6 +4273,50 @@ export declare const runnerContract: {
4286
4273
  cachedAt?: number | undefined;
4287
4274
  cacheTtlMs?: number | undefined;
4288
4275
  kind: "context_usage";
4276
+ } | {
4277
+ toolName: string;
4278
+ title?: string | undefined;
4279
+ displayName?: string | undefined;
4280
+ description?: string | undefined;
4281
+ reason?: string | undefined;
4282
+ path?: string | undefined;
4283
+ alwaysLabel?: string | undefined;
4284
+ alwaysAsks?: true | undefined;
4285
+ program?: {
4286
+ text: string;
4287
+ language: "bash" | "javascript";
4288
+ truncated: boolean;
4289
+ spans: {
4290
+ start: number;
4291
+ end: number;
4292
+ }[];
4293
+ } | undefined;
4294
+ child?: {
4295
+ provider: string;
4296
+ model: string;
4297
+ harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
4298
+ account?: string | undefined;
4299
+ effort?: string | undefined;
4300
+ thinking?: boolean | undefined;
4301
+ fast?: boolean | undefined;
4302
+ move: "answer" | "send" | "spawn";
4303
+ child?: string | undefined;
4304
+ task?: string | undefined;
4305
+ message?: string | undefined;
4306
+ on?: string | undefined;
4307
+ proposed?: {
4308
+ provider: string;
4309
+ model: string;
4310
+ harness?: "claude-code" | "codex" | "muse" | "native" | "opencode" | "pi" | "vendor" | undefined;
4311
+ account?: string | undefined;
4312
+ effort?: string | undefined;
4313
+ thinking?: boolean | undefined;
4314
+ fast?: boolean | undefined;
4315
+ } | undefined;
4316
+ } | undefined;
4317
+ explain?: string | undefined;
4318
+ requestId: string;
4319
+ kind: "permission";
4289
4320
  } | {
4290
4321
  outcome: "connected" | "unfinished";
4291
4322
  id?: string | undefined;
@@ -4406,6 +4437,11 @@ export declare const runnerContract: {
4406
4437
  text: z.ZodString;
4407
4438
  sentAt: z.ZodNumber;
4408
4439
  attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
4440
+ editorContext: z.ZodOptional<z.ZodObject<{
4441
+ file: z.ZodString;
4442
+ startLine: z.ZodOptional<z.ZodNumber>;
4443
+ endLine: z.ZodOptional<z.ZodNumber>;
4444
+ }, z.core.$strip>>;
4409
4445
  voice: z.ZodOptional<z.ZodEnum<{
4410
4446
  agent: "agent";
4411
4447
  sandbox: "sandbox";
@@ -4887,6 +4923,7 @@ export declare const runnerContract: {
4887
4923
  link: z.ZodOptional<z.ZodString>;
4888
4924
  hint: z.ZodOptional<z.ZodString>;
4889
4925
  replace: z.ZodOptional<z.ZodBoolean>;
4926
+ multiline: z.ZodOptional<z.ZodBoolean>;
4890
4927
  }, z.core.$strip>, z.ZodObject<{
4891
4928
  kind: z.ZodLiteral<"grant">;
4892
4929
  subject: z.ZodEnum<{
@@ -5304,6 +5341,7 @@ export declare const runnerContract: {
5304
5341
  "sandbox-disk-low": "sandbox-disk-low";
5305
5342
  "sandbox-memory-low": "sandbox-memory-low";
5306
5343
  "session-not-found": "session-not-found";
5344
+ standby: "standby";
5307
5345
  "subscription-required": "subscription-required";
5308
5346
  "tools-unenforced": "tools-unenforced";
5309
5347
  "trial-exhausted": "trial-exhausted";