palmier 0.1.1 → 0.1.2
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 +25 -0
- package/dist/commands/serve.js +1 -1
- package/package.json +1 -1
- package/src/commands/serve.ts +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,31 @@ The `init` command:
|
|
|
35
35
|
- Installs a systemd user service for the agent
|
|
36
36
|
- Configures Claude Code hooks for remote interaction
|
|
37
37
|
|
|
38
|
+
### Verifying the Service
|
|
39
|
+
|
|
40
|
+
After `palmier init`, verify the agent is running:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Check service status
|
|
44
|
+
systemctl --user status palmier-agent.service
|
|
45
|
+
|
|
46
|
+
# View recent logs
|
|
47
|
+
journalctl --user -u palmier-agent.service -n 50 --no-pager
|
|
48
|
+
|
|
49
|
+
# Follow logs in real time
|
|
50
|
+
journalctl --user -u palmier-agent.service -f
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
You should see `Active: active (running)` and log output showing a NATS connection. If the service failed:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Restart manually
|
|
57
|
+
systemctl --user restart palmier-agent.service
|
|
58
|
+
|
|
59
|
+
# Check config is valid
|
|
60
|
+
cat ~/.config/palmier/agent.json
|
|
61
|
+
```
|
|
62
|
+
|
|
38
63
|
## How It Works
|
|
39
64
|
|
|
40
65
|
- The agent runs as a **systemd user service**, staying alive in the background.
|
package/dist/commands/serve.js
CHANGED
|
@@ -12,7 +12,7 @@ export async function serveCommand() {
|
|
|
12
12
|
const config = loadConfig();
|
|
13
13
|
const nc = await connectNats(config);
|
|
14
14
|
const sc = StringCodec();
|
|
15
|
-
const subject = `user.${config.userId}.agent.${config.agentId}.rpc
|
|
15
|
+
const subject = `user.${config.userId}.agent.${config.agentId}.rpc.>`;
|
|
16
16
|
console.log(`Subscribing to: ${subject}`);
|
|
17
17
|
const sub = nc.subscribe(subject);
|
|
18
18
|
// Graceful shutdown
|
package/package.json
CHANGED
package/src/commands/serve.ts
CHANGED
|
@@ -15,7 +15,7 @@ export async function serveCommand(): Promise<void> {
|
|
|
15
15
|
const nc = await connectNats(config);
|
|
16
16
|
const sc = StringCodec();
|
|
17
17
|
|
|
18
|
-
const subject = `user.${config.userId}.agent.${config.agentId}.rpc
|
|
18
|
+
const subject = `user.${config.userId}.agent.${config.agentId}.rpc.>`;
|
|
19
19
|
console.log(`Subscribing to: ${subject}`);
|
|
20
20
|
|
|
21
21
|
const sub = nc.subscribe(subject);
|