create-snipara 1.3.43 → 1.3.45
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 +21 -14
- 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.45",
|
|
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
|
}
|
|
@@ -2028,7 +2031,8 @@ function getClientGuidance(client) {
|
|
|
2028
2031
|
"Codex should use the hosted MCP surface plus AGENTS.md as the canonical project instruction file.",
|
|
2029
2032
|
"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.",
|
|
2030
2033
|
"Use SNIPARA_API_KEY as the only Codex bearer_token_env_var; restart Codex after changing MCP config.",
|
|
2031
|
-
"If Codex lazily exposes only a minimal tool set, force discovery for snipara_recall, snipara_context_query, and
|
|
2034
|
+
"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.",
|
|
2035
|
+
"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."
|
|
2032
2036
|
];
|
|
2033
2037
|
}
|
|
2034
2038
|
if (client === "gemini") {
|
|
@@ -2137,8 +2141,8 @@ function getCompanionCommands(answers) {
|
|
|
2137
2141
|
},
|
|
2138
2142
|
{
|
|
2139
2143
|
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
|
|
2144
|
+
command: `${COMPANION_NPX_COMMAND} workflow start --goal "Implement webhook retry hardening" --plan-file ./plan.json`,
|
|
2145
|
+
purpose: "Record the JSON machine plan in .snipara/workflow/current.json so stable phase ids survive compaction."
|
|
2142
2146
|
},
|
|
2143
2147
|
{
|
|
2144
2148
|
title: "Start the current workflow phase",
|
|
@@ -2317,7 +2321,7 @@ ${guidance.map((line) => `- ${line}`).join("\n")}
|
|
|
2317
2321
|
- Use \`answer_pack\` facts, caveats, source maps, and verification checks before making claims.
|
|
2318
2322
|
- Use \`snipara_code_symbol_card\` and \`snipara_code_impact\` for important symbols or risky multi-file changes when available.
|
|
2319
2323
|
- 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.
|
|
2324
|
+
- 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
2325
|
- Persist only durable decisions, learnings, preferences, workflows, and troubleshooting outcomes. Never persist secrets.
|
|
2322
2326
|
`;
|
|
2323
2327
|
}
|
|
@@ -2410,7 +2414,7 @@ ${item.purpose}`
|
|
|
2410
2414
|
|
|
2411
2415
|
- Context first: use hosted queries, shared-context, and document loads for source truth.
|
|
2412
2416
|
- 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.
|
|
2417
|
+
- 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
2418
|
- Durable memory, policy, and orchestration stay hosted in Snipara.
|
|
2415
2419
|
- The local companion is optional tooling for capture, bootstrap, upload, exploration, doctor, repair, and explicit task summaries.
|
|
2416
2420
|
`;
|
|
@@ -3139,7 +3143,10 @@ function printSuccess(answers, report) {
|
|
|
3139
3143
|
"Restart Codex after changing ~/.codex/config.toml so it rediscovers the hosted Snipara MCP tools."
|
|
3140
3144
|
);
|
|
3141
3145
|
printNextStep(
|
|
3142
|
-
"If Codex shows only a minimal Snipara tool set, force discovery for snipara_recall, snipara_context_query, and
|
|
3146
|
+
"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)."
|
|
3147
|
+
);
|
|
3148
|
+
printNextStep(
|
|
3149
|
+
"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."
|
|
3143
3150
|
);
|
|
3144
3151
|
}
|
|
3145
3152
|
if (answers.aiClient === "mistral") {
|
package/package.json
CHANGED