superlore-cli 0.4.2 → 0.5.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.4.2";
90
+ declare const VERSION = "0.5.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
@@ -1811,10 +1811,8 @@ function writeSkeleton(root, config) {
1811
1811
  "fumadocs-core": "^16.8.2",
1812
1812
  "fumadocs-mdx": "^14.3.1",
1813
1813
  "fumadocs-ui": "^16.8.2",
1814
- superlore: "^0.5.3",
1814
+ superlore: "^0.6.0",
1815
1815
  "lucide-react": "^1.21.0",
1816
- // superlore peers the rendered components pull in: Mermaid (Diagram), themes.
1817
- mermaid: "^11.15.0",
1818
1816
  ...mcpEnabled ? (
1819
1817
  // mcp-handler pins an EXACT sdk peer (1.26.0); npm errors on anything else (pnpm only
1820
1818
  // warns). Pin the sdk to match so `npm install` resolves cleanly for every package manager.
@@ -2018,6 +2016,53 @@ export const source = loader({
2018
2016
  import { createFromSource } from "superlore/search";
2019
2017
 
2020
2018
  export const { GET } = createFromSource(source);
2019
+ `
2020
+ );
2021
+ write(
2022
+ "CLAUDE.md",
2023
+ `# CLAUDE.md \u2014 ${config.name}
2024
+
2025
+ This repo is a **superlore** knowledge base: author once in MDX, and humans get a clean visual site
2026
+ while agents read the same structured content over MCP. **One corpus. Humans and agents.**
2027
+
2028
+ ## Author in superlore MDX \u2014 not raw markdown
2029
+
2030
+ When you create or edit anything in \`content/docs/\`, **use superlore's dual-representation
2031
+ components** wherever one fits. Each renders beautifully for humans AND serializes to typed data the
2032
+ MCP serves \u2014 so a diagram is never a flat picture an agent has to guess at; the agent gets the data
2033
+ behind it. Default to a component over plain prose, a bullet list, or an ASCII diagram:
2034
+
2035
+ - **Canvas** (a fenced \`\`\`superlore-canvas JSON block) \u2014 architecture, system maps, request flows,
2036
+ decision flows. The agent reads the typed { nodes, edges, groups } graph.
2037
+ - **Timeline / Schedule** \u2014 dated milestones, roadmaps, history, on-call.
2038
+ - **Board** \u2014 now / next / later, kanban.
2039
+ - **Decision** \u2014 architecture decision records (context \xB7 decision \xB7 consequences).
2040
+ - **Table / Comparison** \u2014 structured rows, option/criteria matrices.
2041
+ - **Roster / EntityCard** \u2014 people, teams, services, any entity.
2042
+ - **Checklist / Steps** \u2014 runbooks, procedures, onboarding.
2043
+ - **Releases** \u2014 changelog, version history.
2044
+ - **KeyFacts \xB7 StatGrid \xB7 FeatureList \xB7 MetaBar \xB7 PageHero \xB7 SectionHead** \u2014 editorial structure.
2045
+
2046
+ ## Look up patterns over MCP
2047
+
2048
+ The superlore docs are available to you as an MCP server (\`superlore-docs\`, registered by the
2049
+ superlore Claude plugin). Use it for exact component props, the full Canvas vocabulary, and authoring
2050
+ patterns \u2014 \`search\`, \`get_page\`, \`list\`, \`navigate\`, \`get_component_data\`. Full reference:
2051
+ https://superlore.vercel.app/docs. Don't guess a component's props \u2014 query the MCP or the docs.
2052
+
2053
+ ## Layout
2054
+
2055
+ - \`content/docs/**/*.mdx\` \u2014 the corpus. A \`meta.json\` per folder sets nav order, title, and icon.
2056
+ - \`superlore.json\` \u2014 KB config (type, MCP, auth). \`app/api/[transport]/route.ts\` \u2014 the MCP endpoint.
2057
+ - \`/\` redirects to \`/docs\` \u2014 a superlore KB *is* its docs.
2058
+
2059
+ ## Run
2060
+
2061
+ - \`superlore dev\` \u2014 preview locally \xB7 \`superlore build\` \u2014 production build.
2062
+ - \`superlore connect\` \u2014 install the editor extension for the live dual-view preview + comments.
2063
+
2064
+ **The contract:** every component must render for humans *and* serialize for agents. Keep it \u2014 it's
2065
+ the whole point.
2021
2066
  `
2022
2067
  );
2023
2068
  writeContent(write, config);
@@ -2432,7 +2477,7 @@ function printNextSteps(root, config) {
2432
2477
  }
2433
2478
 
2434
2479
  // src/index.ts
2435
- var VERSION = "0.4.2";
2480
+ var VERSION = "0.5.0";
2436
2481
  function buildCli(argv = process3.argv) {
2437
2482
  const cli = cac("superlore");
2438
2483
  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.2",
3
+ "version": "0.5.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",