@opencode/server 0.0.0-dev-536 → 0.0.0-dev-544

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.
Files changed (117) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{options-059rbh9c.js → routes-059rbh9c.js} +1 -1
  4. package/dist/chunks/{options-mam5ppd3.js → routes-05c5061t.js} +1 -1
  5. package/dist/chunks/{options-v7p1kzzd.js → routes-0e81et3m.js} +3 -3
  6. package/dist/chunks/{options-tgb4pddq.js → routes-0ey2b45p.js} +2 -2
  7. package/dist/chunks/{options-02a60aws.js → routes-0fv515j7.js} +2 -2
  8. package/dist/chunks/{options-dczgzh3x.js → routes-0j6zxxn8.js} +2 -2
  9. package/dist/chunks/{options-hr24310e.js → routes-0n4tjm17.js} +1 -1
  10. package/dist/chunks/{options-ahgs9gwq.js → routes-1t32jp11.js} +4 -4
  11. package/dist/chunks/{options-1jtv083t.js → routes-2wexxjwf.js} +2 -2
  12. package/dist/chunks/{options-39nnfjx1.js → routes-39nnfjx1.js} +1 -1
  13. package/dist/chunks/{options-y56ann6c.js → routes-4p2y0qs3.js} +2 -2
  14. package/dist/chunks/{options-gymtz25n.js → routes-50bbk3b2.js} +3 -3
  15. package/dist/chunks/{options-7dtbad8d.js → routes-5pdfedjd.js} +7 -7
  16. package/dist/chunks/routes-78rcgzsr.js +28 -0
  17. package/dist/chunks/{options-7b9xm1qg.js → routes-7b9xm1qg.js} +1 -1
  18. package/dist/chunks/{options-rbck9dgd.js → routes-861wfsmy.js} +1 -1
  19. package/dist/chunks/{options-va7wgp70.js → routes-89egwzf3.js} +2 -2
  20. package/dist/chunks/{options-h59mdt1n.js → routes-8vt3rhnc.js} +33 -33
  21. package/dist/chunks/{options-t2pr2ynq.js → routes-91nrz26y.js} +6 -6
  22. package/dist/chunks/{options-62bfwtjc.js → routes-9grnt8dc.js} +2 -2
  23. package/dist/chunks/{options-x74w7e1f.js → routes-b3bmdkga.js} +1 -1
  24. package/dist/chunks/{options-zzxz7279.js → routes-b4mqtccx.js} +2 -2
  25. package/dist/chunks/{options-ph0h7jas.js → routes-c9dy55v4.js} +11 -7
  26. package/dist/chunks/{options-82vbxjqd.js → routes-d4534456.js} +4 -4
  27. package/dist/chunks/{options-axx4wwen.js → routes-dx89xydc.js} +2 -2
  28. package/dist/chunks/{options-xfynz25m.js → routes-et00mhwf.js} +2 -2
  29. package/dist/chunks/{options-4xzps9pr.js → routes-f8r9p2vr.js} +2 -2
  30. package/dist/chunks/{options-ja97ph8b.js → routes-fehxjhae.js} +4 -4
  31. package/dist/chunks/{options-j6d0mxrp.js → routes-h1thjy6x.js} +2 -2
  32. package/dist/chunks/{options-ddnay6e1.js → routes-htyf2qs7.js} +1 -1
  33. package/dist/chunks/{options-e0z6mnzj.js → routes-hx8bsq9d.js} +1 -1
  34. package/dist/chunks/{options-j4at0y5c.js → routes-j4at0y5c.js} +1 -1
  35. package/dist/chunks/{options-yjh19whg.js → routes-jc90fqa8.js} +15 -15
  36. package/dist/chunks/{options-5km4ra1j.js → routes-jjvpqmx6.js} +4 -4
  37. package/dist/chunks/{options-q7gnt7ra.js → routes-kg0ybx4v.js} +3 -3
  38. package/dist/chunks/{options-kqr36gas.js → routes-kqr36gas.js} +1 -1
  39. package/dist/chunks/{options-b5crh3ce.js → routes-m119esdv.js} +3 -3
  40. package/dist/chunks/{options-f1ds1268.js → routes-n1zdbfv7.js} +2 -2
  41. package/dist/chunks/{options-85kbrn7y.js → routes-nz17qv97.js} +2 -2
  42. package/dist/chunks/{options-9q55v56g.js → routes-q44yktpv.js} +2 -2
  43. package/dist/chunks/{options-xad49dn3.js → routes-s62wjkvx.js} +2 -2
  44. package/dist/chunks/{options-qfyg9gb7.js → routes-s802fzg1.js} +6 -6
  45. package/dist/chunks/{options-f96zeczf.js → routes-s9tkswmw.js} +2 -2
  46. package/dist/chunks/{options-vyzvby0b.js → routes-v8aqacn3.js} +2 -2
  47. package/dist/chunks/{options-0r9ve3h3.js → routes-vbgqk0mr.js} +2 -2
  48. package/dist/chunks/{options-xwy6frfd.js → routes-x4b2rtcb.js} +1 -1
  49. package/dist/chunks/{options-f0kpaq89.js → routes-zbe9jfhy.js} +1 -1
  50. package/dist/chunks/{options-s9jd931e.js → routes-zvbhqxt5.js} +4 -4
  51. package/dist/cors.js +1 -1
  52. package/dist/event-feed.js +3 -3
  53. package/dist/fetch.js +54 -53
  54. package/dist/handlers/agent.js +6 -6
  55. package/dist/handlers/artifact.js +3 -3
  56. package/dist/handlers/command.js +6 -6
  57. package/dist/handlers/config.js +6 -6
  58. package/dist/handlers/credential.js +7 -7
  59. package/dist/handlers/debug.js +6 -6
  60. package/dist/handlers/event.js +7 -7
  61. package/dist/handlers/form.js +6 -6
  62. package/dist/handlers/fs.js +6 -6
  63. package/dist/handlers/generate.js +6 -6
  64. package/dist/handlers/integration.js +6 -6
  65. package/dist/handlers/job.d.ts +51 -0
  66. package/dist/handlers/job.js +7 -0
  67. package/dist/handlers/location.js +6 -6
  68. package/dist/handlers/mcp.js +8 -8
  69. package/dist/handlers/media.js +1 -1
  70. package/dist/handlers/message.js +7 -7
  71. package/dist/handlers/migration.js +6 -6
  72. package/dist/handlers/model.js +6 -6
  73. package/dist/handlers/permission.js +6 -6
  74. package/dist/handlers/persistent-pty.d.ts +1 -1
  75. package/dist/handlers/persistent-pty.js +12 -11
  76. package/dist/handlers/plugin.js +6 -6
  77. package/dist/handlers/project.js +6 -6
  78. package/dist/handlers/provider.js +6 -6
  79. package/dist/handlers/pty-socket.js +1 -1
  80. package/dist/handlers/pty.js +8 -8
  81. package/dist/handlers/reference.js +6 -6
  82. package/dist/handlers/rpc.js +6 -6
  83. package/dist/handlers/schedule.js +2 -2
  84. package/dist/handlers/server.js +9 -9
  85. package/dist/handlers/session-error.js +1 -1
  86. package/dist/handlers/session.js +7 -7
  87. package/dist/handlers/shell.js +6 -6
  88. package/dist/handlers/skill.js +6 -6
  89. package/dist/handlers/usage.js +6 -6
  90. package/dist/handlers/vcs.js +6 -6
  91. package/dist/handlers/voice.js +6 -6
  92. package/dist/handlers/websearch.js +6 -6
  93. package/dist/handlers/worktree.js +6 -6
  94. package/dist/handlers.d.ts +1 -1
  95. package/dist/handlers.js +49 -48
  96. package/dist/location.js +4 -4
  97. package/dist/media-uri.js +1 -1
  98. package/dist/middleware/authorization.js +2 -2
  99. package/dist/middleware/form-location.js +3 -3
  100. package/dist/middleware/schema-error.js +1 -1
  101. package/dist/middleware/session-location.js +3 -3
  102. package/dist/pairing.js +1 -1
  103. package/dist/process.js +55 -54
  104. package/dist/request-tracing.js +1 -1
  105. package/dist/routes.js +52 -51
  106. package/dist/server-info.js +5 -5
  107. package/dist/service-status.js +1 -1
  108. package/dist/workerd.js +55 -54
  109. package/package.json +8 -8
  110. /package/dist/chunks/{options-9rqn6x4v.js → routes-9rqn6x4v.js} +0 -0
  111. /package/dist/chunks/{options-bd8755ek.js → routes-bd8755ek.js} +0 -0
  112. /package/dist/chunks/{options-n321d8vm.js → routes-n321d8vm.js} +0 -0
  113. /package/dist/chunks/{options-q187pxxd.js → routes-q187pxxd.js} +0 -0
  114. /package/dist/chunks/{options-q4bn6dy8.js → routes-q4bn6dy8.js} +0 -0
  115. /package/dist/chunks/{options-smaf4a18.js → routes-smaf4a18.js} +0 -0
  116. /package/dist/chunks/{options-xthc02cw.js → routes-xthc02cw.js} +0 -0
  117. /package/dist/chunks/{options-yc7nft6q.js → routes-yc7nft6q.js} +0 -0
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/options-v7p1kzzd.js";
4
- import"./chunks/options-ddnay6e1.js";
5
- import"./chunks/options-x74w7e1f.js";
6
- import"./chunks/options-gymtz25n.js";
7
- import"./chunks/options-smaf4a18.js";
3
+ } from "./chunks/routes-0e81et3m.js";
4
+ import"./chunks/routes-b3bmdkga.js";
5
+ import"./chunks/routes-htyf2qs7.js";
6
+ import"./chunks/routes-50bbk3b2.js";
7
+ import"./chunks/routes-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/options-j4at0y5c.js";
10
+ } from "./chunks/routes-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./options-smaf4a18.js";
3
+ } from "./routes-smaf4a18.js";
4
4
 
5
5
  // src/handlers/schedule.ts
6
6
  import { Permission } from "@opencode/core/permission";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./options-gymtz25n.js";
3
+ } from "./routes-50bbk3b2.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./options-ddnay6e1.js";
6
+ } from "./routes-htyf2qs7.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./options-x74w7e1f.js";
9
+ } from "./routes-b3bmdkga.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./options-gymtz25n.js";
3
+ } from "./routes-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-v7p1kzzd.js";
6
+ } from "./routes-0e81et3m.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./options-smaf4a18.js";
3
+ } from "./routes-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  awaitPlugins2,
7
7
  response2,
8
8
  requestRef2
9
- } from "./options-gymtz25n.js";
9
+ } from "./routes-50bbk3b2.js";
10
10
 
11
11
  // src/handlers/artifact.ts
12
12
  import { Artifact } from "@opencode/core/artifact";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-v7p1kzzd.js";
7
+ } from "./routes-0e81et3m.js";
8
8
 
9
9
  // src/handlers/generate.ts
10
10
  import { Generate } from "@opencode/core/generate";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  isAllowedCorsOrigin2
3
- } from "./options-q4bn6dy8.js";
3
+ } from "./routes-q4bn6dy8.js";
4
4
  import {
5
5
  withoutParentSpan2
6
- } from "./options-yc7nft6q.js";
6
+ } from "./routes-yc7nft6q.js";
7
7
  import {
8
8
  createRoutes2
9
- } from "./options-yjh19whg.js";
9
+ } from "./routes-jc90fqa8.js";
10
10
  import {
11
11
  __export
12
- } from "./options-9rqn6x4v.js";
12
+ } from "./routes-9rqn6x4v.js";
13
13
 
14
14
  // src/fetch.ts
15
15
  var exports_fetch = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
  import {
5
5
  requireConnectable2
6
- } from "./options-f1ds1268.js";
6
+ } from "./routes-n1zdbfv7.js";
7
7
 
8
8
  // src/handlers/credential.ts
9
9
  import { Credential } from "@opencode/core/credential";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./options-9rqn6x4v.js";
3
+ } from "./routes-9rqn6x4v.js";
4
4
 
5
5
  // src/service-status.ts
6
6
  var exports_service_status = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-v7p1kzzd.js";
7
+ } from "./routes-0e81et3m.js";
8
8
 
9
9
  // src/handlers/model.ts
10
10
  import { Model } from "@opencode/core/model";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./options-smaf4a18.js";
3
+ } from "./routes-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer2 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer2 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer2 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  __export
3
- } from "./options-9rqn6x4v.js";
3
+ } from "./routes-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: () => Service4,
9
+ Service: () => Service3,
10
10
  connectionURLs: () => connectionURLs2,
11
- layer: () => layer4
11
+ layer: () => layer2
12
12
  });
13
13
  import { Context, Layer } from "effect";
14
14
  import { networkInterfaces } from "node:os";
15
15
 
16
- class Service4 extends Context.Service()("@opencode/server/ServerInfo") {
16
+ class Service3 extends Context.Service()("@opencode/server/ServerInfo") {
17
17
  }
18
- function layer4(urls, tmp, app = {}) {
19
- return Layer.succeed(Service4, Service4.of({ urls, app, paths: { tmp } }));
18
+ function layer2(urls, tmp, app = {}) {
19
+ return Layer.succeed(Service3, Service3.of({ urls, app, paths: { tmp } }));
20
20
  }
21
21
  function connectionURLs2(value, requestedHostname) {
22
22
  const url = new URL(value);
@@ -38,4 +38,4 @@ function connectionURLs2(value, requestedHostname) {
38
38
  ];
39
39
  }
40
40
 
41
- export { Service4, layer4, connectionURLs2, exports_server_info };
41
+ export { Service3, layer2, connectionURLs2, exports_server_info };
@@ -0,0 +1,28 @@
1
+ import {
2
+ missingSession2
3
+ } from "./routes-smaf4a18.js";
4
+
5
+ // src/handlers/job.ts
6
+ import { Job } from "@opencode/core/job";
7
+ import { Session } from "@opencode/core/session";
8
+ import { SessionBackground } from "@opencode/core/session/background";
9
+ import { Effect, Option } from "effect";
10
+ var makeJob2 = Effect.gen(function* () {
11
+ const jobs = yield* Job.Service;
12
+ const sessions = yield* Session.Service;
13
+ const lookup = {
14
+ get: (sessionID) => sessions.get(sessionID).pipe(Effect.option, Effect.map(Option.getOrUndefined))
15
+ };
16
+ return {
17
+ list: Effect.fn("JobHandler.list")(function* (query) {
18
+ if (query.sessionID !== undefined) {
19
+ yield* sessions.get(query.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
20
+ }
21
+ return {
22
+ data: yield* SessionBackground.list(jobs, lookup, query)
23
+ };
24
+ })
25
+ };
26
+ });
27
+
28
+ export { makeJob2 };
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./options-j4at0y5c.js";
7
+ } from "./routes-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
 
5
5
  // src/handlers/worktree.ts
6
6
  import { Git } from "@opencode/core/git";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-v7p1kzzd.js";
7
+ } from "./routes-0e81et3m.js";
8
8
 
9
9
  // src/handlers/usage.ts
10
10
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,102 +1,102 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./options-dczgzh3x.js";
3
+ } from "./routes-0j6zxxn8.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./options-xfynz25m.js";
6
+ } from "./routes-et00mhwf.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./options-b5crh3ce.js";
9
+ } from "./routes-m119esdv.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./options-y56ann6c.js";
12
+ } from "./routes-4p2y0qs3.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./options-62bfwtjc.js";
15
+ } from "./routes-9grnt8dc.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./options-s9jd931e.js";
18
+ } from "./routes-zvbhqxt5.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./options-q7gnt7ra.js";
21
+ } from "./routes-kg0ybx4v.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./options-tgb4pddq.js";
24
+ } from "./routes-0ey2b45p.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./options-vyzvby0b.js";
27
+ } from "./routes-v8aqacn3.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./options-zzxz7279.js";
30
+ } from "./routes-b4mqtccx.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./options-9q55v56g.js";
33
+ } from "./routes-q44yktpv.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./options-hr24310e.js";
36
+ } from "./routes-0n4tjm17.js";
37
37
  import {
38
38
  layer3
39
- } from "./options-qfyg9gb7.js";
39
+ } from "./routes-s802fzg1.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./options-ja97ph8b.js";
42
+ } from "./routes-fehxjhae.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./options-xad49dn3.js";
45
+ } from "./routes-s62wjkvx.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./options-0r9ve3h3.js";
48
+ } from "./routes-vbgqk0mr.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./options-t2pr2ynq.js";
51
+ } from "./routes-91nrz26y.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./options-j6d0mxrp.js";
54
+ } from "./routes-h1thjy6x.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./options-5km4ra1j.js";
57
+ } from "./routes-jjvpqmx6.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./options-ph0h7jas.js";
60
+ } from "./routes-c9dy55v4.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./options-4xzps9pr.js";
63
+ } from "./routes-f8r9p2vr.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./options-f96zeczf.js";
66
+ } from "./routes-s9tkswmw.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./options-f0kpaq89.js";
69
+ } from "./routes-zbe9jfhy.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./options-f1ds1268.js";
72
+ } from "./routes-n1zdbfv7.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./options-axx4wwen.js";
75
+ } from "./routes-dx89xydc.js";
76
76
  import {
77
77
  UsageHandler2
78
- } from "./options-va7wgp70.js";
78
+ } from "./routes-89egwzf3.js";
79
79
  import {
80
80
  McpHandler2
81
- } from "./options-82vbxjqd.js";
81
+ } from "./routes-d4534456.js";
82
82
  import {
83
83
  CredentialHandler2
84
- } from "./options-1jtv083t.js";
84
+ } from "./routes-2wexxjwf.js";
85
85
  import {
86
86
  ProjectHandler2
87
- } from "./options-mam5ppd3.js";
87
+ } from "./routes-05c5061t.js";
88
88
  import {
89
89
  WorktreeHandler2
90
- } from "./options-rbck9dgd.js";
90
+ } from "./routes-861wfsmy.js";
91
91
  import {
92
92
  VcsHandler2
93
- } from "./options-85kbrn7y.js";
93
+ } from "./routes-nz17qv97.js";
94
94
  import {
95
95
  MigrationHandler2
96
- } from "./options-xwy6frfd.js";
96
+ } from "./routes-x4b2rtcb.js";
97
97
  import {
98
98
  ConfigHandler2
99
- } from "./options-e0z6mnzj.js";
99
+ } from "./routes-hx8bsq9d.js";
100
100
 
101
101
  // src/handlers.ts
102
102
  import { Layer } from "effect";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./options-j4at0y5c.js";
9
+ } from "./routes-j4at0y5c.js";
10
10
  import {
11
- Service4
12
- } from "./options-7dtbad8d.js";
11
+ Service3
12
+ } from "./routes-5pdfedjd.js";
13
13
  import {
14
14
  Service2
15
- } from "./options-kqr36gas.js";
15
+ } from "./routes-kqr36gas.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { hostname } from "node:os";
@@ -25,7 +25,7 @@ var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => E
25
25
  const pairing = yield* Service2;
26
26
  const auth = yield* Config2;
27
27
  return handlers.handle("server.info", () => Effect.gen(function* () {
28
- const info = yield* Service4;
28
+ const info = yield* Service3;
29
29
  return {
30
30
  version: info.app.version ?? "unknown",
31
31
  pid: process.pid ?? 0,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-v7p1kzzd.js";
7
+ } from "./routes-0e81et3m.js";
8
8
 
9
9
  // src/handlers/provider.ts
10
10
  import { Provider } from "@opencode/core/provider";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./options-gymtz25n.js";
3
+ } from "./routes-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-v7p1kzzd.js";
6
+ } from "./routes-0e81et3m.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,22 +1,25 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./options-q4bn6dy8.js";
7
+ } from "./routes-q4bn6dy8.js";
8
8
  import {
9
9
  makeArtifact2
10
- } from "./options-02a60aws.js";
10
+ } from "./routes-0fv515j7.js";
11
+ import {
12
+ makeJob2
13
+ } from "./routes-78rcgzsr.js";
11
14
  import {
12
15
  makeMediaGet2
13
- } from "./options-n321d8vm.js";
16
+ } from "./routes-n321d8vm.js";
14
17
  import {
15
18
  runPtySocket2
16
- } from "./options-q187pxxd.js";
19
+ } from "./routes-q187pxxd.js";
17
20
  import {
18
21
  makeSchedule2
19
- } from "./options-059rbh9c.js";
22
+ } from "./routes-059rbh9c.js";
20
23
 
21
24
  // src/handlers/persistent-pty.ts
22
25
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -42,9 +45,10 @@ var PersistentPtyHandler2 = HttpApiBuilder.group(Api2, "server.experimental", (h
42
45
  const cors = yield* CorsConfig2;
43
46
  const pty = yield* PersistentPty.Service;
44
47
  const artifact = yield* makeArtifact2;
48
+ const job = yield* makeJob2;
45
49
  const mediaGet = yield* makeMediaGet2;
46
50
  const schedule = yield* makeSchedule2;
47
- return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("schedule.create", (ctx) => schedule.create(ctx.payload)).handle("schedule.list", (ctx) => schedule.list(ctx.query.sessionID)).handle("schedule.get", (ctx) => schedule.get(ctx.params.scheduleID)).handle("schedule.pause", (ctx) => schedule.pause(ctx.params.scheduleID)).handle("schedule.resume", (ctx) => schedule.resume(ctx.params.scheduleID)).handle("schedule.delete", (ctx) => schedule.remove(ctx.params.scheduleID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
51
+ return handlers.handleRaw("media.get", (ctx) => mediaGet(ctx.params.hash, ctx.request)).handle("job.list", (ctx) => job.list(ctx.query)).handle("artifacts.providers", (ctx) => artifact.providers(ctx.query, ctx.request)).handle("artifacts.list", (ctx) => artifact.list(ctx.query, ctx.request)).handle("artifacts.create", (ctx) => artifact.create(ctx.query, ctx.payload, ctx.request)).handle("artifacts.get", (ctx) => artifact.get(ctx.params.artifactID, ctx.query, ctx.request)).handle("artifacts.update", (ctx) => artifact.update(ctx.params.artifactID, ctx.query, ctx.payload, ctx.request)).handle("artifacts.delete", (ctx) => artifact.remove(ctx.params.artifactID, ctx.query, ctx.request)).handleRaw("artifacts.view", (ctx) => artifact.view(ctx.params.artifactID, ctx.query, ctx.request)).handle("schedule.create", (ctx) => schedule.create(ctx.payload)).handle("schedule.list", (ctx) => schedule.list(ctx.query.sessionID)).handle("schedule.get", (ctx) => schedule.get(ctx.params.scheduleID)).handle("schedule.pause", (ctx) => schedule.pause(ctx.params.scheduleID)).handle("schedule.resume", (ctx) => schedule.resume(ctx.params.scheduleID)).handle("schedule.delete", (ctx) => schedule.remove(ctx.params.scheduleID)).handle("persistentPty.read", Effect.fn(function* (ctx) {
48
52
  return { data: yield* pty.read(ctx.params.sessionID, ctx.query.lines).pipe(mapUnavailable) };
49
53
  })).handle("persistentPty.list", Effect.fn(function* (ctx) {
50
54
  return { data: yield* pty.list(ctx.params.sessionID).pipe(mapUnavailable) };
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./options-gymtz25n.js";
5
+ } from "./routes-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./options-v7p1kzzd.js";
8
+ } from "./routes-0e81et3m.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./options-q4bn6dy8.js";
12
+ } from "./routes-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./options-q187pxxd.js";
16
+ } from "./routes-q187pxxd.js";
17
17
 
18
18
  // src/handlers/mcp.ts
19
19
  import { Location } from "@opencode/core/location";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  awaitPlugins2,
3
3
  response2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-v7p1kzzd.js";
7
+ } from "./routes-0e81et3m.js";
8
8
 
9
9
  // src/handlers/websearch.ts
10
10
  import { WebSearch } from "@opencode/core/websearch";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./options-gymtz25n.js";
4
+ } from "./routes-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./options-v7p1kzzd.js";
7
+ } from "./routes-0e81et3m.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./options-gymtz25n.js";
3
+ } from "./routes-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-v7p1kzzd.js";
6
+ } from "./routes-0e81et3m.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./options-v7p1kzzd.js";
3
+ } from "./routes-0e81et3m.js";
4
4
  import {
5
- Service3,
5
+ Service4,
6
6
  frame2
7
- } from "./options-qfyg9gb7.js";
7
+ } from "./routes-s802fzg1.js";
8
8
 
9
9
  // src/handlers/event.ts
10
10
  import { Event } from "@opencode/schema/event";
@@ -12,7 +12,7 @@ import { Effect, Stream } from "effect";
12
12
  import { HttpServerResponse } from "effect/http";
13
13
  import { HttpApiBuilder } from "effect/http-api";
14
14
  var EventHandler2 = HttpApiBuilder.group(Api2, "server.event", (handlers) => Effect.gen(function* () {
15
- const feed = yield* Service3;
15
+ const feed = yield* Service4;
16
16
  return handlers.handleRaw("event.subscribe", (ctx) => Effect.gen(function* () {
17
17
  const connected = {
18
18
  id: Event.ID.create(),
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./options-gymtz25n.js";
3
+ } from "./routes-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./options-v7p1kzzd.js";
6
+ } from "./routes-0e81et3m.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";