alchemylab-opencode 1.0.10 → 1.0.12

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.
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-65PIGE2A.js");
18
+ var { RunCommand } = await import("./run-LFTIH4AN.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-KCG3B4WQ.js");
23
+ var { Server } = await import("./server-6DXPYUB2.js");
24
24
  var port = parseInt(arg("port", "4096"), 10);
25
25
  var hostname = arg("hostname", "127.0.0.1");
26
26
  try {
@@ -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
+ Server
14
+ } from "./chunk-WJIR3FCC.js";
15
+ import "./chunk-EPJAWJV7.js";
16
+ import "./chunk-3AF5MXLF.js";
17
+ import "./chunk-PWFRMDDF.js";
18
+ import "./chunk-MHT2AKV6.js";
19
+ import "./chunk-W7LNDS5C.js";
20
+ import "./chunk-IMDQIMHW.js";
21
+ import "./chunk-3PZZ2D23.js";
22
+ import "./chunk-CR6IREZA.js";
23
+ import "./chunk-BI5OUHTQ.js";
24
+ import "./chunk-VL3RSEZ2.js";
25
+ import "./chunk-HORZKFCR.js";
26
+ export {
27
+ Server
28
+ };
29
+ //# sourceMappingURL=server-6DXPYUB2.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
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
+ Session
14
+ } from "./chunk-W7LNDS5C.js";
15
+ import "./chunk-IMDQIMHW.js";
16
+ import "./chunk-3PZZ2D23.js";
17
+ import "./chunk-CR6IREZA.js";
18
+ import "./chunk-BI5OUHTQ.js";
19
+ import "./chunk-HORZKFCR.js";
20
+ export {
21
+ Session
22
+ };
23
+ //# sourceMappingURL=session-S66VI2QN.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,24 @@
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-MHT2AKV6.js";
15
+ import "./chunk-W7LNDS5C.js";
16
+ import "./chunk-IMDQIMHW.js";
17
+ import "./chunk-3PZZ2D23.js";
18
+ import "./chunk-CR6IREZA.js";
19
+ import "./chunk-BI5OUHTQ.js";
20
+ import "./chunk-HORZKFCR.js";
21
+ export {
22
+ ShareNext
23
+ };
24
+ //# sourceMappingURL=share-next-UMCA2UHI.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,63 @@
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-EPJAWJV7.js";
16
+ import "./chunk-MHT2AKV6.js";
17
+ import "./chunk-W7LNDS5C.js";
18
+ import "./chunk-IMDQIMHW.js";
19
+ import "./chunk-3PZZ2D23.js";
20
+ import "./chunk-CR6IREZA.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-YP3CU2YZ.js.map
@@ -0,0 +1,7 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemylab-opencode",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "OpenCode server runtime for AlchemyLab",
5
5
  "type": "module",
6
6
  "license": "MIT",