agent-afk 5.307.8 → 5.307.9
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 +4 -0
- package/dist/agent/providers/anthropic-direct/cache-policy.d.ts +22 -0
- package/dist/cli.mjs +351 -351
- package/dist/index.mjs +151 -151
- package/dist/telegram.mjs +175 -175
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,10 @@ Codex imports use `CODEX_HOME` when set (otherwise `~/.codex`) and also discover
|
|
|
59
59
|
|
|
60
60
|
**Jev calibrated judgment.** Jev is an external cross-family judge you configure as an MCP server in `~/.afk/config/mcp.json`. When present, `afk whatif --judge auto` selects Jev to grade verification episodes; it returns calibrated probabilities and removes Anthropic self-preference bias in verdicts. Falls back to Claude when Jev is not configured. Use `--judge claude` to keep all episode data within Anthropic. Source: `src/whatif/judge/jev-connect.ts`, `docs/whatif.md`.
|
|
61
61
|
|
|
62
|
+
## What it has done
|
|
63
|
+
|
|
64
|
+
**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).
|
|
65
|
+
|
|
62
66
|
## How it compares
|
|
63
67
|
|
|
64
68
|
| | Claude Code | Agent AFK |
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ContentBlockParam, MessageParam } from '@anthropic-ai/sdk/resources';
|
|
2
|
+
export declare const MAX_CACHE_BREAKPOINTS = 4;
|
|
2
3
|
export declare function isCacheEnabled(opts?: {
|
|
3
4
|
baseUrl?: string;
|
|
4
5
|
}): boolean;
|
|
@@ -8,3 +9,24 @@ export declare function isExtendedCacheTtlActive(opts?: {
|
|
|
8
9
|
}): boolean;
|
|
9
10
|
export declare function withSystemBreakpoint(blocks: ContentBlockParam[], ttl: '5m' | '1h'): ContentBlockParam[];
|
|
10
11
|
export declare function withMessagesBreakpoint(messages: MessageParam[], ttl: '5m' | '1h'): MessageParam[];
|
|
12
|
+
export declare function countBreakpoints(params: {
|
|
13
|
+
system?: readonly ContentBlockParam[];
|
|
14
|
+
tools?: readonly CacheableToolLike[];
|
|
15
|
+
messages: readonly MessageParam[];
|
|
16
|
+
}): number;
|
|
17
|
+
export interface CacheableToolLike {
|
|
18
|
+
name: string;
|
|
19
|
+
cache_control?: {
|
|
20
|
+
type: string;
|
|
21
|
+
} | null;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export declare function clampBreakpoints(params: {
|
|
25
|
+
system?: readonly ContentBlockParam[];
|
|
26
|
+
tools?: readonly CacheableToolLike[];
|
|
27
|
+
messages: readonly MessageParam[];
|
|
28
|
+
}): {
|
|
29
|
+
system?: readonly ContentBlockParam[];
|
|
30
|
+
tools?: readonly CacheableToolLike[];
|
|
31
|
+
messages: readonly MessageParam[];
|
|
32
|
+
};
|