@opencode/server 0.0.0-dev-20484 → 0.0.0-dev-20487
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 +1 -1
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{request-tracing-haswyr8z.js → options-0vyswjsz.js} +2 -2
- package/dist/chunks/{request-tracing-v1emgcvb.js → options-16qfdx6b.js} +2 -2
- package/dist/chunks/{request-tracing-zf591zt5.js → options-1jt81jww.js} +31 -31
- package/dist/chunks/{request-tracing-e1j0tbav.js → options-1nwce8pe.js} +1 -1
- package/dist/chunks/{request-tracing-pme11y2y.js → options-1xva44q8.js} +2 -2
- package/dist/chunks/{request-tracing-mb9kfqxc.js → options-38mss1vg.js} +7 -7
- package/dist/chunks/{request-tracing-26ta7ngt.js → options-4rww2e47.js} +2 -2
- package/dist/chunks/{request-tracing-96s6m0w3.js → options-4y8nafk4.js} +2 -2
- package/dist/chunks/{request-tracing-x5ncpjy3.js → options-4znne276.js} +2 -2
- package/dist/chunks/{request-tracing-3kzx88w9.js → options-796j10e5.js} +5 -4
- package/dist/chunks/{request-tracing-rjqbhscq.js → options-7gfv664k.js} +5 -2
- package/dist/chunks/{request-tracing-6qwktr1g.js → options-7rxakzjh.js} +1 -1
- package/dist/chunks/{request-tracing-19ydfr4n.js → options-9b6d3t5z.js} +6 -6
- package/dist/chunks/{request-tracing-v573ws0d.js → options-9cw9axw5.js} +3 -3
- package/dist/chunks/{request-tracing-5bwq5cz2.js → options-ajzgetf8.js} +2 -2
- package/dist/chunks/{request-tracing-anm12x33.js → options-anm12x33.js} +1 -1
- package/dist/chunks/{request-tracing-wz0qz28j.js → options-ca257yb3.js} +2 -2
- package/dist/chunks/{request-tracing-r2rnm758.js → options-dj3ptmhp.js} +3 -3
- package/dist/chunks/{request-tracing-hp5sxeae.js → options-dqsr2g0t.js} +2 -2
- package/dist/chunks/{request-tracing-pckpdj13.js → options-e7bkqh1q.js} +19 -19
- package/dist/chunks/{request-tracing-3atyrqsp.js → options-e7epzz5x.js} +2 -2
- package/dist/chunks/{request-tracing-6gkz39ey.js → options-f2c3fmpg.js} +13 -6
- package/dist/chunks/{request-tracing-p09w8kwp.js → options-g85r3kcp.js} +2 -2
- package/dist/chunks/{request-tracing-vzvra1kj.js → options-gny2k2ap.js} +11 -8
- package/dist/chunks/{request-tracing-gtkdacvk.js → options-gtkdacvk.js} +1 -1
- package/dist/chunks/{request-tracing-bt9tc5rb.js → options-hvft24jv.js} +1 -1
- package/dist/chunks/{request-tracing-bmqkn4ah.js → options-jzqzrtw5.js} +1 -1
- package/dist/chunks/{request-tracing-7eckj7zq.js → options-krn4521r.js} +2 -2
- package/dist/chunks/{request-tracing-140y8w7p.js → options-n52yc5x0.js} +2 -2
- package/dist/chunks/{request-tracing-np19kmxx.js → options-n9dmzgaj.js} +2 -2
- package/dist/chunks/{request-tracing-7wjh4a38.js → options-ptp53rxp.js} +6 -6
- package/dist/chunks/{request-tracing-rjpqaa8h.js → options-rjpqaa8h.js} +1 -1
- package/dist/chunks/{request-tracing-v305azr7.js → options-s4aja1df.js} +7 -7
- package/dist/chunks/{request-tracing-b1rdg9nf.js → options-td9k2nw3.js} +2 -2
- package/dist/chunks/{request-tracing-bkk2wfbz.js → options-tnr0rqd3.js} +8 -8
- package/dist/chunks/{request-tracing-ees77nh9.js → options-v9pcqbqn.js} +2 -2
- package/dist/chunks/{request-tracing-qj9kjxn3.js → options-vb9atgxj.js} +1 -1
- package/dist/chunks/{request-tracing-5rwqcaw2.js → options-w070c2h2.js} +6 -5
- package/dist/chunks/{request-tracing-hr75rahr.js → options-weqhmjbd.js} +2 -2
- package/dist/chunks/{request-tracing-byt4hbw9.js → options-x6486bry.js} +4 -4
- package/dist/chunks/{request-tracing-5w24ch67.js → options-xsrtpxyd.js} +4 -4
- package/dist/chunks/{request-tracing-f8rap8f6.js → options-y1grnrmm.js} +1 -1
- package/dist/chunks/{request-tracing-t88f2hhf.js → options-ym27c8rr.js} +5 -4
- package/dist/chunks/{request-tracing-ctscy0f5.js → options-yybdkkb6.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.js +1 -1
- 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.d.ts +5 -3
- package/dist/location.js +6 -4
- package/dist/middleware/authorization.js +2 -2
- package/dist/middleware/form-location.d.ts +3 -3
- package/dist/middleware/form-location.js +3 -3
- package/dist/middleware/schema-error.js +1 -1
- package/dist/middleware/session-location.d.ts +3 -3
- package/dist/middleware/session-location.js +3 -3
- package/dist/pairing.js +3 -3
- package/dist/process.js +51 -51
- package/dist/pty-environment.js +7 -7
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +2 -2
- 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/{request-tracing-9rqn6x4v.js → options-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{request-tracing-hezj1jdf.js → options-hezj1jdf.js} +0 -0
- /package/dist/chunks/{request-tracing-q4bn6dy8.js → options-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{request-tracing-smaf4a18.js → options-smaf4a18.js} +0 -0
- /package/dist/chunks/{request-tracing-t8yzmczr.js → options-t8yzmczr.js} +0 -0
- /package/dist/chunks/{request-tracing-yc7nft6q.js → options-yc7nft6q.js} +0 -0
|
@@ -3,10 +3,13 @@ import {
|
|
|
3
3
|
missingMessage2,
|
|
4
4
|
failedMessageDecode2,
|
|
5
5
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-smaf4a18.js";
|
|
7
|
+
import {
|
|
8
|
+
locationErrors2
|
|
9
|
+
} from "./options-f2c3fmpg.js";
|
|
7
10
|
import {
|
|
8
11
|
Api2
|
|
9
|
-
} from "./
|
|
12
|
+
} from "./options-9cw9axw5.js";
|
|
10
13
|
|
|
11
14
|
// src/handlers/session.ts
|
|
12
15
|
import { Session } from "@opencode/core/session";
|
|
@@ -188,7 +191,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
188
191
|
}).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.PromptConflictError", (error) => Effect.fail(new ConflictError({
|
|
189
192
|
message: `Prompt message ID conflicts with an existing durable record: ${error.messageID}`,
|
|
190
193
|
resource: error.messageID
|
|
191
|
-
}))), Effect.catchTag("Session.AttachmentError", (error) => Effect.fail(new InvalidRequestError({ message: error.message, field: "files" }))), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new InvalidRequestError({ message: `Skill not found: ${error.skill}`, field: "skills" }))))
|
|
194
|
+
}))), Effect.catchTag("Session.AttachmentError", (error) => Effect.fail(new InvalidRequestError({ message: error.message, field: "files" }))), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new InvalidRequestError({ message: `Skill not found: ${error.skill}`, field: "skills" }))), locationErrors2)
|
|
192
195
|
};
|
|
193
196
|
})).handle("session.command", Effect.fn(function* (ctx) {
|
|
194
197
|
yield* session.command({
|
|
@@ -205,14 +208,14 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
205
208
|
}))), Effect.catchTag("Command.ExecutionError", (error) => Effect.fail(new CommandExecutionError({
|
|
206
209
|
command: error.command,
|
|
207
210
|
message: error.message
|
|
208
|
-
}))));
|
|
211
|
+
}))), locationErrors2);
|
|
209
212
|
return HttpApiSchema.NoContent.make();
|
|
210
213
|
})).handle("session.skill", Effect.fn(function* (ctx) {
|
|
211
214
|
yield* session.skill({
|
|
212
215
|
sessionID: ctx.params.sessionID,
|
|
213
216
|
skill: ctx.payload.id,
|
|
214
217
|
resume: ctx.payload.resume
|
|
215
|
-
}).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new SkillNotFoundError({ skill: error.skill, message: `Skill not found: ${error.skill}` }))));
|
|
218
|
+
}).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new SkillNotFoundError({ skill: error.skill, message: `Skill not found: ${error.skill}` }))), locationErrors2);
|
|
216
219
|
return HttpApiSchema.NoContent.make();
|
|
217
220
|
})).handle("session.synthetic", Effect.fn(function* (ctx) {
|
|
218
221
|
const data = yield* session.synthetic({
|
|
@@ -248,11 +251,11 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
248
251
|
files: ctx.payload.files
|
|
249
252
|
});
|
|
250
253
|
return {
|
|
251
|
-
data: yield* session.revert.stage({ ...ctx.params, ...ctx.payload }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("stage session revert", ctx.params.sessionID)))
|
|
254
|
+
data: yield* session.revert.stage({ ...ctx.params, ...ctx.payload }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("stage session revert", ctx.params.sessionID)), locationErrors2)
|
|
252
255
|
};
|
|
253
256
|
})).handle("session.revert.clear", Effect.fn(function* (ctx) {
|
|
254
257
|
yield* Effect.log("session.revert.clear", { sessionID: ctx.params.sessionID });
|
|
255
|
-
yield* session.revert.clear(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("clear session revert", ctx.params.sessionID)));
|
|
258
|
+
yield* session.revert.clear(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Snapshot.Error", failedSnapshot2("clear session revert", ctx.params.sessionID)), locationErrors2);
|
|
256
259
|
return HttpApiSchema.NoContent.make();
|
|
257
260
|
})).handle("session.revert.commit", Effect.fn(function* (ctx) {
|
|
258
261
|
yield* Effect.log("session.revert.commit", { sessionID: ctx.params.sessionID });
|
|
@@ -264,7 +267,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
264
267
|
};
|
|
265
268
|
})).handle("session.diff", Effect.fn(function* (ctx) {
|
|
266
269
|
return {
|
|
267
|
-
data: yield* session.diff({ sessionID: ctx.params.sessionID, ...ctx.query }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.TurnRangeError", (error) => new InvalidRequestError({ message: error.message, field: error.field })), Effect.catchTag("Snapshot.Error", failedSnapshot2("diff session turn", ctx.params.sessionID)))
|
|
270
|
+
data: yield* session.diff({ sessionID: ctx.params.sessionID, ...ctx.query }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.MessageNotFoundError", missingMessage2), Effect.catchTag("Session.TurnRangeError", (error) => new InvalidRequestError({ message: error.message, field: error.field })), Effect.catchTag("Snapshot.Error", failedSnapshot2("diff session turn", ctx.params.sessionID)), locationErrors2)
|
|
268
271
|
};
|
|
269
272
|
})).handle("session.inbox.list", Effect.fn(function* (ctx) {
|
|
270
273
|
return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/shell.ts
|
|
9
9
|
import { Shell } from "@opencode/core/shell";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestRef2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/debug.ts
|
|
9
9
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/integration.ts
|
|
9
9
|
import { Integration } from "@opencode/core/integration";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Api2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-9cw9axw5.js";
|
|
4
4
|
import {
|
|
5
5
|
SESSION_TTL_SECONDS2,
|
|
6
6
|
Config2,
|
|
7
7
|
issueSession2,
|
|
8
8
|
sessionCookieName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./options-anm12x33.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service2
|
|
12
|
+
} from "./options-s4aja1df.js";
|
|
13
13
|
import {
|
|
14
14
|
Service4
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./options-x6486bry.js";
|
|
16
16
|
|
|
17
17
|
// src/handlers/server.ts
|
|
18
18
|
import { Duration, Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => E
|
|
|
24
24
|
const pairing = yield* Service4;
|
|
25
25
|
const auth = yield* Config2;
|
|
26
26
|
return handlers.handle("server.info", () => Effect.gen(function* () {
|
|
27
|
-
const info = yield*
|
|
27
|
+
const info = yield* Service2;
|
|
28
28
|
return {
|
|
29
29
|
version: info.app.version ?? "unknown",
|
|
30
30
|
pid: process.pid ?? 0,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-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
|
-
layer: () =>
|
|
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
|
-
function
|
|
19
|
-
return Layer.succeed(
|
|
18
|
+
function layer2(urls, tmp, app = {}) {
|
|
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);
|
|
@@ -33,4 +33,4 @@ function connectionURLs2(value, requestedHostname) {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export {
|
|
36
|
+
export { Service2, layer2, connectionURLs2, exports_server_info };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/model.ts
|
|
9
9
|
import { Model } from "@opencode/core/model";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-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: () => layer4,
|
|
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 layer4 = Layer.succeed(Service5, Service5.of({
|
|
19
19
|
get: () => Effect.succeed({})
|
|
20
20
|
}));
|
|
21
|
-
var
|
|
21
|
+
var node3 = makeGlobalNode({ service: Service5, layer: layer4, deps: [] });
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { Service5, layer4, node3, exports_pty_environment };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/form.ts
|
|
9
9
|
import { Form } from "@opencode/core/form";
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
+
locationErrors2,
|
|
2
3
|
sessionInfo2,
|
|
3
4
|
requestRef2
|
|
4
|
-
} from "./
|
|
5
|
+
} from "./options-f2c3fmpg.js";
|
|
5
6
|
|
|
6
7
|
// src/middleware/form-location.ts
|
|
7
8
|
import { Instance } from "@opencode/core/instance/service";
|
|
8
9
|
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
9
10
|
import { Session } from "@opencode/core/session";
|
|
10
|
-
import { InvalidRequestError, SessionNotFoundError } from "@opencode/protocol/errors";
|
|
11
|
+
import { LocationNotFoundError, InvalidRequestError, SessionNotFoundError } from "@opencode/protocol/errors";
|
|
11
12
|
import { Effect, Layer } from "effect";
|
|
12
13
|
import { HttpRouter, HttpServerRequest } from "effect/unstable/http";
|
|
13
14
|
import { HttpApiMiddleware } from "effect/unstable/httpapi";
|
|
14
15
|
class FormLocationMiddleware2 extends HttpApiMiddleware.Service()("@opencode/HttpApiFormLocation", {
|
|
15
|
-
error: [InvalidRequestError, SessionNotFoundError]
|
|
16
|
+
error: [InvalidRequestError, SessionNotFoundError, LocationNotFoundError]
|
|
16
17
|
}) {
|
|
17
18
|
}
|
|
18
19
|
var formLocationLayer2 = Layer.effect(FormLocationMiddleware2, Effect.gen(function* () {
|
|
@@ -23,10 +24,10 @@ var formLocationLayer2 = Layer.effect(FormLocationMiddleware2, Effect.gen(functi
|
|
|
23
24
|
const route = yield* HttpRouter.RouteContext;
|
|
24
25
|
if (route.params.sessionID === "global") {
|
|
25
26
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
26
|
-
return yield* effect.pipe(Effect.provide(locations.get(requestRef2(request))));
|
|
27
|
+
return yield* effect.pipe(Effect.provide(locations.get(requestRef2(request))), locationErrors2);
|
|
27
28
|
}
|
|
28
29
|
const session = yield* sessionInfo2(sessions, route.params.sessionID);
|
|
29
|
-
return yield* effect.pipe(instances.provide(session));
|
|
30
|
+
return yield* effect.pipe(instances.provide(session), locationErrors2);
|
|
30
31
|
}));
|
|
31
32
|
}));
|
|
32
33
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/plugin.ts
|
|
9
9
|
import { Plugin } from "@opencode/core/plugin";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-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
9
|
Service: () => Service4,
|
|
10
|
-
node: () =>
|
|
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";
|
|
@@ -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: Service4, layer, deps: [] });
|
|
34
34
|
|
|
35
|
-
export { Service4,
|
|
35
|
+
export { Service4, node2, exports_pairing };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-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: () => 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 };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-smaf4a18.js";
|
|
4
4
|
import {
|
|
5
|
+
locationErrors2,
|
|
5
6
|
response2,
|
|
6
7
|
sessionInfo2
|
|
7
|
-
} from "./
|
|
8
|
+
} from "./options-f2c3fmpg.js";
|
|
8
9
|
import {
|
|
9
10
|
Api2
|
|
10
|
-
} from "./
|
|
11
|
+
} from "./options-9cw9axw5.js";
|
|
11
12
|
|
|
12
13
|
// src/handlers/permission.ts
|
|
13
14
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -50,7 +51,7 @@ var PermissionHandler2 = HttpApiBuilder.group(Api2, "server.permission", (handle
|
|
|
50
51
|
};
|
|
51
52
|
})).handle("session.permission.list", Effect.fn(function* (ctx) {
|
|
52
53
|
const session = yield* sessionInfo2(sessions, ctx.params.sessionID);
|
|
53
|
-
const requests = yield* Permission.Service.use((permission) => permission.forSession(ctx.params.sessionID)).pipe(instances.provide(session));
|
|
54
|
+
const requests = yield* Permission.Service.use((permission) => permission.forSession(ctx.params.sessionID)).pipe(instances.provide(session), locationErrors2);
|
|
54
55
|
return { data: requests };
|
|
55
56
|
})).handle("session.permission.get", Effect.fn(function* (ctx) {
|
|
56
57
|
const owned = yield* requireOwnedRequest(ctx.params.sessionID, ctx.params.requestID);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
response2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./options-f2c3fmpg.js";
|
|
4
4
|
import {
|
|
5
5
|
Api2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./options-9cw9axw5.js";
|
|
7
7
|
|
|
8
8
|
// src/handlers/agent.ts
|
|
9
9
|
import { Agent } from "@opencode/core/agent";
|
package/dist/cors.js
CHANGED
package/dist/event-feed.js
CHANGED
package/dist/fetch.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
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/
|
|
4
|
+
} from "./chunks/options-9b6d3t5z.js";
|
|
5
|
+
import"./chunks/options-e7bkqh1q.js";
|
|
6
|
+
import"./chunks/options-t8yzmczr.js";
|
|
7
|
+
import"./chunks/options-gtkdacvk.js";
|
|
8
|
+
import"./chunks/options-1jt81jww.js";
|
|
9
|
+
import"./chunks/options-yybdkkb6.js";
|
|
10
|
+
import"./chunks/options-v9pcqbqn.js";
|
|
11
|
+
import"./chunks/options-n52yc5x0.js";
|
|
12
|
+
import"./chunks/options-7gfv664k.js";
|
|
13
|
+
import"./chunks/options-38mss1vg.js";
|
|
14
|
+
import"./chunks/options-0vyswjsz.js";
|
|
15
|
+
import"./chunks/options-n9dmzgaj.js";
|
|
16
|
+
import"./chunks/options-gny2k2ap.js";
|
|
17
|
+
import"./chunks/options-4rww2e47.js";
|
|
18
|
+
import"./chunks/options-jzqzrtw5.js";
|
|
19
|
+
import"./chunks/options-y1grnrmm.js";
|
|
20
|
+
import"./chunks/options-ajzgetf8.js";
|
|
21
|
+
import"./chunks/options-ptp53rxp.js";
|
|
22
|
+
import"./chunks/options-ca257yb3.js";
|
|
23
|
+
import"./chunks/options-ym27c8rr.js";
|
|
24
|
+
import"./chunks/options-e7epzz5x.js";
|
|
25
|
+
import"./chunks/options-krn4521r.js";
|
|
26
|
+
import"./chunks/options-weqhmjbd.js";
|
|
27
|
+
import"./chunks/options-td9k2nw3.js";
|
|
28
|
+
import"./chunks/options-16qfdx6b.js";
|
|
29
|
+
import"./chunks/options-1nwce8pe.js";
|
|
30
|
+
import"./chunks/options-vb9atgxj.js";
|
|
31
|
+
import"./chunks/options-g85r3kcp.js";
|
|
32
|
+
import"./chunks/options-1xva44q8.js";
|
|
33
|
+
import"./chunks/options-dj3ptmhp.js";
|
|
34
|
+
import"./chunks/options-hezj1jdf.js";
|
|
35
|
+
import"./chunks/options-4y8nafk4.js";
|
|
36
|
+
import"./chunks/options-4znne276.js";
|
|
37
|
+
import"./chunks/options-dqsr2g0t.js";
|
|
38
|
+
import"./chunks/options-7rxakzjh.js";
|
|
39
|
+
import"./chunks/options-hvft24jv.js";
|
|
40
|
+
import"./chunks/options-s4aja1df.js";
|
|
41
|
+
import"./chunks/options-rjpqaa8h.js";
|
|
42
|
+
import"./chunks/options-anm12x33.js";
|
|
43
|
+
import"./chunks/options-q4bn6dy8.js";
|
|
44
|
+
import"./chunks/options-x6486bry.js";
|
|
45
|
+
import"./chunks/options-tnr0rqd3.js";
|
|
46
|
+
import"./chunks/options-9cw9axw5.js";
|
|
47
|
+
import"./chunks/options-w070c2h2.js";
|
|
48
|
+
import"./chunks/options-796j10e5.js";
|
|
49
|
+
import"./chunks/options-f2c3fmpg.js";
|
|
50
|
+
import"./chunks/options-smaf4a18.js";
|
|
51
51
|
export {
|
|
52
52
|
exports_fetch as ServerFetch,
|
|
53
|
-
|
|
53
|
+
make3 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/options-yybdkkb6.js";
|
|
4
|
+
import"../chunks/options-9cw9axw5.js";
|
|
5
|
+
import"../chunks/options-w070c2h2.js";
|
|
6
|
+
import"../chunks/options-796j10e5.js";
|
|
7
|
+
import"../chunks/options-f2c3fmpg.js";
|
|
8
|
+
import"../chunks/options-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/options-1xva44q8.js";
|
|
4
|
+
import"../chunks/options-9cw9axw5.js";
|
|
5
|
+
import"../chunks/options-w070c2h2.js";
|
|
6
|
+
import"../chunks/options-796j10e5.js";
|
|
7
|
+
import"../chunks/options-f2c3fmpg.js";
|
|
8
|
+
import"../chunks/options-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/options-7rxakzjh.js";
|
|
4
|
+
import"../chunks/options-9cw9axw5.js";
|
|
5
|
+
import"../chunks/options-w070c2h2.js";
|
|
6
|
+
import"../chunks/options-796j10e5.js";
|
|
7
|
+
import"../chunks/options-f2c3fmpg.js";
|
|
8
|
+
import"../chunks/options-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/options-1nwce8pe.js";
|
|
4
|
+
import"../chunks/options-9cw9axw5.js";
|
|
5
|
+
import"../chunks/options-w070c2h2.js";
|
|
6
|
+
import"../chunks/options-796j10e5.js";
|
|
7
|
+
import"../chunks/options-f2c3fmpg.js";
|
|
8
|
+
import"../chunks/options-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
CredentialHandler2 as CredentialHandler
|
|
11
11
|
};
|