@standardagents/builder 0.12.5 → 0.12.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/dist/built-in-routes.js +3779 -3712
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +26 -7
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +26 -7
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -12887,10 +12887,19 @@ function agentbuilder(options = {}) {
|
|
|
12887
12887
|
publicDir: fs2__default.existsSync(builderClientDir) ? builderClientDir : void 0,
|
|
12888
12888
|
build: {
|
|
12889
12889
|
rollupOptions: {
|
|
12890
|
-
//
|
|
12891
|
-
//
|
|
12892
|
-
//
|
|
12893
|
-
|
|
12890
|
+
// The packing system dynamically imports rollup, typescript, and related
|
|
12891
|
+
// plugins for the CLI `pack` command. These are never needed at runtime
|
|
12892
|
+
// in Cloudflare Workers and must be externalized:
|
|
12893
|
+
// - rollup/typescript/fsevents contain Node.js-only APIs (__filename, fs)
|
|
12894
|
+
// - fsevents is macOS-only and doesn't exist on Linux CI
|
|
12895
|
+
external: [
|
|
12896
|
+
"rollup",
|
|
12897
|
+
"@rollup/plugin-commonjs",
|
|
12898
|
+
"@rollup/plugin-node-resolve",
|
|
12899
|
+
"rollup-plugin-esbuild",
|
|
12900
|
+
"fsevents",
|
|
12901
|
+
"typescript"
|
|
12902
|
+
]
|
|
12894
12903
|
}
|
|
12895
12904
|
},
|
|
12896
12905
|
optimizeDeps: {
|
|
@@ -12958,15 +12967,25 @@ function agentbuilder(options = {}) {
|
|
|
12958
12967
|
...config.optimizeDeps.include || [],
|
|
12959
12968
|
...depsToInclude.filter((dep) => !config.optimizeDeps?.include?.includes(dep))
|
|
12960
12969
|
];
|
|
12970
|
+
const packingDeps = [
|
|
12971
|
+
"rollup",
|
|
12972
|
+
"@rollup/plugin-commonjs",
|
|
12973
|
+
"@rollup/plugin-node-resolve",
|
|
12974
|
+
"rollup-plugin-esbuild",
|
|
12975
|
+
"fsevents",
|
|
12976
|
+
"typescript"
|
|
12977
|
+
];
|
|
12961
12978
|
config.build = config.build || {};
|
|
12962
12979
|
config.build.rollupOptions = config.build.rollupOptions || {};
|
|
12963
12980
|
const existing = config.build.rollupOptions.external;
|
|
12964
12981
|
if (Array.isArray(existing)) {
|
|
12965
|
-
|
|
12982
|
+
for (const dep of packingDeps) {
|
|
12983
|
+
if (!existing.includes(dep)) existing.push(dep);
|
|
12984
|
+
}
|
|
12966
12985
|
} else if (typeof existing === "string") {
|
|
12967
|
-
config.build.rollupOptions.external = [existing,
|
|
12986
|
+
config.build.rollupOptions.external = [existing, ...packingDeps];
|
|
12968
12987
|
} else if (!existing) {
|
|
12969
|
-
config.build.rollupOptions.external = [
|
|
12988
|
+
config.build.rollupOptions.external = [...packingDeps];
|
|
12970
12989
|
}
|
|
12971
12990
|
},
|
|
12972
12991
|
resolveId(id) {
|