palmier 0.9.29 → 0.9.31
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/command-runners.js
CHANGED
|
@@ -49,6 +49,7 @@ function spawnRunner(config, taskId, command) {
|
|
|
49
49
|
rl.on("line", (line) => {
|
|
50
50
|
if (!line.trim())
|
|
51
51
|
return;
|
|
52
|
+
console.log(`[command-runner] ${taskId} stdout line (${line.length} chars): ${line.slice(0, 100)}`);
|
|
52
53
|
dispatchTrigger(taskId, line);
|
|
53
54
|
});
|
|
54
55
|
child.stderr?.on("data", (d) => process.stderr.write(d));
|
package/dist/commands/run.js
CHANGED
|
@@ -285,6 +285,9 @@ async function runEventTriggeredMode(ctx) {
|
|
|
285
285
|
break;
|
|
286
286
|
eventsProcessed++;
|
|
287
287
|
console.log(`[triggered] Processing ${label} #${eventsProcessed}`);
|
|
288
|
+
// Show the triggering input on the user's side before the agent responds,
|
|
289
|
+
// mirroring the regular task view (prompt, then agent output).
|
|
290
|
+
await appendAndNotify(ctx, { role: "user", time: Date.now(), content: body.event });
|
|
288
291
|
const perEventPrompt = isCommand
|
|
289
292
|
? `${ctx.task.frontmatter.user_prompt}\n\nProcess this input:\n${body.event}`
|
|
290
293
|
: `${ctx.task.frontmatter.user_prompt}\n\nProcess this new ${label}:\n${body.event}`;
|
package/dist/commands/serve.js
CHANGED
|
@@ -16,6 +16,7 @@ import { addNotification } from "../notification-store.js";
|
|
|
16
16
|
import { addSmsMessage } from "../sms-store.js";
|
|
17
17
|
import { dispatchTrigger } from "../trigger-dispatch.js";
|
|
18
18
|
import { startEnabledCommandRunners } from "../command-runners.js";
|
|
19
|
+
import { currentVersion } from "../update-checker.js";
|
|
19
20
|
const POLL_INTERVAL_MS = 30_000;
|
|
20
21
|
const DAEMON_PID_FILE = path.join(CONFIG_DIR, "daemon.pid");
|
|
21
22
|
/**
|
|
@@ -98,7 +99,7 @@ export async function serveCommand() {
|
|
|
98
99
|
const config = loadConfig();
|
|
99
100
|
// PID file lets `palmier restart` find us regardless of how we were started
|
|
100
101
|
fs.writeFileSync(DAEMON_PID_FILE, String(process.pid), "utf-8");
|
|
101
|
-
console.log(
|
|
102
|
+
console.log(`Starting Palmier daemon v${currentVersion}...`);
|
|
102
103
|
const agents = await detectAgents(config.agents);
|
|
103
104
|
config.agents = agents;
|
|
104
105
|
saveConfig(config);
|