create-metamynd-agent 0.13.0 → 0.13.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.
Files changed (2) hide show
  1. package/index.mjs +10 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -56,7 +56,9 @@ const GUARD_PKG = '@metamynd/agentsafe-guard';
56
56
  // non-USD agent's `npm test` needs.
57
57
  // 0.16.0 signs an optional top-level `jurisdiction` (MAGP 8.3.12, the v2 message) — the scaffolded non-financial agent
58
58
  // passes a request's jurisdiction that way, since the gate no longer reads one from the unsigned context.
59
- const GUARD_VERSION = '^0.16.0';
59
+ // 0.17.0 signs the agent's context (envelopeSignature, MAGP 8.3.13) by default; the scaffolded agent gets it with no template
60
+ // change (signContext: false opts out). A daemon-custody agent needs agentsafe-signer >= 0.19.0 for its no-amount requests.
61
+ const GUARD_VERSION = '^0.17.0';
60
62
  /** The harness entry point's config load, shared by both harness templates: a fresh clone has no
61
63
  * agent.metamynd.json (it is gitignored), so say what to do instead of a bare ENOENT (BR-004). */
62
64
  function harnessConfigLoad() {
@@ -113,7 +115,9 @@ const MCP_GUARD_PKG = '@metamynd/agentsafe-mcp-guard';
113
115
  // change (the scaffolded gateways don't refund), but the floor must cover the real current version.
114
116
  // 0.16.0: verifies a v2 (signed-jurisdiction) request and judges jurisdiction rules on the signed value only. Required:
115
117
  // the scaffolded agent now signs jurisdiction, which an older gateway would refuse SIGNATURE_INVALID.
116
- const MCP_GUARD_VERSION = '^0.16.0';
118
+ // 0.17.0: verifies the agent's context signature (envelopeSignature) before judging its itinerary, and a
119
+ // requireContextSignature option. No template change (the scaffolded agent does not sign its context by default).
120
+ const MCP_GUARD_VERSION = '^0.17.0';
117
121
  const GATEWAY_PKG = '@metamynd/agentsafe-http-gateway';
118
122
  // 0.2.0 fixes a confused-deputy gap (payload not bound to the signed request) — the CLI must
119
123
  // never scaffold a range that could resolve below it.
@@ -129,7 +133,9 @@ const GATEWAY_PKG = '@metamynd/agentsafe-http-gateway';
129
133
  // 0.13.0: a configured resolveCredential that refuses now FAILS CLOSED (502 CREDENTIAL_UNAVAILABLE) instead of forwarding
130
134
  // without a credential. No template change (the scaffolded gateway does not use the Credential Vault).
131
135
  // 0.14.0: depends on agentsafe-mcp-guard ^0.16.0 (verifies a signed-jurisdiction request). No template change.
132
- const GATEWAY_VERSION = '^0.14.0';
136
+ // 0.15.0: depends on agentsafe-mcp-guard ^0.17.0 (context signature verified) and a requireContextSignature option.
137
+ // No template change.
138
+ const GATEWAY_VERSION = '^0.15.0';
133
139
  const DEFAULT_API = 'https://metamynd.ai/api/v1';
134
140
  const DEFAULT_GATEWAY_PORT = 4401; // distinct from --harness's dashboard (4400)
135
141
 
@@ -1701,7 +1707,7 @@ function exampleReadme(slug, scope, withGateway, gatewayPort, daemonKey = false)
1701
1707
  const configFileLine = daemonKey
1702
1708
  ? `- \`agent.metamynd.json\` — your portable guard config (identity, mandate scope \`${scope}\`, issuer keys).
1703
1709
  **Holds no secret key.** Signing goes through your already-running agentsafe-signer daemon
1704
- (\`daemonSocketPath\`) instead — see \`docs/integration/INSTALL-AGENTSAFE-SIGNER.md\`.${withGateway ? ' Payload binding is on by default and signs through the daemon too, which needs agentsafe-signer 0.15.0 or later.' : ''}`
1710
+ (\`daemonSocketPath\`) instead — see \`docs/integration/INSTALL-AGENTSAFE-SIGNER.md\`. Context signing (on by default) signs through the daemon too; use agentsafe-signer 0.19.0 or later (an older one refuses this agent's no-amount requests with CONTEXT_SIGNING_UNSUPPORTED).${withGateway ? ' Payload binding is on by default and signs through the daemon too, which needs agentsafe-signer 0.15.0 or later.' : ''}`
1705
1711
  : `- \`agent.metamynd.json\` — your portable guard config (identity, mandate scope \`${scope}\`, issuer keys).
1706
1712
  **Contains the agent's secret key — never commit it.** It is already in \`.gitignore\`.`;
1707
1713
  const gatewaySection = withGateway
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-metamynd-agent",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
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": {