create-snipara 1.3.12 → 1.3.14
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 -5
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -268,7 +268,7 @@ npx create-snipara --advanced
|
|
|
268
268
|
npx create-snipara --runtime-only
|
|
269
269
|
|
|
270
270
|
# Non-interactive setup with an existing API key
|
|
271
|
-
npx create-snipara -y --api-key
|
|
271
|
+
npx create-snipara -y --api-key snp-xxx --slug my-project
|
|
272
272
|
|
|
273
273
|
# Open GitHub automation after setup when a GitHub remote is detected
|
|
274
274
|
npx create-snipara --github
|
|
@@ -356,9 +356,9 @@ Recommended explanation to users:
|
|
|
356
356
|
|
|
357
357
|
## API Key Requirements
|
|
358
358
|
|
|
359
|
-
Existing manual API keys passed to `create-snipara --api-key` should start with `
|
|
360
|
-
|
|
361
|
-
new `snp-` key from the current hosted API.
|
|
359
|
+
Existing manual API keys passed to `create-snipara --api-key` should start with `snp-`;
|
|
360
|
+
legacy `rlm_` keys remain accepted for migration. When `create-snipara` provisions a
|
|
361
|
+
new account through the browser flow, Snipara returns a new `snp-` key from the current hosted API.
|
|
362
362
|
|
|
363
363
|
| Tooling | Snipara API key | LLM API key |
|
|
364
364
|
| --------------------------------------------------- | -------------------------- | ----------- |
|
|
@@ -437,7 +437,7 @@ npx create-snipara print-config --json
|
|
|
437
437
|
When testing a locally packed tarball, use `npm exec --package` instead of `npx`, for example:
|
|
438
438
|
|
|
439
439
|
```bash
|
|
440
|
-
npm exec --package ./create-snipara-1.3.
|
|
440
|
+
npm exec --package ./create-snipara-1.3.14.tgz create-snipara -- --help
|
|
441
441
|
```
|
|
442
442
|
|
|
443
443
|
This avoids `npx` resolution issues with unpublished tarballs.
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import fs from "fs";
|
|
|
9
9
|
import path from "path";
|
|
10
10
|
import { execSync, spawn } from "child_process";
|
|
11
11
|
import { homedir } from "os";
|
|
12
|
-
var VERSION = "1.3.
|
|
12
|
+
var VERSION = "1.3.14";
|
|
13
13
|
var BASE_URL = "https://www.snipara.com";
|
|
14
14
|
var API_URL = "https://api.snipara.com";
|
|
15
15
|
var COMPANION_PACKAGE_NAME = "snipara-companion";
|
|
@@ -322,7 +322,7 @@ async function gatherConfiguration(options) {
|
|
|
322
322
|
{
|
|
323
323
|
title: "I have an API key",
|
|
324
324
|
value: "api",
|
|
325
|
-
description: "Paste an API key that starts with rlm_"
|
|
325
|
+
description: "Paste an API key that starts with snp- or legacy rlm_"
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
title: "Create free Context + Memory account",
|
|
@@ -677,10 +677,11 @@ function sleep(ms) {
|
|
|
677
677
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
678
678
|
}
|
|
679
679
|
function isManualApiKey(value) {
|
|
680
|
-
|
|
680
|
+
const trimmed = value.trim();
|
|
681
|
+
return trimmed.startsWith("snp-") || trimmed.startsWith("rlm_");
|
|
681
682
|
}
|
|
682
683
|
function manualApiKeyValidationMessage() {
|
|
683
|
-
return "API key should start with rlm_";
|
|
684
|
+
return "API key should start with snp- or legacy rlm_";
|
|
684
685
|
}
|
|
685
686
|
function isProvisionedApiKey(value) {
|
|
686
687
|
return value.trim().startsWith("snp-");
|
|
@@ -1693,13 +1694,12 @@ async function testHostedConnection(answers) {
|
|
|
1693
1694
|
}
|
|
1694
1695
|
];
|
|
1695
1696
|
}
|
|
1696
|
-
|
|
1697
|
-
spinner.succeed(`Connected! ${toolCount} MCP tools available.`);
|
|
1697
|
+
spinner.succeed("Connected to Snipara Hosted MCP.");
|
|
1698
1698
|
const checks = [
|
|
1699
1699
|
{
|
|
1700
1700
|
name: "hosted_connection",
|
|
1701
1701
|
status: "pass",
|
|
1702
|
-
detail:
|
|
1702
|
+
detail: "tools/list succeeded"
|
|
1703
1703
|
}
|
|
1704
1704
|
];
|
|
1705
1705
|
const settingsResponse = await callHostedMcp(answers, "tools/call", {
|
package/package.json
CHANGED