@foxden-app/foxclaw 0.2.6 → 0.3.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 +300 -297
- package/README_EN.md +300 -297
- package/dist/controller/controller.d.ts +1 -0
- package/dist/controller/controller.js +19 -2
- package/dist/controller/presentation.js +32 -17
- package/dist/i18n.d.ts +58 -54
- package/dist/i18n.js +58 -54
- package/docs/agent-assisted-install.md +84 -84
- package/docs/install-for-beginners.md +286 -282
- package/docs/troubleshooting.md +236 -236
- package/docs/user-manual.md +460 -0
- package/docs/zh/agent-assisted-install.md +83 -0
- package/docs/zh/foxclaw-skill.md +24 -0
- package/docs/zh/install-for-beginners.md +299 -0
- package/docs/zh/troubleshooting.md +222 -0
- package/docs/zh/user-manual.md +460 -0
- package/package.json +2 -1
- package/scripts/doctor.sh +0 -0
- package/scripts/launchd/install.sh +0 -0
- package/scripts/status.sh +4 -4
- package/scripts/systemd/install.sh +4 -4
- package/scripts/systemd/uninstall.sh +4 -4
- package/skills/npm-publish/SKILL.md +81 -0
- package/skills/npm-publish/agents/openai.yaml +4 -0
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
# Agent-Assisted Install
|
|
2
|
-
|
|
3
|
-
If you already have a shell-capable coding agent on the target computer, use this path first. It is the fastest and least error-prone way to install FoxClaw.
|
|
4
|
-
|
|
5
|
-
This works well with Codex, OpenClaw, QwenPaw, Hermes, OpenCode, Kimi CLI, or any agent that can inspect the machine, run shell commands, edit files, and report blockers.
|
|
6
|
-
|
|
7
|
-
## What You Need To Provide
|
|
8
|
-
|
|
9
|
-
Prepare these values before asking the agent:
|
|
10
|
-
|
|
11
|
-
- `TG_BOT_TOKEN`: Telegram bot token from `@BotFather`
|
|
12
|
-
- `TG_ALLOWED_USER_ID`: your numeric Telegram user id
|
|
13
|
-
- `DEFAULT_CWD`: the folder where Codex should work
|
|
14
|
-
|
|
15
|
-
Optional later:
|
|
16
|
-
|
|
17
|
-
- `TG_ALLOWED_CHAT_ID`
|
|
18
|
-
- `TG_ALLOWED_TOPIC_ID`
|
|
19
|
-
|
|
20
|
-
Use private Telegram chat first. Configure groups/topics only after private chat works.
|
|
21
|
-
|
|
22
|
-
## Copy-Paste Prompt
|
|
23
|
-
|
|
24
|
-
Send this to your agent on the target computer:
|
|
25
|
-
|
|
26
|
-
```text
|
|
27
|
-
Install FoxClaw on this machine.
|
|
28
|
-
|
|
29
|
-
Repository:
|
|
30
|
-
Published package:
|
|
31
|
-
@foxden-app/foxclaw
|
|
32
|
-
|
|
33
|
-
Use private Telegram chat first. Do not configure group/topic mode unless I explicitly provide TG_ALLOWED_CHAT_ID or TG_ALLOWED_TOPIC_ID.
|
|
34
|
-
|
|
35
|
-
Here are the required values:
|
|
36
|
-
TG_BOT_TOKEN=<paste token here>
|
|
37
|
-
TG_ALLOWED_USER_ID=<paste numeric Telegram user id here>
|
|
38
|
-
DEFAULT_CWD=<paste absolute working directory here>
|
|
39
|
-
|
|
40
|
-
Tasks:
|
|
41
|
-
1. Inspect the machine first. If a FoxClaw or old telegram-codex-app-bridge service already exists, report it before changing services.
|
|
42
|
-
2. Ensure Node.js 24+ is available. If not, install or activate Node 24 with nvm.
|
|
43
|
-
3. Ensure the Codex CLI exists and is logged in. If login is required, stop and tell me exactly what I need to do.
|
|
44
|
-
4. Install or update FoxClaw with npm install -g @foxden-app/foxclaw@latest.
|
|
45
|
-
5. Run foxclaw init, then write ~/.foxclaw/.env. Never print or commit the bot token.
|
|
46
|
-
6. Run foxclaw doctor.
|
|
47
|
-
7. Start FoxClaw with foxclaw start.
|
|
48
|
-
8. Ask me to send /help and /status to the Telegram bot.
|
|
49
|
-
9. Verify the final state:
|
|
50
|
-
- foxclaw.service is active/enabled on Linux
|
|
51
|
-
- old telegram-codex-app-bridge.service is inactive/disabled if present
|
|
52
|
-
- foxclaw status works
|
|
53
|
-
10. Report the commands used, the final status, and the log command I should use if something stops working. Redact TG_BOT_TOKEN and never print the full token or full .env content.
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Migration Prompt For Old Installs
|
|
57
|
-
|
|
58
|
-
Use this when the target computer is still running `telegram-codex-app-bridge`:
|
|
59
|
-
|
|
60
|
-
```text
|
|
61
|
-
Migrate this machine from telegram-codex-app-bridge to FoxClaw.
|
|
62
|
-
|
|
63
|
-
New package:
|
|
64
|
-
@foxden-app/foxclaw
|
|
65
|
-
|
|
66
|
-
Please:
|
|
67
|
-
1. Inspect the current install method, service file, and runtime directory before changing anything.
|
|
68
|
-
2. Stop and disable telegram-codex-app-bridge.service if it exists.
|
|
69
|
-
3. If ~/.foxclaw does not exist and ~/.telegram-codex-app-bridge exists, copy ~/.telegram-codex-app-bridge to ~/.foxclaw.
|
|
70
|
-
4. Install or update FoxClaw with npm install -g @foxden-app/foxclaw@latest.
|
|
71
|
-
5. Run foxclaw init if ~/.foxclaw/.env does not exist, then verify ~/.foxclaw/.env.
|
|
72
|
-
6. Run foxclaw doctor.
|
|
73
|
-
7. Install or restart the FoxClaw service with foxclaw start.
|
|
74
|
-
8. Verify foxclaw.service is active and telegram-codex-app-bridge.service is inactive/disabled.
|
|
75
|
-
9. Report final status and any blockers. Redact TG_BOT_TOKEN and never print the full token or full .env content.
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Safety Notes
|
|
79
|
-
|
|
80
|
-
- Do not paste bot tokens into public issue trackers or public chat logs.
|
|
81
|
-
- Do not commit `.env`.
|
|
82
|
-
- When reporting results, redact `TG_BOT_TOKEN`.
|
|
83
|
-
- Do not use `/` or your whole home directory as `DEFAULT_CWD` for a first install.
|
|
84
|
-
- Use `foxclaw start` for normal service startup. Use foreground `foxclaw serve` only when troubleshooting.
|
|
1
|
+
# Agent-Assisted Install
|
|
2
|
+
|
|
3
|
+
If you already have a shell-capable coding agent on the target computer, use this path first. It is the fastest and least error-prone way to install FoxClaw.
|
|
4
|
+
|
|
5
|
+
This works well with Codex, OpenClaw, QwenPaw, Hermes, OpenCode, Kimi CLI, or any agent that can inspect the machine, run shell commands, edit files, and report blockers.
|
|
6
|
+
|
|
7
|
+
## What You Need To Provide
|
|
8
|
+
|
|
9
|
+
Prepare these values before asking the agent:
|
|
10
|
+
|
|
11
|
+
- `TG_BOT_TOKEN`: Telegram bot token from `@BotFather`
|
|
12
|
+
- `TG_ALLOWED_USER_ID`: your numeric Telegram user id
|
|
13
|
+
- `DEFAULT_CWD`: the folder where Codex should work
|
|
14
|
+
|
|
15
|
+
Optional later:
|
|
16
|
+
|
|
17
|
+
- `TG_ALLOWED_CHAT_ID`
|
|
18
|
+
- `TG_ALLOWED_TOPIC_ID`
|
|
19
|
+
|
|
20
|
+
Use private Telegram chat first. Configure groups/topics only after private chat works.
|
|
21
|
+
|
|
22
|
+
## Copy-Paste Prompt
|
|
23
|
+
|
|
24
|
+
Send this to your agent on the target computer:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
Install FoxClaw on this machine.
|
|
28
|
+
|
|
29
|
+
Repository:
|
|
30
|
+
Published package:
|
|
31
|
+
@foxden-app/foxclaw
|
|
32
|
+
|
|
33
|
+
Use private Telegram chat first. Do not configure group/topic mode unless I explicitly provide TG_ALLOWED_CHAT_ID or TG_ALLOWED_TOPIC_ID.
|
|
34
|
+
|
|
35
|
+
Here are the required values:
|
|
36
|
+
TG_BOT_TOKEN=<paste token here>
|
|
37
|
+
TG_ALLOWED_USER_ID=<paste numeric Telegram user id here>
|
|
38
|
+
DEFAULT_CWD=<paste absolute working directory here>
|
|
39
|
+
|
|
40
|
+
Tasks:
|
|
41
|
+
1. Inspect the machine first. If a FoxClaw or old telegram-codex-app-bridge service already exists, report it before changing services.
|
|
42
|
+
2. Ensure Node.js 24+ is available. If not, install or activate Node 24 with nvm.
|
|
43
|
+
3. Ensure the Codex CLI exists and is logged in. If login is required, stop and tell me exactly what I need to do.
|
|
44
|
+
4. Install or update FoxClaw with npm install -g @foxden-app/foxclaw@latest.
|
|
45
|
+
5. Run foxclaw init, then write ~/.foxclaw/.env. Never print or commit the bot token.
|
|
46
|
+
6. Run foxclaw doctor.
|
|
47
|
+
7. Start FoxClaw with foxclaw start.
|
|
48
|
+
8. Ask me to send /help and /status to the Telegram bot.
|
|
49
|
+
9. Verify the final state:
|
|
50
|
+
- foxclaw.service is active/enabled on Linux
|
|
51
|
+
- old telegram-codex-app-bridge.service is inactive/disabled if present
|
|
52
|
+
- foxclaw status works
|
|
53
|
+
10. Report the commands used, the final status, and the log command I should use if something stops working. Redact TG_BOT_TOKEN and never print the full token or full .env content.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Migration Prompt For Old Installs
|
|
57
|
+
|
|
58
|
+
Use this when the target computer is still running `telegram-codex-app-bridge`:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
Migrate this machine from telegram-codex-app-bridge to FoxClaw.
|
|
62
|
+
|
|
63
|
+
New package:
|
|
64
|
+
@foxden-app/foxclaw
|
|
65
|
+
|
|
66
|
+
Please:
|
|
67
|
+
1. Inspect the current install method, service file, and runtime directory before changing anything.
|
|
68
|
+
2. Stop and disable telegram-codex-app-bridge.service if it exists.
|
|
69
|
+
3. If ~/.foxclaw does not exist and ~/.telegram-codex-app-bridge exists, copy ~/.telegram-codex-app-bridge to ~/.foxclaw.
|
|
70
|
+
4. Install or update FoxClaw with npm install -g @foxden-app/foxclaw@latest.
|
|
71
|
+
5. Run foxclaw init if ~/.foxclaw/.env does not exist, then verify ~/.foxclaw/.env.
|
|
72
|
+
6. Run foxclaw doctor.
|
|
73
|
+
7. Install or restart the FoxClaw service with foxclaw start.
|
|
74
|
+
8. Verify foxclaw.service is active and telegram-codex-app-bridge.service is inactive/disabled.
|
|
75
|
+
9. Report final status and any blockers. Redact TG_BOT_TOKEN and never print the full token or full .env content.
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Safety Notes
|
|
79
|
+
|
|
80
|
+
- Do not paste bot tokens into public issue trackers or public chat logs.
|
|
81
|
+
- Do not commit `.env`.
|
|
82
|
+
- When reporting results, redact `TG_BOT_TOKEN`.
|
|
83
|
+
- Do not use `/` or your whole home directory as `DEFAULT_CWD` for a first install.
|
|
84
|
+
- Use `foxclaw start` for normal service startup. Use foreground `foxclaw serve` only when troubleshooting.
|