skimpyclaw 0.3.3 → 0.3.4
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 +3 -17
- package/dist/cron.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,16 +74,10 @@ See [docs/architecture.md](docs/architecture.md) for runtime flow and startup se
|
|
|
74
74
|
|
|
75
75
|
## Quick Start
|
|
76
76
|
|
|
77
|
-
**Install:**
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npm install -g skimpyclaw
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Run onboarding:**
|
|
84
|
-
|
|
85
77
|
```bash
|
|
78
|
+
pnpm add -g skimpyclaw
|
|
86
79
|
skimpyclaw onboard
|
|
80
|
+
skimpyclaw start --daemon
|
|
87
81
|
```
|
|
88
82
|
|
|
89
83
|
Onboarding validates your Telegram token, provider auth, and creates:
|
|
@@ -91,14 +85,6 @@ Onboarding validates your Telegram token, provider auth, and creates:
|
|
|
91
85
|
- `~/.skimpyclaw/config.json`
|
|
92
86
|
- `~/.skimpyclaw/agents/main/*.md` (from templates)
|
|
93
87
|
|
|
94
|
-
**Start:**
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
skimpyclaw start
|
|
98
|
-
# or run as launchd daemon on macOS:
|
|
99
|
-
skimpyclaw start --daemon
|
|
100
|
-
```
|
|
101
|
-
|
|
102
88
|
**Stop/Restart daemon (macOS):**
|
|
103
89
|
|
|
104
90
|
```bash
|
|
@@ -217,7 +203,7 @@ dist/ # Compiled output + built dashboard assets
|
|
|
217
203
|
| [docs/chat-commands.md](docs/chat-commands.md) | Telegram/Discord bot commands |
|
|
218
204
|
| [docs/skills.md](docs/skills.md) | Skills system, built-in skills, creating custom skills |
|
|
219
205
|
| [docs/data-storage.md](docs/data-storage.md) | File layout, audit log format, security notes |
|
|
220
|
-
| [
|
|
206
|
+
| [Setup Guide](https://docs.skimpyclaw.xyz/guide/setup-guide.html) | Step-by-step installation and setup guide |
|
|
221
207
|
| [docs/troubleshooting.md](docs/troubleshooting.md) | Common issues and solutions |
|
|
222
208
|
|
|
223
209
|
## Development
|
package/dist/cron.js
CHANGED
|
@@ -4,6 +4,7 @@ import { exec } from 'child_process';
|
|
|
4
4
|
import { existsSync, mkdirSync, appendFileSync, readFileSync, watch } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
import { getLogsDir, getConfigPath, loadConfig } from './config.js';
|
|
7
|
+
import { homedir } from 'node:os';
|
|
7
8
|
import { runAgentTurn } from './agent.js';
|
|
8
9
|
import { startTrace, addEvent, endTrace } from './audit.js';
|
|
9
10
|
import { sendActiveChannelProactiveMessage, sendActiveChannelProactiveVoice, getActiveChannelId } from './channels.js';
|
|
@@ -135,7 +136,13 @@ async function executeJobPayload(jobDef, config) {
|
|
|
135
136
|
if (jobDef.payload.kind === 'agentTurn') {
|
|
136
137
|
const message = expandVariables(resolveMessageSource(jobDef.payload.message || ''));
|
|
137
138
|
appendCronLogLine(jobDef.id, `Agent turn started (prompt: ${message.slice(0, 100)}...)`);
|
|
138
|
-
const
|
|
139
|
+
const defaultTools = {
|
|
140
|
+
enabled: true,
|
|
141
|
+
allowedPaths: [`${homedir()}/.skimpyclaw`],
|
|
142
|
+
maxIterations: 30,
|
|
143
|
+
bashTimeout: 15000,
|
|
144
|
+
};
|
|
145
|
+
const response = await runAgentTurn(config.agents.default, message, config, jobDef.model, jobDef.payload.tools || defaultTools, undefined, {
|
|
139
146
|
channel: getActiveChannelId() || 'telegram',
|
|
140
147
|
trigger: 'cron',
|
|
141
148
|
sessionId: jobDef.id,
|