palmier 0.6.3 → 0.6.5
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 +0 -30
- package/dist/commands/plan-generation.md +2 -2
- package/dist/commands/run.js +18 -1
- package/dist/pwa/assets/{index-ByhOhTz1.js → index-CXqKVvmk.js} +30 -30
- package/dist/pwa/assets/{index-_AmC1Rkn.css → index-DhvJN8ie.css} +1 -1
- package/dist/pwa/index.html +2 -2
- package/dist/pwa/service-worker.js +1 -1
- package/dist/rpc-handler.js +13 -2
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/palmier-server/pwa/src/App.css +27 -1
- package/palmier-server/pwa/src/components/RunDetailView.tsx +7 -3
- package/palmier-server/pwa/src/constants.ts +1 -1
- package/palmier-server/pwa/src/types.ts +1 -1
- package/src/commands/plan-generation.md +2 -2
- package/src/commands/run.ts +20 -1
- package/src/rpc-handler.ts +15 -2
- package/src/types.ts +1 -1
package/README.md
CHANGED
|
@@ -113,36 +113,6 @@ The daemon automatically recovers existing tasks by reinstalling their system ti
|
|
|
113
113
|
|
|
114
114
|
Agents are re-detected on every daemon start. Run `palmier restart` after installing or removing a CLI.
|
|
115
115
|
|
|
116
|
-
### Verifying the Service
|
|
117
|
-
|
|
118
|
-
After `palmier init`, verify the host is running:
|
|
119
|
-
|
|
120
|
-
**Linux:**
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
# Check service status
|
|
124
|
-
systemctl --user status palmier.service
|
|
125
|
-
|
|
126
|
-
# View recent logs
|
|
127
|
-
journalctl --user -u palmier.service -n 50 --no-pager
|
|
128
|
-
|
|
129
|
-
# Follow logs in real time
|
|
130
|
-
journalctl --user -u palmier.service -f
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
**Windows (PowerShell):**
|
|
134
|
-
|
|
135
|
-
```powershell
|
|
136
|
-
# Check if the daemon is running
|
|
137
|
-
Get-Process -Name node -ErrorAction SilentlyContinue | Where-Object { $_.CommandLine -like '*palmier*serve*' }
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
**Restarting the daemon (both platforms):**
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
palmier restart
|
|
144
|
-
```
|
|
145
|
-
|
|
146
116
|
## CLI Reference
|
|
147
117
|
|
|
148
118
|
| Command | Description |
|
|
@@ -14,8 +14,8 @@ task_name: <concise label, 3-6 words>
|
|
|
14
14
|
|
|
15
15
|
- Write a numbered sequence of concrete, actionable steps.
|
|
16
16
|
- If the task produces formatted output (report, email, summary, etc.), specify the structure, sections, and tone.
|
|
17
|
-
- When a step requires user input, simply state what information is needed from the user. Do not specify how to obtain it — the agent has its own tool for requesting user input.
|
|
18
|
-
-
|
|
17
|
+
- When a step requires user input, simply state what information is needed from the user. Do **not** specify how to obtain it — the agent has its own tool for requesting user input.
|
|
18
|
+
- Preserve relative time expressions (e.g., "today", "yesterday", "last week") exactly as written — do **not** resolve them to specific dates. The plan may be executed on a different day than it was generated.
|
|
19
19
|
|
|
20
20
|
## Task Description
|
|
21
21
|
|
package/dist/commands/run.js
CHANGED
|
@@ -342,7 +342,12 @@ async function runCommandTriggeredMode(ctx) {
|
|
|
342
342
|
invocationsFailed++;
|
|
343
343
|
});
|
|
344
344
|
});
|
|
345
|
-
|
|
345
|
+
let stderrBuf = "";
|
|
346
|
+
child.stderr?.on("data", (d) => {
|
|
347
|
+
const chunk = d.toString();
|
|
348
|
+
stderrBuf += chunk;
|
|
349
|
+
process.stderr.write(d);
|
|
350
|
+
});
|
|
346
351
|
// Wait for command to exit
|
|
347
352
|
const exitCode = await new Promise((resolve) => {
|
|
348
353
|
child.on("close", (code) => {
|
|
@@ -352,6 +357,7 @@ async function runCommandTriggeredMode(ctx) {
|
|
|
352
357
|
});
|
|
353
358
|
child.on("error", (err) => {
|
|
354
359
|
console.error(`[command-triggered] Command error:`, err);
|
|
360
|
+
stderrBuf += err.message;
|
|
355
361
|
commandExited = true;
|
|
356
362
|
rl.close();
|
|
357
363
|
resolve(1);
|
|
@@ -365,6 +371,17 @@ async function runCommandTriggeredMode(ctx) {
|
|
|
365
371
|
});
|
|
366
372
|
}
|
|
367
373
|
const endTime = Date.now();
|
|
374
|
+
if (exitCode !== 0) {
|
|
375
|
+
const errorDetail = stderrBuf.trim() || `Command exited with code ${exitCode}`;
|
|
376
|
+
appendRunMessage(ctx.taskDir, ctx.runId, {
|
|
377
|
+
role: "status",
|
|
378
|
+
time: endTime,
|
|
379
|
+
content: errorDetail,
|
|
380
|
+
type: "error",
|
|
381
|
+
});
|
|
382
|
+
await publishHostEvent(ctx.nc, ctx.config.hostId, ctx.taskId, { event_type: "result-updated", run_id: ctx.runId });
|
|
383
|
+
return { outcome: "failed", endTime };
|
|
384
|
+
}
|
|
368
385
|
return { outcome: "finished", endTime };
|
|
369
386
|
}
|
|
370
387
|
async function publishTaskEvent(nc, config, taskDir, taskId, eventType, taskName, runId) {
|