huaweicloud-devkit 2.0.1-next.1 → 2.0.1-next.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/README.md +24 -1
- package/README.zh-CN.md +24 -1
- package/package.json +1 -1
- package/plugins/huaweicloud-core/.claude-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.codex-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.hermes-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/dist/hcloud-plan.js +5 -0
- package/plugins/huaweicloud-core/dist/mcp-server.js +68 -11
- package/plugins/huaweicloud-core/dist/mcp-server.js.map +3 -3
- package/plugins/huaweicloud-core/dist/safety/classify-hcloud.js +55 -0
- package/plugins/huaweicloud-core/dist/server-install.js +363 -0
- package/plugins/huaweicloud-core/dist/setup-cli.js +16 -0
- package/plugins/huaweicloud-core/openclaw.plugin.json +1 -1
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +2 -0
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +3 -0
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/references/approvals.md +4 -0
- package/plugins/huaweicloud-core/src/hcloud-plan.ts +6 -0
- package/plugins/huaweicloud-core/src/mcp-server-remote.ts +68 -5
- package/plugins/huaweicloud-core/src/mcp-server.ts +4 -1
- package/plugins/huaweicloud-core/src/safety/classify-hcloud.ts +64 -0
- package/plugins/huaweicloud-core/src/server-install.ts +442 -0
- package/plugins/huaweicloud-core/src/setup-cli.ts +16 -0
|
@@ -36,6 +36,7 @@ import { removeKooCli, removeObsConfig } from './sandbox/uninstall-cleanup.ts';
|
|
|
36
36
|
import { readReceipt, removeReceipt } from './dep/receipts.ts';
|
|
37
37
|
import { runSecretCommand } from './lib/secret-vault/cli.ts';
|
|
38
38
|
import { createProcessApproveIo, runApproveCommand, runPinCommand } from './approvals-cli.ts';
|
|
39
|
+
import { installServerCli, uninstallServerCli } from './server-install.ts';
|
|
39
40
|
import { readConsentEvents } from './approval-ledger.ts';
|
|
40
41
|
import { custodyReport } from './lib/secret-vault/custody.ts';
|
|
41
42
|
import { vaultList } from './lib/secret-vault/store.ts';
|
|
@@ -1542,6 +1543,12 @@ async function main(): Promise<void> {
|
|
|
1542
1543
|
case 'install-hcloud':
|
|
1543
1544
|
await cmdInstallHcloud();
|
|
1544
1545
|
break;
|
|
1546
|
+
case 'install-server':
|
|
1547
|
+
await installServerCli(process.argv.slice(3));
|
|
1548
|
+
break;
|
|
1549
|
+
case 'uninstall-server':
|
|
1550
|
+
await uninstallServerCli(process.argv.slice(3));
|
|
1551
|
+
break;
|
|
1545
1552
|
case 'dep':
|
|
1546
1553
|
await cmdDep();
|
|
1547
1554
|
break;
|
|
@@ -1585,6 +1592,8 @@ async function main(): Promise<void> {
|
|
|
1585
1592
|
console.log(' status Show installation status');
|
|
1586
1593
|
console.log(' doctor Self-check: hcloud, MCP, skills, auth');
|
|
1587
1594
|
console.log(' install-hcloud Show KooCLI install commands for your OS');
|
|
1595
|
+
console.log(' install-server Server mode: systemd services + dedicated user + auth password (Linux root)');
|
|
1596
|
+
console.log(' uninstall-server Remove server-mode services and files');
|
|
1588
1597
|
console.log(' dep Dependency tooling: status | install <id> | uninstall <id>');
|
|
1589
1598
|
console.log(' packs Post-install pack surface: status | enable <ids> | disable <ids> | all');
|
|
1590
1599
|
console.log(' auth Manage unified auth: init | sync | status | reconcile');
|
|
@@ -1609,6 +1618,13 @@ async function main(): Promise<void> {
|
|
|
1609
1618
|
console.log(
|
|
1610
1619
|
' --clean-global (with: uninstall --target all) also remove KooCLI + OBS config + open-mcp-gateway',
|
|
1611
1620
|
);
|
|
1621
|
+
console.log('\ninstall-server options:');
|
|
1622
|
+
console.log(' --install-path <dir> Base install path (default /opt/kunpeng)');
|
|
1623
|
+
console.log(' --port <n> Business port (default 8088)');
|
|
1624
|
+
console.log(' --tool-port <n> Tool port (default 7088)');
|
|
1625
|
+
console.log(' --user <name> Dedicated service user (default devkit)');
|
|
1626
|
+
console.log(' --rotate-password Regenerate the server auth password');
|
|
1627
|
+
console.log(' --remove-user (with: uninstall-server) also delete the service user');
|
|
1612
1628
|
console.log('\nExamples:');
|
|
1613
1629
|
console.log(' npx huaweicloud-devkit install');
|
|
1614
1630
|
console.log(' npx huaweicloud-devkit install --target codex');
|