shuvcode 2.2.2-shuv.1 → 2.2.5-shuv.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/client.d.ts +10 -1
- package/client/generated/client.d.ts +10 -1
- package/client/generated/client.js +74 -2
- package/client/generated/types.d.ts +173 -12
- package/client/generated/types.js +2 -0
- package/client/index.d.ts +1 -0
- package/client/index.js +4 -4
- package/client/media.d.ts +365 -0
- package/client/media.js +43 -0
- package/package.json +13 -13
package/client/client.d.ts
CHANGED
|
@@ -97,6 +97,15 @@ export declare function make(options: ClientOptions): {
|
|
|
97
97
|
resume: (input: import("./index.js").ExperimentalScheduleResumeInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ScheduleInfo>;
|
|
98
98
|
delete: (input: import("./index.js").ExperimentalScheduleDeleteInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
99
99
|
};
|
|
100
|
+
artifacts: {
|
|
101
|
+
providers: (input?: import("./index.js").ExperimentalArtifactsProvidersInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsProvidersOutput>;
|
|
102
|
+
list: (input?: import("./index.js").ExperimentalArtifactsListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsListOutput>;
|
|
103
|
+
create: (input: import("./index.js").ExperimentalArtifactsCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsCreateOutput>;
|
|
104
|
+
get: (input: import("./index.js").ExperimentalArtifactsGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsGetOutput>;
|
|
105
|
+
update: (input: import("./index.js").ExperimentalArtifactsUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsUpdateOutput>;
|
|
106
|
+
delete: (input: import("./index.js").ExperimentalArtifactsDeleteInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
107
|
+
view: (input: import("./index.js").ExperimentalArtifactsViewInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalArtifactsViewOutput>;
|
|
108
|
+
};
|
|
100
109
|
migration: {
|
|
101
110
|
v1: {
|
|
102
111
|
status: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ExperimentalMigrationV1StatusOutput>;
|
|
@@ -341,6 +350,6 @@ export declare function make(options: ClientOptions): {
|
|
|
341
350
|
call: (input: import("./index.js").RpcCallInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").RpcOutput>;
|
|
342
351
|
};
|
|
343
352
|
event: {
|
|
344
|
-
subscribe<Type extends Exclude<"agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.cancelled" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "server.connected" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.subagent.prepared" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`, "server.connected"> = "agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.cancelled" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.subagent.prepared" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(options?: SharedEvents.SubscribeOptions<Type> | undefined): AsyncIterable<([Extract<Type, "agent.updated">] extends [never] ? never : import("./index.js").AgentUpdated) | ([Extract<Type, "command.updated">] extends [never] ? never : import("./index.js").CommandUpdated) | ([Extract<Type, "config.updated">] extends [never] ? never : import("./index.js").ConfigUpdated) | ([Extract<Type, "credential.switched">] extends [never] ? never : import("./index.js").CredentialSwitched) | ([Extract<Type, "credential.updated">] extends [never] ? never : import("./index.js").CredentialUpdated) | ([Extract<Type, "filesystem.changed">] extends [never] ? never : import("./index.js").FilesystemChanged) | ([Extract<Type, "form.cancelled">] extends [never] ? never : import("./index.js").FormCancelled) | ([Extract<Type, "form.created">] extends [never] ? never : import("./index.js").FormCreated) | ([Extract<Type, "form.replied">] extends [never] ? never : import("./index.js").FormReplied) | ([Extract<Type, "installation.update-available">] extends [never] ? never : import("./index.js").InstallationUpdateAvailable) | ([Extract<Type, "installation.updated">] extends [never] ? never : import("./index.js").InstallationUpdated) | ([Extract<Type, "integration.updated">] extends [never] ? never : import("./index.js").IntegrationUpdated) | ([Extract<Type, "location.shutdown">] extends [never] ? never : import("./index.js").LocationShutdown) | ([Extract<Type, "mcp.resources.changed">] extends [never] ? never : import("./index.js").McpResourcesChanged) | ([Extract<Type, "mcp.status.changed">] extends [never] ? never : import("./index.js").McpStatusChanged) | ([Extract<Type, "model.updated">] extends [never] ? never : import("./index.js").ModelUpdated) | ([Extract<Type, "models-dev.refreshed">] extends [never] ? never : import("./index.js").ModelsDevRefreshed) | ([Extract<Type, "permission.asked">] extends [never] ? never : import("./index.js").PermissionAsked) | ([Extract<Type, "permission.cancelled">] extends [never] ? never : import("./index.js").PermissionCancelled) | ([Extract<Type, "permission.replied">] extends [never] ? never : import("./index.js").PermissionReplied) | ([Extract<Type, "persistent-pty.added">] extends [never] ? never : import("./index.js").PersistentPtyAdded) | ([Extract<Type, "persistent-pty.removed">] extends [never] ? never : import("./index.js").PersistentPtyRemoved) | ([Extract<Type, "plugin.updated">] extends [never] ? never : import("./index.js").PluginUpdated) | ([Extract<Type, "project.updated">] extends [never] ? never : import("./index.js").ProjectUpdated) | ([Extract<Type, "provider.updated">] extends [never] ? never : import("./index.js").ProviderUpdated) | ([Extract<Type, "pty.created">] extends [never] ? never : import("./index.js").PtyCreated) | ([Extract<Type, "pty.deleted">] extends [never] ? never : import("./index.js").PtyDeleted) | ([Extract<Type, "pty.exited">] extends [never] ? never : import("./index.js").PtyExited) | ([Extract<Type, "pty.updated">] extends [never] ? never : import("./index.js").PtyUpdated) | ([Extract<Type, "reference.updated">] extends [never] ? never : import("./index.js").ReferenceUpdated) | ([Extract<Type, "session.agent.selected">] extends [never] ? never : import("./index.js").SessionAgentSelected) | ([Extract<Type, "session.archived">] extends [never] ? never : import("./index.js").SessionArchived) | ([Extract<Type, "session.compaction.delta">] extends [never] ? never : import("./index.js").SessionCompactionDelta) | ([Extract<Type, "session.compaction.ended">] extends [never] ? never : import("./index.js").SessionCompactionEnded) | ([Extract<Type, "session.compaction.failed">] extends [never] ? never : import("./index.js").SessionCompactionFailed) | ([Extract<Type, "session.compaction.started">] extends [never] ? never : import("./index.js").SessionCompactionStarted) | ([Extract<Type, "session.created">] extends [never] ? never : import("./index.js").SessionCreated) | ([Extract<Type, "session.deleted">] extends [never] ? never : import("./index.js").SessionDeleted) | ([Extract<Type, "session.execution.failed">] extends [never] ? never : import("./index.js").SessionExecutionFailed) | ([Extract<Type, "session.execution.interrupted">] extends [never] ? never : import("./index.js").SessionExecutionInterrupted) | ([Extract<Type, "session.execution.started">] extends [never] ? never : import("./index.js").SessionExecutionStarted) | ([Extract<Type, "session.execution.succeeded">] extends [never] ? never : import("./index.js").SessionExecutionSucceeded) | ([Extract<Type, "session.forked">] extends [never] ? never : import("./index.js").SessionForked) | ([Extract<Type, "session.idle">] extends [never] ? never : import("./index.js").SessionIdle) | ([Extract<Type, "session.inbox.cancelled">] extends [never] ? never : import("./index.js").SessionInboxCancelled) | ([Extract<Type, "session.inbox.delivered">] extends [never] ? never : import("./index.js").SessionInboxDelivered) | ([Extract<Type, "session.inbox.delivery.changed">] extends [never] ? never : import("./index.js").SessionInboxDeliveryChanged) | ([Extract<Type, "session.inbox.enqueued">] extends [never] ? never : import("./index.js").SessionInboxEnqueued) | ([Extract<Type, "session.instructions.updated">] extends [never] ? never : import("./index.js").SessionInstructionsUpdated) | ([Extract<Type, "session.metadata.updated">] extends [never] ? never : import("./index.js").SessionMetadataUpdated) | ([Extract<Type, "session.model.selected">] extends [never] ? never : import("./index.js").SessionModelSelected) | ([Extract<Type, "session.moved">] extends [never] ? never : import("./index.js").SessionMoved) | ([Extract<Type, "session.permissions">] extends [never] ? never : import("./index.js").SessionPermissions) | ([Extract<Type, "session.reasoning.delta">] extends [never] ? never : import("./index.js").SessionReasoningDelta) | ([Extract<Type, "session.reasoning.ended">] extends [never] ? never : import("./index.js").SessionReasoningEnded) | ([Extract<Type, "session.reasoning.started">] extends [never] ? never : import("./index.js").SessionReasoningStarted) | ([Extract<Type, "session.renamed">] extends [never] ? never : import("./index.js").SessionRenamed) | ([Extract<Type, "session.retry.scheduled">] extends [never] ? never : import("./index.js").SessionRetryScheduled) | ([Extract<Type, "session.revert.cleared">] extends [never] ? never : import("./index.js").SessionRevertCleared) | ([Extract<Type, "session.revert.committed">] extends [never] ? never : import("./index.js").SessionRevertCommitted) | ([Extract<Type, "session.revert.staged">] extends [never] ? never : import("./index.js").SessionRevertStaged) | ([Extract<Type, "session.shell.ended">] extends [never] ? never : import("./index.js").SessionShellEnded) | ([Extract<Type, "session.shell.started">] extends [never] ? never : import("./index.js").SessionShellStarted) | ([Extract<Type, "session.skill.activated">] extends [never] ? never : import("./index.js").SessionSkillActivated) | ([Extract<Type, "session.status">] extends [never] ? never : import("./index.js").SessionStatusUpdated) | ([Extract<Type, "session.step.ended">] extends [never] ? never : import("./index.js").SessionStepEnded) | ([Extract<Type, "session.step.failed">] extends [never] ? never : import("./index.js").SessionStepFailed) | ([Extract<Type, "session.step.started">] extends [never] ? never : import("./index.js").SessionStepStarted) | ([Extract<Type, "session.step.streamed">] extends [never] ? never : import("./index.js").SessionStepStreamed) | ([Extract<Type, "session.synthetic">] extends [never] ? never : import("./index.js").SessionSynthetic) | ([Extract<Type, "session.text.delta">] extends [never] ? never : import("./index.js").SessionTextDelta) | ([Extract<Type, "session.text.ended">] extends [never] ? never : import("./index.js").SessionTextEnded) | ([Extract<Type, "session.text.started">] extends [never] ? never : import("./index.js").SessionTextStarted) | ([Extract<Type, "session.tool.called">] extends [never] ? never : import("./index.js").SessionToolCalled) | ([Extract<Type, "session.tool.failed">] extends [never] ? never : import("./index.js").SessionToolFailed) | ([Extract<Type, "session.tool.input.delta">] extends [never] ? never : import("./index.js").SessionToolInputDelta) | ([Extract<Type, "session.tool.input.ended">] extends [never] ? never : import("./index.js").SessionToolInputEnded) | ([Extract<Type, "session.tool.input.started">] extends [never] ? never : import("./index.js").SessionToolInputStarted) | ([Extract<Type, "session.tool.progress">] extends [never] ? never : import("./index.js").SessionToolProgress) | ([Extract<Type, "session.tool.subagent.prepared">] extends [never] ? never : import("./index.js").SessionToolSubagentPrepared) | ([Extract<Type, "session.tool.success">] extends [never] ? never : import("./index.js").SessionToolSuccess) | ([Extract<Type, "session.unarchived">] extends [never] ? never : import("./index.js").SessionUnarchived) | ([Extract<Type, "session.usage.updated">] extends [never] ? never : import("./index.js").SessionUsageUpdated) | ([Extract<Type, "session.viewed">] extends [never] ? never : import("./index.js").SessionViewed) | ([Extract<Type, "shell.created">] extends [never] ? never : import("./index.js").ShellCreated) | ([Extract<Type, "shell.deleted">] extends [never] ? never : import("./index.js").ShellDeleted) | ([Extract<Type, "shell.exited">] extends [never] ? never : import("./index.js").ShellExited) | ([Extract<Type, "skill.updated">] extends [never] ? never : import("./index.js").SkillUpdated) | ([Extract<Type, "tui.command.execute">] extends [never] ? never : import("./index.js").TuiCommandExecute) | ([Extract<Type, "tui.prompt.append">] extends [never] ? never : import("./index.js").TuiPromptAppend) | ([Extract<Type, "tui.session.select">] extends [never] ? never : import("./index.js").TuiSessionSelect) | ([Extract<Type, "tui.toast.show">] extends [never] ? never : import("./index.js").TuiToastShow) | ([Extract<Type, `rpc.${string}`>] extends [never] ? never : import("./index.js").V2EventRpc) | (["server.connected" | Extract<Type, "server.connected">] extends [never] ? never : import("./index.js").V2EventServerConnected) | ([Extract<Type, "vcs.branch.updated">] extends [never] ? never : import("./index.js").VcsBranchUpdated) | ([Extract<Type, "websearch.updated">] extends [never] ? never : import("./index.js").WebsearchUpdated) | ([Extract<Type, "worktree.resolved">] extends [never] ? never : import("./index.js").WorktreeResolved) | ([Extract<Type, "worktree.updated">] extends [never] ? never : import("./index.js").WorktreeUpdated)>;
|
|
353
|
+
subscribe<Type extends Exclude<"agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.cancelled" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "server.connected" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.subagent.prepared" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`, "server.connected"> = "agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.cancelled" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.subagent.prepared" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated" | `rpc.${string}`>(options?: SharedEvents.SubscribeOptions<Type> | undefined): AsyncIterable<([Extract<Type, "agent.updated">] extends [never] ? never : import("./index.js").AgentUpdated) | ([Extract<Type, "artifact.updated">] extends [never] ? never : import("./index.js").ArtifactUpdated) | ([Extract<Type, "command.updated">] extends [never] ? never : import("./index.js").CommandUpdated) | ([Extract<Type, "config.updated">] extends [never] ? never : import("./index.js").ConfigUpdated) | ([Extract<Type, "credential.switched">] extends [never] ? never : import("./index.js").CredentialSwitched) | ([Extract<Type, "credential.updated">] extends [never] ? never : import("./index.js").CredentialUpdated) | ([Extract<Type, "filesystem.changed">] extends [never] ? never : import("./index.js").FilesystemChanged) | ([Extract<Type, "form.cancelled">] extends [never] ? never : import("./index.js").FormCancelled) | ([Extract<Type, "form.created">] extends [never] ? never : import("./index.js").FormCreated) | ([Extract<Type, "form.replied">] extends [never] ? never : import("./index.js").FormReplied) | ([Extract<Type, "installation.update-available">] extends [never] ? never : import("./index.js").InstallationUpdateAvailable) | ([Extract<Type, "installation.updated">] extends [never] ? never : import("./index.js").InstallationUpdated) | ([Extract<Type, "integration.updated">] extends [never] ? never : import("./index.js").IntegrationUpdated) | ([Extract<Type, "location.shutdown">] extends [never] ? never : import("./index.js").LocationShutdown) | ([Extract<Type, "mcp.resources.changed">] extends [never] ? never : import("./index.js").McpResourcesChanged) | ([Extract<Type, "mcp.status.changed">] extends [never] ? never : import("./index.js").McpStatusChanged) | ([Extract<Type, "model.updated">] extends [never] ? never : import("./index.js").ModelUpdated) | ([Extract<Type, "models-dev.refreshed">] extends [never] ? never : import("./index.js").ModelsDevRefreshed) | ([Extract<Type, "permission.asked">] extends [never] ? never : import("./index.js").PermissionAsked) | ([Extract<Type, "permission.cancelled">] extends [never] ? never : import("./index.js").PermissionCancelled) | ([Extract<Type, "permission.replied">] extends [never] ? never : import("./index.js").PermissionReplied) | ([Extract<Type, "persistent-pty.added">] extends [never] ? never : import("./index.js").PersistentPtyAdded) | ([Extract<Type, "persistent-pty.removed">] extends [never] ? never : import("./index.js").PersistentPtyRemoved) | ([Extract<Type, "persistent-pty.updated">] extends [never] ? never : import("./index.js").PersistentPtyUpdated) | ([Extract<Type, "plugin.updated">] extends [never] ? never : import("./index.js").PluginUpdated) | ([Extract<Type, "project.updated">] extends [never] ? never : import("./index.js").ProjectUpdated) | ([Extract<Type, "provider.updated">] extends [never] ? never : import("./index.js").ProviderUpdated) | ([Extract<Type, "pty.created">] extends [never] ? never : import("./index.js").PtyCreated) | ([Extract<Type, "pty.deleted">] extends [never] ? never : import("./index.js").PtyDeleted) | ([Extract<Type, "pty.exited">] extends [never] ? never : import("./index.js").PtyExited) | ([Extract<Type, "pty.updated">] extends [never] ? never : import("./index.js").PtyUpdated) | ([Extract<Type, "reference.updated">] extends [never] ? never : import("./index.js").ReferenceUpdated) | ([Extract<Type, "session.agent.selected">] extends [never] ? never : import("./index.js").SessionAgentSelected) | ([Extract<Type, "session.archived">] extends [never] ? never : import("./index.js").SessionArchived) | ([Extract<Type, "session.compaction.delta">] extends [never] ? never : import("./index.js").SessionCompactionDelta) | ([Extract<Type, "session.compaction.ended">] extends [never] ? never : import("./index.js").SessionCompactionEnded) | ([Extract<Type, "session.compaction.failed">] extends [never] ? never : import("./index.js").SessionCompactionFailed) | ([Extract<Type, "session.compaction.started">] extends [never] ? never : import("./index.js").SessionCompactionStarted) | ([Extract<Type, "session.created">] extends [never] ? never : import("./index.js").SessionCreated) | ([Extract<Type, "session.deleted">] extends [never] ? never : import("./index.js").SessionDeleted) | ([Extract<Type, "session.execution.failed">] extends [never] ? never : import("./index.js").SessionExecutionFailed) | ([Extract<Type, "session.execution.interrupted">] extends [never] ? never : import("./index.js").SessionExecutionInterrupted) | ([Extract<Type, "session.execution.started">] extends [never] ? never : import("./index.js").SessionExecutionStarted) | ([Extract<Type, "session.execution.succeeded">] extends [never] ? never : import("./index.js").SessionExecutionSucceeded) | ([Extract<Type, "session.forked">] extends [never] ? never : import("./index.js").SessionForked) | ([Extract<Type, "session.idle">] extends [never] ? never : import("./index.js").SessionIdle) | ([Extract<Type, "session.inbox.cancelled">] extends [never] ? never : import("./index.js").SessionInboxCancelled) | ([Extract<Type, "session.inbox.delivered">] extends [never] ? never : import("./index.js").SessionInboxDelivered) | ([Extract<Type, "session.inbox.delivery.changed">] extends [never] ? never : import("./index.js").SessionInboxDeliveryChanged) | ([Extract<Type, "session.inbox.enqueued">] extends [never] ? never : import("./index.js").SessionInboxEnqueued) | ([Extract<Type, "session.instructions.updated">] extends [never] ? never : import("./index.js").SessionInstructionsUpdated) | ([Extract<Type, "session.metadata.updated">] extends [never] ? never : import("./index.js").SessionMetadataUpdated) | ([Extract<Type, "session.model.selected">] extends [never] ? never : import("./index.js").SessionModelSelected) | ([Extract<Type, "session.moved">] extends [never] ? never : import("./index.js").SessionMoved) | ([Extract<Type, "session.permissions">] extends [never] ? never : import("./index.js").SessionPermissions) | ([Extract<Type, "session.reasoning.delta">] extends [never] ? never : import("./index.js").SessionReasoningDelta) | ([Extract<Type, "session.reasoning.ended">] extends [never] ? never : import("./index.js").SessionReasoningEnded) | ([Extract<Type, "session.reasoning.started">] extends [never] ? never : import("./index.js").SessionReasoningStarted) | ([Extract<Type, "session.renamed">] extends [never] ? never : import("./index.js").SessionRenamed) | ([Extract<Type, "session.retry.scheduled">] extends [never] ? never : import("./index.js").SessionRetryScheduled) | ([Extract<Type, "session.revert.cleared">] extends [never] ? never : import("./index.js").SessionRevertCleared) | ([Extract<Type, "session.revert.committed">] extends [never] ? never : import("./index.js").SessionRevertCommitted) | ([Extract<Type, "session.revert.staged">] extends [never] ? never : import("./index.js").SessionRevertStaged) | ([Extract<Type, "session.shell.ended">] extends [never] ? never : import("./index.js").SessionShellEnded) | ([Extract<Type, "session.shell.started">] extends [never] ? never : import("./index.js").SessionShellStarted) | ([Extract<Type, "session.skill.activated">] extends [never] ? never : import("./index.js").SessionSkillActivated) | ([Extract<Type, "session.status">] extends [never] ? never : import("./index.js").SessionStatusUpdated) | ([Extract<Type, "session.step.ended">] extends [never] ? never : import("./index.js").SessionStepEnded) | ([Extract<Type, "session.step.failed">] extends [never] ? never : import("./index.js").SessionStepFailed) | ([Extract<Type, "session.step.started">] extends [never] ? never : import("./index.js").SessionStepStarted) | ([Extract<Type, "session.step.streamed">] extends [never] ? never : import("./index.js").SessionStepStreamed) | ([Extract<Type, "session.synthetic">] extends [never] ? never : import("./index.js").SessionSynthetic) | ([Extract<Type, "session.text.delta">] extends [never] ? never : import("./index.js").SessionTextDelta) | ([Extract<Type, "session.text.ended">] extends [never] ? never : import("./index.js").SessionTextEnded) | ([Extract<Type, "session.text.started">] extends [never] ? never : import("./index.js").SessionTextStarted) | ([Extract<Type, "session.tool.called">] extends [never] ? never : import("./index.js").SessionToolCalled) | ([Extract<Type, "session.tool.failed">] extends [never] ? never : import("./index.js").SessionToolFailed) | ([Extract<Type, "session.tool.input.delta">] extends [never] ? never : import("./index.js").SessionToolInputDelta) | ([Extract<Type, "session.tool.input.ended">] extends [never] ? never : import("./index.js").SessionToolInputEnded) | ([Extract<Type, "session.tool.input.started">] extends [never] ? never : import("./index.js").SessionToolInputStarted) | ([Extract<Type, "session.tool.progress">] extends [never] ? never : import("./index.js").SessionToolProgress) | ([Extract<Type, "session.tool.subagent.prepared">] extends [never] ? never : import("./index.js").SessionToolSubagentPrepared) | ([Extract<Type, "session.tool.success">] extends [never] ? never : import("./index.js").SessionToolSuccess) | ([Extract<Type, "session.unarchived">] extends [never] ? never : import("./index.js").SessionUnarchived) | ([Extract<Type, "session.usage.updated">] extends [never] ? never : import("./index.js").SessionUsageUpdated) | ([Extract<Type, "session.viewed">] extends [never] ? never : import("./index.js").SessionViewed) | ([Extract<Type, "shell.created">] extends [never] ? never : import("./index.js").ShellCreated) | ([Extract<Type, "shell.deleted">] extends [never] ? never : import("./index.js").ShellDeleted) | ([Extract<Type, "shell.exited">] extends [never] ? never : import("./index.js").ShellExited) | ([Extract<Type, "skill.updated">] extends [never] ? never : import("./index.js").SkillUpdated) | ([Extract<Type, "tui.command.execute">] extends [never] ? never : import("./index.js").TuiCommandExecute) | ([Extract<Type, "tui.prompt.append">] extends [never] ? never : import("./index.js").TuiPromptAppend) | ([Extract<Type, "tui.session.select">] extends [never] ? never : import("./index.js").TuiSessionSelect) | ([Extract<Type, "tui.toast.show">] extends [never] ? never : import("./index.js").TuiToastShow) | ([Extract<Type, `rpc.${string}`>] extends [never] ? never : import("./index.js").V2EventRpc) | (["server.connected" | Extract<Type, "server.connected">] extends [never] ? never : import("./index.js").V2EventServerConnected) | ([Extract<Type, "vcs.branch.updated">] extends [never] ? never : import("./index.js").VcsBranchUpdated) | ([Extract<Type, "websearch.updated">] extends [never] ? never : import("./index.js").WebsearchUpdated) | ([Extract<Type, "worktree.resolved">] extends [never] ? never : import("./index.js").WorktreeResolved) | ([Extract<Type, "worktree.updated">] extends [never] ? never : import("./index.js").WorktreeUpdated)>;
|
|
345
354
|
};
|
|
346
355
|
};
|
|
@@ -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, 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, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, 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, 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, ExperimentalScheduleCreateInput, ExperimentalScheduleListInput, ExperimentalScheduleGetInput, ExperimentalSchedulePauseInput, ExperimentalScheduleResumeInput, ExperimentalScheduleDeleteInput, ExperimentalArtifactsProvidersInput, ExperimentalArtifactsProvidersOutput, ExperimentalArtifactsListInput, ExperimentalArtifactsListOutput, ExperimentalArtifactsCreateInput, ExperimentalArtifactsCreateOutput, ExperimentalArtifactsGetInput, ExperimentalArtifactsGetOutput, ExperimentalArtifactsUpdateInput, ExperimentalArtifactsUpdateOutput, ExperimentalArtifactsDeleteInput, ExperimentalArtifactsViewInput, ExperimentalArtifactsViewOutput, 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;
|
|
@@ -104,6 +104,15 @@ export declare function make(options: ClientOptions): {
|
|
|
104
104
|
resume: (input: ExperimentalScheduleResumeInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ScheduleInfo>;
|
|
105
105
|
delete: (input: ExperimentalScheduleDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
106
106
|
};
|
|
107
|
+
artifacts: {
|
|
108
|
+
providers: (input?: ExperimentalArtifactsProvidersInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsProvidersOutput>;
|
|
109
|
+
list: (input?: ExperimentalArtifactsListInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsListOutput>;
|
|
110
|
+
create: (input: ExperimentalArtifactsCreateInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsCreateOutput>;
|
|
111
|
+
get: (input: ExperimentalArtifactsGetInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsGetOutput>;
|
|
112
|
+
update: (input: ExperimentalArtifactsUpdateInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsUpdateOutput>;
|
|
113
|
+
delete: (input: ExperimentalArtifactsDeleteInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
114
|
+
view: (input: ExperimentalArtifactsViewInput, requestOptions?: RequestOptions) => Promise<ExperimentalArtifactsViewOutput>;
|
|
115
|
+
};
|
|
107
116
|
migration: {
|
|
108
117
|
v1: {
|
|
109
118
|
status: (requestOptions?: RequestOptions) => Promise<ExperimentalMigrationV1StatusOutput>;
|
|
@@ -812,9 +812,9 @@ export function make(options) {
|
|
|
812
812
|
update: (input, requestOptions) => request({
|
|
813
813
|
method: "PUT",
|
|
814
814
|
path: `/api/experimental/persistent-pty/${encodeURIComponent(input.ptyID)}`,
|
|
815
|
-
body: { attachmentID: input["attachmentID"], size: input["size"] },
|
|
815
|
+
body: { attachmentID: input["attachmentID"], size: input["size"], title: input["title"] },
|
|
816
816
|
successStatus: 200,
|
|
817
|
-
declaredStatuses: [400, 401, 404, 503],
|
|
817
|
+
declaredStatuses: [400, 401, 404, 501, 503],
|
|
818
818
|
empty: false,
|
|
819
819
|
}, requestOptions).then((value) => value.data),
|
|
820
820
|
snapshot: (input, requestOptions) => request({
|
|
@@ -904,6 +904,78 @@ export function make(options) {
|
|
|
904
904
|
empty: true,
|
|
905
905
|
}, requestOptions),
|
|
906
906
|
},
|
|
907
|
+
artifacts: {
|
|
908
|
+
providers: (input, requestOptions) => request({
|
|
909
|
+
method: "GET",
|
|
910
|
+
path: `/api/experimental/artifacts/providers`,
|
|
911
|
+
query: { location: input?.["location"] },
|
|
912
|
+
successStatus: 200,
|
|
913
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
914
|
+
empty: false,
|
|
915
|
+
}, requestOptions),
|
|
916
|
+
list: (input, requestOptions) => request({
|
|
917
|
+
method: "GET",
|
|
918
|
+
path: `/api/experimental/artifacts`,
|
|
919
|
+
query: { location: input?.["location"], sessionID: input?.["sessionID"], provider: input?.["provider"] },
|
|
920
|
+
successStatus: 200,
|
|
921
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
922
|
+
empty: false,
|
|
923
|
+
}, requestOptions),
|
|
924
|
+
create: (input, requestOptions) => request({
|
|
925
|
+
method: "POST",
|
|
926
|
+
path: `/api/experimental/artifacts`,
|
|
927
|
+
query: { location: input["location"] },
|
|
928
|
+
body: {
|
|
929
|
+
title: input["title"],
|
|
930
|
+
files: input["files"],
|
|
931
|
+
entry: input["entry"],
|
|
932
|
+
provider: input["provider"],
|
|
933
|
+
sessionID: input["sessionID"],
|
|
934
|
+
},
|
|
935
|
+
successStatus: 200,
|
|
936
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
937
|
+
empty: false,
|
|
938
|
+
}, requestOptions),
|
|
939
|
+
get: (input, requestOptions) => request({
|
|
940
|
+
method: "GET",
|
|
941
|
+
path: `/api/experimental/artifacts/${encodeURIComponent(input.artifactID)}`,
|
|
942
|
+
query: { location: input["location"] },
|
|
943
|
+
successStatus: 200,
|
|
944
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
945
|
+
empty: false,
|
|
946
|
+
}, requestOptions),
|
|
947
|
+
update: (input, requestOptions) => request({
|
|
948
|
+
method: "PATCH",
|
|
949
|
+
path: `/api/experimental/artifacts/${encodeURIComponent(input.artifactID)}`,
|
|
950
|
+
query: { location: input["location"] },
|
|
951
|
+
body: {
|
|
952
|
+
title: input["title"],
|
|
953
|
+
files: input["files"],
|
|
954
|
+
entry: input["entry"],
|
|
955
|
+
sessionID: input["sessionID"],
|
|
956
|
+
},
|
|
957
|
+
successStatus: 200,
|
|
958
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
959
|
+
empty: false,
|
|
960
|
+
}, requestOptions),
|
|
961
|
+
delete: (input, requestOptions) => request({
|
|
962
|
+
method: "DELETE",
|
|
963
|
+
path: `/api/experimental/artifacts/${encodeURIComponent(input.artifactID)}`,
|
|
964
|
+
query: { location: input["location"] },
|
|
965
|
+
successStatus: 204,
|
|
966
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
967
|
+
empty: true,
|
|
968
|
+
}, requestOptions),
|
|
969
|
+
view: (input, requestOptions) => request({
|
|
970
|
+
method: "GET",
|
|
971
|
+
path: `/api/experimental/artifacts/${encodeURIComponent(input.artifactID)}/view/${encodePath(input.path)}`,
|
|
972
|
+
query: { location: input["location"] },
|
|
973
|
+
successStatus: 200,
|
|
974
|
+
declaredStatuses: [400, 401, 403, 404, 503],
|
|
975
|
+
empty: false,
|
|
976
|
+
binary: true,
|
|
977
|
+
}, requestOptions),
|
|
978
|
+
},
|
|
907
979
|
migration: {
|
|
908
980
|
v1: {
|
|
909
981
|
status: (requestOptions) => request({
|
|
@@ -485,12 +485,22 @@ export type ScheduleConditionShell = {
|
|
|
485
485
|
matches?: string;
|
|
486
486
|
changes?: boolean;
|
|
487
487
|
};
|
|
488
|
+
export type ScheduleConditionCode = {
|
|
489
|
+
type: "code";
|
|
490
|
+
code: string;
|
|
491
|
+
};
|
|
488
492
|
export type ScheduleActionPrompt = {
|
|
489
493
|
type: "prompt";
|
|
490
494
|
prompt: string;
|
|
491
495
|
};
|
|
492
496
|
export type ScheduleStatus = "active" | "paused" | "done";
|
|
493
497
|
export type ScheduleOutcome = "fired" | "late" | "checked" | "expired" | "skipped" | "disabled" | "failed";
|
|
498
|
+
export type ArtifactCapability = "static" | "server-code" | "sqlite" | "durable-objects";
|
|
499
|
+
export type ArtifactID = string;
|
|
500
|
+
export type ArtifactTime = {
|
|
501
|
+
created: number;
|
|
502
|
+
updated: number;
|
|
503
|
+
};
|
|
494
504
|
export type ReferenceGitSource = {
|
|
495
505
|
type: "git";
|
|
496
506
|
repository: string;
|
|
@@ -527,6 +537,7 @@ export type UsageLimitsMeter = {
|
|
|
527
537
|
resetsAt: number;
|
|
528
538
|
};
|
|
529
539
|
export type McpProtocol = "legacy" | "auto" | "2026-07-28";
|
|
540
|
+
export type ConfigCompactionPercent = string;
|
|
530
541
|
export type ConfigWorktree = {
|
|
531
542
|
directory: string;
|
|
532
543
|
};
|
|
@@ -1121,6 +1132,7 @@ export type PersistentPtyInfo = {
|
|
|
1121
1132
|
pid: number;
|
|
1122
1133
|
exitCode?: number;
|
|
1123
1134
|
sessionID: SessionID;
|
|
1135
|
+
userTitle: string | null;
|
|
1124
1136
|
foregroundProcess: string | null;
|
|
1125
1137
|
size: {
|
|
1126
1138
|
cols: number;
|
|
@@ -1224,8 +1236,23 @@ export type ScheduleWhenEvery = {
|
|
|
1224
1236
|
every: ScheduleDuration;
|
|
1225
1237
|
tz?: string;
|
|
1226
1238
|
};
|
|
1227
|
-
export type ScheduleCondition = ScheduleConditionShell;
|
|
1239
|
+
export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
|
|
1228
1240
|
export type ScheduleAction = ScheduleActionPrompt;
|
|
1241
|
+
export type ArtifactProvider = {
|
|
1242
|
+
id: string;
|
|
1243
|
+
name: string;
|
|
1244
|
+
capabilities: Array<ArtifactCapability>;
|
|
1245
|
+
default: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
export type ArtifactInfo = {
|
|
1248
|
+
id: ArtifactID;
|
|
1249
|
+
provider: string;
|
|
1250
|
+
sessionID?: SessionID;
|
|
1251
|
+
title: string;
|
|
1252
|
+
entry: string;
|
|
1253
|
+
url: string;
|
|
1254
|
+
time: ArtifactTime;
|
|
1255
|
+
};
|
|
1229
1256
|
export type VcsInfo = {
|
|
1230
1257
|
provider?: string;
|
|
1231
1258
|
branch: VcsBranch;
|
|
@@ -2731,6 +2758,16 @@ export type WebsearchUpdated = {
|
|
|
2731
2758
|
location?: LocationRef;
|
|
2732
2759
|
data: {};
|
|
2733
2760
|
};
|
|
2761
|
+
export type ArtifactUpdated = {
|
|
2762
|
+
id: EventID;
|
|
2763
|
+
created: number;
|
|
2764
|
+
metadata?: {
|
|
2765
|
+
[x: string]: any;
|
|
2766
|
+
};
|
|
2767
|
+
type: "artifact.updated";
|
|
2768
|
+
location?: LocationRef;
|
|
2769
|
+
data: {};
|
|
2770
|
+
};
|
|
2734
2771
|
export type SessionStatusUpdated = {
|
|
2735
2772
|
id: EventID;
|
|
2736
2773
|
created: number;
|
|
@@ -2990,6 +3027,19 @@ export type PersistentPtyAdded = {
|
|
|
2990
3027
|
terminal: PersistentPtyInfo;
|
|
2991
3028
|
};
|
|
2992
3029
|
};
|
|
3030
|
+
export type PersistentPtyUpdated = {
|
|
3031
|
+
id: EventID;
|
|
3032
|
+
created: number;
|
|
3033
|
+
metadata?: {
|
|
3034
|
+
[x: string]: any;
|
|
3035
|
+
};
|
|
3036
|
+
type: "persistent-pty.updated";
|
|
3037
|
+
location?: LocationRef;
|
|
3038
|
+
data: {
|
|
3039
|
+
sessionID: SessionID;
|
|
3040
|
+
terminal: PersistentPtyInfo;
|
|
3041
|
+
};
|
|
3042
|
+
};
|
|
2993
3043
|
export type PersistentPtySnapshot = {
|
|
2994
3044
|
info: PersistentPtyInfo;
|
|
2995
3045
|
text: string;
|
|
@@ -3015,6 +3065,12 @@ export type FormReplied = {
|
|
|
3015
3065
|
};
|
|
3016
3066
|
};
|
|
3017
3067
|
export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
|
|
3068
|
+
export type ArtifactContent = {
|
|
3069
|
+
info: ArtifactInfo;
|
|
3070
|
+
files: {
|
|
3071
|
+
[x: string]: string;
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3018
3074
|
export type SessionInboxMove = {
|
|
3019
3075
|
id: SessionMessageID;
|
|
3020
3076
|
sessionID: SessionID;
|
|
@@ -3201,7 +3257,7 @@ export type ConfigEntry = {
|
|
|
3201
3257
|
timezone?: string;
|
|
3202
3258
|
permissions?: PermissionRuleset;
|
|
3203
3259
|
policies?: Array<{
|
|
3204
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3260
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3205
3261
|
resource: string;
|
|
3206
3262
|
effect: "allow" | "deny";
|
|
3207
3263
|
}>;
|
|
@@ -3323,7 +3379,7 @@ export type ConfigEntry = {
|
|
|
3323
3379
|
keep?: {
|
|
3324
3380
|
tokens?: number;
|
|
3325
3381
|
};
|
|
3326
|
-
buffer?: number;
|
|
3382
|
+
buffer?: ConfigCompactionPercent | number;
|
|
3327
3383
|
};
|
|
3328
3384
|
skills?: Array<string>;
|
|
3329
3385
|
commands?: {
|
|
@@ -3455,11 +3511,12 @@ export type ConfigEntry = {
|
|
|
3455
3511
|
};
|
|
3456
3512
|
};
|
|
3457
3513
|
schedules?: boolean;
|
|
3514
|
+
artifacts?: boolean;
|
|
3458
3515
|
subagent_depth?: number;
|
|
3459
3516
|
jev?: boolean;
|
|
3460
3517
|
location_idle_timeout?: string | false;
|
|
3461
3518
|
policies?: Array<{
|
|
3462
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3519
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3463
3520
|
resource: string;
|
|
3464
3521
|
effect: "allow" | "deny";
|
|
3465
3522
|
}>;
|
|
@@ -3735,7 +3792,7 @@ export type IntegrationInfo = {
|
|
|
3735
3792
|
connections: Array<ConnectionInfo>;
|
|
3736
3793
|
};
|
|
3737
3794
|
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSubagentPrepared | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3738
|
-
export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolSubagentPrepared | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PermissionCancelled | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3795
|
+
export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolSubagentPrepared | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PermissionCancelled | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | PersistentPtyUpdated | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | ArtifactUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
|
|
3739
3796
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3740
3797
|
export type InvalidRequestError = {
|
|
3741
3798
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3959,12 +4016,24 @@ export type PtyNotFoundError = {
|
|
|
3959
4016
|
readonly message: string;
|
|
3960
4017
|
};
|
|
3961
4018
|
export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
|
|
4019
|
+
export type PtyFeatureUnsupportedError = {
|
|
4020
|
+
readonly _tag: "PtyFeatureUnsupportedError";
|
|
4021
|
+
readonly feature: string;
|
|
4022
|
+
readonly message: string;
|
|
4023
|
+
};
|
|
4024
|
+
export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
|
|
3962
4025
|
export type ScheduleNotFoundError = {
|
|
3963
4026
|
readonly _tag: "ScheduleNotFoundError";
|
|
3964
4027
|
readonly scheduleID: string;
|
|
3965
4028
|
readonly message: string;
|
|
3966
4029
|
};
|
|
3967
4030
|
export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
|
|
4031
|
+
export type ArtifactNotFoundError = {
|
|
4032
|
+
readonly _tag: "ArtifactNotFoundError";
|
|
4033
|
+
readonly artifactID: string;
|
|
4034
|
+
readonly message: string;
|
|
4035
|
+
};
|
|
4036
|
+
export declare const isArtifactNotFoundError: (value: unknown) => value is ArtifactNotFoundError;
|
|
3968
4037
|
export type ShellNotFoundError = {
|
|
3969
4038
|
readonly _tag: "ShellNotFoundError";
|
|
3970
4039
|
readonly id: string;
|
|
@@ -5267,7 +5336,7 @@ export type RpcCallInput = {
|
|
|
5267
5336
|
};
|
|
5268
5337
|
export type RpcCallOutput = RpcOutput;
|
|
5269
5338
|
export type EventSubscribeInput = {
|
|
5270
|
-
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.subagent.prepared" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "permission.cancelled" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | `${"rpc."}${string}`> | undefined;
|
|
5339
|
+
readonly types?: ReadonlyArray<"location.shutdown" | "models-dev.refreshed" | "credential.updated" | "credential.switched" | "integration.updated" | "provider.updated" | "model.updated" | "agent.updated" | "session.created" | "session.agent.selected" | "session.model.selected" | "session.moved" | "session.renamed" | "session.metadata.updated" | "session.permissions" | "session.viewed" | "session.archived" | "session.unarchived" | "session.usage.updated" | "session.deleted" | "session.forked" | "session.inbox.delivered" | "session.inbox.enqueued" | "session.inbox.cancelled" | "session.inbox.delivery.changed" | "session.execution.started" | "session.execution.succeeded" | "session.execution.failed" | "session.execution.interrupted" | "session.instructions.updated" | "session.synthetic" | "session.skill.activated" | "session.shell.started" | "session.shell.ended" | "session.step.started" | "session.step.streamed" | "session.step.ended" | "session.step.failed" | "session.text.started" | "session.text.delta" | "session.text.ended" | "session.reasoning.started" | "session.reasoning.delta" | "session.reasoning.ended" | "session.tool.input.started" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.called" | "session.tool.subagent.prepared" | "session.tool.progress" | "session.tool.success" | "session.tool.failed" | "session.retry.scheduled" | "session.compaction.started" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.revert.staged" | "session.revert.cleared" | "session.revert.committed" | "filesystem.changed" | "reference.updated" | "permission.asked" | "permission.replied" | "permission.cancelled" | "plugin.updated" | "project.updated" | "worktree.updated" | "worktree.resolved" | "command.updated" | "config.updated" | "skill.updated" | "pty.created" | "pty.updated" | "pty.exited" | "pty.deleted" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "shell.created" | "shell.exited" | "shell.deleted" | "form.created" | "form.replied" | "form.cancelled" | "websearch.updated" | "artifact.updated" | "session.status" | "session.idle" | "tui.prompt.append" | "tui.command.execute" | "tui.toast.show" | "tui.session.select" | "installation.updated" | "installation.update-available" | "vcs.branch.updated" | "mcp.status.changed" | "mcp.resources.changed" | `${"rpc."}${string}`> | undefined;
|
|
5271
5340
|
};
|
|
5272
5341
|
export type EventSubscribeOutput = V2Event;
|
|
5273
5342
|
export type PtyListInput = {
|
|
@@ -5381,10 +5450,11 @@ export type ExperimentalPersistentPtyGetOutput = {
|
|
|
5381
5450
|
export type ExperimentalPersistentPtyUpdateInput = {
|
|
5382
5451
|
readonly ptyID: string;
|
|
5383
5452
|
readonly attachmentID?: string | undefined;
|
|
5384
|
-
readonly size
|
|
5453
|
+
readonly size?: {
|
|
5385
5454
|
readonly cols: number;
|
|
5386
5455
|
readonly rows: number;
|
|
5387
|
-
};
|
|
5456
|
+
} | undefined;
|
|
5457
|
+
readonly title?: string | null | undefined;
|
|
5388
5458
|
};
|
|
5389
5459
|
export type ExperimentalPersistentPtyUpdateOutput = {
|
|
5390
5460
|
data: PersistentPtyInfo;
|
|
@@ -5438,18 +5508,32 @@ export type ExperimentalScheduleCreateInput = {
|
|
|
5438
5508
|
readonly every?: never;
|
|
5439
5509
|
readonly tz?: string;
|
|
5440
5510
|
}) | undefined;
|
|
5441
|
-
readonly if?: {
|
|
5511
|
+
readonly if?: ({
|
|
5442
5512
|
readonly run: string;
|
|
5443
5513
|
readonly is?: string;
|
|
5444
5514
|
readonly matches?: string;
|
|
5445
5515
|
readonly changes?: boolean;
|
|
5446
|
-
|
|
5447
|
-
|
|
5516
|
+
readonly code?: never;
|
|
5517
|
+
} | {
|
|
5518
|
+
readonly code: string;
|
|
5519
|
+
readonly run?: never;
|
|
5520
|
+
readonly is?: never;
|
|
5521
|
+
readonly matches?: never;
|
|
5522
|
+
readonly changes?: never;
|
|
5523
|
+
}) | undefined;
|
|
5524
|
+
readonly until?: ({
|
|
5448
5525
|
readonly run: string;
|
|
5449
5526
|
readonly is?: string;
|
|
5450
5527
|
readonly matches?: string;
|
|
5451
5528
|
readonly changes?: boolean;
|
|
5452
|
-
|
|
5529
|
+
readonly code?: never;
|
|
5530
|
+
} | {
|
|
5531
|
+
readonly code: string;
|
|
5532
|
+
readonly run?: never;
|
|
5533
|
+
readonly is?: never;
|
|
5534
|
+
readonly matches?: never;
|
|
5535
|
+
readonly changes?: never;
|
|
5536
|
+
}) | undefined;
|
|
5453
5537
|
readonly ends?: {
|
|
5454
5538
|
readonly after?: string;
|
|
5455
5539
|
readonly at?: string;
|
|
@@ -5488,6 +5572,83 @@ export type ExperimentalScheduleDeleteInput = {
|
|
|
5488
5572
|
readonly scheduleID: string;
|
|
5489
5573
|
};
|
|
5490
5574
|
export type ExperimentalScheduleDeleteOutput = void;
|
|
5575
|
+
export type ExperimentalArtifactsProvidersInput = {
|
|
5576
|
+
readonly location?: {
|
|
5577
|
+
readonly directory?: string | undefined;
|
|
5578
|
+
} | undefined;
|
|
5579
|
+
};
|
|
5580
|
+
export type ExperimentalArtifactsProvidersOutput = {
|
|
5581
|
+
location: LocationPublicRef;
|
|
5582
|
+
data: Array<ArtifactProvider>;
|
|
5583
|
+
};
|
|
5584
|
+
export type ExperimentalArtifactsListInput = {
|
|
5585
|
+
readonly location?: {
|
|
5586
|
+
readonly directory?: string | undefined;
|
|
5587
|
+
} | undefined;
|
|
5588
|
+
readonly sessionID?: string | undefined;
|
|
5589
|
+
readonly provider?: string | undefined;
|
|
5590
|
+
};
|
|
5591
|
+
export type ExperimentalArtifactsListOutput = {
|
|
5592
|
+
location: LocationPublicRef;
|
|
5593
|
+
data: Array<ArtifactInfo>;
|
|
5594
|
+
};
|
|
5595
|
+
export type ExperimentalArtifactsCreateInput = {
|
|
5596
|
+
readonly location?: {
|
|
5597
|
+
readonly directory?: string | undefined;
|
|
5598
|
+
} | undefined;
|
|
5599
|
+
readonly title: string;
|
|
5600
|
+
readonly files: {
|
|
5601
|
+
readonly [x: string]: string;
|
|
5602
|
+
};
|
|
5603
|
+
readonly entry?: string | undefined;
|
|
5604
|
+
readonly provider?: string | undefined;
|
|
5605
|
+
readonly sessionID?: string | undefined;
|
|
5606
|
+
};
|
|
5607
|
+
export type ExperimentalArtifactsCreateOutput = {
|
|
5608
|
+
location: LocationPublicRef;
|
|
5609
|
+
data: ArtifactInfo;
|
|
5610
|
+
};
|
|
5611
|
+
export type ExperimentalArtifactsGetInput = {
|
|
5612
|
+
readonly artifactID: string;
|
|
5613
|
+
readonly location?: {
|
|
5614
|
+
readonly directory?: string | undefined;
|
|
5615
|
+
} | undefined;
|
|
5616
|
+
};
|
|
5617
|
+
export type ExperimentalArtifactsGetOutput = {
|
|
5618
|
+
location: LocationPublicRef;
|
|
5619
|
+
data: ArtifactContent;
|
|
5620
|
+
};
|
|
5621
|
+
export type ExperimentalArtifactsUpdateInput = {
|
|
5622
|
+
readonly artifactID: string;
|
|
5623
|
+
readonly location?: {
|
|
5624
|
+
readonly directory?: string | undefined;
|
|
5625
|
+
} | undefined;
|
|
5626
|
+
readonly title?: string | undefined;
|
|
5627
|
+
readonly files: {
|
|
5628
|
+
readonly [x: string]: string;
|
|
5629
|
+
};
|
|
5630
|
+
readonly entry?: string | undefined;
|
|
5631
|
+
readonly sessionID?: string | undefined;
|
|
5632
|
+
};
|
|
5633
|
+
export type ExperimentalArtifactsUpdateOutput = {
|
|
5634
|
+
location: LocationPublicRef;
|
|
5635
|
+
data: ArtifactInfo;
|
|
5636
|
+
};
|
|
5637
|
+
export type ExperimentalArtifactsDeleteInput = {
|
|
5638
|
+
readonly artifactID: string;
|
|
5639
|
+
readonly location?: {
|
|
5640
|
+
readonly directory?: string | undefined;
|
|
5641
|
+
} | undefined;
|
|
5642
|
+
};
|
|
5643
|
+
export type ExperimentalArtifactsDeleteOutput = void;
|
|
5644
|
+
export type ExperimentalArtifactsViewInput = {
|
|
5645
|
+
readonly artifactID: string;
|
|
5646
|
+
readonly location?: {
|
|
5647
|
+
readonly directory?: string | undefined;
|
|
5648
|
+
} | undefined;
|
|
5649
|
+
readonly path: string;
|
|
5650
|
+
};
|
|
5651
|
+
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5491
5652
|
export type ShellListInput = {
|
|
5492
5653
|
readonly location?: {
|
|
5493
5654
|
readonly directory?: string | undefined;
|
|
@@ -36,7 +36,9 @@ export const isFileNotFoundError = (value) => typeof value === "object" && value
|
|
|
36
36
|
export const isRpcError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcError";
|
|
37
37
|
export const isRpcInternalError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcInternalError";
|
|
38
38
|
export const isPtyNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PtyNotFoundError";
|
|
39
|
+
export const isPtyFeatureUnsupportedError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PtyFeatureUnsupportedError";
|
|
39
40
|
export const isScheduleNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ScheduleNotFoundError";
|
|
41
|
+
export const isArtifactNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ArtifactNotFoundError";
|
|
40
42
|
export const isShellNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ShellNotFoundError";
|
|
41
43
|
export const isWorktreeError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "WorktreeError";
|
|
42
44
|
export const isVcsInitNotSupportedError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "VcsInitNotSupportedError";
|
package/client/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { OpenCode } from "./client.js";
|
|
2
2
|
export * from "./generated/index.js";
|
|
3
3
|
export { OpenCode } from "./client.js";
|
|
4
|
+
export { mediaHashFromUri, withMediaRefs, type MediaRequestOptions } from "./media.js";
|
|
4
5
|
export type { AgentApi, CommandApi, ConfigApi, EventApi, IntegrationApi, ModelApi, PluginApi, ProviderApi, ReferenceApi, RpcApi, RpcCallOptions, RpcClient, RpcEventPayload, WebSearchApi, SessionApi, SkillApi, } from "./api.js";
|
|
5
6
|
export type { EventSubscribeOutput as OpenCodeEvent } from "./generated/types.js";
|
|
6
7
|
export type { MediaFileAttachment as PromptMediaFileAttachment, Attachment as PromptAttachment, } from "@opencode/schema/prompt";
|