superlore-cli 0.4.0 → 0.4.2

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.4.0";
90
+ declare const VERSION = "0.4.2";
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
@@ -1806,18 +1806,24 @@ function writeSkeleton(root, config) {
1806
1806
  postinstall: "fumadocs-mdx"
1807
1807
  },
1808
1808
  dependencies: {
1809
- "fumadocs-core": "16.8.2",
1810
- "fumadocs-mdx": "14.3.1",
1811
- "fumadocs-ui": "16.8.2",
1809
+ // Relaxed ranges (not exact pins) — this lands in the user's own repo, so let them take
1810
+ // patches/minors freely. superlore's peerDependencies already fence the majors.
1811
+ "fumadocs-core": "^16.8.2",
1812
+ "fumadocs-mdx": "^14.3.1",
1813
+ "fumadocs-ui": "^16.8.2",
1812
1814
  superlore: "^0.5.3",
1813
1815
  "lucide-react": "^1.21.0",
1814
1816
  // superlore peers the rendered components pull in: Mermaid (Diagram), themes.
1815
1817
  mermaid: "^11.15.0",
1816
- ...mcpEnabled ? { "@modelcontextprotocol/sdk": "^1.29.0", "mcp-handler": "^1.1.0" } : {},
1818
+ ...mcpEnabled ? (
1819
+ // mcp-handler pins an EXACT sdk peer (1.26.0); npm errors on anything else (pnpm only
1820
+ // warns). Pin the sdk to match so `npm install` resolves cleanly for every package manager.
1821
+ { "@modelcontextprotocol/sdk": "1.26.0", "mcp-handler": "^1.1.0" }
1822
+ ) : {},
1817
1823
  // Auth.js v5 powers the optional Google SSO gate (superlore/auth). Self-disabling
1818
1824
  // without AUTH_GOOGLE_ID, so it's harmless until the env is set.
1819
1825
  ...authEnabled ? { "next-auth": "^5.0.0-beta.25" } : {},
1820
- next: "16.2.4",
1826
+ next: "^16.2.4",
1821
1827
  "next-themes": "^0.4.6",
1822
1828
  react: "^19.2.5",
1823
1829
  "react-dom": "^19.2.5",
@@ -1830,7 +1836,7 @@ function writeSkeleton(root, config) {
1830
1836
  "@types/react-dom": "^19.2.3",
1831
1837
  postcss: "^8.5.10",
1832
1838
  tailwindcss: "^4.2.2",
1833
- typescript: "6.0.3"
1839
+ typescript: "^6.0.3"
1834
1840
  }
1835
1841
  },
1836
1842
  null,
@@ -2004,6 +2010,14 @@ export const source = loader({
2004
2010
  source: docs.toFumadocsSource(),
2005
2011
  plugins: [lucideIconsPlugin()],
2006
2012
  });
2013
+ `
2014
+ );
2015
+ write(
2016
+ "app/api/search/route.ts",
2017
+ `import { source } from "@/lib/source";
2018
+ import { createFromSource } from "superlore/search";
2019
+
2020
+ export const { GET } = createFromSource(source);
2007
2021
  `
2008
2022
  );
2009
2023
  writeContent(write, config);
@@ -2418,7 +2432,7 @@ function printNextSteps(root, config) {
2418
2432
  }
2419
2433
 
2420
2434
  // src/index.ts
2421
- var VERSION = "0.4.0";
2435
+ var VERSION = "0.4.2";
2422
2436
  function buildCli(argv = process3.argv) {
2423
2437
  const cli = cac("superlore");
2424
2438
  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.4.0",
3
+ "version": "0.4.2",
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",