superlore-cli 0.4.1 → 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 +1 -1
- package/dist/index.js +9 -1
- 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.4.
|
|
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
|
@@ -2010,6 +2010,14 @@ export const source = loader({
|
|
|
2010
2010
|
source: docs.toFumadocsSource(),
|
|
2011
2011
|
plugins: [lucideIconsPlugin()],
|
|
2012
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);
|
|
2013
2021
|
`
|
|
2014
2022
|
);
|
|
2015
2023
|
writeContent(write, config);
|
|
@@ -2424,7 +2432,7 @@ function printNextSteps(root, config) {
|
|
|
2424
2432
|
}
|
|
2425
2433
|
|
|
2426
2434
|
// src/index.ts
|
|
2427
|
-
var VERSION = "0.4.
|
|
2435
|
+
var VERSION = "0.4.2";
|
|
2428
2436
|
function buildCli(argv = process3.argv) {
|
|
2429
2437
|
const cli = cac("superlore");
|
|
2430
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