agent-afk 5.22.0 → 5.23.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.
@@ -1,8 +1,14 @@
1
1
  import type { GrantManager } from '../../../cli/slash/commands/allow-dir.js';
2
2
  import type { HookContext, HookDecision } from '../../hooks.js';
3
+ export declare const SENSITIVE_PATH_SIGNAL: RegExp;
3
4
  export interface BashRestrictionHookOptions {
4
5
  getGrantManager: () => GrantManager | undefined;
5
6
  disableInterpreterGuard?: boolean;
6
7
  forceInterpreterGuard?: boolean;
7
8
  }
8
9
  export declare function createBashRestrictionHook(opts: BashRestrictionHookOptions): (context: HookContext) => HookDecision;
10
+ export declare function deriveRestrictedSubstrings(grants: {
11
+ resolveBase: string | undefined;
12
+ readRoots: string[];
13
+ writeRoots: string[];
14
+ }): string[];
@@ -17,7 +17,7 @@ export declare function makeOrchestratorCtx(args: {
17
17
  overlayComposer: OverlayComposer | null;
18
18
  toolLane: ToolLane;
19
19
  thinkingLane: ThinkingLane;
20
- thinkingMode: 'off' | 'summary' | 'live';
20
+ thinkingMode: 'off' | 'summary' | 'live' | 'digest';
21
21
  streamingMarkdown: {
22
22
  current: StreamingMarkdownRenderer | null;
23
23
  };
@@ -32,7 +32,7 @@ export declare function makeSubagentCtx(args: {
32
32
  toolLane: ToolLane;
33
33
  out: Writer;
34
34
  streamingMarkdown: Map<string, StreamingMarkdownRenderer>;
35
- thinkingMode: 'off' | 'summary' | 'live';
35
+ thinkingMode: 'off' | 'summary' | 'live' | 'digest';
36
36
  orchestratorCtx: OrchestratorCtx;
37
37
  }): SubagentCtx;
38
38
  export declare function resolveParentSyntheticId(args: {
@@ -17,7 +17,7 @@ export interface LifecycleContext {
17
17
  current: StreamingMarkdownRenderer | null;
18
18
  };
19
19
  lastProgressByTask: Map<string, ProgressEvent>;
20
- thinkingMode: 'off' | 'summary' | 'live';
20
+ thinkingMode: 'off' | 'summary' | 'live' | 'digest';
21
21
  out: Writer;
22
22
  isTTY: boolean;
23
23
  sources: Map<string, SourceState>;
@@ -16,7 +16,7 @@ export interface OrchestratorCtx {
16
16
  overlayComposer?: OverlayComposer | null;
17
17
  toolLane: ToolLane;
18
18
  thinkingLane: ThinkingLane;
19
- thinkingMode?: 'off' | 'summary' | 'live';
19
+ thinkingMode?: 'off' | 'summary' | 'live' | 'digest';
20
20
  streamingMarkdown: {
21
21
  current: StreamingMarkdownRenderer | null;
22
22
  };
@@ -13,7 +13,7 @@ export interface SubagentCtx {
13
13
  toolLane: ToolLane;
14
14
  out: Writer;
15
15
  streamingMarkdown: Map<string, StreamingMarkdownRenderer>;
16
- thinkingMode: 'off' | 'summary' | 'live';
16
+ thinkingMode: 'off' | 'summary' | 'live' | 'digest';
17
17
  orchestratorCtx?: OrchestratorCtx;
18
18
  }
19
19
  export declare function handleSubagentEvent(event: OutputEvent, sourceId: string, source: SourceState, ctx: SubagentCtx): void;
@@ -6,7 +6,7 @@ import type { IHistoryRing } from '../input/types.js';
6
6
  import type { AutocompleteState } from '../input/autocomplete-state.js';
7
7
  export interface StreamRendererOptions {
8
8
  out: Writer;
9
- thinkingMode?: 'off' | 'summary' | 'live';
9
+ thinkingMode?: 'off' | 'summary' | 'live' | 'digest';
10
10
  verbose?: boolean;
11
11
  onCancel?: () => void;
12
12
  onBackground?: () => void;
@@ -13,7 +13,7 @@ export type ResumeSwapResult = {
13
13
  ok: false;
14
14
  reason: string;
15
15
  };
16
- export type ThinkingUiMode = 'summary' | 'live' | 'off';
16
+ export type ThinkingUiMode = 'summary' | 'live' | 'digest' | 'off';
17
17
  export interface ToolEvent {
18
18
  toolName: string;
19
19
  toolUseId: string;