@hexagen-monaco/sync 0.4.0
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/LICENSE +33 -0
- package/README.md +181 -0
- package/dist/application/index.d.ts +3 -0
- package/dist/application/index.d.ts.map +1 -0
- package/dist/application/ports/index.d.ts +2 -0
- package/dist/application/ports/index.d.ts.map +1 -0
- package/dist/application/ports/out/architecture-graph-provider.port.d.ts +6 -0
- package/dist/application/ports/out/architecture-graph-provider.port.d.ts.map +1 -0
- package/dist/application/ports/out/file-system.port.d.ts +22 -0
- package/dist/application/ports/out/file-system.port.d.ts.map +1 -0
- package/dist/application/ports/out/generator-config.port.d.ts +51 -0
- package/dist/application/ports/out/generator-config.port.d.ts.map +1 -0
- package/dist/application/ports/out/index.d.ts +9 -0
- package/dist/application/ports/out/index.d.ts.map +1 -0
- package/dist/application/ports/out/linter-report-provider.port.d.ts +6 -0
- package/dist/application/ports/out/linter-report-provider.port.d.ts.map +1 -0
- package/dist/application/ports/out/ownership-registry.port.d.ts +35 -0
- package/dist/application/ports/out/ownership-registry.port.d.ts.map +1 -0
- package/dist/application/ports/out/project-configuration-read.port.d.ts +9 -0
- package/dist/application/ports/out/project-configuration-read.port.d.ts.map +1 -0
- package/dist/application/ports/out/symbol-reference-provider.port.d.ts +10 -0
- package/dist/application/ports/out/symbol-reference-provider.port.d.ts.map +1 -0
- package/dist/application/ports/out/workspace-file-provider.port.d.ts +14 -0
- package/dist/application/ports/out/workspace-file-provider.port.d.ts.map +1 -0
- package/dist/application/use-cases/get-architecture-graph.use-case.d.ts +8 -0
- package/dist/application/use-cases/get-architecture-graph.use-case.d.ts.map +1 -0
- package/dist/application/use-cases/get-linter-report.use-case.d.ts +8 -0
- package/dist/application/use-cases/get-linter-report.use-case.d.ts.map +1 -0
- package/dist/application/use-cases/get-manifest-resource.use-case.d.ts +8 -0
- package/dist/application/use-cases/get-manifest-resource.use-case.d.ts.map +1 -0
- package/dist/application/use-cases/index.d.ts +4 -0
- package/dist/application/use-cases/index.d.ts.map +1 -0
- package/dist/application/use-cases/refactoring-impact.use-case.d.ts +29 -0
- package/dist/application/use-cases/refactoring-impact.use-case.d.ts.map +1 -0
- package/dist/application/use-cases/stub-generation.use-case.d.ts +23 -0
- package/dist/application/use-cases/stub-generation.use-case.d.ts.map +1 -0
- package/dist/arch-linter-bin.d.ts +20 -0
- package/dist/arch-linter-bin.d.ts.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +12149 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/add/index.d.ts +8 -0
- package/dist/commands/add/index.d.ts.map +1 -0
- package/dist/commands/add/validate.d.ts +2 -0
- package/dist/commands/add/validate.d.ts.map +1 -0
- package/dist/commands/arch/add.d.ts +3 -0
- package/dist/commands/arch/add.d.ts.map +1 -0
- package/dist/commands/arch/context/command.d.ts +4 -0
- package/dist/commands/arch/context/command.d.ts.map +1 -0
- package/dist/commands/arch/context/persistence.d.ts +22 -0
- package/dist/commands/arch/context/persistence.d.ts.map +1 -0
- package/dist/commands/arch/context/wizard.d.ts +7 -0
- package/dist/commands/arch/context/wizard.d.ts.map +1 -0
- package/dist/commands/arch/diff.d.ts +3 -0
- package/dist/commands/arch/diff.d.ts.map +1 -0
- package/dist/commands/arch/edit.d.ts +9 -0
- package/dist/commands/arch/edit.d.ts.map +1 -0
- package/dist/commands/arch/index.d.ts +3 -0
- package/dist/commands/arch/index.d.ts.map +1 -0
- package/dist/commands/arch/list.d.ts +2 -0
- package/dist/commands/arch/list.d.ts.map +1 -0
- package/dist/commands/arch/port/persistence.d.ts +28 -0
- package/dist/commands/arch/port/persistence.d.ts.map +1 -0
- package/dist/commands/arch/port.d.ts +4 -0
- package/dist/commands/arch/port.d.ts.map +1 -0
- package/dist/commands/arch/refactor-rename-entity.d.ts +3 -0
- package/dist/commands/arch/refactor-rename-entity.d.ts.map +1 -0
- package/dist/commands/arch/refactor-rename-port.d.ts +3 -0
- package/dist/commands/arch/refactor-rename-port.d.ts.map +1 -0
- package/dist/commands/arch/refactor-rename-use-case.d.ts +3 -0
- package/dist/commands/arch/refactor-rename-use-case.d.ts.map +1 -0
- package/dist/commands/arch/refactor-shared.d.ts +11 -0
- package/dist/commands/arch/refactor-shared.d.ts.map +1 -0
- package/dist/commands/arch/refactor.d.ts +3 -0
- package/dist/commands/arch/refactor.d.ts.map +1 -0
- package/dist/commands/arch/remove/context.d.ts +7 -0
- package/dist/commands/arch/remove/context.d.ts.map +1 -0
- package/dist/commands/arch/remove/port.d.ts +7 -0
- package/dist/commands/arch/remove/port.d.ts.map +1 -0
- package/dist/commands/arch/remove.d.ts +3 -0
- package/dist/commands/arch/remove.d.ts.map +1 -0
- package/dist/commands/arch/validate.d.ts +2 -0
- package/dist/commands/arch/validate.d.ts.map +1 -0
- package/dist/commands/manifest/index.d.ts +3 -0
- package/dist/commands/manifest/index.d.ts.map +1 -0
- package/dist/commands/manifest/split-utils.d.ts +8 -0
- package/dist/commands/manifest/split-utils.d.ts.map +1 -0
- package/dist/commands/manifest/split.d.ts +3 -0
- package/dist/commands/manifest/split.d.ts.map +1 -0
- package/dist/commands/shared/confirm.d.ts +5 -0
- package/dist/commands/shared/confirm.d.ts.map +1 -0
- package/dist/commands/shared/error-formatter.d.ts +7 -0
- package/dist/commands/shared/error-formatter.d.ts.map +1 -0
- package/dist/commands/shared/index.d.ts +15 -0
- package/dist/commands/shared/index.d.ts.map +1 -0
- package/dist/commands/shared/project-root.d.ts +3 -0
- package/dist/commands/shared/project-root.d.ts.map +1 -0
- package/dist/commands/shared/prompt-service.d.ts +15 -0
- package/dist/commands/shared/prompt-service.d.ts.map +1 -0
- package/dist/commands/shared/spinner.d.ts +13 -0
- package/dist/commands/shared/spinner.d.ts.map +1 -0
- package/dist/commands/shared/template-engine-path.d.ts +12 -0
- package/dist/commands/shared/template-engine-path.d.ts.map +1 -0
- package/dist/commands/shared/validation.d.ts +15 -0
- package/dist/commands/shared/validation.d.ts.map +1 -0
- package/dist/commands/shared/yaml-service.d.ts +23 -0
- package/dist/commands/shared/yaml-service.d.ts.map +1 -0
- package/dist/commands/templates/index.d.ts +3 -0
- package/dist/commands/templates/index.d.ts.map +1 -0
- package/dist/commands/templates/info.d.ts +2 -0
- package/dist/commands/templates/info.d.ts.map +1 -0
- package/dist/commands/templates/list.d.ts +2 -0
- package/dist/commands/templates/list.d.ts.map +1 -0
- package/dist/config/barrel-exclusions.d.ts +10 -0
- package/dist/config/barrel-exclusions.d.ts.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/domain/index.d.ts +5 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/result.d.ts +4 -0
- package/dist/domain/result.d.ts.map +1 -0
- package/dist/domain/services/architectural-boundary-checker.d.ts +18 -0
- package/dist/domain/services/architectural-boundary-checker.d.ts.map +1 -0
- package/dist/domain/services/emission-plan-builder.d.ts +17 -0
- package/dist/domain/services/emission-plan-builder.d.ts.map +1 -0
- package/dist/domain/services/impact-analysis.types.d.ts +24 -0
- package/dist/domain/services/impact-analysis.types.d.ts.map +1 -0
- package/dist/domain/services/impact-request-validator.d.ts +14 -0
- package/dist/domain/services/impact-request-validator.d.ts.map +1 -0
- package/dist/domain/services/index.d.ts +7 -0
- package/dist/domain/services/index.d.ts.map +1 -0
- package/dist/domain/services/layer-classifier.d.ts +4 -0
- package/dist/domain/services/layer-classifier.d.ts.map +1 -0
- package/dist/domain/services/stub-template-resolver.d.ts +16 -0
- package/dist/domain/services/stub-template-resolver.d.ts.map +1 -0
- package/dist/domain/session.d.ts +6 -0
- package/dist/domain/session.d.ts.map +1 -0
- package/dist/domain/stub-templates.d.ts +8 -0
- package/dist/domain/stub-templates.d.ts.map +1 -0
- package/dist/domain/types.d.ts +4 -0
- package/dist/domain/types.d.ts.map +1 -0
- package/dist/fs-utils.d.ts +28 -0
- package/dist/fs-utils.d.ts.map +1 -0
- package/dist/generators/apps-framework-templates.d.ts +4 -0
- package/dist/generators/apps-framework-templates.d.ts.map +1 -0
- package/dist/generators/apps.d.ts +5 -0
- package/dist/generators/apps.d.ts.map +1 -0
- package/dist/generators/architecture-file-templates.d.ts +9 -0
- package/dist/generators/architecture-file-templates.d.ts.map +1 -0
- package/dist/generators/architecture-files.d.ts +5 -0
- package/dist/generators/architecture-files.d.ts.map +1 -0
- package/dist/generators/barrels/index.d.ts +6 -0
- package/dist/generators/barrels/index.d.ts.map +1 -0
- package/dist/generators/barrels/recursive.d.ts +44 -0
- package/dist/generators/barrels/recursive.d.ts.map +1 -0
- package/dist/generators/barrels/utils.d.ts +56 -0
- package/dist/generators/barrels/utils.d.ts.map +1 -0
- package/dist/generators/barrels.d.ts +31 -0
- package/dist/generators/barrels.d.ts.map +1 -0
- package/dist/generators/eslint.d.ts +47 -0
- package/dist/generators/eslint.d.ts.map +1 -0
- package/dist/generators/layer-folders.d.ts +16 -0
- package/dist/generators/layer-folders.d.ts.map +1 -0
- package/dist/generators/migration-assistant.d.ts +7 -0
- package/dist/generators/migration-assistant.d.ts.map +1 -0
- package/dist/generators/migration-audit.d.ts +28 -0
- package/dist/generators/migration-audit.d.ts.map +1 -0
- package/dist/generators/migration-stubs.d.ts +7 -0
- package/dist/generators/migration-stubs.d.ts.map +1 -0
- package/dist/generators/package-json.d.ts +11 -0
- package/dist/generators/package-json.d.ts.map +1 -0
- package/dist/generators/port-analyzer.d.ts +56 -0
- package/dist/generators/port-analyzer.d.ts.map +1 -0
- package/dist/generators/reap.d.ts +11 -0
- package/dist/generators/reap.d.ts.map +1 -0
- package/dist/generators/root-file-templates.d.ts +8 -0
- package/dist/generators/root-file-templates.d.ts.map +1 -0
- package/dist/generators/root-files.d.ts +5 -0
- package/dist/generators/root-files.d.ts.map +1 -0
- package/dist/generators/stubs/index.d.ts +4 -0
- package/dist/generators/stubs/index.d.ts.map +1 -0
- package/dist/generators/stubs/stub-templates.d.ts +3 -0
- package/dist/generators/stubs/stub-templates.d.ts.map +1 -0
- package/dist/generators/stubs.d.ts +5 -0
- package/dist/generators/stubs.d.ts.map +1 -0
- package/dist/generators/test-generator.d.ts +7 -0
- package/dist/generators/test-generator.d.ts.map +1 -0
- package/dist/generators/test-templates/data-builder.d.ts +2 -0
- package/dist/generators/test-templates/data-builder.d.ts.map +1 -0
- package/dist/generators/test-templates/enhanced-test-double.d.ts +2 -0
- package/dist/generators/test-templates/enhanced-test-double.d.ts.map +1 -0
- package/dist/generators/test-templates/index.d.ts +5 -0
- package/dist/generators/test-templates/index.d.ts.map +1 -0
- package/dist/generators/test-templates/integration-test.d.ts +2 -0
- package/dist/generators/test-templates/integration-test.d.ts.map +1 -0
- package/dist/generators/test-templates/unit-test.d.ts +2 -0
- package/dist/generators/test-templates/unit-test.d.ts.map +1 -0
- package/dist/generators/tsconfig.d.ts +16 -0
- package/dist/generators/tsconfig.d.ts.map +1 -0
- package/dist/generators/validators/index.d.ts +11 -0
- package/dist/generators/validators/index.d.ts.map +1 -0
- package/dist/generators/validators/validate-dependencies.d.ts +7 -0
- package/dist/generators/validators/validate-dependencies.d.ts.map +1 -0
- package/dist/generators/validators/validate-manifest-sync.d.ts +5 -0
- package/dist/generators/validators/validate-manifest-sync.d.ts.map +1 -0
- package/dist/generators/validators/validate-port-adapter.d.ts +5 -0
- package/dist/generators/validators/validate-port-adapter.d.ts.map +1 -0
- package/dist/generators/validators/validation-types.d.ts +20 -0
- package/dist/generators/validators/validation-types.d.ts.map +1 -0
- package/dist/generators/validators.d.ts +7 -0
- package/dist/generators/validators.d.ts.map +1 -0
- package/dist/generators/wiring.d.ts +20 -0
- package/dist/generators/wiring.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8070 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts +13 -0
- package/dist/infrastructure/adapters/atomic-file-system.adapter.d.ts.map +1 -0
- package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts +12 -0
- package/dist/infrastructure/adapters/file-system-workspace.adapter.d.ts.map +1 -0
- package/dist/infrastructure/adapters/in-memory-config-double.d.ts +30 -0
- package/dist/infrastructure/adapters/in-memory-config-double.d.ts.map +1 -0
- package/dist/infrastructure/adapters/index.d.ts +5 -0
- package/dist/infrastructure/adapters/index.d.ts.map +1 -0
- package/dist/infrastructure/adapters/yaml-config.adapter.d.ts +38 -0
- package/dist/infrastructure/adapters/yaml-config.adapter.d.ts.map +1 -0
- package/dist/infrastructure/index.d.ts +2 -0
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/linter.d.ts +7 -0
- package/dist/linter.d.ts.map +1 -0
- package/dist/loaders/index.d.ts +2 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/loaders/manifest-merge-loader.d.ts +3 -0
- package/dist/loaders/manifest-merge-loader.d.ts.map +1 -0
- package/dist/lock.d.ts +14 -0
- package/dist/lock.d.ts.map +1 -0
- package/dist/manifest-service.d.ts +10 -0
- package/dist/manifest-service.d.ts.map +1 -0
- package/dist/migration-report.d.ts +12 -0
- package/dist/migration-report.d.ts.map +1 -0
- package/dist/preflight.d.ts +7 -0
- package/dist/preflight.d.ts.map +1 -0
- package/dist/refactoring/git-operations.d.ts +9 -0
- package/dist/refactoring/git-operations.d.ts.map +1 -0
- package/dist/refactoring/impact-analyzer.d.ts +23 -0
- package/dist/refactoring/impact-analyzer.d.ts.map +1 -0
- package/dist/refactoring/index.d.ts +6 -0
- package/dist/refactoring/index.d.ts.map +1 -0
- package/dist/refactoring/refactoring-engine.d.ts +40 -0
- package/dist/refactoring/refactoring-engine.d.ts.map +1 -0
- package/dist/refactoring/refactoring-patterns/base-pattern.d.ts +37 -0
- package/dist/refactoring/refactoring-patterns/base-pattern.d.ts.map +1 -0
- package/dist/refactoring/refactoring-patterns/index.d.ts +5 -0
- package/dist/refactoring/refactoring-patterns/index.d.ts.map +1 -0
- package/dist/refactoring/refactoring-patterns/refactoring-utils.d.ts +8 -0
- package/dist/refactoring/refactoring-patterns/refactoring-utils.d.ts.map +1 -0
- package/dist/refactoring/refactoring-patterns/rename-entity.pattern.d.ts +19 -0
- package/dist/refactoring/refactoring-patterns/rename-entity.pattern.d.ts.map +1 -0
- package/dist/refactoring/refactoring-patterns/rename-port.pattern.d.ts +42 -0
- package/dist/refactoring/refactoring-patterns/rename-port.pattern.d.ts.map +1 -0
- package/dist/refactoring/refactoring-patterns/rename-use-case.pattern.d.ts +40 -0
- package/dist/refactoring/refactoring-patterns/rename-use-case.pattern.d.ts.map +1 -0
- package/dist/refactoring/safe-refactoring-orchestrator.d.ts +24 -0
- package/dist/refactoring/safe-refactoring-orchestrator.d.ts.map +1 -0
- package/dist/refactoring/validation-suite.d.ts +20 -0
- package/dist/refactoring/validation-suite.d.ts.map +1 -0
- package/dist/results.d.ts +16 -0
- package/dist/results.d.ts.map +1 -0
- package/dist/sync-engine-helpers.d.ts +15 -0
- package/dist/sync-engine-helpers.d.ts.map +1 -0
- package/dist/sync-engine-init.d.ts +12 -0
- package/dist/sync-engine-init.d.ts.map +1 -0
- package/dist/sync-engine.d.ts +21 -0
- package/dist/sync-engine.d.ts.map +1 -0
- package/dist/template-engine.d.ts +3 -0
- package/dist/template-engine.d.ts.map +1 -0
- package/dist/templates/__example__/files/example-output.txt +9 -0
- package/dist/templates/__example__/manifest.json +44 -0
- package/dist/templates/adobe-creative-production/README.md +89 -0
- package/dist/templates/adobe-creative-production/files/.env.adobe-creative-production.example +6 -0
- package/dist/templates/adobe-creative-production/files/src/domain/ports/out/creative-production.port.ts +62 -0
- package/dist/templates/adobe-creative-production/files/src/infrastructure/adobe/creative-production/creative-production.adapter.ts +144 -0
- package/dist/templates/adobe-creative-production/manifest.json +25 -0
- package/dist/templates/adobe-express/README.md +85 -0
- package/dist/templates/adobe-express/files/.env.adobe-express.example +7 -0
- package/dist/templates/adobe-express/files/src/domain/ports/out/express.port.ts +47 -0
- package/dist/templates/adobe-express/files/src/infrastructure/adobe/express/express.adapter.ts +155 -0
- package/dist/templates/adobe-express/manifest.json +32 -0
- package/dist/templates/adobe-firefly-composite/README.md +75 -0
- package/dist/templates/adobe-firefly-composite/files/.env.adobe-composite.example +5 -0
- package/dist/templates/adobe-firefly-composite/files/src/domain/ports/out/composite.port.ts +39 -0
- package/dist/templates/adobe-firefly-composite/files/src/infrastructure/adobe/composite/composite.adapter.ts +102 -0
- package/dist/templates/adobe-firefly-composite/manifest.json +32 -0
- package/dist/templates/adobe-firefly-content-tagging/README.md +70 -0
- package/dist/templates/adobe-firefly-content-tagging/files/.env.adobe-content-tagging.example +4 -0
- package/dist/templates/adobe-firefly-content-tagging/files/src/domain/ports/out/content-tagging.port.ts +28 -0
- package/dist/templates/adobe-firefly-content-tagging/files/src/infrastructure/adobe/content-tagging/content-tagging.adapter.ts +120 -0
- package/dist/templates/adobe-firefly-content-tagging/manifest.json +31 -0
- package/dist/templates/adobe-firefly-core/README.md +147 -0
- package/dist/templates/adobe-firefly-core/files/.env.adobe.example +15 -0
- package/dist/templates/adobe-firefly-core/files/src/domain/ports/out/firefly-auth.port.ts +11 -0
- package/dist/templates/adobe-firefly-core/files/src/domain/ports/out/firefly-job.port.ts +50 -0
- package/dist/templates/adobe-firefly-core/files/src/domain/ports/out/firefly-storage.port.ts +20 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/auth/ims-token-provider.adapter.ts +112 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/auth/smoke-token.ts +17 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/errors/firefly-errors.ts +91 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/http/firefly-client.ts +135 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/index.ts +46 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/job-poller.ts +52 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/job-port.ts +149 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/job-result.ts +113 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/jobs/webhook-verifier.ts +67 -0
- package/dist/templates/adobe-firefly-core/files/src/infrastructure/adobe/storage/passthrough-storage.adapter.ts +36 -0
- package/dist/templates/adobe-firefly-core/manifest.json +86 -0
- package/dist/templates/adobe-firefly-custom-models/README.md +96 -0
- package/dist/templates/adobe-firefly-custom-models/files/.env.adobe-custom-models.example +6 -0
- package/dist/templates/adobe-firefly-custom-models/files/src/domain/ports/out/custom-model.port.ts +77 -0
- package/dist/templates/adobe-firefly-custom-models/files/src/infrastructure/adobe/custom-models/firefly-custom-model.adapter.ts +199 -0
- package/dist/templates/adobe-firefly-custom-models/manifest.json +33 -0
- package/dist/templates/adobe-firefly-generate/README.md +86 -0
- package/dist/templates/adobe-firefly-generate/files/.env.adobe-generate.example +5 -0
- package/dist/templates/adobe-firefly-generate/files/src/domain/ports/out/image-generation.port.ts +61 -0
- package/dist/templates/adobe-firefly-generate/files/src/infrastructure/adobe/generate/firefly-generate.adapter.ts +167 -0
- package/dist/templates/adobe-firefly-generate/manifest.json +45 -0
- package/dist/templates/adobe-firefly-media/README.md +99 -0
- package/dist/templates/adobe-firefly-media/files/.env.adobe-media.example +8 -0
- package/dist/templates/adobe-firefly-media/files/src/domain/ports/out/media-generation.port.ts +80 -0
- package/dist/templates/adobe-firefly-media/files/src/infrastructure/adobe/media/firefly-media.adapter.ts +161 -0
- package/dist/templates/adobe-firefly-media/manifest.json +32 -0
- package/dist/templates/adobe-firefly-storage-azure/README.md +88 -0
- package/dist/templates/adobe-firefly-storage-azure/files/.env.adobe-storage-azure.example +9 -0
- package/dist/templates/adobe-firefly-storage-azure/files/src/infrastructure/adobe/storage/azure-blob-presign.adapter.ts +171 -0
- package/dist/templates/adobe-firefly-storage-azure/files/src/infrastructure/adobe/storage/azure-register.ts +15 -0
- package/dist/templates/adobe-firefly-storage-azure/manifest.json +37 -0
- package/dist/templates/adobe-firefly-storage-gcs/README.md +85 -0
- package/dist/templates/adobe-firefly-storage-gcs/files/.env.adobe-storage-gcs.example +8 -0
- package/dist/templates/adobe-firefly-storage-gcs/files/src/infrastructure/adobe/storage/gcs-presign.adapter.ts +100 -0
- package/dist/templates/adobe-firefly-storage-gcs/files/src/infrastructure/adobe/storage/gcs-register.ts +15 -0
- package/dist/templates/adobe-firefly-storage-gcs/manifest.json +33 -0
- package/dist/templates/adobe-firefly-storage-s3/README.md +76 -0
- package/dist/templates/adobe-firefly-storage-s3/files/.env.adobe-storage-s3.example +8 -0
- package/dist/templates/adobe-firefly-storage-s3/files/src/infrastructure/adobe/storage/s3-presign.adapter.ts +109 -0
- package/dist/templates/adobe-firefly-storage-s3/files/src/infrastructure/adobe/storage/s3-register.ts +15 -0
- package/dist/templates/adobe-firefly-storage-s3/manifest.json +31 -0
- package/dist/templates/adobe-firefly-upscale/README.md +68 -0
- package/dist/templates/adobe-firefly-upscale/files/.env.adobe-upscale.example +3 -0
- package/dist/templates/adobe-firefly-upscale/files/src/domain/ports/out/upscale.port.ts +25 -0
- package/dist/templates/adobe-firefly-upscale/files/src/infrastructure/adobe/upscale/upscale.adapter.ts +85 -0
- package/dist/templates/adobe-firefly-upscale/manifest.json +30 -0
- package/dist/templates/adobe-illustrator/README.md +80 -0
- package/dist/templates/adobe-illustrator/files/.env.adobe-illustrator.example +7 -0
- package/dist/templates/adobe-illustrator/files/src/domain/ports/out/illustrator.port.ts +51 -0
- package/dist/templates/adobe-illustrator/files/src/infrastructure/adobe/illustrator/illustrator.adapter.ts +167 -0
- package/dist/templates/adobe-illustrator/manifest.json +38 -0
- package/dist/templates/adobe-ims-spa/README.md +99 -0
- package/dist/templates/adobe-ims-spa/files/.env.adobe-ims.example +12 -0
- package/dist/templates/adobe-ims-spa/files/app/api/auth/callback/route.ts +84 -0
- package/dist/templates/adobe-ims-spa/files/app/api/auth/login/route.ts +30 -0
- package/dist/templates/adobe-ims-spa/files/app/api/auth/logout/route.ts +24 -0
- package/dist/templates/adobe-ims-spa/files/app/api/auth/me/route.ts +18 -0
- package/dist/templates/adobe-ims-spa/files/middleware.ts +74 -0
- package/dist/templates/adobe-ims-spa/files/src/domain/ports/out/ims-auth.port.ts +24 -0
- package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/adobe-ims-auth.adapter.ts +71 -0
- package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/config.ts +34 -0
- package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/ims-client.ts +85 -0
- package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/pkce.ts +37 -0
- package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/token-store.ts +54 -0
- package/dist/templates/adobe-ims-spa/files/src/infrastructure/auth/adobe-ims/user-profile-mapper.ts +12 -0
- package/dist/templates/adobe-ims-spa/files/src/lib/auth/get-current-user.ts +56 -0
- package/dist/templates/adobe-ims-spa/files/src/lib/auth/require-auth.ts +11 -0
- package/dist/templates/adobe-ims-spa/manifest.json +88 -0
- package/dist/templates/adobe-indesign/README.md +76 -0
- package/dist/templates/adobe-indesign/files/.env.adobe-indesign.example +7 -0
- package/dist/templates/adobe-indesign/files/src/domain/ports/out/indesign.port.ts +43 -0
- package/dist/templates/adobe-indesign/files/src/infrastructure/adobe/indesign/indesign.adapter.ts +160 -0
- package/dist/templates/adobe-indesign/manifest.json +38 -0
- package/dist/templates/adobe-lightroom/README.md +81 -0
- package/dist/templates/adobe-lightroom/files/.env.adobe-lightroom.example +7 -0
- package/dist/templates/adobe-lightroom/files/src/domain/ports/out/lightroom.port.ts +36 -0
- package/dist/templates/adobe-lightroom/files/src/infrastructure/adobe/lightroom/lightroom.adapter.ts +145 -0
- package/dist/templates/adobe-lightroom/manifest.json +39 -0
- package/dist/templates/adobe-photoshop/README.md +87 -0
- package/dist/templates/adobe-photoshop/files/.env.adobe-photoshop.example +7 -0
- package/dist/templates/adobe-photoshop/files/src/domain/ports/out/photoshop-automation.port.ts +60 -0
- package/dist/templates/adobe-photoshop/files/src/infrastructure/adobe/photoshop/photoshop-automation.adapter.ts +180 -0
- package/dist/templates/adobe-photoshop/manifest.json +45 -0
- package/dist/templates/adobe-substance-3d/README.md +88 -0
- package/dist/templates/adobe-substance-3d/files/.env.adobe-substance-3d.example +12 -0
- package/dist/templates/adobe-substance-3d/files/src/domain/ports/out/substance-3d.port.ts +45 -0
- package/dist/templates/adobe-substance-3d/files/src/infrastructure/adobe/substance-3d/substance-3d.adapter.ts +177 -0
- package/dist/templates/adobe-substance-3d/manifest.json +39 -0
- package/dist/templates/agents-md/README.md +55 -0
- package/dist/templates/agents-md/files/.agents/architecture.md +42 -0
- package/dist/templates/agents-md/files/.agents/git.md +30 -0
- package/dist/templates/agents-md/files/.agents/session-log.md +37 -0
- package/dist/templates/agents-md/files/.agents/tech-stack.md +34 -0
- package/dist/templates/agents-md/files/.agents/testing.md +30 -0
- package/dist/templates/agents-md/files/AGENTS.md +97 -0
- package/dist/templates/agents-md/manifest.json +49 -0
- package/dist/templates/auth-mock/README.md +57 -0
- package/dist/templates/auth-mock/files/.env.auth.example +9 -0
- package/dist/templates/auth-mock/files/middleware.ts +28 -0
- package/dist/templates/auth-mock/manifest.json +23 -0
- package/dist/templates/bedrock-agentcore-runtime/README.md +68 -0
- package/dist/templates/bedrock-agentcore-runtime/files/.env.agentcore.example +19 -0
- package/dist/templates/bedrock-agentcore-runtime/files/.github/workflows/deploy-agentcore.yml +100 -0
- package/dist/templates/bedrock-agentcore-runtime/files/Dockerfile.agentcore +33 -0
- package/dist/templates/bedrock-agentcore-runtime/files/agentcore/agentcore.json +16 -0
- package/dist/templates/bedrock-agentcore-runtime/files/agentcore/aws-targets.json +7 -0
- package/dist/templates/bedrock-agentcore-runtime/files/iam/agentcore-runtime-role.policy.json +49 -0
- package/dist/templates/bedrock-agentcore-runtime/files/infra/agentcore-stack.ts +90 -0
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/invocations.handler.ts +152 -0
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/ping.handler.ts +13 -0
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/http/server.ts +134 -0
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/payload.ts +63 -0
- package/dist/templates/bedrock-agentcore-runtime/files/src/infrastructure/agentcore/runtime/session.ts +58 -0
- package/dist/templates/bedrock-agentcore-runtime/manifest.json +89 -0
- package/dist/templates/bedrock-agentcore-services/README.md +65 -0
- package/dist/templates/bedrock-agentcore-services/files/.env.agentcore-services.example +20 -0
- package/dist/templates/bedrock-agentcore-services/files/agentcore/agentcore-services.json +14 -0
- package/dist/templates/bedrock-agentcore-services/files/src/domain/ports/out/agent-identity.port.ts +26 -0
- package/dist/templates/bedrock-agentcore-services/files/src/domain/ports/out/agent-memory.port.ts +30 -0
- package/dist/templates/bedrock-agentcore-services/files/src/domain/ports/out/tool-gateway.port.ts +27 -0
- package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/gateway/agentcore-gateway.adapter.ts +103 -0
- package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/gateway/mcp-tool-mapper.ts +44 -0
- package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/identity/agentcore-identity.adapter.ts +82 -0
- package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/identity/idp-bridge.ts +74 -0
- package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/memory/agentcore-memory.adapter.ts +82 -0
- package/dist/templates/bedrock-agentcore-services/files/src/infrastructure/agentcore/memory/memory-config.ts +45 -0
- package/dist/templates/bedrock-agentcore-services/manifest.json +97 -0
- package/dist/templates/better-auth/README.md +60 -0
- package/dist/templates/better-auth/files/.env.better-auth.example +20 -0
- package/dist/templates/better-auth/files/app/api/auth/[...all]/route.ts +5 -0
- package/dist/templates/better-auth/files/src/db/index.ts +10 -0
- package/dist/templates/better-auth/files/src/db/migrations/0001_better_auth.sql +49 -0
- package/dist/templates/better-auth/files/src/db/schema/better-auth.ts +57 -0
- package/dist/templates/better-auth/files/src/lib/auth-client.ts +13 -0
- package/dist/templates/better-auth/files/src/lib/auth.ts +72 -0
- package/dist/templates/better-auth/manifest.json +71 -0
- package/dist/templates/bullmq/README.md +61 -0
- package/dist/templates/bullmq/files/.env.bullmq.example +34 -0
- package/dist/templates/bullmq/files/app/admin/queues/[[...slug]]/route.ts +103 -0
- package/dist/templates/bullmq/files/scripts/start-worker.ts +55 -0
- package/dist/templates/bullmq/files/server/startup/start-workers.ts +171 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/connection.ts +105 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/fallback/sync-executor.ts +96 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/index.ts +30 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/ai-generation.job.ts +53 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/email.job.ts +42 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/export.job.ts +49 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/image-processing.job.ts +48 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/jobs/webhook.job.ts +139 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/parse-int-env.ts +28 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/queues.ts +153 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/scheduler/job-scheduler.ts +70 -0
- package/dist/templates/bullmq/files/src/infrastructure/queue/workers.ts +101 -0
- package/dist/templates/bullmq/manifest.json +120 -0
- package/dist/templates/ci-github-actions/README.md +62 -0
- package/dist/templates/ci-github-actions/files/.github/dependabot.yml +20 -0
- package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +103 -0
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +30 -0
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +32 -0
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +39 -0
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vps.yml +34 -0
- package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +58 -0
- package/dist/templates/ci-github-actions/files/fly.toml +23 -0
- package/dist/templates/ci-github-actions/manifest.json +100 -0
- package/dist/templates/clerk/README.md +59 -0
- package/dist/templates/clerk/files/.env.clerk.example +11 -0
- package/dist/templates/clerk/files/app/(protected)/layout.tsx +18 -0
- package/dist/templates/clerk/files/app/api/protected-example/route.ts +17 -0
- package/dist/templates/clerk/files/middleware.ts +25 -0
- package/dist/templates/clerk/files/src/lib/auth.ts +12 -0
- package/dist/templates/clerk/files/src/lib/role-guard.tsx +32 -0
- package/dist/templates/clerk/manifest.json +67 -0
- package/dist/templates/design-system/README.md +60 -0
- package/dist/templates/design-system/files/.storybook/main.ts +9 -0
- package/dist/templates/design-system/files/.storybook/preview.ts +13 -0
- package/dist/templates/design-system/files/DESIGN.md +76 -0
- package/dist/templates/design-system/files/src/components/ui/button.stories.tsx +17 -0
- package/dist/templates/design-system/files/src/components/ui/button.tsx +61 -0
- package/dist/templates/design-system/files/src/components/ui/card.tsx +40 -0
- package/dist/templates/design-system/files/src/components/ui/index.ts +6 -0
- package/dist/templates/design-system/files/src/components/ui/input.tsx +29 -0
- package/dist/templates/design-system/files/src/lib/cn.ts +13 -0
- package/dist/templates/design-system/files/src/styles/globals.css +37 -0
- package/dist/templates/design-system/files/src/styles/theme.ts +56 -0
- package/dist/templates/design-system/files/src/styles/tokens.css +73 -0
- package/dist/templates/design-system/files/tailwind.config.ts +58 -0
- package/dist/templates/design-system/manifest.json +81 -0
- package/dist/templates/docker/README.md +62 -0
- package/dist/templates/docker/files/.dockerignore +34 -0
- package/dist/templates/docker/files/.github/workflows/docker-build.yml +74 -0
- package/dist/templates/docker/files/Dockerfile +57 -0
- package/dist/templates/docker/files/docker-compose.ci.yml +22 -0
- package/dist/templates/docker/files/docker-compose.override.yml +20 -0
- package/dist/templates/docker/files/docker-compose.yml +109 -0
- package/dist/templates/docker/manifest.json +59 -0
- package/dist/templates/env-setup/README.md +70 -0
- package/dist/templates/env-setup/files/.env.example +28 -0
- package/dist/templates/env-setup/files/.gitignore.hexagen +16 -0
- package/dist/templates/env-setup/files/SETUP.md +70 -0
- package/dist/templates/env-setup/files/scripts/check-env.ts +95 -0
- package/dist/templates/env-setup/files/src/config/env.client.ts +18 -0
- package/dist/templates/env-setup/files/src/config/env.server.ts +49 -0
- package/dist/templates/env-setup/files/src/config/env.ts +14 -0
- package/dist/templates/env-setup/files/src/config/load-env.ts +40 -0
- package/dist/templates/env-setup/manifest.json +55 -0
- package/dist/templates/error-handling/README.md +72 -0
- package/dist/templates/error-handling/files/.env.sentry.example +8 -0
- package/dist/templates/error-handling/files/app/components/ErrorBoundary.tsx +49 -0
- package/dist/templates/error-handling/files/app/components/ErrorFallback.tsx +35 -0
- package/dist/templates/error-handling/files/server/middleware/error-handler.ts +131 -0
- package/dist/templates/error-handling/files/src/application/errors/application.error.ts +33 -0
- package/dist/templates/error-handling/files/src/domain/errors/authorization.error.ts +20 -0
- package/dist/templates/error-handling/files/src/domain/errors/domain.error.ts +23 -0
- package/dist/templates/error-handling/files/src/domain/errors/not-found.error.ts +11 -0
- package/dist/templates/error-handling/files/src/domain/errors/validation.error.ts +17 -0
- package/dist/templates/error-handling/files/src/infrastructure/errors/external-service.error.ts +24 -0
- package/dist/templates/error-handling/files/src/infrastructure/errors/infrastructure.error.ts +22 -0
- package/dist/templates/error-handling/files/src/infrastructure/errors/llm-errors.ts +57 -0
- package/dist/templates/error-handling/files/src/shared/errors/error-codes.ts +29 -0
- package/dist/templates/error-handling/files/src/shared/result.ts +38 -0
- package/dist/templates/error-handling/manifest.json +63 -0
- package/dist/templates/eslint-no-console/README.md +78 -0
- package/dist/templates/eslint-no-console/files/eslint.no-console.mjs +35 -0
- package/dist/templates/eslint-no-console/manifest.json +28 -0
- package/dist/templates/github-oauth/README.md +61 -0
- package/dist/templates/github-oauth/files/.env.github-oauth.example +13 -0
- package/dist/templates/github-oauth/files/app/api/auth/callback/github/route.ts +105 -0
- package/dist/templates/github-oauth/files/app/api/auth/login/github/route.ts +33 -0
- package/dist/templates/github-oauth/files/app/api/auth/logout/github/route.ts +8 -0
- package/dist/templates/github-oauth/files/app/api/auth/me/route.ts +10 -0
- package/dist/templates/github-oauth/files/middleware.ts +59 -0
- package/dist/templates/github-oauth/files/src/infrastructure/auth/github/config.ts +34 -0
- package/dist/templates/github-oauth/files/src/infrastructure/auth/github/github-auth.adapter.ts +12 -0
- package/dist/templates/github-oauth/files/src/infrastructure/auth/github/github-client.ts +95 -0
- package/dist/templates/github-oauth/files/src/infrastructure/auth/github/github-user.ts +8 -0
- package/dist/templates/github-oauth/files/src/infrastructure/auth/github/session-store.ts +56 -0
- package/dist/templates/github-oauth/files/src/infrastructure/auth/github/user-profile-mapper.ts +24 -0
- package/dist/templates/github-oauth/files/src/lib/auth/get-current-user.ts +31 -0
- package/dist/templates/github-oauth/files/src/lib/auth/require-auth.ts +11 -0
- package/dist/templates/github-oauth/manifest.json +83 -0
- package/dist/templates/google-oauth/README.md +70 -0
- package/dist/templates/google-oauth/files/.env.google-oauth.example +14 -0
- package/dist/templates/google-oauth/files/app/api/auth/callback/google/route.ts +78 -0
- package/dist/templates/google-oauth/files/app/api/auth/login/google/route.ts +34 -0
- package/dist/templates/google-oauth/files/app/api/auth/logout/google/route.ts +8 -0
- package/dist/templates/google-oauth/files/app/api/auth/me/route.ts +13 -0
- package/dist/templates/google-oauth/files/middleware.ts +62 -0
- package/dist/templates/google-oauth/files/src/infrastructure/auth/google/config.ts +29 -0
- package/dist/templates/google-oauth/files/src/infrastructure/auth/google/google-auth.adapter.ts +22 -0
- package/dist/templates/google-oauth/files/src/infrastructure/auth/google/google-client.ts +65 -0
- package/dist/templates/google-oauth/files/src/infrastructure/auth/google/google-user.ts +9 -0
- package/dist/templates/google-oauth/files/src/infrastructure/auth/google/session-store.ts +62 -0
- package/dist/templates/google-oauth/files/src/infrastructure/auth/google/user-profile-mapper.ts +24 -0
- package/dist/templates/google-oauth/files/src/lib/auth/get-current-user.ts +36 -0
- package/dist/templates/google-oauth/files/src/lib/auth/require-auth.ts +13 -0
- package/dist/templates/google-oauth/manifest.json +82 -0
- package/dist/templates/langgraph/README.md +60 -0
- package/dist/templates/langgraph/files/.env.langgraph.example +26 -0
- package/dist/templates/langgraph/files/app/api/agent/invoke/route.ts +48 -0
- package/dist/templates/langgraph/files/app/api/agent/resume/route.ts +66 -0
- package/dist/templates/langgraph/files/app/api/agent/stream/route.ts +63 -0
- package/dist/templates/langgraph/files/src/domain/ports/out/agent-graph.port.ts +78 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/adapters/langgraph.adapter.ts +185 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/index.ts +84 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/memory-checkpointer.ts +12 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/postgres-checkpointer.ts +20 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/redis-checkpointer.ts +25 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/checkpointers/supabase-checkpointer.ts +26 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/edges/routing.ts +31 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/graphs/research-agent.graph.ts +81 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/graphs/simple-chain.graph.ts +81 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/index.ts +23 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/human-review.node.ts +34 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/input-processor.node.ts +31 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/llm-call.node.ts +38 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/output-formatter.node.ts +27 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/planner.node.ts +51 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/researcher.node.ts +63 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/nodes/synthesiser.node.ts +62 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/state/graph-state.ts +57 -0
- package/dist/templates/langgraph/files/src/infrastructure/langgraph/streaming/token-stream.ts +84 -0
- package/dist/templates/langgraph/manifest.json +131 -0
- package/dist/templates/llm-adapter/README.md +63 -0
- package/dist/templates/llm-adapter/files/.env.llm.example +49 -0
- package/dist/templates/llm-adapter/files/src/domain/ports/out/llm-client.port.ts +36 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/anthropic-llm-client.adapter.ts +111 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/azure-openai-llm-client.adapter.ts +105 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/ollama-llm-client.adapter.ts +102 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/openai-llm-client.adapter.ts +104 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/adapters/xai-llm-client.adapter.ts +104 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/constants/capabilities.ts +38 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/constants/models.ts +39 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/errors/llm-errors.ts +83 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/index.ts +39 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/llm-router.ts +117 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/router/provider-registry.ts +45 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/smoke-test.ts +25 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/parse-env.ts +8 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/retry.ts +39 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/structured-output.ts +78 -0
- package/dist/templates/llm-adapter/files/src/infrastructure/llm/utils/timeout.ts +22 -0
- package/dist/templates/llm-adapter/manifest.json +113 -0
- package/dist/templates/llm-adapter-bedrock/README.md +58 -0
- package/dist/templates/llm-adapter-bedrock/files/.env.bedrock.example +23 -0
- package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-llm-client.adapter.ts +126 -0
- package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/adapters/bedrock-register.ts +20 -0
- package/dist/templates/llm-adapter-bedrock/files/src/infrastructure/llm/errors/bedrock-errors.ts +42 -0
- package/dist/templates/llm-adapter-bedrock/manifest.json +51 -0
- package/dist/templates/magic-link/README.md +66 -0
- package/dist/templates/magic-link/files/.env.magic-link.example +24 -0
- package/dist/templates/magic-link/files/app/api/auth/logout/route.ts +12 -0
- package/dist/templates/magic-link/files/app/api/auth/magic-link/request/route.ts +34 -0
- package/dist/templates/magic-link/files/app/api/auth/magic-link/verify/route.ts +41 -0
- package/dist/templates/magic-link/files/app/api/auth/me/route.ts +10 -0
- package/dist/templates/magic-link/files/middleware.ts +60 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/config.ts +17 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/email-templates.ts +46 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/email-transport.ts +71 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/magic-link-auth.adapter.ts +11 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/magic-link-store.ts +31 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/session-store.ts +56 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/token-generator.ts +71 -0
- package/dist/templates/magic-link/files/src/infrastructure/auth/magic-link/user-profile-mapper.ts +10 -0
- package/dist/templates/magic-link/files/src/lib/auth/get-current-user.ts +28 -0
- package/dist/templates/magic-link/files/src/lib/auth/require-auth.ts +11 -0
- package/dist/templates/magic-link/manifest.json +99 -0
- package/dist/templates/microsoft-entra/README.md +63 -0
- package/dist/templates/microsoft-entra/files/.env.microsoft-entra.example +17 -0
- package/dist/templates/microsoft-entra/files/app/api/auth/callback/entra/route.ts +93 -0
- package/dist/templates/microsoft-entra/files/app/api/auth/login/entra/route.ts +29 -0
- package/dist/templates/microsoft-entra/files/app/api/auth/logout/entra/route.ts +26 -0
- package/dist/templates/microsoft-entra/files/app/api/auth/me/route.ts +10 -0
- package/dist/templates/microsoft-entra/files/middleware.ts +59 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/config.ts +43 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/entra-auth.adapter.ts +14 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/entra-client.ts +82 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/entra-user.ts +9 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/group-role-mapper.ts +22 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/pkce.ts +20 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/session-store.ts +56 -0
- package/dist/templates/microsoft-entra/files/src/infrastructure/auth/entra/user-profile-mapper.ts +33 -0
- package/dist/templates/microsoft-entra/files/src/lib/auth/get-current-user.ts +31 -0
- package/dist/templates/microsoft-entra/files/src/lib/auth/require-auth.ts +11 -0
- package/dist/templates/microsoft-entra/manifest.json +93 -0
- package/dist/templates/nextauth/README.md +61 -0
- package/dist/templates/nextauth/files/.env.nextauth.example +16 -0
- package/dist/templates/nextauth/files/app/api/auth/[...nextauth]/route.ts +4 -0
- package/dist/templates/nextauth/files/middleware.ts +17 -0
- package/dist/templates/nextauth/files/src/auth.config.ts +41 -0
- package/dist/templates/nextauth/files/src/auth.ts +67 -0
- package/dist/templates/nextauth/files/types/next-auth.d.ts +16 -0
- package/dist/templates/nextauth/manifest.json +74 -0
- package/dist/templates/observability/README.md +69 -0
- package/dist/templates/observability/files/.env.observability.example +12 -0
- package/dist/templates/observability/files/.env.otel.example +7 -0
- package/dist/templates/observability/files/app/api/health/route.ts +37 -0
- package/dist/templates/observability/files/instrumentation.ts +52 -0
- package/dist/templates/observability/files/server/middleware/request-logger.ts +53 -0
- package/dist/templates/observability/files/src/infrastructure/logging/context.ts +21 -0
- package/dist/templates/observability/files/src/infrastructure/logging/correlation.ts +39 -0
- package/dist/templates/observability/files/src/infrastructure/logging/index.ts +12 -0
- package/dist/templates/observability/files/src/infrastructure/logging/logger.ts +68 -0
- package/dist/templates/observability/files/src/infrastructure/logging/redact.ts +89 -0
- package/dist/templates/observability/manifest.json +57 -0
- package/dist/templates/rate-limiting/README.md +63 -0
- package/dist/templates/rate-limiting/files/.env.rate-limit.example +21 -0
- package/dist/templates/rate-limiting/files/server/errors/rate-limit-exceeded.error.ts +43 -0
- package/dist/templates/rate-limiting/files/server/middleware/rate-limit.ts +79 -0
- package/dist/templates/rate-limiting/files/server/utils/get-client-ip.ts +27 -0
- package/dist/templates/rate-limiting/files/server/utils/rate-limiter.ts +82 -0
- package/dist/templates/rate-limiting/files/server/utils/session-id.ts +28 -0
- package/dist/templates/rate-limiting/files/types/rate-limit.d.ts +12 -0
- package/dist/templates/rate-limiting/manifest.json +66 -0
- package/dist/templates/shared-types/README.md +59 -0
- package/dist/templates/shared-types/files/.env.shared-types.example +14 -0
- package/dist/templates/shared-types/files/src/domain/value-objects/user-context.ts +11 -0
- package/dist/templates/shared-types/files/src/infrastructure/auth/mock-user.ts +16 -0
- package/dist/templates/shared-types/files/src/infrastructure/auth/session/session-manager.ts +59 -0
- package/dist/templates/shared-types/manifest.json +37 -0
- package/dist/templates/supabase/README.md +59 -0
- package/dist/templates/supabase/files/.env.supabase.example +15 -0
- package/dist/templates/supabase/files/drizzle.config.ts +15 -0
- package/dist/templates/supabase/files/scripts/gen-types.sh +9 -0
- package/dist/templates/supabase/files/scripts/migrate.ts +23 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/admin.ts +23 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/client.ts +16 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/drizzle/client.ts +17 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/drizzle/schema.ts +10 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/realtime/subscribe.ts +41 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/result.ts +30 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/server.ts +28 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/storage/delete.ts +17 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/storage/download.ts +17 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/storage/index.ts +4 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/storage/signed-url.ts +26 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/storage/upload.ts +24 -0
- package/dist/templates/supabase/files/src/infrastructure/supabase/types/database.types.ts +10 -0
- package/dist/templates/supabase/files/supabase/migrations/0001_example_rls.sql +23 -0
- package/dist/templates/supabase/files/supabase/seed.sql +7 -0
- package/dist/templates/supabase/manifest.json +133 -0
- package/dist/templates/supabase-auth/README.md +55 -0
- package/dist/templates/supabase-auth/files/app/api/auth/me/route.ts +10 -0
- package/dist/templates/supabase-auth/files/middleware.ts +108 -0
- package/dist/templates/supabase-auth/files/src/lib/auth/get-current-user.ts +46 -0
- package/dist/templates/supabase-auth/files/src/lib/auth/require-auth.ts +11 -0
- package/dist/templates/supabase-auth/manifest.json +40 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/manifest/apps.d.ts +24 -0
- package/dist/types/manifest/apps.d.ts.map +1 -0
- package/dist/types/manifest/bounded-context.d.ts +43 -0
- package/dist/types/manifest/bounded-context.d.ts.map +1 -0
- package/dist/types/manifest/generator.d.ts +51 -0
- package/dist/types/manifest/generator.d.ts.map +1 -0
- package/dist/types/manifest/helpers.d.ts +30 -0
- package/dist/types/manifest/helpers.d.ts.map +1 -0
- package/dist/types/manifest/index.d.ts +8 -0
- package/dist/types/manifest/index.d.ts.map +1 -0
- package/dist/types/manifest/layers.d.ts +32 -0
- package/dist/types/manifest/layers.d.ts.map +1 -0
- package/dist/types/manifest/manifest.d.ts +64 -0
- package/dist/types/manifest/manifest.d.ts.map +1 -0
- package/dist/types/manifest/monorepo.d.ts +94 -0
- package/dist/types/manifest/monorepo.d.ts.map +1 -0
- package/dist/types/manifest.d.ts +2 -0
- package/dist/types/manifest.d.ts.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { getQueue, QUEUE_NAMES } from "../queues";
|
|
2
|
+
import { isFallbackActive } from "../connection";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Definitions for recurring jobs. Edit this list in code — schedules are
|
|
6
|
+
* re-registered idempotently every time `scheduleRecurringJobs()` runs
|
|
7
|
+
* (typically at process startup, via server/startup/start-workers.ts), and
|
|
8
|
+
* any stale repeatable jobs that are no longer in this list are pruned.
|
|
9
|
+
* That avoids the classic BullMQ trap where a cron change leaves the old
|
|
10
|
+
* schedule running in Redis forever.
|
|
11
|
+
*/
|
|
12
|
+
interface RecurringJob {
|
|
13
|
+
queue: (typeof QUEUE_NAMES)[number];
|
|
14
|
+
jobName: string;
|
|
15
|
+
pattern: string; // Cron expression
|
|
16
|
+
data?: Record<string, unknown>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const RECURRING_JOBS: RecurringJob[] = [
|
|
20
|
+
// Example: a nightly cleanup at 02:00.
|
|
21
|
+
// {
|
|
22
|
+
// queue: "default",
|
|
23
|
+
// jobName: "daily-cleanup",
|
|
24
|
+
// pattern: "0 2 * * *",
|
|
25
|
+
// data: { mode: "soft" },
|
|
26
|
+
// },
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
export async function scheduleRecurringJobs(): Promise<void> {
|
|
30
|
+
if (isFallbackActive()) {
|
|
31
|
+
// eslint-disable-next-line no-console
|
|
32
|
+
console.warn(
|
|
33
|
+
"[bullmq:scheduler] fallback mode active — recurring jobs are not registered (no Redis).",
|
|
34
|
+
);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Group by queue so we make one repeatable-jobs round-trip per queue,
|
|
39
|
+
// not one per definition.
|
|
40
|
+
const desiredByQueue = new Map<string, RecurringJob[]>();
|
|
41
|
+
for (const def of RECURRING_JOBS) {
|
|
42
|
+
const list = desiredByQueue.get(def.queue) ?? [];
|
|
43
|
+
list.push(def);
|
|
44
|
+
desiredByQueue.set(def.queue, list);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
for (const queueName of QUEUE_NAMES) {
|
|
48
|
+
const queue = getQueue(queueName);
|
|
49
|
+
const desired = desiredByQueue.get(queueName) ?? [];
|
|
50
|
+
const desiredKeys = new Set(
|
|
51
|
+
desired.map((d) => `${d.jobName}:${d.pattern}`),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
// Prune any stale schedules not in the current desired set.
|
|
55
|
+
const existing = await queue.getRepeatableJobs();
|
|
56
|
+
for (const job of existing) {
|
|
57
|
+
const key = `${job.name}:${job.pattern}`;
|
|
58
|
+
if (!desiredKeys.has(key)) {
|
|
59
|
+
await queue.removeRepeatableByKey(job.key);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Register everything in the desired set; BullMQ dedupes by pattern + name.
|
|
64
|
+
for (const def of desired) {
|
|
65
|
+
await queue.add(def.jobName, def.data ?? {}, {
|
|
66
|
+
repeat: { pattern: def.pattern },
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Worker, type Job, type Processor } from "bullmq";
|
|
2
|
+
import { getRedisConnection, isFallbackActive } from "./connection";
|
|
3
|
+
import { parseIntEnv } from "./parse-int-env";
|
|
4
|
+
import { QUEUE_NAMES, type QueueName } from "./queues";
|
|
5
|
+
|
|
6
|
+
// The install-time default is interpolated as a string ("1", "2", "5", "10");
|
|
7
|
+
// the fallback after the `||` guards against the (unexpected) case where
|
|
8
|
+
// the placeholder wasn't replaced. WORKER_CONCURRENCY env overrides it via
|
|
9
|
+
// parseIntEnv, which logs + falls back if the env value is non-numeric.
|
|
10
|
+
const INSTALL_DEFAULT_CONCURRENCY = Number.parseInt("{concurrency}", 10) || 2;
|
|
11
|
+
const CONCURRENCY = parseIntEnv(
|
|
12
|
+
"WORKER_CONCURRENCY",
|
|
13
|
+
INSTALL_DEFAULT_CONCURRENCY,
|
|
14
|
+
1,
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const workers: Worker[] = [];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Map of (queueName, jobName) → handler. Each job file's bootstrap should
|
|
21
|
+
* register its handler here at import time so the dispatcher in this file
|
|
22
|
+
* can route to it without an explicit `if (job.name === ...)` chain.
|
|
23
|
+
*/
|
|
24
|
+
type JobHandler = (job: Job) => Promise<unknown>;
|
|
25
|
+
|
|
26
|
+
const handlers = new Map<string, JobHandler>();
|
|
27
|
+
|
|
28
|
+
function handlerKey(queue: QueueName, jobName: string): string {
|
|
29
|
+
return `${queue}:${jobName}`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Wire a job handler. Call this once per (queue, jobName) at module load —
|
|
34
|
+
* server/startup/start-workers.ts imports each enabled job file to trigger
|
|
35
|
+
* its registration before {@link startWorkers} is invoked.
|
|
36
|
+
*/
|
|
37
|
+
export function registerJobHandler(
|
|
38
|
+
queue: QueueName,
|
|
39
|
+
jobName: string,
|
|
40
|
+
handler: JobHandler,
|
|
41
|
+
): void {
|
|
42
|
+
handlers.set(handlerKey(queue, jobName), handler);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const dispatcher =
|
|
46
|
+
(queue: QueueName): Processor =>
|
|
47
|
+
async (job) => {
|
|
48
|
+
const handler = handlers.get(handlerKey(queue, job.name));
|
|
49
|
+
if (!handler) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
`worker(${queue}): no handler registered for job '${job.name}'. Did the job file import its registration block?`,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
return handler(job);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export function startWorkers(): Worker[] {
|
|
58
|
+
if (isFallbackActive()) {
|
|
59
|
+
// In fallback mode there's no Redis to subscribe to; jobs are executed
|
|
60
|
+
// synchronously by addJob() via the in-process executor. Workers stay
|
|
61
|
+
// unstarted, but the function is still callable so server bootstrap code
|
|
62
|
+
// doesn't need to branch.
|
|
63
|
+
// eslint-disable-next-line no-console
|
|
64
|
+
console.warn(
|
|
65
|
+
"[bullmq] startWorkers(): fallback mode active — no Workers started; jobs run inline via addJob().",
|
|
66
|
+
);
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const connection = getRedisConnection();
|
|
71
|
+
if (!connection) {
|
|
72
|
+
throw new Error(
|
|
73
|
+
"startWorkers(): Redis connection is null but fallback is not active. Check BULLMQ_FALLBACK_MODE.",
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
for (const queue of QUEUE_NAMES) {
|
|
78
|
+
const worker = new Worker(queue, dispatcher(queue), {
|
|
79
|
+
connection,
|
|
80
|
+
concurrency: CONCURRENCY,
|
|
81
|
+
});
|
|
82
|
+
worker.on("failed", (job, err) => {
|
|
83
|
+
// eslint-disable-next-line no-console
|
|
84
|
+
console.error(
|
|
85
|
+
`[bullmq:${queue}] job failed`,
|
|
86
|
+
{ jobId: job?.id, jobName: job?.name, err: err.message },
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
worker.on("error", (err) => {
|
|
90
|
+
// eslint-disable-next-line no-console
|
|
91
|
+
console.error(`[bullmq:${queue}] worker error`, { err: err.message });
|
|
92
|
+
});
|
|
93
|
+
workers.push(worker);
|
|
94
|
+
}
|
|
95
|
+
return workers;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export async function stopWorkers(): Promise<void> {
|
|
99
|
+
await Promise.all(workers.map((w) => w.close().catch(() => undefined)));
|
|
100
|
+
workers.length = 0;
|
|
101
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "bullmq",
|
|
3
|
+
"name": "BullMQ",
|
|
4
|
+
"description": "Typed BullMQ job queues with workers, scheduler, Redis fallback to in-process sync execution, optional Bull Board dashboard, and per-queue routing. Designed for background processing (image generation, email, webhooks, exports) where tasks are too slow for request/response cycles.",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"requires": ["env-setup"],
|
|
7
|
+
"conflicts": [],
|
|
8
|
+
"questions": [
|
|
9
|
+
{
|
|
10
|
+
"id": "worker_mode",
|
|
11
|
+
"type": "select",
|
|
12
|
+
"prompt": "Where does the worker run?",
|
|
13
|
+
"options": ["same-process", "separate-service"],
|
|
14
|
+
"default": "same-process"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "queue_names",
|
|
18
|
+
"type": "text",
|
|
19
|
+
"prompt": "Queue names (comma-separated)?",
|
|
20
|
+
"default": "default,images,notifications"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "job_examples",
|
|
24
|
+
"type": "multiselect",
|
|
25
|
+
"prompt": "Generate example job types?",
|
|
26
|
+
"options": [
|
|
27
|
+
"image-processing",
|
|
28
|
+
"email",
|
|
29
|
+
"webhook",
|
|
30
|
+
"export",
|
|
31
|
+
"ai-generation"
|
|
32
|
+
],
|
|
33
|
+
"default": []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "redis_source",
|
|
37
|
+
"type": "select",
|
|
38
|
+
"prompt": "Redis connection?",
|
|
39
|
+
"options": ["local", "redis-cloud", "upstash", "docker-compose"],
|
|
40
|
+
"default": "local"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "concurrency",
|
|
44
|
+
"type": "select",
|
|
45
|
+
"prompt": "Default worker concurrency per queue?",
|
|
46
|
+
"options": ["1", "2", "5", "10"],
|
|
47
|
+
"default": "2"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "bull_board",
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"prompt": "Include Bull Board web dashboard?",
|
|
53
|
+
"default": true
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"envVars": [
|
|
57
|
+
"REDIS_URL",
|
|
58
|
+
"REDIS_MAX_RETRIES",
|
|
59
|
+
"REDIS_CONNECTION_TIMEOUT_MS",
|
|
60
|
+
"BULLMQ_FALLBACK_MODE",
|
|
61
|
+
"BULLMQ_QUEUE_NAMES",
|
|
62
|
+
"WORKER_CONCURRENCY",
|
|
63
|
+
"WEBHOOK_FETCH_TIMEOUT_MS",
|
|
64
|
+
"BULL_BOARD_ENABLED",
|
|
65
|
+
"BULL_BOARD_BASE_PATH",
|
|
66
|
+
"BULL_BOARD_USERNAME",
|
|
67
|
+
"BULL_BOARD_PASSWORD"
|
|
68
|
+
],
|
|
69
|
+
"outputs": [
|
|
70
|
+
"src/infrastructure/queue/connection.ts",
|
|
71
|
+
"src/infrastructure/queue/parse-int-env.ts",
|
|
72
|
+
"src/infrastructure/queue/queues.ts",
|
|
73
|
+
"src/infrastructure/queue/workers.ts",
|
|
74
|
+
"src/infrastructure/queue/fallback/sync-executor.ts",
|
|
75
|
+
"src/infrastructure/queue/scheduler/job-scheduler.ts",
|
|
76
|
+
"src/infrastructure/queue/index.ts",
|
|
77
|
+
"server/startup/start-workers.ts",
|
|
78
|
+
".env.bullmq.example",
|
|
79
|
+
{
|
|
80
|
+
"path": "scripts/start-worker.ts",
|
|
81
|
+
"when": { "answer": "worker_mode", "equals": "separate-service" }
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "app/admin/queues/[[...slug]]/route.ts",
|
|
85
|
+
"when": { "answer": "bull_board", "equals": true }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "src/infrastructure/queue/jobs/image-processing.job.ts",
|
|
89
|
+
"when": { "answer": "job_examples", "includes": "image-processing" }
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"path": "src/infrastructure/queue/jobs/email.job.ts",
|
|
93
|
+
"when": { "answer": "job_examples", "includes": "email" }
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "src/infrastructure/queue/jobs/webhook.job.ts",
|
|
97
|
+
"when": { "answer": "job_examples", "includes": "webhook" }
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"path": "src/infrastructure/queue/jobs/export.job.ts",
|
|
101
|
+
"when": { "answer": "job_examples", "includes": "export" }
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"path": "src/infrastructure/queue/jobs/ai-generation.job.ts",
|
|
105
|
+
"when": { "answer": "job_examples", "includes": "ai-generation" }
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"checklist": [
|
|
109
|
+
"Install dependencies: npm install bullmq ioredis (and @bull-board/nextjs @bull-board/api if bull_board=true)",
|
|
110
|
+
"Merge .env.bullmq.example into .env.local",
|
|
111
|
+
"Start Redis locally: redis-server (or `docker compose up redis` if you also installed the docker template)",
|
|
112
|
+
"If BULLMQ_FALLBACK_MODE=auto, the app works without Redis — watch for [bullmq:fallback] warnings in the console",
|
|
113
|
+
"Same-process mode: server/startup/start-workers.ts is imported at server startup — wire it into your Next.js custom server or instrumentation hook",
|
|
114
|
+
"Separate-service mode: run `node --import tsx/esm scripts/start-worker.ts` on a worker dyno/machine; same-process startup file is still emitted but should not be imported",
|
|
115
|
+
"Visit http://localhost:3000/admin/queues for Bull Board (if enabled). Set BULL_BOARD_USERNAME/PASSWORD before production",
|
|
116
|
+
"Add jobs via `addJob('<queue>', '<jobName>', data)` from src/infrastructure/queue; routes by job.name to the handler in src/infrastructure/queue/jobs/",
|
|
117
|
+
"Recurring jobs: edit src/infrastructure/queue/scheduler/job-scheduler.ts — definitions stay in code, stale ones are removed on next startup"
|
|
118
|
+
],
|
|
119
|
+
"branch": "feature/generator-template-bullmq"
|
|
120
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# CI / GitHub Actions (`ci-github-actions`)
|
|
2
|
+
|
|
3
|
+
> GitHub Actions CI (build / typecheck / lint / test) with Turbo cache, a per-target deploy
|
|
4
|
+
> workflow, optional PR preview deploys, and Dependabot.
|
|
5
|
+
|
|
6
|
+
| | |
|
|
7
|
+
| ------------- | ---------------------------------------------- |
|
|
8
|
+
| **ID** | `ci-github-actions` |
|
|
9
|
+
| **Category** | Infrastructure / CI-CD |
|
|
10
|
+
| **Requires** | — |
|
|
11
|
+
| **Conflicts** | none |
|
|
12
|
+
| **Branch** | `feature/generator-template-ci-github-actions` |
|
|
13
|
+
|
|
14
|
+
Author/agent-facing reference, beside `manifest.json` — not emitted into projects.
|
|
15
|
+
|
|
16
|
+
## What it does
|
|
17
|
+
|
|
18
|
+
Generates a CI workflow plus exactly one deploy workflow for your chosen target
|
|
19
|
+
(Vercel/Railway/Fly.io/VPS), optional preview deploys, and Dependabot — all wired for the Turbo
|
|
20
|
+
remote cache.
|
|
21
|
+
|
|
22
|
+
## What it scaffolds
|
|
23
|
+
|
|
24
|
+
`.github/workflows/ci.yml`, `.github/dependabot.yml`, and a gated deploy workflow per
|
|
25
|
+
`deploy_target` (`deploy-vercel.yml` / `deploy-railway.yml` / `deploy-fly.yml` + `fly.toml` /
|
|
26
|
+
`deploy-vps.yml`), plus `preview.yml` when preview deploys are on.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
`hexagen add ci-github-actions`. Questions:
|
|
31
|
+
|
|
32
|
+
| Question | Options (default) |
|
|
33
|
+
| --------------------------- | ----------------------------------------------------------------------------------------------------- |
|
|
34
|
+
| `ci_triggers` (multiselect) | `push-all-branches`, `push-main-only`, `pull-request`, `manual` (`[push-all-branches, pull-request]`) |
|
|
35
|
+
| `deploy_target` | `vercel` / `railway` / `fly-io` / `vps-ssh` / `none` (`vercel`) |
|
|
36
|
+
| `preview_deploys` | `true` |
|
|
37
|
+
| `node_version` | `20` / `22` / `23` (`22`) |
|
|
38
|
+
| `docker_build` | `false` (the `docker` template owns `docker-build.yml`) |
|
|
39
|
+
| `run_tests` | `true` |
|
|
40
|
+
| `cache_strategy` | `node-modules` / `yarn-cache` / `turbo-cache` (`turbo-cache`) |
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Push to a feature branch → CI runs. Look for `# TODO` comments in the generated workflows for
|
|
45
|
+
the secrets each needs.
|
|
46
|
+
|
|
47
|
+
## Notes for agents
|
|
48
|
+
|
|
49
|
+
- Set `TURBO_TOKEN` (secret) + `TURBO_TEAM` (variable) for the remote cache — CI is much faster
|
|
50
|
+
after the first run.
|
|
51
|
+
- The "Validate env vars" step runs `check:env` from [`env-setup`](../env-setup); delete it if
|
|
52
|
+
env-setup isn't installed.
|
|
53
|
+
- Only the workflow for the chosen `deploy_target` is emitted.
|
|
54
|
+
|
|
55
|
+
## Checklist (post-install)
|
|
56
|
+
|
|
57
|
+
Verify CI runs green; add the secrets flagged by `# TODO`; set Turbo cache vars; merge to main and
|
|
58
|
+
confirm deploy triggers; open a PR to test preview deploys; review Dependabot PRs.
|
|
59
|
+
|
|
60
|
+
## Related
|
|
61
|
+
|
|
62
|
+
Complements [`docker`](../docker) (image build) and [`env-setup`](../env-setup) (`check:env`).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Keep GitHub Actions versions current — stale, unpinned actions are a real
|
|
4
|
+
# supply-chain risk.
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
open-pull-requests-limit: 5
|
|
10
|
+
|
|
11
|
+
# Group dev-dependency bumps into a single weekly PR to cut noise.
|
|
12
|
+
- package-ecosystem: npm
|
|
13
|
+
directory: /
|
|
14
|
+
schedule:
|
|
15
|
+
interval: weekly
|
|
16
|
+
groups:
|
|
17
|
+
dev-dependencies:
|
|
18
|
+
patterns: ["*"]
|
|
19
|
+
dependency-type: development
|
|
20
|
+
open-pull-requests-limit: 5
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
# Generated by the hexagen ci-github-actions template. Commands target yarn
|
|
4
|
+
# (the package manager the generator and its templates use); npm/pnpm users
|
|
5
|
+
# should adjust the install/run commands (e.g. `npm ci`, `npm run <script>`).
|
|
6
|
+
# Choices recorded at install time:
|
|
7
|
+
# triggers: {ci_triggers}
|
|
8
|
+
# run tests: {run_tests}
|
|
9
|
+
# cache strategy: {cache_strategy}
|
|
10
|
+
# deploy target: {deploy_target}
|
|
11
|
+
# preview deploys: {preview_deploys}
|
|
12
|
+
# docker image: {docker_build}
|
|
13
|
+
#
|
|
14
|
+
# The `on:` block below covers every branch push + PRs to main. Narrow it to
|
|
15
|
+
# match your triggers — e.g. push-main-only -> `branches: [main]`, or drop the
|
|
16
|
+
# `push:` key entirely to run on pull_request only.
|
|
17
|
+
on:
|
|
18
|
+
push:
|
|
19
|
+
branches: ["**"]
|
|
20
|
+
pull_request:
|
|
21
|
+
branches: [main]
|
|
22
|
+
workflow_dispatch:
|
|
23
|
+
|
|
24
|
+
# One in-flight CI run per ref; a new push cancels the previous run.
|
|
25
|
+
concurrency:
|
|
26
|
+
group: ci-${{ github.ref }}
|
|
27
|
+
cancel-in-progress: true
|
|
28
|
+
|
|
29
|
+
jobs:
|
|
30
|
+
ci:
|
|
31
|
+
name: Build, Typecheck, Lint & Test
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v4
|
|
35
|
+
|
|
36
|
+
- uses: actions/setup-node@v4
|
|
37
|
+
with:
|
|
38
|
+
node-version: "{node_version}"
|
|
39
|
+
# No package-manager cache here — actions/setup-node's cache requires a
|
|
40
|
+
# committed lockfile and fails without one. The Turbo cache below covers
|
|
41
|
+
# task outputs; re-enable the setup-node cache once you commit yarn.lock.
|
|
42
|
+
|
|
43
|
+
# Corepack activates the package manager pinned in package.json
|
|
44
|
+
# (`packageManager`). Without it, the runner's default Yarn (Classic)
|
|
45
|
+
# can't honor a Yarn-4 project. See SETUP.md.
|
|
46
|
+
- name: Enable Corepack
|
|
47
|
+
run: corepack enable
|
|
48
|
+
|
|
49
|
+
# Read the pinned version from package.json's `packageManager` at runtime
|
|
50
|
+
# so CI can never drift from what the project declares (no baked version).
|
|
51
|
+
- name: Prepare package manager
|
|
52
|
+
run: |
|
|
53
|
+
corepack prepare "$(node -p 'require("./package.json").packageManager')" --activate
|
|
54
|
+
|
|
55
|
+
# First run has no committed lockfile, so install is NOT immutable.
|
|
56
|
+
# After you commit yarn.lock, switch this to `yarn install --immutable`
|
|
57
|
+
# (npm: `npm ci`; pnpm: `pnpm install --frozen-lockfile`). See SETUP.md.
|
|
58
|
+
- name: Install dependencies
|
|
59
|
+
run: "yarn install"
|
|
60
|
+
|
|
61
|
+
# Turbo caches task outputs keyed by input hash, so unchanged packages are
|
|
62
|
+
# skipped on warm runs (cache_strategy = {cache_strategy}). Set TURBO_TOKEN
|
|
63
|
+
# and TURBO_TEAM below for the cross-run remote cache.
|
|
64
|
+
- name: Restore Turbo cache
|
|
65
|
+
uses: actions/cache@v4
|
|
66
|
+
with:
|
|
67
|
+
path: .turbo
|
|
68
|
+
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
|
69
|
+
restore-keys: |
|
|
70
|
+
${{ runner.os }}-turbo-
|
|
71
|
+
|
|
72
|
+
# `check:env` is provided by the env-setup template. Resilient by design:
|
|
73
|
+
# runs only if the script exists, so CI stays green whether or not
|
|
74
|
+
# env-setup is installed (Item 3 will emit this step conditionally).
|
|
75
|
+
- name: Validate env vars
|
|
76
|
+
run: |
|
|
77
|
+
if node -e "try { process.exit(require('./package.json').scripts?.['check:env'] ? 0 : 1) } catch { process.exit(1) }"; then
|
|
78
|
+
yarn check:env
|
|
79
|
+
else
|
|
80
|
+
echo "no check:env script — skipping (env-setup not installed or package.json unreadable)"
|
|
81
|
+
fi
|
|
82
|
+
env:
|
|
83
|
+
NODE_ENV: test
|
|
84
|
+
|
|
85
|
+
- name: Build
|
|
86
|
+
run: "yarn build"
|
|
87
|
+
env:
|
|
88
|
+
# TODO: add TURBO_TOKEN (secret) and TURBO_TEAM (variable) for the
|
|
89
|
+
# remote Turbo cache. Safe to omit — the build just won't share cache.
|
|
90
|
+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
91
|
+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
92
|
+
|
|
93
|
+
- name: Typecheck
|
|
94
|
+
run: "yarn typecheck"
|
|
95
|
+
|
|
96
|
+
- name: Lint
|
|
97
|
+
run: "yarn lint"
|
|
98
|
+
|
|
99
|
+
# run_tests = {run_tests}; delete this step to skip tests in CI.
|
|
100
|
+
- name: Test
|
|
101
|
+
run: "yarn test"
|
|
102
|
+
env:
|
|
103
|
+
NODE_ENV: test
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Deploy to Fly.io
|
|
2
|
+
|
|
3
|
+
# Production deploy on every merge to main. Fly.io suits apps that need
|
|
4
|
+
# persistent connections / WebSockets. Deploy config lives in fly.toml.
|
|
5
|
+
#
|
|
6
|
+
# TODO: add FLY_API_TOKEN in GitHub repo → Settings → Secrets and variables →
|
|
7
|
+
# Actions (create one with `fly tokens create deploy`).
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches: [main]
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: deploy-production
|
|
14
|
+
cancel-in-progress: false
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
deploy:
|
|
18
|
+
name: Deploy
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
# Pinned to a commit SHA (not @master); Dependabot bumps it via the
|
|
24
|
+
# github-actions ecosystem.
|
|
25
|
+
- uses: superfly/flyctl-actions/setup-flyctl@ed8efb33836e8b2096c7fd3ba1c8afe303ebbff1 # v1.6
|
|
26
|
+
|
|
27
|
+
- name: Deploy to Fly.io
|
|
28
|
+
run: flyctl deploy --remote-only
|
|
29
|
+
env:
|
|
30
|
+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Deploy to Railway
|
|
2
|
+
|
|
3
|
+
# Production deploy on every merge to main. Railway natively runs background
|
|
4
|
+
# worker services alongside the web service — pair with the bullmq template's
|
|
5
|
+
# separate-worker mode by adding a second deploy step targeting that service.
|
|
6
|
+
#
|
|
7
|
+
# TODO: add in GitHub repo → Settings → Secrets and variables → Actions:
|
|
8
|
+
# - RAILWAY_TOKEN (secret) Railway → Account → Tokens
|
|
9
|
+
# - RAILWAY_SERVICE (variable) the service name to redeploy (optional)
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [main]
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: deploy-production
|
|
16
|
+
cancel-in-progress: false
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deploy:
|
|
20
|
+
name: Deploy
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
environment: production
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- name: Deploy to Railway
|
|
27
|
+
# Pinned to a commit SHA (not @main) so an upstream change can't alter
|
|
28
|
+
# the deploy step; Dependabot bumps it via the github-actions ecosystem.
|
|
29
|
+
uses: bervProject/railway-deploy@4a1cfdb24551aee5c891e0bc716e8de963c4fbe6 # 0.2.0-beta
|
|
30
|
+
with:
|
|
31
|
+
railway_token: ${{ secrets.RAILWAY_TOKEN }}
|
|
32
|
+
service: ${{ vars.RAILWAY_SERVICE }}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Deploy to Vercel
|
|
2
|
+
|
|
3
|
+
# Production deploy on every merge to main.
|
|
4
|
+
#
|
|
5
|
+
# TODO: add these in GitHub repo → Settings → Secrets and variables → Actions:
|
|
6
|
+
# - VERCEL_TOKEN (secret) vercel.com → Account Settings → Tokens
|
|
7
|
+
# - VERCEL_ORG_ID (secret) from `vercel link` → .vercel/project.json
|
|
8
|
+
# - VERCEL_PROJECT_ID (secret) from `vercel link` → .vercel/project.json
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
branches: [main]
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: deploy-production
|
|
15
|
+
cancel-in-progress: false
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
deploy:
|
|
19
|
+
name: Deploy
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
environment: production
|
|
22
|
+
env:
|
|
23
|
+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
24
|
+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- uses: actions/setup-node@v4
|
|
29
|
+
with:
|
|
30
|
+
node-version: "{node_version}"
|
|
31
|
+
cache: "yarn"
|
|
32
|
+
|
|
33
|
+
- run: "yarn install --immutable"
|
|
34
|
+
|
|
35
|
+
- name: Deploy to Vercel (prebuilt)
|
|
36
|
+
run: |
|
|
37
|
+
npx vercel pull --yes --environment=production --token="${{ secrets.VERCEL_TOKEN }}"
|
|
38
|
+
npx vercel build --prod --token="${{ secrets.VERCEL_TOKEN }}"
|
|
39
|
+
npx vercel deploy --prebuilt --prod --token="${{ secrets.VERCEL_TOKEN }}"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Deploy to VPS
|
|
2
|
+
|
|
3
|
+
# Production deploy on every merge to main via SSH + pull/build/restart.
|
|
4
|
+
# Minimal-infrastructure option for a plain VPS running pm2.
|
|
5
|
+
#
|
|
6
|
+
# TODO: add in GitHub repo → Settings → Secrets and variables → Actions:
|
|
7
|
+
# - VPS_HOST (secret) hostname or IP
|
|
8
|
+
# - VPS_USER (secret) ssh user
|
|
9
|
+
# - VPS_SSH_KEY (secret) private key with deploy access
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
branches: [main]
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: deploy-production
|
|
16
|
+
cancel-in-progress: false
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deploy:
|
|
20
|
+
name: Deploy
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- name: Deploy via SSH
|
|
24
|
+
uses: appleboy/ssh-action@v1
|
|
25
|
+
with:
|
|
26
|
+
host: ${{ secrets.VPS_HOST }}
|
|
27
|
+
username: ${{ secrets.VPS_USER }}
|
|
28
|
+
key: ${{ secrets.VPS_SSH_KEY }}
|
|
29
|
+
script: |
|
|
30
|
+
cd ~/app
|
|
31
|
+
git pull origin main
|
|
32
|
+
yarn install --immutable
|
|
33
|
+
yarn build
|
|
34
|
+
pm2 restart app
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: Preview Deploy
|
|
2
|
+
|
|
3
|
+
# Vercel preview deploy on every PR, commenting the preview URL back on the PR.
|
|
4
|
+
# Pair with deploy_target vercel (or railway with its own preview setup).
|
|
5
|
+
#
|
|
6
|
+
# TODO: reuse the same secrets as deploy-vercel.yml — VERCEL_TOKEN,
|
|
7
|
+
# VERCEL_ORG_ID, VERCEL_PROJECT_ID.
|
|
8
|
+
on:
|
|
9
|
+
pull_request:
|
|
10
|
+
types: [opened, synchronize, reopened]
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: preview-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
preview:
|
|
18
|
+
name: Deploy Preview
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
# Explicit least-privilege token scopes — the comment step needs
|
|
21
|
+
# pull-requests:write, which is not granted under a read-only default token.
|
|
22
|
+
permissions:
|
|
23
|
+
contents: read
|
|
24
|
+
pull-requests: write
|
|
25
|
+
# Secrets are not exposed to PRs from forks, so this job would always fail
|
|
26
|
+
# for external contributors — skip it there instead.
|
|
27
|
+
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
28
|
+
env:
|
|
29
|
+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
|
30
|
+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
|
|
34
|
+
- uses: actions/setup-node@v4
|
|
35
|
+
with:
|
|
36
|
+
node-version: "{node_version}"
|
|
37
|
+
cache: "yarn"
|
|
38
|
+
|
|
39
|
+
- run: "yarn install --immutable"
|
|
40
|
+
|
|
41
|
+
- name: Deploy preview
|
|
42
|
+
id: deploy
|
|
43
|
+
run: |
|
|
44
|
+
npx vercel pull --yes --environment=preview --token="${{ secrets.VERCEL_TOKEN }}"
|
|
45
|
+
npx vercel build --token="${{ secrets.VERCEL_TOKEN }}"
|
|
46
|
+
URL=$(npx vercel deploy --prebuilt --token="${{ secrets.VERCEL_TOKEN }}")
|
|
47
|
+
echo "url=$URL" >> "$GITHUB_OUTPUT"
|
|
48
|
+
|
|
49
|
+
- name: Comment preview URL
|
|
50
|
+
uses: actions/github-script@v7
|
|
51
|
+
with:
|
|
52
|
+
script: |
|
|
53
|
+
github.rest.issues.createComment({
|
|
54
|
+
issue_number: context.issue.number,
|
|
55
|
+
owner: context.repo.owner,
|
|
56
|
+
repo: context.repo.repo,
|
|
57
|
+
body: `🚀 Preview: ${{ steps.deploy.outputs.url }}`,
|
|
58
|
+
});
|