@hupan56/wlkj 3.3.1 → 3.3.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/bin/cli.js +16 -1
- package/package.json +29 -29
- package/templates/qoder/scripts/capability/registry_mcp.py +312 -312
- package/templates/qoder/scripts/deployment/setup/init_doctor.py +6 -2
- package/templates/qoder/scripts/deployment/setup/setup.py +5 -2
- package/templates/qoder/scripts/domain/integration/return_to_platform.py +395 -395
- package/templates/qoder/scripts/domain/integration/spec_upload.py +208 -208
- package/templates/qoder/scripts/domain/kg/switch_project.py +158 -158
- package/templates/qoder/scripts/engine/poller.py +219 -219
package/bin/cli.js
CHANGED
|
@@ -383,7 +383,7 @@ async function doInit(name, roleArg) {
|
|
|
383
383
|
console.log(`\n--- 自动初始化 ---`);
|
|
384
384
|
const setupPath = path.join(cwd, ".qoder", "scripts", "deployment", "setup", "setup.py");
|
|
385
385
|
if (fs.existsSync(setupPath)) {
|
|
386
|
-
const setupArgs = [name, role, "--skip-cron", "--skip-qoderwork"].filter(Boolean);
|
|
386
|
+
const setupArgs = [name, role, "--skip-cron", "--skip-qoderwork", "--skip-code"].filter(Boolean);
|
|
387
387
|
try {
|
|
388
388
|
const cmd = `python "${setupPath}" ${setupArgs.map(a => `"${a}"`).join(" ")}`;
|
|
389
389
|
console.log(` 运行: setup.py ${setupArgs.join(" ")}`);
|
|
@@ -443,6 +443,21 @@ async function doInit(name, roleArg) {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
+
// === 6.6. 连云平台 bind 项目(云模式:KG 在云平台,引擎调云 MCP)===
|
|
447
|
+
if (pyCmd) {
|
|
448
|
+
const switchScript = path.join(cwd, ".qoder", "scripts", "domain", "kg", "switch_project.py");
|
|
449
|
+
if (fs.existsSync(switchScript)) {
|
|
450
|
+
console.log(`\n--- 连云平台 bind 项目 ---`);
|
|
451
|
+
console.log(` 问平台邮箱/密码 → 拉项目列表 → 选项目 → 写 mcp_config(连云)`);
|
|
452
|
+
try {
|
|
453
|
+
const env = { ...process.env, PYTHONIOENCODING: "utf-8", PYTHONUTF8: "1" };
|
|
454
|
+
execSync(`${pyCmd} "${switchScript}"`, { cwd, stdio: "inherit", timeout: 180000, env });
|
|
455
|
+
} catch (e) {
|
|
456
|
+
console.log(` [WARN] 云 bind 未完成,可手动: python .qoder/scripts/domain/kg/switch_project.py`);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
446
461
|
// === 7. 写版本戳 ===
|
|
447
462
|
writeEngineVersion(cwd);
|
|
448
463
|
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hupan56/wlkj",
|
|
3
|
-
"version": "3.3.
|
|
4
|
-
"description": "AI Product R&D Workflow - PRD/Prototype/Search/Task/Report",
|
|
5
|
-
"bin": {
|
|
6
|
-
"wlkj": "bin/cli.js"
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"bin/",
|
|
10
|
-
"templates/",
|
|
11
|
-
"MAC-VERIFY.md"
|
|
12
|
-
],
|
|
13
|
-
"keywords": [
|
|
14
|
-
"workflow",
|
|
15
|
-
"ai",
|
|
16
|
-
"prd",
|
|
17
|
-
"pipeline",
|
|
18
|
-
"qoder",
|
|
19
|
-
"product",
|
|
20
|
-
"team"
|
|
21
|
-
],
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
},
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">=16"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@hupan56/wlkj",
|
|
3
|
+
"version": "3.3.3",
|
|
4
|
+
"description": "AI Product R&D Workflow - PRD/Prototype/Search/Task/Report",
|
|
5
|
+
"bin": {
|
|
6
|
+
"wlkj": "bin/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin/",
|
|
10
|
+
"templates/",
|
|
11
|
+
"MAC-VERIFY.md"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"workflow",
|
|
15
|
+
"ai",
|
|
16
|
+
"prd",
|
|
17
|
+
"pipeline",
|
|
18
|
+
"qoder",
|
|
19
|
+
"product",
|
|
20
|
+
"team"
|
|
21
|
+
],
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=16"
|
|
28
|
+
}
|
|
29
|
+
}
|