create-windy 0.2.6 → 0.2.8
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 +14 -3
- package/dist/cli.js +191 -87
- package/package.json +1 -1
- package/template/.windy-template.json +2 -2
- package/template/README.md +8 -0
- package/template/apps/server/Dockerfile +2 -0
- package/template/apps/server/package.json +10 -8
- package/template/apps/server/src/access-guards.ts +1 -1
- package/template/apps/server/src/admin/routes.test.ts +10 -0
- package/template/apps/server/src/admin/routes.ts +4 -2
- package/template/apps/server/src/agent/routes.test.ts +1 -1
- package/template/apps/server/src/agent/routes.ts +2 -2
- package/template/apps/server/src/application-services.ts +3 -0
- package/template/apps/server/src/audit/drizzle-log-store.ts +2 -2
- package/template/apps/server/src/audit/policy.ts +1 -1
- package/template/apps/server/src/audit/recovery-queue.test.ts +1 -1
- package/template/apps/server/src/audit/recovery-queue.ts +1 -1
- package/template/apps/server/src/audit/redaction.ts +1 -1
- package/template/apps/server/src/audit/reliable-writer.test.ts +1 -1
- package/template/apps/server/src/audit/reliable-writer.ts +1 -1
- package/template/apps/server/src/audit/search-summary.ts +1 -1
- package/template/apps/server/src/auth/authentication-provider.test.ts +1 -1
- package/template/apps/server/src/auth/credential-service.ts +1 -1
- package/template/apps/server/src/auth/drizzle-repository.ts +2 -2
- package/template/apps/server/src/auth/drizzle-session-operations.ts +1 -1
- package/template/apps/server/src/auth/own-session-routes.test.ts +1 -1
- package/template/apps/server/src/auth/password.ts +2 -4
- package/template/apps/server/src/auth/repository.ts +1 -1
- package/template/apps/server/src/auth/routes.test.ts +1 -1
- package/template/apps/server/src/auth/service.ts +1 -1
- package/template/apps/server/src/bulk-data/artifact-store.ts +1 -1
- package/template/apps/server/src/bulk-data/dictionary-handler.ts +1 -1
- package/template/apps/server/src/bulk-data/drizzle-repository.ts +3 -3
- package/template/apps/server/src/bulk-data/repository.ts +1 -1
- package/template/apps/server/src/bulk-data/routes.test.ts +1 -1
- package/template/apps/server/src/bulk-data/routes.ts +1 -1
- package/template/apps/server/src/bulk-data/service.test.ts +1 -1
- package/template/apps/server/src/bulk-data/service.ts +1 -1
- package/template/apps/server/src/bulk-data/types.ts +1 -1
- package/template/apps/server/src/configuration/bootstrap.ts +2 -2
- package/template/apps/server/src/configuration/definition.ts +2 -2
- package/template/apps/server/src/configuration/drizzle-repository.ts +2 -2
- package/template/apps/server/src/configuration/repository.ts +1 -1
- package/template/apps/server/src/configuration/routes.ts +1 -1
- package/template/apps/server/src/configuration/service.ts +1 -1
- package/template/apps/server/src/data-access/context.ts +2 -2
- package/template/apps/server/src/data-access/query-specification.test.ts +1 -1
- package/template/apps/server/src/data-access/scoped-repository.integration.test.ts +1 -1
- package/template/apps/server/src/data-access/scoped-repository.ts +1 -1
- package/template/apps/server/src/data-access/scoped-resource.test.ts +1 -1
- package/template/apps/server/src/data-access/scoped-resource.ts +1 -1
- package/template/apps/server/src/data-governance/export/approval-port.ts +1 -1
- package/template/apps/server/src/data-governance/export/drizzle-repository.ts +1 -1
- package/template/apps/server/src/data-governance/export/job-runtime.test.ts +2 -2
- package/template/apps/server/src/data-governance/export/job-runtime.ts +2 -3
- package/template/apps/server/src/data-governance/export/postgres-api-fixture.ts +2 -2
- package/template/apps/server/src/data-governance/export/postgres-api.integration.test.ts +1 -1
- package/template/apps/server/src/data-governance/export/routes-test-fixture.ts +3 -3
- package/template/apps/server/src/data-governance/export/routes.ts +1 -1
- package/template/apps/server/src/data-governance/export/scope-snapshot.ts +1 -1
- package/template/apps/server/src/data-governance/export/service.ts +2 -2
- package/template/apps/server/src/data-governance/export/source.ts +1 -1
- package/template/apps/server/src/data-governance/export/types.ts +1 -1
- package/template/apps/server/src/data-governance/plaintext-access.test.ts +1 -1
- package/template/apps/server/src/data-governance/plaintext-access.ts +1 -1
- package/template/apps/server/src/data-governance/plaintext-postgres.integration.test.ts +1 -1
- package/template/apps/server/src/data-governance/user-plaintext-routes.ts +1 -1
- package/template/apps/server/src/data-governance/user-projection.ts +2 -2
- package/template/apps/server/src/example-modules.ts +25 -1
- package/template/apps/server/src/feature/manifest-feature-repository.test.ts +1 -1
- package/template/apps/server/src/feature/manifest-feature-repository.ts +1 -1
- package/template/apps/server/src/feature/routes.ts +3 -6
- package/template/apps/server/src/foundation-access.test.ts +1 -1
- package/template/apps/server/src/foundation-access.ts +1 -1
- package/template/apps/server/src/foundation.ts +21 -7
- package/template/apps/server/src/guards.test.ts +1 -1
- package/template/apps/server/src/guards.ts +3 -3
- package/template/apps/server/src/index.ts +27 -3
- package/template/{packages/modules → apps/server}/src/installed-business-modules.ts +2 -2
- package/template/apps/server/src/jobs/artifact-service.test.ts +1 -1
- package/template/apps/server/src/jobs/artifact-service.ts +2 -2
- package/template/apps/server/src/jobs/drizzle-artifact.ts +2 -2
- package/template/apps/server/src/jobs/drizzle-claim.ts +1 -1
- package/template/apps/server/src/jobs/drizzle-execution-repository.ts +2 -2
- package/template/apps/server/src/jobs/drizzle-execution.integration.test.ts +1 -1
- package/template/apps/server/src/jobs/drizzle-lease.ts +2 -2
- package/template/apps/server/src/jobs/drizzle-mappers.ts +3 -3
- package/template/apps/server/src/jobs/drizzle-recovery-repository.ts +1 -1
- package/template/apps/server/src/jobs/drizzle-repository.integration.test.ts +1 -1
- package/template/apps/server/src/jobs/drizzle-repository.ts +3 -3
- package/template/apps/server/src/jobs/execution-repository.ts +1 -1
- package/template/apps/server/src/jobs/execution.test.ts +2 -2
- package/template/apps/server/src/jobs/in-memory-claim.ts +1 -1
- package/template/apps/server/src/jobs/in-memory-execution.ts +1 -1
- package/template/apps/server/src/jobs/in-memory-lease.ts +1 -1
- package/template/apps/server/src/jobs/legacy-adapter.integration.test.ts +1 -1
- package/template/apps/server/src/jobs/legacy-adapter.test.ts +1 -1
- package/template/apps/server/src/jobs/legacy-adapter.ts +1 -1
- package/template/apps/server/src/jobs/legacy-service-runtime.ts +4 -2
- package/template/apps/server/src/jobs/repository.ts +2 -2
- package/template/apps/server/src/jobs/service.ts +2 -2
- package/template/apps/server/src/jobs/worker.ts +3 -2
- package/template/apps/server/src/license/legacy-license-resolver.ts +1 -1
- package/template/apps/server/src/license/license-resolver.test.ts +1 -1
- package/template/apps/server/src/license/license-resolver.ts +3 -3
- package/template/apps/server/src/license/routes-offline-code.test.ts +2 -2
- package/template/apps/server/src/license/routes.ts +1 -1
- package/template/apps/server/src/license/runtime-audit-reliability.test.ts +2 -2
- package/template/apps/server/src/license/runtime-reminder.test.ts +2 -2
- package/template/apps/server/src/license/runtime-service.test.ts +2 -2
- package/template/apps/server/src/license/runtime-service.ts +2 -2
- package/template/apps/server/src/module-composition.test.ts +1 -1
- package/template/apps/server/src/module-composition.ts +1 -1
- package/template/apps/server/src/module-host.test.ts +145 -0
- package/template/apps/server/src/module-host.ts +110 -0
- package/template/apps/server/src/notification/drizzle-repository.ts +2 -2
- package/template/apps/server/src/notification/repository.ts +1 -1
- package/template/apps/server/src/notification/routes.ts +1 -1
- package/template/apps/server/src/pagination.ts +1 -1
- package/template/apps/server/src/persistence.integration.test.ts +1 -1
- package/template/apps/server/src/persistence.ts +1 -1
- package/template/apps/server/src/profile/routes.ts +1 -1
- package/template/apps/server/src/route-guards.test.ts +1 -1
- package/template/apps/server/src/route-guards.ts +1 -1
- package/template/apps/server/src/runtime-feature.ts +125 -0
- package/template/apps/server/src/runtime-license.ts +1 -1
- package/template/apps/server/src/runtime.test.ts +48 -1
- package/template/apps/server/src/runtime.ts +17 -64
- package/template/apps/server/src/scheduler/audit.ts +1 -1
- package/template/apps/server/src/scheduler/definitions.test.ts +1 -1
- package/template/apps/server/src/scheduler/definitions.ts +2 -2
- package/template/apps/server/src/scheduler/drizzle-durable-links.ts +1 -1
- package/template/apps/server/src/scheduler/drizzle-mappers.ts +1 -1
- package/template/apps/server/src/scheduler/drizzle-repository.ts +1 -1
- package/template/apps/server/src/scheduler/execution-recorder.ts +1 -1
- package/template/apps/server/src/scheduler/history.ts +1 -1
- package/template/apps/server/src/scheduler/overview.ts +1 -1
- package/template/apps/server/src/scheduler/recovery-service.test.ts +1 -1
- package/template/apps/server/src/scheduler/recovery-service.ts +1 -1
- package/template/apps/server/src/scheduler/repository.ts +1 -1
- package/template/apps/server/src/scheduler/routes.ts +1 -1
- package/template/apps/server/src/scheduler/service-idle.test.ts +1 -1
- package/template/apps/server/src/scheduler/service.test.ts +1 -1
- package/template/apps/server/src/scheduler/service.ts +1 -1
- package/template/apps/server/src/scheduler/types.ts +1 -1
- package/template/apps/server/src/search/contracts.ts +2 -2
- package/template/apps/server/src/search/host.ts +1 -1
- package/template/apps/server/src/search/registry.ts +1 -1
- package/template/apps/server/src/search/routes.test.ts +1 -1
- package/template/apps/server/src/search/routes.ts +1 -1
- package/template/apps/server/src/search/service.ts +2 -2
- package/template/apps/server/src/search/test-support.ts +2 -2
- package/template/apps/server/src/session/routes.ts +1 -1
- package/template/apps/server/src/settings/drizzle-repository.ts +2 -2
- package/template/apps/server/src/settings/repository.ts +1 -1
- package/template/apps/server/src/settings/routes.test.ts +1 -1
- package/template/apps/server/src/settings/routes.ts +1 -1
- package/template/apps/server/src/settings/runtime.ts +1 -1
- package/template/apps/server/src/storage/blob-reference-registry.test.ts +1 -1
- package/template/apps/server/src/storage/blob-reference-registry.ts +1 -1
- package/template/apps/server/src/storage/drizzle-upload-repository.integration.test.ts +1 -1
- package/template/apps/server/src/storage/drizzle-upload-repository.ts +2 -2
- package/template/apps/server/src/storage/route-support.ts +1 -1
- package/template/apps/server/src/storage/routes.test.ts +1 -1
- package/template/apps/server/src/storage/routes.ts +2 -2
- package/template/apps/server/src/storage/runtime.ts +6 -4
- package/template/apps/server/src/system/audit-routes.ts +1 -1
- package/template/apps/server/src/system/department-routes.ts +1 -1
- package/template/apps/server/src/system/drizzle-repository.ts +1 -1
- package/template/apps/server/src/system/drizzle-scoped-repository.ts +1 -1
- package/template/apps/server/src/system/drizzle-system.ts +1 -1
- package/template/apps/server/src/system/entities.ts +1 -1
- package/template/apps/server/src/system/identity-route-config.ts +1 -1
- package/template/apps/server/src/system/interface-catalog.test.ts +3 -3
- package/template/apps/server/src/system/interface-catalog.ts +2 -2
- package/template/apps/server/src/system/menu-registry.ts +1 -1
- package/template/apps/server/src/system/menu-routes.ts +1 -1
- package/template/apps/server/src/system/operations.test.ts +1 -1
- package/template/apps/server/src/system/operations.ts +1 -1
- package/template/apps/server/src/system/redis-health.ts +1 -1
- package/template/apps/server/src/system/repository.ts +1 -1
- package/template/apps/server/src/system/resource-route-support.ts +1 -1
- package/template/apps/server/src/system/route-helpers.ts +1 -1
- package/template/apps/server/src/system/route-types.ts +1 -1
- package/template/apps/server/src/system/routes.test.ts +1 -1
- package/template/apps/server/src/system/routes.ts +1 -1
- package/template/apps/server/src/system/user-projection.ts +1 -1
- package/template/apps/server/src/work-order/data-scope.integration.test.ts +1 -1
- package/template/apps/server/src/work-order/drizzle-repository.integration.test.ts +1 -1
- package/template/apps/server/src/work-order/drizzle-repository.ts +2 -2
- package/template/apps/server/src/work-order/foundation-modules.test.ts +15 -5
- package/template/apps/server/src/work-order/repository.ts +1 -1
- package/template/apps/server/src/work-order/routes.test.ts +2 -2
- package/template/apps/server/src/work-order/routes.ts +2 -2
- package/template/apps/server/src/work-order/search-api.test.ts +3 -3
- package/template/apps/server/src/work-order/search-provider.test.ts +3 -3
- package/template/apps/server/src/work-order/service.ts +1 -1
- package/template/apps/server/src/work-order/task.test.ts +1 -1
- package/template/apps/server/src/work-order/task.ts +2 -2
- package/template/apps/server/src/workflow/drizzle-repository.integration.test.ts +2 -2
- package/template/apps/server/src/workflow/drizzle-repository.ts +3 -3
- package/template/apps/server/src/workflow/effects.test.ts +1 -1
- package/template/apps/server/src/workflow/effects.ts +1 -1
- package/template/apps/server/src/workflow/repository.ts +2 -2
- package/template/apps/server/src/workflow/routes.ts +3 -3
- package/template/apps/server/src/workflow/service.ts +1 -1
- package/template/apps/server/src/workflow/timeout-runtime.test.ts +1 -1
- package/template/apps/server/src/workflow/timeout-runtime.ts +2 -2
- package/template/apps/web/Dockerfile +2 -0
- package/template/apps/web/package.json +4 -4
- package/template/apps/web/runtime-server.ts +1 -1
- package/template/apps/web/src/app/layouts/AppLayout.vue +6 -0
- package/template/apps/web/src/components/auth/PasswordChangeForm.vue +52 -7
- package/template/apps/web/src/components/auth/PasswordChangeForm.webtest.ts +43 -0
- package/template/apps/web/src/components/common/DataPagination.vue +1 -1
- package/template/apps/web/src/components/license/LicenseActivationCodeForm.vue +1 -1
- package/template/apps/web/src/components/license/LicenseFlow.webtest.ts +2 -2
- package/template/apps/web/src/composables/useModuleConfigurations.ts +1 -1
- package/template/apps/web/src/composables/useWatermarkSettings.ts +1 -0
- package/template/apps/web/src/composables/watermark-settings.ts +6 -0
- package/template/apps/web/src/composables/watermark-settings.webtest.ts +27 -1
- package/template/apps/web/src/layout/AppSidebar.vue +12 -3
- package/template/apps/web/src/layout/AppSidebar.webtest.ts +11 -0
- package/template/apps/web/src/layout/GlobalWatermark.vue +25 -8
- package/template/apps/web/src/layout/GlobalWatermark.webtest.ts +109 -0
- package/template/apps/web/src/layout/NavigationSearchDialog.vue +1 -1
- package/template/apps/web/src/layout/NotificationMenu.vue +1 -1
- package/template/apps/web/src/layout/navigation.ts +5 -1
- package/template/apps/web/src/layout/navigation.webtest.ts +1 -1
- package/template/apps/web/src/pages/configuration/components/ModuleConfigRollbackDialog.vue +1 -1
- package/template/apps/web/src/pages/configuration/components/ModuleConfigVersionList.vue +1 -1
- package/template/apps/web/src/pages/configuration/components/ModuleConfigurationEditor.vue +1 -1
- package/template/apps/web/src/pages/configuration/components/ModuleConfigurationEditor.webtest.ts +1 -1
- package/template/apps/web/src/pages/configuration/components/ModuleConfigurationWorkbench.vue +1 -1
- package/template/apps/web/src/pages/dashboard/dashboard-presenter.webtest.ts +1 -1
- package/template/apps/web/src/pages/settings/WatermarkSettingsSection.vue +21 -0
- package/template/apps/web/src/pages/system/SystemNotificationsPage.vue +2 -2
- package/template/apps/web/src/pages/system/components/AuditActionCell.vue +7 -2
- package/template/apps/web/src/pages/system/components/AuditLogFilters.vue +7 -2
- package/template/apps/web/src/pages/system/components/NotificationPublishForm.vue +1 -1
- package/template/apps/web/src/pages/system/components/SchedulerOperationsPanel.vue +1 -1
- package/template/apps/web/src/pages/system/components/SchedulerOperationsPanel.webtest.ts +1 -1
- package/template/apps/web/src/pages/system/components/SchedulerRunTable.vue +1 -1
- package/template/apps/web/src/pages/system/components/SchedulerRunTable.webtest.ts +1 -1
- package/template/apps/web/src/pages/system/components/SchedulerStaleRecoveryForm.vue +1 -1
- package/template/apps/web/src/pages/system/components/SchedulerStaleRecoveryForm.webtest.ts +1 -1
- package/template/apps/web/src/pages/system/components/SystemResourcePage.vue +1 -1
- package/template/apps/web/src/pages/system/components/SystemResourceTable.vue +10 -3
- package/template/apps/web/src/pages/system/components/role-policy/RolePermissionTree.vue +1 -1
- package/template/apps/web/src/pages/system/components/role-policy/RolePermissionTree.webtest.ts +1 -1
- package/template/apps/web/src/pages/system/components/role-policy/RolePolicyForm.vue +1 -1
- package/template/apps/web/src/pages/system/components/role-policy/permission-tree.ts +1 -1
- package/template/apps/web/src/pages/system/components/role-policy/permission-tree.webtest.ts +1 -1
- package/template/apps/web/src/pages/system/composables/useSchedulerOperations.ts +2 -2
- package/template/apps/web/src/pages/system/composables/useSchedulerOperations.webtest.ts +1 -1
- package/template/apps/web/src/pages/system/composables/useSystemResource.ts +1 -1
- package/template/apps/web/src/router/manifest-routes.ts +1 -1
- package/template/apps/web/src/router/manifest-routes.webtest.ts +1 -1
- package/template/apps/web/src/services/access-api.ts +10 -1
- package/template/apps/web/src/services/configuration-api.ts +1 -1
- package/template/apps/web/src/services/license-api.ts +1 -1
- package/template/apps/web/src/services/notification-api.ts +2 -2
- package/template/apps/web/src/services/operations-api.ts +1 -1
- package/template/apps/web/src/services/platform-settings-api.ts +2 -2
- package/template/apps/web/src/services/profile-api.ts +2 -2
- package/template/docs/architecture/durable-jobs.md +5 -0
- package/template/docs/architecture/module-manifest-composition.md +14 -7
- package/template/docs/architecture/object-storage.md +1 -1
- package/template/docs/development/crud-generator.md +4 -1
- package/template/docs/platform/audit-reliability.md +1 -1
- package/template/package.json +2 -1
- package/template/packages/config/package.json +15 -4
- package/template/packages/config/src/platform.ts +1 -1
- package/template/packages/crud-generator/package.json +1 -1
- package/template/packages/crud-generator/src/generator.test.ts +16 -0
- package/template/packages/crud-generator/src/templates/domain.ts +1 -1
- package/template/packages/crud-generator/src/templates/manifest.ts +2 -2
- package/template/packages/crud-generator/src/templates/project.ts +3 -3
- package/template/packages/crud-generator/src/templates/repository.ts +1 -1
- package/template/packages/crud-generator/src/templates/routes.ts +2 -2
- package/template/packages/crud-generator/src/validation.ts +22 -1
- package/template/packages/database/package.json +15 -5
- package/template/packages/database/src/bundle-validation.ts +218 -0
- package/template/packages/database/src/dialects.ts +1 -1
- package/template/packages/database/src/runner.test.ts +160 -13
- package/template/packages/database/src/runner.ts +95 -77
- package/template/packages/database/src/schema/governed-exports.ts +1 -1
- package/template/packages/database/src/schema/identity.ts +1 -1
- package/template/packages/database/src/schema/license-v1.ts +1 -1
- package/template/packages/database/src/schema/notifications.ts +1 -1
- package/template/packages/database/src/schema/platform-settings.ts +1 -1
- package/template/packages/database/src/schema/workflow.ts +1 -1
- package/template/packages/database/src/sql-store.ts +1 -1
- package/template/packages/database/src/store.ts +1 -1
- package/template/packages/example-work-order/index.ts +1 -0
- package/template/packages/example-work-order/package.json +4 -3
- package/template/packages/example-work-order/src/contract.ts +1 -1
- package/template/packages/example-work-order/src/manifest.ts +8 -3
- package/template/packages/example-work-order/src/migration-bundle.test.ts +43 -0
- package/template/packages/example-work-order/src/migration-bundle.ts +64 -0
- package/template/packages/jobs/index.ts +2 -0
- package/template/packages/jobs/package.json +29 -0
- package/template/packages/jobs/src/handlers.test.ts +72 -0
- package/template/{apps/server/src/jobs/handler-registry.ts → packages/jobs/src/handlers.ts} +4 -4
- package/template/{apps/server/src/jobs → packages/jobs/src}/types.ts +7 -1
- package/template/packages/{license-sdk → jobs}/tsconfig.json +0 -1
- package/template/packages/modules/index.ts +1 -1
- package/template/packages/modules/package.json +15 -5
- package/template/packages/modules/src/catalog-validation.ts +123 -0
- package/template/packages/modules/src/composition.test.ts +75 -2
- package/template/packages/modules/src/composition.ts +4 -2
- package/template/packages/modules/src/manifest.ts +7 -12
- package/template/packages/modules/src/menu-composition.ts +1 -1
- package/template/packages/modules/src/system-api-binding.ts +1 -1
- package/template/packages/modules/src/system-api-data-governance.ts +1 -1
- package/template/packages/modules/src/system-api-permissions.ts +1 -1
- package/template/packages/modules/src/system-data-governance.ts +1 -1
- package/template/packages/modules/src/system-features.ts +1 -1
- package/template/packages/modules/src/system-governed-export-bindings.ts +1 -1
- package/template/packages/modules/src/system-module-catalog.ts +1 -1
- package/template/packages/server-sdk/index.ts +5 -0
- package/template/packages/server-sdk/package.json +25 -0
- package/template/packages/server-sdk/src/module-host.ts +29 -0
- package/template/packages/server-sdk/tsconfig.json +16 -0
- package/template/packages/shared/index.ts +3 -0
- package/template/packages/shared/package.json +14 -3
- package/template/packages/shared/src/audit.ts +22 -1
- package/template/packages/shared/src/license-catalog.test.ts +17 -0
- package/template/packages/shared/src/license-catalog.ts +33 -0
- package/template/packages/shared/src/migration.ts +39 -0
- package/template/packages/shared/src/password.ts +4 -0
- package/template/packages/storage/package.json +14 -3
- package/template/packages/license-sdk/index.ts +0 -13
- package/template/packages/license-sdk/package.json +0 -18
- package/template/packages/license-sdk/src/bounded-json-body.test.ts +0 -65
- package/template/packages/license-sdk/src/bounded-json-body.ts +0 -135
- package/template/packages/license-sdk/src/canonical-json.test.ts +0 -28
- package/template/packages/license-sdk/src/canonical-json.ts +0 -104
- package/template/packages/license-sdk/src/client.test.ts +0 -82
- package/template/packages/license-sdk/src/client.ts +0 -86
- package/template/packages/license-sdk/src/device.ts +0 -46
- package/template/packages/license-sdk/src/file-storage.test.ts +0 -80
- package/template/packages/license-sdk/src/file-storage.ts +0 -77
- package/template/packages/license-sdk/src/installation.test.ts +0 -241
- package/template/packages/license-sdk/src/installation.ts +0 -150
- package/template/packages/license-sdk/src/license-parser.ts +0 -56
- package/template/packages/license-sdk/src/offline-code-base32.ts +0 -57
- package/template/packages/license-sdk/src/offline-code-decompression.ts +0 -55
- package/template/packages/license-sdk/src/offline-code-limits.ts +0 -10
- package/template/packages/license-sdk/src/offline-code-wire.ts +0 -72
- package/template/packages/license-sdk/src/offline-code.test.ts +0 -172
- package/template/packages/license-sdk/src/offline-code.ts +0 -319
- package/template/packages/license-sdk/src/payload.test.ts +0 -72
- package/template/packages/license-sdk/src/payload.ts +0 -201
- package/template/packages/license-sdk/src/storage.ts +0 -64
- package/template/packages/license-sdk/src/test-fixtures.ts +0 -59
- package/template/packages/license-sdk/src/v1-test-vector.ts +0 -49
- package/template/packages/license-sdk/src/validation.test.ts +0 -62
- package/template/packages/license-sdk/src/validation.ts +0 -143
- package/template/packages/license-sdk/src/verification.test.ts +0 -97
- package/template/packages/license-sdk/src/verification.ts +0 -199
package/template/README.md
CHANGED
|
@@ -52,6 +52,14 @@ bun run dev:server
|
|
|
52
52
|
|
|
53
53
|
## 页面与登录
|
|
54
54
|
|
|
55
|
+
全新数据库的初始平台账号为 `admin`。初始密码不是所有项目共用的固定值,而是
|
|
56
|
+
create-windy 在本机 `.env` 中随机生成的 `WINDY_BOOTSTRAP_ADMIN_PASSWORD`;该文件已
|
|
57
|
+
被 Git 忽略,请在本机直接查看,不要把密码提交到仓库或复制到文档。首次登录会要求
|
|
58
|
+
立即修改密码,新密码必须为 12-128 个字符,且不能与当前密码相同。
|
|
59
|
+
|
|
60
|
+
`.env` 只负责全新数据库的首次初始化。账号密码写入数据库后,重启不会用环境变量
|
|
61
|
+
覆盖已有密码;如果已经完成首次改密,应使用修改后的密码登录。
|
|
62
|
+
|
|
55
63
|
| 路径 | 访问要求 | 说明 |
|
|
56
64
|
| ---- | -------- | ---- |
|
|
57
65
|
| `/login` | 公开 | 登录成功后回到安全的站内目标,默认进入 `/` |
|
|
@@ -13,8 +13,10 @@ COPY packages/create-windy/package.json packages/create-windy/package.json
|
|
|
13
13
|
COPY packages/crud-generator/package.json packages/crud-generator/package.json
|
|
14
14
|
COPY packages/database/package.json packages/database/package.json
|
|
15
15
|
COPY packages/example-work-order/package.json packages/example-work-order/package.json
|
|
16
|
+
COPY packages/jobs/package.json packages/jobs/package.json
|
|
16
17
|
COPY packages/license-sdk/package.json packages/license-sdk/package.json
|
|
17
18
|
COPY packages/modules/package.json packages/modules/package.json
|
|
19
|
+
COPY packages/server-sdk/package.json packages/server-sdk/package.json
|
|
18
20
|
COPY packages/shared/package.json packages/shared/package.json
|
|
19
21
|
COPY packages/storage/package.json packages/storage/package.json
|
|
20
22
|
RUN bun install --frozen-lockfile
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
2
|
+
"name": "@southwind-ai/server",
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@elysiajs/swagger": "^1.3.1",
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"@
|
|
16
|
-
"@
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
13
|
+
"@southwind-ai/config": "workspace:*",
|
|
14
|
+
"@southwind-ai/database": "workspace:*",
|
|
15
|
+
"@southwind-ai/example-work-order": "workspace:*",
|
|
16
|
+
"@southwind-ai/jobs": "workspace:*",
|
|
17
|
+
"@southwind-ai/license": "workspace:*",
|
|
18
|
+
"@southwind-ai/modules": "workspace:*",
|
|
19
|
+
"@southwind-ai/server-sdk": "workspace:*",
|
|
20
|
+
"@southwind-ai/shared": "workspace:*",
|
|
21
|
+
"@southwind-ai/storage": "workspace:*",
|
|
20
22
|
"@noble/ed25519": "^3.1.0",
|
|
21
23
|
"argon2": "^0.44.0",
|
|
22
24
|
"drizzle-orm": "^0.45.2",
|
|
@@ -24,6 +24,8 @@ describe("Windy 管理面准入", () => {
|
|
|
24
24
|
const result = (await invoke(adminActor())) as {
|
|
25
25
|
routes: Array<{ key: string }>;
|
|
26
26
|
menus: Array<{ key: string; children?: Array<{ key: string }> }>;
|
|
27
|
+
auditActionCatalog: Array<{ key: string }>;
|
|
28
|
+
licenseCatalog: Array<{ key: string }>;
|
|
27
29
|
access: { actor: RequestActor };
|
|
28
30
|
};
|
|
29
31
|
const routeKeys = new Set(result.routes.map(({ key }) => key));
|
|
@@ -35,6 +37,14 @@ describe("Windy 管理面准入", () => {
|
|
|
35
37
|
expect(routeKeys).toContain("system.user");
|
|
36
38
|
expect(menuKeys.every((key) => routeKeys.has(key))).toBe(true);
|
|
37
39
|
expect(menuKeys).not.toContain("unknown.business-page");
|
|
40
|
+
expect(result.auditActionCatalog).toContainEqual(
|
|
41
|
+
expect.objectContaining({ key: "crud.create" }),
|
|
42
|
+
);
|
|
43
|
+
expect(result.licenseCatalog.map(({ key }) => key)).toEqual([
|
|
44
|
+
"free-trial",
|
|
45
|
+
"standard",
|
|
46
|
+
"advanced",
|
|
47
|
+
]);
|
|
38
48
|
});
|
|
39
49
|
});
|
|
40
50
|
|
|
@@ -2,8 +2,8 @@ import type {
|
|
|
2
2
|
ApiPermissionBinding,
|
|
3
3
|
FeatureFlagDefinition,
|
|
4
4
|
MenuNode,
|
|
5
|
-
} from "@
|
|
6
|
-
import type { ModuleManifest } from "@
|
|
5
|
+
} from "@southwind-ai/shared";
|
|
6
|
+
import type { ModuleManifest } from "@southwind-ai/modules";
|
|
7
7
|
import { createFoundationFeatureAccess } from "../foundation-access.js";
|
|
8
8
|
import type { FoundationSnapshot } from "../foundation.js";
|
|
9
9
|
import { evaluateRouteGuards, findFeature } from "../route-guards.js";
|
|
@@ -75,6 +75,8 @@ export function registerAdminBootstrapRoute(
|
|
|
75
75
|
routes,
|
|
76
76
|
menus: filterAdminMenus(await source.loadMenus(), routeKeys),
|
|
77
77
|
permissions: source.snapshot.permissions,
|
|
78
|
+
auditActionCatalog: source.snapshot.auditActionCatalog,
|
|
79
|
+
licenseCatalog: source.snapshot.licenseCatalog,
|
|
78
80
|
access: {
|
|
79
81
|
actor: guardContext.actor,
|
|
80
82
|
features: createFoundationFeatureAccess(guardContext, resolvedFeatures),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { entitlementKey, type FeatureFlagDefinition } from "@
|
|
2
|
+
import { entitlementKey, type FeatureFlagDefinition } from "@southwind-ai/shared";
|
|
3
3
|
import {
|
|
4
4
|
createFoundationSnapshot,
|
|
5
5
|
loadFoundationModules,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomUUIDv7 } from "bun";
|
|
2
|
-
import type { ModuleManifest, ModuleToolDefinition } from "@
|
|
3
|
-
import type { AuditEvent, FeatureFlagDefinition } from "@
|
|
2
|
+
import type { ModuleManifest, ModuleToolDefinition } from "@southwind-ai/modules";
|
|
3
|
+
import type { AuditEvent, FeatureFlagDefinition } from "@southwind-ai/shared";
|
|
4
4
|
import { evaluateAccessGuards } from "../access-guards.js";
|
|
5
5
|
import { type RequestGuardContext } from "../guards.js";
|
|
6
6
|
import { findFeature, systemFeatureKeyForPermission } from "../route-guards.js";
|
|
@@ -20,6 +20,7 @@ import { DrizzleSchedulerRepository } from "./scheduler/drizzle-repository.js";
|
|
|
20
20
|
import { InMemorySchedulerRepository } from "./scheduler/repository.js";
|
|
21
21
|
import type { ScheduledTaskDefinition } from "./scheduler/types.js";
|
|
22
22
|
import type { createStorageRuntime } from "./storage/runtime.js";
|
|
23
|
+
import type { DurableHandlerRegistry } from "@southwind-ai/jobs";
|
|
23
24
|
import { collectActiveBlobRefs } from "./storage/blob-reference-registry.js";
|
|
24
25
|
import type { createSystemRepositories } from "./system/seed.js";
|
|
25
26
|
import { identityRouteConfigs } from "./system/identity-route-config.js";
|
|
@@ -41,6 +42,7 @@ interface ApplicationServicesInput {
|
|
|
41
42
|
storage: ReturnType<typeof createStorageRuntime>;
|
|
42
43
|
exampleTasks: ScheduledTaskDefinition[];
|
|
43
44
|
bulkRetentionDays: number;
|
|
45
|
+
installModuleDurableHandlers?: (registry: DurableHandlerRegistry) => void;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export async function createApplicationServices(
|
|
@@ -104,6 +106,7 @@ export async function createApplicationServices(
|
|
|
104
106
|
taskDefinitions,
|
|
105
107
|
runtime: input.runtime,
|
|
106
108
|
workflow,
|
|
109
|
+
installModuleDurableHandlers: input.installModuleDurableHandlers,
|
|
107
110
|
});
|
|
108
111
|
const governedExportRequests = persistence
|
|
109
112
|
? new DrizzleGovernedExportRepository(persistence.db)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { auditLogs } from "@
|
|
1
|
+
import { auditLogs } from "@southwind-ai/database";
|
|
2
2
|
import type {
|
|
3
3
|
AuditActionType,
|
|
4
4
|
AuditEvent,
|
|
5
5
|
AuditOutcome,
|
|
6
6
|
PageResult,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@southwind-ai/shared";
|
|
8
8
|
import { and, desc, eq, gte, lte, ne, sql, type SQL } from "drizzle-orm";
|
|
9
9
|
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
10
10
|
import type { AuditEventListQuery } from "../runtime.js";
|
|
@@ -2,7 +2,7 @@ import { afterEach, describe, expect, test } from "bun:test";
|
|
|
2
2
|
import { mkdtemp, rm, stat } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { tmpdir } from "node:os";
|
|
5
|
-
import type { AuditEvent } from "@
|
|
5
|
+
import type { AuditEvent } from "@southwind-ai/shared";
|
|
6
6
|
import { FileAuditRecoveryQueue } from "./recovery-queue.js";
|
|
7
7
|
|
|
8
8
|
const directories: string[] = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
2
2
|
import { dirname } from "node:path";
|
|
3
|
-
import type { AuditEvent } from "@
|
|
3
|
+
import type { AuditEvent } from "@southwind-ai/shared";
|
|
4
4
|
|
|
5
5
|
export interface AuditRecoveryQueue {
|
|
6
6
|
read(): Promise<AuditEvent[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUIDv7 } from "bun";
|
|
2
|
-
import type { AuditEvent } from "@
|
|
2
|
+
import type { AuditEvent } from "@southwind-ai/shared";
|
|
3
3
|
import type { RequestActor } from "../guards.js";
|
|
4
4
|
import type { AuditEventWriter } from "../runtime.js";
|
|
5
5
|
import type { PasswordHasher } from "./password.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
serverSessions,
|
|
5
5
|
userRoles,
|
|
6
6
|
users,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@southwind-ai/database";
|
|
8
8
|
import { and, eq, gt, inArray, isNull, or } from "drizzle-orm";
|
|
9
9
|
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
10
10
|
import type { RequestActor } from "../guards.js";
|
|
11
|
-
import type { UserProfileUpdate } from "@
|
|
11
|
+
import type { UserProfileUpdate } from "@southwind-ai/shared";
|
|
12
12
|
import type {
|
|
13
13
|
AuthRepository,
|
|
14
14
|
AuthSessionRecord,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serverSessions, users } from "@
|
|
1
|
+
import { serverSessions, users } from "@southwind-ai/database";
|
|
2
2
|
import { and, desc, eq, gt, gte, isNull, ne, or, type SQL } from "drizzle-orm";
|
|
3
3
|
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
4
4
|
import type { ActiveAuthSession, AuthSessionRecord } from "./repository.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, test } from "bun:test";
|
|
2
|
-
import type { AuditEvent } from "@
|
|
2
|
+
import type { AuditEvent } from "@southwind-ai/shared";
|
|
3
3
|
import { Elysia } from "elysia";
|
|
4
4
|
import type { AuditEventListQuery } from "../runtime.js";
|
|
5
5
|
import { createServerRuntime } from "../runtime.js";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import argon2, { argon2id } from "argon2";
|
|
2
|
+
import { PASSWORD_POLICY } from "@southwind-ai/shared";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
minLength: 12,
|
|
5
|
-
maxLength: 128,
|
|
6
|
-
} as const;
|
|
4
|
+
export { PASSWORD_POLICY } from "@southwind-ai/shared";
|
|
7
5
|
|
|
8
6
|
const ARGON2_OPTIONS = {
|
|
9
7
|
type: argon2id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RequestActor } from "../guards.js";
|
|
2
|
-
import type { CredentialState, UserProfileUpdate } from "@
|
|
2
|
+
import type { CredentialState, UserProfileUpdate } from "@southwind-ai/shared";
|
|
3
3
|
import type { DataAccessRolePolicy } from "../data-access/context.js";
|
|
4
4
|
import { buildActorScopeContexts } from "../data-access/context.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { beforeAll, describe, expect, test } from "bun:test";
|
|
2
|
-
import type { AuditEvent } from "@
|
|
2
|
+
import type { AuditEvent } from "@southwind-ai/shared";
|
|
3
3
|
import { Elysia } from "elysia";
|
|
4
4
|
import { createServerRuntime } from "../runtime.js";
|
|
5
5
|
import { RepositoryActorResolver } from "./actor-resolver.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomBytes } from "node:crypto";
|
|
2
2
|
import { randomUUIDv7 } from "bun";
|
|
3
|
-
import type { AuditEvent } from "@
|
|
3
|
+
import type { AuditEvent } from "@southwind-ai/shared";
|
|
4
4
|
import type { RequestActor } from "../guards.js";
|
|
5
5
|
import type { AuditEventReader, AuditEventWriter } from "../runtime.js";
|
|
6
6
|
import { hashSessionToken } from "./actor-resolver.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LifecycleStatus } from "@
|
|
1
|
+
import type { LifecycleStatus } from "@southwind-ai/shared";
|
|
2
2
|
import type { RequestActor } from "../guards.js";
|
|
3
3
|
import type { ManagedDictionary } from "../system/entities.js";
|
|
4
4
|
import type { EntityRepository } from "../system/repository.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bulkDataArtifacts, bulkDataJobs } from "@
|
|
2
|
-
import { artifactRef } from "@
|
|
1
|
+
import { bulkDataArtifacts, bulkDataJobs } from "@southwind-ai/database";
|
|
2
|
+
import { artifactRef } from "@southwind-ai/storage";
|
|
3
3
|
import { and, asc, desc, eq, gt, isNotNull, lte, or, sql } from "drizzle-orm";
|
|
4
|
-
import type { ArtifactRef } from "@
|
|
4
|
+
import type { ArtifactRef } from "@southwind-ai/storage";
|
|
5
5
|
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
6
6
|
import type {
|
|
7
7
|
BulkArtifactKind,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { entitlementKey } from "@
|
|
2
|
+
import { entitlementKey } from "@southwind-ai/shared";
|
|
3
3
|
import { createFoundationSnapshot } from "../foundation.js";
|
|
4
4
|
import { createServerRuntime } from "../runtime.js";
|
|
5
5
|
import type { RouteApp } from "../system/routes.js";
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
AuditActionType,
|
|
3
3
|
FeatureFlagDefinition,
|
|
4
4
|
HttpMethod,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@southwind-ai/shared";
|
|
6
6
|
import type { RequestGuardContext } from "../guards.js";
|
|
7
7
|
import { evaluateRouteGuards, findFeature } from "../route-guards.js";
|
|
8
8
|
import type { createServerRuntime } from "../runtime.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import type { RequestActor } from "../guards.js";
|
|
3
|
-
import { MemoryBlobStore } from "@
|
|
3
|
+
import { MemoryBlobStore } from "@southwind-ai/storage";
|
|
4
4
|
import { InMemoryEntityRepository } from "../system/repository.js";
|
|
5
5
|
import type { ManagedDictionary } from "../system/entities.js";
|
|
6
6
|
import { DictionaryBulkResourceHandler } from "./dictionary-handler.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RequestActor } from "../guards.js";
|
|
2
|
-
import type { BlobStore } from "@
|
|
2
|
+
import type { BlobStore } from "@southwind-ai/storage";
|
|
3
3
|
import type { LegacyDurableAdapter } from "../jobs/legacy-adapter.js";
|
|
4
4
|
import { BulkArtifactStore } from "./artifact-store.js";
|
|
5
5
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlatformConfig } from "@
|
|
2
|
-
import type { FeatureFlagDefinition } from "@
|
|
1
|
+
import type { PlatformConfig } from "@southwind-ai/config";
|
|
2
|
+
import type { FeatureFlagDefinition } from "@southwind-ai/shared";
|
|
3
3
|
import type { FoundationSnapshot } from "../foundation.js";
|
|
4
4
|
import type { createServerRuntime } from "../runtime.js";
|
|
5
5
|
import type { RouteApp } from "../system/route-types.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { platformConfigDefinition, type PlatformConfig } from "@
|
|
1
|
+
import { platformConfigDefinition, type PlatformConfig } from "@southwind-ai/config";
|
|
2
2
|
import type {
|
|
3
3
|
ModuleConfigFieldDescriptor,
|
|
4
4
|
ModuleConfigValues,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@southwind-ai/shared";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
export interface ManagedModuleConfigDefinition {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomUUIDv7 } from "bun";
|
|
2
|
-
import { moduleConfigVersions } from "@
|
|
3
|
-
import type { ModuleConfigVersion } from "@
|
|
2
|
+
import { moduleConfigVersions } from "@southwind-ai/database";
|
|
3
|
+
import type { ModuleConfigVersion } from "@southwind-ai/shared";
|
|
4
4
|
import { and, desc, eq, ne, sql } from "drizzle-orm";
|
|
5
5
|
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
6
6
|
import type {
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
AuditOutcome,
|
|
5
5
|
FeatureFlagDefinition,
|
|
6
6
|
ModuleConfigVersion,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@southwind-ai/shared";
|
|
8
8
|
import { evaluateRouteGuards, findFeature } from "../route-guards.js";
|
|
9
9
|
import type { createServerRuntime } from "../runtime.js";
|
|
10
10
|
import { resourceEvent, routeContext } from "../system/route-helpers.js";
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
ModuleConfigSummary,
|
|
4
4
|
ModuleConfigValues,
|
|
5
5
|
ModuleConfigVersion,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@southwind-ai/shared";
|
|
7
7
|
import { ZodError } from "zod";
|
|
8
8
|
import type { ManagedModuleConfigDefinition } from "./definition.js";
|
|
9
9
|
import type { ModuleConfigVersionRepository } from "./repository.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DataScope } from "@
|
|
2
|
-
import type { GovernedExportScopeSnapshot } from "@
|
|
1
|
+
import type { DataScope } from "@southwind-ai/shared";
|
|
2
|
+
import type { GovernedExportScopeSnapshot } from "@southwind-ai/database";
|
|
3
3
|
|
|
4
4
|
export interface DataAccessRolePolicy {
|
|
5
5
|
id: string;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
test,
|
|
8
8
|
} from "bun:test";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
|
-
import type { DataScope } from "@
|
|
10
|
+
import type { DataScope } from "@southwind-ai/shared";
|
|
11
11
|
import { drizzle } from "drizzle-orm/node-postgres";
|
|
12
12
|
import { migrate } from "drizzle-orm/node-postgres/migrator";
|
|
13
13
|
import { Pool } from "pg";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import type { DataScope } from "@
|
|
2
|
+
import type { DataScope } from "@southwind-ai/shared";
|
|
3
3
|
import type { RequestActor } from "../guards.js";
|
|
4
4
|
import type { ManagedDepartment, ManagedUser } from "../system/entities.js";
|
|
5
5
|
import { InMemoryEntityRepository } from "../system/repository.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CandidateRole, WorkItemStatus } from "@
|
|
1
|
+
import type { CandidateRole, WorkItemStatus } from "@southwind-ai/shared";
|
|
2
2
|
import type { RequestActor } from "../../guards.js";
|
|
3
3
|
import type { WorkflowService } from "../../workflow/service.js";
|
|
4
4
|
import type { GovernedExportRequest } from "./types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { governedExportRequests } from "@
|
|
1
|
+
import { governedExportRequests } from "@southwind-ai/database";
|
|
2
2
|
import { and, eq } from "drizzle-orm";
|
|
3
3
|
import type { NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
4
4
|
import type { GovernedExportRepository } from "./repository.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
|
+
import { DurableHandlerRegistry } from "@southwind-ai/jobs";
|
|
2
3
|
import {
|
|
3
4
|
MemoryBlobStore,
|
|
4
5
|
type BlobStore,
|
|
5
6
|
type PutBlobInput,
|
|
6
|
-
} from "@
|
|
7
|
+
} from "@southwind-ai/storage";
|
|
7
8
|
import { buildScopeContext } from "../../data-access/context.js";
|
|
8
|
-
import { DurableHandlerRegistry } from "../../jobs/handler-registry.js";
|
|
9
9
|
import { InMemoryDurableExecutionRepository } from "../../jobs/in-memory-execution.js";
|
|
10
10
|
import { DurableJobService } from "../../jobs/service.js";
|
|
11
11
|
import { DurableJobWorker } from "../../jobs/worker.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { DurableHandlerError, type DurableHandlerRegistry } from "@southwind-ai/jobs";
|
|
2
|
+
import type { BlobStore } from "@southwind-ai/storage";
|
|
2
3
|
import type { createServerRuntime } from "../../runtime.js";
|
|
3
|
-
import { DurableHandlerError } from "../../jobs/handler-registry.js";
|
|
4
|
-
import type { DurableHandlerRegistry } from "../../jobs/handler-registry.js";
|
|
5
4
|
import type { DurableJobService } from "../../jobs/service.js";
|
|
6
5
|
import type { DurableJobWorker } from "../../jobs/worker.js";
|
|
7
6
|
import type { GovernedExportRepository } from "./repository.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { mkdtemp, rm } from "node:fs/promises";
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
|
-
import {
|
|
4
|
+
import { DurableHandlerRegistry } from "@southwind-ai/jobs";
|
|
5
|
+
import { LocalFileBlobStore, type BlobStore } from "@southwind-ai/storage";
|
|
5
6
|
import { drizzle, type NodePgDatabase } from "drizzle-orm/node-postgres";
|
|
6
7
|
import { migrate } from "drizzle-orm/node-postgres/migrator";
|
|
7
8
|
import type { Pool } from "pg";
|
|
@@ -10,7 +11,6 @@ import { createPlatformHttpApp } from "../../http-app.js";
|
|
|
10
11
|
import { DurableArtifactService } from "../../jobs/artifact-service.js";
|
|
11
12
|
import { DrizzleDurableExecutionRepository } from "../../jobs/drizzle-execution-repository.js";
|
|
12
13
|
import { DrizzleDurableJobRepository } from "../../jobs/drizzle-repository.js";
|
|
13
|
-
import { DurableHandlerRegistry } from "../../jobs/handler-registry.js";
|
|
14
14
|
import { DurableJobService } from "../../jobs/service.js";
|
|
15
15
|
import { DurableJobWorker } from "../../jobs/worker.js";
|
|
16
16
|
import { createPlatformObservability } from "../../observability/bootstrap.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { afterAll, beforeAll, describe, expect, test } from "bun:test";
|
|
2
2
|
import { utimes } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import { LocalFileBlobMaintenance } from "@
|
|
4
|
+
import { LocalFileBlobMaintenance } from "@southwind-ai/storage";
|
|
5
5
|
import { drizzle } from "drizzle-orm/node-postgres";
|
|
6
6
|
import { Pool } from "pg";
|
|
7
7
|
import { DrizzleAuditLogWriter } from "../../audit/drizzle-log-store.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DurableHandlerRegistry } from "@southwind-ai/jobs";
|
|
2
|
+
import type { WorkItemStatus } from "@southwind-ai/shared";
|
|
2
3
|
import {
|
|
3
4
|
MemoryBlobStore,
|
|
4
5
|
type BlobStore,
|
|
5
6
|
type PutBlobInput,
|
|
6
|
-
} from "@
|
|
7
|
+
} from "@southwind-ai/storage";
|
|
7
8
|
import { createFoundationSnapshot } from "../../foundation.js";
|
|
8
9
|
import type { RequestActor } from "../../guards.js";
|
|
9
10
|
import { DurableArtifactService } from "../../jobs/artifact-service.js";
|
|
10
|
-
import { DurableHandlerRegistry } from "../../jobs/handler-registry.js";
|
|
11
11
|
import { InMemoryDurableExecutionRepository } from "../../jobs/in-memory-execution.js";
|
|
12
12
|
import { DurableJobService } from "../../jobs/service.js";
|
|
13
13
|
import { DurableJobWorker } from "../../jobs/worker.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FeatureFlagDefinition, LifecycleStatus } from "@
|
|
1
|
+
import type { FeatureFlagDefinition, LifecycleStatus } from "@southwind-ai/shared";
|
|
2
2
|
import type { RequestGuardContext } from "../../guards.js";
|
|
3
3
|
import { DurableArtifactError } from "../../jobs/artifact-service.js";
|
|
4
4
|
import { evaluateRouteGuards, findSystemFeature } from "../../route-guards.js";
|