@opencode/client 2.2.2 → 2.2.4
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/dist/chunks/service-3eaz3m83.js +67 -0
- package/dist/chunks/{pty-handoff-8ye1ye6f.js → service-8ye1ye6f.js} +2 -2
- package/dist/chunks/{pty-handoff-15p82y03.js → service-9j12j8xw.js} +5 -5
- package/dist/chunks/{pty-handoff-0e3ghr9a.js → service-b6gvhk3y.js} +76 -4
- package/dist/chunks/{pty-handoff-5d2vkjb7.js → service-c5ps3bxz.js} +9 -9
- package/dist/chunks/{pty-handoff-gecjxyvt.js → service-gecjxyvt.js} +1 -1
- package/dist/chunks/service-mwrzahmf.js +38 -0
- package/dist/chunks/{pty-handoff-pgwvv4px.js → service-qbhap0da.js} +2 -2
- package/dist/chunks/{pty-handoff-ryy6kscr.js → service-ryy6kscr.js} +1 -1
- package/dist/chunks/{pty-handoff-f6hq5twr.js → service-sbaynanj.js} +72 -8
- package/dist/chunks/{pty-handoff-cvg5j6d1.js → service-sdjh9vmn.js} +3 -1
- package/dist/chunks/{pty-handoff-wcnmkks2.js → service-vzds1rj7.js} +4 -4
- package/dist/chunks/{pty-handoff-kdshn947.js → service-xqwq6bgr.js} +1 -1
- package/dist/chunks/{pty-handoff-bb4rz2ry.js → service-ykkgdxgz.js} +42 -7
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +93 -3
- package/dist/effect/client.d.ts +82 -2
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +82 -2
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +10 -1
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +10 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -4
- package/dist/promise/generated/types.d.ts +171 -11
- package/dist/promise/generated/types.js +5 -1
- package/dist/promise/index.d.ts +1 -0
- package/dist/promise/index.js +19 -9
- package/dist/promise/media.d.ts +365 -0
- package/dist/promise/media.js +8 -0
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.d.ts +2 -0
- package/dist/solid/data.js +10 -9
- package/dist/solid/index.js +20 -15
- package/dist/solid/pty.d.ts +67 -9
- package/dist/solid/pty.js +7 -3
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- package/dist/chunks/pty-handoff-gne7h7mq.js +0 -50
- /package/dist/chunks/{pty-handoff-60xe5cbf.js → service-60xe5cbf.js} +0 -0
- /package/dist/chunks/{pty-handoff-6mptkzbc.js → service-6mptkzbc.js} +0 -0
- /package/dist/chunks/{pty-handoff-6mq2wh8y.js → service-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{pty-handoff-m2eywc8w.js → service-6r38tsk5.js} +0 -0
- /package/dist/chunks/{pty-handoff-8s2anffy.js → service-8s2anffy.js} +0 -0
- /package/dist/chunks/{pty-handoff-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-nwcpakzx.js → service-nwcpakzx.js} +0 -0
- /package/dist/chunks/{pty-handoff-qav6mfdz.js → service-qav6mfdz.js} +0 -0
- /package/dist/chunks/{pty-handoff-sxt88q69.js → service-sxt88q69.js} +0 -0
- /package/dist/chunks/{pty-handoff-ve4aws36.js → service-ve4aws36.js} +0 -0
- /package/dist/chunks/{pty-handoff-vyas3vgt.js → service-vyas3vgt.js} +0 -0
- /package/dist/chunks/{pty-handoff-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-y2etg5bs.js → service-y2etg5bs.js} +0 -0
- /package/dist/chunks/{pty-handoff-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
|
@@ -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;
|
|
@@ -1121,6 +1131,7 @@ export type PersistentPtyInfo = {
|
|
|
1121
1131
|
pid: number;
|
|
1122
1132
|
exitCode?: number;
|
|
1123
1133
|
sessionID: SessionID;
|
|
1134
|
+
userTitle: string | null;
|
|
1124
1135
|
foregroundProcess: string | null;
|
|
1125
1136
|
size: {
|
|
1126
1137
|
cols: number;
|
|
@@ -1224,8 +1235,23 @@ export type ScheduleWhenEvery = {
|
|
|
1224
1235
|
every: ScheduleDuration;
|
|
1225
1236
|
tz?: string;
|
|
1226
1237
|
};
|
|
1227
|
-
export type ScheduleCondition = ScheduleConditionShell;
|
|
1238
|
+
export type ScheduleCondition = ScheduleConditionShell | ScheduleConditionCode;
|
|
1228
1239
|
export type ScheduleAction = ScheduleActionPrompt;
|
|
1240
|
+
export type ArtifactProvider = {
|
|
1241
|
+
id: string;
|
|
1242
|
+
name: string;
|
|
1243
|
+
capabilities: Array<ArtifactCapability>;
|
|
1244
|
+
default: boolean;
|
|
1245
|
+
};
|
|
1246
|
+
export type ArtifactInfo = {
|
|
1247
|
+
id: ArtifactID;
|
|
1248
|
+
provider: string;
|
|
1249
|
+
sessionID?: SessionID;
|
|
1250
|
+
title: string;
|
|
1251
|
+
entry: string;
|
|
1252
|
+
url: string;
|
|
1253
|
+
time: ArtifactTime;
|
|
1254
|
+
};
|
|
1229
1255
|
export type VcsInfo = {
|
|
1230
1256
|
provider?: string;
|
|
1231
1257
|
branch: VcsBranch;
|
|
@@ -2692,6 +2718,16 @@ export type WebsearchUpdated = {
|
|
|
2692
2718
|
location?: LocationRef;
|
|
2693
2719
|
data: {};
|
|
2694
2720
|
};
|
|
2721
|
+
export type ArtifactUpdated = {
|
|
2722
|
+
id: EventID;
|
|
2723
|
+
created: number;
|
|
2724
|
+
metadata?: {
|
|
2725
|
+
[x: string]: any;
|
|
2726
|
+
};
|
|
2727
|
+
type: "artifact.updated";
|
|
2728
|
+
location?: LocationRef;
|
|
2729
|
+
data: {};
|
|
2730
|
+
};
|
|
2695
2731
|
export type SessionStatusUpdated = {
|
|
2696
2732
|
id: EventID;
|
|
2697
2733
|
created: number;
|
|
@@ -2951,6 +2987,19 @@ export type PersistentPtyAdded = {
|
|
|
2951
2987
|
terminal: PersistentPtyInfo;
|
|
2952
2988
|
};
|
|
2953
2989
|
};
|
|
2990
|
+
export type PersistentPtyUpdated = {
|
|
2991
|
+
id: EventID;
|
|
2992
|
+
created: number;
|
|
2993
|
+
metadata?: {
|
|
2994
|
+
[x: string]: any;
|
|
2995
|
+
};
|
|
2996
|
+
type: "persistent-pty.updated";
|
|
2997
|
+
location?: LocationRef;
|
|
2998
|
+
data: {
|
|
2999
|
+
sessionID: SessionID;
|
|
3000
|
+
terminal: PersistentPtyInfo;
|
|
3001
|
+
};
|
|
3002
|
+
};
|
|
2954
3003
|
export type PersistentPtySnapshot = {
|
|
2955
3004
|
info: PersistentPtyInfo;
|
|
2956
3005
|
text: string;
|
|
@@ -2976,6 +3025,12 @@ export type FormReplied = {
|
|
|
2976
3025
|
};
|
|
2977
3026
|
};
|
|
2978
3027
|
export type ScheduleWhen = ScheduleWhenIn | ScheduleWhenAt | ScheduleWhenEvery | ScheduleWhenCron;
|
|
3028
|
+
export type ArtifactContent = {
|
|
3029
|
+
info: ArtifactInfo;
|
|
3030
|
+
files: {
|
|
3031
|
+
[x: string]: string;
|
|
3032
|
+
};
|
|
3033
|
+
};
|
|
2979
3034
|
export type SessionInboxMove = {
|
|
2980
3035
|
id: SessionMessageID;
|
|
2981
3036
|
sessionID: SessionID;
|
|
@@ -3162,7 +3217,7 @@ export type ConfigEntry = {
|
|
|
3162
3217
|
timezone?: string;
|
|
3163
3218
|
permissions?: PermissionRuleset;
|
|
3164
3219
|
policies?: Array<{
|
|
3165
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3220
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3166
3221
|
resource: string;
|
|
3167
3222
|
effect: "allow" | "deny";
|
|
3168
3223
|
}>;
|
|
@@ -3416,10 +3471,11 @@ export type ConfigEntry = {
|
|
|
3416
3471
|
};
|
|
3417
3472
|
};
|
|
3418
3473
|
schedules?: boolean;
|
|
3474
|
+
artifacts?: boolean;
|
|
3419
3475
|
subagent_depth?: number;
|
|
3420
3476
|
location_idle_timeout?: string | false;
|
|
3421
3477
|
policies?: Array<{
|
|
3422
|
-
action: "provider.use" | "tool.use" | "integration.use";
|
|
3478
|
+
action: "provider.use" | "tool.use" | "integration.connect" | "integration.use" | "mcp.use" | "skill.use" | "plugin.use";
|
|
3423
3479
|
resource: string;
|
|
3424
3480
|
effect: "allow" | "deny";
|
|
3425
3481
|
}>;
|
|
@@ -3695,7 +3751,7 @@ export type IntegrationInfo = {
|
|
|
3695
3751
|
connections: Array<ConnectionInfo>;
|
|
3696
3752
|
};
|
|
3697
3753
|
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 | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3698
|
-
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 | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | 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;
|
|
3754
|
+
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 | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | 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;
|
|
3699
3755
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3700
3756
|
export type InvalidRequestError = {
|
|
3701
3757
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3919,12 +3975,24 @@ export type PtyNotFoundError = {
|
|
|
3919
3975
|
readonly message: string;
|
|
3920
3976
|
};
|
|
3921
3977
|
export declare const isPtyNotFoundError: (value: unknown) => value is PtyNotFoundError;
|
|
3978
|
+
export type PtyFeatureUnsupportedError = {
|
|
3979
|
+
readonly _tag: "PtyFeatureUnsupportedError";
|
|
3980
|
+
readonly feature: string;
|
|
3981
|
+
readonly message: string;
|
|
3982
|
+
};
|
|
3983
|
+
export declare const isPtyFeatureUnsupportedError: (value: unknown) => value is PtyFeatureUnsupportedError;
|
|
3922
3984
|
export type ScheduleNotFoundError = {
|
|
3923
3985
|
readonly _tag: "ScheduleNotFoundError";
|
|
3924
3986
|
readonly scheduleID: string;
|
|
3925
3987
|
readonly message: string;
|
|
3926
3988
|
};
|
|
3927
3989
|
export declare const isScheduleNotFoundError: (value: unknown) => value is ScheduleNotFoundError;
|
|
3990
|
+
export type ArtifactNotFoundError = {
|
|
3991
|
+
readonly _tag: "ArtifactNotFoundError";
|
|
3992
|
+
readonly artifactID: string;
|
|
3993
|
+
readonly message: string;
|
|
3994
|
+
};
|
|
3995
|
+
export declare const isArtifactNotFoundError: (value: unknown) => value is ArtifactNotFoundError;
|
|
3928
3996
|
export type ShellNotFoundError = {
|
|
3929
3997
|
readonly _tag: "ShellNotFoundError";
|
|
3930
3998
|
readonly id: string;
|
|
@@ -5227,7 +5295,7 @@ export type RpcCallInput = {
|
|
|
5227
5295
|
};
|
|
5228
5296
|
export type RpcCallOutput = RpcOutput;
|
|
5229
5297
|
export type EventSubscribeInput = {
|
|
5230
|
-
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.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" | "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;
|
|
5298
|
+
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.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" | "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;
|
|
5231
5299
|
};
|
|
5232
5300
|
export type EventSubscribeOutput = V2Event;
|
|
5233
5301
|
export type PtyListInput = {
|
|
@@ -5341,10 +5409,11 @@ export type ExperimentalPersistentPtyGetOutput = {
|
|
|
5341
5409
|
export type ExperimentalPersistentPtyUpdateInput = {
|
|
5342
5410
|
readonly ptyID: string;
|
|
5343
5411
|
readonly attachmentID?: string | undefined;
|
|
5344
|
-
readonly size
|
|
5412
|
+
readonly size?: {
|
|
5345
5413
|
readonly cols: number;
|
|
5346
5414
|
readonly rows: number;
|
|
5347
|
-
};
|
|
5415
|
+
} | undefined;
|
|
5416
|
+
readonly title?: string | null | undefined;
|
|
5348
5417
|
};
|
|
5349
5418
|
export type ExperimentalPersistentPtyUpdateOutput = {
|
|
5350
5419
|
data: PersistentPtyInfo;
|
|
@@ -5398,18 +5467,32 @@ export type ExperimentalScheduleCreateInput = {
|
|
|
5398
5467
|
readonly every?: never;
|
|
5399
5468
|
readonly tz?: string;
|
|
5400
5469
|
}) | undefined;
|
|
5401
|
-
readonly if?: {
|
|
5470
|
+
readonly if?: ({
|
|
5402
5471
|
readonly run: string;
|
|
5403
5472
|
readonly is?: string;
|
|
5404
5473
|
readonly matches?: string;
|
|
5405
5474
|
readonly changes?: boolean;
|
|
5406
|
-
|
|
5407
|
-
|
|
5475
|
+
readonly code?: never;
|
|
5476
|
+
} | {
|
|
5477
|
+
readonly code: string;
|
|
5478
|
+
readonly run?: never;
|
|
5479
|
+
readonly is?: never;
|
|
5480
|
+
readonly matches?: never;
|
|
5481
|
+
readonly changes?: never;
|
|
5482
|
+
}) | undefined;
|
|
5483
|
+
readonly until?: ({
|
|
5408
5484
|
readonly run: string;
|
|
5409
5485
|
readonly is?: string;
|
|
5410
5486
|
readonly matches?: string;
|
|
5411
5487
|
readonly changes?: boolean;
|
|
5412
|
-
|
|
5488
|
+
readonly code?: never;
|
|
5489
|
+
} | {
|
|
5490
|
+
readonly code: string;
|
|
5491
|
+
readonly run?: never;
|
|
5492
|
+
readonly is?: never;
|
|
5493
|
+
readonly matches?: never;
|
|
5494
|
+
readonly changes?: never;
|
|
5495
|
+
}) | undefined;
|
|
5413
5496
|
readonly ends?: {
|
|
5414
5497
|
readonly after?: string;
|
|
5415
5498
|
readonly at?: string;
|
|
@@ -5448,6 +5531,83 @@ export type ExperimentalScheduleDeleteInput = {
|
|
|
5448
5531
|
readonly scheduleID: string;
|
|
5449
5532
|
};
|
|
5450
5533
|
export type ExperimentalScheduleDeleteOutput = void;
|
|
5534
|
+
export type ExperimentalArtifactsProvidersInput = {
|
|
5535
|
+
readonly location?: {
|
|
5536
|
+
readonly directory?: string | undefined;
|
|
5537
|
+
} | undefined;
|
|
5538
|
+
};
|
|
5539
|
+
export type ExperimentalArtifactsProvidersOutput = {
|
|
5540
|
+
location: LocationPublicRef;
|
|
5541
|
+
data: Array<ArtifactProvider>;
|
|
5542
|
+
};
|
|
5543
|
+
export type ExperimentalArtifactsListInput = {
|
|
5544
|
+
readonly location?: {
|
|
5545
|
+
readonly directory?: string | undefined;
|
|
5546
|
+
} | undefined;
|
|
5547
|
+
readonly sessionID?: string | undefined;
|
|
5548
|
+
readonly provider?: string | undefined;
|
|
5549
|
+
};
|
|
5550
|
+
export type ExperimentalArtifactsListOutput = {
|
|
5551
|
+
location: LocationPublicRef;
|
|
5552
|
+
data: Array<ArtifactInfo>;
|
|
5553
|
+
};
|
|
5554
|
+
export type ExperimentalArtifactsCreateInput = {
|
|
5555
|
+
readonly location?: {
|
|
5556
|
+
readonly directory?: string | undefined;
|
|
5557
|
+
} | undefined;
|
|
5558
|
+
readonly title: string;
|
|
5559
|
+
readonly files: {
|
|
5560
|
+
readonly [x: string]: string;
|
|
5561
|
+
};
|
|
5562
|
+
readonly entry?: string | undefined;
|
|
5563
|
+
readonly provider?: string | undefined;
|
|
5564
|
+
readonly sessionID?: string | undefined;
|
|
5565
|
+
};
|
|
5566
|
+
export type ExperimentalArtifactsCreateOutput = {
|
|
5567
|
+
location: LocationPublicRef;
|
|
5568
|
+
data: ArtifactInfo;
|
|
5569
|
+
};
|
|
5570
|
+
export type ExperimentalArtifactsGetInput = {
|
|
5571
|
+
readonly artifactID: string;
|
|
5572
|
+
readonly location?: {
|
|
5573
|
+
readonly directory?: string | undefined;
|
|
5574
|
+
} | undefined;
|
|
5575
|
+
};
|
|
5576
|
+
export type ExperimentalArtifactsGetOutput = {
|
|
5577
|
+
location: LocationPublicRef;
|
|
5578
|
+
data: ArtifactContent;
|
|
5579
|
+
};
|
|
5580
|
+
export type ExperimentalArtifactsUpdateInput = {
|
|
5581
|
+
readonly artifactID: string;
|
|
5582
|
+
readonly location?: {
|
|
5583
|
+
readonly directory?: string | undefined;
|
|
5584
|
+
} | undefined;
|
|
5585
|
+
readonly title?: string | undefined;
|
|
5586
|
+
readonly files: {
|
|
5587
|
+
readonly [x: string]: string;
|
|
5588
|
+
};
|
|
5589
|
+
readonly entry?: string | undefined;
|
|
5590
|
+
readonly sessionID?: string | undefined;
|
|
5591
|
+
};
|
|
5592
|
+
export type ExperimentalArtifactsUpdateOutput = {
|
|
5593
|
+
location: LocationPublicRef;
|
|
5594
|
+
data: ArtifactInfo;
|
|
5595
|
+
};
|
|
5596
|
+
export type ExperimentalArtifactsDeleteInput = {
|
|
5597
|
+
readonly artifactID: string;
|
|
5598
|
+
readonly location?: {
|
|
5599
|
+
readonly directory?: string | undefined;
|
|
5600
|
+
} | undefined;
|
|
5601
|
+
};
|
|
5602
|
+
export type ExperimentalArtifactsDeleteOutput = void;
|
|
5603
|
+
export type ExperimentalArtifactsViewInput = {
|
|
5604
|
+
readonly artifactID: string;
|
|
5605
|
+
readonly location?: {
|
|
5606
|
+
readonly directory?: string | undefined;
|
|
5607
|
+
} | undefined;
|
|
5608
|
+
readonly path: string;
|
|
5609
|
+
};
|
|
5610
|
+
export type ExperimentalArtifactsViewOutput = globalThis.Uint8Array;
|
|
5451
5611
|
export type ShellListInput = {
|
|
5452
5612
|
readonly location?: {
|
|
5453
5613
|
readonly directory?: string | undefined;
|
|
@@ -34,13 +34,16 @@ import {
|
|
|
34
34
|
isRpcError2,
|
|
35
35
|
isRpcInternalError2,
|
|
36
36
|
isPtyNotFoundError2,
|
|
37
|
+
isPtyFeatureUnsupportedError2,
|
|
37
38
|
isScheduleNotFoundError2,
|
|
39
|
+
isArtifactNotFoundError2,
|
|
38
40
|
isShellNotFoundError2,
|
|
39
41
|
isWorktreeError2,
|
|
40
42
|
isVcsInitNotSupportedError2
|
|
41
|
-
} from "../../chunks/
|
|
43
|
+
} from "../../chunks/service-sdjh9vmn.js";
|
|
42
44
|
export {
|
|
43
45
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
46
|
+
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
44
47
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
45
48
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
46
49
|
isConflictError2 as isConflictError,
|
|
@@ -65,6 +68,7 @@ export {
|
|
|
65
68
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
66
69
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
67
70
|
isProviderRequestError2 as isProviderRequestError,
|
|
71
|
+
isPtyFeatureUnsupportedError2 as isPtyFeatureUnsupportedError,
|
|
68
72
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
|
69
73
|
isRpcError2 as isRpcError,
|
|
70
74
|
isRpcInternalError2 as isRpcInternalError,
|
package/dist/promise/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";
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/service-6r38tsk5.js";
|
|
2
|
+
import {
|
|
3
|
+
mediaHashFromUri2,
|
|
4
|
+
withMediaRefs2
|
|
5
|
+
} from "../chunks/service-mwrzahmf.js";
|
|
2
6
|
import {
|
|
3
7
|
exports_client3
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/pty-handoff-0e3ghr9a.js";
|
|
8
|
+
} from "../chunks/service-vzds1rj7.js";
|
|
9
|
+
import"../chunks/service-vyas3vgt.js";
|
|
10
|
+
import"../chunks/service-b6gvhk3y.js";
|
|
8
11
|
import {
|
|
9
12
|
ClientError3
|
|
10
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/service-nwcpakzx.js";
|
|
14
|
+
import"../chunks/service-xqwq6bgr.js";
|
|
11
15
|
import {
|
|
12
16
|
isInvalidRequestError2,
|
|
13
17
|
isUnauthorizedError2,
|
|
@@ -44,16 +48,19 @@ import {
|
|
|
44
48
|
isRpcError2,
|
|
45
49
|
isRpcInternalError2,
|
|
46
50
|
isPtyNotFoundError2,
|
|
51
|
+
isPtyFeatureUnsupportedError2,
|
|
47
52
|
isScheduleNotFoundError2,
|
|
53
|
+
isArtifactNotFoundError2,
|
|
48
54
|
isShellNotFoundError2,
|
|
49
55
|
isWorktreeError2,
|
|
50
56
|
isVcsInitNotSupportedError2
|
|
51
|
-
} from "../chunks/
|
|
52
|
-
import"../chunks/
|
|
57
|
+
} from "../chunks/service-sdjh9vmn.js";
|
|
58
|
+
import"../chunks/service-gecjxyvt.js";
|
|
53
59
|
export {
|
|
54
60
|
ClientError3 as ClientError,
|
|
55
61
|
exports_client3 as OpenCode,
|
|
56
62
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
63
|
+
isArtifactNotFoundError2 as isArtifactNotFoundError,
|
|
57
64
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
58
65
|
isCommandNotFoundError2 as isCommandNotFoundError,
|
|
59
66
|
isConflictError2 as isConflictError,
|
|
@@ -78,6 +85,7 @@ export {
|
|
|
78
85
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
79
86
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
80
87
|
isProviderRequestError2 as isProviderRequestError,
|
|
88
|
+
isPtyFeatureUnsupportedError2 as isPtyFeatureUnsupportedError,
|
|
81
89
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
|
82
90
|
isRpcError2 as isRpcError,
|
|
83
91
|
isRpcInternalError2 as isRpcInternalError,
|
|
@@ -91,5 +99,7 @@ export {
|
|
|
91
99
|
isUnknownError2 as isUnknownError,
|
|
92
100
|
isUnsupportedModelError2 as isUnsupportedModelError,
|
|
93
101
|
isVcsInitNotSupportedError2 as isVcsInitNotSupportedError,
|
|
94
|
-
isWorktreeError2 as isWorktreeError
|
|
102
|
+
isWorktreeError2 as isWorktreeError,
|
|
103
|
+
mediaHashFromUri2 as mediaHashFromUri,
|
|
104
|
+
withMediaRefs2 as withMediaRefs
|
|
95
105
|
};
|