agent-afk 5.350.0 → 5.351.0
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/agent/episodes/q-ingest.d.ts +1 -1
- package/dist/agent/facets/index.d.ts +0 -1
- package/dist/agent/memory/index.d.ts +2 -1
- package/dist/agent/memory/memory-loader.d.ts +11 -2
- package/dist/agent/providers/anthropic-direct/auth.d.ts +2 -2
- package/dist/agent/providers/openai-compatible/system-prompt-wiring.d.ts +1 -1
- package/dist/agent/session/pause-controller.d.ts +5 -0
- package/dist/cli/commands/interactive/bootstrap-session-builder.d.ts +2 -0
- package/dist/cli/commands/interactive/shared.d.ts +1 -0
- package/dist/cli/slash/commands/recall.d.ts +2 -0
- package/dist/cli.mjs +458 -450
- package/dist/config/env.d.ts +9 -1
- package/dist/config/env.episode.d.ts +8 -0
- package/dist/config/env.ui.d.ts +1 -1
- package/dist/index.mjs +383 -375
- package/dist/telegram.mjs +400 -392
- package/package.json +1 -1
|
@@ -12,5 +12,5 @@ export interface ParsedEpisodeContent {
|
|
|
12
12
|
files: string[];
|
|
13
13
|
synthesizedAt: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function parseEpisodeContent(content: string
|
|
15
|
+
export declare function parseEpisodeContent(content: string): ParsedEpisodeContent | null;
|
|
16
16
|
export declare function ingestEpisodes(memoryDir?: string, storeDir?: string): IngestResult;
|
|
@@ -2,4 +2,3 @@ export { FACET_VERSION, SessionFacetSchema, StoredSessionInputSchema, FacetOutco
|
|
|
2
2
|
export { deriveSessionFacet, type DeriveOptions } from './derive.js';
|
|
3
3
|
export { getOrDeriveFacet, loadStoredSession, listSessionIds, type FacetStoreOptions, } from './store.js';
|
|
4
4
|
export { createFacetSessionEndHook } from './session-end-hook.js';
|
|
5
|
-
export { patchFacetDecisions } from './yield-probe.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { MemoryStore } from './memory-store.js';
|
|
2
2
|
export { estimateTokens } from './estimate-tokens.js';
|
|
3
|
-
export { loadHotMemory, injectHotMemory, injectEpisodeRecall } from './memory-loader.js';
|
|
3
|
+
export { loadHotMemory, injectHotMemory, injectEpisodeRecall, scoredEpisodes } from './memory-loader.js';
|
|
4
|
+
export type { InjectEpisodeRecallOptions, ScoredEpisode } from './memory-loader.js';
|
|
4
5
|
export { injectGoalPrompt } from '../goals/inject.js';
|
|
5
6
|
export { createMemorySessionEndHook, createChildMemoryHotBlockHook } from './memory-hooks.js';
|
|
6
7
|
export { guardChildHotWrites, isForkedChildSession, CHILD_HOT_WRITE_DENIED, type ForkSignals } from './memory-hot-guard.js';
|
|
@@ -3,11 +3,20 @@ import { MemoryStore } from './memory-store.js';
|
|
|
3
3
|
import type { Fact } from './types.js';
|
|
4
4
|
export declare function loadHotMemory(): string | null;
|
|
5
5
|
export declare function injectHotMemory(config: AgentConfig): AgentConfig;
|
|
6
|
+
export declare const EPISODE_RECALL_CAP = 3;
|
|
6
7
|
export declare function getCurrentBranch(cwd?: string): string | null;
|
|
7
8
|
export declare function getRecentlyModifiedFiles(cwd?: string): string[];
|
|
8
9
|
export declare function parseEpisodeFiles(content: string): string[];
|
|
9
|
-
export declare function scoreEpisode(fact: Fact, filePaths: Set<string>, branch: string | null, highFreqFiles: Set<string
|
|
10
|
+
export declare function scoreEpisode(fact: Fact, filePaths: Set<string>, branch: string | null, highFreqFiles: Set<string>, now?: number): number;
|
|
10
11
|
export declare function buildHighFreqFiles(episodes: Fact[]): Set<string>;
|
|
11
12
|
export declare function formatEpisodeForRecall(fact: Fact): string;
|
|
13
|
+
export interface ScoredEpisode {
|
|
14
|
+
ep: Fact;
|
|
15
|
+
score: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function scoredEpisodes(memoryDir?: string, cwd?: string, store?: MemoryStore): ScoredEpisode[];
|
|
12
18
|
export declare function recallEpisodes(memoryDir?: string, cwd?: string, store?: MemoryStore): Fact[];
|
|
13
|
-
export
|
|
19
|
+
export interface InjectEpisodeRecallOptions {
|
|
20
|
+
noRecall?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function injectEpisodeRecall(config: AgentConfig, memoryDir?: string, cwd?: string, store?: MemoryStore, opts?: InjectEpisodeRecallOptions): AgentConfig;
|
|
@@ -4,8 +4,8 @@ export declare const EXTENDED_CACHE_TTL_BETA = "extended-cache-ttl-2025-04-11";
|
|
|
4
4
|
export declare const OAUTH_BETA_HEADER = "claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,extended-cache-ttl-2025-04-11";
|
|
5
5
|
export declare const EFFORT_BETA_HEADER = "effort-2025-11-24";
|
|
6
6
|
export declare const THINKING_BINDING_CONTROLS_BETA_HEADER = "thinking-binding-controls-2026-08-01";
|
|
7
|
-
export declare const CLI_USER_AGENT = "claude-cli/2.1.
|
|
8
|
-
export declare const BILLING_HEADER_TEXT = "x-anthropic-billing-header: cc_version=2.1.
|
|
7
|
+
export declare const CLI_USER_AGENT = "claude-cli/2.1.322 (external, cli)";
|
|
8
|
+
export declare const BILLING_HEADER_TEXT = "x-anthropic-billing-header: cc_version=2.1.322; cc_entrypoint=cli; cch=00000;";
|
|
9
9
|
export declare function detectAuthMode(token: string): AuthMode;
|
|
10
10
|
export declare function buildClientOptions(token: string, mode: AuthMode, baseUrl?: string, fetchImpl?: typeof fetch): ({
|
|
11
11
|
authToken: string;
|
|
@@ -26,7 +26,7 @@ export interface SystemPromptWiringResult {
|
|
|
26
26
|
goalPrompt: string;
|
|
27
27
|
manifest: string;
|
|
28
28
|
agentTypeListing: string;
|
|
29
|
-
episodeRecall: string;
|
|
29
|
+
episodeRecall: string | undefined;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export declare function buildSystemPromptWiring(args: SystemPromptWiringArgs): SystemPromptWiringResult;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare function getPauseLockPath(): string;
|
|
2
|
+
export interface PauseLockData {
|
|
3
|
+
pid: number;
|
|
4
|
+
timestamp: string;
|
|
5
|
+
}
|
|
2
6
|
export declare class PauseController {
|
|
3
7
|
private static _instance;
|
|
4
8
|
static instance(): PauseController;
|
|
@@ -18,5 +22,6 @@ export declare class PauseController {
|
|
|
18
22
|
private _syncState;
|
|
19
23
|
private _startWatching;
|
|
20
24
|
}
|
|
25
|
+
export declare function formatPauseNote(pauseMs: number): string | undefined;
|
|
21
26
|
export declare function writePauseLock(): boolean;
|
|
22
27
|
export declare function removePauseLock(): void;
|
|
@@ -36,6 +36,7 @@ export interface BuildAgentSessionDeps {
|
|
|
36
36
|
baseUrl?: string;
|
|
37
37
|
temperature?: number;
|
|
38
38
|
explicitProvider?: string;
|
|
39
|
+
noRecall?: boolean;
|
|
39
40
|
}
|
|
40
41
|
export declare function buildAgentSession(deps: BuildAgentSessionDeps, sharedMemoryStore?: import('../../../agent/memory/memory-store.js').MemoryStore): AgentSession;
|
|
41
42
|
export declare function buildSharedDeps(a: {
|
|
@@ -62,6 +63,7 @@ export declare function buildSharedDeps(a: {
|
|
|
62
63
|
maxTurns: string;
|
|
63
64
|
initialPermissionMode: PermissionMode | undefined;
|
|
64
65
|
explicitProvider?: string;
|
|
66
|
+
noRecall?: boolean;
|
|
65
67
|
}): BuildAgentSessionDeps;
|
|
66
68
|
export interface BootstrapSharedStores {
|
|
67
69
|
sharedWorkspaceStore: WorkspaceStore | undefined;
|