@mnemom/mnemom 0.17.18-next.0 → 0.17.18
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.
|
@@ -44,7 +44,7 @@ import { readConfirmedAgent, readServedAgent, servedFingerprint, writeConfirmedA
|
|
|
44
44
|
import { deriveHashProof } from "./agents.js";
|
|
45
45
|
import { birthThroughGateway } from "./wrap.js";
|
|
46
46
|
import { resolveAnthropicKey } from "./agent.js";
|
|
47
|
-
import { assertCodeEnabled, CodeNotEnabledError } from "./agent-invite.js";
|
|
47
|
+
import { assertCodeEnabled, CodeNotEnabledError, REQUEST_ACCESS_URL } from "./agent-invite.js";
|
|
48
48
|
const say = (line = "") => console.error(line);
|
|
49
49
|
/** The feature names `--governance <list>` accepts (plus `all` / `none`). */
|
|
50
50
|
export const GOVERNANCE_FEATURES = ["integrity", "safe-house"];
|
|
@@ -706,8 +706,9 @@ export async function ensureSessionAndBalance(opts) {
|
|
|
706
706
|
const haveSession = await ensureMnemomSession({ interactive });
|
|
707
707
|
if (!haveSession) {
|
|
708
708
|
throw new Error("mnemom agent needs a Mnemom account — it runs your coding session governed and on your org's µ balance.\n" +
|
|
709
|
-
" Sign in:
|
|
710
|
-
|
|
709
|
+
" Sign in: mnemom login (or set MNEMOM_API_KEY)\n" +
|
|
710
|
+
" Invited? mnemom agent --invite <token> (signs you in and unlocks Mnemom Agent)\n" +
|
|
711
|
+
` No invite? join the waitlist at ${REQUEST_ACCESS_URL}`);
|
|
711
712
|
}
|
|
712
713
|
const active = getActiveOrg();
|
|
713
714
|
const orgId = active?.org_id ?? (await getMyPersonalOrg()).org_id;
|