@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.
- package/AGENTS.md +1 -1
- package/dist/BASELINE_CHANGELOG.md +11 -0
- package/dist/CHANGELOG.md +13 -0
- package/dist/baseline/scaffold-baseline/baseline.json +5 -5
- package/dist/baseline/scaffold-baseline/data/catalog/packs.json +8 -5
- package/dist/baseline/scaffold-baseline/data/catalog/skills.json +16 -0
- package/dist/baseline/scaffold-baseline/data/subagents/manifest.mjs +1 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
- package/dist/baseline/scaffold-baseline/skills/agnostic/research/parallel-research/SKILL.md +7 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +18 -50
- package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-component/SKILL.md +34 -74
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/subagents/manifest.mjs +1 -0
- package/dist/index.js +2 -2
- package/dist/skills/agnostic/quality/make-tsuite/SKILL.md +57 -0
- package/dist/skills/agnostic/quality/make-tsuite/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/audit-portfolio.md +47 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/implement-suite.md +40 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/route-api-design.md +21 -0
- package/dist/skills/agnostic/quality/make-tsuite/references/user-journey-design.md +21 -0
- package/dist/skills/agnostic/research/parallel-research/DURABLE-REPORT.md +5 -12
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +7 -8
- package/dist/skills/agnostic/security/architect-pipeline/SKILL.md +97 -0
- package/dist/skills/agnostic/security/architect-pipeline/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/security/architect-pipeline/references/infrastructure-deployment.md +29 -0
- package/dist/skills/agnostic/security/architect-pipeline/references/security-by-design.md +22 -0
- package/dist/skills/frameworks/pulumi/provider-upgrade/SKILL.md +10 -7
- package/dist/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md +10 -42
- package/dist/skills/frameworks/pulumi/pulumi-component/SKILL.md +18 -58
- 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[
|
|
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. **
|
|
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
|
|
241
|
-
|
|
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),
|
|
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
|
-
|
|
326
|
-
report and ask the user how they
|
|
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
|
|
package/dist/baseline/scaffold-baseline/skills/frameworks/pulumi/pulumi-best-practices/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
-
-
|
|
418
|
-
- Preview output not
|
|
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
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
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
|
|
497
|
-
|
|
|
498
|
-
| No resources in apply
|
|
499
|
-
| Pass outputs directly
|
|
500
|
-
| Use components
|
|
501
|
-
| Set parent: this
|
|
502
|
-
| Secrets from day one
|
|
503
|
-
| Aliases when refactoring
|
|
504
|
-
| Preview before
|
|
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
|
-
- [ ]
|
|
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
|
|
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
|
|
753
|
-
|
|
|
754
|
-
| Same project
|
|
755
|
-
| Same organization
|
|
756
|
-
| Same organization
|
|
757
|
-
|
|
|
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
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
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
|
-
**
|
|
782
|
+
**References**:
|
|
815
783
|
|
|
816
|
-
|
|
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
|
-
|
|
788
|
+
### Git Repository Distribution
|
|
819
789
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
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,
|
|
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-
|
|
5
|
-
"tag": "baseline/stable/2026.08.27-
|
|
6
|
-
"commit": "
|
|
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": "
|
|
8
|
+
"archiveSha256": "8e7cc1efabcc54407be899b6fcfa1f66f40e19f5a6b14434b4dd1c85642de748",
|
|
9
9
|
"compatibility": {
|
|
10
|
-
"cliVersionRange": ">=4.0.
|
|
10
|
+
"cliVersionRange": ">=4.0.2 <4.1.0"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
Binary file
|