palmier 0.1.0 → 0.1.1
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 +2 -2
- package/dist/commands/init.js +1 -1
- package/package.json +1 -1
- package/src/commands/init.ts +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ A Node.js CLI that runs on your machine as a persistent agent. It manages tasks,
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install -g palmier
|
|
14
|
+
npm install -g palmier
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## CLI Commands
|
|
@@ -25,7 +25,7 @@ npm install -g palmier-agent
|
|
|
25
25
|
|
|
26
26
|
## Setup
|
|
27
27
|
|
|
28
|
-
1. Install the agent: `npm install -g palmier
|
|
28
|
+
1. Install the agent: `npm install -g palmier`
|
|
29
29
|
2. Register on the Palmier PWA and click **Add Agent**.
|
|
30
30
|
3. Copy the provisioning token.
|
|
31
31
|
4. Run `palmier init --token <token>` in your project directory.
|
package/dist/commands/init.js
CHANGED
|
@@ -28,7 +28,7 @@ export async function initCommand(options) {
|
|
|
28
28
|
const res = await fetch(`${decoded.server}/api/agents/claim`, {
|
|
29
29
|
method: "POST",
|
|
30
30
|
headers: { "Content-Type": "application/json" },
|
|
31
|
-
body: JSON.stringify({ provisioning_token:
|
|
31
|
+
body: JSON.stringify({ provisioning_token: options.token }),
|
|
32
32
|
});
|
|
33
33
|
if (!res.ok) {
|
|
34
34
|
const body = await res.text();
|
package/package.json
CHANGED
package/src/commands/init.ts
CHANGED
|
@@ -43,7 +43,7 @@ export async function initCommand(options: InitOptions): Promise<void> {
|
|
|
43
43
|
const res = await fetch(`${decoded.server}/api/agents/claim`, {
|
|
44
44
|
method: "POST",
|
|
45
45
|
headers: { "Content-Type": "application/json" },
|
|
46
|
-
body: JSON.stringify({ provisioning_token:
|
|
46
|
+
body: JSON.stringify({ provisioning_token: options.token }),
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
if (!res.ok) {
|