@opencode/server 0.0.0-dev-466 → 0.0.0-dev-468
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 +2 -2
- package/dist/chunks/{pairing-d4534456.js → pairing-1ndv3m9h.js} +1 -1
- package/dist/chunks/{pairing-s62wjkvx.js → pairing-1v577ncx.js} +1 -1
- package/dist/chunks/{pairing-vbgqk0mr.js → pairing-2eaky32g.js} +1 -1
- package/dist/chunks/{pairing-0ey2b45p.js → pairing-2h6qktqa.js} +1 -1
- package/dist/chunks/{pairing-b4mqtccx.js → pairing-4q6e7fh8.js} +1 -1
- package/dist/chunks/{pairing-ap1t95t8.js → pairing-58psf7ej.js} +1 -1
- package/dist/chunks/{pairing-nz17qv97.js → pairing-5s6gh8sx.js} +1 -1
- package/dist/chunks/{pairing-x4b2rtcb.js → pairing-6z9pvq7p.js} +1 -1
- package/dist/chunks/{pairing-cgjt9h7n.js → pairing-9xn4exsd.js} +4 -4
- package/dist/chunks/{pairing-05c5061t.js → pairing-a8jcac9a.js} +1 -1
- package/dist/chunks/{pairing-9grnt8dc.js → pairing-az0609r6.js} +1 -1
- package/dist/chunks/{pairing-89egwzf3.js → pairing-b105zy65.js} +1 -1
- package/dist/chunks/{pairing-kg0ybx4v.js → pairing-btahnm2b.js} +1 -1
- package/dist/chunks/{pairing-hx8bsq9d.js → pairing-cezwbsk5.js} +1 -1
- package/dist/chunks/{pairing-n1zdbfv7.js → pairing-cw3d9k4q.js} +1 -1
- package/dist/chunks/{pairing-et00mhwf.js → pairing-d0edqfxx.js} +1 -1
- package/dist/chunks/{pairing-39nnfjx1.js → pairing-e6e4kz0w.js} +3 -3
- package/dist/chunks/{pairing-861wfsmy.js → pairing-enp1bp7r.js} +1 -1
- package/dist/chunks/{pairing-v8aqacn3.js → pairing-f559fakr.js} +1 -1
- package/dist/chunks/{pairing-mns2e01p.js → pairing-g3bm0zk6.js} +4 -4
- package/dist/chunks/{pairing-jydxnq20.js → pairing-htj50t1a.js} +1 -1
- package/dist/chunks/{pairing-dx89xydc.js → pairing-kkdkqt8j.js} +1 -1
- package/dist/chunks/{pairing-2wexxjwf.js → pairing-n9e09qf4.js} +2 -2
- package/dist/chunks/{pairing-q44yktpv.js → pairing-ny1j968n.js} +1 -1
- package/dist/chunks/{pairing-jjvpqmx6.js → pairing-psw29prz.js} +1 -1
- package/dist/chunks/{pairing-h1thjy6x.js → pairing-qcg3sqtb.js} +1 -1
- package/dist/chunks/{pairing-f8r9p2vr.js → pairing-qd0r787n.js} +1 -1
- package/dist/chunks/{pairing-vc6bb8fg.js → pairing-r1zwrg3y.js} +3 -3
- package/dist/chunks/{pairing-4p2y0qs3.js → pairing-rha2aq18.js} +1 -1
- package/dist/chunks/{pairing-0n4tjm17.js → pairing-s282vggx.js} +1 -1
- package/dist/chunks/{pairing-qfyg9gb7.js → pairing-s802fzg1.js} +5 -5
- package/dist/chunks/{pairing-65k4xhsp.js → pairing-sp9ry0s5.js} +33 -33
- package/dist/chunks/{pairing-s9tkswmw.js → pairing-te8jwba1.js} +1 -1
- package/dist/chunks/{pairing-z661qcrz.js → pairing-vwv9g5qg.js} +1 -1
- package/dist/chunks/{pairing-mzs0n5xz.js → pairing-w9jcwh65.js} +6 -6
- package/dist/chunks/{pairing-86cmqrvr.js → pairing-xggtaj5y.js} +4 -4
- package/dist/chunks/{pairing-0j6zxxn8.js → pairing-yqhefp4s.js} +1 -1
- package/dist/chunks/{pairing-zbe9jfhy.js → pairing-zcvan105.js} +1 -1
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +46 -46
- package/dist/handlers/agent.js +3 -3
- package/dist/handlers/command.js +3 -3
- package/dist/handlers/config.js +3 -3
- package/dist/handlers/credential.js +4 -4
- package/dist/handlers/debug.js +3 -3
- package/dist/handlers/event.js +4 -4
- package/dist/handlers/form.js +3 -3
- package/dist/handlers/fs.js +3 -3
- package/dist/handlers/generate.js +3 -3
- package/dist/handlers/integration.js +3 -3
- package/dist/handlers/location.js +3 -3
- package/dist/handlers/mcp.js +3 -3
- package/dist/handlers/message.js +3 -3
- package/dist/handlers/migration.js +3 -3
- package/dist/handlers/model.js +3 -3
- package/dist/handlers/permission.js +3 -3
- package/dist/handlers/persistent-pty.js +4 -4
- package/dist/handlers/plugin.js +3 -3
- package/dist/handlers/project.js +3 -3
- package/dist/handlers/provider.js +3 -3
- package/dist/handlers/pty.js +3 -3
- package/dist/handlers/reference.js +3 -3
- package/dist/handlers/rpc.js +3 -3
- package/dist/handlers/server.js +4 -4
- package/dist/handlers/session.js +3 -3
- package/dist/handlers/shell.js +3 -3
- package/dist/handlers/skill.js +3 -3
- package/dist/handlers/usage.js +3 -3
- package/dist/handlers/vcs.js +3 -3
- package/dist/handlers/voice.js +3 -3
- package/dist/handlers/websearch.js +3 -3
- package/dist/handlers/worktree.js +3 -3
- package/dist/handlers.js +40 -40
- package/dist/pairing.js +3 -3
- package/dist/process.js +40 -40
- package/dist/routes.js +42 -42
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +40 -40
- package/package.json +8 -8
- /package/dist/chunks/{pairing-0e81et3m.js → pairing-j87xz9bt.js} +0 -0
package/dist/api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/pairing-
|
|
4
|
-
import"./chunks/pairing-b3bmdkga.js";
|
|
3
|
+
} from "./chunks/pairing-j87xz9bt.js";
|
|
5
4
|
import"./chunks/pairing-htyf2qs7.js";
|
|
5
|
+
import"./chunks/pairing-b3bmdkga.js";
|
|
6
6
|
import"./chunks/pairing-50bbk3b2.js";
|
|
7
7
|
import"./chunks/pairing-smaf4a18.js";
|
|
8
8
|
export {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./pairing-yc7nft6q.js";
|
|
7
7
|
import {
|
|
8
8
|
createRoutes2
|
|
9
|
-
} from "./pairing-
|
|
9
|
+
} from "./pairing-r1zwrg3y.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./pairing-9rqn6x4v.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
var exports_fetch = {};
|
|
16
16
|
__export(exports_fetch, {
|
|
17
17
|
ServerFetch: () => exports_fetch,
|
|
18
|
-
make: () =>
|
|
18
|
+
make: () => make2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
22
22
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
23
|
-
var
|
|
23
|
+
var make2 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
24
24
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices))).pipe(withoutParentSpan2);
|
|
25
25
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
26
26
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
export {
|
|
29
|
+
export { make2, exports_fetch };
|
|
@@ -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: () => make3
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make3 = 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 make2 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make3, exports_service_status };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./pairing-
|
|
3
|
+
} from "./pairing-j87xz9bt.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./pairing-
|
|
7
|
+
} from "./pairing-s802fzg1.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/http";
|
|
13
13
|
import { HttpApiBuilder } from "effect/http-api";
|
|
14
14
|
var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
|
|
15
|
-
const feed = yield*
|
|
15
|
+
const feed = yield* Service4;
|
|
16
16
|
return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
|
|
17
17
|
const connected = {
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./pairing-
|
|
3
|
+
} from "./pairing-j87xz9bt.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./pairing-
|
|
6
|
+
} from "./pairing-cw3d9k4q.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./pairing-b3bmdkga.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./pairing-
|
|
12
|
+
} from "./pairing-j87xz9bt.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
15
|
} from "./pairing-j4at0y5c.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
} from "./pairing-z3e7v67k.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./pairing-
|
|
24
|
+
} from "./pairing-w9jcwh65.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./pairing-
|
|
27
|
+
} from "./pairing-sp9ry0s5.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
30
|
} from "./pairing-7b9xm1qg.js";
|
|
@@ -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: () => Service4,
|
|
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 Service4 extends Context.Service()("@opencode/server/EventFeed") {
|
|
34
34
|
}
|
|
35
35
|
function frame2(event) {
|
|
36
36
|
return `data: ${JSON.stringify(event)}
|
|
@@ -72,13 +72,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
72
72
|
});
|
|
73
73
|
const unsubscribe = yield* observe(publish);
|
|
74
74
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
75
|
-
return
|
|
75
|
+
return Service4.of({
|
|
76
76
|
subscribe: (types) => Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
|
-
var layer3 = Layer.effect(
|
|
79
|
+
var layer3 = Layer.effect(Service4, Effect.gen(function* () {
|
|
80
80
|
const bus = yield* Bus.Service;
|
|
81
81
|
return yield* make4(bus.listen);
|
|
82
82
|
}));
|
|
83
83
|
|
|
84
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
84
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./pairing-
|
|
3
|
+
} from "./pairing-yqhefp4s.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./pairing-
|
|
6
|
+
} from "./pairing-d0edqfxx.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./pairing-
|
|
9
|
+
} from "./pairing-58psf7ej.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./pairing-
|
|
12
|
+
} from "./pairing-rha2aq18.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./pairing-
|
|
15
|
+
} from "./pairing-az0609r6.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./pairing-
|
|
18
|
+
} from "./pairing-htj50t1a.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./pairing-
|
|
21
|
+
} from "./pairing-btahnm2b.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./pairing-
|
|
24
|
+
} from "./pairing-2h6qktqa.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./pairing-
|
|
27
|
+
} from "./pairing-f559fakr.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./pairing-
|
|
30
|
+
} from "./pairing-4q6e7fh8.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./pairing-
|
|
33
|
+
} from "./pairing-ny1j968n.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./pairing-
|
|
36
|
+
} from "./pairing-s282vggx.js";
|
|
37
37
|
import {
|
|
38
38
|
layer3
|
|
39
|
-
} from "./pairing-
|
|
39
|
+
} from "./pairing-s802fzg1.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./pairing-
|
|
42
|
+
} from "./pairing-g3bm0zk6.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./pairing-
|
|
45
|
+
} from "./pairing-1v577ncx.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./pairing-
|
|
48
|
+
} from "./pairing-2eaky32g.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./pairing-
|
|
51
|
+
} from "./pairing-xggtaj5y.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./pairing-
|
|
54
|
+
} from "./pairing-qcg3sqtb.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./pairing-
|
|
57
|
+
} from "./pairing-psw29prz.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./pairing-
|
|
60
|
+
} from "./pairing-vwv9g5qg.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./pairing-
|
|
63
|
+
} from "./pairing-qd0r787n.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./pairing-
|
|
66
|
+
} from "./pairing-te8jwba1.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./pairing-
|
|
69
|
+
} from "./pairing-zcvan105.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./pairing-
|
|
72
|
+
} from "./pairing-cw3d9k4q.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./pairing-
|
|
75
|
+
} from "./pairing-kkdkqt8j.js";
|
|
76
76
|
import {
|
|
77
77
|
UsageHandler2
|
|
78
|
-
} from "./pairing-
|
|
78
|
+
} from "./pairing-b105zy65.js";
|
|
79
79
|
import {
|
|
80
80
|
McpHandler2
|
|
81
|
-
} from "./pairing-
|
|
81
|
+
} from "./pairing-1ndv3m9h.js";
|
|
82
82
|
import {
|
|
83
83
|
CredentialHandler2
|
|
84
|
-
} from "./pairing-
|
|
84
|
+
} from "./pairing-n9e09qf4.js";
|
|
85
85
|
import {
|
|
86
86
|
ProjectHandler2
|
|
87
|
-
} from "./pairing-
|
|
87
|
+
} from "./pairing-a8jcac9a.js";
|
|
88
88
|
import {
|
|
89
89
|
WorktreeHandler2
|
|
90
|
-
} from "./pairing-
|
|
90
|
+
} from "./pairing-enp1bp7r.js";
|
|
91
91
|
import {
|
|
92
92
|
VcsHandler2
|
|
93
|
-
} from "./pairing-
|
|
93
|
+
} from "./pairing-5s6gh8sx.js";
|
|
94
94
|
import {
|
|
95
95
|
MigrationHandler2
|
|
96
|
-
} from "./pairing-
|
|
96
|
+
} from "./pairing-6z9pvq7p.js";
|
|
97
97
|
import {
|
|
98
98
|
ConfigHandler2
|
|
99
|
-
} from "./pairing-
|
|
99
|
+
} from "./pairing-cezwbsk5.js";
|
|
100
100
|
|
|
101
101
|
// src/handlers.ts
|
|
102
102
|
import { Layer } from "effect";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_pairing = {};
|
|
7
7
|
__export(exports_pairing, {
|
|
8
8
|
ServerPairing: () => exports_pairing,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
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 Service3 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(Service3, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service3.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(Service4, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var node2 = makeGlobalNode({ service:
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service3, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service3, node2, exports_pairing };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./pairing-
|
|
3
|
+
} from "./pairing-j87xz9bt.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
Service2
|
|
12
12
|
} from "./pairing-z3e7v67k.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./pairing-
|
|
14
|
+
Service3
|
|
15
|
+
} from "./pairing-w9jcwh65.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -22,7 +22,7 @@ import { HttpApiBuilder } from "effect/http-api";
|
|
|
22
22
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
23
23
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
24
24
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
25
|
-
const pairing = yield*
|
|
25
|
+
const pairing = yield* Service3;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
28
|
const info = yield* Service2;
|