palmier 0.2.7 → 0.2.8
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/.github/workflows/publish.yml +24 -0
- package/CLAUDE.md +9 -9
- package/README.md +288 -286
- package/dist/agents/shared-prompt.js +16 -16
- package/package.json +44 -36
- package/src/agents/claude.ts +44 -44
- package/src/agents/shared-prompt.ts +28 -28
- package/src/commands/run.ts +619 -619
- package/src/nats-client.ts +15 -15
- package/src/rpc-handler.ts +388 -388
- package/src/types.ts +62 -62
- package/dist/commands/hook.d.ts +0 -7
- package/dist/commands/hook.js +0 -208
- package/dist/commands/task-cleanup.d.ts +0 -14
- package/dist/commands/task-cleanup.js +0 -84
- package/dist/commands/task-generation.md +0 -28
- package/dist/systemd.d.ts +0 -20
- package/dist/systemd.js +0 -145
package/src/nats-client.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { connect, type NatsConnection } from "nats";
|
|
2
|
-
import type { HostConfig } from "./types.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Connect to NATS using the host config's TCP URL and token auth.
|
|
6
|
-
*/
|
|
7
|
-
export async function connectNats(config: HostConfig): Promise<NatsConnection> {
|
|
8
|
-
const nc = await connect({
|
|
9
|
-
servers: config.natsUrl,
|
|
10
|
-
token: config.natsToken,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// Do not log anything as that will pollute stdout for mcp server.
|
|
14
|
-
return nc;
|
|
15
|
-
}
|
|
1
|
+
import { connect, type NatsConnection } from "nats";
|
|
2
|
+
import type { HostConfig } from "./types.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Connect to NATS using the host config's TCP URL and token auth.
|
|
6
|
+
*/
|
|
7
|
+
export async function connectNats(config: HostConfig): Promise<NatsConnection> {
|
|
8
|
+
const nc = await connect({
|
|
9
|
+
servers: config.natsUrl,
|
|
10
|
+
token: config.natsToken,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
// Do not log anything as that will pollute stdout for mcp server.
|
|
14
|
+
return nc;
|
|
15
|
+
}
|