@opencode/server 2.4.1 → 2.4.2
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 +45 -1
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{workerd-0rzj25w4.js → range-017ycvbx.js} +1 -1
- package/dist/chunks/{workerd-86dz2n4m.js → range-0x6anvwr.js} +2 -2
- package/dist/chunks/{workerd-39nnfjx1.js → range-39nnfjx1.js} +1 -1
- package/dist/chunks/{workerd-b1x3j2e8.js → range-3rtm8r3z.js} +2 -2
- package/dist/chunks/{workerd-7dtbad8d.js → range-3te71694.js} +7 -7
- package/dist/chunks/{workerd-nkfbbfe7.js → range-5pef2nys.js} +4 -4
- package/dist/chunks/{workerd-hgrkvk6s.js → range-6pm6ek88.js} +1 -1
- package/dist/chunks/{workerd-20wvj9q6.js → range-78jk0pbb.js} +2 -2
- package/dist/chunks/{workerd-kffke7z4.js → range-79t5cra8.js} +14 -10
- package/dist/chunks/{workerd-7x6cg3xs.js → range-7zz6jxhb.js} +2 -2
- package/dist/chunks/{workerd-8sb6qqpn.js → range-8sb6qqpn.js} +1 -1
- package/dist/chunks/{workerd-4r2ye500.js → range-9agv2b4c.js} +2 -2
- package/dist/chunks/{workerd-qahj7606.js → range-aexh791j.js} +1 -1
- package/dist/chunks/{workerd-zrptb2x8.js → range-amxj52x5.js} +2 -2
- package/dist/chunks/{workerd-s8t5gq7c.js → range-ay32z58n.js} +3 -3
- package/dist/chunks/{workerd-pv4dnzzq.js → range-b3sk57wg.js} +1 -1
- package/dist/chunks/{workerd-b7yt2ykh.js → range-c6kzfg4f.js} +2 -2
- package/dist/chunks/{workerd-w13ad1dk.js → range-cddawxec.js} +3 -3
- package/dist/chunks/{workerd-djr0jy89.js → range-djr0jy89.js} +1 -1
- package/dist/chunks/range-dnyhqccw.js +27 -0
- package/dist/chunks/{workerd-d0advawr.js → range-f93zkajm.js} +2 -2
- package/dist/chunks/{workerd-g23ffrnz.js → range-g23ffrnz.js} +2 -2
- package/dist/chunks/{workerd-wh07bcjv.js → range-gwtm9cga.js} +1 -1
- package/dist/chunks/{workerd-v0z8pce5.js → range-heqw7kpr.js} +2 -2
- package/dist/chunks/{workerd-6t6fd9bq.js → range-hgd5b6k8.js} +2 -2
- package/dist/chunks/{workerd-j4at0y5c.js → range-j4at0y5c.js} +1 -1
- package/dist/chunks/{workerd-8mfdzabk.js → range-jrjpfy36.js} +2 -2
- package/dist/chunks/{workerd-n6ypjnhz.js → range-jy2ammbg.js} +1 -1
- package/dist/chunks/{workerd-g97h7k0s.js → range-k2bx5n4e.js} +1 -1
- package/dist/chunks/{workerd-t8azv5ge.js → range-k518ftvz.js} +2 -2
- package/dist/chunks/{workerd-edwk6ehd.js → range-k58xpxwn.js} +1 -1
- package/dist/chunks/{workerd-w9jcwh65.js → range-kqr36gas.js} +7 -7
- package/dist/chunks/{workerd-8n1ypg70.js → range-mjhh6jvz.js} +3 -3
- package/dist/chunks/{workerd-myqk22k5.js → range-myqk22k5.js} +2 -2
- package/dist/chunks/{workerd-77gnb026.js → range-n8nthg9q.js} +4 -4
- package/dist/chunks/{workerd-b87bs0cf.js → range-pa4xtt5h.js} +2 -2
- package/dist/chunks/range-qpnw2qd1.js +58 -0
- package/dist/chunks/{workerd-rktygpea.js → range-rktygpea.js} +1 -1
- package/dist/chunks/{workerd-k26h7zjg.js → range-rn83nvae.js} +2 -2
- package/dist/chunks/{workerd-smaf4a18.js → range-rqgv9x42.js} +6 -2
- package/dist/chunks/{workerd-5dgtfnrn.js → range-s3d15g1k.js} +23 -17
- package/dist/chunks/{workerd-vxy32kc1.js → range-s557cdqw.js} +14 -4
- package/dist/chunks/{workerd-73tyf2qy.js → range-s6q3ch5r.js} +8 -8
- package/dist/chunks/{workerd-t62b1gmw.js → range-sqfq92mf.js} +2 -2
- package/dist/chunks/{workerd-j80tzjj3.js → range-stx1bw5w.js} +3 -3
- package/dist/chunks/{workerd-t32e1bbt.js → range-t32e1bbt.js} +1 -1
- package/dist/chunks/{workerd-g80pvn6e.js → range-tmb89r25.js} +2 -2
- package/dist/chunks/{workerd-jpqse2v9.js → range-tmbyzr8c.js} +35 -35
- package/dist/chunks/{workerd-4gbck4qg.js → range-vkj8vbyf.js} +2 -2
- package/dist/chunks/{workerd-p9wp66hf.js → range-vnpm7f9y.js} +1 -1
- package/dist/chunks/{workerd-3rn5pzng.js → range-wa6vk4hf.js} +14 -9
- package/dist/chunks/{workerd-bvm82fhd.js → range-wazndna9.js} +4 -4
- package/dist/chunks/{workerd-fvpjvjpp.js → range-wecgp61r.js} +7 -7
- package/dist/chunks/{workerd-7ydfwv45.js → range-x2qy7jg1.js} +1 -1
- package/dist/chunks/{workerd-dqfyxmp4.js → range-zs3ssmns.js} +26 -21
- package/dist/chunks/{workerd-p4zkxzv7.js → range-zx60pg73.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.d.ts +57 -0
- package/dist/fetch.js +64 -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/machine.js +1 -1
- 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.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +17 -16
- 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/push.d.ts +28 -0
- package/dist/handlers/push.js +6 -0
- 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.d.ts +3 -1
- package/dist/handlers/session-error.js +4 -2
- 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.d.ts +1 -1
- package/dist/handlers.js +54 -53
- 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.d.ts +1 -1
- package/dist/pairing.js +3 -3
- package/dist/process.js +62 -61
- package/dist/range.js +1 -1
- package/dist/request-site.js +2 -2
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +4 -2
- package/dist/routes.js +58 -57
- package/dist/server-info.js +5 -5
- package/dist/service-status.js +1 -1
- package/dist/workerd.d.ts +20 -6
- package/dist/workerd.js +87 -81
- package/package.json +9 -9
- package/dist/chunks/workerd-4apj6a8e.js +0 -13
- /package/dist/chunks/{workerd-9rqn6x4v.js → range-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{workerd-bd8755ek.js → range-bd8755ek.js} +0 -0
- /package/dist/chunks/{workerd-n26yr6pw.js → range-n26yr6pw.js} +0 -0
- /package/dist/chunks/{workerd-q187pxxd.js → range-q187pxxd.js} +0 -0
- /package/dist/chunks/{workerd-q4bn6dy8.js → range-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{workerd-xthc02cw.js → range-xthc02cw.js} +0 -0
- /package/dist/chunks/{workerd-yc7nft6q.js → range-yc7nft6q.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./range-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: () =>
|
|
14
|
+
layer: () => layer4,
|
|
15
15
|
make: () => make4
|
|
16
16
|
});
|
|
17
17
|
import { Bus } from "@opencode/core/bus";
|
|
@@ -30,7 +30,7 @@ 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)}
|
|
@@ -72,13 +72,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
|
|
|
72
72
|
});
|
|
73
73
|
const unsubscribe = yield* observe(publish);
|
|
74
74
|
yield* Effect.addFinalizer(() => unsubscribe);
|
|
75
|
-
return
|
|
75
|
+
return Service4.of({
|
|
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 layer4 = Layer.effect(Service4, Effect.gen(function* () {
|
|
80
80
|
const bus = yield* Bus.Service;
|
|
81
81
|
return yield* make4(bus.listen);
|
|
82
82
|
}));
|
|
83
83
|
|
|
84
|
-
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2,
|
|
84
|
+
export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
missingSession2,
|
|
3
|
+
skillLoadFailed2,
|
|
3
4
|
missingMessage2,
|
|
4
5
|
failedMessageDecode2,
|
|
5
6
|
failedSnapshot2
|
|
6
|
-
} from "./
|
|
7
|
+
} from "./range-rqgv9x42.js";
|
|
7
8
|
import {
|
|
8
9
|
locationErrors2
|
|
9
|
-
} from "./
|
|
10
|
+
} from "./range-stx1bw5w.js";
|
|
10
11
|
import {
|
|
11
12
|
Api2
|
|
12
|
-
} from "./
|
|
13
|
+
} from "./range-ay32z58n.js";
|
|
13
14
|
import {
|
|
14
15
|
wantsMediaRefs2
|
|
15
|
-
} from "./
|
|
16
|
+
} from "./range-xthc02cw.js";
|
|
16
17
|
|
|
17
18
|
// src/handlers/session.ts
|
|
18
19
|
import { Instance } from "@opencode/core/instance/service";
|
|
@@ -58,6 +59,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
58
59
|
return yield* missingForm(formID);
|
|
59
60
|
return { form, info };
|
|
60
61
|
});
|
|
62
|
+
const unarchiveOnUserInput = (sessionID) => session.unarchive(sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
|
|
61
63
|
const busySession = (error) => new SessionBusyError({
|
|
62
64
|
sessionID: error.sessionID,
|
|
63
65
|
message: `Session is busy: ${error.sessionID}`
|
|
@@ -158,22 +160,22 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
158
160
|
}).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.DestinationNotFoundError", (error) => Effect.fail(new InvalidRequestError({ message: `Directory does not exist: ${error.directory}` }))), Effect.catchTag("Session.DestinationNotDirectoryError", (error) => Effect.fail(new InvalidRequestError({ message: `Not a directory: ${error.directory}` }))), Effect.catchTag("Session.DestinationUnavailableError", (error) => Effect.fail(new InvalidRequestError({ message: `Directory is unavailable: ${error.directory}` }))));
|
|
159
161
|
return HttpApiSchema.NoContent.make();
|
|
160
162
|
})).handle("session.prompt", Effect.fn(function* (ctx) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
};
|
|
163
|
+
const data = yield* session.prompt({
|
|
164
|
+
sessionID: ctx.params.sessionID,
|
|
165
|
+
id: ctx.payload.id,
|
|
166
|
+
text: ctx.payload.text,
|
|
167
|
+
files: ctx.payload.files,
|
|
168
|
+
agents: ctx.payload.agents,
|
|
169
|
+
skills: ctx.payload.skills,
|
|
170
|
+
metadata: ctx.payload.metadata,
|
|
171
|
+
delivery: ctx.payload.delivery,
|
|
172
|
+
resume: ctx.payload.resume
|
|
173
|
+
}).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.PromptConflictError", (error) => Effect.fail(new ConflictError({
|
|
174
|
+
message: `Prompt message ID conflicts with an existing durable record: ${error.messageID}`,
|
|
175
|
+
resource: error.messageID
|
|
176
|
+
}))), 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" }))), Effect.catchTag("Skill.LoadError", skillLoadFailed2), locationErrors2);
|
|
177
|
+
yield* unarchiveOnUserInput(ctx.params.sessionID);
|
|
178
|
+
return { data };
|
|
177
179
|
})).handle("session.command", Effect.fn(function* (ctx) {
|
|
178
180
|
yield* session.command({
|
|
179
181
|
sessionID: ctx.params.sessionID,
|
|
@@ -190,13 +192,15 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
190
192
|
command: error.command,
|
|
191
193
|
message: error.message
|
|
192
194
|
}))), locationErrors2);
|
|
195
|
+
yield* unarchiveOnUserInput(ctx.params.sessionID);
|
|
193
196
|
return HttpApiSchema.NoContent.make();
|
|
194
197
|
})).handle("session.skill", Effect.fn(function* (ctx) {
|
|
195
198
|
yield* session.skill({
|
|
196
199
|
sessionID: ctx.params.sessionID,
|
|
197
200
|
skill: ctx.payload.id,
|
|
198
201
|
resume: ctx.payload.resume
|
|
199
|
-
}).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);
|
|
202
|
+
}).pipe(Effect.catchTag("Session.NotFoundError", missingSession2), Effect.catchTag("Session.SkillNotFoundError", (error) => Effect.fail(new SkillNotFoundError({ skill: error.skill, message: `Skill not found: ${error.skill}` }))), Effect.catchTag("Skill.LoadError", skillLoadFailed2), locationErrors2);
|
|
203
|
+
yield* unarchiveOnUserInput(ctx.params.sessionID);
|
|
200
204
|
return HttpApiSchema.NoContent.make();
|
|
201
205
|
})).handle("session.synthetic", Effect.fn(function* (ctx) {
|
|
202
206
|
const data = yield* session.synthetic({
|
|
@@ -213,6 +217,7 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
|
|
|
213
217
|
}))));
|
|
214
218
|
return { data };
|
|
215
219
|
})).handle("session.shell", Effect.fn(function* (ctx) {
|
|
220
|
+
yield* unarchiveOnUserInput(ctx.params.sessionID);
|
|
216
221
|
yield* session.shell({ sessionID: ctx.params.sessionID, id: ctx.payload.id, command: ctx.payload.command }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
|
|
217
222
|
return HttpApiSchema.NoContent.make();
|
|
218
223
|
})).handle("session.compact", Effect.fn(function* (ctx) {
|
package/dist/content-headers.js
CHANGED
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
7
|
make4,
|
|
8
|
-
|
|
8
|
+
layer4,
|
|
9
9
|
exports_event_feed
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/range-wecgp61r.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
|
-
|
|
18
|
+
layer4 as layer,
|
|
19
19
|
make4 as make
|
|
20
20
|
};
|
package/dist/fetch.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * as ServerFetch from "./fetch";
|
|
2
2
|
import { Context, Effect } from "effect";
|
|
3
|
+
import { HttpRouter } from "effect/http";
|
|
4
|
+
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
3
5
|
import type { LayerNode } from "@opencode/util/effect/layer-node";
|
|
4
6
|
export interface BootOptions {
|
|
5
7
|
/**
|
|
@@ -8,6 +10,61 @@ export interface BootOptions {
|
|
|
8
10
|
*/
|
|
9
11
|
readonly overrides?: LayerNode.Replacements;
|
|
10
12
|
}
|
|
13
|
+
/** Internal entry for runtime profiles (such as `ServerWorkerd.create`) that also need the built service context. */
|
|
14
|
+
export declare const makeWithContext: (options?: {
|
|
15
|
+
readonly app?: {
|
|
16
|
+
readonly name?: string | undefined;
|
|
17
|
+
readonly version?: string | undefined;
|
|
18
|
+
readonly channel?: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
readonly hostname?: string | undefined;
|
|
21
|
+
readonly port?: number | undefined;
|
|
22
|
+
readonly password?: string | undefined;
|
|
23
|
+
readonly cors?: readonly string[] | undefined;
|
|
24
|
+
readonly simulation?: boolean | undefined;
|
|
25
|
+
readonly database?: {
|
|
26
|
+
readonly path?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
readonly pty?: {
|
|
29
|
+
readonly handoff?: {
|
|
30
|
+
readonly directory: string;
|
|
31
|
+
readonly instanceID: string;
|
|
32
|
+
readonly ticket: string;
|
|
33
|
+
readonly expiresAt: number;
|
|
34
|
+
} | undefined;
|
|
35
|
+
readonly root?: string | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
readonly events?: {
|
|
38
|
+
readonly persist?: boolean | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
readonly models?: {
|
|
41
|
+
readonly url?: string | undefined;
|
|
42
|
+
readonly file?: string | undefined;
|
|
43
|
+
readonly fetch?: boolean | undefined;
|
|
44
|
+
readonly snapshot?: boolean | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
readonly fetch?: import("@opencode/util/effect/app-node-platform").Fetch | undefined;
|
|
47
|
+
readonly config?: {
|
|
48
|
+
readonly directory?: string | undefined;
|
|
49
|
+
readonly project?: boolean | undefined;
|
|
50
|
+
readonly claude?: boolean | undefined;
|
|
51
|
+
readonly file?: string | undefined;
|
|
52
|
+
readonly content?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
readonly instructions?: {
|
|
55
|
+
readonly claude?: boolean | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
readonly windows?: {
|
|
58
|
+
readonly gitbash?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
readonly fs?: {
|
|
61
|
+
readonly filewatcher?: boolean | undefined;
|
|
62
|
+
readonly fff?: boolean | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
} | undefined, boot?: BootOptions | undefined) => Effect.Effect<{
|
|
65
|
+
handler: (request: Request, context?: Context.Context<never> | undefined) => Promise<globalThis.Response>;
|
|
66
|
+
context: Context.Context<import("@opencode/core/shell").Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | import("@opencode/util/fs-util").FSUtil.Service | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/core/app").Service | import("@opencode/core/credential").Service | import("@opencode/core/kv").Service | import("@opencode/core/wellknown").Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/job").Service | import("@opencode/core/machine/identity").Service | import("@opencode/core/machine/machines").Service | import("@opencode/core/workspace").Service | import("@opencode/core/permission/saved").Service | import("@opencode/core/codemode/api").Service | import("@opencode/core/location-service-map").Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/session").Service | import("@opencode/core/automation").Service | import("@opencode/core/worktree").Service | import("@opencode/core/blob-store").Service | import("@opencode/core/session/search-build").Service | import("@opencode/core/video-generation").Service | import("@opencode/core/plugin/sdk").Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/instance").Service | import("@opencode/core/bus").Service | import("@opencode/core/project").Service | SessionRestart.Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/location-activity").Service | import("@opencode/core/push/list").Service | import("@opencode/core/push/sender").Service | import("@opencode/core/filesystem/file-watch").Service | import("./pairing").Service>;
|
|
67
|
+
}, Error, import("effect/Scope").Scope>;
|
|
11
68
|
/**
|
|
12
69
|
* Builds a web-standard fetch handler — `(request: Request) => Promise<Response>` — serving the
|
|
13
70
|
* same HttpApi routes as the Node server process without binding a port, owning a listener, or
|
package/dist/fetch.js
CHANGED
|
@@ -1,67 +1,70 @@
|
|
|
1
1
|
import {
|
|
2
|
+
makeWithContext2,
|
|
2
3
|
make3,
|
|
3
4
|
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/
|
|
63
|
-
import"./chunks/
|
|
5
|
+
} from "./chunks/range-wa6vk4hf.js";
|
|
6
|
+
import"./chunks/range-myqk22k5.js";
|
|
7
|
+
import"./chunks/range-yc7nft6q.js";
|
|
8
|
+
import"./chunks/range-s3d15g1k.js";
|
|
9
|
+
import"./chunks/range-tmbyzr8c.js";
|
|
10
|
+
import"./chunks/range-rn83nvae.js";
|
|
11
|
+
import"./chunks/range-wazndna9.js";
|
|
12
|
+
import"./chunks/range-zs3ssmns.js";
|
|
13
|
+
import"./chunks/range-5pef2nys.js";
|
|
14
|
+
import"./chunks/range-mjhh6jvz.js";
|
|
15
|
+
import"./chunks/range-3rtm8r3z.js";
|
|
16
|
+
import"./chunks/range-f93zkajm.js";
|
|
17
|
+
import"./chunks/range-s6q3ch5r.js";
|
|
18
|
+
import"./chunks/range-vnpm7f9y.js";
|
|
19
|
+
import"./chunks/range-b3sk57wg.js";
|
|
20
|
+
import"./chunks/range-0x6anvwr.js";
|
|
21
|
+
import"./chunks/range-heqw7kpr.js";
|
|
22
|
+
import"./chunks/range-gwtm9cga.js";
|
|
23
|
+
import"./chunks/range-k58xpxwn.js";
|
|
24
|
+
import"./chunks/range-tmb89r25.js";
|
|
25
|
+
import"./chunks/range-c6kzfg4f.js";
|
|
26
|
+
import"./chunks/range-dnyhqccw.js";
|
|
27
|
+
import"./chunks/range-zx60pg73.js";
|
|
28
|
+
import"./chunks/range-7zz6jxhb.js";
|
|
29
|
+
import"./chunks/range-n8nthg9q.js";
|
|
30
|
+
import"./chunks/range-k2bx5n4e.js";
|
|
31
|
+
import"./chunks/range-hgd5b6k8.js";
|
|
32
|
+
import"./chunks/range-s557cdqw.js";
|
|
33
|
+
import"./chunks/range-vkj8vbyf.js";
|
|
34
|
+
import"./chunks/range-79t5cra8.js";
|
|
35
|
+
import"./chunks/range-sqfq92mf.js";
|
|
36
|
+
import"./chunks/range-qpnw2qd1.js";
|
|
37
|
+
import"./chunks/range-djr0jy89.js";
|
|
38
|
+
import"./chunks/range-017ycvbx.js";
|
|
39
|
+
import"./chunks/range-6pm6ek88.js";
|
|
40
|
+
import"./chunks/range-q187pxxd.js";
|
|
41
|
+
import"./chunks/range-g23ffrnz.js";
|
|
42
|
+
import"./chunks/range-x2qy7jg1.js";
|
|
43
|
+
import"./chunks/range-pa4xtt5h.js";
|
|
44
|
+
import"./chunks/range-9agv2b4c.js";
|
|
45
|
+
import"./chunks/range-amxj52x5.js";
|
|
46
|
+
import"./chunks/range-k518ftvz.js";
|
|
47
|
+
import"./chunks/range-jrjpfy36.js";
|
|
48
|
+
import"./chunks/range-78jk0pbb.js";
|
|
49
|
+
import"./chunks/range-cddawxec.js";
|
|
50
|
+
import"./chunks/range-kqr36gas.js";
|
|
51
|
+
import"./chunks/range-ay32z58n.js";
|
|
52
|
+
import"./chunks/range-aexh791j.js";
|
|
53
|
+
import"./chunks/range-bd8755ek.js";
|
|
54
|
+
import"./chunks/range-jy2ammbg.js";
|
|
55
|
+
import"./chunks/range-rktygpea.js";
|
|
56
|
+
import"./chunks/range-n26yr6pw.js";
|
|
57
|
+
import"./chunks/range-stx1bw5w.js";
|
|
58
|
+
import"./chunks/range-rqgv9x42.js";
|
|
59
|
+
import"./chunks/range-q4bn6dy8.js";
|
|
60
|
+
import"./chunks/range-8sb6qqpn.js";
|
|
61
|
+
import"./chunks/range-3te71694.js";
|
|
62
|
+
import"./chunks/range-j4at0y5c.js";
|
|
63
|
+
import"./chunks/range-t32e1bbt.js";
|
|
64
|
+
import"./chunks/range-wecgp61r.js";
|
|
65
|
+
import"./chunks/range-xthc02cw.js";
|
|
64
66
|
export {
|
|
65
67
|
exports_fetch as ServerFetch,
|
|
66
|
-
make3 as make
|
|
68
|
+
make3 as make,
|
|
69
|
+
makeWithContext2 as makeWithContext
|
|
67
70
|
};
|
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/range-rn83nvae.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.js";
|
|
9
9
|
export {
|
|
10
10
|
AgentHandler2 as AgentHandler
|
|
11
11
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeArtifact2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/range-sqfq92mf.js";
|
|
4
|
+
import"../chunks/range-stx1bw5w.js";
|
|
5
|
+
import"../chunks/range-rqgv9x42.js";
|
|
6
6
|
export {
|
|
7
7
|
makeArtifact2 as makeArtifact
|
|
8
8
|
};
|
package/dist/handlers/blob.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeBlobGet2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/range-g23ffrnz.js";
|
|
4
|
+
import"../chunks/range-8sb6qqpn.js";
|
|
5
|
+
import"../chunks/range-t32e1bbt.js";
|
|
6
6
|
export {
|
|
7
7
|
makeBlobGet2 as makeBlobGet
|
|
8
8
|
};
|
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/range-pa4xtt5h.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.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/range-k2bx5n4e.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.js";
|
|
9
9
|
export {
|
|
10
10
|
ConfigHandler2 as ConfigHandler
|
|
11
11
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredentialHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/range-0x6anvwr.js";
|
|
4
|
+
import"../chunks/range-9agv2b4c.js";
|
|
5
|
+
import"../chunks/range-ay32z58n.js";
|
|
6
|
+
import"../chunks/range-aexh791j.js";
|
|
7
|
+
import"../chunks/range-jy2ammbg.js";
|
|
8
|
+
import"../chunks/range-stx1bw5w.js";
|
|
9
|
+
import"../chunks/range-rqgv9x42.js";
|
|
10
10
|
export {
|
|
11
11
|
CredentialHandler2 as CredentialHandler
|
|
12
12
|
};
|
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/range-c6kzfg4f.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.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/range-n8nthg9q.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.js";
|
|
9
|
+
import"../chunks/range-wecgp61r.js";
|
|
10
10
|
export {
|
|
11
11
|
EventHandler2 as EventHandler
|
|
12
12
|
};
|
package/dist/handlers/form.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FormHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/range-amxj52x5.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.js";
|
|
9
9
|
export {
|
|
10
10
|
FormHandler2 as FormHandler
|
|
11
11
|
};
|
package/dist/handlers/fs.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileSystemHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/range-s557cdqw.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.js";
|
|
9
|
+
import"../chunks/range-8sb6qqpn.js";
|
|
10
|
+
import"../chunks/range-t32e1bbt.js";
|
|
11
11
|
export {
|
|
12
12
|
FileSystemHandler2 as FileSystemHandler
|
|
13
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GenerateHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/range-jrjpfy36.js";
|
|
4
|
+
import"../chunks/range-ay32z58n.js";
|
|
5
|
+
import"../chunks/range-aexh791j.js";
|
|
6
|
+
import"../chunks/range-jy2ammbg.js";
|
|
7
|
+
import"../chunks/range-stx1bw5w.js";
|
|
8
|
+
import"../chunks/range-rqgv9x42.js";
|
|
9
9
|
export {
|
|
10
10
|
GenerateHandler2 as GenerateHandler
|
|
11
11
|
};
|