create-snipara 2.0.5 → 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.
- package/README.md +6 -5
- package/dist/index.js +17 -21
- 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
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
the
|
|
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.
|
|
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
|
-
|
|
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
|
|
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\`, \`
|
|
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,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
- If
|
|
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.
|
|
@@ -1823,8 +1819,8 @@ Use Snipara Hosted MCP before answering project-specific questions.
|
|
|
1823
1819
|
|
|
1824
1820
|
- Endpoint: \`${buildHostedMcpEndpoint(answers)}\`
|
|
1825
1821
|
- Auth: use \`SNIPARA_API_KEY\` from the environment. Never commit keys.
|
|
1826
|
-
- At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`
|
|
1827
|
-
-
|
|
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.
|
|
1828
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.
|
|
1829
1825
|
|
|
1830
1826
|
${EXPERIENCE_GOAL_SECTION}
|
|
@@ -1863,8 +1859,8 @@ This workspace uses Snipara Hosted MCP for current project context, business/cli
|
|
|
1863
1859
|
|
|
1864
1860
|
- Check the configured Snipara MCP server before answering project-specific questions.
|
|
1865
1861
|
- Endpoint: \`${buildHostedMcpEndpoint(answers)}\`
|
|
1866
|
-
- At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`
|
|
1867
|
-
-
|
|
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.
|
|
1868
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.
|
|
1869
1865
|
|
|
1870
1866
|
${EXPERIENCE_GOAL_SECTION}
|
|
@@ -2541,8 +2537,8 @@ function getClientGuidance(client) {
|
|
|
2541
2537
|
"Codex should use the hosted MCP surface plus AGENTS.md as the canonical project instruction file.",
|
|
2542
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.",
|
|
2543
2539
|
"Use SNIPARA_API_KEY as the only Codex bearer_token_env_var; restart Codex after changing MCP config.",
|
|
2544
|
-
"If Codex
|
|
2545
|
-
"When Codex
|
|
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."
|
|
2546
2542
|
];
|
|
2547
2543
|
}
|
|
2548
2544
|
if (client === "gemini") {
|
|
@@ -2840,8 +2836,8 @@ ${guidance.map((line) => `- ${line}`).join("\n")}
|
|
|
2840
2836
|
|
|
2841
2837
|
## Agent Workflow
|
|
2842
2838
|
|
|
2843
|
-
- At the start of every new thread, validate hosted MCP with a tool-oriented call such as \`snipara_settings\`, \`
|
|
2844
|
-
-
|
|
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.
|
|
2845
2841
|
- Start substantial work with \`snipara_recall\` and \`snipara_context_query\`.
|
|
2846
2842
|
- Use \`answer_pack\` facts, caveats, source maps, and verification checks before making claims.
|
|
2847
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.
|
|
@@ -3712,7 +3708,7 @@ function printSuccess(answers, report) {
|
|
|
3712
3708
|
"Restart Codex after changing ~/.codex/config.toml so it rediscovers the hosted Snipara MCP tools."
|
|
3713
3709
|
);
|
|
3714
3710
|
printNextStep(
|
|
3715
|
-
"If Codex shows only
|
|
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."
|
|
3716
3712
|
);
|
|
3717
3713
|
printNextStep(
|
|
3718
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