@opencode/server 0.0.0-dev-1357 → 0.0.0-dev-1358
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/{pairing-ba6cev85.js → request-tracing-1nsytpdt.js} +4 -4
- package/dist/chunks/{pairing-darcrm5x.js → request-tracing-294h7qkd.js} +6 -6
- package/dist/chunks/{pairing-rktygpea.js → request-tracing-29nx48hm.js} +4 -1
- package/dist/chunks/{pairing-8xdajgpr.js → request-tracing-3w2mqh28.js} +2 -2
- package/dist/chunks/{pairing-kmwr1xw9.js → request-tracing-5ky8bme5.js} +3 -3
- package/dist/chunks/{pairing-8nezxn08.js → request-tracing-6anyjjh1.js} +1 -1
- package/dist/chunks/request-tracing-6hw64pe6.js +108 -0
- package/dist/chunks/{pairing-6pm6ek88.js → request-tracing-6pm6ek88.js} +1 -1
- package/dist/chunks/{pairing-2tmcamrc.js → request-tracing-7r996r31.js} +2 -2
- package/dist/chunks/{pairing-g4964mny.js → request-tracing-8gbtt6ty.js} +3 -3
- package/dist/chunks/{pairing-8sb6qqpn.js → request-tracing-8sb6qqpn.js} +1 -1
- package/dist/chunks/{pairing-rgbnpstw.js → request-tracing-8y9zssdg.js} +2 -2
- package/dist/chunks/{pairing-k74zefsg.js → request-tracing-ar950k47.js} +1 -1
- package/dist/chunks/{pairing-br4x4prt.js → request-tracing-br4x4prt.js} +1 -1
- package/dist/chunks/{pairing-ca564221.js → request-tracing-ca564221.js} +1 -1
- package/dist/chunks/{pairing-yc92za0p.js → request-tracing-cj97w75w.js} +2 -2
- package/dist/chunks/{pairing-bng99jk3.js → request-tracing-daegfhsz.js} +15 -11
- package/dist/chunks/{pairing-wsvmph03.js → request-tracing-ddhjwr2w.js} +2 -2
- package/dist/chunks/{pairing-f3gr6hfv.js → request-tracing-df03ef4a.js} +2 -2
- package/dist/chunks/{pairing-djr0jy89.js → request-tracing-djr0jy89.js} +1 -1
- package/dist/chunks/{pairing-39nnfjx1.js → request-tracing-e6e4kz0w.js} +4 -4
- package/dist/chunks/{pairing-10sj2tcf.js → request-tracing-eacgzt6w.js} +1 -1
- package/dist/chunks/{pairing-ehyp3zqd.js → request-tracing-ehyp3zqd.js} +1 -1
- package/dist/chunks/{pairing-8qsq6tbs.js → request-tracing-esvnag9e.js} +2 -2
- package/dist/chunks/{pairing-exwy1kbj.js → request-tracing-f412ctvv.js} +2 -2
- package/dist/chunks/{pairing-50kbksvb.js → request-tracing-g23ffrnz.js} +2 -2
- package/dist/chunks/{pairing-74nxvsrn.js → request-tracing-g354sg86.js} +2 -2
- package/dist/chunks/{pairing-p3bbq7g3.js → request-tracing-hbrnhmez.js} +1 -1
- package/dist/chunks/{pairing-qq3f8fnn.js → request-tracing-htk4x1jk.js} +2 -2
- package/dist/chunks/{pairing-j4at0y5c.js → request-tracing-j4at0y5c.js} +1 -1
- package/dist/chunks/{pairing-javgytnb.js → request-tracing-javgytnb.js} +2 -2
- package/dist/chunks/{pairing-whvq72as.js → request-tracing-jhs8rzvk.js} +3 -3
- package/dist/chunks/request-tracing-ka2mtp6f.js +189 -0
- package/dist/chunks/{pairing-cwx7pqk1.js → request-tracing-khe9dd99.js} +2 -2
- package/dist/chunks/{pairing-8fhq523v.js → request-tracing-mq10h3bj.js} +4 -4
- package/dist/chunks/{pairing-myqk22k5.js → request-tracing-myqk22k5.js} +2 -2
- package/dist/chunks/{pairing-rjhxbsc4.js → request-tracing-phgds112.js} +2 -2
- package/dist/chunks/{pairing-prwd5gwt.js → request-tracing-r682v2h3.js} +2 -2
- package/dist/chunks/request-tracing-r6qsbz4y.js +20 -0
- package/dist/chunks/{pairing-7dkb5ks8.js → request-tracing-rg932pab.js} +2 -2
- package/dist/chunks/{pairing-fvpjvjpp.js → request-tracing-s802fzg1.js} +7 -7
- package/dist/chunks/{pairing-t32e1bbt.js → request-tracing-t32e1bbt.js} +1 -1
- package/dist/chunks/{pairing-kshqfq8s.js → request-tracing-tttb6mvj.js} +4 -4
- package/dist/chunks/{pairing-mp1tvqh7.js → request-tracing-v5qprkre.js} +4 -4
- package/dist/chunks/{pairing-w9jcwh65.js → request-tracing-w9jcwh65.js} +1 -1
- package/dist/chunks/{pairing-am27j67f.js → request-tracing-wjh98yw2.js} +1 -1
- package/dist/chunks/{pairing-ed0tz0nn.js → request-tracing-wjhv2a2x.js} +16 -14
- package/dist/chunks/{pairing-t5vqvama.js → request-tracing-ww68cgwg.js} +8 -8
- package/dist/chunks/{pairing-qssmdh31.js → request-tracing-x1nd0396.js} +4 -4
- package/dist/chunks/{pairing-x2qy7jg1.js → request-tracing-x2qy7jg1.js} +1 -1
- package/dist/chunks/{pairing-s0zgx365.js → request-tracing-y8sa9sbe.js} +2 -2
- package/dist/chunks/{pairing-n2zyxnzr.js → request-tracing-ykr4m3zx.js} +1 -1
- package/dist/chunks/{pairing-em7ed65n.js → request-tracing-z0v7xmc8.js} +2 -2
- package/dist/chunks/{pairing-yjbzmfhm.js → request-tracing-z3e7v67k.js} +7 -7
- package/dist/chunks/{pairing-csnx1nj3.js → request-tracing-zhgmk0fm.js} +2 -2
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.d.ts +1 -1
- package/dist/fetch.js +65 -63
- 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.d.ts +11 -0
- package/dist/handlers/experimental/browser-tunnel.js +9 -0
- package/dist/handlers/flag.d.ts +1 -0
- package/dist/handlers/flag.js +11 -0
- 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.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +18 -17
- 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/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 +56 -54
- package/dist/location.js +2 -2
- 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 +1 -1
- package/dist/process.js +75 -65
- 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 +60 -58
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +64 -62
- package/package.json +8 -8
- package/dist/chunks/pairing-dms2vwqd.js +0 -105
- /package/dist/chunks/{pairing-017ycvbx.js → request-tracing-017ycvbx.js} +0 -0
- /package/dist/chunks/{pairing-9rqn6x4v.js → request-tracing-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pairing-bd8755ek.js → request-tracing-bd8755ek.js} +0 -0
- /package/dist/chunks/{pairing-n26yr6pw.js → request-tracing-n26yr6pw.js} +0 -0
- /package/dist/chunks/{pairing-q187pxxd.js → request-tracing-q187pxxd.js} +0 -0
- /package/dist/chunks/{pairing-q4bn6dy8.js → request-tracing-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{pairing-qpnw2qd1.js → request-tracing-qpnw2qd1.js} +0 -0
- /package/dist/chunks/{pairing-rqgv9x42.js → request-tracing-rqgv9x42.js} +0 -0
- /package/dist/chunks/{pairing-xthc02cw.js → request-tracing-xthc02cw.js} +0 -0
- /package/dist/chunks/{pairing-yc7nft6q.js → request-tracing-yc7nft6q.js} +0 -0
package/dist/api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
3
|
+
} from "./chunks/request-tracing-jhs8rzvk.js";
|
|
4
|
+
import"./chunks/request-tracing-ca564221.js";
|
|
5
|
+
import"./chunks/request-tracing-ehyp3zqd.js";
|
|
6
|
+
import"./chunks/request-tracing-br4x4prt.js";
|
|
7
|
+
import"./chunks/request-tracing-rqgv9x42.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
10
10
|
};
|
package/dist/auth.js
CHANGED
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./request-tracing-br4x4prt.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./request-tracing-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
runPtySocket2,
|
|
15
15
|
holdLocation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./request-tracing-q187pxxd.js";
|
|
17
17
|
|
|
18
18
|
// src/handlers/mcp.ts
|
|
19
19
|
import { Location } from "@opencode/core/location";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-tracing-j4at0y5c.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service2
|
|
12
|
+
} from "./request-tracing-z3e7v67k.js";
|
|
13
13
|
import {
|
|
14
14
|
Service3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./request-tracing-w9jcwh65.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -25,7 +25,7 @@ var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => E
|
|
|
25
25
|
const pairing = yield* Service3;
|
|
26
26
|
const auth = yield* Config2;
|
|
27
27
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
28
|
-
const info = yield*
|
|
28
|
+
const info = yield* Service2;
|
|
29
29
|
return {
|
|
30
30
|
version: info.app.version ?? "unknown",
|
|
31
31
|
pid: process.pid ?? 0,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
authorized2,
|
|
5
5
|
verifySession2,
|
|
6
6
|
sessionCookieName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-j4at0y5c.js";
|
|
8
8
|
|
|
9
9
|
// src/middleware/authorization.ts
|
|
10
10
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
@@ -13,6 +13,7 @@ import { Authorization as Authorization2 } from "@opencode/protocol/middleware/a
|
|
|
13
13
|
import { PTY_CONNECT_PATH, PTY_CONNECT_TICKET_QUERY } from "@opencode/protocol/groups/pty";
|
|
14
14
|
import { PERSISTENT_PTY_CONNECT_PATH } from "@opencode/protocol/groups/persistent-pty";
|
|
15
15
|
import { MCP_CLIENT_PATH } from "@opencode/protocol/groups/mcp";
|
|
16
|
+
import { BROWSER_TUNNEL_PATH, hasBrowserTunnelUpgrade } from "@opencode/protocol/groups/experimental/browser-tunnel";
|
|
16
17
|
import { isWebSocketUpgrade, MACHINE_LINK_PATH } from "@opencode/protocol/groups/machine";
|
|
17
18
|
import { PAIRING_CONNECT_PATH } from "@opencode/protocol/groups/server";
|
|
18
19
|
import { Effect, Layer, Redacted } from "effect";
|
|
@@ -76,6 +77,8 @@ var authorizationLayer2 = Layer.effect(Authorization, Effect.gen(function* () {
|
|
|
76
77
|
return yield* effect;
|
|
77
78
|
if (route.route.path === MACHINE_LINK_PATH && isWebSocketUpgrade(request))
|
|
78
79
|
return yield* effect;
|
|
80
|
+
if (route.route.path === BROWSER_TUNNEL_PATH && hasBrowserTunnelUpgrade(request))
|
|
81
|
+
return yield* effect;
|
|
79
82
|
if (yield* authorizedRequest2(request, config))
|
|
80
83
|
return yield* effect;
|
|
81
84
|
if (challengeRequest(request))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-7r996r31.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-rqgv9x42.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./request-tracing-br4x4prt.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GenerateHandler2
|
|
3
|
+
} from "./request-tracing-r682v2h3.js";
|
|
4
|
+
import {
|
|
5
|
+
VoiceHandler2
|
|
6
|
+
} from "./request-tracing-phgds112.js";
|
|
7
|
+
import {
|
|
8
|
+
MessageHandler2
|
|
9
|
+
} from "./request-tracing-8gbtt6ty.js";
|
|
10
|
+
import {
|
|
11
|
+
ModelHandler2
|
|
12
|
+
} from "./request-tracing-y8sa9sbe.js";
|
|
13
|
+
import {
|
|
14
|
+
ProviderHandler2
|
|
15
|
+
} from "./request-tracing-cj97w75w.js";
|
|
16
|
+
import {
|
|
17
|
+
SessionHandler2
|
|
18
|
+
} from "./request-tracing-x1nd0396.js";
|
|
19
|
+
import {
|
|
20
|
+
PermissionHandler2
|
|
21
|
+
} from "./request-tracing-5ky8bme5.js";
|
|
22
|
+
import {
|
|
23
|
+
FileSystemHandler2
|
|
24
|
+
} from "./request-tracing-v5qprkre.js";
|
|
25
|
+
import {
|
|
26
|
+
FormHandler2
|
|
27
|
+
} from "./request-tracing-esvnag9e.js";
|
|
28
|
+
import {
|
|
29
|
+
CommandHandler2
|
|
30
|
+
} from "./request-tracing-8y9zssdg.js";
|
|
31
|
+
import {
|
|
32
|
+
SkillHandler2
|
|
33
|
+
} from "./request-tracing-g354sg86.js";
|
|
34
|
+
import {
|
|
35
|
+
RpcHandler2
|
|
36
|
+
} from "./request-tracing-ar950k47.js";
|
|
37
|
+
import {
|
|
38
|
+
layer3
|
|
39
|
+
} from "./request-tracing-s802fzg1.js";
|
|
40
|
+
import {
|
|
41
|
+
EventHandler2
|
|
42
|
+
} from "./request-tracing-tttb6mvj.js";
|
|
43
|
+
import {
|
|
44
|
+
AgentHandler2
|
|
45
|
+
} from "./request-tracing-f412ctvv.js";
|
|
46
|
+
import {
|
|
47
|
+
PluginHandler2
|
|
48
|
+
} from "./request-tracing-z0v7xmc8.js";
|
|
49
|
+
import {
|
|
50
|
+
ServerHandler2
|
|
51
|
+
} from "./request-tracing-294h7qkd.js";
|
|
52
|
+
import {
|
|
53
|
+
DebugHandler2
|
|
54
|
+
} from "./request-tracing-zhgmk0fm.js";
|
|
55
|
+
import {
|
|
56
|
+
PtyHandler2
|
|
57
|
+
} from "./request-tracing-mq10h3bj.js";
|
|
58
|
+
import {
|
|
59
|
+
PersistentPtyHandler2
|
|
60
|
+
} from "./request-tracing-daegfhsz.js";
|
|
61
|
+
import {
|
|
62
|
+
ShellHandler2
|
|
63
|
+
} from "./request-tracing-df03ef4a.js";
|
|
64
|
+
import {
|
|
65
|
+
ReferenceHandler2
|
|
66
|
+
} from "./request-tracing-rg932pab.js";
|
|
67
|
+
import {
|
|
68
|
+
LocationHandler2
|
|
69
|
+
} from "./request-tracing-hbrnhmez.js";
|
|
70
|
+
import {
|
|
71
|
+
IntegrationHandler2
|
|
72
|
+
} from "./request-tracing-7r996r31.js";
|
|
73
|
+
import {
|
|
74
|
+
WebSearchHandler2
|
|
75
|
+
} from "./request-tracing-htk4x1jk.js";
|
|
76
|
+
import {
|
|
77
|
+
UsageHandler2
|
|
78
|
+
} from "./request-tracing-ddhjwr2w.js";
|
|
79
|
+
import {
|
|
80
|
+
FlagHandler2
|
|
81
|
+
} from "./request-tracing-r6qsbz4y.js";
|
|
82
|
+
import {
|
|
83
|
+
McpHandler2
|
|
84
|
+
} from "./request-tracing-1nsytpdt.js";
|
|
85
|
+
import {
|
|
86
|
+
CredentialHandler2
|
|
87
|
+
} from "./request-tracing-3w2mqh28.js";
|
|
88
|
+
import {
|
|
89
|
+
ProjectHandler2
|
|
90
|
+
} from "./request-tracing-6anyjjh1.js";
|
|
91
|
+
import {
|
|
92
|
+
WorktreeHandler2
|
|
93
|
+
} from "./request-tracing-ykr4m3zx.js";
|
|
94
|
+
import {
|
|
95
|
+
VcsHandler2
|
|
96
|
+
} from "./request-tracing-khe9dd99.js";
|
|
97
|
+
import {
|
|
98
|
+
MigrationHandler2
|
|
99
|
+
} from "./request-tracing-eacgzt6w.js";
|
|
100
|
+
import {
|
|
101
|
+
ConfigHandler2
|
|
102
|
+
} from "./request-tracing-wjh98yw2.js";
|
|
103
|
+
|
|
104
|
+
// src/handlers.ts
|
|
105
|
+
import { Layer } from "effect";
|
|
106
|
+
var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, FlagHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer3)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
|
|
107
|
+
|
|
108
|
+
export { handlers2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./request-tracing-rqgv9x42.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
8
8
|
import {
|
|
9
9
|
wantsMediaRefs2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./request-tracing-xthc02cw.js";
|
|
11
11
|
|
|
12
12
|
// src/handlers/message.ts
|
|
13
13
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.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
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/provider.ts
|
|
9
9
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./request-tracing-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./request-tracing-javgytnb.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./request-tracing-g23ffrnz.js";
|
|
14
|
+
import {
|
|
15
|
+
makeBrowserTunnel2
|
|
16
|
+
} from "./request-tracing-ka2mtp6f.js";
|
|
14
17
|
import {
|
|
15
18
|
makeAutomation2
|
|
16
|
-
} from "./
|
|
19
|
+
} from "./request-tracing-6pm6ek88.js";
|
|
17
20
|
import {
|
|
18
21
|
makeJob2
|
|
19
|
-
} from "./
|
|
22
|
+
} from "./request-tracing-x2qy7jg1.js";
|
|
20
23
|
import {
|
|
21
24
|
makeMachineLink2,
|
|
22
25
|
makeMachine2
|
|
23
|
-
} from "./
|
|
26
|
+
} from "./request-tracing-017ycvbx.js";
|
|
24
27
|
import {
|
|
25
28
|
makeMediaGet2
|
|
26
|
-
} from "./
|
|
29
|
+
} from "./request-tracing-djr0jy89.js";
|
|
27
30
|
import {
|
|
28
31
|
makePush2
|
|
29
|
-
} from "./
|
|
32
|
+
} from "./request-tracing-qpnw2qd1.js";
|
|
30
33
|
import {
|
|
31
34
|
runPtySocket2
|
|
32
|
-
} from "./
|
|
35
|
+
} from "./request-tracing-q187pxxd.js";
|
|
33
36
|
|
|
34
37
|
// src/handlers/persistent-pty.ts
|
|
35
38
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -60,8 +63,9 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
|
|
|
60
63
|
const automation = yield* makeAutomation2;
|
|
61
64
|
const machine = yield* makeMachine2;
|
|
62
65
|
const machineLink = yield* makeMachineLink2;
|
|
66
|
+
const browserTunnel = yield* makeBrowserTunnel2;
|
|
63
67
|
const push = yield* makePush2;
|
|
64
|
-
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).handleRaw("machine.link", (ctx) => machineLink(ctx.request)).handle("machine.list", () => machine.list()).handle("machine.add", (ctx) => machine.add(ctx.payload)).handle("machine.remove", (ctx) => machine.remove(ctx.params.name)).handle("push.get", () => push.get()).handle("push.device.register", (ctx) => push.register(ctx.params.deviceID, ctx.payload)).handle("push.device.remove", (ctx) => push.remove(ctx.params.deviceID)).handle("push.device.update", (ctx) => push.update(ctx.params.deviceID, ctx.payload)).handle("push.device.session.set", (ctx) => push.setDeviceBell(ctx.params.deviceID, ctx.params.sessionID, ctx.payload)).handle("push.device.session.remove", (ctx) => push.removeDeviceBell(ctx.params.deviceID, ctx.params.sessionID)).handle("push.session.set", (ctx) => push.setSessionBell(ctx.params.sessionID, ctx.payload)).handle("push.session.remove", (ctx) => push.removeSessionBell(ctx.params.sessionID)).handle("push.settings.set", (ctx) => push.setSettings(ctx.payload)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
68
|
+
return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handleRaw("blob.get", (ctx) => blobGet(ctx.params.id, ctx.request)).handleRaw("browser.tunnel", (ctx) => browserTunnel(ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("job.cancel", (ctx) => job.cancel(ctx.params.id)).handleRaw("machine.link", (ctx) => machineLink(ctx.request)).handle("machine.list", () => machine.list()).handle("machine.add", (ctx) => machine.add(ctx.payload)).handle("machine.remove", (ctx) => machine.remove(ctx.params.name)).handle("push.get", () => push.get()).handle("push.device.register", (ctx) => push.register(ctx.params.deviceID, ctx.payload)).handle("push.device.remove", (ctx) => push.remove(ctx.params.deviceID)).handle("push.device.update", (ctx) => push.update(ctx.params.deviceID, ctx.payload)).handle("push.device.session.set", (ctx) => push.setDeviceBell(ctx.params.deviceID, ctx.params.sessionID, ctx.payload)).handle("push.device.session.remove", (ctx) => push.removeDeviceBell(ctx.params.deviceID, ctx.params.sessionID)).handle("push.session.set", (ctx) => push.setSessionBell(ctx.params.sessionID, ctx.payload)).handle("push.session.remove", (ctx) => push.removeSessionBell(ctx.params.sessionID)).handle("push.settings.set", (ctx) => push.setSettings(ctx.payload)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("automation.create", (ctx) => automation.create(ctx.payload)).handle("automation.list", (ctx) => automation.list(ctx.query)).handle("automation.get", (ctx) => automation.get(ctx.params.automationID)).handle("automation.pause", (ctx) => automation.pause(ctx.params.automationID)).handle("automation.resume", (ctx) => automation.resume(ctx.params.automationID)).handle("automation.delete", (ctx) => automation.remove(ctx.params.automationID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
|
|
65
69
|
return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
|
|
66
70
|
})).handle("persistentPty.list", Effect.fn(function* (ctx) {
|
|
67
71
|
return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.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 "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/service-status.ts
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/form.ts
|
|
9
9
|
import { Form } from "@opencode/core/form";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/agent.ts
|
|
9
9
|
import { Agent } from "@opencode/core/agent";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
download2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-t32e1bbt.js";
|
|
4
4
|
import {
|
|
5
5
|
parse2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-8sb6qqpn.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/blob.ts
|
|
9
9
|
import { BlobStore } from "@opencode/core/blob-store";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/skill.ts
|
|
9
9
|
import { Skill } from "@opencode/core/skill";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-jhs8rzvk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/websearch.ts
|
|
9
9
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-rqgv9x42.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
requestRef2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./request-tracing-br4x4prt.js";
|
|
9
9
|
|
|
10
10
|
// src/handlers/artifact.ts
|
|
11
11
|
import { Artifact } from "@opencode/core/artifact";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./request-tracing-br4x4prt.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./request-tracing-ca564221.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./request-tracing-ehyp3zqd.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|