@opencode/server 0.0.0-dev-1324 → 0.0.0-dev-1326
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/{routes-g97h7k0s.js → event-feed-0bzgr4rt.js} +1 -1
- package/dist/chunks/{routes-g80pvn6e.js → event-feed-0d9m1wm4.js} +2 -2
- package/dist/chunks/{routes-wh07bcjv.js → event-feed-1pw2nrsx.js} +1 -1
- package/dist/chunks/{routes-pv4dnzzq.js → event-feed-2d18d1yn.js} +1 -1
- package/dist/chunks/{routes-39nnfjx1.js → event-feed-39nnfjx1.js} +1 -1
- package/dist/chunks/{routes-gp51b0m6.js → event-feed-3cp4agan.js} +3 -3
- package/dist/chunks/{routes-4r2ye500.js → event-feed-4vbpeb73.js} +2 -2
- package/dist/chunks/{routes-zrptb2x8.js → event-feed-55yh37zc.js} +2 -2
- package/dist/chunks/{routes-k26h7zjg.js → event-feed-5b1w9hwr.js} +2 -2
- package/dist/chunks/{routes-r90c0ath.js → event-feed-5z0ssrt9.js} +18 -16
- package/dist/chunks/{routes-4gbck4qg.js → event-feed-6f7nn4kk.js} +2 -2
- package/dist/chunks/{routes-p89q26vy.js → event-feed-6jmqkv3t.js} +35 -35
- package/dist/chunks/{routes-p3ekc874.js → event-feed-6ptjjp36.js} +2 -2
- package/dist/chunks/{routes-4apj6a8e.js → event-feed-735y9bwf.js} +2 -2
- package/dist/chunks/{routes-7ydfwv45.js → event-feed-7ydfwv45.js} +1 -1
- package/dist/chunks/{routes-v0z8pce5.js → event-feed-8ptkdkh0.js} +2 -2
- package/dist/chunks/{routes-b87bs0cf.js → event-feed-8q8t4r9z.js} +2 -2
- package/dist/chunks/{routes-8sb6qqpn.js → event-feed-8sb6qqpn.js} +1 -1
- package/dist/chunks/{routes-9cd3a4b8.js → event-feed-9cd3a4b8.js} +1 -1
- package/dist/chunks/{routes-6t6fd9bq.js → event-feed-9d8cvn0j.js} +2 -2
- package/dist/chunks/{routes-86dz2n4m.js → event-feed-a5hb5213.js} +2 -2
- package/dist/chunks/{routes-s8t5gq7c.js → event-feed-a9m1qywq.js} +3 -3
- package/dist/chunks/{routes-wecgp61r.js → event-feed-arzv3fj6.js} +7 -7
- package/dist/chunks/{routes-t62b1gmw.js → event-feed-aw6r5m46.js} +2 -2
- package/dist/chunks/{routes-5pdfedjd.js → event-feed-b1prsepx.js} +4 -4
- package/dist/chunks/{routes-8n1ypg70.js → event-feed-cha5bc7v.js} +3 -3
- package/dist/chunks/{routes-6s1v5h8n.js → event-feed-d6gdrha6.js} +4 -4
- package/dist/chunks/{routes-djr0jy89.js → event-feed-djr0jy89.js} +1 -1
- package/dist/chunks/{routes-edwk6ehd.js → event-feed-dx59hhqy.js} +1 -1
- package/dist/chunks/{routes-b1x3j2e8.js → event-feed-e4amrgg0.js} +2 -2
- package/dist/chunks/{routes-50kbksvb.js → event-feed-g23ffrnz.js} +2 -2
- package/dist/chunks/{routes-p9wp66hf.js → event-feed-harnzwyx.js} +1 -1
- package/dist/chunks/{routes-j4at0y5c.js → event-feed-j4at0y5c.js} +1 -1
- package/dist/chunks/{routes-b7yt2ykh.js → event-feed-jdn2h5zy.js} +2 -2
- package/dist/chunks/{routes-4d81c38p.js → event-feed-knscys1g.js} +4 -4
- package/dist/chunks/{routes-n6ypjnhz.js → event-feed-kstarh2s.js} +1 -1
- package/dist/chunks/{routes-p4zkxzv7.js → event-feed-mbf5t0tq.js} +1 -1
- package/dist/chunks/{routes-d0advawr.js → event-feed-mnk4yp0a.js} +2 -2
- package/dist/chunks/{routes-myqk22k5.js → event-feed-myqk22k5.js} +2 -2
- package/dist/chunks/{routes-kqr36gas.js → event-feed-mzs0n5xz.js} +7 -7
- package/dist/chunks/{routes-7x6cg3xs.js → event-feed-p4hr7w7j.js} +2 -2
- package/dist/chunks/{routes-wbrxtn62.js → event-feed-p7f8d9ed.js} +4 -4
- package/dist/chunks/{routes-7b9xm1qg.js → event-feed-rktygpea.js} +4 -1
- package/dist/chunks/{routes-bvm82fhd.js → event-feed-rxp97434.js} +4 -4
- package/dist/chunks/event-feed-syfzpkey.js +144 -0
- package/dist/chunks/{routes-t32e1bbt.js → event-feed-t32e1bbt.js} +1 -1
- package/dist/chunks/{routes-s8cv2y4y.js → event-feed-tb37vts4.js} +13 -9
- package/dist/chunks/{routes-j80tzjj3.js → event-feed-tdwf54y9.js} +3 -3
- package/dist/chunks/{routes-4gdxfk9h.js → event-feed-tphz28p0.js} +6 -6
- package/dist/chunks/{routes-t8azv5ge.js → event-feed-vjj7wrqn.js} +2 -2
- package/dist/chunks/{routes-g329ycmh.js → event-feed-vxnq9y72.js} +5 -5
- package/dist/chunks/{routes-nkfbbfe7.js → event-feed-y50v5y23.js} +4 -4
- package/dist/chunks/{routes-20wvj9q6.js → event-feed-ye16b3jy.js} +2 -2
- package/dist/chunks/{routes-qahj7606.js → event-feed-ytyf0yt4.js} +1 -1
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +60 -59
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.js +3 -3
- package/dist/handlers/automation.js +2 -2
- package/dist/handlers/blob.js +3 -3
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +7 -7
- 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 +8 -8
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.js +6 -6
- package/dist/handlers/job.js +2 -2
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/machine.d.ts +61 -0
- package/dist/handlers/machine.js +16 -0
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +2 -2
- package/dist/handlers/message.js +7 -7
- 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.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +16 -15
- 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.js +8 -8
- 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 +7 -7
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.js +6 -6
- package/dist/handlers/usage.js +6 -6
- package/dist/handlers/vcs.js +6 -6
- package/dist/handlers/voice.js +6 -6
- package/dist/handlers/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.d.ts +1 -1
- package/dist/handlers.js +53 -52
- package/dist/location.js +4 -4
- package/dist/media-uri.js +1 -1
- package/dist/middleware/authorization.js +2 -2
- package/dist/middleware/defect-response.js +1 -1
- 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 +3 -3
- package/dist/process.js +70 -63
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +57 -56
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +61 -60
- package/package.json +8 -8
- /package/dist/chunks/{routes-9rqn6x4v.js → event-feed-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{routes-bd8755ek.js → event-feed-bd8755ek.js} +0 -0
- /package/dist/chunks/{routes-n26yr6pw.js → event-feed-n26yr6pw.js} +0 -0
- /package/dist/chunks/{routes-q187pxxd.js → event-feed-q187pxxd.js} +0 -0
- /package/dist/chunks/{routes-q4bn6dy8.js → event-feed-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{routes-smaf4a18.js → event-feed-smaf4a18.js} +0 -0
- /package/dist/chunks/{routes-xthc02cw.js → event-feed-xthc02cw.js} +0 -0
- /package/dist/chunks/{routes-yc7nft6q.js → event-feed-yc7nft6q.js} +0 -0
package/dist/process.js
CHANGED
|
@@ -1,82 +1,85 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Config2
|
|
3
|
-
} from "./chunks/
|
|
3
|
+
} from "./chunks/event-feed-j4at0y5c.js";
|
|
4
4
|
import {
|
|
5
5
|
isAllowedCorsOrigin2
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/event-feed-q4bn6dy8.js";
|
|
7
|
+
import {
|
|
8
|
+
machinesEnabled2
|
|
9
|
+
} from "./chunks/event-feed-syfzpkey.js";
|
|
7
10
|
import {
|
|
8
11
|
unauthorizedResponse2,
|
|
9
12
|
authorizedRequest2
|
|
10
|
-
} from "./chunks/
|
|
13
|
+
} from "./chunks/event-feed-rktygpea.js";
|
|
11
14
|
import {
|
|
12
15
|
withoutParentSpan2
|
|
13
|
-
} from "./chunks/
|
|
16
|
+
} from "./chunks/event-feed-yc7nft6q.js";
|
|
14
17
|
import {
|
|
15
18
|
middleware2
|
|
16
|
-
} from "./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/
|
|
19
|
+
} from "./chunks/event-feed-myqk22k5.js";
|
|
20
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
21
|
+
import"./chunks/event-feed-tdwf54y9.js";
|
|
22
|
+
import"./chunks/event-feed-kstarh2s.js";
|
|
23
|
+
import"./chunks/event-feed-ytyf0yt4.js";
|
|
24
|
+
import"./chunks/event-feed-a9m1qywq.js";
|
|
25
|
+
import"./chunks/event-feed-6ptjjp36.js";
|
|
26
|
+
import"./chunks/event-feed-8ptkdkh0.js";
|
|
27
|
+
import"./chunks/event-feed-xthc02cw.js";
|
|
28
|
+
import"./chunks/event-feed-3cp4agan.js";
|
|
29
|
+
import"./chunks/event-feed-mnk4yp0a.js";
|
|
30
|
+
import"./chunks/event-feed-9d8cvn0j.js";
|
|
31
|
+
import"./chunks/event-feed-knscys1g.js";
|
|
32
|
+
import"./chunks/event-feed-cha5bc7v.js";
|
|
33
|
+
import"./chunks/event-feed-t32e1bbt.js";
|
|
34
|
+
import"./chunks/event-feed-8sb6qqpn.js";
|
|
35
|
+
import"./chunks/event-feed-p7f8d9ed.js";
|
|
36
|
+
import"./chunks/event-feed-55yh37zc.js";
|
|
37
|
+
import"./chunks/event-feed-8q8t4r9z.js";
|
|
38
|
+
import"./chunks/event-feed-735y9bwf.js";
|
|
39
|
+
import"./chunks/event-feed-mbf5t0tq.js";
|
|
40
|
+
import"./chunks/event-feed-arzv3fj6.js";
|
|
41
|
+
import"./chunks/event-feed-d6gdrha6.js";
|
|
42
|
+
import"./chunks/event-feed-5b1w9hwr.js";
|
|
43
|
+
import"./chunks/event-feed-ye16b3jy.js";
|
|
41
44
|
import {
|
|
42
45
|
connectionURLs2
|
|
43
|
-
} from "./chunks/
|
|
44
|
-
import"./chunks/
|
|
45
|
-
import"./chunks/
|
|
46
|
-
import"./chunks/
|
|
47
|
-
import"./chunks/
|
|
48
|
-
import"./chunks/
|
|
49
|
-
import"./chunks/
|
|
50
|
-
import"./chunks/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
59
|
-
import"./chunks/
|
|
60
|
-
import"./chunks/
|
|
61
|
-
import"./chunks/
|
|
62
|
-
import"./chunks/
|
|
63
|
-
import"./chunks/
|
|
64
|
-
import"./chunks/
|
|
65
|
-
import"./chunks/
|
|
66
|
-
import"./chunks/
|
|
67
|
-
import"./chunks/
|
|
68
|
-
import"./chunks/
|
|
69
|
-
import"./chunks/
|
|
70
|
-
import"./chunks/
|
|
46
|
+
} from "./chunks/event-feed-b1prsepx.js";
|
|
47
|
+
import"./chunks/event-feed-mzs0n5xz.js";
|
|
48
|
+
import"./chunks/event-feed-tphz28p0.js";
|
|
49
|
+
import"./chunks/event-feed-jdn2h5zy.js";
|
|
50
|
+
import"./chunks/event-feed-q187pxxd.js";
|
|
51
|
+
import"./chunks/event-feed-y50v5y23.js";
|
|
52
|
+
import"./chunks/event-feed-aw6r5m46.js";
|
|
53
|
+
import"./chunks/event-feed-g23ffrnz.js";
|
|
54
|
+
import"./chunks/event-feed-9cd3a4b8.js";
|
|
55
|
+
import"./chunks/event-feed-7ydfwv45.js";
|
|
56
|
+
import"./chunks/event-feed-djr0jy89.js";
|
|
57
|
+
import"./chunks/event-feed-tb37vts4.js";
|
|
58
|
+
import"./chunks/event-feed-e4amrgg0.js";
|
|
59
|
+
import"./chunks/event-feed-vjj7wrqn.js";
|
|
60
|
+
import"./chunks/event-feed-1pw2nrsx.js";
|
|
61
|
+
import"./chunks/event-feed-4vbpeb73.js";
|
|
62
|
+
import"./chunks/event-feed-p4hr7w7j.js";
|
|
63
|
+
import"./chunks/event-feed-6f7nn4kk.js";
|
|
64
|
+
import"./chunks/event-feed-rxp97434.js";
|
|
65
|
+
import"./chunks/event-feed-a5hb5213.js";
|
|
66
|
+
import"./chunks/event-feed-dx59hhqy.js";
|
|
67
|
+
import"./chunks/event-feed-harnzwyx.js";
|
|
68
|
+
import"./chunks/event-feed-0d9m1wm4.js";
|
|
69
|
+
import"./chunks/event-feed-2d18d1yn.js";
|
|
70
|
+
import"./chunks/event-feed-0bzgr4rt.js";
|
|
71
|
+
import"./chunks/event-feed-6jmqkv3t.js";
|
|
72
|
+
import"./chunks/event-feed-bd8755ek.js";
|
|
73
|
+
import"./chunks/event-feed-n26yr6pw.js";
|
|
71
74
|
import {
|
|
72
75
|
createRoutes2
|
|
73
|
-
} from "./chunks/
|
|
76
|
+
} from "./chunks/event-feed-5z0ssrt9.js";
|
|
74
77
|
import {
|
|
75
78
|
make2
|
|
76
|
-
} from "./chunks/
|
|
79
|
+
} from "./chunks/event-feed-39nnfjx1.js";
|
|
77
80
|
import {
|
|
78
81
|
__export
|
|
79
|
-
} from "./chunks/
|
|
82
|
+
} from "./chunks/event-feed-9rqn6x4v.js";
|
|
80
83
|
|
|
81
84
|
// src/process.ts
|
|
82
85
|
var exports_process = {};
|
|
@@ -93,6 +96,7 @@ import { InstallationEvent } from "@opencode/schema/installation-event";
|
|
|
93
96
|
import { hasPtyConnectTicketURL } from "@opencode/protocol/groups/pty";
|
|
94
97
|
import { hasPersistentPtyConnectTicketURL } from "@opencode/protocol/groups/persistent-pty";
|
|
95
98
|
import { hasMcpClientTicketURL } from "@opencode/protocol/groups/mcp";
|
|
99
|
+
import { isMachineLinkUpgrade } from "@opencode/protocol/groups/machine";
|
|
96
100
|
import { isPairingConnectURL } from "@opencode/protocol/groups/server";
|
|
97
101
|
import { Global } from "@opencode/util/global";
|
|
98
102
|
import { Cause, Context, Effect, Exit, Latch, Layer, Option, Ref, Scope } from "effect";
|
|
@@ -117,7 +121,8 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
|
|
|
117
121
|
};
|
|
118
122
|
const urls = () => [...localURLs(), ...remoteURLs?.() ?? []];
|
|
119
123
|
const application = yield* Ref.make(Option.none());
|
|
120
|
-
const
|
|
124
|
+
const machinesFlag = yield* Ref.make(Effect.succeed(false));
|
|
125
|
+
const app = dispatch(password, status, application, machinesFlag, options.app?.version ?? "unknown", urls, Global.Path.tmp);
|
|
121
126
|
yield* bound.http.serve((transform ? transform(app) : app).pipe(middleware2(options), HttpMiddleware.compression(), HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 })), errorResponseLogger).pipe(Effect.provide(NodeHttpServer.layerHttpServices), withoutParentSpan2);
|
|
122
127
|
if (lifecycle)
|
|
123
128
|
yield* lifecycle.onListen(bound.http.address, shutdown.open.pipe(Effect.asVoid)).pipe(Effect.flatMap((cleanup) => Effect.addFinalizer(() => Scope.close(bound.scope, Exit.void).pipe(Effect.andThen(cleanup)))), Effect.uninterruptible);
|
|
@@ -134,6 +139,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
|
|
|
134
139
|
}
|
|
135
140
|
yield* Effect.forkIn(Context.get(context, Automation.Service).run, applicationScope);
|
|
136
141
|
yield* Effect.forkIn(Context.get(context, SessionSearchBuild.Service).run, applicationScope);
|
|
142
|
+
yield* Ref.set(machinesFlag, yield* machinesEnabled2.pipe(Effect.provide(context)));
|
|
137
143
|
yield* Ref.set(application, Option.some(Context.get(context, HttpRouter.HttpRouter).asHttpEffect()));
|
|
138
144
|
yield* status.ready;
|
|
139
145
|
const bus = Context.get(context, Bus.Service);
|
|
@@ -176,20 +182,21 @@ function addressInUse(error) {
|
|
|
176
182
|
const cause = error.cause;
|
|
177
183
|
return typeof cause === "object" && cause !== null && "code" in cause && cause.code === "EADDRINUSE";
|
|
178
184
|
}
|
|
179
|
-
function dispatch(password, status, application, version, urls, tmp) {
|
|
185
|
+
function dispatch(password, status, application, machinesFlag, version, urls, tmp) {
|
|
180
186
|
const auth = Config2.of({ password: Option.some(password), username: "opencode" });
|
|
181
187
|
return Effect.gen(function* () {
|
|
182
188
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
183
189
|
const url = new URL(request.url, "http://localhost");
|
|
184
190
|
const state = yield* status.current;
|
|
185
191
|
const app = yield* Ref.get(application);
|
|
192
|
+
const machines = yield* Ref.get(machinesFlag);
|
|
186
193
|
const ready = state.type === "ready" && Option.isSome(app);
|
|
187
194
|
if (request.method === "GET" && url.pathname === "/api/info" && !ready) {
|
|
188
195
|
if (!(yield* authorizedRequest2(request, auth)))
|
|
189
196
|
return unauthorizedResponse2(request);
|
|
190
197
|
return yield* infoResponse(status, version, urls, tmp);
|
|
191
198
|
}
|
|
192
|
-
if (!isPairingConnectURL(url) && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url) && !hasMcpClientTicketURL(url)) && !(yield* authorizedRequest2(request, auth)))
|
|
199
|
+
if (!isPairingConnectURL(url) && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url) && !hasMcpClientTicketURL(url) && !(isMachineLinkUpgrade(request) && (yield* machines))) && !(yield* authorizedRequest2(request, auth)))
|
|
193
200
|
return unauthorizedResponse2(request);
|
|
194
201
|
if (ready)
|
|
195
202
|
return yield* app.value;
|
package/dist/range.js
CHANGED
package/dist/request-site.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
rejected2,
|
|
3
3
|
middleware2,
|
|
4
4
|
exports_request_site
|
|
5
|
-
} from "./chunks/
|
|
6
|
-
import"./chunks/
|
|
5
|
+
} from "./chunks/event-feed-myqk22k5.js";
|
|
6
|
+
import"./chunks/event-feed-q4bn6dy8.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_request_site as RequestSite,
|
|
9
9
|
middleware2 as middleware,
|
package/dist/request-tracing.js
CHANGED
package/dist/routes.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { Global } from "@opencode/util/global";
|
|
|
22
22
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
23
23
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
24
24
|
import { LocationActivity } from "@opencode/core/location-activity";
|
|
25
|
+
import { Identity } from "@opencode/core/machine/identity";
|
|
25
26
|
import { Machines } from "@opencode/core/machine/machines";
|
|
26
27
|
import { SessionSearchBuild } from "@opencode/core/session/search-build";
|
|
27
28
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
@@ -35,7 +36,7 @@ import { HttpRouter } from "effect/http";
|
|
|
35
36
|
import { Layer } from "effect";
|
|
36
37
|
import { ServerPairing } from "./pairing";
|
|
37
38
|
import type { ServerOptions } from "./options";
|
|
38
|
-
export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
39
|
+
export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Identity.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
39
40
|
type InstanceNode = (replacements: () => LayerNode.Replacements) => LayerNode.Provider<Instance.Service, never, typeof Node.tags.values.global>;
|
|
40
|
-
export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
41
|
+
export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<Shell.Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | App.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | Workspace.Service | Identity.Service | Machines.Service | PermissionSaved.Service | LocationServiceMap.Service | PersistentPty.Service | Session.Service | Worktree.Service | BlobStore.Service | SessionSearchBuild.Service | VideoGeneration.Service | Automation.Service | SdkPlugins.Service | PluginUpdate.Service | Instance.Service | Bus.Service | Project.Service | SessionRestart.Service | PtyTicket.Service | SessionTransfer.Service | LocationActivity.Service | FileWatch.Service | ServerPairing.Service, Error | PersistentPty.UnavailableError, import("effect/FileSystem").FileSystem | import("effect/http/Etag").Generator | import("effect/http/HttpPlatform").HttpPlatform | import("effect/Path").Path>;
|
|
41
42
|
export {};
|
package/dist/routes.js
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRoutes2,
|
|
3
3
|
createEmbeddedRoutes2
|
|
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/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
59
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/event-feed-5z0ssrt9.js";
|
|
5
|
+
import"./chunks/event-feed-bd8755ek.js";
|
|
6
|
+
import"./chunks/event-feed-rktygpea.js";
|
|
7
|
+
import"./chunks/event-feed-n26yr6pw.js";
|
|
8
|
+
import"./chunks/event-feed-6jmqkv3t.js";
|
|
9
|
+
import"./chunks/event-feed-2d18d1yn.js";
|
|
10
|
+
import"./chunks/event-feed-mbf5t0tq.js";
|
|
11
|
+
import"./chunks/event-feed-y50v5y23.js";
|
|
12
|
+
import"./chunks/event-feed-1pw2nrsx.js";
|
|
13
|
+
import"./chunks/event-feed-6ptjjp36.js";
|
|
14
|
+
import"./chunks/event-feed-jdn2h5zy.js";
|
|
15
|
+
import"./chunks/event-feed-3cp4agan.js";
|
|
16
|
+
import"./chunks/event-feed-8q8t4r9z.js";
|
|
17
|
+
import"./chunks/event-feed-55yh37zc.js";
|
|
18
|
+
import"./chunks/event-feed-5b1w9hwr.js";
|
|
19
|
+
import"./chunks/event-feed-rxp97434.js";
|
|
20
|
+
import"./chunks/event-feed-mnk4yp0a.js";
|
|
21
|
+
import"./chunks/event-feed-dx59hhqy.js";
|
|
22
|
+
import"./chunks/event-feed-cha5bc7v.js";
|
|
23
|
+
import"./chunks/event-feed-a5hb5213.js";
|
|
24
|
+
import"./chunks/event-feed-4vbpeb73.js";
|
|
25
|
+
import"./chunks/event-feed-735y9bwf.js";
|
|
26
|
+
import"./chunks/event-feed-ye16b3jy.js";
|
|
27
|
+
import"./chunks/event-feed-d6gdrha6.js";
|
|
28
|
+
import"./chunks/event-feed-p4hr7w7j.js";
|
|
29
|
+
import"./chunks/event-feed-tb37vts4.js";
|
|
30
|
+
import"./chunks/event-feed-aw6r5m46.js";
|
|
31
|
+
import"./chunks/event-feed-g23ffrnz.js";
|
|
32
|
+
import"./chunks/event-feed-djr0jy89.js";
|
|
33
|
+
import"./chunks/event-feed-q187pxxd.js";
|
|
34
|
+
import"./chunks/event-feed-syfzpkey.js";
|
|
35
|
+
import"./chunks/event-feed-9cd3a4b8.js";
|
|
36
|
+
import"./chunks/event-feed-p7f8d9ed.js";
|
|
37
|
+
import"./chunks/event-feed-9d8cvn0j.js";
|
|
38
|
+
import"./chunks/event-feed-6f7nn4kk.js";
|
|
39
|
+
import"./chunks/event-feed-7ydfwv45.js";
|
|
40
|
+
import"./chunks/event-feed-8ptkdkh0.js";
|
|
41
|
+
import"./chunks/event-feed-harnzwyx.js";
|
|
42
|
+
import"./chunks/event-feed-e4amrgg0.js";
|
|
43
|
+
import"./chunks/event-feed-0bzgr4rt.js";
|
|
44
|
+
import"./chunks/event-feed-knscys1g.js";
|
|
45
|
+
import"./chunks/event-feed-tphz28p0.js";
|
|
46
|
+
import"./chunks/event-feed-0d9m1wm4.js";
|
|
47
|
+
import"./chunks/event-feed-vjj7wrqn.js";
|
|
48
|
+
import"./chunks/event-feed-8sb6qqpn.js";
|
|
49
|
+
import"./chunks/event-feed-t32e1bbt.js";
|
|
50
|
+
import"./chunks/event-feed-a9m1qywq.js";
|
|
51
|
+
import"./chunks/event-feed-kstarh2s.js";
|
|
52
|
+
import"./chunks/event-feed-ytyf0yt4.js";
|
|
53
|
+
import"./chunks/event-feed-tdwf54y9.js";
|
|
54
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
55
|
+
import"./chunks/event-feed-arzv3fj6.js";
|
|
56
|
+
import"./chunks/event-feed-xthc02cw.js";
|
|
57
|
+
import"./chunks/event-feed-b1prsepx.js";
|
|
58
|
+
import"./chunks/event-feed-q4bn6dy8.js";
|
|
59
|
+
import"./chunks/event-feed-mzs0n5xz.js";
|
|
60
|
+
import"./chunks/event-feed-j4at0y5c.js";
|
|
60
61
|
export {
|
|
61
62
|
createEmbeddedRoutes2 as createEmbeddedRoutes,
|
|
62
63
|
createRoutes2 as createRoutes
|
package/dist/server-info.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service3,
|
|
3
|
-
|
|
3
|
+
layer4,
|
|
4
4
|
connectionURLs2,
|
|
5
5
|
exports_server_info
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/event-feed-b1prsepx.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_server_info as ServerInfo,
|
|
9
9
|
Service3 as Service,
|
|
10
10
|
connectionURLs2 as connectionURLs,
|
|
11
|
-
|
|
11
|
+
layer4 as layer
|
|
12
12
|
};
|
package/dist/service-status.js
CHANGED
package/dist/workerd.js
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
import"./chunks/
|
|
2
|
-
import"./chunks/
|
|
3
|
-
import"./chunks/
|
|
4
|
-
import"./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/
|
|
51
|
-
import"./chunks/
|
|
52
|
-
import"./chunks/
|
|
53
|
-
import"./chunks/
|
|
54
|
-
import"./chunks/
|
|
55
|
-
import"./chunks/
|
|
56
|
-
import"./chunks/
|
|
57
|
-
import"./chunks/
|
|
58
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/event-feed-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/event-feed-myqk22k5.js";
|
|
3
|
+
import"./chunks/event-feed-yc7nft6q.js";
|
|
4
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
5
|
+
import"./chunks/event-feed-tdwf54y9.js";
|
|
6
|
+
import"./chunks/event-feed-kstarh2s.js";
|
|
7
|
+
import"./chunks/event-feed-ytyf0yt4.js";
|
|
8
|
+
import"./chunks/event-feed-a9m1qywq.js";
|
|
9
|
+
import"./chunks/event-feed-j4at0y5c.js";
|
|
10
|
+
import"./chunks/event-feed-6ptjjp36.js";
|
|
11
|
+
import"./chunks/event-feed-8ptkdkh0.js";
|
|
12
|
+
import"./chunks/event-feed-xthc02cw.js";
|
|
13
|
+
import"./chunks/event-feed-3cp4agan.js";
|
|
14
|
+
import"./chunks/event-feed-mnk4yp0a.js";
|
|
15
|
+
import"./chunks/event-feed-9d8cvn0j.js";
|
|
16
|
+
import"./chunks/event-feed-knscys1g.js";
|
|
17
|
+
import"./chunks/event-feed-cha5bc7v.js";
|
|
18
|
+
import"./chunks/event-feed-t32e1bbt.js";
|
|
19
|
+
import"./chunks/event-feed-8sb6qqpn.js";
|
|
20
|
+
import"./chunks/event-feed-p7f8d9ed.js";
|
|
21
|
+
import"./chunks/event-feed-55yh37zc.js";
|
|
22
|
+
import"./chunks/event-feed-8q8t4r9z.js";
|
|
23
|
+
import"./chunks/event-feed-735y9bwf.js";
|
|
24
|
+
import"./chunks/event-feed-mbf5t0tq.js";
|
|
25
|
+
import"./chunks/event-feed-arzv3fj6.js";
|
|
26
|
+
import"./chunks/event-feed-d6gdrha6.js";
|
|
27
|
+
import"./chunks/event-feed-5b1w9hwr.js";
|
|
28
|
+
import"./chunks/event-feed-ye16b3jy.js";
|
|
29
|
+
import"./chunks/event-feed-b1prsepx.js";
|
|
30
|
+
import"./chunks/event-feed-mzs0n5xz.js";
|
|
31
|
+
import"./chunks/event-feed-tphz28p0.js";
|
|
32
|
+
import"./chunks/event-feed-jdn2h5zy.js";
|
|
33
|
+
import"./chunks/event-feed-q187pxxd.js";
|
|
34
|
+
import"./chunks/event-feed-y50v5y23.js";
|
|
35
|
+
import"./chunks/event-feed-aw6r5m46.js";
|
|
36
|
+
import"./chunks/event-feed-g23ffrnz.js";
|
|
37
|
+
import"./chunks/event-feed-9cd3a4b8.js";
|
|
38
|
+
import"./chunks/event-feed-7ydfwv45.js";
|
|
39
|
+
import"./chunks/event-feed-syfzpkey.js";
|
|
40
|
+
import"./chunks/event-feed-djr0jy89.js";
|
|
41
|
+
import"./chunks/event-feed-tb37vts4.js";
|
|
42
|
+
import"./chunks/event-feed-e4amrgg0.js";
|
|
43
|
+
import"./chunks/event-feed-vjj7wrqn.js";
|
|
44
|
+
import"./chunks/event-feed-1pw2nrsx.js";
|
|
45
|
+
import"./chunks/event-feed-4vbpeb73.js";
|
|
46
|
+
import"./chunks/event-feed-p4hr7w7j.js";
|
|
47
|
+
import"./chunks/event-feed-6f7nn4kk.js";
|
|
48
|
+
import"./chunks/event-feed-rxp97434.js";
|
|
49
|
+
import"./chunks/event-feed-a5hb5213.js";
|
|
50
|
+
import"./chunks/event-feed-dx59hhqy.js";
|
|
51
|
+
import"./chunks/event-feed-harnzwyx.js";
|
|
52
|
+
import"./chunks/event-feed-0d9m1wm4.js";
|
|
53
|
+
import"./chunks/event-feed-2d18d1yn.js";
|
|
54
|
+
import"./chunks/event-feed-0bzgr4rt.js";
|
|
55
|
+
import"./chunks/event-feed-6jmqkv3t.js";
|
|
56
|
+
import"./chunks/event-feed-rktygpea.js";
|
|
57
|
+
import"./chunks/event-feed-bd8755ek.js";
|
|
58
|
+
import"./chunks/event-feed-n26yr6pw.js";
|
|
59
|
+
import"./chunks/event-feed-5z0ssrt9.js";
|
|
59
60
|
import {
|
|
60
61
|
make3
|
|
61
|
-
} from "./chunks/
|
|
62
|
+
} from "./chunks/event-feed-vxnq9y72.js";
|
|
62
63
|
import {
|
|
63
64
|
__export
|
|
64
|
-
} from "./chunks/
|
|
65
|
+
} from "./chunks/event-feed-9rqn6x4v.js";
|
|
65
66
|
|
|
66
67
|
// src/workerd.ts
|
|
67
68
|
var exports_workerd = {};
|
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-1326",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@effect/platform-node": "4.1.0",
|
|
34
34
|
"@effect/platform-node-shared": "4.1.0",
|
|
35
|
-
"@opencode/core": "0.0.0-dev-
|
|
36
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
37
|
-
"@opencode/schema": "0.0.0-dev-
|
|
38
|
-
"@opencode/simulation": "0.0.0-dev-
|
|
39
|
-
"@opencode/util": "0.0.0-dev-
|
|
35
|
+
"@opencode/core": "0.0.0-dev-1326",
|
|
36
|
+
"@opencode/protocol": "0.0.0-dev-1326",
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-1326",
|
|
38
|
+
"@opencode/simulation": "0.0.0-dev-1326",
|
|
39
|
+
"@opencode/util": "0.0.0-dev-1326",
|
|
40
40
|
"effect": "4.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@opencode/pty": "0.6.0",
|
|
44
|
-
"@opencode/client": "0.0.0-dev-
|
|
45
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
44
|
+
"@opencode/client": "0.0.0-dev-1326",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-1326",
|
|
46
46
|
"@tsconfig/bun": "1.0.9",
|
|
47
47
|
"@types/bun": "1.4.3",
|
|
48
48
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|