create-metamynd-agent 0.14.31 → 0.14.34

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 +13 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -82,7 +82,13 @@ const GUARD_PKG = '@metamynd/agentsafe-guard';
82
82
  // it with a full-amount capture. Required: every scaffolded agent calls its gateway, which claims and settles.
83
83
  // 0.28.0: .resume() takes the approval's one resume at the issuer, so two processes resuming it cannot both run the tool.
84
84
  // Required: npm run resume relies on it (its file rename only covers one machine's working directory).
85
- const GUARD_VERSION = '^0.28.0';
85
+ // 0.29.0: .resume() runs only the CONTEXT the owner approved too (the escalation's contextDigest), so an approval of one
86
+ // operation cannot be resumed as another. Required: with an issuer that binds it, the gateway claim needs the same context.
87
+ // 0.30.0: a local permit or containment refusal is only given on a bundle at most lifecycleMaxAgeMs (5 s) old, so a
88
+ // suspension or reinstatement reaches a running agent within seconds, not within the bundle's 10-minute maxStaleness.
89
+ // 0.31.0: a guarded tool's decision carries governanceHeaders() — the signed request and its authorization, ready for a
90
+ // gateway — so a tool no longer rebuilds and re-signs it. The scaffold's own gateway calls still build it themselves.
91
+ const GUARD_VERSION = '^0.31.0';
86
92
  /** The harness entry point's config load, shared by both harness templates: a fresh clone has no
87
93
  * agent.metamynd.json (it is gitignored), so say what to do instead of a bare ENOENT (BR-004). */
88
94
  function harnessConfigLoad() {
@@ -163,7 +169,10 @@ const MCP_GUARD_PKG = '@metamynd/agentsafe-mcp-guard';
163
169
  // 0.25.0: honourApprovals — a Service without requireAuthorization (the value-less gateway) still runs an owner-approved
164
170
  // escalation, exactly once (MAGP §8.7.18). Required: the non-financial gateway sets it and asserts guard.honoursApprovals.
165
171
  // 0.26.0: a gateway judges the same derived risk floor as the gate (owner tier + amount share of the cap).
166
- const MCP_GUARD_VERSION = '^0.26.0';
172
+ // 0.27.0: a claim of a person-approved hold states the digest of the context it executes (MAGP §9a.5), and a grant naming
173
+ // another (or none) is released and refused. Required: the issuer refuses AUTHORIZATION_CONTEXT_REQUIRED to a claimer that
174
+ // states none, so an older gateway could no longer run an approved escalation.
175
+ const MCP_GUARD_VERSION = '^0.27.0';
167
176
  /** A DID as it may appear inside a generated string literal (the gateway's allowedAgents pin): no quote, backslash or space. */
168
177
  const SAFE_DID = /^did:[a-z0-9]+:[A-Za-z0-9._:%-]+$/;
169
178
  const GATEWAY_PKG = '@metamynd/agentsafe-http-gateway';
@@ -196,7 +205,8 @@ const GATEWAY_PKG = '@metamynd/agentsafe-http-gateway';
196
205
  // 0.23.0: refusals aggregated with their count, and `reportSpool` (both hosted templates set it); depends on agentsafe-mcp-guard ^0.24.0.
197
206
  // 0.24.0: depends on agentsafe-mcp-guard ^0.25.0 (one guard in the tree with MCP_GUARD_VERSION above). No template change.
198
207
  // 0.25.0: depends on agentsafe-mcp-guard ^0.26.0 (one guard in the tree). No template change.
199
- const GATEWAY_VERSION = '^0.25.0';
208
+ // 0.26.0: depends on agentsafe-mcp-guard ^0.27.0 (the approved-context binding). Required with MCP_GUARD_VERSION above.
209
+ const GATEWAY_VERSION = '^0.26.0';
200
210
 
201
211
  /** Appended to every scaffolded gateway server: give hold settlements still running a bounded moment on shutdown. */
202
212
  const DRAIN_ON_SHUTDOWN = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-metamynd-agent",
3
- "version": "0.14.31",
3
+ "version": "0.14.34",
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": {