@opencode/server 2.2.2 → 2.2.4
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 +191 -1
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{workerd-ze052fvn.js → event-feed-04phqjtk.js} +17 -15
- package/dist/chunks/{workerd-059rbh9c.js → event-feed-059rbh9c.js} +1 -1
- package/dist/chunks/{workerd-zmgfywqd.js → event-feed-05c5061t.js} +1 -1
- package/dist/chunks/{workerd-r5696se6.js → event-feed-0e81et3m.js} +3 -3
- package/dist/chunks/{workerd-0pbbhyf6.js → event-feed-0ey2b45p.js} +2 -2
- package/dist/chunks/event-feed-0fv515j7.js +144 -0
- package/dist/chunks/{workerd-wqv43pj9.js → event-feed-0j6zxxn8.js} +2 -2
- package/dist/chunks/{workerd-zyntahe8.js → event-feed-0n4tjm17.js} +1 -1
- package/dist/chunks/event-feed-2wexxjwf.js +61 -0
- package/dist/chunks/{workerd-0q7s66m2.js → event-feed-39nnfjx1.js} +4 -4
- package/dist/chunks/{workerd-370cpmna.js → event-feed-4p2y0qs3.js} +2 -2
- package/dist/chunks/{workerd-gqq6kfhc.js → event-feed-50bbk3b2.js} +3 -3
- package/dist/chunks/{workerd-zhns4s2s.js → event-feed-5dbnrgeg.js} +2 -2
- package/dist/chunks/{workerd-7b9xm1qg.js → event-feed-7b9xm1qg.js} +1 -1
- package/dist/chunks/{workerd-5z5anmwp.js → event-feed-89egwzf3.js} +2 -2
- package/dist/chunks/{workerd-2qjvs0kv.js → event-feed-8wqj6mpn.js} +4 -4
- package/dist/chunks/{workerd-vtfzy3at.js → event-feed-9grnt8dc.js} +2 -2
- package/dist/chunks/{workerd-fvqb5t8b.js → event-feed-axe8xgk8.js} +27 -9
- package/dist/chunks/{workerd-yet0vexm.js → event-feed-b3bmdkga.js} +1 -1
- package/dist/chunks/{workerd-xpg37vzc.js → event-feed-b4mqtccx.js} +2 -2
- package/dist/chunks/{workerd-7cd61xtm.js → event-feed-dx89xydc.js} +2 -2
- package/dist/chunks/{workerd-2835150m.js → event-feed-et00mhwf.js} +2 -2
- package/dist/chunks/{workerd-rxyx8sa0.js → event-feed-f8r9p2vr.js} +2 -2
- package/dist/chunks/{workerd-wh109kze.js → event-feed-g2961dtz.js} +8 -8
- package/dist/chunks/{workerd-jc2vwkyw.js → event-feed-h1thjy6x.js} +2 -2
- package/dist/chunks/{workerd-gk0yxcp6.js → event-feed-htyf2qs7.js} +1 -1
- package/dist/chunks/{workerd-0e4fm4yw.js → event-feed-hx8bsq9d.js} +1 -1
- package/dist/chunks/{workerd-j4at0y5c.js → event-feed-j4at0y5c.js} +1 -1
- package/dist/chunks/{workerd-50xc6x42.js → event-feed-kg0ybx4v.js} +3 -3
- package/dist/chunks/{workerd-5553qfcy.js → event-feed-m119esdv.js} +3 -3
- package/dist/chunks/{workerd-yemng8y6.js → event-feed-m9ezm2eq.js} +6 -6
- package/dist/chunks/{workerd-1s3664te.js → event-feed-mzqcpmk1.js} +4 -4
- package/dist/chunks/{workerd-kqr36gas.js → event-feed-mzs0n5xz.js} +7 -7
- package/dist/chunks/{workerd-4gk9fc6f.js → event-feed-n1zdbfv7.js} +29 -4
- package/dist/chunks/{workerd-71pkxez6.js → event-feed-ndcq61v8.js} +35 -35
- package/dist/chunks/{workerd-7tewdwsb.js → event-feed-nz17qv97.js} +2 -2
- package/dist/chunks/{workerd-xbqm7mpj.js → event-feed-q44yktpv.js} +2 -2
- package/dist/chunks/{workerd-20b2yx1f.js → event-feed-qfyg9gb7.js} +7 -7
- package/dist/chunks/{workerd-vfkjeyp3.js → event-feed-r6xkfcdx.js} +1 -1
- package/dist/chunks/{workerd-f4exzdsf.js → event-feed-s62wjkvx.js} +2 -2
- package/dist/chunks/{workerd-skcryrty.js → event-feed-s9tkswmw.js} +2 -2
- package/dist/chunks/{workerd-7x1re4zg.js → event-feed-v8aqacn3.js} +2 -2
- package/dist/chunks/{workerd-sqxx1p54.js → event-feed-vbgqk0mr.js} +2 -2
- package/dist/chunks/{workerd-vvp99hc9.js → event-feed-x4b2rtcb.js} +1 -1
- package/dist/chunks/{workerd-7dtbad8d.js → event-feed-z3e7v67k.js} +7 -7
- package/dist/chunks/{workerd-74kxthdf.js → event-feed-zbe9jfhy.js} +1 -1
- package/dist/chunks/{workerd-z9kgby92.js → event-feed-zvbhqxt5.js} +4 -4
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +54 -53
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/artifact.d.ts +62 -0
- package/dist/handlers/artifact.js +8 -0
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.d.ts +3 -1
- package/dist/handlers/credential.js +7 -6
- 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 +6 -6
- package/dist/handlers/generate.js +6 -6
- package/dist/handlers/integration.d.ts +5 -0
- package/dist/handlers/integration.js +9 -7
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +8 -8
- package/dist/handlers/media.js +1 -1
- 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 +11 -10
- 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/schedule.d.ts +30 -0
- package/dist/handlers/schedule.js +2 -2
- 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 +48 -47
- package/dist/location.js +4 -4
- package/dist/media-uri.js +1 -1
- package/dist/middleware/authorization.js +2 -2
- 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 +57 -56
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +51 -50
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.d.ts +4 -3
- package/dist/workerd.js +69 -54
- package/package.json +9 -9
- package/dist/chunks/workerd-hdwd22w5.js +0 -47
- /package/dist/chunks/{workerd-9rqn6x4v.js → event-feed-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{workerd-bd8755ek.js → event-feed-bd8755ek.js} +0 -0
- /package/dist/chunks/{workerd-h6rt5k9s.js → event-feed-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{workerd-n321d8vm.js → event-feed-n321d8vm.js} +0 -0
- /package/dist/chunks/{workerd-q4bn6dy8.js → event-feed-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{workerd-smaf4a18.js → event-feed-smaf4a18.js} +0 -0
- /package/dist/chunks/{workerd-xthc02cw.js → event-feed-xthc02cw.js} +0 -0
- /package/dist/chunks/{workerd-yc7nft6q.js → event-feed-yc7nft6q.js} +0 -0
package/dist/process.js
CHANGED
|
@@ -1,73 +1,74 @@
|
|
|
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
7
|
import {
|
|
8
8
|
unauthorizedResponse2,
|
|
9
9
|
authorizedRequest2
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/event-feed-7b9xm1qg.js";
|
|
11
11
|
import {
|
|
12
12
|
withoutParentSpan2
|
|
13
|
-
} from "./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/
|
|
13
|
+
} from "./chunks/event-feed-yc7nft6q.js";
|
|
14
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
15
|
+
import"./chunks/event-feed-50bbk3b2.js";
|
|
16
|
+
import"./chunks/event-feed-htyf2qs7.js";
|
|
17
|
+
import"./chunks/event-feed-b3bmdkga.js";
|
|
18
|
+
import"./chunks/event-feed-0e81et3m.js";
|
|
19
|
+
import"./chunks/event-feed-0j6zxxn8.js";
|
|
20
|
+
import"./chunks/event-feed-et00mhwf.js";
|
|
21
|
+
import"./chunks/event-feed-xthc02cw.js";
|
|
22
|
+
import"./chunks/event-feed-m119esdv.js";
|
|
23
|
+
import"./chunks/event-feed-4p2y0qs3.js";
|
|
24
|
+
import"./chunks/event-feed-9grnt8dc.js";
|
|
25
|
+
import"./chunks/event-feed-zvbhqxt5.js";
|
|
26
|
+
import"./chunks/event-feed-kg0ybx4v.js";
|
|
27
|
+
import"./chunks/event-feed-0ey2b45p.js";
|
|
28
|
+
import"./chunks/event-feed-v8aqacn3.js";
|
|
29
|
+
import"./chunks/event-feed-b4mqtccx.js";
|
|
30
|
+
import"./chunks/event-feed-q44yktpv.js";
|
|
31
|
+
import"./chunks/event-feed-0n4tjm17.js";
|
|
32
|
+
import"./chunks/event-feed-qfyg9gb7.js";
|
|
33
|
+
import"./chunks/event-feed-5dbnrgeg.js";
|
|
34
|
+
import"./chunks/event-feed-s62wjkvx.js";
|
|
35
|
+
import"./chunks/event-feed-vbgqk0mr.js";
|
|
36
36
|
import {
|
|
37
37
|
connectionURLs2
|
|
38
|
-
} from "./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/
|
|
60
|
-
import"./chunks/
|
|
61
|
-
import"./chunks/
|
|
38
|
+
} from "./chunks/event-feed-z3e7v67k.js";
|
|
39
|
+
import"./chunks/event-feed-mzs0n5xz.js";
|
|
40
|
+
import"./chunks/event-feed-g2961dtz.js";
|
|
41
|
+
import"./chunks/event-feed-h1thjy6x.js";
|
|
42
|
+
import"./chunks/event-feed-h6rt5k9s.js";
|
|
43
|
+
import"./chunks/event-feed-8wqj6mpn.js";
|
|
44
|
+
import"./chunks/event-feed-0fv515j7.js";
|
|
45
|
+
import"./chunks/event-feed-n321d8vm.js";
|
|
46
|
+
import"./chunks/event-feed-059rbh9c.js";
|
|
47
|
+
import"./chunks/event-feed-axe8xgk8.js";
|
|
48
|
+
import"./chunks/event-feed-f8r9p2vr.js";
|
|
49
|
+
import"./chunks/event-feed-s9tkswmw.js";
|
|
50
|
+
import"./chunks/event-feed-zbe9jfhy.js";
|
|
51
|
+
import"./chunks/event-feed-n1zdbfv7.js";
|
|
52
|
+
import"./chunks/event-feed-dx89xydc.js";
|
|
53
|
+
import"./chunks/event-feed-89egwzf3.js";
|
|
54
|
+
import"./chunks/event-feed-mzqcpmk1.js";
|
|
55
|
+
import"./chunks/event-feed-2wexxjwf.js";
|
|
56
|
+
import"./chunks/event-feed-05c5061t.js";
|
|
57
|
+
import"./chunks/event-feed-r6xkfcdx.js";
|
|
58
|
+
import"./chunks/event-feed-nz17qv97.js";
|
|
59
|
+
import"./chunks/event-feed-x4b2rtcb.js";
|
|
60
|
+
import"./chunks/event-feed-hx8bsq9d.js";
|
|
61
|
+
import"./chunks/event-feed-ndcq61v8.js";
|
|
62
|
+
import"./chunks/event-feed-bd8755ek.js";
|
|
62
63
|
import {
|
|
63
64
|
createRoutes2
|
|
64
|
-
} from "./chunks/
|
|
65
|
+
} from "./chunks/event-feed-04phqjtk.js";
|
|
65
66
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunks/
|
|
67
|
+
make2
|
|
68
|
+
} from "./chunks/event-feed-39nnfjx1.js";
|
|
68
69
|
import {
|
|
69
70
|
__export
|
|
70
|
-
} from "./chunks/
|
|
71
|
+
} from "./chunks/event-feed-9rqn6x4v.js";
|
|
71
72
|
|
|
72
73
|
// src/process.ts
|
|
73
74
|
var exports_process = {};
|
|
@@ -96,7 +97,7 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
|
|
|
96
97
|
const hostname = options.hostname ?? "127.0.0.1";
|
|
97
98
|
const port = Option.fromNullishOr(options.port);
|
|
98
99
|
const shutdown = yield* Latch.make();
|
|
99
|
-
const status = yield*
|
|
100
|
+
const status = yield* make2();
|
|
100
101
|
const bound = yield* listen({ hostname, port });
|
|
101
102
|
const localURLs = () => {
|
|
102
103
|
const address = bound.server.address();
|
|
@@ -121,8 +122,8 @@ var start = Effect.fn("ServerProcess.start")(function* (options, lifecycle, tran
|
|
|
121
122
|
}, urls).pipe(Layer.provideMerge(NodeHttpServer.layerHttpServices)), applicationScope);
|
|
122
123
|
if (lifecycle) {
|
|
123
124
|
yield* installRestartContinuity(Context.get(context, SessionRestart.Service)).pipe(Effect.provideService(Scope.Scope, applicationScope));
|
|
124
|
-
yield* Effect.forkIn(Context.get(context, Schedule.Service).run, applicationScope);
|
|
125
125
|
}
|
|
126
|
+
yield* Effect.forkIn(Context.get(context, Schedule.Service).run, applicationScope);
|
|
126
127
|
yield* Ref.set(application, Option.some(Context.get(context, HttpRouter.HttpRouter).asHttpEffect()));
|
|
127
128
|
yield* status.ready;
|
|
128
129
|
const bus = Context.get(context, Bus.Service);
|
package/dist/request-tracing.js
CHANGED
package/dist/routes.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { Instance } from "@opencode/core/instance/service";
|
|
|
13
13
|
import { SessionTransfer } from "@opencode/core/session/transfer";
|
|
14
14
|
import { InstructionEntry } from "@opencode/core/session/instruction-entry";
|
|
15
15
|
import { Job } from "@opencode/core/job";
|
|
16
|
+
import { KV } from "@opencode/core/kv";
|
|
16
17
|
import { Global } from "@opencode/util/global";
|
|
17
18
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
18
19
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -28,7 +29,7 @@ import { HttpRouter } from "effect/http";
|
|
|
28
29
|
import { Layer } from "effect";
|
|
29
30
|
import { ServerPairing } from "./pairing";
|
|
30
31
|
import type { ServerOptions } from "./options";
|
|
31
|
-
export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | Credential.Service |
|
|
32
|
+
export declare function createRoutes(options?: ServerOptions, serviceURLs?: () => ReadonlyArray<string>, overrides?: LayerNode.Replacements): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | PermissionSaved.Service | Workspace.Service | LocationServiceMap.Service | Session.Service | PersistentPty.Service | Worktree.Service | Schedule.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>;
|
|
32
33
|
type InstanceNode = (replacements: () => LayerNode.Replacements) => LayerNode.Provider<Instance.Service, never, typeof Node.tags.values.global>;
|
|
33
|
-
export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | Credential.Service |
|
|
34
|
+
export declare function createEmbeddedRoutes(options?: ServerOptions, overrides?: LayerNode.Replacements, instances?: InstanceNode): Layer.Layer<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | FSUtil.Service | Global.Service | Database.Service | Credential.Service | KV.Service | WellKnown.Service | InstructionEntry.Service | Job.Service | PermissionSaved.Service | Workspace.Service | LocationServiceMap.Service | Session.Service | PersistentPty.Service | Worktree.Service | Schedule.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>;
|
|
34
35
|
export {};
|
package/dist/routes.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
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/
|
|
4
|
+
} from "./chunks/event-feed-04phqjtk.js";
|
|
5
|
+
import"./chunks/event-feed-bd8755ek.js";
|
|
6
|
+
import"./chunks/event-feed-7b9xm1qg.js";
|
|
7
|
+
import"./chunks/event-feed-ndcq61v8.js";
|
|
8
|
+
import"./chunks/event-feed-et00mhwf.js";
|
|
9
|
+
import"./chunks/event-feed-9grnt8dc.js";
|
|
10
|
+
import"./chunks/event-feed-0ey2b45p.js";
|
|
11
|
+
import"./chunks/event-feed-nz17qv97.js";
|
|
12
|
+
import"./chunks/event-feed-2wexxjwf.js";
|
|
13
|
+
import"./chunks/event-feed-q44yktpv.js";
|
|
14
|
+
import"./chunks/event-feed-x4b2rtcb.js";
|
|
15
|
+
import"./chunks/event-feed-v8aqacn3.js";
|
|
16
|
+
import"./chunks/event-feed-f8r9p2vr.js";
|
|
17
|
+
import"./chunks/event-feed-5dbnrgeg.js";
|
|
18
|
+
import"./chunks/event-feed-89egwzf3.js";
|
|
19
|
+
import"./chunks/event-feed-s9tkswmw.js";
|
|
20
|
+
import"./chunks/event-feed-8wqj6mpn.js";
|
|
21
|
+
import"./chunks/event-feed-0j6zxxn8.js";
|
|
22
|
+
import"./chunks/event-feed-zbe9jfhy.js";
|
|
23
|
+
import"./chunks/event-feed-05c5061t.js";
|
|
24
|
+
import"./chunks/event-feed-dx89xydc.js";
|
|
25
|
+
import"./chunks/event-feed-h1thjy6x.js";
|
|
26
|
+
import"./chunks/event-feed-s62wjkvx.js";
|
|
27
|
+
import"./chunks/event-feed-4p2y0qs3.js";
|
|
28
|
+
import"./chunks/event-feed-axe8xgk8.js";
|
|
29
|
+
import"./chunks/event-feed-059rbh9c.js";
|
|
30
|
+
import"./chunks/event-feed-r6xkfcdx.js";
|
|
31
|
+
import"./chunks/event-feed-hx8bsq9d.js";
|
|
32
|
+
import"./chunks/event-feed-0n4tjm17.js";
|
|
33
|
+
import"./chunks/event-feed-g2961dtz.js";
|
|
34
|
+
import"./chunks/event-feed-n1zdbfv7.js";
|
|
35
|
+
import"./chunks/event-feed-m119esdv.js";
|
|
36
|
+
import"./chunks/event-feed-b4mqtccx.js";
|
|
37
|
+
import"./chunks/event-feed-vbgqk0mr.js";
|
|
38
|
+
import"./chunks/event-feed-0fv515j7.js";
|
|
39
|
+
import"./chunks/event-feed-n321d8vm.js";
|
|
40
|
+
import"./chunks/event-feed-zvbhqxt5.js";
|
|
41
|
+
import"./chunks/event-feed-mzqcpmk1.js";
|
|
42
|
+
import"./chunks/event-feed-h6rt5k9s.js";
|
|
43
|
+
import"./chunks/event-feed-kg0ybx4v.js";
|
|
44
|
+
import"./chunks/event-feed-q4bn6dy8.js";
|
|
45
|
+
import"./chunks/event-feed-z3e7v67k.js";
|
|
46
|
+
import"./chunks/event-feed-j4at0y5c.js";
|
|
47
|
+
import"./chunks/event-feed-qfyg9gb7.js";
|
|
48
|
+
import"./chunks/event-feed-mzs0n5xz.js";
|
|
49
|
+
import"./chunks/event-feed-xthc02cw.js";
|
|
50
|
+
import"./chunks/event-feed-0e81et3m.js";
|
|
51
|
+
import"./chunks/event-feed-b3bmdkga.js";
|
|
52
|
+
import"./chunks/event-feed-htyf2qs7.js";
|
|
53
|
+
import"./chunks/event-feed-50bbk3b2.js";
|
|
54
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
54
55
|
export {
|
|
55
56
|
createEmbeddedRoutes2 as createEmbeddedRoutes,
|
|
56
57
|
createRoutes2 as createRoutes
|
package/dist/server-info.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service2,
|
|
3
|
+
layer2,
|
|
4
4
|
connectionURLs2,
|
|
5
5
|
exports_server_info
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/event-feed-z3e7v67k.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_server_info as ServerInfo,
|
|
9
|
-
|
|
9
|
+
Service2 as Service,
|
|
10
10
|
connectionURLs2 as connectionURLs,
|
|
11
|
-
|
|
11
|
+
layer2 as layer
|
|
12
12
|
};
|
package/dist/service-status.js
CHANGED
package/dist/workerd.d.ts
CHANGED
|
@@ -10,11 +10,12 @@ import type { ServerOptions } from "./options";
|
|
|
10
10
|
*
|
|
11
11
|
* - Database runs on the injected `DurableObjectStorage` SQLite.
|
|
12
12
|
* - Watcher and fff are disabled through their existing option flags; pty, fff,
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* and photon native modules resolve to inert stubs under the `workerd` bundle
|
|
14
|
+
* condition.
|
|
15
15
|
* - Bare locations use a typed no-execution-plane process spawner; FileSystem,
|
|
16
16
|
* FileSystemSearch, and Pty fail with a clear defect until a remote sandbox
|
|
17
|
-
* backs them;
|
|
17
|
+
* backs them; Npm fails package installs with a typed workerd error; Snapshot
|
|
18
|
+
* and Vcs degrade to no-op results.
|
|
18
19
|
* - Config is injected as a string (no filesystem); plugin discovery is
|
|
19
20
|
* precompiled-only, and stdio MCP reports the same no-plane failure as Shell.
|
|
20
21
|
*
|
package/dist/workerd.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
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/
|
|
1
|
+
import"./chunks/event-feed-q4bn6dy8.js";
|
|
2
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
3
|
+
import"./chunks/event-feed-50bbk3b2.js";
|
|
4
|
+
import"./chunks/event-feed-htyf2qs7.js";
|
|
5
|
+
import"./chunks/event-feed-b3bmdkga.js";
|
|
6
|
+
import"./chunks/event-feed-0e81et3m.js";
|
|
7
|
+
import"./chunks/event-feed-j4at0y5c.js";
|
|
8
|
+
import"./chunks/event-feed-0j6zxxn8.js";
|
|
9
|
+
import"./chunks/event-feed-et00mhwf.js";
|
|
10
|
+
import"./chunks/event-feed-xthc02cw.js";
|
|
11
|
+
import"./chunks/event-feed-m119esdv.js";
|
|
12
|
+
import"./chunks/event-feed-4p2y0qs3.js";
|
|
13
|
+
import"./chunks/event-feed-9grnt8dc.js";
|
|
14
|
+
import"./chunks/event-feed-zvbhqxt5.js";
|
|
15
|
+
import"./chunks/event-feed-kg0ybx4v.js";
|
|
16
|
+
import"./chunks/event-feed-0ey2b45p.js";
|
|
17
|
+
import"./chunks/event-feed-v8aqacn3.js";
|
|
18
|
+
import"./chunks/event-feed-b4mqtccx.js";
|
|
19
|
+
import"./chunks/event-feed-q44yktpv.js";
|
|
20
|
+
import"./chunks/event-feed-0n4tjm17.js";
|
|
21
|
+
import"./chunks/event-feed-qfyg9gb7.js";
|
|
22
|
+
import"./chunks/event-feed-5dbnrgeg.js";
|
|
23
|
+
import"./chunks/event-feed-s62wjkvx.js";
|
|
24
|
+
import"./chunks/event-feed-vbgqk0mr.js";
|
|
25
|
+
import"./chunks/event-feed-z3e7v67k.js";
|
|
26
|
+
import"./chunks/event-feed-mzs0n5xz.js";
|
|
27
|
+
import"./chunks/event-feed-g2961dtz.js";
|
|
28
|
+
import"./chunks/event-feed-h1thjy6x.js";
|
|
29
|
+
import"./chunks/event-feed-h6rt5k9s.js";
|
|
30
|
+
import"./chunks/event-feed-8wqj6mpn.js";
|
|
31
|
+
import"./chunks/event-feed-0fv515j7.js";
|
|
32
|
+
import"./chunks/event-feed-n321d8vm.js";
|
|
33
|
+
import"./chunks/event-feed-059rbh9c.js";
|
|
34
|
+
import"./chunks/event-feed-axe8xgk8.js";
|
|
35
|
+
import"./chunks/event-feed-f8r9p2vr.js";
|
|
36
|
+
import"./chunks/event-feed-s9tkswmw.js";
|
|
37
|
+
import"./chunks/event-feed-zbe9jfhy.js";
|
|
38
|
+
import"./chunks/event-feed-n1zdbfv7.js";
|
|
39
|
+
import"./chunks/event-feed-dx89xydc.js";
|
|
40
|
+
import"./chunks/event-feed-89egwzf3.js";
|
|
41
|
+
import"./chunks/event-feed-mzqcpmk1.js";
|
|
42
|
+
import"./chunks/event-feed-2wexxjwf.js";
|
|
43
|
+
import"./chunks/event-feed-05c5061t.js";
|
|
44
|
+
import"./chunks/event-feed-r6xkfcdx.js";
|
|
45
|
+
import"./chunks/event-feed-nz17qv97.js";
|
|
46
|
+
import"./chunks/event-feed-x4b2rtcb.js";
|
|
47
|
+
import"./chunks/event-feed-hx8bsq9d.js";
|
|
48
|
+
import"./chunks/event-feed-ndcq61v8.js";
|
|
49
|
+
import"./chunks/event-feed-7b9xm1qg.js";
|
|
50
|
+
import"./chunks/event-feed-bd8755ek.js";
|
|
51
|
+
import"./chunks/event-feed-04phqjtk.js";
|
|
51
52
|
import {
|
|
52
|
-
|
|
53
|
-
} from "./chunks/
|
|
53
|
+
make3
|
|
54
|
+
} from "./chunks/event-feed-m9ezm2eq.js";
|
|
54
55
|
import {
|
|
55
56
|
__export
|
|
56
|
-
} from "./chunks/
|
|
57
|
+
} from "./chunks/event-feed-9rqn6x4v.js";
|
|
57
58
|
|
|
58
59
|
// src/workerd.ts
|
|
59
60
|
var exports_workerd = {};
|
|
@@ -74,8 +75,9 @@ import { Pty } from "@opencode/core/pty";
|
|
|
74
75
|
import { Snapshot } from "@opencode/core/snapshot";
|
|
75
76
|
import { Vcs } from "@opencode/core/vcs";
|
|
76
77
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
78
|
+
import { Npm } from "@opencode/util/npm";
|
|
77
79
|
function create(options) {
|
|
78
|
-
return
|
|
80
|
+
return make3(serverOptions(options), { overrides: replacements(options) });
|
|
79
81
|
}
|
|
80
82
|
function serverOptions(options) {
|
|
81
83
|
return {
|
|
@@ -96,10 +98,23 @@ function replacements(options) {
|
|
|
96
98
|
FileSystem.node.replace(fileSystemLayer),
|
|
97
99
|
FileSystemSearch.node.replace(fileSystemSearchLayer),
|
|
98
100
|
Pty.node.replace(ptyLayer),
|
|
101
|
+
Npm.node.replace(npmLayer),
|
|
99
102
|
ConfigPluginSource.node.replace(ConfigPluginSource.empty)
|
|
100
103
|
];
|
|
101
104
|
}
|
|
102
105
|
var unavailable = (what) => Effect.die(new Error(`${what} is unavailable in the workerd profile`));
|
|
106
|
+
var npmUnavailable = (what, pkg) => Effect.fail(new Npm.InstallFailedError({
|
|
107
|
+
add: [pkg],
|
|
108
|
+
dir: "",
|
|
109
|
+
cause: new Error(`${what} is unavailable in the workerd profile`)
|
|
110
|
+
}));
|
|
111
|
+
var npmLayer = Layer.succeed(Npm.Service, Npm.Service.of({
|
|
112
|
+
add: (pkg) => npmUnavailable("Npm.add", pkg),
|
|
113
|
+
resolve: (name) => Effect.succeed({ directory: "", name }),
|
|
114
|
+
check: () => Effect.succeed(false),
|
|
115
|
+
update: (pkg) => npmUnavailable("Npm.update", pkg),
|
|
116
|
+
which: () => Effect.undefined
|
|
117
|
+
}));
|
|
103
118
|
var vcsLayer = Layer.succeed(Vcs.Service, Vcs.Service.of({
|
|
104
119
|
base: () => Effect.succeed(null),
|
|
105
120
|
initialize: () => Effect.fail(new Vcs.InitializeError({ kind: "unsupported" })),
|
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": "2.2.
|
|
4
|
+
"version": "2.2.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@effect/platform-node": "4.0.6",
|
|
34
34
|
"@effect/platform-node-shared": "4.0.6",
|
|
35
|
-
"@opencode/core": "2.2.
|
|
36
|
-
"@opencode/protocol": "2.2.
|
|
37
|
-
"@opencode/schema": "2.2.
|
|
38
|
-
"@opencode/simulation": "2.2.
|
|
39
|
-
"@opencode/util": "2.2.
|
|
35
|
+
"@opencode/core": "2.2.4",
|
|
36
|
+
"@opencode/protocol": "2.2.4",
|
|
37
|
+
"@opencode/schema": "2.2.4",
|
|
38
|
+
"@opencode/simulation": "2.2.4",
|
|
39
|
+
"@opencode/util": "2.2.4",
|
|
40
40
|
"effect": "4.0.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@opencode/pty": "0.
|
|
44
|
-
"@opencode/client": "2.2.
|
|
45
|
-
"@opencode/plugin": "2.2.
|
|
43
|
+
"@opencode/pty": "0.4.0",
|
|
44
|
+
"@opencode/client": "2.2.4",
|
|
45
|
+
"@opencode/plugin": "2.2.4",
|
|
46
46
|
"@tsconfig/bun": "1.0.9",
|
|
47
47
|
"@types/bun": "1.4.3",
|
|
48
48
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Api2
|
|
3
|
-
} from "./workerd-r5696se6.js";
|
|
4
|
-
|
|
5
|
-
// src/handlers/credential.ts
|
|
6
|
-
import { Credential } from "@opencode/core/credential";
|
|
7
|
-
import { ConflictError } from "@opencode/protocol/errors";
|
|
8
|
-
import { Effect } from "effect";
|
|
9
|
-
import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
|
|
10
|
-
var CredentialHandler2 = HttpApiBuilder.group(Api2, "server.credential", (handlers) => handlers.handle("credential.list", Effect.fn(function* () {
|
|
11
|
-
const credential = yield* Credential.Service;
|
|
12
|
-
return { data: entries(yield* credential.all()) };
|
|
13
|
-
})).handle("credential.create", Effect.fn(function* (ctx) {
|
|
14
|
-
const credential = yield* Credential.Service;
|
|
15
|
-
if (ctx.payload.id && (yield* credential.get(ctx.payload.id)))
|
|
16
|
-
return yield* new ConflictError({
|
|
17
|
-
resource: ctx.payload.id,
|
|
18
|
-
message: `Credential already exists: ${ctx.payload.id}`
|
|
19
|
-
});
|
|
20
|
-
const created = yield* credential.create(ctx.payload);
|
|
21
|
-
const entry = entries(yield* credential.list(created.integrationID)).find((item) => item.id === created.id);
|
|
22
|
-
return { data: entry ?? { ...created, active: false } };
|
|
23
|
-
})).handle("credential.update", Effect.fn(function* (ctx) {
|
|
24
|
-
const credential = yield* Credential.Service;
|
|
25
|
-
yield* credential.update(ctx.params.credentialID, { label: ctx.payload.label });
|
|
26
|
-
return HttpApiSchema.NoContent.make();
|
|
27
|
-
})).handle("credential.activate", Effect.fn(function* (ctx) {
|
|
28
|
-
const credential = yield* Credential.Service;
|
|
29
|
-
yield* credential.activate(ctx.params.credentialID);
|
|
30
|
-
return HttpApiSchema.NoContent.make();
|
|
31
|
-
})).handle("credential.remove", Effect.fn(function* (ctx) {
|
|
32
|
-
const credential = yield* Credential.Service;
|
|
33
|
-
yield* credential.remove(ctx.params.credentialID);
|
|
34
|
-
return HttpApiSchema.NoContent.make();
|
|
35
|
-
})));
|
|
36
|
-
function entries(credentials) {
|
|
37
|
-
const selected = new Map(credentials.map((item) => [item.integrationID, item.id]));
|
|
38
|
-
return credentials.map((item) => ({
|
|
39
|
-
id: item.id,
|
|
40
|
-
integrationID: item.integrationID,
|
|
41
|
-
label: item.label,
|
|
42
|
-
active: selected.get(item.integrationID) === item.id,
|
|
43
|
-
value: item.value
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { CredentialHandler2 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|