@opencode/server 2.1.4 → 2.2.1
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 +8 -1
- package/dist/api.js +5 -5
- package/dist/auth.js +1 -1
- package/dist/chunks/{pairing-e4x9285j.js → media-uri-0a5jm2na.js} +4 -4
- package/dist/chunks/{pairing-0dncng21.js → media-uri-0n1e9dnh.js} +25 -12
- package/dist/chunks/{pairing-x0608mvx.js → media-uri-1je14sn4.js} +1 -1
- package/dist/chunks/{pairing-2yr2dq97.js → media-uri-22wspztn.js} +2 -2
- package/dist/chunks/{pairing-5w10ccet.js → media-uri-2xcc0x05.js} +1 -1
- package/dist/chunks/{pairing-39nnfjx1.js → media-uri-39nnfjx1.js} +1 -1
- package/dist/chunks/{pairing-x2dckmx1.js → media-uri-3t6z87e1.js} +23 -16
- package/dist/chunks/{pairing-4b0899hb.js → media-uri-6vs5sqy6.js} +2 -2
- package/dist/chunks/{pairing-7b9xm1qg.js → media-uri-7b9xm1qg.js} +1 -1
- package/dist/chunks/{pairing-aj1jc7g7.js → media-uri-8113w26k.js} +8 -6
- package/dist/chunks/{pairing-t3j5ftv1.js → media-uri-9c4eyh8m.js} +3 -3
- package/dist/chunks/{pairing-3te71694.js → media-uri-b1prsepx.js} +4 -4
- package/dist/chunks/{pairing-e7pctymn.js → media-uri-b2k9041j.js} +1 -1
- package/dist/chunks/{pairing-erzfdgke.js → media-uri-bd8755ek.js} +16 -1
- package/dist/chunks/{pairing-f4b2q3tn.js → media-uri-be53s2qz.js} +1 -1
- package/dist/chunks/media-uri-c6sjpm0r.js +83 -0
- package/dist/chunks/{pairing-4qjw9nya.js → media-uri-ckkpcd9y.js} +4 -4
- package/dist/chunks/{pairing-j5aeaa16.js → media-uri-dk68ymtv.js} +1 -1
- package/dist/chunks/{pairing-kcjd09wg.js → media-uri-e46y0tfd.js} +2 -2
- package/dist/chunks/{pairing-k6dz4enc.js → media-uri-fvpjvjpp.js} +24 -23
- package/dist/chunks/{pairing-3154e7fk.js → media-uri-gk0yxcp6.js} +5 -3
- package/dist/chunks/{pairing-gymtz25n.js → media-uri-gqq6kfhc.js} +3 -3
- package/dist/chunks/{pairing-cfhthk6z.js → media-uri-h072q2hm.js} +1 -1
- package/dist/chunks/{pairing-a6kxe6a7.js → media-uri-h3g82chs.js} +12 -4
- package/dist/chunks/{pairing-2b2wekgg.js → media-uri-h9rcwvg0.js} +1 -1
- package/dist/chunks/{pairing-swdgbzpj.js → media-uri-hax1v4bv.js} +4 -2
- package/dist/chunks/{pairing-ga3m49sz.js → media-uri-hnheq3hv.js} +4 -2
- package/dist/chunks/{pairing-j4at0y5c.js → media-uri-j4at0y5c.js} +1 -1
- package/dist/chunks/media-uri-j9gxd9me.js +22 -0
- package/dist/chunks/{pairing-91mt6ewz.js → media-uri-m5rae7m4.js} +2 -2
- package/dist/chunks/{pairing-kqr36gas.js → media-uri-mzs0n5xz.js} +7 -7
- package/dist/chunks/media-uri-n321d8vm.js +46 -0
- package/dist/chunks/media-uri-ndydfxzp.js +105 -0
- package/dist/chunks/{pairing-6xea6nhh.js → media-uri-ppma8fcc.js} +3 -3
- package/dist/chunks/{pairing-qvy2s3nb.js → media-uri-prdak4hd.js} +6 -6
- package/dist/chunks/{pairing-mte34432.js → media-uri-qbhbayp5.js} +3 -3
- package/dist/chunks/{pairing-49c878v9.js → media-uri-qn8kkfq6.js} +12 -3
- package/dist/chunks/{pairing-x9vr2ttf.js → media-uri-r6vmgwff.js} +24 -6
- package/dist/chunks/{pairing-9me4q8wt.js → media-uri-rztv1fyf.js} +4 -4
- package/dist/chunks/{pairing-nv8hzzrz.js → media-uri-wd7b20jw.js} +32 -12
- package/dist/chunks/{pairing-kaqtndqt.js → media-uri-wxj3d9av.js} +4 -11
- package/dist/chunks/{pairing-q69f22pd.js → media-uri-x8dgc261.js} +2 -2
- package/dist/chunks/{pairing-31acg4hb.js → media-uri-xe9t9xr4.js} +7 -3
- package/dist/chunks/media-uri-xthc02cw.js +6 -0
- package/dist/chunks/media-uri-xzvdbbpy.js +40 -0
- package/dist/chunks/{pairing-x74w7e1f.js → media-uri-yet0vexm.js} +1 -1
- package/dist/chunks/{pairing-kd6vzpgq.js → media-uri-yr4wsvrw.js} +2 -2
- package/dist/chunks/{pairing-xmwystkq.js → media-uri-z59gyc0x.js} +2 -2
- package/dist/chunks/{pairing-72ygafj3.js → media-uri-zjy4sw3d.js} +2 -2
- package/dist/cors.js +1 -1
- package/dist/event-feed.d.ts +1 -1
- package/dist/event-feed.js +5 -5
- package/dist/fetch.js +51 -47
- 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.d.ts +2 -1
- package/dist/handlers/fs.js +6 -6
- package/dist/handlers/generate.d.ts +1 -1
- 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 +8 -8
- package/dist/handlers/media.d.ts +6 -0
- package/dist/handlers/media.js +6 -0
- package/dist/handlers/message.js +7 -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.d.ts +1 -1
- package/dist/handlers/persistent-pty.js +10 -8
- package/dist/handlers/plugin.js +6 -6
- package/dist/handlers/project.d.ts +1 -1
- package/dist/handlers/project.js +6 -6
- package/dist/handlers/provider.js +6 -6
- package/dist/handlers/pty-socket.js +1 -1
- package/dist/handlers/pty.js +8 -8
- package/dist/handlers/reference.js +6 -6
- package/dist/handlers/rpc.js +6 -6
- package/dist/handlers/schedule.d.ts +209 -0
- package/dist/handlers/schedule.js +7 -0
- package/dist/handlers/server.js +9 -9
- package/dist/handlers/session-error.js +1 -1
- package/dist/handlers/session.d.ts +3 -1
- package/dist/handlers/session.js +7 -6
- package/dist/handlers/shell.js +6 -6
- package/dist/handlers/skill.js +6 -6
- package/dist/handlers/usage.d.ts +1 -0
- package/dist/handlers/usage.js +11 -0
- package/dist/handlers/vcs.js +6 -6
- package/dist/handlers/voice.d.ts +1 -1
- 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 +47 -43
- package/dist/location.js +4 -4
- package/dist/media-uri.d.ts +6 -0
- package/dist/media-uri.js +6 -0
- 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 +3 -3
- package/dist/process.js +55 -49
- package/dist/request-tracing.js +1 -1
- package/dist/routes.d.ts +5 -2
- package/dist/routes.js +50 -46
- package/dist/server-info.js +3 -3
- package/dist/service-status.js +1 -1
- package/dist/workerd.js +52 -48
- package/package.json +9 -8
- package/dist/chunks/pairing-kyxm98pg.js +0 -102
- package/dist/chunks/pairing-pmjbkszz.js +0 -30
- /package/dist/chunks/{pairing-9rqn6x4v.js → media-uri-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pairing-h6rt5k9s.js → media-uri-h6rt5k9s.js} +0 -0
- /package/dist/chunks/{pairing-q4bn6dy8.js → media-uri-q4bn6dy8.js} +0 -0
- /package/dist/chunks/{pairing-smaf4a18.js → media-uri-smaf4a18.js} +0 -0
- /package/dist/chunks/{pairing-yc7nft6q.js → media-uri-yc7nft6q.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LocationServiceMap } from "@opencode/core/location-services";
|
|
2
2
|
import { Global } from "@opencode/util/global";
|
|
3
|
-
export declare const GenerateHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.generate">, never,
|
|
3
|
+
export declare const GenerateHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.generate">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | Global.Service | LocationServiceMap.Service>;
|
|
@@ -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/media-uri-c6sjpm0r.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
GenerateHandler2 as GenerateHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IntegrationHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-zjy4sw3d.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
IntegrationHandler2 as IntegrationHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocationHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-h072q2hm.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
LocationHandler2 as LocationHandler
|
|
11
11
|
};
|
package/dist/handlers/mcp.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpHandler2
|
|
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/media-uri-rztv1fyf.js";
|
|
4
|
+
import"../chunks/media-uri-h6rt5k9s.js";
|
|
5
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
6
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
7
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
8
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
9
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
10
|
+
import"../chunks/media-uri-q4bn6dy8.js";
|
|
11
11
|
export {
|
|
12
12
|
McpHandler2 as McpHandler
|
|
13
13
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Database } from "@opencode/core/database/database";
|
|
2
|
+
import { FileNotFoundError } from "@opencode/protocol/errors";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
import { type HttpServerRequest, HttpServerResponse } from "effect/http";
|
|
5
|
+
/** `media.get` in the `server.experimental` group; serves only blobs a message or inbox item still references. */
|
|
6
|
+
export declare const makeMediaGet: Effect.Effect<(hash: string, request: HttpServerRequest.HttpServerRequest) => Effect.Effect<HttpServerResponse.HttpServerResponse, FileNotFoundError, never>, never, Database.Service>;
|
package/dist/handlers/message.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MessageHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-0n1e9dnh.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
|
+
import"../chunks/media-uri-xthc02cw.js";
|
|
9
10
|
export {
|
|
10
11
|
MessageHandler2 as MessageHandler
|
|
11
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MigrationHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-1je14sn4.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
MigrationHandler2 as MigrationHandler
|
|
11
11
|
};
|
package/dist/handlers/model.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModelHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-0a5jm2na.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ModelHandler2 as ModelHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PermissionHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-ppma8fcc.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
PermissionHandler2 as PermissionHandler
|
|
11
11
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PersistentPty } from "@opencode/core/persistent-pty";
|
|
2
2
|
import { PtyTicket } from "@opencode/core/pty/ticket";
|
|
3
|
-
export declare const PersistentPtyHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental">, never,
|
|
3
|
+
export declare const PersistentPtyHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.experimental">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/core/database/database").Service | PersistentPty.Service | import("@opencode/core/schedule").Service | PtyTicket.Service>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PersistentPtyHandler2
|
|
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/media-uri-h3g82chs.js";
|
|
4
|
+
import"../chunks/media-uri-n321d8vm.js";
|
|
5
|
+
import"../chunks/media-uri-xzvdbbpy.js";
|
|
6
|
+
import"../chunks/media-uri-h6rt5k9s.js";
|
|
7
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
8
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
9
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
10
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
11
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
12
|
+
import"../chunks/media-uri-q4bn6dy8.js";
|
|
11
13
|
export {
|
|
12
14
|
PersistentPtyHandler2 as PersistentPtyHandler
|
|
13
15
|
};
|
package/dist/handlers/plugin.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PluginHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-qn8kkfq6.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
PluginHandler2 as PluginHandler
|
|
11
11
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Project } from "@opencode/core/project";
|
|
2
|
-
export declare const ProjectHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.project">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("
|
|
2
|
+
export declare const ProjectHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.project">, never, import("@opencode/protocol/middleware/authorization").Authorization | import("effect/http/HttpRouter").Request<"Requires", Project.Service> | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware>;
|
package/dist/handlers/project.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-dk68ymtv.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ProjectHandler2 as ProjectHandler
|
|
11
11
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-hax1v4bv.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ProviderHandler2 as ProviderHandler
|
|
11
11
|
};
|
package/dist/handlers/pty.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PtyHandler2
|
|
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/media-uri-ckkpcd9y.js";
|
|
4
|
+
import"../chunks/media-uri-h6rt5k9s.js";
|
|
5
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
6
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
7
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
8
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
9
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
10
|
+
import"../chunks/media-uri-q4bn6dy8.js";
|
|
11
11
|
export {
|
|
12
12
|
PtyHandler2 as PtyHandler
|
|
13
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReferenceHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-yr4wsvrw.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
ReferenceHandler2 as ReferenceHandler
|
|
11
11
|
};
|
package/dist/handlers/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RpcHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-2xcc0x05.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
9
|
export {
|
|
10
10
|
RpcHandler2 as RpcHandler
|
|
11
11
|
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { Schedule } from "@opencode/core/schedule";
|
|
2
|
+
import type { Session } from "@opencode/core/session";
|
|
3
|
+
import { ForbiddenError, InvalidRequestError, ScheduleNotFoundError } from "@opencode/protocol/errors";
|
|
4
|
+
import type { CreatePayload } from "@opencode/protocol/groups/schedule";
|
|
5
|
+
import { Effect } from "effect";
|
|
6
|
+
/** `schedule.*` in the `server.experimental` group. Every route needs experimental.schedules where the Session lives. */
|
|
7
|
+
export declare const makeSchedule: Effect.Effect<{
|
|
8
|
+
create: (payload: CreatePayload) => Effect.Effect<{
|
|
9
|
+
data: {
|
|
10
|
+
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
11
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
12
|
+
readonly name?: string | undefined;
|
|
13
|
+
readonly when: {
|
|
14
|
+
readonly tz?: string | undefined;
|
|
15
|
+
readonly type: "in";
|
|
16
|
+
readonly in: string;
|
|
17
|
+
} | {
|
|
18
|
+
readonly tz?: string | undefined;
|
|
19
|
+
readonly type: "at";
|
|
20
|
+
readonly at: string;
|
|
21
|
+
} | {
|
|
22
|
+
readonly tz?: string | undefined;
|
|
23
|
+
readonly type: "every";
|
|
24
|
+
readonly every: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly tz?: string | undefined;
|
|
27
|
+
readonly type: "cron";
|
|
28
|
+
readonly cron: string;
|
|
29
|
+
};
|
|
30
|
+
readonly tz: string;
|
|
31
|
+
readonly action: {
|
|
32
|
+
readonly type: "prompt";
|
|
33
|
+
readonly prompt: string;
|
|
34
|
+
};
|
|
35
|
+
readonly status: "active" | "done" | "paused";
|
|
36
|
+
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
37
|
+
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
38
|
+
readonly remainingRuns?: number | undefined;
|
|
39
|
+
readonly runCount: number;
|
|
40
|
+
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
41
|
+
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
42
|
+
readonly time: {
|
|
43
|
+
readonly created: import("effect/DateTime").Utc;
|
|
44
|
+
readonly updated: import("effect/DateTime").Utc;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}, ForbiddenError | InvalidRequestError | import("@opencode/protocol/errors").SessionNotFoundError, never>;
|
|
48
|
+
list: (sessionID: Session.ID) => Effect.Effect<{
|
|
49
|
+
data: {
|
|
50
|
+
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
51
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
52
|
+
readonly name?: string | undefined;
|
|
53
|
+
readonly when: {
|
|
54
|
+
readonly tz?: string | undefined;
|
|
55
|
+
readonly type: "in";
|
|
56
|
+
readonly in: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly tz?: string | undefined;
|
|
59
|
+
readonly type: "at";
|
|
60
|
+
readonly at: string;
|
|
61
|
+
} | {
|
|
62
|
+
readonly tz?: string | undefined;
|
|
63
|
+
readonly type: "every";
|
|
64
|
+
readonly every: string;
|
|
65
|
+
} | {
|
|
66
|
+
readonly tz?: string | undefined;
|
|
67
|
+
readonly type: "cron";
|
|
68
|
+
readonly cron: string;
|
|
69
|
+
};
|
|
70
|
+
readonly tz: string;
|
|
71
|
+
readonly action: {
|
|
72
|
+
readonly type: "prompt";
|
|
73
|
+
readonly prompt: string;
|
|
74
|
+
};
|
|
75
|
+
readonly status: "active" | "done" | "paused";
|
|
76
|
+
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
77
|
+
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
78
|
+
readonly remainingRuns?: number | undefined;
|
|
79
|
+
readonly runCount: number;
|
|
80
|
+
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
81
|
+
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
82
|
+
readonly time: {
|
|
83
|
+
readonly created: import("effect/DateTime").Utc;
|
|
84
|
+
readonly updated: import("effect/DateTime").Utc;
|
|
85
|
+
};
|
|
86
|
+
}[];
|
|
87
|
+
}, ForbiddenError | import("@opencode/protocol/errors").SessionNotFoundError, never>;
|
|
88
|
+
get: (id: Schedule.ID) => Effect.Effect<{
|
|
89
|
+
data: {
|
|
90
|
+
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
91
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
92
|
+
readonly name?: string | undefined;
|
|
93
|
+
readonly when: {
|
|
94
|
+
readonly tz?: string | undefined;
|
|
95
|
+
readonly type: "in";
|
|
96
|
+
readonly in: string;
|
|
97
|
+
} | {
|
|
98
|
+
readonly tz?: string | undefined;
|
|
99
|
+
readonly type: "at";
|
|
100
|
+
readonly at: string;
|
|
101
|
+
} | {
|
|
102
|
+
readonly tz?: string | undefined;
|
|
103
|
+
readonly type: "every";
|
|
104
|
+
readonly every: string;
|
|
105
|
+
} | {
|
|
106
|
+
readonly tz?: string | undefined;
|
|
107
|
+
readonly type: "cron";
|
|
108
|
+
readonly cron: string;
|
|
109
|
+
};
|
|
110
|
+
readonly tz: string;
|
|
111
|
+
readonly action: {
|
|
112
|
+
readonly type: "prompt";
|
|
113
|
+
readonly prompt: string;
|
|
114
|
+
};
|
|
115
|
+
readonly status: "active" | "done" | "paused";
|
|
116
|
+
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
117
|
+
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
118
|
+
readonly remainingRuns?: number | undefined;
|
|
119
|
+
readonly runCount: number;
|
|
120
|
+
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
121
|
+
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
122
|
+
readonly time: {
|
|
123
|
+
readonly created: import("effect/DateTime").Utc;
|
|
124
|
+
readonly updated: import("effect/DateTime").Utc;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}, ForbiddenError | ScheduleNotFoundError, never>;
|
|
128
|
+
pause: (id: Schedule.ID) => Effect.Effect<{
|
|
129
|
+
data: {
|
|
130
|
+
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
131
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
132
|
+
readonly name?: string | undefined;
|
|
133
|
+
readonly when: {
|
|
134
|
+
readonly tz?: string | undefined;
|
|
135
|
+
readonly type: "in";
|
|
136
|
+
readonly in: string;
|
|
137
|
+
} | {
|
|
138
|
+
readonly tz?: string | undefined;
|
|
139
|
+
readonly type: "at";
|
|
140
|
+
readonly at: string;
|
|
141
|
+
} | {
|
|
142
|
+
readonly tz?: string | undefined;
|
|
143
|
+
readonly type: "every";
|
|
144
|
+
readonly every: string;
|
|
145
|
+
} | {
|
|
146
|
+
readonly tz?: string | undefined;
|
|
147
|
+
readonly type: "cron";
|
|
148
|
+
readonly cron: string;
|
|
149
|
+
};
|
|
150
|
+
readonly tz: string;
|
|
151
|
+
readonly action: {
|
|
152
|
+
readonly type: "prompt";
|
|
153
|
+
readonly prompt: string;
|
|
154
|
+
};
|
|
155
|
+
readonly status: "active" | "done" | "paused";
|
|
156
|
+
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
157
|
+
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
158
|
+
readonly remainingRuns?: number | undefined;
|
|
159
|
+
readonly runCount: number;
|
|
160
|
+
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
161
|
+
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
162
|
+
readonly time: {
|
|
163
|
+
readonly created: import("effect/DateTime").Utc;
|
|
164
|
+
readonly updated: import("effect/DateTime").Utc;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
}, ForbiddenError | ScheduleNotFoundError, never>;
|
|
168
|
+
resume: (id: Schedule.ID) => Effect.Effect<{
|
|
169
|
+
data: {
|
|
170
|
+
readonly id: string & import("effect/Brand").Brand<"Schedule.ID">;
|
|
171
|
+
readonly sessionID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
|
|
172
|
+
readonly name?: string | undefined;
|
|
173
|
+
readonly when: {
|
|
174
|
+
readonly tz?: string | undefined;
|
|
175
|
+
readonly type: "in";
|
|
176
|
+
readonly in: string;
|
|
177
|
+
} | {
|
|
178
|
+
readonly tz?: string | undefined;
|
|
179
|
+
readonly type: "at";
|
|
180
|
+
readonly at: string;
|
|
181
|
+
} | {
|
|
182
|
+
readonly tz?: string | undefined;
|
|
183
|
+
readonly type: "every";
|
|
184
|
+
readonly every: string;
|
|
185
|
+
} | {
|
|
186
|
+
readonly tz?: string | undefined;
|
|
187
|
+
readonly type: "cron";
|
|
188
|
+
readonly cron: string;
|
|
189
|
+
};
|
|
190
|
+
readonly tz: string;
|
|
191
|
+
readonly action: {
|
|
192
|
+
readonly type: "prompt";
|
|
193
|
+
readonly prompt: string;
|
|
194
|
+
};
|
|
195
|
+
readonly status: "active" | "done" | "paused";
|
|
196
|
+
readonly nextDueAt?: import("effect/DateTime").Utc | undefined;
|
|
197
|
+
readonly endsAt?: import("effect/DateTime").Utc | undefined;
|
|
198
|
+
readonly remainingRuns?: number | undefined;
|
|
199
|
+
readonly runCount: number;
|
|
200
|
+
readonly lastFiredAt?: import("effect/DateTime").Utc | undefined;
|
|
201
|
+
readonly lastOutcome?: "disabled" | "failed" | "fired" | "late" | "skipped" | undefined;
|
|
202
|
+
readonly time: {
|
|
203
|
+
readonly created: import("effect/DateTime").Utc;
|
|
204
|
+
readonly updated: import("effect/DateTime").Utc;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
}, ForbiddenError | ScheduleNotFoundError, never>;
|
|
208
|
+
remove: (id: Schedule.ID) => Effect.Effect<void, ForbiddenError | ScheduleNotFoundError, never>;
|
|
209
|
+
}, never, Schedule.Service>;
|
package/dist/handlers/server.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-8113w26k.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
|
+
import"../chunks/media-uri-b1prsepx.js";
|
|
10
|
+
import"../chunks/media-uri-j4at0y5c.js";
|
|
11
|
+
import"../chunks/media-uri-mzs0n5xz.js";
|
|
12
12
|
export {
|
|
13
13
|
ServerHandler2 as ServerHandler
|
|
14
14
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Instance } from "@opencode/core/instance/service";
|
|
1
2
|
import { Session } from "@opencode/core/session";
|
|
2
3
|
import { SessionTransfer } from "@opencode/core/session/transfer";
|
|
3
|
-
|
|
4
|
+
import { InstructionEntry } from "@opencode/core/session/instruction-entry";
|
|
5
|
+
export declare const SessionHandler: import("effect/Layer").Layer<import("effect/http-api/HttpApiGroup").Service<"server", "server.session">, never, import("effect/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service> | Instance.Service | InstructionEntry.Service | Session.Service | SessionTransfer.Service | import("../middleware/session-location").SessionLocationMiddleware | (import("@opencode/protocol/middleware/authorization").Authorization | import("../middleware/form-location").FormLocationMiddleware | import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware)>;
|
package/dist/handlers/session.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionHandler2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/media-uri-wd7b20jw.js";
|
|
4
|
+
import"../chunks/media-uri-9c4eyh8m.js";
|
|
5
|
+
import"../chunks/media-uri-yet0vexm.js";
|
|
6
|
+
import"../chunks/media-uri-gk0yxcp6.js";
|
|
7
|
+
import"../chunks/media-uri-gqq6kfhc.js";
|
|
8
|
+
import"../chunks/media-uri-smaf4a18.js";
|
|
9
|
+
import"../chunks/media-uri-xthc02cw.js";
|
|
9
10
|
export {
|
|
10
11
|
SessionHandler2 as SessionHandler
|
|
11
12
|
};
|