@punks/cli 3.1.10 → 3.1.12
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/dist/BASELINE_CHANGELOG.md +61 -0
- package/dist/CHANGELOG.md +57 -0
- package/dist/data/subagents/manifest.mjs +11 -6
- package/dist/index.js +28 -28
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +5 -0
- package/dist/skills/agnostic/docs/writing-beats/LICENSE +21 -0
- package/dist/skills/agnostic/docs/writing-beats/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/docs/writing-fragments/LICENSE +21 -0
- package/dist/skills/agnostic/docs/writing-fragments/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/docs/writing-shape/LICENSE +21 -0
- package/dist/skills/agnostic/docs/writing-shape/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/frontend/frontend-domain-structure/SKILL.md +24 -42
- package/dist/skills/agnostic/frontend/frontend-domain-structure/agents/openai.yaml +1 -1
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/react/structure.md +51 -78
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/structure.md +89 -212
- package/dist/skills/agnostic/generic/handoff/LICENSE +21 -0
- package/dist/skills/agnostic/generic/handoff/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +1 -1
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +19 -7
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +19 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +27 -10
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +6 -2
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +22 -6
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +12 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +10 -2
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +10 -1
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +2 -0
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +11 -2
- package/dist/skills/agnostic/quality/codebase-design/LICENSE +21 -0
- package/dist/skills/agnostic/quality/codebase-design/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/quality/review/LICENSE +21 -0
- package/dist/skills/agnostic/quality/review/SKILL.md +16 -11
- package/dist/skills/agnostic/quality/review/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/quality/tdd/LICENSE +21 -0
- package/dist/skills/agnostic/quality/tdd/UPSTREAM.md +11 -0
- package/dist/skills/agnostic/research/improve-codebase-architecture/LICENSE +21 -0
- package/dist/skills/agnostic/research/improve-codebase-architecture/UPSTREAM.md +11 -0
- package/dist/skills/frameworks/effect/effect/SKILL.md +5 -12
- package/dist/skills/frameworks/effect/effect/references/CONFIG.md +10 -19
- package/dist/skills/frameworks/effect/effect/references/SERVICES_LAYERS.md +3 -63
- package/dist/skills/frameworks/effect/effect/references/TESTING.md +2 -72
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +12 -29
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +1 -1
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +9 -9
- package/dist/skills/frameworks/sqlalchemy/sqlalchemy-schema-design/SKILL.md +199 -0
- package/dist/skills/frameworks/sqlalchemy/sqlalchemy-schema-design/UPSTREAM.md +31 -0
- package/dist/skills/frameworks/sqlalchemy/sqlalchemy-schema-design/agents/openai.yaml +4 -0
- package/dist/skills/languages/python/python-backend-structure/SKILL.md +91 -0
- package/dist/skills/languages/python/python-backend-structure/agents/openai.yaml +4 -0
- package/dist/skills/languages/python/python-design-patterns/SKILL.md +93 -69
- package/dist/skills/languages/python/python-project-structure/SKILL.md +4 -247
- package/dist/skills/phases/delivery-phase/SKILL.md +13 -4
- package/dist/skills/phases/delivery-phase/phases/closeout.md +3 -0
- package/dist/skills/phases/delivery-phase/phases/debug.md +8 -1
- package/dist/skills/phases/delivery-phase/phases/implement.md +11 -2
- package/dist/skills/phases/delivery-phase/phases/review.md +50 -29
- package/dist/skills/phases/delivery-phase/phases/router.md +56 -36
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +8 -2
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +60 -10
- package/dist/skills/phases/finder-phase/references/root-routing.md +6 -1
- package/dist/skills/phases/prototype-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/review-phase/AUTHORING-HANDOFF.md +622 -0
- package/dist/skills/phases/review-phase/SKILL.md +11 -42
- package/dist/skills/phases/review-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/review-phase/phases/prepare-review.md +105 -0
- package/dist/skills/phases/review-phase/phases/retain-report.md +113 -0
- package/dist/skills/phases/review-phase/phases/return-route.md +95 -0
- package/dist/skills/phases/review-phase/phases/router.md +78 -0
- package/dist/skills/phases/review-phase/phases/run-review.md +128 -0
- package/dist/skills/phases/review-phase/references/durable-report.md +153 -0
- package/dist/skills/phases/review-phase/references/runtime-handoff.md +138 -0
- package/dist/skills/phases/review-phase/references/state-graph.md +69 -0
- package/dist/skills/phases/review-phase/references/targets.md +156 -0
- package/dist/skills/phases/review-phase/scripts/review-contract.mjs +819 -0
- package/package.json +56 -2
- package/dist/skills/phases/review-phase/REFERENCE.md +0 -147
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@punks/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"description": "Harness Intelligence scaffolding CLI",
|
|
5
5
|
"homepage": "https://github.com/wearedevpunks/harness-intelligence/tree/main/apps/cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -15,5 +15,59 @@
|
|
|
15
15
|
"hi": "dist/index.js",
|
|
16
16
|
"hint": "dist/index.js"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"AGENTS.md"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/build-dist.mjs",
|
|
26
|
+
"baseline:build": "bun ./scripts/build-baseline.mjs",
|
|
27
|
+
"baseline:publish": "node ./scripts/publish-baseline.mjs",
|
|
28
|
+
"baseline:rollback": "node ./scripts/rollback-baseline.mjs",
|
|
29
|
+
"check-types": "\"${HI_TEST_NODE_PATH:-node}\" --input-type=module -e \"await import(new URL('./bin/tsc', import.meta.resolve('@typescript/native/package.json')))\" -- tsc --noEmit",
|
|
30
|
+
"dev": "bun run ./src/index.ts scaffold",
|
|
31
|
+
"entrypoints": "bun ./scripts/print-entrypoints.mjs",
|
|
32
|
+
"fixtures:check:managed-assets": "vitest run --config vitest.config.ts src/features/context-planning/managed-assets-fixture.native.test.ts",
|
|
33
|
+
"fixtures:update:managed-assets": "bun run build && HI_UPDATE_MANAGED_ASSETS_FIXTURE=1 bun run fixtures:check:managed-assets",
|
|
34
|
+
"local": "bun run build && bun run ./dist/index.js",
|
|
35
|
+
"release:attest": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-cli-verification.mjs attest",
|
|
36
|
+
"release:publish": "node ./scripts/release-dispatcher.mjs",
|
|
37
|
+
"release:publish:beta": "NPM_TAG=beta node ./scripts/release-dispatcher.mjs",
|
|
38
|
+
"release:verify": "HI_CACHE_NAMESPACE=protected node ./scripts/run-cli-verification.mjs release",
|
|
39
|
+
"sync:skills": "node ./scripts/sync-skills-repo.mjs",
|
|
40
|
+
"test": "vitest run --config vitest.config.ts",
|
|
41
|
+
"test:parallel": "vitest run --config vitest.config.ts --fileParallelism --maxWorkers=2",
|
|
42
|
+
"test:release": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs",
|
|
43
|
+
"test:release:complete": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs complete",
|
|
44
|
+
"test:release:ordinary:ambient": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs ordinary:ambient",
|
|
45
|
+
"test:release:ordinary:deterministic": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs ordinary:deterministic",
|
|
46
|
+
"test:release:ordinary:native:capability": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs ordinary:native:capability",
|
|
47
|
+
"test:release:ordinary:native:forced": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs ordinary:native:forced",
|
|
48
|
+
"test:release:update:0": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs update:0",
|
|
49
|
+
"test:release:update:1": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs update:1",
|
|
50
|
+
"test:release:update:2": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs update:2",
|
|
51
|
+
"test:release:update:uncached": "\"${HI_TEST_NODE_PATH:-node}\" ./scripts/run-release-tests.mjs update:uncached",
|
|
52
|
+
"ui:catalog": "bun ./scripts/run-renderer-catalog.mjs",
|
|
53
|
+
"check": "oxlint src scripts && oxfmt --check src scripts package.json tsconfig.json vitest.config.ts && bun run fixtures:check:managed-assets"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"react-devtools-core": "^6.1.5"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@effect/eslint-plugin": "latest",
|
|
60
|
+
"@effect/platform-bun": "catalog:",
|
|
61
|
+
"@effect/vitest": "catalog:",
|
|
62
|
+
"@punks/contract": "workspace:*",
|
|
63
|
+
"@punks/env": "workspace:*",
|
|
64
|
+
"@punks/scaffold": "workspace:*",
|
|
65
|
+
"@types/node": "catalog:",
|
|
66
|
+
"effect": "catalog:",
|
|
67
|
+
"oxlint": "latest",
|
|
68
|
+
"typescript": "catalog:",
|
|
69
|
+
"ultracite": "latest",
|
|
70
|
+
"vitest": "catalog:"
|
|
71
|
+
},
|
|
72
|
+
"packageManager": "bun@1.3.5"
|
|
19
73
|
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# Review Phase Reference
|
|
2
|
-
|
|
3
|
-
## Use And Stop Rules
|
|
4
|
-
|
|
5
|
-
Use for review-only goals, audits, PR review, suspicious code, external edits,
|
|
6
|
-
merged or rebased branches, and `delivery-phase` review gates.
|
|
7
|
-
|
|
8
|
-
Do not use when the user asks for immediate implementation, pure planning,
|
|
9
|
-
requirements grilling, docs writing with no artifact to review, or an undefined
|
|
10
|
-
target that cannot be inferred from branch, diff, issue, PR, or prompt.
|
|
11
|
-
|
|
12
|
-
Standalone mode is readonly and stops after findings. Delivery mode may return
|
|
13
|
-
findings to delivery for fixes, debugging, docs, or validation because delivery
|
|
14
|
-
owns completion.
|
|
15
|
-
|
|
16
|
-
## Scope Policy
|
|
17
|
-
|
|
18
|
-
Default to the smallest certain target:
|
|
19
|
-
|
|
20
|
-
- open PR changes
|
|
21
|
-
- highlighted diff
|
|
22
|
-
- supplied code portions
|
|
23
|
-
- branch range
|
|
24
|
-
- named files, paths, packages, apps, domains, or features
|
|
25
|
-
|
|
26
|
-
Use a full-codebase scan only when no PR is open and no certain domain, portion,
|
|
27
|
-
or path is provided, or when the user explicitly asks for a full-codebase
|
|
28
|
-
review.
|
|
29
|
-
|
|
30
|
-
Pass the bounded target into every inner review step: `autoreview`,
|
|
31
|
-
ClawPatch-backed review, delegated readonly checks, and lens prompts. Do not run
|
|
32
|
-
review tooling against the full codebase when a bounded target exists.
|
|
33
|
-
|
|
34
|
-
For PR review, use the actual PR base branch. Do not assume trunk.
|
|
35
|
-
|
|
36
|
-
## Runtime And Lenses
|
|
37
|
-
|
|
38
|
-
Start review flow with `review`. It pins the fixed point, discovers
|
|
39
|
-
Spec and Standards sources, carries baseline code smells, and keeps Standards
|
|
40
|
-
findings separate from Spec findings. Use that frame for delegated review
|
|
41
|
-
prompts, `autoreview` context, and final aggregation.
|
|
42
|
-
|
|
43
|
-
`autoreview` remains the core structured review runtime. Capture the exact
|
|
44
|
-
command and manually verify accepted findings against source, docs, scoped
|
|
45
|
-
skills, and dependency contracts.
|
|
46
|
-
|
|
47
|
-
Mandatory lenses:
|
|
48
|
-
|
|
49
|
-
- `review`: two-axis Standards versus Spec wrapper, fixed diff, and
|
|
50
|
-
separate aggregation.
|
|
51
|
-
- `simplify`: clarity, avoidable complexity, unnecessary abstraction, derivable
|
|
52
|
-
state, naming, and scope creep.
|
|
53
|
-
- `improve-codebase-architecture`: boundary friction, shallow modules, module
|
|
54
|
-
depth, and follow-up RFC candidates.
|
|
55
|
-
- Scoped local guidance: nearest relevant `AGENTS.md`, stack skills, runbooks,
|
|
56
|
-
ownership rules, and skills named by those instructions.
|
|
57
|
-
|
|
58
|
-
Conditional lens:
|
|
59
|
-
|
|
60
|
-
- `parallel-research`: split independent readonly checks by subsystem, risk, or
|
|
61
|
-
hypothesis. Synthesize evidence; do not vote-count disagreements.
|
|
62
|
-
|
|
63
|
-
## Evidence And Validation
|
|
64
|
-
|
|
65
|
-
Prefer primary artifacts over tracker summaries. Record exact files and
|
|
66
|
-
commands consulted. Include stack status or prior delivery stack evidence when
|
|
67
|
-
stack metadata is relevant.
|
|
68
|
-
|
|
69
|
-
Safe readonly validation may include focused tests, typecheck, lint, build,
|
|
70
|
-
docs link checks, or smoke commands. If a check cannot run, state why and the
|
|
71
|
-
residual risk.
|
|
72
|
-
|
|
73
|
-
For behavior-changing implementation plans or specs, missing RED/GREEN proof is
|
|
74
|
-
a blocking finding unless the task has an explicit valid `reason_not_testable`.
|
|
75
|
-
Reject `reason_not_testable` when the only reason is forgotten RED; the delivery
|
|
76
|
-
owner must recover with public-result RED and GREEN evidence.
|
|
77
|
-
|
|
78
|
-
## Requirements Grill Wrapper Review
|
|
79
|
-
|
|
80
|
-
When reviewed spec, plan, phase, or wrapper claims to use
|
|
81
|
-
`requirements-grill` or design-phase grill, review shared interview behavior
|
|
82
|
-
against `$grilling` and durable behavior against the `requirements-grill`
|
|
83
|
-
inner flow, not just its outer handoff.
|
|
84
|
-
|
|
85
|
-
Check:
|
|
86
|
-
|
|
87
|
-
- Serious grill sessions pair `references/grilling-flow.md` with
|
|
88
|
-
`references/artifact-output.md`.
|
|
89
|
-
- Before each round is yielded, it is persisted with stable question ids,
|
|
90
|
-
prerequisites, and the current frontier, with a stable mapping between live
|
|
91
|
-
questions and the routed log/status artifacts.
|
|
92
|
-
- Each response set is processed answer by answer; partially answered rounds
|
|
93
|
-
preserve omitted questions as unanswered and carry them forward.
|
|
94
|
-
- Status is updated after each response set, and branch percentages agree with
|
|
95
|
-
the unanswered-question and shared-understanding confirmation fields.
|
|
96
|
-
- Routed grill log/status artifacts are created or updated when grilling
|
|
97
|
-
decisions, branches, parked scope, percentages, glossary, axioms, or
|
|
98
|
-
ambiguities change.
|
|
99
|
-
- Glossary, axiom, and status updates preserve current meaning while the
|
|
100
|
-
log records accepted decisions and superseded decisions.
|
|
101
|
-
- Added or renamed wiki grill artifacts update routed metadata/bookkeeping:
|
|
102
|
-
`content/docs/project/grilling/meta.json`, section index when missing,
|
|
103
|
-
and wiki `log.md` when the repo maintains one.
|
|
104
|
-
- After `$grilling` completes, downstream handoff evidence exists as
|
|
105
|
-
applicable: wiki synthesis, backlog/user stories, spec, or phase handoff
|
|
106
|
-
carrying accepted decisions and recorded scope state.
|
|
107
|
-
|
|
108
|
-
Missing inner-flow or durable-artifact evidence is a review finding when
|
|
109
|
-
the wrapper promised grill behavior.
|
|
110
|
-
|
|
111
|
-
## Findings Policy
|
|
112
|
-
|
|
113
|
-
Prioritize bugs, regressions, broken contracts, missing validation, unsafe
|
|
114
|
-
assumptions, and user-facing risks. Include file and line references when
|
|
115
|
-
available. Separate blocking findings from improvements and optional cleanup.
|
|
116
|
-
|
|
117
|
-
Do not edit code in standalone mode unless the user explicitly asks after
|
|
118
|
-
seeing the review scope. Do not use `simplify` as permission to refactor.
|
|
119
|
-
|
|
120
|
-
Do not flatten scoped `AGENTS.md` guidance into generic advice; cite the
|
|
121
|
-
concrete constraint. Do not skip scoped skills from `AGENTS.md` prompts.
|
|
122
|
-
|
|
123
|
-
Do not run mutating stack commands in review. `review-phase` reports stack
|
|
124
|
-
evidence only; delivery owns `stack sync`.
|
|
125
|
-
|
|
126
|
-
## Output Checklist
|
|
127
|
-
|
|
128
|
-
Lead with findings, ordered by severity. For each finding include:
|
|
129
|
-
|
|
130
|
-
- severity
|
|
131
|
-
- file/line or artifact reference
|
|
132
|
-
- issue and impact
|
|
133
|
-
- evidence
|
|
134
|
-
- recommended action
|
|
135
|
-
|
|
136
|
-
Then include:
|
|
137
|
-
|
|
138
|
-
- open questions or assumptions
|
|
139
|
-
- validation run and result
|
|
140
|
-
- exact `autoreview` command and clean/accepted-findings result
|
|
141
|
-
- fixed point, Spec source or skipped reason, Standards sources
|
|
142
|
-
- scoped `AGENTS.md` files and mandatory scoped skills checked
|
|
143
|
-
- short summary after findings
|
|
144
|
-
- mode: standalone readonly review or delivery-owned review
|
|
145
|
-
|
|
146
|
-
If there are no findings, say so clearly and still report validation coverage
|
|
147
|
-
and residual risk.
|