@happier-dev/stack 0.2.11 → 0.2.12

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 (223) hide show
  1. package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.d.ts +1 -0
  2. package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.d.ts.map +1 -1
  3. package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.js +3 -0
  4. package/node_modules/@happier-dev/agents/dist/connectedServices/runtimeFallbackCapability.js.map +1 -1
  5. package/node_modules/@happier-dev/agents/dist/manifest.d.ts +1 -0
  6. package/node_modules/@happier-dev/agents/dist/manifest.d.ts.map +1 -1
  7. package/node_modules/@happier-dev/agents/dist/manifest.js +1 -0
  8. package/node_modules/@happier-dev/agents/dist/manifest.js.map +1 -1
  9. package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.d.ts +1 -1
  10. package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.d.ts.map +1 -1
  11. package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.js +2 -0
  12. package/node_modules/@happier-dev/agents/dist/runtime/terminal/control.js.map +1 -1
  13. package/node_modules/@happier-dev/agents/dist/types.d.ts +1 -0
  14. package/node_modules/@happier-dev/agents/dist/types.d.ts.map +1 -1
  15. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.d.ts.map +1 -1
  16. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js +5 -18
  17. package/node_modules/@happier-dev/cli-common/dist/componentArtifacts/buildServerBinaryArtifactPayload.js.map +1 -1
  18. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.d.ts +1 -1
  19. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.d.ts.map +1 -1
  20. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.js +14 -6
  21. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/copyRuntimePayloadTree.js.map +1 -1
  22. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts +2 -1
  23. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.d.ts.map +1 -1
  24. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js +2 -1
  25. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/index.js.map +1 -1
  26. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.d.ts.map +1 -1
  27. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js +13 -19
  28. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/selfHostServerEnv.js.map +1 -1
  29. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.d.ts +4 -0
  30. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.d.ts.map +1 -1
  31. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.js +20 -0
  32. package/node_modules/@happier-dev/cli-common/dist/firstPartyRuntime/serverRuntimeArtifactLayout.js.map +1 -1
  33. package/node_modules/@happier-dev/cli-common/dist/output/index.d.ts +1 -0
  34. package/node_modules/@happier-dev/cli-common/dist/output/index.d.ts.map +1 -1
  35. package/node_modules/@happier-dev/cli-common/dist/output/index.js +1 -0
  36. package/node_modules/@happier-dev/cli-common/dist/output/index.js.map +1 -1
  37. package/node_modules/@happier-dev/cli-common/dist/output/planet.d.ts +47 -0
  38. package/node_modules/@happier-dev/cli-common/dist/output/planet.d.ts.map +1 -0
  39. package/node_modules/@happier-dev/cli-common/dist/output/planet.js +183 -0
  40. package/node_modules/@happier-dev/cli-common/dist/output/planet.js.map +1 -0
  41. package/node_modules/@happier-dev/cli-common/dist/output/progress.d.ts +3 -1
  42. package/node_modules/@happier-dev/cli-common/dist/output/progress.d.ts.map +1 -1
  43. package/node_modules/@happier-dev/cli-common/dist/output/progress.js +131 -57
  44. package/node_modules/@happier-dev/cli-common/dist/output/progress.js.map +1 -1
  45. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.d.ts.map +1 -1
  46. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js +41 -78
  47. package/node_modules/@happier-dev/cli-common/dist/relayHost/relayHostEngine.js.map +1 -1
  48. package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.d.ts +5 -0
  49. package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.d.ts.map +1 -1
  50. package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.js +12 -0
  51. package/node_modules/@happier-dev/cli-common/dist/relayHost/remoteRelayRuntimeInstallCommand.js.map +1 -1
  52. package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts.map +1 -1
  53. package/node_modules/@happier-dev/cli-common/dist/service/windows.js +30 -8
  54. package/node_modules/@happier-dev/cli-common/dist/service/windows.js.map +1 -1
  55. package/node_modules/@happier-dev/cli-common/node_modules/chalk/license +9 -0
  56. package/node_modules/@happier-dev/cli-common/node_modules/chalk/package.json +83 -0
  57. package/node_modules/@happier-dev/cli-common/node_modules/chalk/readme.md +297 -0
  58. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/index.d.ts +325 -0
  59. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/index.js +225 -0
  60. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/utilities.js +33 -0
  61. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  62. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  63. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  64. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  65. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  66. package/node_modules/@happier-dev/cli-common/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  67. package/node_modules/@happier-dev/cli-common/package.json +3 -1
  68. package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.d.ts +32 -8
  69. package/node_modules/@happier-dev/protocol/dist/account/encryptionMigrate.d.ts.map +1 -1
  70. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts +5 -0
  71. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts.map +1 -1
  72. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js +3 -0
  73. package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js.map +1 -1
  74. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.d.ts +6 -0
  75. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.d.ts.map +1 -1
  76. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.js +2 -0
  77. package/node_modules/@happier-dev/protocol/dist/account/settings/notificationChannels.js.map +1 -1
  78. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts.map +1 -1
  79. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js +106 -9
  80. package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js.map +1 -1
  81. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts.map +1 -1
  82. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js +23 -9
  83. package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js.map +1 -1
  84. package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.d.ts +1 -1
  85. package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.d.ts.map +1 -1
  86. package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.js +16 -4
  87. package/node_modules/@happier-dev/protocol/dist/actions/permissionPrivilege.js.map +1 -1
  88. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.d.ts +12 -0
  89. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.d.ts.map +1 -0
  90. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.js +68 -0
  91. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestNotificationContent.js.map +1 -0
  92. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.d.ts +8 -0
  93. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.d.ts.map +1 -0
  94. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.js +100 -0
  95. package/node_modules/@happier-dev/protocol/dist/activity/agentRequestSummary.js.map +1 -0
  96. package/node_modules/@happier-dev/protocol/dist/activity/parseJson.d.ts +2 -0
  97. package/node_modules/@happier-dev/protocol/dist/activity/parseJson.d.ts.map +1 -0
  98. package/node_modules/@happier-dev/protocol/dist/activity/parseJson.js +32 -0
  99. package/node_modules/@happier-dev/protocol/dist/activity/parseJson.js.map +1 -0
  100. package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.d.ts +12 -0
  101. package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.d.ts.map +1 -0
  102. package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.js +120 -0
  103. package/node_modules/@happier-dev/protocol/dist/activity/shellCommand.js.map +1 -0
  104. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.d.ts +1 -1
  105. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.d.ts.map +1 -1
  106. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.js +1 -1
  107. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/index.js.map +1 -1
  108. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.d.ts +2 -1
  109. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.d.ts.map +1 -1
  110. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.js +2 -1
  111. package/node_modules/@happier-dev/protocol/dist/clientCompatibility/primitives.js.map +1 -1
  112. package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.d.ts +36 -0
  113. package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.d.ts.map +1 -0
  114. package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.js +36 -0
  115. package/node_modules/@happier-dev/protocol/dist/connect/accountSubscription.js.map +1 -0
  116. package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.d.ts +143 -0
  117. package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.d.ts.map +1 -1
  118. package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.js +46 -0
  119. package/node_modules/@happier-dev/protocol/dist/connect/accountUsage.js.map +1 -1
  120. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts +40 -0
  121. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts.map +1 -1
  122. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js +9 -0
  123. package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js.map +1 -1
  124. package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.d.ts +8 -0
  125. package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.d.ts.map +1 -0
  126. package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.js +22 -0
  127. package/node_modules/@happier-dev/protocol/dist/connect/recoveryCreditConsumeIdempotencyKey.js.map +1 -0
  128. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts +39 -0
  129. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts.map +1 -1
  130. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js +4 -1
  131. package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js.map +1 -1
  132. package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.d.ts +80 -20
  133. package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.d.ts.map +1 -1
  134. package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.js +18 -1
  135. package/node_modules/@happier-dev/protocol/dist/drafts/sessionDrafts.js.map +1 -1
  136. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts +25 -0
  137. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.d.ts.map +1 -1
  138. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js +18 -0
  139. package/node_modules/@happier-dev/protocol/dist/executionRunStartRequest.js.map +1 -1
  140. package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts +51 -3
  141. package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts.map +1 -1
  142. package/node_modules/@happier-dev/protocol/dist/executionRuns.js +5 -2
  143. package/node_modules/@happier-dev/protocol/dist/executionRuns.js.map +1 -1
  144. package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts +12 -0
  145. package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts.map +1 -1
  146. package/node_modules/@happier-dev/protocol/dist/features/catalog.js +12 -0
  147. package/node_modules/@happier-dev/protocol/dist/features/catalog.js.map +1 -1
  148. package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts +2 -0
  149. package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts.map +1 -1
  150. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts +6 -0
  151. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts.map +1 -1
  152. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js +4 -0
  153. package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js.map +1 -1
  154. package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts +6 -0
  155. package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts.map +1 -1
  156. package/node_modules/@happier-dev/protocol/dist/index.d.ts +11 -3
  157. package/node_modules/@happier-dev/protocol/dist/index.d.ts.map +1 -1
  158. package/node_modules/@happier-dev/protocol/dist/index.js +11 -3
  159. package/node_modules/@happier-dev/protocol/dist/index.js.map +1 -1
  160. package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.js +1 -1
  161. package/node_modules/@happier-dev/protocol/dist/prompts/buildAppendSystemPromptBaseV1.js.map +1 -1
  162. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.d.ts.map +1 -1
  163. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.js +25 -35
  164. package/node_modules/@happier-dev/protocol/dist/prompts/executionRunsGuidanceV1.js.map +1 -1
  165. package/node_modules/@happier-dev/protocol/dist/scm.d.ts +6 -0
  166. package/node_modules/@happier-dev/protocol/dist/scm.d.ts.map +1 -1
  167. package/node_modules/@happier-dev/protocol/dist/scm.js +3 -0
  168. package/node_modules/@happier-dev/protocol/dist/scm.js.map +1 -1
  169. package/node_modules/@happier-dev/protocol/dist/scmRepositoryProvisioning.d.ts +6 -0
  170. package/node_modules/@happier-dev/protocol/dist/scmRepositoryProvisioning.d.ts.map +1 -1
  171. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts +164 -0
  172. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts.map +1 -1
  173. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js +3 -0
  174. package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js.map +1 -1
  175. package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.d.ts +32 -0
  176. package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.d.ts.map +1 -0
  177. package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.js +23 -0
  178. package/node_modules/@happier-dev/protocol/dist/sessionControl/pendingActivationAuthorizationV1.js.map +1 -0
  179. package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderAssignments.d.ts +12 -0
  180. package/node_modules/@happier-dev/protocol/dist/sessionFolders/folderAssignments.d.ts.map +1 -1
  181. package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.d.ts +1 -1
  182. package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.d.ts.map +1 -1
  183. package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.js +1 -1
  184. package/node_modules/@happier-dev/protocol/dist/sessionOrganization/constants.js.map +1 -1
  185. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts +13 -0
  186. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.d.ts.map +1 -1
  187. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js +2 -0
  188. package/node_modules/@happier-dev/protocol/dist/sessionUserMessageRpc.js.map +1 -1
  189. package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.d.ts +27 -1
  190. package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.d.ts.map +1 -1
  191. package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.js +0 -1
  192. package/node_modules/@happier-dev/protocol/dist/sessionWorkState/sessionWorkStateRpc.js.map +1 -1
  193. package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts +2 -1
  194. package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts.map +1 -1
  195. package/node_modules/@happier-dev/protocol/dist/spawnSession.js +2 -1
  196. package/node_modules/@happier-dev/protocol/dist/spawnSession.js.map +1 -1
  197. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.d.ts +20 -0
  198. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.d.ts.map +1 -0
  199. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.js +21 -0
  200. package/node_modules/@happier-dev/protocol/dist/structuredMessages/executionRunCompletionV1.js.map +1 -0
  201. package/node_modules/@happier-dev/protocol/dist/updates.d.ts +35 -0
  202. package/node_modules/@happier-dev/protocol/dist/updates.d.ts.map +1 -1
  203. package/node_modules/@happier-dev/protocol/dist/updates.js +2 -0
  204. package/node_modules/@happier-dev/protocol/dist/updates.js.map +1 -1
  205. package/package.json +1 -1
  206. package/scripts/dev_cli_build_ownership.test.mjs +3 -1
  207. package/scripts/dev_external_server_flags.test.mjs +23 -5
  208. package/scripts/ghops.test.mjs +9 -3
  209. package/scripts/provision/linux-ubuntu-provision.sh +5 -0
  210. package/scripts/provision/linux-ubuntu-provision.test.mjs +3 -1
  211. package/scripts/self_host_launchd.real.integration.test.mjs +5 -3
  212. package/scripts/self_host_runtime.mjs +10 -9
  213. package/scripts/self_host_runtime.test.mjs +2 -2
  214. package/scripts/utils/dev/expo_dev.buildEnv.test.mjs +14 -0
  215. package/scripts/utils/dev/expo_dev.mjs +24 -1
  216. package/scripts/utils/dev_targets/mutagen_project.mjs +4 -1
  217. package/scripts/utils/dev_targets/mutagen_project.test.mjs +2 -1
  218. package/scripts/utils/dev_targets/remote_commands.mjs +5 -2
  219. package/scripts/utils/dev_targets/remote_commands.test.mjs +5 -2
  220. package/scripts/utils/dev_targets/supervisor.mjs +1 -0
  221. package/scripts/utils/dev_targets/supervisor.test.mjs +5 -0
  222. package/scripts/utils/server/apply_runtime_server_sqlite_env.test.mjs +2 -2
  223. package/scripts/utils/server/resolve_stack_server_port.test.mjs +3 -3
@@ -248,7 +248,15 @@ export const SessionEventsGetInputSchema = z.object({
248
248
  includeRaw: z.boolean().optional(),
249
249
  maxTextChars: z.number().int().min(0).max(4000).optional(),
250
250
  maxPayloadChars: z.number().int().min(0).max(32768).optional(),
251
- }).passthrough();
251
+ }).passthrough().superRefine((value, ctx) => {
252
+ if (value.sidechainId && value.scope !== 'sidechain') {
253
+ ctx.addIssue({
254
+ code: z.ZodIssueCode.custom,
255
+ message: 'scope must be sidechain when sidechainId is provided',
256
+ path: ['scope'],
257
+ });
258
+ }
259
+ });
252
260
  const SessionWaitIdleInputSchema = z.object({
253
261
  sessionId: z.string().min(1),
254
262
  timeoutSeconds: z.number().int().min(1).max(3600).optional(),
@@ -290,6 +298,8 @@ const IntentStartCommonSchema = z.object({
290
298
  // Optional per-target override keyed by backend target key (e.g. { "agent:codex": "openai-codex:team" }).
291
299
  // A per-target entry wins over the blanket `connectedServices` for that target.
292
300
  connectedServicesByBackendTargetKey: z.record(z.string().min(1), z.unknown()).optional(),
301
+ waitForCompletion: z.boolean().optional(),
302
+ waitTimeoutSeconds: z.number().int().min(1).optional(),
293
303
  }).passthrough();
294
304
  const PlanStartInputSchema = IntentStartCommonSchema.extend({
295
305
  permissionMode: ExecutionRunActionPermissionModeSchema.default('read_only'),
@@ -298,7 +308,7 @@ const PlanStartInputSchema = IntentStartCommonSchema.extend({
298
308
  ioMode: z.enum(['request_response', 'streaming']).default('request_response'),
299
309
  }).passthrough();
300
310
  const DelegateStartInputSchema = IntentStartCommonSchema.extend({
301
- permissionMode: ExecutionRunActionPermissionModeSchema.default('workspace_write'),
311
+ permissionMode: ExecutionRunActionPermissionModeSchema.optional(),
302
312
  retentionPolicy: z.enum(['ephemeral', 'resumable']).default('ephemeral'),
303
313
  runClass: z.enum(['bounded', 'long_lived']).default('bounded'),
304
314
  ioMode: z.enum(['request_response', 'streaming']).default('request_response'),
@@ -341,6 +351,8 @@ const ExecutionRunStartInputSchema = z.object({
341
351
  // at the action boundary. Omit to use the account's configured default exactly as stored (literal:
342
352
  // a profile default binds to that profile, a pool default binds to that pool — no silent upgrade).
343
353
  connectedServices: z.unknown().optional(),
354
+ waitForCompletion: z.boolean().optional(),
355
+ waitTimeoutSeconds: z.number().int().min(1).optional(),
344
356
  }).passthrough();
345
357
  const ExecutionRunGetInputSchema = ExecutionRunIdInputSchema.extend({
346
358
  includeStructured: z.boolean().optional(),
@@ -657,6 +669,7 @@ const ActionOptionsResolveInputSchema = z.object({
657
669
  sessionId: z.string().min(1).optional(),
658
670
  limit: z.number().int().min(1).max(200).optional(),
659
671
  query: z.string().trim().optional(),
672
+ draftInput: z.record(z.string(), z.unknown()).optional(),
660
673
  }).passthrough().superRefine((value, ctx) => {
661
674
  const actionId = typeof value.actionId === 'string' ? value.actionId.trim() : '';
662
675
  const fieldPath = typeof value.fieldPath === 'string' ? value.fieldPath.trim() : '';
@@ -957,7 +970,8 @@ export const ACTION_SPECS = Object.freeze([
957
970
  { path: 'actionId', title: 'Action id', description: 'Optional when optionsSourceId is provided directly.', widget: 'text' },
958
971
  { path: 'fieldPath', title: 'Field path', description: 'Dot-path for the action input field.', widget: 'text' },
959
972
  { path: 'optionsSourceId', title: 'Options source id', description: 'Direct options source lookup when known.', widget: 'text' },
960
- { path: 'sessionId', title: 'Session id', description: 'Needed for session-scoped option sources.', widget: 'text' },
973
+ { path: 'sessionId', title: 'Session id', description: 'Omit to use the current invoking session.', widget: 'text' },
974
+ { path: 'draftInput', title: 'Partial action input', description: 'Partial input for dependent options, for example { "backendTargetKeys": ["agent:pi"] } when resolving a model.', widget: 'textarea' },
961
975
  { path: 'query', title: 'Query filter', description: 'Optional search text to filter the returned options.', widget: 'text' },
962
976
  { path: 'limit', title: 'Limit', description: 'Maximum number of options to return.', widget: 'text' },
963
977
  ],
@@ -1043,7 +1057,7 @@ export const ACTION_SPECS = Object.freeze([
1043
1057
  ],
1044
1058
  },
1045
1059
  examples: {
1046
- voice: { argsExample: '{"sessionId":"{{sessionId}}","engineIds":["codex"],"instructions":"Review this.","changeType":"uncommitted","base":{"kind":"none"}}' },
1060
+ voice: { argsExample: '{"engineIds":["codex"],"instructions":"Review this.","changeType":"uncommitted","base":{"kind":"none"}}' },
1047
1061
  },
1048
1062
  surfaces: {
1049
1063
  ui_button: true,
@@ -1114,7 +1128,7 @@ export const ACTION_SPECS = Object.freeze([
1114
1128
  ],
1115
1129
  },
1116
1130
  examples: {
1117
- voice: { argsExample: '{"sessionId":"{{sessionId}}","backendTargetKeys":["agent:codex"],"instructions":"Plan the changes."}' },
1131
+ voice: { argsExample: '{"backendTargetKeys":["agent:codex"],"instructions":"Plan the changes."}' },
1118
1132
  },
1119
1133
  surfaces: {
1120
1134
  ui_button: true,
@@ -1192,7 +1206,7 @@ export const ACTION_SPECS = Object.freeze([
1192
1206
  ],
1193
1207
  },
1194
1208
  examples: {
1195
- voice: { argsExample: '{"sessionId":"{{sessionId}}","backendTargetKeys":["agent:codex"],"instructions":"Delegate the task."}' },
1209
+ voice: { argsExample: '{"backendTargetKeys":["agent:codex"],"instructions":"Delegate the task."}' },
1196
1210
  },
1197
1211
  surfaces: {
1198
1212
  ui_button: true,
@@ -1249,7 +1263,7 @@ export const ACTION_SPECS = Object.freeze([
1249
1263
  ],
1250
1264
  },
1251
1265
  examples: {
1252
- voice: { argsExample: '{"sessionId":"{{sessionId}}","backendTargetKeys":["agent:codex"],"instructions":"Start the voice assistant for this workspace."}' },
1266
+ voice: { argsExample: '{"backendTargetKeys":["agent:codex"],"instructions":"Start the voice assistant for this workspace."}' },
1253
1267
  },
1254
1268
  surfaces: {
1255
1269
  ui_button: false,
@@ -1272,7 +1286,7 @@ export const ACTION_SPECS = Object.freeze([
1272
1286
  bindings: { mcpToolName: 'execution_run_start' },
1273
1287
  examples: {
1274
1288
  mcp: {
1275
- argsExample: '{"sessionId":"{{sessionId}}","intent":"voice_agent","backendTarget":{"kind":"builtInAgent","agentId":"codex"},"instructions":"Summarize recent changes.","permissionMode":"read_only","retentionPolicy":"ephemeral","runClass":"bounded","ioMode":"request_response"}',
1289
+ argsExample: '{"intent":"voice_agent","backendTarget":{"kind":"builtInAgent","agentId":"codex"},"instructions":"Summarize recent changes.","permissionMode":"read_only","retentionPolicy":"ephemeral","runClass":"bounded","ioMode":"request_response"}',
1276
1290
  },
1277
1291
  },
1278
1292
  surfaces: {
@@ -1387,7 +1401,7 @@ export const ACTION_SPECS = Object.freeze([
1387
1401
  ui_slash_command: false,
1388
1402
  voice_tool: true,
1389
1403
  voice_action_block: true,
1390
- session_agent: false,
1404
+ session_agent: true,
1391
1405
  mcp: true,
1392
1406
  cli: true,
1393
1407
  },