alchemylab-opencode 1.0.18 → 1.0.20

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 (97) hide show
  1. package/dist/{run-service-RE7EK2UK.js → arktype-aI7TBD0R-ETU7X65Q.js} +1 -11
  2. package/dist/chunk-7KKA6WBY.js +12 -0
  3. package/dist/chunk-A4S3BYGY.js +12 -0
  4. package/dist/{chunk-PWFRMDDF.js → chunk-BGADAZN4.js} +0 -1
  5. package/dist/chunk-BYJU35KA.js +18 -0
  6. package/dist/chunk-FT4RVZXD.js +18 -0
  7. package/dist/chunk-LTCXIXYM.js +12 -0
  8. package/dist/chunk-M4CB72HE.js +13 -0
  9. package/dist/chunk-M4DCWBCO.js +12 -0
  10. package/dist/chunk-MBZTOEAD.js +12 -0
  11. package/dist/chunk-N7PLTD3P.js +13 -0
  12. package/dist/chunk-QRUX5DYI.js +75 -0
  13. package/dist/chunk-T6MY2WE4.js +12 -0
  14. package/dist/{chunk-FMP3YLWX.js → chunk-T7EXROHP.js} +1 -19
  15. package/dist/chunk-UO2AIECR.js +2214 -0
  16. package/dist/{mcp-4SNUY4OD.js → chunk-XREX5MYM.js} +1 -11
  17. package/dist/{schema-EWYI6LGA.js → default-u_dwuiYb-5QQ4GXMV.js} +1 -13
  18. package/dist/effect-QlVUlMFu-ORZ7TVO5.js +12 -0
  19. package/dist/log-MVJ7H4K5.js +12 -0
  20. package/dist/mcp-7UCWZJLJ.js +12 -0
  21. package/dist/{registry-EQ7TBD6Z.js → pty.node-X2EITEZ4.js} +1 -12
  22. package/dist/registry-HGPZOISH.js +12 -0
  23. package/dist/run-DYJ5YKU4.js +20 -0
  24. package/dist/run-service-IUIOP7ZW.js +12 -0
  25. package/dist/run.js +1 -11
  26. package/dist/schema-YWIVP7UR.js +12 -0
  27. package/dist/serve.js +1 -36
  28. package/dist/{default-u_dwuiYb-WOFHQQ3K.js → server-VKRBP2QM.js} +1 -11
  29. package/dist/session-Z4P4Y6MB.js +12 -0
  30. package/dist/share-next-WZUJANDA.js +12 -0
  31. package/dist/sury-CWZTCd75-IXNCX752.js +12 -0
  32. package/dist/typebox-Dei93FPO-K67WT2FO.js +12 -0
  33. package/dist/valibot--1zFm7rT-SSCP4J5I.js +12 -0
  34. package/dist/valibot-D_HTw1Gn-KPCJMJMC.js +12 -0
  35. package/dist/worktree-5JVGPJ42.js +12 -0
  36. package/dist/{arktype-aI7TBD0R-HX4BR3RX.js → zod-Bwrt9trS-BYLM45IZ.js} +1 -10
  37. package/dist/{chunk-BI5OUHTQ.js → zod-DSgpEGAE-T3VJY2W3.js} +1 -20
  38. package/package.json +10 -5
  39. package/dist/arktype-aI7TBD0R-HX4BR3RX.js.map +0 -7
  40. package/dist/chunk-3AF5MXLF.js +0 -49
  41. package/dist/chunk-3AF5MXLF.js.map +0 -7
  42. package/dist/chunk-6UDEKTJV.js +0 -23942
  43. package/dist/chunk-6UDEKTJV.js.map +0 -7
  44. package/dist/chunk-BI5OUHTQ.js.map +0 -7
  45. package/dist/chunk-COCF34ZS.js +0 -144
  46. package/dist/chunk-COCF34ZS.js.map +0 -7
  47. package/dist/chunk-FMP3YLWX.js.map +0 -7
  48. package/dist/chunk-HORZKFCR.js +0 -88
  49. package/dist/chunk-HORZKFCR.js.map +0 -7
  50. package/dist/chunk-J4KUHHYM.js +0 -2289
  51. package/dist/chunk-J4KUHHYM.js.map +0 -7
  52. package/dist/chunk-O5VWOPCL.js +0 -106
  53. package/dist/chunk-O5VWOPCL.js.map +0 -7
  54. package/dist/chunk-PWFRMDDF.js.map +0 -7
  55. package/dist/chunk-S3PMXQSO.js +0 -728
  56. package/dist/chunk-S3PMXQSO.js.map +0 -7
  57. package/dist/chunk-SNATISLF.js +0 -319
  58. package/dist/chunk-SNATISLF.js.map +0 -7
  59. package/dist/chunk-VL3RSEZ2.js +0 -160
  60. package/dist/chunk-VL3RSEZ2.js.map +0 -7
  61. package/dist/chunk-YX3AWX2A.js +0 -6620
  62. package/dist/chunk-YX3AWX2A.js.map +0 -7
  63. package/dist/chunk-Z6HKGDR4.js +0 -5678
  64. package/dist/chunk-Z6HKGDR4.js.map +0 -7
  65. package/dist/default-u_dwuiYb-WOFHQQ3K.js.map +0 -7
  66. package/dist/effect-QlVUlMFu-UERLUUQW.js +0 -29
  67. package/dist/effect-QlVUlMFu-UERLUUQW.js.map +0 -7
  68. package/dist/mcp-4SNUY4OD.js.map +0 -7
  69. package/dist/pty.node-RHOAUGH6.js +0 -40
  70. package/dist/pty.node-RHOAUGH6.js.map +0 -7
  71. package/dist/registry-EQ7TBD6Z.js.map +0 -7
  72. package/dist/run-XIMVXVMO.js +0 -4794
  73. package/dist/run-XIMVXVMO.js.map +0 -7
  74. package/dist/run-service-RE7EK2UK.js.map +0 -7
  75. package/dist/run.js.map +0 -7
  76. package/dist/schema-EWYI6LGA.js.map +0 -7
  77. package/dist/serve.js.map +0 -7
  78. package/dist/server-P3JM3FFL.js +0 -29
  79. package/dist/server-P3JM3FFL.js.map +0 -7
  80. package/dist/session-FV32QIWG.js +0 -23
  81. package/dist/session-FV32QIWG.js.map +0 -7
  82. package/dist/share-next-MK3GU4BJ.js +0 -24
  83. package/dist/share-next-MK3GU4BJ.js.map +0 -7
  84. package/dist/sury-CWZTCd75-XC3NCMTP.js +0 -29
  85. package/dist/sury-CWZTCd75-XC3NCMTP.js.map +0 -7
  86. package/dist/typebox-Dei93FPO-QOBKW4L7.js +0 -21
  87. package/dist/typebox-Dei93FPO-QOBKW4L7.js.map +0 -7
  88. package/dist/valibot--1zFm7rT-LHHLSLYY.js +0 -29
  89. package/dist/valibot--1zFm7rT-LHHLSLYY.js.map +0 -7
  90. package/dist/valibot-D_HTw1Gn-UR62BIDY.js +0 -60
  91. package/dist/valibot-D_HTw1Gn-UR62BIDY.js.map +0 -7
  92. package/dist/worktree-N3PSXGW4.js +0 -63
  93. package/dist/worktree-N3PSXGW4.js.map +0 -7
  94. package/dist/zod-Bwrt9trS-J2GOMA2R.js +0 -43
  95. package/dist/zod-Bwrt9trS-J2GOMA2R.js.map +0 -7
  96. package/dist/zod-DSgpEGAE-VTXQW6SB.js +0 -56
  97. package/dist/zod-DSgpEGAE-VTXQW6SB.js.map +0 -7
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
package/dist/run.js.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../packages/opencode/src/run.ts"],
4
- "sourcesContent": ["/**\n * Minimal Node.js-compatible entry point for `opencode run --attach`.\n * Only imports the run command path \u2014 avoids TUI .tsx imports.\n *\n * Usage:\n * node --experimental-strip-types --experimental-transform-types \\\n * --import ./src/node-preload.mjs \\\n * src/run.ts --attach http://127.0.0.1:PORT --session SESSION_ID --agent AGENT [prompt]\n */\n\nimport { homedir } from 'node:os'\nimport { join } from 'node:path'\n\n// Set data directory before any module imports Global.Path\nconst defaultDataDir = join(homedir(), '.alchemy_lab', 'opencode')\nprocess.env.OPENCODE_DATA_DIR = process.env.OPENCODE_DATA_DIR || defaultDataDir\n\nconst { RunCommand } = await import('./cli/cmd/run')\n\n// RunCommand is a yargs command module \u2014 invoke it directly\nconst yargs = (await import('yargs')).default\nconst { hideBin } = await import('yargs/helpers')\n\nyargs(hideBin(process.argv))\n .command(RunCommand as any)\n .strict()\n .help()\n .parse()\n"],
5
- "mappings": ";;;;;;;;;;;;;AAUA,SAAS,eAAe;AACxB,SAAS,YAAY;AAGrB,IAAM,iBAAiB,KAAK,QAAQ,GAAG,gBAAgB,UAAU;AACjE,QAAQ,IAAI,oBAAoB,QAAQ,IAAI,qBAAqB;AAEjE,IAAM,EAAE,WAAW,IAAI,MAAM,OAAO,mBAAe;AAGnD,IAAM,SAAS,MAAM,OAAO,OAAO,GAAG;AACtC,IAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,eAAe;AAEhD,MAAM,QAAQ,QAAQ,IAAI,CAAC,EACxB,QAAQ,UAAiB,EACzB,OAAO,EACP,KAAK,EACL,MAAM;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
package/dist/serve.js.map DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../packages/opencode/src/serve.ts"],
4
- "sourcesContent": ["/**\n * Minimal Node.js-compatible entry point for `opencode serve`.\n * Only imports the serve path \u2014 avoids TUI/CLI dependencies that require Bun.\n *\n * Usage:\n * node --experimental-strip-types --experimental-transform-types \\\n * --import ./src/node-preload.mjs \\\n * src/serve.ts --port 4096 [--hostname 127.0.0.1] [--data-dir /path/to/.alchemy_lab]\n */\n\n// Enable TCP keepalive on every outgoing fetch so reasoning-model silences\n// don't let NAT / provider-edge / ISP equipment quietly drop the socket\n// (see req009613/req009614: 'agents stop writing' after 60-90s of think-phase silence).\n// Done in serve.ts (not just node-preload.mjs) because build.mjs bundles polyfills\n// from a banner string and never reads node-preload.mjs \u2014 dist/serve.js needs the\n// dispatcher inside the bundled source.\nimport { Agent, setGlobalDispatcher } from 'undici'\n// headersTimeout 0: local model servers (LM Studio and friends) send no\n// response headers until prompt prefill completes, which on a big agent\n// prompt can far exceed undici's 300s default -- the fetch then dies as\n// `terminated` mid-prefill. bodyTimeout 0 for the same reason: LM Studio\n// sends headers in milliseconds and then streams NOTHING until prefill\n// completes, so the 300s body-idle clock killed turns the headers fix\n// did not (proven live, same 5-minute signature). Stuck streams remain\n// covered by the provider fetch wrapper's chunkTimeout and the session\n// watchdog above this layer.\nsetGlobalDispatcher(new Agent({\n connect: { keepAlive: true, keepAliveInitialDelay: 5000 },\n headersTimeout: 0,\n bodyTimeout: 0,\n}))\n\nfunction arg(name: string, fallback: string): string {\n const idx = process.argv.indexOf(`--${name}`)\n return idx !== -1 && process.argv[idx + 1] ? process.argv[idx + 1] : fallback\n}\n\n// Set data directory before any module imports Global.Path\nimport { homedir } from 'node:os'\nimport { join } from 'node:path'\nconst defaultDataDir = join(homedir(), '.alchemy_lab', 'opencode')\nconst dataDir = arg('data-dir', defaultDataDir)\nprocess.env.OPENCODE_DATA_DIR = dataDir\n\n// Now safe to import the server\nconst { Server } = await import(\"./server/server\")\n\nconst port = parseInt(arg('port', '4096'), 10)\nconst hostname = arg('hostname', '127.0.0.1')\n\ntry {\n const server = await Server.listen({ port, hostname })\n console.log(`opencode server listening on http://${server.hostname}:${server.port}`)\n\n const shutdown = async () => {\n await server.stop(true)\n process.exit(0)\n }\n process.on('SIGINT', shutdown)\n process.on('SIGTERM', shutdown)\n\n // Keep process alive\n await new Promise(() => {})\n} catch (err) {\n console.error('Failed to start server:', err)\n process.exit(1)\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;AAgBA,SAAS,OAAO,2BAA2B;AAsB3C,SAAS,eAAe;AACxB,SAAS,YAAY;AAbrB,oBAAoB,IAAI,MAAM;AAAA,EAC5B,SAAS,EAAE,WAAW,MAAM,uBAAuB,IAAK;AAAA,EACxD,gBAAgB;AAAA,EAChB,aAAa;AACf,CAAC,CAAC;AAEF,SAAS,IAAI,MAAc,UAA0B;AACnD,QAAM,MAAM,QAAQ,KAAK,QAAQ,KAAK,IAAI,EAAE;AAC5C,SAAO,QAAQ,MAAM,QAAQ,KAAK,MAAM,CAAC,IAAI,QAAQ,KAAK,MAAM,CAAC,IAAI;AACvE;AAKA,IAAM,iBAAiB,KAAK,QAAQ,GAAG,gBAAgB,UAAU;AACjE,IAAM,UAAU,IAAI,YAAY,cAAc;AAC9C,QAAQ,IAAI,oBAAoB;AAGhC,IAAM,EAAE,OAAO,IAAI,MAAM,OAAO,sBAAiB;AAEjD,IAAM,OAAO,SAAS,IAAI,QAAQ,MAAM,GAAG,EAAE;AAC7C,IAAM,WAAW,IAAI,YAAY,WAAW;AAE5C,IAAI;AACF,QAAM,SAAS,MAAM,OAAO,OAAO,EAAE,MAAM,SAAS,CAAC;AACrD,UAAQ,IAAI,uCAAuC,OAAO,QAAQ,IAAI,OAAO,IAAI,EAAE;AAEnF,QAAM,WAAW,YAAY;AAC3B,UAAM,OAAO,KAAK,IAAI;AACtB,YAAQ,KAAK,CAAC;AAAA,EAChB;AACA,UAAQ,GAAG,UAAU,QAAQ;AAC7B,UAAQ,GAAG,WAAW,QAAQ;AAG9B,QAAM,IAAI,QAAQ,MAAM;AAAA,EAAC,CAAC;AAC5B,SAAS,KAAK;AACZ,UAAQ,MAAM,2BAA2B,GAAG;AAC5C,UAAQ,KAAK,CAAC;AAChB;",
6
- "names": []
7
- }
@@ -1,29 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- Server
14
- } from "./chunk-Z6HKGDR4.js";
15
- import "./chunk-S3PMXQSO.js";
16
- import "./chunk-3AF5MXLF.js";
17
- import "./chunk-PWFRMDDF.js";
18
- import "./chunk-SNATISLF.js";
19
- import "./chunk-6UDEKTJV.js";
20
- import "./chunk-YX3AWX2A.js";
21
- import "./chunk-J4KUHHYM.js";
22
- import "./chunk-COCF34ZS.js";
23
- import "./chunk-BI5OUHTQ.js";
24
- import "./chunk-VL3RSEZ2.js";
25
- import "./chunk-HORZKFCR.js";
26
- export {
27
- Server
28
- };
29
- //# sourceMappingURL=server-P3JM3FFL.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,23 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- Session
14
- } from "./chunk-6UDEKTJV.js";
15
- import "./chunk-YX3AWX2A.js";
16
- import "./chunk-J4KUHHYM.js";
17
- import "./chunk-COCF34ZS.js";
18
- import "./chunk-BI5OUHTQ.js";
19
- import "./chunk-HORZKFCR.js";
20
- export {
21
- Session
22
- };
23
- //# sourceMappingURL=session-FV32QIWG.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,24 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- ShareNext
14
- } from "./chunk-SNATISLF.js";
15
- import "./chunk-6UDEKTJV.js";
16
- import "./chunk-YX3AWX2A.js";
17
- import "./chunk-J4KUHHYM.js";
18
- import "./chunk-COCF34ZS.js";
19
- import "./chunk-BI5OUHTQ.js";
20
- import "./chunk-HORZKFCR.js";
21
- export {
22
- ShareNext
23
- };
24
- //# sourceMappingURL=share-next-MK3GU4BJ.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,29 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- MissingDependencyError
14
- } from "./chunk-VL3RSEZ2.js";
15
- import "./chunk-HORZKFCR.js";
16
-
17
- // node_modules/@standard-community/standard-json/dist/sury-CWZTCd75.js
18
- async function getToJsonSchemaFn() {
19
- try {
20
- const { toJSONSchema } = await import("sury");
21
- return toJSONSchema;
22
- } catch {
23
- throw new MissingDependencyError("sury");
24
- }
25
- }
26
- export {
27
- getToJsonSchemaFn as default
28
- };
29
- //# sourceMappingURL=sury-CWZTCd75-XC3NCMTP.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@standard-community/standard-json/dist/sury-CWZTCd75.js"],
4
- "sourcesContent": ["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { toJSONSchema } = await import('sury');\n return toJSONSchema;\n } catch {\n throw new MissingDependencyError(\"sury\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAGA,eAAe,oBAAoB;AACjC,MAAI;AACF,UAAM,EAAE,aAAa,IAAI,MAAM,OAAO,MAAM;AAC5C,WAAO;AAAA,EACT,QAAQ;AACN,UAAM,IAAI,uBAAuB,MAAM;AAAA,EACzC;AACF;",
6
- "names": []
7
- }
@@ -1,21 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import "./chunk-HORZKFCR.js";
13
-
14
- // node_modules/@standard-community/standard-json/dist/typebox-Dei93FPO.js
15
- function getToJsonSchemaFn() {
16
- return (schema) => JSON.parse(JSON.stringify(schema.Type()));
17
- }
18
- export {
19
- getToJsonSchemaFn as default
20
- };
21
- //# sourceMappingURL=typebox-Dei93FPO-QOBKW4L7.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@standard-community/standard-json/dist/typebox-Dei93FPO.js"],
4
- "sourcesContent": ["function getToJsonSchemaFn() {\n return (schema) => JSON.parse(JSON.stringify(schema.Type()));\n}\n\nexport { getToJsonSchemaFn as default };\n"],
5
- "mappings": ";;;;;;;;;;;;;;AAAA,SAAS,oBAAoB;AAC3B,SAAO,CAAC,WAAW,KAAK,MAAM,KAAK,UAAU,OAAO,KAAK,CAAC,CAAC;AAC7D;",
6
- "names": []
7
- }
@@ -1,29 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- MissingDependencyError
14
- } from "./chunk-VL3RSEZ2.js";
15
- import "./chunk-HORZKFCR.js";
16
-
17
- // node_modules/@standard-community/standard-json/dist/valibot--1zFm7rT.js
18
- async function getToJsonSchemaFn() {
19
- try {
20
- const { toJsonSchema } = await import("@valibot/to-json-schema");
21
- return toJsonSchema;
22
- } catch {
23
- throw new MissingDependencyError("@valibot/to-json-schema");
24
- }
25
- }
26
- export {
27
- getToJsonSchemaFn as default
28
- };
29
- //# sourceMappingURL=valibot--1zFm7rT-LHHLSLYY.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@standard-community/standard-json/dist/valibot--1zFm7rT.js"],
4
- "sourcesContent": ["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nasync function getToJsonSchemaFn() {\n try {\n const { toJsonSchema } = await import('@valibot/to-json-schema');\n return toJsonSchema;\n } catch {\n throw new MissingDependencyError(\"@valibot/to-json-schema\");\n }\n}\n\nexport { getToJsonSchemaFn as default };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAGA,eAAe,oBAAoB;AACjC,MAAI;AACF,UAAM,EAAE,aAAa,IAAI,MAAM,OAAO,yBAAyB;AAC/D,WAAO;AAAA,EACT,QAAQ;AACN,UAAM,IAAI,uBAAuB,yBAAyB;AAAA,EAC5D;AACF;",
6
- "names": []
7
- }
@@ -1,60 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- convertToOpenAPISchema
14
- } from "./chunk-O5VWOPCL.js";
15
- import "./chunk-PWFRMDDF.js";
16
- import {
17
- toJsonSchema
18
- } from "./chunk-VL3RSEZ2.js";
19
- import "./chunk-HORZKFCR.js";
20
-
21
- // node_modules/@standard-community/standard-openapi/dist/valibot-D_HTw1Gn.js
22
- function getToOpenAPISchemaFn() {
23
- return async (schema, context) => {
24
- const openapiSchema = await toJsonSchema(schema, {
25
- errorMode: "ignore",
26
- // @ts-expect-error
27
- overrideAction: ({ valibotAction, jsonSchema }) => {
28
- const _jsonSchema = convertToOpenAPISchema(jsonSchema, context);
29
- if (valibotAction.kind === "metadata" && valibotAction.type === "metadata" && !("$ref" in _jsonSchema)) {
30
- const metadata = valibotAction.metadata;
31
- if (metadata.example !== void 0) {
32
- _jsonSchema.example = metadata.example;
33
- }
34
- if (metadata.examples && metadata.examples.length > 0) {
35
- _jsonSchema.examples = metadata.examples;
36
- }
37
- if (metadata.ref) {
38
- context.components.schemas = {
39
- ...context.components.schemas,
40
- [metadata.ref]: _jsonSchema
41
- };
42
- return {
43
- $ref: `#/components/schemas/${metadata.ref}`
44
- };
45
- }
46
- }
47
- return _jsonSchema;
48
- },
49
- ...context.options
50
- });
51
- if ("$schema" in openapiSchema) {
52
- delete openapiSchema.$schema;
53
- }
54
- return openapiSchema;
55
- };
56
- }
57
- export {
58
- getToOpenAPISchemaFn as default
59
- };
60
- //# sourceMappingURL=valibot-D_HTw1Gn-UR62BIDY.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@standard-community/standard-openapi/dist/valibot-D_HTw1Gn.js"],
4
- "sourcesContent": ["import { toJsonSchema } from '@standard-community/standard-json';\nimport { convertToOpenAPISchema } from './vendors/convert.js';\n\nfunction getToOpenAPISchemaFn() {\n return async (schema, context) => {\n const openapiSchema = await toJsonSchema(schema, {\n errorMode: \"ignore\",\n // @ts-expect-error\n overrideAction: ({ valibotAction, jsonSchema }) => {\n const _jsonSchema = convertToOpenAPISchema(jsonSchema, context);\n if (valibotAction.kind === \"metadata\" && valibotAction.type === \"metadata\" && !(\"$ref\" in _jsonSchema)) {\n const metadata = valibotAction.metadata;\n if (metadata.example !== void 0) {\n _jsonSchema.example = metadata.example;\n }\n if (metadata.examples && metadata.examples.length > 0) {\n _jsonSchema.examples = metadata.examples;\n }\n if (metadata.ref) {\n context.components.schemas = {\n ...context.components.schemas,\n [metadata.ref]: _jsonSchema\n };\n return {\n $ref: `#/components/schemas/${metadata.ref}`\n };\n }\n }\n return _jsonSchema;\n },\n ...context.options\n });\n if (\"$schema\" in openapiSchema) {\n delete openapiSchema.$schema;\n }\n return openapiSchema;\n };\n}\n\nexport { getToOpenAPISchemaFn as default };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;AAGA,SAAS,uBAAuB;AAC9B,SAAO,OAAO,QAAQ,YAAY;AAChC,UAAM,gBAAgB,MAAM,aAAa,QAAQ;AAAA,MAC/C,WAAW;AAAA;AAAA,MAEX,gBAAgB,CAAC,EAAE,eAAe,WAAW,MAAM;AACjD,cAAM,cAAc,uBAAuB,YAAY,OAAO;AAC9D,YAAI,cAAc,SAAS,cAAc,cAAc,SAAS,cAAc,EAAE,UAAU,cAAc;AACtG,gBAAM,WAAW,cAAc;AAC/B,cAAI,SAAS,YAAY,QAAQ;AAC/B,wBAAY,UAAU,SAAS;AAAA,UACjC;AACA,cAAI,SAAS,YAAY,SAAS,SAAS,SAAS,GAAG;AACrD,wBAAY,WAAW,SAAS;AAAA,UAClC;AACA,cAAI,SAAS,KAAK;AAChB,oBAAQ,WAAW,UAAU;AAAA,cAC3B,GAAG,QAAQ,WAAW;AAAA,cACtB,CAAC,SAAS,GAAG,GAAG;AAAA,YAClB;AACA,mBAAO;AAAA,cACL,MAAM,wBAAwB,SAAS,GAAG;AAAA,YAC5C;AAAA,UACF;AAAA,QACF;AACA,eAAO;AAAA,MACT;AAAA,MACA,GAAG,QAAQ;AAAA,IACb,CAAC;AACD,QAAI,aAAa,eAAe;AAC9B,aAAO,cAAc;AAAA,IACvB;AACA,WAAO;AAAA,EACT;AACF;",
6
- "names": []
7
- }
@@ -1,63 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- WorkspaceInfo,
14
- Worktree
15
- } from "./chunk-S3PMXQSO.js";
16
- import "./chunk-SNATISLF.js";
17
- import "./chunk-6UDEKTJV.js";
18
- import "./chunk-YX3AWX2A.js";
19
- import "./chunk-J4KUHHYM.js";
20
- import "./chunk-COCF34ZS.js";
21
- import "./chunk-BI5OUHTQ.js";
22
- import "./chunk-HORZKFCR.js";
23
-
24
- // packages/opencode/src/control-plane/adaptors/worktree.ts
25
- var Config = WorkspaceInfo.extend({
26
- name: WorkspaceInfo.shape.name.unwrap(),
27
- branch: WorkspaceInfo.shape.branch.unwrap(),
28
- directory: WorkspaceInfo.shape.directory.unwrap()
29
- });
30
- var WorktreeAdaptor = {
31
- async configure(info) {
32
- const worktree = await Worktree.makeWorktreeInfo(info.name ?? void 0);
33
- return {
34
- ...info,
35
- name: worktree.name,
36
- branch: worktree.branch,
37
- directory: worktree.directory
38
- };
39
- },
40
- async create(info) {
41
- const config = Config.parse(info);
42
- await Worktree.createFromInfo({
43
- name: config.name,
44
- directory: config.directory,
45
- branch: config.branch
46
- });
47
- },
48
- async remove(info) {
49
- const config = Config.parse(info);
50
- await Worktree.remove({ directory: config.directory });
51
- },
52
- target(info) {
53
- const config = Config.parse(info);
54
- return {
55
- type: "local",
56
- directory: config.directory
57
- };
58
- }
59
- };
60
- export {
61
- WorktreeAdaptor
62
- };
63
- //# sourceMappingURL=worktree-N3PSXGW4.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../packages/opencode/src/control-plane/adaptors/worktree.ts"],
4
- "sourcesContent": ["import z from \"zod\"\nimport { Worktree } from \"@/worktree\"\nimport { type Adaptor, WorkspaceInfo } from \"../types\"\n\nconst Config = WorkspaceInfo.extend({\n name: WorkspaceInfo.shape.name.unwrap(),\n branch: WorkspaceInfo.shape.branch.unwrap(),\n directory: WorkspaceInfo.shape.directory.unwrap(),\n})\n\ntype Config = z.infer<typeof Config>\n\nexport const WorktreeAdaptor: Adaptor = {\n async configure(info) {\n const worktree = await Worktree.makeWorktreeInfo(info.name ?? undefined)\n return {\n ...info,\n name: worktree.name,\n branch: worktree.branch,\n directory: worktree.directory,\n }\n },\n async create(info) {\n const config = Config.parse(info)\n await Worktree.createFromInfo({\n name: config.name,\n directory: config.directory,\n branch: config.branch,\n })\n },\n async remove(info) {\n const config = Config.parse(info)\n await Worktree.remove({ directory: config.directory })\n },\n target(info) {\n const config = Config.parse(info)\n return {\n type: \"local\",\n directory: config.directory,\n }\n },\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,SAAS,cAAc,OAAO;AAAA,EAClC,MAAM,cAAc,MAAM,KAAK,OAAO;AAAA,EACtC,QAAQ,cAAc,MAAM,OAAO,OAAO;AAAA,EAC1C,WAAW,cAAc,MAAM,UAAU,OAAO;AAClD,CAAC;AAIM,IAAM,kBAA2B;AAAA,EACtC,MAAM,UAAU,MAAM;AACpB,UAAM,WAAW,MAAM,SAAS,iBAAiB,KAAK,QAAQ,MAAS;AACvE,WAAO;AAAA,MACL,GAAG;AAAA,MACH,MAAM,SAAS;AAAA,MACf,QAAQ,SAAS;AAAA,MACjB,WAAW,SAAS;AAAA,IACtB;AAAA,EACF;AAAA,EACA,MAAM,OAAO,MAAM;AACjB,UAAM,SAAS,OAAO,MAAM,IAAI;AAChC,UAAM,SAAS,eAAe;AAAA,MAC5B,MAAM,OAAO;AAAA,MACb,WAAW,OAAO;AAAA,MAClB,QAAQ,OAAO;AAAA,IACjB,CAAC;AAAA,EACH;AAAA,EACA,MAAM,OAAO,MAAM;AACjB,UAAM,SAAS,OAAO,MAAM,IAAI;AAChC,UAAM,SAAS,OAAO,EAAE,WAAW,OAAO,UAAU,CAAC;AAAA,EACvD;AAAA,EACA,OAAO,MAAM;AACX,UAAM,SAAS,OAAO,MAAM,IAAI;AAChC,WAAO;AAAA,MACL,MAAM;AAAA,MACN,WAAW,OAAO;AAAA,IACpB;AAAA,EACF;AACF;",
6
- "names": []
7
- }
@@ -1,43 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- MissingDependencyError
14
- } from "./chunk-VL3RSEZ2.js";
15
- import "./chunk-HORZKFCR.js";
16
-
17
- // node_modules/@standard-community/standard-json/dist/zod-Bwrt9trS.js
18
- var zodv4Error = new MissingDependencyError("zod v4");
19
- async function getToJsonSchemaFn() {
20
- return async (schema, options) => {
21
- let handler;
22
- if ("_zod" in schema) {
23
- try {
24
- const mod = await import("zod/v4/core");
25
- handler = mod.toJSONSchema;
26
- } catch {
27
- throw zodv4Error;
28
- }
29
- } else {
30
- try {
31
- const mod = await import("zod-to-json-schema");
32
- handler = mod.zodToJsonSchema;
33
- } catch {
34
- throw new MissingDependencyError("zod-to-json-schema");
35
- }
36
- }
37
- return handler(schema, options);
38
- };
39
- }
40
- export {
41
- getToJsonSchemaFn as default
42
- };
43
- //# sourceMappingURL=zod-Bwrt9trS-J2GOMA2R.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@standard-community/standard-json/dist/zod-Bwrt9trS.js"],
4
- "sourcesContent": ["import { M as MissingDependencyError } from './index-CLddUTqr.js';\nimport 'quansync';\n\nconst zodv4Error = new MissingDependencyError(\"zod v4\");\nasync function getToJsonSchemaFn() {\n return async (schema, options) => {\n let handler;\n if (\"_zod\" in schema) {\n try {\n const mod = await import('zod/v4/core');\n handler = mod.toJSONSchema;\n } catch {\n throw zodv4Error;\n }\n } else {\n try {\n const mod = await import('zod-to-json-schema');\n handler = mod.zodToJsonSchema;\n } catch {\n throw new MissingDependencyError(\"zod-to-json-schema\");\n }\n }\n return handler(schema, options);\n };\n}\n\nexport { getToJsonSchemaFn as default };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAGA,IAAM,aAAa,IAAI,uBAAuB,QAAQ;AACtD,eAAe,oBAAoB;AACjC,SAAO,OAAO,QAAQ,YAAY;AAChC,QAAI;AACJ,QAAI,UAAU,QAAQ;AACpB,UAAI;AACF,cAAM,MAAM,MAAM,OAAO,aAAa;AACtC,kBAAU,IAAI;AAAA,MAChB,QAAQ;AACN,cAAM;AAAA,MACR;AAAA,IACF,OAAO;AACL,UAAI;AACF,cAAM,MAAM,MAAM,OAAO,oBAAoB;AAC7C,kBAAU,IAAI;AAAA,MAChB,QAAQ;AACN,cAAM,IAAI,uBAAuB,oBAAoB;AAAA,MACvD;AAAA,IACF;AACA,WAAO,QAAQ,QAAQ,OAAO;AAAA,EAChC;AACF;",
6
- "names": []
7
- }
@@ -1,56 +0,0 @@
1
- // Built by esbuild from opencode-server source
2
- if (typeof globalThis.Bun === 'undefined') {
3
- globalThis.Bun = {
4
- version: '0.0.0-node-compat',
5
- stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
6
- which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
7
- };
8
- }
9
- if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
- if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
11
-
12
- import {
13
- errorMessageWrapper
14
- } from "./chunk-3AF5MXLF.js";
15
- import {
16
- getToOpenAPISchemaFn
17
- } from "./chunk-FMP3YLWX.js";
18
- import "./chunk-O5VWOPCL.js";
19
- import "./chunk-PWFRMDDF.js";
20
- import "./chunk-VL3RSEZ2.js";
21
- import "./chunk-HORZKFCR.js";
22
-
23
- // node_modules/@standard-community/standard-openapi/dist/zod-DSgpEGAE.js
24
- function getToOpenAPISchemaFn2() {
25
- return async (schema, context) => {
26
- if ("_zod" in schema) {
27
- return getToOpenAPISchemaFn()(schema, {
28
- components: context.components,
29
- options: { io: "input", ...context.options }
30
- });
31
- }
32
- try {
33
- const { createSchema } = await import("zod-openapi");
34
- const { schema: _schema, components } = createSchema(
35
- // @ts-expect-error
36
- schema,
37
- { schemaType: "input", ...context.options }
38
- );
39
- if (components) {
40
- context.components.schemas = {
41
- ...context.components.schemas,
42
- ...components
43
- };
44
- }
45
- return _schema;
46
- } catch {
47
- throw new Error(
48
- errorMessageWrapper(`Missing dependencies "zod-openapi v4".`)
49
- );
50
- }
51
- };
52
- }
53
- export {
54
- getToOpenAPISchemaFn2 as default
55
- };
56
- //# sourceMappingURL=zod-DSgpEGAE-VTXQW6SB.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../node_modules/@standard-community/standard-openapi/dist/zod-DSgpEGAE.js"],
4
- "sourcesContent": ["import getToOpenAPISchemaFn$1 from './default-u_dwuiYb.js';\nimport { e as errorMessageWrapper } from './index-DZEfthgZ.js';\nimport '@standard-community/standard-json';\nimport './vendors/convert.js';\n\nfunction getToOpenAPISchemaFn() {\n return async (schema, context) => {\n if (\"_zod\" in schema) {\n return getToOpenAPISchemaFn$1()(schema, {\n components: context.components,\n options: { io: \"input\", ...context.options }\n });\n }\n try {\n const { createSchema } = await import('zod-openapi');\n const { schema: _schema, components } = createSchema(\n // @ts-expect-error\n schema,\n { schemaType: \"input\", ...context.options }\n );\n if (components) {\n context.components.schemas = {\n ...context.components.schemas,\n ...components\n };\n }\n return _schema;\n } catch {\n throw new Error(\n errorMessageWrapper(`Missing dependencies \"zod-openapi v4\".`)\n );\n }\n };\n}\n\nexport { getToOpenAPISchemaFn as default };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAKA,SAASA,wBAAuB;AAC9B,SAAO,OAAO,QAAQ,YAAY;AAChC,QAAI,UAAU,QAAQ;AACpB,aAAO,qBAAuB,EAAE,QAAQ;AAAA,QACtC,YAAY,QAAQ;AAAA,QACpB,SAAS,EAAE,IAAI,SAAS,GAAG,QAAQ,QAAQ;AAAA,MAC7C,CAAC;AAAA,IACH;AACA,QAAI;AACF,YAAM,EAAE,aAAa,IAAI,MAAM,OAAO,aAAa;AACnD,YAAM,EAAE,QAAQ,SAAS,WAAW,IAAI;AAAA;AAAA,QAEtC;AAAA,QACA,EAAE,YAAY,SAAS,GAAG,QAAQ,QAAQ;AAAA,MAC5C;AACA,UAAI,YAAY;AACd,gBAAQ,WAAW,UAAU;AAAA,UAC3B,GAAG,QAAQ,WAAW;AAAA,UACtB,GAAG;AAAA,QACL;AAAA,MACF;AACA,aAAO;AAAA,IACT,QAAQ;AACN,YAAM,IAAI;AAAA,QACR,oBAAoB,wCAAwC;AAAA,MAC9D;AAAA,IACF;AAAA,EACF;AACF;",
6
- "names": ["getToOpenAPISchemaFn"]
7
- }