searchsocket 0.6.1 → 0.6.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/cli.js +15 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import { Command, Option } from "commander";
|
|
|
12
12
|
// package.json
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "searchsocket",
|
|
15
|
-
version: "0.6.
|
|
15
|
+
version: "0.6.2",
|
|
16
16
|
description: "Semantic site search and MCP retrieval for SvelteKit static sites",
|
|
17
17
|
license: "MIT",
|
|
18
18
|
author: "Greg Priday <greg@siteorigin.com>",
|
|
@@ -5757,11 +5757,20 @@ async function runIndexCommand(opts) {
|
|
|
5757
5757
|
verbose: opts.verbose,
|
|
5758
5758
|
json: opts.json
|
|
5759
5759
|
});
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5760
|
+
let pipeline;
|
|
5761
|
+
try {
|
|
5762
|
+
pipeline = await IndexPipeline.create({
|
|
5763
|
+
cwd: opts.cwd,
|
|
5764
|
+
configPath: opts.configPath,
|
|
5765
|
+
logger: logger3
|
|
5766
|
+
});
|
|
5767
|
+
} catch (error) {
|
|
5768
|
+
if (error instanceof SearchSocketError && error.code === "VECTOR_BACKEND_UNAVAILABLE") {
|
|
5769
|
+
logger3.warn("Search backend not configured \u2014 skipping indexing. Set UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to enable.");
|
|
5770
|
+
return;
|
|
5771
|
+
}
|
|
5772
|
+
throw error;
|
|
5773
|
+
}
|
|
5765
5774
|
const stats = await pipeline.run({
|
|
5766
5775
|
scopeOverride: opts.scope,
|
|
5767
5776
|
changedOnly: opts.changedOnly,
|