@opencode/client 0.0.0-dev-21173 → 0.0.0-dev-21176
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-timing-pkgaqevf.js → service-1hkhww1g.js} +9 -1
- package/dist/chunks/{service-timing-8ye1ye6f.js → service-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-timing-z6qdwcsf.js → service-65kht65h.js} +5 -5
- package/dist/chunks/{service-timing-6vp15eh6.js → service-6vp15eh6.js} +1 -1
- package/dist/chunks/{service-timing-teb2xrcv.js → service-77ntr0t0.js} +9 -3
- package/dist/chunks/{service-timing-sh38f3ps.js → service-8ym76xgd.js} +4 -4
- package/dist/chunks/{service-timing-hyba5qq1.js → service-e1nwd88v.js} +9 -9
- package/dist/chunks/{service-timing-frbwqjmf.js → service-frbwqjmf.js} +1 -1
- package/dist/chunks/{service-timing-npmvft7m.js → service-gbq9x9x6.js} +13 -7
- package/dist/chunks/{service-timing-t1xa31vm.js → service-t1xa31vm.js} +1 -1
- package/dist/chunks/{service-timing-6vqag1xy.js → service-xc31vwrt.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +40 -0
- package/dist/effect/client.d.ts +38 -0
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +38 -0
- 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.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +4 -4
- package/dist/promise/generated/types.d.ts +70 -2
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +8 -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-timing-6mptkzbc.js → service-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-8s2anffy.js → service-8s2anffy.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → service-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-ezt8t3fk.js → service-ezt8t3fk.js} +0 -0
- /package/dist/chunks/{service-timing-gne7h7mq.js → service-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-timing-m2eywc8w.js → service-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-timing-nwcpakzx.js → service-nwcpakzx.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → service-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → service-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → service-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vmytr4q8.js → service-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → service-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → service-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-y2etg5bs.js → service-y2etg5bs.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → service-ydhz1zrh.js} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
isFormNotFoundError2,
|
|
3
3
|
isFormAlreadySettledError2,
|
|
4
4
|
isPermissionNotFoundError2
|
|
5
|
-
} from "./service-
|
|
5
|
+
} from "./service-ezt8t3fk.js";
|
|
6
6
|
|
|
7
7
|
// src/solid/data.ts
|
|
8
8
|
import { Worktree } from "@opencode/schema/worktree";
|
|
@@ -537,6 +537,14 @@ function createData2(config) {
|
|
|
537
537
|
if (store.session.info[event.data.sessionID])
|
|
538
538
|
setStore("session", "info", event.data.sessionID, "permissions", event.data.permissions);
|
|
539
539
|
return;
|
|
540
|
+
case "session.archived":
|
|
541
|
+
if (store.session.info[event.data.sessionID])
|
|
542
|
+
setStore("session", "info", event.data.sessionID, "time", "archived", event.created);
|
|
543
|
+
return;
|
|
544
|
+
case "session.unarchived":
|
|
545
|
+
if (store.session.info[event.data.sessionID])
|
|
546
|
+
setStore("session", "info", event.data.sessionID, "time", "archived", undefined);
|
|
547
|
+
return;
|
|
540
548
|
case "session.moved": {
|
|
541
549
|
const current = store.session.info[event.data.sessionID];
|
|
542
550
|
if (current) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-t1xa31vm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./service-
|
|
9
|
+
} from "./service-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make3
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make3(call, subscribe) {
|
|
20
20
|
return (definition) => {
|
|
21
21
|
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
22
22
|
name,
|
|
@@ -59,4 +59,4 @@ function aborted2(signal) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { make3, aborted2, exports_rpc };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client4 = {};
|
|
@@ -226,6 +226,7 @@ function make6(options) {
|
|
|
226
226
|
order: input?.["order"],
|
|
227
227
|
search: input?.["search"],
|
|
228
228
|
parentID: input?.["parentID"],
|
|
229
|
+
archived: input?.["archived"],
|
|
229
230
|
directory: input?.["directory"],
|
|
230
231
|
project: input?.["project"],
|
|
231
232
|
subpath: input?.["subpath"],
|
|
@@ -330,7 +331,12 @@ function make6(options) {
|
|
|
330
331
|
update: (input, requestOptions) => request({
|
|
331
332
|
method: "PATCH",
|
|
332
333
|
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
333
|
-
body: {
|
|
334
|
+
body: {
|
|
335
|
+
title: input["title"],
|
|
336
|
+
metadata: input["metadata"],
|
|
337
|
+
permissions: input["permissions"],
|
|
338
|
+
archived: input["archived"]
|
|
339
|
+
},
|
|
334
340
|
successStatus: 204,
|
|
335
341
|
declaredStatuses: [400, 401, 404],
|
|
336
342
|
empty: true
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-frbwqjmf.js";
|
|
4
4
|
import {
|
|
5
5
|
make6
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-77ntr0t0.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./service-
|
|
9
|
+
} from "./service-6vp15eh6.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./service-
|
|
12
|
+
} from "./service-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client3 = {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-frbwqjmf.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./service-
|
|
8
|
+
make4
|
|
9
|
+
} from "./service-gbq9x9x6.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make3,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./service-
|
|
13
|
+
} from "./service-65kht65h.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./service-
|
|
16
|
+
} from "./service-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client = {};
|
|
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
|
|
|
30
30
|
});
|
|
31
31
|
var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
32
32
|
const httpClient = yield* HttpClient.HttpClient;
|
|
33
|
-
const raw = yield*
|
|
33
|
+
const raw = yield* make4(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
|
|
34
34
|
const context = yield* Effect.context();
|
|
35
35
|
const native = raw.event.subscribe();
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make3((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./service-
|
|
3
|
+
} from "./service-vmytr4q8.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./service-
|
|
6
|
+
} from "./service-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./service-
|
|
9
|
+
} from "./service-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client2 = {};
|
|
13
13
|
__export(exports_client2, {
|
|
14
|
-
make: () =>
|
|
14
|
+
make: () => make4
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
@@ -54,6 +54,7 @@ var EndpointSessionList = (raw) => (input) => preserveEffect()(raw["session.list
|
|
|
54
54
|
order: input?.["order"],
|
|
55
55
|
search: input?.["search"],
|
|
56
56
|
parentID: input?.["parentID"],
|
|
57
|
+
archived: input?.["archived"],
|
|
57
58
|
directory: input?.["directory"],
|
|
58
59
|
project: input?.["project"],
|
|
59
60
|
subpath: input?.["subpath"],
|
|
@@ -93,7 +94,12 @@ var EndpointSessionSwitchAgent = (raw) => (input) => preserveEffect()(raw["sessi
|
|
|
93
94
|
var EndpointSessionSwitchModel = (raw) => (input) => preserveEffect()(raw["session.switchModel"]({ params: { sessionID: input["sessionID"] }, payload: { model: input["model"] } }).pipe(Effect.mapError(mapClientError)));
|
|
94
95
|
var EndpointSessionUpdate = (raw) => (input) => preserveEffect()(raw["session.update"]({
|
|
95
96
|
params: { sessionID: input["sessionID"] },
|
|
96
|
-
payload: {
|
|
97
|
+
payload: {
|
|
98
|
+
title: input["title"],
|
|
99
|
+
metadata: input["metadata"],
|
|
100
|
+
permissions: input["permissions"],
|
|
101
|
+
archived: input["archived"]
|
|
102
|
+
}
|
|
97
103
|
}).pipe(Effect.mapError(mapClientError)));
|
|
98
104
|
var EndpointSessionMove = (raw) => (input) => preserveEffect()(raw["session.move"]({
|
|
99
105
|
params: { sessionID: input["sessionID"] },
|
|
@@ -631,6 +637,6 @@ var adaptClient = (raw) => ({
|
|
|
631
637
|
websearch: adaptGroupWebsearch(raw["server.websearch"]),
|
|
632
638
|
config: adaptGroupConfig(raw["server.config"])
|
|
633
639
|
});
|
|
634
|
-
var
|
|
640
|
+
var make4 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
635
641
|
|
|
636
|
-
export {
|
|
642
|
+
export { make4, exports_client2 };
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ export type SessionListInput = {
|
|
|
146
146
|
readonly order?: "asc" | "desc" | undefined;
|
|
147
147
|
readonly search?: string | undefined;
|
|
148
148
|
readonly parentID?: Session.ID | null | undefined;
|
|
149
|
+
readonly archived?: boolean | undefined;
|
|
149
150
|
readonly directory?: AbsolutePath | undefined;
|
|
150
151
|
readonly project?: Project.ID | undefined;
|
|
151
152
|
readonly subpath?: RelativePath | undefined;
|
|
@@ -301,6 +302,7 @@ export type SessionUpdateInput = {
|
|
|
301
302
|
readonly title?: string | undefined;
|
|
302
303
|
readonly metadata?: Session.Metadata | undefined;
|
|
303
304
|
readonly permissions?: Permission.Ruleset | undefined;
|
|
305
|
+
readonly archived?: boolean | undefined;
|
|
304
306
|
};
|
|
305
307
|
export type SessionUpdateOutput = void;
|
|
306
308
|
export type SessionUpdateOperation<E = never> = (input: SessionUpdateInput) => Effect.Effect<SessionUpdateOutput, E>;
|
|
@@ -635,6 +637,44 @@ export type SessionLogOutput = ({
|
|
|
635
637
|
readonly sessionID: Session.ID;
|
|
636
638
|
readonly idle: number;
|
|
637
639
|
};
|
|
640
|
+
} | {
|
|
641
|
+
readonly id: Event.ID;
|
|
642
|
+
readonly created: number;
|
|
643
|
+
readonly metadata?: {
|
|
644
|
+
readonly [x: string]: unknown;
|
|
645
|
+
} | undefined;
|
|
646
|
+
readonly type: "session.archived";
|
|
647
|
+
readonly durable: {
|
|
648
|
+
readonly aggregateID: string;
|
|
649
|
+
readonly seq: Event.Seq;
|
|
650
|
+
readonly version: Event.Version;
|
|
651
|
+
};
|
|
652
|
+
readonly location?: {
|
|
653
|
+
readonly directory: AbsolutePath;
|
|
654
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
655
|
+
} | undefined;
|
|
656
|
+
readonly data: {
|
|
657
|
+
readonly sessionID: Session.ID;
|
|
658
|
+
};
|
|
659
|
+
} | {
|
|
660
|
+
readonly id: Event.ID;
|
|
661
|
+
readonly created: number;
|
|
662
|
+
readonly metadata?: {
|
|
663
|
+
readonly [x: string]: unknown;
|
|
664
|
+
} | undefined;
|
|
665
|
+
readonly type: "session.unarchived";
|
|
666
|
+
readonly durable: {
|
|
667
|
+
readonly aggregateID: string;
|
|
668
|
+
readonly seq: Event.Seq;
|
|
669
|
+
readonly version: Event.Version;
|
|
670
|
+
};
|
|
671
|
+
readonly location?: {
|
|
672
|
+
readonly directory: AbsolutePath;
|
|
673
|
+
readonly workspaceID?: Workspace.ID | undefined;
|
|
674
|
+
} | undefined;
|
|
675
|
+
readonly data: {
|
|
676
|
+
readonly sessionID: Session.ID;
|
|
677
|
+
};
|
|
638
678
|
} | {
|
|
639
679
|
readonly id: Event.ID;
|
|
640
680
|
readonly created: number;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -529,6 +529,44 @@ export declare const make: (options?: {
|
|
|
529
529
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
530
530
|
readonly idle: number;
|
|
531
531
|
};
|
|
532
|
+
} | {
|
|
533
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
534
|
+
readonly created: number;
|
|
535
|
+
readonly metadata?: {
|
|
536
|
+
readonly [x: string]: unknown;
|
|
537
|
+
} | undefined;
|
|
538
|
+
readonly type: "session.archived";
|
|
539
|
+
readonly durable: {
|
|
540
|
+
readonly aggregateID: string;
|
|
541
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
542
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
543
|
+
};
|
|
544
|
+
readonly location?: {
|
|
545
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
546
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
547
|
+
} | undefined;
|
|
548
|
+
readonly data: {
|
|
549
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
550
|
+
};
|
|
551
|
+
} | {
|
|
552
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
553
|
+
readonly created: number;
|
|
554
|
+
readonly metadata?: {
|
|
555
|
+
readonly [x: string]: unknown;
|
|
556
|
+
} | undefined;
|
|
557
|
+
readonly type: "session.unarchived";
|
|
558
|
+
readonly durable: {
|
|
559
|
+
readonly aggregateID: string;
|
|
560
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
561
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
562
|
+
};
|
|
563
|
+
readonly location?: {
|
|
564
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
565
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
566
|
+
} | undefined;
|
|
567
|
+
readonly data: {
|
|
568
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
569
|
+
};
|
|
532
570
|
} | {
|
|
533
571
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
534
572
|
readonly created: number;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
11
|
-
import"../chunks/service-
|
|
4
|
+
} from "../chunks/service-e1nwd88v.js";
|
|
5
|
+
import"../chunks/service-65kht65h.js";
|
|
6
|
+
import"../chunks/service-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-gbq9x9x6.js";
|
|
8
|
+
import"../chunks/service-y2etg5bs.js";
|
|
9
|
+
import"../chunks/service-frbwqjmf.js";
|
|
10
|
+
import"../chunks/service-vmytr4q8.js";
|
|
11
|
+
import"../chunks/service-t1xa31vm.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
|
14
14
|
make2 as make
|
|
@@ -373,6 +373,25 @@ export declare const make: (options?: {
|
|
|
373
373
|
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
374
374
|
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
375
375
|
};
|
|
376
|
+
} | {
|
|
377
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
378
|
+
readonly created: number;
|
|
379
|
+
readonly metadata?: {
|
|
380
|
+
readonly [x: string]: unknown;
|
|
381
|
+
} | undefined;
|
|
382
|
+
readonly type: "session.archived";
|
|
383
|
+
readonly durable: {
|
|
384
|
+
readonly aggregateID: string;
|
|
385
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
386
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
387
|
+
};
|
|
388
|
+
readonly location?: {
|
|
389
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
390
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
391
|
+
} | undefined;
|
|
392
|
+
readonly data: {
|
|
393
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
394
|
+
};
|
|
376
395
|
} | {
|
|
377
396
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
378
397
|
readonly created: number;
|
|
@@ -1583,6 +1602,25 @@ export declare const make: (options?: {
|
|
|
1583
1602
|
readonly [x: string]: unknown;
|
|
1584
1603
|
} | undefined;
|
|
1585
1604
|
};
|
|
1605
|
+
} | {
|
|
1606
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1607
|
+
readonly created: number;
|
|
1608
|
+
readonly metadata?: {
|
|
1609
|
+
readonly [x: string]: unknown;
|
|
1610
|
+
} | undefined;
|
|
1611
|
+
readonly type: "session.unarchived";
|
|
1612
|
+
readonly durable: {
|
|
1613
|
+
readonly aggregateID: string;
|
|
1614
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1615
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1616
|
+
};
|
|
1617
|
+
readonly location?: {
|
|
1618
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1619
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1620
|
+
} | undefined;
|
|
1621
|
+
readonly data: {
|
|
1622
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1623
|
+
};
|
|
1586
1624
|
} | {
|
|
1587
1625
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1588
1626
|
readonly created: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/service-
|
|
4
|
-
import"../../chunks/service-
|
|
5
|
-
import"../../chunks/service-
|
|
2
|
+
make4
|
|
3
|
+
} from "../../chunks/service-gbq9x9x6.js";
|
|
4
|
+
import"../../chunks/service-y2etg5bs.js";
|
|
5
|
+
import"../../chunks/service-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make4 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client2
|
|
4
|
-
} from "../../chunks/service-
|
|
4
|
+
} from "../../chunks/service-gbq9x9x6.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError2
|
|
7
|
-
} from "../../chunks/service-
|
|
8
|
-
import"../../chunks/service-
|
|
7
|
+
} from "../../chunks/service-y2etg5bs.js";
|
|
8
|
+
import"../../chunks/service-vmytr4q8.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError2 as ClientError,
|
|
11
11
|
exports_client2 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "../chunks/service-
|
|
4
|
-
import"../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
3
|
+
} from "../chunks/service-y2etg5bs.js";
|
|
4
|
+
import"../chunks/service-vmytr4q8.js";
|
|
5
|
+
import"../chunks/service-gbq9x9x6.js";
|
|
6
|
+
import"../chunks/service-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-frbwqjmf.js";
|
|
8
|
+
import"../chunks/service-t1xa31vm.js";
|
|
9
|
+
import"../chunks/service-65kht65h.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/service-
|
|
12
|
+
} from "../chunks/service-e1nwd88v.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make3,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-65kht65h.js";
|
|
6
|
+
import"../chunks/service-t1xa31vm.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make3 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/service-
|
|
4
|
+
} from "../chunks/service-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
11
|
+
} from "../chunks/service-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/service-
|
|
17
|
+
} from "../chunks/service-xc31vwrt.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import"../chunks/service-
|
|
24
|
+
} from "../chunks/service-2ny4vxct.js";
|
|
25
|
+
import"../chunks/service-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
4
|
+
} from "../chunks/service-8ym76xgd.js";
|
|
5
|
+
import"../chunks/service-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-77ntr0t0.js";
|
|
7
|
+
import"../chunks/service-frbwqjmf.js";
|
|
8
|
+
import"../chunks/service-6vp15eh6.js";
|
|
9
|
+
import"../chunks/service-nwcpakzx.js";
|
|
10
|
+
import"../chunks/service-ezt8t3fk.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client3 as OpenCode,
|
|
13
13
|
make5 as make
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"../../chunks/service-
|
|
1
|
+
import"../../chunks/service-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/service-
|
|
4
|
+
} from "../../chunks/service-77ntr0t0.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError3
|
|
7
|
-
} from "../../chunks/service-
|
|
7
|
+
} from "../../chunks/service-nwcpakzx.js";
|
|
8
8
|
import {
|
|
9
9
|
isInvalidRequestError2,
|
|
10
10
|
isUnauthorizedError2,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isShellNotFoundError2,
|
|
41
41
|
isWorktreeError2,
|
|
42
42
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/service-
|
|
43
|
+
} from "../../chunks/service-ezt8t3fk.js";
|
|
44
44
|
export {
|
|
45
45
|
ClientError3 as ClientError,
|
|
46
46
|
exports_client4 as OpenCode,
|
|
@@ -1393,6 +1393,40 @@ export type SessionViewed = {
|
|
|
1393
1393
|
idle: number;
|
|
1394
1394
|
};
|
|
1395
1395
|
};
|
|
1396
|
+
export type SessionArchived = {
|
|
1397
|
+
id: EventID;
|
|
1398
|
+
created: number;
|
|
1399
|
+
metadata?: {
|
|
1400
|
+
[x: string]: any;
|
|
1401
|
+
};
|
|
1402
|
+
type: "session.archived";
|
|
1403
|
+
durable: {
|
|
1404
|
+
aggregateID: string;
|
|
1405
|
+
seq: EventSeq;
|
|
1406
|
+
version: 1;
|
|
1407
|
+
};
|
|
1408
|
+
location?: LocationRef;
|
|
1409
|
+
data: {
|
|
1410
|
+
sessionID: SessionID;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
export type SessionUnarchived = {
|
|
1414
|
+
id: EventID;
|
|
1415
|
+
created: number;
|
|
1416
|
+
metadata?: {
|
|
1417
|
+
[x: string]: any;
|
|
1418
|
+
};
|
|
1419
|
+
type: "session.unarchived";
|
|
1420
|
+
durable: {
|
|
1421
|
+
aggregateID: string;
|
|
1422
|
+
seq: EventSeq;
|
|
1423
|
+
version: 1;
|
|
1424
|
+
};
|
|
1425
|
+
location?: LocationRef;
|
|
1426
|
+
data: {
|
|
1427
|
+
sessionID: SessionID;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1396
1430
|
export type SessionDeleted = {
|
|
1397
1431
|
id: EventID;
|
|
1398
1432
|
created: number;
|
|
@@ -3441,7 +3475,7 @@ export type SessionMessagesResponse = {
|
|
|
3441
3475
|
next?: string | null;
|
|
3442
3476
|
};
|
|
3443
3477
|
};
|
|
3444
|
-
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | 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;
|
|
3478
|
+
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;
|
|
3445
3479
|
export type IntegrationInfo = {
|
|
3446
3480
|
id: IntegrationID;
|
|
3447
3481
|
name: string;
|
|
@@ -3451,7 +3485,7 @@ export type IntegrationInfo = {
|
|
|
3451
3485
|
methods: Array<IntegrationMethod>;
|
|
3452
3486
|
connections: Array<ConnectionInfo>;
|
|
3453
3487
|
};
|
|
3454
|
-
export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | 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;
|
|
3488
|
+
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;
|
|
3455
3489
|
export type SessionLogItem = SessionEventDurable | EventLogSynced;
|
|
3456
3490
|
export type InvalidRequestError = {
|
|
3457
3491
|
readonly _tag: "InvalidRequestError";
|
|
@@ -3750,6 +3784,7 @@ export type SessionListInput = {
|
|
|
3750
3784
|
readonly order?: "asc" | "desc" | undefined;
|
|
3751
3785
|
readonly search?: string | undefined;
|
|
3752
3786
|
readonly parentID?: string | null | undefined;
|
|
3787
|
+
readonly archived?: boolean | undefined;
|
|
3753
3788
|
readonly directory?: string | undefined;
|
|
3754
3789
|
readonly project?: string | undefined;
|
|
3755
3790
|
readonly subpath?: string | undefined;
|
|
@@ -3760,6 +3795,7 @@ export type SessionListInput = {
|
|
|
3760
3795
|
readonly order?: "asc" | "desc" | undefined;
|
|
3761
3796
|
readonly search?: string | undefined;
|
|
3762
3797
|
readonly parentID?: string | null | undefined;
|
|
3798
|
+
readonly archived?: boolean | undefined;
|
|
3763
3799
|
readonly directory?: string | undefined;
|
|
3764
3800
|
readonly project?: string | undefined;
|
|
3765
3801
|
readonly subpath?: string | undefined;
|
|
@@ -3770,6 +3806,7 @@ export type SessionListInput = {
|
|
|
3770
3806
|
readonly order?: "asc" | "desc" | undefined;
|
|
3771
3807
|
readonly search?: string | undefined;
|
|
3772
3808
|
readonly parentID?: string | null | undefined;
|
|
3809
|
+
readonly archived?: boolean | undefined;
|
|
3773
3810
|
readonly directory?: string | undefined;
|
|
3774
3811
|
readonly project?: string | undefined;
|
|
3775
3812
|
readonly subpath?: string | undefined;
|
|
@@ -3780,16 +3817,29 @@ export type SessionListInput = {
|
|
|
3780
3817
|
readonly order?: "asc" | "desc" | undefined;
|
|
3781
3818
|
readonly search?: string | undefined;
|
|
3782
3819
|
readonly parentID?: string | null | undefined;
|
|
3820
|
+
readonly archived?: boolean | undefined;
|
|
3783
3821
|
readonly directory?: string | undefined;
|
|
3784
3822
|
readonly project?: string | undefined;
|
|
3785
3823
|
readonly subpath?: string | undefined;
|
|
3786
3824
|
readonly cursor?: string | undefined;
|
|
3787
3825
|
}["parentID"];
|
|
3826
|
+
readonly archived?: {
|
|
3827
|
+
readonly limit?: number | undefined;
|
|
3828
|
+
readonly order?: "asc" | "desc" | undefined;
|
|
3829
|
+
readonly search?: string | undefined;
|
|
3830
|
+
readonly parentID?: string | null | undefined;
|
|
3831
|
+
readonly archived?: boolean | undefined;
|
|
3832
|
+
readonly directory?: string | undefined;
|
|
3833
|
+
readonly project?: string | undefined;
|
|
3834
|
+
readonly subpath?: string | undefined;
|
|
3835
|
+
readonly cursor?: string | undefined;
|
|
3836
|
+
}["archived"];
|
|
3788
3837
|
readonly directory?: {
|
|
3789
3838
|
readonly limit?: number | undefined;
|
|
3790
3839
|
readonly order?: "asc" | "desc" | undefined;
|
|
3791
3840
|
readonly search?: string | undefined;
|
|
3792
3841
|
readonly parentID?: string | null | undefined;
|
|
3842
|
+
readonly archived?: boolean | undefined;
|
|
3793
3843
|
readonly directory?: string | undefined;
|
|
3794
3844
|
readonly project?: string | undefined;
|
|
3795
3845
|
readonly subpath?: string | undefined;
|
|
@@ -3800,6 +3850,7 @@ export type SessionListInput = {
|
|
|
3800
3850
|
readonly order?: "asc" | "desc" | undefined;
|
|
3801
3851
|
readonly search?: string | undefined;
|
|
3802
3852
|
readonly parentID?: string | null | undefined;
|
|
3853
|
+
readonly archived?: boolean | undefined;
|
|
3803
3854
|
readonly directory?: string | undefined;
|
|
3804
3855
|
readonly project?: string | undefined;
|
|
3805
3856
|
readonly subpath?: string | undefined;
|
|
@@ -3810,6 +3861,7 @@ export type SessionListInput = {
|
|
|
3810
3861
|
readonly order?: "asc" | "desc" | undefined;
|
|
3811
3862
|
readonly search?: string | undefined;
|
|
3812
3863
|
readonly parentID?: string | null | undefined;
|
|
3864
|
+
readonly archived?: boolean | undefined;
|
|
3813
3865
|
readonly directory?: string | undefined;
|
|
3814
3866
|
readonly project?: string | undefined;
|
|
3815
3867
|
readonly subpath?: string | undefined;
|
|
@@ -3820,6 +3872,7 @@ export type SessionListInput = {
|
|
|
3820
3872
|
readonly order?: "asc" | "desc" | undefined;
|
|
3821
3873
|
readonly search?: string | undefined;
|
|
3822
3874
|
readonly parentID?: string | null | undefined;
|
|
3875
|
+
readonly archived?: boolean | undefined;
|
|
3823
3876
|
readonly directory?: string | undefined;
|
|
3824
3877
|
readonly project?: string | undefined;
|
|
3825
3878
|
readonly subpath?: string | undefined;
|
|
@@ -5597,6 +5650,7 @@ export type SessionUpdateInput = {
|
|
|
5597
5650
|
readonly resource: string;
|
|
5598
5651
|
readonly effect: "allow" | "deny" | "ask";
|
|
5599
5652
|
}> | undefined;
|
|
5653
|
+
readonly archived?: boolean | undefined;
|
|
5600
5654
|
}["title"];
|
|
5601
5655
|
readonly metadata?: {
|
|
5602
5656
|
readonly title?: string | undefined;
|
|
@@ -5608,6 +5662,7 @@ export type SessionUpdateInput = {
|
|
|
5608
5662
|
readonly resource: string;
|
|
5609
5663
|
readonly effect: "allow" | "deny" | "ask";
|
|
5610
5664
|
}> | undefined;
|
|
5665
|
+
readonly archived?: boolean | undefined;
|
|
5611
5666
|
}["metadata"];
|
|
5612
5667
|
readonly permissions?: {
|
|
5613
5668
|
readonly title?: string | undefined;
|
|
@@ -5619,7 +5674,20 @@ export type SessionUpdateInput = {
|
|
|
5619
5674
|
readonly resource: string;
|
|
5620
5675
|
readonly effect: "allow" | "deny" | "ask";
|
|
5621
5676
|
}> | undefined;
|
|
5677
|
+
readonly archived?: boolean | undefined;
|
|
5622
5678
|
}["permissions"];
|
|
5679
|
+
readonly archived?: {
|
|
5680
|
+
readonly title?: string | undefined;
|
|
5681
|
+
readonly metadata?: {
|
|
5682
|
+
readonly [x: string]: JsonValue;
|
|
5683
|
+
} | undefined;
|
|
5684
|
+
readonly permissions?: ReadonlyArray<{
|
|
5685
|
+
readonly action: string;
|
|
5686
|
+
readonly resource: string;
|
|
5687
|
+
readonly effect: "allow" | "deny" | "ask";
|
|
5688
|
+
}> | undefined;
|
|
5689
|
+
readonly archived?: boolean | undefined;
|
|
5690
|
+
}["archived"];
|
|
5623
5691
|
};
|
|
5624
5692
|
export type SessionUpdateOutput = void;
|
|
5625
5693
|
export type SessionMoveInput = {
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isShellNotFoundError2,
|
|
34
34
|
isWorktreeError2,
|
|
35
35
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/service-
|
|
36
|
+
} from "../../chunks/service-ezt8t3fk.js";
|
|
37
37
|
export {
|
|
38
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import"../chunks/service-
|
|
1
|
+
import"../chunks/service-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
4
|
+
} from "../chunks/service-8ym76xgd.js";
|
|
5
|
+
import"../chunks/service-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-77ntr0t0.js";
|
|
7
|
+
import"../chunks/service-frbwqjmf.js";
|
|
8
|
+
import"../chunks/service-6vp15eh6.js";
|
|
7
9
|
import {
|
|
8
10
|
ClientError3
|
|
9
|
-
} from "../chunks/service-
|
|
10
|
-
import"../chunks/service-timing-6vp15eh6.js";
|
|
11
|
+
} from "../chunks/service-nwcpakzx.js";
|
|
11
12
|
import {
|
|
12
13
|
isInvalidRequestError2,
|
|
13
14
|
isUnauthorizedError2,
|
|
@@ -43,8 +44,7 @@ import {
|
|
|
43
44
|
isShellNotFoundError2,
|
|
44
45
|
isWorktreeError2,
|
|
45
46
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../chunks/service-
|
|
47
|
-
import"../chunks/service-timing-frbwqjmf.js";
|
|
47
|
+
} from "../chunks/service-ezt8t3fk.js";
|
|
48
48
|
export {
|
|
49
49
|
ClientError3 as ClientError,
|
|
50
50
|
exports_client3 as OpenCode,
|
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/service-
|
|
4
|
+
} from "../chunks/service-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/service-
|
|
8
|
+
} from "../chunks/service-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/service-
|
|
11
|
+
} from "../chunks/service-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
prepare2,
|
|
14
14
|
environment2,
|
|
15
15
|
complete2,
|
|
16
16
|
clear2
|
|
17
|
-
} from "../chunks/service-
|
|
17
|
+
} from "../chunks/service-xc31vwrt.js";
|
|
18
18
|
import {
|
|
19
19
|
decide2,
|
|
20
20
|
fallback2,
|
|
21
21
|
same2,
|
|
22
22
|
probeResult2,
|
|
23
23
|
headers2
|
|
24
|
-
} from "../chunks/service-
|
|
25
|
-
import"../chunks/service-
|
|
24
|
+
} from "../chunks/service-2ny4vxct.js";
|
|
25
|
+
import"../chunks/service-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/service-
|
|
8
|
-
import"./chunks/service-
|
|
9
|
-
import"./chunks/service-
|
|
7
|
+
} from "./chunks/service-2ny4vxct.js";
|
|
8
|
+
import"./chunks/service-sxt88q69.js";
|
|
9
|
+
import"./chunks/service-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/service-
|
|
1
|
+
import"./chunks/service-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/service-
|
|
5
|
+
} from "../chunks/service-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/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
9
|
-
import"../chunks/service-
|
|
10
|
-
import"../chunks/service-
|
|
11
|
-
import"../chunks/service-
|
|
12
|
-
import"../chunks/service-
|
|
13
|
-
import"../chunks/service-
|
|
5
|
+
} from "../chunks/service-1hkhww1g.js";
|
|
6
|
+
import"../chunks/service-m2eywc8w.js";
|
|
7
|
+
import"../chunks/service-8ym76xgd.js";
|
|
8
|
+
import"../chunks/service-vyas3vgt.js";
|
|
9
|
+
import"../chunks/service-77ntr0t0.js";
|
|
10
|
+
import"../chunks/service-frbwqjmf.js";
|
|
11
|
+
import"../chunks/service-6vp15eh6.js";
|
|
12
|
+
import"../chunks/service-nwcpakzx.js";
|
|
13
|
+
import"../chunks/service-ezt8t3fk.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/service-
|
|
2
|
-
import"../chunks/service-
|
|
3
|
-
import"../chunks/service-
|
|
4
|
-
import"../chunks/service-
|
|
5
|
-
import"../chunks/service-
|
|
6
|
-
import"../chunks/service-
|
|
7
|
-
import"../chunks/service-
|
|
8
|
-
import"../chunks/service-
|
|
1
|
+
import"../chunks/service-nwcpakzx.js";
|
|
2
|
+
import"../chunks/service-77ntr0t0.js";
|
|
3
|
+
import"../chunks/service-ezt8t3fk.js";
|
|
4
|
+
import"../chunks/service-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-frbwqjmf.js";
|
|
6
|
+
import"../chunks/service-6vp15eh6.js";
|
|
7
|
+
import"../chunks/service-8ym76xgd.js";
|
|
8
|
+
import"../chunks/service-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/service-
|
|
13
|
+
} from "../chunks/service-1hkhww1g.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/service-
|
|
18
|
+
} from "../chunks/service-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/service-
|
|
22
|
+
} from "../chunks/service-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
lastAssistantWithUsage2
|
|
25
|
-
} from "../chunks/service-
|
|
25
|
+
} from "../chunks/service-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-21176",
|
|
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-21176",
|
|
61
|
+
"@opencode/protocol": "0.0.0-dev-21176"
|
|
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-21176",
|
|
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
|
|
File without changes
|