@opencode/client 0.0.0-dev-1302 → 0.0.0-dev-1304

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 (67) hide show
  1. package/dist/chunks/{contract-xc262c29.js → service-2xxned0e.js} +6 -6
  2. package/dist/chunks/{contract-k08hsd4a.js → service-49q9zpks.js} +9 -9
  3. package/dist/chunks/{contract-5a9sek8y.js → service-5bwjzgt1.js} +20 -21
  4. package/dist/chunks/{contract-b6kzr061.js → service-6hqrj29e.js} +2 -2
  5. package/dist/chunks/{contract-2ny4vxct.js → service-8ye1ye6f.js} +2 -2
  6. package/dist/chunks/{contract-sqcsh66p.js → service-gecjxyvt.js} +4 -4
  7. package/dist/chunks/{contract-7fbxmab6.js → service-hymesegy.js} +2 -2
  8. package/dist/chunks/{contract-dvkthykg.js → service-mqnb71k6.js} +1 -1
  9. package/dist/chunks/{contract-18xz77sd.js → service-myz4ngx9.js} +5 -5
  10. package/dist/chunks/{contract-10v1erad.js → service-nmmc7qpz.js} +14 -15
  11. package/dist/chunks/{contract-ryy6kscr.js → service-ryy6kscr.js} +1 -1
  12. package/dist/chunks/{contract-j9cqx0dj.js → service-xafd70ys.js} +1 -1
  13. package/dist/contract.js +1 -1
  14. package/dist/effect/api/api.d.ts +38 -38
  15. package/dist/effect/client.d.ts +7 -239
  16. package/dist/effect/client.js +8 -8
  17. package/dist/effect/generated/client-error.js +1 -1
  18. package/dist/effect/generated/client.d.ts +8 -240
  19. package/dist/effect/generated/client.js +3 -3
  20. package/dist/effect/generated/index.js +4 -4
  21. package/dist/effect/index.js +8 -8
  22. package/dist/effect/rpc.js +4 -4
  23. package/dist/effect/service.js +6 -6
  24. package/dist/promise/client.d.ts +7 -7
  25. package/dist/promise/client.js +7 -7
  26. package/dist/promise/generated/client-error.js +1 -1
  27. package/dist/promise/generated/client.d.ts +8 -8
  28. package/dist/promise/generated/client.js +2 -2
  29. package/dist/promise/generated/index.js +6 -6
  30. package/dist/promise/generated/types.d.ts +110 -124
  31. package/dist/promise/generated/types.js +3 -3
  32. package/dist/promise/index.js +11 -11
  33. package/dist/promise/media.d.ts +7 -7
  34. package/dist/promise/media.js +1 -1
  35. package/dist/promise/rpc.js +2 -2
  36. package/dist/promise/service.js +6 -6
  37. package/dist/pty-handoff.js +4 -4
  38. package/dist/rpc-runtime.js +1 -1
  39. package/dist/service-contender.js +1 -1
  40. package/dist/service-probe.js +3 -3
  41. package/dist/service-timing.js +1 -1
  42. package/dist/service-version.js +1 -1
  43. package/dist/service.js +1 -1
  44. package/dist/shared-events.js +3 -3
  45. package/dist/solid/connection.js +1 -1
  46. package/dist/solid/data.js +10 -10
  47. package/dist/solid/index.js +14 -14
  48. package/dist/solid/pty.js +1 -1
  49. package/dist/solid/retention.js +1 -1
  50. package/dist/solid/usage.js +1 -1
  51. package/package.json +4 -4
  52. /package/dist/chunks/{contract-3eaz3m83.js → service-3eaz3m83.js} +0 -0
  53. /package/dist/chunks/{contract-60xe5cbf.js → service-60xe5cbf.js} +0 -0
  54. /package/dist/chunks/{contract-6mptkzbc.js → service-6mptkzbc.js} +0 -0
  55. /package/dist/chunks/{contract-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
  56. /package/dist/chunks/{contract-6r38tsk5.js → service-6r38tsk5.js} +0 -0
  57. /package/dist/chunks/{contract-7f0py9js.js → service-7f0py9js.js} +0 -0
  58. /package/dist/chunks/{contract-8s2anffy.js → service-8s2anffy.js} +0 -0
  59. /package/dist/chunks/{contract-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
  60. /package/dist/chunks/{contract-js54wxgp.js → service-js54wxgp.js} +0 -0
  61. /package/dist/chunks/{contract-mwrzahmf.js → service-mwrzahmf.js} +0 -0
  62. /package/dist/chunks/{contract-qav6mfdz.js → service-qav6mfdz.js} +0 -0
  63. /package/dist/chunks/{contract-sxt88q69.js → service-sxt88q69.js} +0 -0
  64. /package/dist/chunks/{contract-ve4aws36.js → service-ve4aws36.js} +0 -0
  65. /package/dist/chunks/{contract-vyas3vgt.js → service-vyas3vgt.js} +0 -0
  66. /package/dist/chunks/{contract-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
  67. /package/dist/chunks/{contract-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ClientError3
3
- } from "../chunks/contract-7f0py9js.js";
4
- import"../chunks/contract-60xe5cbf.js";
5
- import"../chunks/contract-5a9sek8y.js";
6
- import"../chunks/contract-6mptkzbc.js";
7
- import"../chunks/contract-sqcsh66p.js";
8
- import"../chunks/contract-ryy6kscr.js";
9
- import"../chunks/contract-18xz77sd.js";
3
+ } from "../chunks/service-7f0py9js.js";
4
+ import"../chunks/service-60xe5cbf.js";
5
+ import"../chunks/service-5bwjzgt1.js";
6
+ import"../chunks/service-6mptkzbc.js";
7
+ import"../chunks/service-gecjxyvt.js";
8
+ import"../chunks/service-ryy6kscr.js";
9
+ import"../chunks/service-myz4ngx9.js";
10
10
  import {
11
11
  exports_client3
12
- } from "../chunks/contract-k08hsd4a.js";
12
+ } from "../chunks/service-49q9zpks.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -1,11 +1,11 @@
1
1
  import {
2
- make7,
2
+ make6,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/contract-18xz77sd.js";
6
- import"../chunks/contract-ryy6kscr.js";
5
+ } from "../chunks/service-myz4ngx9.js";
6
+ import"../chunks/service-ryy6kscr.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make7 as make
10
+ make6 as make
11
11
  };
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  spawnServiceContender2,
3
3
  contenderPool2
4
- } from "../chunks/contract-ve4aws36.js";
4
+ } from "../chunks/service-ve4aws36.js";
5
5
  import {
6
6
  defaultEnsureTiming2,
7
7
  ensureTiming2
8
- } from "../chunks/contract-xgnj2w4v.js";
8
+ } from "../chunks/service-xgnj2w4v.js";
9
9
  import {
10
10
  matchesVersion2
11
- } from "../chunks/contract-sxt88q69.js";
11
+ } from "../chunks/service-sxt88q69.js";
12
12
  import {
13
13
  decide2,
14
14
  fallback2,
15
15
  same2,
16
16
  probeResult2,
17
17
  headers2
18
- } from "../chunks/contract-2ny4vxct.js";
18
+ } from "../chunks/service-8ye1ye6f.js";
19
19
  import {
20
20
  prepare2,
21
21
  environment2,
22
22
  complete2,
23
23
  clear2
24
- } from "../chunks/contract-7fbxmab6.js";
25
- import"../chunks/contract-qav6mfdz.js";
24
+ } from "../chunks/service-hymesegy.js";
25
+ import"../chunks/service-qav6mfdz.js";
26
26
 
27
27
  // src/effect/service.ts
28
28
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
@@ -96,13 +96,13 @@ export declare function make(options: ClientOptions): {
96
96
  blob: {
97
97
  get: (input: import("./index.js").ExperimentalBlobGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalBlobGetOutput>;
98
98
  };
99
- schedule: {
100
- create: (input: import("./index.js").ExperimentalScheduleCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
101
- list: (input: import("./index.js").ExperimentalScheduleListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo[]>;
102
- get: (input: import("./index.js").ExperimentalScheduleGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
103
- pause: (input: import("./index.js").ExperimentalSchedulePauseInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
104
- resume: (input: import("./index.js").ExperimentalScheduleResumeInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
105
- delete: (input: import("./index.js").ExperimentalScheduleDeleteInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
99
+ automation: {
100
+ create: (input: import("./index.js").ExperimentalAutomationCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").AutomationInfo>;
101
+ list: (input?: import("./index.js").ExperimentalAutomationListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").AutomationInfo[]>;
102
+ get: (input: import("./index.js").ExperimentalAutomationGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").AutomationInfo>;
103
+ pause: (input: import("./index.js").ExperimentalAutomationPauseInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").AutomationInfo>;
104
+ resume: (input: import("./index.js").ExperimentalAutomationResumeInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").AutomationInfo>;
105
+ delete: (input: import("./index.js").ExperimentalAutomationDeleteInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
106
106
  };
107
107
  artifacts: {
108
108
  providers: (input?: import("./index.js").ExperimentalArtifactsProvidersInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsProvidersOutput>;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/contract-xc262c29.js";
5
- import"../chunks/contract-vyas3vgt.js";
6
- import"../chunks/contract-10v1erad.js";
7
- import"../chunks/contract-js54wxgp.js";
8
- import"../chunks/contract-j9cqx0dj.js";
9
- import"../chunks/contract-b6kzr061.js";
10
- import"../chunks/contract-sqcsh66p.js";
4
+ } from "../chunks/service-2xxned0e.js";
5
+ import"../chunks/service-vyas3vgt.js";
6
+ import"../chunks/service-nmmc7qpz.js";
7
+ import"../chunks/service-js54wxgp.js";
8
+ import"../chunks/service-xafd70ys.js";
9
+ import"../chunks/service-6hqrj29e.js";
10
+ import"../chunks/service-gecjxyvt.js";
11
11
  export {
12
12
  exports_client as OpenCode,
13
13
  make2 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError2
3
- } from "../../chunks/contract-js54wxgp.js";
3
+ } from "../../chunks/service-js54wxgp.js";
4
4
  export {
5
5
  ClientError2 as ClientError
6
6
  };
@@ -1,4 +1,4 @@
1
- import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalBlobGetInput, ExperimentalBlobGetOutput, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ExperimentalJobListInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "./types.js";
1
+ import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionGenerateInput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, ExperimentalSessionStatsInput, ExperimentalSessionImportInput, ExperimentalSessionExportInput, ExperimentalSessionSkillInput, ExperimentalSessionWaitInput, ExperimentalSessionInstructionsEntryListInput, ExperimentalSessionInstructionsEntryPutInput, ExperimentalSessionInstructionsEntryRemoveInput, ExperimentalSessionLogInput, ExperimentalSessionLogOutput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, ExperimentalGenerateTextInput, ExperimentalGenerateImageInput, ExperimentalGenerateVideoCreateInput, ExperimentalGenerateVideoGetInput, ExperimentalGenerateDecisionsInput, ExperimentalVoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, ExperimentalIntegrationWellknownAddInput, McpListInput, McpListOutput, McpResourceCatalogInput, McpResourceCatalogOutput, ExperimentalMcpAddInput, ExperimentalMcpRemoveInput, ExperimentalMcpConnectInput, ExperimentalMcpDisconnectInput, ExperimentalMcpClientTokenInput, ExperimentalMcpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, ExperimentalFileWriteInput, ExperimentalFileWriteOutput, ExperimentalFileWatchInput, ExperimentalFileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ExperimentalMediaGetInput, ExperimentalMediaGetOutput, ExperimentalBlobGetInput, ExperimentalBlobGetOutput, ExperimentalAutomationCreateInput, ExperimentalAutomationListInput, ExperimentalAutomationGetInput, ExperimentalAutomationPauseInput, ExperimentalAutomationResumeInput, ExperimentalAutomationDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, ExperimentalJobListInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, ExperimentalMigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ExperimentalUsageLimitsInput, ExperimentalUsageLimitsOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ExperimentalConfigUpdateInput } from "./types.js";
2
2
  export interface ClientOptions {
3
3
  readonly baseUrl: string;
4
4
  readonly fetch?: typeof globalThis.fetch;
@@ -103,13 +103,13 @@ export declare function make(options: ClientOptions): {
103
103
  blob: {
104
104
  get: (input: ExperimentalBlobGetInput, requestOptions?: RequestOptions) => Promise<ExperimentalBlobGetOutput>;
105
105
  };
106
- schedule: {
107
- create: (input: ExperimentalScheduleCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
108
- list: (input: ExperimentalScheduleListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo[]>;
109
- get: (input: ExperimentalScheduleGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
110
- pause: (input: ExperimentalSchedulePauseInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
111
- resume: (input: ExperimentalScheduleResumeInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
112
- delete: (input: ExperimentalScheduleDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
106
+ automation: {
107
+ create: (input: ExperimentalAutomationCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").AutomationInfo>;
108
+ list: (input?: ExperimentalAutomationListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").AutomationInfo[]>;
109
+ get: (input: ExperimentalAutomationGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").AutomationInfo>;
110
+ pause: (input: ExperimentalAutomationPauseInput, requestOptions?: RequestOptions) => Promise<import("./types.js").AutomationInfo>;
111
+ resume: (input: ExperimentalAutomationResumeInput, requestOptions?: RequestOptions) => Promise<import("./types.js").AutomationInfo>;
112
+ delete: (input: ExperimentalAutomationDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
113
113
  };
114
114
  artifacts: {
115
115
  providers: (input?: ExperimentalArtifactsProvidersInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsProvidersOutput>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make3
3
- } from "../../chunks/contract-10v1erad.js";
4
- import"../../chunks/contract-js54wxgp.js";
3
+ } from "../../chunks/service-nmmc7qpz.js";
4
+ import"../../chunks/service-js54wxgp.js";
5
5
  export {
6
6
  make3 as make
7
7
  };
@@ -1,10 +1,10 @@
1
- import"../../chunks/contract-vyas3vgt.js";
1
+ import"../../chunks/service-vyas3vgt.js";
2
2
  import {
3
3
  exports_client2
4
- } from "../../chunks/contract-10v1erad.js";
4
+ } from "../../chunks/service-nmmc7qpz.js";
5
5
  import {
6
6
  ClientError2
7
- } from "../../chunks/contract-js54wxgp.js";
7
+ } from "../../chunks/service-js54wxgp.js";
8
8
  import {
9
9
  isInvalidRequestError2,
10
10
  isUnauthorizedError2,
@@ -44,17 +44,18 @@ import {
44
44
  isPtyNotFoundError2,
45
45
  isPtyFeatureUnsupportedError2,
46
46
  isBlobNotFoundError2,
47
- isScheduleNotFoundError2,
47
+ isAutomationNotFoundError2,
48
48
  isArtifactNotFoundError2,
49
49
  isShellNotFoundError2,
50
50
  isWorktreeError2,
51
51
  isVcsInitNotSupportedError2
52
- } from "../../chunks/contract-b6kzr061.js";
52
+ } from "../../chunks/service-6hqrj29e.js";
53
53
  export {
54
54
  ClientError2 as ClientError,
55
55
  exports_client2 as OpenCode,
56
56
  isAgentNotFoundError2 as isAgentNotFoundError,
57
57
  isArtifactNotFoundError2 as isArtifactNotFoundError,
58
+ isAutomationNotFoundError2 as isAutomationNotFoundError,
58
59
  isBlobNotFoundError2 as isBlobNotFoundError,
59
60
  isCommandExecutionError2 as isCommandExecutionError,
60
61
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -84,7 +85,6 @@ export {
84
85
  isPtyNotFoundError2 as isPtyNotFoundError,
85
86
  isRpcError2 as isRpcError,
86
87
  isRpcInternalError2 as isRpcInternalError,
87
- isScheduleNotFoundError2 as isScheduleNotFoundError,
88
88
  isServiceUnavailableError2 as isServiceUnavailableError,
89
89
  isSessionBusyError2 as isSessionBusyError,
90
90
  isSessionNotFoundError2 as isSessionNotFoundError,
@@ -468,35 +468,33 @@ export type PersistentPtyHandoff = {
468
468
  ticket: string;
469
469
  expiresAt: number;
470
470
  };
471
- export type ScheduleID = string;
472
- export type ScheduleDuration = string;
473
- export type ScheduleWhenAt = {
471
+ export type AutomationID = string;
472
+ export type AutomationTriggerAt = {
474
473
  type: "at";
475
474
  at: string;
476
475
  tz?: string;
477
476
  };
478
- export type ScheduleWhenCron = {
477
+ export type AutomationDuration = string;
478
+ export type AutomationTriggerCron = {
479
479
  type: "cron";
480
480
  cron: string;
481
481
  tz?: string;
482
482
  };
483
- export type ScheduleConditionShell = {
484
- type: "shell";
485
- run: string;
486
- is?: string;
487
- matches?: string;
488
- changes?: boolean;
483
+ export type AutomationTriggerEvent = {
484
+ type: "event";
485
+ server: string;
486
+ event: string;
487
+ args?: {
488
+ [x: string]: JsonValue;
489
+ };
489
490
  };
490
- export type ScheduleConditionCode = {
491
+ export type AutomationActionCode = {
491
492
  type: "code";
492
493
  code: string;
494
+ args?: JsonValue;
493
495
  };
494
- export type ScheduleActionPrompt = {
495
- type: "prompt";
496
- prompt: string;
497
- };
498
- export type ScheduleStatus = "active" | "paused" | "done";
499
- export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
496
+ export type AutomationStatus = "active" | "paused" | "done";
497
+ export type AutomationOutcome = "fired" | "late" | "skipped" | "disabled" | "failed" | "expired";
500
498
  export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
501
499
  export type ArtifactID = string;
502
500
  export type ArtifactTime = {
@@ -621,6 +619,13 @@ export type PluginInfo = {
621
619
  features: PluginFeatures;
622
620
  state: PluginState;
623
621
  };
622
+ export type AutomationTarget = {
623
+ session: SessionID;
624
+ subagent?: never;
625
+ } | {
626
+ subagent: AgentID;
627
+ session?: never;
628
+ };
624
629
  export type SessionForkBoundary = {
625
630
  type: "before";
626
631
  messageID: SessionMessageID;
@@ -1265,18 +1270,11 @@ export type FormMultiselectField1 = {
1265
1270
  export type FormAnswer1 = {
1266
1271
  [x: string]: FormValue1;
1267
1272
  };
1268
- export type ScheduleWhenIn = {
1269
- type: "in";
1270
- in: ScheduleDuration;
1271
- tz?: string;
1272
- };
1273
- export type ScheduleWhenEvery = {
1273
+ export type AutomationTriggerEvery = {
1274
1274
  type: "every";
1275
- every: ScheduleDuration;
1275
+ every: AutomationDuration;
1276
1276
  tz?: string;
1277
1277
  };
1278
- export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
1279
- export type ScheduleAction = ScheduleActionPrompt;
1280
1278
  export type ArtifactProvider = {
1281
1279
  id: string;
1282
1280
  name: string;
@@ -1474,6 +1472,11 @@ export type ModelVariant = {
1474
1472
  };
1475
1473
  };
1476
1474
  export type PermissionRuleset = Array<PermissionRule>;
1475
+ export type AutomationActionPrompt = {
1476
+ type: "prompt";
1477
+ prompt: string;
1478
+ to: AutomationTarget;
1479
+ };
1477
1480
  export type UsageLimitsBudget = {
1478
1481
  id: string;
1479
1482
  limit: MoneyUSD;
@@ -3146,7 +3149,7 @@ export type FormReplied = {
3146
3149
  answer: FormAnswer1;
3147
3150
  };
3148
3151
  };
3149
- export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
3152
+ export type AutomationTrigger = AutomationTriggerAt | AutomationTriggerEvery | AutomationTriggerCron | AutomationTriggerEvent;
3150
3153
  export type ArtifactContent = {
3151
3154
  info: ArtifactInfo;
3152
3155
  files: {
@@ -3590,12 +3593,13 @@ export type ConfigEntry = {
3590
3593
  all_flags?: boolean;
3591
3594
  todo?: boolean;
3592
3595
  media_blob?: boolean;
3593
- schedules?: boolean;
3596
+ automations?: boolean;
3594
3597
  artifacts?: boolean;
3595
3598
  video_generate?: boolean;
3596
3599
  console_watches?: boolean;
3597
3600
  mcp_events?: boolean;
3598
3601
  full_codemode?: boolean;
3602
+ schedules?: boolean;
3599
3603
  part_rows?: boolean;
3600
3604
  image_generate?: boolean | {
3601
3605
  model?: string | {
@@ -3617,6 +3621,7 @@ export type ConfigEntry = {
3617
3621
  type: "directory";
3618
3622
  path: AbsolutePath;
3619
3623
  };
3624
+ export type AutomationAction = AutomationActionPrompt | AutomationActionCode;
3620
3625
  export type UsageLimitsInfo = {
3621
3626
  workspace: {
3622
3627
  id: string;
@@ -3698,28 +3703,6 @@ export type CredentialEntry = {
3698
3703
  value: CredentialValue;
3699
3704
  };
3700
3705
  export type FormFields1 = [FormField1, ...Array<FormField1>];
3701
- export type ScheduleInfo = {
3702
- id: ScheduleID;
3703
- sessionID?: SessionID;
3704
- name?: string;
3705
- when: ScheduleWhen;
3706
- tz: string;
3707
- if?: ScheduleCondition;
3708
- until?: ScheduleCondition;
3709
- action: ScheduleAction;
3710
- status: ScheduleStatus;
3711
- nextDueAt?: number;
3712
- endsAt?: number;
3713
- remainingRuns?: number;
3714
- runCount: number;
3715
- lastFiredAt?: number;
3716
- lastOutcome?: ScheduleOutcome;
3717
- lastOutput?: string;
3718
- time: {
3719
- created: number;
3720
- updated: number;
3721
- };
3722
- };
3723
3706
  export type AgentInfo = {
3724
3707
  id: AgentID;
3725
3708
  name: string;
@@ -3740,6 +3723,28 @@ export type SessionsResponse = {
3740
3723
  next?: SessionsCursor | null;
3741
3724
  };
3742
3725
  };
3726
+ export type AutomationInfo = {
3727
+ id: AutomationID;
3728
+ name: string;
3729
+ projectID: ProjectID;
3730
+ sessionID?: SessionID;
3731
+ directory: string;
3732
+ trigger: AutomationTrigger;
3733
+ tz: string;
3734
+ action: AutomationAction;
3735
+ expires?: number;
3736
+ status: AutomationStatus;
3737
+ nextDueAt?: number;
3738
+ runCount: number;
3739
+ lastRunAt?: number;
3740
+ lastOutcome?: AutomationOutcome;
3741
+ lastOutput?: string;
3742
+ state?: JsonValue;
3743
+ time: {
3744
+ created: number;
3745
+ updated: number;
3746
+ };
3747
+ };
3743
3748
  export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
3744
3749
  export type SessionMessageAssistant = {
3745
3750
  id: SessionMessageID;
@@ -4130,12 +4135,12 @@ export type BlobNotFoundError = {
4130
4135
  readonly message: string;
4131
4136
  };
4132
4137
  export declare const isBlobNotFoundError: (value: unknown) => value is BlobNotFoundError;
4133
- export type ScheduleNotFoundError = {
4134
- readonly _tag: "ScheduleNotFoundError";
4135
- readonly scheduleID: string;
4138
+ export type AutomationNotFoundError = {
4139
+ readonly _tag: "AutomationNotFoundError";
4140
+ readonly automationID: string;
4136
4141
  readonly message: string;
4137
4142
  };
4138
- export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
4143
+ export declare const isAutomationNotFoundError: (value: unknown) => value is AutomationNotFoundError;
4139
4144
  export type ArtifactNotFoundError = {
4140
4145
  readonly _tag: "ArtifactNotFoundError";
4141
4146
  readonly artifactID: string;
@@ -5630,98 +5635,79 @@ export type ExperimentalBlobGetInput = {
5630
5635
  readonly id: string;
5631
5636
  };
5632
5637
  export type ExperimentalBlobGetOutput = globalThis.Uint8Array;
5633
- export type ExperimentalScheduleCreateInput = {
5634
- readonly sessionID: string;
5635
- readonly name?: string | undefined;
5636
- readonly when?: ({
5637
- readonly in: string;
5638
- readonly at?: never;
5639
- readonly every?: never;
5640
- readonly cron?: never;
5641
- readonly tz?: string;
5642
- } | {
5638
+ export type ExperimentalAutomationCreateInput = {
5639
+ readonly sessionID?: string | undefined;
5640
+ readonly directory?: string | undefined;
5641
+ readonly name: string;
5642
+ readonly trigger: {
5643
+ readonly type: "at";
5643
5644
  readonly at: string;
5644
- readonly in?: never;
5645
- readonly every?: never;
5646
- readonly cron?: never;
5647
5645
  readonly tz?: string;
5648
5646
  } | {
5647
+ readonly type: "every";
5649
5648
  readonly every: string;
5650
- readonly in?: never;
5651
- readonly at?: never;
5652
- readonly cron?: never;
5653
5649
  readonly tz?: string;
5654
5650
  } | {
5651
+ readonly type: "cron";
5655
5652
  readonly cron: string;
5656
- readonly in?: never;
5657
- readonly at?: never;
5658
- readonly every?: never;
5659
5653
  readonly tz?: string;
5660
- }) | undefined;
5661
- readonly if?: ({
5662
- readonly run: string;
5663
- readonly is?: string;
5664
- readonly matches?: string;
5665
- readonly changes?: boolean;
5666
- readonly code?: never;
5667
5654
  } | {
5668
- readonly code: string;
5669
- readonly run?: never;
5670
- readonly is?: never;
5671
- readonly matches?: never;
5672
- readonly changes?: never;
5673
- }) | undefined;
5674
- readonly until?: ({
5675
- readonly run: string;
5676
- readonly is?: string;
5677
- readonly matches?: string;
5678
- readonly changes?: boolean;
5679
- readonly code?: never;
5655
+ readonly type: "event";
5656
+ readonly server: string;
5657
+ readonly event: string;
5658
+ readonly args?: {
5659
+ readonly [x: string]: JsonValue;
5660
+ };
5661
+ };
5662
+ readonly action: {
5663
+ readonly type: "prompt";
5664
+ readonly prompt: string;
5665
+ readonly to?: {
5666
+ readonly session: string;
5667
+ readonly subagent?: never;
5668
+ } | {
5669
+ readonly subagent: string;
5670
+ readonly session?: never;
5671
+ };
5680
5672
  } | {
5673
+ readonly type: "code";
5681
5674
  readonly code: string;
5682
- readonly run?: never;
5683
- readonly is?: never;
5684
- readonly matches?: never;
5685
- readonly changes?: never;
5686
- }) | undefined;
5687
- readonly ends?: {
5688
- readonly after?: string;
5689
- readonly at?: string;
5690
- readonly times?: number;
5691
- } | undefined;
5692
- readonly prompt: string;
5675
+ readonly args?: JsonValue;
5676
+ };
5677
+ readonly expires?: string | undefined;
5693
5678
  };
5694
- export type ExperimentalScheduleCreateOutput = {
5695
- data: ScheduleInfo;
5679
+ export type ExperimentalAutomationCreateOutput = {
5680
+ data: AutomationInfo;
5696
5681
  }["data"];
5697
- export type ExperimentalScheduleListInput = {
5698
- readonly sessionID: string;
5682
+ export type ExperimentalAutomationListInput = {
5683
+ readonly sessionID?: string | undefined;
5684
+ readonly directory?: string | undefined;
5699
5685
  };
5700
- export type ExperimentalScheduleListOutput = {
5701
- data: Array<ScheduleInfo>;
5686
+ export type ExperimentalAutomationListOutput = {
5687
+ data: Array<AutomationInfo>;
5702
5688
  }["data"];
5703
- export type ExperimentalScheduleGetInput = {
5704
- readonly scheduleID: string;
5689
+ export type ExperimentalAutomationGetInput = {
5690
+ readonly automationID: string;
5705
5691
  };
5706
- export type ExperimentalScheduleGetOutput = {
5707
- data: ScheduleInfo;
5692
+ export type ExperimentalAutomationGetOutput = {
5693
+ data: AutomationInfo;
5708
5694
  }["data"];
5709
- export type ExperimentalSchedulePauseInput = {
5710
- readonly scheduleID: string;
5695
+ export type ExperimentalAutomationPauseInput = {
5696
+ readonly automationID: string;
5711
5697
  };
5712
- export type ExperimentalSchedulePauseOutput = {
5713
- data: ScheduleInfo;
5698
+ export type ExperimentalAutomationPauseOutput = {
5699
+ data: AutomationInfo;
5714
5700
  }["data"];
5715
- export type ExperimentalScheduleResumeInput = {
5716
- readonly scheduleID: string;
5701
+ export type ExperimentalAutomationResumeInput = {
5702
+ readonly automationID: string;
5717
5703
  };
5718
- export type ExperimentalScheduleResumeOutput = {
5719
- data: ScheduleInfo;
5704
+ export type ExperimentalAutomationResumeOutput = {
5705
+ data: AutomationInfo;
5720
5706
  }["data"];
5721
- export type ExperimentalScheduleDeleteInput = {
5722
- readonly scheduleID: string;
5707
+ export type ExperimentalAutomationDeleteInput = {
5708
+ readonly automationID: string;
5723
5709
  };
5724
- export type ExperimentalScheduleDeleteOutput = void;
5710
+ export type ExperimentalAutomationDeleteOutput = void;
5725
5711
  export type ExperimentalArtifactsProvidersInput = {
5726
5712
  readonly location?: {
5727
5713
  readonly directory?: string | undefined;
@@ -37,15 +37,16 @@ import {
37
37
  isPtyNotFoundError2,
38
38
  isPtyFeatureUnsupportedError2,
39
39
  isBlobNotFoundError2,
40
- isScheduleNotFoundError2,
40
+ isAutomationNotFoundError2,
41
41
  isArtifactNotFoundError2,
42
42
  isShellNotFoundError2,
43
43
  isWorktreeError2,
44
44
  isVcsInitNotSupportedError2
45
- } from "../../chunks/contract-b6kzr061.js";
45
+ } from "../../chunks/service-6hqrj29e.js";
46
46
  export {
47
47
  isAgentNotFoundError2 as isAgentNotFoundError,
48
48
  isArtifactNotFoundError2 as isArtifactNotFoundError,
49
+ isAutomationNotFoundError2 as isAutomationNotFoundError,
49
50
  isBlobNotFoundError2 as isBlobNotFoundError,
50
51
  isCommandExecutionError2 as isCommandExecutionError,
51
52
  isCommandNotFoundError2 as isCommandNotFoundError,
@@ -75,7 +76,6 @@ export {
75
76
  isPtyNotFoundError2 as isPtyNotFoundError,
76
77
  isRpcError2 as isRpcError,
77
78
  isRpcInternalError2 as isRpcInternalError,
78
- isScheduleNotFoundError2 as isScheduleNotFoundError,
79
79
  isServiceUnavailableError2 as isServiceUnavailableError,
80
80
  isSessionBusyError2 as isSessionBusyError,
81
81
  isSessionNotFoundError2 as isSessionNotFoundError,