@hadooppei/hwcode 0.2.4 → 1.0.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/.pi/APPEND_SYSTEM.md +2 -0
- package/.pi/extensions/hwcode.ts +35 -2
- package/.pi/extensions/model-providers.ts +1 -2
- package/.pi/extensions/workflows/cloud/activation.ts +235 -0
- package/.pi/extensions/workflows/cloud/commands.ts +96 -0
- package/.pi/extensions/workflows/cloud/events.ts +58 -0
- package/.pi/extensions/workflows/cloud/index.ts +17 -0
- package/.pi/extensions/workflows/cloud/provider-tools.ts +127 -0
- package/.pi/extensions/workflows/cloud/runner-tools.ts +129 -0
- package/.pi/extensions/workflows/cloud/runtime.ts +97 -0
- package/.pi/extensions/workflows/cloud/shared.ts +213 -0
- package/.pi/extensions/workflows/cloud/terraform-tools.ts +126 -0
- package/.pi/extensions/workflows/vibe-sdd.ts +303 -0
- package/.pi/extensions/workflows.ts +6 -253
- package/.pi/lib/runtime/config.ts +3 -7
- package/.pi/lib/runtime/defaults.ts +20 -0
- package/.pi/lib/runtime/paths.ts +68 -0
- package/.pi/lib/runtime/session-state.ts +0 -34
- package/.pi/lib/{cloud → workflows/cloud}/adapters.ts +38 -20
- package/.pi/lib/workflows/cloud/bundles.ts +358 -0
- package/.pi/lib/workflows/cloud/execution.ts +28 -0
- package/.pi/lib/{cloud → workflows/cloud}/process.ts +5 -3
- package/.pi/lib/{cloud-providers.ts → workflows/cloud/providers.ts} +4 -4
- package/.pi/lib/workflows/cloud/remote/bootstrap.ts +23 -0
- package/.pi/lib/workflows/cloud/remote/connect.ts +83 -0
- package/.pi/lib/workflows/cloud/remote/host-key.ts +35 -0
- package/.pi/lib/workflows/cloud/remote/profiles.ts +100 -0
- package/.pi/lib/workflows/cloud/remote/ssh-transport.ts +104 -0
- package/.pi/lib/workflows/cloud/remote/workspace.ts +109 -0
- package/.pi/lib/{cloud → workflows/cloud}/template-save.ts +3 -2
- package/.pi/lib/{cloud → workflows/cloud}/templates.ts +18 -10
- package/.pi/lib/workflows/cloud/terraform/plan.ts +109 -0
- package/.pi/lib/workflows/cloud/terraform/policy.ts +36 -0
- package/.pi/lib/workflows/cloud/terraform/runner.ts +64 -0
- package/.pi/lib/{cloud-vault.ts → workflows/cloud/vault.ts} +26 -24
- package/.pi/lib/workflows/cloud/workspace.ts +37 -0
- package/.pi/lib/workflows/sdd.ts +11 -0
- package/.pi/lib/workflows/state.ts +114 -2
- package/.pi/lib/working-directory.ts +0 -58
- package/.pi/skills/hwcode-cloud/SKILL.md +32 -1
- package/.pi/skills/hwcode-sdd/SKILL.md +2 -0
- package/README.md +41 -8
- package/bin/hwcode.js +2 -6
- package/package.json +8 -3
- package/.pi/extensions/cloud.ts +0 -629
package/bin/hwcode.js
CHANGED
|
@@ -57,7 +57,8 @@ HWCode 交互命令:
|
|
|
57
57
|
/hwcode-sdd [需求] 启动测试优先的 Spec-Driven workflow
|
|
58
58
|
/hwcode-cloud [需求] 启动凭据隔离、变更审批的云部署 workflow
|
|
59
59
|
/hwcode-cloud-template [补充] 从本地成功模板启动 Cloud workflow
|
|
60
|
-
/hwcode-cloud-save-template
|
|
60
|
+
/hwcode-cloud-save-template 保存或更新 Prompt/Terraform Deployment Template
|
|
61
|
+
/hwcode 查看、完成或取消当前 workflow
|
|
61
62
|
/cd <目录> 持久切换当前会话工作目录
|
|
62
63
|
/model 选择模型
|
|
63
64
|
/login 登录或配置模型提供商
|
|
@@ -104,17 +105,12 @@ const piManagementCommands = new Set([
|
|
|
104
105
|
]);
|
|
105
106
|
|
|
106
107
|
const profileArgs = [
|
|
107
|
-
"--tui-mode",
|
|
108
|
-
"fullscreen",
|
|
109
|
-
"--thinking",
|
|
110
|
-
"medium",
|
|
111
108
|
"--append-system-prompt",
|
|
112
109
|
join(profileDirectory, "APPEND_SYSTEM.md"),
|
|
113
110
|
];
|
|
114
111
|
|
|
115
112
|
for (const extension of [
|
|
116
113
|
"command-filter.ts",
|
|
117
|
-
"cloud.ts",
|
|
118
114
|
"context-policy.ts",
|
|
119
115
|
"cwd.ts",
|
|
120
116
|
"footer-tps.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadooppei/hwcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A customizable terminal coding agent with local-model support and HWCode workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
".pi/extensions",
|
|
15
15
|
".pi/lib",
|
|
16
16
|
"!.pi/lib/*.test.ts",
|
|
17
|
+
"!.pi/lib/**/*.test.ts",
|
|
17
18
|
".pi/model-providers.json",
|
|
18
19
|
".pi/skills/hwcode-sdd",
|
|
19
20
|
".pi/skills/hwcode-vibe",
|
|
@@ -24,9 +25,10 @@
|
|
|
24
25
|
"scripts": {
|
|
25
26
|
"start": "node --env-file-if-exists=.env ./bin/hwcode.js",
|
|
26
27
|
"pi": "node --env-file-if-exists=.env ./bin/hwcode.js",
|
|
27
|
-
"test": "node
|
|
28
|
+
"test": "node scripts/run-tests.mjs",
|
|
29
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
28
30
|
"test:workflows": "npm test",
|
|
29
|
-
"prepack": "npm test && node scripts/audit-package.mjs"
|
|
31
|
+
"prepack": "npm run typecheck && npm test && node scripts/audit-package.mjs"
|
|
30
32
|
},
|
|
31
33
|
"engines": {
|
|
32
34
|
"node": ">=22.19.0"
|
|
@@ -48,5 +50,8 @@
|
|
|
48
50
|
"@earendil-works/pi-ai": "0.84.2",
|
|
49
51
|
"@earendil-works/pi-coding-agent": "0.84.2",
|
|
50
52
|
"@earendil-works/pi-tui": "0.84.2"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"typescript": "^5.9.2"
|
|
51
56
|
}
|
|
52
57
|
}
|