Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/cloud/api/src/stubs/elizaos-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ function throwingExport(name: string): (...args: unknown[]) => never {
return () => unavailable(name);
}

/**
* Worker-safe pass-through for core's `runWithTrajectoryPurpose`. The Worker
* build has no AsyncLocalStorage trajectory-context manager (node-only), so we
* just invoke the fn directly — trajectory-purpose tracking is a no-op in the
* Worker. Added because #11580 imports it into email-classifier.ts, which the
* Worker build bundles; without this export the Deploy API Worker step fails
* with "No matching export ... for import runWithTrajectoryPurpose".
*/
export function runWithTrajectoryPurpose<T>(
_purpose: string,
fn: () => T | Promise<T>,
): T | Promise<T> {
return fn();
}

function readEnvValue(
env: Record<string, string | undefined>,
keys: readonly string[],
Expand Down
Loading