agent-afk 2.25.0 → 2.25.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/dist/cli.mjs +210 -211
- package/dist/index.mjs +6 -7
- package/dist/telegram.mjs +6 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -903,17 +903,16 @@ Run \`afk telegram set-allowed-chat <chosen_chat_id>\`. Parse the JSON.
|
|
|
903
903
|
- \`{ok: true, path: "..."}\` \u2014 confirm: "\u2713 Saved. Your chat (id <id>) is now allowed."
|
|
904
904
|
- \`{ok: false, reason: "invalid-chat-id"}\` \u2014 tell the user the ID was malformed and ask them to repeat. (This should not happen if you used the JSON from discover-chat.)
|
|
905
905
|
|
|
906
|
-
### Step 6 \u2014
|
|
906
|
+
### Step 6 \u2014 Start the bot
|
|
907
907
|
|
|
908
|
-
|
|
908
|
+
Setup isn't useful until the bot is polling Telegram, so just start it \u2014 don't ask.
|
|
909
909
|
|
|
910
|
-
|
|
911
|
-
>
|
|
912
|
-
> Either way, you can manage it later with \`afk telegram start | stop | status | logs\`.
|
|
910
|
+
Run \`afk telegram start\`.
|
|
913
911
|
|
|
914
|
-
|
|
912
|
+
- Exit 0 / "started" or "already-running" \u2014 tell the user: "\u2713 Bot is running. Send a message to @<username> to test it." Mention they can manage it later with \`afk telegram stop | status | logs\`.
|
|
913
|
+
- Anything else (spawn failure, exited-immediately) \u2014 surface the error and point them at \`afk telegram logs --follow\` to inspect. Do not retry from the skill; let the user diagnose.
|
|
915
914
|
|
|
916
|
-
|
|
915
|
+
Then stop.
|
|
917
916
|
|
|
918
917
|
## Surface awareness
|
|
919
918
|
|
package/dist/telegram.mjs
CHANGED
|
@@ -1060,17 +1060,16 @@ Run \`afk telegram set-allowed-chat <chosen_chat_id>\`. Parse the JSON.
|
|
|
1060
1060
|
- \`{ok: true, path: "..."}\` \u2014 confirm: "\u2713 Saved. Your chat (id <id>) is now allowed."
|
|
1061
1061
|
- \`{ok: false, reason: "invalid-chat-id"}\` \u2014 tell the user the ID was malformed and ask them to repeat. (This should not happen if you used the JSON from discover-chat.)
|
|
1062
1062
|
|
|
1063
|
-
### Step 6 \u2014
|
|
1063
|
+
### Step 6 \u2014 Start the bot
|
|
1064
1064
|
|
|
1065
|
-
|
|
1065
|
+
Setup isn't useful until the bot is polling Telegram, so just start it \u2014 don't ask.
|
|
1066
1066
|
|
|
1067
|
-
|
|
1068
|
-
>
|
|
1069
|
-
> Either way, you can manage it later with \`afk telegram start | stop | status | logs\`.
|
|
1067
|
+
Run \`afk telegram start\`.
|
|
1070
1068
|
|
|
1071
|
-
|
|
1069
|
+
- Exit 0 / "started" or "already-running" \u2014 tell the user: "\u2713 Bot is running. Send a message to @<username> to test it." Mention they can manage it later with \`afk telegram stop | status | logs\`.
|
|
1070
|
+
- Anything else (spawn failure, exited-immediately) \u2014 surface the error and point them at \`afk telegram logs --follow\` to inspect. Do not retry from the skill; let the user diagnose.
|
|
1072
1071
|
|
|
1073
|
-
|
|
1072
|
+
Then stop.
|
|
1074
1073
|
|
|
1075
1074
|
## Surface awareness
|
|
1076
1075
|
|