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 +1 -1
- package/dist/index.js +12 -11
- package/package.json +1 -1
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.
|
|
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
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
)
|
|
400
|
-
|
|
401
|
-
|
|
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.
|
|
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