superlore-cli 0.6.1 → 0.7.0

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.d.ts CHANGED
@@ -87,7 +87,7 @@ declare function serializeSuperloreJson(config: SuperloreJson): string;
87
87
  declare function resolveMcpPath(config: SuperloreJson): string | undefined;
88
88
 
89
89
  /** The CLI version, kept in sync with package.json at build time. */
90
- declare const VERSION = "0.6.1";
90
+ declare const VERSION = "0.7.0";
91
91
  /** Build the argument parser. Exported for tests; `run()` wires it to argv. */
92
92
  declare function buildCli(argv?: readonly string[]): cac.CAC;
93
93
  /** Parse argv and dispatch. Reports unknown commands and unexpected errors cleanly. */
package/dist/index.js CHANGED
@@ -390,17 +390,18 @@ async function connectCommand(flags = {}) {
390
390
  const labels = detected.map((e) => bold(e.label)).join(", ");
391
391
  log.step(`Found ${labels}. Installing the superlore Preview extension\u2026`);
392
392
  log.blank();
393
- let vsix;
394
- try {
395
- vsix = flags.vsix ?? await downloadVsix();
396
- } catch (error) {
397
- log.error(
398
- `Couldn't fetch the extension: ${error instanceof Error ? error.message : String(error)}`
399
- );
400
- printManualInstall();
401
- process.exit(flags.optional ? 0 : 1);
393
+ let results;
394
+ if (flags.vsix) {
395
+ results = detected.map((editor) => report(installInto(editor, { vsix: flags.vsix })));
396
+ } else {
397
+ const byId = detected.map((editor) => installInto(editor));
398
+ const vsix = byId.some((r) => r.status === "failed") ? await downloadVsix().catch(() => void 0) : void 0;
399
+ results = detected.map((editor, i) => {
400
+ const idResult = byId[i];
401
+ if (idResult.status !== "failed") return report(idResult);
402
+ return report(vsix ? installInto(editor, { vsix }) : idResult);
403
+ });
402
404
  }
403
- const results = detected.map((editor) => report(installInto(editor, { vsix })));
404
405
  log.blank();
405
406
  const failed = results.filter((r) => r.status === "failed");
406
407
  if (failed.length > 0 && failed.length === results.length) {
@@ -2480,7 +2481,7 @@ function printNextSteps(root, config) {
2480
2481
  }
2481
2482
 
2482
2483
  // src/index.ts
2483
- var VERSION = "0.6.1";
2484
+ var VERSION = "0.7.0";
2484
2485
  function buildCli(argv = process3.argv) {
2485
2486
  const cli = cac("superlore");
2486
2487
  cli.command("init [dir]", "Scaffold a new superlore knowledge base").option("--name <name>", "KB name").option("--type <type>", "KB type: company-kb | product-docs | personal-kb").option("--auth", "Enable the Google SSO auth gate").option("--no-auth", "Disable the auth gate").option("--allowed-domain <domain>", "Restrict SSO to one email domain (implies --auth)").option("--accent <color>", "Brand accent colour (any CSS colour)").option("--no-mcp", "Disable the MCP endpoint (on by default)").option("--connect", "Install the editor extension after scaffolding (skip the prompt)").option("--no-connect", "Don't set up the editor extension").option("-y, --yes", "Skip prompts; use flags + defaults").example("superlore init my-kb --type product-docs").example("superlore init acme --type company-kb --auth --allowed-domain acme.com").example("superlore init me --type personal-kb").action(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superlore-cli",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "The superlore CLI — scaffold, run, and build an agent-native knowledge base. One corpus. Humans and agents.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Krishnan S G",