@opencode/server 2.0.24 → 2.0.25

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 (107) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{event-feed-wv5twc2g.js → location-0d9kah4z.js} +8 -8
  4. package/dist/chunks/{event-feed-swb5yrqf.js → location-0vyswjsz.js} +2 -2
  5. package/dist/chunks/{event-feed-bptmkrac.js → location-16qfdx6b.js} +2 -2
  6. package/dist/chunks/{event-feed-j54drd5e.js → location-1nwce8pe.js} +1 -1
  7. package/dist/chunks/{event-feed-q4y3mw2d.js → location-1xva44q8.js} +2 -2
  8. package/dist/chunks/{event-feed-d0efjmp3.js → location-2sy3c7de.js} +7 -7
  9. package/dist/chunks/{event-feed-0b1t2b2s.js → location-4rww2e47.js} +2 -2
  10. package/dist/chunks/{event-feed-da5stqtt.js → location-4znne276.js} +1 -1
  11. package/dist/chunks/{event-feed-nxdx74sv.js → location-796j10e5.js} +1 -1
  12. package/dist/chunks/{event-feed-mpbfcr4e.js → location-7gfv664k.js} +2 -2
  13. package/dist/chunks/{event-feed-jskw5q1g.js → location-7rxakzjh.js} +1 -1
  14. package/dist/chunks/{event-feed-6sgwm4gr.js → location-934cmkaf.js} +16 -2
  15. package/dist/chunks/location-93wjydnn.js +41 -0
  16. package/dist/chunks/{event-feed-ep84ha6r.js → location-9cw9axw5.js} +3 -3
  17. package/dist/chunks/{event-feed-mz8smzxk.js → location-9gvk307e.js} +8 -8
  18. package/dist/chunks/{event-feed-n7kafg5g.js → location-ajzgetf8.js} +2 -2
  19. package/dist/chunks/{event-feed-anm12x33.js → location-anm12x33.js} +1 -1
  20. package/dist/chunks/{event-feed-0nvjg055.js → location-ap5bajez.js} +33 -33
  21. package/dist/chunks/{event-feed-ppd3f187.js → location-c7mfxxxb.js} +4 -4
  22. package/dist/chunks/{event-feed-3c937re8.js → location-ca257yb3.js} +2 -2
  23. package/dist/chunks/{event-feed-hqjvw1vc.js → location-ceje7ncg.js} +20 -20
  24. package/dist/chunks/location-cqdj4ap7.js +106 -0
  25. package/dist/chunks/{event-feed-m9wzfeff.js → location-dqsr2g0t.js} +2 -2
  26. package/dist/chunks/{event-feed-acgs9zzk.js → location-f2c3fmpg.js} +3 -3
  27. package/dist/chunks/{event-feed-f90y8hv1.js → location-f7sjppyz.js} +62 -51
  28. package/dist/chunks/{event-feed-nvmdgpqv.js → location-g85r3kcp.js} +2 -2
  29. package/dist/chunks/{event-feed-30gqa6y8.js → location-gny2k2ap.js} +3 -3
  30. package/dist/chunks/{event-feed-gtkdacvk.js → location-gtkdacvk.js} +1 -1
  31. package/dist/chunks/{event-feed-ccfecbt4.js → location-hvft24jv.js} +1 -1
  32. package/dist/chunks/{event-feed-387sf4vs.js → location-jzqzrtw5.js} +1 -1
  33. package/dist/chunks/{event-feed-srcrrwjk.js → location-krn4521r.js} +2 -2
  34. package/dist/chunks/{event-feed-pvrbm2ca.js → location-m9xs9t19.js} +3 -3
  35. package/dist/chunks/{event-feed-w8db1rkr.js → location-n52yc5x0.js} +2 -2
  36. package/dist/chunks/{event-feed-x6486bry.js → location-sstsrjtg.js} +8 -8
  37. package/dist/chunks/{event-feed-fsrvj92d.js → location-td9k2nw3.js} +2 -2
  38. package/dist/chunks/{event-feed-2vy10eeh.js → location-v9pcqbqn.js} +2 -2
  39. package/dist/chunks/{event-feed-5fmydwgy.js → location-vb9atgxj.js} +1 -1
  40. package/dist/chunks/{event-feed-d00srfh1.js → location-w070c2h2.js} +1 -1
  41. package/dist/chunks/{event-feed-62qjgyra.js → location-weqhmjbd.js} +2 -2
  42. package/dist/chunks/{event-feed-k4rfktze.js → location-x2by5wsf.js} +7 -8
  43. package/dist/chunks/{event-feed-xsrtpxyd.js → location-xsrtpxyd.js} +1 -1
  44. package/dist/chunks/{event-feed-zhqf1t9m.js → location-y1grnrmm.js} +1 -1
  45. package/dist/chunks/{event-feed-pg3sqc69.js → location-ym27c8rr.js} +3 -3
  46. package/dist/chunks/{event-feed-qcy0p5fz.js → location-yybdkkb6.js} +2 -2
  47. package/dist/cors.js +1 -1
  48. package/dist/event-feed.js +5 -5
  49. package/dist/fetch.js +47 -47
  50. package/dist/handlers/agent.js +6 -6
  51. package/dist/handlers/command.js +6 -6
  52. package/dist/handlers/config.js +6 -6
  53. package/dist/handlers/credential.js +6 -6
  54. package/dist/handlers/debug.js +6 -6
  55. package/dist/handlers/event.js +7 -7
  56. package/dist/handlers/form.js +6 -6
  57. package/dist/handlers/fs.js +6 -6
  58. package/dist/handlers/generate.js +6 -6
  59. package/dist/handlers/integration.d.ts +1 -1
  60. package/dist/handlers/integration.js +6 -6
  61. package/dist/handlers/location.js +6 -6
  62. package/dist/handlers/mcp.js +6 -6
  63. package/dist/handlers/message.js +6 -6
  64. package/dist/handlers/migration.js +6 -6
  65. package/dist/handlers/model.js +6 -6
  66. package/dist/handlers/permission.js +6 -6
  67. package/dist/handlers/persistent-pty.js +8 -8
  68. package/dist/handlers/plugin.js +6 -6
  69. package/dist/handlers/project.js +6 -6
  70. package/dist/handlers/provider.js +6 -6
  71. package/dist/handlers/pty-socket.js +1 -1
  72. package/dist/handlers/pty.d.ts +2 -1
  73. package/dist/handlers/pty.js +9 -9
  74. package/dist/handlers/reference.js +6 -6
  75. package/dist/handlers/rpc.js +6 -6
  76. package/dist/handlers/server.js +9 -9
  77. package/dist/handlers/session-error.js +1 -1
  78. package/dist/handlers/session.js +6 -6
  79. package/dist/handlers/shell.js +6 -6
  80. package/dist/handlers/skill.js +6 -6
  81. package/dist/handlers/vcs.js +6 -6
  82. package/dist/handlers/websearch.js +6 -6
  83. package/dist/handlers/worktree.js +6 -6
  84. package/dist/handlers.js +43 -43
  85. package/dist/location.js +4 -4
  86. package/dist/middleware/authorization.js +2 -2
  87. package/dist/middleware/form-location.js +3 -3
  88. package/dist/middleware/schema-error.js +1 -1
  89. package/dist/middleware/session-location.js +3 -3
  90. package/dist/pairing.js +5 -5
  91. package/dist/process.d.ts +1 -1
  92. package/dist/process.js +52 -51
  93. package/dist/pty-environment.js +7 -7
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +46 -46
  96. package/dist/server-info.js +5 -5
  97. package/dist/service-status.js +1 -1
  98. package/dist/workerd.js +48 -48
  99. package/package.json +8 -9
  100. package/dist/chunks/event-feed-jhsx8jtg.js +0 -34
  101. package/dist/chunks/event-feed-s4aja1df.js +0 -36
  102. /package/dist/chunks/{event-feed-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  103. /package/dist/chunks/{event-feed-hezj1jdf.js → location-hezj1jdf.js} +0 -0
  104. /package/dist/chunks/{event-feed-q4bn6dy8.js → location-q4bn6dy8.js} +0 -0
  105. /package/dist/chunks/{event-feed-smaf4a18.js → location-smaf4a18.js} +0 -0
  106. /package/dist/chunks/{event-feed-t8yzmczr.js → location-t8yzmczr.js} +0 -0
  107. /package/dist/chunks/{event-feed-yc7nft6q.js → location-yc7nft6q.js} +0 -0
package/dist/workerd.js CHANGED
@@ -1,55 +1,55 @@
1
- import"./chunks/event-feed-q4bn6dy8.js";
2
- import"./chunks/event-feed-smaf4a18.js";
3
- import"./chunks/event-feed-acgs9zzk.js";
4
- import"./chunks/event-feed-d00srfh1.js";
5
- import"./chunks/event-feed-nxdx74sv.js";
6
- import"./chunks/event-feed-ep84ha6r.js";
7
- import"./chunks/event-feed-anm12x33.js";
8
- import"./chunks/event-feed-mpbfcr4e.js";
9
- import"./chunks/event-feed-0b1t2b2s.js";
10
- import"./chunks/event-feed-fsrvj92d.js";
11
- import"./chunks/event-feed-swb5yrqf.js";
12
- import"./chunks/event-feed-30gqa6y8.js";
13
- import"./chunks/event-feed-pg3sqc69.js";
14
- import"./chunks/event-feed-jhsx8jtg.js";
15
- import"./chunks/event-feed-2vy10eeh.js";
16
- import"./chunks/event-feed-q4y3mw2d.js";
17
- import"./chunks/event-feed-m9wzfeff.js";
18
- import"./chunks/event-feed-zhqf1t9m.js";
19
- import"./chunks/event-feed-d0efjmp3.js";
20
- import"./chunks/event-feed-ppd3f187.js";
21
- import"./chunks/event-feed-qcy0p5fz.js";
22
- import"./chunks/event-feed-62qjgyra.js";
23
- import"./chunks/event-feed-s4aja1df.js";
24
- import"./chunks/event-feed-x6486bry.js";
25
- import"./chunks/event-feed-mz8smzxk.js";
26
- import"./chunks/event-feed-w8db1rkr.js";
27
- import"./chunks/event-feed-wv5twc2g.js";
28
- import"./chunks/event-feed-hezj1jdf.js";
29
- import"./chunks/event-feed-f90y8hv1.js";
30
- import"./chunks/event-feed-k4rfktze.js";
31
- import"./chunks/event-feed-srcrrwjk.js";
32
- import"./chunks/event-feed-n7kafg5g.js";
33
- import"./chunks/event-feed-da5stqtt.js";
34
- import"./chunks/event-feed-6sgwm4gr.js";
35
- import"./chunks/event-feed-bptmkrac.js";
36
- import"./chunks/event-feed-3c937re8.js";
37
- import"./chunks/event-feed-j54drd5e.js";
38
- import"./chunks/event-feed-5fmydwgy.js";
39
- import"./chunks/event-feed-ccfecbt4.js";
40
- import"./chunks/event-feed-nvmdgpqv.js";
41
- import"./chunks/event-feed-387sf4vs.js";
42
- import"./chunks/event-feed-jskw5q1g.js";
43
- import"./chunks/event-feed-0nvjg055.js";
44
- import"./chunks/event-feed-gtkdacvk.js";
45
- import"./chunks/event-feed-t8yzmczr.js";
46
- import"./chunks/event-feed-hqjvw1vc.js";
1
+ import"./chunks/location-q4bn6dy8.js";
2
+ import"./chunks/location-smaf4a18.js";
3
+ import"./chunks/location-f2c3fmpg.js";
4
+ import"./chunks/location-w070c2h2.js";
5
+ import"./chunks/location-796j10e5.js";
6
+ import"./chunks/location-9cw9axw5.js";
7
+ import"./chunks/location-anm12x33.js";
8
+ import"./chunks/location-7gfv664k.js";
9
+ import"./chunks/location-4rww2e47.js";
10
+ import"./chunks/location-td9k2nw3.js";
11
+ import"./chunks/location-0vyswjsz.js";
12
+ import"./chunks/location-gny2k2ap.js";
13
+ import"./chunks/location-ym27c8rr.js";
14
+ import"./chunks/location-cqdj4ap7.js";
15
+ import"./chunks/location-v9pcqbqn.js";
16
+ import"./chunks/location-1xva44q8.js";
17
+ import"./chunks/location-dqsr2g0t.js";
18
+ import"./chunks/location-y1grnrmm.js";
19
+ import"./chunks/location-2sy3c7de.js";
20
+ import"./chunks/location-c7mfxxxb.js";
21
+ import"./chunks/location-yybdkkb6.js";
22
+ import"./chunks/location-weqhmjbd.js";
23
+ import"./chunks/location-93wjydnn.js";
24
+ import"./chunks/location-sstsrjtg.js";
25
+ import"./chunks/location-9gvk307e.js";
26
+ import"./chunks/location-n52yc5x0.js";
27
+ import"./chunks/location-0d9kah4z.js";
28
+ import"./chunks/location-hezj1jdf.js";
29
+ import"./chunks/location-f7sjppyz.js";
30
+ import"./chunks/location-x2by5wsf.js";
31
+ import"./chunks/location-krn4521r.js";
32
+ import"./chunks/location-ajzgetf8.js";
33
+ import"./chunks/location-4znne276.js";
34
+ import"./chunks/location-934cmkaf.js";
35
+ import"./chunks/location-16qfdx6b.js";
36
+ import"./chunks/location-ca257yb3.js";
37
+ import"./chunks/location-1nwce8pe.js";
38
+ import"./chunks/location-vb9atgxj.js";
39
+ import"./chunks/location-hvft24jv.js";
40
+ import"./chunks/location-g85r3kcp.js";
41
+ import"./chunks/location-jzqzrtw5.js";
42
+ import"./chunks/location-7rxakzjh.js";
43
+ import"./chunks/location-ap5bajez.js";
44
+ import"./chunks/location-gtkdacvk.js";
45
+ import"./chunks/location-t8yzmczr.js";
46
+ import"./chunks/location-ceje7ncg.js";
47
47
  import {
48
48
  make3
49
- } from "./chunks/event-feed-pvrbm2ca.js";
49
+ } from "./chunks/location-m9xs9t19.js";
50
50
  import {
51
51
  __export
52
- } from "./chunks/event-feed-9rqn6x4v.js";
52
+ } from "./chunks/location-9rqn6x4v.js";
53
53
 
54
54
  // src/workerd.ts
55
55
  var exports_workerd = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/server",
4
- "version": "2.0.24",
4
+ "version": "2.0.25",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,17 +30,16 @@
30
30
  "dependencies": {
31
31
  "@effect/platform-node": "4.0.0-rc.112",
32
32
  "@effect/platform-node-shared": "4.0.0-rc.112",
33
- "@opencode/core": "2.0.24",
34
- "@opencode/protocol": "2.0.24",
35
- "@opencode/schema": "2.0.24",
36
- "@opencode/simulation": "2.0.24",
37
- "@opencode/util": "2.0.24",
38
- "drizzle-orm": "1.0.0-rc.5-169397b",
33
+ "@opencode/core": "2.0.25",
34
+ "@opencode/protocol": "2.0.25",
35
+ "@opencode/schema": "2.0.25",
36
+ "@opencode/simulation": "2.0.25",
37
+ "@opencode/util": "2.0.25",
39
38
  "effect": "4.0.0-rc.112"
40
39
  },
41
40
  "devDependencies": {
42
- "@opencode/client": "2.0.24",
43
- "@opencode/plugin": "2.0.24",
41
+ "@opencode/client": "2.0.25",
42
+ "@opencode/plugin": "2.0.25",
44
43
  "@tsconfig/bun": "1.0.9",
45
44
  "@types/bun": "1.4.0",
46
45
  "@typescript/native-preview": "7.0.0-dev.20251207.1"
@@ -1,34 +0,0 @@
1
- import {
2
- response2
3
- } from "./event-feed-acgs9zzk.js";
4
- import {
5
- Api2
6
- } from "./event-feed-ep84ha6r.js";
7
-
8
- // src/handlers/fs.ts
9
- import { FileSystem } from "@opencode/core/filesystem";
10
- import { RelativePath } from "@opencode/core/schema";
11
- import { FileNotFoundError } from "@opencode/protocol/errors";
12
- import { Effect } from "effect";
13
- import { HttpServerResponse } from "effect/unstable/http";
14
- import { HttpApiBuilder } from "effect/unstable/httpapi";
15
- var FileSystemHandler2 = HttpApiBuilder.group(Api2, "server.fs", (handlers) => Effect.gen(function* () {
16
- return handlers.handleRaw("fs.read", (ctx) => Effect.gen(function* () {
17
- const fs = yield* FileSystem.Service;
18
- const file = yield* fs.read({
19
- path: RelativePath.make(decodeURIComponent(new URL(ctx.request.url, "http://localhost").pathname.slice(13)))
20
- }).pipe(Effect.mapError((error) => new FileNotFoundError({ path: error.path, message: `File not found: ${error.path}` })));
21
- return HttpServerResponse.uint8Array(file.content, { contentType: file.mime });
22
- })).handle("fs.list", (ctx) => response2(Effect.gen(function* () {
23
- const fs = yield* FileSystem.Service;
24
- return yield* fs.list(ctx.query);
25
- }))).handle("fs.find", (ctx) => response2(Effect.gen(function* () {
26
- const fs = yield* FileSystem.Service;
27
- return yield* fs.find(ctx.query);
28
- }))).handle("fs.write", (ctx) => response2(Effect.gen(function* () {
29
- const fs = yield* FileSystem.Service;
30
- return yield* fs.write({ path: ctx.query.path, data: ctx.payload });
31
- })));
32
- }));
33
-
34
- export { FileSystemHandler2 };
@@ -1,36 +0,0 @@
1
- import {
2
- __export
3
- } from "./event-feed-9rqn6x4v.js";
4
-
5
- // src/server-info.ts
6
- var exports_server_info = {};
7
- __export(exports_server_info, {
8
- ServerInfo: () => exports_server_info,
9
- Service: () => Service2,
10
- connectionURLs: () => connectionURLs2,
11
- layer: () => layer2
12
- });
13
- import { Context, Layer } from "effect";
14
- import { networkInterfaces } from "node:os";
15
-
16
- class Service2 extends Context.Service()("@opencode/server/ServerInfo") {
17
- }
18
- function layer2(urls, tmp, app = {}) {
19
- return Layer.succeed(Service2, Service2.of({ urls, app, paths: { tmp } }));
20
- }
21
- function connectionURLs2(value, requestedHostname) {
22
- const url = new URL(value);
23
- const hostname = requestedHostname ?? url.hostname;
24
- const family = hostname === "0.0.0.0" ? "IPv4" : hostname === "::" || hostname === "[::]" ? "IPv6" : undefined;
25
- if (family === undefined)
26
- return [value];
27
- return [
28
- ...new Set(Object.values(networkInterfaces()).flatMap((entries) => entries ?? []).filter((entry) => !entry.internal && entry.family === family).map((entry) => {
29
- const result = new URL(value);
30
- result.hostname = family === "IPv6" ? `[${entry.address}]` : entry.address;
31
- return result.toString().replace(/\/$/, "");
32
- }))
33
- ];
34
- }
35
-
36
- export { Service2, layer2, connectionURLs2, exports_server_info };