@opencode/server 0.0.0-dev-1309 → 0.0.0-dev-1310
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/{process-jqvq1ywe.js → fetch-09kw3a77.js} +2 -2
- package/dist/chunks/{process-qdfk4wrz.js → fetch-1h6b4sc5.js} +2 -2
- package/dist/chunks/{process-4v4y6k1p.js → fetch-1kx6n838.js} +8 -8
- package/dist/chunks/{process-sqxx1p54.js → fetch-2eaky32g.js} +2 -2
- package/dist/chunks/{process-0q7s66m2.js → fetch-39nnfjx1.js} +4 -4
- package/dist/chunks/{process-fbdv47za.js → fetch-4jrhe93k.js} +4 -4
- package/dist/chunks/{process-xpg37vzc.js → fetch-4q6e7fh8.js} +2 -2
- package/dist/chunks/{process-gqq6kfhc.js → fetch-50bbk3b2.js} +3 -3
- package/dist/chunks/{process-cr5sd8bz.js → fetch-50kbksvb.js} +3 -3
- package/dist/chunks/{process-6jff1f2v.js → fetch-58psf7ej.js} +3 -3
- package/dist/chunks/{process-rcmctvp9.js → fetch-5cpb32hf.js} +1 -1
- package/dist/chunks/{process-tqj0d2tt.js → fetch-65746hnk.js} +35 -35
- package/dist/chunks/{process-qpzkqgwj.js → fetch-6jh85srs.js} +4 -4
- package/dist/chunks/{process-vvp99hc9.js → fetch-6z9pvq7p.js} +1 -1
- package/dist/chunks/{process-78rcgzsr.js → fetch-78rcgzsr.js} +1 -1
- package/dist/chunks/{process-7b9xm1qg.js → fetch-7b9xm1qg.js} +1 -1
- package/dist/chunks/{process-p3f060n2.js → fetch-8mj7kvhm.js} +2 -2
- package/dist/chunks/{process-8sb6qqpn.js → fetch-8sb6qqpn.js} +1 -1
- package/dist/chunks/{process-amndpc82.js → fetch-91858wp1.js} +2 -2
- package/dist/chunks/{process-9cd3a4b8.js → fetch-9cd3a4b8.js} +1 -1
- package/dist/chunks/{process-zmgfywqd.js → fetch-a8jcac9a.js} +1 -1
- package/dist/chunks/{process-vtfzy3at.js → fetch-az0609r6.js} +2 -2
- package/dist/chunks/{process-yet0vexm.js → fetch-b3bmdkga.js} +1 -1
- package/dist/chunks/{process-50xc6x42.js → fetch-btahnm2b.js} +3 -3
- package/dist/chunks/{process-0e4fm4yw.js → fetch-cezwbsk5.js} +1 -1
- package/dist/chunks/{process-2835150m.js → fetch-d0edqfxx.js} +2 -2
- package/dist/chunks/{process-djr0jy89.js → fetch-djr0jy89.js} +1 -1
- package/dist/chunks/{process-zds85vps.js → fetch-enp1bp7r.js} +1 -1
- package/dist/chunks/{process-mx7mc0z1.js → fetch-ewme8tzg.js} +4 -4
- package/dist/chunks/{process-7x1re4zg.js → fetch-f559fakr.js} +2 -2
- package/dist/chunks/{process-y1rrh01f.js → fetch-g3bm0zk6.js} +2 -2
- package/dist/chunks/{process-gk0yxcp6.js → fetch-htyf2qs7.js} +1 -1
- package/dist/chunks/{process-j4at0y5c.js → fetch-j4at0y5c.js} +1 -1
- package/dist/chunks/{process-r5696se6.js → fetch-j87xz9bt.js} +3 -3
- package/dist/chunks/{process-7cd61xtm.js → fetch-kkdkqt8j.js} +2 -2
- package/dist/chunks/{process-myqk22k5.js → fetch-myqk22k5.js} +2 -2
- package/dist/chunks/{process-qjn3aq45.js → fetch-np0wx2fk.js} +8 -8
- package/dist/chunks/{process-xbqm7mpj.js → fetch-ny1j968n.js} +2 -2
- package/dist/chunks/{process-w5yp0ga8.js → fetch-p86kew8c.js} +2 -2
- package/dist/chunks/{process-jc2vwkyw.js → fetch-qcg3sqtb.js} +2 -2
- package/dist/chunks/{process-rxyx8sa0.js → fetch-qd0r787n.js} +2 -2
- package/dist/chunks/{process-370cpmna.js → fetch-rha2aq18.js} +2 -2
- package/dist/chunks/{process-agenqygg.js → fetch-rs3v36hp.js} +2 -2
- package/dist/chunks/{process-sawqcym6.js → fetch-s802fzg1.js} +7 -7
- package/dist/chunks/{process-t32e1bbt.js → fetch-t32e1bbt.js} +1 -1
- package/dist/chunks/{process-skcryrty.js → fetch-te8jwba1.js} +2 -2
- package/dist/chunks/{process-gm5fpk4a.js → fetch-vdvwckee.js} +4 -4
- package/dist/chunks/{process-kqr36gas.js → fetch-w9jcwh65.js} +7 -7
- package/dist/chunks/{process-e0xr0xrh.js → fetch-wat1sff0.js} +14 -14
- package/dist/chunks/{process-t283ee4g.js → fetch-xggtaj5y.js} +8 -8
- package/dist/chunks/{process-1vxxxmgg.js → fetch-yk755swr.js} +2 -2
- package/dist/chunks/{process-5pdfedjd.js → fetch-z3e7v67k.js} +5 -5
- package/dist/chunks/{process-74kxthdf.js → fetch-zcvan105.js} +1 -1
- package/dist/content-headers.js +1 -1
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +61 -61
- 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/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/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 +15 -15
- 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/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.js +52 -52
- 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 +62 -62
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +56 -56
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +62 -62
- package/package.json +8 -8
- /package/dist/chunks/{process-9rqn6x4v.js → fetch-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{process-bd8755ek.js → fetch-bd8755ek.js} +0 -0
- /package/dist/chunks/{process-n26yr6pw.js → fetch-n26yr6pw.js} +0 -0
- /package/dist/chunks/{process-q187pxxd.js → fetch-q187pxxd.js} +0 -0
- /package/dist/chunks/{process-q4bn6dy8.js → fetch-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{process-smaf4a18.js → fetch-smaf4a18.js} +0 -0
- /package/dist/chunks/{process-xthc02cw.js → fetch-xthc02cw.js} +0 -0
- /package/dist/chunks/{process-yc7nft6q.js → fetch-yc7nft6q.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./fetch-htyf2qs7.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./fetch-b3bmdkga.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
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./fetch-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./fetch-j87xz9bt.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-j87xz9bt.js";
|
|
4
4
|
import {
|
|
5
5
|
CorsConfig2,
|
|
6
6
|
isAllowedRequestOrigin2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./fetch-q4bn6dy8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeArtifact2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./fetch-p86kew8c.js";
|
|
11
11
|
import {
|
|
12
12
|
makeBlobGet2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./fetch-50kbksvb.js";
|
|
14
14
|
import {
|
|
15
15
|
makeAutomation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./fetch-9cd3a4b8.js";
|
|
17
17
|
import {
|
|
18
18
|
makeJob2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./fetch-78rcgzsr.js";
|
|
20
20
|
import {
|
|
21
21
|
makeMediaGet2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./fetch-djr0jy89.js";
|
|
23
23
|
import {
|
|
24
24
|
runPtySocket2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./fetch-q187pxxd.js";
|
|
26
26
|
|
|
27
27
|
// src/handlers/persistent-pty.ts
|
|
28
28
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
requestRef2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./fetch-50bbk3b2.js";
|
|
9
9
|
|
|
10
10
|
// src/handlers/artifact.ts
|
|
11
11
|
import { Artifact } from "@opencode/core/artifact";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./fetch-j87xz9bt.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./fetch-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./fetch-j87xz9bt.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/event-feed.ts
|
|
6
6
|
var exports_event_feed = {};
|
|
@@ -11,8 +11,8 @@ __export(exports_event_feed, {
|
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
make: () =>
|
|
14
|
+
layer: () => layer3,
|
|
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;
|
|
@@ -76,9 +76,9 @@ var make3 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
76
76
|
subscribe: (types) => Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var layer3 = Layer.effect(Service4, Effect.gen(function* () {
|
|
80
80
|
const bus = yield* Bus.Service;
|
|
81
|
-
return yield*
|
|
81
|
+
return yield* make4(bus.listen);
|
|
82
82
|
}));
|
|
83
83
|
|
|
84
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2,
|
|
84
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./fetch-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./fetch-50bbk3b2.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./fetch-j87xz9bt.js";
|
|
13
13
|
import {
|
|
14
14
|
wantsMediaRefs2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./fetch-xthc02cw.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/session.ts
|
|
18
18
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-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: () => node2
|
|
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(Service2, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var node2 = makeGlobalNode({ service:
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service3, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service3, node2, exports_pairing };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
layer4
|
|
3
|
+
} from "./fetch-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./fetch-htyf2qs7.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./fetch-b3bmdkga.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./fetch-j87xz9bt.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./fetch-j4at0y5c.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./fetch-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
20
|
layer2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./fetch-z3e7v67k.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./fetch-w9jcwh65.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./fetch-65746hnk.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./fetch-7b9xm1qg.js";
|
|
31
31
|
import {
|
|
32
32
|
schemaErrorLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./fetch-bd8755ek.js";
|
|
34
34
|
import {
|
|
35
35
|
defectResponseLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./fetch-n26yr6pw.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -168,7 +168,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
168
168
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
169
169
|
const services = Layer.succeedContext(context);
|
|
170
170
|
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
171
|
-
const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(
|
|
171
|
+
const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.merge(defectResponseLayer2), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
172
172
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
173
173
|
}));
|
|
174
174
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-j87xz9bt.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
Service3
|
|
12
|
-
} from "./process-5pdfedjd.js";
|
|
9
|
+
} from "./fetch-j4at0y5c.js";
|
|
13
10
|
import {
|
|
14
11
|
Service2
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./fetch-z3e7v67k.js";
|
|
13
|
+
import {
|
|
14
|
+
Service3
|
|
15
|
+
} from "./fetch-w9jcwh65.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { hostname } from "node:os";
|
|
@@ -22,10 +22,10 @@ import { HttpApiBuilder } from "effect/http-api";
|
|
|
22
22
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
23
23
|
import { UnauthorizedError } from "@opencode/protocol/errors";
|
|
24
24
|
var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
|
|
25
|
-
const pairing = yield*
|
|
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,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-j87xz9bt.js";
|
|
4
4
|
import {
|
|
5
5
|
requireConnectable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./fetch-91858wp1.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/credential.ts
|
|
9
9
|
import { Credential } from "@opencode/core/credential";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./fetch-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: () => Service2,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
11
|
layer: () => layer2
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
18
|
function layer2(urls, tmp, app = {}) {
|
|
19
|
-
return Layer.succeed(
|
|
19
|
+
return Layer.succeed(Service2, Service2.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 { Service2, layer2, connectionURLs2, exports_server_info };
|
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
|
-
|
|
8
|
-
|
|
7
|
+
make4,
|
|
8
|
+
layer3,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/fetch-s802fzg1.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
@@ -15,6 +15,6 @@ export {
|
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
layer3 as layer,
|
|
19
|
+
make4 as make
|
|
20
20
|
};
|
package/dist/fetch.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make3,
|
|
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/
|
|
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/
|
|
62
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/fetch-1kx6n838.js";
|
|
5
|
+
import"./chunks/fetch-yc7nft6q.js";
|
|
6
|
+
import"./chunks/fetch-wat1sff0.js";
|
|
7
|
+
import"./chunks/fetch-bd8755ek.js";
|
|
8
|
+
import"./chunks/fetch-n26yr6pw.js";
|
|
9
|
+
import"./chunks/fetch-7b9xm1qg.js";
|
|
10
|
+
import"./chunks/fetch-myqk22k5.js";
|
|
11
|
+
import"./chunks/fetch-65746hnk.js";
|
|
12
|
+
import"./chunks/fetch-2eaky32g.js";
|
|
13
|
+
import"./chunks/fetch-np0wx2fk.js";
|
|
14
|
+
import"./chunks/fetch-8mj7kvhm.js";
|
|
15
|
+
import"./chunks/fetch-a8jcac9a.js";
|
|
16
|
+
import"./chunks/fetch-te8jwba1.js";
|
|
17
|
+
import"./chunks/fetch-ewme8tzg.js";
|
|
18
|
+
import"./chunks/fetch-g3bm0zk6.js";
|
|
19
|
+
import"./chunks/fetch-rha2aq18.js";
|
|
20
|
+
import"./chunks/fetch-09kw3a77.js";
|
|
21
|
+
import"./chunks/fetch-50kbksvb.js";
|
|
22
|
+
import"./chunks/fetch-zcvan105.js";
|
|
23
|
+
import"./chunks/fetch-58psf7ej.js";
|
|
24
|
+
import"./chunks/fetch-rs3v36hp.js";
|
|
25
|
+
import"./chunks/fetch-xggtaj5y.js";
|
|
26
|
+
import"./chunks/fetch-az0609r6.js";
|
|
27
|
+
import"./chunks/fetch-enp1bp7r.js";
|
|
28
|
+
import"./chunks/fetch-kkdkqt8j.js";
|
|
29
|
+
import"./chunks/fetch-yk755swr.js";
|
|
30
|
+
import"./chunks/fetch-91858wp1.js";
|
|
31
|
+
import"./chunks/fetch-78rcgzsr.js";
|
|
32
|
+
import"./chunks/fetch-djr0jy89.js";
|
|
33
|
+
import"./chunks/fetch-cezwbsk5.js";
|
|
34
|
+
import"./chunks/fetch-btahnm2b.js";
|
|
35
|
+
import"./chunks/fetch-9cd3a4b8.js";
|
|
36
|
+
import"./chunks/fetch-qd0r787n.js";
|
|
37
|
+
import"./chunks/fetch-p86kew8c.js";
|
|
38
|
+
import"./chunks/fetch-vdvwckee.js";
|
|
39
|
+
import"./chunks/fetch-d0edqfxx.js";
|
|
40
|
+
import"./chunks/fetch-qcg3sqtb.js";
|
|
41
|
+
import"./chunks/fetch-4q6e7fh8.js";
|
|
42
|
+
import"./chunks/fetch-6z9pvq7p.js";
|
|
43
|
+
import"./chunks/fetch-f559fakr.js";
|
|
44
|
+
import"./chunks/fetch-1h6b4sc5.js";
|
|
45
|
+
import"./chunks/fetch-4jrhe93k.js";
|
|
46
|
+
import"./chunks/fetch-6jh85srs.js";
|
|
47
|
+
import"./chunks/fetch-q187pxxd.js";
|
|
48
|
+
import"./chunks/fetch-5cpb32hf.js";
|
|
49
|
+
import"./chunks/fetch-ny1j968n.js";
|
|
50
|
+
import"./chunks/fetch-t32e1bbt.js";
|
|
51
|
+
import"./chunks/fetch-z3e7v67k.js";
|
|
52
|
+
import"./chunks/fetch-w9jcwh65.js";
|
|
53
|
+
import"./chunks/fetch-8sb6qqpn.js";
|
|
54
|
+
import"./chunks/fetch-s802fzg1.js";
|
|
55
|
+
import"./chunks/fetch-j87xz9bt.js";
|
|
56
|
+
import"./chunks/fetch-htyf2qs7.js";
|
|
57
|
+
import"./chunks/fetch-b3bmdkga.js";
|
|
58
|
+
import"./chunks/fetch-50bbk3b2.js";
|
|
59
|
+
import"./chunks/fetch-smaf4a18.js";
|
|
60
|
+
import"./chunks/fetch-xthc02cw.js";
|
|
61
|
+
import"./chunks/fetch-q4bn6dy8.js";
|
|
62
|
+
import"./chunks/fetch-j4at0y5c.js";
|
|
63
63
|
export {
|
|
64
64
|
exports_fetch as ServerFetch,
|
|
65
|
-
|
|
65
|
+
make3 as make
|
|
66
66
|
};
|
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/fetch-8mj7kvhm.js";
|
|
4
|
+
import"../chunks/fetch-j87xz9bt.js";
|
|
5
|
+
import"../chunks/fetch-htyf2qs7.js";
|
|
6
|
+
import"../chunks/fetch-b3bmdkga.js";
|
|
7
|
+
import"../chunks/fetch-50bbk3b2.js";
|
|
8
|
+
import"../chunks/fetch-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|