@punks/cli 4.0.0 → 4.0.2

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 (42) hide show
  1. package/AGENTS.md +1 -1
  2. package/dist/BASELINE_CHANGELOG.md +11 -0
  3. package/dist/CHANGELOG.md +13 -0
  4. package/dist/baseline/scaffold-baseline/baseline.json +5 -5
  5. package/dist/baseline/scaffold-baseline/data/catalog/packs.json +8 -5
  6. package/dist/baseline/scaffold-baseline/data/catalog/skills.json +16 -0
  7. package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +1 -0
  8. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
  9. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
  10. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
  11. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
  12. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
  13. package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
  14. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  15. package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  16. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  17. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  18. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  19. package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  20. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  21. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +18 -50
  22. package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +34 -74
  23. package/dist/baseline/scaffold-baseline.json +5 -5
  24. package/dist/baseline/scaffold-baseline.tgz +0 -0
  25. package/dist/data/subagents/manifest.mjs +1 -0
  26. package/dist/index.js +2 -2
  27. package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
  28. package/dist/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
  29. package/dist/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
  30. package/dist/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
  31. package/dist/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
  32. package/dist/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
  33. package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
  34. package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
  35. package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
  36. package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
  37. package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
  38. package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
  39. package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
  40. package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
  41. package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
  42. package/package.json +1 -1
@@ -45,7 +45,7 @@ consequence to accept.
45
45
  flowchart TD
46
46
  A[Bump version] --> B[Run preview with env vars]
47
47
  B --> C{Clean?}
48
- C -->|Yes| D[Create PR]
48
+ C -->|Yes| D[Report upgrade ready]
49
49
  C -->|No| E[Diff Checkpoint: categorize every diff]
50
50
  E --> F{Any Category A?}
51
51
  F -->|Yes| G[Fix wrong translations]
@@ -63,7 +63,8 @@ flowchart TD
63
63
  4. **Fix Category A** - code changes that didn't produce `same`
64
64
  5. **Investigate Category B** - diffs on resources you didn't change
65
65
  6. **Repeat** until clean or remaining diffs are fully investigated
66
- 7. **Create PR** with upgrade summary
66
+ 7. **Report** the upgrade summary and preview evidence; use `$architect-pipeline` for
67
+ CI/CD or release orchestration
67
68
 
68
69
  ---
69
70
 
@@ -237,8 +238,8 @@ Every line changed could introduce a regression. Prefer the smallest change that
237
238
 
238
239
  ### Do not run pulumi up
239
240
 
240
- Provider upgrades modify source code and need code review before deployment.
241
- PR -> review -> merge -> deploy via CI/CD.
241
+ Provider upgrades modify source code. Preview validates the Pulumi translation; CI/CD and
242
+ release orchestration belong to `$architect-pipeline`.
242
243
 
243
244
  ---
244
245
 
@@ -271,7 +272,8 @@ Run `pulumi preview --refresh --run-program` immediately after updating the depe
271
272
  Do not research breaking changes first - many upgrades just work, especially minor
272
273
  versions.
273
274
 
274
- If the preview is clean (only the provider version bump), create a PR.
275
+ If the preview is clean (only the provider version bump), report the exact bump and
276
+ preview evidence. Use `$architect-pipeline` for any CI/CD or release workflow.
275
277
 
276
278
  ---
277
279
 
@@ -322,8 +324,9 @@ upstream GitHub issue). "I believe this is expected" is not a source.
322
324
  ```
323
325
 
324
326
  If the preview is clean (or all remaining diffs are documented no-ops with cited sources),
325
- create a pull request. If unresolved diffs remain, present the summary as an exception
326
- report and ask the user how they'd like to proceed before creating a PR.
327
+ report the upgrade as ready for review. If unresolved diffs remain, present the summary as
328
+ an exception report and ask the user how they would like to proceed. Use `$architect-pipeline`
329
+ for the surrounding CI/CD or release workflow.
327
330
 
328
331
  ---
329
332
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: pulumi-best-practices
3
3
  version: 1.0.0
4
- description: Load when the user is writing, reviewing, or debugging Pulumi TypeScript/Python programs; asks about Output<T> or apply() usage; wants to create ComponentResource classes; needs to refactor resources without destroying them (aliases); is setting up secrets or config; or is configuring a pulumi preview/up CI workflow. Also load for questions about resource dependency order, parent/child resource relationships, or pulumi.interpolate.
4
+ description: Load when the user is writing, reviewing, or debugging Pulumi TypeScript/Python programs; asks about Output<T> or apply() usage; wants to create ComponentResource classes; needs to refactor resources without destroying them (aliases); is setting up secrets or config; or needs Pulumi-specific preview/up semantics. Also load for questions about resource dependency order, parent/child resource relationships, or pulumi.interpolate.
5
5
  ---
6
6
 
7
7
  # Pulumi Best Practices
@@ -407,15 +407,15 @@ aliases: ["urn:pulumi:stack::project::aws:s3/bucket:Bucket::old-name"];
407
407
 
408
408
  ---
409
409
 
410
- ### 7. Preview Before Every Deployment
410
+ ### 7. Preview Before Every `pulumi up`
411
411
 
412
412
  **Why**: `pulumi preview` shows exactly what will be created, updated, or destroyed. Surprises in production come from skipping preview. A resource showing "replace" when you expected "update" means imminent destruction and recreation.
413
413
 
414
414
  **Detection signals**:
415
415
 
416
416
  - Running `pulumi up --yes` interactively without reviewing changes
417
- - No preview step anywhere in the CI/CD workflow for a given change
418
- - Preview output not reviewed before merge or deployment approval
417
+ - Running `pulumi up` without first inspecting a preview for the same stack and configuration
418
+ - Preview output not retained as evidence for the corresponding `pulumi up`
419
419
 
420
420
  **Wrong**:
421
421
 
@@ -448,60 +448,28 @@ pulumi up
448
448
  - Resources being deleted that shouldn't be
449
449
  - More changes than expected from your code diff
450
450
 
451
- **CI/CD integration**:
452
-
453
- ```yaml
454
- # GitHub Actions example
455
- jobs:
456
- preview:
457
- runs-on: ubuntu-latest
458
- steps:
459
- - uses: actions/checkout@v4
460
- - name: Pulumi Preview
461
- uses: pulumi/actions@v5
462
- with:
463
- command: preview
464
- stack-name: production
465
- env:
466
- PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
467
-
468
- deploy:
469
- needs: preview
470
- runs-on: ubuntu-latest
471
- if: github.ref == 'refs/heads/main'
472
- steps:
473
- - name: Pulumi Up
474
- uses: pulumi/actions@v5
475
- with:
476
- command: up
477
- stack-name: production
478
- ```
479
-
480
- **PR workflow**:
481
-
482
- - Run preview on every PR
483
- - Post preview output as PR comment
484
- - Require preview review before merge
485
- - Deploy only on merge to main
451
+ Pipeline triggers, approvals, preview promotion, credentials, and provider-specific
452
+ workflow configuration belong to `$architect-pipeline`. This section owns the Pulumi
453
+ operation boundary: preview the exact stack and configuration, inspect its resource
454
+ operations, then run `pulumi up` only after that result is accepted.
486
455
 
487
456
  **References**:
488
457
 
489
458
  - https://www.pulumi.com/docs/cli/commands/pulumi_preview/
490
- - https://www.pulumi.com/docs/iac/packages-and-automation/continuous-delivery/github-actions/
491
459
 
492
460
  ---
493
461
 
494
462
  ## Quick Reference
495
463
 
496
- | Practice | Key Signal | Fix |
497
- | ------------------------ | ---------------------------------- | ---------------------------------------------- |
498
- | No resources in apply | `new Resource()` inside `.apply()` | Move resource outside, pass Output directly |
499
- | Pass outputs directly | Extracted values used as inputs | Use Output objects, `pulumi.interpolate` |
500
- | Use components | Flat structure, repeated patterns | Create ComponentResource classes |
501
- | Set parent: this | Component children at root level | Pass `{ parent: this }` to all child resources |
502
- | Secrets from day one | Plaintext passwords/keys in config | Use `--secret` flag, ESC |
503
- | Aliases when refactoring | Delete+create in preview | Add alias with old name/parent |
504
- | Preview before deploy | `pulumi up --yes` | Always run `pulumi preview` first |
464
+ | Practice | Key Signal | Fix |
465
+ | -------------------------- | ---------------------------------- | ---------------------------------------------------------------------- |
466
+ | No resources in apply | `new Resource()` inside `.apply()` | Move resource outside, pass Output directly |
467
+ | Pass outputs directly | Extracted values used as inputs | Use Output objects, `pulumi.interpolate` |
468
+ | Use components | Flat structure, repeated patterns | Create ComponentResource classes |
469
+ | Set parent: this | Component children at root level | Pass `{ parent: this }` to all child resources |
470
+ | Secrets from day one | Plaintext passwords/keys in config | Use `--secret` flag, ESC |
471
+ | Aliases when refactoring | Delete+create in preview | Add alias with old name/parent |
472
+ | Preview before `pulumi up` | `pulumi up --yes` | Always run `pulumi preview` first for the same stack and configuration |
505
473
 
506
474
  ## Validation Checklist
507
475
 
@@ -513,7 +481,7 @@ When reviewing Pulumi code, verify:
513
481
  - [ ] Child resources have `{ parent: this }`
514
482
  - [ ] Sensitive values use `config.requireSecret()` or `--secret`
515
483
  - [ ] Refactored resources have aliases preserving identity
516
- - [ ] Deployment process includes preview step
484
+ - [ ] Every `pulumi up` has a reviewed preview for the same stack and configuration
517
485
 
518
486
  ## Related Skills
519
487
 
@@ -8,7 +8,9 @@ description: Guide for authoring Pulumi ComponentResource classes. Use when crea
8
8
 
9
9
  A ComponentResource groups related infrastructure resources into a reusable, logical unit. Components make infrastructure easier to understand, reuse, and maintain. Components appear as a single node with children nested underneath in `pulumi preview`/`pulumi up` output and in the Pulumi Cloud console.
10
10
 
11
- This skill covers the full component authoring lifecycle. For general Pulumi coding patterns (Output handling, secrets, aliases, preview workflows), use the `pulumi-best-practices` skill instead.
11
+ This skill covers the full component authoring lifecycle. For general Pulumi coding patterns
12
+ (Output handling, secrets, aliases, and preview semantics), use `pulumi-best-practices`.
13
+ For the containing CI/CD or release workflow, use `$architect-pipeline`.
12
14
 
13
15
  ## When to Use This Skill
14
16
 
@@ -749,13 +751,12 @@ For a complete working example across all languages, see https://github.com/mikh
749
751
 
750
752
  Choose a distribution method based on your audience:
751
753
 
752
- | Audience | Method | How |
753
- | ------------------ | ---------------- | --------------------------------------------- |
754
- | Same project | Direct import | Standard language import |
755
- | Same organization | Private registry | `pulumi package publish` to Pulumi Cloud |
756
- | Same organization | Git repository | `pulumi package add <repo>` with version tags |
757
- | Language ecosystem | Package manager | Publish to npm, PyPI, NuGet, or Maven |
758
- | Public community | Pulumi Registry | Submit via pulumi/registry GitHub repo |
754
+ | Audience | Method | How |
755
+ | ----------------- | ---------------- | --------------------------------------------- |
756
+ | Same project | Direct import | Standard language import |
757
+ | Same organization | Private registry | `pulumi package publish` to Pulumi Cloud |
758
+ | Same organization | Git repository | `pulumi package add <repo>` with version tags |
759
+ | Public community | Pulumi Registry | Submit via pulumi/registry GitHub repo |
759
760
 
760
761
  ### Pulumi Private Registry
761
762
 
@@ -767,60 +768,28 @@ Publish a component to the private registry:
767
768
  pulumi package publish https://github.com/myorg/my-component --publisher myorg
768
769
  ```
769
770
 
770
- Version components using git tags with a `v` prefix:
771
-
772
- ```bash
773
- git tag v1.0.0
774
- git push origin v1.0.0
775
- ```
776
-
777
771
  A README file is required when publishing. Pulumi uses it as the component's documentation page in the registry.
778
772
 
779
- Automate publishing from GitHub Actions using OIDC authentication:
780
-
781
- ```yaml
782
- name: Publish Component
783
- on:
784
- push:
785
- tags:
786
- - "v*"
787
-
788
- permissions:
789
- id-token: write
790
- contents: read
791
-
792
- jobs:
793
- publish:
794
- runs-on: ubuntu-latest
795
- env:
796
- PULUMI_ORG: myorg
797
- steps:
798
- - uses: actions/checkout@v4
799
- with:
800
- fetch-depth: 0
801
- - uses: pulumi/auth-actions@v1
802
- with:
803
- organization: ${{ env.PULUMI_ORG }}
804
- requested-token-type: urn:pulumi:token-type:access_token:organization
805
- - run: pulumi package publish https://github.com/${{ github.repository }} --publisher ${{ env.PULUMI_ORG }}
806
- ```
807
-
808
- **Prerequisites**: Configure GitHub OIDC integration with Pulumi Cloud before using this workflow.
809
-
810
- The registry supports private GitHub and GitLab repositories. For non-OIDC setups, authenticate with `GITHUB_TOKEN` or `GITLAB_TOKEN` environment variables.
773
+ The registry supports private GitHub and GitLab repositories. Pulumi Cloud authentication is
774
+ Pulumi-specific: use CLI login or supported automation; `pulumi/auth-actions@v1` can exchange
775
+ workflow OIDC for an organization token; and `GITHUB_TOKEN` or `GITLAB_TOKEN` can authenticate
776
+ private source repositories where supported. Pulumi Cloud OIDC organization configuration,
777
+ registry behavior, and package command syntax remain here. Generic trust-boundary, trigger,
778
+ job, and publishing workflow design belong to `$architect-pipeline`.
811
779
 
812
780
  The private registry automatically generates SDK documentation for each published component. Enrich the generated docs by adding type annotations to your component's inputs and outputs (JSDoc in TypeScript, docstrings in Python, `Annotate()` methods in Go).
813
781
 
814
- **Reference**: https://www.pulumi.com/docs/idp/get-started/private-registry/
782
+ **References**:
815
783
 
816
- ### Git Repository Distribution
784
+ - https://www.pulumi.com/docs/idp/get-started/private-registry/
785
+ - https://www.pulumi.com/docs/pulumi-cloud/access-management/oidc/
786
+ - https://github.com/pulumi/auth-actions
817
787
 
818
- Tag releases for consumers to pin versions:
788
+ ### Git Repository Distribution
819
789
 
820
- ```bash
821
- git tag v1.0.0
822
- git push origin v1.0.0
823
- ```
790
+ Consumers install a repository-backed component with `pulumi package add`. The repository
791
+ URL may include a version tag or other supported version ref; use an immutable version for
792
+ repeatable consumer resolution.
824
793
 
825
794
  Consumers install with:
826
795
 
@@ -828,15 +797,6 @@ Consumers install with:
828
797
  pulumi package add https://github.com/myorg/my-component@v1.0.0
829
798
  ```
830
799
 
831
- ### Package Manager Distribution
832
-
833
- Publish language-specific packages for native dependency management:
834
-
835
- - **npm**: `npm publish` for TypeScript/JavaScript
836
- - **PyPI**: `twine upload` for Python
837
- - **NuGet**: `dotnet nuget push` for .NET
838
- - **Maven Central**: Standard Maven publishing for Java
839
-
840
800
  **Reference**: https://www.pulumi.com/docs/iac/using-pulumi/pulumi-packages/
841
801
 
842
802
  ---
@@ -859,17 +819,17 @@ Publish language-specific packages for native dependency management:
859
819
 
860
820
  ## Quick Reference
861
821
 
862
- | Topic | Key Point |
863
- | --------------- | ----------------------------------------------------------------------- |
864
- | Type URN | `<package>:<module>:<type>`, module usually `index` |
865
- | Constructor | `super(type, name, {}, opts)` then children then `registerOutputs()` |
866
- | Child resources | Always `{ parent: this }`, derive name from `${name}-suffix` |
867
- | Args interface | Wrap in `Input<T>`, no unions, no functions, flat structure |
868
- | Outputs | Public readonly `Output<T>` properties, expose only essentials |
869
- | Defaults | Use `??` operator to apply sensible defaults in constructor |
870
- | Composition | Lower-level components composed into higher-level ones |
871
- | Multi-language | `PulumiPlugin.yaml` + entry point; consumers use `pulumi package add` |
872
- | Distribution | Private registry, git tags, package managers, or public Pulumi Registry |
822
+ | Topic | Key Point |
823
+ | --------------- | --------------------------------------------------------------------- |
824
+ | Type URN | `<package>:<module>:<type>`, module usually `index` |
825
+ | Constructor | `super(type, name, {}, opts)` then children then `registerOutputs()` |
826
+ | Child resources | Always `{ parent: this }`, derive name from `${name}-suffix` |
827
+ | Args interface | Wrap in `Input<T>`, no unions, no functions, flat structure |
828
+ | Outputs | Public readonly `Output<T>` properties, expose only essentials |
829
+ | Defaults | Use `??` operator to apply sensible defaults in constructor |
830
+ | Composition | Lower-level components composed into higher-level ones |
831
+ | Multi-language | `PulumiPlugin.yaml` + entry point; consumers use `pulumi package add` |
832
+ | Distribution | Private registry, repository version refs, or public Pulumi Registry |
873
833
 
874
834
  ## Related Skills
875
835
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "channel": "stable",
4
- "version": "2026.08.27-6abf31ed",
5
- "tag": "baseline/stable/2026.08.27-6abf31ed",
6
- "commit": "6abf31ed68e773f1898399d96e014fe1aa390f65",
4
+ "version": "2026.08.27-b0c53c25",
5
+ "tag": "baseline/stable/2026.08.27-b0c53c25",
6
+ "commit": "b0c53c2552e3c0a1ab34519e7486a9bfe11d1fbb",
7
7
  "archive": "scaffold-baseline.tgz",
8
- "archiveSha256": "86f0add583126b0f58a4e1f0239ab67d1a25711bb01fd7c12a7f377625b870e7",
8
+ "archiveSha256": "8e7cc1efabcc54407be899b6fcfa1f66f40e19f5a6b14434b4dd1c85642de748",
9
9
  "compatibility": {
10
- "cliVersionRange": ">=4.0.0 <4.1.0"
10
+ "cliVersionRange": ">=4.0.2 <4.1.0"
11
11
  }
12
12
  }
Binary file
@@ -62,6 +62,7 @@ const capabilityPacks = {
62
62
  "parallel-research",
63
63
  "swarm-planner",
64
64
  "tdd",
65
+ "make-tsuite",
65
66
  "codebase-design",
66
67
  "simplify",
67
68
  ],