agent-afk 5.306.1 → 5.306.3

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.
@@ -10,4 +10,8 @@ export interface AtomicWriteOptions {
10
10
  export declare function renameWithRetrySync(tmp: string, dest: string, maxRetries?: number, _platform?: string, _renameFn?: (from: string, to: string) => void): void;
11
11
  export declare function renameWithRetry(tmp: string, dest: string, maxRetries?: number, _platform?: string, _renameFn?: (from: string, to: string) => Promise<void>, _sleepFn?: (ms: number) => Promise<void>): Promise<void>;
12
12
  export declare function atomicWriteFile(dest: string, content: string | Buffer, opts?: AtomicWriteOptions | number): void;
13
- export declare function atomicWriteFileAsync(dest: string, content: string | Buffer, opts?: AtomicWriteOptions, _renameFn?: (from: string, to: string) => Promise<void>, _platform?: string): Promise<boolean>;
13
+ export interface _AtomicWriteAsyncTestInternals {
14
+ renameFn?: (from: string, to: string) => Promise<void>;
15
+ platform?: string;
16
+ }
17
+ export declare function atomicWriteFileAsync(dest: string, content: string | Buffer, opts?: AtomicWriteOptions, _testInternals?: _AtomicWriteAsyncTestInternals): Promise<boolean>;
@@ -1,7 +1,6 @@
1
1
  import { spawn } from 'node:child_process';
2
- interface KillProcessGroupDeps {
2
+ export interface KillProcessGroupDeps {
3
3
  platform?: NodeJS.Platform;
4
4
  spawn?: typeof spawn;
5
5
  }
6
6
  export declare function killProcessGroup(pid: number, signal?: NodeJS.Signals, deps?: KillProcessGroupDeps): void;
7
- export {};
@@ -0,0 +1 @@
1
+ export { sleep } from '../agent/providers/shared/sleep-with-abort.js';
@@ -0,0 +1 @@
1
+ export declare function truncateTelegramLabel(label: string, maxBytes?: number): string;
@@ -0,0 +1 @@
1
+ export declare function truncate(s: string, n: number): string;
@@ -0,0 +1,3 @@
1
+ export declare function isPlainObject(v: unknown): v is Record<string, unknown>;
2
+ export declare function isRecord(v: unknown): v is Record<string, unknown>;
3
+ export declare function assertNever(x: never): never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.306.1",
3
+ "version": "5.306.3",
4
4
  "description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",