@opencode/server 0.0.0-dev-256 → 0.0.0-dev-261

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 (113) hide show
  1. package/dist/api.js +5 -5
  2. package/dist/auth.js +1 -1
  3. package/dist/chunks/{process-059rbh9c.js → fetch-059rbh9c.js} +1 -1
  4. package/dist/chunks/{process-rha2aq18.js → fetch-0a5jm2na.js} +2 -2
  5. package/dist/chunks/{process-6z9pvq7p.js → fetch-1je14sn4.js} +1 -1
  6. package/dist/chunks/{process-qd0r787n.js → fetch-22wspztn.js} +2 -2
  7. package/dist/chunks/{process-s282vggx.js → fetch-2xcc0x05.js} +1 -1
  8. package/dist/chunks/{process-ny1j968n.js → fetch-6vs5sqy6.js} +2 -2
  9. package/dist/chunks/{process-7b9xm1qg.js → fetch-7b9xm1qg.js} +1 -1
  10. package/dist/chunks/{process-99ggccwj.js → fetch-95h1mmtp.js} +35 -35
  11. package/dist/chunks/{process-j87xz9bt.js → fetch-9c4eyh8m.js} +3 -3
  12. package/dist/chunks/{process-cezwbsk5.js → fetch-b2k9041j.js} +1 -1
  13. package/dist/chunks/fetch-b5vdqx3g.js +61 -0
  14. package/dist/chunks/{process-yqhefp4s.js → fetch-c6sjpm0r.js} +2 -2
  15. package/dist/chunks/{process-vsfeekyx.js → fetch-ckkpcd9y.js} +4 -4
  16. package/dist/chunks/{process-a8jcac9a.js → fetch-dk68ymtv.js} +1 -1
  17. package/dist/chunks/{process-kkdkqt8j.js → fetch-e46y0tfd.js} +2 -2
  18. package/dist/chunks/{process-39nnfjx1.js → fetch-e6e4kz0w.js} +4 -4
  19. package/dist/chunks/{process-03x11xk6.js → fetch-e9906t2e.js} +4 -4
  20. package/dist/chunks/{process-htyf2qs7.js → fetch-gk0yxcp6.js} +1 -1
  21. package/dist/chunks/{process-50bbk3b2.js → fetch-gqq6kfhc.js} +3 -3
  22. package/dist/chunks/{process-4qshv3yw.js → fetch-gsyfxrkq.js} +5 -5
  23. package/dist/chunks/{process-zcvan105.js → fetch-h072q2hm.js} +1 -1
  24. package/dist/chunks/{process-4fy84009.js → fetch-h9rcwvg0.js} +1 -1
  25. package/dist/chunks/{process-az0609r6.js → fetch-hax1v4bv.js} +2 -2
  26. package/dist/chunks/{process-1v577ncx.js → fetch-hnheq3hv.js} +2 -2
  27. package/dist/chunks/{process-j4at0y5c.js → fetch-j4at0y5c.js} +1 -1
  28. package/dist/chunks/{process-b105zy65.js → fetch-j9gxd9me.js} +2 -2
  29. package/dist/chunks/{process-k3txyteh.js → fetch-kffvskmv.js} +4 -4
  30. package/dist/chunks/{process-f559fakr.js → fetch-m5rae7m4.js} +2 -2
  31. package/dist/chunks/{process-btahnm2b.js → fetch-ppma8fcc.js} +3 -3
  32. package/dist/chunks/{process-xaq6r89c.js → fetch-qb54r15e.js} +13 -13
  33. package/dist/chunks/{process-2eaky32g.js → fetch-qn8kkfq6.js} +2 -2
  34. package/dist/chunks/{process-2h6qktqa.js → fetch-r6vmgwff.js} +2 -2
  35. package/dist/chunks/{process-20hxek78.js → fetch-rztv1fyf.js} +4 -4
  36. package/dist/chunks/{process-zh6nt7d4.js → fetch-w1r7dqbt.js} +6 -6
  37. package/dist/chunks/{process-9jza3m7j.js → fetch-w587cpb2.js} +6 -6
  38. package/dist/chunks/{process-mzs0n5xz.js → fetch-w9jcwh65.js} +7 -7
  39. package/dist/chunks/{process-qfyg9gb7.js → fetch-wecgp61r.js} +7 -7
  40. package/dist/chunks/{process-d0edqfxx.js → fetch-wxj3d9av.js} +2 -2
  41. package/dist/chunks/{process-qcg3sqtb.js → fetch-x8dgc261.js} +2 -2
  42. package/dist/chunks/{process-5s6gh8sx.js → fetch-xe9t9xr4.js} +2 -2
  43. package/dist/chunks/{process-b3bmdkga.js → fetch-yet0vexm.js} +1 -1
  44. package/dist/chunks/{process-te8jwba1.js → fetch-yr4wsvrw.js} +2 -2
  45. package/dist/chunks/{process-z3e7v67k.js → fetch-z3e7v67k.js} +1 -1
  46. package/dist/chunks/{process-4q6e7fh8.js → fetch-z59gyc0x.js} +2 -2
  47. package/dist/chunks/{process-5s0wnsg4.js → fetch-zgt2tacv.js} +3 -3
  48. package/dist/chunks/{process-h29xjj1e.js → fetch-zrprg5z5.js} +29 -4
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +5 -5
  51. package/dist/fetch.js +53 -53
  52. package/dist/handlers/agent.js +6 -6
  53. package/dist/handlers/command.js +6 -6
  54. package/dist/handlers/config.js +6 -6
  55. package/dist/handlers/credential.d.ts +3 -1
  56. package/dist/handlers/credential.js +7 -6
  57. package/dist/handlers/debug.js +6 -6
  58. package/dist/handlers/event.js +7 -7
  59. package/dist/handlers/form.js +6 -6
  60. package/dist/handlers/fs.js +6 -6
  61. package/dist/handlers/generate.js +6 -6
  62. package/dist/handlers/integration.d.ts +5 -0
  63. package/dist/handlers/integration.js +9 -7
  64. package/dist/handlers/location.js +6 -6
  65. package/dist/handlers/mcp.js +8 -8
  66. package/dist/handlers/media.js +1 -1
  67. package/dist/handlers/message.js +7 -7
  68. package/dist/handlers/migration.js +6 -6
  69. package/dist/handlers/model.js +6 -6
  70. package/dist/handlers/permission.js +6 -6
  71. package/dist/handlers/persistent-pty.js +10 -10
  72. package/dist/handlers/plugin.js +6 -6
  73. package/dist/handlers/project.js +6 -6
  74. package/dist/handlers/provider.js +6 -6
  75. package/dist/handlers/pty-socket.js +1 -1
  76. package/dist/handlers/pty.js +8 -8
  77. package/dist/handlers/reference.js +6 -6
  78. package/dist/handlers/rpc.js +6 -6
  79. package/dist/handlers/schedule.js +2 -2
  80. package/dist/handlers/server.js +9 -9
  81. package/dist/handlers/session-error.js +1 -1
  82. package/dist/handlers/session.js +7 -7
  83. package/dist/handlers/shell.js +6 -6
  84. package/dist/handlers/skill.js +6 -6
  85. package/dist/handlers/usage.js +6 -6
  86. package/dist/handlers/vcs.js +6 -6
  87. package/dist/handlers/voice.js +6 -6
  88. package/dist/handlers/websearch.js +6 -6
  89. package/dist/handlers/worktree.js +6 -6
  90. package/dist/handlers.js +47 -47
  91. package/dist/location.js +4 -4
  92. package/dist/media-uri.js +1 -1
  93. package/dist/middleware/authorization.js +2 -2
  94. package/dist/middleware/form-location.js +3 -3
  95. package/dist/middleware/schema-error.js +1 -1
  96. package/dist/middleware/session-location.js +3 -3
  97. package/dist/pairing.js +3 -3
  98. package/dist/process.js +55 -55
  99. package/dist/request-tracing.js +1 -1
  100. package/dist/routes.js +50 -50
  101. package/dist/server-info.js +1 -1
  102. package/dist/service-status.js +3 -3
  103. package/dist/workerd.js +54 -54
  104. package/package.json +8 -8
  105. package/dist/chunks/process-5b42hxrf.js +0 -47
  106. /package/dist/chunks/{process-9rqn6x4v.js → fetch-9rqn6x4v.js} +0 -0
  107. /package/dist/chunks/{process-bd8755ek.js → fetch-bd8755ek.js} +0 -0
  108. /package/dist/chunks/{process-h6rt5k9s.js → fetch-h6rt5k9s.js} +0 -0
  109. /package/dist/chunks/{process-n321d8vm.js → fetch-n321d8vm.js} +0 -0
  110. /package/dist/chunks/{process-q4bn6dy8.js → fetch-q4bn6dy8.js} +0 -0
  111. /package/dist/chunks/{process-smaf4a18.js → fetch-smaf4a18.js} +0 -0
  112. /package/dist/chunks/{process-xthc02cw.js → fetch-xthc02cw.js} +0 -0
  113. /package/dist/chunks/{process-yc7nft6q.js → fetch-yc7nft6q.js} +0 -0
package/dist/workerd.js CHANGED
@@ -1,59 +1,59 @@
1
- import"./chunks/process-q4bn6dy8.js";
2
- import"./chunks/process-smaf4a18.js";
3
- import"./chunks/process-50bbk3b2.js";
4
- import"./chunks/process-htyf2qs7.js";
5
- import"./chunks/process-b3bmdkga.js";
6
- import"./chunks/process-j87xz9bt.js";
7
- import"./chunks/process-j4at0y5c.js";
8
- import"./chunks/process-yqhefp4s.js";
9
- import"./chunks/process-d0edqfxx.js";
10
- import"./chunks/process-xthc02cw.js";
11
- import"./chunks/process-5s0wnsg4.js";
12
- import"./chunks/process-rha2aq18.js";
13
- import"./chunks/process-az0609r6.js";
14
- import"./chunks/process-k3txyteh.js";
15
- import"./chunks/process-btahnm2b.js";
16
- import"./chunks/process-2h6qktqa.js";
17
- import"./chunks/process-f559fakr.js";
18
- import"./chunks/process-4q6e7fh8.js";
19
- import"./chunks/process-ny1j968n.js";
20
- import"./chunks/process-s282vggx.js";
21
- import"./chunks/process-qfyg9gb7.js";
22
- import"./chunks/process-03x11xk6.js";
23
- import"./chunks/process-1v577ncx.js";
24
- import"./chunks/process-2eaky32g.js";
25
- import"./chunks/process-z3e7v67k.js";
26
- import"./chunks/process-mzs0n5xz.js";
27
- import"./chunks/process-9jza3m7j.js";
28
- import"./chunks/process-qcg3sqtb.js";
29
- import"./chunks/process-h6rt5k9s.js";
30
- import"./chunks/process-vsfeekyx.js";
31
- import"./chunks/process-n321d8vm.js";
32
- import"./chunks/process-059rbh9c.js";
33
- import"./chunks/process-4qshv3yw.js";
34
- import"./chunks/process-qd0r787n.js";
35
- import"./chunks/process-te8jwba1.js";
36
- import"./chunks/process-zcvan105.js";
37
- import"./chunks/process-h29xjj1e.js";
38
- import"./chunks/process-kkdkqt8j.js";
39
- import"./chunks/process-b105zy65.js";
40
- import"./chunks/process-20hxek78.js";
41
- import"./chunks/process-5b42hxrf.js";
42
- import"./chunks/process-a8jcac9a.js";
43
- import"./chunks/process-4fy84009.js";
44
- import"./chunks/process-5s6gh8sx.js";
45
- import"./chunks/process-6z9pvq7p.js";
46
- import"./chunks/process-cezwbsk5.js";
47
- import"./chunks/process-99ggccwj.js";
48
- import"./chunks/process-7b9xm1qg.js";
49
- import"./chunks/process-bd8755ek.js";
50
- import"./chunks/process-xaq6r89c.js";
1
+ import"./chunks/fetch-q4bn6dy8.js";
2
+ import"./chunks/fetch-smaf4a18.js";
3
+ import"./chunks/fetch-gqq6kfhc.js";
4
+ import"./chunks/fetch-gk0yxcp6.js";
5
+ import"./chunks/fetch-yet0vexm.js";
6
+ import"./chunks/fetch-9c4eyh8m.js";
7
+ import"./chunks/fetch-j4at0y5c.js";
8
+ import"./chunks/fetch-c6sjpm0r.js";
9
+ import"./chunks/fetch-wxj3d9av.js";
10
+ import"./chunks/fetch-xthc02cw.js";
11
+ import"./chunks/fetch-zgt2tacv.js";
12
+ import"./chunks/fetch-0a5jm2na.js";
13
+ import"./chunks/fetch-hax1v4bv.js";
14
+ import"./chunks/fetch-kffvskmv.js";
15
+ import"./chunks/fetch-ppma8fcc.js";
16
+ import"./chunks/fetch-r6vmgwff.js";
17
+ import"./chunks/fetch-m5rae7m4.js";
18
+ import"./chunks/fetch-z59gyc0x.js";
19
+ import"./chunks/fetch-6vs5sqy6.js";
20
+ import"./chunks/fetch-2xcc0x05.js";
21
+ import"./chunks/fetch-wecgp61r.js";
22
+ import"./chunks/fetch-e9906t2e.js";
23
+ import"./chunks/fetch-hnheq3hv.js";
24
+ import"./chunks/fetch-qn8kkfq6.js";
25
+ import"./chunks/fetch-z3e7v67k.js";
26
+ import"./chunks/fetch-w9jcwh65.js";
27
+ import"./chunks/fetch-w587cpb2.js";
28
+ import"./chunks/fetch-x8dgc261.js";
29
+ import"./chunks/fetch-h6rt5k9s.js";
30
+ import"./chunks/fetch-ckkpcd9y.js";
31
+ import"./chunks/fetch-n321d8vm.js";
32
+ import"./chunks/fetch-059rbh9c.js";
33
+ import"./chunks/fetch-gsyfxrkq.js";
34
+ import"./chunks/fetch-22wspztn.js";
35
+ import"./chunks/fetch-yr4wsvrw.js";
36
+ import"./chunks/fetch-h072q2hm.js";
37
+ import"./chunks/fetch-zrprg5z5.js";
38
+ import"./chunks/fetch-e46y0tfd.js";
39
+ import"./chunks/fetch-j9gxd9me.js";
40
+ import"./chunks/fetch-rztv1fyf.js";
41
+ import"./chunks/fetch-b5vdqx3g.js";
42
+ import"./chunks/fetch-dk68ymtv.js";
43
+ import"./chunks/fetch-h9rcwvg0.js";
44
+ import"./chunks/fetch-xe9t9xr4.js";
45
+ import"./chunks/fetch-1je14sn4.js";
46
+ import"./chunks/fetch-b2k9041j.js";
47
+ import"./chunks/fetch-95h1mmtp.js";
48
+ import"./chunks/fetch-7b9xm1qg.js";
49
+ import"./chunks/fetch-bd8755ek.js";
50
+ import"./chunks/fetch-qb54r15e.js";
51
51
  import {
52
- make3
53
- } from "./chunks/process-zh6nt7d4.js";
52
+ make2
53
+ } from "./chunks/fetch-w1r7dqbt.js";
54
54
  import {
55
55
  __export
56
- } from "./chunks/process-9rqn6x4v.js";
56
+ } from "./chunks/fetch-9rqn6x4v.js";
57
57
 
58
58
  // src/workerd.ts
59
59
  var exports_workerd = {};
@@ -75,7 +75,7 @@ import { Snapshot } from "@opencode/core/snapshot";
75
75
  import { Vcs } from "@opencode/core/vcs";
76
76
  import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
77
77
  function create(options) {
78
- return make3(serverOptions(options), { overrides: replacements(options) });
78
+ return make2(serverOptions(options), { overrides: replacements(options) });
79
79
  }
80
80
  function serverOptions(options) {
81
81
  return {
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": "0.0.0-dev-256",
4
+ "version": "0.0.0-dev-261",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -32,17 +32,17 @@
32
32
  "dependencies": {
33
33
  "@effect/platform-node": "4.0.6",
34
34
  "@effect/platform-node-shared": "4.0.6",
35
- "@opencode/core": "0.0.0-dev-256",
36
- "@opencode/protocol": "0.0.0-dev-256",
37
- "@opencode/schema": "0.0.0-dev-256",
38
- "@opencode/simulation": "0.0.0-dev-256",
39
- "@opencode/util": "0.0.0-dev-256",
35
+ "@opencode/core": "0.0.0-dev-261",
36
+ "@opencode/protocol": "0.0.0-dev-261",
37
+ "@opencode/schema": "0.0.0-dev-261",
38
+ "@opencode/simulation": "0.0.0-dev-261",
39
+ "@opencode/util": "0.0.0-dev-261",
40
40
  "effect": "4.0.6"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@opencode/pty": "0.3.3",
44
- "@opencode/client": "0.0.0-dev-256",
45
- "@opencode/plugin": "0.0.0-dev-256",
44
+ "@opencode/client": "0.0.0-dev-261",
45
+ "@opencode/plugin": "0.0.0-dev-261",
46
46
  "@tsconfig/bun": "1.0.9",
47
47
  "@types/bun": "1.4.3",
48
48
  "@typescript/native": "npm:typescript@7.1.0-beta",
@@ -1,47 +0,0 @@
1
- import {
2
- Api2
3
- } from "./process-j87xz9bt.js";
4
-
5
- // src/handlers/credential.ts
6
- import { Credential } from "@opencode/core/credential";
7
- import { ConflictError } from "@opencode/protocol/errors";
8
- import { Effect } from "effect";
9
- import { HttpApiBuilder, HttpApiSchema } from "effect/http-api";
10
- var CredentialHandler2 = HttpApiBuilder.group(Api2, "server.credential", (handlers) => handlers.handle("credential.list", Effect.fn(function* () {
11
- const credential = yield* Credential.Service;
12
- return { data: entries(yield* credential.all()) };
13
- })).handle("credential.create", Effect.fn(function* (ctx) {
14
- const credential = yield* Credential.Service;
15
- if (ctx.payload.id && (yield* credential.get(ctx.payload.id)))
16
- return yield* new ConflictError({
17
- resource: ctx.payload.id,
18
- message: `Credential already exists: ${ctx.payload.id}`
19
- });
20
- const created = yield* credential.create(ctx.payload);
21
- const entry = entries(yield* credential.list(created.integrationID)).find((item) => item.id === created.id);
22
- return { data: entry ?? { ...created, active: false } };
23
- })).handle("credential.update", Effect.fn(function* (ctx) {
24
- const credential = yield* Credential.Service;
25
- yield* credential.update(ctx.params.credentialID, { label: ctx.payload.label });
26
- return HttpApiSchema.NoContent.make();
27
- })).handle("credential.activate", Effect.fn(function* (ctx) {
28
- const credential = yield* Credential.Service;
29
- yield* credential.activate(ctx.params.credentialID);
30
- return HttpApiSchema.NoContent.make();
31
- })).handle("credential.remove", Effect.fn(function* (ctx) {
32
- const credential = yield* Credential.Service;
33
- yield* credential.remove(ctx.params.credentialID);
34
- return HttpApiSchema.NoContent.make();
35
- })));
36
- function entries(credentials) {
37
- const selected = new Map(credentials.map((item) => [item.integrationID, item.id]));
38
- return credentials.map((item) => ({
39
- id: item.id,
40
- integrationID: item.integrationID,
41
- label: item.label,
42
- active: selected.get(item.integrationID) === item.id,
43
- value: item.value
44
- }));
45
- }
46
-
47
- export { CredentialHandler2 };