create-snipara 1.3.52 → 1.3.54

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 (3) hide show
  1. package/README.md +3 -1
  2. package/dist/index.js +19 -10
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -195,6 +195,8 @@ snipara-companion workflow start --goal "ship auth hardening" --plan-file ./plan
195
195
  snipara-companion workflow phase-start context
196
196
  snipara-companion workflow run --mode full --include-session-context --query "load auth context"
197
197
  snipara-companion code impact --changed-files src/auth.ts tests/auth.test.ts --diff-summary "auth hardening"
198
+ snipara-companion memory invalidate mem_old --reason "obsolete runbook"
199
+ snipara-companion memory supersede mem_old mem_new --reason "corrected decision"
198
200
  snipara-companion workflow phase-commit context --summary "Loaded context and mapped impacted files" --files src/auth.ts
199
201
  snipara-companion timeline
200
202
  snipara-companion handoff --summary "auth context mapped" --next "implement auth hardening"
@@ -543,7 +545,7 @@ npx create-snipara print-config --json
543
545
  When testing a locally packed tarball, use `npm exec --package` instead of `npx`, for example:
544
546
 
545
547
  ```bash
546
- npm exec --package ./create-snipara-1.3.14.tgz create-snipara -- --help
548
+ npm exec --package ./create-snipara-1.3.54.tgz create-snipara -- --help
547
549
  ```
548
550
 
549
551
  This avoids `npx` resolution issues with unpublished tarballs.
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { homedir } from "os";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "create-snipara",
16
- version: "1.3.52",
16
+ version: "1.3.54",
17
17
  description: "Onboard Snipara Hosted MCP Context + Memory with auth, companion workflows, and optional Snipara Sandbox",
18
18
  main: "dist/index.js",
19
19
  type: "module",
@@ -1428,7 +1428,7 @@ Agent task lifecycle:
1428
1428
  6. Use whichever structural code graph tools are exposed in the current session
1429
1429
  for callers, imports, neighbors, and path questions. Tool exposure can vary.
1430
1430
  7. On paid Context plans, use \`snipara_code_symbol_card\` for agent-ready symbol
1431
- context and \`snipara_code_impact\` before risky multi-file changes, PR
1431
+ context and \`snipara-companion code impact\` before risky multi-file changes, PR
1432
1432
  reviews, routes, services, jobs, auth, billing, deployment, schema, migrations,
1433
1433
  or explicit "what is missing" assessments.
1434
1434
  8. Use \`snipara_plan\` or \`snipara_decompose\` only for FULL-mode work and only
@@ -1458,7 +1458,12 @@ Agent task lifecycle:
1458
1458
  End the whole managed workflow with \`snipara-companion final-commit\`.
1459
1459
  16. Use \`snipara_remember_if_novel\` for one reusable memory while avoiding
1460
1460
  duplicates, and use \`snipara_remember\` for explicit direct memory writes.
1461
- 17. Do not store secrets, tokens, passwords, private keys, raw logs, transient
1461
+ 17. When remembered knowledge is obsolete or replaced, use
1462
+ \`snipara-companion memory invalidate <memory-id>\` or
1463
+ \`snipara-companion memory supersede <old-memory-id> <new-memory-id>\`
1464
+ when companion is installed; otherwise use hosted \`snipara_memory_invalidate\`
1465
+ or \`snipara_memory_supersede\`.
1466
+ 18. Do not store secrets, tokens, passwords, private keys, raw logs, transient
1462
1467
  command output, or unreviewed guesses in memory.
1463
1468
  `;
1464
1469
  }
@@ -1476,8 +1481,9 @@ Use Snipara Hosted MCP before answering project-specific questions.
1476
1481
  - Start substantial work with \`snipara_recall\` and a targeted \`snipara_context_query\`.
1477
1482
  - Use \`snipara_context_query\` for source truth and \`snipara_get_chunk\` for exact cited sections.
1478
1483
  - When \`snipara_context_query\` returns \`answer_pack\`, use its facts, caveats, source map, and verification checklist before drafting claims.
1479
- - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for structural code questions.
1480
- - On paid Context plans, use \`snipara_code_symbol_card\` before editing important symbols and \`snipara_code_impact\` before risky multi-file changes or PR reviews.
1484
+ - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for canonical structural code questions.
1485
+ - For code impact and structural code questions, use \`snipara-companion code callers/imports/neighbors/shortest-path/impact\` first when \`snipara-companion\` is installed; it auto-selects hosted MCP for clean indexed code or the local overlay for dirty/ahead worktrees and reports \`sourceSelection\`. Use hosted \`snipara_code_impact\` only when companion is unavailable or after push/reindex for canonical graph impact.
1486
+ - On paid Context plans, use \`snipara_code_symbol_card\` before editing important symbols.
1481
1487
  - Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
1482
1488
  - Use local file reads, \`rg\`, \`git status --short\`, and tests for exact edits/current working tree; use Snipara for architecture and indexed code graph context.
1483
1489
  - When the plan is visible and \`snipara-companion\` is installed, keep the machine plan in JSON, use \`snipara-companion workflow start\`, \`phase-start\`, and \`phase-commit\` per phase, and after \`workflow resume\` rerun \`workflow phase-start\` before editing again.
@@ -1485,6 +1491,7 @@ Use Snipara Hosted MCP before answering project-specific questions.
1485
1491
  - Use Snipara Sandbox only when sandboxed execution or repeatable validation materially helps. For runtime-bound phases, capture compact rehydratable state with \`workflow runtime-checkpoint <phase_id> --summary "<state>" --rehydrate-file <state.json>\`. Then \`workflow resume\` restores workflow and memory continuity plus the recorded Sandbox binding and prints a reattach or rehydrate plan. It does not snapshot or exactly restore a live Snipara Sandbox or REPL process.
1486
1492
  - End substantial work with \`snipara_end_of_task_commit\` when available; for managed workflows, end every phase with \`snipara-companion workflow phase-commit\` and the task with \`snipara-companion final-commit\`.
1487
1493
  - Use \`snipara_remember_if_novel\` or \`snipara_remember\` only for narrow durable memories.
1494
+ - When remembered knowledge is obsolete or replaced and \`snipara-companion\` is installed, use \`snipara-companion memory invalidate <memory-id>\` or \`snipara-companion memory supersede <old-memory-id> <new-memory-id>\`; otherwise use hosted \`snipara_memory_invalidate\` or \`snipara_memory_supersede\`.
1488
1495
  - Do not store secrets, one-off command output, raw logs, or unreviewed guesses in memory.
1489
1496
  - Use the Snipara Claude Code plugin only when slash commands, skills, or hooks are helpful; Hosted MCP remains the normal agent path.
1490
1497
  `;
@@ -1506,15 +1513,16 @@ This workspace uses Snipara Hosted MCP for current project context, business/cli
1506
1513
  - Use \`snipara_context_query\` for docs, business context, current client/project truth, and narrative source material.
1507
1514
  - When \`snipara_context_query\` returns \`answer_pack\`, use its facts, caveats, source map, and verification checklist before drafting claims.
1508
1515
  - Use \`snipara_get_chunk\` before relying on exact cited wording from reference-based results.
1509
- - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for structural code questions.
1510
- - On paid Context plans, use \`snipara_code_symbol_card\` before editing important symbols and \`snipara_code_impact\` before risky multi-file changes or PR reviews.
1516
+ - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for canonical structural code questions.
1517
+ - For code impact and structural code questions, use \`snipara-companion code callers/imports/neighbors/shortest-path/impact\` first when \`snipara-companion\` is installed; it auto-selects hosted MCP for clean indexed code or the local overlay for dirty/ahead worktrees and reports \`sourceSelection\`. Use hosted \`snipara_code_impact\` only when companion is unavailable or after push/reindex for canonical graph impact.
1518
+ - On paid Context plans, use \`snipara_code_symbol_card\` before editing important symbols.
1511
1519
  - Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
1512
1520
  - Use \`snipara_plan\` or \`snipara_decompose\` only for complex work and only when available.
1513
1521
  - Use local file reads, \`rg\`, \`git status --short\`, and tests for exact code edits and current working-tree state.
1514
1522
  - When \`snipara-companion\` is installed and the LLM has a visible multi-phase plan, keep the machine plan in JSON, use \`snipara-companion workflow start\`, \`phase-start\`, and \`phase-commit\` per phase, and after \`workflow resume\` rerun \`workflow phase-start\` before editing again.
1515
1523
  - Generated hooks can call \`snipara-companion pre-tool\`, \`post-tool\`, and \`stuck-guard status\` so Rescue Packs are runtime-triggered rather than relying only on instructions.
1516
1524
  - Use Snipara Sandbox only when sandboxed execution or repeatable validation materially helps. For runtime-bound phases, capture compact rehydratable state with \`workflow runtime-checkpoint <phase_id> --summary "<state>" --rehydrate-file <state.json>\`. Then \`workflow resume\` restores workflow and memory continuity plus the recorded Sandbox binding and prints a reattach or rehydrate plan. It does not snapshot or exactly restore a live Snipara Sandbox or REPL process.
1517
- - End substantial work with \`snipara_end_of_task_commit\` when available; for managed workflows, end every phase with \`snipara-companion workflow phase-commit\` and the task with \`snipara-companion final-commit\`. Use \`snipara_remember_if_novel\` or \`snipara_remember\` only for narrow durable memories. Never store secrets.
1525
+ - End substantial work with \`snipara_end_of_task_commit\` when available; for managed workflows, end every phase with \`snipara-companion workflow phase-commit\` and the task with \`snipara-companion final-commit\`. Use \`snipara_remember_if_novel\` or \`snipara_remember\` only for narrow durable memories. When remembered knowledge is obsolete or replaced, use \`snipara-companion memory invalidate <memory-id>\` or \`snipara-companion memory supersede <old-memory-id> <new-memory-id>\` when companion is installed; otherwise use hosted \`snipara_memory_invalidate\` or \`snipara_memory_supersede\`. Never store secrets.
1518
1526
  `;
1519
1527
  }
1520
1528
  function buildCodexConfigTemplate(answers) {
@@ -2458,9 +2466,10 @@ ${guidance.map((line) => `- ${line}`).join("\n")}
2458
2466
 
2459
2467
  - Start substantial work with \`snipara_recall\` and \`snipara_context_query\`.
2460
2468
  - Use \`answer_pack\` facts, caveats, source maps, and verification checks before making claims.
2461
- - Use \`snipara_code_symbol_card\` and \`snipara_code_impact\` for important symbols or risky multi-file changes when available.
2469
+ - Use \`snipara_code_symbol_card\` for important symbols. For risky multi-file changes, use \`snipara-companion code impact\` first when companion is available; use hosted \`snipara_code_impact\` only when companion is unavailable or after push/reindex for canonical graph impact.
2462
2470
  - Use the installed \`snipara-companion\` binary for low-latency hooks; use \`${COMPANION_NPX_COMMAND}\` for one-off terminal commands when freshness matters.
2463
2471
  - Use a JSON machine plan plus \`snipara-companion workflow start\`, \`phase-start\`, \`phase-commit\`, \`workflow resume\`, and \`final-commit\` for multi-phase work. After \`workflow resume\`, rerun \`workflow phase-start <phase_id>\` before editing again.
2472
+ - When remembered knowledge is obsolete or replaced, use \`snipara-companion memory invalidate <memory-id>\` or \`snipara-companion memory supersede <old-memory-id> <new-memory-id>\` when companion is installed; otherwise use hosted \`snipara_memory_invalidate\` or \`snipara_memory_supersede\`.
2464
2473
  - Persist only durable decisions, learnings, preferences, workflows, and troubleshooting outcomes. Never persist secrets.
2465
2474
  `;
2466
2475
  }
@@ -2474,7 +2483,7 @@ async function createCompanionPack(answers) {
2474
2483
  fs.mkdirSync(packDir, { recursive: true });
2475
2484
  const readme = `# Snipara Companion Pack
2476
2485
 
2477
- This project uses Snipara as a hosted-first context and memory layer with local companion workflow helpers.
2486
+ This project uses Snipara as a hosted-first project intelligence layer with source-backed context, reviewed memory, and local companion workflow helpers.
2478
2487
 
2479
2488
  ## Install Profile
2480
2489
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "1.3.52",
3
+ "version": "1.3.54",
4
4
  "description": "Onboard Snipara Hosted MCP Context + Memory with auth, companion workflows, and optional Snipara Sandbox",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",