@opencode/client 2.0.24 → 2.0.25
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/{pty-handoff-71wkqa80.js → service-probe-1thtawyv.js} +1 -1
- package/dist/chunks/{pty-handoff-1y4a697q.js → service-probe-1y4a697q.js} +1 -1
- package/dist/chunks/{pty-handoff-ank0d71z.js → service-probe-2ny4vxct.js} +19 -2
- package/dist/chunks/{pty-handoff-w1w809zr.js → service-probe-65kht65h.js} +5 -5
- package/dist/chunks/{pty-handoff-qzsnm4q8.js → service-probe-9h52wrcy.js} +28 -19
- package/dist/chunks/{pty-handoff-frbwqjmf.js → service-probe-frbwqjmf.js} +1 -1
- package/dist/chunks/{pty-handoff-js54wxgp.js → service-probe-nwcpakzx.js} +2 -2
- package/dist/chunks/{pty-handoff-t1xa31vm.js → service-probe-t1xa31vm.js} +1 -1
- package/dist/chunks/{pty-handoff-src6by76.js → service-probe-trz7kcxd.js} +14 -1
- package/dist/chunks/{pty-handoff-5yf5aaev.js → service-probe-vnspkrex.js} +16 -11
- package/dist/chunks/{pty-handoff-7f0py9js.js → service-probe-y2etg5bs.js} +2 -2
- package/dist/chunks/{pty-handoff-myyn5x39.js → service-probe-y99g37y2.js} +17 -17
- package/dist/chunks/service-probe-z1hcmzxa.js +30 -0
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +12 -0
- package/dist/effect/client.d.ts +1 -0
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +2 -1
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.d.ts +16 -2
- package/dist/effect/service.js +18 -23
- package/dist/promise/client.d.ts +1 -0
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +2 -1
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +10 -10
- package/dist/promise/generated/types.d.ts +81 -4
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +13 -13
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +13 -18
- 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.d.ts +18 -1
- package/dist/service-probe.js +5 -2
- 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 +7 -0
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +11 -11
- package/dist/solid/pty.js +1 -1
- package/package.json +5 -6
- package/dist/chunks/pty-handoff-cqfz2qxq.js +0 -30
- /package/dist/chunks/{pty-handoff-6mptkzbc.js → service-probe-6mptkzbc.js} +0 -0
- /package/dist/chunks/{pty-handoff-9rqn6x4v.js → service-probe-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-gne7h7mq.js → service-probe-gne7h7mq.js} +0 -0
- /package/dist/chunks/{pty-handoff-m2eywc8w.js → service-probe-m2eywc8w.js} +0 -0
- /package/dist/chunks/{pty-handoff-qav6mfdz.js → service-probe-qav6mfdz.js} +0 -0
- /package/dist/chunks/{pty-handoff-sxt88q69.js → service-probe-sxt88q69.js} +0 -0
- /package/dist/chunks/{pty-handoff-ve4aws36.js → service-probe-ve4aws36.js} +0 -0
- /package/dist/chunks/{pty-handoff-vmytr4q8.js → service-probe-vmytr4q8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vt9jbch8.js → service-probe-vt9jbch8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vyas3vgt.js → service-probe-vyas3vgt.js} +0 -0
- /package/dist/chunks/{pty-handoff-xgnj2w4v.js → service-probe-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-ydhz1zrh.js → service-probe-ydhz1zrh.js} +0 -0
package/dist/service-probe.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
decide2,
|
|
2
3
|
fallback2,
|
|
3
4
|
same2,
|
|
4
5
|
probeResult2,
|
|
5
6
|
headers2
|
|
6
|
-
} from "./chunks/
|
|
7
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/service-probe-2ny4vxct.js";
|
|
8
|
+
import"./chunks/service-probe-sxt88q69.js";
|
|
9
|
+
import"./chunks/service-probe-xgnj2w4v.js";
|
|
8
10
|
export {
|
|
11
|
+
decide2 as decide,
|
|
9
12
|
fallback2 as fallback,
|
|
10
13
|
headers2 as headers,
|
|
11
14
|
probeResult2 as probeResult,
|
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/service-probe-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/service-probe-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
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
|
+
/**
|
|
5
|
+
* Where a pending user prompt stands relative to the runner: `starting` is promoted at the next idle boundary,
|
|
6
|
+
* `steering` waits for the next step boundary of an execution that already delivered input, `stranded` outlived an
|
|
7
|
+
* execution that ended without delivering it, and `queued` waits for every steer to drain.
|
|
8
|
+
*/
|
|
9
|
+
export type DataPendingStatus = "starting" | "steering" | "stranded" | "queued";
|
|
4
10
|
type OpenCodeEventMap = {
|
|
5
11
|
[Type in OpenCodeEvent["type"]]: Extract<OpenCodeEvent, {
|
|
6
12
|
type: Type;
|
|
@@ -57,6 +63,7 @@ export declare function createData(config: CreateDataInput): {
|
|
|
57
63
|
};
|
|
58
64
|
pending: {
|
|
59
65
|
list(sessionID: string): SessionInboxInfo[];
|
|
66
|
+
status(sessionID: string, inboxID: string): DataPendingStatus | undefined;
|
|
60
67
|
sync(sessionID: string): Promise<void>;
|
|
61
68
|
invalidate(sessionID: string): void;
|
|
62
69
|
};
|
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/service-probe-trz7kcxd.js";
|
|
6
|
+
import"../chunks/service-probe-m2eywc8w.js";
|
|
7
|
+
import"../chunks/service-probe-z1hcmzxa.js";
|
|
8
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
9
|
+
import"../chunks/service-probe-1y4a697q.js";
|
|
10
|
+
import"../chunks/service-probe-vt9jbch8.js";
|
|
11
|
+
import"../chunks/service-probe-9h52wrcy.js";
|
|
12
|
+
import"../chunks/service-probe-nwcpakzx.js";
|
|
13
|
+
import"../chunks/service-probe-frbwqjmf.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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/service-probe-nwcpakzx.js";
|
|
2
|
+
import"../chunks/service-probe-9h52wrcy.js";
|
|
3
|
+
import"../chunks/service-probe-vt9jbch8.js";
|
|
4
|
+
import"../chunks/service-probe-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-probe-frbwqjmf.js";
|
|
6
|
+
import"../chunks/service-probe-1y4a697q.js";
|
|
7
|
+
import"../chunks/service-probe-z1hcmzxa.js";
|
|
8
|
+
import"../chunks/service-probe-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/service-probe-trz7kcxd.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/service-probe-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/service-probe-gne7h7mq.js";
|
|
23
23
|
export {
|
|
24
24
|
createClientConnection2 as createClientConnection,
|
|
25
25
|
createData2 as createData,
|
package/dist/solid/pty.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": "2.0.
|
|
4
|
+
"version": "2.0.25",
|
|
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": "2.0.
|
|
61
|
-
"@opencode/protocol": "2.0.
|
|
60
|
+
"@opencode/schema": "2.0.25",
|
|
61
|
+
"@opencode/protocol": "2.0.25"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.112",
|
|
@@ -74,12 +74,11 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
77
|
-
"@opencode/httpapi-codegen": "2.0.
|
|
77
|
+
"@opencode/httpapi-codegen": "2.0.25",
|
|
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",
|
|
81
81
|
"effect": "4.0.0-rc.112",
|
|
82
|
-
"solid-js": "1.9.15"
|
|
83
|
-
"zod": "4.1.8"
|
|
82
|
+
"solid-js": "1.9.15"
|
|
84
83
|
}
|
|
85
84
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
make7
|
|
3
|
-
} from "./pty-handoff-frbwqjmf.js";
|
|
4
|
-
import {
|
|
5
|
-
make3
|
|
6
|
-
} from "./pty-handoff-qzsnm4q8.js";
|
|
7
|
-
import {
|
|
8
|
-
makeRpc2
|
|
9
|
-
} from "./pty-handoff-1y4a697q.js";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./pty-handoff-9rqn6x4v.js";
|
|
13
|
-
|
|
14
|
-
// src/promise/client.ts
|
|
15
|
-
var exports_client = {};
|
|
16
|
-
__export(exports_client, {
|
|
17
|
-
OpenCode: () => exports_client,
|
|
18
|
-
make: () => make2
|
|
19
|
-
});
|
|
20
|
-
function make2(options) {
|
|
21
|
-
const raw = make3(options);
|
|
22
|
-
const events = make7((signal, onActivity) => raw.event.subscribe({ signal, onActivity }));
|
|
23
|
-
return {
|
|
24
|
-
...raw,
|
|
25
|
-
rpc: Object.assign(makeRpc2(raw, events), raw.rpc),
|
|
26
|
-
event: events
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { make2, exports_client };
|
|
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
|