@punks/cli 2.1.7 → 2.1.9
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 +2 -2
- package/dist/data/AGENTS.md +3 -1
- package/dist/data/catalog/lint.ts +28 -82
- package/dist/data/catalog/packs.ts +4 -3
- package/dist/data/catalog/skills.ts +8 -0
- package/dist/data/hooks/format-edited-file.mjs +1 -1
- package/dist/data/hooks.test.ts +2 -2
- package/dist/data/scripts/sync-subagents.mjs +0 -6
- package/dist/index.js +1411 -668
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +3 -3
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +1 -1
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +1 -1
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +3 -3
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +5 -2
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +16 -7
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +32 -9
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +4 -2
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +3 -3
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +16 -6
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +191 -0
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +1176 -0
- package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +176 -0
- package/dist/skills/phases/review-phase/SKILL.md +23 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ Before refreshing generated skills, setup migrates legacy per-agent skill folder
|
|
|
42
42
|
|
|
43
43
|
`punks update --yes` applies managed scaffold updates without prompting. It is the non-interactive alias for the apply behavior of `--write`.
|
|
44
44
|
|
|
45
|
-
`punks report`
|
|
45
|
+
`punks report` submits reusable Harness docs, workflow, tooling, CLI, skill-pack, or wiki friction to the Harness API. Public CLI submissions are validated, given deterministic metadata, and stored internally for backoffice triage. GitHub issue creation is reserved for authenticated backoffice operator flows.
|
|
46
46
|
|
|
47
47
|
Interactive commands check the selected npm dist-tag before running. When a newer CLI is available, `punks` asks for confirmation, reinstalls through the detected global package manager, and exits so the command can be rerun on the upgraded binary. `punks upgrade` keeps the same installer path as an explicit manual command. Use `--tag next` for prerelease channels or `--force` to reinstall the selected tag even when the current version is fresh.
|
|
48
48
|
|
|
@@ -92,7 +92,7 @@ bun run release:publish
|
|
|
92
92
|
|
|
93
93
|
`bun run baseline:publish` builds the current scaffold baseline, creates or updates the `baseline/stable/<date>-<sha>` GitHub release, and uploads the baseline manifest plus tarball. Use it when scaffold data changes but the npm executable does not need a new version.
|
|
94
94
|
|
|
95
|
-
`bun run release:publish` builds the CLI, publishes a sanitized npm package from the built `dist/` output, updates the `latest` dist-tag, also updates `next` for latest releases, pushes the matching `v<version>` git tag, and creates the GitHub release from `CHANGELOG.md
|
|
95
|
+
`bun run release:publish` builds the CLI, publishes a sanitized npm package from the built `dist/` output, updates the `latest` dist-tag, also updates `next` for latest releases, pushes the matching `v<version>` git tag, and creates or updates the GitHub release title and notes from the categorized `CHANGELOG.md` content. GitHub notes use compact category labels such as `changed:` and `fixed:` without changelog publish metadata. Commit the version bump and changelog entry before running it; the script refuses dirty worktrees, missing changelog entries, uncategorized release notes, and existing tags that point at another commit. Set `NPM_TAG=beta` for beta prereleases without moving `latest`.
|
|
96
96
|
|
|
97
97
|
Before npm releases, authenticate against the public npm registry:
|
|
98
98
|
|
package/dist/data/AGENTS.md
CHANGED
|
@@ -96,7 +96,9 @@ Strong success criteria let you loop independently. Weak criteria ("make it work
|
|
|
96
96
|
|
|
97
97
|
## Subagents
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Before delegating, verify the active harness global/project settings actually enable subagent execution. Then verify `.agents/subagents/manifest.mjs` exists and the chosen specialist has matching owned paths, guidance files, and skills.
|
|
100
|
+
|
|
101
|
+
Use readonly subagents aggressively for research, auditing, docs updating, investigating multiple hypotheses, or exploring unrelated areas. Implementation subagents are allowed only when a skill or plan explicitly requires them, such as `implement-spec` sequential single-worker execution or parallel waves. If the runtime guard fails, repair setup or execute locally; do not claim inactive worker coverage.
|
|
100
102
|
|
|
101
103
|
## Notes — Cross-session Memory
|
|
102
104
|
|
|
@@ -15,6 +15,7 @@ export interface LintPlacementDefinition {
|
|
|
15
15
|
export interface LintAssetDefinition {
|
|
16
16
|
readonly id: LintAssetId;
|
|
17
17
|
readonly description: string;
|
|
18
|
+
readonly oxlintPresets: ReadonlyArray<string>;
|
|
18
19
|
readonly plugins: ReadonlyArray<string>;
|
|
19
20
|
readonly jsPlugins: ReadonlyArray<LintJsPluginDefinition>;
|
|
20
21
|
readonly settings: Record<string, unknown>;
|
|
@@ -24,7 +25,7 @@ export interface LintAssetDefinition {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
const sharedReactPlacement = {
|
|
27
|
-
recommendedConfigFile: ".
|
|
28
|
+
recommendedConfigFile: "oxlint.config.ts",
|
|
28
29
|
recommendedFiles: ["<detected-react-workspace>/**/*.{js,jsx,ts,tsx}"],
|
|
29
30
|
recommendedWorkspaces: ["detected React workspaces"],
|
|
30
31
|
placementNotes:
|
|
@@ -32,7 +33,7 @@ const sharedReactPlacement = {
|
|
|
32
33
|
} as const satisfies LintPlacementDefinition;
|
|
33
34
|
|
|
34
35
|
const webOnlyPlacement = {
|
|
35
|
-
recommendedConfigFile: ".
|
|
36
|
+
recommendedConfigFile: "oxlint.config.ts",
|
|
36
37
|
recommendedFiles: ["<detected-nextjs-workspace>/**/*.{js,jsx,ts,tsx}"],
|
|
37
38
|
recommendedWorkspaces: ["detected Next.js workspaces"],
|
|
38
39
|
placementNotes:
|
|
@@ -40,7 +41,7 @@ const webOnlyPlacement = {
|
|
|
40
41
|
} as const satisfies LintPlacementDefinition;
|
|
41
42
|
|
|
42
43
|
const effectPlacement = {
|
|
43
|
-
recommendedConfigFile: ".
|
|
44
|
+
recommendedConfigFile: "oxlint.config.ts",
|
|
44
45
|
recommendedFiles: ["<detected-effect-workspace>/**/*.{js,jsx,ts,tsx}"],
|
|
45
46
|
recommendedWorkspaces: ["detected Effect workspaces"],
|
|
46
47
|
placementNotes:
|
|
@@ -48,7 +49,7 @@ const effectPlacement = {
|
|
|
48
49
|
} as const satisfies LintPlacementDefinition;
|
|
49
50
|
|
|
50
51
|
const vitestPlacement = {
|
|
51
|
-
recommendedConfigFile: ".
|
|
52
|
+
recommendedConfigFile: "oxlint.config.ts",
|
|
52
53
|
recommendedFiles: [
|
|
53
54
|
"<detected-test-workspace>/**/*.{test,spec}.{js,jsx,ts,tsx}",
|
|
54
55
|
"<detected-test-workspace>/src/test/**/*.{js,jsx,ts,tsx}",
|
|
@@ -61,38 +62,19 @@ const vitestPlacement = {
|
|
|
61
62
|
export const lintCatalog = [
|
|
62
63
|
{
|
|
63
64
|
id: "react-core",
|
|
64
|
-
description: "
|
|
65
|
-
|
|
65
|
+
description: "Ultracite React preset for rendered app and shared UI code.",
|
|
66
|
+
oxlintPresets: ["react"],
|
|
67
|
+
plugins: [],
|
|
66
68
|
jsPlugins: [],
|
|
67
69
|
settings: {},
|
|
68
|
-
rules: {
|
|
69
|
-
"react/rules-of-hooks": "error",
|
|
70
|
-
"react/exhaustive-deps": "error",
|
|
71
|
-
"react/forward-ref-uses-ref": "error",
|
|
72
|
-
"react/jsx-key": "error",
|
|
73
|
-
"react/jsx-no-comment-textnodes": "error",
|
|
74
|
-
"react/jsx-no-duplicate-props": "error",
|
|
75
|
-
"react/jsx-no-target-blank": "error",
|
|
76
|
-
"react/jsx-no-undef": "error",
|
|
77
|
-
"react/jsx-no-useless-fragment": "error",
|
|
78
|
-
"react/no-children-prop": "error",
|
|
79
|
-
"react/no-danger-with-children": "error",
|
|
80
|
-
"react/no-direct-mutation-state": "error",
|
|
81
|
-
"react/no-find-dom-node": "error",
|
|
82
|
-
"react/no-render-return-value": "error",
|
|
83
|
-
"react/no-string-refs": "error",
|
|
84
|
-
"react/no-this-in-sfc": "error",
|
|
85
|
-
"react/no-unknown-property": "error",
|
|
86
|
-
"react/no-unescaped-entities": "error",
|
|
87
|
-
"react/no-unsafe": "error",
|
|
88
|
-
"react/void-dom-elements-no-children": "error",
|
|
89
|
-
},
|
|
70
|
+
rules: {},
|
|
90
71
|
requiredDevDependencies: [],
|
|
91
72
|
placement: sharedReactPlacement,
|
|
92
73
|
},
|
|
93
74
|
{
|
|
94
75
|
id: "react-hooks",
|
|
95
76
|
description: "React Hooks lint rules via the JS plugin bridge for Oxlint.",
|
|
77
|
+
oxlintPresets: [],
|
|
96
78
|
plugins: [],
|
|
97
79
|
jsPlugins: [
|
|
98
80
|
{
|
|
@@ -102,6 +84,7 @@ export const lintCatalog = [
|
|
|
102
84
|
],
|
|
103
85
|
settings: {},
|
|
104
86
|
rules: {
|
|
87
|
+
"react-hooks-js/exhaustive-deps": "error",
|
|
105
88
|
"react-hooks-js/component-hook-factories": "error",
|
|
106
89
|
"react-hooks-js/config": "error",
|
|
107
90
|
"react-hooks-js/error-boundaries": "error",
|
|
@@ -112,6 +95,7 @@ export const lintCatalog = [
|
|
|
112
95
|
"react-hooks-js/preserve-manual-memoization": "error",
|
|
113
96
|
"react-hooks-js/purity": "error",
|
|
114
97
|
"react-hooks-js/refs": "error",
|
|
98
|
+
"react-hooks-js/rules-of-hooks": "error",
|
|
115
99
|
"react-hooks-js/set-state-in-effect": "error",
|
|
116
100
|
"react-hooks-js/set-state-in-render": "error",
|
|
117
101
|
"react-hooks-js/static-components": "error",
|
|
@@ -124,6 +108,7 @@ export const lintCatalog = [
|
|
|
124
108
|
{
|
|
125
109
|
id: "react-you-might-not-need-an-effect",
|
|
126
110
|
description: "Guidance rules that push React code away from unnecessary effects.",
|
|
111
|
+
oxlintPresets: [],
|
|
127
112
|
plugins: [],
|
|
128
113
|
jsPlugins: [
|
|
129
114
|
{
|
|
@@ -136,7 +121,6 @@ export const lintCatalog = [
|
|
|
136
121
|
"react-you-might-not-need-an-effect-js/no-adjust-state-on-prop-change": "error",
|
|
137
122
|
"react-you-might-not-need-an-effect-js/no-chain-state-updates": "error",
|
|
138
123
|
"react-you-might-not-need-an-effect-js/no-derived-state": "error",
|
|
139
|
-
"react-you-might-not-need-an-effect-js/no-empty-effect": "error",
|
|
140
124
|
"react-you-might-not-need-an-effect-js/no-event-handler": "error",
|
|
141
125
|
"react-you-might-not-need-an-effect-js/no-initialize-state": "error",
|
|
142
126
|
"react-you-might-not-need-an-effect-js/no-pass-data-to-parent": "error",
|
|
@@ -148,31 +132,12 @@ export const lintCatalog = [
|
|
|
148
132
|
},
|
|
149
133
|
{
|
|
150
134
|
id: "next-core",
|
|
151
|
-
description: "Next.js
|
|
152
|
-
|
|
135
|
+
description: "Ultracite Next.js preset for the main web application.",
|
|
136
|
+
oxlintPresets: ["next"],
|
|
137
|
+
plugins: [],
|
|
153
138
|
jsPlugins: [],
|
|
154
139
|
settings: {},
|
|
155
|
-
rules: {
|
|
156
|
-
"nextjs/inline-script-id": "error",
|
|
157
|
-
"nextjs/next-script-for-ga": "error",
|
|
158
|
-
"nextjs/no-assign-module-variable": "error",
|
|
159
|
-
"nextjs/no-async-client-component": "error",
|
|
160
|
-
"nextjs/no-before-interactive-script-outside-document": "error",
|
|
161
|
-
"nextjs/no-css-tags": "error",
|
|
162
|
-
"nextjs/no-document-import-in-page": "error",
|
|
163
|
-
"nextjs/no-duplicate-head": "error",
|
|
164
|
-
"nextjs/no-head-element": "error",
|
|
165
|
-
"nextjs/no-head-import-in-document": "error",
|
|
166
|
-
"nextjs/no-html-link-for-pages": "error",
|
|
167
|
-
"nextjs/no-img-element": "error",
|
|
168
|
-
"nextjs/no-page-custom-font": "error",
|
|
169
|
-
"nextjs/no-script-component-in-head": "error",
|
|
170
|
-
"nextjs/no-styled-jsx-in-document": "error",
|
|
171
|
-
"nextjs/no-sync-scripts": "error",
|
|
172
|
-
"nextjs/no-title-in-document-head": "error",
|
|
173
|
-
"nextjs/no-typos": "error",
|
|
174
|
-
"nextjs/no-unwanted-polyfillio": "error",
|
|
175
|
-
},
|
|
140
|
+
rules: {},
|
|
176
141
|
requiredDevDependencies: [],
|
|
177
142
|
placement: {
|
|
178
143
|
...webOnlyPlacement,
|
|
@@ -182,25 +147,13 @@ export const lintCatalog = [
|
|
|
182
147
|
},
|
|
183
148
|
{
|
|
184
149
|
id: "tanstack-query-core",
|
|
185
|
-
description: "TanStack
|
|
150
|
+
description: "Ultracite TanStack preset for query/router/start framework linting.",
|
|
151
|
+
oxlintPresets: ["tanstack"],
|
|
186
152
|
plugins: [],
|
|
187
|
-
jsPlugins: [
|
|
188
|
-
{
|
|
189
|
-
name: "tanstack-query-js",
|
|
190
|
-
specifier: "@tanstack/eslint-plugin-query",
|
|
191
|
-
},
|
|
192
|
-
],
|
|
153
|
+
jsPlugins: [],
|
|
193
154
|
settings: {},
|
|
194
|
-
rules: {
|
|
195
|
-
|
|
196
|
-
"tanstack-query-js/infinite-query-property-order": "error",
|
|
197
|
-
"tanstack-query-js/mutation-property-order": "error",
|
|
198
|
-
"tanstack-query-js/no-rest-destructuring": "warn",
|
|
199
|
-
"tanstack-query-js/no-unstable-deps": "error",
|
|
200
|
-
"tanstack-query-js/no-void-query-fn": "error",
|
|
201
|
-
"tanstack-query-js/stable-query-client": "error",
|
|
202
|
-
},
|
|
203
|
-
requiredDevDependencies: ["@tanstack/eslint-plugin-query"],
|
|
155
|
+
rules: {},
|
|
156
|
+
requiredDevDependencies: [],
|
|
204
157
|
placement: {
|
|
205
158
|
...webOnlyPlacement,
|
|
206
159
|
placementNotes:
|
|
@@ -210,6 +163,7 @@ export const lintCatalog = [
|
|
|
210
163
|
{
|
|
211
164
|
id: "effect-no-barrel-imports",
|
|
212
165
|
description: "Effect architectural rule that blocks barrel-package imports.",
|
|
166
|
+
oxlintPresets: [],
|
|
213
167
|
plugins: [],
|
|
214
168
|
jsPlugins: [
|
|
215
169
|
{
|
|
@@ -231,20 +185,12 @@ export const lintCatalog = [
|
|
|
231
185
|
},
|
|
232
186
|
{
|
|
233
187
|
id: "vitest-core",
|
|
234
|
-
description: "Vitest
|
|
235
|
-
|
|
188
|
+
description: "Ultracite Vitest preset for repo-owned test globs.",
|
|
189
|
+
oxlintPresets: ["vitest"],
|
|
190
|
+
plugins: [],
|
|
236
191
|
jsPlugins: [],
|
|
237
|
-
settings: {
|
|
238
|
-
|
|
239
|
-
typecheck: false,
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
rules: {
|
|
243
|
-
"vitest/consistent-each-for": "warn",
|
|
244
|
-
"vitest/no-conditional-tests": "error",
|
|
245
|
-
"vitest/no-import-node-test": "error",
|
|
246
|
-
"vitest/warn-todo": "warn",
|
|
247
|
-
},
|
|
192
|
+
settings: {},
|
|
193
|
+
rules: {},
|
|
248
194
|
requiredDevDependencies: [],
|
|
249
195
|
placement: vitestPlacement,
|
|
250
196
|
},
|
|
@@ -205,7 +205,7 @@ export const packCatalog = [
|
|
|
205
205
|
triggerPackages: ["react", "react-dom"],
|
|
206
206
|
description: "React guidance pack.",
|
|
207
207
|
skills: ["async-react-patterns", "vercel-composition-patterns", "vercel-react-best-practices"],
|
|
208
|
-
lintAssets: ["react-core", "react-
|
|
208
|
+
lintAssets: ["react-core", "react-you-might-not-need-an-effect"],
|
|
209
209
|
hooks: [],
|
|
210
210
|
promptSurfaces: ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
|
|
211
211
|
promptDetails: ["shared react structure baseline", "workspace react composition rules"],
|
|
@@ -214,8 +214,9 @@ export const packCatalog = [
|
|
|
214
214
|
id: "research",
|
|
215
215
|
category: "default",
|
|
216
216
|
triggerPackages: [],
|
|
217
|
-
description:
|
|
218
|
-
|
|
217
|
+
description:
|
|
218
|
+
"Default research pack: parallel research, structured review, and architecture inspection.",
|
|
219
|
+
skills: ["parallel-research", "review-phase", "autoreview", "improve-codebase-architecture"],
|
|
219
220
|
lintAssets: [],
|
|
220
221
|
hooks: [],
|
|
221
222
|
promptSurfaces: ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
|
|
@@ -324,6 +324,14 @@ export const skillCatalog = [
|
|
|
324
324
|
framework: null,
|
|
325
325
|
requiresTools: [],
|
|
326
326
|
},
|
|
327
|
+
{
|
|
328
|
+
id: "autoreview",
|
|
329
|
+
sourceDirectory: "skills/agnostic/quality/autoreview",
|
|
330
|
+
tier: "agnostic",
|
|
331
|
+
language: null,
|
|
332
|
+
framework: null,
|
|
333
|
+
requiresTools: [],
|
|
334
|
+
},
|
|
327
335
|
{
|
|
328
336
|
id: "simplify",
|
|
329
337
|
sourceDirectory: "skills/agnostic/quality/simplify",
|
|
@@ -243,7 +243,7 @@ function lintCommandForPath(root, relativePath) {
|
|
|
243
243
|
return null;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
return toolCommand(root, "oxlint", [
|
|
246
|
+
return toolCommand(root, "oxlint", [relativePath]);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
function formatAndLintFiles(root, filePaths) {
|
package/dist/data/hooks.test.ts
CHANGED
|
@@ -57,9 +57,9 @@ describe("scaffolded hooks", () => {
|
|
|
57
57
|
"pnpm-lock.yaml": "",
|
|
58
58
|
}),
|
|
59
59
|
"oxlint",
|
|
60
|
-
["
|
|
60
|
+
["src/index.ts"],
|
|
61
61
|
),
|
|
62
|
-
).toEqual(["pnpm", "exec", "oxlint", "
|
|
62
|
+
).toEqual(["pnpm", "exec", "oxlint", "src/index.ts"]);
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
it("routes Python backend files through Ruff in their project", async () => {
|
|
@@ -129,12 +129,6 @@ function buildOpenCodeConfig(existingConfig, { hasFormatHook }) {
|
|
|
129
129
|
const config = { ...existingConfig };
|
|
130
130
|
|
|
131
131
|
if (hasFormatHook) {
|
|
132
|
-
config.plugin = [
|
|
133
|
-
...new Set([
|
|
134
|
-
...(Array.isArray(config.plugin) ? config.plugin : []),
|
|
135
|
-
"./.opencode/plugins/format-edited-file.mjs",
|
|
136
|
-
]),
|
|
137
|
-
];
|
|
138
132
|
config.formatter = {
|
|
139
133
|
...(typeof config.formatter === "object" && config.formatter !== null
|
|
140
134
|
? config.formatter
|