@opencode/server 0.0.0-dev-1367 → 0.0.0-dev-1368
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/{media-uri-t6q8af35.js → workerd-0vqsbvsa.js} +4 -4
- package/dist/chunks/{media-uri-mf0jv62d.js → workerd-0wjm8gvs.js} +2 -2
- package/dist/chunks/{media-uri-23bsg0bb.js → workerd-10sj2tcf.js} +1 -1
- package/dist/chunks/{media-uri-4abt2dvn.js → workerd-1g4xykqx.js} +4 -4
- package/dist/chunks/{media-uri-d77v3xnm.js → workerd-1pbjpk0f.js} +2 -2
- package/dist/chunks/{media-uri-3sdebxp3.js → workerd-23n65c7j.js} +3 -3
- package/dist/chunks/{media-uri-29nx48hm.js → workerd-29nx48hm.js} +1 -1
- package/dist/chunks/{media-uri-dxh72p2c.js → workerd-2tmcamrc.js} +2 -2
- package/dist/chunks/{media-uri-0q7s66m2.js → workerd-39nnfjx1.js} +4 -4
- package/dist/chunks/{media-uri-7qa33b41.js → workerd-3xkwxcke.js} +2 -2
- package/dist/chunks/{media-uri-g23ffrnz.js → workerd-50kbksvb.js} +2 -2
- package/dist/chunks/{media-uri-megkv1kf.js → workerd-5pdfedjd.js} +7 -7
- package/dist/chunks/{media-uri-6pm6ek88.js → workerd-6pm6ek88.js} +1 -1
- package/dist/chunks/{media-uri-t6ryhghb.js → workerd-784gqmc7.js} +2 -2
- package/dist/chunks/{media-uri-j4hk2st6.js → workerd-7dkb5ks8.js} +2 -2
- package/dist/chunks/{media-uri-npqc081y.js → workerd-8nezxn08.js} +1 -1
- package/dist/chunks/{media-uri-gk96xf2h.js → workerd-8qsq6tbs.js} +2 -2
- package/dist/chunks/{media-uri-8sb6qqpn.js → workerd-8sb6qqpn.js} +1 -1
- package/dist/chunks/{media-uri-sar77n3p.js → workerd-8xdajgpr.js} +2 -2
- package/dist/chunks/{media-uri-0xhepbgy.js → workerd-9hynp6rm.js} +2 -2
- package/dist/chunks/{media-uri-0nzx8p8z.js → workerd-9tw35sfc.js} +12 -12
- package/dist/chunks/{media-uri-0wwbgx8t.js → workerd-a6b7h8n6.js} +17 -17
- package/dist/chunks/{media-uri-4a2eztcc.js → workerd-am27j67f.js} +1 -1
- package/dist/chunks/{media-uri-stx1bw5w.js → workerd-br4x4prt.js} +3 -3
- package/dist/chunks/{media-uri-jy2ammbg.js → workerd-ca564221.js} +1 -1
- package/dist/chunks/{media-uri-djr0jy89.js → workerd-djr0jy89.js} +1 -1
- package/dist/chunks/{media-uri-tg713d3t.js → workerd-dsxhsz16.js} +8 -8
- package/dist/chunks/{media-uri-sh3ejx5x.js → workerd-e3jd9akj.js} +1 -1
- package/dist/chunks/{media-uri-aexh791j.js → workerd-ehyp3zqd.js} +1 -1
- package/dist/chunks/{media-uri-nfv0r61b.js → workerd-em7ed65n.js} +2 -2
- package/dist/chunks/{media-uri-07adkgh3.js → workerd-epfdwcja.js} +4 -4
- package/dist/chunks/{media-uri-r3c5pb1c.js → workerd-exwy1kbj.js} +2 -2
- package/dist/chunks/{media-uri-ezydv7x1.js → workerd-f3gr6hfv.js} +2 -2
- package/dist/chunks/{media-uri-katdrqa2.js → workerd-hfbw093d.js} +35 -35
- package/dist/chunks/{media-uri-j4at0y5c.js → workerd-j4at0y5c.js} +1 -1
- package/dist/chunks/{media-uri-sqfq92mf.js → workerd-javgytnb.js} +2 -2
- package/dist/chunks/{media-uri-4dcft65w.js → workerd-k74zefsg.js} +1 -1
- package/dist/chunks/{media-uri-44zzbkrb.js → workerd-ka2mtp6f.js} +2 -2
- package/dist/chunks/{media-uri-hj8z77wc.js → workerd-kmwr1xw9.js} +3 -3
- package/dist/chunks/{media-uri-mj1ewmp1.js → workerd-mj1ewmp1.js} +1 -1
- package/dist/chunks/{media-uri-hmwn16zp.js → workerd-myqk22k5.js} +2 -2
- package/dist/chunks/{media-uri-kxxxzk43.js → workerd-n2zyxnzr.js} +1 -1
- package/dist/chunks/{media-uri-kpw06y11.js → workerd-prwd5gwt.js} +2 -2
- package/dist/chunks/{media-uri-g1wjh7qe.js → workerd-qq3f8fnn.js} +2 -2
- package/dist/chunks/{media-uri-njmm6d43.js → workerd-r8tdr8qd.js} +8 -8
- package/dist/chunks/{media-uri-20m6qdhp.js → workerd-rgbnpstw.js} +2 -2
- package/dist/chunks/{media-uri-44ywgpsx.js → workerd-rjhxbsc4.js} +2 -2
- package/dist/chunks/{media-uri-ej8k6nk6.js → workerd-rm5kndzh.js} +4 -4
- package/dist/chunks/{media-uri-1qgvww4g.js → workerd-s0zgx365.js} +2 -2
- package/dist/chunks/{media-uri-t32e1bbt.js → workerd-t32e1bbt.js} +1 -1
- package/dist/chunks/{media-uri-vb61dkrm.js → workerd-v9t81kwn.js} +7 -7
- package/dist/chunks/{media-uri-p8x80wn6.js → workerd-whvq72as.js} +3 -3
- package/dist/chunks/{media-uri-9bpmwzvq.js → workerd-wsvmph03.js} +2 -2
- package/dist/chunks/{media-uri-x2qy7jg1.js → workerd-x2qy7jg1.js} +1 -1
- package/dist/chunks/{media-uri-xw05m515.js → workerd-xw05m515.js} +1 -1
- package/dist/chunks/{media-uri-61xgwjgp.js → workerd-yc92za0p.js} +2 -2
- package/dist/chunks/{media-uri-gb9bc2v4.js → workerd-z5c20bjd.js} +5 -5
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +67 -67
- 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/experimental/browser-tunnel.js +4 -4
- package/dist/handlers/flag.js +6 -6
- 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.js +1 -1
- 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.js +20 -20
- 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/push.js +1 -1
- 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/space.js +2 -2
- 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.js +58 -58
- 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 +68 -68
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +62 -62
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/space-store.js +1 -1
- package/dist/workerd.js +66 -66
- package/package.json +8 -8
- /package/dist/chunks/{media-uri-017ycvbx.js → workerd-017ycvbx.js} +0 -0
- /package/dist/chunks/{media-uri-9rqn6x4v.js → workerd-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{media-uri-bd8755ek.js → workerd-bd8755ek.js} +0 -0
- /package/dist/chunks/{media-uri-n26yr6pw.js → workerd-n26yr6pw.js} +0 -0
- /package/dist/chunks/{media-uri-q187pxxd.js → workerd-q187pxxd.js} +0 -0
- /package/dist/chunks/{media-uri-q4bn6dy8.js → workerd-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{media-uri-qpnw2qd1.js → workerd-qpnw2qd1.js} +0 -0
- /package/dist/chunks/{media-uri-rqgv9x42.js → workerd-rqgv9x42.js} +0 -0
- /package/dist/chunks/{media-uri-xthc02cw.js → workerd-xthc02cw.js} +0 -0
- /package/dist/chunks/{media-uri-yc7nft6q.js → workerd-yc7nft6q.js} +0 -0
|
@@ -1,108 +1,108 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-prwd5gwt.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-rjhxbsc4.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-23n65c7j.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-s0zgx365.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workerd-yc92za0p.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workerd-epfdwcja.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workerd-kmwr1xw9.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workerd-1g4xykqx.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./workerd-8qsq6tbs.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./workerd-rgbnpstw.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./workerd-3xkwxcke.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./workerd-k74zefsg.js";
|
|
37
37
|
import {
|
|
38
38
|
layer3
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./workerd-z5c20bjd.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./workerd-1pbjpk0f.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./workerd-exwy1kbj.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./workerd-em7ed65n.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./workerd-dsxhsz16.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./workerd-784gqmc7.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./workerd-0vqsbvsa.js";
|
|
58
58
|
import {
|
|
59
59
|
extension2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./workerd-mj1ewmp1.js";
|
|
61
61
|
import {
|
|
62
62
|
PersistentPtyHandler2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./workerd-9tw35sfc.js";
|
|
64
64
|
import {
|
|
65
65
|
ShellHandler2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./workerd-f3gr6hfv.js";
|
|
67
67
|
import {
|
|
68
68
|
ReferenceHandler2
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./workerd-7dkb5ks8.js";
|
|
70
70
|
import {
|
|
71
71
|
LocationHandler2
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./workerd-e3jd9akj.js";
|
|
73
73
|
import {
|
|
74
74
|
IntegrationHandler2
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./workerd-2tmcamrc.js";
|
|
76
76
|
import {
|
|
77
77
|
WebSearchHandler2
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./workerd-qq3f8fnn.js";
|
|
79
79
|
import {
|
|
80
80
|
UsageHandler2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./workerd-wsvmph03.js";
|
|
82
82
|
import {
|
|
83
83
|
FlagHandler2
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./workerd-9hynp6rm.js";
|
|
85
85
|
import {
|
|
86
86
|
McpHandler2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./workerd-rm5kndzh.js";
|
|
88
88
|
import {
|
|
89
89
|
CredentialHandler2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./workerd-8xdajgpr.js";
|
|
91
91
|
import {
|
|
92
92
|
ProjectHandler2
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./workerd-8nezxn08.js";
|
|
94
94
|
import {
|
|
95
95
|
WorktreeHandler2
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./workerd-n2zyxnzr.js";
|
|
97
97
|
import {
|
|
98
98
|
VcsHandler2
|
|
99
|
-
} from "./
|
|
99
|
+
} from "./workerd-0wjm8gvs.js";
|
|
100
100
|
import {
|
|
101
101
|
MigrationHandler2
|
|
102
|
-
} from "./
|
|
102
|
+
} from "./workerd-10sj2tcf.js";
|
|
103
103
|
import {
|
|
104
104
|
ConfigHandler2
|
|
105
|
-
} from "./
|
|
105
|
+
} from "./workerd-am27j67f.js";
|
|
106
106
|
|
|
107
107
|
// src/handlers.ts
|
|
108
108
|
import { Layer } from "effect";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-rqgv9x42.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
requestRef2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-br4x4prt.js";
|
|
9
9
|
|
|
10
10
|
// src/handlers/artifact.ts
|
|
11
11
|
import { Artifact } from "@opencode/core/artifact";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CorsConfig2,
|
|
3
3
|
isAllowedRequestOrigin2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workerd-q4bn6dy8.js";
|
|
5
5
|
import {
|
|
6
6
|
locationErrors2,
|
|
7
7
|
requestRef2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-br4x4prt.js";
|
|
9
9
|
|
|
10
10
|
// src/handlers/experimental/browser-tunnel.ts
|
|
11
11
|
import { NodeHttpServerRequest } from "@effect/platform-node";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-rqgv9x42.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-br4x4prt.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workerd-whvq72as.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/generate.ts
|
|
9
9
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/websearch.ts
|
|
9
9
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAllowedCorsOrigin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
middleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-myqk22k5.js";
|
|
7
7
|
import {
|
|
8
8
|
withoutParentSpan2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-yc7nft6q.js";
|
|
10
10
|
import {
|
|
11
11
|
createRoutes2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-a6b7h8n6.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workerd-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/fetch.ts
|
|
18
18
|
var exports_fetch = {};
|
|
19
19
|
__export(exports_fetch, {
|
|
20
20
|
ServerFetch: () => exports_fetch,
|
|
21
21
|
build: () => build2,
|
|
22
|
-
make: () =>
|
|
22
|
+
make: () => make3,
|
|
23
23
|
makeWithContext: () => makeWithContext2,
|
|
24
24
|
serve: () => serve2
|
|
25
25
|
});
|
|
@@ -36,8 +36,8 @@ var serve2 = Effect.fnUntraced(function* (context, middleware = (app) => app) {
|
|
|
36
36
|
yield* Context.get(context, SessionRestart.Service).resumeSuspendedSessions.pipe(Effect.provideContext(context), withoutParentSpan2, Effect.forkScoped);
|
|
37
37
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(middleware, HttpEffect.toWebHandlerWith(context));
|
|
38
38
|
});
|
|
39
|
-
var
|
|
39
|
+
var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
40
40
|
return (yield* makeWithContext2(options, boot)).handler;
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export { makeWithContext2, build2, serve2,
|
|
43
|
+
export { makeWithContext2, build2, serve2, make3, exports_fetch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/command.ts
|
|
9
9
|
import { Command } from "@opencode/core/command";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/voice.ts
|
|
9
9
|
import { Location } from "@opencode/core/location";
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./workerd-br4x4prt.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workerd-whvq72as.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workerd-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./workerd-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/mcp.ts
|
|
19
19
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/pairing.ts
|
|
6
6
|
var exports_pairing = {};
|
|
7
7
|
__export(exports_pairing, {
|
|
8
8
|
ServerPairing: () => exports_pairing,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service5,
|
|
10
10
|
node: () => node3
|
|
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 Service5 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(Service5, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service5.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(Service3, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var node3 = makeGlobalNode({ service:
|
|
33
|
+
var node3 = makeGlobalNode({ service: Service5, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service5, node3, exports_pairing };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-ca564221.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workerd-ehyp3zqd.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/usage.ts
|
|
9
9
|
import { UsageLimits } from "@opencode/core/usage-limits";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workerd-whvq72as.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workerd-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/event-feed.ts
|
|
6
6
|
var exports_event_feed = {};
|
|
@@ -12,7 +12,7 @@ __export(exports_event_feed, {
|
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
14
|
layer: () => layer3,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make4
|
|
16
16
|
});
|
|
17
17
|
import { Bus } from "@opencode/core/bus";
|
|
18
18
|
import { Event } from "@opencode/schema/event";
|
|
@@ -37,7 +37,7 @@ function frame2(event) {
|
|
|
37
37
|
|
|
38
38
|
`;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
41
41
|
const capacity = options?.capacity ?? SubscriberCapacity2;
|
|
42
42
|
const render = options?.encode ?? frame2;
|
|
43
43
|
const subscribers = new Map;
|
|
@@ -95,7 +95,7 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
95
95
|
});
|
|
96
96
|
var layer3 = (...extensions) => Layer.effect(Service4, Effect.gen(function* () {
|
|
97
97
|
const bus = yield* Bus.Service;
|
|
98
|
-
return yield*
|
|
98
|
+
return yield* make4(bus.listen, { extensions: yield* Effect.all(extensions) });
|
|
99
99
|
}));
|
|
100
100
|
|
|
101
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2,
|
|
101
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
|
package/dist/content-headers.js
CHANGED
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
EncodingError2,
|
|
5
5
|
Service4,
|
|
6
6
|
frame2,
|
|
7
|
-
|
|
7
|
+
make4,
|
|
8
8
|
layer3,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/workerd-z5c20bjd.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
@@ -16,5 +16,5 @@ export {
|
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
18
|
layer3 as layer,
|
|
19
|
-
|
|
19
|
+
make4 as make
|
|
20
20
|
};
|