alchemylab-opencode 1.0.5 → 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 (2) hide show
  1. package/build.mjs +20 -1
  2. package/package.json +2 -8
package/build.mjs CHANGED
@@ -134,6 +134,25 @@ const migrationPathPlugin = {
134
134
  }
135
135
  }
136
136
 
137
+
138
+ // Bundle packages that cause peer dep warnings (instead of keeping them external)
139
+ const bundleConflictingDepsPlugin = {
140
+ name: 'bundle-conflicting-deps',
141
+ setup(build) {
142
+ const bundled = ['hono-openapi', '@standard-community/', '@hono/standard-validator', 'quansync']
143
+ build.onResolve({ filter: /.*/ }, (args) => {
144
+ // Only intercept external package imports
145
+ if (args.kind !== 'import-statement' && args.kind !== 'dynamic-import') return
146
+ for (const pkg of bundled) {
147
+ if (args.path === pkg || args.path.startsWith(pkg)) {
148
+ // Let esbuild resolve and bundle this normally (don't externalize)
149
+ return { external: false }
150
+ }
151
+ }
152
+ })
153
+ }
154
+ }
155
+
137
156
  const result = await esbuild.build({
138
157
  entryPoints: [join(SRC, 'serve.ts'), join(SRC, 'run.ts')],
139
158
  bundle: true,
@@ -143,7 +162,7 @@ const result = await esbuild.build({
143
162
  outdir: join(ROOT, 'dist'),
144
163
  splitting: true,
145
164
  sourcemap: true,
146
- plugins: [txtPlugin, conditionalImportsPlugin, aliasPlugin, opencodePackagesPlugin, bunStubPlugin, fixExternalImportsPlugin, migrationPathPlugin],
165
+ plugins: [txtPlugin, conditionalImportsPlugin, aliasPlugin, opencodePackagesPlugin, bunStubPlugin, fixExternalImportsPlugin, migrationPathPlugin, bundleConflictingDepsPlugin],
147
166
  packages: 'external',
148
167
 
149
168
  banner: { js: `// Built by esbuild from opencode-server source
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemylab-opencode",
3
- "version": "1.0.5",
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": ">=24.0.0"
106
+ "node": ">=22.0.0"
113
107
  },
114
108
  "overrides": {
115
109
  "effect": "4.0.0-beta.43",