agent-afk 5.15.13 → 5.16.0
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/worktree-sweep.d.ts +3 -21
- package/dist/cli/commands/interactive/tool-lane.d.ts +1 -0
- package/dist/cli/errors/classifier.d.ts +2 -1
- package/dist/cli/errors/index.d.ts +1 -1
- package/dist/cli/formatter.d.ts +0 -21
- package/dist/cli/palette.d.ts +0 -1
- package/dist/cli/slash/index.d.ts +0 -1
- package/dist/cli.mjs +401 -408
- package/dist/index.mjs +1 -1
- package/dist/skills/_lib/emit-card.d.ts +0 -1
- package/dist/telegram.mjs +109 -109
- package/dist/utils/errors.d.ts +0 -13
- package/package.json +1 -1
- package/dist/cli/slash/registry-exports.d.ts +0 -2
- package/dist/skills/example-template/index.d.ts +0 -1
- package/dist/telegram/example.d.ts +0 -1
- package/dist/telemetry/schemas.d.ts +0 -10
- package/dist/utils/CircularBuffer.d.ts +0 -13
- package/dist/utils/envUtils.d.ts +0 -2
- package/dist/utils/json.d.ts +0 -1
- package/dist/utils/memoize.d.ts +0 -9
package/dist/utils/errors.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export declare class ClaudeError extends Error {
|
|
2
|
-
constructor(message: string);
|
|
3
|
-
}
|
|
4
1
|
export declare class AbortError extends Error {
|
|
5
2
|
constructor(message?: string);
|
|
6
3
|
}
|
|
@@ -16,14 +13,6 @@ export declare class HookBlockedError extends Error {
|
|
|
16
13
|
cause?: unknown;
|
|
17
14
|
});
|
|
18
15
|
}
|
|
19
|
-
export declare class ShellError extends Error {
|
|
20
|
-
readonly stdout: string;
|
|
21
|
-
readonly stderr: string;
|
|
22
|
-
readonly code: number;
|
|
23
|
-
readonly interrupted: boolean;
|
|
24
|
-
constructor(stdout: string, stderr: string, code: number, interrupted: boolean);
|
|
25
|
-
}
|
|
26
|
-
export declare function isAbortError(e: unknown): boolean;
|
|
27
16
|
export declare class BudgetExceededError extends Error {
|
|
28
17
|
readonly runningCostUsd: number;
|
|
29
18
|
readonly maxBudgetUsd: number;
|
|
@@ -34,5 +23,3 @@ export declare class UnsupportedProviderConfigError extends Error {
|
|
|
34
23
|
readonly field: string;
|
|
35
24
|
constructor(provider: string, field: string, message?: string);
|
|
36
25
|
}
|
|
37
|
-
export declare function toError(e: unknown): Error;
|
|
38
|
-
export declare function errorMessage(e: unknown): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-afk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.0",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ForgeTelemEntrySchema: z.ZodObject<{
|
|
3
|
-
timestamp: z.ZodString;
|
|
4
|
-
surface: z.ZodEnum<{
|
|
5
|
-
afk: "afk";
|
|
6
|
-
plugin: "plugin";
|
|
7
|
-
}>;
|
|
8
|
-
event: z.ZodString;
|
|
9
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
10
|
-
export type ForgeTelemEntry = z.infer<typeof ForgeTelemEntrySchema>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class CircularBuffer<T> {
|
|
2
|
-
private capacity;
|
|
3
|
-
private buffer;
|
|
4
|
-
private head;
|
|
5
|
-
private size;
|
|
6
|
-
constructor(capacity: number);
|
|
7
|
-
add(item: T): void;
|
|
8
|
-
addAll(items: T[]): void;
|
|
9
|
-
getRecent(count: number): T[];
|
|
10
|
-
toArray(): T[];
|
|
11
|
-
clear(): void;
|
|
12
|
-
length(): number;
|
|
13
|
-
}
|
package/dist/utils/envUtils.d.ts
DELETED
package/dist/utils/json.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function safeParseJSON(text: string): unknown;
|
package/dist/utils/memoize.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type MemoizedFunction<Args extends unknown[], Result> = {
|
|
2
|
-
(...args: Args): Result;
|
|
3
|
-
cache: {
|
|
4
|
-
clear: () => void;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export declare function memoizeSimple<T>(fn: () => T): () => T;
|
|
8
|
-
export declare function memoizeWithTTL<Args extends unknown[], Result>(fn: (...args: Args) => Result, ttlMs?: number): MemoizedFunction<Args, Result>;
|
|
9
|
-
export {};
|