create-snipara 1.3.31 → 1.3.33

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 (2) hide show
  1. package/dist/index.js +13 -20
  2. package/package.json +1 -1
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.31",
16
+ version: "1.3.33",
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",
@@ -1204,6 +1204,10 @@ This project uses Snipara Hosted MCP for project context and reviewed memory.
1204
1204
  call such as \`snipara_settings\`, \`tools/list\`, or a lightweight
1205
1205
  \`snipara_context_query\`. Do not treat empty MCP resources/templates as an
1206
1206
  outage because Snipara may be tool-only.
1207
+ - If a session appears to expose only a subset of expected Snipara tools, call
1208
+ \`snipara_help(list_all=true)\` and compare exact tool names before concluding
1209
+ that a tool is unavailable. Do not infer absence from one broad discovery
1210
+ pass or a ranked tool-search result.
1207
1211
 
1208
1212
  Agent task lifecycle:
1209
1213
 
@@ -1262,6 +1266,7 @@ Canonical project context is in \`AGENTS.md\`. This file exists for Claude Code
1262
1266
  Use Snipara Hosted MCP before answering project-specific questions.
1263
1267
 
1264
1268
  - Endpoint: \`${buildHostedMcpEndpoint(answers)}\`
1269
+ - If a session exposes only a subset of expected Snipara tools, call \`snipara_help(list_all=true)\` before concluding a tool is unavailable.
1265
1270
  - Start substantial work with \`snipara_recall\` and a targeted \`snipara_context_query\`.
1266
1271
  - Use \`snipara_context_query\` for source truth and \`snipara_get_chunk\` for exact cited sections.
1267
1272
  - When \`snipara_context_query\` returns \`answer_pack\`, use its facts, caveats, source map, and verification checklist before drafting claims.
@@ -1289,6 +1294,7 @@ alwaysApply: true
1289
1294
  This workspace uses Snipara Hosted MCP for current project context, business/client context, and reviewed memory.
1290
1295
 
1291
1296
  - Check the configured Snipara MCP server before answering project-specific questions.
1297
+ - If a session exposes only a subset of expected Snipara tools, call \`snipara_help(list_all=true)\` before concluding a tool is unavailable.
1292
1298
  - Endpoint: \`${buildHostedMcpEndpoint(answers)}\`
1293
1299
  - Use \`snipara_recall\` for durable decisions, preferences, and validated learnings.
1294
1300
  - Use \`snipara_context_query\` for docs, business context, current client/project truth, and narrative source material.
@@ -1635,31 +1641,18 @@ async function createCompanionConfig(answers) {
1635
1641
  }
1636
1642
  const configDir = path.join(process.cwd(), ".snipara", "companion");
1637
1643
  const configPath = path.join(configDir, "config.json");
1638
- const globalConfigPath = getGlobalCompanionConfigPath();
1639
1644
  fs.mkdirSync(configDir, { recursive: true });
1640
- fs.mkdirSync(path.dirname(globalConfigPath), { recursive: true });
1641
- const existingGlobalConfig = readCompanionConfigFile(globalConfigPath);
1642
1645
  const existingWorkspaceConfig = readCompanionConfigFile(configPath);
1643
- const globalConfig = {
1644
- ...existingGlobalConfig,
1645
- apiKey: answers.apiKey,
1646
- apiUrl: API_URL
1647
- };
1648
1646
  const workspaceConfig = {
1649
- projectId: answers.projectSlug,
1647
+ ...existingWorkspaceConfig,
1648
+ apiKey: answers.apiKey,
1649
+ apiUrl: API_URL,
1650
+ projectId: answers.projectId || answers.projectSlug,
1650
1651
  sessionId: typeof existingWorkspaceConfig.sessionId === "string" && existingWorkspaceConfig.sessionId ? existingWorkspaceConfig.sessionId : `sess_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`
1651
1652
  };
1652
- fs.writeFileSync(globalConfigPath, JSON.stringify(globalConfig, null, 2) + "\n");
1653
1653
  fs.writeFileSync(configPath, JSON.stringify(workspaceConfig, null, 2) + "\n");
1654
- ensureGitignoreEntry(
1655
- ".snipara/companion/config.json",
1656
- "# Snipara local companion workspace config"
1657
- );
1658
- console.log(chalk.green(" \u2713 Configured global companion auth"));
1659
- console.log(chalk.green(" \u2713 Configured local companion workspace"));
1660
- }
1661
- function getGlobalCompanionConfigPath() {
1662
- return path.join(homedir(), ".rlmsaas", "config.json");
1654
+ ensureGitignoreEntry(".snipara/companion/config.json", "# Snipara local companion config");
1655
+ console.log(chalk.green(" \u2713 Configured local companion config"));
1663
1656
  }
1664
1657
  function readCompanionConfigFile(filePath) {
1665
1658
  if (!fs.existsSync(filePath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "1.3.31",
3
+ "version": "1.3.33",
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",