@skyphusion/search-mcp 0.1.2 → 0.1.3
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/package.json +4 -4
- package/scripts/sync-runner.mjs +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyphusion/search-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Bearer-gated MCP server and streaming query Worker over Cloudflare AI Search, plus a git-to-R2 corpus sync toolkit.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"author": "Conrad Rockenhaus <conrad@skyphusion.org>",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"@aws-sdk/client-s3": "^3.888.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@cloudflare/workers-types": "^
|
|
69
|
+
"@cloudflare/workers-types": "^5.20260713.1",
|
|
70
70
|
"@vitest/coverage-istanbul": "^4.1.10",
|
|
71
|
-
"typescript": "^
|
|
71
|
+
"typescript": "^7.0.2",
|
|
72
72
|
"vitest": "^4.1.10",
|
|
73
|
-
"wrangler": "^4.
|
|
73
|
+
"wrangler": "^4.110.0"
|
|
74
74
|
}
|
|
75
75
|
}
|
package/scripts/sync-runner.mjs
CHANGED
|
@@ -89,8 +89,10 @@ function git(args, opts = {}) {
|
|
|
89
89
|
function syncRepoTree(org, repo, root, authArgs) {
|
|
90
90
|
const dir = join(root, repo);
|
|
91
91
|
const url = repoUrl(org, repo);
|
|
92
|
+
let mode = "fetch";
|
|
92
93
|
if (!existsSync(join(dir, ".git"))) {
|
|
93
94
|
git([...authArgs, "clone", "--quiet", url, dir]);
|
|
95
|
+
mode = "clone";
|
|
94
96
|
} else {
|
|
95
97
|
git([...authArgs, "-C", dir, "remote", "set-url", "origin", url]);
|
|
96
98
|
git([...authArgs, "-C", dir, "fetch", "--prune", "--quiet", "origin"]);
|
|
@@ -104,6 +106,7 @@ function syncRepoTree(org, repo, root, authArgs) {
|
|
|
104
106
|
}
|
|
105
107
|
git(["-C", dir, "reset", "--hard", "--quiet", head]);
|
|
106
108
|
git(["-C", dir, "clean", "-fdq"]);
|
|
109
|
+
return mode;
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
function reindexInstance(instance) {
|
|
@@ -121,8 +124,8 @@ export function run(plan, deps) {
|
|
|
121
124
|
const failedClones = [];
|
|
122
125
|
for (const repo of repos) {
|
|
123
126
|
try {
|
|
124
|
-
cloneTree(repo);
|
|
125
|
-
log(` ok ${repo}`);
|
|
127
|
+
const mode = cloneTree(repo);
|
|
128
|
+
log(` ok ${repo} (${mode})`);
|
|
126
129
|
} catch (err) {
|
|
127
130
|
failedClones.push(repo);
|
|
128
131
|
error(` !! ${repo}: git failed (${describeExit(err)})`);
|