@punks/cli 2.5.1 → 2.5.3
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/AGENTS.md +2 -2
- package/README.md +5 -5
- package/dist/BASELINE_CHANGELOG.md +39 -0
- package/dist/CHANGELOG.md +63 -0
- package/dist/data/hooks/format-edited-file.mjs +20 -0
- package/dist/index.js +255 -37
- package/dist/skills/agnostic/backend/backend-domain-structure/SKILL.md +18 -6
- package/dist/skills/agnostic/backend/backend-domain-structure/references/layout.md +61 -3
- package/dist/skills/agnostic/cli/{dp-cli → hi-cli}/SKILL.md +3 -3
- package/dist/skills/agnostic/cli/{dp-cli → hi-cli}/references/commands.md +1 -1
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +2 -2
- package/dist/skills/frameworks/pulumi/package-usage/SKILL.md +49 -0
- package/dist/skills/frameworks/pulumi/package-usage/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/pulumi/package-usage/use_cases.yaml +15 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +332 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/references/diagnostic-toolbox.md +131 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/use_cases.yaml +28 -0
- package/dist/skills/frameworks/pulumi/pulumi-automation-api/SKILL.md +320 -0
- package/dist/skills/frameworks/pulumi/pulumi-automation-api/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/pulumi/pulumi-automation-api/use_cases.yaml +7 -0
- package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +501 -0
- package/dist/skills/frameworks/pulumi/pulumi-best-practices/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/pulumi/pulumi-best-practices/use_cases.yaml +7 -0
- package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +830 -0
- package/dist/skills/frameworks/pulumi/pulumi-component/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/pulumi/pulumi-component/use_cases.yaml +19 -0
- package/dist/skills/frameworks/pulumi/pulumi-esc/SKILL.md +281 -0
- package/dist/skills/frameworks/pulumi/pulumi-esc/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/pulumi/pulumi-esc/use_cases.yaml +30 -0
- package/dist/skills/frameworks/pulumi/pulumi-overview/SKILL.md +289 -0
- package/dist/skills/frameworks/pulumi/pulumi-overview/use_cases.yaml +50 -0
- package/dist/skills/misc/timesheet/SKILL.md +87 -0
- package/dist/skills/misc/timesheet/scripts/git-timesheet-evidence.mjs +214 -0
- package/dist/skills/phases/goalify/SKILL.md +18 -54
- package/package.json +1 -1
- /package/dist/skills/agnostic/cli/{dp-cli → hi-cli}/references/post-command-flow.md +0 -0
package/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Primary skills here: `autoreview`, `codebase-design`, `effect-authoring`, `effect-backend-structure`, `effect-best-practices`, `effect-recoverable-actions`, `improve-codebase-architecture`, `parallel-research`, `quality-types`, `simplify`, `swarm-planner`, `tdd`, `turborepo`.
|
|
4
4
|
|
|
5
|
-
This app owns the `
|
|
5
|
+
This app owns the `hi`/`hint` executable, repo detection flow, local scaffold application, bundled baseline fallback, update/diff ergonomics, and release/baseline publishing scripts. Preserve current CLI behavior during monorepo work.
|
|
6
6
|
|
|
7
7
|
Keep consumer-repo product logic out of the CLI. The future backend owns registry, provenance, auth, telemetry, and artifact access; the CLI remains the local scanner, cache, prompt/skill/hook placer, and filesystem writer.
|
|
8
8
|
|
|
@@ -12,4 +12,4 @@ For direct CLI UX, packaging, and release behavior guidance, inspect:
|
|
|
12
12
|
|
|
13
13
|
- `opensrc path cevr/sentry-cli` (`https://github.com/cevr/sentry-cli`)
|
|
14
14
|
|
|
15
|
-
If work here changes operator workflow, setup, or AI scaffolding behavior, update `docs/README.md` and `docs/runbooks/
|
|
15
|
+
If work here changes operator workflow, setup, or AI scaffolding behavior, update `docs/README.md` and `docs/runbooks/hi-cli-scaffolding.md` in the same task.
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ bun run baseline:build
|
|
|
42
42
|
|
|
43
43
|
`bun run sync:skills` updates a local cache clone of `wearedevpunks/skills` and then replaces only `skills/`, overwriting any local changes there.
|
|
44
44
|
|
|
45
|
-
`hi scaffold init` asks for the backlog provider, defaults to GitHub Projects/Issues, copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial Mermaid-enabled wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, writes `<wiki-root>/backlog-provider.md`, and then prints a fixed post-command prompt. Agents should activate `$
|
|
45
|
+
`hi scaffold init` asks for the backlog provider, defaults to GitHub Projects/Issues, copies `.agents/skills/requirements-grill` and `.agents/skills/write-backlog`, seeds an initial Mermaid-enabled wiki tree at `apps/wiki` for monorepos or `wiki` for single-repo layouts, writes `<wiki-root>/backlog-provider.md`, and then prints a fixed post-command prompt. Agents should activate `$hi-cli`, reconcile generated init output with the real repo layout, keep the pinned backlog provider unless the user changes it, and only start requirements/backlog generation when the user asks for that workflow.
|
|
46
46
|
|
|
47
47
|
`hi scaffold setup` scans the target repo from `cwd` or `-i`, resolves the active scaffold baseline, writes scaffold output into the scan root or `-o`, copies the selected baseline skills, resolves pack-owned lint assets into `.devpunks/specs/lint/`, and ensures required global tool prerequisites for those skills. Use `--yes` in non-interactive harnesses to accept the resolved default pack selection without prompts.
|
|
48
48
|
|
|
@@ -64,16 +64,16 @@ Language packs are detected separately from framework packs. TypeScript is selec
|
|
|
64
64
|
|
|
65
65
|
The generated subagent manifest is repo-shaped from selected packs and prompt specs. Python specialists are generated only when the Python language pack is selected.
|
|
66
66
|
|
|
67
|
-
To install the global `
|
|
67
|
+
To install the global `hi-cli` operator skill from the public skills repo:
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/
|
|
70
|
+
skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
If `skills` is not installed as a global command yet:
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
|
-
npx skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/
|
|
76
|
+
npx skills add https://github.com/wearedevpunks/skills/tree/main/skills/agnostic/cli/hi-cli --skill hi-cli --global --yes
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
The lint scaffold is intentionally agent-facing rather than repo-mutating:
|
|
@@ -91,7 +91,7 @@ Current scaffold-managed global tools:
|
|
|
91
91
|
- `portless`
|
|
92
92
|
- `skills`
|
|
93
93
|
|
|
94
|
-
On startup, `hi` checks interactive TTY commands for a newer CLI and asks before installing. `--help`, `--version`, CI, non-interactive commands, and `DP_NO_UPDATE_CHECK=1` skip the prompt. The `
|
|
94
|
+
On startup, `hi` checks interactive TTY commands for a newer CLI and asks before installing. `--help`, `--version`, CI, non-interactive commands, and `DP_NO_UPDATE_CHECK=1` skip the prompt. The `hi-cli` operator skill check stays detached and advisory, runs at most once per 12 hours by default, and never updates skills while another CLI command is starting. Set `DP_NO_SKILL_UPDATE_CHECK=1` to skip that check or `DP_STARTUP_CHECK_INTERVAL_MS=0` to force the worker during local testing.
|
|
95
95
|
|
|
96
96
|
## Publishing
|
|
97
97
|
|
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Baseline Changelog
|
|
2
2
|
|
|
3
|
+
## baseline/stable/2026.07.09-backend-domain-guardrails - 2026-07-09
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Sync shared skills from `wearedevpunks/skills@062f811`.
|
|
8
|
+
- Expand `backend-domain-structure` with generic backend layer classification, import direction, DI/container boundaries, public module/package boundaries, database persistence guards, pure domain model/event rules, and validation prompts.
|
|
9
|
+
- Align the active Harness skill mirror with the CLI-vendored baseline copy.
|
|
10
|
+
|
|
11
|
+
## baseline/stable/2026.07.09-goalify-activation-contract - 2026-07-09
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Sync shared skills from `wearedevpunks/skills@cc4556d`.
|
|
16
|
+
- Refactor `goalify` into a lean activation contract that generates and activates one goal immediately.
|
|
17
|
+
- Remove fallback and gotcha guidance from the scaffolded `goalify` skill so the workflow centers on objective, context, workflow, proof, and stop conditions.
|
|
18
|
+
|
|
19
|
+
## baseline/stable/2026.07.09-pulumi-skills-pack - 2026-07-09
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Sync Pulumi shared skills from `wearedevpunks/skills@9653bf9`.
|
|
24
|
+
- Add a first-class `pulumi` detected pack for `@pulumi/pulumi` and `@pulumi/*` package manifests.
|
|
25
|
+
- Include Pulumi overview, best practices, ComponentResource, Automation API, ESC, provider-upgrade, and package-usage skills in the scaffold baseline.
|
|
26
|
+
|
|
27
|
+
## baseline/stable/2026.07.09-linear-assets-managed-format - 2026-07-09
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- Let scaffold settings carry Linear as `assetProviderSlug` independently from a GitHub `repositoryManager`, while required tools still come from the repository manager.
|
|
32
|
+
- Skip scaffold-owned hooks, scripts, skills, and hook mirrors in the neutral format hook so managed scaffold assets remain hash-clean after update/check.
|
|
33
|
+
|
|
34
|
+
## baseline/stable/2026.07.08-hi-cli-skill-rename - 2026-07-08
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- Sync shared skills from `wearedevpunks/skills@45072f4`, renaming the operator skill source from `dp-cli` to `hi-cli`.
|
|
39
|
+
- Update bundled scaffold/operator guidance, runbooks, and wiki command docs to activate `$hi-cli`.
|
|
40
|
+
- Include the `hi skills rename` CLI migration command for installing/updating `hi-cli` and removing legacy `dp-cli` skill installs.
|
|
41
|
+
|
|
3
42
|
## baseline/stable/2026.07.08-hi-command-rebrand - 2026-07-08
|
|
4
43
|
|
|
5
44
|
### Changed
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.5.3 - 2026-07-09
|
|
4
|
+
|
|
5
|
+
Pending npm publish: `@punks/cli@2.5.3`.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fix generated Effect Oxlint config typing so scaffolded `oxlint.config.ts` files typecheck with narrowed custom rule tuples.
|
|
10
|
+
- Keep local lint config dependencies owned by the CLI package so isolated installs can resolve Oxlint and Ultracite config imports.
|
|
11
|
+
|
|
12
|
+
## baseline/stable/2026.07.09-backend-domain-guardrails - 2026-07-09
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Release the stable scaffold baseline for expanded backend domain structure guardrails.
|
|
17
|
+
- Sync shared skills from `wearedevpunks/skills@062f811`, adding layer classification, dependency direction, dependency-injection boundaries, public module/package API rules, and validation prompts to `backend-domain-structure`.
|
|
18
|
+
|
|
19
|
+
## baseline/stable/2026.07.09-goalify-activation-contract - 2026-07-09
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Release the stable scaffold baseline for the lean `goalify` activation contract.
|
|
24
|
+
- Sync shared skills from `wearedevpunks/skills@cc4556d`, keeping `goalify` focused on generating and activating one goal immediately.
|
|
25
|
+
- Remove fallback and gotcha guidance from the bundled `goalify` skill.
|
|
26
|
+
|
|
27
|
+
## 2.5.2 - 2026-07-08
|
|
28
|
+
|
|
29
|
+
Pending npm publish: `@punks/cli@2.5.2`.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- Add `hi skills rename` to install/update the `hi-cli` operator skill from the public skills repo and remove legacy global/project `dp-cli` installs once `hi-cli` is present.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Allow Linear to be selected as `assetProviderSlug` independently from a GitHub `repositoryManager`, so Linear backlog image assets can be uploaded and embedded while required repository tools still come from GitHub.
|
|
38
|
+
- Skip scaffold-owned hooks, scripts, skills, and hook mirrors in the neutral format hook so `hi update --check --json` and `hi check --json` stay clean after managed scaffold updates.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- Rename bundled operator skill guidance from `$dp-cli` to `$hi-cli` across the CLI command guide, scaffold prompts, install docs, runbooks, and wiki command docs.
|
|
43
|
+
|
|
44
|
+
## baseline/stable/2026.07.09-pulumi-skills-pack - 2026-07-09
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
48
|
+
- Release the stable scaffold baseline for the Pulumi detected pack, including the shared-skills sync from `wearedevpunks/skills@9653bf9`.
|
|
49
|
+
- Select the `pulumi` pack when `@pulumi/pulumi` or `@pulumi/*` packages are present, distributing Pulumi overview, best practices, ComponentResource, Automation API, ESC, provider-upgrade, and package-usage skills.
|
|
50
|
+
|
|
51
|
+
## baseline/stable/2026.07.09-linear-assets-managed-format - 2026-07-09
|
|
52
|
+
|
|
53
|
+
### Fixed
|
|
54
|
+
|
|
55
|
+
- Release the stable scaffold baseline for Linear asset-provider settings and managed format-hook drift prevention.
|
|
56
|
+
- Keep required tools sourced from the repository manager while allowing Linear backlog assets through `assetProviderSlug`.
|
|
57
|
+
- Skip scaffold-owned hooks, scripts, skills, and hook mirrors in the neutral format hook so managed scaffold assets stay hash-clean after update/check.
|
|
58
|
+
|
|
59
|
+
## baseline/stable/2026.07.08-hi-cli-skill-rename - 2026-07-08
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- Release the scaffold baseline for the `hi-cli` operator skill rename, including the shared-skills sync from `wearedevpunks/skills@45072f4`, updated install guidance, and bundled `hi-cli` skill path.
|
|
64
|
+
- Add the `hi skills rename` migration command to the stable CLI baseline so old `dp-cli` installs can be removed after `hi-cli` is installed.
|
|
65
|
+
|
|
3
66
|
## 2.5.1 - 2026-07-08
|
|
4
67
|
|
|
5
68
|
Pending npm publish: `@punks/cli@2.5.1`.
|
|
@@ -23,6 +23,8 @@ const formattableSuffixes = new Set([
|
|
|
23
23
|
...pythonFormattableSuffixes,
|
|
24
24
|
]);
|
|
25
25
|
const ignoredParts = new Set([".git", "node_modules", ".next", "dist"]);
|
|
26
|
+
const scaffoldOwnedAgentDirectories = new Set(["hooks", "scripts", "skills"]);
|
|
27
|
+
const scaffoldOwnedMirrorDirectories = new Set([".claude", ".codex", ".cursor"]);
|
|
26
28
|
const productRoots = new Set(["apps", "packages"]);
|
|
27
29
|
const packageManagers = new Set(["bun", "pnpm", "npm", "yarn"]);
|
|
28
30
|
const backendWorkspaceSegments = new Set(["api", "backend", "server", "services"]);
|
|
@@ -71,6 +73,10 @@ function normalizeRelativePath(root, filePath) {
|
|
|
71
73
|
return null;
|
|
72
74
|
}
|
|
73
75
|
|
|
76
|
+
if (isScaffoldOwnedPath(normalizedPath)) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
|
|
74
80
|
if (!existsSync(path.join(root, normalizedPath))) {
|
|
75
81
|
return null;
|
|
76
82
|
}
|
|
@@ -78,6 +84,19 @@ function normalizeRelativePath(root, filePath) {
|
|
|
78
84
|
return normalizedPath;
|
|
79
85
|
}
|
|
80
86
|
|
|
87
|
+
function isScaffoldOwnedPath(relativePath) {
|
|
88
|
+
const parts = relativePath.split("/");
|
|
89
|
+
if (parts[0] !== ".agents") {
|
|
90
|
+
return (
|
|
91
|
+
(scaffoldOwnedMirrorDirectories.has(parts[0]) && parts[1] === "hooks") ||
|
|
92
|
+
(parts[0] === ".claude" && parts[1] === "skills") ||
|
|
93
|
+
(parts[0] === ".opencode" && parts[1] === "plugins")
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return scaffoldOwnedAgentDirectories.has(parts[1]);
|
|
98
|
+
}
|
|
99
|
+
|
|
81
100
|
function isLintablePath(relativePath) {
|
|
82
101
|
const parts = relativePath.split("/");
|
|
83
102
|
return (
|
|
@@ -666,6 +685,7 @@ export const FormatAndLintPlugin = async ({ client, worktree }) => {
|
|
|
666
685
|
export const testHooks = {
|
|
667
686
|
formatCommandForPath,
|
|
668
687
|
lintCommandForPath,
|
|
688
|
+
normalizeRelativePath,
|
|
669
689
|
toolCommand,
|
|
670
690
|
};
|
|
671
691
|
|