create-snipara 1.3.5 → 1.3.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 +1 -1
- package/dist/index.js +10 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -367,7 +367,7 @@ npx create-snipara print-config --json
|
|
|
367
367
|
When testing a locally packed tarball, use `npm exec --package` instead of `npx`, for example:
|
|
368
368
|
|
|
369
369
|
```bash
|
|
370
|
-
npm exec --package ./create-snipara-1.3.
|
|
370
|
+
npm exec --package ./create-snipara-1.3.6.tgz create-snipara -- --help
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
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.6";
|
|
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";
|
|
@@ -125,20 +125,21 @@ async function runRepair(options) {
|
|
|
125
125
|
async function runUpgrade(options) {
|
|
126
126
|
const detection = detectEnvironment();
|
|
127
127
|
const answers = loadExistingAnswers(options);
|
|
128
|
+
const upgradedAnswers = {
|
|
129
|
+
...answers,
|
|
130
|
+
installMcp: options.withMcp || answers.installMcp,
|
|
131
|
+
installRuntime: options.withRuntime || answers.installRuntime
|
|
132
|
+
};
|
|
128
133
|
console.log(chalk.bold("\n\u2B06\uFE0F Upgrading Local Components\n"));
|
|
129
134
|
if (options.withMcp || options.withRuntime || detection.existingConfig.hasRuntimeServer) {
|
|
130
|
-
await installPythonPackages(
|
|
131
|
-
{
|
|
132
|
-
...answers,
|
|
133
|
-
installMcp: options.withMcp || answers.installMcp,
|
|
134
|
-
installRuntime: options.withRuntime || answers.installRuntime
|
|
135
|
-
},
|
|
136
|
-
true
|
|
137
|
-
);
|
|
135
|
+
await installPythonPackages(upgradedAnswers, true);
|
|
138
136
|
}
|
|
139
137
|
if (options.withCompanion || detection.tooling.companionCli || answers.installCompanion) {
|
|
140
138
|
await installNodeCompanion(true);
|
|
141
139
|
}
|
|
140
|
+
if (options.withMcp || options.withRuntime || detection.files.mcpConfig) {
|
|
141
|
+
await createMcpConfig(upgradedAnswers);
|
|
142
|
+
}
|
|
142
143
|
if (options.withHooks || answers.installHooks) {
|
|
143
144
|
await installClaudeCodeHooks({ ...answers, installHooks: true });
|
|
144
145
|
}
|
package/package.json
CHANGED