create-snipara 1.3.53 → 1.3.55

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 +18 -11
  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.53",
16
+ version: "1.3.55",
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
  }
@@ -1477,8 +1482,8 @@ Use Snipara Hosted MCP before answering project-specific questions.
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
1484
  - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for canonical structural code questions.
1480
- - When local commits or a dirty working tree matter and \`snipara-companion\` is installed, use \`snipara-companion code callers/imports/neighbors/shortest-path/impact\`; it auto-selects hosted MCP or the local overlay and reports \`sourceSelection\`.
1481
- - 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.
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.
1482
1487
  - Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
1483
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.
1484
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.
@@ -1486,6 +1491,7 @@ Use Snipara Hosted MCP before answering project-specific questions.
1486
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.
1487
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\`.
1488
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\`.
1489
1495
  - Do not store secrets, one-off command output, raw logs, or unreviewed guesses in memory.
1490
1496
  - Use the Snipara Claude Code plugin only when slash commands, skills, or hooks are helpful; Hosted MCP remains the normal agent path.
1491
1497
  `;
@@ -1508,15 +1514,15 @@ This workspace uses Snipara Hosted MCP for current project context, business/cli
1508
1514
  - When \`snipara_context_query\` returns \`answer_pack\`, use its facts, caveats, source map, and verification checklist before drafting claims.
1509
1515
  - Use \`snipara_get_chunk\` before relying on exact cited wording from reference-based results.
1510
1516
  - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for canonical structural code questions.
1511
- - When local commits or a dirty working tree matter and \`snipara-companion\` is installed, use \`snipara-companion code callers/imports/neighbors/shortest-path/impact\`; it auto-selects hosted MCP or the local overlay and reports \`sourceSelection\`.
1512
- - 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.
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.
1513
1519
  - Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
1514
1520
  - Use \`snipara_plan\` or \`snipara_decompose\` only for complex work and only when available.
1515
1521
  - Use local file reads, \`rg\`, \`git status --short\`, and tests for exact code edits and current working-tree state.
1516
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.
1517
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.
1518
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.
1519
- - 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.
1520
1526
  `;
1521
1527
  }
1522
1528
  function buildCodexConfigTemplate(answers) {
@@ -2173,7 +2179,7 @@ function getClientGuidance(client) {
2173
2179
  "The generated .snipara/templates/codex-config.toml is a merge-ready snippet for ~/.codex/config.toml if your Codex app does not read project .codex/config.toml.",
2174
2180
  "Use SNIPARA_API_KEY as the only Codex bearer_token_env_var; restart Codex after changing MCP config.",
2175
2181
  "If Codex lazily exposes only a minimal tool set, force discovery for snipara_recall, snipara_context_query, snipara_settings, and the exact htask or swarm tool names you need; use snipara_help(list_all=true) to confirm the hosted catalog before concluding the MCP surface is incomplete.",
2176
- "When Codex still exposes only the minimal core tools, use snipara-orchestrator swarm-* and htask-* as the primary path for shared queues and multi-agent task work; keep snipara-companion swarm ... and htask ... as the direct hosted fallback when you only need one-off hosted calls."
2182
+ "When Codex still exposes only the minimal core tools, use snipara-orchestrator swarm-* and htask-* as the primary path for shared queues and multi-agent task work."
2177
2183
  ];
2178
2184
  }
2179
2185
  if (client === "gemini") {
@@ -2460,9 +2466,10 @@ ${guidance.map((line) => `- ${line}`).join("\n")}
2460
2466
 
2461
2467
  - Start substantial work with \`snipara_recall\` and \`snipara_context_query\`.
2462
2468
  - Use \`answer_pack\` facts, caveats, source maps, and verification checks before making claims.
2463
- - 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.
2464
2470
  - Use the installed \`snipara-companion\` binary for low-latency hooks; use \`${COMPANION_NPX_COMMAND}\` for one-off terminal commands when freshness matters.
2465
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\`.
2466
2473
  - Persist only durable decisions, learnings, preferences, workflows, and troubleshooting outcomes. Never persist secrets.
2467
2474
  `;
2468
2475
  }
@@ -3293,7 +3300,7 @@ function printSuccess(answers, report) {
3293
3300
  "If Codex shows only a minimal Snipara tool set, force discovery for snipara_recall, snipara_context_query, snipara_settings, and any exact htask or swarm tool names you need; confirm the hosted catalog with snipara_help(list_all=true)."
3294
3301
  );
3295
3302
  printNextStep(
3296
- "If Codex still does not expose the hosted task-routing tools, prefer snipara-orchestrator swarm-* and htask-* for shared queue or multi-agent task work, and keep snipara-companion swarm ... and htask ... as the direct hosted fallback for one-off calls."
3303
+ "If Codex still does not expose the hosted task-routing tools, prefer snipara-orchestrator swarm-* and htask-* for shared queue or multi-agent task work."
3297
3304
  );
3298
3305
  }
3299
3306
  if (answers.aiClient === "mistral") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "1.3.53",
3
+ "version": "1.3.55",
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",