alchemylab-opencode 1.0.5 → 1.0.7

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 (57) hide show
  1. package/build.mjs +31 -2
  2. package/dist/arktype-aI7TBD0R-HX4BR3RX.js +21 -0
  3. package/dist/arktype-aI7TBD0R-HX4BR3RX.js.map +7 -0
  4. package/dist/{chunk-UWZSRZHA.js → chunk-23UYOGZG.js} +817 -315
  5. package/dist/chunk-23UYOGZG.js.map +7 -0
  6. package/dist/chunk-3AF5MXLF.js +49 -0
  7. package/dist/chunk-3AF5MXLF.js.map +7 -0
  8. package/dist/chunk-FMP3YLWX.js +30 -0
  9. package/dist/chunk-FMP3YLWX.js.map +7 -0
  10. package/dist/{chunk-ANDTK76Q.js → chunk-GSE2T5UY.js} +3 -3
  11. package/dist/{chunk-CYXMV3J3.js → chunk-LU5XVQUD.js} +4 -4
  12. package/dist/chunk-O5VWOPCL.js +106 -0
  13. package/dist/chunk-O5VWOPCL.js.map +7 -0
  14. package/dist/chunk-PWFRMDDF.js +12 -0
  15. package/dist/{chunk-DSPC5QIG.js → chunk-SM6WZDN6.js} +9 -9
  16. package/dist/{chunk-MCWTARFP.js → chunk-TASPMBUL.js} +4 -4
  17. package/dist/chunk-VL3RSEZ2.js +160 -0
  18. package/dist/chunk-VL3RSEZ2.js.map +7 -0
  19. package/dist/default-u_dwuiYb-WOFHQQ3K.js +22 -0
  20. package/dist/effect-QlVUlMFu-UERLUUQW.js +29 -0
  21. package/dist/effect-QlVUlMFu-UERLUUQW.js.map +7 -0
  22. package/dist/{mcp-VAU4RMWH.js → mcp-XFGN3FWW.js} +2 -2
  23. package/dist/{registry-PYMN6L3G.js → registry-W4MBVBYD.js} +3 -3
  24. package/dist/{run-YFVCQJQM.js → run-73HUV4H3.js} +9 -6
  25. package/dist/{run-YFVCQJQM.js.map → run-73HUV4H3.js.map} +1 -1
  26. package/dist/run.js +1 -1
  27. package/dist/serve.js +1 -1
  28. package/dist/{server-K3UGWASP.js → server-2CPOG3LS.js} +9 -6
  29. package/dist/{session-HJFWTM7C.js → session-M6HOZ56B.js} +3 -3
  30. package/dist/session-M6HOZ56B.js.map +7 -0
  31. package/dist/{share-next-55VCIMUH.js → share-next-QRBVSD37.js} +4 -4
  32. package/dist/share-next-QRBVSD37.js.map +7 -0
  33. package/dist/sury-CWZTCd75-XC3NCMTP.js +29 -0
  34. package/dist/sury-CWZTCd75-XC3NCMTP.js.map +7 -0
  35. package/dist/typebox-Dei93FPO-QOBKW4L7.js +21 -0
  36. package/dist/typebox-Dei93FPO-QOBKW4L7.js.map +7 -0
  37. package/dist/valibot--1zFm7rT-LHHLSLYY.js +29 -0
  38. package/dist/valibot--1zFm7rT-LHHLSLYY.js.map +7 -0
  39. package/dist/valibot-D_HTw1Gn-UR62BIDY.js +60 -0
  40. package/dist/valibot-D_HTw1Gn-UR62BIDY.js.map +7 -0
  41. package/dist/{worktree-6GGDLADY.js → worktree-3GUHT2P7.js} +5 -5
  42. package/dist/zod-Bwrt9trS-J2GOMA2R.js +43 -0
  43. package/dist/zod-Bwrt9trS-J2GOMA2R.js.map +7 -0
  44. package/dist/zod-DSgpEGAE-VTXQW6SB.js +56 -0
  45. package/dist/zod-DSgpEGAE-VTXQW6SB.js.map +7 -0
  46. package/package.json +2 -8
  47. package/dist/chunk-UWZSRZHA.js.map +0 -7
  48. /package/dist/{chunk-ANDTK76Q.js.map → chunk-GSE2T5UY.js.map} +0 -0
  49. /package/dist/{chunk-CYXMV3J3.js.map → chunk-LU5XVQUD.js.map} +0 -0
  50. /package/dist/{mcp-VAU4RMWH.js.map → chunk-PWFRMDDF.js.map} +0 -0
  51. /package/dist/{chunk-DSPC5QIG.js.map → chunk-SM6WZDN6.js.map} +0 -0
  52. /package/dist/{chunk-MCWTARFP.js.map → chunk-TASPMBUL.js.map} +0 -0
  53. /package/dist/{registry-PYMN6L3G.js.map → default-u_dwuiYb-WOFHQQ3K.js.map} +0 -0
  54. /package/dist/{server-K3UGWASP.js.map → mcp-XFGN3FWW.js.map} +0 -0
  55. /package/dist/{session-HJFWTM7C.js.map → registry-W4MBVBYD.js.map} +0 -0
  56. /package/dist/{share-next-55VCIMUH.js.map → server-2CPOG3LS.js.map} +0 -0
  57. /package/dist/{worktree-6GGDLADY.js.map → worktree-3GUHT2P7.js.map} +0 -0
package/dist/run.js CHANGED
@@ -15,7 +15,7 @@ import { homedir } from "node:os";
15
15
  import { join } from "node:path";
16
16
  var defaultDataDir = join(homedir(), ".alchemy_lab", "opencode");
17
17
  process.env.OPENCODE_DATA_DIR = process.env.OPENCODE_DATA_DIR || defaultDataDir;
18
- var { RunCommand } = await import("./run-YFVCQJQM.js");
18
+ var { RunCommand } = await import("./run-73HUV4H3.js");
19
19
  var yargs = (await import("yargs")).default;
20
20
  var { hideBin } = await import("yargs/helpers");
21
21
  yargs(hideBin(process.argv)).command(RunCommand).strict().help().parse();
package/dist/serve.js CHANGED
@@ -20,7 +20,7 @@ function arg(name, fallback) {
20
20
  var defaultDataDir = join(homedir(), ".alchemy_lab", "opencode");
21
21
  var dataDir = arg("data-dir", defaultDataDir);
22
22
  process.env.OPENCODE_DATA_DIR = dataDir;
23
- var { Server } = await import("./server-K3UGWASP.js");
23
+ var { Server } = await import("./server-2CPOG3LS.js");
24
24
  var port = parseInt(arg("port", "4096"), 10);
25
25
  var hostname = arg("hostname", "127.0.0.1");
26
26
  try {
@@ -11,16 +11,19 @@ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) =
11
11
 
12
12
  import {
13
13
  Server
14
- } from "./chunk-UWZSRZHA.js";
15
- import "./chunk-MCWTARFP.js";
16
- import "./chunk-ANDTK76Q.js";
17
- import "./chunk-DSPC5QIG.js";
18
- import "./chunk-CYXMV3J3.js";
14
+ } from "./chunk-23UYOGZG.js";
15
+ import "./chunk-TASPMBUL.js";
16
+ import "./chunk-3AF5MXLF.js";
17
+ import "./chunk-PWFRMDDF.js";
18
+ import "./chunk-GSE2T5UY.js";
19
+ import "./chunk-SM6WZDN6.js";
20
+ import "./chunk-LU5XVQUD.js";
19
21
  import "./chunk-B3FN2B2N.js";
20
22
  import "./chunk-CR6IREZA.js";
21
23
  import "./chunk-BI5OUHTQ.js";
24
+ import "./chunk-VL3RSEZ2.js";
22
25
  import "./chunk-HORZKFCR.js";
23
26
  export {
24
27
  Server
25
28
  };
26
- //# sourceMappingURL=server-K3UGWASP.js.map
29
+ //# sourceMappingURL=server-2CPOG3LS.js.map
@@ -11,8 +11,8 @@ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) =
11
11
 
12
12
  import {
13
13
  Session
14
- } from "./chunk-DSPC5QIG.js";
15
- import "./chunk-CYXMV3J3.js";
14
+ } from "./chunk-SM6WZDN6.js";
15
+ import "./chunk-LU5XVQUD.js";
16
16
  import "./chunk-B3FN2B2N.js";
17
17
  import "./chunk-CR6IREZA.js";
18
18
  import "./chunk-BI5OUHTQ.js";
@@ -20,4 +20,4 @@ import "./chunk-HORZKFCR.js";
20
20
  export {
21
21
  Session
22
22
  };
23
- //# sourceMappingURL=session-HJFWTM7C.js.map
23
+ //# sourceMappingURL=session-M6HOZ56B.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -11,9 +11,9 @@ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) =
11
11
 
12
12
  import {
13
13
  ShareNext
14
- } from "./chunk-ANDTK76Q.js";
15
- import "./chunk-DSPC5QIG.js";
16
- import "./chunk-CYXMV3J3.js";
14
+ } from "./chunk-GSE2T5UY.js";
15
+ import "./chunk-SM6WZDN6.js";
16
+ import "./chunk-LU5XVQUD.js";
17
17
  import "./chunk-B3FN2B2N.js";
18
18
  import "./chunk-CR6IREZA.js";
19
19
  import "./chunk-BI5OUHTQ.js";
@@ -21,4 +21,4 @@ import "./chunk-HORZKFCR.js";
21
21
  export {
22
22
  ShareNext
23
23
  };
24
- //# sourceMappingURL=share-next-55VCIMUH.js.map
24
+ //# sourceMappingURL=share-next-QRBVSD37.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,29 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,29 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,60 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -12,10 +12,10 @@ if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) =
12
12
  import {
13
13
  WorkspaceInfo,
14
14
  Worktree
15
- } from "./chunk-MCWTARFP.js";
16
- import "./chunk-ANDTK76Q.js";
17
- import "./chunk-DSPC5QIG.js";
18
- import "./chunk-CYXMV3J3.js";
15
+ } from "./chunk-TASPMBUL.js";
16
+ import "./chunk-GSE2T5UY.js";
17
+ import "./chunk-SM6WZDN6.js";
18
+ import "./chunk-LU5XVQUD.js";
19
19
  import "./chunk-B3FN2B2N.js";
20
20
  import "./chunk-CR6IREZA.js";
21
21
  import "./chunk-BI5OUHTQ.js";
@@ -60,4 +60,4 @@ var WorktreeAdaptor = {
60
60
  export {
61
61
  WorktreeAdaptor
62
62
  };
63
- //# sourceMappingURL=worktree-6GGDLADY.js.map
63
+ //# sourceMappingURL=worktree-3GUHT2P7.js.map
@@ -0,0 +1,43 @@
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
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,56 @@
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
@@ -0,0 +1,7 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemylab-opencode",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "OpenCode server runtime for AlchemyLab",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -52,16 +52,12 @@
52
52
  "@effect/platform-node": "4.0.0-beta.43",
53
53
  "@hono/node-server": "1.19.11",
54
54
  "@hono/node-ws": "1.3.0",
55
- "@hono/standard-validator": "^0.2.2",
56
55
  "@hono/zod-validator": "0.4.2",
57
56
  "@lydell/node-pty": "1.2.0-beta.10",
58
57
  "@modelcontextprotocol/sdk": "1.27.1",
59
58
  "@npmcli/arborist": "9.4.0",
60
59
  "@openrouter/ai-sdk-provider": "2.4.2",
61
60
  "@parcel/watcher": "2.5.1",
62
- "@standard-community/standard-json": "^0.3.5",
63
- "@standard-community/standard-openapi": "^0.2.9",
64
- "@standard-schema/spec": "^1.1.0",
65
61
  "@zip.js/zip.js": "2.7.62",
66
62
  "ai": "6.0.149",
67
63
  "bonjour-service": "1.3.0",
@@ -78,7 +74,6 @@
78
74
  "gray-matter": "4.0.3",
79
75
  "gtoken": "^8.0.0",
80
76
  "hono": "4.10.7",
81
- "hono-openapi": "1.1.2",
82
77
  "ignore": "7.0.5",
83
78
  "ioredis": "^5.10.1",
84
79
  "jsonc-parser": "3.3.1",
@@ -89,7 +84,6 @@
89
84
  "opencode-gitlab-auth": "2.0.1",
90
85
  "opencode-poe-auth": "0.0.1",
91
86
  "partial-json": "0.1.7",
92
- "quansync": "^1.0.0",
93
87
  "remeda": "2.26.0",
94
88
  "semver": "^7.6.3",
95
89
  "turndown": "7.2.0",
@@ -109,7 +103,7 @@
109
103
  "web-tree-sitter"
110
104
  ],
111
105
  "engines": {
112
- "node": ">=24.0.0"
106
+ "node": ">=22.0.0"
113
107
  },
114
108
  "overrides": {
115
109
  "effect": "4.0.0-beta.43",