agent-afk 5.299.5 → 5.299.7

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.
@@ -0,0 +1,2 @@
1
+ export declare function schtasks(args: string[]): Buffer;
2
+ export declare function errorDetail(err: unknown): string;
@@ -4,4 +4,5 @@ export interface SchtasksQueryResult {
4
4
  lastExitStatus?: number;
5
5
  }
6
6
  export declare function parseSchtasksQuery(output: string): SchtasksQueryResult;
7
+ export declare function parseCsvLine(line: string): string[];
7
8
  export declare function windowsStatus(name: ServiceName): ServiceStatus;
@@ -3,7 +3,7 @@ import { loadFarm, recordHumanDecision, recordPrCreated, recordRespawn } from '.
3
3
  import { checkGhReady, type CreatePrOpts, type ExecFn, type GhReadiness } from '../../agent/gh.js';
4
4
  import { writeFarmDecisionFact } from '../../skills/score/memory-write.js';
5
5
  import { resolveWinnerBranch } from '../../skills/score/winner.js';
6
- type LogFn = (...args: unknown[]) => void;
6
+ import { type LogFn } from './farm-callbacks.helpers.js';
7
7
  export interface FarmCallbackDeps {
8
8
  loadFarm?: typeof loadFarm;
9
9
  recordHumanDecision?: typeof recordHumanDecision;
@@ -23,4 +23,3 @@ export interface FarmCallbackDeps {
23
23
  recordPrCreated?: typeof recordPrCreated;
24
24
  }
25
25
  export declare function handleFarmCallback(ctx: Context, deps?: FarmCallbackDeps): Promise<void>;
26
- export {};
@@ -0,0 +1,3 @@
1
+ import type { Context } from 'telegraf';
2
+ export type LogFn = (...args: unknown[]) => void;
3
+ export declare function safeAnswer(ctx: Context, text: string, log: LogFn): Promise<void>;
@@ -2,6 +2,6 @@ import type { Context } from 'telegraf';
2
2
  import { type CreatePrOpts, type ExecFn } from '../../agent/gh.js';
3
3
  import { type FarmManifest } from '../../agent/worktree.js';
4
4
  import type { FarmCallbackDeps } from './farm-callbacks.js';
5
- type LogFn = (...args: unknown[]) => void;
5
+ import { type LogFn } from './farm-callbacks.helpers.js';
6
6
  export declare function handleOpenPr(ctx: Context, manifest: FarmManifest, deps: FarmCallbackDeps, log: LogFn): Promise<void>;
7
7
  export type { CreatePrOpts, ExecFn };
@@ -1,6 +1,5 @@
1
1
  import type { Context } from 'telegraf';
2
2
  import { type FarmManifest } from '../../agent/worktree.js';
3
3
  import type { FarmCallbackDeps } from './farm-callbacks.js';
4
- type LogFn = (...args: unknown[]) => void;
4
+ import { type LogFn } from './farm-callbacks.helpers.js';
5
5
  export declare function handleRespawn(ctx: Context, manifest: FarmManifest, deps: FarmCallbackDeps, log: LogFn): Promise<void>;
6
- export {};