create-metamynd-agent 0.14.6 → 0.14.7
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/index.mjs +9 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -225,7 +225,8 @@ ${c.b('Options')}
|
|
|
225
225
|
--force, -f Scaffold into a non-empty directory, overwriting existing files
|
|
226
226
|
--api <url> API base (default ${DEFAULT_API})
|
|
227
227
|
--email <email> Owner login email
|
|
228
|
-
--password <pw> Owner password (prefer the interactive prompt or METAMYND_PASSWORD)
|
|
228
|
+
--password <pw> Owner password (prefer the interactive prompt or METAMYND_PASSWORD).
|
|
229
|
+
One session per account: logging in signs it out of the dashboard.
|
|
229
230
|
--name <name> Agent name (e.g. "Support Bot")
|
|
230
231
|
--scope <scope> Mandate action scope (e.g. flight-purchase)
|
|
231
232
|
--per-txn-max <n> Per-transaction cap (default 500)
|
|
@@ -3764,9 +3765,15 @@ async function authFlow(args) {
|
|
|
3764
3765
|
const login = await apiPost(base, '/auth/login', { username: email, password }, null);
|
|
3765
3766
|
const token = login?.data?.accessToken;
|
|
3766
3767
|
if (!token) fail('Login succeeded but no access token was returned.');
|
|
3768
|
+
console.log(c.dim(` ${SESSION_REPLACED_NOTE}`));
|
|
3767
3769
|
return { base, token, email };
|
|
3768
3770
|
}
|
|
3769
3771
|
|
|
3772
|
+
// One session per account: a CLI login replaces the account's dashboard session (the dashboard then answers
|
|
3773
|
+
// SESSION_REPLACED and explains). Said up front so it is not a surprise (item 14 of the 2026-10-02 open items).
|
|
3774
|
+
const SESSION_REPLACED_NOTE =
|
|
3775
|
+
'Note: an account has one session at a time, so this login signs that account out of the MetaMynd dashboard in your browser. Sign in there again afterwards.';
|
|
3776
|
+
|
|
3770
3777
|
const REQUEST_STATE_FILE = 'metamynd-request.json';
|
|
3771
3778
|
|
|
3772
3779
|
// --request: a developer requests an agent for an owner's org (the owner approves in the dashboard).
|
|
@@ -3971,6 +3978,7 @@ async function main() {
|
|
|
3971
3978
|
const token = login?.data?.accessToken;
|
|
3972
3979
|
if (!token) { rl?.close(); fail('Login succeeded but no access token was returned.'); }
|
|
3973
3980
|
console.log(` ${c.green('✓')} authenticated as ${email}`);
|
|
3981
|
+
console.log(c.dim(` ${SESSION_REPLACED_NOTE}`));
|
|
3974
3982
|
|
|
3975
3983
|
// 2. Agent details — a --config file's fields are the default at every prompt/flag below.
|
|
3976
3984
|
const name = await pick('name', null, 'Agent name', fileConfig?.name ?? 'Support Bot');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-metamynd-agent",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.7",
|
|
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": {
|