@opencode/server 0.0.0-dev-44 → 0.0.0-dev-51
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 +4 -4
- package/dist/chunks/{options-s9k7mqbm.js → options-1h63dkgz.js} +10 -10
- package/dist/chunks/{options-e9906t2e.js → options-32zxn73z.js} +1 -1
- package/dist/chunks/{options-e6e4kz0w.js → options-39nnfjx1.js} +3 -3
- package/dist/chunks/{options-5pdfedjd.js → options-3te71694.js} +3 -3
- package/dist/chunks/{options-22wspztn.js → options-4xzps9pr.js} +2 -2
- package/dist/chunks/{options-wcfd0w14.js → options-57bnbjk6.js} +2 -2
- package/dist/chunks/{options-hax1v4bv.js → options-62bfwtjc.js} +2 -2
- package/dist/chunks/{options-xe9t9xr4.js → options-85kbrn7y.js} +2 -2
- package/dist/chunks/{options-6vs5sqy6.js → options-9q55v56g.js} +2 -2
- package/dist/chunks/{options-e46y0tfd.js → options-axx4wwen.js} +2 -2
- package/dist/chunks/{options-nha9c8fp.js → options-bknbvq67.js} +2 -2
- package/dist/chunks/{options-be53s2qz.js → options-dags6vpm.js} +1 -1
- package/dist/chunks/{options-gk0yxcp6.js → options-ddnay6e1.js} +1 -1
- package/dist/chunks/{options-b2k9041j.js → options-e0z6mnzj.js} +1 -1
- package/dist/chunks/{options-zgt2tacv.js → options-ey9m07rx.js} +1 -1
- package/dist/chunks/{options-h072q2hm.js → options-f0kpaq89.js} +1 -1
- package/dist/chunks/{options-yr4wsvrw.js → options-f96zeczf.js} +2 -2
- package/dist/chunks/{options-gqq6kfhc.js → options-gymtz25n.js} +2 -2
- package/dist/chunks/{options-2xcc0x05.js → options-hr24310e.js} +1 -1
- package/dist/chunks/{options-17ecnfcg.js → options-j5nctpa6.js} +2 -2
- package/dist/chunks/{options-x8dgc261.js → options-j6d0mxrp.js} +2 -2
- package/dist/chunks/{options-dk68ymtv.js → options-mam5ppd3.js} +1 -1
- package/dist/chunks/{options-fqnn17ss.js → options-mftrjw1x.js} +32 -32
- package/dist/chunks/{options-kffvskmv.js → options-nzrkt0f5.js} +2 -2
- package/dist/chunks/{options-vj2c9626.js → options-pbxe02h0.js} +2 -2
- package/dist/chunks/{options-xga54a1t.js → options-pf68b6b2.js} +1 -1
- package/dist/chunks/{options-ppma8fcc.js → options-q7gnt7ra.js} +2 -2
- package/dist/chunks/{options-khcas2q2.js → options-sst5eg8z.js} +4 -4
- package/dist/chunks/{options-r6vmgwff.js → options-tgb4pddq.js} +2 -2
- package/dist/chunks/{options-awjv4jq4.js → options-v4jqkmz1.js} +2 -2
- package/dist/chunks/{options-9c4eyh8m.js → options-v7p1kzzd.js} +3 -3
- package/dist/chunks/{options-j9gxd9me.js → options-va7wgp70.js} +2 -2
- package/dist/chunks/{options-m5rae7m4.js → options-vyzvby0b.js} +2 -2
- package/dist/chunks/{options-yet0vexm.js → options-x74w7e1f.js} +1 -1
- package/dist/chunks/{options-hnheq3hv.js → options-xad49dn3.js} +2 -2
- package/dist/chunks/{options-wxj3d9av.js → options-xfynz25m.js} +2 -2
- package/dist/chunks/{options-1je14sn4.js → options-xwy6frfd.js} +1 -1
- package/dist/chunks/{options-0a5jm2na.js → options-y56ann6c.js} +2 -2
- package/dist/chunks/{options-h9rcwvg0.js → options-z48nkxh0.js} +1 -1
- package/dist/chunks/{options-z59gyc0x.js → options-zzxz7279.js} +2 -2
- package/dist/chunks/{options-zjy4sw3d.js → options-zzyy0zrw.js} +2 -2
- package/dist/fetch.js +45 -45
- package/dist/handlers/agent.js +5 -5
- package/dist/handlers/command.js +5 -5
- package/dist/handlers/config.js +5 -5
- package/dist/handlers/credential.js +5 -5
- package/dist/handlers/debug.js +5 -5
- package/dist/handlers/event.js +5 -5
- package/dist/handlers/form.js +5 -5
- package/dist/handlers/fs.js +5 -5
- package/dist/handlers/generate.js +5 -5
- package/dist/handlers/integration.js +5 -5
- package/dist/handlers/location.js +5 -5
- package/dist/handlers/mcp.js +6 -6
- package/dist/handlers/message.js +6 -6
- package/dist/handlers/migration.js +5 -5
- package/dist/handlers/model.js +5 -5
- package/dist/handlers/permission.js +5 -5
- package/dist/handlers/persistent-pty.js +6 -6
- package/dist/handlers/plugin.js +5 -5
- package/dist/handlers/project.js +5 -5
- package/dist/handlers/provider.js +5 -5
- package/dist/handlers/pty.js +6 -6
- package/dist/handlers/reference.js +5 -5
- package/dist/handlers/rpc.js +5 -5
- package/dist/handlers/server.js +6 -6
- package/dist/handlers/session.js +6 -6
- package/dist/handlers/shell.js +5 -5
- package/dist/handlers/skill.js +5 -5
- package/dist/handlers/usage.js +5 -5
- package/dist/handlers/vcs.js +5 -5
- package/dist/handlers/voice.js +5 -5
- package/dist/handlers/websearch.js +5 -5
- package/dist/handlers/worktree.js +5 -5
- package/dist/handlers.js +40 -40
- package/dist/location.js +3 -3
- package/dist/middleware/form-location.js +2 -2
- package/dist/middleware/session-location.js +2 -2
- package/dist/process.js +42 -42
- package/dist/routes.js +42 -42
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +3 -3
- package/dist/workerd.js +42 -42
- package/package.json +8 -8
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./chunks/options-
|
|
4
|
-
import"./chunks/options-
|
|
5
|
-
import"./chunks/options-
|
|
6
|
-
import"./chunks/options-
|
|
3
|
+
} from "./chunks/options-v7p1kzzd.js";
|
|
4
|
+
import"./chunks/options-ddnay6e1.js";
|
|
5
|
+
import"./chunks/options-x74w7e1f.js";
|
|
6
|
+
import"./chunks/options-gymtz25n.js";
|
|
7
7
|
import"./chunks/options-smaf4a18.js";
|
|
8
8
|
export {
|
|
9
9
|
Api2 as Api
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./options-
|
|
2
|
+
layer2
|
|
3
|
+
} from "./options-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
formLocationLayer2
|
|
6
|
-
} from "./options-
|
|
6
|
+
} from "./options-ddnay6e1.js";
|
|
7
7
|
import {
|
|
8
8
|
sessionLocationLayer2
|
|
9
|
-
} from "./options-
|
|
9
|
+
} from "./options-x74w7e1f.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./options-
|
|
12
|
+
} from "./options-v7p1kzzd.js";
|
|
13
13
|
import {
|
|
14
14
|
Config2
|
|
15
15
|
} from "./options-peg0afvz.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
CorsConfig2
|
|
18
18
|
} from "./options-q4bn6dy8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./options-
|
|
20
|
+
layer3
|
|
21
|
+
} from "./options-3te71694.js";
|
|
22
22
|
import {
|
|
23
23
|
node2
|
|
24
24
|
} from "./options-kqr36gas.js";
|
|
25
25
|
import {
|
|
26
26
|
handlers2
|
|
27
|
-
} from "./options-
|
|
27
|
+
} from "./options-mftrjw1x.js";
|
|
28
28
|
import {
|
|
29
29
|
authorizationLayer2
|
|
30
30
|
} from "./options-9tsb9bht.js";
|
|
@@ -149,8 +149,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
|
|
|
149
149
|
})) : build(overrides);
|
|
150
150
|
return serviceLayer.pipe(Layer.flatMap((context) => {
|
|
151
151
|
const services = Layer.succeedContext(context);
|
|
152
|
-
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)),
|
|
153
|
-
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(
|
|
152
|
+
const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer3(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
|
|
153
|
+
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(layer2), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
|
|
154
154
|
return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
|
|
155
155
|
}));
|
|
156
156
|
}
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_service_status = {};
|
|
7
7
|
__export(exports_service_status, {
|
|
8
8
|
Status: () => exports_service_status,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Ref } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make2 = 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 make3 = Effect.fnUntraced(function* (options = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make2, exports_service_status };
|
|
@@ -8,14 +8,14 @@ __export(exports_server_info, {
|
|
|
8
8
|
ServerInfo: () => exports_server_info,
|
|
9
9
|
Service: () => Service3,
|
|
10
10
|
connectionURLs: () => connectionURLs2,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { networkInterfaces } from "node:os";
|
|
15
15
|
|
|
16
16
|
class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function layer3(urls, tmp, app = {}) {
|
|
19
19
|
return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
|
|
20
20
|
}
|
|
21
21
|
function connectionURLs2(value, requestedHostname) {
|
|
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
38
38
|
];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { Service3,
|
|
41
|
+
export { Service3, layer3, connectionURLs2, exports_server_info };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./options-
|
|
3
|
+
} from "./options-v7p1kzzd.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./options-peg0afvz.js";
|
|
10
10
|
import {
|
|
11
11
|
Service3
|
|
12
|
-
} from "./options-
|
|
12
|
+
} from "./options-3te71694.js";
|
|
13
13
|
import {
|
|
14
14
|
Service2
|
|
15
15
|
} from "./options-kqr36gas.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./options-
|
|
4
|
+
} from "./options-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./options-
|
|
7
|
+
} from "./options-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/provider.ts
|
|
10
10
|
import { Provider } from "@opencode/core/provider";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./options-
|
|
4
|
+
} from "./options-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./options-
|
|
7
|
+
} from "./options-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/websearch.ts
|
|
10
10
|
import { WebSearch } from "@opencode/core/websearch";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./options-
|
|
5
|
+
} from "./options-gymtz25n.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./options-
|
|
8
|
+
} from "./options-v7p1kzzd.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./options-
|
|
3
|
+
} from "./options-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./options-
|
|
6
|
+
} from "./options-v7p1kzzd.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/reference.ts
|
|
9
9
|
import { Reference } from "@opencode/core/reference";
|
|
@@ -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 layer3 = 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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
locationErrors2,
|
|
3
3
|
awaitPlugins2
|
|
4
|
-
} from "./options-
|
|
4
|
+
} from "./options-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./options-
|
|
7
|
+
} from "./options-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/generate.ts
|
|
10
10
|
import { Generate } from "@opencode/core/generate";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./options-
|
|
3
|
+
} from "./options-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./options-
|
|
6
|
+
} from "./options-v7p1kzzd.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "./options-
|
|
3
|
+
} from "./options-j5nctpa6.js";
|
|
4
4
|
import {
|
|
5
5
|
VoiceHandler2
|
|
6
|
-
} from "./options-
|
|
6
|
+
} from "./options-xfynz25m.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageHandler2
|
|
9
|
-
} from "./options-
|
|
9
|
+
} from "./options-ey9m07rx.js";
|
|
10
10
|
import {
|
|
11
11
|
ModelHandler2
|
|
12
|
-
} from "./options-
|
|
12
|
+
} from "./options-y56ann6c.js";
|
|
13
13
|
import {
|
|
14
14
|
ProviderHandler2
|
|
15
|
-
} from "./options-
|
|
15
|
+
} from "./options-62bfwtjc.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionHandler2
|
|
18
|
-
} from "./options-
|
|
18
|
+
} from "./options-nzrkt0f5.js";
|
|
19
19
|
import {
|
|
20
20
|
PermissionHandler2
|
|
21
|
-
} from "./options-
|
|
21
|
+
} from "./options-q7gnt7ra.js";
|
|
22
22
|
import {
|
|
23
23
|
FileSystemHandler2
|
|
24
|
-
} from "./options-
|
|
24
|
+
} from "./options-tgb4pddq.js";
|
|
25
25
|
import {
|
|
26
26
|
FormHandler2
|
|
27
|
-
} from "./options-
|
|
27
|
+
} from "./options-vyzvby0b.js";
|
|
28
28
|
import {
|
|
29
29
|
CommandHandler2
|
|
30
|
-
} from "./options-
|
|
30
|
+
} from "./options-zzxz7279.js";
|
|
31
31
|
import {
|
|
32
32
|
SkillHandler2
|
|
33
|
-
} from "./options-
|
|
33
|
+
} from "./options-9q55v56g.js";
|
|
34
34
|
import {
|
|
35
35
|
RpcHandler2
|
|
36
|
-
} from "./options-
|
|
36
|
+
} from "./options-hr24310e.js";
|
|
37
37
|
import {
|
|
38
38
|
layer4
|
|
39
39
|
} from "./options-wecgp61r.js";
|
|
40
40
|
import {
|
|
41
41
|
EventHandler2
|
|
42
|
-
} from "./options-
|
|
42
|
+
} from "./options-32zxn73z.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentHandler2
|
|
45
|
-
} from "./options-
|
|
45
|
+
} from "./options-xad49dn3.js";
|
|
46
46
|
import {
|
|
47
47
|
PluginHandler2
|
|
48
|
-
} from "./options-
|
|
48
|
+
} from "./options-v4jqkmz1.js";
|
|
49
49
|
import {
|
|
50
50
|
ServerHandler2
|
|
51
|
-
} from "./options-
|
|
51
|
+
} from "./options-57bnbjk6.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugHandler2
|
|
54
|
-
} from "./options-
|
|
54
|
+
} from "./options-j6d0mxrp.js";
|
|
55
55
|
import {
|
|
56
56
|
PtyHandler2
|
|
57
|
-
} from "./options-
|
|
57
|
+
} from "./options-pbxe02h0.js";
|
|
58
58
|
import {
|
|
59
59
|
PersistentPtyHandler2
|
|
60
|
-
} from "./options-
|
|
60
|
+
} from "./options-pf68b6b2.js";
|
|
61
61
|
import {
|
|
62
62
|
ShellHandler2
|
|
63
|
-
} from "./options-
|
|
63
|
+
} from "./options-4xzps9pr.js";
|
|
64
64
|
import {
|
|
65
65
|
ReferenceHandler2
|
|
66
|
-
} from "./options-
|
|
66
|
+
} from "./options-f96zeczf.js";
|
|
67
67
|
import {
|
|
68
68
|
LocationHandler2
|
|
69
|
-
} from "./options-
|
|
69
|
+
} from "./options-f0kpaq89.js";
|
|
70
70
|
import {
|
|
71
71
|
IntegrationHandler2
|
|
72
|
-
} from "./options-
|
|
72
|
+
} from "./options-zzyy0zrw.js";
|
|
73
73
|
import {
|
|
74
74
|
WebSearchHandler2
|
|
75
|
-
} from "./options-
|
|
75
|
+
} from "./options-axx4wwen.js";
|
|
76
76
|
import {
|
|
77
77
|
UsageHandler2
|
|
78
|
-
} from "./options-
|
|
78
|
+
} from "./options-va7wgp70.js";
|
|
79
79
|
import {
|
|
80
80
|
McpHandler2
|
|
81
|
-
} from "./options-
|
|
81
|
+
} from "./options-bknbvq67.js";
|
|
82
82
|
import {
|
|
83
83
|
CredentialHandler2
|
|
84
|
-
} from "./options-
|
|
84
|
+
} from "./options-dags6vpm.js";
|
|
85
85
|
import {
|
|
86
86
|
ProjectHandler2
|
|
87
|
-
} from "./options-
|
|
87
|
+
} from "./options-mam5ppd3.js";
|
|
88
88
|
import {
|
|
89
89
|
WorktreeHandler2
|
|
90
|
-
} from "./options-
|
|
90
|
+
} from "./options-z48nkxh0.js";
|
|
91
91
|
import {
|
|
92
92
|
VcsHandler2
|
|
93
|
-
} from "./options-
|
|
93
|
+
} from "./options-85kbrn7y.js";
|
|
94
94
|
import {
|
|
95
95
|
MigrationHandler2
|
|
96
|
-
} from "./options-
|
|
96
|
+
} from "./options-xwy6frfd.js";
|
|
97
97
|
import {
|
|
98
98
|
ConfigHandler2
|
|
99
|
-
} from "./options-
|
|
99
|
+
} from "./options-e0z6mnzj.js";
|
|
100
100
|
|
|
101
101
|
// src/handlers.ts
|
|
102
102
|
import { Layer } from "effect";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./options-smaf4a18.js";
|
|
7
7
|
import {
|
|
8
8
|
locationErrors2
|
|
9
|
-
} from "./options-
|
|
9
|
+
} from "./options-gymtz25n.js";
|
|
10
10
|
import {
|
|
11
11
|
Api2
|
|
12
|
-
} from "./options-
|
|
12
|
+
} from "./options-v7p1kzzd.js";
|
|
13
13
|
import {
|
|
14
14
|
wantsMediaRefs2
|
|
15
15
|
} from "./options-xthc02cw.js";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
locationErrors2,
|
|
3
3
|
response2,
|
|
4
4
|
requestRef2
|
|
5
|
-
} from "./options-
|
|
5
|
+
} from "./options-gymtz25n.js";
|
|
6
6
|
import {
|
|
7
7
|
Api2
|
|
8
|
-
} from "./options-
|
|
8
|
+
} from "./options-v7p1kzzd.js";
|
|
9
9
|
import {
|
|
10
10
|
CorsConfig2,
|
|
11
11
|
isAllowedRequestOrigin2
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
locationErrors2,
|
|
6
6
|
response2,
|
|
7
7
|
sessionInfo2
|
|
8
|
-
} from "./options-
|
|
8
|
+
} from "./options-gymtz25n.js";
|
|
9
9
|
import {
|
|
10
10
|
Api2
|
|
11
|
-
} from "./options-
|
|
11
|
+
} from "./options-v7p1kzzd.js";
|
|
12
12
|
|
|
13
13
|
// src/handlers/permission.ts
|
|
14
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./options-q4bn6dy8.js";
|
|
4
4
|
import {
|
|
5
5
|
createRoutes2
|
|
6
|
-
} from "./options-
|
|
6
|
+
} from "./options-1h63dkgz.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./options-9rqn6x4v.js";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
var exports_fetch = {};
|
|
13
13
|
__export(exports_fetch, {
|
|
14
14
|
ServerFetch: () => exports_fetch,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make3
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { HttpEffect, HttpMiddleware, HttpRouter, HttpServer } from "effect/http";
|
|
19
19
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
20
|
-
var
|
|
20
|
+
var make3 = Effect.fn("ServerFetch.make")(function* (options = {}, boot = {}) {
|
|
21
21
|
const context = yield* Layer.build(createRoutes2(options, () => [], boot.overrides ?? []).pipe(Layer.provide(HttpServer.layerServices)));
|
|
22
22
|
yield* Effect.forkDetach(Context.get(context, SessionRestart.Service).resumeSuspendedSessions);
|
|
23
23
|
return Context.get(context, HttpRouter.HttpRouter).asHttpEffect().pipe(HttpMiddleware.cors({ allowedOrigins: (origin) => isAllowedCorsOrigin2(origin, options), maxAge: 86400 }), HttpEffect.toWebHandlerWith(context));
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export {
|
|
26
|
+
export { make3, exports_fetch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationMiddleware2
|
|
3
|
-
} from "./options-
|
|
3
|
+
} from "./options-gymtz25n.js";
|
|
4
4
|
import {
|
|
5
5
|
FormLocationMiddleware2
|
|
6
|
-
} from "./options-
|
|
6
|
+
} from "./options-ddnay6e1.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionLocationMiddleware2
|
|
9
|
-
} from "./options-
|
|
9
|
+
} from "./options-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
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./options-
|
|
4
|
+
} from "./options-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./options-
|
|
7
|
+
} from "./options-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/usage.ts
|
|
10
10
|
import { UsageLimits } from "@opencode/core/usage-limits";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
awaitPlugins2,
|
|
3
3
|
response2
|
|
4
|
-
} from "./options-
|
|
4
|
+
} from "./options-gymtz25n.js";
|
|
5
5
|
import {
|
|
6
6
|
Api2
|
|
7
|
-
} from "./options-
|
|
7
|
+
} from "./options-v7p1kzzd.js";
|
|
8
8
|
|
|
9
9
|
// src/handlers/agent.ts
|
|
10
10
|
import { Agent } from "@opencode/core/agent";
|