@standardagents/builder 0.40.4 → 0.40.5-next.3b25e2a
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 +26 -6
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +15 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -24040,6 +24040,18 @@ ${validUserProviders.map((p) => ` "${p.name}": async () => (await import("${p.i
|
|
|
24040
24040
|
}
|
|
24041
24041
|
}
|
|
24042
24042
|
var DEFAULT_AGENTBUILDER_COMPATIBILITY_DATE = "2025-08-13";
|
|
24043
|
+
var REQUIRED_AGENTBUILDER_COMPATIBILITY_FLAGS = [
|
|
24044
|
+
"nodejs_compat",
|
|
24045
|
+
"enable_ctx_exports"
|
|
24046
|
+
];
|
|
24047
|
+
function compatibilityFlagsWithBuilderRequirements(flags = []) {
|
|
24048
|
+
if (flags.some((flag) => typeof flag !== "string" || flag.trim().length === 0)) {
|
|
24049
|
+
throw new Error(
|
|
24050
|
+
"compatibilityFlags must contain non-empty Cloudflare compatibility flag names"
|
|
24051
|
+
);
|
|
24052
|
+
}
|
|
24053
|
+
return [.../* @__PURE__ */ new Set([...REQUIRED_AGENTBUILDER_COMPATIBILITY_FLAGS, ...flags])];
|
|
24054
|
+
}
|
|
24043
24055
|
var depsToExclude = [
|
|
24044
24056
|
"@standardagents/builder",
|
|
24045
24057
|
"@standardagents/builder/runtime",
|
|
@@ -24148,7 +24160,7 @@ function createAgentBuilderWorkerConfig(options) {
|
|
|
24148
24160
|
// in vite.config.ts plus their agents/ source tree.
|
|
24149
24161
|
main: options.workerEntry,
|
|
24150
24162
|
compatibility_date: compatibilityDate,
|
|
24151
|
-
compatibility_flags:
|
|
24163
|
+
compatibility_flags: compatibilityFlagsWithBuilderRequirements(options.compatibilityFlags),
|
|
24152
24164
|
observability: {
|
|
24153
24165
|
enabled: true
|
|
24154
24166
|
},
|
|
@@ -24539,7 +24551,8 @@ export { CodeExecutionBridge, DurableAgentBuilder, DurableThread, ThreadWatchdog
|
|
|
24539
24551
|
corePlugin,
|
|
24540
24552
|
...createAgentBuilderCloudflarePlugins({
|
|
24541
24553
|
workerEntry,
|
|
24542
|
-
compatibilityDate: options.compatibilityDate ?? DEFAULT_AGENTBUILDER_COMPATIBILITY_DATE
|
|
24554
|
+
compatibilityDate: options.compatibilityDate ?? DEFAULT_AGENTBUILDER_COMPATIBILITY_DATE,
|
|
24555
|
+
compatibilityFlags: options.compatibilityFlags
|
|
24543
24556
|
})
|
|
24544
24557
|
];
|
|
24545
24558
|
}
|