@shepai/cli 1.116.3-pr375.ea5b2a2 → 1.117.0-pr377.9e8e17c
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/AnalyzeRepoTimeouts.yaml +10 -0
- package/apis/json-schema/SdlcLifecycle.yaml +1 -0
- package/apis/json-schema/StageTimeouts.yaml +35 -0
- package/apis/json-schema/WorkflowConfig.yaml +6 -0
- 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 +17 -8
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts +2 -0
- package/dist/packages/core/src/application/use-cases/features/create/types.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts +1 -3
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/resume-feature.use-case.js +2 -4
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts +25 -0
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -0
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +116 -0
- package/dist/packages/core/src/domain/generated/output.d.ts +47 -0
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +1 -0
- package/dist/packages/core/src/domain/lifecycle-gates.d.ts +3 -0
- package/dist/packages/core/src/domain/lifecycle-gates.d.ts.map +1 -1
- package/dist/packages/core/src/domain/lifecycle-gates.js +3 -0
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +5 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +7 -0
- 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 +44 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts +22 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/035-add-stage-timeout-ms.js +53 -0
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations.js +15 -6
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.js +15 -0
- package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/analyze-repo/analyze-repository-graph.js +15 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts +11 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +42 -3
- package/dist/src/presentation/cli/commands/feat/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/index.js +2 -0
- package/dist/src/presentation/cli/commands/feat/ls.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/ls.command.js +3 -0
- package/dist/src/presentation/cli/commands/feat/new.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/feat/new.command.js +9 -1
- package/dist/src/presentation/cli/commands/feat/start.command.d.ts +12 -0
- package/dist/src/presentation/cli/commands/feat/start.command.d.ts.map +1 -0
- package/dist/src/presentation/cli/commands/feat/start.command.js +43 -0
- package/dist/src/presentation/web/app/actions/approve-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/approve-feature.js +0 -9
- package/dist/src/presentation/web/app/actions/create-feature.d.ts +2 -0
- package/dist/src/presentation/web/app/actions/create-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/create-feature.js +3 -1
- package/dist/src/presentation/web/app/actions/reject-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/reject-feature.js +0 -9
- package/dist/src/presentation/web/app/actions/start-feature.d.ts +5 -0
- package/dist/src/presentation/web/app/actions/start-feature.d.ts.map +1 -0
- package/dist/src/presentation/web/app/actions/start-feature.js +16 -0
- package/dist/src/presentation/web/app/api/agent-events/route.d.ts.map +1 -1
- package/dist/src/presentation/web/app/api/agent-events/route.js +1 -0
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.js +1 -1
- package/dist/src/presentation/web/components/common/base-drawer/base-drawer.stories.js +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/control-center-drawer/feature-drawer-client.js +20 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts +2 -0
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-create-drawer/feature-create-drawer.js +6 -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 +6 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +3 -2
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.js +13 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +12 -3
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts +2 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.stories.js +36 -2
- package/dist/src/presentation/web/components/common/merge-review/diff-view.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/merge-review/diff-view.js +166 -8
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +1 -0
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +23 -0
- 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 +75 -2
- package/dist/src/presentation/web/components/features/settings/settings-page-client.stories.d.ts +1 -0
- 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 +23 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts +11 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.js +63 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts +10 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/features/settings/timeout-slider.stories.js +24 -0
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.js +97 -2
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js +22 -0
- package/dist/src/presentation/web/components/ui/code-block.d.ts +36 -0
- package/dist/src/presentation/web/components/ui/code-block.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/code-block.js +103 -0
- package/dist/src/presentation/web/components/ui/code-block.stories.d.ts +16 -0
- package/dist/src/presentation/web/components/ui/code-block.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/code-block.stories.js +145 -0
- package/dist/src/presentation/web/components/ui/file-tree.d.ts +53 -0
- package/dist/src/presentation/web/components/ui/file-tree.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/file-tree.js +185 -0
- package/dist/src/presentation/web/components/ui/file-tree.stories.d.ts +14 -0
- package/dist/src/presentation/web/components/ui/file-tree.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/file-tree.stories.js +84 -0
- package/dist/src/presentation/web/components/ui/slider.d.ts +5 -0
- package/dist/src/presentation/web/components/ui/slider.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/slider.js +10 -0
- package/dist/src/presentation/web/components/ui/slider.stories.d.ts +7 -0
- package/dist/src/presentation/web/components/ui/slider.stories.d.ts.map +1 -0
- package/dist/src/presentation/web/components/ui/slider.stories.js +15 -0
- package/dist/src/presentation/web/hooks/sidebar-features-context.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/sidebar-features-context.js +1 -0
- package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
- package/dist/src/presentation/web/hooks/use-graph-state.js +1 -0
- package/dist/src/presentation/web/lib/derive-graph.d.ts +2 -0
- package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
- package/dist/src/presentation/web/lib/derive-graph.js +5 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- 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 +2 -2
- package/web/.next/required-server-files.json +2 -2
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +55 -40
- 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 +67 -52
- 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 +67 -52
- 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 +51 -36
- 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 +55 -40
- 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 +67 -52
- 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 +67 -52
- 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 +51 -36
- 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 +51 -36
- 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 +1 -1
- 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/settings/page/server-reference-manifest.json +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +1 -1
- 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/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js +2 -2
- package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_4d623b8e.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__7d5492a0._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +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_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/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +3 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +3 -0
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__07a39ff2._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0d4580d1._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0d4580d1._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__11033878._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__172d9576._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__172d9576._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24dd0927._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2a5592d5._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2a5592d5._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__5d87af2e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__89e8a5cc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__98470b18._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__98470b18._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a93289b0._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a93289b0._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ac0304e7._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ac0304e7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ea2e0b1c._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ea2e0b1c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fdc75809._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_009a242e._.js +3 -0
- package/web/.next/server/chunks/ssr/_009a242e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_1bb131c4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_250a63ae._.js +1 -1
- package/web/.next/server/chunks/ssr/_250a63ae._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_6d26a08f._.js +1 -1
- package/web/.next/server/chunks/ssr/_6d26a08f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_f2f36bf9._.js → _786e1f56._.js} +2 -2
- package/web/.next/server/chunks/ssr/_786e1f56._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js +1 -1
- package/web/.next/server/chunks/ssr/_8dacd1e7._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_aef4036f._.js +3 -0
- package/web/.next/server/chunks/ssr/_aef4036f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_c5e12a69._.js +3 -0
- package/web/.next/server/chunks/ssr/{_86617fb9._.js.map → _c5e12a69._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
- 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/src_presentation_web_0835b28e._.js +5 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.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_components_ui_scroll-area_tsx_53ae5be7._.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_scroll-area_tsx_53ae5be7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js +5 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.js.map +1 -0
- 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 +300 -229
- package/web/.next/static/chunks/16ac819e75bae3d0.js +1 -0
- package/web/.next/static/chunks/26bf91fe491accce.js +1 -0
- package/web/.next/static/chunks/{763f6ecc4593dc10.js → 2f750d537c3f7e31.js} +1 -1
- package/web/.next/static/chunks/{053b644519f721f1.js → 37a9d60101fcd7ae.js} +1 -1
- package/web/.next/static/chunks/3d673546d066ba0a.js +11 -0
- package/web/.next/static/chunks/4943e3f713ca59b9.js +1 -0
- package/web/.next/static/chunks/5382c19c5dff93e5.js +1 -0
- package/web/.next/static/chunks/60108fd0bf8db1b0.js +1 -0
- package/web/.next/static/chunks/69a1e15358d875cc.css +1 -0
- package/web/.next/static/chunks/{5225e7b93df59de9.js → 98af7ce84b9623c5.js} +1 -1
- package/web/.next/static/chunks/c0c8a062afe141ed.js +1 -0
- package/web/.next/static/chunks/{f32b896b3ceae18d.js → d3fb12295262040f.js} +2 -2
- package/web/.next/static/chunks/d59479021791a7c1.js +1 -0
- package/web/.next/static/chunks/db91e49ac07fb578.js +2 -0
- package/web/.next/static/chunks/eddc1cdee17c30ef.js +1 -0
- package/web/package.json +3 -1
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js +0 -3
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_d0119342._.js.map +0 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js +0 -3
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_a1104008.js.map +0 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js +0 -3
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_92642200.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__039967e3._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2773312c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6367aea0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b1e68e34._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__cbd8062c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e70c5627._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_86617fb9._.js +0 -3
- package/web/.next/server/chunks/ssr/_b5d0b00e._.js +0 -3
- package/web/.next/server/chunks/ssr/_b5d0b00e._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f2f36bf9._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_888633e1.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_ce7cbc3c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_e2604413._.js.map +0 -1
- package/web/.next/static/chunks/121a2e602cb9df92.js +0 -11
- package/web/.next/static/chunks/303a1217006489b9.js +0 -1
- package/web/.next/static/chunks/57b45edf86522369.css +0 -1
- package/web/.next/static/chunks/619af41a8d3232e5.js +0 -1
- package/web/.next/static/chunks/6770c61692fe5605.js +0 -1
- package/web/.next/static/chunks/8c3ff8561102a386.js +0 -1
- package/web/.next/static/chunks/a1b3371ef3ffd58b.js +0 -2
- package/web/.next/static/chunks/b1f3c0e8e9872ef8.js +0 -1
- package/web/.next/static/chunks/bec349a77c5c5796.js +0 -1
- package/web/.next/static/chunks/e85bcc69a4ceb89e.js +0 -1
- /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → fBX3qEmi-temIllSxz1uu}/_buildManifest.js +0 -0
- /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → fBX3qEmi-temIllSxz1uu}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{Ci7i00ReHDH8Xv9NQW3By → fBX3qEmi-temIllSxz1uu}/_ssgManifest.js +0 -0
|
@@ -9,6 +9,7 @@ import { Input } from '../../ui/input.js';
|
|
|
9
9
|
import { Switch } from '../../ui/switch.js';
|
|
10
10
|
import { Separator } from '../../ui/separator.js';
|
|
11
11
|
import { updateSettingsAction } from '../../../app/actions/update-settings.js';
|
|
12
|
+
import { TimeoutSlider } from '../../features/settings/timeout-slider.js';
|
|
12
13
|
export function WorkflowSettingsSection({ workflow }) {
|
|
13
14
|
const [openPr, setOpenPr] = useState(workflow.openPrOnImplementationComplete);
|
|
14
15
|
const [pushOnComplete, setPushOnComplete] = useState(workflow.approvalGateDefaults.pushOnImplementationComplete);
|
|
@@ -18,6 +19,18 @@ export function WorkflowSettingsSection({ workflow }) {
|
|
|
18
19
|
const [ciMaxFix, setCiMaxFix] = useState(workflow.ciMaxFixAttempts != null ? String(workflow.ciMaxFixAttempts) : '');
|
|
19
20
|
const [ciTimeout, setCiTimeout] = useState(workflow.ciWatchTimeoutMs != null ? String(Math.round(workflow.ciWatchTimeoutMs / 1000)) : '');
|
|
20
21
|
const [ciLogMax, setCiLogMax] = useState(workflow.ciLogMaxChars != null ? String(workflow.ciLogMaxChars) : '');
|
|
22
|
+
// Per-stage timeout states (seconds for display)
|
|
23
|
+
// Defaults: feature agent stages = 1_800_000 ms (1800s), analyze-repo = 600_000 ms (600s)
|
|
24
|
+
const st = workflow.stageTimeouts;
|
|
25
|
+
const [analyzeTimeout, setAnalyzeTimeout] = useState(String(Math.round((st?.analyzeMs ?? 1_800_000) / 1000)));
|
|
26
|
+
const [requirementsTimeout, setRequirementsTimeout] = useState(String(Math.round((st?.requirementsMs ?? 1_800_000) / 1000)));
|
|
27
|
+
const [researchTimeout, setResearchTimeout] = useState(String(Math.round((st?.researchMs ?? 1_800_000) / 1000)));
|
|
28
|
+
const [planTimeout, setPlanTimeout] = useState(String(Math.round((st?.planMs ?? 1_800_000) / 1000)));
|
|
29
|
+
const [implementTimeout, setImplementTimeout] = useState(String(Math.round((st?.implementMs ?? 1_800_000) / 1000)));
|
|
30
|
+
const [mergeTimeout, setMergeTimeout] = useState(String(Math.round((st?.mergeMs ?? 1_800_000) / 1000)));
|
|
31
|
+
// Analyze-repo agent timeout state
|
|
32
|
+
const art = workflow.analyzeRepoTimeouts;
|
|
33
|
+
const [analyzeRepoTimeout, setAnalyzeRepoTimeout] = useState(String(Math.round((art?.analyzeMs ?? 600_000) / 1000)));
|
|
21
34
|
const [isPending, startTransition] = useTransition();
|
|
22
35
|
const [showSaved, setShowSaved] = useState(false);
|
|
23
36
|
const prevPendingRef = useRef(false);
|
|
@@ -35,6 +48,10 @@ export function WorkflowSettingsSection({ workflow }) {
|
|
|
35
48
|
const n = parseInt(value, 10);
|
|
36
49
|
return Number.isNaN(n) || n <= 0 ? undefined : n;
|
|
37
50
|
}
|
|
51
|
+
function secondsToMs(val) {
|
|
52
|
+
const n = parseOptionalInt(val);
|
|
53
|
+
return n != null ? n * 1000 : undefined;
|
|
54
|
+
}
|
|
38
55
|
function buildPayload(overrides = {}) {
|
|
39
56
|
const timeoutSeconds = parseOptionalInt(overrides.ciTimeout ?? ciTimeout);
|
|
40
57
|
return {
|
|
@@ -49,6 +66,17 @@ export function WorkflowSettingsSection({ workflow }) {
|
|
|
49
66
|
ciMaxFixAttempts: parseOptionalInt(overrides.ciMaxFix ?? ciMaxFix),
|
|
50
67
|
ciWatchTimeoutMs: timeoutSeconds != null ? timeoutSeconds * 1000 : undefined,
|
|
51
68
|
ciLogMaxChars: parseOptionalInt(overrides.ciLogMax ?? ciLogMax),
|
|
69
|
+
stageTimeouts: {
|
|
70
|
+
analyzeMs: secondsToMs(overrides.analyzeTimeout ?? analyzeTimeout),
|
|
71
|
+
requirementsMs: secondsToMs(overrides.requirementsTimeout ?? requirementsTimeout),
|
|
72
|
+
researchMs: secondsToMs(overrides.researchTimeout ?? researchTimeout),
|
|
73
|
+
planMs: secondsToMs(overrides.planTimeout ?? planTimeout),
|
|
74
|
+
implementMs: secondsToMs(overrides.implementTimeout ?? implementTimeout),
|
|
75
|
+
mergeMs: secondsToMs(overrides.mergeTimeout ?? mergeTimeout),
|
|
76
|
+
},
|
|
77
|
+
analyzeRepoTimeouts: {
|
|
78
|
+
analyzeMs: secondsToMs(overrides.analyzeRepoTimeout ?? analyzeRepoTimeout),
|
|
79
|
+
},
|
|
52
80
|
},
|
|
53
81
|
};
|
|
54
82
|
}
|
|
@@ -64,7 +92,7 @@ export function WorkflowSettingsSection({ workflow }) {
|
|
|
64
92
|
setter(value);
|
|
65
93
|
save({ [key]: value });
|
|
66
94
|
}
|
|
67
|
-
function
|
|
95
|
+
function handleFieldBlur(key, currentValue, originalValue) {
|
|
68
96
|
if (currentValue !== originalValue) {
|
|
69
97
|
save({ [key]: currentValue });
|
|
70
98
|
}
|
|
@@ -72,5 +100,72 @@ export function WorkflowSettingsSection({ workflow }) {
|
|
|
72
100
|
const originalCiMaxFix = workflow.ciMaxFixAttempts != null ? String(workflow.ciMaxFixAttempts) : '';
|
|
73
101
|
const originalCiTimeout = workflow.ciWatchTimeoutMs != null ? String(Math.round(workflow.ciWatchTimeoutMs / 1000)) : '';
|
|
74
102
|
const originalCiLogMax = workflow.ciLogMaxChars != null ? String(workflow.ciLogMaxChars) : '';
|
|
75
|
-
|
|
103
|
+
const originalAnalyzeTimeout = st?.analyzeMs != null ? String(Math.round(st.analyzeMs / 1000)) : '';
|
|
104
|
+
const originalRequirementsTimeout = st?.requirementsMs != null ? String(Math.round(st.requirementsMs / 1000)) : '';
|
|
105
|
+
const originalResearchTimeout = st?.researchMs != null ? String(Math.round(st.researchMs / 1000)) : '';
|
|
106
|
+
const originalPlanTimeout = st?.planMs != null ? String(Math.round(st.planMs / 1000)) : '';
|
|
107
|
+
const originalImplementTimeout = st?.implementMs != null ? String(Math.round(st.implementMs / 1000)) : '';
|
|
108
|
+
const originalMergeTimeout = st?.mergeMs != null ? String(Math.round(st.mergeMs / 1000)) : '';
|
|
109
|
+
const originalAnalyzeRepoTimeout = art?.analyzeMs != null ? String(Math.round(art.analyzeMs / 1000)) : '';
|
|
110
|
+
const FEATURE_AGENT_FIELDS = [
|
|
111
|
+
{
|
|
112
|
+
key: 'analyzeTimeout',
|
|
113
|
+
label: 'Analyze',
|
|
114
|
+
defaultSeconds: 1800,
|
|
115
|
+
state: analyzeTimeout,
|
|
116
|
+
setter: setAnalyzeTimeout,
|
|
117
|
+
original: originalAnalyzeTimeout,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
key: 'requirementsTimeout',
|
|
121
|
+
label: 'Requirements',
|
|
122
|
+
defaultSeconds: 1800,
|
|
123
|
+
state: requirementsTimeout,
|
|
124
|
+
setter: setRequirementsTimeout,
|
|
125
|
+
original: originalRequirementsTimeout,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: 'researchTimeout',
|
|
129
|
+
label: 'Research',
|
|
130
|
+
defaultSeconds: 1800,
|
|
131
|
+
state: researchTimeout,
|
|
132
|
+
setter: setResearchTimeout,
|
|
133
|
+
original: originalResearchTimeout,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: 'planTimeout',
|
|
137
|
+
label: 'Plan',
|
|
138
|
+
defaultSeconds: 1800,
|
|
139
|
+
state: planTimeout,
|
|
140
|
+
setter: setPlanTimeout,
|
|
141
|
+
original: originalPlanTimeout,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
key: 'implementTimeout',
|
|
145
|
+
label: 'Implement',
|
|
146
|
+
defaultSeconds: 1800,
|
|
147
|
+
state: implementTimeout,
|
|
148
|
+
setter: setImplementTimeout,
|
|
149
|
+
original: originalImplementTimeout,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
key: 'mergeTimeout',
|
|
153
|
+
label: 'Merge',
|
|
154
|
+
defaultSeconds: 1800,
|
|
155
|
+
state: mergeTimeout,
|
|
156
|
+
setter: setMergeTimeout,
|
|
157
|
+
original: originalMergeTimeout,
|
|
158
|
+
},
|
|
159
|
+
];
|
|
160
|
+
const ANALYZE_REPO_FIELDS = [
|
|
161
|
+
{
|
|
162
|
+
key: 'analyzeRepoTimeout',
|
|
163
|
+
label: 'Analyze',
|
|
164
|
+
defaultSeconds: 600,
|
|
165
|
+
state: analyzeRepoTimeout,
|
|
166
|
+
setter: setAnalyzeRepoTimeout,
|
|
167
|
+
original: originalAnalyzeRepoTimeout,
|
|
168
|
+
},
|
|
169
|
+
];
|
|
170
|
+
return (_jsxs(Card, { id: "workflow", className: "scroll-mt-6", "data-testid": "workflow-settings-section", children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(GitBranch, { className: "text-muted-foreground h-4 w-4" }), _jsx(CardTitle, { children: "Workflow" })] }), isPending ? _jsx("span", { className: "text-muted-foreground text-xs", children: "Saving..." }) : null, showSaved && !isPending ? (_jsxs("span", { className: "flex items-center gap-1 text-xs text-green-600", children: [_jsx(Check, { className: "h-3 w-3" }), "Saved"] })) : null] }), _jsx(CardDescription, { children: "Configure PR behavior, approval gates, and CI settings" })] }), _jsxs(CardContent, { className: "space-y-4", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "open-pr", children: "Open PR on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Automatically create a pull request when the agent finishes" })] }), _jsx(Switch, { id: "open-pr", "data-testid": "switch-open-pr", checked: openPr, onCheckedChange: (v) => handleSwitchChange('openPr', setOpenPr, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "push-on-complete", children: "Push on implementation complete" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Push the branch to remote when implementation is done" })] }), _jsx(Switch, { id: "push-on-complete", "data-testid": "switch-push-on-complete", checked: pushOnComplete, onCheckedChange: (v) => handleSwitchChange('pushOnComplete', setPushOnComplete, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Approval Gates" }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-prd", children: "PRD auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for product requirement documents" })] }), _jsx(Switch, { id: "allow-prd", "data-testid": "switch-allow-prd", checked: allowPrd, onCheckedChange: (v) => handleSwitchChange('allowPrd', setAllowPrd, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-plan", children: "Plan auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for implementation plans" })] }), _jsx(Switch, { id: "allow-plan", "data-testid": "switch-allow-plan", checked: allowPlan, onCheckedChange: (v) => handleSwitchChange('allowPlan', setAllowPlan, v) })] }), _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { className: "space-y-0.5", children: [_jsx(Label, { htmlFor: "allow-merge", children: "Merge auto-approval" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Skip manual approval for PR merges" })] }), _jsx(Switch, { id: "allow-merge", "data-testid": "switch-allow-merge", checked: allowMerge, onCheckedChange: (v) => handleSwitchChange('allowMerge', setAllowMerge, v) })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "CI Settings" }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-max-fix", children: "Max fix attempts" }), _jsx(Input, { id: "ci-max-fix", "data-testid": "ci-max-fix-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", min: 1, max: 10, placeholder: "e.g., 3", value: ciMaxFix, onChange: (e) => setCiMaxFix(e.target.value), onBlur: () => handleFieldBlur('ciMaxFix', ciMaxFix, originalCiMaxFix) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How many times the agent retries fixing CI failures" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-timeout", children: "Watch timeout (seconds)" }), _jsx(Input, { id: "ci-timeout", "data-testid": "ci-timeout-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 300", value: ciTimeout, onChange: (e) => setCiTimeout(e.target.value), onBlur: () => handleFieldBlur('ciTimeout', ciTimeout, originalCiTimeout) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "How long to wait for CI to complete before timing out" })] }), _jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "ci-log-max", children: "Max log characters" }), _jsx(Input, { id: "ci-log-max", "data-testid": "ci-log-max-input", type: "text", inputMode: "numeric", pattern: "[0-9]*", placeholder: "e.g., 50000", value: ciLogMax, onChange: (e) => setCiLogMax(e.target.value), onBlur: () => handleFieldBlur('ciLogMax', ciLogMax, originalCiLogMax) }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum characters to capture from CI logs" })] })] }), _jsx(Separator, {}), _jsxs("div", { className: "space-y-3", children: [_jsx("h3", { className: "text-sm font-semibold", children: "Stage Timeouts" }), _jsx("p", { className: "text-muted-foreground text-xs", children: "Maximum execution time per agent stage" }), _jsx("h4", { className: "text-muted-foreground text-xs font-semibold tracking-wider uppercase", children: "Feature Agent" }), FEATURE_AGENT_FIELDS.map((field) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx(Label, { htmlFor: `stage-timeout-${field.key}`, children: field.label }), _jsx(TimeoutSlider, { id: `stage-timeout-${field.key}`, testId: `stage-timeout-${field.key}-input`, value: field.state, onChange: field.setter, onBlur: () => handleFieldBlur(field.key, field.state, field.original), defaultSeconds: field.defaultSeconds })] }, field.key))), _jsx("h4", { className: "text-muted-foreground pt-2 text-xs font-semibold tracking-wider uppercase", children: "Analyze Repository Agent" }), ANALYZE_REPO_FIELDS.map((field) => (_jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsx(Label, { htmlFor: `stage-timeout-${field.key}`, children: field.label }), _jsx(TimeoutSlider, { id: `stage-timeout-${field.key}`, testId: `stage-timeout-${field.key}-input`, value: field.state, onChange: field.setter, onBlur: () => handleFieldBlur(field.key, field.state, field.original), defaultSeconds: field.defaultSeconds })] }, field.key)))] })] })] }));
|
|
76
171
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"workflow-settings-section.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/workflow-settings-section.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KA4BxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA4B5B,CAAC"}
|
package/dist/src/presentation/web/components/features/settings/workflow-settings-section.stories.js
CHANGED
|
@@ -36,6 +36,17 @@ export const AllEnabled = {
|
|
|
36
36
|
ciMaxFixAttempts: 3,
|
|
37
37
|
ciWatchTimeoutMs: 300000,
|
|
38
38
|
ciLogMaxChars: 50000,
|
|
39
|
+
stageTimeouts: {
|
|
40
|
+
analyzeMs: 600000,
|
|
41
|
+
requirementsMs: 600000,
|
|
42
|
+
researchMs: 600000,
|
|
43
|
+
planMs: 600000,
|
|
44
|
+
implementMs: 600000,
|
|
45
|
+
mergeMs: 600000,
|
|
46
|
+
},
|
|
47
|
+
analyzeRepoTimeouts: {
|
|
48
|
+
analyzeMs: 600000,
|
|
49
|
+
},
|
|
39
50
|
enableEvidence: true,
|
|
40
51
|
commitEvidence: true,
|
|
41
52
|
},
|
|
@@ -54,6 +65,17 @@ export const WithCiSettings = {
|
|
|
54
65
|
ciMaxFixAttempts: 5,
|
|
55
66
|
ciWatchTimeoutMs: 600000,
|
|
56
67
|
ciLogMaxChars: 100000,
|
|
68
|
+
stageTimeouts: {
|
|
69
|
+
analyzeMs: 1200000,
|
|
70
|
+
requirementsMs: 1200000,
|
|
71
|
+
researchMs: 1200000,
|
|
72
|
+
planMs: 1200000,
|
|
73
|
+
implementMs: 1200000,
|
|
74
|
+
mergeMs: 1200000,
|
|
75
|
+
},
|
|
76
|
+
analyzeRepoTimeouts: {
|
|
77
|
+
analyzeMs: 1200000,
|
|
78
|
+
},
|
|
57
79
|
enableEvidence: false,
|
|
58
80
|
commitEvidence: false,
|
|
59
81
|
},
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type CodeBlockProps = {
|
|
2
|
+
language: string;
|
|
3
|
+
filename: string;
|
|
4
|
+
highlightLines?: number[];
|
|
5
|
+
} & ({
|
|
6
|
+
code: string;
|
|
7
|
+
tabs?: never;
|
|
8
|
+
} | {
|
|
9
|
+
code?: never;
|
|
10
|
+
tabs: {
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
language?: string;
|
|
14
|
+
highlightLines?: number[];
|
|
15
|
+
}[];
|
|
16
|
+
});
|
|
17
|
+
export declare function CodeBlock({ language, filename, code, highlightLines, tabs, }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export type DiffLineType = 'added' | 'removed' | 'context';
|
|
19
|
+
export interface DiffLine {
|
|
20
|
+
type: DiffLineType;
|
|
21
|
+
content: string;
|
|
22
|
+
oldNumber?: number;
|
|
23
|
+
newNumber?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DiffHunk {
|
|
26
|
+
header: string;
|
|
27
|
+
lines: DiffLine[];
|
|
28
|
+
}
|
|
29
|
+
export interface DiffCodeBlockProps {
|
|
30
|
+
language: string;
|
|
31
|
+
filename: string;
|
|
32
|
+
hunks: DiffHunk[];
|
|
33
|
+
}
|
|
34
|
+
export declare function DiffCodeBlock({ language, filename, hunks }: DiffCodeBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/code-block.tsx"],"names":[],"mappings":"AAQA,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B,GAAG,CACA;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,GACD;IACE,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;KAC3B,EAAE,CAAC;CACL,CACJ,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,cAAmB,EACnB,IAAS,GACV,EAAE,cAAc,2CA8EhB;AAID,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3D,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAQD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAsG9E"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
5
|
+
import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
6
|
+
import { Check, Copy } from 'lucide-react';
|
|
7
|
+
import { cn } from '../../lib/utils.js';
|
|
8
|
+
export function CodeBlock({ language, filename, code, highlightLines = [], tabs = [], }) {
|
|
9
|
+
const [copied, setCopied] = React.useState(false);
|
|
10
|
+
const [activeTab, setActiveTab] = React.useState(0);
|
|
11
|
+
const tabsExist = tabs.length > 0;
|
|
12
|
+
const copyToClipboard = async () => {
|
|
13
|
+
const textToCopy = tabsExist ? tabs[activeTab].code : code;
|
|
14
|
+
if (textToCopy) {
|
|
15
|
+
await navigator.clipboard.writeText(textToCopy);
|
|
16
|
+
setCopied(true);
|
|
17
|
+
setTimeout(() => setCopied(false), 2000);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const activeCode = tabsExist ? tabs[activeTab].code : code;
|
|
21
|
+
const activeLanguage = tabsExist ? (tabs[activeTab].language ?? language) : language;
|
|
22
|
+
const activeHighlightLines = tabsExist ? (tabs[activeTab].highlightLines ?? []) : highlightLines;
|
|
23
|
+
return (_jsxs("div", { className: cn('relative w-full rounded-lg bg-slate-950 p-4 font-mono text-sm'), children: [_jsxs("div", { className: "flex flex-col gap-2", children: [tabsExist ? (_jsx("div", { className: "flex overflow-x-auto", children: tabs.map((tab, index) => (_jsx("button", { type: "button", onClick: () => setActiveTab(index), className: cn('px-3 py-2 font-sans text-xs transition-colors', activeTab === index ? 'text-white' : 'text-zinc-400 hover:text-zinc-200'), children: tab.name }, tab.name))) })) : null, !tabsExist && filename ? (_jsxs("div", { className: "flex items-center justify-between py-2", children: [_jsx("div", { className: "text-xs text-zinc-400", children: filename }), _jsx("button", { type: "button", onClick: copyToClipboard, className: "flex items-center gap-1 font-sans text-xs text-zinc-400 transition-colors hover:text-zinc-200", children: copied ? _jsx(Check, { className: "h-3.5 w-3.5" }) : _jsx(Copy, { className: "h-3.5 w-3.5" }) })] })) : null] }), _jsx(SyntaxHighlighter, { language: activeLanguage, style: oneDark, customStyle: {
|
|
24
|
+
margin: 0,
|
|
25
|
+
padding: 0,
|
|
26
|
+
background: 'transparent',
|
|
27
|
+
fontSize: '0.8125rem',
|
|
28
|
+
}, wrapLines: true, showLineNumbers: true, lineProps: (lineNumber) => ({
|
|
29
|
+
style: {
|
|
30
|
+
backgroundColor: activeHighlightLines.includes(lineNumber)
|
|
31
|
+
? 'rgba(255,255,255,0.1)'
|
|
32
|
+
: 'transparent',
|
|
33
|
+
display: 'block',
|
|
34
|
+
width: '100%',
|
|
35
|
+
},
|
|
36
|
+
}), PreTag: "div", children: String(activeCode) })] }));
|
|
37
|
+
}
|
|
38
|
+
const DIFF_LINE_BG = {
|
|
39
|
+
added: 'rgba(34, 197, 94, 0.12)',
|
|
40
|
+
removed: 'rgba(239, 68, 68, 0.12)',
|
|
41
|
+
context: 'transparent',
|
|
42
|
+
};
|
|
43
|
+
export function DiffCodeBlock({ language, filename, hunks }) {
|
|
44
|
+
const [copied, setCopied] = React.useState(false);
|
|
45
|
+
const allLines = React.useMemo(() => {
|
|
46
|
+
const result = [];
|
|
47
|
+
for (const hunk of hunks) {
|
|
48
|
+
result.push({ line: { type: 'context', content: '' }, hunkHeader: hunk.header });
|
|
49
|
+
for (const line of hunk.lines) {
|
|
50
|
+
result.push({ line });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return result;
|
|
54
|
+
}, [hunks]);
|
|
55
|
+
const codeString = React.useMemo(() => allLines
|
|
56
|
+
.map((entry) => {
|
|
57
|
+
if (entry.hunkHeader != null)
|
|
58
|
+
return entry.hunkHeader;
|
|
59
|
+
return entry.line.content || ' ';
|
|
60
|
+
})
|
|
61
|
+
.join('\n'), [allLines]);
|
|
62
|
+
const copyToClipboard = async () => {
|
|
63
|
+
const text = hunks.flatMap((h) => h.lines.map((l) => l.content)).join('\n');
|
|
64
|
+
await navigator.clipboard.writeText(text);
|
|
65
|
+
setCopied(true);
|
|
66
|
+
setTimeout(() => setCopied(false), 2000);
|
|
67
|
+
};
|
|
68
|
+
if (hunks.length === 0) {
|
|
69
|
+
return (_jsx("div", { className: "rounded-lg bg-slate-950 px-4 py-6 text-center font-mono text-xs text-zinc-500", children: "No diff content available" }));
|
|
70
|
+
}
|
|
71
|
+
return (_jsxs("div", { className: "relative w-full overflow-hidden rounded-lg bg-slate-950 font-mono text-sm", children: [_jsxs("div", { className: "flex items-center justify-between border-b border-zinc-800 px-4 py-2", children: [_jsx("div", { className: "text-xs text-zinc-400", children: filename }), _jsx("button", { type: "button", onClick: copyToClipboard, className: "flex items-center gap-1 font-sans text-xs text-zinc-400 transition-colors hover:text-zinc-200", children: copied ? _jsx(Check, { className: "h-3.5 w-3.5" }) : _jsx(Copy, { className: "h-3.5 w-3.5" }) })] }), _jsx("div", { className: "overflow-x-auto", children: _jsx(SyntaxHighlighter, { language: language, style: oneDark, customStyle: {
|
|
72
|
+
margin: 0,
|
|
73
|
+
padding: '0.5rem 0',
|
|
74
|
+
background: 'transparent',
|
|
75
|
+
fontSize: '0.75rem',
|
|
76
|
+
lineHeight: '1.25rem',
|
|
77
|
+
}, wrapLines: true, showLineNumbers: false, lineProps: (lineNumber) => {
|
|
78
|
+
const idx = lineNumber - 1;
|
|
79
|
+
const entry = allLines[idx];
|
|
80
|
+
if (!entry)
|
|
81
|
+
return { style: { display: 'block', width: '100%' } };
|
|
82
|
+
if (entry.hunkHeader != null) {
|
|
83
|
+
return {
|
|
84
|
+
style: {
|
|
85
|
+
display: 'block',
|
|
86
|
+
width: '100%',
|
|
87
|
+
backgroundColor: 'rgba(100, 100, 200, 0.08)',
|
|
88
|
+
color: 'rgb(148, 163, 184)',
|
|
89
|
+
fontStyle: 'italic',
|
|
90
|
+
padding: '0 1rem',
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
style: {
|
|
96
|
+
display: 'block',
|
|
97
|
+
width: '100%',
|
|
98
|
+
backgroundColor: DIFF_LINE_BG[entry.line.type],
|
|
99
|
+
padding: '0 1rem',
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
}, PreTag: "div", CodeTag: "div", children: codeString }) })] }));
|
|
103
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CodeBlock, DiffCodeBlock } from './code-block.js';
|
|
3
|
+
declare const codeBlockMeta: Meta<typeof CodeBlock>;
|
|
4
|
+
export default codeBlockMeta;
|
|
5
|
+
type Story = StoryObj<typeof CodeBlock>;
|
|
6
|
+
/** Default code block with syntax highlighting */
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
/** With highlighted lines */
|
|
9
|
+
export declare const HighlightedLines: Story;
|
|
10
|
+
/** With multiple tabs */
|
|
11
|
+
export declare const WithTabs: Story;
|
|
12
|
+
export declare const DiffDefault: StoryObj<typeof DiffCodeBlock>;
|
|
13
|
+
export declare const DiffAdditionsOnly: StoryObj<typeof DiffCodeBlock>;
|
|
14
|
+
export declare const DiffDeletionsOnly: StoryObj<typeof DiffCodeBlock>;
|
|
15
|
+
export declare const DiffEmpty: StoryObj<typeof DiffCodeBlock>;
|
|
16
|
+
//# sourceMappingURL=code-block.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/code-block.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAoBxD,QAAA,MAAM,aAAa,EAAE,IAAI,CAAC,OAAO,SAAS,CAczC,CAAC;AAEF,eAAe,aAAa,CAAC;AAC7B,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,kDAAkD;AAClD,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,6BAA6B;AAC7B,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,yBAAyB;AACzB,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC;AA0EF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,aAAa,CAUtD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,OAAO,aAAa,CAM5D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,OAAO,aAAa,CAU5D,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,OAAO,aAAa,CAMpD,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CodeBlock, DiffCodeBlock } from './code-block.js';
|
|
3
|
+
/* ─── CodeBlock stories ─── */
|
|
4
|
+
const sampleCode = `import { useState } from 'react';
|
|
5
|
+
import { Button } from '../ui/button.js';
|
|
6
|
+
|
|
7
|
+
export function Counter() {
|
|
8
|
+
const [count, setCount] = useState(0);
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<div className="flex items-center gap-2">
|
|
12
|
+
<Button onClick={() => setCount(count - 1)}>-</Button>
|
|
13
|
+
<span>{count}</span>
|
|
14
|
+
<Button onClick={() => setCount(count + 1)}>+</Button>
|
|
15
|
+
</div>
|
|
16
|
+
);
|
|
17
|
+
}`;
|
|
18
|
+
const codeBlockMeta = {
|
|
19
|
+
title: 'Primitives/CodeBlock',
|
|
20
|
+
component: CodeBlock,
|
|
21
|
+
tags: ['autodocs'],
|
|
22
|
+
parameters: {
|
|
23
|
+
layout: 'centered',
|
|
24
|
+
},
|
|
25
|
+
decorators: [
|
|
26
|
+
(Story) => (_jsx("div", { style: { width: '600px' }, children: _jsx(Story, {}) })),
|
|
27
|
+
],
|
|
28
|
+
};
|
|
29
|
+
export default codeBlockMeta;
|
|
30
|
+
/** Default code block with syntax highlighting */
|
|
31
|
+
export const Default = {
|
|
32
|
+
args: {
|
|
33
|
+
language: 'tsx',
|
|
34
|
+
filename: 'Counter.tsx',
|
|
35
|
+
code: sampleCode,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
/** With highlighted lines */
|
|
39
|
+
export const HighlightedLines = {
|
|
40
|
+
args: {
|
|
41
|
+
language: 'tsx',
|
|
42
|
+
filename: 'Counter.tsx',
|
|
43
|
+
code: sampleCode,
|
|
44
|
+
highlightLines: [4, 5, 6],
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
/** With multiple tabs */
|
|
48
|
+
export const WithTabs = {
|
|
49
|
+
args: {
|
|
50
|
+
language: 'tsx',
|
|
51
|
+
filename: 'example',
|
|
52
|
+
tabs: [
|
|
53
|
+
{
|
|
54
|
+
name: 'Component.tsx',
|
|
55
|
+
code: sampleCode,
|
|
56
|
+
language: 'tsx',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'styles.css',
|
|
60
|
+
code: `.counter {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}`,
|
|
61
|
+
language: 'css',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
/* ─── DiffCodeBlock stories ─── */
|
|
67
|
+
const sampleHunks = [
|
|
68
|
+
{
|
|
69
|
+
header: '@@ -1,8 +1,12 @@',
|
|
70
|
+
lines: [
|
|
71
|
+
{ type: 'context', content: "import { useState } from 'react';", oldNumber: 1, newNumber: 1 },
|
|
72
|
+
{
|
|
73
|
+
type: 'context',
|
|
74
|
+
content: "import { Button } from '../ui/button.js';",
|
|
75
|
+
oldNumber: 2,
|
|
76
|
+
newNumber: 2,
|
|
77
|
+
},
|
|
78
|
+
{ type: 'added', content: "import { Input } from '../ui/input.js';", newNumber: 3 },
|
|
79
|
+
{ type: 'added', content: "import { Label } from '../ui/label.js';", newNumber: 4 },
|
|
80
|
+
{ type: 'context', content: '', oldNumber: 3, newNumber: 5 },
|
|
81
|
+
{ type: 'removed', content: 'export function LoginForm() {', oldNumber: 4 },
|
|
82
|
+
{
|
|
83
|
+
type: 'added',
|
|
84
|
+
content: 'export function LoginForm({ onSubmit }: LoginFormProps) {',
|
|
85
|
+
newNumber: 6,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: 'context',
|
|
89
|
+
content: " const [email, setEmail] = useState('');",
|
|
90
|
+
oldNumber: 5,
|
|
91
|
+
newNumber: 7,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'context',
|
|
95
|
+
content: " const [password, setPassword] = useState('');",
|
|
96
|
+
oldNumber: 6,
|
|
97
|
+
newNumber: 8,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'added',
|
|
101
|
+
content: ' const [isLoading, setIsLoading] = useState(false);',
|
|
102
|
+
newNumber: 9,
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
const additionsOnlyHunks = [
|
|
108
|
+
{
|
|
109
|
+
header: '@@ -0,0 +1,5 @@',
|
|
110
|
+
lines: [
|
|
111
|
+
{ type: 'added', content: "import { hash } from 'bcrypt';", newNumber: 1 },
|
|
112
|
+
{ type: 'added', content: '', newNumber: 2 },
|
|
113
|
+
{
|
|
114
|
+
type: 'added',
|
|
115
|
+
content: 'export async function hashPassword(password: string) {',
|
|
116
|
+
newNumber: 3,
|
|
117
|
+
},
|
|
118
|
+
{ type: 'added', content: ' return hash(password, 10);', newNumber: 4 },
|
|
119
|
+
{ type: 'added', content: '}', newNumber: 5 },
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
];
|
|
123
|
+
const deletionsOnlyHunks = [
|
|
124
|
+
{
|
|
125
|
+
header: '@@ -1,5 +0,0 @@',
|
|
126
|
+
lines: [
|
|
127
|
+
{ type: 'removed', content: '// Legacy auth utilities', oldNumber: 1 },
|
|
128
|
+
{ type: 'removed', content: 'export function oldLogin() {', oldNumber: 2 },
|
|
129
|
+
{ type: 'removed', content: " return fetch('/api/login');", oldNumber: 3 },
|
|
130
|
+
{ type: 'removed', content: '}', oldNumber: 4 },
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
];
|
|
134
|
+
export const DiffDefault = {
|
|
135
|
+
render: () => (_jsx("div", { style: { width: '600px' }, children: _jsx(DiffCodeBlock, { language: "tsx", filename: "src/components/auth/login-form.tsx", hunks: sampleHunks }) })),
|
|
136
|
+
};
|
|
137
|
+
export const DiffAdditionsOnly = {
|
|
138
|
+
render: () => (_jsx("div", { style: { width: '600px' }, children: _jsx(DiffCodeBlock, { language: "typescript", filename: "src/lib/auth.ts", hunks: additionsOnlyHunks }) })),
|
|
139
|
+
};
|
|
140
|
+
export const DiffDeletionsOnly = {
|
|
141
|
+
render: () => (_jsx("div", { style: { width: '600px' }, children: _jsx(DiffCodeBlock, { language: "typescript", filename: "src/utils/legacy-auth.ts", hunks: deletionsOnlyHunks }) })),
|
|
142
|
+
};
|
|
143
|
+
export const DiffEmpty = {
|
|
144
|
+
render: () => (_jsx("div", { style: { width: '600px' }, children: _jsx(DiffCodeBlock, { language: "typescript", filename: "empty-file.ts", hunks: [] }) })),
|
|
145
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TreeViewElement {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type?: 'file' | 'folder';
|
|
6
|
+
isSelectable?: boolean;
|
|
7
|
+
children?: TreeViewElement[];
|
|
8
|
+
}
|
|
9
|
+
export type TreeSortMode = 'default' | 'none' | ((a: TreeViewElement, b: TreeViewElement) => number);
|
|
10
|
+
interface TreeContextProps {
|
|
11
|
+
selectedId: string | undefined;
|
|
12
|
+
expandedItems: string[] | undefined;
|
|
13
|
+
indicator: boolean;
|
|
14
|
+
handleExpand: (id: string) => void;
|
|
15
|
+
selectItem: (id: string) => void;
|
|
16
|
+
setExpandedItems?: React.Dispatch<React.SetStateAction<string[] | undefined>>;
|
|
17
|
+
openIcon?: React.ReactNode;
|
|
18
|
+
closeIcon?: React.ReactNode;
|
|
19
|
+
direction: 'rtl' | 'ltr';
|
|
20
|
+
}
|
|
21
|
+
declare const useTree: () => TreeContextProps;
|
|
22
|
+
interface TreeViewProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'defaultValue'> {
|
|
23
|
+
initialSelectedId?: string;
|
|
24
|
+
indicator?: boolean;
|
|
25
|
+
elements?: TreeViewElement[];
|
|
26
|
+
initialExpandedItems?: string[];
|
|
27
|
+
openIcon?: React.ReactNode;
|
|
28
|
+
closeIcon?: React.ReactNode;
|
|
29
|
+
dir?: 'rtl' | 'ltr';
|
|
30
|
+
onSelect?: (id: string) => void;
|
|
31
|
+
sort?: TreeSortMode;
|
|
32
|
+
}
|
|
33
|
+
declare const Tree: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
interface FolderComponentProps {
|
|
35
|
+
element: string;
|
|
36
|
+
value: string;
|
|
37
|
+
isSelectable?: boolean;
|
|
38
|
+
isSelect?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const Folder: React.ForwardRefExoticComponent<FolderComponentProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
declare const File: React.ForwardRefExoticComponent<{
|
|
42
|
+
value: string;
|
|
43
|
+
handleSelect?: (id: string) => void;
|
|
44
|
+
isSelectable?: boolean;
|
|
45
|
+
isSelect?: boolean;
|
|
46
|
+
fileIcon?: React.ReactNode;
|
|
47
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
declare const CollapseButton: React.ForwardRefExoticComponent<{
|
|
49
|
+
elements: TreeViewElement[];
|
|
50
|
+
expandAll?: boolean;
|
|
51
|
+
} & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
export { CollapseButton, File, Folder, Tree, useTree };
|
|
53
|
+
//# sourceMappingURL=file-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-tree.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/components/ui/file-tree.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,MAAM,GACN,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,KAAK,MAAM,CAAC,CAAC;AAEzD,UAAU,gBAAgB;IACxB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;IAC9E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;CAC1B;AAID,QAAA,MAAM,OAAO,wBAMZ,CAAC;AAqEF,UAAU,aACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IAC/E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,QAAA,MAAM,IAAI,sFA8GT,CAAC;AAwBF,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,oIAqDV,CAAC;AAIH,QAAA,MAAM,IAAI;WAGC,MAAM;mBACE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI;mBACpB,OAAO;eACX,OAAO;eACP,KAAK,CAAC,SAAS;2FA6C7B,CAAC;AAIF,QAAA,MAAM,cAAc;cAGN,eAAe,EAAE;gBACf,OAAO;qFAiDrB,CAAC;AAIH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|