@opencode/client 0.0.0-dev-19654 → 0.0.0-dev-19657
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/effect/api/api.d.ts +56 -75
- package/dist/effect/client.d.ts +11 -23
- package/dist/effect/generated/client.d.ts +12 -24
- package/dist/effect/generated/client.js +31 -34
- package/dist/promise/client.d.ts +10 -20
- package/dist/promise/generated/client.d.ts +11 -21
- package/dist/promise/generated/client.js +51 -72
- package/dist/promise/generated/types.d.ts +707 -712
- package/dist/promise/generated/types.js +3 -3
- package/dist/solid/data.d.ts +3 -3
- package/dist/solid/data.js +4 -4
- package/package.json +4 -4
|
@@ -15,15 +15,15 @@ export const isInstructionEntryValueTooLargeError = (value) => typeof value ===
|
|
|
15
15
|
value !== null &&
|
|
16
16
|
"_tag" in value &&
|
|
17
17
|
value["_tag"] === "InstructionEntryValueTooLargeError";
|
|
18
|
+
export const isFormNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormNotFoundError";
|
|
19
|
+
export const isFormInvalidAnswerError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormInvalidAnswerError";
|
|
20
|
+
export const isFormAlreadySettledError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormAlreadySettledError";
|
|
18
21
|
export const isProviderNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ProviderNotFoundError";
|
|
19
22
|
export const isIntegrationNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "IntegrationNotFoundError";
|
|
20
23
|
export const isIntegrationAttemptNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "IntegrationAttemptNotFoundError";
|
|
21
24
|
export const isIntegrationMethodNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "IntegrationMethodNotFoundError";
|
|
22
25
|
export const isMcpServerNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "McpServerNotFoundError";
|
|
23
26
|
export const isProjectNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "ProjectNotFoundError";
|
|
24
|
-
export const isFormNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormNotFoundError";
|
|
25
|
-
export const isFormInvalidAnswerError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormInvalidAnswerError";
|
|
26
|
-
export const isFormAlreadySettledError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FormAlreadySettledError";
|
|
27
27
|
export const isPermissionNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "PermissionNotFoundError";
|
|
28
28
|
export const isFileNotFoundError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "FileNotFoundError";
|
|
29
29
|
export const isRpcError = (value) => typeof value === "object" && value !== null && "_tag" in value && value["_tag"] === "RpcError";
|
package/dist/solid/data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentInfo, CommandInfo, ConfigEntry,
|
|
1
|
+
import type { AgentInfo, CommandInfo, ConfigEntry, SessionFormCancelInput, FormInfo, SessionFormReplyInput, IntegrationInfo, LocationRef, McpResource, McpServer, ModelInfo, ModelRef, PermissionSavedInfo, PermissionRequest, PermissionReplyInput, Project, ProviderInfo, ReferenceInfo, SessionMessageInfo, SessionInfo, SessionInboxInfo, SessionInboxCompaction, ShellInfo, SkillInfo, VcsInfo, OpenCodeEvent, OpenCodeClient, WebSearchProvider } from "../promise";
|
|
2
2
|
import { type SessionPromptInput } from "../promise";
|
|
3
3
|
export type DataSessionStatus = "idle" | "running";
|
|
4
4
|
type OpenCodeEventMap = {
|
|
@@ -106,8 +106,8 @@ export declare function createData(config: CreateDataInput): {
|
|
|
106
106
|
list(sessionID: string, ref?: LocationRef): FormWithLocation[] | undefined;
|
|
107
107
|
sync(sessionID: string, ref?: LocationRef): Promise<void>;
|
|
108
108
|
invalidate(sessionID: string, ref?: LocationRef): void;
|
|
109
|
-
reply(input:
|
|
110
|
-
cancel(input:
|
|
109
|
+
reply(input: SessionFormReplyInput, ref?: LocationRef): Promise<void>;
|
|
110
|
+
cancel(input: SessionFormCancelInput, ref?: LocationRef): Promise<void>;
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
project: {
|
package/dist/solid/data.js
CHANGED
|
@@ -1595,7 +1595,7 @@ export function createData(config) {
|
|
|
1595
1595
|
const key = `session.form:${sessionID}:${sessionID === "global" ? locationKey(ref ?? defaultLocation()) : ""}`;
|
|
1596
1596
|
return sync.run(key, async () => {
|
|
1597
1597
|
if (sessionID === "global") {
|
|
1598
|
-
const response = await api().form.
|
|
1598
|
+
const response = await api().form.list({
|
|
1599
1599
|
location: locationQuery(ref ?? defaultLocation()),
|
|
1600
1600
|
});
|
|
1601
1601
|
const location = {
|
|
@@ -1608,17 +1608,17 @@ export function createData(config) {
|
|
|
1608
1608
|
]);
|
|
1609
1609
|
return;
|
|
1610
1610
|
}
|
|
1611
|
-
setStore("session", "form", sessionID, await api().form.list({ sessionID }));
|
|
1611
|
+
setStore("session", "form", sessionID, await api().session.form.list({ sessionID }));
|
|
1612
1612
|
});
|
|
1613
1613
|
},
|
|
1614
1614
|
invalidate(sessionID, ref) {
|
|
1615
1615
|
sync.invalidate(`session.form:${sessionID}:${sessionID === "global" ? locationKey(ref ?? defaultLocation()) : ""}`);
|
|
1616
1616
|
},
|
|
1617
1617
|
reply(input, ref) {
|
|
1618
|
-
return settleForm(input, ref, api().form.reply(input, formRequestOptions(input.sessionID, ref)));
|
|
1618
|
+
return settleForm(input, ref, api().session.form.reply(input, formRequestOptions(input.sessionID, ref)));
|
|
1619
1619
|
},
|
|
1620
1620
|
cancel(input, ref) {
|
|
1621
|
-
return settleForm(input, ref, api().form.cancel(input, formRequestOptions(input.sessionID, ref)));
|
|
1621
|
+
return settleForm(input, ref, api().session.form.cancel(input, formRequestOptions(input.sessionID, ref)));
|
|
1622
1622
|
},
|
|
1623
1623
|
},
|
|
1624
1624
|
},
|
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-19657",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --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-19657",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-19657"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.112",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
77
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-19657",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.4.0",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|