create-metamynd-agent 0.12.2 → 0.12.6
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 +8 -5
- package/index.mjs +18 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,11 +10,14 @@ default, a second `gateway/` process** built on
|
|
|
10
10
|
The agent's own `guardTool()` call is a fast, local, client-side check; the gateway is the real
|
|
11
11
|
enforcement boundary — see [Separate tool gateway](#separate-tool-gateway-default) below.
|
|
12
12
|
|
|
13
|
-
> **Prerequisite:** an agent is always owned by a person/org with a **MetaMynd account**.
|
|
14
|
-
>
|
|
15
|
-
>
|
|
16
|
-
>
|
|
17
|
-
>
|
|
13
|
+
> **Prerequisite:** an agent is always owned by a person/org with a **MetaMynd account**. The hosted
|
|
14
|
+
> flow provisions under your account's **verified principal** (KYC/KYB; on a beta deployment the
|
|
15
|
+
> platform can auto-approve one on first use) — if there is none, provisioning stops with "complete
|
|
16
|
+
> KYC/KYB first". That is all it needs: this CLI always provisions **Testnet** agents, so mainnet
|
|
17
|
+
> eligibility is not required. A mainnet agent is launched from the dashboard's **Launchpad**
|
|
18
|
+
> (`/dashboard/launchpad`) and needs a **mainnet-eligible** principal (verified by the identity
|
|
19
|
+
> provider, or reviewed by a person on the platform's team). `--harness` and `--sandbox` need no
|
|
20
|
+
> account or verification at all.
|
|
18
21
|
|
|
19
22
|
## Free local harness (no account, no network, `--harness`)
|
|
20
23
|
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// create-metamynd-agent — scaffold a MetaMynd/AgentSafe-governed agent in one command.
|
|
3
3
|
//
|
|
4
|
-
// Logs
|
|
4
|
+
// Logs the owner in (provisioning uses the owner's verified principal; the agent is always
|
|
5
|
+
// Testnet — mainnet goes through the dashboard Launchpad), provisions the agent in ONE call
|
|
5
6
|
// (POST /onboarding/agent → identity + mandate + starter SOP + enforced Standards),
|
|
6
7
|
// writes the portable `agent.metamynd.json` and a runnable agent example, PLUS (by default)
|
|
7
8
|
// a separate `gateway/` process — a second, independent guard that re-verifies every request
|
|
@@ -102,7 +103,13 @@ const MCP_GUARD_PKG = '@metamynd/agentsafe-mcp-guard';
|
|
|
102
103
|
// 0.6.0 brings buildAuthMessage's `resource` field and buildLocalDecisionMessage into this
|
|
103
104
|
// package's own bundled policy-core.mjs (alongside the guard's own 0.10.0) — no scaffolded
|
|
104
105
|
// template code changes, but the floor must still cover the real current version.
|
|
105
|
-
|
|
106
|
+
// 0.13.0: a daemon-held service key (keyProvider: 'daemon') now signs claims and settlements as the gateway's
|
|
107
|
+
// DID instead of claiming anonymously — refused on every mainnet hold before. No template change.
|
|
108
|
+
// 0.14.0: the claim can declare an x402 payment (x402: true) so the issuer observes lowered settlements. No template
|
|
109
|
+
// change (the scaffolded gateways don't pay by x402), but the floor must cover the real current version.
|
|
110
|
+
// 0.15.0: payloadDigestOf/toWireJson exported and refundAuthorization (its own signed `refund` action). No template
|
|
111
|
+
// change (the scaffolded gateways don't refund), but the floor must cover the real current version.
|
|
112
|
+
const MCP_GUARD_VERSION = '^0.15.0';
|
|
106
113
|
const GATEWAY_PKG = '@metamynd/agentsafe-http-gateway';
|
|
107
114
|
// 0.2.0 fixes a confused-deputy gap (payload not bound to the signed request) — the CLI must
|
|
108
115
|
// never scaffold a range that could resolve below it.
|
|
@@ -114,7 +121,10 @@ const GATEWAY_PKG = '@metamynd/agentsafe-http-gateway';
|
|
|
114
121
|
// 0.5.0 adds the OPTIONAL Credential Vault `resolveCredential` hook on createHttpGateway (Module
|
|
115
122
|
// G) — additive and backward-compatible (every existing consumer sees zero behavior change), but
|
|
116
123
|
// the floor must still cover the real current version per this repo's own package-version check.
|
|
117
|
-
|
|
124
|
+
// 0.12.0: per-route `x402: true` declares an x402 payment on the claim. No template change.
|
|
125
|
+
// 0.13.0: a configured resolveCredential that refuses now FAILS CLOSED (502 CREDENTIAL_UNAVAILABLE) instead of forwarding
|
|
126
|
+
// without a credential. No template change (the scaffolded gateway does not use the Credential Vault).
|
|
127
|
+
const GATEWAY_VERSION = '^0.13.0';
|
|
118
128
|
const DEFAULT_API = 'https://metamynd.ai/api/v1';
|
|
119
129
|
const DEFAULT_GATEWAY_PORT = 4401; // distinct from --harness's dashboard (4400)
|
|
120
130
|
|
|
@@ -219,11 +229,13 @@ ${c.b('Environment')}
|
|
|
219
229
|
${c.b('Network')}
|
|
220
230
|
Every hosted agent this CLI provisions is a ${c.b('Testnet')} agent, whatever your verification status —
|
|
221
231
|
there is deliberately no mainnet flag. To launch a ${c.b('Mainnet')} agent, use the Launchpad in the
|
|
222
|
-
dashboard (https://metamynd.ai/dashboard/launchpad): its Mainnet option
|
|
223
|
-
|
|
232
|
+
dashboard (https://metamynd.ai/dashboard/launchpad): its Mainnet option needs a mainnet-eligible
|
|
233
|
+
principal (verified by the identity provider, or reviewed by a person on the platform's team).
|
|
224
234
|
|
|
225
235
|
${c.b('What it does')}
|
|
226
|
-
1. Logs in as
|
|
236
|
+
1. Logs in as the owner → owner access token
|
|
237
|
+
(provisioning uses your account's verified principal — KYC/KYB, or one the platform
|
|
238
|
+
auto-approves on a beta deployment; mainnet eligibility is NOT needed for Testnet)
|
|
227
239
|
2. POST /onboarding/agent (one call) → identity + mandate + SOP + Standards
|
|
228
240
|
3. Writes agent.metamynd.json + index.mjs, PLUS (by default) a separate gateway/ process —
|
|
229
241
|
the real enforcement boundary, not index.mjs's own guard.guardTool() call. --no-gateway
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-metamynd-agent",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "Scaffold a MetaMynd/AgentSafe-governed AI agent in one command — logs in, provisions the agent (identity + mandate + SOP + Standards) in a single call, writes agent.metamynd.json plus a runnable agent + separate tool-gateway process that closes direct-call, confused-deputy, replay, and cumulative-spend bypasses. --harness scaffolds a free, local, zero-network governance harness instead.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|