superlore-cli 0.6.0 → 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.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 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) {
@@ -773,7 +774,7 @@ and an agent can understand not just *what* was chosen but *why*.
773
774
  "A cache-invalidation discipline we have to keep honest.",
774
775
  "The system must stay correct when the cache is cold or down.",
775
776
  ]}
776
- refs={[{ rel: "see", target: "/docs/engineering/architecture", label: "Where the cache sits" }]}
777
+ refs={[{ rel: "see-also", target: "/docs/engineering/architecture", label: "Where the cache sits" }]}
777
778
  />
778
779
  `
779
780
  );
@@ -890,7 +891,8 @@ tags: [product, releases, changelog]
890
891
  description="The changelog, as structured data. Replace with your real release notes."
891
892
  />
892
893
 
893
- <Releases
894
+ <Releases>
895
+ <Release
894
896
  version="1.2.0"
895
897
  date="2024-05-20"
896
898
  status="done"
@@ -902,8 +904,7 @@ tags: [product, releases, changelog]
902
904
  { type: "fixed", text: "Rare double-charge on retried payments." },
903
905
  ]}
904
906
  />
905
-
906
- <Releases
907
+ <Release
907
908
  version="1.1.0"
908
909
  date="2024-04-02"
909
910
  status="done"
@@ -913,6 +914,7 @@ tags: [product, releases, changelog]
913
914
  { type: "fixed", text: "Invite emails occasionally landing in spam." },
914
915
  ]}
915
916
  />
917
+ </Releases>
916
918
  `
917
919
  );
918
920
  write(
@@ -1011,7 +1013,7 @@ tags: [team, people, directory]
1011
1013
  { key: "Time zone", value: "UTC+0" },
1012
1014
  { key: "Best reached", value: "Async, in the team channel" },
1013
1015
  ]}
1014
- refs={[{ rel: "see", target: "/docs/engineering/architecture", label: "What they own" }]}
1016
+ refs={[{ rel: "see-also", target: "/docs/engineering/architecture", label: "What they own" }]}
1015
1017
  />
1016
1018
  `
1017
1019
  );
@@ -1353,7 +1355,8 @@ tags: [changelog, releases]
1353
1355
  description="Versioned, categorized changes. Replace with your real release notes."
1354
1356
  />
1355
1357
 
1356
- <Releases
1358
+ <Releases>
1359
+ <Release
1357
1360
  version="1.1.0"
1358
1361
  date="2024-05-20"
1359
1362
  status="done"
@@ -1365,16 +1368,14 @@ tags: [changelog, releases]
1365
1368
  { type: "fixed", text: "Retries no longer double-create on timeout." },
1366
1369
  ]}
1367
1370
  />
1368
-
1369
- <Releases
1371
+ <Release
1370
1372
  version="1.0.0"
1371
1373
  date="2024-04-01"
1372
1374
  status="done"
1373
1375
  title="General availability"
1374
- changes={[
1375
- { type: "added", text: "Stable v1 API and the official SDK." },
1376
- ]}
1376
+ changes={[{ type: "added", text: "Stable v1 API and the official SDK." }]}
1377
1377
  />
1378
+ </Releases>
1378
1379
  `
1379
1380
  );
1380
1381
  }
@@ -1437,8 +1438,8 @@ this and understand what you'd care about in a decision.
1437
1438
  { key: "Allergic to", value: "Meetings that should have been a doc" },
1438
1439
  ]}
1439
1440
  refs={[
1440
- { rel: "see", target: "/docs/working-style", label: "How I work" },
1441
- { rel: "see", target: "/docs/voice", label: "How I write" },
1441
+ { rel: "see-also", target: "/docs/working-style", label: "How I work" },
1442
+ { rel: "see-also", target: "/docs/voice", label: "How I write" },
1442
1443
  ]}
1443
1444
  />
1444
1445
 
@@ -1903,6 +1904,8 @@ export default defineConfig({
1903
1904
  // Markdown-first authoring, one plugin: \`\`\`superlore-canvas fences \u2192 <Canvas>, \`- [ ]\` task
1904
1905
  // lists \u2192 <Checklist>, and \`> [!NOTE]\` GitHub alerts \u2192 Callouts. Write natural markdown.
1905
1906
  remarkPlugins: [remarkSuperlore],
1907
+ // Code blocks render in one polished midnight theme, always dark \u2014 matches superlore/runtime.
1908
+ rehypeCodeOptions: { themes: { light: "tokyo-night", dark: "tokyo-night" } },
1906
1909
  },
1907
1910
  });
1908
1911
  `
@@ -2478,7 +2481,7 @@ function printNextSteps(root, config) {
2478
2481
  }
2479
2482
 
2480
2483
  // src/index.ts
2481
- var VERSION = "0.6.0";
2484
+ var VERSION = "0.7.0";
2482
2485
  function buildCli(argv = process3.argv) {
2483
2486
  const cli = cac("superlore");
2484
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.0",
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",