create-harness-vibe-coding 0.8.18 → 0.8.19

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 (128) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -0
  3. package/package.json +5 -2
  4. package/src/index.js +383 -267
  5. package/src/ui/dist/assets/AgentsRoute-CuSKYmFu.js +17 -0
  6. package/src/ui/dist/assets/AgentsRoute-CuSKYmFu.js.map +1 -0
  7. package/src/ui/dist/assets/RolesRoute-DOzTYVRm.js +7 -0
  8. package/src/ui/dist/assets/RolesRoute-DOzTYVRm.js.map +1 -0
  9. package/src/ui/dist/assets/SettingsRoute-DPU7jSQm.js +12 -0
  10. package/src/ui/dist/assets/SettingsRoute-DPU7jSQm.js.map +1 -0
  11. package/src/ui/dist/assets/TaskList-BN4r8s1i.js +50 -0
  12. package/src/ui/dist/assets/TaskList-BN4r8s1i.js.map +1 -0
  13. package/src/ui/dist/assets/TerminalDrawer-6GBZ9nXN.css +32 -0
  14. package/src/ui/dist/assets/TerminalDrawer-Cej4PxsH.js +74 -0
  15. package/src/ui/dist/assets/TerminalDrawer-Cej4PxsH.js.map +1 -0
  16. package/src/ui/dist/assets/WorkflowRoute-BnuhLJ6X.css +1 -0
  17. package/src/ui/dist/assets/WorkflowRoute-C-clKe-j.js +39 -0
  18. package/src/ui/dist/assets/WorkflowRoute-C-clKe-j.js.map +1 -0
  19. package/src/ui/dist/assets/index-BOVYWntB.js +117 -0
  20. package/src/ui/dist/assets/index-BOVYWntB.js.map +1 -0
  21. package/src/ui/dist/assets/index-DaUObq0H.css +1 -0
  22. package/src/ui/dist/assets/maximize-2-LNrr_rKr.js +7 -0
  23. package/src/ui/dist/assets/maximize-2-LNrr_rKr.js.map +1 -0
  24. package/src/ui/dist/assets/plus-QuTJyoT3.js +7 -0
  25. package/src/ui/dist/assets/plus-QuTJyoT3.js.map +1 -0
  26. package/src/ui/dist/assets/proxy-D0vUbds5.js +2 -0
  27. package/src/ui/dist/assets/proxy-D0vUbds5.js.map +1 -0
  28. package/src/ui/dist/assets/refresh-cw-JNmExijd.js +7 -0
  29. package/src/ui/dist/assets/refresh-cw-JNmExijd.js.map +1 -0
  30. package/src/ui/dist/assets/terminal-BBQvnOAK.js +7 -0
  31. package/src/ui/dist/assets/terminal-BBQvnOAK.js.map +1 -0
  32. package/src/ui/dist/assets/useReducedMotion-BqmH0Tf7.js +7 -0
  33. package/src/ui/dist/assets/useReducedMotion-BqmH0Tf7.js.map +1 -0
  34. package/src/ui/dist/assets/x-DoIOGAJz.js +7 -0
  35. package/src/ui/dist/assets/x-DoIOGAJz.js.map +1 -0
  36. package/src/ui/dist/index.html +18 -0
  37. package/src/ui/index.html +17 -0
  38. package/src/ui/package.json +33 -0
  39. package/src/ui/pnpm-lock.yaml +1582 -0
  40. package/src/ui/pnpm-workspace.yaml +2 -0
  41. package/src/ui/src/App.tsx +86 -0
  42. package/src/ui/src/api.ts +93 -0
  43. package/src/ui/src/components/AgentsRoute.tsx +503 -0
  44. package/src/ui/src/components/Footer.tsx +69 -0
  45. package/src/ui/src/components/Header.tsx +175 -0
  46. package/src/ui/src/components/LoadingView.tsx +22 -0
  47. package/src/ui/src/components/RolesRoute.tsx +169 -0
  48. package/src/ui/src/components/SettingsRoute.tsx +166 -0
  49. package/src/ui/src/components/TaskList.tsx +388 -0
  50. package/src/ui/src/components/TerminalDrawer.tsx +611 -0
  51. package/src/ui/src/components/WorkflowRoute.tsx +670 -0
  52. package/src/ui/src/hooks/useReducedMotion.ts +17 -0
  53. package/src/ui/src/hooks/useServerConnection.ts +114 -0
  54. package/src/ui/src/index.css +281 -0
  55. package/src/ui/src/main.tsx +11 -0
  56. package/src/ui/src/types.ts +108 -0
  57. package/src/ui/tsconfig.json +21 -0
  58. package/src/ui/vite.config.ts +19 -0
  59. package/src/wf-ui-server/__tests__/a2a-store.test.mjs +79 -0
  60. package/src/wf-ui-server/__tests__/peer-capsule.test.mjs +268 -0
  61. package/src/wf-ui-server/__tests__/pty-adapter.test.mjs +70 -0
  62. package/src/wf-ui-server/__tests__/runtime-config.test.mjs +43 -0
  63. package/src/wf-ui-server/__tests__/runtime-detector.test.mjs +90 -0
  64. package/src/wf-ui-server/__tests__/security.test.mjs +59 -0
  65. package/src/wf-ui-server/__tests__/server.integration.test.mjs +150 -0
  66. package/src/wf-ui-server/__tests__/session-registry.test.mjs +238 -0
  67. package/src/wf-ui-server/__tests__/settings.test.mjs +135 -0
  68. package/src/wf-ui-server/__tests__/task-parser.test.mjs +200 -0
  69. package/src/wf-ui-server/__tests__/terminal-store.test.mjs +138 -0
  70. package/src/wf-ui-server/__tests__/token.test.mjs +48 -0
  71. package/src/wf-ui-server/__tests__/ws-events.integration.test.mjs +419 -0
  72. package/src/wf-ui-server/__tests__/ws-terminal.integration.test.mjs +383 -0
  73. package/src/wf-ui-server/a2a-store.mjs +296 -0
  74. package/src/wf-ui-server/peer-capsule.mjs +213 -0
  75. package/src/wf-ui-server/pty-adapter.mjs +155 -0
  76. package/src/wf-ui-server/runtime-config.mjs +153 -0
  77. package/src/wf-ui-server/runtime-detector.mjs +374 -0
  78. package/src/wf-ui-server/security.mjs +67 -0
  79. package/src/wf-ui-server/server.mjs +849 -0
  80. package/src/wf-ui-server/session-registry.mjs +204 -0
  81. package/src/wf-ui-server/settings.mjs +100 -0
  82. package/src/wf-ui-server/task-parser.mjs +133 -0
  83. package/src/wf-ui-server/terminal-store.mjs +225 -0
  84. package/src/wf-ui-server/token.mjs +41 -0
  85. package/src/wf-ui-server/ws-events.mjs +354 -0
  86. package/src/wf-ui-server/ws-terminal.mjs +473 -0
  87. package/templates/common/.claude/commands/wf-help.md +1 -0
  88. package/templates/common/.claude/commands/wf-task-list.md +2 -0
  89. package/templates/common/.claude/commands/wf-ui.md +26 -0
  90. package/templates/common/.claude/commands/wf-update.md +54 -9
  91. package/templates/common/.claude/rules/ecc/common.md +1 -1
  92. package/templates/common/.claude/skills/wf-auto/SKILL.md +3 -3
  93. package/templates/common/.claude/skills/wf-auto-spark/SKILL.md +2 -2
  94. package/templates/common/.claude/skills/wf-ui/SKILL.md +78 -0
  95. package/templates/common/.claude/skills/wf-update/SKILL.md +55 -58
  96. package/templates/common/.harness-version +63 -39
  97. package/templates/common/.opencode/commands/wf-help.md +1 -0
  98. package/templates/common/.opencode/commands/wf-task-list.md +2 -0
  99. package/templates/common/.opencode/commands/wf-ui.md +26 -0
  100. package/templates/common/.opencode/commands/wf-update.md +54 -9
  101. package/templates/common/CLAUDE.md +1 -1
  102. package/templates/common/Harness/MEMORY.md +2 -0
  103. package/templates/common/Harness/README.md +6 -4
  104. package/templates/common/Harness/a2a/role-graph.json +79 -0
  105. package/templates/common/Harness/a2a/runtime-registry.json +5 -0
  106. package/templates/common/Harness/a2a/skills/terminal-control.json +15 -0
  107. package/templates/common/Harness/ownership.manifest.json +57 -2
  108. package/templates/common/Harness/scripts/README.md +134 -0
  109. package/templates/common/Harness/scripts/a2a-terminal.mjs +191 -0
  110. package/templates/common/Harness/scripts/context-budget.mjs +1 -1
  111. package/templates/common/Harness/scripts/sync-host-global.mjs +278 -0
  112. package/templates/common/Harness/scripts/task-state.mjs +556 -23
  113. package/templates/common/Harness/scripts/validate-harness.mjs +229 -19
  114. package/templates/common/Harness/scripts/wf-remove.mjs +8 -3
  115. package/templates/common/Harness/scripts/wf-update-check.mjs +37 -9
  116. package/templates/common/Harness/scripts/wf-update-runner.mjs +325 -0
  117. package/templates/common/Harness/settings.json +35 -0
  118. package/templates/common/Harness/specs/protocols/TASK_ARCHIVE.md +7 -2
  119. package/templates/common/Harness/specs/runtime/command-surface.json +14 -0
  120. package/templates/common/Harness/specs/workflows/WF-AUTO-SPARK.md +8 -8
  121. package/templates/common/Harness/specs/workflows/WF-AUTO.md +12 -12
  122. package/templates/common/Harness/tasks/_template/NAMING.md +16 -16
  123. package/templates/common/Harness/tasks/_template/PLAN.md +17 -60
  124. package/templates/common/Harness/tasks/_template/PROBLEM.md +18 -0
  125. package/templates/common/Harness/tasks/_template/PROGRESS.md +9 -14
  126. package/templates/common/Harness/tasks/_template/REFERENCES.md +26 -0
  127. package/templates/common/Harness/tasks/_template/ARTIFACTS.md +0 -3
  128. package/templates/common/Harness/tasks/_template/NOTES.md +0 -3
@@ -1,80 +1,37 @@
1
1
  # {{TASK_ID}} - PLAN
2
2
 
3
- Compact task record. Keep only facts needed to resume, review, and verify.
4
- Link files or command names instead of pasting logs or subagent transcripts.
5
-
6
- > Task ID: kebab-case, under 60 chars. Directory name = task ID.
3
+ Compact task record. Default: keep 1-3 concise ACs unless the task explicitly needs a broader acceptance matrix.
7
4
 
8
5
  ## Goal
9
6
 
10
7
  - Outcome:
11
8
  - Non-goals:
12
9
 
13
- ## Decisions
14
-
15
- -
16
-
17
- ## Acceptance
18
-
19
- Default: keep 1-3 concise ACs. Expand only for UI/API/security/data-loss,
20
- cross-module, or other high-risk behavior.
21
-
22
- - AC-001:
23
-
24
- Expanded evidence required when triggered:
25
- - UI/browser-visible: add selector contract and real browser evidence.
26
- - API/integration: add endpoint/payload/response contract.
27
- - High-risk behavior: add AC-by-AC validation matrix.
28
-
29
10
  ## Scope
30
11
 
31
- Allowed write set:
32
- -
33
-
34
- Forbidden:
35
- -
36
- - Truth files (PRD, ACs, UI/API contracts, test plan, validation report) unless a Change Request is recorded.
37
-
38
- ## Memory Preflight
39
-
40
- - Memory preflight: done | exempt | blocked
41
- - Memory hints: none | <file/path + reason>
12
+ - Write set:
13
+ - Forbidden:
42
14
 
43
- ## Context
44
-
45
- - Loaded:
46
- - Assumptions:
47
-
48
- ## Agents
49
-
50
- Only record agents or bounded passes that materially changed the decision.
51
-
52
- | Role | Read / Write Set | Result |
53
- |------|------------------|--------|
15
+ ## Decisions
54
16
 
55
- ## Verification
17
+ | # | Decision | Reason | Date |
18
+ |---|----------|--------|------|
19
+ | | | | |
56
20
 
57
- - [ ]
21
+ ## Acceptance
58
22
 
59
- ## Risks
23
+ | ID | Criterion | Evidence | Status |
24
+ |----|-----------|----------|--------|
25
+ | AC-001 | | | pending |
60
26
 
61
- -
27
+ Expanded evidence required when triggered by high-risk changes, broad cross-file edits, release work, or user request.
62
28
 
63
29
  ## Expanded Contracts
64
30
 
65
- Use this section only when the Acceptance triggers above apply.
66
-
67
- ### UI Contract
68
-
69
- | Element | Selector / Role | States | AC IDs |
70
- |---------|-----------------|--------|--------|
31
+ - Add Given/When/Then, selector contracts, migration notes, or release evidence only when the task risk requires it.
71
32
 
72
- ### API Contract
73
-
74
- | Endpoint | Method | Payload / Response | AC IDs |
75
- |----------|--------|--------------------|--------|
76
-
77
- ### Validation Matrix
33
+ ## Risks
78
34
 
79
- | AC ID | Result | Evidence | Notes |
80
- |-------|--------|----------|-------|
35
+ | Risk | Mitigation | Status |
36
+ |------|------------|--------|
37
+ | | | |
@@ -0,0 +1,18 @@
1
+ # {{TASK_ID}} - PROBLEM
2
+
3
+ Record problems, root causes, and fixes. One entry per distinct problem.
4
+ Delete files that prove nothing.
5
+
6
+ ## Active
7
+
8
+ | ID | Problem | Root cause | Fix | Status |
9
+ |----|---------|------------|-----|--------|
10
+ | | | | | |
11
+
12
+ ## Resolved
13
+
14
+ | ID | Problem | Root cause | Fix | Resolved |
15
+ |----|---------|------------|-----|----------|
16
+ | | | | | |
17
+
18
+ Status: open | investigating | blocked | fixed
@@ -1,26 +1,21 @@
1
1
  # {{TASK_ID}} - PROGRESS
2
2
 
3
- Compact heartbeat. Update on phase changes, blockers, failures, and closeout.
4
- Do not paste logs; record the command/file that proves the state.
3
+ Compact heartbeat.
5
4
 
6
- ## Status
5
+ Phase heartbeat. Update on transitions, blockers, verification. Keep under 20 lines.
6
+
7
+ ## Current
7
8
 
8
9
  - Phase: Intake
9
10
  - Next:
10
11
  - Blocker: none
11
12
 
12
- ## Tasks
13
-
14
- - [ ] Define goal and scope
15
-
16
- ## Changes
17
-
18
- -
19
-
20
13
  ## Verification
21
14
 
22
- -
15
+ - [ ] verification command
23
16
 
24
- ## Notes
17
+ ## Log
25
18
 
26
- -
19
+ | Date | Phase | Note |
20
+ |------|-------|------|
21
+ | | | |
@@ -0,0 +1,26 @@
1
+ # {{TASK_ID}} - REFERENCES
2
+
3
+ External evidence, logs, and links. Do not paste raw output; cite file paths, URLs, or commands that reproduce the result.
4
+
5
+ ## Logs
6
+
7
+ | Description | File / Command | Date |
8
+ |-------------|---------------|------|
9
+ | | | |
10
+
11
+ ## Evidence
12
+
13
+ | What | Pointer | Verified |
14
+ |------|---------|----------|
15
+ | | | no |
16
+
17
+ ## Links
18
+
19
+ | Description | URL / Path |
20
+ |-------------|------------|
21
+ | | |
22
+
23
+ ## Notes
24
+
25
+ Ad-hoc observations that don't fit PROGRESS, PLAN, or PROBLEM.
26
+ -
@@ -1,3 +0,0 @@
1
- # {{TASK_ID}} - Artifacts
2
-
3
- Optional: screenshots, logs, API responses, links. Create only when evidence is too large for this task's PLAN.md verification table.
@@ -1,3 +0,0 @@
1
- # {{TASK_ID}} - Notes
2
-
3
- Optional: exploration notes, design alternatives, research leads. Create only when notes are too long for this task's PLAN.md.