create-snipara 1.3.43 → 1.3.44
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/README.md +5 -2
- package/dist/index.js +15 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -178,14 +178,17 @@ Existing root `AGENTS.md` and `CLAUDE.md` files are not replaced. The installer
|
|
|
178
178
|
adds or refreshes a marked Snipara section so project-specific instructions stay
|
|
179
179
|
intact.
|
|
180
180
|
|
|
181
|
-
When `snipara-companion` is installed, the companion pack also includes the compaction-safe managed workflow
|
|
181
|
+
When `snipara-companion` is installed, the companion pack also includes the compaction-safe managed workflow. Keep the machine plan in JSON for stable phase ids; an optional Markdown file can remain the human-facing contract.
|
|
182
182
|
|
|
183
183
|
```bash
|
|
184
|
-
snipara-companion workflow start --goal "ship auth hardening" --plan-file ./plan.
|
|
184
|
+
snipara-companion workflow start --goal "ship auth hardening" --plan-file ./plan.json
|
|
185
185
|
snipara-companion workflow phase-start context
|
|
186
186
|
snipara-companion workflow run --mode full --include-session-context --query "load auth context"
|
|
187
187
|
snipara-companion code impact --changed-files src/auth.ts tests/auth.test.ts --diff-summary "auth hardening"
|
|
188
188
|
snipara-companion workflow phase-commit context --summary "Loaded context and mapped impacted files" --files src/auth.ts
|
|
189
|
+
snipara-companion workflow resume --include-session-context
|
|
190
|
+
snipara-companion workflow phase-start implementation
|
|
191
|
+
snipara-companion workflow run --mode full --include-session-context --query "implement auth hardening"
|
|
189
192
|
snipara-companion final-commit --summary "Shipped auth hardening and tests" --files src/auth.ts tests/auth.test.ts
|
|
190
193
|
```
|
|
191
194
|
|
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.
|
|
16
|
+
version: "1.3.44",
|
|
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",
|
|
@@ -1372,9 +1372,12 @@ Agent task lifecycle:
|
|
|
1372
1372
|
8. Use \`snipara_plan\` or \`snipara_decompose\` only for FULL-mode work and only
|
|
1373
1373
|
when the hosted server exposes them.
|
|
1374
1374
|
9. When the LLM has produced a visible multi-phase plan and \`snipara-companion\`
|
|
1375
|
-
is installed,
|
|
1376
|
-
\`
|
|
1377
|
-
phase
|
|
1375
|
+
is installed, keep the machine plan in JSON and run
|
|
1376
|
+
\`snipara-companion workflow start --goal "<goal>" --plan-file <plan_json_file>\`.
|
|
1377
|
+
Use \`workflow phase-start\` / \`workflow phase-commit\` per phase, and after
|
|
1378
|
+
\`workflow resume\` rerun \`workflow phase-start <phase_id>\` before editing
|
|
1379
|
+
again. For runtime-bound phases, capture compact rehydratable Sandbox state
|
|
1380
|
+
with \`workflow runtime-checkpoint <phase_id> --summary "<state>" --rehydrate-file <state.json>\`.
|
|
1378
1381
|
10. Use local file reads, \`rg\`, git commands, and test commands for exact edits,
|
|
1379
1382
|
current working-tree state, and verification.
|
|
1380
1383
|
11. Treat every \`snipara_code_*\` response as indexed context: check indexed
|
|
@@ -1415,9 +1418,9 @@ Use Snipara Hosted MCP before answering project-specific questions.
|
|
|
1415
1418
|
- 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.
|
|
1416
1419
|
- Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
|
|
1417
1420
|
- 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.
|
|
1418
|
-
- When the plan is visible and \`snipara-companion\` is installed, use \`snipara-companion workflow start\`, \`phase-start\`, \`phase-commit
|
|
1421
|
+
- 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.
|
|
1419
1422
|
- If generated hooks are enabled, \`snipara-companion pre-tool\`, \`post-tool\`, and \`stuck-guard status\` provide runtime Rescue Pack checks when the agent loops on failures or empty searches.
|
|
1420
|
-
- Use Snipara Sandbox only when sandboxed execution or repeatable validation materially helps.
|
|
1423
|
+
- 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.
|
|
1421
1424
|
- 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\`.
|
|
1422
1425
|
- Use \`snipara_remember_if_novel\` or \`snipara_remember\` only for narrow durable memories.
|
|
1423
1426
|
- Do not store secrets, one-off command output, raw logs, or unreviewed guesses in memory.
|
|
@@ -1446,9 +1449,9 @@ This workspace uses Snipara Hosted MCP for current project context, business/cli
|
|
|
1446
1449
|
- Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
|
|
1447
1450
|
- Use \`snipara_plan\` or \`snipara_decompose\` only for complex work and only when available.
|
|
1448
1451
|
- Use local file reads, \`rg\`, \`git status --short\`, and tests for exact code edits and current working-tree state.
|
|
1449
|
-
- When \`snipara-companion\` is installed and the LLM has a visible multi-phase plan, use \`snipara-companion workflow start\`, \`phase-start\`, \`phase-commit
|
|
1452
|
+
- 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.
|
|
1450
1453
|
- 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.
|
|
1451
|
-
- Use Snipara Sandbox only when sandboxed execution or repeatable validation materially helps.
|
|
1454
|
+
- 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.
|
|
1452
1455
|
- 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.
|
|
1453
1456
|
`;
|
|
1454
1457
|
}
|
|
@@ -2137,8 +2140,8 @@ function getCompanionCommands(answers) {
|
|
|
2137
2140
|
},
|
|
2138
2141
|
{
|
|
2139
2142
|
title: "Start a managed workflow from the visible plan",
|
|
2140
|
-
command: `${COMPANION_NPX_COMMAND} workflow start --goal "Implement webhook retry hardening" --plan-file ./plan.
|
|
2141
|
-
purpose: "Record the
|
|
2143
|
+
command: `${COMPANION_NPX_COMMAND} workflow start --goal "Implement webhook retry hardening" --plan-file ./plan.json`,
|
|
2144
|
+
purpose: "Record the JSON machine plan in .snipara/workflow/current.json so stable phase ids survive compaction."
|
|
2142
2145
|
},
|
|
2143
2146
|
{
|
|
2144
2147
|
title: "Start the current workflow phase",
|
|
@@ -2317,7 +2320,7 @@ ${guidance.map((line) => `- ${line}`).join("\n")}
|
|
|
2317
2320
|
- Use \`answer_pack\` facts, caveats, source maps, and verification checks before making claims.
|
|
2318
2321
|
- Use \`snipara_code_symbol_card\` and \`snipara_code_impact\` for important symbols or risky multi-file changes when available.
|
|
2319
2322
|
- Use the installed \`snipara-companion\` binary for low-latency hooks; use \`${COMPANION_NPX_COMMAND}\` for one-off terminal commands when freshness matters.
|
|
2320
|
-
- Use \`snipara-companion workflow start\`, \`phase-start\`, \`phase-commit\`, \`workflow resume\`, and \`final-commit\` for multi-phase work.
|
|
2323
|
+
- 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.
|
|
2321
2324
|
- Persist only durable decisions, learnings, preferences, workflows, and troubleshooting outcomes. Never persist secrets.
|
|
2322
2325
|
`;
|
|
2323
2326
|
}
|
|
@@ -2410,7 +2413,7 @@ ${item.purpose}`
|
|
|
2410
2413
|
|
|
2411
2414
|
- Context first: use hosted queries, shared-context, and document loads for source truth.
|
|
2412
2415
|
- Memory second: use session bootstrap and task commit for durable decisions, learnings, and preferences.
|
|
2413
|
-
- Managed workflow when a visible plan exists: \`workflow start\`, \`phase-start\`, \`phase-commit\`, \`workflow resume\`, and \`final-commit\` keep phase state durable across compaction.
|
|
2416
|
+
- Managed workflow when a visible plan exists: keep the machine plan in JSON, then use \`workflow start\`, \`phase-start\`, \`phase-commit\`, \`workflow resume\`, and \`final-commit\` to keep phase state durable across compaction. For runtime-bound phases, use \`workflow runtime-checkpoint\` so resume can print a reattach or rehydrate path.
|
|
2414
2417
|
- Durable memory, policy, and orchestration stay hosted in Snipara.
|
|
2415
2418
|
- The local companion is optional tooling for capture, bootstrap, upload, exploration, doctor, repair, and explicit task summaries.
|
|
2416
2419
|
`;
|
package/package.json
CHANGED