agent-afk 5.313.10 → 5.313.12

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
@@ -61,6 +61,8 @@ Codex imports use `CODEX_HOME` when set (otherwise `~/.codex`) and also discover
61
61
 
62
62
  ## What it has done
63
63
 
64
+ **Constructed SW(29,16), the last open symmetric weighing matrix case for weight 16 listed by Rosin (arXiv:2505.23881).** Given a research campaign goal, agent-afk agents picked the target, designed a prescribed-automorphism SAT search, found a symmetric 29x29 weighing matrix in 5620 seconds of solver time, checked it with independent exact checkers on two machines, and ran a kill lane that could not refute it. The standard databases list no symmetric W(29,16). Check it yourself in under a second: [`docs/results/sw-29-16`](docs/results/sw-29-16/README.md).
65
+
64
66
  **Constructed SW(27,16), a symmetric weighing matrix the standard archives do not list.** Given a research campaign goal, agent-afk agents picked the target, designed a prescribed-automorphism SAT search, found a symmetric 27x27 weighing matrix in 1903 seconds of solver time, checked it with independent exact checkers on two machines, and ran a kill lane that could not refute it. The standard databases list no symmetric W(27,16). Check it yourself in under a second: [`docs/results/sw-27-16`](docs/results/sw-27-16/README.md).
65
67
 
66
68
  **Constructed SW(25,16), a math case a 2025 paper listed as open.** Given a one-sentence goal ("settle one published open question"), agent-afk agents picked the target, designed a structured SAT search, found a symmetric 25x25 weighing matrix in 760 seconds of solver time, checked it with independent exact checkers and a prior-work search, and wrote up a short proof. The author of the paper that listed the case as open confirmed it passes his verifier. Check it yourself in under a second: [`docs/results/sw-25-16`](docs/results/sw-25-16/README.md).
@@ -16,11 +16,13 @@ export interface DefaultHookRegistryResult {
16
16
  addPreviewDiffRef: PreviewDiffRef;
17
17
  }
18
18
  export declare function _resetWarningForTests(): void;
19
- export declare function createDefaultHookRegistry(onSubagentComplete?: (info: SubagentCompleteInfo) => void, surface?: string, memoryStore?: MemoryStore, getPermissionMode?: () => PermissionMode, hookConfig?: LoadedHooksConfig, agentOptions?: {
19
+ type AgentOptions = {
20
20
  cwd?: string;
21
21
  sessionId?: string;
22
22
  traceWriter?: TraceSink;
23
23
  afkPromptForApproval?: boolean;
24
24
  getTranscriptPath?: () => string | null;
25
25
  daemonTaskId?: string;
26
- }, getCwd?: () => string | undefined): DefaultHookRegistryResult;
26
+ };
27
+ export declare function createDefaultHookRegistry(onSubagentComplete?: (info: SubagentCompleteInfo) => void, surface?: string, memoryStore?: MemoryStore, getPermissionMode?: () => PermissionMode, hookConfig?: LoadedHooksConfig, agentOptions?: AgentOptions, getCwd?: () => string | undefined): DefaultHookRegistryResult;
28
+ export {};
@@ -0,0 +1,21 @@
1
+ import { StateStore } from '../state/state-store.js';
2
+ export type PendingQuestionStatus = 'pending' | 'resolved';
3
+ export interface PendingQuestion {
4
+ questionId: string;
5
+ sessionId: string | undefined;
6
+ surface: string;
7
+ prompt: string;
8
+ createdAt: string;
9
+ status: PendingQuestionStatus;
10
+ resolvedAt?: string;
11
+ resolvedAction?: string;
12
+ }
13
+ export declare function _setStoreForTest(s: StateStore | undefined): void;
14
+ export declare function recordQuestion(questionId: string, sessionId: string | undefined, surface: string, prompt: string): PendingQuestion;
15
+ export declare function markResolved(questionId: string, resolvedAction: string): PendingQuestion | null;
16
+ export declare function getQuestion(questionId: string): PendingQuestion | null;
17
+ export declare function listQuestions(opts?: {
18
+ status?: PendingQuestionStatus;
19
+ limit?: number;
20
+ }): PendingQuestion[];
21
+ export declare function closeStore(): void;
@@ -0,0 +1,9 @@
1
+ import type { ProviderEvent } from '../provider.js';
2
+ import type { OutputEvent } from '../types.js';
3
+ import { type TransformDeps } from './stream-consumer.js';
4
+ export declare function handleSessionInit(info: Extract<ProviderEvent, {
5
+ type: 'session.init';
6
+ }>['info'], deps: TransformDeps): null;
7
+ export declare function handleTurnCompleted(event: Extract<ProviderEvent, {
8
+ type: 'turn.completed';
9
+ }>, deps: TransformDeps): OutputEvent;
@@ -0,0 +1,24 @@
1
+ import { type ChildProcess } from 'node:child_process';
2
+ import { type AnsiStripper, type ShellResult } from './streamer.js';
3
+ export interface CaptureState {
4
+ displayCaptured: string;
5
+ modelCaptured: string;
6
+ displayBytes: number;
7
+ modelBytes: number;
8
+ truncated: boolean;
9
+ overflowKilled: boolean;
10
+ killedByCaller: boolean;
11
+ settled: boolean;
12
+ stripper: AnsiStripper;
13
+ }
14
+ export declare function makeCaptureState(): CaptureState;
15
+ export interface SpawnResult {
16
+ proc: ChildProcess;
17
+ }
18
+ export interface SpawnFailure {
19
+ spawnFailed: true;
20
+ message: string;
21
+ }
22
+ export declare function spawnChild(command: string, cwd: string | undefined, env: Record<string, string> | undefined): SpawnResult | SpawnFailure;
23
+ export declare function wireStreams(proc: ChildProcess, state: CaptureState, maxBytes: number, startedAt: number, timeoutHandle: ReturnType<typeof setTimeout>, abortHandler: () => void, abortSignal: AbortSignal, onChunk: ((chunk: Buffer, stream: 'stdout' | 'stderr') => void) | undefined, resolveResult: (r: ShellResult) => void): void;
24
+ export declare function wireExitHandlers(proc: ChildProcess, state: CaptureState, startedAt: number, timeoutHandle: ReturnType<typeof setTimeout>, abortHandler: () => void, abortSignal: AbortSignal, resolveResult: (r: ShellResult) => void): void;
@@ -0,0 +1,6 @@
1
+ export declare function parseToolRounds(val: unknown, key: string): number;
2
+ export declare function parseComposeBudgets(obj: Record<string, unknown>): {
3
+ nodeTimeoutMs: number | undefined;
4
+ maxToolRoundsPerNode: number | undefined;
5
+ warnings: string[];
6
+ };
@@ -0,0 +1,5 @@
1
+ export declare function parseAttachments(attachmentsValue: unknown, mode: string): string[] | undefined;
2
+ export declare function parseCwd(cwdValue: string | undefined): string | undefined;
3
+ export declare function parseWriteRoots(writeRootsValue: unknown): string[] | undefined;
4
+ export declare function parseReadRoots(readRootsValue: unknown): string[] | undefined;
5
+ export declare function parseIsolation(isolationValue: unknown, cwd: string | undefined, writeRoots: string[] | undefined): 'worktree' | undefined;