@sanqianx/project-knowledge 5.1.0 → 5.1.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/.claude-plugin/marketplace.json +1 -1
- package/_site/scripts/pack-module-candidates.js +1 -0
- package/_site/scripts/verify-module-runtime.js +2 -1
- package/module-runtime-manifest.json +28 -3
- package/package.json +2 -1
- package/plugins/project-knowledge/.claude-plugin/plugin.json +1 -1
- package/plugins/project-knowledge/.codex-plugin/plugin.json +1 -1
- package/plugins/project-knowledge/.mcp.json +1 -1
|
@@ -13,6 +13,7 @@ const definitions = {
|
|
|
13
13
|
vectorHub: { option: '--vector-source', name: '@sanqianx/vector-hub', installName: '@sanqianx/vector-hub', required: ['dist/cjs/bin.js', 'dist/cjs/server/manager.js', 'ui/index.html'] },
|
|
14
14
|
eventBridge: { option: '--bridge-source', name: '@sanqianx/ai-coding-event-bridge-console', installName: '@sanqianx/ai-coding-event-bridge-console', required: ['src/server.js', 'src/bridge/core/consumer-registry.js', 'console/index.html'] },
|
|
15
15
|
engine: { option: '--engine-source', name: '@sanqianx/ai-coding-knowledge-engine', installName: '@sanqianx/ai-coding-knowledge-engine', required: ['src/bin.js', 'src/server.js', 'src/coordinator.js', 'src/analysis-worker.js', 'ui/index.html', 'ui/app.js', 'ui/app.css'] },
|
|
16
|
+
workflow: { option: '--workflow-source', name: '@sanqianx/ai-coding-workflow', installName: '@sanqianx/ai-coding-workflow', required: ['src/bin.js', 'src/server.js', 'src/store.js', 'src/tasks.js', 'ui/index.html', 'ui/app.js'] },
|
|
16
17
|
};
|
|
17
18
|
function run(command, args, cwd) {
|
|
18
19
|
const result = spawnSync(command, args, { cwd, windowsHide: true, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 });
|
|
@@ -29,7 +29,8 @@ function verify() {
|
|
|
29
29
|
if (indexed.status !== 0 || indexed.stdout.toString().replace(/\r\n/g, '\n') !== fs.readFileSync(path.join(root, file), 'utf8').replace(/\r\n/g, '\n')) throw new Error(`Release blocked: Git bytes differ from runtime contract: ${file}`);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
const count = Object.keys(require('./pack-module-candidates').definitions).length;
|
|
33
|
+
process.stdout.write(workingTree ? `${count} npm module runtimes verified; working tree is not release approval.\n` : 'Pinned npm runtime release gate passed.\n');
|
|
33
34
|
}
|
|
34
35
|
if (require.main === module) { try { verify(); } catch (error) { process.stderr.write(`${error.message}\n`); process.exitCode = 1; } }
|
|
35
36
|
module.exports = { isPinnedModuleVersion };
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"plugins/project-knowledge/hooks/codex.json": "216e03c07295606ef6ebb2c4f669ad0d790b5e7c4f3f34600488033db75e4239",
|
|
12
12
|
"plugins/project-knowledge/scripts/context-hook.cjs": "ddc1f6f5638c662adbbf4391557bbeb7196af2fb869e7ecfeefba76b9bab5760",
|
|
13
13
|
"plugins/project-knowledge/scripts/mcp-launcher.cjs": "7c68830b5c73eb53ef030756a4de33987f7eab6b1a6cc15602835aac3f954893",
|
|
14
|
-
"plugins/project-knowledge/.claude-plugin/plugin.json": "
|
|
15
|
-
"plugins/project-knowledge/.codex-plugin/plugin.json": "
|
|
16
|
-
"plugins/project-knowledge/.mcp.json": "
|
|
14
|
+
"plugins/project-knowledge/.claude-plugin/plugin.json": "f0d8ce9139185495e0c7e28b8b9f2cc2fcbc014ca963ebd4e96c1581d6de8762",
|
|
15
|
+
"plugins/project-knowledge/.codex-plugin/plugin.json": "e8dd5a17e4bc99dd2a152d51fc63e54818f416e720f9480e6e26f0439201b4a5",
|
|
16
|
+
"plugins/project-knowledge/.mcp.json": "1cc8b56db7d590da76a2b83b8238a948e48b11215219676e7e1727a4f2f135c0",
|
|
17
17
|
"ui/version-info.js": "01a82217b031de54b80d6c7974da9c70888c4c90a046bd4248a808f7989ddce7",
|
|
18
18
|
"ui/version-info.css": "209fad8e42b661f72d2aba3280e1ca47768b5cefb776fe5459538d34fbad120f"
|
|
19
19
|
},
|
|
@@ -315,6 +315,31 @@
|
|
|
315
315
|
"src/memory-groups.js": "92b5edbd0ec7c9a3cf505d4683a053ea71d7ceeb7cfbe049bc65342a39c0c8f2",
|
|
316
316
|
"src/retry-scheduler.js": "048c11b767617e0c621c231e91029b4e5e834ae3e7ebc3c84b5168ea9f92ec57"
|
|
317
317
|
}
|
|
318
|
+
},
|
|
319
|
+
"workflow": {
|
|
320
|
+
"name": "@sanqianx/ai-coding-workflow",
|
|
321
|
+
"installName": "@sanqianx/ai-coding-workflow",
|
|
322
|
+
"version": "0.1.1",
|
|
323
|
+
"files": {
|
|
324
|
+
"src/bin.js": "12f74b2c790d99b595cade2b83a4d74906e5a01ae041dbbe453d75573263d0c4",
|
|
325
|
+
"src/checks.js": "54043cbe773f2b6df871db6a07446ab82e42bd6bd45142ab51e238257d2e9532",
|
|
326
|
+
"src/consumer.js": "beff1aa039179ccb9ae46e014dacb4a6695b789354849843a829403dbc2033fe",
|
|
327
|
+
"src/digests.js": "dd90e639d21c3b59a604e3280f214d0b4ed178e3c659c18b90d31b5479913332",
|
|
328
|
+
"src/domain.js": "5b404a7df138aed5797dd953300c31beba56121174fb09f20578e54f3599105a",
|
|
329
|
+
"src/errors.js": "1868330aa021b3dba5e92061dbb41e15a94f4cb0746f870c49aac4bf6119d708",
|
|
330
|
+
"src/identity.js": "c9f96f74313f0dcf5dfc730dfa03b1c1f5e85ee1dfae34cdbf0c28217621c6ff",
|
|
331
|
+
"src/server.js": "8eb11482474ea92436116edbe6409cc8775b3b463f8c6879655f2c7f0b648a56",
|
|
332
|
+
"src/snapshots.js": "2a92388000780ff78889c2148131039558e853387ba3b05c0d5ef644d9e48485",
|
|
333
|
+
"src/store.js": "506fad917b9cd87538617a4ae2ef172ceb696483dad6d123b3be3ebb9f2f510e",
|
|
334
|
+
"src/tasks.js": "1e53f570b16833c8ea13b261d6d7a361bb765eaadd729de84e0f58d4ef264043",
|
|
335
|
+
"ui/index.html": "058b9c0bb727ddd8f18f1aa907eb31be2321c42b2ad778e2f037904bb53fd916",
|
|
336
|
+
"ui/app.js": "9a2ecec709f9beca01d70a0286f0fce604e526d71b73a6e8c6a414d27e285df3",
|
|
337
|
+
"ui/app.css": "4f2cf3d56c0efd99815f3d6e0280ea8dcca5757cc633aac49d8c712f3e721dac",
|
|
338
|
+
"docs/contract.md": "aba0a189744fe159702152c07c28f5975b47f917f28bc0678e1191714060a23f",
|
|
339
|
+
"README.md": "0ee483525831969a3855d942cbb2388d0c6a72e160bfa3c4fd33ee1bc729d1c7",
|
|
340
|
+
"LICENSE": "c1b9df1275e769f3dbab000d1e457a2d4b0f28eb5da6c77e48dc37eeba202ed7",
|
|
341
|
+
"package.json": "b70101d063ab6d8bb6863c69f153d771e84fb388396c8b460f569c97c55262ff"
|
|
342
|
+
}
|
|
318
343
|
}
|
|
319
344
|
}
|
|
320
345
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanqianx/project-knowledge",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Knowledge base manager with Git integration, AI-driven analysis, and bilingual (zh-CN/en-US) knowledge output",
|
|
5
5
|
"main": "_site/server.js",
|
|
6
6
|
"scripts": {
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
89
89
|
"@sanqianx/ai-coding-event-bridge-console": "0.7.4",
|
|
90
90
|
"@sanqianx/ai-coding-knowledge-engine": "0.2.9",
|
|
91
|
+
"@sanqianx/ai-coding-workflow": "0.1.1",
|
|
91
92
|
"@sanqianx/vector-hub": "1.0.8-rc.8",
|
|
92
93
|
"buffer": "^6.0.3",
|
|
93
94
|
"cheerio": "^1.2.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "project-knowledge",
|
|
4
4
|
"hooks": "./hooks/claude.json",
|
|
5
|
-
"version": "5.1.
|
|
5
|
+
"version": "5.1.1",
|
|
6
6
|
"description": "Read durable project decisions and implementation history from Project Knowledge.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "SanQianX",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"const fs=require('fs'),path=require('path'),os=require('os');const PKG='@sanqianx/project-knowledge',SC='project-knowledge/integration-runtime/v1';let f='';const root=process.env.CLAUDE_PLUGIN_ROOT||process.env.PLUGIN_ROOT;if(root){f=path.join(root,'scripts','mcp-launcher.cjs');if(!fs.existsSync(f))f=''}if(!f){const dd=process.env.KB_DATA_DIR||path.join(os.homedir(),'.project-knowledge-v5');try{const bp=path.join(dd,'integration-runtime.json');const st=fs.statSync(bp);if(st.isFile()&&st.size<=32768){const b=JSON.parse(fs.readFileSync(bp,'utf8'));if(b&&b.schema===SC&&b.packageName===PKG&&typeof b.packageRoot==='string'&&path.isAbsolute(b.packageRoot)){const c=path.join(b.packageRoot,'plugins','project-knowledge','scripts','mcp-launcher.cjs');const rr=fs.realpathSync(b.packageRoot),cr=fs.realpathSync(c);const rel=path.relative(rr,cr);if(rel&&rel!=='..'&&!rel.startsWith('..'+path.sep)&&!path.isAbsolute(rel)&&fs.statSync(cr).isFile())f=cr}}}catch(e){}}if(!f){console.error('[project-knowledge-mcp] 未能通过受信任插件根或已验证的安装绑定定位启动器,已停止;不访问网络,也不加载工作目录源码。');process.exit(127)}require(f);"
|
|
9
9
|
],
|
|
10
10
|
"env": {
|
|
11
|
-
"KB_PLUGIN_VERSION": "5.1.
|
|
11
|
+
"KB_PLUGIN_VERSION": "5.1.1"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|