agent-afk 5.209.3 → 5.209.5

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.
@@ -0,0 +1 @@
1
+ export declare function buildGoalPromptFragment(): string;
@@ -0,0 +1,15 @@
1
+ export type GoalStatus = 'active' | 'paused' | 'completed';
2
+ export interface Goal {
3
+ text: string;
4
+ status: GoalStatus;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ createdBy?: string;
8
+ }
9
+ export declare const MAX_GOAL_CHARS = 500;
10
+ export declare function getGoal(): Goal | null;
11
+ export declare function setGoal(text: string, sessionId?: string): Goal;
12
+ export declare function pauseGoal(): Goal | null;
13
+ export declare function resumeGoal(): Goal | null;
14
+ export declare function completeGoal(): Goal | null;
15
+ export declare function clearGoal(): boolean;
@@ -0,0 +1,4 @@
1
+ export { getGoal, setGoal, pauseGoal, resumeGoal, completeGoal, clearGoal } from './goal-store.js';
2
+ export type { Goal, GoalStatus } from './goal-store.js';
3
+ export { buildGoalPromptFragment } from './goal-prompt.js';
4
+ export { injectGoalPrompt } from './inject.js';
@@ -0,0 +1,2 @@
1
+ import type { AgentConfig } from '../types/config-types.js';
2
+ export declare function injectGoalPrompt(config: AgentConfig): AgentConfig;
@@ -1,5 +1,6 @@
1
1
  export { MemoryStore, estimateTokens } from './memory-store.js';
2
2
  export { loadHotMemory, injectHotMemory } from './memory-loader.js';
3
+ export { injectGoalPrompt } from '../goals/inject.js';
3
4
  export { createMemorySessionEndHook } from './memory-hooks.js';
4
5
  export { memorySearchTool, memoryUpdateTool, procedureWriteTool, memoryToolSchemas, MEMORY_TOOL_NAMES, createMemoryHandlers, } from './memory-tools.js';
5
6
  export type { Fact, NewFact, FactCategory, SessionRecord, NewSession, SessionOutcome, Procedure, SearchOpts, MemorySearchResult, MemoryUpdateAction, MemoryUpdateTarget, WALEntry, } from './types.js';
@@ -4,6 +4,7 @@ export interface StableSystemPromptInputs {
4
4
  memoryPrompt: string;
5
5
  workspacePrompt: string;
6
6
  hotMemory: string;
7
+ goalPrompt?: string;
7
8
  manifest: string;
8
9
  userSystem: string | null;
9
10
  }
@@ -51,6 +51,7 @@ export interface AgentConfig {
51
51
  };
52
52
  systemPromptSource?: string;
53
53
  hotMemory?: string;
54
+ goalPrompt?: string;
54
55
  mcpServers?: Record<string, import('../mcp/types.js').McpServerConfig>;
55
56
  mcpManager?: import('../mcp/index.js').McpManager;
56
57
  agents?: Record<string, AgentDefinition>;
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const goalCmd: SlashCommand;