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