@twin3-ai/agent-id 0.3.3 → 0.3.4

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/bin/agent-id.js +19 -0
  2. package/package.json +1 -1
package/bin/agent-id.js CHANGED
@@ -1316,6 +1316,7 @@ async function runCli(argv) {
1316
1316
  " agent-id workflow-router [url] [--intent <intent>]",
1317
1317
  " agent-id package-review [url]",
1318
1318
  " agent-id google-alignment",
1319
+ " agent-id google-identity-bridge [evidence-json-file] [--agent-id <agt_...>]",
1319
1320
  " agent-id trust-stack",
1320
1321
  " agent-id pricing",
1321
1322
  " agent-id billing-guide",
@@ -1510,6 +1511,17 @@ async function runCli(argv) {
1510
1511
  }
1511
1512
  if (cmd === "package-review") return print(await get(url ? `/api/agent/package_review?url=${encodeURIComponent(url)}` : "/api/agent/package_review"));
1512
1513
  if (cmd === "google-alignment") return print(await get("/api/agent/google_alignment"));
1514
+ if (cmd === "google-identity-bridge") {
1515
+ const twin3AgentId = readFlagValue(argv, "--agent-id") || "agt_0000";
1516
+ if (!url) {
1517
+ return print(await get(`/api/agent/google_identity_bridge?twin3_agent_id=${encodeURIComponent(twin3AgentId)}`));
1518
+ }
1519
+ const evidence = JSON.parse(fs.readFileSync(url, "utf8"));
1520
+ return print(await post("/api/agent/google_identity_bridge", {
1521
+ twin3_agent_id: twin3AgentId,
1522
+ evidence
1523
+ }));
1524
+ }
1513
1525
  if (cmd === "trust-stack") return print(await get("/api/agent/trust_stack"));
1514
1526
  if (cmd === "pricing") return print(await get("/api/agent/pricing"));
1515
1527
  if (cmd === "billing-guide") return print(await get("/api/agent/billing_guide"));
@@ -3122,6 +3134,7 @@ async function handleMcpLine(line) {
3122
3134
  { name: "w1_workflow_router", description: "Route an Agent request to the right executable AEO workflow without overclaiming.", inputSchema: { type: "object", properties: { url: { type: "string" }, intent: { type: "string" }, evidence: { type: "object" } } } },
3123
3135
  { name: "s2_package_review", description: "Return an Agent marketplace review of capabilities, credentials, permissions, metadata consistency, and claim boundaries.", inputSchema: { type: "object", properties: { url: { type: "string" }, public_metadata: { type: "object" }, setup_metadata: { type: "object" } } } },
3124
3136
  { name: "google_cloud_alignment", description: "Return Google Cloud Enterprise Agent Platform alignment.", inputSchema: { type: "object", properties: {} } },
3137
+ { name: "google_agent_identity_bridge", description: "Prepare Google Agent Identity onboarding or validate an unverified effectiveIdentity binding candidate without importing Google credentials.", inputSchema: { type: "object", properties: { twin3_agent_id: { type: "string" }, evidence: { type: "object" } } } },
3125
3138
  { name: "trust_commerce_stack", description: "Return the AgentX.ID Passport, SBT, ERC-8004, x402, ERC-8183, and AP2 architecture plan.", inputSchema: { type: "object", properties: {} } },
3126
3139
  { name: "a1_ai_reads", description: "Ingest or summarize real AI crawler read events from HTTP/CDN logs.", inputSchema: { type: "object", properties: { url: { type: "string" }, events: { type: "array" }, logs: { type: "array" }, user_agent: { type: "string" }, status: { type: "number" } } } },
3127
3140
  { name: "a1_ai_read_dashboard", description: "Summarize A1 AI crawler reads into dashboard KPI cards, provider rows, top paths, and failed reads.", inputSchema: { type: "object", properties: { url: { type: "string" }, events: { type: "array" }, logs: { type: "array" }, period: { type: "object" } } } },
@@ -3274,6 +3287,12 @@ async function handleMcpLine(line) {
3274
3287
  if (name === "w1_workflow_router") return send(msg.id, { content: [{ type: "text", text: JSON.stringify(await post("/api/agent/workflow_router", args), null, 2) }] });
3275
3288
  if (name === "s2_package_review") return send(msg.id, { content: [{ type: "text", text: JSON.stringify(await post("/api/agent/package_review", args), null, 2) }] });
3276
3289
  if (name === "google_cloud_alignment") return send(msg.id, { content: [{ type: "text", text: JSON.stringify(await get("/api/agent/google_alignment"), null, 2) }] });
3290
+ if (name === "google_agent_identity_bridge") {
3291
+ const out = args.evidence
3292
+ ? await post("/api/agent/google_identity_bridge", args)
3293
+ : await get(`/api/agent/google_identity_bridge?twin3_agent_id=${encodeURIComponent(args.twin3_agent_id || "agt_0000")}`);
3294
+ return send(msg.id, { content: [{ type: "text", text: JSON.stringify(out, null, 2) }] });
3295
+ }
3277
3296
  if (name === "trust_commerce_stack") return send(msg.id, { content: [{ type: "text", text: JSON.stringify(await get("/api/agent/trust_stack"), null, 2) }] });
3278
3297
  if (name === "a1_ai_reads") {
3279
3298
  const hasEvents = Array.isArray(args.events) || Array.isArray(args.logs) || args.user_agent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin3-ai/agent-id",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Domain-bound Agent identity, AEO evidence, and website-Agent integration SDK.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,