alchemylab-opencode 1.0.4 → 1.0.6

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 (53) hide show
  1. package/build.mjs +31 -2
  2. package/dist/{chunk-KMHCMDYS.js → chunk-ANDTK76Q.js} +14 -4
  3. package/dist/{chunk-KMHCMDYS.js.map → chunk-ANDTK76Q.js.map} +1 -1
  4. package/dist/{chunk-CMAI7CAJ.js → chunk-B3FN2B2N.js} +14 -4
  5. package/dist/{chunk-CMAI7CAJ.js.map → chunk-B3FN2B2N.js.map} +1 -1
  6. package/dist/chunk-BI5OUHTQ.js +31 -0
  7. package/dist/{chunk-P44FI4UK.js.map → chunk-BI5OUHTQ.js.map} +1 -1
  8. package/dist/{chunk-FPPWDLO7.js → chunk-CR6IREZA.js} +12 -2
  9. package/dist/{chunk-FPPWDLO7.js.map → chunk-CR6IREZA.js.map} +1 -1
  10. package/dist/{chunk-K4ME3WTI.js → chunk-CYXMV3J3.js} +18 -8
  11. package/dist/{chunk-K4ME3WTI.js.map → chunk-CYXMV3J3.js.map} +1 -1
  12. package/dist/{chunk-NBI23JB4.js → chunk-DSPC5QIG.js} +24 -14
  13. package/dist/{chunk-NBI23JB4.js.map → chunk-DSPC5QIG.js.map} +1 -1
  14. package/dist/{chunk-7JG6KCBC.js → chunk-HORZKFCR.js} +11 -1
  15. package/dist/{chunk-SM4I7RU4.js → chunk-MCWTARFP.js} +15 -5
  16. package/dist/{chunk-SM4I7RU4.js.map → chunk-MCWTARFP.js.map} +1 -1
  17. package/dist/{chunk-WCK3PNT7.js → chunk-UWZSRZHA.js} +20 -10
  18. package/dist/{chunk-WCK3PNT7.js.map → chunk-UWZSRZHA.js.map} +1 -1
  19. package/dist/mcp-VAU4RMWH.js +22 -0
  20. package/dist/pty.node-RHOAUGH6.js +40 -0
  21. package/dist/{pty.node-IR7ZMJYY.js.map → pty.node-RHOAUGH6.js.map} +1 -1
  22. package/dist/registry-PYMN6L3G.js +23 -0
  23. package/dist/{run-HRWKT4NL.js → run-YFVCQJQM.js} +20 -10
  24. package/dist/{run-HRWKT4NL.js.map → run-YFVCQJQM.js.map} +1 -1
  25. package/dist/run-service-LHEVFBIU.js +22 -0
  26. package/dist/run.js +11 -1
  27. package/dist/run.js.map +1 -1
  28. package/dist/schema-32EBFLEO.js +24 -0
  29. package/dist/serve.js +11 -1
  30. package/dist/serve.js.map +1 -1
  31. package/dist/server-K3UGWASP.js +26 -0
  32. package/dist/session-HJFWTM7C.js +23 -0
  33. package/dist/share-next-55VCIMUH.js +24 -0
  34. package/dist/{worktree-E5I74P2A.js → worktree-6GGDLADY.js} +19 -9
  35. package/dist/{worktree-E5I74P2A.js.map → worktree-6GGDLADY.js.map} +1 -1
  36. package/package.json +2 -8
  37. package/dist/chunk-P44FI4UK.js +0 -21
  38. package/dist/mcp-6ID7DRNS.js +0 -12
  39. package/dist/pty.node-IR7ZMJYY.js +0 -30
  40. package/dist/registry-O4THPVFS.js +0 -13
  41. package/dist/run-service-23VXHTA6.js +0 -12
  42. package/dist/schema-YARWYUAH.js +0 -14
  43. package/dist/server-MHSLBRNZ.js +0 -16
  44. package/dist/session-3UEFY5NC.js +0 -13
  45. package/dist/share-next-Q5WQ2ELY.js +0 -14
  46. /package/dist/{chunk-7JG6KCBC.js.map → chunk-HORZKFCR.js.map} +0 -0
  47. /package/dist/{mcp-6ID7DRNS.js.map → mcp-VAU4RMWH.js.map} +0 -0
  48. /package/dist/{registry-O4THPVFS.js.map → registry-PYMN6L3G.js.map} +0 -0
  49. /package/dist/{run-service-23VXHTA6.js.map → run-service-LHEVFBIU.js.map} +0 -0
  50. /package/dist/{schema-YARWYUAH.js.map → schema-32EBFLEO.js.map} +0 -0
  51. /package/dist/{server-MHSLBRNZ.js.map → server-K3UGWASP.js.map} +0 -0
  52. /package/dist/{session-3UEFY5NC.js.map → session-HJFWTM7C.js.map} +0 -0
  53. /package/dist/{share-next-Q5WQ2ELY.js.map → share-next-55VCIMUH.js.map} +0 -0
@@ -0,0 +1,22 @@
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
+ MCP
14
+ } from "./chunk-CYXMV3J3.js";
15
+ import "./chunk-B3FN2B2N.js";
16
+ import "./chunk-CR6IREZA.js";
17
+ import "./chunk-BI5OUHTQ.js";
18
+ import "./chunk-HORZKFCR.js";
19
+ export {
20
+ MCP
21
+ };
22
+ //# sourceMappingURL=mcp-VAU4RMWH.js.map
@@ -0,0 +1,40 @@
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
+ // packages/opencode/src/pty/pty.node.ts
15
+ import * as pty from "@lydell/node-pty";
16
+ function spawn2(file, args, opts) {
17
+ const proc = pty.spawn(file, args, opts);
18
+ return {
19
+ pid: proc.pid,
20
+ onData(listener) {
21
+ return proc.onData(listener);
22
+ },
23
+ onExit(listener) {
24
+ return proc.onExit(listener);
25
+ },
26
+ write(data) {
27
+ proc.write(data);
28
+ },
29
+ resize(cols, rows) {
30
+ proc.resize(cols, rows);
31
+ },
32
+ kill(signal) {
33
+ proc.kill(signal);
34
+ }
35
+ };
36
+ }
37
+ export {
38
+ spawn2 as spawn
39
+ };
40
+ //# sourceMappingURL=pty.node-RHOAUGH6.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../packages/opencode/src/pty/pty.node.ts"],
4
4
  "sourcesContent": ["/** @ts-expect-error */\nimport * as pty from \"@lydell/node-pty\"\nimport type { Opts, Proc } from \"./pty\"\n\nexport type { Disp, Exit, Opts, Proc } from \"./pty\"\n\nexport function spawn(file: string, args: string[], opts: Opts): Proc {\n const proc = pty.spawn(file, args, opts)\n return {\n pid: proc.pid,\n onData(listener) {\n return proc.onData(listener)\n },\n onExit(listener) {\n return proc.onExit(listener)\n },\n write(data) {\n proc.write(data)\n },\n resize(cols, rows) {\n proc.resize(cols, rows)\n },\n kill(signal) {\n proc.kill(signal)\n },\n }\n}\n"],
5
- "mappings": ";;;;AACA,YAAY,SAAS;AAKd,SAASA,OAAM,MAAc,MAAgB,MAAkB;AACpE,QAAM,OAAW,UAAM,MAAM,MAAM,IAAI;AACvC,SAAO;AAAA,IACL,KAAK,KAAK;AAAA,IACV,OAAO,UAAU;AACf,aAAO,KAAK,OAAO,QAAQ;AAAA,IAC7B;AAAA,IACA,OAAO,UAAU;AACf,aAAO,KAAK,OAAO,QAAQ;AAAA,IAC7B;AAAA,IACA,MAAM,MAAM;AACV,WAAK,MAAM,IAAI;AAAA,IACjB;AAAA,IACA,OAAO,MAAM,MAAM;AACjB,WAAK,OAAO,MAAM,IAAI;AAAA,IACxB;AAAA,IACA,KAAK,QAAQ;AACX,WAAK,KAAK,MAAM;AAAA,IAClB;AAAA,EACF;AACF;",
5
+ "mappings": ";;;;;;;;;;;;;;AACA,YAAY,SAAS;AAKd,SAASA,OAAM,MAAc,MAAgB,MAAkB;AACpE,QAAM,OAAW,UAAM,MAAM,MAAM,IAAI;AACvC,SAAO;AAAA,IACL,KAAK,KAAK;AAAA,IACV,OAAO,UAAU;AACf,aAAO,KAAK,OAAO,QAAQ;AAAA,IAC7B;AAAA,IACA,OAAO,UAAU;AACf,aAAO,KAAK,OAAO,QAAQ;AAAA,IAC7B;AAAA,IACA,MAAM,MAAM;AACV,WAAK,MAAM,IAAI;AAAA,IACjB;AAAA,IACA,OAAO,MAAM,MAAM;AACjB,WAAK,OAAO,MAAM,IAAI;AAAA,IACxB;AAAA,IACA,KAAK,QAAQ;AACX,WAAK,KAAK,MAAM;AAAA,IAClB;AAAA,EACF;AACF;",
6
6
  "names": ["spawn"]
7
7
  }
@@ -0,0 +1,23 @@
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
+ ToolRegistry
14
+ } from "./chunk-DSPC5QIG.js";
15
+ import "./chunk-CYXMV3J3.js";
16
+ import "./chunk-B3FN2B2N.js";
17
+ import "./chunk-CR6IREZA.js";
18
+ import "./chunk-BI5OUHTQ.js";
19
+ import "./chunk-HORZKFCR.js";
20
+ export {
21
+ ToolRegistry
22
+ };
23
+ //# sourceMappingURL=registry-PYMN6L3G.js.map
@@ -1,27 +1,37 @@
1
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
+
2
12
  import {
3
13
  Server
4
- } from "./chunk-WCK3PNT7.js";
14
+ } from "./chunk-UWZSRZHA.js";
5
15
  import {
6
16
  InstanceBootstrap
7
- } from "./chunk-SM4I7RU4.js";
8
- import "./chunk-KMHCMDYS.js";
17
+ } from "./chunk-MCWTARFP.js";
18
+ import "./chunk-ANDTK76Q.js";
9
19
  import {
10
20
  Agent,
11
21
  Provider
12
- } from "./chunk-NBI23JB4.js";
13
- import "./chunk-K4ME3WTI.js";
22
+ } from "./chunk-DSPC5QIG.js";
23
+ import "./chunk-CYXMV3J3.js";
14
24
  import {
15
25
  Filesystem,
16
26
  Flag,
17
27
  Instance,
18
28
  NamedError
19
- } from "./chunk-CMAI7CAJ.js";
20
- import "./chunk-FPPWDLO7.js";
21
- import "./chunk-P44FI4UK.js";
29
+ } from "./chunk-B3FN2B2N.js";
30
+ import "./chunk-CR6IREZA.js";
31
+ import "./chunk-BI5OUHTQ.js";
22
32
  import {
23
33
  __require
24
- } from "./chunk-7JG6KCBC.js";
34
+ } from "./chunk-HORZKFCR.js";
25
35
 
26
36
  // packages/opencode/src/cli/cmd/run.ts
27
37
  import path from "path";
@@ -4778,4 +4788,4 @@ var RunCommand = cmd({
4778
4788
  export {
4779
4789
  RunCommand
4780
4790
  };
4781
- //# sourceMappingURL=run-HRWKT4NL.js.map
4791
+ //# sourceMappingURL=run-YFVCQJQM.js.map