agent-afk 5.312.0 → 5.312.1

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.
@@ -27,5 +27,9 @@ export declare function readHandoff(taskId: string, handoffsDir?: string): Promi
27
27
  export declare function deleteHandoff(taskId: string, handoffsDir?: string): Promise<void>;
28
28
  export declare function listPendingHandoffs(handoffsDir?: string): Promise<HandoffRecord[]>;
29
29
  export declare function withHandoffLock<T>(taskId: string, handoffsDir: string, cb: () => Promise<T>): Promise<T | null>;
30
- export declare function updateHandoffAnswer(taskId: string, answer: unknown, source: string, handoffsDir?: string, responderIdentity?: string): Promise<UpdateHandoffResult>;
30
+ export interface UpdateHandoffAnswerOpts {
31
+ handoffsDir?: string;
32
+ responderIdentity?: string;
33
+ }
34
+ export declare function updateHandoffAnswer(taskId: string, answer: unknown, source: string, opts?: UpdateHandoffAnswerOpts): Promise<UpdateHandoffResult>;
31
35
  export {};
@@ -0,0 +1,4 @@
1
+ import type { MessageChunk } from '../../agent/types.js';
2
+ import type { SourceState } from './stream-renderer-source.js';
3
+ import type { OrchestratorCtx } from './stream-renderer-orchestrator.js';
4
+ export declare function handleOrchestratorChunk(chunk: MessageChunk, source: SourceState, ctx: OrchestratorCtx): void;
@@ -1,6 +1,10 @@
1
+ import type { MessageChunk } from '../../agent/types.js';
1
2
  import type { SourceState } from './stream-renderer-source.js';
2
3
  import type { SubagentCtx } from './stream-renderer-subagent.js';
3
4
  export declare function extractLatestThinkingClause(buffer: string, maxChars: number): string;
4
5
  export declare function emitSubagentTextLines(text: string, ctx: SubagentCtx): void;
5
6
  export declare function formatSubagentTextLines(text: string): string[];
6
7
  export declare function synthesizeAgentEntry(sourceId: string, source: SourceState, ctx: SubagentCtx, agentContext?: string): void;
8
+ export declare const _thinkingTailLastUpdate: Map<string, number>;
9
+ export declare const _overlayLastUpdate: Map<string, number>;
10
+ export declare function handleSubagentChunk(chunk: MessageChunk, sourceId: string, source: SourceState, parentId: string, ctx: SubagentCtx): void;
@@ -1,3 +1,4 @@
1
1
  import { type SkillInvocation } from '../preflight/index.js';
2
2
  import type { SlashContext } from '../types.js';
3
+ export declare function bareSkillName(name: string): string;
3
4
  export declare function invokeSkillPreflight(skillName: string, rawArgs: string, source: SkillInvocation['source'], ctx: SlashContext): Promise<string | undefined>;