agent-afk 5.51.1 → 5.52.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/README.md +12 -2
- package/assets/demo-placeholder.png +0 -0
- package/dist/agent/hooks.d.ts +1 -0
- package/dist/agent/session/hooks-dispatch.d.ts +1 -1
- package/dist/bundled-plugins/awa-bundled/skills/refactor/SKILL.md +1 -1
- package/dist/cli.mjs +186 -233
- package/dist/index.mjs +181 -228
- package/dist/telegram/streaming.d.ts +8 -0
- package/dist/telegram.mjs +228 -275
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
[](LICENSE)
|
|
13
13
|
[](https://github.com/griffinwork40/agent-afk/stargazers)
|
|
14
14
|
|
|
15
|
-
<!-- DEMO
|
|
15
|
+
<!-- DEMO PLACEHOLDER ▸ the image below is a static stand-in. Replace it with a 20–30s screen recording of one autonomous AFK run (e.g. kick off `afk daemon` / `afk mint "..."`, walk away, get the Telegram ping, come back done). Drag-and-drop the recording into a GitHub issue/PR to host it on GitHub's CDN, then swap the URL below. This is the single biggest star-conversion lever — keep it above the fold. -->
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<img src="assets/demo-placeholder.png" alt="Agent AFK interactive mode" width="820">
|
|
19
|
+
</p>
|
|
16
20
|
|
|
17
21
|
> ⭐ **Like the idea of an agent loop you fully own? [Star the repo](https://github.com/griffinwork40/agent-afk/stargazers)** — it's the fastest way to help other people find it.
|
|
18
22
|
|
|
@@ -246,7 +250,13 @@ Recent releases at [`CHANGELOG.md`](CHANGELOG.md), also viewable in-REPL via `/c
|
|
|
246
250
|
|
|
247
251
|
## Star History
|
|
248
252
|
|
|
249
|
-
|
|
253
|
+
<a href="https://www.star-history.com/?type=date&repos=griffinwork40%2Fagent-afk">
|
|
254
|
+
<picture>
|
|
255
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=griffinwork40/agent-afk&type=date&theme=dark&legend=top-left&sealed_token=0JyTRyQ55uvLCrhjSrDS7mq_ztnj8HQ19fDUsbUF0GuO1-REfAFV4OGbrgoH11e-eMbpDr_rq7qhipj2Ch-gUR50ayL2tr7889lkW87yr1RSpDe7qgNQg9c14OCFni9jsbpVxW_QvzkP3YuAjCWKfPYrSi8VIQvhSSMzZXmb-v2luuafNiza3TaIOE_K" />
|
|
256
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=griffinwork40/agent-afk&type=date&legend=top-left&sealed_token=0JyTRyQ55uvLCrhjSrDS7mq_ztnj8HQ19fDUsbUF0GuO1-REfAFV4OGbrgoH11e-eMbpDr_rq7qhipj2Ch-gUR50ayL2tr7889lkW87yr1RSpDe7qgNQg9c14OCFni9jsbpVxW_QvzkP3YuAjCWKfPYrSi8VIQvhSSMzZXmb-v2luuafNiza3TaIOE_K" />
|
|
257
|
+
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=griffinwork40/agent-afk&type=date&legend=top-left&sealed_token=0JyTRyQ55uvLCrhjSrDS7mq_ztnj8HQ19fDUsbUF0GuO1-REfAFV4OGbrgoH11e-eMbpDr_rq7qhipj2Ch-gUR50ayL2tr7889lkW87yr1RSpDe7qgNQg9c14OCFni9jsbpVxW_QvzkP3YuAjCWKfPYrSi8VIQvhSSMzZXmb-v2luuafNiza3TaIOE_K" />
|
|
258
|
+
</picture>
|
|
259
|
+
</a>
|
|
250
260
|
|
|
251
261
|
If Agent AFK saves you time, **[⭐ star the repo](https://github.com/griffinwork40/agent-afk/stargazers)** — it's the single best way to help it reach more people.
|
|
252
262
|
|
|
Binary file
|
package/dist/agent/hooks.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export type SubagentHookStatus = 'idle' | 'running' | 'succeeded' | 'failed' | '
|
|
|
11
11
|
export interface SessionStartContext {
|
|
12
12
|
event: 'SessionStart';
|
|
13
13
|
sessionId?: string;
|
|
14
|
+
parentSessionId?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface SessionEndContext {
|
|
16
17
|
event: 'SessionEnd';
|
|
@@ -5,5 +5,5 @@ export interface SessionHookDispatchOptions {
|
|
|
5
5
|
onError?: (err: Error) => void;
|
|
6
6
|
traceWriter?: TraceWriter;
|
|
7
7
|
}
|
|
8
|
-
export declare function dispatchSessionStart(registry: HookRegistry | undefined, context: SessionStartContext, options?: SessionHookDispatchOptions): Promise<
|
|
8
|
+
export declare function dispatchSessionStart(registry: HookRegistry | undefined, context: SessionStartContext, options?: SessionHookDispatchOptions): Promise<string | undefined>;
|
|
9
9
|
export declare function dispatchSessionEnd(registry: HookRegistry | undefined, context: SessionEndContext, options?: SessionHookDispatchOptions): Promise<void>;
|
|
@@ -50,7 +50,7 @@ Dispatch both agents simultaneously in a single response turn.
|
|
|
50
50
|
- inputs: site list (from site-finder, passed inline if available; if not yet available, derive from change type + scope)
|
|
51
51
|
- artifacts:
|
|
52
52
|
- `contracts`: array of `{symbol, signature_before, exported_by, consumed_by[]}`
|
|
53
|
-
- `test_commands`: array of shell commands that
|
|
53
|
+
- `test_commands`: array of shell commands that SCOPE to the affected contracts — target the specific test files or a name pattern, never the whole suite (e.g., `pnpm test src/auth/auth-service.test.ts` or `pnpm test -t "AuthService"`). Under pnpm, `pnpm test -- <file>` drops the file arg and runs the entire suite — never emit that form.
|
|
54
54
|
- `test_coverage_verdict`: "adequate" | "partial" | "absent"
|
|
55
55
|
- `confidence`: low | medium | high
|
|
56
56
|
- `coverage_gaps`: test paths not reachable by the identified commands
|