@shepai/cli 1.136.0-pr441.5eaafd1 → 1.136.0-pr444.eca4070
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/apis/json-schema/FeatureFlags.yaml +0 -5
- package/apis/json-schema/NotificationEventConfig.yaml +0 -15
- package/apis/json-schema/NotificationEventType.yaml +0 -3
- package/dist/packages/core/src/application/ports/output/repositories/index.d.ts +0 -2
- package/dist/packages/core/src/application/ports/output/repositories/index.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/index.d.ts +0 -1
- package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/create-feature.use-case.js +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/metadata-generator.d.ts +12 -1
- package/dist/packages/core/src/application/use-cases/features/create/metadata-generator.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/create/metadata-generator.js +61 -4
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +0 -4
- package/dist/packages/core/src/domain/generated/output.d.ts +1 -114
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +0 -16
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +0 -66
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +0 -4
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.js +0 -8
- package/dist/packages/core/src/infrastructure/services/notifications/notification.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/notifications/notification.service.js +0 -3
- package/dist/src/presentation/cli/commands/_serve.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/_serve.command.js +0 -14
- package/dist/src/presentation/cli/index.js +0 -2
- package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/derive-feature-state.js +0 -4
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.js +0 -3
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/feature-flags-settings-section.stories.js +0 -3
- package/dist/src/presentation/web/components/features/settings/notification-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/notification-settings-section.js +1 -6
- package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/notification-settings-section.stories.js +0 -6
- package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.js +2 -19
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.js +0 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.stories.js +0 -1
- package/dist/src/presentation/web/hooks/feature-flags-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/feature-flags-context.js +0 -1
- package/dist/src/presentation/web/lib/feature-flags.d.ts +0 -2
- package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/feature-flags.js +0 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/app-path-routes-manifest.json +1 -2
- package/web/.next/build-manifest.json +2 -2
- package/web/.next/fallback-build-manifest.json +2 -2
- package/web/.next/prerender-manifest.json +3 -3
- package/web/.next/required-server-files.js +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/routes-manifest.json +0 -6
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +23 -23
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +25 -25
- package/web/.next/server/app/(dashboard)/create/page.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +23 -23
- package/web/.next/server/app/(dashboard)/page.js +1 -1
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +23 -23
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
- package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
- package/web/.next/server/app/api/feature-logs/route.js +1 -1
- package/web/.next/server/app/api/feature-logs/route.js.nft.json +1 -1
- package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/settings/page.js +2 -2
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/skills/page.js +1 -1
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/tools/page.js +1 -1
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/version/page.js.nft.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app-paths-manifest.json +1 -2
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
- package/web/.next/server/chunks/{[root-of-the-server]__c7d52490._.js → [root-of-the-server]__2b1074db._.js} +2 -2
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_b49d9c97.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_b49d9c97.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_8b618f7d._.js +3 -0
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_8b618f7d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_28632197.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_28632197.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_10695d37.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_10695d37.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__57e0ee34._.js → [root-of-the-server]__3ef34e4c._.js} +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3ef34e4c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__47ded061._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__47ded061._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__68ce373c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__68ce373c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__33ac1a70._.js → [root-of-the-server]__6ec59045._.js} +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6ec59045._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__718766da._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__718766da._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__07f12984._.js → [root-of-the-server]__a5f9c6e5._.js} +3 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5f9c6e5._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b3dbadca._.js +3 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__6e93b49c._.js.map → [root-of-the-server]__b3dbadca._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdd058b2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdd058b2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_a3721140._.js → _0020fddd._.js} +2 -2
- package/web/.next/server/chunks/ssr/_0020fddd._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_01046927._.js +9 -0
- package/web/.next/server/chunks/ssr/_01046927._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{403f9_next_53742624._.js → _02ec1aea._.js} +2 -2
- package/web/.next/server/chunks/ssr/_02ec1aea._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_8e8cd7e1._.js → _0afe5add._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_8e8cd7e1._.js.map → _0afe5add._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{f7870_sonner_dist_index_mjs_dbf63824._.js → _1b7dae9a._.js} +2 -2
- package/web/.next/server/chunks/ssr/_1b7dae9a._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_67104d9e._.js +3 -0
- package/web/.next/server/chunks/ssr/_67104d9e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_7dca1882._.js +3 -0
- package/web/.next/server/chunks/ssr/_7dca1882._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a37f5f18._.js +1 -1
- package/web/.next/server/chunks/ssr/_a37f5f18._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_6701ee41._.js → _a9f57758._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_6701ee41._.js.map → _a9f57758._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_277acdde._.js → _b5fc318a._.js} +2 -2
- package/web/.next/server/chunks/ssr/_b5fc318a._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_d4b20e29._.js +3 -0
- package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_e6819f98._.js +3 -0
- package/web/.next/server/chunks/ssr/_e6819f98._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_e69a26ba._.js +1 -1
- package/web/.next/server/chunks/ssr/_f39a1adb._.js +3 -0
- package/web/.next/server/chunks/ssr/_f39a1adb._.js.map +1 -0
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_55c7a131._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_55c7a131._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_53666118._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_53666118._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6e5a6584._.js +3 -0
- package/web/.next/server/chunks/ssr/{src_presentation_web_53fa3010._.js.map → src_presentation_web_6e5a6584._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_d95e128d.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_d95e128d.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e4df6dd7._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_e4df6dd7._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +42 -123
- package/web/.next/static/chunks/0b7fe2ac4f078f54.js +13 -0
- package/web/.next/static/chunks/{196650f8cd7fb06a.js → 0d9d536c3a1e3769.js} +1 -1
- package/web/.next/static/chunks/567ce91151ef6047.js +1 -0
- package/web/.next/static/chunks/601d93593f5f664f.js +1 -0
- package/web/.next/static/chunks/637939aee23af962.js +1 -0
- package/web/.next/static/chunks/{42c9564e375717ed.js → 672e3da3ad26005b.js} +1 -1
- package/web/.next/static/chunks/688971d5bad5dc7c.js +1 -0
- package/web/.next/static/chunks/6cfe48db0ef62904.js +1 -0
- package/web/.next/static/chunks/7551e6ec93bab5f0.js +1 -0
- package/web/.next/static/chunks/88172de8ecaf66b3.js +2 -0
- package/web/.next/static/chunks/{2002f5eec5ffec42.css → 92cd6f523639a6fa.css} +1 -1
- package/web/.next/static/chunks/92e04793b5e324cd.js +1 -0
- package/web/.next/static/chunks/{bee578019062e7f9.js → b04ab84a67bae78b.js} +2 -2
- package/web/.next/static/chunks/b70dd4985a814b27.js +1 -0
- package/web/.next/static/chunks/d0dff217a94d4ee1.js +1 -0
- package/web/.next/static/chunks/d408e7dc9c253e29.js +1 -0
- package/web/.next/static/chunks/dde2b000405d2ae4.js +1 -0
- package/web/.next/static/chunks/e843dbe14e813279.js +1 -0
- package/web/.next/static/chunks/fb766dbac52d1c8d.js +1 -0
- package/apis/json-schema/ScheduledWorkflow.yaml +0 -46
- package/apis/json-schema/WorkflowExecution.yaml +0 -38
- package/apis/json-schema/WorkflowExecutionStatus.yaml +0 -10
- package/apis/json-schema/WorkflowTriggerType.yaml +0 -7
- package/dist/packages/core/src/application/ports/output/repositories/workflow-execution-repository.interface.d.ts +0 -66
- package/dist/packages/core/src/application/ports/output/repositories/workflow-execution-repository.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/repositories/workflow-execution-repository.interface.js +0 -11
- package/dist/packages/core/src/application/ports/output/repositories/workflow-repository.interface.d.ts +0 -81
- package/dist/packages/core/src/application/ports/output/repositories/workflow-repository.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/repositories/workflow-repository.interface.js +0 -11
- package/dist/packages/core/src/application/ports/output/services/clock.interface.d.ts +0 -28
- package/dist/packages/core/src/application/ports/output/services/clock.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/clock.interface.js +0 -13
- package/dist/packages/core/src/application/use-cases/workflows/create-workflow.use-case.d.ts +0 -28
- package/dist/packages/core/src/application/use-cases/workflows/create-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/create-workflow.use-case.js +0 -72
- package/dist/packages/core/src/application/use-cases/workflows/cron-helpers.d.ts +0 -27
- package/dist/packages/core/src/application/use-cases/workflows/cron-helpers.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/cron-helpers.js +0 -43
- package/dist/packages/core/src/application/use-cases/workflows/delete-workflow.use-case.d.ts +0 -18
- package/dist/packages/core/src/application/use-cases/workflows/delete-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/delete-workflow.use-case.js +0 -64
- package/dist/packages/core/src/application/use-cases/workflows/get-workflow-history.use-case.d.ts +0 -16
- package/dist/packages/core/src/application/use-cases/workflows/get-workflow-history.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/get-workflow-history.use-case.js +0 -46
- package/dist/packages/core/src/application/use-cases/workflows/get-workflow.use-case.d.ts +0 -13
- package/dist/packages/core/src/application/use-cases/workflows/get-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/get-workflow.use-case.js +0 -42
- package/dist/packages/core/src/application/use-cases/workflows/list-workflows.use-case.d.ts +0 -13
- package/dist/packages/core/src/application/use-cases/workflows/list-workflows.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/list-workflows.use-case.js +0 -33
- package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.d.ts +0 -19
- package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.js +0 -62
- package/dist/packages/core/src/application/use-cases/workflows/schedule-workflow.use-case.d.ts +0 -22
- package/dist/packages/core/src/application/use-cases/workflows/schedule-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/schedule-workflow.use-case.js +0 -73
- package/dist/packages/core/src/application/use-cases/workflows/templates/branch-rebase.template.d.ts +0 -9
- package/dist/packages/core/src/application/use-cases/workflows/templates/branch-rebase.template.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/templates/branch-rebase.template.js +0 -27
- package/dist/packages/core/src/application/use-cases/workflows/templates/issue-triage.template.d.ts +0 -11
- package/dist/packages/core/src/application/use-cases/workflows/templates/issue-triage.template.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/templates/issue-triage.template.js +0 -27
- package/dist/packages/core/src/application/use-cases/workflows/toggle-workflow.use-case.d.ts +0 -16
- package/dist/packages/core/src/application/use-cases/workflows/toggle-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/toggle-workflow.use-case.js +0 -60
- package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.d.ts +0 -25
- package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.js +0 -83
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.d.ts +0 -46
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.js +0 -57
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.d.ts +0 -51
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.js +0 -71
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.d.ts +0 -12
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.js +0 -22
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.d.ts +0 -14
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.js +0 -65
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.d.ts +0 -11
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.js +0 -17
- package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.d.ts +0 -24
- package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.js +0 -92
- package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow.repository.d.ts +0 -26
- package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow.repository.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow.repository.js +0 -117
- package/dist/packages/core/src/infrastructure/services/clock.d.ts +0 -11
- package/dist/packages/core/src/infrastructure/services/clock.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/clock.js +0 -22
- package/dist/packages/core/src/infrastructure/services/workflow-scheduler/workflow-scheduler.service.d.ts +0 -69
- package/dist/packages/core/src/infrastructure/services/workflow-scheduler/workflow-scheduler.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/workflow-scheduler/workflow-scheduler.service.js +0 -270
- package/dist/src/presentation/cli/commands/workflow/create.command.d.ts +0 -13
- package/dist/src/presentation/cli/commands/workflow/create.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/create.command.js +0 -83
- package/dist/src/presentation/cli/commands/workflow/delete.command.d.ts +0 -13
- package/dist/src/presentation/cli/commands/workflow/delete.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/delete.command.js +0 -50
- package/dist/src/presentation/cli/commands/workflow/disable.command.d.ts +0 -11
- package/dist/src/presentation/cli/commands/workflow/disable.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/disable.command.js +0 -32
- package/dist/src/presentation/cli/commands/workflow/enable.command.d.ts +0 -11
- package/dist/src/presentation/cli/commands/workflow/enable.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/enable.command.js +0 -35
- package/dist/src/presentation/cli/commands/workflow/format-helpers.d.ts +0 -35
- package/dist/src/presentation/cli/commands/workflow/format-helpers.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/format-helpers.js +0 -89
- package/dist/src/presentation/cli/commands/workflow/history.command.d.ts +0 -12
- package/dist/src/presentation/cli/commands/workflow/history.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/history.command.js +0 -46
- package/dist/src/presentation/cli/commands/workflow/index.d.ts +0 -26
- package/dist/src/presentation/cli/commands/workflow/index.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/index.js +0 -48
- package/dist/src/presentation/cli/commands/workflow/list.command.d.ts +0 -11
- package/dist/src/presentation/cli/commands/workflow/list.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/list.command.js +0 -52
- package/dist/src/presentation/cli/commands/workflow/run.command.d.ts +0 -11
- package/dist/src/presentation/cli/commands/workflow/run.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/run.command.js +0 -37
- package/dist/src/presentation/cli/commands/workflow/schedule.command.d.ts +0 -13
- package/dist/src/presentation/cli/commands/workflow/schedule.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/schedule.command.js +0 -76
- package/dist/src/presentation/cli/commands/workflow/show.command.d.ts +0 -11
- package/dist/src/presentation/cli/commands/workflow/show.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/show.command.js +0 -93
- package/dist/src/presentation/cli/commands/workflow/update.command.d.ts +0 -13
- package/dist/src/presentation/cli/commands/workflow/update.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/workflow/update.command.js +0 -67
- package/dist/src/presentation/web/app/actions/get-workflow-history.d.ts +0 -7
- package/dist/src/presentation/web/app/actions/get-workflow-history.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/get-workflow-history.js +0 -17
- package/dist/src/presentation/web/app/actions/list-workflows.d.ts +0 -7
- package/dist/src/presentation/web/app/actions/list-workflows.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/list-workflows.js +0 -17
- package/dist/src/presentation/web/app/actions/toggle-workflow.d.ts +0 -8
- package/dist/src/presentation/web/app/actions/toggle-workflow.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/toggle-workflow.js +0 -19
- package/dist/src/presentation/web/app/actions/trigger-workflow.d.ts +0 -8
- package/dist/src/presentation/web/app/actions/trigger-workflow.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/trigger-workflow.js +0 -19
- package/dist/src/presentation/web/app/workflows/page.d.ts +0 -4
- package/dist/src/presentation/web/app/workflows/page.d.ts.map +0 -1
- package/dist/src/presentation/web/app/workflows/page.js +0 -18
- package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.d.ts +0 -7
- package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.js +0 -84
- package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.stories.d.ts +0 -11
- package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflow-execution-history.stories.js +0 -104
- package/dist/src/presentation/web/components/features/workflows/workflow-list-item.d.ts +0 -8
- package/dist/src/presentation/web/components/features/workflows/workflow-list-item.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflow-list-item.js +0 -68
- package/dist/src/presentation/web/components/features/workflows/workflow-list-item.stories.d.ts +0 -11
- package/dist/src/presentation/web/components/features/workflows/workflow-list-item.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflow-list-item.stories.js +0 -89
- package/dist/src/presentation/web/components/features/workflows/workflow-list.d.ts +0 -8
- package/dist/src/presentation/web/components/features/workflows/workflow-list.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflow-list.js +0 -10
- package/dist/src/presentation/web/components/features/workflows/workflow-list.stories.d.ts +0 -11
- package/dist/src/presentation/web/components/features/workflows/workflow-list.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflow-list.stories.js +0 -90
- package/dist/src/presentation/web/components/features/workflows/workflows-page-client.d.ts +0 -6
- package/dist/src/presentation/web/components/features/workflows/workflows-page-client.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflows-page-client.js +0 -14
- package/dist/src/presentation/web/components/features/workflows/workflows-page-client.stories.d.ts +0 -10
- package/dist/src/presentation/web/components/features/workflows/workflows-page-client.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/workflows/workflows-page-client.stories.js +0 -70
- package/web/.next/server/app/workflows/page/app-paths-manifest.json +0 -3
- package/web/.next/server/app/workflows/page/build-manifest.json +0 -18
- package/web/.next/server/app/workflows/page/next-font-manifest.json +0 -6
- package/web/.next/server/app/workflows/page/react-loadable-manifest.json +0 -8
- package/web/.next/server/app/workflows/page/server-reference-manifest.json +0 -110
- package/web/.next/server/app/workflows/page.js +0 -18
- package/web/.next/server/app/workflows/page.js.map +0 -5
- package/web/.next/server/app/workflows/page.js.nft.json +0 -1
- package/web/.next/server/app/workflows/page_client-reference-manifest.js +0 -2
- package/web/.next/server/chunks/ssr/403f9_next_53742624._.js.map +0 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_0c7787d0._.js +0 -3
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_0c7787d0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07f12984._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__082758f6._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__082758f6._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__32cd6108._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__32cd6108._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__33ac1a70._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__44358910._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__44358910._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__57e0ee34._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6e93b49c._.js +0 -3
- package/web/.next/server/chunks/ssr/_20a4a0d5._.js +0 -3
- package/web/.next/server/chunks/ssr/_20a4a0d5._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_25555eb5._.js +0 -3
- package/web/.next/server/chunks/ssr/_25555eb5._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_277acdde._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_4711e8cf._.js +0 -3
- package/web/.next/server/chunks/ssr/_4711e8cf._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_89a36303._.js +0 -3
- package/web/.next/server/chunks/ssr/_89a36303._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_9869d3da._.js +0 -3
- package/web/.next/server/chunks/ssr/_9869d3da._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_a3721140._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_cc1243e6._.js +0 -3
- package/web/.next/server/chunks/ssr/_cc1243e6._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_e3411387._.js +0 -9
- package/web/.next/server/chunks/ssr/_e3411387._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f64ffec0._.js +0 -4
- package/web/.next/server/chunks/ssr/_f64ffec0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_28388798._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_28388798._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_ae1705ef._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_ae1705ef._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_53fa3010._.js +0 -3
- package/web/.next/static/chunks/2c1ff62df9b34313.js +0 -1
- package/web/.next/static/chunks/3005583e819fc4fc.js +0 -1
- package/web/.next/static/chunks/333c7873f6b17ef1.js +0 -1
- package/web/.next/static/chunks/3b3f8c4f6c36a7ba.js +0 -1
- package/web/.next/static/chunks/43e0eea352eb5106.js +0 -5
- package/web/.next/static/chunks/5420560352333486.js +0 -1
- package/web/.next/static/chunks/62fa33876b0964a4.js +0 -1
- package/web/.next/static/chunks/6db2addb5e13e372.js +0 -1
- package/web/.next/static/chunks/886d0385ca1d4484.js +0 -1
- package/web/.next/static/chunks/8e52a649c3f6bdf4.js +0 -1
- package/web/.next/static/chunks/a02fc9467a585a1f.js +0 -2
- package/web/.next/static/chunks/cdb51cfd682387d2.js +0 -1
- package/web/.next/static/chunks/ed35b4293a81c861.js +0 -9
- package/web/.next/static/chunks/ed7fbcdf0b48e735.js +0 -1
- package/web/.next/static/chunks/f75142a1b75f1c32.js +0 -1
- package/web/.next/static/chunks/fabcd29d488281fa.js +0 -1
- package/web/.next/static/chunks/fd925f996c3fa318.js +0 -1
- /package/web/.next/server/chunks/{[root-of-the-server]__c7d52490._.js.map → [root-of-the-server]__2b1074db._.js.map} +0 -0
- /package/web/.next/static/{w0YQoUPySQy1O9cN91KEk → oWFb73SbPSY-pNucEiCuA}/_buildManifest.js +0 -0
- /package/web/.next/static/{w0YQoUPySQy1O9cN91KEk → oWFb73SbPSY-pNucEiCuA}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{w0YQoUPySQy1O9cN91KEk → oWFb73SbPSY-pNucEiCuA}/_ssgManifest.js +0 -0
package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update Workflow Use Case
|
|
3
|
-
*
|
|
4
|
-
* Updates an existing workflow's fields. If the name changes, validates
|
|
5
|
-
* uniqueness. If the cron expression or timezone changes, recalculates nextRunAt.
|
|
6
|
-
*/
|
|
7
|
-
import type { ScheduledWorkflow } from '../../../domain/generated/output.js';
|
|
8
|
-
import type { IWorkflowRepository } from '../../ports/output/repositories/workflow-repository.interface.js';
|
|
9
|
-
import type { IClock } from '../../ports/output/services/clock.interface.js';
|
|
10
|
-
export interface UpdateWorkflowInput {
|
|
11
|
-
id: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
prompt?: string;
|
|
15
|
-
toolConstraints?: string[];
|
|
16
|
-
cronExpression?: string | null;
|
|
17
|
-
timezone?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export declare class UpdateWorkflowUseCase {
|
|
20
|
-
private readonly workflowRepo;
|
|
21
|
-
private readonly clock;
|
|
22
|
-
constructor(workflowRepo: IWorkflowRepository, clock: IClock);
|
|
23
|
-
execute(input: UpdateWorkflowInput): Promise<ScheduledWorkflow>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=update-workflow.use-case.d.ts.map
|
package/dist/packages/core/src/application/use-cases/workflows/update-workflow.use-case.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-workflow.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/workflows/update-workflow.use-case.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kEAAkE,CAAC;AAC5G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AAG7E,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,qBACa,qBAAqB;IAG9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAE7B,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAFL,YAAY,EAAE,mBAAmB,EAEjC,KAAK,EAAE,MAAM;IAG1B,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAsDtE"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update Workflow Use Case
|
|
3
|
-
*
|
|
4
|
-
* Updates an existing workflow's fields. If the name changes, validates
|
|
5
|
-
* uniqueness. If the cron expression or timezone changes, recalculates nextRunAt.
|
|
6
|
-
*/
|
|
7
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
8
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
-
};
|
|
13
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
14
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15
|
-
};
|
|
16
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
17
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
18
|
-
};
|
|
19
|
-
import { injectable, inject } from 'tsyringe';
|
|
20
|
-
import { validateCronExpression, calculateNextRunAt } from './cron-helpers.js';
|
|
21
|
-
let UpdateWorkflowUseCase = class UpdateWorkflowUseCase {
|
|
22
|
-
workflowRepo;
|
|
23
|
-
clock;
|
|
24
|
-
constructor(workflowRepo, clock) {
|
|
25
|
-
this.workflowRepo = workflowRepo;
|
|
26
|
-
this.clock = clock;
|
|
27
|
-
}
|
|
28
|
-
async execute(input) {
|
|
29
|
-
const workflow = await this.workflowRepo.findById(input.id);
|
|
30
|
-
if (!workflow) {
|
|
31
|
-
throw new Error(`Workflow not found: "${input.id}"`);
|
|
32
|
-
}
|
|
33
|
-
// Validate name uniqueness if name is changing
|
|
34
|
-
if (input.name != null && input.name !== workflow.name) {
|
|
35
|
-
const existing = await this.workflowRepo.findByName(input.name, workflow.repositoryPath);
|
|
36
|
-
if (existing) {
|
|
37
|
-
throw new Error(`A workflow named "${input.name}" already exists in this repository.`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
// Validate new cron expression if provided
|
|
41
|
-
const cronChanged = input.cronExpression !== undefined;
|
|
42
|
-
const timezoneChanged = input.timezone !== undefined;
|
|
43
|
-
const newCron = cronChanged ? (input.cronExpression ?? undefined) : workflow.cronExpression;
|
|
44
|
-
const newTimezone = timezoneChanged ? (input.timezone ?? undefined) : workflow.timezone;
|
|
45
|
-
if (newCron) {
|
|
46
|
-
validateCronExpression(newCron);
|
|
47
|
-
}
|
|
48
|
-
// Apply updates
|
|
49
|
-
const now = this.clock.now();
|
|
50
|
-
const updated = {
|
|
51
|
-
...workflow,
|
|
52
|
-
...(input.name != null && { name: input.name }),
|
|
53
|
-
...(input.description !== undefined && {
|
|
54
|
-
description: input.description ?? undefined,
|
|
55
|
-
}),
|
|
56
|
-
...(input.prompt != null && { prompt: input.prompt }),
|
|
57
|
-
...(input.toolConstraints !== undefined && {
|
|
58
|
-
toolConstraints: input.toolConstraints ?? undefined,
|
|
59
|
-
}),
|
|
60
|
-
...(cronChanged && { cronExpression: newCron }),
|
|
61
|
-
...(timezoneChanged && { timezone: newTimezone }),
|
|
62
|
-
updatedAt: now,
|
|
63
|
-
};
|
|
64
|
-
// Recalculate nextRunAt if cron expression or timezone changed
|
|
65
|
-
if ((cronChanged || timezoneChanged) && updated.enabled) {
|
|
66
|
-
if (newCron) {
|
|
67
|
-
updated.nextRunAt = calculateNextRunAt(newCron, newTimezone, now) ?? undefined;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
updated.nextRunAt = undefined;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
await this.workflowRepo.update(updated);
|
|
74
|
-
return updated;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
UpdateWorkflowUseCase = __decorate([
|
|
78
|
-
injectable(),
|
|
79
|
-
__param(0, inject('IWorkflowRepository')),
|
|
80
|
-
__param(1, inject('IClock')),
|
|
81
|
-
__metadata("design:paramtypes", [Object, Object])
|
|
82
|
-
], UpdateWorkflowUseCase);
|
|
83
|
-
export { UpdateWorkflowUseCase };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow Execution Database Mapper
|
|
3
|
-
*
|
|
4
|
-
* Maps between WorkflowExecution domain objects and SQLite database rows.
|
|
5
|
-
*
|
|
6
|
-
* Mapping Rules:
|
|
7
|
-
* - TypeScript objects (camelCase) <-> SQL columns (snake_case)
|
|
8
|
-
* - Dates stored as INTEGER (unix milliseconds)
|
|
9
|
-
* - Optional fields stored as NULL when missing
|
|
10
|
-
* - Enum values (WorkflowTriggerType, WorkflowExecutionStatus) stored as strings
|
|
11
|
-
*/
|
|
12
|
-
import type { WorkflowExecution } from '../../../../domain/generated/output.js';
|
|
13
|
-
/**
|
|
14
|
-
* Database row type matching the workflow_executions table schema.
|
|
15
|
-
* Uses snake_case column names.
|
|
16
|
-
*/
|
|
17
|
-
export interface WorkflowExecutionRow {
|
|
18
|
-
id: string;
|
|
19
|
-
workflow_id: string;
|
|
20
|
-
trigger_type: string;
|
|
21
|
-
status: string;
|
|
22
|
-
started_at: number;
|
|
23
|
-
completed_at: number | null;
|
|
24
|
-
duration_ms: number | null;
|
|
25
|
-
output_summary: string | null;
|
|
26
|
-
error_message: string | null;
|
|
27
|
-
created_at: number;
|
|
28
|
-
updated_at: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Maps WorkflowExecution domain object to database row.
|
|
32
|
-
* Converts Date objects to unix milliseconds for SQL storage.
|
|
33
|
-
*
|
|
34
|
-
* @param execution - WorkflowExecution domain object
|
|
35
|
-
* @returns Database row object with snake_case columns
|
|
36
|
-
*/
|
|
37
|
-
export declare function toDatabase(execution: WorkflowExecution): WorkflowExecutionRow;
|
|
38
|
-
/**
|
|
39
|
-
* Maps database row to WorkflowExecution domain object.
|
|
40
|
-
* Converts unix milliseconds back to Date objects.
|
|
41
|
-
*
|
|
42
|
-
* @param row - Database row with snake_case columns
|
|
43
|
-
* @returns WorkflowExecution domain object with camelCase properties
|
|
44
|
-
*/
|
|
45
|
-
export declare function fromDatabase(row: WorkflowExecutionRow): WorkflowExecution;
|
|
46
|
-
//# sourceMappingURL=workflow-execution.mapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-execution.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-execution.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAMhF;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,iBAAiB,GAAG,oBAAoB,CAoB7E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,oBAAoB,GAAG,iBAAiB,CAczE"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow Execution Database Mapper
|
|
3
|
-
*
|
|
4
|
-
* Maps between WorkflowExecution domain objects and SQLite database rows.
|
|
5
|
-
*
|
|
6
|
-
* Mapping Rules:
|
|
7
|
-
* - TypeScript objects (camelCase) <-> SQL columns (snake_case)
|
|
8
|
-
* - Dates stored as INTEGER (unix milliseconds)
|
|
9
|
-
* - Optional fields stored as NULL when missing
|
|
10
|
-
* - Enum values (WorkflowTriggerType, WorkflowExecutionStatus) stored as strings
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Maps WorkflowExecution domain object to database row.
|
|
14
|
-
* Converts Date objects to unix milliseconds for SQL storage.
|
|
15
|
-
*
|
|
16
|
-
* @param execution - WorkflowExecution domain object
|
|
17
|
-
* @returns Database row object with snake_case columns
|
|
18
|
-
*/
|
|
19
|
-
export function toDatabase(execution) {
|
|
20
|
-
return {
|
|
21
|
-
id: execution.id,
|
|
22
|
-
workflow_id: execution.workflowId,
|
|
23
|
-
trigger_type: execution.triggerType,
|
|
24
|
-
status: execution.status,
|
|
25
|
-
started_at: execution.startedAt instanceof Date ? execution.startedAt.getTime() : execution.startedAt,
|
|
26
|
-
completed_at: execution.completedAt instanceof Date
|
|
27
|
-
? execution.completedAt.getTime()
|
|
28
|
-
: (execution.completedAt ?? null),
|
|
29
|
-
duration_ms: execution.durationMs ?? null,
|
|
30
|
-
output_summary: execution.outputSummary ?? null,
|
|
31
|
-
error_message: execution.errorMessage ?? null,
|
|
32
|
-
created_at: execution.createdAt instanceof Date ? execution.createdAt.getTime() : execution.createdAt,
|
|
33
|
-
updated_at: execution.updatedAt instanceof Date ? execution.updatedAt.getTime() : execution.updatedAt,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Maps database row to WorkflowExecution domain object.
|
|
38
|
-
* Converts unix milliseconds back to Date objects.
|
|
39
|
-
*
|
|
40
|
-
* @param row - Database row with snake_case columns
|
|
41
|
-
* @returns WorkflowExecution domain object with camelCase properties
|
|
42
|
-
*/
|
|
43
|
-
export function fromDatabase(row) {
|
|
44
|
-
return {
|
|
45
|
-
id: row.id,
|
|
46
|
-
workflowId: row.workflow_id,
|
|
47
|
-
triggerType: row.trigger_type,
|
|
48
|
-
status: row.status,
|
|
49
|
-
startedAt: new Date(row.started_at),
|
|
50
|
-
createdAt: new Date(row.created_at),
|
|
51
|
-
updatedAt: new Date(row.updated_at),
|
|
52
|
-
...(row.completed_at != null && { completedAt: new Date(row.completed_at) }),
|
|
53
|
-
...(row.duration_ms != null && { durationMs: row.duration_ms }),
|
|
54
|
-
...(row.output_summary != null && { outputSummary: row.output_summary }),
|
|
55
|
-
...(row.error_message != null && { errorMessage: row.error_message }),
|
|
56
|
-
};
|
|
57
|
-
}
|
package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scheduled Workflow Database Mapper
|
|
3
|
-
*
|
|
4
|
-
* Maps between ScheduledWorkflow domain objects and SQLite database rows.
|
|
5
|
-
*
|
|
6
|
-
* Mapping Rules:
|
|
7
|
-
* - TypeScript objects (camelCase) <-> SQL columns (snake_case)
|
|
8
|
-
* - Dates stored as INTEGER (unix milliseconds)
|
|
9
|
-
* - Optional fields stored as NULL when missing
|
|
10
|
-
* - toolConstraints stored as JSON TEXT array
|
|
11
|
-
* - enabled stored as INTEGER (0/1)
|
|
12
|
-
* - SoftDeletableEntity: deletedAt mapped to deleted_at
|
|
13
|
-
*/
|
|
14
|
-
import type { ScheduledWorkflow } from '../../../../domain/generated/output.js';
|
|
15
|
-
/**
|
|
16
|
-
* Database row type matching the scheduled_workflows table schema.
|
|
17
|
-
* Uses snake_case column names.
|
|
18
|
-
*/
|
|
19
|
-
export interface ScheduledWorkflowRow {
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
description: string | null;
|
|
23
|
-
prompt: string;
|
|
24
|
-
tool_constraints: string | null;
|
|
25
|
-
cron_expression: string | null;
|
|
26
|
-
timezone: string | null;
|
|
27
|
-
enabled: number;
|
|
28
|
-
last_run_at: number | null;
|
|
29
|
-
next_run_at: number | null;
|
|
30
|
-
repository_path: string;
|
|
31
|
-
deleted_at: number | null;
|
|
32
|
-
created_at: number;
|
|
33
|
-
updated_at: number;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Maps ScheduledWorkflow domain object to database row.
|
|
37
|
-
* Converts Date objects to unix milliseconds and complex fields to JSON for SQL storage.
|
|
38
|
-
*
|
|
39
|
-
* @param workflow - ScheduledWorkflow domain object
|
|
40
|
-
* @returns Database row object with snake_case columns
|
|
41
|
-
*/
|
|
42
|
-
export declare function toDatabase(workflow: ScheduledWorkflow): ScheduledWorkflowRow;
|
|
43
|
-
/**
|
|
44
|
-
* Maps database row to ScheduledWorkflow domain object.
|
|
45
|
-
* Converts unix milliseconds back to Date objects and JSON strings to arrays.
|
|
46
|
-
*
|
|
47
|
-
* @param row - Database row with snake_case columns
|
|
48
|
-
* @returns ScheduledWorkflow domain object with camelCase properties
|
|
49
|
-
*/
|
|
50
|
-
export declare function fromDatabase(row: ScheduledWorkflowRow): ScheduledWorkflow;
|
|
51
|
-
//# sourceMappingURL=workflow.mapper.d.ts.map
|
package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/mappers/workflow.mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,iBAAiB,GAAG,oBAAoB,CA4B5E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,oBAAoB,GAAG,iBAAiB,CAmBzE"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Scheduled Workflow Database Mapper
|
|
3
|
-
*
|
|
4
|
-
* Maps between ScheduledWorkflow domain objects and SQLite database rows.
|
|
5
|
-
*
|
|
6
|
-
* Mapping Rules:
|
|
7
|
-
* - TypeScript objects (camelCase) <-> SQL columns (snake_case)
|
|
8
|
-
* - Dates stored as INTEGER (unix milliseconds)
|
|
9
|
-
* - Optional fields stored as NULL when missing
|
|
10
|
-
* - toolConstraints stored as JSON TEXT array
|
|
11
|
-
* - enabled stored as INTEGER (0/1)
|
|
12
|
-
* - SoftDeletableEntity: deletedAt mapped to deleted_at
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Maps ScheduledWorkflow domain object to database row.
|
|
16
|
-
* Converts Date objects to unix milliseconds and complex fields to JSON for SQL storage.
|
|
17
|
-
*
|
|
18
|
-
* @param workflow - ScheduledWorkflow domain object
|
|
19
|
-
* @returns Database row object with snake_case columns
|
|
20
|
-
*/
|
|
21
|
-
export function toDatabase(workflow) {
|
|
22
|
-
return {
|
|
23
|
-
id: workflow.id,
|
|
24
|
-
name: workflow.name,
|
|
25
|
-
description: workflow.description ?? null,
|
|
26
|
-
prompt: workflow.prompt,
|
|
27
|
-
tool_constraints: workflow.toolConstraints ? JSON.stringify(workflow.toolConstraints) : null,
|
|
28
|
-
cron_expression: workflow.cronExpression ?? null,
|
|
29
|
-
timezone: workflow.timezone ?? null,
|
|
30
|
-
enabled: workflow.enabled ? 1 : 0,
|
|
31
|
-
last_run_at: workflow.lastRunAt instanceof Date
|
|
32
|
-
? workflow.lastRunAt.getTime()
|
|
33
|
-
: (workflow.lastRunAt ?? null),
|
|
34
|
-
next_run_at: workflow.nextRunAt instanceof Date
|
|
35
|
-
? workflow.nextRunAt.getTime()
|
|
36
|
-
: (workflow.nextRunAt ?? null),
|
|
37
|
-
repository_path: workflow.repositoryPath,
|
|
38
|
-
deleted_at: workflow.deletedAt instanceof Date
|
|
39
|
-
? workflow.deletedAt.getTime()
|
|
40
|
-
: (workflow.deletedAt ?? null),
|
|
41
|
-
created_at: workflow.createdAt instanceof Date ? workflow.createdAt.getTime() : workflow.createdAt,
|
|
42
|
-
updated_at: workflow.updatedAt instanceof Date ? workflow.updatedAt.getTime() : workflow.updatedAt,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Maps database row to ScheduledWorkflow domain object.
|
|
47
|
-
* Converts unix milliseconds back to Date objects and JSON strings to arrays.
|
|
48
|
-
*
|
|
49
|
-
* @param row - Database row with snake_case columns
|
|
50
|
-
* @returns ScheduledWorkflow domain object with camelCase properties
|
|
51
|
-
*/
|
|
52
|
-
export function fromDatabase(row) {
|
|
53
|
-
return {
|
|
54
|
-
id: row.id,
|
|
55
|
-
name: row.name,
|
|
56
|
-
prompt: row.prompt,
|
|
57
|
-
enabled: row.enabled === 1,
|
|
58
|
-
repositoryPath: row.repository_path,
|
|
59
|
-
createdAt: new Date(row.created_at),
|
|
60
|
-
updatedAt: new Date(row.updated_at),
|
|
61
|
-
...(row.description != null && { description: row.description }),
|
|
62
|
-
...(row.tool_constraints != null && {
|
|
63
|
-
toolConstraints: JSON.parse(row.tool_constraints),
|
|
64
|
-
}),
|
|
65
|
-
...(row.cron_expression != null && { cronExpression: row.cron_expression }),
|
|
66
|
-
...(row.timezone != null && { timezone: row.timezone }),
|
|
67
|
-
...(row.last_run_at != null && { lastRunAt: new Date(row.last_run_at) }),
|
|
68
|
-
...(row.next_run_at != null && { nextRunAt: new Date(row.next_run_at) }),
|
|
69
|
-
...(row.deleted_at != null && { deletedAt: new Date(row.deleted_at) }),
|
|
70
|
-
};
|
|
71
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration 044: Add workflow notification event columns to settings table.
|
|
3
|
-
*
|
|
4
|
-
* Adds three new notification event type filter columns for scheduled
|
|
5
|
-
* workflow execution events: started, completed, and failed.
|
|
6
|
-
* All default to 1 (enabled).
|
|
7
|
-
*/
|
|
8
|
-
import type { MigrationParams } from 'umzug';
|
|
9
|
-
import type Database from 'better-sqlite3';
|
|
10
|
-
export declare function up({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
11
|
-
export declare function down({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
12
|
-
//# sourceMappingURL=044-add-workflow-notification-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"044-add-workflow-notification-events.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/migrations/044-add-workflow-notification-events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,wBAAsB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAgB3F;AAED,wBAAsB,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7F"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration 044: Add workflow notification event columns to settings table.
|
|
3
|
-
*
|
|
4
|
-
* Adds three new notification event type filter columns for scheduled
|
|
5
|
-
* workflow execution events: started, completed, and failed.
|
|
6
|
-
* All default to 1 (enabled).
|
|
7
|
-
*/
|
|
8
|
-
export async function up({ context: db }) {
|
|
9
|
-
const columns = db.pragma('table_info(settings)');
|
|
10
|
-
if (!columns.some((c) => c.name === 'notif_evt_workflow_started')) {
|
|
11
|
-
db.exec('ALTER TABLE settings ADD COLUMN notif_evt_workflow_started INTEGER NOT NULL DEFAULT 1');
|
|
12
|
-
}
|
|
13
|
-
if (!columns.some((c) => c.name === 'notif_evt_workflow_completed')) {
|
|
14
|
-
db.exec('ALTER TABLE settings ADD COLUMN notif_evt_workflow_completed INTEGER NOT NULL DEFAULT 1');
|
|
15
|
-
}
|
|
16
|
-
if (!columns.some((c) => c.name === 'notif_evt_workflow_failed')) {
|
|
17
|
-
db.exec('ALTER TABLE settings ADD COLUMN notif_evt_workflow_failed INTEGER NOT NULL DEFAULT 1');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export async function down({ context: db }) {
|
|
21
|
-
void db;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration 045: Create scheduled_workflows and workflow_executions tables.
|
|
3
|
-
*
|
|
4
|
-
* Creates the persistence schema for the scheduled-workflows feature:
|
|
5
|
-
* - scheduled_workflows: Stores workflow definitions with cron schedules
|
|
6
|
-
* - workflow_executions: Stores execution history for each workflow run
|
|
7
|
-
*
|
|
8
|
-
* Uses CREATE TABLE IF NOT EXISTS and CREATE INDEX IF NOT EXISTS for idempotency.
|
|
9
|
-
*/
|
|
10
|
-
import type { MigrationParams } from 'umzug';
|
|
11
|
-
import type Database from 'better-sqlite3';
|
|
12
|
-
export declare function up({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
13
|
-
export declare function down({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
14
|
-
//# sourceMappingURL=045-create-scheduled-workflows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"045-create-scheduled-workflows.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/migrations/045-create-scheduled-workflows.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,wBAAsB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAoD3F;AAED,wBAAsB,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7F"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration 045: Create scheduled_workflows and workflow_executions tables.
|
|
3
|
-
*
|
|
4
|
-
* Creates the persistence schema for the scheduled-workflows feature:
|
|
5
|
-
* - scheduled_workflows: Stores workflow definitions with cron schedules
|
|
6
|
-
* - workflow_executions: Stores execution history for each workflow run
|
|
7
|
-
*
|
|
8
|
-
* Uses CREATE TABLE IF NOT EXISTS and CREATE INDEX IF NOT EXISTS for idempotency.
|
|
9
|
-
*/
|
|
10
|
-
export async function up({ context: db }) {
|
|
11
|
-
db.exec(`
|
|
12
|
-
CREATE TABLE IF NOT EXISTS scheduled_workflows (
|
|
13
|
-
id TEXT PRIMARY KEY NOT NULL,
|
|
14
|
-
name TEXT NOT NULL,
|
|
15
|
-
description TEXT,
|
|
16
|
-
prompt TEXT NOT NULL,
|
|
17
|
-
tool_constraints TEXT,
|
|
18
|
-
cron_expression TEXT,
|
|
19
|
-
timezone TEXT,
|
|
20
|
-
enabled INTEGER NOT NULL DEFAULT 1,
|
|
21
|
-
last_run_at INTEGER,
|
|
22
|
-
next_run_at INTEGER,
|
|
23
|
-
repository_path TEXT NOT NULL,
|
|
24
|
-
deleted_at INTEGER,
|
|
25
|
-
created_at INTEGER NOT NULL,
|
|
26
|
-
updated_at INTEGER NOT NULL,
|
|
27
|
-
UNIQUE(name, repository_path)
|
|
28
|
-
)
|
|
29
|
-
`);
|
|
30
|
-
db.exec(`
|
|
31
|
-
CREATE TABLE IF NOT EXISTS workflow_executions (
|
|
32
|
-
id TEXT PRIMARY KEY NOT NULL,
|
|
33
|
-
workflow_id TEXT NOT NULL,
|
|
34
|
-
trigger_type TEXT NOT NULL,
|
|
35
|
-
status TEXT NOT NULL,
|
|
36
|
-
started_at INTEGER NOT NULL,
|
|
37
|
-
completed_at INTEGER,
|
|
38
|
-
duration_ms INTEGER,
|
|
39
|
-
output_summary TEXT,
|
|
40
|
-
error_message TEXT,
|
|
41
|
-
created_at INTEGER NOT NULL,
|
|
42
|
-
updated_at INTEGER NOT NULL,
|
|
43
|
-
FOREIGN KEY (workflow_id) REFERENCES scheduled_workflows(id)
|
|
44
|
-
)
|
|
45
|
-
`);
|
|
46
|
-
db.exec(`
|
|
47
|
-
CREATE INDEX IF NOT EXISTS idx_workflow_executions_workflow_id
|
|
48
|
-
ON workflow_executions(workflow_id)
|
|
49
|
-
`);
|
|
50
|
-
db.exec(`
|
|
51
|
-
CREATE INDEX IF NOT EXISTS idx_workflow_executions_started_at
|
|
52
|
-
ON workflow_executions(started_at)
|
|
53
|
-
`);
|
|
54
|
-
db.exec(`
|
|
55
|
-
CREATE INDEX IF NOT EXISTS idx_workflow_executions_status_started
|
|
56
|
-
ON workflow_executions(status, started_at)
|
|
57
|
-
`);
|
|
58
|
-
}
|
|
59
|
-
export async function down({ context: db }) {
|
|
60
|
-
db.exec('DROP INDEX IF EXISTS idx_workflow_executions_status_started');
|
|
61
|
-
db.exec('DROP INDEX IF EXISTS idx_workflow_executions_started_at');
|
|
62
|
-
db.exec('DROP INDEX IF EXISTS idx_workflow_executions_workflow_id');
|
|
63
|
-
db.exec('DROP TABLE IF EXISTS workflow_executions');
|
|
64
|
-
db.exec('DROP TABLE IF EXISTS scheduled_workflows');
|
|
65
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration 046: Add feature_flag_scheduled_workflows column to settings table.
|
|
3
|
-
*
|
|
4
|
-
* Adds a boolean (INTEGER 0/1) column for the scheduled workflows feature flag.
|
|
5
|
-
* Defaults to 0 (disabled).
|
|
6
|
-
*/
|
|
7
|
-
import type { MigrationParams } from 'umzug';
|
|
8
|
-
import type Database from 'better-sqlite3';
|
|
9
|
-
export declare function up({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
10
|
-
export declare function down({ context: db }: MigrationParams<Database.Database>): Promise<void>;
|
|
11
|
-
//# sourceMappingURL=046-add-feature-flag-scheduled-workflows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"046-add-feature-flag-scheduled-workflows.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/persistence/sqlite/migrations/046-add-feature-flag-scheduled-workflows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,wBAAsB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAS3F;AAED,wBAAsB,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAG7F"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Migration 046: Add feature_flag_scheduled_workflows column to settings table.
|
|
3
|
-
*
|
|
4
|
-
* Adds a boolean (INTEGER 0/1) column for the scheduled workflows feature flag.
|
|
5
|
-
* Defaults to 0 (disabled).
|
|
6
|
-
*/
|
|
7
|
-
export async function up({ context: db }) {
|
|
8
|
-
const columns = db.pragma('table_info(settings)');
|
|
9
|
-
const existing = new Set(columns.map((c) => c.name));
|
|
10
|
-
if (!existing.has('feature_flag_scheduled_workflows')) {
|
|
11
|
-
db.exec('ALTER TABLE settings ADD COLUMN feature_flag_scheduled_workflows INTEGER NOT NULL DEFAULT 0');
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export async function down({ context: db }) {
|
|
15
|
-
// SQLite does not support DROP COLUMN before 3.35.0; column remains but is unused after rollback.
|
|
16
|
-
void db;
|
|
17
|
-
}
|
package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SQLite Workflow Execution Repository Implementation
|
|
3
|
-
*
|
|
4
|
-
* Implements IWorkflowExecutionRepository using SQLite database.
|
|
5
|
-
* Uses prepared statements to prevent SQL injection.
|
|
6
|
-
*/
|
|
7
|
-
import type Database from 'better-sqlite3';
|
|
8
|
-
import type { IWorkflowExecutionRepository } from '../../application/ports/output/repositories/workflow-execution-repository.interface.js';
|
|
9
|
-
import type { WorkflowExecution, WorkflowExecutionStatus } from '../../domain/generated/output.js';
|
|
10
|
-
/**
|
|
11
|
-
* SQLite implementation of IWorkflowExecutionRepository.
|
|
12
|
-
* Manages WorkflowExecution persistence with CRUD and retention cleanup.
|
|
13
|
-
*/
|
|
14
|
-
export declare class SQLiteWorkflowExecutionRepository implements IWorkflowExecutionRepository {
|
|
15
|
-
private readonly db;
|
|
16
|
-
constructor(db: Database.Database);
|
|
17
|
-
create(execution: WorkflowExecution): Promise<void>;
|
|
18
|
-
findById(id: string): Promise<WorkflowExecution | null>;
|
|
19
|
-
findByWorkflowId(workflowId: string, limit?: number): Promise<WorkflowExecution[]>;
|
|
20
|
-
findByStatus(status: WorkflowExecutionStatus): Promise<WorkflowExecution[]>;
|
|
21
|
-
update(execution: WorkflowExecution): Promise<void>;
|
|
22
|
-
deleteOlderThan(date: Date): Promise<number>;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=sqlite-workflow-execution.repository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-workflow-execution.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wFAAwF,CAAC;AAC3I,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAOnG;;;GAGG;AACH,qBACa,iCAAkC,YAAW,4BAA4B;IACxE,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAE5C,MAAM,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBnD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAWvD,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAalF,YAAY,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAS3E,MAAM,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBnD,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;CAKnD"}
|
package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-execution.repository.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SQLite Workflow Execution Repository Implementation
|
|
3
|
-
*
|
|
4
|
-
* Implements IWorkflowExecutionRepository using SQLite database.
|
|
5
|
-
* Uses prepared statements to prevent SQL injection.
|
|
6
|
-
*/
|
|
7
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
8
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
|
-
};
|
|
13
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
14
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15
|
-
};
|
|
16
|
-
import { injectable } from 'tsyringe';
|
|
17
|
-
import { toDatabase, fromDatabase, } from '../persistence/sqlite/mappers/workflow-execution.mapper.js';
|
|
18
|
-
/**
|
|
19
|
-
* SQLite implementation of IWorkflowExecutionRepository.
|
|
20
|
-
* Manages WorkflowExecution persistence with CRUD and retention cleanup.
|
|
21
|
-
*/
|
|
22
|
-
let SQLiteWorkflowExecutionRepository = class SQLiteWorkflowExecutionRepository {
|
|
23
|
-
db;
|
|
24
|
-
constructor(db) {
|
|
25
|
-
this.db = db;
|
|
26
|
-
}
|
|
27
|
-
async create(execution) {
|
|
28
|
-
const row = toDatabase(execution);
|
|
29
|
-
const stmt = this.db.prepare(`
|
|
30
|
-
INSERT INTO workflow_executions (
|
|
31
|
-
id, workflow_id, trigger_type, status,
|
|
32
|
-
started_at, completed_at, duration_ms,
|
|
33
|
-
output_summary, error_message,
|
|
34
|
-
created_at, updated_at
|
|
35
|
-
) VALUES (
|
|
36
|
-
@id, @workflow_id, @trigger_type, @status,
|
|
37
|
-
@started_at, @completed_at, @duration_ms,
|
|
38
|
-
@output_summary, @error_message,
|
|
39
|
-
@created_at, @updated_at
|
|
40
|
-
)
|
|
41
|
-
`);
|
|
42
|
-
stmt.run(row);
|
|
43
|
-
}
|
|
44
|
-
async findById(id) {
|
|
45
|
-
const stmt = this.db.prepare('SELECT * FROM workflow_executions WHERE id = ?');
|
|
46
|
-
const row = stmt.get(id);
|
|
47
|
-
if (!row) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return fromDatabase(row);
|
|
51
|
-
}
|
|
52
|
-
async findByWorkflowId(workflowId, limit) {
|
|
53
|
-
const sql = limit
|
|
54
|
-
? 'SELECT * FROM workflow_executions WHERE workflow_id = ? ORDER BY started_at DESC LIMIT ?'
|
|
55
|
-
: 'SELECT * FROM workflow_executions WHERE workflow_id = ? ORDER BY started_at DESC';
|
|
56
|
-
const stmt = this.db.prepare(sql);
|
|
57
|
-
const rows = (limit ? stmt.all(workflowId, limit) : stmt.all(workflowId));
|
|
58
|
-
return rows.map(fromDatabase);
|
|
59
|
-
}
|
|
60
|
-
async findByStatus(status) {
|
|
61
|
-
const stmt = this.db.prepare('SELECT * FROM workflow_executions WHERE status = ? ORDER BY started_at ASC');
|
|
62
|
-
const rows = stmt.all(status);
|
|
63
|
-
return rows.map(fromDatabase);
|
|
64
|
-
}
|
|
65
|
-
async update(execution) {
|
|
66
|
-
const row = toDatabase(execution);
|
|
67
|
-
const stmt = this.db.prepare(`
|
|
68
|
-
UPDATE workflow_executions SET
|
|
69
|
-
workflow_id = @workflow_id,
|
|
70
|
-
trigger_type = @trigger_type,
|
|
71
|
-
status = @status,
|
|
72
|
-
started_at = @started_at,
|
|
73
|
-
completed_at = @completed_at,
|
|
74
|
-
duration_ms = @duration_ms,
|
|
75
|
-
output_summary = @output_summary,
|
|
76
|
-
error_message = @error_message,
|
|
77
|
-
updated_at = @updated_at
|
|
78
|
-
WHERE id = @id
|
|
79
|
-
`);
|
|
80
|
-
stmt.run(row);
|
|
81
|
-
}
|
|
82
|
-
async deleteOlderThan(date) {
|
|
83
|
-
const stmt = this.db.prepare('DELETE FROM workflow_executions WHERE started_at < ?');
|
|
84
|
-
const result = stmt.run(date.getTime());
|
|
85
|
-
return result.changes;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
SQLiteWorkflowExecutionRepository = __decorate([
|
|
89
|
-
injectable(),
|
|
90
|
-
__metadata("design:paramtypes", [Object])
|
|
91
|
-
], SQLiteWorkflowExecutionRepository);
|
|
92
|
-
export { SQLiteWorkflowExecutionRepository };
|