@opencode/server 0.0.0-dev-21400 → 0.0.0-dev-21406
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.d.ts +491 -491
- package/dist/api.js +4 -4
- package/dist/chunks/{workerd-n60r5keb.js → workerd-08x9tjee.js} +1 -1
- package/dist/chunks/{workerd-k8rzy6d4.js → workerd-0d864bga.js} +1 -1
- package/dist/chunks/{workerd-9mfgjndz.js → workerd-33prfkkd.js} +2 -2
- package/dist/chunks/{workerd-gsqctp76.js → workerd-43r48nqn.js} +2 -2
- package/dist/chunks/{workerd-w0jn068c.js → workerd-4d1eemzq.js} +2 -2
- package/dist/chunks/{workerd-6ypp9np2.js → workerd-4dv9a668.js} +2 -2
- package/dist/chunks/{workerd-4gnb9897.js → workerd-4hhhes7w.js} +1 -1
- package/dist/chunks/{workerd-5gpz4xk2.js → workerd-4jm073jw.js} +31 -31
- package/dist/chunks/{workerd-81hr024p.js → workerd-4nbhqhnb.js} +11 -11
- package/dist/chunks/{workerd-xsrtpxyd.js → workerd-5w24ch67.js} +3 -3
- package/dist/chunks/{workerd-ez8kk7rt.js → workerd-5zsr2h86.js} +1 -1
- package/dist/chunks/{workerd-jqrn6kzd.js → workerd-686p2xfa.js} +2 -2
- package/dist/chunks/{workerd-tp1rntzw.js → workerd-7vd5668a.js} +1 -1
- package/dist/chunks/{workerd-w6m4c3ew.js → workerd-7xrpjd7z.js} +4 -4
- package/dist/chunks/{workerd-0cppk2bc.js → workerd-8137b89p.js} +2 -2
- package/dist/chunks/{workerd-g0rzwe5g.js → workerd-93wjydnn.js} +6 -6
- package/dist/chunks/{workerd-gx9nwmym.js → workerd-97eb2r3v.js} +2 -2
- package/dist/chunks/{workerd-q8n44kky.js → workerd-9snwnvf8.js} +3 -3
- package/dist/chunks/{workerd-7j4237sy.js → workerd-aey6dvfz.js} +1 -1
- package/dist/chunks/{workerd-50bbk3b2.js → workerd-b56hqv74.js} +2 -2
- package/dist/chunks/{workerd-krpsczf8.js → workerd-bx47k33v.js} +2 -2
- package/dist/chunks/{workerd-vdtx70fv.js → workerd-cv0ajwc9.js} +2 -2
- package/dist/chunks/{workerd-ceenvzwe.js → workerd-e6x69dv2.js} +7 -7
- package/dist/chunks/{workerd-yv9sxhn9.js → workerd-ewe1fzkk.js} +2 -2
- package/dist/chunks/{workerd-mhfbkkb7.js → workerd-ftaz8n62.js} +2 -2
- package/dist/chunks/{workerd-3aej5azy.js → workerd-h8ws5ssa.js} +1 -1
- package/dist/chunks/{workerd-wm8t00a5.js → workerd-hdxm18kv.js} +1 -1
- package/dist/chunks/{workerd-b3bmdkga.js → workerd-j4zqsxgy.js} +1 -1
- package/dist/chunks/{workerd-mahm5rvs.js → workerd-ptey1p5v.js} +2 -2
- package/dist/chunks/{workerd-rc3nk1bx.js → workerd-qbh90c1d.js} +2 -2
- package/dist/chunks/{workerd-vbanrv0z.js → workerd-rf01ee6q.js} +1 -1
- package/dist/chunks/{workerd-mk2mz66m.js → workerd-rntbwr87.js} +2 -2
- package/dist/chunks/{workerd-byt4hbw9.js → workerd-sstsrjtg.js} +6 -6
- package/dist/chunks/{workerd-j1p3e665.js → workerd-ssyxw8nc.js} +2 -2
- package/dist/chunks/{workerd-3atcw39t.js → workerd-vb5yx5r0.js} +1 -1
- package/dist/chunks/{workerd-esbdfpyn.js → workerd-vbzm2jgm.js} +2 -2
- package/dist/chunks/{workerd-dr1f0hkr.js → workerd-wk806w00.js} +2 -2
- package/dist/chunks/{workerd-362ehr12.js → workerd-y2y8dnb4.js} +2 -2
- package/dist/chunks/{workerd-eaxk76q8.js → workerd-yehasrps.js} +2 -2
- package/dist/chunks/{workerd-7b00qdf6.js → workerd-z6sxg6td.js} +1 -1
- package/dist/chunks/{workerd-p6ct2ak8.js → workerd-zessacar.js} +2 -2
- package/dist/fetch.js +43 -43
- package/dist/handlers/agent.js +5 -5
- package/dist/handlers/command.js +5 -5
- package/dist/handlers/config.js +5 -5
- package/dist/handlers/credential.js +5 -5
- package/dist/handlers/debug.js +5 -5
- package/dist/handlers/event.js +5 -5
- package/dist/handlers/form.js +5 -5
- package/dist/handlers/fs.js +5 -5
- package/dist/handlers/generate.js +5 -5
- package/dist/handlers/integration.js +5 -5
- package/dist/handlers/location.js +5 -5
- package/dist/handlers/mcp.js +5 -5
- package/dist/handlers/message.js +5 -5
- package/dist/handlers/migration.js +5 -5
- package/dist/handlers/model.js +5 -5
- package/dist/handlers/permission.js +5 -5
- package/dist/handlers/persistent-pty.js +5 -5
- package/dist/handlers/plugin.js +5 -5
- package/dist/handlers/project.js +5 -5
- package/dist/handlers/provider.js +5 -5
- package/dist/handlers/pty.js +5 -5
- package/dist/handlers/reference.js +5 -5
- package/dist/handlers/rpc.js +5 -5
- package/dist/handlers/server.js +7 -7
- package/dist/handlers/session.js +5 -5
- package/dist/handlers/shell.js +5 -5
- package/dist/handlers/skill.js +5 -5
- package/dist/handlers/vcs.js +5 -5
- package/dist/handlers/voice.js +5 -5
- package/dist/handlers/websearch.js +5 -5
- package/dist/handlers/worktree.js +5 -5
- package/dist/handlers.js +39 -39
- package/dist/location.js +3 -3
- package/dist/middleware/form-location.js +2 -2
- package/dist/middleware/session-location.js +2 -2
- package/dist/pairing.js +3 -3
- package/dist/process.js +42 -42
- package/dist/routes.js +40 -40
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +42 -42
- package/package.json +8 -8
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/workerd-
|
|
4
|
-
import"./chunks/workerd-
|
|
5
|
-
import"./chunks/workerd-
|
|
6
|
-
import"./chunks/workerd-
|
|
3
|
+
} from "./chunks/workerd-9snwnvf8.js";
|
|
4
|
+
import"./chunks/workerd-j4zqsxgy.js";
|
|
5
|
+
import"./chunks/workerd-4hhhes7w.js";
|
|
6
|
+
import"./chunks/workerd-b56hqv74.js";
|
|
7
7
|
import"./chunks/workerd-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./workerd-
|
|
8
|
+
} from "./workerd-b56hqv74.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./workerd-
|
|
11
|
+
} from "./workerd-9snwnvf8.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./workerd-
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./workerd-
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./workerd-
|
|
3
|
+
} from "./workerd-4d1eemzq.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./workerd-
|
|
6
|
+
} from "./workerd-686p2xfa.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./workerd-
|
|
9
|
+
} from "./workerd-vb5yx5r0.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./workerd-
|
|
12
|
+
} from "./workerd-ewe1fzkk.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./workerd-
|
|
15
|
+
} from "./workerd-97eb2r3v.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./workerd-
|
|
18
|
+
} from "./workerd-wk806w00.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./workerd-
|
|
21
|
+
} from "./workerd-33prfkkd.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./workerd-
|
|
24
|
+
} from "./workerd-ssyxw8nc.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./workerd-
|
|
27
|
+
} from "./workerd-43r48nqn.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./workerd-
|
|
30
|
+
} from "./workerd-ptey1p5v.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./workerd-
|
|
33
|
+
} from "./workerd-bx47k33v.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./workerd-
|
|
36
|
+
} from "./workerd-z6sxg6td.js";
|
|
37
37
|
import {
|
|
38
38
|
layer3
|
|
39
39
|
} from "./workerd-rjpqaa8h.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./workerd-
|
|
42
|
+
} from "./workerd-hdxm18kv.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./workerd-
|
|
45
|
+
} from "./workerd-rntbwr87.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./workerd-
|
|
48
|
+
} from "./workerd-8137b89p.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./workerd-
|
|
51
|
+
} from "./workerd-e6x69dv2.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./workerd-
|
|
54
|
+
} from "./workerd-vbzm2jgm.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./workerd-
|
|
57
|
+
} from "./workerd-y2y8dnb4.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./workerd-
|
|
60
|
+
} from "./workerd-aey6dvfz.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./workerd-
|
|
63
|
+
} from "./workerd-4dv9a668.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./workerd-
|
|
66
|
+
} from "./workerd-yehasrps.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./workerd-
|
|
69
|
+
} from "./workerd-h8ws5ssa.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./workerd-
|
|
72
|
+
} from "./workerd-ftaz8n62.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./workerd-
|
|
75
|
+
} from "./workerd-cv0ajwc9.js";
|
|
76
76
|
import {
|
|
77
77
|
McpHandler2
|
|
78
|
-
} from "./workerd-
|
|
78
|
+
} from "./workerd-zessacar.js";
|
|
79
79
|
import {
|
|
80
80
|
CredentialHandler2
|
|
81
|
-
} from "./workerd-
|
|
81
|
+
} from "./workerd-08x9tjee.js";
|
|
82
82
|
import {
|
|
83
83
|
ProjectHandler2
|
|
84
|
-
} from "./workerd-
|
|
84
|
+
} from "./workerd-0d864bga.js";
|
|
85
85
|
import {
|
|
86
86
|
WorktreeHandler2
|
|
87
|
-
} from "./workerd-
|
|
87
|
+
} from "./workerd-7vd5668a.js";
|
|
88
88
|
import {
|
|
89
89
|
VcsHandler2
|
|
90
|
-
} from "./workerd-
|
|
90
|
+
} from "./workerd-qbh90c1d.js";
|
|
91
91
|
import {
|
|
92
92
|
MigrationHandler2
|
|
93
|
-
} from "./workerd-
|
|
93
|
+
} from "./workerd-rf01ee6q.js";
|
|
94
94
|
import {
|
|
95
95
|
ConfigHandler2
|
|
96
|
-
} from "./workerd-
|
|
96
|
+
} from "./workerd-5zsr2h86.js";
|
|
97
97
|
|
|
98
98
|
// src/handlers.ts
|
|
99
99
|
import { Layer } from "effect";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./workerd-
|
|
2
|
+
layer5
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./workerd-
|
|
6
|
+
} from "./workerd-4hhhes7w.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./workerd-
|
|
9
|
+
} from "./workerd-j4zqsxgy.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./workerd-
|
|
12
|
+
} from "./workerd-9snwnvf8.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
15
|
} from "./workerd-anm12x33.js";
|
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
CorsConfig2
|
|
18
18
|
} from "./workerd-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./workerd-
|
|
20
|
+
layer4
|
|
21
|
+
} from "./workerd-93wjydnn.js";
|
|
22
22
|
import {
|
|
23
23
|
node3
|
|
24
|
-
} from "./workerd-
|
|
24
|
+
} from "./workerd-sstsrjtg.js";
|
|
25
25
|
import {
|
|
26
26
|
node2
|
|
27
27
|
} from "./workerd-bkk2wfbz.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./workerd-
|
|
30
|
+
} from "./workerd-4jm073jw.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
33
|
} from "./workerd-yfz2nrjq.js";
|
|
@@ -146,8 +146,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
146
146
|
})) : build(overrides);
|
|
147
147
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
148
148
|
const services = Layer.succeedContext(context);
|
|
149
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
150
|
-
const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(
|
|
149
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
150
|
+
const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer5), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
151
151
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
152
152
|
}));
|
|
153
153
|
}
|
|
@@ -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
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./workerd-
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./workerd-
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/voice.ts
|
|
10
10
|
import { Location } from "@opencode/core/location";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./workerd-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./workerd-
|
|
6
|
+
} from "./workerd-4nbhqhnb.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./workerd-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: () => make2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
19
19
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
20
|
-
var
|
|
20
|
+
var make2 = 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 { make2, exports_fetch };
|
|
@@ -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: () => Service4,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer4
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service4 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return Layer.succeed(
|
|
18
|
+
function layer4(urls, tmp, app = {}) {
|
|
19
|
+
return Layer.succeed(Service4, Service4.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
22
22
|
const url = new URL(value);
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Service4, layer4, connectionURLs2, exports_server_info };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./workerd-
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./workerd-
|
|
6
|
+
} from "./workerd-9snwnvf8.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./workerd-
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./workerd-
|
|
6
|
+
} from "./workerd-4hhhes7w.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./workerd-
|
|
9
|
+
} from "./workerd-j4zqsxgy.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -59,7 +59,7 @@ function decode(input) {
|
|
|
59
59
|
return input;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var layer5 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
63
63
|
const locations = yield* LocationServiceMap.Service;
|
|
64
64
|
return LocationMiddleware2.of((effect) => Effect.gen(function* () {
|
|
65
65
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
@@ -67,4 +67,4 @@ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
|
|
|
67
67
|
}));
|
|
68
68
|
}));
|
|
69
69
|
|
|
70
|
-
export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2,
|
|
70
|
+
export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer5 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./workerd-
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./workerd-
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./workerd-
|
|
3
|
+
} from "./workerd-9snwnvf8.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
9
|
} from "./workerd-anm12x33.js";
|
|
10
|
-
import {
|
|
11
|
-
Service5
|
|
12
|
-
} from "./workerd-g0rzwe5g.js";
|
|
13
10
|
import {
|
|
14
11
|
Service4
|
|
15
|
-
} from "./workerd-
|
|
12
|
+
} from "./workerd-93wjydnn.js";
|
|
13
|
+
import {
|
|
14
|
+
Service5
|
|
15
|
+
} from "./workerd-sstsrjtg.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { Duration, Effect } from "effect";
|
|
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
|
|
|
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* Service5;
|
|
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,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./workerd-
|
|
4
|
+
} from "./workerd-b56hqv74.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./workerd-
|
|
7
|
+
} from "./workerd-9snwnvf8.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./workerd-
|
|
3
|
+
} from "./workerd-b56hqv74.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./workerd-
|
|
6
|
+
} from "./workerd-9snwnvf8.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|