create-snipara 2.0.4 → 2.0.6

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 +6 -5
  2. package/dist/index.js +28 -27
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -188,11 +188,12 @@ native skills should keep using `AGENTS.md`, `CLAUDE.md`, or project rules as th
188
188
  shared instruction surface.
189
189
 
190
190
  For Codex, `SNIPARA_API_KEY` is the only generated bearer token environment
191
- variable. If Codex lazily exposes only a minimal Snipara MCP surface after
192
- restart, force exact discovery for `snipara_recall`, `snipara_context_query`,
193
- and `snipara_settings`. Use `snipara-companion recall`, `snipara-companion
194
- query`, and `snipara-companion task-commit` as the reliable local fallback while
195
- the Codex session reloads or rediscovers tools.
191
+ variable. If Codex exposes only the lean Snipara MCP surface after restart,
192
+ that is expected. Use `snipara_help(query=...)` for routed guidance and
193
+ `snipara_help(list_all=true)` to inspect specialist opt-in surfaces. Use
194
+ `snipara-companion recall`, `snipara-companion query`, and
195
+ `snipara-companion task-commit` as the reliable local fallback when the simple
196
+ hosted tools are not callable.
196
197
 
197
198
  Existing root `AGENTS.md` and `CLAUDE.md` files are not replaced. The installer
198
199
  adds or refreshes a marked Snipara section so project-specific instructions stay
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: "2.0.4",
16
+ version: "2.0.6",
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",
@@ -1492,7 +1492,7 @@ function buildSniparaOnboardingSkill(endpoint, companionPrefix) {
1492
1492
  "",
1493
1493
  `Use the Hosted MCP endpoint: \`${endpoint}\`. Keep the API key in \`SNIPARA_API_KEY\` or the client secret store. Never paste keys into tracked files, prompts, logs, screenshots, or durable memory.`,
1494
1494
  "",
1495
- "Validate availability with a tool-oriented call such as `snipara_help(list_all=true)`, `snipara_settings`, or a lightweight `snipara_context_query`. Empty MCP resources or resource templates do not prove an outage because Snipara may be exposed as a tool-only MCP server.",
1495
+ 'Validate availability with a simple tool-oriented call such as `snipara_help(query="what should I use for project context?")`, `snipara_settings`, or a lightweight `snipara_context_query`. Empty MCP resources or resource templates do not prove an outage because Snipara may be exposed as a tool-only MCP server.',
1496
1496
  "",
1497
1497
  "## Setup Steps",
1498
1498
  "",
@@ -1512,7 +1512,7 @@ function buildSniparaOnboardingSkill(endpoint, companionPrefix) {
1512
1512
  "",
1513
1513
  "## Failure Handling",
1514
1514
  "",
1515
- "If broad discovery shows only a partial tool surface, call `snipara_help(list_all=true)` before concluding a tool is unavailable. If the client still lags after config changes, use Companion commands as a local fallback for recall, query, and task commit until the MCP session refreshes.",
1515
+ "If broad discovery shows only the lean default tool surface, treat that as normal. Use `snipara_help(query=...)` for routed guidance, `snipara_help(list_all=true)` to inspect specialist opt-in surfaces, and Companion commands as a local fallback for recall, query, and task commit until the MCP session refreshes.",
1516
1516
  ""
1517
1517
  ].join("\n");
1518
1518
  }
@@ -1733,17 +1733,13 @@ This project uses Snipara Hosted MCP for project context and reviewed memory.
1733
1733
  - For Codex, expose the endpoint as a streamable HTTP MCP server and load the
1734
1734
  key from \`SNIPARA_API_KEY\`.
1735
1735
  - At the start of every new thread, validate hosted MCP with a tool-oriented
1736
- call such as \`snipara_settings\`, \`tools/list\`, or a lightweight
1736
+ call such as \`snipara_settings\`, \`snipara_help(query=...)\`, or a lightweight
1737
1737
  \`snipara_context_query\`. Do not treat empty MCP resources/templates as an
1738
1738
  outage because Snipara may be tool-only.
1739
- - In Codex, if only a minimal Snipara tool subset appears, force precise tool
1740
- discovery for \`snipara_recall\`, \`snipara_context_query\`, and
1741
- \`snipara_settings\` before concluding the MCP server is incomplete.
1742
- - If a session appears to expose only a subset of expected Snipara tools, call
1743
- \`snipara_help(list_all=true)\` and compare exact tool names before concluding
1744
- that a tool is unavailable. Do not infer absence from one broad discovery
1745
- pass or a ranked tool-search result.
1746
- - If Codex still exposes only a partial surface after exact discovery, use
1739
+ - In Codex, a lean Snipara tool set is expected. Use \`snipara_help(query=...)\`
1740
+ for routed guidance and \`snipara_help(list_all=true)\` to inspect specialist
1741
+ opt-in surfaces before requesting expanded schemas.
1742
+ - If Codex still cannot call the simple context or memory tools, use
1747
1743
  \`snipara-companion recall\`, \`snipara-companion query\`, and
1748
1744
  \`snipara-companion task-commit\` as the reliable local fallback, then restart
1749
1745
  or reload Codex after MCP config changes.
@@ -1758,7 +1754,9 @@ Agent task lifecycle:
1758
1754
  1. Start every new thread by validating hosted MCP availability, then use
1759
1755
  project-scoped \`snipara_recall\` and a targeted \`snipara_context_query\` before
1760
1756
  falling back to local documentation search.
1761
- 2. Use \`snipara_context_query\` for docs, business context, client/project truth, architecture notes, runbooks, and narrative source material.
1757
+ 2. Use \`snipara_context_query\` for docs, business context, client/project truth,
1758
+ architecture notes, runbooks, and narrative source material. Keep simple Q&A
1759
+ and single-source lookups on a targeted \`snipara_context_query\`.
1762
1760
  3. When \`snipara_context_query\` returns \`answer_pack\`, treat it as the first-pass response plan: use its source facts, caveats, source map, and verification checklist before drafting claims.
1763
1761
  4. Use \`snipara_get_chunk\` to load cited source sections returned by reference-based queries before relying on precise wording.
1764
1762
  5. For coding tasks, choose a workflow mode before editing: LITE for small
@@ -1771,8 +1769,11 @@ Agent task lifecycle:
1771
1769
  context and \`snipara-companion code impact\` before risky multi-file changes, PR
1772
1770
  reviews, routes, services, jobs, auth, billing, deployment, schema, migrations,
1773
1771
  or explicit "what is missing" assessments.
1774
- 8. Use \`snipara_plan\` for complex work in any plan when exposed; reserve
1775
- \`snipara_decompose\` for FULL-mode work when the hosted server exposes it.
1772
+ 8. Use \`snipara_plan\` for complex or multi-surface work in any plan when
1773
+ exposed. For FULL-mode audits, comparisons, roadmap/implementation planning,
1774
+ release readiness, or package-surface reviews, use \`snipara_decompose\` to
1775
+ preserve the work axes and \`snipara_multi_query\` to execute independent
1776
+ follow-up questions when Pro+ tools are exposed.
1776
1777
  9. When the LLM has produced a visible multi-phase plan and \`snipara-companion\`
1777
1778
  is installed, keep the machine plan in JSON and run
1778
1779
  \`snipara-companion workflow start --goal "<goal>" --plan-file <plan_json_file>\`.
@@ -1818,8 +1819,8 @@ Use Snipara Hosted MCP before answering project-specific questions.
1818
1819
 
1819
1820
  - Endpoint: \`${buildHostedMcpEndpoint(answers)}\`
1820
1821
  - Auth: use \`SNIPARA_API_KEY\` from the environment. Never commit keys.
1821
- - At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`tools/list\`, or a lightweight \`snipara_context_query\`. Do not treat empty MCP resources/templates as an outage because Snipara may be tool-only.
1822
- - If a session exposes only a subset of expected Snipara tools, call \`snipara_help(list_all=true)\` and compare exact tool names before concluding a tool is unavailable. If only a partial surface remains after exact discovery, use \`snipara-companion recall\`, \`snipara-companion query\`, and \`snipara-companion task-commit\` as a reliable local fallback.
1822
+ - At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`snipara_help(query=...)\`, or a lightweight \`snipara_context_query\`. Do not treat empty MCP resources/templates as an outage because Snipara may be tool-only.
1823
+ - A lean default Snipara tool set is expected. Use \`snipara_help(query=...)\` for routed guidance, \`snipara_help(list_all=true)\` to inspect specialist opt-in surfaces, and \`snipara-companion recall\`, \`snipara-companion query\`, or \`snipara-companion task-commit\` as local fallbacks when the simple tools are unavailable.
1823
1824
  - If the client supports native skills, install the generated Snipara skill pack from \`.snipara/templates/skills\`. Keep \`AGENTS.md\` as the shared fallback for clients without native skill support.
1824
1825
 
1825
1826
  ${EXPERIENCE_GOAL_SECTION}
@@ -1828,7 +1829,7 @@ ${EXPERIENCE_GOAL_SECTION}
1828
1829
  - Use \`snipara_context_query\` for source truth and \`snipara_get_chunk\` for exact cited sections.
1829
1830
  - When \`snipara_context_query\` returns \`answer_pack\`, use its facts, caveats, source map, and verification checklist before drafting claims.
1830
1831
  - For coding tasks, choose a workflow mode before editing: LITE for small single-phase changes, FULL managed workflow for multi-file, risky, release/deploy, architectural, compaction-prone, or future-maintainer-sensitive work.
1831
- - Use \`snipara_plan\` for complex work when exposed; reserve \`snipara_decompose\` for FULL-mode work when the hosted server exposes it.
1832
+ - Use \`snipara_plan\` for complex or multi-surface work when exposed. Keep simple Q&A on targeted \`snipara_context_query\`; for FULL-mode audits, comparisons, roadmap/implementation planning, release readiness, or package-surface reviews, use \`snipara_decompose\` to preserve axes and \`snipara_multi_query\` for independent follow-up questions when Pro+ tools are exposed.
1832
1833
  - Use \`snipara_code_callers\`, \`snipara_code_imports\`, \`snipara_code_neighbors\`, or \`snipara_code_shortest_path\` for canonical structural code questions.
1833
1834
  - 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.
1834
1835
  - Run \`snipara-companion code impact\` before risky multi-file changes, PR reviews, routes, services, jobs, auth, billing, deployment, schema, migrations, or explicit "what is missing" assessments.
@@ -1858,8 +1859,8 @@ This workspace uses Snipara Hosted MCP for current project context, business/cli
1858
1859
 
1859
1860
  - Check the configured Snipara MCP server before answering project-specific questions.
1860
1861
  - Endpoint: \`${buildHostedMcpEndpoint(answers)}\`
1861
- - At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`tools/list\`, or a lightweight \`snipara_context_query\`. Do not treat empty MCP resources/templates as an outage because Snipara may be tool-only.
1862
- - If a session exposes only a subset of expected Snipara tools, call \`snipara_help(list_all=true)\` and compare exact tool names before concluding a tool is unavailable. If only a partial surface remains after exact discovery, use \`snipara-companion recall\`, \`snipara-companion query\`, and \`snipara-companion task-commit\` as a reliable local fallback.
1862
+ - At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`snipara_help(query=...)\`, or a lightweight \`snipara_context_query\`. Do not treat empty MCP resources/templates as an outage because Snipara may be tool-only.
1863
+ - A lean default Snipara tool set is expected. Use \`snipara_help(query=...)\` for routed guidance, \`snipara_help(list_all=true)\` to inspect specialist opt-in surfaces, and \`snipara-companion recall\`, \`snipara-companion query\`, or \`snipara-companion task-commit\` as local fallbacks when the simple tools are unavailable.
1863
1864
  - If the client supports native skills, install the generated Snipara skill pack from \`.snipara/templates/skills\`. Keep \`AGENTS.md\` as the shared fallback for clients without native skill support.
1864
1865
 
1865
1866
  ${EXPERIENCE_GOAL_SECTION}
@@ -1874,7 +1875,7 @@ ${EXPERIENCE_GOAL_SECTION}
1874
1875
  - Run \`snipara-companion code impact\` before risky multi-file changes, PR reviews, routes, services, jobs, auth, billing, deployment, schema, migrations, or explicit "what is missing" assessments.
1875
1876
  - On paid Context plans, use \`snipara_code_symbol_card\` before editing important symbols.
1876
1877
  - Check every \`snipara_code_*\` response for indexed commit SHA, indexing time, included files, coverage, and freshness warnings.
1877
- - Use \`snipara_plan\` for complex work when available; use \`snipara_decompose\` when deeper decomposition is needed and the hosted server exposes it.
1878
+ - Use \`snipara_plan\` for complex or multi-surface work when available. Keep simple Q&A on targeted \`snipara_context_query\`; for FULL-mode audits, comparisons, roadmap/implementation planning, release readiness, or package-surface reviews, use \`snipara_decompose\` to preserve axes and \`snipara_multi_query\` for independent follow-up questions when Pro+ tools are exposed.
1878
1879
  - Use local file reads, \`rg\`, \`git status --short\`, and tests for exact code edits and current working-tree state.
1879
1880
  - If a broad query is slow, retry once with a narrow keyword query before falling back to local search.
1880
1881
  - 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.
@@ -2536,8 +2537,8 @@ function getClientGuidance(client) {
2536
2537
  "Codex should use the hosted MCP surface plus AGENTS.md as the canonical project instruction file.",
2537
2538
  "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.",
2538
2539
  "Use SNIPARA_API_KEY as the only Codex bearer_token_env_var; restart Codex after changing MCP config.",
2539
- "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.",
2540
- "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."
2540
+ "If Codex exposes only the lean Snipara tool set, that is expected. Use snipara_help(query=...) for routed guidance and snipara_help(list_all=true) to inspect specialist opt-in surfaces before requesting exact htask or swarm schemas.",
2541
+ "When Codex cannot expose orchestration schemas directly, use snipara-orchestrator swarm-* and htask-* as the primary path for shared queues and multi-agent task work."
2541
2542
  ];
2542
2543
  }
2543
2544
  if (client === "gemini") {
@@ -2835,12 +2836,12 @@ ${guidance.map((line) => `- ${line}`).join("\n")}
2835
2836
 
2836
2837
  ## Agent Workflow
2837
2838
 
2838
- - At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`tools/list\`, or a lightweight \`snipara_context_query\`. Do not treat empty MCP resources/templates as an outage because Snipara may be tool-only.
2839
- - If a session exposes only a subset of expected Snipara tools, call \`snipara_help(list_all=true)\` and compare exact tool names before concluding a tool is unavailable. If only a partial surface remains after exact discovery, use \`snipara-companion recall\`, \`snipara-companion query\`, and \`snipara-companion task-commit\` as a reliable local fallback.
2839
+ - At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`snipara_help(query=...)\`, or a lightweight \`snipara_context_query\`. Do not treat empty MCP resources/templates as an outage because Snipara may be tool-only.
2840
+ - A lean default Snipara tool set is expected. Use \`snipara_help(query=...)\` for routed guidance, \`snipara_help(list_all=true)\` to inspect specialist opt-in surfaces, and \`snipara-companion recall\`, \`snipara-companion query\`, or \`snipara-companion task-commit\` as local fallbacks when the simple tools are unavailable.
2840
2841
  - Start substantial work with \`snipara_recall\` and \`snipara_context_query\`.
2841
2842
  - Use \`answer_pack\` facts, caveats, source maps, and verification checks before making claims.
2842
2843
  - For coding tasks, choose a workflow mode before editing: LITE for small single-phase changes, FULL managed workflow for multi-file, risky, release/deploy, architectural, compaction-prone, or future-maintainer-sensitive work.
2843
- - Use \`snipara_plan\` for complex work when exposed; reserve \`snipara_decompose\` for FULL-mode work when the hosted server exposes it.
2844
+ - Use \`snipara_plan\` for complex or multi-surface work when exposed. Keep simple Q&A on targeted \`snipara_context_query\`; for FULL-mode audits, comparisons, roadmap/implementation planning, release readiness, or package-surface reviews, use \`snipara_decompose\` to preserve axes and \`snipara_multi_query\` for independent follow-up questions when Pro+ tools are exposed.
2844
2845
  - Use \`snipara_code_symbol_card\` for important symbols. For risky multi-file changes, PR reviews, routes, services, jobs, auth, billing, deployment, schema, migrations, or explicit "what is missing" assessments, 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.
2845
2846
  - Use the installed \`snipara-companion\` binary for low-latency hooks; use \`${COMPANION_NPX_COMMAND}\` for one-off terminal commands when freshness matters.
2846
2847
  - If a broad query is slow, retry once with a narrow keyword query before falling back to local search.
@@ -3707,7 +3708,7 @@ function printSuccess(answers, report) {
3707
3708
  "Restart Codex after changing ~/.codex/config.toml so it rediscovers the hosted Snipara MCP tools."
3708
3709
  );
3709
3710
  printNextStep(
3710
- "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)."
3711
+ "If Codex shows only the lean Snipara tool set, that is expected. Use snipara_help(query=...) for routed guidance, confirm specialist opt-in surfaces with snipara_help(list_all=true), and request exact htask or swarm tools only when the workflow explicitly needs them."
3711
3712
  );
3712
3713
  printNextStep(
3713
3714
  "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."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
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",