@ilucky21c/ajp-cli 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.
Files changed (2) hide show
  1. package/index.js +8 -8
  2. package/package.json +13 -4
package/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * ajp-cli — Agent Job Protocol CLI
4
4
  *
5
5
  * Requires Provenance identity (PROVENANCE_ID + PROVENANCE_PRIVATE_KEY).
6
- * For identity setup: npx provenance keygen / npx provenance register
6
+ * For identity setup: npx provenance-protocol keygen / npx provenance-protocol register
7
7
  *
8
8
  * Usage:
9
9
  * ajp hire <provenance_id> --instruction <text> [--budget <usd>] [--timeout <s>]
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { createPrivateKey, sign as nodeSign, randomBytes } from 'crypto';
14
14
 
15
- const API = process.env.PROVENANCE_API_URL || 'https://provenance-web-mu.vercel.app';
15
+ const API = process.env.PROVENANCE_API_URL || 'https://getprovenance.dev';
16
16
  const VERSION = '0.1.0';
17
17
 
18
18
  // ── Colours ───────────────────────────────────────────────────────────────────
@@ -69,8 +69,8 @@ async function cmdHire(args) {
69
69
 
70
70
  if (!targetId) { console.error(err('Usage: ajp hire <provenance_id> --instruction <text>')); process.exit(1); }
71
71
  if (!instruction) { console.error(err('--instruction required')); process.exit(1); }
72
- if (!privateKey) { console.error(err('PROVENANCE_PRIVATE_KEY not set. Run: npx provenance keygen')); process.exit(1); }
73
- if (!provenanceId) { console.error(err('PROVENANCE_ID not set. Run: npx provenance register')); process.exit(1); }
72
+ if (!privateKey) { console.error(err('PROVENANCE_PRIVATE_KEY not set. Run: npx provenance-protocol keygen')); process.exit(1); }
73
+ if (!provenanceId) { console.error(err('PROVENANCE_ID not set. Run: npx provenance-protocol register')); process.exit(1); }
74
74
 
75
75
  console.log(`\n${amb('Hiring')} ${hi(targetId)}...\n`);
76
76
 
@@ -196,8 +196,8 @@ ${amb('Commands:')}
196
196
  --endpoint <url> The agent's AJP endpoint URL
197
197
 
198
198
  ${amb('Environment variables:')}
199
- PROVENANCE_ID Your Provenance ID (set up with: npx provenance register)
200
- PROVENANCE_PRIVATE_KEY Your Ed25519 private key (set up with: npx provenance keygen)
199
+ PROVENANCE_ID Your Provenance ID (set up with: npx provenance-protocol register)
200
+ PROVENANCE_PRIVATE_KEY Your Ed25519 private key (set up with: npx provenance-protocol keygen)
201
201
  PROVENANCE_API_URL Override Provenance API base URL
202
202
 
203
203
  ${amb('Examples:')}
@@ -208,8 +208,8 @@ ${amb('Examples:')}
208
208
  ajp jobs job_m0abc123 --endpoint https://alice-agent.example.com/api/agent
209
209
 
210
210
  ${amb('Identity setup (first time):')}
211
- npx provenance keygen
212
- npx provenance register --id provenance:github:your-org/your-agent --url <url>
211
+ npx provenance-protocol keygen
212
+ npx provenance-protocol register --id provenance:github:your-org/your-agent --url <url>
213
213
  ${dim('Then set PROVENANCE_ID and PROVENANCE_PRIVATE_KEY in your environment.')}
214
214
  `);
215
215
  }
package/package.json CHANGED
@@ -1,17 +1,26 @@
1
1
  {
2
2
  "name": "@ilucky21c/ajp-cli",
3
- "version": "0.1.0",
4
- "description": "CLI for the Agent Job Protocol — hire agents and check job status from the terminal",
3
+ "version": "0.1.1",
4
+ "description": "CLI for the Agent Job Protocol \u2014 hire agents and check job status from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "ajp": "./index.js"
8
8
  },
9
- "engines": { "node": ">=18" },
9
+ "engines": {
10
+ "node": ">=18"
11
+ },
10
12
  "repository": {
11
13
  "type": "git",
12
14
  "url": "git+https://github.com/ilucky21c/ajp-protocol.git",
13
15
  "directory": "cli"
14
16
  },
15
- "keywords": ["ajp", "agent-job-protocol", "provenance", "ai", "agents", "cli"],
17
+ "keywords": [
18
+ "ajp",
19
+ "agent-job-protocol",
20
+ "provenance",
21
+ "ai",
22
+ "agents",
23
+ "cli"
24
+ ],
16
25
  "license": "MIT"
17
26
  }