@punks/cli 2.1.11 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/index.js +0 -0
- package/package.json +1 -1
- package/dist/data/AGENTS.md +0 -119
- package/dist/data/catalog/hooks.ts +0 -26
- package/dist/data/catalog/lint.ts +0 -266
- package/dist/data/catalog/packs.ts +0 -327
- package/dist/data/catalog/skills.ts +0 -449
- package/dist/data/catalog/tools.ts +0 -48
- package/dist/data/control-plane.json +0 -3
- package/dist/data/hooks/format-edited-file.mjs +0 -699
- package/dist/data/hooks/format-edited-file.sh +0 -37
- package/dist/data/hooks/require-tests-for-pr.mjs +0 -206
- package/dist/data/hooks/scaffold-update-check.mjs +0 -181
- package/dist/data/hooks.test.ts +0 -109
- package/dist/data/scripts/sync-subagents.mjs +0 -524
- package/dist/data/subagents/manifest.mjs +0 -487
- package/dist/data/subagents/manifest.test.ts +0 -40
- package/dist/skills/agnostic/backend/backend-domain-structure/SKILL.md +0 -50
- package/dist/skills/agnostic/backend/backend-domain-structure/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/backend/backend-domain-structure/references/layout.md +0 -167
- package/dist/skills/agnostic/backend/backend-recoverable-actions/SKILL.md +0 -49
- package/dist/skills/agnostic/backend/backend-recoverable-actions/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/strategy-matrix.md +0 -34
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/test-matrix.md +0 -34
- package/dist/skills/agnostic/backend/logging-best-practices/SKILL.md +0 -127
- package/dist/skills/agnostic/backend/logging-best-practices/rules/context.md +0 -157
- package/dist/skills/agnostic/backend/logging-best-practices/rules/pitfalls.md +0 -118
- package/dist/skills/agnostic/backend/logging-best-practices/rules/structure.md +0 -193
- package/dist/skills/agnostic/backend/logging-best-practices/rules/wide-events.md +0 -113
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +0 -125
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +0 -70
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +0 -70
- package/dist/skills/agnostic/debug/debug-agent/SKILL.md +0 -184
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +0 -46
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +0 -67
- package/dist/skills/agnostic/docs/writing-beats/SKILL.md +0 -69
- package/dist/skills/agnostic/docs/writing-fragments/SKILL.md +0 -76
- package/dist/skills/agnostic/docs/writing-shape/SKILL.md +0 -75
- package/dist/skills/agnostic/frontend/agent-browser/.clawdhub/origin.json +0 -7
- package/dist/skills/agnostic/frontend/agent-browser/SKILL.md +0 -229
- package/dist/skills/agnostic/frontend/agent-browser/references/authentication.md +0 -202
- package/dist/skills/agnostic/frontend/agent-browser/references/commands.md +0 -259
- package/dist/skills/agnostic/frontend/agent-browser/references/proxy-support.md +0 -188
- package/dist/skills/agnostic/frontend/agent-browser/references/session-management.md +0 -193
- package/dist/skills/agnostic/frontend/agent-browser/references/snapshot-refs.md +0 -194
- package/dist/skills/agnostic/frontend/agent-browser/references/video-recording.md +0 -173
- package/dist/skills/agnostic/frontend/agent-browser/templates/authenticated-session.sh +0 -97
- package/dist/skills/agnostic/frontend/agent-browser/templates/capture-workflow.sh +0 -69
- package/dist/skills/agnostic/frontend/agent-browser/templates/form-automation.sh +0 -62
- package/dist/skills/agnostic/frontend/design-taste-frontend/SKILL.md +0 -226
- package/dist/skills/agnostic/frontend/frontend-domain-structure/SKILL.md +0 -55
- package/dist/skills/agnostic/frontend/frontend-domain-structure/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/react/structure.md +0 -102
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/structure.md +0 -257
- package/dist/skills/agnostic/frontend/gpt-taste/SKILL.md +0 -74
- package/dist/skills/agnostic/frontend/image-taste-frontend/SKILL.md +0 -1102
- package/dist/skills/agnostic/frontend/redesign-existing-projects/SKILL.md +0 -178
- package/dist/skills/agnostic/generic/handoff/SKILL.md +0 -15
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +0 -37
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +0 -88
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +0 -44
- package/dist/skills/agnostic/planning/create-plan/references/grill-phase.md +0 -87
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +0 -90
- package/dist/skills/agnostic/planning/create-plan/references/planner-phase.md +0 -42
- package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +0 -18
- package/dist/skills/agnostic/planning/create-plan/references/tdd-phase.md +0 -48
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +0 -111
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +0 -91
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +0 -33
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -47
- package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
- package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +0 -58
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +0 -50
- package/dist/skills/agnostic/planning/grill-me/SKILL.md +0 -28
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +0 -99
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -53
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +0 -199
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +0 -102
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +0 -74
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +0 -56
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -43
- package/dist/skills/agnostic/planning/stack/SKILL.md +0 -89
- package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +0 -179
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +0 -191
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +0 -1176
- package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +0 -176
- package/dist/skills/agnostic/quality/simplify/SKILL.md +0 -14
- package/dist/skills/agnostic/quality/tdd/SKILL.md +0 -138
- package/dist/skills/agnostic/quality/tdd/deep-modules.md +0 -33
- package/dist/skills/agnostic/quality/tdd/interface-design.md +0 -31
- package/dist/skills/agnostic/quality/tdd/mocking.md +0 -59
- package/dist/skills/agnostic/quality/tdd/refactoring.md +0 -10
- package/dist/skills/agnostic/quality/tdd/tests.md +0 -61
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +0 -44
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +0 -157
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +0 -69
- package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +0 -101
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +0 -67
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +0 -262
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +0 -71
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +0 -69
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +0 -66
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +0 -63
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +0 -224
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +0 -76
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +0 -146
- package/dist/skills/agnostic/research/improve-codebase-architecture/REFERENCE.md +0 -78
- package/dist/skills/agnostic/research/improve-codebase-architecture/SKILL.md +0 -76
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +0 -68
- package/dist/skills/agnostic/research/parallel-research/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +0 -179
- package/dist/skills/agnostic/write-a-skill/SKILL.md +0 -117
- package/dist/skills/frameworks/better-auth/better-auth-best-practices/SKILL.md +0 -166
- package/dist/skills/frameworks/better-auth/better-auth-security-best-practices/SKILL.MD +0 -432
- package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
- package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-atom-patterns.md +0 -257
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
- package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
- package/dist/skills/frameworks/effect/effect-authoring/references/otel-patterns.md +0 -113
- package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +0 -96
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +0 -4
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +0 -68
- package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
- package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
- package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
- package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
- package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
- package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
- package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
- package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
- package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
- package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
- package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +0 -65
- package/dist/skills/frameworks/effect/effect-recoverable-actions/agents/openai.yaml +0 -4
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/flow-examples.md +0 -154
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/source-backed-primitives.md +0 -104
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/strategy-matrix.md +0 -34
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/test-matrix.md +0 -36
- package/dist/skills/frameworks/elysia/elysiajs/SKILL.md +0 -475
- package/dist/skills/frameworks/elysia/elysiajs/examples/basic.ts +0 -9
- package/dist/skills/frameworks/elysia/elysiajs/examples/body-parser.ts +0 -33
- package/dist/skills/frameworks/elysia/elysiajs/examples/complex.ts +0 -112
- package/dist/skills/frameworks/elysia/elysiajs/examples/cookie.ts +0 -45
- package/dist/skills/frameworks/elysia/elysiajs/examples/error.ts +0 -38
- package/dist/skills/frameworks/elysia/elysiajs/examples/file.ts +0 -10
- package/dist/skills/frameworks/elysia/elysiajs/examples/guard.ts +0 -34
- package/dist/skills/frameworks/elysia/elysiajs/examples/map-response.ts +0 -15
- package/dist/skills/frameworks/elysia/elysiajs/examples/redirect.ts +0 -6
- package/dist/skills/frameworks/elysia/elysiajs/examples/rename.ts +0 -32
- package/dist/skills/frameworks/elysia/elysiajs/examples/schema.ts +0 -61
- package/dist/skills/frameworks/elysia/elysiajs/examples/state.ts +0 -6
- package/dist/skills/frameworks/elysia/elysiajs/examples/upload-file.ts +0 -20
- package/dist/skills/frameworks/elysia/elysiajs/examples/websocket.ts +0 -25
- package/dist/skills/frameworks/elysia/elysiajs/integrations/ai-sdk.md +0 -92
- package/dist/skills/frameworks/elysia/elysiajs/integrations/astro.md +0 -59
- package/dist/skills/frameworks/elysia/elysiajs/integrations/better-auth.md +0 -117
- package/dist/skills/frameworks/elysia/elysiajs/integrations/cloudflare-worker.md +0 -95
- package/dist/skills/frameworks/elysia/elysiajs/integrations/deno.md +0 -34
- package/dist/skills/frameworks/elysia/elysiajs/integrations/drizzle.md +0 -258
- package/dist/skills/frameworks/elysia/elysiajs/integrations/expo.md +0 -95
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nextjs.md +0 -103
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nodejs.md +0 -64
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nuxt.md +0 -67
- package/dist/skills/frameworks/elysia/elysiajs/integrations/prisma.md +0 -93
- package/dist/skills/frameworks/elysia/elysiajs/integrations/react-email.md +0 -134
- package/dist/skills/frameworks/elysia/elysiajs/integrations/sveltekit.md +0 -53
- package/dist/skills/frameworks/elysia/elysiajs/integrations/tanstack-start.md +0 -87
- package/dist/skills/frameworks/elysia/elysiajs/integrations/vercel.md +0 -55
- package/dist/skills/frameworks/elysia/elysiajs/patterns/mvc.md +0 -380
- package/dist/skills/frameworks/elysia/elysiajs/plugins/bearer.md +0 -30
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cors.md +0 -141
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cron.md +0 -265
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-apollo.md +0 -90
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-yoga.md +0 -87
- package/dist/skills/frameworks/elysia/elysiajs/plugins/html.md +0 -188
- package/dist/skills/frameworks/elysia/elysiajs/plugins/jwt.md +0 -197
- package/dist/skills/frameworks/elysia/elysiajs/plugins/openapi.md +0 -246
- package/dist/skills/frameworks/elysia/elysiajs/plugins/opentelemetry.md +0 -167
- package/dist/skills/frameworks/elysia/elysiajs/plugins/server-timing.md +0 -71
- package/dist/skills/frameworks/elysia/elysiajs/plugins/static.md +0 -84
- package/dist/skills/frameworks/elysia/elysiajs/references/bun-fullstack-dev-server.md +0 -129
- package/dist/skills/frameworks/elysia/elysiajs/references/cookie.md +0 -187
- package/dist/skills/frameworks/elysia/elysiajs/references/deployment.md +0 -413
- package/dist/skills/frameworks/elysia/elysiajs/references/eden.md +0 -158
- package/dist/skills/frameworks/elysia/elysiajs/references/lifecycle.md +0 -198
- package/dist/skills/frameworks/elysia/elysiajs/references/macro.md +0 -83
- package/dist/skills/frameworks/elysia/elysiajs/references/plugin.md +0 -207
- package/dist/skills/frameworks/elysia/elysiajs/references/route.md +0 -331
- package/dist/skills/frameworks/elysia/elysiajs/references/testing.md +0 -385
- package/dist/skills/frameworks/elysia/elysiajs/references/validation.md +0 -491
- package/dist/skills/frameworks/elysia/elysiajs/references/websocket.md +0 -250
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/branch-protection.yml +0 -24
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/deploy.yml +0 -61
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/AGENTS.md +0 -5958
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/SKILL.md +0 -130
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-dto-serialization.md +0 -182
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-interceptors.md +0 -202
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-pipes.md +0 -205
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-versioning.md +0 -191
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-avoid-circular-deps.md +0 -80
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-feature-modules.md +0 -82
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-module-sharing.md +0 -141
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-single-responsibility.md +0 -106
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-events.md +0 -108
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-repository-pattern.md +0 -97
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-avoid-n-plus-one.md +0 -139
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-migrations.md +0 -129
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-transactions.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-graceful-shutdown.md +0 -222
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-config-module.md +0 -167
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-logging.md +0 -232
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-avoid-service-locator.md +0 -104
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-interface-segregation.md +0 -165
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-liskov-substitution.md +0 -221
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-prefer-constructor-injection.md +0 -86
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-scope-awareness.md +0 -94
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-use-interfaces-tokens.md +0 -101
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-handle-async-errors.md +0 -125
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-throw-http-exceptions.md +0 -114
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-use-exception-filters.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-health-checks.md +0 -226
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-patterns.md +0 -167
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-queues.md +0 -252
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-async-hooks.md +0 -109
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-lazy-loading.md +0 -121
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-optimize-database.md +0 -131
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-use-caching.md +0 -128
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-auth-jwt.md +0 -146
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-rate-limiting.md +0 -125
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-sanitize-output.md +0 -139
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-use-guards.md +0 -135
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-validate-all-input.md +0 -150
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-e2e-supertest.md +0 -178
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-mock-external-services.md +0 -179
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-use-testing-module.md +0 -153
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build-agents.ts +0 -299
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build.sh +0 -16
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package-lock.json +0 -237
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package.json +0 -15
- package/dist/skills/frameworks/nestjs/nestjs-expert/SKILL.md +0 -208
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/authentication.md +0 -166
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/controllers-routing.md +0 -111
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/dtos-validation.md +0 -153
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/migration-from-express.md +0 -1237
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/services-di.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/testing-patterns.md +0 -186
- package/dist/skills/frameworks/nextjs/next-best-practices/SKILL.md +0 -153
- package/dist/skills/frameworks/nextjs/next-best-practices/async-patterns.md +0 -87
- package/dist/skills/frameworks/nextjs/next-best-practices/bundling.md +0 -180
- package/dist/skills/frameworks/nextjs/next-best-practices/data-patterns.md +0 -297
- package/dist/skills/frameworks/nextjs/next-best-practices/debug-tricks.md +0 -105
- package/dist/skills/frameworks/nextjs/next-best-practices/directives.md +0 -73
- package/dist/skills/frameworks/nextjs/next-best-practices/error-handling.md +0 -227
- package/dist/skills/frameworks/nextjs/next-best-practices/file-conventions.md +0 -140
- package/dist/skills/frameworks/nextjs/next-best-practices/font.md +0 -245
- package/dist/skills/frameworks/nextjs/next-best-practices/functions.md +0 -108
- package/dist/skills/frameworks/nextjs/next-best-practices/hydration-error.md +0 -91
- package/dist/skills/frameworks/nextjs/next-best-practices/image.md +0 -173
- package/dist/skills/frameworks/nextjs/next-best-practices/metadata.md +0 -301
- package/dist/skills/frameworks/nextjs/next-best-practices/parallel-routes.md +0 -287
- package/dist/skills/frameworks/nextjs/next-best-practices/route-handlers.md +0 -146
- package/dist/skills/frameworks/nextjs/next-best-practices/rsc-boundaries.md +0 -159
- package/dist/skills/frameworks/nextjs/next-best-practices/runtime-selection.md +0 -39
- package/dist/skills/frameworks/nextjs/next-best-practices/scripts.md +0 -141
- package/dist/skills/frameworks/nextjs/next-best-practices/self-hosting.md +0 -371
- package/dist/skills/frameworks/nextjs/next-best-practices/suspense-boundaries.md +0 -67
- package/dist/skills/frameworks/nextjs/next-cache-components/SKILL.md +0 -360
- package/dist/skills/frameworks/react/async-react-patterns/SKILL.md +0 -78
- package/dist/skills/frameworks/react/vercel-composition-patterns/AGENTS.md +0 -946
- package/dist/skills/frameworks/react/vercel-composition-patterns/SKILL.md +0 -89
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +0 -100
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-compound-components.md +0 -112
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-children-over-render-props.md +0 -87
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-explicit-variants.md +0 -100
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/react19-no-forwardref.md +0 -42
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-context-interface.md +0 -191
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-decouple-implementation.md +0 -113
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-lift-state.md +0 -125
- package/dist/skills/frameworks/react/vercel-react-best-practices/AGENTS.md +0 -3750
- package/dist/skills/frameworks/react/vercel-react-best-practices/SKILL.md +0 -148
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-effect-event-deps.md +0 -56
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-init-once.md +0 -42
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-use-latest.md +0 -39
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-api-routes.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +0 -37
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-defer-await.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-dependencies.md +0 -51
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-parallel.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -60
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-preload.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -107
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-early-exit.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-flatmap-filter.md +0 -60
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-index-maps.md +0 -37
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-length-check-first.md +0 -49
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-request-idle-callback.md +0 -105
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-activity.md +0 -26
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +0 -30
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-resource-hints.md +0 -85
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-script-defer-async.md +0 -68
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo.md +0 -44
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-no-inline-components.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +0 -64
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-deferred-value.md +0 -59
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-auth-actions.md +0 -96
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-react.md +0 -76
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-dedup-props.md +0 -65
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-hoist-static-io.md +0 -149
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-no-shared-module-state.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +0 -34
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-serialization.md +0 -38
- package/dist/skills/frameworks/tanstack-query/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +0 -849
- package/dist/skills/frameworks/tanstack-query/tanstack-query/assets/example-template.txt +0 -14
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +0 -304
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/common-patterns.md +0 -271
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/example-reference.md +0 -26
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/testing.md +0 -282
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/top-errors.md +0 -332
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/typescript-patterns.md +0 -291
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/v4-to-v5-migration.md +0 -231
- package/dist/skills/frameworks/tanstack-query/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/skills/frameworks/tanstack-query/tanstack-query/scripts/example-script.sh +0 -15
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/custom-hooks-pattern.tsx +0 -281
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +0 -248
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/error-boundary.tsx +0 -243
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/package.json +0 -31
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/provider-setup.tsx +0 -50
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/query-client-config.ts +0 -72
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-infinite-query.tsx +0 -214
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-basic.tsx +0 -201
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-optimistic.tsx +0 -234
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-query-basic.tsx +0 -119
- package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +0 -250
- package/dist/skills/frameworks/trpc/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/skills/frameworks/trpc/tanstack-query/SKILL.md +0 -1058
- package/dist/skills/frameworks/trpc/tanstack-query/assets/example-template.txt +0 -14
- package/dist/skills/frameworks/trpc/tanstack-query/references/best-practices.md +0 -304
- package/dist/skills/frameworks/trpc/tanstack-query/references/common-patterns.md +0 -271
- package/dist/skills/frameworks/trpc/tanstack-query/references/example-reference.md +0 -26
- package/dist/skills/frameworks/trpc/tanstack-query/references/testing.md +0 -282
- package/dist/skills/frameworks/trpc/tanstack-query/references/top-errors.md +0 -332
- package/dist/skills/frameworks/trpc/tanstack-query/references/typescript-patterns.md +0 -291
- package/dist/skills/frameworks/trpc/tanstack-query/references/v4-to-v5-migration.md +0 -231
- package/dist/skills/frameworks/trpc/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/skills/frameworks/trpc/tanstack-query/scripts/example-script.sh +0 -15
- package/dist/skills/frameworks/trpc/tanstack-query/templates/custom-hooks-pattern.tsx +0 -281
- package/dist/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +0 -248
- package/dist/skills/frameworks/trpc/tanstack-query/templates/error-boundary.tsx +0 -243
- package/dist/skills/frameworks/trpc/tanstack-query/templates/package.json +0 -31
- package/dist/skills/frameworks/trpc/tanstack-query/templates/provider-setup.tsx +0 -50
- package/dist/skills/frameworks/trpc/tanstack-query/templates/query-client-config.ts +0 -72
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-infinite-query.tsx +0 -214
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-basic.tsx +0 -201
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-optimistic.tsx +0 -234
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-query-basic.tsx +0 -119
- package/dist/skills/frameworks/turborepo/turborepo/SKILL.md +0 -914
- package/dist/skills/frameworks/turborepo/turborepo/command/turborepo.md +0 -70
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/RULE.md +0 -241
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/dependencies.md +0 -246
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/packages.md +0 -335
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/structure.md +0 -270
- package/dist/skills/frameworks/turborepo/turborepo/references/boundaries/RULE.md +0 -126
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/RULE.md +0 -107
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/gotchas.md +0 -169
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/remote-cache.md +0 -127
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/RULE.md +0 -79
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/github-actions.md +0 -162
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/patterns.md +0 -145
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/vercel.md +0 -103
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/RULE.md +0 -100
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/commands.md +0 -297
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/RULE.md +0 -211
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/global-options.md +0 -187
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/gotchas.md +0 -348
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/tasks.md +0 -285
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/RULE.md +0 -96
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/gotchas.md +0 -141
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/modes.md +0 -101
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/RULE.md +0 -148
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/patterns.md +0 -152
- package/dist/skills/frameworks/turborepo/turborepo/references/watch/RULE.md +0 -99
- package/dist/skills/languages/python/async-python-patterns/SKILL.md +0 -735
- package/dist/skills/languages/python/python-code-style/SKILL.md +0 -360
- package/dist/skills/languages/python/python-design-patterns/SKILL.md +0 -433
- package/dist/skills/languages/python/python-project-structure/SKILL.md +0 -252
- package/dist/skills/languages/python/python-testing-patterns/SKILL.md +0 -622
- package/dist/skills/languages/python/python-testing-patterns/references/advanced-patterns.md +0 -411
- package/dist/skills/languages/typescript/quality-types/SKILL.md +0 -93
- package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +0 -170
- package/dist/skills/phases/bug-discovery-phase/SKILL.md +0 -85
- package/dist/skills/phases/bug-resolution-phase/REFERENCE.md +0 -160
- package/dist/skills/phases/bug-resolution-phase/SKILL.md +0 -64
- package/dist/skills/phases/debugging-phase/SKILL.md +0 -88
- package/dist/skills/phases/delivery-phase/SKILL.md +0 -50
- package/dist/skills/phases/delivery-phase/phases/closeout.md +0 -33
- package/dist/skills/phases/delivery-phase/phases/debug.md +0 -30
- package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +0 -27
- package/dist/skills/phases/delivery-phase/phases/implement.md +0 -30
- package/dist/skills/phases/delivery-phase/phases/plan.md +0 -27
- package/dist/skills/phases/delivery-phase/phases/review.md +0 -29
- package/dist/skills/phases/delivery-phase/phases/router.md +0 -46
- package/dist/skills/phases/delivery-phase/phases/spec.md +0 -26
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +0 -42
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +0 -25
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +0 -46
- package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +0 -4
- package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +0 -57
- package/dist/skills/phases/docs-ingest-phase/phases/public-docs.md +0 -52
- package/dist/skills/phases/docs-ingest-phase/phases/router.md +0 -42
- package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +0 -70
- package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +0 -56
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +0 -74
- package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +0 -96
- package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +0 -90
- package/dist/skills/phases/docs-ingest-phase/references/repo-docs.md +0 -38
- package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +0 -133
- package/dist/skills/phases/goalify/EXAMPLES.md +0 -78
- package/dist/skills/phases/goalify/SKILL.md +0 -129
- package/dist/skills/phases/requirements-phase/SKILL.md +0 -70
- package/dist/skills/phases/resolve-debt-phase/SKILL.md +0 -87
- package/dist/skills/phases/review-phase/SKILL.md +0 -118
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@ At runtime, scaffold content resolves from the latest stable GitHub release base
|
|
|
14
14
|
choose a backlog provider, scaffold requirements/backlog skills, and seed the initial wiki tree
|
|
15
15
|
- `punks scaffold setup`
|
|
16
16
|
detect the target repo, confirm or auto-accept pack selection, and write repo-aware scaffold output
|
|
17
|
+
- `punks tools ensure`
|
|
18
|
+
check and repair required external tools; `dp tools ensure` is the same command
|
|
17
19
|
- `punks report`
|
|
18
20
|
submit structured Harness friction for maintainer triage
|
|
19
21
|
|
|
@@ -26,8 +28,14 @@ punks scaffold setup
|
|
|
26
28
|
punks scaffold setup --yes
|
|
27
29
|
punks scaffold setup -i /path/to/repo
|
|
28
30
|
punks scaffold setup -i /path/to/repo -o /path/to/output
|
|
31
|
+
punks tools ensure
|
|
32
|
+
dp tools ensure
|
|
29
33
|
punks update --yes
|
|
30
34
|
punks report --help
|
|
35
|
+
punks --version
|
|
36
|
+
punks -v
|
|
37
|
+
dp --version
|
|
38
|
+
dp -v
|
|
31
39
|
bun run sync:skills
|
|
32
40
|
bun run baseline:build
|
|
33
41
|
```
|
|
@@ -42,6 +50,10 @@ Before refreshing generated skills, setup migrates legacy per-agent skill folder
|
|
|
42
50
|
|
|
43
51
|
`punks update --yes` applies managed scaffold updates without prompting. It is the non-interactive alias for the apply behavior of `--write`.
|
|
44
52
|
|
|
53
|
+
`punks tools ensure` / `dp tools ensure` checks required external tools and repairs missing installable tools. In a scaffolded repo it reads tool IDs from `.devpunks/required-tools.json`; outside a scaffolded repo it validates the default Harness toolchain. Install contracts come from the trusted stable baseline, with bundled fallback, not from repo-owned metadata. This command is not read-only. It may install or repair missing tools. When `agent-browser` is present and a supported Chrome, Chromium, or Brave executable already exists, validation, setup, and update should not force a Chrome download.
|
|
54
|
+
|
|
55
|
+
`punks -v` / `dp -v` is equivalent to `punks --version` / `dp --version`.
|
|
56
|
+
|
|
45
57
|
`punks report` submits reusable Harness docs, workflow, tooling, CLI, skill-pack, or wiki friction to the Harness API. Public CLI submissions are validated, given deterministic metadata, deduped against open `harness-report` issues, and created as GitHub issues for maintainer triage. Missing server GitHub credentials fail the command instead of silently storing an internal-only report.
|
|
46
58
|
|
|
47
59
|
Interactive commands check the selected npm dist-tag before running. When a newer CLI is available, `punks` asks for confirmation, reinstalls through the detected global package manager, and exits so the command can be rerun on the upgraded binary. `punks upgrade` keeps the same installer path as an explicit manual command. Use `--tag next` for prerelease channels or `--force` to reinstall the selected tag even when the current version is fresh.
|
|
@@ -92,7 +104,9 @@ bun run release:publish
|
|
|
92
104
|
|
|
93
105
|
`bun run baseline:publish` builds the current scaffold baseline, creates or updates the `baseline/stable/<date>-<sha>` GitHub release, and uploads the baseline manifest plus tarball. Use it when scaffold data changes but the npm executable does not need a new version.
|
|
94
106
|
|
|
95
|
-
`bun run release:publish` builds the CLI, publishes a sanitized npm package from the built `dist/` output, updates the `latest` dist-tag, also updates `next` for latest releases, pushes the matching `v<version>` git tag, and creates or updates the GitHub release title and notes from the categorized `CHANGELOG.md` content. GitHub notes use compact category labels such as `changed:` and `fixed:` without changelog publish metadata. Commit the version bump and changelog entry before running it; the script refuses dirty worktrees, missing changelog entries, uncategorized release notes, and existing tags that point at another commit. Set `NPM_TAG=beta` for beta prereleases without moving `latest`.
|
|
107
|
+
`bun run release:publish` builds the CLI as a standalone executable, publishes a sanitized npm package from the built `dist/` output, updates the `latest` dist-tag, also updates `next` for latest releases, pushes the matching `v<version>` git tag, and creates or updates the GitHub release title and notes from the categorized `CHANGELOG.md` content. GitHub notes use compact category labels such as `changed:` and `fixed:` without changelog publish metadata. Commit the version bump and changelog entry before running it; the script refuses dirty worktrees, missing changelog entries, uncategorized release notes, and existing tags that point at another commit. Set `NPM_TAG=beta` for beta prereleases without moving `latest`.
|
|
108
|
+
|
|
109
|
+
The published `dp` / `punks` commands do not require Bun at runtime. Bun is needed to build and publish from this repo; the npm package contains the compiled executable plus embedded scaffold assets.
|
|
96
110
|
|
|
97
111
|
Before npm releases, authenticate against the public npm registry:
|
|
98
112
|
|
package/dist/index.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/dist/data/AGENTS.md
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# AGENTS.md
|
|
2
|
-
|
|
3
|
-
Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
|
|
4
|
-
|
|
5
|
-
**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
|
|
6
|
-
|
|
7
|
-
## Philosophy
|
|
8
|
-
|
|
9
|
-
This codebase will outlive you. Every shortcut becomes someone else's burden. Every hack compounds into technical debt that slows the team down.
|
|
10
|
-
|
|
11
|
-
You are not writing code, you are shaping the future of the project. The patterns established will be copied, the corners cut will be cut again.
|
|
12
|
-
|
|
13
|
-
Fight entropy, leave the codebase better than when you found it.
|
|
14
|
-
|
|
15
|
-
## Writing style
|
|
16
|
-
|
|
17
|
-
- When generating tokens be extremely concise. Sacrifice grammar for the sake of concision.
|
|
18
|
-
- Be detailed about concepts, reasoning, assumptions, tradeoffs, and questions; keep wording terse.
|
|
19
|
-
|
|
20
|
-
## 1. Think Before Coding
|
|
21
|
-
|
|
22
|
-
**Don't assume. Don't hide confusion. Surface tradeoffs.**
|
|
23
|
-
|
|
24
|
-
Before implementing:
|
|
25
|
-
|
|
26
|
-
- State your assumptions explicitly. If uncertain, ask.
|
|
27
|
-
- If multiple interpretations exist, present them. Don't pick silently.
|
|
28
|
-
- If a simpler approach exists, say so. Push back when warranted.
|
|
29
|
-
- If something is unclear, stop. Name what's confusing. Ask.
|
|
30
|
-
|
|
31
|
-
## 2. Simplicity First
|
|
32
|
-
|
|
33
|
-
**Minimum code that solves the problem. Nothing speculative.**
|
|
34
|
-
|
|
35
|
-
- No features beyond what was asked.
|
|
36
|
-
- No abstractions for single-use code.
|
|
37
|
-
- No "flexibility" or "configurability" that wasn't requested.
|
|
38
|
-
- No error handling for impossible scenarios.
|
|
39
|
-
- If you write 200 lines and it could be 50, rewrite it.
|
|
40
|
-
|
|
41
|
-
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
|
|
42
|
-
|
|
43
|
-
## 3. Surgical Changes
|
|
44
|
-
|
|
45
|
-
**Touch only what you must. Clean up only your own mess.**
|
|
46
|
-
|
|
47
|
-
When editing existing code:
|
|
48
|
-
|
|
49
|
-
- Don't "improve" adjacent code, comments, or formatting by default.
|
|
50
|
-
- Don't refactor things that aren't broken by default.
|
|
51
|
-
- Match existing style, even if you'd do it differently.
|
|
52
|
-
- If you notice unrelated dead code, mention it. Don't delete it by default.
|
|
53
|
-
- If adjacent code materially affects correctness, clarity, maintainability, or the requested change, changing it is allowed. Fight entropy, do not preserve harmful local minima.
|
|
54
|
-
|
|
55
|
-
When your changes create orphans:
|
|
56
|
-
|
|
57
|
-
- Remove imports, variables, functions, and code paths that YOUR changes made unused.
|
|
58
|
-
- Don't remove pre-existing dead code unless asked.
|
|
59
|
-
|
|
60
|
-
The test: Every changed line should trace directly to the user's request or to necessary entropy-reducing support for that request.
|
|
61
|
-
|
|
62
|
-
## 4. Goal-Driven Execution
|
|
63
|
-
|
|
64
|
-
**Define success criteria. Loop until verified.**
|
|
65
|
-
|
|
66
|
-
Transform tasks into verifiable goals:
|
|
67
|
-
|
|
68
|
-
- "Add validation" -> "Write tests for invalid inputs, then make them pass"
|
|
69
|
-
- "Fix the bug" -> "Write a test that reproduces it, then make it pass"
|
|
70
|
-
- "Refactor X" -> "Ensure tests pass before and after"
|
|
71
|
-
|
|
72
|
-
For multi-step tasks, state a brief plan:
|
|
73
|
-
|
|
74
|
-
```text
|
|
75
|
-
1. [Step] -> verify: [check]
|
|
76
|
-
2. [Step] -> verify: [check]
|
|
77
|
-
3. [Step] -> verify: [check]
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
|
|
81
|
-
|
|
82
|
-
## Plan mode
|
|
83
|
-
|
|
84
|
-
- Plans must be self-contained. Embed all gathered knowledge and context directly in the plan file: relevant code paths, existing patterns, constraints, assumptions, and design reasoning. The executor should be able to implement from the plan alone, doing only optional supplementary research.
|
|
85
|
-
- Be very detailed and explain deeply concepts and reasoning behind design choices.
|
|
86
|
-
- Always emphasize the initial situation, issue, and solution.
|
|
87
|
-
- For complex tasks, break plans into phases with built-in validation gates. Define expected outcomes, assertions, or checks per phase so the executor can self-verify correctness before moving on with no human checkpoint needed.
|
|
88
|
-
- At the end of the plan list unresolved questions if any.
|
|
89
|
-
|
|
90
|
-
## Dependency source inspection
|
|
91
|
-
|
|
92
|
-
- Prefer web search and official docs first when inspecting external libraries or packages.
|
|
93
|
-
- If web results are unsuccessful, stale, or not detailed enough for implementation, fetch source locally.
|
|
94
|
-
- For npm packages, use `opensrc path <package>` to get the absolute path to cached source code, fetching on cache miss.
|
|
95
|
-
- For non-npm packages, clone the upstream `owner/repo` git source directly with `opensrc path <owner>/<repo>`.
|
|
96
|
-
|
|
97
|
-
## Subagents
|
|
98
|
-
|
|
99
|
-
Before delegating, verify the active harness global/project settings actually enable subagent execution. Then verify `.agents/subagents/manifest.mjs` exists and the chosen specialist has matching owned paths, guidance files, and skills.
|
|
100
|
-
|
|
101
|
-
Use readonly subagents aggressively for research, auditing, docs updating, investigating multiple hypotheses, or exploring unrelated areas. Implementation subagents are allowed only when a skill or plan explicitly requires them, such as `implement-spec` sequential single-worker execution or parallel waves. If the runtime guard fails, repair setup or execute locally; do not claim inactive worker coverage.
|
|
102
|
-
|
|
103
|
-
## Notes — Cross-session Memory
|
|
104
|
-
|
|
105
|
-
Notebook at `.agents/notes/`. Shared memory across sessions. Never ask permission.
|
|
106
|
-
|
|
107
|
-
**On session start:** Read `.agents/notes/index.md` (create if missing).
|
|
108
|
-
**Write notes for:**
|
|
109
|
-
|
|
110
|
-
- Non-obvious behaviors, gotchas, edge cases
|
|
111
|
-
- Hard-won insights that took investigation
|
|
112
|
-
- Project conventions and architectural decisions
|
|
113
|
-
- Setup and config quirks
|
|
114
|
-
**Don't note:** File locations, basic structure, session summaries, trivial facts.
|
|
115
|
-
**Guidelines:** Store in `.agents/notes/`, keep `index.md` lean with one line per note, update existing notes before creating new ones, include why not just what, prune aggressively.
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, clarifying questions come before implementation rather than after mistakes, and the codebase trends toward lower entropy over time.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface HookDefinition {
|
|
2
|
-
readonly id: string;
|
|
3
|
-
readonly harness: "shared";
|
|
4
|
-
readonly outputPath: string;
|
|
5
|
-
readonly description: string;
|
|
6
|
-
readonly sourcePath: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const hookCatalog = [
|
|
10
|
-
{
|
|
11
|
-
id: "scaffold-update-check",
|
|
12
|
-
harness: "shared",
|
|
13
|
-
outputPath: ".agents/hooks/scaffold-update-check.mjs",
|
|
14
|
-
description:
|
|
15
|
-
"Shared session-start hook that reports whether managed Harness scaffold output is current.",
|
|
16
|
-
sourcePath: "hooks/scaffold-update-check.mjs",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: "format-edited-file",
|
|
20
|
-
harness: "shared",
|
|
21
|
-
outputPath: ".agents/hooks/format-edited-file.mjs",
|
|
22
|
-
description:
|
|
23
|
-
"Shared hook that auto-formats edited JS/TS/JSON files and lint-checks product files after tool use.",
|
|
24
|
-
sourcePath: "hooks/format-edited-file.mjs",
|
|
25
|
-
},
|
|
26
|
-
] as const satisfies ReadonlyArray<HookDefinition>;
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
export type LintAssetId = string;
|
|
2
|
-
|
|
3
|
-
export interface LintJsPluginDefinition {
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly specifier: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface LintPlacementDefinition {
|
|
9
|
-
readonly recommendedConfigFile: string;
|
|
10
|
-
readonly recommendedFiles: ReadonlyArray<string>;
|
|
11
|
-
readonly recommendedWorkspaces: ReadonlyArray<string>;
|
|
12
|
-
readonly placementNotes: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface LintAssetDefinition {
|
|
16
|
-
readonly id: LintAssetId;
|
|
17
|
-
readonly description: string;
|
|
18
|
-
readonly oxlintPresets: ReadonlyArray<string>;
|
|
19
|
-
readonly plugins: ReadonlyArray<string>;
|
|
20
|
-
readonly jsPlugins: ReadonlyArray<LintJsPluginDefinition>;
|
|
21
|
-
readonly settings: Record<string, unknown>;
|
|
22
|
-
readonly rules: Record<string, unknown>;
|
|
23
|
-
readonly requiredDevDependencies: ReadonlyArray<string>;
|
|
24
|
-
readonly placement: LintPlacementDefinition;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const sharedReactPlacement = {
|
|
28
|
-
recommendedConfigFile: "oxlint.config.ts",
|
|
29
|
-
recommendedFiles: ["<detected-react-workspace>/**/*.{js,jsx,ts,tsx}"],
|
|
30
|
-
recommendedWorkspaces: ["detected React workspaces"],
|
|
31
|
-
placementNotes:
|
|
32
|
-
"Add as an override for detected React-rendered code. Keep backend packages outside this override unless they render React.",
|
|
33
|
-
} as const satisfies LintPlacementDefinition;
|
|
34
|
-
|
|
35
|
-
const webOnlyPlacement = {
|
|
36
|
-
recommendedConfigFile: "oxlint.config.ts",
|
|
37
|
-
recommendedFiles: ["<detected-nextjs-workspace>/**/*.{js,jsx,ts,tsx}"],
|
|
38
|
-
recommendedWorkspaces: ["detected Next.js workspaces"],
|
|
39
|
-
placementNotes:
|
|
40
|
-
"Place this in the Next.js app override. If the repo uses a different frontend app path, retarget the file globs to that workspace before composing the final Oxlint config.",
|
|
41
|
-
} as const satisfies LintPlacementDefinition;
|
|
42
|
-
|
|
43
|
-
const effectPlacement = {
|
|
44
|
-
recommendedConfigFile: "oxlint.config.ts",
|
|
45
|
-
recommendedFiles: ["<detected-effect-workspace>/**/*.{js,jsx,ts,tsx}"],
|
|
46
|
-
recommendedWorkspaces: ["detected Effect workspaces"],
|
|
47
|
-
placementNotes:
|
|
48
|
-
"Apply this only where Effect code lives. If the target repo renames or splits backend workspaces, move the override with those code paths instead of broadening it repo-wide.",
|
|
49
|
-
} as const satisfies LintPlacementDefinition;
|
|
50
|
-
|
|
51
|
-
const vitestPlacement = {
|
|
52
|
-
recommendedConfigFile: "oxlint.config.ts",
|
|
53
|
-
recommendedFiles: [
|
|
54
|
-
"<detected-test-workspace>/**/*.{test,spec}.{js,jsx,ts,tsx}",
|
|
55
|
-
"<detected-test-workspace>/src/test/**/*.{js,jsx,ts,tsx}",
|
|
56
|
-
],
|
|
57
|
-
recommendedWorkspaces: ["detected JavaScript/TypeScript test workspaces"],
|
|
58
|
-
placementNotes:
|
|
59
|
-
"Attach this to test-only globs. Expand or narrow the file patterns to match the repo's actual Vitest test layout instead of treating it as a global default.",
|
|
60
|
-
} as const satisfies LintPlacementDefinition;
|
|
61
|
-
|
|
62
|
-
export const lintCatalog = [
|
|
63
|
-
{
|
|
64
|
-
id: "react-core",
|
|
65
|
-
description: "Ultracite React preset for rendered app and shared UI code.",
|
|
66
|
-
oxlintPresets: ["react"],
|
|
67
|
-
plugins: [],
|
|
68
|
-
jsPlugins: [],
|
|
69
|
-
settings: {},
|
|
70
|
-
rules: {},
|
|
71
|
-
requiredDevDependencies: [],
|
|
72
|
-
placement: sharedReactPlacement,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: "react-hooks",
|
|
76
|
-
description: "React Hooks lint rules via the JS plugin bridge for Oxlint.",
|
|
77
|
-
oxlintPresets: [],
|
|
78
|
-
plugins: [],
|
|
79
|
-
jsPlugins: [
|
|
80
|
-
{
|
|
81
|
-
name: "react-hooks-js",
|
|
82
|
-
specifier: "eslint-plugin-react-hooks",
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
settings: {},
|
|
86
|
-
rules: {
|
|
87
|
-
"react-hooks-js/exhaustive-deps": "error",
|
|
88
|
-
"react-hooks-js/component-hook-factories": "error",
|
|
89
|
-
"react-hooks-js/config": "error",
|
|
90
|
-
"react-hooks-js/error-boundaries": "error",
|
|
91
|
-
"react-hooks-js/gating": "error",
|
|
92
|
-
"react-hooks-js/globals": "error",
|
|
93
|
-
"react-hooks-js/immutability": "error",
|
|
94
|
-
"react-hooks-js/incompatible-library": "error",
|
|
95
|
-
"react-hooks-js/preserve-manual-memoization": "error",
|
|
96
|
-
"react-hooks-js/purity": "error",
|
|
97
|
-
"react-hooks-js/refs": "error",
|
|
98
|
-
"react-hooks-js/rules-of-hooks": "error",
|
|
99
|
-
"react-hooks-js/set-state-in-effect": "error",
|
|
100
|
-
"react-hooks-js/set-state-in-render": "error",
|
|
101
|
-
"react-hooks-js/static-components": "error",
|
|
102
|
-
"react-hooks-js/unsupported-syntax": "error",
|
|
103
|
-
"react-hooks-js/use-memo": "error",
|
|
104
|
-
},
|
|
105
|
-
requiredDevDependencies: ["eslint-plugin-react-hooks"],
|
|
106
|
-
placement: sharedReactPlacement,
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: "react-you-might-not-need-an-effect",
|
|
110
|
-
description: "Guidance rules that push React code away from unnecessary effects.",
|
|
111
|
-
oxlintPresets: [],
|
|
112
|
-
plugins: [],
|
|
113
|
-
jsPlugins: [
|
|
114
|
-
{
|
|
115
|
-
name: "react-you-might-not-need-an-effect-js",
|
|
116
|
-
specifier: "eslint-plugin-react-you-might-not-need-an-effect",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
settings: {},
|
|
120
|
-
rules: {
|
|
121
|
-
"react-you-might-not-need-an-effect-js/no-adjust-state-on-prop-change": "error",
|
|
122
|
-
"react-you-might-not-need-an-effect-js/no-chain-state-updates": "error",
|
|
123
|
-
"react-you-might-not-need-an-effect-js/no-derived-state": "error",
|
|
124
|
-
"react-you-might-not-need-an-effect-js/no-event-handler": "error",
|
|
125
|
-
"react-you-might-not-need-an-effect-js/no-initialize-state": "error",
|
|
126
|
-
"react-you-might-not-need-an-effect-js/no-pass-data-to-parent": "error",
|
|
127
|
-
"react-you-might-not-need-an-effect-js/no-pass-live-state-to-parent": "error",
|
|
128
|
-
"react-you-might-not-need-an-effect-js/no-reset-all-state-on-prop-change": "error",
|
|
129
|
-
},
|
|
130
|
-
requiredDevDependencies: ["eslint-plugin-react-you-might-not-need-an-effect"],
|
|
131
|
-
placement: sharedReactPlacement,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: "next-core",
|
|
135
|
-
description: "Ultracite Next.js preset for the main web application.",
|
|
136
|
-
oxlintPresets: ["next"],
|
|
137
|
-
plugins: [],
|
|
138
|
-
jsPlugins: [],
|
|
139
|
-
settings: {},
|
|
140
|
-
rules: {},
|
|
141
|
-
requiredDevDependencies: [],
|
|
142
|
-
placement: {
|
|
143
|
-
...webOnlyPlacement,
|
|
144
|
-
placementNotes:
|
|
145
|
-
"Place this beside the React app override and set `settings.next.rootDir` to the repo's actual Next workspace roots if the final config needs that plugin setting.",
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: "tanstack-query-core",
|
|
150
|
-
description: "Ultracite TanStack preset for query/router/start framework linting.",
|
|
151
|
-
oxlintPresets: ["tanstack"],
|
|
152
|
-
plugins: [],
|
|
153
|
-
jsPlugins: [],
|
|
154
|
-
settings: {},
|
|
155
|
-
rules: {},
|
|
156
|
-
requiredDevDependencies: [],
|
|
157
|
-
placement: {
|
|
158
|
-
...webOnlyPlacement,
|
|
159
|
-
placementNotes:
|
|
160
|
-
"Scope this to client code that owns TanStack Query usage. Keep it out of server-only or shared non-query packages unless those paths actually create queries or mutations.",
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
id: "effect-no-barrel-imports",
|
|
165
|
-
description: "Effect architectural rule that blocks barrel-package imports.",
|
|
166
|
-
oxlintPresets: [],
|
|
167
|
-
plugins: [],
|
|
168
|
-
jsPlugins: [
|
|
169
|
-
{
|
|
170
|
-
name: "effect-js",
|
|
171
|
-
specifier: "@effect/eslint-plugin",
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
settings: {},
|
|
175
|
-
rules: {
|
|
176
|
-
"effect-js/no-import-from-barrel-package": [
|
|
177
|
-
"error",
|
|
178
|
-
{
|
|
179
|
-
packageNames: ["effect"],
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
},
|
|
183
|
-
requiredDevDependencies: ["@effect/eslint-plugin"],
|
|
184
|
-
placement: effectPlacement,
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: "vitest-core",
|
|
188
|
-
description: "Ultracite Vitest preset for repo-owned test globs.",
|
|
189
|
-
oxlintPresets: ["vitest"],
|
|
190
|
-
plugins: [],
|
|
191
|
-
jsPlugins: [],
|
|
192
|
-
settings: {},
|
|
193
|
-
rules: {},
|
|
194
|
-
requiredDevDependencies: [],
|
|
195
|
-
placement: vitestPlacement,
|
|
196
|
-
},
|
|
197
|
-
] as const satisfies ReadonlyArray<LintAssetDefinition>;
|
|
198
|
-
|
|
199
|
-
const stableJson = (value: unknown): string => JSON.stringify(value);
|
|
200
|
-
|
|
201
|
-
const placementKeyOf = (placement: LintPlacementDefinition): string =>
|
|
202
|
-
[placement.recommendedConfigFile, ...placement.recommendedFiles].join("::");
|
|
203
|
-
|
|
204
|
-
export const validateLintCatalog = (
|
|
205
|
-
catalog: ReadonlyArray<LintAssetDefinition>,
|
|
206
|
-
): ReadonlyArray<LintAssetDefinition> => {
|
|
207
|
-
const seenIds = new Set<string>();
|
|
208
|
-
const seenRules = new Map<string, { readonly assetId: string; readonly value: string }>();
|
|
209
|
-
const seenSettings = new Map<string, { readonly assetId: string; readonly value: string }>();
|
|
210
|
-
const seenJsPlugins = new Map<string, { readonly assetId: string; readonly specifier: string }>();
|
|
211
|
-
|
|
212
|
-
for (const asset of catalog) {
|
|
213
|
-
if (seenIds.has(asset.id)) {
|
|
214
|
-
throw new Error(`Duplicate lint asset id: ${asset.id}`);
|
|
215
|
-
}
|
|
216
|
-
seenIds.add(asset.id);
|
|
217
|
-
|
|
218
|
-
const placementKey = placementKeyOf(asset.placement);
|
|
219
|
-
|
|
220
|
-
for (const [ruleName, ruleValue] of Object.entries(asset.rules)) {
|
|
221
|
-
const key = `${placementKey}::rule::${ruleName}`;
|
|
222
|
-
const value = stableJson(ruleValue);
|
|
223
|
-
const previous = seenRules.get(key);
|
|
224
|
-
if (previous !== undefined && previous.value !== value) {
|
|
225
|
-
throw new Error(
|
|
226
|
-
`Conflicting lint rule \`${ruleName}\` for placement \`${placementKey}\`: ${previous.assetId} vs ${asset.id}`,
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
if (previous === undefined) {
|
|
230
|
-
seenRules.set(key, { assetId: asset.id, value });
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
for (const [settingName, settingValue] of Object.entries(asset.settings)) {
|
|
235
|
-
const key = `${placementKey}::setting::${settingName}`;
|
|
236
|
-
const value = stableJson(settingValue);
|
|
237
|
-
const previous = seenSettings.get(key);
|
|
238
|
-
if (previous !== undefined && previous.value !== value) {
|
|
239
|
-
throw new Error(
|
|
240
|
-
`Conflicting lint setting \`${settingName}\` for placement \`${placementKey}\`: ${previous.assetId} vs ${asset.id}`,
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
if (previous === undefined) {
|
|
244
|
-
seenSettings.set(key, { assetId: asset.id, value });
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
for (const plugin of asset.jsPlugins) {
|
|
249
|
-
const key = `${placementKey}::js-plugin::${plugin.name}`;
|
|
250
|
-
const previous = seenJsPlugins.get(key);
|
|
251
|
-
if (previous !== undefined && previous.specifier !== plugin.specifier) {
|
|
252
|
-
throw new Error(
|
|
253
|
-
`Conflicting JS plugin alias \`${plugin.name}\` for placement \`${placementKey}\`: ${previous.assetId} vs ${asset.id}`,
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
if (previous === undefined) {
|
|
257
|
-
seenJsPlugins.set(key, {
|
|
258
|
-
assetId: asset.id,
|
|
259
|
-
specifier: plugin.specifier,
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
return catalog;
|
|
266
|
-
};
|