create-snipara 3.1.8 → 3.1.10

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 CHANGED
@@ -184,6 +184,7 @@ The CLI now works around explicit install profiles:
184
184
 
185
185
  | Profile | What it installs | Best for |
186
186
  | ------------------ | --------------------------------------------- | ------------------------------------------------------------------------- |
187
+ | `local-work` | Managed Companion + Sandbox; optional context | Local tasks and validation without a Snipara account |
187
188
  | `hosted-only` | Hosted MCP config only | Default: first grounded answer with no local companion, hooks, or sandbox |
188
189
  | `hosted-companion` | MCP + `snipara-companion` | Hosted context plus managed local workflow after first value |
189
190
  | `full-stack` | MCP + `snipara-companion` + `snipara-sandbox` | Hosted context plus sandboxed local execution |
@@ -224,8 +225,8 @@ That distinction matters:
224
225
  - detects a GitHub remote and can open the Snipara GitHub App automation path
225
226
  - can activate the current folder locally through `snipara-companion source init` after the user opts into Companion
226
227
  - explains the GitHub PR Answer Packs path for AI-assisted pull request workflows
227
- - installs `snipara-companion` only with `--advanced`, `--profile hosted-companion`,
228
- `--profile full-stack`, or `repair --with-companion`
228
+ - installs `snipara-companion` with `--profile local-work`,
229
+ `--profile hosted-companion`, `--profile full-stack`, or `repair --with-companion`
229
230
  - installs optional `snipara-sandbox`
230
231
  - configures `.mcp.json`
231
232
  - generates merge-ready AI agent templates in `.snipara/templates/`, including symbol-card, code-impact, and managed workflow guidance within plan capacity
@@ -700,13 +701,13 @@ arguments can be visible in shell history and process listings.
700
701
 
701
702
  ## Example Flows
702
703
 
703
- ### Default managed hosted setup
704
+ ### Default hosted setup
704
705
 
705
706
  ```bash
706
707
  npx create-snipara
707
708
  ```
708
709
 
709
- Best when the user wants Hosted MCP Context + Memory plus `snipara-companion` managed workflows.
710
+ Best when the user wants Hosted MCP Context + Memory. Add `--profile hosted-companion` for local managed workflows.
710
711
 
711
712
  ### Minimal hosted setup
712
713
 
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { homedir as homedir2 } from "os";
14
14
  // package.json
15
15
  var package_default = {
16
16
  name: "create-snipara",
17
- version: "3.1.8",
17
+ version: "3.1.10",
18
18
  description: "Onboard Snipara Cloud or self-hosted MCP with an automatic project-grounded proof of value",
19
19
  main: "dist/index.js",
20
20
  type: "module",
@@ -225,8 +225,8 @@ function parseManagedToolchainManifest(value) {
225
225
 
226
226
  // src/managed-versions.json
227
227
  var managed_versions_default = {
228
- companion: "9.3.2",
229
- sandbox: "3.7.0"
228
+ companion: "9.4.0",
229
+ sandbox: "3.8.0"
230
230
  };
231
231
 
232
232
  // src/managed-toolchain.ts
@@ -3064,6 +3064,13 @@ async function gatherConfiguration(options) {
3064
3064
  githubPath: options.githubPath
3065
3065
  });
3066
3066
  }
3067
+ const asksNothing = !!requestedClient && initialProfile === "local-work" && !!options.profile && !showAdvancedPrompts && initialDeployment !== "self-hosted" && (!options.connectContext || hasBoundLocalWorkSource("local-work"));
3068
+ const injected = prompts._injected;
3069
+ if (!process.stdin.isTTY && !asksNothing && !(Array.isArray(injected) && injected.length > 0)) {
3070
+ throw new Error(
3071
+ "create-snipara init has questions to ask and no interactive terminal. Run it in a terminal, or pass --yes to accept the defaults (with --client and --profile to choose them)."
3072
+ );
3073
+ }
3067
3074
  const response = await prompts([
3068
3075
  {
3069
3076
  type: showAdvancedPrompts ? "select" : null,
@@ -3163,7 +3170,8 @@ async function gatherConfiguration(options) {
3163
3170
  }
3164
3171
  },
3165
3172
  {
3166
- type: "select",
3173
+ // --client already answers this; asking again only blocks a run without a terminal.
3174
+ type: requestedClient ? null : "select",
3167
3175
  name: "aiClient",
3168
3176
  message: "Which AI client are you using?",
3169
3177
  initial: Math.max(
@@ -133,8 +133,8 @@ function parseManagedToolchainManifest(value) {
133
133
 
134
134
  // src/managed-versions.json
135
135
  var managed_versions_default = {
136
- companion: "9.3.2",
137
- sandbox: "3.7.0"
136
+ companion: "9.4.0",
137
+ sandbox: "3.8.0"
138
138
  };
139
139
 
140
140
  // src/managed-toolchain.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-snipara",
3
- "version": "3.1.8",
3
+ "version": "3.1.10",
4
4
  "description": "Onboard Snipara Cloud or self-hosted MCP with an automatic project-grounded proof of value",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",