@opencode/server 0.0.0-dev-21059 → 0.0.0-dev-21067
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/{handlers-98r9ymd0.js → event-feed-0614xxr7.js} +3 -3
- package/dist/chunks/{handlers-6t8za67t.js → event-feed-0cppk2bc.js} +2 -2
- package/dist/chunks/{handlers-8qevqaq9.js → event-feed-34zx6kms.js} +33 -33
- package/dist/chunks/{handlers-6br0y3ag.js → event-feed-3aej5azy.js} +1 -1
- package/dist/chunks/{handlers-0m09ryg3.js → event-feed-3atcw39t.js} +2 -2
- package/dist/chunks/{handlers-1ahadpvw.js → event-feed-4gnb9897.js} +1 -1
- package/dist/chunks/{handlers-gqq6kfhc.js → event-feed-50bbk3b2.js} +3 -3
- package/dist/chunks/{handlers-vtvdbwhg.js → event-feed-6ypp9np2.js} +2 -2
- package/dist/chunks/{handlers-m0y4004e.js → event-feed-7b00qdf6.js} +1 -1
- package/dist/chunks/{handlers-33mhyesg.js → event-feed-841zr39a.js} +6 -6
- package/dist/chunks/{handlers-eexzgxyp.js → event-feed-9ap5adx4.js} +8 -8
- package/dist/chunks/{handlers-anm12x33.js → event-feed-anm12x33.js} +1 -1
- package/dist/chunks/{handlers-yet0vexm.js → event-feed-b3bmdkga.js} +1 -1
- package/dist/chunks/{handlers-sq0m2new.js → event-feed-e2hzz5kk.js} +3 -3
- package/dist/chunks/{handlers-ej45n981.js → event-feed-eaxk76q8.js} +2 -2
- package/dist/chunks/{handlers-nvdz1s2r.js → event-feed-esbdfpyn.js} +2 -2
- package/dist/chunks/{handlers-gv627jgt.js → event-feed-ez8kk7rt.js} +1 -1
- package/dist/chunks/{handlers-wtxh433d.js → event-feed-gsqctp76.js} +2 -2
- package/dist/chunks/{handlers-6kta5392.js → event-feed-gx9nwmym.js} +2 -2
- package/dist/chunks/{handlers-77mqkxfz.js → event-feed-j1p3e665.js} +2 -2
- package/dist/chunks/{handlers-vdfdkndj.js → event-feed-jyqwgkdk.js} +3 -3
- package/dist/chunks/{handlers-g0rzwe5g.js → event-feed-k7wggcq2.js} +7 -7
- package/dist/chunks/{handlers-aqzwjzmb.js → event-feed-k8rzy6d4.js} +1 -1
- package/dist/chunks/{handlers-hspp8v12.js → event-feed-krpsczf8.js} +2 -2
- package/dist/chunks/{handlers-67kmywtk.js → event-feed-mahm5rvs.js} +2 -2
- package/dist/chunks/{handlers-19dc7z8q.js → event-feed-mhfbkkb7.js} +2 -2
- package/dist/chunks/{handlers-cqhyyp3f.js → event-feed-mk2mz66m.js} +2 -2
- package/dist/chunks/{handlers-v1jdrp9c.js → event-feed-n60r5keb.js} +1 -1
- package/dist/chunks/{handlers-pxdkane5.js → event-feed-p6ct2ak8.js} +2 -2
- package/dist/chunks/{handlers-gb66h69v.js → event-feed-q8n44kky.js} +3 -3
- package/dist/chunks/{handlers-byt4hbw9.js → event-feed-rbn15j6z.js} +8 -8
- package/dist/chunks/{handlers-q8cqvm6j.js → event-feed-rc3nk1bx.js} +2 -2
- package/dist/chunks/{handlers-wf9nh8mj.js → event-feed-rxde50hq.js} +4 -4
- package/dist/chunks/{handlers-rmttg9h7.js → event-feed-tp1rntzw.js} +1 -1
- package/dist/chunks/{handlers-74sf36cc.js → event-feed-vbanrv0z.js} +1 -1
- package/dist/chunks/{handlers-atk2et4d.js → event-feed-vdtx70fv.js} +2 -2
- package/dist/chunks/{handlers-xsrtpxyd.js → event-feed-vpz7f20y.js} +4 -4
- package/dist/chunks/{handlers-j8p25vmv.js → event-feed-w0jn068c.js} +2 -2
- package/dist/chunks/{handlers-d0efjmp3.js → event-feed-w61qxgd4.js} +10 -10
- package/dist/chunks/{handlers-bkk2wfbz.js → event-feed-wv5twc2g.js} +8 -8
- package/dist/chunks/{handlers-nvh3x1xr.js → event-feed-xdf2rf2e.js} +7 -7
- package/dist/chunks/{handlers-yfz2nrjq.js → event-feed-yfz2nrjq.js} +1 -1
- package/dist/chunks/{handlers-xxxx0904.js → event-feed-yv9sxhn9.js} +2 -2
- package/dist/chunks/{handlers-qa0532gh.js → event-feed-z07e8sqv.js} +19 -19
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +7 -7
- package/dist/fetch.js +49 -49
- 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/websearch.js +6 -6
- package/dist/handlers/worktree.js +6 -6
- package/dist/handlers.js +43 -43
- 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 +5 -5
- package/dist/process.js +51 -51
- package/dist/pty-environment.js +7 -7
- package/dist/request-tracing.js +1 -1
- package/dist/routes.js +46 -46
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +50 -50
- package/package.json +8 -8
- /package/dist/chunks/{handlers-9rqn6x4v.js → event-feed-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{handlers-erzfdgke.js → event-feed-erzfdgke.js} +0 -0
- /package/dist/chunks/{handlers-h6rt5k9s.js → event-feed-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{handlers-q4bn6dy8.js → event-feed-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{handlers-smaf4a18.js → event-feed-smaf4a18.js} +0 -0
- /package/dist/chunks/{handlers-yc7nft6q.js → event-feed-yc7nft6q.js} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-feed-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: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service2,
|
|
10
|
+
node: () => node2
|
|
11
11
|
});
|
|
12
12
|
import { Cache, Context, Duration, Effect, Layer } from "effect";
|
|
13
13
|
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 Service2 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(Service2, Effect.gen(function* () {
|
|
21
21
|
const cache = yield* Cache.make({ capacity: 1000, lookup: noLookup, timeToLive: TTL });
|
|
22
|
-
return
|
|
22
|
+
return Service2.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(Service4, Effect.gen(function* () {
|
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
}));
|
|
33
|
-
var
|
|
33
|
+
var node2 = makeGlobalNode({ service: Service2, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Service2, node2, exports_pairing };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-feed-q8n44kky.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-feed-w61qxgd4.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/event.ts
|
|
10
10
|
import { Event } from "@opencode/schema/event";
|
|
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
|
|
|
12
12
|
import { HttpServerResponse } from "effect/http";
|
|
13
13
|
import { HttpApiBuilder } from "effect/http-api";
|
|
14
14
|
var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
|
|
15
|
-
const feed = yield*
|
|
15
|
+
const feed = yield* Service4;
|
|
16
16
|
return handlers.handleRaw("event.subscribe", () => Effect.gen(function* () {
|
|
17
17
|
const connected = {
|
|
18
18
|
id: Event.ID.create(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./event-feed-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-feed-q8n44kky.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-feed-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: () => make4
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make4 = 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 { make4, exports_service_status };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./event-feed-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-feed-q8n44kky.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-feed-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/event-feed.ts
|
|
6
6
|
var exports_event_feed = {};
|
|
7
7
|
__export(exports_event_feed, {
|
|
8
8
|
EncodingError: () => EncodingError2,
|
|
9
9
|
EventFeed: () => exports_event_feed,
|
|
10
|
-
Service: () =>
|
|
10
|
+
Service: () => Service4,
|
|
11
11
|
SubscriberCapacity: () => SubscriberCapacity2,
|
|
12
12
|
SubscriberOverflowError: () => SubscriberOverflowError2,
|
|
13
13
|
frame: () => frame2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
make: () =>
|
|
14
|
+
layer: () => layer3,
|
|
15
|
+
make: () => make3
|
|
16
16
|
});
|
|
17
17
|
import { Bus } from "@opencode/core/bus";
|
|
18
18
|
import { Event } from "@opencode/schema/event";
|
|
@@ -30,14 +30,14 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
|
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class Service4 extends Context.Service()("@opencode/server/EventFeed") {
|
|
34
34
|
}
|
|
35
35
|
function frame2(event) {
|
|
36
36
|
return `data: ${JSON.stringify(event)}
|
|
37
37
|
|
|
38
38
|
`;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var make3 = 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;
|
|
@@ -71,13 +71,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
71
71
|
});
|
|
72
72
|
const unsubscribe = yield* observe(publish);
|
|
73
73
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
74
|
-
return
|
|
74
|
+
return Service4.of({
|
|
75
75
|
subscribe: Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.add(queue)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
var
|
|
78
|
+
var layer3 = Layer.effect(Service4, Effect.gen(function* () {
|
|
79
79
|
const bus = yield* Bus.Service;
|
|
80
|
-
return yield*
|
|
80
|
+
return yield* make3(bus.listen);
|
|
81
81
|
}));
|
|
82
82
|
|
|
83
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
83
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make3, layer3, exports_event_feed };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-feed-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
|
-
Service: () =>
|
|
10
|
-
layer: () =>
|
|
11
|
-
node: () =>
|
|
9
|
+
Service: () => Service5,
|
|
10
|
+
layer: () => layer5,
|
|
11
|
+
node: () => node3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Effect, Layer } from "effect";
|
|
14
14
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service5 extends Context.Service()("@opencode/ServerPtyEnvironment") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var layer5 = Layer.succeed(Service5, Service5.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var
|
|
21
|
+
var node3 = makeGlobalNode({ service: Service5, layer: layer5, deps: [] });
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { Service5, layer5, node3, exports_pty_environment };
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./event-feed-50bbk3b2.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./event-feed-q8n44kky.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-feed-q4bn6dy8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service5
|
|
15
|
+
} from "./event-feed-wv5twc2g.js";
|
|
16
16
|
import {
|
|
17
17
|
runPtySocket2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./event-feed-h6rt5k9s.js";
|
|
19
19
|
|
|
20
20
|
// src/handlers/pty.ts
|
|
21
21
|
import { Pty } from "@opencode/core/pty";
|
|
@@ -41,7 +41,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
|
|
|
41
41
|
const locations = yield* LocationServiceMap.Service;
|
|
42
42
|
const tickets = yield* PtyTicket.Service;
|
|
43
43
|
const cors = yield* CorsConfig2;
|
|
44
|
-
const environment = yield*
|
|
44
|
+
const environment = yield* Service5;
|
|
45
45
|
return handlers.handle("pty.list", Effect.fn(function* () {
|
|
46
46
|
const pty = yield* Pty.Service;
|
|
47
47
|
return yield* response2(pty.list());
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./event-feed-50bbk3b2.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-feed-q8n44kky.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/model.ts
|
|
10
10
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
layer4
|
|
3
|
+
} from "./event-feed-50bbk3b2.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-feed-4gnb9897.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-feed-b3bmdkga.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-feed-q8n44kky.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./event-feed-anm12x33.js";
|
|
16
16
|
import {
|
|
17
17
|
CorsConfig2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./event-feed-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
22
|
-
import {
|
|
23
|
-
node3
|
|
24
|
-
} from "./handlers-byt4hbw9.js";
|
|
20
|
+
layer2
|
|
21
|
+
} from "./event-feed-k7wggcq2.js";
|
|
25
22
|
import {
|
|
26
23
|
node2
|
|
27
|
-
} from "./
|
|
24
|
+
} from "./event-feed-rbn15j6z.js";
|
|
25
|
+
import {
|
|
26
|
+
node3
|
|
27
|
+
} from "./event-feed-wv5twc2g.js";
|
|
28
28
|
import {
|
|
29
29
|
handlers2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./event-feed-34zx6kms.js";
|
|
31
31
|
import {
|
|
32
32
|
authorizationLayer2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./event-feed-yfz2nrjq.js";
|
|
34
34
|
import {
|
|
35
35
|
schemaErrorLayer2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./event-feed-erzfdgke.js";
|
|
37
37
|
|
|
38
38
|
// src/routes.ts
|
|
39
39
|
import { Database } from "@opencode/core/database/database";
|
|
@@ -92,8 +92,8 @@ var applicationServiceNodes = [
|
|
|
92
92
|
PersistentPty.node,
|
|
93
93
|
Credential.node,
|
|
94
94
|
WellKnown.node,
|
|
95
|
-
node2,
|
|
96
95
|
node3,
|
|
96
|
+
node2,
|
|
97
97
|
LocationServiceMap.node,
|
|
98
98
|
LocationActivity.node,
|
|
99
99
|
SessionRestart.node,
|
|
@@ -146,8 +146,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
146
146
|
})) : build(overrides);
|
|
147
147
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
148
148
|
const services = Layer.succeedContext(context);
|
|
149
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
150
|
-
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(
|
|
149
|
+
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));
|
|
150
|
+
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.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
151
151
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
152
152
|
}));
|
|
153
153
|
}
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
SubscriberCapacity2,
|
|
3
3
|
SubscriberOverflowError2,
|
|
4
4
|
EncodingError2,
|
|
5
|
-
|
|
5
|
+
Service4,
|
|
6
6
|
frame2,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
make3,
|
|
8
|
+
layer3,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/event-feed-w61qxgd4.js";
|
|
11
11
|
export {
|
|
12
12
|
EncodingError2 as EncodingError,
|
|
13
13
|
exports_event_feed as EventFeed,
|
|
14
|
-
|
|
14
|
+
Service4 as Service,
|
|
15
15
|
SubscriberCapacity2 as SubscriberCapacity,
|
|
16
16
|
SubscriberOverflowError2 as SubscriberOverflowError,
|
|
17
17
|
frame2 as frame,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
layer3 as layer,
|
|
19
|
+
make3 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/
|
|
4
|
+
} from "./chunks/event-feed-841zr39a.js";
|
|
5
|
+
import"./chunks/event-feed-z07e8sqv.js";
|
|
6
|
+
import"./chunks/event-feed-yfz2nrjq.js";
|
|
7
|
+
import"./chunks/event-feed-erzfdgke.js";
|
|
8
|
+
import"./chunks/event-feed-34zx6kms.js";
|
|
9
|
+
import"./chunks/event-feed-xdf2rf2e.js";
|
|
10
|
+
import"./chunks/event-feed-7b00qdf6.js";
|
|
11
|
+
import"./chunks/event-feed-jyqwgkdk.js";
|
|
12
|
+
import"./chunks/event-feed-esbdfpyn.js";
|
|
13
|
+
import"./chunks/event-feed-p6ct2ak8.js";
|
|
14
|
+
import"./chunks/event-feed-3aej5azy.js";
|
|
15
|
+
import"./chunks/event-feed-j1p3e665.js";
|
|
16
|
+
import"./chunks/event-feed-mahm5rvs.js";
|
|
17
|
+
import"./chunks/event-feed-rc3nk1bx.js";
|
|
18
|
+
import"./chunks/event-feed-yv9sxhn9.js";
|
|
19
|
+
import"./chunks/event-feed-0cppk2bc.js";
|
|
20
|
+
import"./chunks/event-feed-n60r5keb.js";
|
|
21
|
+
import"./chunks/event-feed-ez8kk7rt.js";
|
|
22
|
+
import"./chunks/event-feed-3atcw39t.js";
|
|
23
|
+
import"./chunks/event-feed-tp1rntzw.js";
|
|
24
|
+
import"./chunks/event-feed-vdtx70fv.js";
|
|
25
|
+
import"./chunks/event-feed-mhfbkkb7.js";
|
|
26
|
+
import"./chunks/event-feed-6ypp9np2.js";
|
|
27
|
+
import"./chunks/event-feed-rxde50hq.js";
|
|
28
|
+
import"./chunks/event-feed-gx9nwmym.js";
|
|
29
|
+
import"./chunks/event-feed-w0jn068c.js";
|
|
30
|
+
import"./chunks/event-feed-vbanrv0z.js";
|
|
31
|
+
import"./chunks/event-feed-k8rzy6d4.js";
|
|
32
|
+
import"./chunks/event-feed-gsqctp76.js";
|
|
33
|
+
import"./chunks/event-feed-9ap5adx4.js";
|
|
34
|
+
import"./chunks/event-feed-eaxk76q8.js";
|
|
35
|
+
import"./chunks/event-feed-0614xxr7.js";
|
|
36
|
+
import"./chunks/event-feed-krpsczf8.js";
|
|
37
|
+
import"./chunks/event-feed-h6rt5k9s.js";
|
|
38
|
+
import"./chunks/event-feed-mk2mz66m.js";
|
|
39
|
+
import"./chunks/event-feed-e2hzz5kk.js";
|
|
40
|
+
import"./chunks/event-feed-rbn15j6z.js";
|
|
41
|
+
import"./chunks/event-feed-anm12x33.js";
|
|
42
|
+
import"./chunks/event-feed-k7wggcq2.js";
|
|
43
|
+
import"./chunks/event-feed-w61qxgd4.js";
|
|
44
|
+
import"./chunks/event-feed-q8n44kky.js";
|
|
45
|
+
import"./chunks/event-feed-b3bmdkga.js";
|
|
46
|
+
import"./chunks/event-feed-4gnb9897.js";
|
|
47
|
+
import"./chunks/event-feed-50bbk3b2.js";
|
|
48
|
+
import"./chunks/event-feed-smaf4a18.js";
|
|
49
|
+
import"./chunks/event-feed-wv5twc2g.js";
|
|
50
|
+
import"./chunks/event-feed-q4bn6dy8.js";
|
|
51
51
|
export {
|
|
52
52
|
exports_fetch as ServerFetch,
|
|
53
|
-
|
|
53
|
+
make2 as make
|
|
54
54
|
};
|
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/event-feed-mk2mz66m.js";
|
|
4
|
+
import"../chunks/event-feed-q8n44kky.js";
|
|
5
|
+
import"../chunks/event-feed-b3bmdkga.js";
|
|
6
|
+
import"../chunks/event-feed-4gnb9897.js";
|
|
7
|
+
import"../chunks/event-feed-50bbk3b2.js";
|
|
8
|
+
import"../chunks/event-feed-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|
package/dist/handlers/command.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/event-feed-mahm5rvs.js";
|
|
4
|
+
import"../chunks/event-feed-q8n44kky.js";
|
|
5
|
+
import"../chunks/event-feed-b3bmdkga.js";
|
|
6
|
+
import"../chunks/event-feed-4gnb9897.js";
|
|
7
|
+
import"../chunks/event-feed-50bbk3b2.js";
|
|
8
|
+
import"../chunks/event-feed-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
CommandHandler2 as CommandHandler
|
|
11
11
|
};
|
package/dist/handlers/config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/event-feed-ez8kk7rt.js";
|
|
4
|
+
import"../chunks/event-feed-q8n44kky.js";
|
|
5
|
+
import"../chunks/event-feed-b3bmdkga.js";
|
|
6
|
+
import"../chunks/event-feed-4gnb9897.js";
|
|
7
|
+
import"../chunks/event-feed-50bbk3b2.js";
|
|
8
|
+
import"../chunks/event-feed-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ConfigHandler2 as ConfigHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredentialHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/event-feed-n60r5keb.js";
|
|
4
|
+
import"../chunks/event-feed-q8n44kky.js";
|
|
5
|
+
import"../chunks/event-feed-b3bmdkga.js";
|
|
6
|
+
import"../chunks/event-feed-4gnb9897.js";
|
|
7
|
+
import"../chunks/event-feed-50bbk3b2.js";
|
|
8
|
+
import"../chunks/event-feed-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
CredentialHandler2 as CredentialHandler
|
|
11
11
|
};
|
package/dist/handlers/debug.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DebugHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/event-feed-esbdfpyn.js";
|
|
4
|
+
import"../chunks/event-feed-q8n44kky.js";
|
|
5
|
+
import"../chunks/event-feed-b3bmdkga.js";
|
|
6
|
+
import"../chunks/event-feed-4gnb9897.js";
|
|
7
|
+
import"../chunks/event-feed-50bbk3b2.js";
|
|
8
|
+
import"../chunks/event-feed-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
DebugHandler2 as DebugHandler
|
|
11
11
|
};
|
package/dist/handlers/event.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EventHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/event-feed-rxde50hq.js";
|
|
4
|
+
import"../chunks/event-feed-w61qxgd4.js";
|
|
5
|
+
import"../chunks/event-feed-q8n44kky.js";
|
|
6
|
+
import"../chunks/event-feed-b3bmdkga.js";
|
|
7
|
+
import"../chunks/event-feed-4gnb9897.js";
|
|
8
|
+
import"../chunks/event-feed-50bbk3b2.js";
|
|
9
|
+
import"../chunks/event-feed-smaf4a18.js";
|
|
10
10
|
export {
|
|
11
11
|
EventHandler2 as EventHandler
|
|
12
12
|
};
|