@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.
Files changed (45) hide show
  1. package/.pi/APPEND_SYSTEM.md +2 -0
  2. package/.pi/extensions/hwcode.ts +35 -2
  3. package/.pi/extensions/model-providers.ts +1 -2
  4. package/.pi/extensions/workflows/cloud/activation.ts +235 -0
  5. package/.pi/extensions/workflows/cloud/commands.ts +96 -0
  6. package/.pi/extensions/workflows/cloud/events.ts +58 -0
  7. package/.pi/extensions/workflows/cloud/index.ts +17 -0
  8. package/.pi/extensions/workflows/cloud/provider-tools.ts +127 -0
  9. package/.pi/extensions/workflows/cloud/runner-tools.ts +129 -0
  10. package/.pi/extensions/workflows/cloud/runtime.ts +97 -0
  11. package/.pi/extensions/workflows/cloud/shared.ts +213 -0
  12. package/.pi/extensions/workflows/cloud/terraform-tools.ts +126 -0
  13. package/.pi/extensions/workflows/vibe-sdd.ts +303 -0
  14. package/.pi/extensions/workflows.ts +6 -253
  15. package/.pi/lib/runtime/config.ts +3 -7
  16. package/.pi/lib/runtime/defaults.ts +20 -0
  17. package/.pi/lib/runtime/paths.ts +68 -0
  18. package/.pi/lib/runtime/session-state.ts +0 -34
  19. package/.pi/lib/{cloud → workflows/cloud}/adapters.ts +38 -20
  20. package/.pi/lib/workflows/cloud/bundles.ts +358 -0
  21. package/.pi/lib/workflows/cloud/execution.ts +28 -0
  22. package/.pi/lib/{cloud → workflows/cloud}/process.ts +5 -3
  23. package/.pi/lib/{cloud-providers.ts → workflows/cloud/providers.ts} +4 -4
  24. package/.pi/lib/workflows/cloud/remote/bootstrap.ts +23 -0
  25. package/.pi/lib/workflows/cloud/remote/connect.ts +83 -0
  26. package/.pi/lib/workflows/cloud/remote/host-key.ts +35 -0
  27. package/.pi/lib/workflows/cloud/remote/profiles.ts +100 -0
  28. package/.pi/lib/workflows/cloud/remote/ssh-transport.ts +104 -0
  29. package/.pi/lib/workflows/cloud/remote/workspace.ts +109 -0
  30. package/.pi/lib/{cloud → workflows/cloud}/template-save.ts +3 -2
  31. package/.pi/lib/{cloud → workflows/cloud}/templates.ts +18 -10
  32. package/.pi/lib/workflows/cloud/terraform/plan.ts +109 -0
  33. package/.pi/lib/workflows/cloud/terraform/policy.ts +36 -0
  34. package/.pi/lib/workflows/cloud/terraform/runner.ts +64 -0
  35. package/.pi/lib/{cloud-vault.ts → workflows/cloud/vault.ts} +26 -24
  36. package/.pi/lib/workflows/cloud/workspace.ts +37 -0
  37. package/.pi/lib/workflows/sdd.ts +11 -0
  38. package/.pi/lib/workflows/state.ts +114 -2
  39. package/.pi/lib/working-directory.ts +0 -58
  40. package/.pi/skills/hwcode-cloud/SKILL.md +32 -1
  41. package/.pi/skills/hwcode-sdd/SKILL.md +2 -0
  42. package/README.md +41 -8
  43. package/bin/hwcode.js +2 -6
  44. package/package.json +8 -3
  45. 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 将成功执行路径保存为本地 Prompt 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.2.4",
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 --test .pi/lib/*.test.ts",
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
  }