@mmnto/cli 1.113.1 → 1.115.0

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 (90) hide show
  1. package/dist/commands/doctor-seat-identity.d.ts +71 -0
  2. package/dist/commands/doctor-seat-identity.d.ts.map +1 -0
  3. package/dist/commands/doctor-seat-identity.js +352 -0
  4. package/dist/commands/doctor-seat-identity.js.map +1 -0
  5. package/dist/commands/doctor-seat-identity.test.d.ts +13 -0
  6. package/dist/commands/doctor-seat-identity.test.d.ts.map +1 -0
  7. package/dist/commands/doctor-seat-identity.test.js +230 -0
  8. package/dist/commands/doctor-seat-identity.test.js.map +1 -0
  9. package/dist/commands/doctor.d.ts.map +1 -1
  10. package/dist/commands/doctor.js +3 -0
  11. package/dist/commands/doctor.js.map +1 -1
  12. package/dist/commands/doctor.test.js +1 -0
  13. package/dist/commands/doctor.test.js.map +1 -1
  14. package/dist/commands/ecl-gc.d.ts.map +1 -1
  15. package/dist/commands/ecl-gc.js +18 -7
  16. package/dist/commands/ecl-gc.js.map +1 -1
  17. package/dist/commands/ecl-gc.test.js +63 -1
  18. package/dist/commands/ecl-gc.test.js.map +1 -1
  19. package/dist/commands/eject.d.ts +62 -3
  20. package/dist/commands/eject.d.ts.map +1 -1
  21. package/dist/commands/eject.js +382 -47
  22. package/dist/commands/eject.js.map +1 -1
  23. package/dist/commands/eject.test.js +557 -7
  24. package/dist/commands/eject.test.js.map +1 -1
  25. package/dist/commands/gemini-beforetool-contract.test.d.ts +2 -0
  26. package/dist/commands/gemini-beforetool-contract.test.d.ts.map +1 -0
  27. package/dist/commands/gemini-beforetool-contract.test.js +106 -0
  28. package/dist/commands/gemini-beforetool-contract.test.js.map +1 -0
  29. package/dist/commands/gemini-sessionstart-contract.test.d.ts +2 -0
  30. package/dist/commands/gemini-sessionstart-contract.test.d.ts.map +1 -0
  31. package/dist/commands/gemini-sessionstart-contract.test.js +184 -0
  32. package/dist/commands/gemini-sessionstart-contract.test.js.map +1 -0
  33. package/dist/commands/init-templates.d.ts +6 -6
  34. package/dist/commands/init-templates.d.ts.map +1 -1
  35. package/dist/commands/init-templates.js +271 -19
  36. package/dist/commands/init-templates.js.map +1 -1
  37. package/dist/commands/init.d.ts +40 -4
  38. package/dist/commands/init.d.ts.map +1 -1
  39. package/dist/commands/init.js +357 -32
  40. package/dist/commands/init.js.map +1 -1
  41. package/dist/commands/init.test.js +546 -10
  42. package/dist/commands/init.test.js.map +1 -1
  43. package/dist/commands/install-hooks-exit-contract.test.js +5 -0
  44. package/dist/commands/install-hooks-exit-contract.test.js.map +1 -1
  45. package/dist/commands/install-hooks.d.ts +26 -8
  46. package/dist/commands/install-hooks.d.ts.map +1 -1
  47. package/dist/commands/install-hooks.js +51 -6
  48. package/dist/commands/install-hooks.js.map +1 -1
  49. package/dist/commands/mail-degraded-e4.test.js +126 -0
  50. package/dist/commands/mail-degraded-e4.test.js.map +1 -1
  51. package/dist/commands/mail.d.ts +19 -1
  52. package/dist/commands/mail.d.ts.map +1 -1
  53. package/dist/commands/mail.js +195 -30
  54. package/dist/commands/mail.js.map +1 -1
  55. package/dist/commands/mail.test.js +291 -3
  56. package/dist/commands/mail.test.js.map +1 -1
  57. package/dist/commands/orient.d.ts.map +1 -1
  58. package/dist/commands/orient.js +82 -0
  59. package/dist/commands/orient.js.map +1 -1
  60. package/dist/commands/orient.test.js +144 -1
  61. package/dist/commands/orient.test.js.map +1 -1
  62. package/dist/commands/seat-cli-wiring.test.d.ts +20 -0
  63. package/dist/commands/seat-cli-wiring.test.d.ts.map +1 -0
  64. package/dist/commands/seat-cli-wiring.test.js +147 -0
  65. package/dist/commands/seat-cli-wiring.test.js.map +1 -0
  66. package/dist/commands/seat-poll-chain.test.d.ts +13 -0
  67. package/dist/commands/seat-poll-chain.test.d.ts.map +1 -0
  68. package/dist/commands/seat-poll-chain.test.js +103 -0
  69. package/dist/commands/seat-poll-chain.test.js.map +1 -0
  70. package/dist/commands/seat.d.ts +92 -0
  71. package/dist/commands/seat.d.ts.map +1 -0
  72. package/dist/commands/seat.js +649 -0
  73. package/dist/commands/seat.js.map +1 -0
  74. package/dist/commands/seat.test.d.ts +19 -0
  75. package/dist/commands/seat.test.d.ts.map +1 -0
  76. package/dist/commands/seat.test.js +532 -0
  77. package/dist/commands/seat.test.js.map +1 -0
  78. package/dist/commands/sessionstart-manifest-contract.test.d.ts +2 -0
  79. package/dist/commands/sessionstart-manifest-contract.test.d.ts.map +1 -0
  80. package/dist/commands/sessionstart-manifest-contract.test.js +176 -0
  81. package/dist/commands/sessionstart-manifest-contract.test.js.map +1 -0
  82. package/dist/hooks/__tests__/auto-context.test.js +20 -0
  83. package/dist/hooks/__tests__/auto-context.test.js.map +1 -1
  84. package/dist/hooks/auto-context.d.ts +19 -0
  85. package/dist/hooks/auto-context.d.ts.map +1 -1
  86. package/dist/hooks/auto-context.js +22 -4
  87. package/dist/hooks/auto-context.js.map +1 -1
  88. package/dist/index.js +73 -0
  89. package/dist/index.js.map +1 -1
  90. package/package.json +2 -2
@@ -3,7 +3,7 @@
3
3
  // ─── Reflex versioning ────────────────────────────────────
4
4
  // Bump REFLEX_VERSION whenever the AI_PROMPT_BLOCK content changes materially.
5
5
  // This allows `totem init` to detect stale blocks and offer upgrades.
6
- export const REFLEX_VERSION = 9;
6
+ export const REFLEX_VERSION = 10;
7
7
  export const REFLEX_START = '<!-- totem:reflexes:start -->';
8
8
  export const REFLEX_END = '<!-- totem:reflexes:end -->';
9
9
  export const REFLEX_VERSION_RE = /<!-- totem:reflexes:version:(\d+) -->/;
@@ -37,7 +37,7 @@ When deciding where to store information or rules, use this decision tree:
37
37
  ### Workflow Orchestrator Rituals
38
38
  [FOR LOCAL CLI/TERMINAL AGENTS ONLY] Do not attempt to run these commands if you are a headless bot or operating in a cloud PR environment (e.g., Gemini Code Assist on GitHub).
39
39
  Totem provides CLI commands that map to your development lifecycle. Use them at these moments:
40
- 1. **Start of Session:** The SessionStart hook automatically runs \`totem describe\` to emit the project-orientation banner (project, tier, rule/lesson counts, targets, hooks). For richer derived project state (recent merged PRs, current branch + uncommitted files, latest strategy journal pointer, package versions, rule/lesson counts), call the MCP \`describe_project\` tool — the derived view replaces the retired \`docs/active_work.md\` convention (state is observed, not declared). For a freshness check (manifest staleness, shield drift, review state), run \`totem status\`. Run \`totem triage\` if you need to pick a new task.
40
+ 1. **Start of Session:** The SessionStart hook automatically runs \`totem describe\` to emit the project-orientation banner (project, tier, rule/lesson counts, targets, hooks). For richer derived project state (recent merged PRs, current branch + uncommitted files, latest strategy journal pointer, package versions, rule/lesson counts), call the MCP \`describe_project\` tool — the derived view replaces the retired \`docs/active_work.md\` convention (state is observed, not declared). For a freshness check (manifest staleness, shield drift, review state), run \`totem status\`. Run \`totem triage\` if you need to pick a new task. On a seat without the SessionStart hook (a cold start, or a vehicle that doesn't run hooks), run \`totem orient\` to derive in-flight and parked project state from primitives.
41
41
  2. **Before Implementation:** Optionally run \`totem spec <issue-url-or-topic>\` to retrieve related context (lessons, specs, code) before writing code. Treat any generated plan as one retrieval input, never the contract — derive the actual design from primary sources (the issue, the code, project doctrine).
42
42
  3. **Before Push:** Run \`totem lint\` — the deterministic enforcement floor (zero LLM, ~2s). **Before PR:** \`totem review\` runs supplementary AI lanes over the diff (~18s) — advisory sensors, not a merge gate; known limits are disclosed in the run output (LLM window truncation on large diffs; non-code files skipped). Your team's own review discipline decides what constitutes the review of record.
43
43
  4. **End of Session:** Run \`totem handoff\` to generate a snapshot for the next agent session with current progress and open threads.
@@ -51,7 +51,7 @@ You do NOT have access to the local CLI. Instead, use the Totem MCP tools direct
51
51
  3. **When you spot a recurring issue:** Call \`add_lesson\` to persist the trap so future reviews catch it automatically.
52
52
 
53
53
  ### Context Management Guardrail
54
- You must be highly defensive of your own context window. If you notice this session becoming long, or if you are asked to read multiple massive files at once, you MUST proactively warn the user about impending context loss. When warning the user, suggest they run \`totem handoff\` to capture mid-task state so they can safely clear the chat and resume. If you receive a \`<totem_system_warning>\` tag in a tool response, read it silently and synthesize a natural-language warning to the user. Do NOT echo the raw XML.
54
+ You must be highly defensive of your own context window and you are the ONLY party holding the denominator (your model's window size and current occupancy); no Totem tool can measure it for you. Large Totem tool responses may carry a self-closing \`<size-disclosure ... />\` line stating that payload's measured size and cumulative session totals — a measurement, never a risk claim. Weigh it against your own occupancy and escalate to the user only when the pressure is genuinely material, suggesting \`totem handoff\` to capture mid-task state before clearing the chat. If you receive a \`<totem_system_warning>\` tag in a tool response (e.g. index staleness or degraded retrieval), read it silently and act on it or surface it naturally. Do NOT echo raw XML tags to the user.
55
55
  ${REFLEX_END}
56
56
  `;
57
57
  export const TOTEM_FILE_MARKER = '// [totem] auto-generated';
@@ -158,7 +158,7 @@ export const GEMINI_SESSION_START = `// [totem] auto-generated — Gemini CLI Se
158
158
  // totem-strategy, totem-substrate, arhgap11, and totem-status, and
159
159
  // matches the Claude-side SessionStart hook scaffolded by this same init
160
160
  // pass (mmnto-ai/totem#1884).
161
- const { execSync } = require('child_process');
161
+ const { spawnSync } = require('child_process');
162
162
 
163
163
  // totem-status refresh-gh — GH-federation snapshot refresh (mmnto-ai/totem-status#127
164
164
  // C3 residual; tracking mmnto-ai/totem#2556). Spawn-and-forget, detached+unref, and
@@ -251,27 +251,175 @@ try {
251
251
  process.stderr.write('[SessionStart] totem-status refresh-gh unavailable (non-fatal): ' + (err instanceof Error ? err.message : String(err)) + '\\n');
252
252
  }
253
253
 
254
+ // ─── A.3.a: mint session ID + log session_start event ──────────
255
+ // New with mmnto-ai/totem#2468: this template never took over the A.3.a duty
256
+ // its Claude sibling carries, so Gemini-seat sessions had no session UUID and
257
+ // no session_start denominator row — the selection-manifest join key and the
258
+ // recorded-absence contract both need them. Same shape as the Claude template.
259
+ // Fire-and-forget: a ledger failure must NOT block the briefing.
260
+ let mintedSessionId = null;
254
261
  try {
255
- execSync('totem describe', {
256
- timeout: 30000,
257
- stdio: ['ignore', 'inherit', 'inherit'],
262
+ const nodePath = require('path');
263
+ const { mkdirSync, writeFileSync, appendFileSync } = require('fs');
264
+ const { randomUUID } = require('crypto');
265
+ const ledgerDir = nodePath.join(process.cwd(), '.totem', 'ledger');
266
+ mkdirSync(ledgerDir, { recursive: true });
267
+ mintedSessionId = randomUUID();
268
+ writeFileSync(nodePath.join(ledgerDir, '.session-id'), mintedSessionId, 'utf-8');
269
+ const selfAgentEntry = (process.env.TOTEM_SELF_AGENT || '')
270
+ .split(',')
271
+ .map((s) => s.trim())
272
+ .find((s) => s.length > 0);
273
+ const event = {
274
+ timestamp: new Date().toISOString(),
275
+ type: 'session_start',
276
+ activity_name: 'SessionStart',
277
+ source: 'bot',
278
+ ...(selfAgentEntry ? { agent_source: selfAgentEntry } : {}),
279
+ justification: '',
280
+ session_id: mintedSessionId,
281
+ };
282
+ appendFileSync(nodePath.join(ledgerDir, 'events.ndjson'), JSON.stringify(event) + '\\n', 'utf-8');
283
+ } catch (err) {
284
+ process.stderr.write(
285
+ '[SessionStart] session-start telemetry unavailable (non-fatal): ' +
286
+ (err instanceof Error ? err.message : String(err)) +
287
+ '\\n',
288
+ );
289
+ }
290
+
291
+ // Interactive Gemini ingests SessionStart CONTEXT only from the
292
+ // hookSpecificOutput.additionalContext envelope — plain exit-0 stdout wraps as
293
+ // systemMessage, which the interactive startup consumer never injects, so the
294
+ // briefing was absent from model context in the primary dev flow even once
295
+ // registered (mmnto-ai/totem#2613; leg-verified against @google/gemini-cli
296
+ // 0.54.4). systemMessage rides alongside the envelope for the human surfaces:
297
+ // interactive startup and /clear render it as a UI info item and -p echoes it
298
+ // to stderr — so the briefing is VISIBLE to the human on those surfaces and
299
+ // injected as context for the model (one payload, both audiences).
300
+ // The Totem CLI writes its banner and diagnostics to STDERR, so capture takes
301
+ // BOTH streams — the same seam the Claude-side template documents; a
302
+ // stdout-only capture silently drops the describe leg (mmnto-ai/totem#2613
303
+ // falsification round). A leg failure carries any partial stdout plus the
304
+ // fail-soft note; exit is ALWAYS 0 (never blocks boot).
305
+ // Per-leg 20s budgets cut the measured worst-case process exit from 60s to
306
+ // 40s against Gemini's 60s DEFAULT_HOOK_TIMEOUT (which tree-kills at expiry;
307
+ // no descendant inherits this hook's own streams).
308
+ let briefing = '';
309
+ try {
310
+ const describeRun = spawnSync('totem describe', {
311
+ shell: true,
312
+ timeout: 20000,
313
+ encoding: 'utf-8',
314
+ stdio: ['ignore', 'pipe', 'pipe'],
258
315
  });
316
+ // spawnSync sets .error (it does NOT throw) on spawn-level failure/timeout.
317
+ briefing += describeRun.stdout || '';
318
+ if (describeRun.error || describeRun.status !== 0) {
319
+ const reason = describeRun.error
320
+ ? (describeRun.error.message || String(describeRun.error))
321
+ : ((describeRun.stderr || '').trim() || 'totem describe exited ' + describeRun.status);
322
+ briefing += '[Totem] Briefing unavailable: ' + reason + '\\n';
323
+ } else {
324
+ briefing += describeRun.stderr || '';
325
+ }
259
326
  } catch (err) {
260
- process.stdout.write('[Totem] Briefing unavailable: ' + (err instanceof Error ? err.message : String(err)) + '\\n');
327
+ // Belt for a genuinely throwing spawnSync: same fail-soft note.
328
+ briefing += '[Totem] Briefing unavailable: ' + (err instanceof Error ? err.message : String(err)) + '\\n';
261
329
  }
262
330
 
331
+ // Selection-manifest block boundary (mmnto-ai/totem#2468): everything in
332
+ // \`briefing\` up to here is the describe leg — including its fail-soft note,
333
+ // which IS injected payload when it fires.
334
+ const describeBriefingEnd = briefing.length;
335
+
263
336
  // totem orient --session — live derived in-flight state, ADDITIVE to describe
264
337
  // (mmnto-ai/totem#2044 PR-3). Own try/catch; orient --session is itself boot-safe.
265
338
  try {
266
- execSync('totem orient --session', {
267
- timeout: 30000,
268
- stdio: ['ignore', 'inherit', 'inherit'],
339
+ const orientRun = spawnSync('totem orient --session', {
340
+ shell: true,
341
+ timeout: 20000,
342
+ encoding: 'utf-8',
343
+ stdio: ['ignore', 'pipe', 'pipe'],
269
344
  });
345
+ briefing += orientRun.stdout || '';
346
+ if (orientRun.error || orientRun.status !== 0) {
347
+ const orientReason = orientRun.error
348
+ ? (orientRun.error.message || String(orientRun.error))
349
+ : ((orientRun.stderr || '').trim() || 'totem orient exited ' + orientRun.status);
350
+ // Boot-safe: orient is additive to describe; a failure never blocks session
351
+ // start. The note rides the briefing (both keys) so the model and the human
352
+ // both see the orient gap — a stderr-only note is invisible to the model
353
+ // (CR round on this PR); the parent-stderr breadcrumb stays for hook
354
+ // diagnostics.
355
+ briefing += '[Totem] Orient briefing unavailable: ' + orientReason + '\\n';
356
+ process.stderr.write('[SessionStart] orient briefing unavailable (non-fatal): ' + orientReason + '\\n');
357
+ } else {
358
+ briefing += orientRun.stderr || '';
359
+ }
270
360
  } catch (err) {
271
- // Boot-safe: orient is additive to describe; a failure never blocks session start —
272
- // surface a NON-fatal breadcrumb (matches the Claude-side hook) rather than swallow.
273
- process.stderr.write('[SessionStart] orient briefing unavailable (non-fatal): ' + (err instanceof Error ? err.message : String(err)) + '\\n');
361
+ const orientMsg = err instanceof Error ? err.message : String(err);
362
+ briefing += '[Totem] Orient briefing unavailable: ' + orientMsg + '\\n';
363
+ process.stderr.write('[SessionStart] orient briefing unavailable (non-fatal): ' + orientMsg + '\\n');
274
364
  }
365
+
366
+ // ─── selection manifest (mmnto-ai/totem#2468 M1) ────────────────
367
+ // Inline append mirroring the A.3.a write above — this rendered hook runs
368
+ // standalone in consumer repos with no access to @mmnto/totem's writer. The
369
+ // row shape is BOUND to SelectionManifestRowSchema (strict): change both in
370
+ // the same PR; the template contract test parses this row with the real
371
+ // schema. A zero-byte block never becomes a candidate (nothing was injected).
372
+ try {
373
+ const nodePath = require('path');
374
+ const { appendFileSync } = require('fs');
375
+ const { createHash } = require('crypto');
376
+ const measure = (id, content, reason) => {
377
+ const bytes = Buffer.byteLength(content, 'utf-8');
378
+ return {
379
+ id,
380
+ disposition: 'selected',
381
+ reason,
382
+ bytes,
383
+ approxTokens: Math.ceil(bytes / 4),
384
+ fingerprint: createHash('sha256').update(content, 'utf-8').digest('hex').slice(0, 16),
385
+ };
386
+ };
387
+ const selfAgent = (process.env.TOTEM_SELF_AGENT || '')
388
+ .split(',')
389
+ .map((s) => s.trim())
390
+ .find((s) => s.length > 0);
391
+ const row = {
392
+ schemaVersion: 1,
393
+ timestamp: new Date().toISOString(),
394
+ emitter: 'session-start',
395
+ ...(mintedSessionId ? { session_id: mintedSessionId } : {}),
396
+ ...(selfAgent ? { agent_source: selfAgent } : {}),
397
+ context: { template: 'gemini-managed' },
398
+ universe: 'managed-template blocks: describe + orient --session',
399
+ costBasis: { bytes: 'utf8-length', approxTokens: 'ceil(bytes/4) approximation' },
400
+ candidates: [
401
+ measure('describe', briefing.slice(0, describeBriefingEnd), 'always-injected briefing'),
402
+ measure('orient:session-block', briefing.slice(describeBriefingEnd), 'always-injected briefing'),
403
+ ].filter((c) => c.bytes > 0),
404
+ warnings: [],
405
+ };
406
+ appendFileSync(
407
+ nodePath.join(process.cwd(), '.totem', 'ledger', 'selection-manifests.ndjson'),
408
+ JSON.stringify(row) + '\\n',
409
+ 'utf-8',
410
+ );
411
+ } catch (err) {
412
+ process.stderr.write(
413
+ '[SessionStart] selection manifest unavailable (non-fatal): ' +
414
+ (err instanceof Error ? err.message : String(err)) +
415
+ '\\n',
416
+ );
417
+ }
418
+
419
+ process.stdout.write(JSON.stringify({
420
+ systemMessage: briefing,
421
+ hookSpecificOutput: { hookEventName: 'SessionStart', additionalContext: briefing },
422
+ }) + '\\n');
275
423
  ${TOTEM_FILE_END}
276
424
  `;
277
425
  export const GEMINI_BEFORE_TOOL = `// [totem] auto-generated — Gemini CLI BeforeTool hook
@@ -443,7 +591,7 @@ function checkXrepoQualifyRefs(toolName, toolInput) {
443
591
  );
444
592
  }
445
593
 
446
- module.exports = function beforeTool(toolName, toolInput) {
594
+ function beforeTool(toolName, toolInput) {
447
595
  checkOutboxSubjectQuoting(toolName, toolInput);
448
596
  checkAutoCloseKeywords(toolName, toolInput);
449
597
  checkXrepoQualifyRefs(toolName, toolInput);
@@ -457,7 +605,50 @@ module.exports = function beforeTool(toolName, toolInput) {
457
605
  } catch (err) {
458
606
  throw new Error('[Totem Error] Shield check failed. Fix violations before pushing.\\n' + err.message);
459
607
  }
460
- };
608
+ }
609
+ module.exports = beforeTool;
610
+
611
+ // Entry point — Gemini runs this file as a COMMAND hook (\`node BeforeTool.cjs\`)
612
+ // with the hook-input JSON on stdin; without this block the file defines a
613
+ // function and exits 0 = allow, leaving every guard above inert
614
+ // (mmnto-ai/totem#2611). Exit contract (leg-verified against
615
+ // @google/gemini-cli 0.54.4): exit 0 allow · exit 1 ALLOW with warning (an
616
+ // uncaught throw exits 1 — throwing can never deny) · exit >= 2 deny ·
617
+ // structured stdout {"decision":"deny","reason"} deny. A violation emits the
618
+ // structured deny AND exits 2 so either channel suffices. Gemini reads stderr
619
+ // only when stdout is EMPTY, so the stderr copy on the deny path never enters
620
+ // the hook pipeline — it serves hand-run invocations; on the exit-1 paths the
621
+ // stderr breadcrumb IS the payload that surfaces as the warning. Input the
622
+ // guard cannot evaluate (unparseable JSON, missing tool_name) is
623
+ // allow-with-warning (exit 1): denying every call on a vendor shape change
624
+ // would brick the seat, and exiting 0 would hide the outage.
625
+ if (require.main === module) {
626
+ let raw = '';
627
+ process.stdin.setEncoding('utf-8');
628
+ process.stdin.on('data', function (chunk) { raw += chunk; });
629
+ process.stdin.on('end', function () {
630
+ let input;
631
+ try {
632
+ input = JSON.parse(raw);
633
+ } catch (err) {
634
+ process.stderr.write('[totem BeforeTool] hook input is not parseable JSON — guard did not evaluate this call: ' + (err instanceof Error ? err.message : String(err)) + '\\n');
635
+ process.exit(1);
636
+ }
637
+ if (typeof input !== 'object' || input === null || typeof input.tool_name !== 'string') {
638
+ process.stderr.write('[totem BeforeTool] hook input carries no tool_name — guard did not evaluate this call\\n');
639
+ process.exit(1);
640
+ }
641
+ try {
642
+ beforeTool(input.tool_name, input.tool_input);
643
+ } catch (err) {
644
+ const reason = err instanceof Error ? err.message : String(err);
645
+ process.stdout.write(JSON.stringify({ decision: 'deny', reason: reason }) + '\\n');
646
+ process.stderr.write(reason + '\\n');
647
+ process.exit(2);
648
+ }
649
+ process.exit(0);
650
+ });
651
+ }
461
652
  ${TOTEM_FILE_END}
462
653
  `;
463
654
  export const GEMINI_SKILL = `<!-- [totem] auto-generated — Totem Architect skill -->
@@ -758,10 +949,14 @@ const { randomUUID } = require('crypto');
758
949
  const { join } = require('path');
759
950
 
760
951
  // ─── A.3.a: mint session ID + log session_start event ──────────
952
+ // Hoisted so the selection-manifest row below (mmnto-ai/totem#2468) can carry
953
+ // the same session UUID as its join key.
954
+ let mintedSessionId = null;
761
955
  try {
762
956
  const ledgerDir = join(process.cwd(), '.totem', 'ledger');
763
957
  mkdirSync(ledgerDir, { recursive: true });
764
958
  const sessionId = randomUUID();
959
+ mintedSessionId = sessionId;
765
960
  writeFileSync(join(ledgerDir, '.session-id'), sessionId, 'utf-8');
766
961
  // Amended ADR-078 (2026-07-15): agent_source is the env-carried seat-id
767
962
  // (TOTEM_SELF_AGENT, first non-empty comma entry), never a vendor class
@@ -891,6 +1086,9 @@ try {
891
1086
  }
892
1087
 
893
1088
  // ─── totem describe briefing (existing behavior) ────────────────
1089
+ // Captured (mmnto-ai/totem#2468): the injected block is the selection-manifest
1090
+ // candidate below — the not-installed notice is a notice, not a briefing.
1091
+ let describeText = '';
894
1092
  try {
895
1093
  const cliPath = join(process.cwd(), 'node_modules', '@mmnto', 'cli', 'dist', 'index.js');
896
1094
  if (existsSync(cliPath)) {
@@ -903,7 +1101,8 @@ try {
903
1101
  }
904
1102
  // Totem CLI writes diagnostic output to stderr; route to stdout so the
905
1103
  // session-start context lands in Claude's prompt rather than user-visible noise.
906
- process.stdout.write((result.stdout || '') + (result.stderr || ''));
1104
+ describeText = (result.stdout || '') + (result.stderr || '');
1105
+ process.stdout.write(describeText);
907
1106
  } else {
908
1107
  process.stdout.write(
909
1108
  '[Totem] @mmnto/cli not installed. Run \`pnpm install\` (or your package manager equivalent) to enable session-start orientation.\\n',
@@ -923,6 +1122,7 @@ try {
923
1122
  // never replace. Its OWN try/catch so an orient failure never disturbs the describe
924
1123
  // briefing or the boot; \`orient --session\` is itself boot-safe (emits nothing when
925
1124
  // nothing is high-signal, never exits non-zero, degrades to honest "could not derive").
1125
+ let orientText = '';
926
1126
  try {
927
1127
  const orientCliPath = join(process.cwd(), 'node_modules', '@mmnto', 'cli', 'dist', 'index.js');
928
1128
  if (existsSync(orientCliPath)) {
@@ -935,7 +1135,8 @@ try {
935
1135
  if (orientResult.error) {
936
1136
  throw orientResult.error;
937
1137
  }
938
- process.stdout.write((orientResult.stdout || '') + (orientResult.stderr || ''));
1138
+ orientText = (orientResult.stdout || '') + (orientResult.stderr || '');
1139
+ process.stdout.write(orientText);
939
1140
  }
940
1141
  } catch (err) {
941
1142
  // Boot-safe: orient is additive to describe (already emitted), so a failure never
@@ -947,6 +1148,57 @@ try {
947
1148
  '\\n',
948
1149
  );
949
1150
  }
1151
+
1152
+ // ─── selection manifest (mmnto-ai/totem#2468 M1) ────────────────
1153
+ // Inline append mirroring the session_start write above — this rendered hook
1154
+ // runs standalone in consumer repos with no access to @mmnto/totem's writer.
1155
+ // The row shape is BOUND to SelectionManifestRowSchema (strict): change both
1156
+ // in the same PR; the template contract test parses this row with the real
1157
+ // schema. A zero-byte block never becomes a candidate (nothing was injected).
1158
+ try {
1159
+ const { createHash } = require('crypto');
1160
+ const measure = (id, content, reason) => {
1161
+ const bytes = Buffer.byteLength(content, 'utf-8');
1162
+ return {
1163
+ id,
1164
+ disposition: 'selected',
1165
+ reason,
1166
+ bytes,
1167
+ approxTokens: Math.ceil(bytes / 4),
1168
+ fingerprint: createHash('sha256').update(content, 'utf-8').digest('hex').slice(0, 16),
1169
+ };
1170
+ };
1171
+ const selfAgent = (process.env.TOTEM_SELF_AGENT || '')
1172
+ .split(',')
1173
+ .map((s) => s.trim())
1174
+ .find((s) => s.length > 0);
1175
+ const row = {
1176
+ schemaVersion: 1,
1177
+ timestamp: new Date().toISOString(),
1178
+ emitter: 'session-start',
1179
+ ...(mintedSessionId ? { session_id: mintedSessionId } : {}),
1180
+ ...(selfAgent ? { agent_source: selfAgent } : {}),
1181
+ context: { template: 'claude-managed' },
1182
+ universe: 'managed-template blocks: describe + orient --session',
1183
+ costBasis: { bytes: 'utf8-length', approxTokens: 'ceil(bytes/4) approximation' },
1184
+ candidates: [
1185
+ measure('describe', describeText, 'always-injected briefing'),
1186
+ measure('orient:session-block', orientText, 'always-injected briefing'),
1187
+ ].filter((c) => c.bytes > 0),
1188
+ warnings: [],
1189
+ };
1190
+ appendFileSync(
1191
+ join(process.cwd(), '.totem', 'ledger', 'selection-manifests.ndjson'),
1192
+ JSON.stringify(row) + '\\n',
1193
+ 'utf-8',
1194
+ );
1195
+ } catch (err) {
1196
+ process.stderr.write(
1197
+ '[SessionStart] selection manifest unavailable (non-fatal): ' +
1198
+ (err instanceof Error ? err.message : String(err)) +
1199
+ '\\n',
1200
+ );
1201
+ }
950
1202
  ${TOTEM_FILE_END}
951
1203
  `;
952
1204
  export const CLAUDE_SESSION_START_ENTRY = {
@@ -1577,7 +1829,7 @@ totem review --covariate
1577
1829
 
1578
1830
  It resolves the current branch lineage exactly as the review fan does, loads the LATEST verdict artifact for that lineage (\`.totem/artifacts/verdicts/\`), and prints the canonical \`local-lane:\` line from the single core-owned renderer — never trust a pasted or hand-copied value. If it reports no verdict for the current lineage, there is no line to carry (note that in the body and continue).
1579
1831
 
1580
- 2. **Assemble the single body.** One comment: the per-item dispositions (fixed / deferred / nit / extracted) followed by the non-empty \`local-lane:\` line from step 1, verbatim. The local \`review-loop\` holds this line but never posts it, so \`/review-reply\` is the SOLE path that carries it to GitHub.
1832
+ 2. **Assemble the single body.** One comment: @-tag EVERY bot addressed in the round — exactly ONE tag each (e.g. \`@gemini-code-assist\`, \`@coderabbitai\`, \`@greptileai\`) so each bot registers the disposition, and tags must be present when the comment is POSTED, never edited in (GCA's listener fires on comment-created only). One notification per bot per round: a bot with nothing addressed gets no tag, and a bot already @-tagged in this round's batch comment (the GCA defer/nit batch above) is NOT re-tagged here. Never combine a tag with ANY bot's review trigger — triggers are standalone comments, one trigger and no prose (a trigger embedded in a content-rich comment chat-routes the bot). Then the per-item dispositions (fixed / deferred / nit / extracted) followed by the non-empty \`local-lane:\` line from step 1, verbatim. The local \`review-loop\` holds this line but never posts it, so \`/review-reply\` is the SOLE path that carries it to GitHub.
1581
1833
 
1582
1834
  3. **Post on an explicit go.** Show the assembled body and wait for the operator; on their go, post the ONE comment with \`gh pr comment $ARGUMENTS --body-file -\` (pipe the body via stdin). Never mutate the PR autonomously.
1583
1835
 
@@ -1 +1 @@
1
- {"version":3,"file":"init-templates.js","sourceRoot":"","sources":["../../src/commands/init-templates.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,qEAAqE;AAMrE,6DAA6D;AAC7D,+EAA+E;AAC/E,sEAAsE;AAEtE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;AAChC,MAAM,CAAC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,6BAA6B,CAAC;AACxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,uCAAuC,CAAC;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,0CAA0C,CAAC;AAE1E,MAAM,CAAC,MAAM,eAAe,GAAG;EAC7B,YAAY;8BACgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0C1C,UAAU;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,+BAA+B,CAAC;AAE9D;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,MAAc;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACpC,IAAI,GAAG,KAAK,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IAC7B,OAAO,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CAAC;QACJ,KAAK,MAAM;YACT,OAAO;gBACL,OAAO,EAAE,MAAM,kBAAkB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,CAAC;gBAC9D,QAAQ,EAAE,YAAY;aACvB,CAAC;QACJ;YACE,OAAO;gBACL,OAAO,EAAE,MAAM,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,CAAC;gBAC1D,QAAQ,EAAE,iBAAiB;aAC5B,CAAC;IACN,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type ScaffoldOutcome } from './host-hooks.js';
2
- import { type Ecosystem } from './init-detect.js';
2
+ import { type Ecosystem, type HookInstallerResult } from './init-detect.js';
3
3
  export type { AiToolInfo, HookInstallerResult } from './init-detect.js';
4
4
  export { buildNpxCommand, detectEmbeddingTier } from './init-detect.js';
5
5
  export { AI_PROMPT_BLOCK, generateConfig, generateConfigForFormat, REFLEX_VERSION, } from './init-templates.js';
@@ -51,6 +51,22 @@ export declare function wirePreparePackageJson(pkgPath: string): {
51
51
  existing?: string;
52
52
  err?: string;
53
53
  };
54
+ /**
55
+ * Whether a consumer owns a custom `<stem>.js` sibling of a managed `<stem>.cjs` vendor
56
+ * hook (mmnto-ai/totem#2601 — the strategy#482 incident: the generic template dropped
57
+ * beside a repo's own SessionStart.js, double-firing or regressing orientation depending
58
+ * on Gemini's hook discovery). Ownership is the same positional gate `scaffoldFile` and
59
+ * `migrateLegacyGeminiHooks` use, so a marker-headed sibling — the legacy `.js`→`.cjs`
60
+ * migration case — never reports here; only an UNOWNED sibling does. A sibling that
61
+ * cannot be read is not provably totem-owned and reports (non-destructive posture,
62
+ * never a crash). Returns the sibling's basename when one is present.
63
+ *
64
+ * This is a PREDICATE, not the policy: whether a report withholds the scaffold or only
65
+ * discloses a coexistence depends on whether the managed `.cjs` already exists — see
66
+ * `installGeminiHooks`, the sole caller.
67
+ */
68
+ export declare function findUnownedHookSibling(cjsPath: string): string | undefined;
69
+ export declare function installGeminiHooks(cwd: string): Promise<HookInstallerResult[]>;
54
70
  /**
55
71
  * Merge Totem hooks into .claude/settings.local.json without overwriting
56
72
  * existing user-defined hooks. Installs the Bash matcher for shield-gate.
@@ -102,16 +118,25 @@ export declare function scaffoldClaudeSkill(filePath: string, canonicalContent:
102
118
  forceSuppressed?: boolean;
103
119
  err?: string;
104
120
  };
105
- export declare function scaffoldMcpConfig(filePath: string, serverEntry: Record<string, unknown>): {
121
+ export declare function scaffoldMcpConfig(filePath: string, serverEntry: Record<string, unknown>, opts?: {
122
+ /** The project root — the second resolution base for relative script pins
123
+ * (host configs in subdirectories carry root-relative pins; leg D1). */
124
+ projectRoot?: string;
125
+ }): {
106
126
  action: 'created' | 'merged' | 'skipped';
127
+ /** The entry name an existing `@mmnto/mcp` registration was found under, when the
128
+ * skip came from the package-level dedup rather than the `totem` key check. */
129
+ existingName?: string;
107
130
  err?: string;
108
131
  };
109
132
  /**
110
133
  * Install the Universal AI Developer Baseline lessons into the lessons file.
111
134
  * Returns 'installed', 'exists' (already present), or 'skipped' (user declined).
112
- * In non-TTY mode (CI), defaults to installing without prompting.
135
+ * In non-interactive mode (CI, `--yes`, piped input), defaults to installing without
136
+ * prompting. `interactive` is threaded from init's single non-interactive predicate
137
+ * (mmnto-ai/totem#2601) and falls back to the bare TTY probe for standalone callers.
113
138
  */
114
- export declare function installBaselineLessons(baselinePath: string, rl: import('node:readline/promises').Interface, ecosystems?: Ecosystem[]): Promise<'installed' | 'exists' | 'skipped'>;
139
+ export declare function installBaselineLessons(baselinePath: string, rl: import('node:readline/promises').Interface, ecosystems?: Ecosystem[], interactive?: boolean): Promise<'installed' | 'exists' | 'skipped'>;
115
140
  export type ReflexStatus = 'current' | 'outdated' | 'missing';
116
141
  /** Detect whether the reflex block in a file is current, outdated, or missing. */
117
142
  export declare function detectReflexStatus(content: string): ReflexStatus;
@@ -130,6 +155,12 @@ export declare function upgradeReflexes(content: string): {
130
155
  content: string;
131
156
  clean: boolean;
132
157
  };
158
+ /**
159
+ * Resolve the AI-tool selection prompt's answer. Anything that is not an explicit
160
+ * `none` / `select` is the Enter default, `all` — which is also the answer the
161
+ * non-interactive path takes without raising the prompt (mmnto-ai/totem#2601).
162
+ */
163
+ export declare function resolveToolSelection(answer: string): 'all' | 'none' | 'select';
133
164
  export declare function initCommand(options?: {
134
165
  bare?: boolean;
135
166
  pilot?: boolean;
@@ -149,6 +180,11 @@ export declare function initCommand(options?: {
149
180
  * (mmnto-ai/totem#2088, Proposal 292 S1). Non-interactive; honest-absent
150
181
  * when the `@mmnto/strategy-doctrine` pin is not installed. */
151
182
  doctrine?: boolean;
183
+ /** Answer every prompt with its default and raise none (mmnto-ai/totem#2601).
184
+ * Implied when stdin is not a TTY: a partial guard let a stdin-null init print
185
+ * the non-interactive banner and still die at an unguarded prompt with mutations
186
+ * already landed. Every non-interactive default is logged. */
187
+ yes?: boolean;
152
188
  /** Override home directory for testing. */
153
189
  _homeDir?: string;
154
190
  }): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAOA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,KAAK,SAAS,EAGf,MAAM,kBAAkB,CAAC;AA+B1B,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAQ7B,eAAO,MAAM,6BAA6B,2BAA2B,CAAC;AAItE,wBAAsB,gBAAgB,IAAI,OAAO,CAAC;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAsBD;AAED;;;;;;;;;;;;GAYG;AACH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