/** * Standalone {@link GoalsService} construction for the plugin-goals action and * routes, with default hooks for the owner-scoped surface. * * The two PA-owned concerns the service needs are reproduced here for the * PA-free deployment topology: * - `normalizeOwnership` — the action drives the owner surface (ADMIN role, * owner contexts), so goals are always owner-scoped. We return the fixed * owner ownership (`user_lifeops` / `owner` / `owner_only` / * `explicit_only`, subjectId = the agent's admin entity) that PA's * `normalizeOwnership` produces for the owner case. * - `recordAudit` — writes the goal audit event into this plugin's * `app_goals.life_goal_audit_events` table via {@link GoalsRepository}. * * When PA is loaded it constructs the {@link GoalsService} with its own * `recordAudit` / `normalizeOwnership` bound from the LifeOps service base, so * the agent-scoped path and PA's domain invariants stay intact. */ import type { LifeOpsOwnership } from "@elizaos/contracts"; import { type IAgentRuntime } from "@elizaos/core"; import { GoalsService } from "./goals-service.js"; /** * Owner-entity id for the admin/owner entity of an agent — the same derivation * PA's `defaultOwnerEntityId` uses (configured canonical owner, else core's * agent-id seed), so goals written from the PA-free topology stay visible to * the PA-loaded one. */ export declare function ownerEntityIdFor(runtime: IAgentRuntime): string; /** * Fixed owner-scope ownership. Matches the result of PA's `normalizeOwnership` * for an owner request with no explicit overrides. */ export declare function buildOwnerOwnership(runtime: IAgentRuntime): LifeOpsOwnership; /** * Construct a {@link GoalsService} bound to the owner surface with default * hooks, for use without `@elizaos/plugin-personal-assistant`. */ export declare function createOwnerGoalsService(runtime: IAgentRuntime): GoalsService; //# sourceMappingURL=goals-runtime.d.ts.map