mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 11:50:44 +00:00
* memory-core: harden request-scoped dreaming fallback * memory-core: tighten request-scoped fallback classification
24 lines
811 B
TypeScript
24 lines
811 B
TypeScript
// Shared error graph/format helpers without the full infra-runtime surface.
|
|
|
|
export const SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_CODE = "OPENCLAW_SUBAGENT_RUNTIME_REQUEST_SCOPE";
|
|
export const SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_MESSAGE =
|
|
"Plugin runtime subagent methods are only available during a gateway request.";
|
|
|
|
export class RequestScopedSubagentRuntimeError extends Error {
|
|
code = SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_CODE;
|
|
|
|
constructor(message = SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_MESSAGE) {
|
|
super(message);
|
|
this.name = "RequestScopedSubagentRuntimeError";
|
|
}
|
|
}
|
|
|
|
export {
|
|
collectErrorGraphCandidates,
|
|
extractErrorCode,
|
|
formatErrorMessage,
|
|
formatUncaughtError,
|
|
readErrorName,
|
|
} from "../infra/errors.js";
|
|
export { isApprovalNotFoundError } from "../infra/approval-errors.ts";
|