@justhandledlabs/agent-client 0.3.0 → 0.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # JustHandled Agent Client
2
2
 
3
- A guarded CLI, JavaScript client, and local MCP server for the [JustHandled Agent Utility Gateway](https://justhandled-agent-gateway.netlify.app). The package exposes twenty deterministic preflights and evidence products. Nineteen individual checks cost $0.05 USDC; the consolidated six-check Agent Run Evidence Pack costs $0.25. Every paid call returns a versioned evidence receipt.
3
+ A guarded CLI, JavaScript client, and local MCP server for the [JustHandled Agent Utility Gateway](https://justhandledlabs.com/agent-gateway/). The package exposes twenty-five deterministic preflights, maintained-data lookups, and evidence products. Twenty-two products cost $0.05 USDC; the Chicago permit change packet, site-discovery change packet, and consolidated six-check Agent Run Evidence Pack cost $0.25. Every paid call returns a versioned evidence receipt.
4
4
 
5
5
  The client fails closed before signing. It accepts only the pinned JustHandled gateway, Base mainnet, canonical Base USDC, the exact per-product price, and the published merchant receiver. Customer inputs are not persisted by the gateway.
6
6
 
@@ -57,7 +57,7 @@ The package declares the official MCP Registry identity `io.github.justhandledla
57
57
  ## Security model
58
58
 
59
59
  - Price, chain, asset, receiver, and gateway origin are pinned in code.
60
- - The Agent Run Evidence Pack's 250,000-base-unit price is pinned separately from 50,000-base-unit individual checks.
60
+ - The three $0.25 products' 250,000-base-unit price is pinned separately from 50,000-base-unit checks.
61
61
  - Every execution starts with an unpaid 402 preview.
62
62
  - A mismatched term aborts before signing.
63
63
  - The package never prints the private key.
package/dist/config.d.ts CHANGED
@@ -7,6 +7,7 @@ export declare const PRICE_USDC = "$0.05";
7
7
  export declare const AGENT_RUN_EVIDENCE_PACK = "agent-run-evidence-pack";
8
8
  export declare const AGENT_RUN_EVIDENCE_PACK_BASE_UNITS = "250000";
9
9
  export declare const AGENT_RUN_EVIDENCE_PACK_PRICE_USDC = "$0.25";
10
+ export declare const QUARTER_DOLLAR_UTILITIES: Set<string>;
10
11
  export declare function expectedPriceForUtility(utility: string): string;
11
12
  export declare function expectedBaseUnitsForUtility(utility: string): string;
12
13
  export interface UtilityCatalogItem {
package/dist/config.js CHANGED
@@ -7,9 +7,14 @@ export const PRICE_USDC = "$0.05";
7
7
  export const AGENT_RUN_EVIDENCE_PACK = "agent-run-evidence-pack";
8
8
  export const AGENT_RUN_EVIDENCE_PACK_BASE_UNITS = "250000";
9
9
  export const AGENT_RUN_EVIDENCE_PACK_PRICE_USDC = "$0.25";
10
+ export const QUARTER_DOLLAR_UTILITIES = new Set([
11
+ AGENT_RUN_EVIDENCE_PACK,
12
+ "chicago-demolition-permit-change-packet",
13
+ "site-discovery-change-packet",
14
+ ]);
10
15
  export function expectedPriceForUtility(utility) {
11
- return utility === AGENT_RUN_EVIDENCE_PACK ? AGENT_RUN_EVIDENCE_PACK_PRICE_USDC : PRICE_USDC;
16
+ return QUARTER_DOLLAR_UTILITIES.has(utility) ? AGENT_RUN_EVIDENCE_PACK_PRICE_USDC : PRICE_USDC;
12
17
  }
13
18
  export function expectedBaseUnitsForUtility(utility) {
14
- return utility === AGENT_RUN_EVIDENCE_PACK ? AGENT_RUN_EVIDENCE_PACK_BASE_UNITS : PRICE_BASE_UNITS;
19
+ return QUARTER_DOLLAR_UTILITIES.has(utility) ? AGENT_RUN_EVIDENCE_PACK_BASE_UNITS : PRICE_BASE_UNITS;
15
20
  }
package/dist/mcp.js CHANGED
@@ -3,7 +3,7 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
5
5
  import { getCatalog, runPaidUtility } from "./client.js";
6
- const server = new Server({ name: "justhandled-agent-gateway", version: "0.3.0" }, { capabilities: { tools: {} } });
6
+ const server = new Server({ name: "justhandled-agent-gateway", version: "0.4.1" }, { capabilities: { tools: {} } });
7
7
  server.setRequestHandler(ListToolsRequestSchema, async () => {
8
8
  const catalog = await getCatalog();
9
9
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justhandledlabs/agent-client",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Guarded CLI and MCP client for JustHandled's x402 utility gateway",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/justhandledlabs/justhandled-agent-client.git"
11
11
  },
12
- "homepage": "https://justhandled-agent-gateway.netlify.app",
12
+ "homepage": "https://justhandledlabs.com/agent-gateway/",
13
13
  "bugs": {
14
14
  "url": "https://github.com/justhandledlabs/justhandled-agent-client/issues"
15
15
  },
package/server.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.justhandledlabs/agent-gateway",
4
4
  "title": "JustHandled Agent Utility Gateway",
5
- "description": "Twenty deterministic preflights and evidence products with guarded per-product USDC x402 execution.",
6
- "version": "0.3.0",
5
+ "description": "Twenty-five guarded pay-per-call preflights and evidence products over USDC x402.",
6
+ "version": "0.4.1",
7
7
  "repository": {
8
8
  "url": "https://github.com/justhandledlabs/justhandled-agent-client",
9
9
  "source": "github"
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "@justhandledlabs/agent-client",
15
- "version": "0.3.0",
15
+ "version": "0.4.1",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },