@justhandledlabs/agent-client 0.5.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.
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://justhandledlabs.com/agent-gateway/). The package exposes twenty-six deterministic preflights, maintained-data lookups, and evidence products. Twenty-two products cost $0.05 USDC; four evidence-heavy products cost $0.25, including the Agent Distribution Readiness Pack. 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-seven deterministic preflights, maintained-data lookups, and evidence products. Twenty-two products cost $0.05 USDC; five evidence-heavy products cost $0.25, including Agent Distribution Readiness and Community Rule & Credibility Preflight. 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
 
@@ -11,6 +11,7 @@ npx --package @justhandledlabs/agent-client justhandled-agent catalog
11
11
  npx --package @justhandledlabs/agent-client justhandled-agent preview filename-portability-preflight --json '{"paths":["CON.txt"]}'
12
12
  npx --package @justhandledlabs/agent-client justhandled-agent preview agent-run-evidence-pack --file agent-run-evidence-pack.sample.json
13
13
  npx --package @justhandledlabs/agent-client justhandled-agent preview agent-distribution-readiness-pack --file agent-distribution-readiness-pack.sample.json
14
+ npx --package @justhandledlabs/agent-client justhandled-agent preview community-rule-credibility-preflight --file community-rule-credibility-preflight.sample.json
14
15
  ```
15
16
 
16
17
  Preview performs an unpaid request and validates the returned x402 terms. It does not sign or spend.
@@ -58,7 +59,7 @@ The package declares the official MCP Registry identity `io.github.justhandledla
58
59
  ## Security model
59
60
 
60
61
  - Price, chain, asset, receiver, and gateway origin are pinned in code.
61
- - The four $0.25 products' 250,000-base-unit price is pinned separately from 50,000-base-unit checks.
62
+ - The five $0.25 products' 250,000-base-unit price is pinned separately from 50,000-base-unit checks.
62
63
  - Every execution starts with an unpaid 402 preview.
63
64
  - A mismatched term aborts before signing.
64
65
  - The package never prints the private key.
package/dist/config.js CHANGED
@@ -12,6 +12,7 @@ export const QUARTER_DOLLAR_UTILITIES = new Set([
12
12
  "chicago-demolition-permit-change-packet",
13
13
  "site-discovery-change-packet",
14
14
  "agent-distribution-readiness-pack",
15
+ "community-rule-credibility-preflight",
15
16
  ]);
16
17
  export function expectedPriceForUtility(utility) {
17
18
  return QUARTER_DOLLAR_UTILITIES.has(utility) ? AGENT_RUN_EVIDENCE_PACK_PRICE_USDC : PRICE_USDC;
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.5.0" }, { capabilities: { tools: {} } });
6
+ const server = new Server({ name: "justhandled-agent-gateway", version: "0.6.0" }, { capabilities: { tools: {} } });
7
7
  server.setRequestHandler(ListToolsRequestSchema, async () => {
8
8
  const catalog = await getCatalog();
9
9
  return {
@@ -0,0 +1,32 @@
1
+ {
2
+ "observed_at": "2026-08-01T22:00:00Z",
3
+ "channel": "show-hn",
4
+ "action": {
5
+ "type": "launch",
6
+ "promotes_own_product": true,
7
+ "generated_or_ai_edited_text": false,
8
+ "asks_for_votes": false,
9
+ "asks_for_comments": false,
10
+ "paid_hunter_or_traffic": false,
11
+ "shortened_or_redirected_link": false,
12
+ "claims_supported": true,
13
+ "repeated_or_unsolicited": false,
14
+ "redirect_intended_to_bypass_block": false,
15
+ "live_product": true,
16
+ "tryable_without_signup": true,
17
+ "founder_available": true,
18
+ "non_trivial_product": true,
19
+ "landing_page_only": false,
20
+ "pricing_transparent": true,
21
+ "link_url": "https://example.com/product",
22
+ "unique_value_evidence": "Public runnable product and release evidence."
23
+ },
24
+ "account": {
25
+ "identity_type": "person",
26
+ "primary_use_is_promotion": false,
27
+ "age_days": 365,
28
+ "community_karma": 100,
29
+ "community_contributions": 50,
30
+ "promotional_contributions": 2
31
+ }
32
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justhandledlabs/agent-client",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Guarded CLI and MCP client for JustHandled's x402 utility gateway",
5
5
  "type": "module",
6
6
  "license": "MIT",
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-six guarded pay-per-call preflights and evidence products over USDC x402.",
6
- "version": "0.5.0",
5
+ "description": "Twenty-seven guarded pay-per-call preflights and evidence products over USDC x402.",
6
+ "version": "0.6.0",
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.5.0",
15
+ "version": "0.6.0",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },