agent-clinch 0.2.0 → 0.6.0

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 (3) hide show
  1. package/README.md +6 -5
  2. package/cli.js +2 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  > **Agent Negotiation Protocol — Terminal Client & Autonomous Agent Q**
4
4
 
5
- The Clinch CLI is the official reference implementation of a Clinch Protocol buyer agent. It allows you to discover sellers, negotiate deals interactively, or dispatch an autonomous local AI agent ("Agent Q") to haggle on your behalf—right from your terminal.
5
+ The Clinch CLI is the official reference implementation of a Clinch Protocol buyer agent. It allows you to discover sellers, negotiate deals interactively, or dispatch an autonomous local AI agent using "Agent Q" (agent query) to haggle on your behalf—right from your terminal.
6
6
 
7
- By keeping the execution edge-first, all cryptographic keys, session transcripts, downloaded models, and deal artifacts are stored strictly on your local machine. With robust state serialization, you can even close your terminal and resume dropped or asynchronous negotiations later.
7
+ By keeping the execution edge-first, all cryptographic keys, session transcripts, downloaded models, and dynamic session states are stored strictly on your local machine. With robust state serialization, you can even close your terminal and resume dropped or asynchronous negotiations later.
8
8
 
9
9
  ---
10
10
 
@@ -91,7 +91,7 @@ clinch sessions
91
91
 
92
92
  Resume a specific session and listen for webhooks/callbacks:
93
93
  ```bash
94
- clinch resume sess_a1b2c3d4 --auto
94
+ clinch resume <sessionId> --auto
95
95
  ```
96
96
 
97
97
  ---
@@ -100,7 +100,7 @@ clinch resume sess_a1b2c3d4 --auto
100
100
 
101
101
  ### `clinch init [options]`
102
102
  Initializes the agent and performs network registration.
103
- * `--registry <url>`: Override the default dynamic router (Useful for local testing).
103
+ * `--registry <url>`: Override the default dynamic registry configuration (Useful for local testing).
104
104
  * `--model <path>`: Specify a custom path for the `.gguf` model file.
105
105
 
106
106
  ### `clinch query <category> [options]`
@@ -127,5 +127,6 @@ Rehydrates a specific session's state and cryptographic keys into memory to cont
127
127
  The Clinch CLI operates on a strict zero-trust, edge-first model. Your data never leaves your machine unless explicitly sent as a constraint during a session.
128
128
 
129
129
  All state is stored locally in your home directory (`~/.clinch/`):
130
- * `config.json`: Your identity keys and JWT token. **Do not share this file.**
130
+ * `config.json`: Your identity keys, Registry authorization token, and preferences. **Do not share this file.**
131
131
  * `sessions.json`: Local transcripts, current turns, constraint vectors, and the ephemeral Ed25519 session keys necessary to prove your identity during resumed negotiations.
132
+ * `deals.json`: Placeholder for cryptographically signed deal artifacts (Implementation upcoming).
package/cli.js CHANGED
@@ -13,6 +13,7 @@ const readline = require('readline');
13
13
  const CONFIG_DIR = path.join(os.homedir(), '.clinch');
14
14
  const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
15
15
  const SESSIONS_FILE = path.join(CONFIG_DIR, 'sessions.json');
16
+ const DEALS_FILE = path.join(CONFIG_DIR, 'deals.json'); // Restored
16
17
 
17
18
  // ── Persistence Helpers ───────────────────────────────────────
18
19
  function loadConfig() {
@@ -402,6 +403,6 @@ program
402
403
  program
403
404
  .name('clinch')
404
405
  .description('Clinch Protocol — Agent Negotiation CLI')
405
- .version('0.2.0');
406
+ .version('0.4.0');
406
407
 
407
408
  program.parse();
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
  "name": "agent-clinch",
9
- "version": "0.2.0",
9
+ "version": "0.6.0",
10
10
  "description": "Clinch Protocol CLI — agent negotiation from your terminal",
11
11
  "main": "cli.js",
12
12
  "bin": {
@@ -19,6 +19,6 @@
19
19
  "dependencies": {
20
20
  "commander": "^14.0.3",
21
21
  "node-llama-cpp": "^3.18.1",
22
- "clinch-core": "0.2.0"
22
+ "clinch-core": "0.6.0"
23
23
  }
24
24
  }