@opencode/client 0.0.0-dev-21163 → 0.0.0-dev-21165
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-version-2ny4vxct.js → pty-handoff-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-version-b567398j.js → pty-handoff-33zngk9k.js} +1 -1
- package/dist/chunks/{service-version-1y4a697q.js → pty-handoff-6vp15eh6.js} +1 -1
- package/dist/chunks/{service-version-1rg78mqg.js → pty-handoff-cq2g4qp7.js} +5 -5
- package/dist/chunks/{service-version-ecq6p6gm.js → pty-handoff-dzvzhktf.js} +12 -4
- package/dist/chunks/{service-version-vt9jbch8.js → pty-handoff-ezt8t3fk.js} +2 -1
- package/dist/chunks/{service-version-frbwqjmf.js → pty-handoff-frbwqjmf.js} +1 -1
- package/dist/chunks/{service-version-q008jpwa.js → pty-handoff-khbqy9kt.js} +4 -4
- package/dist/chunks/{service-version-mnyft54j.js → pty-handoff-mnyft54j.js} +2 -2
- package/dist/chunks/{service-version-m77rqa4a.js → pty-handoff-pkgaqevf.js} +1 -1
- package/dist/chunks/{service-version-t1xa31vm.js → pty-handoff-t1xa31vm.js} +1 -1
- package/dist/chunks/{service-version-hqeq47hr.js → pty-handoff-trb22znc.js} +10 -2
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +8 -0
- package/dist/effect/client.d.ts +1 -0
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +2 -1
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.d.ts +1 -0
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.d.ts +2 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +8 -6
- package/dist/promise/generated/types.d.ts +22 -0
- package/dist/promise/generated/types.js +3 -1
- package/dist/promise/index.js +10 -8
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- 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.js +9 -9
- package/dist/solid/index.js +12 -12
- package/dist/solid/pty.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{service-version-6mptkzbc.js → pty-handoff-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-version-7f0py9js.js → pty-handoff-7f0py9js.js} +0 -0
- /package/dist/chunks/{service-version-8s2anffy.js → pty-handoff-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-version-9rqn6x4v.js → pty-handoff-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-version-gne7h7mq.js → pty-handoff-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-version-js54wxgp.js → pty-handoff-js54wxgp.js} +0 -0
- /package/dist/chunks/{service-version-m2eywc8w.js → pty-handoff-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-version-qav6mfdz.js → pty-handoff-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-version-sxt88q69.js → pty-handoff-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-version-ve4aws36.js → pty-handoff-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-version-vmytr4q8.js → pty-handoff-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-version-vyas3vgt.js → pty-handoff-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-version-xgnj2w4v.js → pty-handoff-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-version-ydhz1zrh.js → pty-handoff-ydhz1zrh.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-frbwqjmf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
make6
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-dzvzhktf.js";
|
|
10
10
|
import {
|
|
11
11
|
make5,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./pty-handoff-mnyft54j.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client3 = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-vmytr4q8.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-7f0py9js.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client4 = {};
|
|
@@ -393,6 +393,10 @@ var EndpointFormList = (raw) => (input) => preserveEffect()(raw["form.list"]({ q
|
|
|
393
393
|
var adaptGroupForm = (raw) => ({ list: EndpointFormList(raw) });
|
|
394
394
|
var EndpointPermissionRequestList = (raw) => (input) => preserveEffect()(raw["permission.request.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError)));
|
|
395
395
|
var EndpointPermissionSavedList = (raw) => (input) => preserveEffect()(raw["permission.saved.list"]({ query: { projectID: input?.["projectID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
396
|
+
var EndpointPermissionSavedUpdate = (raw) => (input) => preserveEffect()(raw["permission.saved.update"]({
|
|
397
|
+
params: { id: input["id"] },
|
|
398
|
+
payload: { action: input["action"], resource: input["resource"] }
|
|
399
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
396
400
|
var EndpointPermissionSavedRemove = (raw) => (input) => preserveEffect()(raw["permission.saved.remove"]({ params: { id: input["id"] } }).pipe(Effect.mapError(mapClientError)));
|
|
397
401
|
var EndpointPermissionCreate = (raw) => (input) => preserveEffect()(raw["session.permission.create"]({
|
|
398
402
|
params: { sessionID: input["sessionID"] },
|
|
@@ -414,7 +418,11 @@ var EndpointPermissionReply = (raw) => (input) => preserveEffect()(raw["session.
|
|
|
414
418
|
}).pipe(Effect.mapError(mapClientError)));
|
|
415
419
|
var adaptGroupPermission = (raw) => ({
|
|
416
420
|
request: { list: EndpointPermissionRequestList(raw) },
|
|
417
|
-
saved: {
|
|
421
|
+
saved: {
|
|
422
|
+
list: EndpointPermissionSavedList(raw),
|
|
423
|
+
update: EndpointPermissionSavedUpdate(raw),
|
|
424
|
+
remove: EndpointPermissionSavedRemove(raw)
|
|
425
|
+
},
|
|
418
426
|
create: EndpointPermissionCreate(raw),
|
|
419
427
|
list: EndpointPermissionList(raw),
|
|
420
428
|
get: EndpointPermissionGet(raw),
|
|
@@ -23,6 +23,7 @@ var isIntegrationAttemptNotFoundError2 = (value) => typeof value === "object" &&
|
|
|
23
23
|
var isIntegrationMethodNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "IntegrationMethodNotFoundError";
|
|
24
24
|
var isMcpServerNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "McpServerNotFoundError";
|
|
25
25
|
var isProjectNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "ProjectNotFoundError";
|
|
26
|
+
var isPermissionSavedNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionSavedNotFoundError";
|
|
26
27
|
var isPermissionNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "PermissionNotFoundError";
|
|
27
28
|
var isFileNotFoundError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "FileNotFoundError";
|
|
28
29
|
var isRpcError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "RpcError";
|
|
@@ -33,4 +34,4 @@ var isShellNotFoundError2 = (value) => typeof value === "object" && value !== nu
|
|
|
33
34
|
var isWorktreeError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "WorktreeError";
|
|
34
35
|
var isVcsInitNotSupportedError2 = (value) => typeof value === "object" && value !== null && ("_tag" in value) && value["_tag"] === "VcsInitNotSupportedError";
|
|
35
36
|
|
|
36
|
-
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isConflictError2, isUnknownError2, isMessageNotFoundError2, isCommandNotFoundError2, isCommandExecutionError2, isSkillNotFoundError2, isSessionBusyError2, isInstructionEntryValueTooLargeError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isProviderNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isForbiddenError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
|
|
37
|
+
export { isInvalidRequestError2, isUnauthorizedError2, isLocationNotFoundError2, isServiceUnavailableError2, isAgentNotFoundError2, isInvalidCursorError2, isSessionNotFoundError2, isConflictError2, isUnknownError2, isMessageNotFoundError2, isCommandNotFoundError2, isCommandExecutionError2, isSkillNotFoundError2, isSessionBusyError2, isInstructionEntryValueTooLargeError2, isFormNotFoundError2, isFormInvalidAnswerError2, isFormAlreadySettledError2, isProviderNotFoundError2, isIntegrationNotFoundError2, isIntegrationAttemptNotFoundError2, isIntegrationMethodNotFoundError2, isMcpServerNotFoundError2, isProjectNotFoundError2, isPermissionSavedNotFoundError2, isPermissionNotFoundError2, isFileNotFoundError2, isRpcError2, isRpcInternalError2, isPtyNotFoundError2, isForbiddenError2, isShellNotFoundError2, isWorktreeError2, isVcsInitNotSupportedError2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-frbwqjmf.js";
|
|
4
4
|
import {
|
|
5
5
|
make3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-trb22znc.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-6vp15eh6.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client = {};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-t1xa31vm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./pty-handoff-js54wxgp.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./pty-handoff-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client2 = {};
|
|
@@ -930,6 +930,14 @@ function make3(options) {
|
|
|
930
930
|
declaredStatuses: [400, 401, 404],
|
|
931
931
|
empty: false
|
|
932
932
|
}, requestOptions).then((value) => value.data),
|
|
933
|
+
update: (input, requestOptions) => request({
|
|
934
|
+
method: "PATCH",
|
|
935
|
+
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
|
936
|
+
body: { action: input["action"], resource: input["resource"] },
|
|
937
|
+
successStatus: 200,
|
|
938
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
939
|
+
empty: false
|
|
940
|
+
}, requestOptions).then((value) => value.data),
|
|
933
941
|
remove: (input, requestOptions) => request({
|
|
934
942
|
method: "DELETE",
|
|
935
943
|
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -2116,6 +2116,13 @@ export type PermissionSavedListInput = {
|
|
|
2116
2116
|
};
|
|
2117
2117
|
export type PermissionSavedListOutput = ReadonlyArray<PermissionSaved.Info>;
|
|
2118
2118
|
export type PermissionSavedListOperation<E = never> = (input?: PermissionSavedListInput) => Effect.Effect<PermissionSavedListOutput, E>;
|
|
2119
|
+
export type PermissionSavedUpdateInput = {
|
|
2120
|
+
readonly id: PermissionSaved.ID;
|
|
2121
|
+
readonly action?: string | undefined;
|
|
2122
|
+
readonly resource?: string | undefined;
|
|
2123
|
+
};
|
|
2124
|
+
export type PermissionSavedUpdateOutput = PermissionSaved.Info;
|
|
2125
|
+
export type PermissionSavedUpdateOperation<E = never> = (input: PermissionSavedUpdateInput) => Effect.Effect<PermissionSavedUpdateOutput, E>;
|
|
2119
2126
|
export type PermissionSavedRemoveInput = {
|
|
2120
2127
|
readonly id: PermissionSaved.ID;
|
|
2121
2128
|
};
|
|
@@ -2163,6 +2170,7 @@ export interface PermissionApi<E = never> {
|
|
|
2163
2170
|
};
|
|
2164
2171
|
readonly saved: {
|
|
2165
2172
|
readonly list: PermissionSavedListOperation<E>;
|
|
2173
|
+
readonly update: PermissionSavedUpdateOperation<E>;
|
|
2166
2174
|
readonly remove: PermissionSavedRemoveOperation<E>;
|
|
2167
2175
|
};
|
|
2168
2176
|
readonly create: PermissionCreateOperation<E>;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare const make: (options?: {
|
|
|
151
151
|
};
|
|
152
152
|
saved: {
|
|
153
153
|
list: (input?: import("./api.js").PermissionSavedListInput) => Effect.Effect<import("./api.js").PermissionSavedListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
154
|
+
update: (input: import("./api.js").PermissionSavedUpdateInput) => Effect.Effect<import("@opencode/schema/permission-saved").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionSavedNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
154
155
|
remove: (input: import("./api.js").PermissionSavedRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
155
156
|
};
|
|
156
157
|
create: (input: import("./api.js").PermissionCreateInput) => Effect.Effect<import("./api.js").PermissionCreateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make4,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-cq2g4qp7.js";
|
|
5
|
+
import"../chunks/pty-handoff-mnyft54j.js";
|
|
6
|
+
import"../chunks/pty-handoff-6mptkzbc.js";
|
|
7
|
+
import"../chunks/pty-handoff-dzvzhktf.js";
|
|
8
|
+
import"../chunks/pty-handoff-vmytr4q8.js";
|
|
9
|
+
import"../chunks/pty-handoff-7f0py9js.js";
|
|
10
|
+
import"../chunks/pty-handoff-t1xa31vm.js";
|
|
11
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client3 as OpenCode,
|
|
14
14
|
make4 as make
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Stream, Schema } from "effect";
|
|
2
2
|
import { Sse } from "effect/encoding";
|
|
3
3
|
import { HttpClientError } from "effect/http";
|
|
4
|
-
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, VoiceSessionInput, VoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, 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, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "../api/api.js";
|
|
4
|
+
import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, VoiceSessionInput, VoiceSessionOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, 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, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "../api/api.js";
|
|
5
5
|
import { ClientError } from "./client-error.js";
|
|
6
6
|
export declare const make: (options?: {
|
|
7
7
|
readonly baseUrl?: URL | string;
|
|
@@ -150,6 +150,7 @@ export declare const make: (options?: {
|
|
|
150
150
|
};
|
|
151
151
|
saved: {
|
|
152
152
|
list: (input?: PermissionSavedListInput) => Effect.Effect<PermissionSavedListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
153
|
+
update: (input: PermissionSavedUpdateInput) => Effect.Effect<import("@opencode/schema/permission-saved").Info, ClientError | import("@opencode/protocol/errors").ConflictError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionSavedNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
153
154
|
remove: (input: PermissionSavedRemoveInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
154
155
|
};
|
|
155
156
|
create: (input: PermissionCreateInput) => Effect.Effect<PermissionCreateOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make6
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
3
|
+
} from "../../chunks/pty-handoff-dzvzhktf.js";
|
|
4
|
+
import"../../chunks/pty-handoff-vmytr4q8.js";
|
|
5
|
+
import"../../chunks/pty-handoff-7f0py9js.js";
|
|
6
6
|
export {
|
|
7
7
|
make6 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/pty-handoff-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/pty-handoff-dzvzhktf.js";
|
|
5
|
+
import"../../chunks/pty-handoff-vmytr4q8.js";
|
|
5
6
|
import {
|
|
6
7
|
ClientError3
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/service-version-vmytr4q8.js";
|
|
8
|
+
} from "../../chunks/pty-handoff-7f0py9js.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError3 as ClientError,
|
|
11
11
|
exports_client4 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/pty-handoff-7f0py9js.js";
|
|
4
|
+
import"../chunks/pty-handoff-vmytr4q8.js";
|
|
5
|
+
import"../chunks/pty-handoff-dzvzhktf.js";
|
|
6
|
+
import"../chunks/pty-handoff-6mptkzbc.js";
|
|
7
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
8
|
+
import"../chunks/pty-handoff-t1xa31vm.js";
|
|
9
|
+
import"../chunks/pty-handoff-mnyft54j.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client3
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/pty-handoff-cq2g4qp7.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
make5,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/pty-handoff-mnyft54j.js";
|
|
6
|
+
import"../chunks/pty-handoff-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/pty-handoff-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/pty-handoff-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/
|
|
17
|
+
} from "../chunks/pty-handoff-33zngk9k.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/pty-handoff-2ny4vxct.js";
|
|
25
|
+
import"../chunks/pty-handoff-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export declare function make(options: ClientOptions): {
|
|
|
156
156
|
};
|
|
157
157
|
saved: {
|
|
158
158
|
list: (input?: import("./index.js").PermissionSavedListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionSavedInfo[]>;
|
|
159
|
+
update: (input: import("./index.js").PermissionSavedUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionSavedInfo>;
|
|
159
160
|
remove: (input: import("./index.js").PermissionSavedRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
160
161
|
};
|
|
161
162
|
create: (input: import("./index.js").PermissionCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-khbqy9kt.js";
|
|
5
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
6
|
+
import"../chunks/pty-handoff-trb22znc.js";
|
|
7
|
+
import"../chunks/pty-handoff-6vp15eh6.js";
|
|
8
|
+
import"../chunks/pty-handoff-ezt8t3fk.js";
|
|
9
|
+
import"../chunks/pty-handoff-js54wxgp.js";
|
|
10
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client as OpenCode,
|
|
13
13
|
make2 as make
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, 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, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, 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, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -163,6 +163,7 @@ export declare function make(options: ClientOptions): {
|
|
|
163
163
|
};
|
|
164
164
|
saved: {
|
|
165
165
|
list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo[]>;
|
|
166
|
+
update: (input: PermissionSavedUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo>;
|
|
166
167
|
remove: (input: PermissionSavedRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
167
168
|
};
|
|
168
169
|
create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/pty-handoff-vyas3vgt.js";
|
|
2
|
+
import {
|
|
3
|
+
exports_client2
|
|
4
|
+
} from "../../chunks/pty-handoff-trb22znc.js";
|
|
2
5
|
import {
|
|
3
6
|
isInvalidRequestError2,
|
|
4
7
|
isUnauthorizedError2,
|
|
@@ -24,6 +27,7 @@ import {
|
|
|
24
27
|
isIntegrationMethodNotFoundError2,
|
|
25
28
|
isMcpServerNotFoundError2,
|
|
26
29
|
isProjectNotFoundError2,
|
|
30
|
+
isPermissionSavedNotFoundError2,
|
|
27
31
|
isPermissionNotFoundError2,
|
|
28
32
|
isFileNotFoundError2,
|
|
29
33
|
isRpcError2,
|
|
@@ -33,13 +37,10 @@ import {
|
|
|
33
37
|
isShellNotFoundError2,
|
|
34
38
|
isWorktreeError2,
|
|
35
39
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/
|
|
37
|
-
import {
|
|
38
|
-
exports_client2
|
|
39
|
-
} from "../../chunks/service-version-hqeq47hr.js";
|
|
40
|
+
} from "../../chunks/pty-handoff-ezt8t3fk.js";
|
|
40
41
|
import {
|
|
41
42
|
ClientError2
|
|
42
|
-
} from "../../chunks/
|
|
43
|
+
} from "../../chunks/pty-handoff-js54wxgp.js";
|
|
43
44
|
export {
|
|
44
45
|
ClientError2 as ClientError,
|
|
45
46
|
exports_client2 as OpenCode,
|
|
@@ -62,6 +63,7 @@ export {
|
|
|
62
63
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
63
64
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
64
65
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
66
|
+
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
65
67
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
66
68
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
67
69
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
|
@@ -3602,6 +3602,12 @@ export type ProjectNotFoundError = {
|
|
|
3602
3602
|
readonly message: string;
|
|
3603
3603
|
};
|
|
3604
3604
|
export declare const isProjectNotFoundError: (value: unknown) => value is ProjectNotFoundError;
|
|
3605
|
+
export type PermissionSavedNotFoundError = {
|
|
3606
|
+
readonly _tag: "PermissionSavedNotFoundError";
|
|
3607
|
+
readonly id: string;
|
|
3608
|
+
readonly message: string;
|
|
3609
|
+
};
|
|
3610
|
+
export declare const isPermissionSavedNotFoundError: (value: unknown) => value is PermissionSavedNotFoundError;
|
|
3605
3611
|
export type PermissionNotFoundError = {
|
|
3606
3612
|
readonly _tag: "PermissionNotFoundError";
|
|
3607
3613
|
readonly requestID: string;
|
|
@@ -8043,6 +8049,22 @@ export type PermissionSavedListInput = {
|
|
|
8043
8049
|
export type PermissionSavedListOutput = {
|
|
8044
8050
|
data: Array<PermissionSavedInfo>;
|
|
8045
8051
|
}["data"];
|
|
8052
|
+
export type PermissionSavedUpdateInput = {
|
|
8053
|
+
readonly id: {
|
|
8054
|
+
readonly id: string;
|
|
8055
|
+
}["id"];
|
|
8056
|
+
readonly action?: {
|
|
8057
|
+
readonly action?: string | undefined;
|
|
8058
|
+
readonly resource?: string | undefined;
|
|
8059
|
+
}["action"];
|
|
8060
|
+
readonly resource?: {
|
|
8061
|
+
readonly action?: string | undefined;
|
|
8062
|
+
readonly resource?: string | undefined;
|
|
8063
|
+
}["resource"];
|
|
8064
|
+
};
|
|
8065
|
+
export type PermissionSavedUpdateOutput = {
|
|
8066
|
+
data: PermissionSavedInfo;
|
|
8067
|
+
}["data"];
|
|
8046
8068
|
export type PermissionSavedRemoveInput = {
|
|
8047
8069
|
readonly id: {
|
|
8048
8070
|
readonly id: string;
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
isIntegrationMethodNotFoundError2,
|
|
24
24
|
isMcpServerNotFoundError2,
|
|
25
25
|
isProjectNotFoundError2,
|
|
26
|
+
isPermissionSavedNotFoundError2,
|
|
26
27
|
isPermissionNotFoundError2,
|
|
27
28
|
isFileNotFoundError2,
|
|
28
29
|
isRpcError2,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
isShellNotFoundError2,
|
|
33
34
|
isWorktreeError2,
|
|
34
35
|
isVcsInitNotSupportedError2
|
|
35
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/pty-handoff-ezt8t3fk.js";
|
|
36
37
|
export {
|
|
37
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
38
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
|
@@ -53,6 +54,7 @@ export {
|
|
|
53
54
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
54
55
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
55
56
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
57
|
+
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
56
58
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
57
59
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
58
60
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/pty-handoff-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-khbqy9kt.js";
|
|
5
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
6
|
+
import"../chunks/pty-handoff-trb22znc.js";
|
|
7
|
+
import"../chunks/pty-handoff-6vp15eh6.js";
|
|
7
8
|
import {
|
|
8
9
|
isInvalidRequestError2,
|
|
9
10
|
isUnauthorizedError2,
|
|
@@ -29,6 +30,7 @@ import {
|
|
|
29
30
|
isIntegrationMethodNotFoundError2,
|
|
30
31
|
isMcpServerNotFoundError2,
|
|
31
32
|
isProjectNotFoundError2,
|
|
33
|
+
isPermissionSavedNotFoundError2,
|
|
32
34
|
isPermissionNotFoundError2,
|
|
33
35
|
isFileNotFoundError2,
|
|
34
36
|
isRpcError2,
|
|
@@ -38,12 +40,11 @@ import {
|
|
|
38
40
|
isShellNotFoundError2,
|
|
39
41
|
isWorktreeError2,
|
|
40
42
|
isVcsInitNotSupportedError2
|
|
41
|
-
} from "../chunks/
|
|
42
|
-
import"../chunks/service-version-hqeq47hr.js";
|
|
43
|
+
} from "../chunks/pty-handoff-ezt8t3fk.js";
|
|
43
44
|
import {
|
|
44
45
|
ClientError2
|
|
45
|
-
} from "../chunks/
|
|
46
|
-
import"../chunks/
|
|
46
|
+
} from "../chunks/pty-handoff-js54wxgp.js";
|
|
47
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
47
48
|
export {
|
|
48
49
|
ClientError2 as ClientError,
|
|
49
50
|
exports_client as OpenCode,
|
|
@@ -66,6 +67,7 @@ export {
|
|
|
66
67
|
isMcpServerNotFoundError2 as isMcpServerNotFoundError,
|
|
67
68
|
isMessageNotFoundError2 as isMessageNotFoundError,
|
|
68
69
|
isPermissionNotFoundError2 as isPermissionNotFoundError,
|
|
70
|
+
isPermissionSavedNotFoundError2 as isPermissionSavedNotFoundError,
|
|
69
71
|
isProjectNotFoundError2 as isProjectNotFoundError,
|
|
70
72
|
isProviderNotFoundError2 as isProviderNotFoundError,
|
|
71
73
|
isPtyNotFoundError2 as isPtyNotFoundError,
|
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/pty-handoff-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/pty-handoff-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/pty-handoff-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/
|
|
17
|
+
} from "../chunks/pty-handoff-33zngk9k.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/pty-handoff-2ny4vxct.js";
|
|
25
|
+
import"../chunks/pty-handoff-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
same2,
|
|
5
5
|
probeResult2,
|
|
6
6
|
headers2
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/pty-handoff-2ny4vxct.js";
|
|
8
|
+
import"./chunks/pty-handoff-sxt88q69.js";
|
|
9
|
+
import"./chunks/pty-handoff-xgnj2w4v.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/service-timing.js
CHANGED
package/dist/service-version.js
CHANGED
package/dist/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/pty-handoff-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/pty-handoff-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/pty-handoff-pkgaqevf.js";
|
|
6
|
+
import"../chunks/pty-handoff-m2eywc8w.js";
|
|
7
|
+
import"../chunks/pty-handoff-khbqy9kt.js";
|
|
8
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
9
|
+
import"../chunks/pty-handoff-trb22znc.js";
|
|
10
|
+
import"../chunks/pty-handoff-6vp15eh6.js";
|
|
11
|
+
import"../chunks/pty-handoff-ezt8t3fk.js";
|
|
12
|
+
import"../chunks/pty-handoff-js54wxgp.js";
|
|
13
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/pty-handoff-js54wxgp.js";
|
|
2
|
+
import"../chunks/pty-handoff-trb22znc.js";
|
|
3
|
+
import"../chunks/pty-handoff-ezt8t3fk.js";
|
|
4
|
+
import"../chunks/pty-handoff-vyas3vgt.js";
|
|
5
|
+
import"../chunks/pty-handoff-frbwqjmf.js";
|
|
6
|
+
import"../chunks/pty-handoff-6vp15eh6.js";
|
|
7
|
+
import"../chunks/pty-handoff-khbqy9kt.js";
|
|
8
|
+
import"../chunks/pty-handoff-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/pty-handoff-pkgaqevf.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/pty-handoff-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/pty-handoff-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
lastAssistantWithUsage2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/pty-handoff-8s2anffy.js";
|
|
26
26
|
export {
|
|
27
27
|
createClientConnection2 as createClientConnection,
|
|
28
28
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED
package/dist/solid/usage.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-21165",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsc --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode/schema": "0.0.0-dev-21165",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-21165"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.1",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.1",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-21165",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
80
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|