create-snipara 1.3.29 → 1.3.30
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/dist/index.js +4 -4
- 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.
|
|
16
|
+
version: "1.3.30",
|
|
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",
|
|
@@ -1659,7 +1659,7 @@ async function createCompanionConfig(answers) {
|
|
|
1659
1659
|
apiUrl: API_URL
|
|
1660
1660
|
};
|
|
1661
1661
|
const workspaceConfig = {
|
|
1662
|
-
projectId: answers.
|
|
1662
|
+
projectId: answers.projectSlug,
|
|
1663
1663
|
sessionId: typeof existingWorkspaceConfig.sessionId === "string" && existingWorkspaceConfig.sessionId ? existingWorkspaceConfig.sessionId : `sess_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`
|
|
1664
1664
|
};
|
|
1665
1665
|
fs.writeFileSync(globalConfigPath, JSON.stringify(globalConfig, null, 2) + "\n");
|
|
@@ -1746,7 +1746,7 @@ function getClientGuidance(client) {
|
|
|
1746
1746
|
];
|
|
1747
1747
|
}
|
|
1748
1748
|
function getCompanionCommands(answers) {
|
|
1749
|
-
const
|
|
1749
|
+
const projectFlag = answers.projectSlug ? ` --project ${answers.projectSlug}` : "";
|
|
1750
1750
|
const clientFlag = getCompanionInitClientFlag(answers.aiClient);
|
|
1751
1751
|
const businessOnboardingCommands = answers.installCompanion ? [
|
|
1752
1752
|
{
|
|
@@ -1778,7 +1778,7 @@ function getCompanionCommands(answers) {
|
|
|
1778
1778
|
return [
|
|
1779
1779
|
{
|
|
1780
1780
|
title: "Bootstrap local companion",
|
|
1781
|
-
command: `${COMPANION_COMMAND_NAME} init${clientFlag}${
|
|
1781
|
+
command: `${COMPANION_COMMAND_NAME} init${clientFlag}${projectFlag}`,
|
|
1782
1782
|
purpose: "Re-run local companion setup if this workstation needs to refresh browser login or project selection."
|
|
1783
1783
|
},
|
|
1784
1784
|
{
|
package/package.json
CHANGED