@opencode/server 2.1.1 → 2.1.3
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 +19 -4
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{location-ctk1s78a.js → service-status-0f489yfb.js} +32 -32
- package/dist/chunks/{location-bx47k33v.js → service-status-0znmasm1.js} +2 -2
- package/dist/chunks/{location-yehasrps.js → service-status-10kexchg.js} +2 -2
- package/dist/chunks/{location-33prfkkd.js → service-status-11d378s5.js} +3 -3
- package/dist/chunks/{location-qbh90c1d.js → service-status-1qc831kp.js} +2 -2
- package/dist/chunks/{location-z6sxg6td.js → service-status-2e16a9cc.js} +1 -1
- package/dist/chunks/{location-vbzm2jgm.js → service-status-2f9g7rg2.js} +2 -2
- package/dist/chunks/{location-4hhhes7w.js → service-status-3154e7fk.js} +1 -1
- package/dist/chunks/{location-wk806w00.js → service-status-53jj3zgg.js} +3 -3
- package/dist/chunks/{location-2c5m7t9e.js → service-status-5680j7c4.js} +16 -16
- package/dist/chunks/{location-43r48nqn.js → service-status-5adf1am9.js} +2 -2
- package/dist/chunks/{location-97eb2r3v.js → service-status-5ewqf72w.js} +2 -2
- package/dist/chunks/{location-4dv9a668.js → service-status-6e6jjne7.js} +2 -2
- package/dist/chunks/{location-7vd5668a.js → service-status-6tj91hdj.js} +1 -1
- package/dist/chunks/{location-10hxeg6b.js → service-status-6tjqh8g4.js} +3 -3
- package/dist/chunks/{location-yfz2nrjq.js → service-status-6v4wsps6.js} +1 -1
- package/dist/chunks/{location-tz3mehbr.js → service-status-79n3507d.js} +3 -3
- package/dist/chunks/{location-0d864bga.js → service-status-7qrtcnv4.js} +1 -1
- package/dist/chunks/{location-71n7prbj.js → service-status-7scj3y0h.js} +8 -8
- package/dist/chunks/{location-ssyxw8nc.js → service-status-a30hykaf.js} +2 -2
- package/dist/chunks/{location-5zsr2h86.js → service-status-c2hv5jmf.js} +1 -1
- package/dist/chunks/service-status-crt28xe4.js +41 -0
- package/dist/chunks/{location-vpz7f20y.js → service-status-e6e4kz0w.js} +4 -4
- package/dist/chunks/{location-b56hqv74.js → service-status-gymtz25n.js} +3 -3
- package/dist/chunks/{location-zessacar.js → service-status-hwdnjend.js} +2 -2
- package/dist/chunks/{location-vb5yx5r0.js → service-status-j3461ttv.js} +2 -2
- package/dist/chunks/{location-anm12x33.js → service-status-j4at0y5c.js} +1 -1
- package/dist/chunks/{location-8137b89p.js → service-status-jwf0kwqx.js} +2 -2
- package/dist/chunks/{location-4g2hx1xt.js → service-status-k6dz4enc.js} +5 -5
- package/dist/chunks/{location-h8ws5ssa.js → service-status-krqg3gd2.js} +1 -1
- package/dist/chunks/{location-ftaz8n62.js → service-status-pf9k0dqe.js} +2 -2
- package/dist/chunks/{location-p74g497q.js → service-status-q6jxy1hn.js} +5 -5
- package/dist/chunks/{location-9snwnvf8.js → service-status-r82dtfrk.js} +3 -3
- package/dist/chunks/{location-08x9tjee.js → service-status-rj8tbp10.js} +1 -1
- package/dist/chunks/{location-jkvn5n4s.js → service-status-rkmbbexc.js} +2 -2
- package/dist/chunks/{location-sstsrjtg.js → service-status-vb61dkrm.js} +7 -7
- package/dist/chunks/{location-rf01ee6q.js → service-status-vg0x3zn0.js} +1 -1
- package/dist/chunks/{location-ghk96rjy.js → service-status-x2cwbfak.js} +7 -7
- package/dist/chunks/{location-j4zqsxgy.js → service-status-x74w7e1f.js} +1 -1
- package/dist/chunks/{location-ewe1fzkk.js → service-status-xcxwzp6z.js} +2 -2
- package/dist/chunks/{location-cv0ajwc9.js → service-status-y89d99mz.js} +2 -2
- package/dist/chunks/{location-ptey1p5v.js → service-status-yzwm8eeq.js} +2 -2
- package/dist/chunks/{location-rntbwr87.js → service-status-z554rpg5.js} +2 -2
- package/dist/chunks/{location-4d1eemzq.js → service-status-z9g9xjb3.js} +2 -2
- package/dist/chunks/{location-bkk2wfbz.js → service-status-zy1wt1f8.js} +5 -5
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +3 -3
- package/dist/fetch.js +48 -48
- package/dist/handlers/agent.js +6 -6
- package/dist/handlers/command.js +6 -6
- package/dist/handlers/config.js +6 -6
- package/dist/handlers/credential.js +6 -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.js +6 -6
- package/dist/handlers/location.js +6 -6
- package/dist/handlers/mcp.js +6 -6
- package/dist/handlers/message.js +6 -6
- 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 +8 -8
- 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 +9 -9
- 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 +6 -6
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.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 +44 -44
- package/dist/location.js +4 -4
- 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 +52 -52
- package/dist/pty-environment.js +3 -3
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +47 -47
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +49 -49
- package/package.json +9 -9
- package/dist/chunks/location-686p2xfa.js +0 -30
- /package/dist/chunks/{location-9rqn6x4v.js → service-status-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-erzfdgke.js → service-status-erzfdgke.js} +0 -0
- /package/dist/chunks/{location-h6rt5k9s.js → service-status-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{location-q4bn6dy8.js → service-status-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{location-smaf4a18.js → service-status-smaf4a18.js} +0 -0
- /package/dist/chunks/{location-yc7nft6q.js → service-status-yc7nft6q.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/fs.ts
|
|
9
9
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
locationErrors2,
|
|
3
|
+
awaitPlugins2
|
|
4
|
+
} from "./service-status-gymtz25n.js";
|
|
5
|
+
import {
|
|
6
|
+
Api2
|
|
7
|
+
} from "./service-status-r82dtfrk.js";
|
|
8
|
+
|
|
9
|
+
// src/handlers/voice.ts
|
|
10
|
+
import { Location } from "@opencode/core/location";
|
|
11
|
+
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
12
|
+
import { AbsolutePath } from "@opencode/core/schema";
|
|
13
|
+
import { Voice } from "@opencode/core/voice";
|
|
14
|
+
import { InvalidRequestError, ServiceUnavailableError } from "@opencode/protocol/errors";
|
|
15
|
+
import { Global } from "@opencode/util/global";
|
|
16
|
+
import { Effect } from "effect";
|
|
17
|
+
import { HttpApiBuilder } from "effect/http-api";
|
|
18
|
+
var voiceErrors = (error) => error._tag === "Voice.InvalidRequestError" ? new InvalidRequestError({ message: error.message }) : new ServiceUnavailableError({ message: error.message, service: error.service });
|
|
19
|
+
var VoiceHandler2 = HttpApiBuilder.group(Api2, "server.voice", (handlers) => Effect.gen(function* () {
|
|
20
|
+
const global = yield* Global.Service;
|
|
21
|
+
const locations = yield* LocationServiceMap.Service;
|
|
22
|
+
const services = locations.get(Location.Ref.make({ directory: AbsolutePath.make(global.config) }));
|
|
23
|
+
return handlers.handle("voice.models", Effect.fn("server.voice.models")(function* () {
|
|
24
|
+
yield* awaitPlugins2;
|
|
25
|
+
const voice = yield* Voice.Service;
|
|
26
|
+
return { data: yield* voice.models() };
|
|
27
|
+
}, Effect.provide(services), locationErrors2)).handle("voice.session", Effect.fn("server.voice.session")(function* (request) {
|
|
28
|
+
yield* awaitPlugins2;
|
|
29
|
+
const voice = yield* Voice.Service;
|
|
30
|
+
const session = yield* voice.session(request.payload).pipe(Effect.mapError(voiceErrors));
|
|
31
|
+
return {
|
|
32
|
+
data: { transport: session.transport, ...session.id === undefined ? {} : { session: { id: session.id } } }
|
|
33
|
+
};
|
|
34
|
+
}, Effect.provide(services), locationErrors2)).handle("voice.instructions", Effect.fn("server.voice.instructions")(function* (request) {
|
|
35
|
+
yield* awaitPlugins2;
|
|
36
|
+
const voice = yield* Voice.Service;
|
|
37
|
+
yield* voice.instruct({ id: request.params.sessionID, instructions: request.payload.instructions }).pipe(Effect.mapError(voiceErrors));
|
|
38
|
+
}, Effect.provide(services), locationErrors2));
|
|
39
|
+
}));
|
|
40
|
+
|
|
41
|
+
export { VoiceHandler2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-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 make4 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make3, exports_service_status };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-smaf4a18.js";
|
|
4
4
|
|
|
5
5
|
// src/location.ts
|
|
6
6
|
import { FileSystem } from "@opencode/core/filesystem";
|
|
@@ -59,7 +59,7 @@ function decode(input) {
|
|
|
59
59
|
return input;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var layer2 = 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 layer5 = 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, layer2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/mcp.ts
|
|
9
9
|
import { Mcp } from "@opencode/core/mcp/index";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
3
|
failedMessageDecode2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./service-status-smaf4a18.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-r82dtfrk.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/message.ts
|
|
10
10
|
import { SessionMessage } from "@opencode/core/session/message";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/plugin.ts
|
|
9
9
|
import { Plugin } from "@opencode/core/plugin";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-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: () => layer4,
|
|
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 Set;
|
|
@@ -77,7 +77,7 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
77
77
|
});
|
|
78
78
|
var layer4 = Layer.effect(Service4, Effect.gen(function* () {
|
|
79
79
|
const bus = yield* Bus.Service;
|
|
80
|
-
return yield*
|
|
80
|
+
return yield* make4(bus.listen);
|
|
81
81
|
}));
|
|
82
82
|
|
|
83
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2,
|
|
83
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./service-status-gymtz25n.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./service-status-r82dtfrk.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-status-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
14
|
Service2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./service-status-zy1wt1f8.js";
|
|
16
16
|
import {
|
|
17
17
|
runPtySocket2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./service-status-h6rt5k9s.js";
|
|
19
19
|
|
|
20
20
|
// src/handlers/pty.ts
|
|
21
21
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-3154e7fk.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-status-x74w7e1f.js";
|
|
10
10
|
|
|
11
11
|
// src/api.ts
|
|
12
12
|
import { makeDefaultApi } from "@opencode/protocol/api";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-r82dtfrk.js";
|
|
4
4
|
import {
|
|
5
5
|
Service4,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-k6dz4enc.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-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: () => Service3,
|
|
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 Service3 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(Service3, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service3.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(Service5, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var node3 = makeGlobalNode({ service:
|
|
33
|
+
var node3 = makeGlobalNode({ service: Service3, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service3, node3, exports_pairing };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/server-info.ts
|
|
6
6
|
var exports_server_info = {};
|
|
7
7
|
__export(exports_server_info, {
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service5,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer5
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service5 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return Layer.succeed(
|
|
18
|
+
function layer5(urls, tmp, app = {}) {
|
|
19
|
+
return Layer.succeed(Service5, Service5.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 { Service5, layer5, connectionURLs2, exports_server_info };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./service-status-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-r82dtfrk.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./service-status-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-r82dtfrk.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.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 "./service-status-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-status-r82dtfrk.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/agent.ts
|
|
9
9
|
import { Agent } from "@opencode/core/agent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./service-status-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./service-status-r82dtfrk.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-status-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/pty-environment.ts
|
|
6
6
|
var exports_pty_environment = {};
|
|
7
7
|
__export(exports_pty_environment, {
|
|
8
8
|
PtyEnvironment: () => exports_pty_environment,
|
|
9
9
|
Service: () => Service2,
|
|
10
|
-
layer: () =>
|
|
10
|
+
layer: () => layer3,
|
|
11
11
|
node: () => node2
|
|
12
12
|
});
|
|
13
13
|
import { Context, Effect, Layer } from "effect";
|
|
@@ -15,9 +15,9 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
15
15
|
|
|
16
16
|
class Service2 extends Context.Service()("@opencode/ServerPtyEnvironment") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var layer3 = Layer.succeed(Service2, Service2.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var node2 = makeGlobalNode({ service: Service2, layer:
|
|
21
|
+
var node2 = makeGlobalNode({ service: Service2, layer: layer3, deps: [] });
|
|
22
22
|
|
|
23
|
-
export { Service2,
|
|
23
|
+
export { Service2, layer3, node2, exports_pty_environment };
|
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
|
layer4,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/service-status-k6dz4enc.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
|
layer4 as layer,
|
|
19
|
-
|
|
19
|
+
make4 as make
|
|
20
20
|
};
|
package/dist/fetch.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_fetch
|
|
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/
|
|
4
|
+
} from "./chunks/service-status-79n3507d.js";
|
|
5
|
+
import"./chunks/service-status-5680j7c4.js";
|
|
6
|
+
import"./chunks/service-status-6v4wsps6.js";
|
|
7
|
+
import"./chunks/service-status-erzfdgke.js";
|
|
8
|
+
import"./chunks/service-status-0f489yfb.js";
|
|
9
|
+
import"./chunks/service-status-xcxwzp6z.js";
|
|
10
|
+
import"./chunks/service-status-6tj91hdj.js";
|
|
11
|
+
import"./chunks/service-status-5ewqf72w.js";
|
|
12
|
+
import"./chunks/service-status-7scj3y0h.js";
|
|
13
|
+
import"./chunks/service-status-10kexchg.js";
|
|
14
|
+
import"./chunks/service-status-11d378s5.js";
|
|
15
|
+
import"./chunks/service-status-2f9g7rg2.js";
|
|
16
|
+
import"./chunks/service-status-q6jxy1hn.js";
|
|
17
|
+
import"./chunks/service-status-yzwm8eeq.js";
|
|
18
|
+
import"./chunks/service-status-y89d99mz.js";
|
|
19
|
+
import"./chunks/service-status-pf9k0dqe.js";
|
|
20
|
+
import"./chunks/service-status-krqg3gd2.js";
|
|
21
|
+
import"./chunks/service-status-0znmasm1.js";
|
|
22
|
+
import"./chunks/service-status-5adf1am9.js";
|
|
23
|
+
import"./chunks/service-status-6tjqh8g4.js";
|
|
24
|
+
import"./chunks/service-status-h6rt5k9s.js";
|
|
25
|
+
import"./chunks/service-status-c2hv5jmf.js";
|
|
26
|
+
import"./chunks/service-status-6e6jjne7.js";
|
|
27
|
+
import"./chunks/service-status-7qrtcnv4.js";
|
|
28
|
+
import"./chunks/service-status-hwdnjend.js";
|
|
29
|
+
import"./chunks/service-status-z9g9xjb3.js";
|
|
30
|
+
import"./chunks/service-status-crt28xe4.js";
|
|
31
|
+
import"./chunks/service-status-1qc831kp.js";
|
|
32
|
+
import"./chunks/service-status-2e16a9cc.js";
|
|
33
|
+
import"./chunks/service-status-vg0x3zn0.js";
|
|
34
|
+
import"./chunks/service-status-z554rpg5.js";
|
|
35
|
+
import"./chunks/service-status-rj8tbp10.js";
|
|
36
|
+
import"./chunks/service-status-rkmbbexc.js";
|
|
37
|
+
import"./chunks/service-status-53jj3zgg.js";
|
|
38
|
+
import"./chunks/service-status-j3461ttv.js";
|
|
39
|
+
import"./chunks/service-status-a30hykaf.js";
|
|
40
|
+
import"./chunks/service-status-jwf0kwqx.js";
|
|
41
|
+
import"./chunks/service-status-r82dtfrk.js";
|
|
42
|
+
import"./chunks/service-status-x74w7e1f.js";
|
|
43
|
+
import"./chunks/service-status-3154e7fk.js";
|
|
44
|
+
import"./chunks/service-status-gymtz25n.js";
|
|
45
|
+
import"./chunks/service-status-smaf4a18.js";
|
|
46
|
+
import"./chunks/service-status-zy1wt1f8.js";
|
|
47
|
+
import"./chunks/service-status-vb61dkrm.js";
|
|
48
|
+
import"./chunks/service-status-q4bn6dy8.js";
|
|
49
|
+
import"./chunks/service-status-k6dz4enc.js";
|
|
50
|
+
import"./chunks/service-status-x2cwbfak.js";
|
|
51
|
+
import"./chunks/service-status-j4at0y5c.js";
|
|
52
52
|
export {
|
|
53
53
|
exports_fetch as ServerFetch,
|
|
54
54
|
make2 as make
|
package/dist/handlers/agent.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/service-status-z554rpg5.js";
|
|
4
|
+
import"../chunks/service-status-r82dtfrk.js";
|
|
5
|
+
import"../chunks/service-status-x74w7e1f.js";
|
|
6
|
+
import"../chunks/service-status-3154e7fk.js";
|
|
7
|
+
import"../chunks/service-status-gymtz25n.js";
|
|
8
|
+
import"../chunks/service-status-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|