agent-afk 5.51.2 → 5.52.1
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/cli.mjs +476 -529
- package/dist/index.mjs +167 -220
- package/dist/telegram.mjs +213 -266
- package/dist/utils/errors.d.ts +3 -0
- package/package.json +3 -2
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>;
|