@opencode/server 0.0.0-dev-20197 → 0.0.0-dev-20199
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/{location-zyh4j6y7.js → location-2sy3c7de.js} +5 -5
- package/dist/chunks/{location-83z6y78s.js → location-6dzad7zx.js} +3 -3
- package/dist/chunks/{location-8nb6s518.js → location-ez0evcxy.js} +4 -4
- package/dist/chunks/{location-5ax89a0p.js → location-mmssttgx.js} +6 -6
- package/dist/chunks/{location-wet8b863.js → location-mzr9gftb.js} +4 -4
- package/dist/chunks/{location-rbn15j6z.js → location-x6486bry.js} +6 -6
- package/dist/chunks/{location-5w24ch67.js → location-xsrtpxyd.js} +3 -3
- package/dist/chunks/{location-q10tje0y.js → location-xy073h1s.js} +3 -3
- package/dist/chunks/{location-v7mj9ez8.js → location-y5tqh3rp.js} +4 -4
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +33 -33
- package/dist/handlers/event.js +2 -2
- package/dist/handlers/pty.js +1 -1
- package/dist/handlers/server.js +3 -3
- package/dist/handlers.js +28 -28
- package/dist/pairing.js +3 -3
- package/dist/process.js +11 -11
- package/dist/routes.js +30 -30
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +11 -11
- package/package.json +8 -8
- /package/dist/chunks/{location-3m2s03cb.js → location-kpf69hd1.js} +0 -0
|
@@ -7,7 +7,7 @@ var exports_event_feed = {};
|
|
|
7
7
|
__export(exports_event_feed, {
|
|
8
8
|
EncodingError: () => EncodingError2,
|
|
9
9
|
EventFeed: () => exports_event_feed,
|
|
10
|
-
Service: () =>
|
|
10
|
+
Service: () => Service2,
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
@@ -30,7 +30,7 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
|
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class Service2 extends Context.Service()("@opencode/server/EventFeed") {
|
|
34
34
|
}
|
|
35
35
|
function frame2(event) {
|
|
36
36
|
return `data: ${JSON.stringify(event)}
|
|
@@ -71,13 +71,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
71
71
|
});
|
|
72
72
|
const unsubscribe = yield* observe(publish);
|
|
73
73
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
74
|
-
return
|
|
74
|
+
return Service2.of({
|
|
75
75
|
subscribe: Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.add(queue)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
var layer2 = Layer.effect(
|
|
78
|
+
var layer2 = Layer.effect(Service2, Effect.gen(function* () {
|
|
79
79
|
const bus = yield* Bus.Service;
|
|
80
80
|
return yield* make4(bus.listen);
|
|
81
81
|
}));
|
|
82
82
|
|
|
83
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
83
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service2, frame2, make4, layer2, exports_event_feed };
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
Api2
|
|
3
3
|
} from "./location-z6kg9h7e.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service2,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./location-
|
|
7
|
+
} from "./location-2sy3c7de.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
|
|
|
12
12
|
import { HttpServerResponse } from "effect/unstable/http";
|
|
13
13
|
import { HttpApiBuilder } from "effect/unstable/httpapi";
|
|
14
14
|
var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
|
|
15
|
-
const feed = yield*
|
|
15
|
+
const feed = yield* Service2;
|
|
16
16
|
return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
|
|
17
17
|
const connected = {
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./location-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./location-
|
|
6
|
+
} from "./location-xy073h1s.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./location-9rqn6x4v.js";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
var exports_fetch = {};
|
|
13
13
|
__export(exports_fetch, {
|
|
14
14
|
ServerFetch: () => exports_fetch,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make3
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/unstable/http";
|
|
19
19
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
20
|
-
var
|
|
20
|
+
var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
21
21
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
|
|
22
22
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
23
23
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { make3, exports_fetch };
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
sessionCookieName2
|
|
9
9
|
} from "./location-anm12x33.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./location-
|
|
11
|
+
Service3
|
|
12
|
+
} from "./location-mzr9gftb.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./location-
|
|
14
|
+
Service4
|
|
15
|
+
} from "./location-x6486bry.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { Duration, Effect } from "effect";
|
|
@@ -20,10 +20,10 @@ import { HttpServerRequest, HttpServerResponse } from "effect/unstable/http";
|
|
|
20
20
|
import { HttpApiBuilder } from "effect/unstable/httpapi";
|
|
21
21
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
22
22
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
23
|
-
const pairing = yield*
|
|
23
|
+
const pairing = yield* Service4;
|
|
24
24
|
const auth = yield* Config2;
|
|
25
25
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
26
|
-
const info = yield*
|
|
26
|
+
const info = yield* Service3;
|
|
27
27
|
return {
|
|
28
28
|
version: info.app.version ?? "unknown",
|
|
29
29
|
pid: process.pid ?? 0,
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
var exports_server_info = {};
|
|
7
7
|
__export(exports_server_info, {
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
11
|
layer: () => layer3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
18
|
function layer3(urls, tmp, app = {}) {
|
|
19
|
-
return Layer.succeed(
|
|
19
|
+
return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
22
22
|
const url = new URL(value);
|
|
@@ -33,4 +33,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export {
|
|
36
|
+
export { Service3, layer3, connectionURLs2, exports_server_info };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_pairing = {};
|
|
7
7
|
__export(exports_pairing, {
|
|
8
8
|
ServerPairing: () => exports_pairing,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service4,
|
|
10
10
|
node: () => node2
|
|
11
11
|
});
|
|
12
12
|
import { Cache, Context, Duration, Effect, Layer } from "effect";
|
|
@@ -14,12 +14,12 @@ 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 Service4 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(Service4, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service4.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(Service2, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var node2 = makeGlobalNode({ service:
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service4, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service4, node2, exports_pairing };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_service_status = {};
|
|
7
7
|
__export(exports_service_status, {
|
|
8
8
|
Status: () => exports_service_status,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make2 = Effect.fnUntraced(function* (options = {}) {
|
|
13
13
|
const current = yield* Ref.make(options.initial ?? { type: "starting" });
|
|
14
14
|
const beginStopping = Ref.update(current, (status) => status.type === "stopping" ? status : { type: "stopping" });
|
|
15
15
|
return {
|
|
@@ -20,4 +20,4 @@ var make3 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make2, exports_service_status };
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
} from "./location-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
20
|
layer3
|
|
21
|
-
} from "./location-
|
|
21
|
+
} from "./location-mzr9gftb.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./location-
|
|
24
|
+
} from "./location-x6486bry.js";
|
|
25
25
|
import {
|
|
26
26
|
node3
|
|
27
27
|
} from "./location-tnr0rqd3.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./location-
|
|
30
|
+
} from "./location-y5tqh3rp.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
33
|
} from "./location-gtkdacvk.js";
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
} from "./location-1wj0ectp.js";
|
|
34
34
|
import {
|
|
35
35
|
layer2
|
|
36
|
-
} from "./location-
|
|
36
|
+
} from "./location-2sy3c7de.js";
|
|
37
37
|
import {
|
|
38
38
|
EventHandler2
|
|
39
|
-
} from "./location-
|
|
39
|
+
} from "./location-6dzad7zx.js";
|
|
40
40
|
import {
|
|
41
41
|
AgentHandler2
|
|
42
42
|
} from "./location-zxvt7wd3.js";
|
|
@@ -45,13 +45,13 @@ import {
|
|
|
45
45
|
} from "./location-vgxn80m1.js";
|
|
46
46
|
import {
|
|
47
47
|
ServerHandler2
|
|
48
|
-
} from "./location-
|
|
48
|
+
} from "./location-mmssttgx.js";
|
|
49
49
|
import {
|
|
50
50
|
DebugHandler2
|
|
51
51
|
} from "./location-8e21y1bd.js";
|
|
52
52
|
import {
|
|
53
53
|
PtyHandler2
|
|
54
|
-
} from "./location-
|
|
54
|
+
} from "./location-kpf69hd1.js";
|
|
55
55
|
import {
|
|
56
56
|
PersistentPtyHandler2
|
|
57
57
|
} from "./location-0qzy9yxk.js";
|
package/dist/event-feed.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
SubscriberCapacity2,
|
|
3
3
|
SubscriberOverflowError2,
|
|
4
4
|
EncodingError2,
|
|
5
|
-
|
|
5
|
+
Service2,
|
|
6
6
|
frame2,
|
|
7
7
|
make4,
|
|
8
8
|
layer2,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/location-
|
|
10
|
+
} from "./chunks/location-2sy3c7de.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
14
|
-
|
|
14
|
+
Service2 as Service,
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
package/dist/fetch.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make3,
|
|
3
3
|
exports_fetch
|
|
4
|
-
} from "./chunks/location-
|
|
5
|
-
import"./chunks/location-
|
|
6
|
-
import"./chunks/location-gtkdacvk.js";
|
|
4
|
+
} from "./chunks/location-ez0evcxy.js";
|
|
5
|
+
import"./chunks/location-xy073h1s.js";
|
|
7
6
|
import"./chunks/location-t8yzmczr.js";
|
|
8
|
-
import"./chunks/location-
|
|
9
|
-
import"./chunks/location-
|
|
10
|
-
import"./chunks/location-z3nth2hg.js";
|
|
11
|
-
import"./chunks/location-760vtqy2.js";
|
|
12
|
-
import"./chunks/location-bgzrbsek.js";
|
|
13
|
-
import"./chunks/location-fyjxk8m3.js";
|
|
14
|
-
import"./chunks/location-kv6ycdgm.js";
|
|
15
|
-
import"./chunks/location-0qzy9yxk.js";
|
|
16
|
-
import"./chunks/location-erwrh284.js";
|
|
17
|
-
import"./chunks/location-6aya8ky6.js";
|
|
18
|
-
import"./chunks/location-5ax89a0p.js";
|
|
19
|
-
import"./chunks/location-40g8rvw4.js";
|
|
20
|
-
import"./chunks/location-8ygjd1s8.js";
|
|
21
|
-
import"./chunks/location-cm8xmqjn.js";
|
|
22
|
-
import"./chunks/location-3m2s03cb.js";
|
|
23
|
-
import"./chunks/location-hezj1jdf.js";
|
|
7
|
+
import"./chunks/location-gtkdacvk.js";
|
|
8
|
+
import"./chunks/location-y5tqh3rp.js";
|
|
24
9
|
import"./chunks/location-f78xgav9.js";
|
|
25
|
-
import"./chunks/location-
|
|
10
|
+
import"./chunks/location-cm8xmqjn.js";
|
|
26
11
|
import"./chunks/location-8e21y1bd.js";
|
|
12
|
+
import"./chunks/location-1wj0ectp.js";
|
|
13
|
+
import"./chunks/location-6dzad7zx.js";
|
|
14
|
+
import"./chunks/location-34e6wr3b.js";
|
|
15
|
+
import"./chunks/location-bgzrbsek.js";
|
|
16
|
+
import"./chunks/location-zw9j8b8g.js";
|
|
17
|
+
import"./chunks/location-8ygjd1s8.js";
|
|
27
18
|
import"./chunks/location-bkb1xk38.js";
|
|
19
|
+
import"./chunks/location-mmssttgx.js";
|
|
20
|
+
import"./chunks/location-erwrh284.js";
|
|
28
21
|
import"./chunks/location-8nbs1vvt.js";
|
|
22
|
+
import"./chunks/location-txhx6f1m.js";
|
|
23
|
+
import"./chunks/location-kv6ycdgm.js";
|
|
24
|
+
import"./chunks/location-760vtqy2.js";
|
|
29
25
|
import"./chunks/location-zxvt7wd3.js";
|
|
30
|
-
import"./chunks/location-vgxn80m1.js";
|
|
31
26
|
import"./chunks/location-xpxp1sqb.js";
|
|
32
|
-
import"./chunks/location-
|
|
27
|
+
import"./chunks/location-0qzy9yxk.js";
|
|
28
|
+
import"./chunks/location-pd1pbg0v.js";
|
|
33
29
|
import"./chunks/location-7qtja2kq.js";
|
|
34
|
-
import"./chunks/location-
|
|
35
|
-
import"./chunks/location-
|
|
36
|
-
import"./chunks/location-83z6y78s.js";
|
|
30
|
+
import"./chunks/location-vgxn80m1.js";
|
|
31
|
+
import"./chunks/location-fyjxk8m3.js";
|
|
37
32
|
import"./chunks/location-d2g7egyw.js";
|
|
38
|
-
import"./chunks/location-
|
|
39
|
-
import"./chunks/location-
|
|
40
|
-
import"./chunks/location-
|
|
41
|
-
import"./chunks/location-
|
|
42
|
-
import"./chunks/location-
|
|
43
|
-
import"./chunks/location-
|
|
33
|
+
import"./chunks/location-kpf69hd1.js";
|
|
34
|
+
import"./chunks/location-hezj1jdf.js";
|
|
35
|
+
import"./chunks/location-z3nth2hg.js";
|
|
36
|
+
import"./chunks/location-e09mshwt.js";
|
|
37
|
+
import"./chunks/location-40g8rvw4.js";
|
|
38
|
+
import"./chunks/location-tk6nqkmh.js";
|
|
39
|
+
import"./chunks/location-6aya8ky6.js";
|
|
44
40
|
import"./chunks/location-anm12x33.js";
|
|
41
|
+
import"./chunks/location-2sy3c7de.js";
|
|
42
|
+
import"./chunks/location-q4bn6dy8.js";
|
|
43
|
+
import"./chunks/location-mzr9gftb.js";
|
|
44
|
+
import"./chunks/location-x6486bry.js";
|
|
45
45
|
import"./chunks/location-tnr0rqd3.js";
|
|
46
46
|
import"./chunks/location-z6kg9h7e.js";
|
|
47
47
|
import"./chunks/location-23w8t84j.js";
|
|
@@ -50,5 +50,5 @@ import"./chunks/location-0ar9gf7q.js";
|
|
|
50
50
|
import"./chunks/location-smaf4a18.js";
|
|
51
51
|
export {
|
|
52
52
|
exports_fetch as ServerFetch,
|
|
53
|
-
|
|
53
|
+
make3 as make
|
|
54
54
|
};
|
package/dist/handlers/event.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EventHandler2
|
|
3
|
-
} from "../chunks/location-
|
|
4
|
-
import"../chunks/location-
|
|
3
|
+
} from "../chunks/location-6dzad7zx.js";
|
|
4
|
+
import"../chunks/location-2sy3c7de.js";
|
|
5
5
|
import"../chunks/location-z6kg9h7e.js";
|
|
6
6
|
import"../chunks/location-23w8t84j.js";
|
|
7
7
|
import"../chunks/location-frv6gfy7.js";
|
package/dist/handlers/pty.js
CHANGED
package/dist/handlers/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerHandler2
|
|
3
|
-
} from "../chunks/location-
|
|
4
|
-
import"../chunks/location-rbn15j6z.js";
|
|
5
|
-
import"../chunks/location-wet8b863.js";
|
|
3
|
+
} from "../chunks/location-mmssttgx.js";
|
|
6
4
|
import"../chunks/location-anm12x33.js";
|
|
5
|
+
import"../chunks/location-mzr9gftb.js";
|
|
6
|
+
import"../chunks/location-x6486bry.js";
|
|
7
7
|
import"../chunks/location-z6kg9h7e.js";
|
|
8
8
|
import"../chunks/location-23w8t84j.js";
|
|
9
9
|
import"../chunks/location-frv6gfy7.js";
|
package/dist/handlers.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlers2
|
|
3
|
-
} from "./chunks/location-
|
|
4
|
-
import"./chunks/location-txhx6f1m.js";
|
|
5
|
-
import"./chunks/location-z3nth2hg.js";
|
|
6
|
-
import"./chunks/location-760vtqy2.js";
|
|
7
|
-
import"./chunks/location-bgzrbsek.js";
|
|
8
|
-
import"./chunks/location-fyjxk8m3.js";
|
|
9
|
-
import"./chunks/location-kv6ycdgm.js";
|
|
10
|
-
import"./chunks/location-0qzy9yxk.js";
|
|
11
|
-
import"./chunks/location-erwrh284.js";
|
|
12
|
-
import"./chunks/location-6aya8ky6.js";
|
|
13
|
-
import"./chunks/location-5ax89a0p.js";
|
|
14
|
-
import"./chunks/location-40g8rvw4.js";
|
|
15
|
-
import"./chunks/location-8ygjd1s8.js";
|
|
16
|
-
import"./chunks/location-cm8xmqjn.js";
|
|
17
|
-
import"./chunks/location-3m2s03cb.js";
|
|
18
|
-
import"./chunks/location-hezj1jdf.js";
|
|
3
|
+
} from "./chunks/location-y5tqh3rp.js";
|
|
19
4
|
import"./chunks/location-f78xgav9.js";
|
|
20
|
-
import"./chunks/location-
|
|
5
|
+
import"./chunks/location-cm8xmqjn.js";
|
|
21
6
|
import"./chunks/location-8e21y1bd.js";
|
|
7
|
+
import"./chunks/location-1wj0ectp.js";
|
|
8
|
+
import"./chunks/location-6dzad7zx.js";
|
|
9
|
+
import"./chunks/location-34e6wr3b.js";
|
|
10
|
+
import"./chunks/location-bgzrbsek.js";
|
|
11
|
+
import"./chunks/location-zw9j8b8g.js";
|
|
12
|
+
import"./chunks/location-8ygjd1s8.js";
|
|
22
13
|
import"./chunks/location-bkb1xk38.js";
|
|
14
|
+
import"./chunks/location-mmssttgx.js";
|
|
15
|
+
import"./chunks/location-erwrh284.js";
|
|
23
16
|
import"./chunks/location-8nbs1vvt.js";
|
|
17
|
+
import"./chunks/location-txhx6f1m.js";
|
|
18
|
+
import"./chunks/location-kv6ycdgm.js";
|
|
19
|
+
import"./chunks/location-760vtqy2.js";
|
|
24
20
|
import"./chunks/location-zxvt7wd3.js";
|
|
25
|
-
import"./chunks/location-vgxn80m1.js";
|
|
26
21
|
import"./chunks/location-xpxp1sqb.js";
|
|
27
|
-
import"./chunks/location-
|
|
22
|
+
import"./chunks/location-0qzy9yxk.js";
|
|
23
|
+
import"./chunks/location-pd1pbg0v.js";
|
|
28
24
|
import"./chunks/location-7qtja2kq.js";
|
|
29
|
-
import"./chunks/location-
|
|
30
|
-
import"./chunks/location-
|
|
31
|
-
import"./chunks/location-83z6y78s.js";
|
|
25
|
+
import"./chunks/location-vgxn80m1.js";
|
|
26
|
+
import"./chunks/location-fyjxk8m3.js";
|
|
32
27
|
import"./chunks/location-d2g7egyw.js";
|
|
33
|
-
import"./chunks/location-
|
|
34
|
-
import"./chunks/location-
|
|
35
|
-
import"./chunks/location-
|
|
36
|
-
import"./chunks/location-
|
|
37
|
-
import"./chunks/location-
|
|
38
|
-
import"./chunks/location-
|
|
28
|
+
import"./chunks/location-kpf69hd1.js";
|
|
29
|
+
import"./chunks/location-hezj1jdf.js";
|
|
30
|
+
import"./chunks/location-z3nth2hg.js";
|
|
31
|
+
import"./chunks/location-e09mshwt.js";
|
|
32
|
+
import"./chunks/location-40g8rvw4.js";
|
|
33
|
+
import"./chunks/location-tk6nqkmh.js";
|
|
34
|
+
import"./chunks/location-6aya8ky6.js";
|
|
39
35
|
import"./chunks/location-anm12x33.js";
|
|
36
|
+
import"./chunks/location-2sy3c7de.js";
|
|
37
|
+
import"./chunks/location-q4bn6dy8.js";
|
|
38
|
+
import"./chunks/location-mzr9gftb.js";
|
|
39
|
+
import"./chunks/location-x6486bry.js";
|
|
40
40
|
import"./chunks/location-tnr0rqd3.js";
|
|
41
41
|
import"./chunks/location-z6kg9h7e.js";
|
|
42
42
|
import"./chunks/location-23w8t84j.js";
|
package/dist/pairing.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service4,
|
|
3
3
|
node2,
|
|
4
4
|
exports_pairing
|
|
5
|
-
} from "./chunks/location-
|
|
5
|
+
} from "./chunks/location-x6486bry.js";
|
|
6
6
|
export {
|
|
7
7
|
exports_pairing as ServerPairing,
|
|
8
|
-
|
|
8
|
+
Service4 as Service,
|
|
9
9
|
node2 as node
|
|
10
10
|
};
|
package/dist/process.js
CHANGED
|
@@ -27,19 +27,19 @@ import"./chunks/location-pd1pbg0v.js";
|
|
|
27
27
|
import"./chunks/location-bgzrbsek.js";
|
|
28
28
|
import"./chunks/location-34e6wr3b.js";
|
|
29
29
|
import"./chunks/location-1wj0ectp.js";
|
|
30
|
-
import"./chunks/location-
|
|
31
|
-
import"./chunks/location-
|
|
30
|
+
import"./chunks/location-2sy3c7de.js";
|
|
31
|
+
import"./chunks/location-6dzad7zx.js";
|
|
32
32
|
import"./chunks/location-zxvt7wd3.js";
|
|
33
33
|
import"./chunks/location-vgxn80m1.js";
|
|
34
34
|
import {
|
|
35
35
|
connectionURLs2
|
|
36
|
-
} from "./chunks/location-
|
|
37
|
-
import"./chunks/location-
|
|
38
|
-
import"./chunks/location-
|
|
36
|
+
} from "./chunks/location-mzr9gftb.js";
|
|
37
|
+
import"./chunks/location-x6486bry.js";
|
|
38
|
+
import"./chunks/location-mmssttgx.js";
|
|
39
39
|
import"./chunks/location-8e21y1bd.js";
|
|
40
40
|
import"./chunks/location-tnr0rqd3.js";
|
|
41
41
|
import"./chunks/location-hezj1jdf.js";
|
|
42
|
-
import"./chunks/location-
|
|
42
|
+
import"./chunks/location-kpf69hd1.js";
|
|
43
43
|
import"./chunks/location-0qzy9yxk.js";
|
|
44
44
|
import"./chunks/location-z3nth2hg.js";
|
|
45
45
|
import"./chunks/location-cm8xmqjn.js";
|
|
@@ -53,14 +53,14 @@ import"./chunks/location-bkb1xk38.js";
|
|
|
53
53
|
import"./chunks/location-zw9j8b8g.js";
|
|
54
54
|
import"./chunks/location-txhx6f1m.js";
|
|
55
55
|
import"./chunks/location-xpxp1sqb.js";
|
|
56
|
-
import"./chunks/location-
|
|
56
|
+
import"./chunks/location-y5tqh3rp.js";
|
|
57
57
|
import"./chunks/location-t8yzmczr.js";
|
|
58
58
|
import {
|
|
59
59
|
createRoutes2
|
|
60
|
-
} from "./chunks/location-
|
|
60
|
+
} from "./chunks/location-xy073h1s.js";
|
|
61
61
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunks/location-
|
|
62
|
+
make2
|
|
63
|
+
} from "./chunks/location-xsrtpxyd.js";
|
|
64
64
|
import {
|
|
65
65
|
__export
|
|
66
66
|
} from "./chunks/location-9rqn6x4v.js";
|
|
@@ -90,7 +90,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
|
|
|
90
90
|
const hostname = options.hostname ?? "127.0.0.1";
|
|
91
91
|
const port = Option.fromNullishOr(options.port);
|
|
92
92
|
const shutdown = yield* Latch.make();
|
|
93
|
-
const status = yield*
|
|
93
|
+
const status = yield* make2();
|
|
94
94
|
const bound = yield* listen({ hostname, port });
|
|
95
95
|
const urls = () => {
|
|
96
96
|
const address = bound.server.address();
|
package/dist/routes.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRoutes2,
|
|
3
3
|
createEmbeddedRoutes2
|
|
4
|
-
} from "./chunks/location-
|
|
5
|
-
import"./chunks/location-gtkdacvk.js";
|
|
4
|
+
} from "./chunks/location-xy073h1s.js";
|
|
6
5
|
import"./chunks/location-t8yzmczr.js";
|
|
7
|
-
import"./chunks/location-
|
|
8
|
-
import"./chunks/location-
|
|
9
|
-
import"./chunks/location-z3nth2hg.js";
|
|
10
|
-
import"./chunks/location-760vtqy2.js";
|
|
11
|
-
import"./chunks/location-bgzrbsek.js";
|
|
12
|
-
import"./chunks/location-fyjxk8m3.js";
|
|
13
|
-
import"./chunks/location-kv6ycdgm.js";
|
|
14
|
-
import"./chunks/location-0qzy9yxk.js";
|
|
15
|
-
import"./chunks/location-erwrh284.js";
|
|
16
|
-
import"./chunks/location-6aya8ky6.js";
|
|
17
|
-
import"./chunks/location-5ax89a0p.js";
|
|
18
|
-
import"./chunks/location-40g8rvw4.js";
|
|
19
|
-
import"./chunks/location-8ygjd1s8.js";
|
|
20
|
-
import"./chunks/location-cm8xmqjn.js";
|
|
21
|
-
import"./chunks/location-3m2s03cb.js";
|
|
22
|
-
import"./chunks/location-hezj1jdf.js";
|
|
6
|
+
import"./chunks/location-gtkdacvk.js";
|
|
7
|
+
import"./chunks/location-y5tqh3rp.js";
|
|
23
8
|
import"./chunks/location-f78xgav9.js";
|
|
24
|
-
import"./chunks/location-
|
|
9
|
+
import"./chunks/location-cm8xmqjn.js";
|
|
25
10
|
import"./chunks/location-8e21y1bd.js";
|
|
11
|
+
import"./chunks/location-1wj0ectp.js";
|
|
12
|
+
import"./chunks/location-6dzad7zx.js";
|
|
13
|
+
import"./chunks/location-34e6wr3b.js";
|
|
14
|
+
import"./chunks/location-bgzrbsek.js";
|
|
15
|
+
import"./chunks/location-zw9j8b8g.js";
|
|
16
|
+
import"./chunks/location-8ygjd1s8.js";
|
|
26
17
|
import"./chunks/location-bkb1xk38.js";
|
|
18
|
+
import"./chunks/location-mmssttgx.js";
|
|
19
|
+
import"./chunks/location-erwrh284.js";
|
|
27
20
|
import"./chunks/location-8nbs1vvt.js";
|
|
21
|
+
import"./chunks/location-txhx6f1m.js";
|
|
22
|
+
import"./chunks/location-kv6ycdgm.js";
|
|
23
|
+
import"./chunks/location-760vtqy2.js";
|
|
28
24
|
import"./chunks/location-zxvt7wd3.js";
|
|
29
|
-
import"./chunks/location-vgxn80m1.js";
|
|
30
25
|
import"./chunks/location-xpxp1sqb.js";
|
|
31
|
-
import"./chunks/location-
|
|
26
|
+
import"./chunks/location-0qzy9yxk.js";
|
|
27
|
+
import"./chunks/location-pd1pbg0v.js";
|
|
32
28
|
import"./chunks/location-7qtja2kq.js";
|
|
33
|
-
import"./chunks/location-
|
|
34
|
-
import"./chunks/location-
|
|
35
|
-
import"./chunks/location-83z6y78s.js";
|
|
29
|
+
import"./chunks/location-vgxn80m1.js";
|
|
30
|
+
import"./chunks/location-fyjxk8m3.js";
|
|
36
31
|
import"./chunks/location-d2g7egyw.js";
|
|
37
|
-
import"./chunks/location-
|
|
38
|
-
import"./chunks/location-
|
|
39
|
-
import"./chunks/location-
|
|
40
|
-
import"./chunks/location-
|
|
41
|
-
import"./chunks/location-
|
|
42
|
-
import"./chunks/location-
|
|
32
|
+
import"./chunks/location-kpf69hd1.js";
|
|
33
|
+
import"./chunks/location-hezj1jdf.js";
|
|
34
|
+
import"./chunks/location-z3nth2hg.js";
|
|
35
|
+
import"./chunks/location-e09mshwt.js";
|
|
36
|
+
import"./chunks/location-40g8rvw4.js";
|
|
37
|
+
import"./chunks/location-tk6nqkmh.js";
|
|
38
|
+
import"./chunks/location-6aya8ky6.js";
|
|
43
39
|
import"./chunks/location-anm12x33.js";
|
|
40
|
+
import"./chunks/location-2sy3c7de.js";
|
|
41
|
+
import"./chunks/location-q4bn6dy8.js";
|
|
42
|
+
import"./chunks/location-mzr9gftb.js";
|
|
43
|
+
import"./chunks/location-x6486bry.js";
|
|
44
44
|
import"./chunks/location-tnr0rqd3.js";
|
|
45
45
|
import"./chunks/location-z6kg9h7e.js";
|
|
46
46
|
import"./chunks/location-23w8t84j.js";
|
package/dist/server-info.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service3,
|
|
3
3
|
layer3,
|
|
4
4
|
connectionURLs2,
|
|
5
5
|
exports_server_info
|
|
6
|
-
} from "./chunks/location-
|
|
6
|
+
} from "./chunks/location-mzr9gftb.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_server_info as ServerInfo,
|
|
9
|
-
|
|
9
|
+
Service3 as Service,
|
|
10
10
|
connectionURLs2 as connectionURLs,
|
|
11
11
|
layer3 as layer
|
|
12
12
|
};
|
package/dist/service-status.js
CHANGED
package/dist/workerd.js
CHANGED
|
@@ -16,17 +16,17 @@ import"./chunks/location-pd1pbg0v.js";
|
|
|
16
16
|
import"./chunks/location-bgzrbsek.js";
|
|
17
17
|
import"./chunks/location-34e6wr3b.js";
|
|
18
18
|
import"./chunks/location-1wj0ectp.js";
|
|
19
|
-
import"./chunks/location-
|
|
20
|
-
import"./chunks/location-
|
|
19
|
+
import"./chunks/location-2sy3c7de.js";
|
|
20
|
+
import"./chunks/location-6dzad7zx.js";
|
|
21
21
|
import"./chunks/location-zxvt7wd3.js";
|
|
22
22
|
import"./chunks/location-vgxn80m1.js";
|
|
23
|
-
import"./chunks/location-
|
|
24
|
-
import"./chunks/location-
|
|
25
|
-
import"./chunks/location-
|
|
23
|
+
import"./chunks/location-mzr9gftb.js";
|
|
24
|
+
import"./chunks/location-x6486bry.js";
|
|
25
|
+
import"./chunks/location-mmssttgx.js";
|
|
26
26
|
import"./chunks/location-8e21y1bd.js";
|
|
27
27
|
import"./chunks/location-tnr0rqd3.js";
|
|
28
28
|
import"./chunks/location-hezj1jdf.js";
|
|
29
|
-
import"./chunks/location-
|
|
29
|
+
import"./chunks/location-kpf69hd1.js";
|
|
30
30
|
import"./chunks/location-0qzy9yxk.js";
|
|
31
31
|
import"./chunks/location-z3nth2hg.js";
|
|
32
32
|
import"./chunks/location-cm8xmqjn.js";
|
|
@@ -40,13 +40,13 @@ import"./chunks/location-bkb1xk38.js";
|
|
|
40
40
|
import"./chunks/location-zw9j8b8g.js";
|
|
41
41
|
import"./chunks/location-txhx6f1m.js";
|
|
42
42
|
import"./chunks/location-xpxp1sqb.js";
|
|
43
|
-
import"./chunks/location-
|
|
43
|
+
import"./chunks/location-y5tqh3rp.js";
|
|
44
44
|
import"./chunks/location-gtkdacvk.js";
|
|
45
45
|
import"./chunks/location-t8yzmczr.js";
|
|
46
|
-
import"./chunks/location-
|
|
46
|
+
import"./chunks/location-xy073h1s.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunks/location-
|
|
48
|
+
make3
|
|
49
|
+
} from "./chunks/location-ez0evcxy.js";
|
|
50
50
|
import {
|
|
51
51
|
__export
|
|
52
52
|
} from "./chunks/location-9rqn6x4v.js";
|
|
@@ -71,7 +71,7 @@ import { Snapshot } from "@opencode/core/snapshot";
|
|
|
71
71
|
import { Vcs } from "@opencode/core/vcs";
|
|
72
72
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
73
73
|
function create(options) {
|
|
74
|
-
return
|
|
74
|
+
return make3(serverOptions(options), { overrides: replacements(options) });
|
|
75
75
|
}
|
|
76
76
|
function serverOptions(options) {
|
|
77
77
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/server",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-20199",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
32
32
|
"@effect/platform-node-shared": "4.0.0-rc.112",
|
|
33
|
-
"@opencode/core": "0.0.0-dev-
|
|
34
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
35
|
-
"@opencode/schema": "0.0.0-dev-
|
|
36
|
-
"@opencode/simulation": "0.0.0-dev-
|
|
37
|
-
"@opencode/util": "0.0.0-dev-
|
|
33
|
+
"@opencode/core": "0.0.0-dev-20199",
|
|
34
|
+
"@opencode/protocol": "0.0.0-dev-20199",
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-20199",
|
|
36
|
+
"@opencode/simulation": "0.0.0-dev-20199",
|
|
37
|
+
"@opencode/util": "0.0.0-dev-20199",
|
|
38
38
|
"drizzle-orm": "1.0.0-rc.5-169397b",
|
|
39
39
|
"effect": "4.0.0-rc.112"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@opencode/client": "0.0.0-dev-
|
|
43
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
42
|
+
"@opencode/client": "0.0.0-dev-20199",
|
|
43
|
+
"@opencode/plugin": "0.0.0-dev-20199",
|
|
44
44
|
"@tsconfig/bun": "1.0.9",
|
|
45
45
|
"@types/bun": "1.4.0",
|
|
46
46
|
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|
|
File without changes
|