@opencode/server 0.0.0-dev-20690 → 0.0.0-dev-20696
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/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{server-info-acgs9zzk.js → api-14vy2pac.js} +3 -3
- package/dist/chunks/{server-info-ps6pa4v8.js → api-2tbp1tzq.js} +31 -31
- package/dist/chunks/{server-info-4qyjttng.js → api-30xnqq49.js} +2 -2
- package/dist/chunks/{server-info-rwwc81rq.js → api-42x3g9ax.js} +1 -1
- package/dist/chunks/{server-info-99sfd1j8.js → api-54sczv30.js} +6 -6
- package/dist/chunks/{server-info-xsrtpxyd.js → api-5w24ch67.js} +4 -4
- package/dist/chunks/{server-info-d00srfh1.js → api-6n8edpm0.js} +1 -1
- package/dist/chunks/{server-info-mjepr257.js → api-71ywpadx.js} +1 -1
- package/dist/chunks/{server-info-48z6cw93.js → api-7t3j0sgt.js} +7 -8
- package/dist/chunks/{server-info-0y03q8mn.js → api-8yd0ggw2.js} +2 -2
- package/dist/chunks/{server-info-1kbkbftd.js → api-99j0y489.js} +3 -3
- package/dist/chunks/{server-info-8c9kbrtm.js → api-9e7dezt6.js} +1 -1
- package/dist/chunks/{server-info-wb43dd8f.js → api-a0dqwany.js} +2 -2
- package/dist/chunks/{server-info-zhympcbw.js → api-a9wwhyvg.js} +2 -2
- package/dist/chunks/{server-info-anm12x33.js → api-anm12x33.js} +1 -1
- package/dist/chunks/{server-info-s07e4y6n.js → api-b8ygg5k2.js} +7 -7
- package/dist/chunks/{server-info-yqtda4wk.js → api-b9vzqw7s.js} +19 -19
- package/dist/chunks/{server-info-eekrj6qv.js → api-bf6vsze9.js} +1 -1
- package/dist/chunks/{server-info-2jwgzmwy.js → api-bm2f8ydp.js} +6 -6
- package/dist/chunks/{server-info-bvp1r88z.js → api-cr0n1s13.js} +2 -2
- package/dist/chunks/{server-info-t70dy8sr.js → api-dkb9k25y.js} +2 -2
- package/dist/chunks/{server-info-a7pkbba5.js → api-fpdze45h.js} +4 -4
- package/dist/chunks/{server-info-rhnwnf76.js → api-fzqedhmt.js} +1 -1
- package/dist/chunks/{server-info-dy0yben3.js → api-g8bfz8sd.js} +1 -1
- package/dist/chunks/{server-info-cm271yqe.js → api-gg3fwzdw.js} +2 -2
- package/dist/chunks/{server-info-gtkdacvk.js → api-gtkdacvk.js} +1 -1
- package/dist/chunks/{server-info-06zrh5md.js → api-k1jxt98b.js} +16 -2
- package/dist/chunks/{server-info-m6xk774d.js → api-k8mpqm0r.js} +2 -2
- package/dist/chunks/{server-info-w1fepcwh.js → api-m71k2gq4.js} +2 -2
- package/dist/chunks/{server-info-80mhd8t7.js → api-mwb94amj.js} +2 -2
- package/dist/chunks/{server-info-jxc39wgw.js → api-n7bvwmvb.js} +3 -3
- package/dist/chunks/{server-info-j3pdvhe2.js → api-pq7vm9zh.js} +2 -2
- package/dist/chunks/{server-info-g9rgg5ys.js → api-pyjbkjwx.js} +2 -2
- package/dist/chunks/{server-info-gj6tv0s4.js → api-qq99dtkx.js} +2 -2
- package/dist/chunks/{server-info-sstsrjtg.js → api-rbn15j6z.js} +8 -8
- package/dist/chunks/{server-info-8gzw6ybv.js → api-rqanq6tz.js} +62 -51
- package/dist/chunks/{server-info-1w9kp1gg.js → api-s6vr588s.js} +2 -2
- package/dist/chunks/{server-info-q9rkrfm7.js → api-seg24gxd.js} +2 -2
- package/dist/chunks/{server-info-nxdx74sv.js → api-tfdbmzkj.js} +1 -1
- package/dist/chunks/{server-info-r5bb0n1s.js → api-v5wyphc9.js} +1 -1
- package/dist/chunks/{server-info-bkk2wfbz.js → api-vvagfka3.js} +7 -7
- package/dist/chunks/{server-info-cy7y42ks.js → api-xf4a0915.js} +3 -3
- package/dist/chunks/{server-info-agftk6b6.js → api-z68seea0.js} +2 -2
- package/dist/chunks/{server-info-nnqe0naa.js → api-z8jmy4hr.js} +8 -8
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +49 -49
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +6 -6
- package/dist/handlers/debug.js +6 -6
- package/dist/handlers/event.js +7 -7
- package/dist/handlers/form.js +6 -6
- package/dist/handlers/fs.js +6 -6
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.d.ts +1 -1
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +6 -6
- package/dist/handlers/message.js +6 -6
- package/dist/handlers/migration.js +6 -6
- package/dist/handlers/model.js +6 -6
- package/dist/handlers/permission.js +6 -6
- package/dist/handlers/persistent-pty.js +8 -8
- package/dist/handlers/plugin.js +6 -6
- package/dist/handlers/project.js +6 -6
- package/dist/handlers/provider.js +6 -6
- package/dist/handlers/pty-socket.js +1 -1
- package/dist/handlers/pty.d.ts +2 -1
- package/dist/handlers/pty.js +9 -9
- package/dist/handlers/reference.js +6 -6
- package/dist/handlers/rpc.js +6 -6
- package/dist/handlers/server.js +9 -9
- package/dist/handlers/session-error.js +1 -1
- package/dist/handlers/session.js +6 -6
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.js +6 -6
- package/dist/handlers/vcs.js +6 -6
- package/dist/handlers/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.js +43 -43
- package/dist/location.js +4 -4
- package/dist/middleware/authorization.js +2 -2
- package/dist/middleware/form-location.js +3 -3
- package/dist/middleware/schema-error.js +1 -1
- package/dist/middleware/session-location.js +3 -3
- package/dist/pairing.js +5 -5
- package/dist/process.js +51 -51
- package/dist/pty-environment.js +5 -5
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +46 -46
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +50 -50
- package/package.json +8 -8
- /package/dist/chunks/{server-info-9rqn6x4v.js → api-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{server-info-hezj1jdf.js → api-hezj1jdf.js} +0 -0
- /package/dist/chunks/{server-info-q4bn6dy8.js → api-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{server-info-smaf4a18.js → api-smaf4a18.js} +0 -0
- /package/dist/chunks/{server-info-t8yzmczr.js → api-t8yzmczr.js} +0 -0
- /package/dist/chunks/{server-info-yc7nft6q.js → api-yc7nft6q.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./api-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -55,6 +55,20 @@ var IntegrationHandler2 = HttpApiBuilder.group(Api2, "server.integration", (hand
|
|
|
55
55
|
label: ctx.payload.label
|
|
56
56
|
}));
|
|
57
57
|
return HttpApiSchema.NoContent.make();
|
|
58
|
+
})).handle("integration.connect.external", Effect.fn(function* (ctx) {
|
|
59
|
+
const service = yield* Integration.Service;
|
|
60
|
+
if (!(yield* service.get(ctx.params.integrationID)))
|
|
61
|
+
return yield* new IntegrationNotFoundError({
|
|
62
|
+
integrationID: ctx.params.integrationID,
|
|
63
|
+
message: `Integration not found: ${ctx.params.integrationID}`
|
|
64
|
+
});
|
|
65
|
+
yield* authorize(service.connection.external({
|
|
66
|
+
integrationID: ctx.params.integrationID,
|
|
67
|
+
methodID: ctx.payload.methodID,
|
|
68
|
+
answer: ctx.payload.answer,
|
|
69
|
+
label: ctx.payload.label
|
|
70
|
+
}));
|
|
71
|
+
return HttpApiSchema.NoContent.make();
|
|
58
72
|
})).handle("integration.oauth.connect", Effect.fn(function* (ctx) {
|
|
59
73
|
const service = yield* Integration.Service;
|
|
60
74
|
return yield* response2(authorize(service.oauth.connect({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./api-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./api-n7bvwmvb.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/websearch.ts
|
|
9
9
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-14vy2pac.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./api-6n8edpm0.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./api-tfdbmzkj.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/pairing.ts
|
|
6
6
|
var exports_pairing = {};
|
|
7
7
|
__export(exports_pairing, {
|
|
8
8
|
ServerPairing: () => exports_pairing,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service2,
|
|
10
|
+
node: () => node2
|
|
11
11
|
});
|
|
12
12
|
import { Cache, Context, Duration, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { randomBytes } from "node:crypto";
|
|
15
15
|
var TTL = Duration.minutes(5);
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class Service2 extends Context.Service()("@opencode/ServerPairing") {
|
|
18
18
|
}
|
|
19
19
|
var noLookup = () => Effect.die(new Error("ServerPairing cache must be used via set/invalidateWhen, never get"));
|
|
20
|
-
var layer = Layer.effect(
|
|
20
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service2.of({
|
|
23
23
|
issue: Effect.fn("ServerPairing.issue")(function* () {
|
|
24
24
|
const code = randomBytes(16).toString("base64url");
|
|
25
25
|
yield* Cache.set(cache, code, true);
|
|
@@ -30,6 +30,6 @@ var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service2, node2, exports_pairing };
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
locationErrors2,
|
|
3
|
+
response2,
|
|
4
|
+
requestRef2
|
|
5
|
+
} from "./api-14vy2pac.js";
|
|
4
6
|
import {
|
|
5
7
|
Api2
|
|
6
|
-
} from "./
|
|
8
|
+
} from "./api-n7bvwmvb.js";
|
|
7
9
|
import {
|
|
8
10
|
CorsConfig2,
|
|
9
11
|
isAllowedRequestOrigin2
|
|
10
|
-
} from "./
|
|
12
|
+
} from "./api-q4bn6dy8.js";
|
|
11
13
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
14
|
+
Service3
|
|
15
|
+
} from "./api-vvagfka3.js";
|
|
14
16
|
import {
|
|
15
17
|
runPtySocket2
|
|
16
|
-
} from "./
|
|
18
|
+
} from "./api-hezj1jdf.js";
|
|
17
19
|
|
|
18
20
|
// src/handlers/pty.ts
|
|
19
21
|
import { Pty } from "@opencode/core/pty";
|
|
20
22
|
import { PtyProtocol } from "@opencode/core/pty/protocol";
|
|
21
23
|
import { PtyTicket } from "@opencode/core/pty/ticket";
|
|
22
24
|
import { Location } from "@opencode/core/location";
|
|
25
|
+
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
23
26
|
import { Effect, Queue } from "effect";
|
|
24
27
|
import { HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
|
|
25
28
|
import { HttpApiBuilder, HttpApiSchema } from "effect/unstable/httpapi";
|
|
@@ -35,9 +38,10 @@ var ticketScope = Effect.gen(function* () {
|
|
|
35
38
|
return { directory: location.directory, workspaceID: location.workspaceID };
|
|
36
39
|
});
|
|
37
40
|
var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.gen(function* () {
|
|
41
|
+
const locations = yield* LocationServiceMap.Service;
|
|
38
42
|
const tickets = yield* PtyTicket.Service;
|
|
39
43
|
const cors = yield* CorsConfig2;
|
|
40
|
-
const environment = yield*
|
|
44
|
+
const environment = yield* Service3;
|
|
41
45
|
return handlers.handle("pty.list", Effect.fn(function* () {
|
|
42
46
|
const pty = yield* Pty.Service;
|
|
43
47
|
return yield* response2(pty.list());
|
|
@@ -87,52 +91,59 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
|
|
|
87
91
|
})));
|
|
88
92
|
return yield* response2(tickets.issue({ ptyID: ctx.params.ptyID, ...yield* ticketScope }));
|
|
89
93
|
})).handleRaw("pty.connect", Effect.fn("PtyHandler.connect")(function* (ctx) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return HttpServerResponse.empty({ status: 404 });
|
|
94
|
+
if (!isAllowedRequestOrigin2(ctx.request.headers.origin, ctx.request.headers.host, cors))
|
|
95
|
+
return HttpServerResponse.empty({ status: 403 });
|
|
96
|
+
const ref = LocationServiceMap.canonical(requestRef2(ctx.request));
|
|
94
97
|
const url = new URL(ctx.request.url, "http://localhost");
|
|
95
98
|
const ticket = url.searchParams.get(PTY_CONNECT_TICKET_QUERY);
|
|
96
|
-
if (ticket
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
99
|
+
if (ticket && !(yield* tickets.consume({
|
|
100
|
+
ticket,
|
|
101
|
+
ptyID: ctx.params.ptyID,
|
|
102
|
+
directory: ref.directory,
|
|
103
|
+
workspaceID: ref.workspaceID
|
|
104
|
+
})))
|
|
105
|
+
return HttpServerResponse.empty({ status: 403 });
|
|
106
|
+
return yield* Effect.gen(function* () {
|
|
107
|
+
const pty = yield* Pty.Service;
|
|
108
|
+
const exists = yield* pty.get(ctx.params.ptyID).pipe(Effect.as(true), Effect.catchTag("Pty.NotFoundError", () => Effect.succeed(false)));
|
|
109
|
+
if (!exists)
|
|
110
|
+
return HttpServerResponse.empty({ status: 404 });
|
|
111
|
+
const parsedCursor = url.searchParams.get("cursor");
|
|
112
|
+
const cursorNumber = parsedCursor === null ? undefined : Number(parsedCursor);
|
|
113
|
+
const cursor = cursorNumber !== undefined && Number.isSafeInteger(cursorNumber) && cursorNumber >= -1 ? cursorNumber : undefined;
|
|
114
|
+
const socket = yield* Effect.orDie(ctx.request.upgrade);
|
|
115
|
+
const write = yield* socket.writer;
|
|
116
|
+
const closeAccepted = (event) => socket.runRaw(() => Effect.void, { onOpen: write(event).pipe(Effect.catch(() => Effect.void)) }).pipe(Effect.timeout("1 second"), Effect.catchReason("SocketError", "SocketCloseError", () => Effect.void), Effect.catch(() => Effect.void));
|
|
117
|
+
const outbox = yield* Queue.unbounded();
|
|
118
|
+
const attachment = yield* pty.attach(ctx.params.ptyID, {
|
|
119
|
+
cursor,
|
|
120
|
+
onData: (chunk) => Queue.offerUnsafe(outbox, chunk),
|
|
121
|
+
onEnd: () => Queue.offerUnsafe(outbox, new Socket.CloseEvent(1000))
|
|
122
|
+
}).pipe(Effect.catchTags({
|
|
123
|
+
"Pty.NotFoundError": () => closeAccepted(new Socket.CloseEvent(4404, "session not found")).pipe(Effect.as(undefined)),
|
|
124
|
+
"Pty.ExitedError": () => closeAccepted(new Socket.CloseEvent(4404, "session exited")).pipe(Effect.as(undefined))
|
|
125
|
+
}));
|
|
126
|
+
if (!attachment)
|
|
127
|
+
return HttpServerResponse.empty();
|
|
128
|
+
for (const chunk of PtyProtocol.chunks(attachment.replay))
|
|
129
|
+
Queue.offerUnsafe(outbox, chunk);
|
|
130
|
+
Queue.offerUnsafe(outbox, PtyProtocol.metaFrame(attachment.cursor));
|
|
131
|
+
attachment.activate();
|
|
132
|
+
const drain = Effect.gen(function* () {
|
|
133
|
+
while (true) {
|
|
134
|
+
const item = yield* Queue.take(outbox);
|
|
135
|
+
yield* write(item);
|
|
136
|
+
if (item instanceof Socket.CloseEvent)
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
yield* runPtySocket2(drain, socket.runRaw((message) => {
|
|
141
|
+
const decoded = PtyProtocol.decodeInput(message);
|
|
142
|
+
if (decoded !== undefined)
|
|
143
|
+
attachment.write(decoded);
|
|
144
|
+
}), attachment.detach).pipe(Effect.catchReason("SocketError", "SocketCloseError", () => Effect.void), Effect.orDie);
|
|
117
145
|
return HttpServerResponse.empty();
|
|
118
|
-
|
|
119
|
-
Queue.offerUnsafe(outbox, chunk);
|
|
120
|
-
Queue.offerUnsafe(outbox, PtyProtocol.metaFrame(attachment.cursor));
|
|
121
|
-
attachment.activate();
|
|
122
|
-
const drain = Effect.gen(function* () {
|
|
123
|
-
while (true) {
|
|
124
|
-
const item = yield* Queue.take(outbox);
|
|
125
|
-
yield* write(item);
|
|
126
|
-
if (item instanceof Socket.CloseEvent)
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
yield* runPtySocket2(drain, socket.runRaw((message) => {
|
|
131
|
-
const decoded = PtyProtocol.decodeInput(message);
|
|
132
|
-
if (decoded !== undefined)
|
|
133
|
-
attachment.write(decoded);
|
|
134
|
-
}), attachment.detach).pipe(Effect.catchReason("SocketError", "SocketCloseError", () => Effect.void), Effect.orDie);
|
|
135
|
-
return HttpServerResponse.empty();
|
|
146
|
+
}).pipe(Effect.provide(locations.get(ref)), locationErrors2);
|
|
136
147
|
}));
|
|
137
148
|
}));
|
|
138
149
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/pty-environment.ts
|
|
6
6
|
var exports_pty_environment = {};
|
|
7
7
|
__export(exports_pty_environment, {
|
|
8
8
|
PtyEnvironment: () => exports_pty_environment,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
layer: () => layer2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Effect, Layer } from "effect";
|
|
14
14
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/ServerPtyEnvironment") {
|
|
17
17
|
}
|
|
18
|
-
var layer2 = Layer.succeed(
|
|
18
|
+
var layer2 = Layer.succeed(Service3, Service3.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var
|
|
21
|
+
var node3 = makeGlobalNode({ service: Service3, layer: layer2, deps: [] });
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { Service3, layer2, node3, exports_pty_environment };
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./api-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./api-14vy2pac.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./api-n7bvwmvb.js";
|
|
13
13
|
|
|
14
14
|
// src/handlers/session.ts
|
|
15
15
|
import { Session } from "@opencode/core/session";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./api-n7bvwmvb.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./api-anm12x33.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service4
|
|
12
|
+
} from "./api-b8ygg5k2.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service2
|
|
15
|
+
} from "./api-rbn15j6z.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { Duration, Effect } from "effect";
|
|
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/unstable/httpapi";
|
|
|
21
21
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
22
22
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
23
23
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
24
|
-
const pairing = yield*
|
|
24
|
+
const pairing = yield* Service2;
|
|
25
25
|
const auth = yield* Config2;
|
|
26
26
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
27
|
-
const info = yield*
|
|
27
|
+
const info = yield* Service4;
|
|
28
28
|
return {
|
|
29
29
|
version: info.app.version ?? "unknown",
|
|
30
30
|
pid: process.pid ?? 0,
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
SubscriberCapacity2,
|
|
3
3
|
SubscriberOverflowError2,
|
|
4
4
|
EncodingError2,
|
|
5
|
-
|
|
5
|
+
Service5,
|
|
6
6
|
frame2,
|
|
7
7
|
make4,
|
|
8
8
|
layer5,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/api-54sczv30.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
14
|
-
|
|
14
|
+
Service5 as Service,
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
package/dist/fetch.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make2,
|
|
3
3
|
exports_fetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import"./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/
|
|
14
|
-
import"./chunks/
|
|
15
|
-
import"./chunks/
|
|
16
|
-
import"./chunks/
|
|
17
|
-
import"./chunks/
|
|
18
|
-
import"./chunks/
|
|
19
|
-
import"./chunks/
|
|
20
|
-
import"./chunks/
|
|
21
|
-
import"./chunks/
|
|
22
|
-
import"./chunks/
|
|
23
|
-
import"./chunks/
|
|
24
|
-
import"./chunks/
|
|
25
|
-
import"./chunks/
|
|
26
|
-
import"./chunks/
|
|
27
|
-
import"./chunks/
|
|
28
|
-
import"./chunks/
|
|
29
|
-
import"./chunks/
|
|
30
|
-
import"./chunks/
|
|
31
|
-
import"./chunks/
|
|
32
|
-
import"./chunks/
|
|
33
|
-
import"./chunks/
|
|
34
|
-
import"./chunks/
|
|
35
|
-
import"./chunks/
|
|
36
|
-
import"./chunks/
|
|
37
|
-
import"./chunks/
|
|
38
|
-
import"./chunks/
|
|
39
|
-
import"./chunks/
|
|
40
|
-
import"./chunks/
|
|
41
|
-
import"./chunks/
|
|
42
|
-
import"./chunks/
|
|
43
|
-
import"./chunks/
|
|
44
|
-
import"./chunks/
|
|
45
|
-
import"./chunks/
|
|
46
|
-
import"./chunks/
|
|
47
|
-
import"./chunks/
|
|
48
|
-
import"./chunks/
|
|
49
|
-
import"./chunks/
|
|
50
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/api-bm2f8ydp.js";
|
|
5
|
+
import"./chunks/api-b9vzqw7s.js";
|
|
6
|
+
import"./chunks/api-t8yzmczr.js";
|
|
7
|
+
import"./chunks/api-gtkdacvk.js";
|
|
8
|
+
import"./chunks/api-2tbp1tzq.js";
|
|
9
|
+
import"./chunks/api-k1jxt98b.js";
|
|
10
|
+
import"./chunks/api-gg3fwzdw.js";
|
|
11
|
+
import"./chunks/api-a0dqwany.js";
|
|
12
|
+
import"./chunks/api-71ywpadx.js";
|
|
13
|
+
import"./chunks/api-qq99dtkx.js";
|
|
14
|
+
import"./chunks/api-bf6vsze9.js";
|
|
15
|
+
import"./chunks/api-42x3g9ax.js";
|
|
16
|
+
import"./chunks/api-30xnqq49.js";
|
|
17
|
+
import"./chunks/api-v5wyphc9.js";
|
|
18
|
+
import"./chunks/api-m71k2gq4.js";
|
|
19
|
+
import"./chunks/api-fpdze45h.js";
|
|
20
|
+
import"./chunks/api-9e7dezt6.js";
|
|
21
|
+
import"./chunks/api-pyjbkjwx.js";
|
|
22
|
+
import"./chunks/api-k8mpqm0r.js";
|
|
23
|
+
import"./chunks/api-mwb94amj.js";
|
|
24
|
+
import"./chunks/api-rqanq6tz.js";
|
|
25
|
+
import"./chunks/api-seg24gxd.js";
|
|
26
|
+
import"./chunks/api-8yd0ggw2.js";
|
|
27
|
+
import"./chunks/api-dkb9k25y.js";
|
|
28
|
+
import"./chunks/api-xf4a0915.js";
|
|
29
|
+
import"./chunks/api-g8bfz8sd.js";
|
|
30
|
+
import"./chunks/api-7t3j0sgt.js";
|
|
31
|
+
import"./chunks/api-a9wwhyvg.js";
|
|
32
|
+
import"./chunks/api-z68seea0.js";
|
|
33
|
+
import"./chunks/api-pq7vm9zh.js";
|
|
34
|
+
import"./chunks/api-s6vr588s.js";
|
|
35
|
+
import"./chunks/api-99j0y489.js";
|
|
36
|
+
import"./chunks/api-hezj1jdf.js";
|
|
37
|
+
import"./chunks/api-z8jmy4hr.js";
|
|
38
|
+
import"./chunks/api-fzqedhmt.js";
|
|
39
|
+
import"./chunks/api-cr0n1s13.js";
|
|
40
|
+
import"./chunks/api-anm12x33.js";
|
|
41
|
+
import"./chunks/api-rbn15j6z.js";
|
|
42
|
+
import"./chunks/api-vvagfka3.js";
|
|
43
|
+
import"./chunks/api-b8ygg5k2.js";
|
|
44
|
+
import"./chunks/api-n7bvwmvb.js";
|
|
45
|
+
import"./chunks/api-6n8edpm0.js";
|
|
46
|
+
import"./chunks/api-tfdbmzkj.js";
|
|
47
|
+
import"./chunks/api-14vy2pac.js";
|
|
48
|
+
import"./chunks/api-smaf4a18.js";
|
|
49
|
+
import"./chunks/api-q4bn6dy8.js";
|
|
50
|
+
import"./chunks/api-54sczv30.js";
|
|
51
51
|
export {
|
|
52
52
|
exports_fetch as ServerFetch,
|
|
53
|
-
|
|
53
|
+
make2 as make
|
|
54
54
|
};
|
package/dist/handlers/agent.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/api-s6vr588s.js";
|
|
4
|
+
import"../chunks/api-n7bvwmvb.js";
|
|
5
|
+
import"../chunks/api-6n8edpm0.js";
|
|
6
|
+
import"../chunks/api-tfdbmzkj.js";
|
|
7
|
+
import"../chunks/api-14vy2pac.js";
|
|
8
|
+
import"../chunks/api-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|