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.
- package/build.mjs +31 -2
- package/dist/{chunk-KMHCMDYS.js → chunk-ANDTK76Q.js} +14 -4
- package/dist/{chunk-KMHCMDYS.js.map → chunk-ANDTK76Q.js.map} +1 -1
- package/dist/{chunk-CMAI7CAJ.js → chunk-B3FN2B2N.js} +14 -4
- package/dist/{chunk-CMAI7CAJ.js.map → chunk-B3FN2B2N.js.map} +1 -1
- package/dist/chunk-BI5OUHTQ.js +31 -0
- package/dist/{chunk-P44FI4UK.js.map → chunk-BI5OUHTQ.js.map} +1 -1
- package/dist/{chunk-FPPWDLO7.js → chunk-CR6IREZA.js} +12 -2
- package/dist/{chunk-FPPWDLO7.js.map → chunk-CR6IREZA.js.map} +1 -1
- package/dist/{chunk-K4ME3WTI.js → chunk-CYXMV3J3.js} +18 -8
- package/dist/{chunk-K4ME3WTI.js.map → chunk-CYXMV3J3.js.map} +1 -1
- package/dist/{chunk-NBI23JB4.js → chunk-DSPC5QIG.js} +24 -14
- package/dist/{chunk-NBI23JB4.js.map → chunk-DSPC5QIG.js.map} +1 -1
- package/dist/{chunk-7JG6KCBC.js → chunk-HORZKFCR.js} +11 -1
- package/dist/{chunk-SM4I7RU4.js → chunk-MCWTARFP.js} +15 -5
- package/dist/{chunk-SM4I7RU4.js.map → chunk-MCWTARFP.js.map} +1 -1
- package/dist/{chunk-WCK3PNT7.js → chunk-UWZSRZHA.js} +20 -10
- package/dist/{chunk-WCK3PNT7.js.map → chunk-UWZSRZHA.js.map} +1 -1
- package/dist/mcp-VAU4RMWH.js +22 -0
- package/dist/pty.node-RHOAUGH6.js +40 -0
- package/dist/{pty.node-IR7ZMJYY.js.map → pty.node-RHOAUGH6.js.map} +1 -1
- package/dist/registry-PYMN6L3G.js +23 -0
- package/dist/{run-HRWKT4NL.js → run-YFVCQJQM.js} +20 -10
- package/dist/{run-HRWKT4NL.js.map → run-YFVCQJQM.js.map} +1 -1
- package/dist/run-service-LHEVFBIU.js +22 -0
- package/dist/run.js +11 -1
- package/dist/run.js.map +1 -1
- package/dist/schema-32EBFLEO.js +24 -0
- package/dist/serve.js +11 -1
- package/dist/serve.js.map +1 -1
- package/dist/server-K3UGWASP.js +26 -0
- package/dist/session-HJFWTM7C.js +23 -0
- package/dist/share-next-55VCIMUH.js +24 -0
- package/dist/{worktree-E5I74P2A.js → worktree-6GGDLADY.js} +19 -9
- package/dist/{worktree-E5I74P2A.js.map → worktree-6GGDLADY.js.map} +1 -1
- package/package.json +2 -8
- package/dist/chunk-P44FI4UK.js +0 -21
- package/dist/mcp-6ID7DRNS.js +0 -12
- package/dist/pty.node-IR7ZMJYY.js +0 -30
- package/dist/registry-O4THPVFS.js +0 -13
- package/dist/run-service-23VXHTA6.js +0 -12
- package/dist/schema-YARWYUAH.js +0 -14
- package/dist/server-MHSLBRNZ.js +0 -16
- package/dist/session-3UEFY5NC.js +0 -13
- package/dist/share-next-Q5WQ2ELY.js +0 -14
- /package/dist/{chunk-7JG6KCBC.js.map → chunk-HORZKFCR.js.map} +0 -0
- /package/dist/{mcp-6ID7DRNS.js.map → mcp-VAU4RMWH.js.map} +0 -0
- /package/dist/{registry-O4THPVFS.js.map → registry-PYMN6L3G.js.map} +0 -0
- /package/dist/{run-service-23VXHTA6.js.map → run-service-LHEVFBIU.js.map} +0 -0
- /package/dist/{schema-YARWYUAH.js.map → schema-32EBFLEO.js.map} +0 -0
- /package/dist/{server-MHSLBRNZ.js.map → server-K3UGWASP.js.map} +0 -0
- /package/dist/{session-3UEFY5NC.js.map → session-HJFWTM7C.js.map} +0 -0
- /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
|
+
makeRuntime,
|
|
14
|
+
memoMap
|
|
15
|
+
} from "./chunk-B3FN2B2N.js";
|
|
16
|
+
import "./chunk-BI5OUHTQ.js";
|
|
17
|
+
import "./chunk-HORZKFCR.js";
|
|
18
|
+
export {
|
|
19
|
+
makeRuntime,
|
|
20
|
+
memoMap
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=run-service-LHEVFBIU.js.map
|
package/dist/run.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
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
|
|
|
3
13
|
// packages/opencode/src/run.ts
|
|
4
14
|
import { homedir } from "node:os";
|
|
5
15
|
import { join } from "node:path";
|
|
6
16
|
var defaultDataDir = join(homedir(), ".alchemy_lab", "opencode");
|
|
7
17
|
process.env.OPENCODE_DATA_DIR = process.env.OPENCODE_DATA_DIR || defaultDataDir;
|
|
8
|
-
var { RunCommand } = await import("./run-
|
|
18
|
+
var { RunCommand } = await import("./run-YFVCQJQM.js");
|
|
9
19
|
var yargs = (await import("yargs")).default;
|
|
10
20
|
var { hideBin } = await import("yargs/helpers");
|
|
11
21
|
yargs(hideBin(process.argv)).command(RunCommand).strict().help().parse();
|
package/dist/run.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../packages/opencode/src/run.ts"],
|
|
4
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": "
|
|
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
6
|
"names": []
|
|
7
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
|
+
MessageID,
|
|
14
|
+
PartID,
|
|
15
|
+
SessionID
|
|
16
|
+
} from "./chunk-CR6IREZA.js";
|
|
17
|
+
import "./chunk-BI5OUHTQ.js";
|
|
18
|
+
import "./chunk-HORZKFCR.js";
|
|
19
|
+
export {
|
|
20
|
+
MessageID,
|
|
21
|
+
PartID,
|
|
22
|
+
SessionID
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=schema-32EBFLEO.js.map
|
package/dist/serve.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
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
|
|
|
3
13
|
// packages/opencode/src/serve.ts
|
|
4
14
|
import { homedir } from "node:os";
|
|
@@ -10,7 +20,7 @@ function arg(name, fallback) {
|
|
|
10
20
|
var defaultDataDir = join(homedir(), ".alchemy_lab", "opencode");
|
|
11
21
|
var dataDir = arg("data-dir", defaultDataDir);
|
|
12
22
|
process.env.OPENCODE_DATA_DIR = dataDir;
|
|
13
|
-
var { Server } = await import("./server-
|
|
23
|
+
var { Server } = await import("./server-K3UGWASP.js");
|
|
14
24
|
var port = parseInt(arg("port", "4096"), 10);
|
|
15
25
|
var hostname = arg("hostname", "127.0.0.1");
|
|
16
26
|
try {
|
package/dist/serve.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../packages/opencode/src/serve.ts"],
|
|
4
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\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": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAgBA,SAAS,eAAe;AACxB,SAAS,YAAY;AAPrB,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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-UWZSRZHA.js";
|
|
15
|
+
import "./chunk-MCWTARFP.js";
|
|
16
|
+
import "./chunk-ANDTK76Q.js";
|
|
17
|
+
import "./chunk-DSPC5QIG.js";
|
|
18
|
+
import "./chunk-CYXMV3J3.js";
|
|
19
|
+
import "./chunk-B3FN2B2N.js";
|
|
20
|
+
import "./chunk-CR6IREZA.js";
|
|
21
|
+
import "./chunk-BI5OUHTQ.js";
|
|
22
|
+
import "./chunk-HORZKFCR.js";
|
|
23
|
+
export {
|
|
24
|
+
Server
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=server-K3UGWASP.js.map
|
|
@@ -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-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
|
+
Session
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=session-HJFWTM7C.js.map
|
|
@@ -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-ANDTK76Q.js";
|
|
15
|
+
import "./chunk-DSPC5QIG.js";
|
|
16
|
+
import "./chunk-CYXMV3J3.js";
|
|
17
|
+
import "./chunk-B3FN2B2N.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-55VCIMUH.js.map
|
|
@@ -1,15 +1,25 @@
|
|
|
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
|
WorkspaceInfo,
|
|
4
14
|
Worktree
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-MCWTARFP.js";
|
|
16
|
+
import "./chunk-ANDTK76Q.js";
|
|
17
|
+
import "./chunk-DSPC5QIG.js";
|
|
18
|
+
import "./chunk-CYXMV3J3.js";
|
|
19
|
+
import "./chunk-B3FN2B2N.js";
|
|
20
|
+
import "./chunk-CR6IREZA.js";
|
|
21
|
+
import "./chunk-BI5OUHTQ.js";
|
|
22
|
+
import "./chunk-HORZKFCR.js";
|
|
13
23
|
|
|
14
24
|
// packages/opencode/src/control-plane/adaptors/worktree.ts
|
|
15
25
|
var Config = WorkspaceInfo.extend({
|
|
@@ -50,4 +60,4 @@ var WorktreeAdaptor = {
|
|
|
50
60
|
export {
|
|
51
61
|
WorktreeAdaptor
|
|
52
62
|
};
|
|
53
|
-
//# sourceMappingURL=worktree-
|
|
63
|
+
//# sourceMappingURL=worktree-6GGDLADY.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../packages/opencode/src/control-plane/adaptors/worktree.ts"],
|
|
4
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": "
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemylab-opencode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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": ">=
|
|
106
|
+
"node": ">=22.0.0"
|
|
113
107
|
},
|
|
114
108
|
"overrides": {
|
|
115
109
|
"effect": "4.0.0-beta.43",
|
package/dist/chunk-P44FI4UK.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
|
|
3
|
-
// packages/opencode/src/util/schema.ts
|
|
4
|
-
var withStatics = (methods) => (schema) => Object.assign(schema, methods(schema));
|
|
5
|
-
function Newtype() {
|
|
6
|
-
return (tag, schema) => {
|
|
7
|
-
class Base {
|
|
8
|
-
static makeUnsafe(value) {
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
Object.setPrototypeOf(Base, schema);
|
|
13
|
-
return Base;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
withStatics,
|
|
19
|
-
Newtype
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=chunk-P44FI4UK.js.map
|
package/dist/mcp-6ID7DRNS.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
MCP
|
|
4
|
-
} from "./chunk-K4ME3WTI.js";
|
|
5
|
-
import "./chunk-CMAI7CAJ.js";
|
|
6
|
-
import "./chunk-FPPWDLO7.js";
|
|
7
|
-
import "./chunk-P44FI4UK.js";
|
|
8
|
-
import "./chunk-7JG6KCBC.js";
|
|
9
|
-
export {
|
|
10
|
-
MCP
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=mcp-6ID7DRNS.js.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import "./chunk-7JG6KCBC.js";
|
|
3
|
-
|
|
4
|
-
// packages/opencode/src/pty/pty.node.ts
|
|
5
|
-
import * as pty from "@lydell/node-pty";
|
|
6
|
-
function spawn2(file, args, opts) {
|
|
7
|
-
const proc = pty.spawn(file, args, opts);
|
|
8
|
-
return {
|
|
9
|
-
pid: proc.pid,
|
|
10
|
-
onData(listener) {
|
|
11
|
-
return proc.onData(listener);
|
|
12
|
-
},
|
|
13
|
-
onExit(listener) {
|
|
14
|
-
return proc.onExit(listener);
|
|
15
|
-
},
|
|
16
|
-
write(data) {
|
|
17
|
-
proc.write(data);
|
|
18
|
-
},
|
|
19
|
-
resize(cols, rows) {
|
|
20
|
-
proc.resize(cols, rows);
|
|
21
|
-
},
|
|
22
|
-
kill(signal) {
|
|
23
|
-
proc.kill(signal);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
spawn2 as spawn
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=pty.node-IR7ZMJYY.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
ToolRegistry
|
|
4
|
-
} from "./chunk-NBI23JB4.js";
|
|
5
|
-
import "./chunk-K4ME3WTI.js";
|
|
6
|
-
import "./chunk-CMAI7CAJ.js";
|
|
7
|
-
import "./chunk-FPPWDLO7.js";
|
|
8
|
-
import "./chunk-P44FI4UK.js";
|
|
9
|
-
import "./chunk-7JG6KCBC.js";
|
|
10
|
-
export {
|
|
11
|
-
ToolRegistry
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=registry-O4THPVFS.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
makeRuntime,
|
|
4
|
-
memoMap
|
|
5
|
-
} from "./chunk-CMAI7CAJ.js";
|
|
6
|
-
import "./chunk-P44FI4UK.js";
|
|
7
|
-
import "./chunk-7JG6KCBC.js";
|
|
8
|
-
export {
|
|
9
|
-
makeRuntime,
|
|
10
|
-
memoMap
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=run-service-23VXHTA6.js.map
|
package/dist/schema-YARWYUAH.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
MessageID,
|
|
4
|
-
PartID,
|
|
5
|
-
SessionID
|
|
6
|
-
} from "./chunk-FPPWDLO7.js";
|
|
7
|
-
import "./chunk-P44FI4UK.js";
|
|
8
|
-
import "./chunk-7JG6KCBC.js";
|
|
9
|
-
export {
|
|
10
|
-
MessageID,
|
|
11
|
-
PartID,
|
|
12
|
-
SessionID
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=schema-YARWYUAH.js.map
|
package/dist/server-MHSLBRNZ.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
Server
|
|
4
|
-
} from "./chunk-WCK3PNT7.js";
|
|
5
|
-
import "./chunk-SM4I7RU4.js";
|
|
6
|
-
import "./chunk-KMHCMDYS.js";
|
|
7
|
-
import "./chunk-NBI23JB4.js";
|
|
8
|
-
import "./chunk-K4ME3WTI.js";
|
|
9
|
-
import "./chunk-CMAI7CAJ.js";
|
|
10
|
-
import "./chunk-FPPWDLO7.js";
|
|
11
|
-
import "./chunk-P44FI4UK.js";
|
|
12
|
-
import "./chunk-7JG6KCBC.js";
|
|
13
|
-
export {
|
|
14
|
-
Server
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=server-MHSLBRNZ.js.map
|
package/dist/session-3UEFY5NC.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
Session
|
|
4
|
-
} from "./chunk-NBI23JB4.js";
|
|
5
|
-
import "./chunk-K4ME3WTI.js";
|
|
6
|
-
import "./chunk-CMAI7CAJ.js";
|
|
7
|
-
import "./chunk-FPPWDLO7.js";
|
|
8
|
-
import "./chunk-P44FI4UK.js";
|
|
9
|
-
import "./chunk-7JG6KCBC.js";
|
|
10
|
-
export {
|
|
11
|
-
Session
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=session-3UEFY5NC.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
import {
|
|
3
|
-
ShareNext
|
|
4
|
-
} from "./chunk-KMHCMDYS.js";
|
|
5
|
-
import "./chunk-NBI23JB4.js";
|
|
6
|
-
import "./chunk-K4ME3WTI.js";
|
|
7
|
-
import "./chunk-CMAI7CAJ.js";
|
|
8
|
-
import "./chunk-FPPWDLO7.js";
|
|
9
|
-
import "./chunk-P44FI4UK.js";
|
|
10
|
-
import "./chunk-7JG6KCBC.js";
|
|
11
|
-
export {
|
|
12
|
-
ShareNext
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=share-next-Q5WQ2ELY.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|