agent-afk 5.347.0 → 5.349.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/default-hook-registry.d.ts +1 -0
- package/dist/agent/episodes/index.d.ts +4 -0
- package/dist/agent/episodes/q-ingest.d.ts +16 -0
- package/dist/agent/episodes/q-store.d.ts +35 -0
- package/dist/agent/episodes/types.d.ts +1 -0
- package/dist/agent/facets/schema.d.ts +7 -1
- package/dist/agent/hooks/command-executor.d.ts +1 -0
- package/dist/agent/hooks/config-bridge.d.ts +1 -0
- package/dist/agent/hooks.d.ts +2 -0
- package/dist/agent/memory/index.d.ts +1 -1
- package/dist/agent/memory/memory-loader.d.ts +10 -0
- package/dist/agent/memory/memory-store.d.ts +1 -0
- package/dist/agent/memory/types.d.ts +4 -2
- package/dist/agent/providers/anthropic-direct/query/system-prompt.d.ts +1 -0
- package/dist/agent/providers/openai-compatible/system-prompt-wiring.d.ts +1 -0
- package/dist/agent/providers/shared/abortable-stream.d.ts +6 -1
- package/dist/agent/providers/shared/prompt-fragment-tokens.d.ts +2 -0
- package/dist/agent/providers/shared/stream-stall-timeout.d.ts +2 -0
- package/dist/agent/session/default-subagent-model.d.ts +2 -0
- package/dist/agent/session/pause-controller.d.ts +3 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +1 -1
- package/dist/cli/commands/interactive/bootstrap-session-builder.d.ts +1 -1
- package/dist/cli.mjs +641 -555
- package/dist/config/env.d.ts +8 -0
- package/dist/config/env.episode.d.ts +8 -0
- package/dist/index.mjs +410 -392
- package/dist/telegram.mjs +446 -428
- package/dist/web-ui-assets/assets/{angular-html-DCf9mK03.js → angular-html-Cue3fcY5.js} +1 -1
- package/dist/web-ui-assets/assets/{angular-ts-BhxpQMSX.js → angular-ts-DKn1qXmD.js} +1 -1
- package/dist/web-ui-assets/assets/{apl-A-r0G4J9.js → apl-bJCIM3BG.js} +1 -1
- package/dist/web-ui-assets/assets/{astro-D-lKZ4j-.js → astro-DVDPot7_.js} +1 -1
- package/dist/web-ui-assets/assets/{blade-DVJMqlao.js → blade-C481VcR4.js} +1 -1
- package/dist/web-ui-assets/assets/{c-ChOtJbk5.js → c-C657dphi.js} +1 -1
- package/dist/web-ui-assets/assets/{chapel-BMoxzG78.js → chapel-DhydkWhV.js} +1 -1
- package/dist/web-ui-assets/assets/{cobol-Dl2G0XNt.js → cobol-CN0NbvYf.js} +1 -1
- package/dist/web-ui-assets/assets/{coffee-C7XZmp80.js → coffee-CcHtQczi.js} +1 -1
- package/dist/web-ui-assets/assets/{cpp-MtUg-XmI.js → cpp-Cdwgcneg.js} +1 -1
- package/dist/web-ui-assets/assets/{crystal-gcgYLp6N.js → crystal-ld3BYI80.js} +1 -1
- package/dist/web-ui-assets/assets/{css-BWD8iFC4.js → css-BtU28UNc.js} +1 -1
- package/dist/web-ui-assets/assets/dist-B8SK9SlZ.js +153 -0
- package/dist/web-ui-assets/assets/{edge-A-RiO_d5.js → edge-DDYGA-dT.js} +1 -1
- package/dist/web-ui-assets/assets/{elixir-C64Dvsrv.js → elixir-BhfibBdj.js} +1 -1
- package/dist/web-ui-assets/assets/{elm-BMaGn-ln.js → elm-B89gLAIy.js} +1 -1
- package/dist/web-ui-assets/assets/{erb-DE6vUOcN.js → erb-CAi6xAGn.js} +1 -1
- package/dist/web-ui-assets/assets/{git-rebase-B6hNon5K.js → git-rebase-C5b6vMqc.js} +1 -1
- package/dist/web-ui-assets/assets/{glimmer-js-CcHgpHb0.js → glimmer-js-YPtRxnIb.js} +1 -1
- package/dist/web-ui-assets/assets/{glimmer-ts-LIqxCH7j.js → glimmer-ts-DCtQWWXi.js} +1 -1
- package/dist/web-ui-assets/assets/{glsl-BNSGTVh1.js → glsl-rXtY4Euo.js} +1 -1
- package/dist/web-ui-assets/assets/{graphql-DeC9aTP2.js → graphql-Bh4SEIi8.js} +1 -1
- package/dist/web-ui-assets/assets/{hack-9SzRPAR0.js → hack-BDC1vplC.js} +1 -1
- package/dist/web-ui-assets/assets/{haml-Dwp0BYaN.js → haml-C8G-2vr2.js} +1 -1
- package/dist/web-ui-assets/assets/{handlebars-C4ijU-gq.js → handlebars-T_y-CJhi.js} +1 -1
- package/dist/web-ui-assets/assets/{html-D33eFKwq.js → html-BgQbbWn4.js} +1 -1
- package/dist/web-ui-assets/assets/{html-derivative-BUpn0UHC.js → html-derivative-Bfku-wCE.js} +1 -1
- package/dist/web-ui-assets/assets/{http-Q8dkf-8L.js → http-DZSUhWEV.js} +1 -1
- package/dist/web-ui-assets/assets/hurl-Ddo2C23v.js +1 -0
- package/dist/web-ui-assets/assets/index--wQ7EIr8.css +2 -0
- package/dist/web-ui-assets/assets/{index-BnepvRha.js → index-D3gjYcSV.js} +4 -4
- package/dist/web-ui-assets/assets/{java-COFsz4CM.js → java-qaUNQSWq.js} +1 -1
- package/dist/web-ui-assets/assets/{javascript-CEQuyZ56.js → javascript-CgXgJZYJ.js} +1 -1
- package/dist/web-ui-assets/assets/{jinja-B4Eun3pt.js → jinja-DMyAf59q.js} +1 -1
- package/dist/web-ui-assets/assets/{jison-tLuAFFit.js → jison-DjGAXSUC.js} +1 -1
- package/dist/web-ui-assets/assets/{json-DZU3D0bq.js → json-BOJqFenZ.js} +1 -1
- package/dist/web-ui-assets/assets/{jsx-BfqE2tIX.js → jsx-CUyecxYS.js} +1 -1
- package/dist/web-ui-assets/assets/julia-D2FGGWid.js +1 -0
- package/dist/web-ui-assets/assets/{just-CVNLdJYO.js → just-B9j3w8TC.js} +1 -1
- package/dist/web-ui-assets/assets/{latex-BRnY3g6r.js → latex-BXroMFQF.js} +1 -1
- package/dist/web-ui-assets/assets/{liquid-BYen3o5e.js → liquid-BW3hFkrj.js} +1 -1
- package/dist/web-ui-assets/assets/{lua-B8U96eiE.js → lua-C0depw5M.js} +1 -1
- package/dist/web-ui-assets/assets/marko-CL9a7sak.js +1 -0
- package/dist/web-ui-assets/assets/{mdc-DNluPBCG.js → mdc-CcdVXh20.js} +1 -1
- package/dist/web-ui-assets/assets/{nginx-BEIgI1np.js → nginx-NBeVLn4y.js} +1 -1
- package/dist/web-ui-assets/assets/{nim-DjNGhN30.js → nim-C8jfgFIq.js} +1 -1
- package/dist/web-ui-assets/assets/{org-BrubVTtT.js → org-BHlqia3M.js} +1 -1
- package/dist/web-ui-assets/assets/{perl-jjSNef0Y.js → perl-DupPMJAn.js} +1 -1
- package/dist/web-ui-assets/assets/{php-Dm0txZK9.js → php-DZOCYIpE.js} +1 -1
- package/dist/web-ui-assets/assets/{pug-Ctu1Bor1.js → pug-DwzFqR3a.js} +1 -1
- package/dist/web-ui-assets/assets/{qml-B7bzvrzA.js → qml-XuBwk-66.js} +1 -1
- package/dist/web-ui-assets/assets/{r-CWCDQwva.js → r-CwJLUBO6.js} +1 -1
- package/dist/web-ui-assets/assets/{razor-DR2Qrcao.js → razor-C21X8mtz.js} +1 -1
- package/dist/web-ui-assets/assets/{regexp-CAziu7CR.js → regexp-BInITdI8.js} +1 -1
- package/dist/web-ui-assets/assets/rst-It5r697l.js +1 -0
- package/dist/web-ui-assets/assets/{ruby-C4m8FOkc.js → ruby-qIkDl_UJ.js} +1 -1
- package/dist/web-ui-assets/assets/{sas-46U4dCZ-.js → sas-D5-h-HWT.js} +1 -1
- package/dist/web-ui-assets/assets/{scss-Dyk-lzNF.js → scss-B4WEcrG1.js} +1 -1
- package/dist/web-ui-assets/assets/{shellscript-BWzwU0qn.js → shellscript-UtYjzR1O.js} +1 -1
- package/dist/web-ui-assets/assets/{shellsession-D4AFj3By.js → shellsession-DzXYiWKV.js} +1 -1
- package/dist/web-ui-assets/assets/{soy-CpaN6S68.js → soy-Y_LnVxlz.js} +1 -1
- package/dist/web-ui-assets/assets/{sql-DCLq_fXo.js → sql-B6JRSIdL.js} +1 -1
- package/dist/web-ui-assets/assets/{stata-FwHLn1R1.js → stata-D1x1USFH.js} +1 -1
- package/dist/web-ui-assets/assets/{surrealql-BeWhSd2D.js → surrealql-Bi41so_L.js} +1 -1
- package/dist/web-ui-assets/assets/{svelte-CnZf7drh.js → svelte-BKXFkVHh.js} +1 -1
- package/dist/web-ui-assets/assets/{templ-Dh4CA0s0.js → templ-Bhe4sZxm.js} +1 -1
- package/dist/web-ui-assets/assets/{tex-RGYg1I3G.js → tex-DQ4OCcw1.js} +1 -1
- package/dist/web-ui-assets/assets/{ts-tags-BZDbq4dl.js → ts-tags-CCoZKTtT.js} +1 -1
- package/dist/web-ui-assets/assets/{tsx-BZgu6mNc.js → tsx-CDl6H7sq.js} +1 -1
- package/dist/web-ui-assets/assets/{twig-Eyj6jtDI.js → twig-CjEhvzsa.js} +1 -1
- package/dist/web-ui-assets/assets/{typescript-C6GNGFv3.js → typescript-BOnDCYoY.js} +1 -1
- package/dist/web-ui-assets/assets/typst-C38lcTp-.js +1 -0
- package/dist/web-ui-assets/assets/{vue-html-CnkJqb-F.js → vue-html-Cu55Pom7.js} +1 -1
- package/dist/web-ui-assets/assets/{vue-vine-CHwvpYeL.js → vue-vine-CoXlcKCM.js} +1 -1
- package/dist/web-ui-assets/assets/{vue-BMgvGk9o.js → vue-wYPD9phG.js} +1 -1
- package/dist/web-ui-assets/assets/wasm-4KdTHw0F.js +1 -0
- package/dist/web-ui-assets/assets/{xml-Bp_7e8sG.js → xml-BYZ5aK1q.js} +1 -1
- package/dist/web-ui-assets/assets/{xsl-Ccf44tZE.js → xsl-vWfo0Nfc.js} +1 -1
- package/dist/web-ui-assets/assets/{yaml-B9d3ST_l.js → yaml-BATQnkEi.js} +1 -1
- package/dist/web-ui-assets/index.html +2 -2
- package/package.json +2 -2
- package/dist/web-ui-assets/assets/dist-Dfom6M-h.js +0 -153
- package/dist/web-ui-assets/assets/hurl-C_CiLZEm.js +0 -1
- package/dist/web-ui-assets/assets/index-d_FWGInx.css +0 -2
- package/dist/web-ui-assets/assets/julia-Bg58X7eO.js +0 -1
- package/dist/web-ui-assets/assets/marko-B1fE5lrh.js +0 -1
- package/dist/web-ui-assets/assets/rst-NN_UHiab.js +0 -1
- package/dist/web-ui-assets/assets/typst-BJ1WFNU8.js +0 -1
- package/dist/web-ui-assets/assets/wasm-BnjxR4X6.js +0 -1
|
@@ -22,6 +22,7 @@ type AgentOptions = {
|
|
|
22
22
|
traceWriter?: TraceSink;
|
|
23
23
|
afkPromptForApproval?: boolean;
|
|
24
24
|
getTranscriptPath?: () => string | null;
|
|
25
|
+
getModel?: () => string | undefined;
|
|
25
26
|
daemonTaskId?: string;
|
|
26
27
|
};
|
|
27
28
|
export declare function createDefaultHookRegistry(onSubagentComplete?: (info: SubagentCompleteInfo) => void, surface?: string, memoryStore?: MemoryStore, getPermissionMode?: () => PermissionMode, hookConfig?: LoadedHooksConfig, agentOptions?: AgentOptions, getCwd?: () => string | undefined): DefaultHookRegistryResult;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export type { EpisodeRecord } from './types.js';
|
|
2
2
|
export { buildEpisodeFromFacet } from './facet-bridge.js';
|
|
3
3
|
export { writeEpisode, formatEpisodeContent, sanitizeNarrative } from './writer.js';
|
|
4
|
+
export { ingestEpisodes } from './q-ingest.js';
|
|
5
|
+
export type { IngestResult, ParsedEpisodeContent } from './q-ingest.js';
|
|
6
|
+
export { QEpisodesStore, Q_EPISODES_SCHEMA_VERSION } from './q-store.js';
|
|
7
|
+
export type { QEpisodeRow, QEpisodeInput } from './q-store.js';
|
|
4
8
|
import type { EpisodeRecord } from './types.js';
|
|
5
9
|
export declare function synthesizeAndWriteEpisode(sessionId: string): Promise<EpisodeRecord | null>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IngestResult {
|
|
2
|
+
found: number;
|
|
3
|
+
upserted: number;
|
|
4
|
+
watermark: string | null;
|
|
5
|
+
totalStored: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ParsedEpisodeContent {
|
|
8
|
+
sessionId: string;
|
|
9
|
+
goal: string;
|
|
10
|
+
narrative: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
files: string[];
|
|
13
|
+
synthesizedAt: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function parseEpisodeContent(content: string, fallbackSessionId: string | null): ParsedEpisodeContent | null;
|
|
16
|
+
export declare function ingestEpisodes(memoryDir?: string, storeDir?: string): IngestResult;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const Q_EPISODES_SCHEMA_VERSION = 1;
|
|
2
|
+
export interface QEpisodeRow {
|
|
3
|
+
session_id: string;
|
|
4
|
+
goal: string;
|
|
5
|
+
narrative: string;
|
|
6
|
+
tags_json: string;
|
|
7
|
+
files_json: string;
|
|
8
|
+
synthesized_at: string;
|
|
9
|
+
ingested_at: string;
|
|
10
|
+
}
|
|
11
|
+
export interface QEpisodeInput {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
goal: string;
|
|
14
|
+
narrative: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
files: string[];
|
|
17
|
+
synthesizedAt: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class QEpisodesStore {
|
|
20
|
+
private readonly dir;
|
|
21
|
+
private readonly db;
|
|
22
|
+
constructor(storeDir?: string);
|
|
23
|
+
getWatermark(): string | null;
|
|
24
|
+
setWatermark(ts: string): void;
|
|
25
|
+
upsertEpisode(input: QEpisodeInput): void;
|
|
26
|
+
getEpisode(sessionId: string): QEpisodeRow | null;
|
|
27
|
+
listEpisodes(opts?: {
|
|
28
|
+
domain?: string;
|
|
29
|
+
since?: string;
|
|
30
|
+
limit?: number;
|
|
31
|
+
}): QEpisodeRow[];
|
|
32
|
+
searchEpisodes(query: string, limit?: number): QEpisodeRow[];
|
|
33
|
+
count(): number;
|
|
34
|
+
close(): void;
|
|
35
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const FACET_VERSION =
|
|
2
|
+
export declare const FACET_VERSION = 14;
|
|
3
3
|
export declare const ToolEventInputSchema: z.ZodObject<{
|
|
4
4
|
toolName: z.ZodString;
|
|
5
5
|
toolUseId: z.ZodOptional<z.ZodString>;
|
|
@@ -153,6 +153,12 @@ export declare const SessionFacetSchema: z.ZodObject<{
|
|
|
153
153
|
web: "web";
|
|
154
154
|
unknown: "unknown";
|
|
155
155
|
}>;
|
|
156
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
157
|
+
cli: "cli";
|
|
158
|
+
telegram: "telegram";
|
|
159
|
+
daemon: "daemon";
|
|
160
|
+
web: "web";
|
|
161
|
+
}>>;
|
|
156
162
|
model: z.ZodString;
|
|
157
163
|
derived_at: z.ZodString;
|
|
158
164
|
derived_from: z.ZodLiteral<"afk-session">;
|
|
@@ -4,5 +4,6 @@ export interface AgentConfigForBridge {
|
|
|
4
4
|
cwd?: string;
|
|
5
5
|
sessionId?: string;
|
|
6
6
|
getTranscriptPath?: () => string | null;
|
|
7
|
+
getModel?: () => string | undefined;
|
|
7
8
|
}
|
|
8
9
|
export declare function loadAndRegisterConfigHooks(registry: HookRegistry, hookConfig: LoadedHooksConfig, agentConfig: AgentConfigForBridge): void;
|
package/dist/agent/hooks.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface SessionStartContext {
|
|
|
16
16
|
event: 'SessionStart';
|
|
17
17
|
sessionId?: string;
|
|
18
18
|
parentSessionId?: string;
|
|
19
|
+
model?: string;
|
|
19
20
|
}
|
|
20
21
|
export interface SessionEndContext {
|
|
21
22
|
event: 'SessionEnd';
|
|
@@ -101,6 +102,7 @@ export interface UserPromptSubmitContext {
|
|
|
101
102
|
event: 'UserPromptSubmit';
|
|
102
103
|
prompt: string;
|
|
103
104
|
sessionId?: string;
|
|
105
|
+
model?: string;
|
|
104
106
|
}
|
|
105
107
|
export type HookContext = SessionStartContext | SessionEndContext | SubagentStartContext | SubagentStopContext | PreToolUseContext | PostToolUseContext | PreCompactContext | PostToolUseFailureContext | StopContext | UserPromptSubmitContext;
|
|
106
108
|
export type HookHandler = (context: HookContext, signal?: AbortSignal) => HookDecision | Promise<HookDecision>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MemoryStore } from './memory-store.js';
|
|
2
2
|
export { estimateTokens } from './estimate-tokens.js';
|
|
3
|
-
export { loadHotMemory, injectHotMemory } from './memory-loader.js';
|
|
3
|
+
export { loadHotMemory, injectHotMemory, injectEpisodeRecall } from './memory-loader.js';
|
|
4
4
|
export { injectGoalPrompt } from '../goals/inject.js';
|
|
5
5
|
export { createMemorySessionEndHook, createChildMemoryHotBlockHook } from './memory-hooks.js';
|
|
6
6
|
export { guardChildHotWrites, isForkedChildSession, CHILD_HOT_WRITE_DENIED, type ForkSignals } from './memory-hot-guard.js';
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import type { AgentConfig } from '../types/config-types.js';
|
|
2
|
+
import { MemoryStore } from './memory-store.js';
|
|
3
|
+
import type { Fact } from './types.js';
|
|
2
4
|
export declare function loadHotMemory(): string | null;
|
|
3
5
|
export declare function injectHotMemory(config: AgentConfig): AgentConfig;
|
|
6
|
+
export declare function getCurrentBranch(cwd?: string): string | null;
|
|
7
|
+
export declare function getRecentlyModifiedFiles(cwd?: string): string[];
|
|
8
|
+
export declare function parseEpisodeFiles(content: string): string[];
|
|
9
|
+
export declare function scoreEpisode(fact: Fact, filePaths: Set<string>, branch: string | null, highFreqFiles: Set<string>): number;
|
|
10
|
+
export declare function buildHighFreqFiles(episodes: Fact[]): Set<string>;
|
|
11
|
+
export declare function formatEpisodeForRecall(fact: Fact): string;
|
|
12
|
+
export declare function recallEpisodes(memoryDir?: string, cwd?: string, store?: MemoryStore): Fact[];
|
|
13
|
+
export declare function injectEpisodeRecall(config: AgentConfig, memoryDir?: string, cwd?: string, store?: MemoryStore): AgentConfig;
|
|
@@ -23,6 +23,7 @@ export declare class MemoryStore {
|
|
|
23
23
|
getFact(factId: number): Fact | null;
|
|
24
24
|
getUnaccessed(minAgeDays?: number): Fact[];
|
|
25
25
|
getAccessStats(): AccessStats;
|
|
26
|
+
getEpisodes(limit?: number): Fact[];
|
|
26
27
|
searchFacts(query: string, opts?: SearchOpts): Fact[];
|
|
27
28
|
startSession(session: NewSession): void;
|
|
28
29
|
endSession(sessionId: string, summary: string, outcome: SessionOutcome, tokenCount?: number, costUsd?: number): void;
|
|
@@ -10,7 +10,7 @@ export interface Fact {
|
|
|
10
10
|
created_at: string;
|
|
11
11
|
category: FactCategory;
|
|
12
12
|
content: string;
|
|
13
|
-
source_surface: string;
|
|
13
|
+
source_surface: SourceSurface | (string & {});
|
|
14
14
|
superseded_by: number | null;
|
|
15
15
|
confidence: number;
|
|
16
16
|
access_count: number;
|
|
@@ -21,7 +21,7 @@ export interface NewFact {
|
|
|
21
21
|
session_id?: string;
|
|
22
22
|
category: FactCategory;
|
|
23
23
|
content: string;
|
|
24
|
-
source_surface: string;
|
|
24
|
+
source_surface: SourceSurface | (string & {});
|
|
25
25
|
evidence?: string | null;
|
|
26
26
|
}
|
|
27
27
|
export interface SessionRecord {
|
|
@@ -48,10 +48,12 @@ export interface Procedure {
|
|
|
48
48
|
source_session: string | null;
|
|
49
49
|
access_count: number;
|
|
50
50
|
}
|
|
51
|
+
export type SourceSurface = 'cli' | 'telegram' | 'daemon' | 'afk' | 'episode-synthesis' | 'whatif' | 'test';
|
|
51
52
|
export interface SearchOpts {
|
|
52
53
|
category?: FactCategory;
|
|
53
54
|
since?: string;
|
|
54
55
|
limit?: number;
|
|
56
|
+
source_surface?: SourceSurface;
|
|
55
57
|
}
|
|
56
58
|
export interface MemorySearchResult {
|
|
57
59
|
type: 'fact' | 'procedure';
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
interface PauseSuspendable {
|
|
2
|
+
suspend(): void;
|
|
3
|
+
resumeTimer(): void;
|
|
4
|
+
}
|
|
5
|
+
export declare function abortableStream<T>(source: AsyncIterable<T>, signal: AbortSignal, stallHandle?: PauseSuspendable): AsyncGenerator<T>;
|
|
6
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export interface PromptFragments {
|
|
|
9
9
|
environment?: string;
|
|
10
10
|
manifest?: string;
|
|
11
11
|
agentTypeListing?: string;
|
|
12
|
+
episodeRecall?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare function logFragmentTokens(traceWriter: TraceSink | undefined, fragments: PromptFragments): void;
|
|
14
15
|
export declare function logStablePartsTokens(traceWriter: TraceSink | undefined, parts: {
|
|
@@ -20,4 +21,5 @@ export declare function logStablePartsTokens(traceWriter: TraceSink | undefined,
|
|
|
20
21
|
goalPrompt?: string;
|
|
21
22
|
manifest: string;
|
|
22
23
|
agentTypeListing?: string;
|
|
24
|
+
episodeRecall?: string;
|
|
23
25
|
}): void;
|
|
@@ -7,6 +7,8 @@ export interface StreamStallHandle {
|
|
|
7
7
|
readonly signal: AbortSignal;
|
|
8
8
|
timedOut(): boolean;
|
|
9
9
|
progress(): void;
|
|
10
|
+
suspend(): void;
|
|
11
|
+
resumeTimer(): void;
|
|
10
12
|
dispose(): void;
|
|
11
13
|
}
|
|
12
14
|
export declare function armStreamStallWatchdog(baseSignal: AbortSignal, timeoutMs: number, onFire?: (info: {
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import type { AgentModelInput } from '../types.js';
|
|
2
|
+
import { type ModelSlots } from './model-slots.js';
|
|
2
3
|
export declare function getDefaultSubagentModel(parentModel?: AgentModelInput): AgentModelInput;
|
|
4
|
+
export declare function describeDefaultSubagentModelSource(defaultModel: AgentModelInput, bindings: ModelSlots): string;
|
|
@@ -6,9 +6,12 @@ export declare class PauseController {
|
|
|
6
6
|
private _paused;
|
|
7
7
|
private _pollInterval;
|
|
8
8
|
private _watchPath;
|
|
9
|
+
private _pauseStartedAt;
|
|
10
|
+
private _lastPauseDurationMs;
|
|
9
11
|
private constructor();
|
|
10
12
|
dispose(): void;
|
|
11
13
|
isPaused(): boolean;
|
|
14
|
+
consumeLastPauseDuration(): number | undefined;
|
|
12
15
|
check(signal?: AbortSignal): Promise<void>;
|
|
13
16
|
private _handlePause;
|
|
14
17
|
private _handleResume;
|
|
@@ -56,6 +56,7 @@ export interface AgentConfig {
|
|
|
56
56
|
};
|
|
57
57
|
systemPromptSource?: string;
|
|
58
58
|
hotMemory?: string;
|
|
59
|
+
episodeRecall?: string;
|
|
59
60
|
goalPrompt?: string;
|
|
60
61
|
mcpServers?: Record<string, import('../mcp/types.js').McpServerConfig>;
|
|
61
62
|
mcpManager?: import('../mcp/index.js').McpManager;
|
|
@@ -38,4 +38,4 @@ export declare function registerOverlaySlots(overlayComposer: OverlayComposer, c
|
|
|
38
38
|
export declare function formatInterruptAffordance(interrupting: boolean): string;
|
|
39
39
|
export declare function subscribeToResize(overlayComposer: OverlayComposer, disposed: boolean): () => void;
|
|
40
40
|
export declare function checkPauseAnnotations(ctx: LifecycleContext): boolean;
|
|
41
|
-
export declare function checkThinkingAnnotation(ctx: LifecycleContext,
|
|
41
|
+
export declare function checkThinkingAnnotation(ctx: LifecycleContext, now: number): boolean;
|
|
@@ -37,7 +37,7 @@ export interface BuildAgentSessionDeps {
|
|
|
37
37
|
temperature?: number;
|
|
38
38
|
explicitProvider?: string;
|
|
39
39
|
}
|
|
40
|
-
export declare function buildAgentSession(deps: BuildAgentSessionDeps): AgentSession;
|
|
40
|
+
export declare function buildAgentSession(deps: BuildAgentSessionDeps, sharedMemoryStore?: import('../../../agent/memory/memory-store.js').MemoryStore): AgentSession;
|
|
41
41
|
export declare function buildSharedDeps(a: {
|
|
42
42
|
sessionModel: string;
|
|
43
43
|
resumeConfig: Partial<AgentConfig>;
|