agent-afk 5.274.0 → 5.274.2

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/README.md CHANGED
@@ -30,7 +30,7 @@ afk chat "hello" # first real conversation
30
30
 
31
31
  That's it. You're in.
32
32
 
33
- **Using pnpm?** `pnpm add -g agent-afk` works, but pnpm 10 blocks build scripts by default and skips `postinstall` (with an easy-to-miss warning — see [#2199](https://github.com/griffinwork40/agent-afk/issues/2199)). Run `pnpm approve-builds -g` after install to approve the hook, or use `npm install -g agent-afk` instead. If an `afk daemon` is already running and pnpm skipped the hook, restart it manually with `afk service restart daemon` — on macOS the hook restarts the daemon automatically when it runs, but on Linux you must always run this command after an upgrade even when the hook ran.
33
+ **Using pnpm?** `pnpm add -g agent-afk` works, but pnpm 10 blocks build scripts by default and skips `postinstall` (with an easy-to-miss warning — see [#2199](https://github.com/griffinwork40/agent-afk/issues/2199)). Run `pnpm approve-builds -g` after install to approve the hook, or use `npm install -g agent-afk` instead. If an `afk daemon` is already running and pnpm skipped the hook, restart it manually with `afk service restart daemon` — on macOS the hook restarts the daemon automatically when it runs, but on Linux you must always run this command after an upgrade even when the hook ran. If you have a manually-started Telegram bot, also run `afk telegram restart`.
34
34
 
35
35
  **Try without installing:** `npx agent-afk chat "hello"` runs a one-shot turn with zero global install.
36
36
 
@@ -0,0 +1,12 @@
1
+ import type OpenAI from 'openai';
2
+ import { type SummarizeFn } from '../../shared/compact-summarizer.js';
3
+ import type { WireMode } from '../responses-config.js';
4
+ export interface BuildCompactSummarizeParams {
5
+ wireMode: WireMode;
6
+ client: OpenAI;
7
+ compactModel: string;
8
+ compactModelRaw: string | undefined;
9
+ summarizeViaResponses: (transcript: string, signal: AbortSignal, model: string) => Promise<string>;
10
+ sessionKey: object;
11
+ }
12
+ export declare function buildCompactSummarize(params: BuildCompactSummarizeParams): SummarizeFn;