alchemylab-opencode 1.0.6 → 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.
- package/build.mjs +22 -12
- package/dist/arktype-aI7TBD0R-HX4BR3RX.js +21 -0
- package/dist/arktype-aI7TBD0R-HX4BR3RX.js.map +7 -0
- package/dist/{chunk-UWZSRZHA.js → chunk-23UYOGZG.js} +817 -315
- package/dist/chunk-23UYOGZG.js.map +7 -0
- package/dist/chunk-3AF5MXLF.js +49 -0
- package/dist/chunk-3AF5MXLF.js.map +7 -0
- package/dist/chunk-FMP3YLWX.js +30 -0
- package/dist/chunk-FMP3YLWX.js.map +7 -0
- package/dist/{chunk-ANDTK76Q.js → chunk-GSE2T5UY.js} +3 -3
- package/dist/{chunk-CYXMV3J3.js → chunk-LU5XVQUD.js} +4 -4
- package/dist/chunk-O5VWOPCL.js +106 -0
- package/dist/chunk-O5VWOPCL.js.map +7 -0
- package/dist/chunk-PWFRMDDF.js +12 -0
- package/dist/{chunk-DSPC5QIG.js → chunk-SM6WZDN6.js} +9 -9
- package/dist/{chunk-MCWTARFP.js → chunk-TASPMBUL.js} +4 -4
- package/dist/chunk-VL3RSEZ2.js +160 -0
- package/dist/chunk-VL3RSEZ2.js.map +7 -0
- package/dist/default-u_dwuiYb-WOFHQQ3K.js +22 -0
- package/dist/effect-QlVUlMFu-UERLUUQW.js +29 -0
- package/dist/effect-QlVUlMFu-UERLUUQW.js.map +7 -0
- package/dist/{mcp-VAU4RMWH.js → mcp-XFGN3FWW.js} +2 -2
- package/dist/{registry-PYMN6L3G.js → registry-W4MBVBYD.js} +3 -3
- package/dist/{run-YFVCQJQM.js → run-73HUV4H3.js} +9 -6
- package/dist/{run-YFVCQJQM.js.map → run-73HUV4H3.js.map} +1 -1
- package/dist/run.js +1 -1
- package/dist/serve.js +1 -1
- package/dist/{server-K3UGWASP.js → server-2CPOG3LS.js} +9 -6
- package/dist/{session-HJFWTM7C.js → session-M6HOZ56B.js} +3 -3
- package/dist/session-M6HOZ56B.js.map +7 -0
- package/dist/{share-next-55VCIMUH.js → share-next-QRBVSD37.js} +4 -4
- package/dist/share-next-QRBVSD37.js.map +7 -0
- package/dist/sury-CWZTCd75-XC3NCMTP.js +29 -0
- package/dist/sury-CWZTCd75-XC3NCMTP.js.map +7 -0
- package/dist/typebox-Dei93FPO-QOBKW4L7.js +21 -0
- package/dist/typebox-Dei93FPO-QOBKW4L7.js.map +7 -0
- package/dist/valibot--1zFm7rT-LHHLSLYY.js +29 -0
- package/dist/valibot--1zFm7rT-LHHLSLYY.js.map +7 -0
- package/dist/valibot-D_HTw1Gn-UR62BIDY.js +60 -0
- package/dist/valibot-D_HTw1Gn-UR62BIDY.js.map +7 -0
- package/dist/{worktree-6GGDLADY.js → worktree-3GUHT2P7.js} +5 -5
- package/dist/zod-Bwrt9trS-J2GOMA2R.js +43 -0
- package/dist/zod-Bwrt9trS-J2GOMA2R.js.map +7 -0
- package/dist/zod-DSgpEGAE-VTXQW6SB.js +56 -0
- package/dist/zod-DSgpEGAE-VTXQW6SB.js.map +7 -0
- package/package.json +1 -1
- package/dist/chunk-UWZSRZHA.js.map +0 -7
- /package/dist/{chunk-ANDTK76Q.js.map → chunk-GSE2T5UY.js.map} +0 -0
- /package/dist/{chunk-CYXMV3J3.js.map → chunk-LU5XVQUD.js.map} +0 -0
- /package/dist/{mcp-VAU4RMWH.js.map → chunk-PWFRMDDF.js.map} +0 -0
- /package/dist/{chunk-DSPC5QIG.js.map → chunk-SM6WZDN6.js.map} +0 -0
- /package/dist/{chunk-MCWTARFP.js.map → chunk-TASPMBUL.js.map} +0 -0
- /package/dist/{registry-PYMN6L3G.js.map → default-u_dwuiYb-WOFHQQ3K.js.map} +0 -0
- /package/dist/{server-K3UGWASP.js.map → mcp-XFGN3FWW.js.map} +0 -0
- /package/dist/{session-HJFWTM7C.js.map → registry-W4MBVBYD.js.map} +0 -0
- /package/dist/{share-next-55VCIMUH.js.map → server-2CPOG3LS.js.map} +0 -0
- /package/dist/{worktree-6GGDLADY.js.map → worktree-3GUHT2P7.js.map} +0 -0
package/build.mjs
CHANGED
|
@@ -135,20 +135,31 @@ const migrationPathPlugin = {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
// Selectively externalize: bundle hono-openapi + @standard-community (peer dep conflicts),
|
|
139
|
+
// externalize everything else from node_modules
|
|
140
|
+
const selectiveExternalPlugin = {
|
|
141
|
+
name: 'selective-external',
|
|
141
142
|
setup(build) {
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
const bundleInline = ['hono-openapi', '@standard-community/', '@hono/standard-validator',
|
|
144
|
+
'@standard-schema/', 'quansync']
|
|
145
|
+
|
|
146
|
+
build.onResolve({ filter: /^[^.@/]|^@[^/]+\/[^/]/ }, (args) => {
|
|
147
|
+
// Skip our local aliases and conditional imports (handled by other plugins)
|
|
148
|
+
if (args.path.startsWith('@/') || args.path.startsWith('@tui/') || args.path.startsWith('#')) return
|
|
149
|
+
// Skip node builtins
|
|
150
|
+
if (args.path.startsWith('node:') || ['fs', 'path', 'os', 'crypto', 'http', 'net', 'url',
|
|
151
|
+
'stream', 'events', 'child_process', 'readline', 'async_hooks', 'fs/promises',
|
|
152
|
+
'stream/promises', 'v8'].includes(args.path)) return
|
|
153
|
+
|
|
154
|
+
// Check if this should be bundled
|
|
155
|
+
for (const pkg of bundleInline) {
|
|
147
156
|
if (args.path === pkg || args.path.startsWith(pkg)) {
|
|
148
|
-
//
|
|
149
|
-
return { external: false }
|
|
157
|
+
return // Don't externalize — let esbuild bundle it
|
|
150
158
|
}
|
|
151
159
|
}
|
|
160
|
+
|
|
161
|
+
// Externalize everything else
|
|
162
|
+
return { external: true }
|
|
152
163
|
})
|
|
153
164
|
}
|
|
154
165
|
}
|
|
@@ -162,8 +173,7 @@ const result = await esbuild.build({
|
|
|
162
173
|
outdir: join(ROOT, 'dist'),
|
|
163
174
|
splitting: true,
|
|
164
175
|
sourcemap: true,
|
|
165
|
-
plugins: [txtPlugin, conditionalImportsPlugin, aliasPlugin, opencodePackagesPlugin, bunStubPlugin, fixExternalImportsPlugin, migrationPathPlugin,
|
|
166
|
-
packages: 'external',
|
|
176
|
+
plugins: [txtPlugin, conditionalImportsPlugin, aliasPlugin, opencodePackagesPlugin, bunStubPlugin, fixExternalImportsPlugin, migrationPathPlugin, selectiveExternalPlugin],
|
|
167
177
|
|
|
168
178
|
banner: { js: `// Built by esbuild from opencode-server source
|
|
169
179
|
if (typeof globalThis.Bun === 'undefined') {
|
|
@@ -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/arktype-aI7TBD0R.js
|
|
15
|
+
function getToJsonSchemaFn() {
|
|
16
|
+
return (schema, options) => schema.toJsonSchema(options);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
getToJsonSchemaFn as default
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=arktype-aI7TBD0R-HX4BR3RX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../node_modules/@standard-community/standard-json/dist/arktype-aI7TBD0R.js"],
|
|
4
|
+
"sourcesContent": ["function getToJsonSchemaFn() {\n return (schema, options) => schema.toJsonSchema(options);\n}\n\nexport { getToJsonSchemaFn as default };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA,SAAS,oBAAoB;AAC3B,SAAO,CAAC,QAAQ,YAAY,OAAO,aAAa,OAAO;AACzD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|