agent-afk 5.302.8 → 5.302.9

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,26 +1,10 @@
1
- import { type StoredSession } from '../../session-store.js';
2
1
  import type { InteractiveCtx } from './shared.js';
3
- import type { TurnState } from './repl-loop.js';
4
2
  import type { WorktreeHandle } from './worktree.js';
5
- export interface SignalHandlerDeps {
6
- ctx: InteractiveCtx;
7
- turnState: TurnState;
8
- pickerAbort: AbortController;
9
- exitReasonRef: ExitReasonRef;
10
- }
11
- export interface SignalHandlerDisposers {
12
- removeListeners: () => void;
13
- }
14
- export declare function installSignalHandlers(deps: SignalHandlerDeps): {
15
- handleSigint: () => void;
16
- removeListeners: () => void;
17
- };
3
+ import type { ExitReasonRef } from './interactive.signal-handlers.js';
4
+ export { installSignalHandlers, type ExitReasonRef, type SignalHandlerDeps, type SignalHandlerDisposers, } from './interactive.signal-handlers.js';
18
5
  export declare function printExitSummary(ctx: InteractiveCtx, worktreeHandle: WorktreeHandle | undefined, saveCurrentSession: () => string | undefined): void;
19
6
  export declare function snapshotGitStateForCancelAll(cwd: string): Promise<void>;
20
7
  export declare function cancelSessionBackgroundWork(ctx: InteractiveCtx): Promise<void>;
21
- export type ExitReasonRef = {
22
- current: StoredSession['exitReason'];
23
- };
24
8
  export declare function makeSessionSaver(ctx: InteractiveCtx, exitReasonRef?: ExitReasonRef): {
25
9
  saveCurrentSession: () => string | undefined;
26
10
  isSaved: () => boolean;
@@ -0,0 +1,21 @@
1
+ import type { StoredSession } from '../../session-store.js';
2
+ import type { InteractiveCtx } from './shared.js';
3
+ import type { TurnState } from './repl-loop.js';
4
+ export type ExitReasonRef = {
5
+ current: StoredSession['exitReason'];
6
+ };
7
+ export interface SignalHandlerDeps {
8
+ ctx: InteractiveCtx;
9
+ turnState: TurnState;
10
+ pickerAbort: AbortController;
11
+ exitReasonRef: ExitReasonRef;
12
+ }
13
+ export interface SignalHandlerDisposers {
14
+ removeListeners: () => void;
15
+ }
16
+ export declare function makeSigintHandler(deps: SignalHandlerDeps): () => void;
17
+ export declare function makeTermHupHandler(deps: SignalHandlerDeps, signal: 'sigterm' | 'sighup'): () => void;
18
+ export declare function installSignalHandlers(deps: SignalHandlerDeps): {
19
+ handleSigint: () => void;
20
+ removeListeners: () => void;
21
+ };