agent-afk 5.319.3 → 5.319.4
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/dist/agent/daemon/handoff-store.d.ts +1 -1
- package/dist/agent/tools/handlers/_output-cap.d.ts +2 -0
- package/dist/agent/tools/handlers/scratch-roots.d.ts +5 -0
- package/dist/agent/tools/handlers/wait-for-command-policy.d.ts +4 -0
- package/dist/agent/tools/handlers/wait-for-poll-allowlist.argv.d.ts +9 -0
- package/dist/agent/tools/handlers/wait-for-poll-allowlist.d.ts +3 -0
- package/dist/agent/tools/handlers/wait-for-poll-allowlist.git.d.ts +1 -0
- package/dist/agent/worktree/worktree-root-registry.d.ts +1 -0
- package/dist/agent/worktree/worktree-sweep.lock.d.ts +1 -1
- package/dist/cli.mjs +452 -435
- package/dist/index.mjs +222 -208
- package/dist/telegram.mjs +244 -227
- package/dist/utils/errors.d.ts +1 -0
- package/dist/utils/split-frontmatter.d.ts +5 -0
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ export declare function writeHandoff(record: HandoffRecord, handoffsDir?: string
|
|
|
31
31
|
export declare function readHandoff(taskId: string, handoffsDir?: string): Promise<HandoffRecord | null>;
|
|
32
32
|
export declare function deleteHandoff(taskId: string, handoffsDir?: string): Promise<void>;
|
|
33
33
|
export declare function listPendingHandoffs(handoffsDir?: string): Promise<HandoffRecord[]>;
|
|
34
|
-
export declare function withHandoffLock<T>(taskId: string, handoffsDir: string, cb: () => Promise<T
|
|
34
|
+
export declare function withHandoffLock<T>(taskId: string, handoffsDir: string, cb: () => Promise<T>, platform?: string): Promise<T | null>;
|
|
35
35
|
export interface UpdateHandoffAnswerOpts {
|
|
36
36
|
handoffsDir?: string;
|
|
37
37
|
responderIdentity?: string;
|
|
@@ -6,4 +6,6 @@ export declare function capForModel(text: string): {
|
|
|
6
6
|
truncated: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare function isOutputCapKill(content: string): boolean;
|
|
9
|
+
export declare const OUTPUT_TRUNCATED_MARKER = "[output truncated";
|
|
10
|
+
export declare function hasOutputTruncatedMarker(content: string): boolean;
|
|
9
11
|
export declare const HARD_CAP_KILL_NOTE: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function lexicalScratchRoots(): readonly string[];
|
|
2
|
+
export declare function realScratchRoots(): readonly string[];
|
|
3
|
+
export declare function isWithinScratchRoot(realAbs: string): boolean;
|
|
4
|
+
export declare function _resetScratchRootsCacheForTests(): void;
|
|
5
|
+
export declare function _setRealScratchRootsForTests(roots: readonly string[]): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function pollMutationReason(command: string): string | undefined;
|
|
2
|
+
export declare function pollSyntaxReason(command: string): string | undefined;
|
|
3
|
+
export declare function isReadOnlyPoll(command: string, cwd: string): boolean;
|
|
4
|
+
export declare function pollRefusalReason(command: string, risk: string, cwd: string): string | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ArgvSpec {
|
|
2
|
+
readonly flags: ReadonlySet<string>;
|
|
3
|
+
readonly valueShorts?: string;
|
|
4
|
+
readonly numeric?: boolean;
|
|
5
|
+
readonly noPositional?: boolean;
|
|
6
|
+
readonly verbs?: ReadonlySet<string>;
|
|
7
|
+
readonly requireAny?: ReadonlySet<string>;
|
|
8
|
+
}
|
|
9
|
+
export declare function argvAllowed(argv: readonly string[], spec: ArgvSpec): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function gitArgvAllowed(argv: readonly string[]): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function acquireRegistryLock(lockPath: string, platform?: string): Promise<(() => Promise<void>) | null>;
|
|
1
2
|
export declare function registerWorktreeRoot(repoRoot: string): Promise<void>;
|
|
2
3
|
export declare function readRegisteredWorktreeRoots(): Promise<string[]>;
|
|
3
4
|
export declare function sweepRootSet(primary: string | null): Promise<string[]>;
|
|
@@ -2,4 +2,4 @@ export declare function countPriorSuccessfulRuns(telemetryPath: string): Promise
|
|
|
2
2
|
export declare class LockContestedError extends Error {
|
|
3
3
|
constructor(lockPath: string);
|
|
4
4
|
}
|
|
5
|
-
export declare function acquireLock(lockPath: string): Promise<() => Promise<void>>;
|
|
5
|
+
export declare function acquireLock(lockPath: string, platform?: string): Promise<() => Promise<void>>;
|