palmier 0.1.2 → 0.1.3

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.
@@ -43,11 +43,11 @@ export async function initCommand(options) {
43
43
  }
44
44
  // 3. Save config
45
45
  const config = {
46
- agentId: claimResponse.agent_id,
47
- userId: claimResponse.user_id,
48
- natsUrl: claimResponse.nats_url,
49
- natsWsUrl: claimResponse.nats_ws_url,
50
- natsToken: claimResponse.nats_token,
46
+ agentId: claimResponse.agentId,
47
+ userId: claimResponse.userId,
48
+ natsUrl: claimResponse.natsUrl,
49
+ natsWsUrl: claimResponse.natsWsUrl,
50
+ natsToken: claimResponse.natsToken,
51
51
  projectRoot: process.cwd(),
52
52
  };
53
53
  saveConfig(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palmier",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Palmier agent CLI - provisions, executes tasks, and serves NATS RPC",
5
5
  "license": "ISC",
6
6
  "author": "Hongxu Cai",
@@ -32,11 +32,11 @@ export async function initCommand(options: InitOptions): Promise<void> {
32
32
 
33
33
  // 2. POST to server to claim agent
34
34
  let claimResponse: {
35
- agent_id: string;
36
- user_id: string;
37
- nats_url: string;
38
- nats_ws_url: string;
39
- nats_token: string;
35
+ agentId: string;
36
+ userId: string;
37
+ natsUrl: string;
38
+ natsWsUrl: string;
39
+ natsToken: string;
40
40
  };
41
41
 
42
42
  try {
@@ -60,11 +60,11 @@ export async function initCommand(options: InitOptions): Promise<void> {
60
60
 
61
61
  // 3. Save config
62
62
  const config: AgentConfig = {
63
- agentId: claimResponse.agent_id,
64
- userId: claimResponse.user_id,
65
- natsUrl: claimResponse.nats_url,
66
- natsWsUrl: claimResponse.nats_ws_url,
67
- natsToken: claimResponse.nats_token,
63
+ agentId: claimResponse.agentId,
64
+ userId: claimResponse.userId,
65
+ natsUrl: claimResponse.natsUrl,
66
+ natsWsUrl: claimResponse.natsWsUrl,
67
+ natsToken: claimResponse.natsToken,
68
68
  projectRoot: process.cwd(),
69
69
  };
70
70