@punks/cli 2.5.2 → 2.5.4
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 +48 -0
- package/dist/CHANGELOG.md +60 -0
- package/dist/index.js +100 -7
- 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/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/phases/bug-discovery-phase/SKILL.md +1 -0
- package/dist/skills/phases/bug-discovery-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/bug-resolution-phase/SKILL.md +1 -0
- package/dist/skills/phases/bug-resolution-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/delivery-phase/SKILL.md +1 -0
- package/dist/skills/phases/delivery-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/design-phase/SKILL.md +3 -2
- package/dist/skills/phases/design-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/design-phase/phases/delivery-handoff.md +5 -5
- package/dist/skills/phases/finder-phase/SKILL.md +1 -0
- package/dist/skills/phases/finder-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/goalify/SKILL.md +18 -54
- package/dist/skills/phases/requirements-phase/SKILL.md +1 -0
- package/dist/skills/phases/requirements-phase/agents/openai.yaml +2 -0
- package/dist/skills/phases/resolve-debt-phase/SKILL.md +7 -5
- package/dist/skills/phases/resolve-debt-phase/agents/openai.yaml +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Baseline Changelog
|
|
2
2
|
|
|
3
|
+
## baseline/stable/2026.07.10-manual-delivery-phase - 2026-07-10
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Require explicit user invocation for `delivery-phase` and the six external/manual lifecycle phases; keep only `review-phase`, `debugging-phase`, and `docs-ingest-phase` model-invocable as delivery's internal delegates.
|
|
8
|
+
- Sync shared skills from `wearedevpunks/skills@7fde033`, changing design and debt resolution to present a bounded delivery brief and stop for explicit user `$delivery-phase` invocation.
|
|
9
|
+
- Align the active `delivery-phase`, `design-phase`, and `resolve-debt-phase` mirrors with the CLI-vendored baseline copies.
|
|
10
|
+
|
|
11
|
+
## baseline/stable/2026.07.10-external-phase-invocation - 2026-07-10
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Correct explicit-only invocation to cover exactly the six external/manual lifecycle entrypoints: `bug-discovery-phase`, `bug-resolution-phase`, `design-phase`, `finder-phase`, `requirements-phase`, and `resolve-debt-phase`.
|
|
16
|
+
- Sync shared skills from `wearedevpunks/skills@a2648cc`, keeping `delivery-phase`, `review-phase`, `debugging-phase`, and `docs-ingest-phase` model-invocable for delivery, design, and debt workflow delegation.
|
|
17
|
+
- Align the four corrected active Harness phase mirrors with the CLI-vendored baseline copies.
|
|
18
|
+
|
|
19
|
+
## baseline/stable/2026.07.10-explicit-phase-invocation - 2026-07-10
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Sync shared lifecycle phase skills from `wearedevpunks/skills@5779f6e`.
|
|
24
|
+
- Require explicit user invocation for every lifecycle `*-phase` skill with Claude `disable-model-invocation: true` and Codex `policy.allow_implicit_invocation: false`.
|
|
25
|
+
- Align active Harness phase-skill mirrors with the CLI-vendored baseline copies.
|
|
26
|
+
|
|
27
|
+
## baseline/stable/2026.07.09-backend-domain-guardrails - 2026-07-09
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Sync shared skills from `wearedevpunks/skills@062f811`.
|
|
32
|
+
- 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.
|
|
33
|
+
- Align the active Harness skill mirror with the CLI-vendored baseline copy.
|
|
34
|
+
|
|
35
|
+
## baseline/stable/2026.07.09-goalify-activation-contract - 2026-07-09
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- Sync shared skills from `wearedevpunks/skills@cc4556d`.
|
|
40
|
+
- Refactor `goalify` into a lean activation contract that generates and activates one goal immediately.
|
|
41
|
+
- Remove fallback and gotcha guidance from the scaffolded `goalify` skill so the workflow centers on objective, context, workflow, proof, and stop conditions.
|
|
42
|
+
|
|
43
|
+
## baseline/stable/2026.07.09-pulumi-skills-pack - 2026-07-09
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- Sync Pulumi shared skills from `wearedevpunks/skills@9653bf9`.
|
|
48
|
+
- Add a first-class `pulumi` detected pack for `@pulumi/pulumi` and `@pulumi/*` package manifests.
|
|
49
|
+
- Include Pulumi overview, best practices, ComponentResource, Automation API, ESC, provider-upgrade, and package-usage skills in the scaffold baseline.
|
|
50
|
+
|
|
3
51
|
## baseline/stable/2026.07.09-linear-assets-managed-format - 2026-07-09
|
|
4
52
|
|
|
5
53
|
### Fixed
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.5.4 - 2026-07-10
|
|
4
|
+
|
|
5
|
+
Pending npm publish: `@punks/cli@2.5.4`.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Preserve an existing project-owned `apps/wiki/scripts/sync-content.mjs` during `hi update` and `hi check`, while still reporting and recreating the script when missing ([#69](https://github.com/wearedevpunks/harness-intelligence/issues/69)).
|
|
10
|
+
|
|
11
|
+
## baseline/stable/2026.07.10-manual-delivery-phase - 2026-07-10
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Make `delivery-phase` explicit-only alongside the six external/manual lifecycle phases, leaving only `review-phase`, `debugging-phase`, and `docs-ingest-phase` model-invocable as delivery's internal delegates.
|
|
16
|
+
- Sync shared skills from `wearedevpunks/skills@7fde033`; design and debt resolution now present a bounded delivery brief and stop for explicit user `$delivery-phase` invocation.
|
|
17
|
+
|
|
18
|
+
## baseline/stable/2026.07.10-external-phase-invocation - 2026-07-10
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Limit explicit-only invocation to the six external/manual lifecycle entrypoints: `bug-discovery-phase`, `bug-resolution-phase`, `design-phase`, `finder-phase`, `requirements-phase`, and `resolve-debt-phase`.
|
|
23
|
+
- Sync the correction from `wearedevpunks/skills@a2648cc`, restoring model invocation for `delivery-phase`, `review-phase`, `debugging-phase`, and `docs-ingest-phase` so routed workflows can delegate to them.
|
|
24
|
+
|
|
25
|
+
## baseline/stable/2026.07.10-explicit-phase-invocation - 2026-07-10
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- Release the stable scaffold baseline with lifecycle `*-phase` skills as explicit user entrypoints.
|
|
30
|
+
- Sync shared skills from `wearedevpunks/skills@5779f6e`, setting Claude `disable-model-invocation: true` and Codex `policy.allow_implicit_invocation: false` on all lifecycle phase skills.
|
|
31
|
+
|
|
32
|
+
## 2.5.3 - 2026-07-09
|
|
33
|
+
|
|
34
|
+
Pending npm publish: `@punks/cli@2.5.3`.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- Fix generated Effect Oxlint config typing so scaffolded `oxlint.config.ts` files typecheck with narrowed custom rule tuples.
|
|
39
|
+
- Keep local lint config dependencies owned by the CLI package so isolated installs can resolve Oxlint and Ultracite config imports.
|
|
40
|
+
|
|
41
|
+
## baseline/stable/2026.07.09-backend-domain-guardrails - 2026-07-09
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- Release the stable scaffold baseline for expanded backend domain structure guardrails.
|
|
46
|
+
- 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`.
|
|
47
|
+
|
|
48
|
+
## baseline/stable/2026.07.09-goalify-activation-contract - 2026-07-09
|
|
49
|
+
|
|
50
|
+
### Changed
|
|
51
|
+
|
|
52
|
+
- Release the stable scaffold baseline for the lean `goalify` activation contract.
|
|
53
|
+
- Sync shared skills from `wearedevpunks/skills@cc4556d`, keeping `goalify` focused on generating and activating one goal immediately.
|
|
54
|
+
- Remove fallback and gotcha guidance from the bundled `goalify` skill.
|
|
55
|
+
|
|
3
56
|
## 2.5.2 - 2026-07-08
|
|
4
57
|
|
|
5
58
|
Pending npm publish: `@punks/cli@2.5.2`.
|
|
@@ -17,6 +70,13 @@ Pending npm publish: `@punks/cli@2.5.2`.
|
|
|
17
70
|
|
|
18
71
|
- 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.
|
|
19
72
|
|
|
73
|
+
## baseline/stable/2026.07.09-pulumi-skills-pack - 2026-07-09
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
|
|
77
|
+
- Release the stable scaffold baseline for the Pulumi detected pack, including the shared-skills sync from `wearedevpunks/skills@9653bf9`.
|
|
78
|
+
- 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.
|
|
79
|
+
|
|
20
80
|
## baseline/stable/2026.07.09-linear-assets-managed-format - 2026-07-09
|
|
21
81
|
|
|
22
82
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -51355,7 +51355,7 @@ var embeddedAssets = [];
|
|
|
51355
51355
|
|
|
51356
51356
|
// package.json
|
|
51357
51357
|
var name = "@punks/cli";
|
|
51358
|
-
var version = "2.5.
|
|
51358
|
+
var version = "2.5.4";
|
|
51359
51359
|
// src/content/data.ts
|
|
51360
51360
|
var findFirst8 = (candidates) => candidates.find((candidate) => existsSync(candidate));
|
|
51361
51361
|
var executableSignature = () => {
|
|
@@ -51887,6 +51887,25 @@ var packCatalog = [
|
|
|
51887
51887
|
promptSurfaces: ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
|
|
51888
51888
|
promptDetails: ["shared planning baseline", "workspace plan/spec execution rules"]
|
|
51889
51889
|
},
|
|
51890
|
+
{
|
|
51891
|
+
id: "pulumi",
|
|
51892
|
+
category: "detected",
|
|
51893
|
+
triggerPackages: ["@pulumi/", "@pulumi/pulumi"],
|
|
51894
|
+
description: "Pulumi guidance pack.",
|
|
51895
|
+
skills: [
|
|
51896
|
+
"pulumi-overview",
|
|
51897
|
+
"pulumi-best-practices",
|
|
51898
|
+
"pulumi-component",
|
|
51899
|
+
"pulumi-automation-api",
|
|
51900
|
+
"pulumi-esc",
|
|
51901
|
+
"provider-upgrade",
|
|
51902
|
+
"package-usage"
|
|
51903
|
+
],
|
|
51904
|
+
lintAssets: [],
|
|
51905
|
+
hooks: [],
|
|
51906
|
+
promptSurfaces: ["shared-agents", "root-prompt-spec", "workspace-prompt-spec"],
|
|
51907
|
+
promptDetails: ["shared pulumi baseline", "workspace infrastructure-as-code guidance"]
|
|
51908
|
+
},
|
|
51890
51909
|
{
|
|
51891
51910
|
id: "quality",
|
|
51892
51911
|
category: "default",
|
|
@@ -52372,6 +52391,62 @@ var skillCatalog = [
|
|
|
52372
52391
|
framework: "expo",
|
|
52373
52392
|
requiresTools: []
|
|
52374
52393
|
},
|
|
52394
|
+
{
|
|
52395
|
+
id: "pulumi-overview",
|
|
52396
|
+
sourceDirectory: "skills/frameworks/pulumi/pulumi-overview",
|
|
52397
|
+
tier: "framework",
|
|
52398
|
+
language: "typescript",
|
|
52399
|
+
framework: "pulumi",
|
|
52400
|
+
requiresTools: []
|
|
52401
|
+
},
|
|
52402
|
+
{
|
|
52403
|
+
id: "pulumi-best-practices",
|
|
52404
|
+
sourceDirectory: "skills/frameworks/pulumi/pulumi-best-practices",
|
|
52405
|
+
tier: "framework",
|
|
52406
|
+
language: "typescript",
|
|
52407
|
+
framework: "pulumi",
|
|
52408
|
+
requiresTools: []
|
|
52409
|
+
},
|
|
52410
|
+
{
|
|
52411
|
+
id: "pulumi-component",
|
|
52412
|
+
sourceDirectory: "skills/frameworks/pulumi/pulumi-component",
|
|
52413
|
+
tier: "framework",
|
|
52414
|
+
language: "typescript",
|
|
52415
|
+
framework: "pulumi",
|
|
52416
|
+
requiresTools: []
|
|
52417
|
+
},
|
|
52418
|
+
{
|
|
52419
|
+
id: "pulumi-automation-api",
|
|
52420
|
+
sourceDirectory: "skills/frameworks/pulumi/pulumi-automation-api",
|
|
52421
|
+
tier: "framework",
|
|
52422
|
+
language: "typescript",
|
|
52423
|
+
framework: "pulumi",
|
|
52424
|
+
requiresTools: []
|
|
52425
|
+
},
|
|
52426
|
+
{
|
|
52427
|
+
id: "pulumi-esc",
|
|
52428
|
+
sourceDirectory: "skills/frameworks/pulumi/pulumi-esc",
|
|
52429
|
+
tier: "framework",
|
|
52430
|
+
language: "typescript",
|
|
52431
|
+
framework: "pulumi",
|
|
52432
|
+
requiresTools: []
|
|
52433
|
+
},
|
|
52434
|
+
{
|
|
52435
|
+
id: "provider-upgrade",
|
|
52436
|
+
sourceDirectory: "skills/frameworks/pulumi/provider-upgrade",
|
|
52437
|
+
tier: "framework",
|
|
52438
|
+
language: "typescript",
|
|
52439
|
+
framework: "pulumi",
|
|
52440
|
+
requiresTools: []
|
|
52441
|
+
},
|
|
52442
|
+
{
|
|
52443
|
+
id: "package-usage",
|
|
52444
|
+
sourceDirectory: "skills/frameworks/pulumi/package-usage",
|
|
52445
|
+
tier: "framework",
|
|
52446
|
+
language: "typescript",
|
|
52447
|
+
framework: "pulumi",
|
|
52448
|
+
requiresTools: []
|
|
52449
|
+
},
|
|
52375
52450
|
{
|
|
52376
52451
|
id: "design-taste-frontend",
|
|
52377
52452
|
sourceDirectory: "skills/agnostic/frontend/design-taste-frontend",
|
|
@@ -57588,11 +57663,22 @@ var encodeOxlintConfigTs = ({
|
|
|
57588
57663
|
...presets.map(oxlintPresetLocalName)
|
|
57589
57664
|
];
|
|
57590
57665
|
const localConfig = mergeLintAssetsIntoLocalOxlintConfig(existingConfig, assets);
|
|
57666
|
+
const { rules, ...localConfigWithoutRules } = localConfig;
|
|
57667
|
+
const localRulesSource = rules === undefined ? "" : `const localRules = ${encodePrettyTsObject(rules)} satisfies OxlintConfig["rules"];
|
|
57668
|
+
|
|
57669
|
+
`;
|
|
57670
|
+
const localConfigWithoutRulesSource = encodePrettyTsObject(localConfigWithoutRules);
|
|
57671
|
+
const localConfigSource = rules === undefined ? `${localConfigWithoutRulesSource};` : localConfigWithoutRulesSource === "{}" ? `{
|
|
57672
|
+
"rules": localRules
|
|
57673
|
+
};` : `${localConfigWithoutRulesSource.replace(/\n\}$/u, ",")}
|
|
57674
|
+
"rules": localRules
|
|
57675
|
+
};`;
|
|
57676
|
+
const oxlintImport = rules === undefined ? 'import { defineConfig } from "oxlint";' : 'import { defineConfig, type OxlintConfig } from "oxlint";';
|
|
57591
57677
|
return [
|
|
57592
|
-
|
|
57678
|
+
oxlintImport,
|
|
57593
57679
|
...imports,
|
|
57594
57680
|
"",
|
|
57595
|
-
`const localConfig = ${
|
|
57681
|
+
localRulesSource + `const localConfig = ${localConfigSource}`,
|
|
57596
57682
|
"",
|
|
57597
57683
|
"export default defineConfig({",
|
|
57598
57684
|
` extends: [${extendsEntries.join(", ")}],`,
|
|
@@ -58721,11 +58807,12 @@ When processing source material into routed domain knowledge:
|
|
|
58721
58807
|
"@types/node": "^25.6.0",
|
|
58722
58808
|
"@types/react": "^19.2.14",
|
|
58723
58809
|
"@types/react-dom": "^19.2.3",
|
|
58810
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
58724
58811
|
"oxfmt": "latest",
|
|
58725
58812
|
"oxlint": "latest",
|
|
58726
58813
|
"postcss": "^8.5.13",
|
|
58727
58814
|
"tailwindcss": "^4.2.4",
|
|
58728
|
-
"typescript": "
|
|
58815
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
58729
58816
|
"ultracite": "latest"
|
|
58730
58817
|
}
|
|
58731
58818
|
}
|
|
@@ -59555,9 +59642,10 @@ var makeTanstackStartWikiFiles = () => [
|
|
|
59555
59642
|
"@types/react": "^19.2.14",
|
|
59556
59643
|
"@types/react-dom": "^19.2.3",
|
|
59557
59644
|
"@vitejs/plugin-react": "^6.0.2",
|
|
59645
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
59558
59646
|
"nitro": "3.0.260522-beta",
|
|
59559
59647
|
"tailwindcss": "^4.2.4",
|
|
59560
|
-
"typescript": "
|
|
59648
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
59561
59649
|
"vite": "^8.0.14",
|
|
59562
59650
|
"vite-tsconfig-paths": "^5.1.4"
|
|
59563
59651
|
}
|
|
@@ -60166,9 +60254,10 @@ var tanstackStartDevDependencies = {
|
|
|
60166
60254
|
"@types/react": "^19.2.14",
|
|
60167
60255
|
"@types/react-dom": "^19.2.3",
|
|
60168
60256
|
"@vitejs/plugin-react": "^6.0.2",
|
|
60257
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
60169
60258
|
nitro: "3.0.260522-beta",
|
|
60170
60259
|
tailwindcss: "^4.2.4",
|
|
60171
|
-
typescript: "
|
|
60260
|
+
typescript: "npm:@typescript/typescript6@^6.0.2",
|
|
60172
60261
|
vite: "^8.0.14",
|
|
60173
60262
|
"vite-tsconfig-paths": "^5.1.4"
|
|
60174
60263
|
};
|
|
@@ -60869,6 +60958,7 @@ var buildChanges = ({
|
|
|
60869
60958
|
}).toSorted((left3, right3) => left3.path.localeCompare(right3.path));
|
|
60870
60959
|
};
|
|
60871
60960
|
var syncSubagentsScriptFile = ".agents/scripts/sync-subagents.mjs";
|
|
60961
|
+
var projectAuthoredWikiSyncFile = "apps/wiki/scripts/sync-content.mjs";
|
|
60872
60962
|
var isWikiManagedPath = (relativePath) => relativePath.startsWith("wiki/") || relativePath.startsWith("app/wiki/") || relativePath.startsWith("apps/wiki/");
|
|
60873
60963
|
var isTailoredSyncSubagentsScript = (rootDirectory) => {
|
|
60874
60964
|
const scriptPath = path13.join(rootDirectory, syncSubagentsScriptFile);
|
|
@@ -60882,6 +60972,9 @@ var isProjectAuthoredManagedFile = ({
|
|
|
60882
60972
|
file: file6,
|
|
60883
60973
|
rootDirectory
|
|
60884
60974
|
}) => {
|
|
60975
|
+
if (file6.path === projectAuthoredWikiSyncFile) {
|
|
60976
|
+
return existsSync11(path13.join(rootDirectory, file6.path));
|
|
60977
|
+
}
|
|
60885
60978
|
if (file6.path === ".agents/scripts/sync-subagents.mjs") {
|
|
60886
60979
|
return isTailoredSyncSubagentsScript(rootDirectory);
|
|
60887
60980
|
}
|
|
@@ -60981,7 +61074,7 @@ var buildWikiAlignment = ({
|
|
|
60981
61074
|
path: relativePath,
|
|
60982
61075
|
sha256: hashPath(expectedDirectory, relativePath) ?? "",
|
|
60983
61076
|
kind: "harness"
|
|
60984
|
-
}));
|
|
61077
|
+
})).filter((file6) => !isProjectAuthoredManagedFile({ file: file6, rootDirectory }));
|
|
60985
61078
|
return {
|
|
60986
61079
|
expectedDirectory,
|
|
60987
61080
|
expectedFiles,
|
|
@@ -17,18 +17,29 @@ Read `references/layout.md` before structure decisions or large refactors.
|
|
|
17
17
|
|
|
18
18
|
Place code by responsibility first.
|
|
19
19
|
|
|
20
|
-
- Put root runtime composition, request context, transport runners,
|
|
20
|
+
- Put root runtime composition, request context, transport runners, router/app assembly, and dependency wiring in `platform/`.
|
|
21
|
+
- Put feature/product use cases, policy, ports/contracts, feature transport adapters, and public entrypoints in `features/<domain>/`.
|
|
22
|
+
- Put platform/framework concerns in `platform/` unless they are feature-owned adapters.
|
|
21
23
|
- Put external system adapters and provider mechanics in `integrations/`.
|
|
22
|
-
- Put
|
|
24
|
+
- Put database persistence behind repositories or persistence adapters.
|
|
25
|
+
- Put pure domain models, events, identifiers, and invariants in feature `models/` or shared domain libraries.
|
|
23
26
|
- Put code reused across backend package boundaries in shared libraries or packages.
|
|
24
27
|
|
|
25
28
|
## Boundary Rules
|
|
26
29
|
|
|
27
30
|
- Keep transport thin. Parse input, call feature behavior, map errors at the boundary.
|
|
28
|
-
-
|
|
29
|
-
- Let features depend on integrations and shared libraries.
|
|
30
|
-
-
|
|
31
|
+
- Let transport and app composition compose feature entrypoints.
|
|
32
|
+
- Let features depend on platform contracts, integrations, and shared domain libraries.
|
|
33
|
+
- Let infrastructure implement ports/contracts; do not let it own product policy.
|
|
34
|
+
- Keep database code behind repositories or persistence adapters.
|
|
35
|
+
- Do not let lower layers import route/app composition.
|
|
36
|
+
- Do not let integrations import feature internals.
|
|
31
37
|
- Do not move app-specific business logic into shared libraries.
|
|
38
|
+
- Keep composition roots responsible for container wiring.
|
|
39
|
+
- Pass protocols, interfaces, or adapters into business logic; do not leak containers into domain code.
|
|
40
|
+
- Do not use lazy imports to hide dependency cycles.
|
|
41
|
+
- Expose deliberate services, contracts, protocols/interfaces, adapters, and named types from feature modules or package roots.
|
|
42
|
+
- Keep internals private; remove compatibility aliases after clean refactors.
|
|
32
43
|
- Avoid root-level generic buckets like `services`, `utils`, `helpers`, or `lib` when code can belong to a domain.
|
|
33
44
|
|
|
34
45
|
## Actions, Services, Repositories
|
|
@@ -46,5 +57,6 @@ Default to explicit use-case actions.
|
|
|
46
57
|
- Identify the backend root from the current repo instead of assuming a package path.
|
|
47
58
|
- Classify each file by responsibility first.
|
|
48
59
|
- Group business behavior under feature domains.
|
|
49
|
-
- Keep dependencies flowing:
|
|
60
|
+
- Keep dependencies flowing: transport/composition -> features -> integrations/infrastructure -> external systems.
|
|
50
61
|
- Keep tests near the feature or module that owns the behavior.
|
|
62
|
+
- Validate module import direction, import cycles, stale symbols after moves, architecture tests when available, and focused compile/type checks.
|
|
@@ -15,6 +15,17 @@ Prefer this shape inside the backend root:
|
|
|
15
15
|
|
|
16
16
|
The backend root may be an app folder, package folder, service folder, or workspace package. Derive it from the current repo.
|
|
17
17
|
|
|
18
|
+
## Layer Classifier
|
|
19
|
+
|
|
20
|
+
Classify by responsibility before naming files or moving code.
|
|
21
|
+
|
|
22
|
+
- Transport/app composition: app creation, route registration, server start, middleware assembly, request context, top-level dependency wiring, and composition modules.
|
|
23
|
+
- Feature/product domains: use cases, policy, ports/contracts, protocols/interfaces, repositories, feature transport adapters, and public entrypoints for one product domain.
|
|
24
|
+
- Platform/framework concerns: framework modules, runtime context, request lifecycle, common middleware, config loading, and process adapters.
|
|
25
|
+
- Infrastructure/integrations: external SDKs, provider adapters, queues, email, storage, billing, search, analytics, and third-party API mechanics.
|
|
26
|
+
- Database persistence: queries, persistence model mapping, migrations, transaction helpers, and database client adapters.
|
|
27
|
+
- Pure domain models/events: identifiers, value objects, invariants, domain events, and data shapes without framework, transport, container, or persistence imports.
|
|
28
|
+
|
|
18
29
|
## Layer Meanings
|
|
19
30
|
|
|
20
31
|
### `platform/`
|
|
@@ -29,6 +40,7 @@ Good fits:
|
|
|
29
40
|
- router assembly
|
|
30
41
|
- dependency graph assembly
|
|
31
42
|
- process/runtime adapters
|
|
43
|
+
- framework modules and middleware shared by multiple features
|
|
32
44
|
|
|
33
45
|
Bad fits:
|
|
34
46
|
|
|
@@ -36,6 +48,7 @@ Bad fits:
|
|
|
36
48
|
- feature orchestration
|
|
37
49
|
- direct provider details that belong to an integration
|
|
38
50
|
- persistence queries that belong to repositories
|
|
51
|
+
- pure domain models or events
|
|
39
52
|
|
|
40
53
|
### `integrations/`
|
|
41
54
|
|
|
@@ -51,6 +64,8 @@ Good fits:
|
|
|
51
64
|
|
|
52
65
|
Do not put product policy in `integrations/`. An integration says how to talk to a system; a feature decides why and when.
|
|
53
66
|
|
|
67
|
+
Infrastructure implements feature ports/contracts or shared platform contracts. It should not import feature internals unless the project has an explicit adapter registration convention.
|
|
68
|
+
|
|
54
69
|
### `features/<domain>/`
|
|
55
70
|
|
|
56
71
|
Use features for business behavior.
|
|
@@ -68,6 +83,8 @@ Common local folders:
|
|
|
68
83
|
|
|
69
84
|
Feature domains own use cases, policy, persistence contracts, and public behavior.
|
|
70
85
|
|
|
86
|
+
Keep pure domain models, events, identifiers, and invariants free of transport, framework, container, and database imports.
|
|
87
|
+
|
|
71
88
|
## Actions vs Services
|
|
72
89
|
|
|
73
90
|
Default to actions.
|
|
@@ -94,6 +111,8 @@ Use `repositories/` for:
|
|
|
94
111
|
- query composition
|
|
95
112
|
- persistence model mapping
|
|
96
113
|
|
|
114
|
+
Database code stays behind repositories or persistence adapters. Actions and services should depend on repository contracts, not raw database clients or query builders, unless the existing stack has a narrow equivalent boundary.
|
|
115
|
+
|
|
97
116
|
Quick rule:
|
|
98
117
|
|
|
99
118
|
- "what this flow means" -> `actions/`
|
|
@@ -118,19 +137,46 @@ Business logic, external side effects, and DB queries should not live directly i
|
|
|
118
137
|
|
|
119
138
|
Prefer this direction:
|
|
120
139
|
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
140
|
+
- transport/app composition -> features
|
|
141
|
+
- platform composition -> features
|
|
142
|
+
- features -> platform contracts
|
|
143
|
+
- features -> integrations or infrastructure through ports/contracts
|
|
144
|
+
- features -> shared domain libraries
|
|
145
|
+
- integrations/infrastructure -> external systems
|
|
146
|
+
- integrations/infrastructure -> shared libraries
|
|
124
147
|
|
|
125
148
|
Avoid:
|
|
126
149
|
|
|
127
150
|
- `integrations -> features`
|
|
151
|
+
- lower layers importing route files, app creation, server start, or root composition
|
|
128
152
|
- shared libraries importing app-local code
|
|
129
153
|
- transport files importing many low-level helpers instead of one feature entrypoint
|
|
130
154
|
- feature domains reaching into another feature's internals
|
|
155
|
+
- database code leaking above repositories or persistence adapters
|
|
156
|
+
- lazy imports used to hide dependency cycles
|
|
131
157
|
|
|
132
158
|
Features may depend on other features only when the domain relationship is explicit, stable, and exposed through a public feature entrypoint.
|
|
133
159
|
|
|
160
|
+
## Dependency Injection
|
|
161
|
+
|
|
162
|
+
Composition roots own container wiring.
|
|
163
|
+
|
|
164
|
+
- Build containers, layers, modules, or dependency graphs in root composition or feature composition files.
|
|
165
|
+
- Pass protocols, interfaces, contracts, or concrete adapters into business logic.
|
|
166
|
+
- Keep domain models, events, actions, policies, and repository contracts free of container lookups.
|
|
167
|
+
- Treat lazy imports as a smell when they avoid a cycle instead of fixing import direction.
|
|
168
|
+
- Keep test wiring in test support or feature composition helpers, not inside production domain logic.
|
|
169
|
+
|
|
170
|
+
## Public Boundaries
|
|
171
|
+
|
|
172
|
+
Feature modules or package roots should expose deliberate public API.
|
|
173
|
+
|
|
174
|
+
- Export services, actions, ports/contracts, protocols/interfaces, adapters, events, errors, and named types meant for other layers.
|
|
175
|
+
- Keep internal helpers, provider details, persistence models, and transport plumbing private.
|
|
176
|
+
- Prefer stable named types at cross-layer boundaries over inline anonymous shapes.
|
|
177
|
+
- Remove compatibility aliases after clean refactors; do not leave stale names as a second API.
|
|
178
|
+
- Cross-feature calls should use public feature entrypoints, not internal files.
|
|
179
|
+
|
|
134
180
|
## Testing Layout
|
|
135
181
|
|
|
136
182
|
Keep tests near the owning feature or module.
|
|
@@ -165,3 +211,15 @@ Avoid a distant package-root `tests/` folder unless the project already has a st
|
|
|
165
211
|
- Are services reusable mechanics rather than use-case buckets?
|
|
166
212
|
- Are tests colocated with the owning domain?
|
|
167
213
|
- Are imports flowing one way without layer inversions?
|
|
214
|
+
- Does the composition root own container wiring?
|
|
215
|
+
- Are domain models/events free of framework, transport, container, and persistence imports?
|
|
216
|
+
- Do public feature modules or package roots expose only deliberate services/contracts and stable named types?
|
|
217
|
+
- Were compatibility aliases and stale symbols removed after moves?
|
|
218
|
+
|
|
219
|
+
## Validation Prompts
|
|
220
|
+
|
|
221
|
+
- Run architecture/import-boundary tests if the repo has them.
|
|
222
|
+
- Run focused compile, type, or test checks for the touched backend root.
|
|
223
|
+
- Grep for stale symbols, old paths, and compatibility aliases after moves.
|
|
224
|
+
- Inspect module import direction from route/app composition down through features and infrastructure.
|
|
225
|
+
- Check import cycles; do not silence them with local or lazy imports.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: package-usage
|
|
3
|
+
description: Track which stacks across a Pulumi organization use a specific package and at what versions. Use for cross-stack audits, identifying outdated or unmaintained package versions across many stacks, finding affected stacks before publishing breaking changes to a component package, or planning coordinated upgrade rollouts. Do NOT use for upgrading a cloud provider package (pulumi-aws, pulumi-azure-native, pulumi-gcp, pulumi-kubernetes, etc.) in a single project — use skill `provider-upgrade` instead. Do NOT use for general infrastructure creation, resource provisioning, or how-to questions about a package.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## API Reference
|
|
7
|
+
|
|
8
|
+
### Get the latest version of a package
|
|
9
|
+
|
|
10
|
+
`GET /api/registry/packages?name={package_name}&orgLogin={orgName}`
|
|
11
|
+
|
|
12
|
+
You must include the `orgLogin` parameter with the user's organization name. The response contains a `packages` array. Each entry has a `version` field (the latest version), plus `name`, `publisher`, `source`, and `packageStatus`.
|
|
13
|
+
|
|
14
|
+
### Get stack usage for a package
|
|
15
|
+
|
|
16
|
+
`GET /api/orgs/{orgName}/packages/usage?packageName={package_name}`
|
|
17
|
+
|
|
18
|
+
Replace `{orgName}` with the org name from context, `PULUMI_ORG`, or ask the user.
|
|
19
|
+
|
|
20
|
+
Response fields:
|
|
21
|
+
- `packageName`: The queried package
|
|
22
|
+
- `stacks`: Array of `{stackName, projectName, version, lastUpdate}`
|
|
23
|
+
- `totalStacks`: Total count
|
|
24
|
+
|
|
25
|
+
## Workflow: Find outdated stacks
|
|
26
|
+
|
|
27
|
+
Use when the user wants to know which stacks are using an outdated version of a package.
|
|
28
|
+
|
|
29
|
+
1. Get the latest version of the package
|
|
30
|
+
2. Get stack usage for the package
|
|
31
|
+
3. Compare each stack's `version` against the latest to identify outdated stacks
|
|
32
|
+
4. Present results using the output format below
|
|
33
|
+
|
|
34
|
+
## Output Format
|
|
35
|
+
|
|
36
|
+
Present results as a markdown table followed by a summary line:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
| Project | Stack | Current Version | Latest Version | Status |
|
|
40
|
+
|---------|-------|-----------------|----------------|--------|
|
|
41
|
+
| my-app | dev | 6.40.0 | 6.52.0 | Outdated |
|
|
42
|
+
| my-app | prod | 6.52.0 | 6.52.0 | Up-to-date |
|
|
43
|
+
|
|
44
|
+
2 of 2 stacks checked. 1 outdated.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Out of scope: upgrading a specific stack
|
|
48
|
+
|
|
49
|
+
This skill identifies outdated stacks. It does not perform the upgrade itself. For actually bumping a package version in a project — editing `package.json`, `requirements.txt`, `pyproject.toml`, `go.mod`, or `Pulumi.yaml`, running `pulumi preview`, and reconciling the diff — hand off to the `provider-upgrade` skill.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Queries that should activate the package-usage skill
|
|
2
|
+
queries:
|
|
3
|
+
# Package usage tracking
|
|
4
|
+
- "Which stacks are using our networking package?"
|
|
5
|
+
- "What version of the database component is deployed across our stacks?"
|
|
6
|
+
- "Find all stacks using an outdated version of our shared infrastructure package"
|
|
7
|
+
- "How many stacks are using the @pulumi/aws-apigateway package?"
|
|
8
|
+
- "List stacks that need to upgrade their component versions"
|
|
9
|
+
- "Which teams are still using v1.x of our VPC component?"
|
|
10
|
+
- "Show me the package usage for our internal EKS component"
|
|
11
|
+
- "I want to deprecate a component package, which stacks would be affected?"
|
|
12
|
+
- "Are there any stacks using version 2.3.0 of our monitoring package?"
|
|
13
|
+
- "Query the usage of pulumi-aws-vpc across the organization"
|
|
14
|
+
- "Before I make breaking changes, tell me which stacks import this package"
|
|
15
|
+
- "Audit our component package adoption across all projects"
|