@shepai/cli 1.182.0-pr512.369be8e → 1.182.0-pr548.9285cca
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/Settings.yaml +0 -3
- package/dist/packages/core/src/domain/generated/output.d.ts +0 -155
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +0 -26
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +0 -117
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +0 -24
- 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 -117
- 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 +3 -43
- 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 +4 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.js +4 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.js +4 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +11 -6
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts +2 -2
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.js +2 -2
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +3 -2
- package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts +16 -5
- package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/git/pr-branding.js +38 -7
- package/dist/src/presentation/cli/commands/_serve.command.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/_serve.command.js +0 -6
- package/dist/src/presentation/cli/commands/settings/index.d.ts.map +1 -1
- package/dist/src/presentation/cli/commands/settings/index.js +1 -3
- 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 -9
- package/dist/src/presentation/web/dev-server.js +0 -27
- package/dist/translations/ar/web.json +1 -2
- package/dist/translations/de/web.json +1 -2
- package/dist/translations/en/web.json +12 -13
- package/dist/translations/es/web.json +1 -2
- package/dist/translations/fr/web.json +1 -2
- package/dist/translations/he/web.json +1 -2
- package/dist/translations/pt/web.json +1 -2
- package/dist/translations/ru/web.json +1 -2
- package/dist/translations/uk/web.json +1 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -3
- 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 +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +32 -32
- 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/chat/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +33 -33
- 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 +41 -41
- 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 +41 -41
- 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]/[tab]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
- 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)/chat/page/server-reference-manifest.json +30 -30
- package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +33 -33
- 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 +41 -41
- 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 +41 -41
- 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 +30 -30
- 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]/[tab]/page/server-reference-manifest.json +31 -31
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
- 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 +7 -7
- 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/graph-data/route.js.nft.json +1 -1
- package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
- package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +15 -15
- package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
- package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/features/page/server-reference-manifest.json +7 -7
- package/web/.next/server/app/features/page.js.nft.json +1 -1
- package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +20 -65
- package/web/.next/server/app/settings/page.js +1 -1
- 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 +15 -15
- 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 +13 -13
- 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 +7 -7
- 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/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__b2a4bfcc._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__b2a4bfcc._.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_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/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{7f428_lucide-react_dist_esm_icons_469d51b7._.js → 7f428_lucide-react_dist_esm_icons_5da25833._.js} +2 -2
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_5da25833._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1925bef0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4ee8be85._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{[root-of-the-server]__f4f07ee6._.js → [root-of-the-server]__bb391c45._.js} +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__e265da61._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_0277d3b5._.js +1 -1
- package/web/.next/server/chunks/ssr/_0277d3b5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_1c03437e._.js → _04e59c76._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_1c03437e._.js.map → _04e59c76._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/{_86bb5eb1._.js → _295fffde._.js} +2 -6
- package/web/.next/server/chunks/ssr/_295fffde._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_49838974._.js → _2dcbafcc._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_49838974._.js.map → _2dcbafcc._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_44531b76._.js +9 -0
- package/web/.next/server/chunks/ssr/_44531b76._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
- package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_5bf2415e._.js +7 -0
- package/web/.next/server/chunks/ssr/_5bf2415e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_fa95e517._.js → _7a8d82d8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_fa95e517._.js.map → _7a8d82d8._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_869a3a15._.js +3 -0
- package/web/.next/server/chunks/ssr/_869a3a15._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_946a7fc6._.js +1 -1
- package/web/.next/server/chunks/ssr/_946a7fc6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_b6df235f._.js → _9f2d11a2._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_b6df235f._.js.map → _9f2d11a2._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_b227ff50._.js +3 -0
- package/web/.next/server/chunks/ssr/_b227ff50._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_c5357cf5._.js → _cc456949._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_c5357cf5._.js.map → _cc456949._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_e071ba48._.js +3 -0
- package/web/.next/server/chunks/ssr/_e071ba48._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_eff1b518._.js +1 -1
- package/web/.next/server/chunks/ssr/_eff1b518._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f227429a._.js +1 -1
- package/web/.next/server/chunks/ssr/_f227429a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f86fc1bf._.js +1 -1
- package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_f8c55130._.js +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/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_747b43ac._.js +3 -0
- package/web/.next/server/chunks/ssr/node_modules__pnpm_747b43ac._.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +3 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.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_features_skills_8a174cac._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js.map +1 -1
- package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +1 -1
- package/web/.next/server/chunks/ssr/translations_23dd5e7e._.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 +64 -109
- package/web/.next/static/chunks/06b9d6dbf635c370.css +1 -0
- package/web/.next/static/chunks/{d8505faa90c97f2b.js → 0fca538c8a29691d.js} +1 -1
- package/web/.next/static/chunks/{79a8ec8b8de391f8.js → 1332132fa08b32a6.js} +1 -1
- package/web/.next/static/chunks/1ae0cf5be30ef398.js +1 -0
- package/web/.next/static/chunks/{42d86b3a628702b0.js → 21a17efb196571ff.js} +1 -1
- package/web/.next/static/chunks/2a6dce03c4bc24a1.js +7 -0
- package/web/.next/static/chunks/{101e7888c4b7e328.js → 2d0deaa168eca4a6.js} +1 -1
- package/web/.next/static/chunks/{d436ca26f19e7c42.js → 4df1826f2280bb91.js} +1 -1
- package/web/.next/static/chunks/{f28fa2d7fa19eee6.js → 5c4f318453ac7984.js} +1 -1
- package/web/.next/static/chunks/{7e0cb9a6e06f075f.js → 6454c634b1dfd9e1.js} +1 -1
- package/web/.next/static/chunks/{32940aa08b947f66.js → 7c3fe3c694874dea.js} +1 -1
- package/web/.next/static/chunks/{e6fc771fc21a0b62.js → 8441fecda031344a.js} +1 -1
- package/web/.next/static/chunks/8492d8e0b5f9a4e8.js +1 -0
- package/web/.next/static/chunks/{b3051a00d29f0f0f.js → 8de6ff9a58d783f1.js} +1 -1
- package/web/.next/static/chunks/911685bfab863324.js +5 -0
- package/web/.next/static/chunks/927442d2628f6e22.js +1 -0
- package/web/.next/static/chunks/{18fa374b1b856687.js → a7b75ff95a0f9779.js} +2 -2
- package/web/.next/static/chunks/{e3ecbef934b77afa.js → b649d60a870a6b30.js} +1 -1
- package/web/.next/static/chunks/b99506a6f7bc2fa8.js +1 -0
- package/web/.next/static/chunks/bd0a4fdd2b1cc737.js +7 -0
- package/web/.next/static/chunks/df4464ba4edeee49.js +1 -0
- package/web/.next/static/chunks/{7bbe49d9daedd94d.js → e8444bf5f6c35f8b.js} +1 -5
- package/web/.next/static/chunks/e9bd2883b2ba2017.js +1 -0
- package/apis/json-schema/MessagingCommand.yaml +0 -28
- package/apis/json-schema/MessagingCommandType.yaml +0 -17
- package/apis/json-schema/MessagingConfig.yaml +0 -40
- package/apis/json-schema/MessagingFrameType.yaml +0 -8
- package/apis/json-schema/MessagingNotification.yaml +0 -22
- package/apis/json-schema/MessagingPlatform.yaml +0 -7
- package/apis/json-schema/MessagingPlatformConfig.yaml +0 -38
- package/dist/packages/core/src/application/ports/output/services/gateway-client.interface.d.ts +0 -58
- package/dist/packages/core/src/application/ports/output/services/gateway-client.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/gateway-client.interface.js +0 -10
- package/dist/packages/core/src/application/ports/output/services/message-sender.interface.d.ts +0 -18
- package/dist/packages/core/src/application/ports/output/services/message-sender.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/message-sender.interface.js +0 -9
- package/dist/packages/core/src/application/ports/output/services/messaging-service.interface.d.ts +0 -34
- package/dist/packages/core/src/application/ports/output/services/messaging-service.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/messaging-service.interface.js +0 -12
- package/dist/packages/core/src/application/ports/output/services/telegram-client.interface.d.ts +0 -19
- package/dist/packages/core/src/application/ports/output/services/telegram-client.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/telegram-client.interface.js +0 -8
- package/dist/packages/core/src/application/use-cases/messaging/begin-pairing.use-case.d.ts +0 -46
- package/dist/packages/core/src/application/use-cases/messaging/begin-pairing.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/messaging/begin-pairing.use-case.js +0 -148
- package/dist/packages/core/src/application/use-cases/messaging/confirm-pairing.use-case.d.ts +0 -19
- package/dist/packages/core/src/application/use-cases/messaging/confirm-pairing.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/messaging/confirm-pairing.use-case.js +0 -63
- package/dist/packages/core/src/application/use-cases/messaging/disconnect-messaging.use-case.d.ts +0 -19
- package/dist/packages/core/src/application/use-cases/messaging/disconnect-messaging.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/messaging/disconnect-messaging.use-case.js +0 -65
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-messaging-remote-control.d.ts +0 -22
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-messaging-remote-control.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-add-messaging-remote-control.js +0 -62
- package/dist/packages/core/src/infrastructure/services/messaging/chat-relay.d.ts +0 -45
- package/dist/packages/core/src/infrastructure/services/messaging/chat-relay.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/chat-relay.js +0 -100
- package/dist/packages/core/src/infrastructure/services/messaging/command-executor.d.ts +0 -53
- package/dist/packages/core/src/infrastructure/services/messaging/command-executor.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/command-executor.js +0 -200
- package/dist/packages/core/src/infrastructure/services/messaging/content-sanitizer.d.ts +0 -23
- package/dist/packages/core/src/infrastructure/services/messaging/content-sanitizer.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/content-sanitizer.js +0 -39
- package/dist/packages/core/src/infrastructure/services/messaging/http-gateway.client.d.ts +0 -19
- package/dist/packages/core/src/infrastructure/services/messaging/http-gateway.client.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/http-gateway.client.js +0 -124
- package/dist/packages/core/src/infrastructure/services/messaging/http-telegram.client.d.ts +0 -18
- package/dist/packages/core/src/infrastructure/services/messaging/http-telegram.client.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/http-telegram.client.js +0 -60
- package/dist/packages/core/src/infrastructure/services/messaging/messaging-tunnel.adapter.d.ts +0 -68
- package/dist/packages/core/src/infrastructure/services/messaging/messaging-tunnel.adapter.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/messaging-tunnel.adapter.js +0 -262
- package/dist/packages/core/src/infrastructure/services/messaging/messaging.service.d.ts +0 -78
- package/dist/packages/core/src/infrastructure/services/messaging/messaging.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/messaging.service.js +0 -279
- package/dist/packages/core/src/infrastructure/services/messaging/notification-emitter.d.ts +0 -33
- package/dist/packages/core/src/infrastructure/services/messaging/notification-emitter.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/notification-emitter.js +0 -79
- package/dist/packages/core/src/infrastructure/services/messaging/stub-gateway.client.d.ts +0 -12
- package/dist/packages/core/src/infrastructure/services/messaging/stub-gateway.client.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/stub-gateway.client.js +0 -26
- package/dist/packages/core/src/infrastructure/services/messaging/telegram-message-sender.d.ts +0 -26
- package/dist/packages/core/src/infrastructure/services/messaging/telegram-message-sender.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/telegram-message-sender.js +0 -49
- package/dist/packages/core/src/infrastructure/services/messaging/telegram-webhook.parser.d.ts +0 -28
- package/dist/packages/core/src/infrastructure/services/messaging/telegram-webhook.parser.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/telegram-webhook.parser.js +0 -45
- package/dist/packages/core/src/infrastructure/services/messaging/tunnel-protocol.d.ts +0 -102
- package/dist/packages/core/src/infrastructure/services/messaging/tunnel-protocol.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/tunnel-protocol.js +0 -16
- package/dist/packages/core/src/infrastructure/services/messaging/whatsapp-webhook.parser.d.ts +0 -39
- package/dist/packages/core/src/infrastructure/services/messaging/whatsapp-webhook.parser.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/messaging/whatsapp-webhook.parser.js +0 -56
- package/dist/src/presentation/cli/commands/settings/messaging.command.d.ts +0 -17
- package/dist/src/presentation/cli/commands/settings/messaging.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/settings/messaging.command.js +0 -187
- package/dist/src/presentation/web/app/actions/messaging.d.ts +0 -29
- package/dist/src/presentation/web/app/actions/messaging.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/messaging.js +0 -55
- package/dist/src/presentation/web/components/features/settings/messaging-settings-section.d.ts +0 -6
- package/dist/src/presentation/web/components/features/settings/messaging-settings-section.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/settings/messaging-settings-section.js +0 -206
- package/dist/src/presentation/web/components/features/settings/messaging-settings-section.stories.d.ts +0 -17
- package/dist/src/presentation/web/components/features/settings/messaging-settings-section.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/settings/messaging-settings-section.stories.js +0 -55
- package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_469d51b7._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__42d066e1._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__42d066e1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__f4f07ee6._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_708a9069._.js +0 -3
- package/web/.next/server/chunks/ssr/_708a9069._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_86bb5eb1._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_bad61758._.js +0 -3
- package/web/.next/server/chunks/ssr/_bad61758._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_d7d82308._.js +0 -3
- package/web/.next/server/chunks/ssr/_d7d82308._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_dd852eae._.js +0 -3
- package/web/.next/server/chunks/ssr/_dd852eae._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f6b812ec._.js +0 -9
- package/web/.next/server/chunks/ssr/_f6b812ec._.js.map +0 -1
- package/web/.next/server/chunks/ssr/node_modules__pnpm_64cc95e9._.js +0 -3
- package/web/.next/server/chunks/ssr/node_modules__pnpm_64cc95e9._.js.map +0 -1
- package/web/.next/static/chunks/0239d68df2738a2a.js +0 -1
- package/web/.next/static/chunks/6da04daaac881f27.js +0 -1
- package/web/.next/static/chunks/6f9ba92ee19bcbd7.js +0 -5
- package/web/.next/static/chunks/87b197ebd301232a.js +0 -3
- package/web/.next/static/chunks/8fe70d4e73e1fe31.css +0 -1
- package/web/.next/static/chunks/b6b07ccbccda00e2.js +0 -7
- package/web/.next/static/chunks/b9b3a6d83e07b213.js +0 -1
- package/web/.next/static/chunks/c92bc820f657f9d9.js +0 -1
- package/web/.next/static/chunks/e2b0da48f8e15118.js +0 -1
- package/web/.next/static/chunks/ecafea5bc026ed41.js +0 -1
- package/web/.next/static/chunks/f79d32f56056c680.js +0 -1
- /package/web/.next/static/{i04ZwSXpTvkppxSePII4p → fHns2V-tULTm-kY_Fjx8m}/_buildManifest.js +0 -0
- /package/web/.next/static/{i04ZwSXpTvkppxSePII4p → fHns2V-tULTm-kY_Fjx8m}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{i04ZwSXpTvkppxSePII4p → fHns2V-tULTm-kY_Fjx8m}/_ssgManifest.js +0 -0
|
@@ -115,58 +115,8 @@ export function toDatabase(settings) {
|
|
|
115
115
|
skill_injection_skills: settings.workflow.skillInjection?.skills?.length
|
|
116
116
|
? JSON.stringify(settings.workflow.skillInjection.skills)
|
|
117
117
|
: null,
|
|
118
|
-
// Messaging remote control (migration 056)
|
|
119
|
-
...messagingToRow(settings.messaging),
|
|
120
118
|
};
|
|
121
119
|
}
|
|
122
|
-
/**
|
|
123
|
-
* Serialize MessagingConfig into the snake_case DB row columns.
|
|
124
|
-
* An undefined config writes zeros/nulls so the row is valid.
|
|
125
|
-
*/
|
|
126
|
-
function messagingToRow(messaging) {
|
|
127
|
-
const tg = messaging?.telegram;
|
|
128
|
-
const wa = messaging?.whatsapp;
|
|
129
|
-
return {
|
|
130
|
-
messaging_enabled: messaging?.enabled ? 1 : 0,
|
|
131
|
-
messaging_gateway_url: messaging?.gatewayUrl ?? null,
|
|
132
|
-
messaging_device_id: messaging?.deviceId ?? null,
|
|
133
|
-
messaging_gateway_client_id: messaging?.gatewayClientId ?? null,
|
|
134
|
-
messaging_debounce_ms: messaging?.debounceMs ?? null,
|
|
135
|
-
messaging_chat_buffer_ms: messaging?.chatBufferMs ?? null,
|
|
136
|
-
messaging_telegram_enabled: tg?.enabled ? 1 : 0,
|
|
137
|
-
messaging_telegram_paired: tg?.paired ? 1 : 0,
|
|
138
|
-
messaging_telegram_chat_id: tg?.chatId ?? null,
|
|
139
|
-
messaging_telegram_route_id: tg?.routeId ?? null,
|
|
140
|
-
messaging_telegram_route_token: tg?.routeToken ?? null,
|
|
141
|
-
messaging_telegram_public_url: tg?.publicUrl ?? null,
|
|
142
|
-
messaging_telegram_bot_token: tg?.botToken ?? null,
|
|
143
|
-
messaging_telegram_pending_code: tg?.pendingPairingCode ?? null,
|
|
144
|
-
messaging_telegram_pending_expires_at: serializeIsoLike(tg?.pendingPairingExpiresAt),
|
|
145
|
-
messaging_whatsapp_enabled: wa?.enabled ? 1 : 0,
|
|
146
|
-
messaging_whatsapp_paired: wa?.paired ? 1 : 0,
|
|
147
|
-
messaging_whatsapp_chat_id: wa?.chatId ?? null,
|
|
148
|
-
messaging_whatsapp_route_id: wa?.routeId ?? null,
|
|
149
|
-
messaging_whatsapp_route_token: wa?.routeToken ?? null,
|
|
150
|
-
messaging_whatsapp_public_url: wa?.publicUrl ?? null,
|
|
151
|
-
messaging_whatsapp_bot_token: wa?.botToken ?? null,
|
|
152
|
-
messaging_whatsapp_pending_code: wa?.pendingPairingCode ?? null,
|
|
153
|
-
messaging_whatsapp_pending_expires_at: serializeIsoLike(wa?.pendingPairingExpiresAt),
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* The generated TypeSpec type for `pendingPairingExpiresAt` is `any` because
|
|
158
|
-
* TypeSpec emitted a loose shape for this `utcDateTime` field. Callers pass
|
|
159
|
-
* either a Date or an ISO string; we normalize both to a string for storage.
|
|
160
|
-
*/
|
|
161
|
-
function serializeIsoLike(value) {
|
|
162
|
-
if (value == null)
|
|
163
|
-
return null;
|
|
164
|
-
if (value instanceof Date)
|
|
165
|
-
return value.toISOString();
|
|
166
|
-
if (typeof value === 'string')
|
|
167
|
-
return value;
|
|
168
|
-
return String(value);
|
|
169
|
-
}
|
|
170
120
|
/**
|
|
171
121
|
* Build the stageTimeouts spread from DB row columns.
|
|
172
122
|
* Returns `{ stageTimeouts: { ... } }` when at least one column is non-null,
|
|
@@ -325,74 +275,7 @@ export function fromDatabase(row) {
|
|
|
325
275
|
fabLayout: {
|
|
326
276
|
swapPosition: (row.fab_position_swapped ?? 0) !== 0,
|
|
327
277
|
},
|
|
328
|
-
// Messaging remote control (migration 056)
|
|
329
|
-
// Always present — even for rows written before the migration, defaults
|
|
330
|
-
// decode to { enabled: false, debounceMs: 5000, chatBufferMs: 3000 } so
|
|
331
|
-
// consumers always see a valid MessagingConfig shape.
|
|
332
|
-
messaging: messagingFromRow(row),
|
|
333
278
|
// Onboarding (INTEGER → boolean)
|
|
334
279
|
onboardingComplete: row.onboarding_complete === 1,
|
|
335
280
|
};
|
|
336
281
|
}
|
|
337
|
-
/**
|
|
338
|
-
* Deserialize MessagingConfig from the DB row. Returns a fully populated
|
|
339
|
-
* MessagingConfig with safe defaults for rows that predate migration 056 or
|
|
340
|
-
* were written by code that never set the messaging field (e.g. main branch).
|
|
341
|
-
*/
|
|
342
|
-
function messagingFromRow(row) {
|
|
343
|
-
const telegram = readPlatform(row.messaging_telegram_enabled, row.messaging_telegram_paired, row.messaging_telegram_chat_id, row.messaging_telegram_route_id, row.messaging_telegram_route_token, row.messaging_telegram_public_url, row.messaging_telegram_bot_token, row.messaging_telegram_pending_code, row.messaging_telegram_pending_expires_at);
|
|
344
|
-
const whatsapp = readPlatform(row.messaging_whatsapp_enabled, row.messaging_whatsapp_paired, row.messaging_whatsapp_chat_id, row.messaging_whatsapp_route_id, row.messaging_whatsapp_route_token, row.messaging_whatsapp_public_url, row.messaging_whatsapp_bot_token, row.messaging_whatsapp_pending_code, row.messaging_whatsapp_pending_expires_at);
|
|
345
|
-
const config = {
|
|
346
|
-
enabled: (row.messaging_enabled ?? 0) === 1,
|
|
347
|
-
debounceMs: row.messaging_debounce_ms ?? 5000,
|
|
348
|
-
chatBufferMs: row.messaging_chat_buffer_ms ?? 3000,
|
|
349
|
-
};
|
|
350
|
-
if (row.messaging_gateway_url !== null && row.messaging_gateway_url !== undefined) {
|
|
351
|
-
config.gatewayUrl = row.messaging_gateway_url;
|
|
352
|
-
}
|
|
353
|
-
if (row.messaging_device_id !== null && row.messaging_device_id !== undefined) {
|
|
354
|
-
config.deviceId = row.messaging_device_id;
|
|
355
|
-
}
|
|
356
|
-
if (row.messaging_gateway_client_id !== null && row.messaging_gateway_client_id !== undefined) {
|
|
357
|
-
config.gatewayClientId = row.messaging_gateway_client_id;
|
|
358
|
-
}
|
|
359
|
-
if (telegram)
|
|
360
|
-
config.telegram = telegram;
|
|
361
|
-
if (whatsapp)
|
|
362
|
-
config.whatsapp = whatsapp;
|
|
363
|
-
return config;
|
|
364
|
-
}
|
|
365
|
-
function readPlatform(enabled, paired, chatId, routeId, routeToken, publicUrl, botToken, pendingCode, pendingExpiresAt) {
|
|
366
|
-
// Omit the platform entirely when no data has been written. This matches
|
|
367
|
-
// the pre-persistence shape where callers used `config.telegram?.paired`.
|
|
368
|
-
const hasAny = (enabled ?? 0) === 1 ||
|
|
369
|
-
(paired ?? 0) === 1 ||
|
|
370
|
-
chatId !== null ||
|
|
371
|
-
routeId !== null ||
|
|
372
|
-
routeToken !== null ||
|
|
373
|
-
publicUrl !== null ||
|
|
374
|
-
botToken !== null ||
|
|
375
|
-
pendingCode !== null ||
|
|
376
|
-
pendingExpiresAt !== null;
|
|
377
|
-
if (!hasAny)
|
|
378
|
-
return undefined;
|
|
379
|
-
const platform = {
|
|
380
|
-
enabled: (enabled ?? 0) === 1,
|
|
381
|
-
paired: (paired ?? 0) === 1,
|
|
382
|
-
};
|
|
383
|
-
if (chatId !== null)
|
|
384
|
-
platform.chatId = chatId;
|
|
385
|
-
if (routeId !== null)
|
|
386
|
-
platform.routeId = routeId;
|
|
387
|
-
if (routeToken !== null)
|
|
388
|
-
platform.routeToken = routeToken;
|
|
389
|
-
if (publicUrl !== null)
|
|
390
|
-
platform.publicUrl = publicUrl;
|
|
391
|
-
if (botToken !== null)
|
|
392
|
-
platform.botToken = botToken;
|
|
393
|
-
if (pendingCode !== null)
|
|
394
|
-
platform.pendingPairingCode = pendingCode;
|
|
395
|
-
if (pendingExpiresAt !== null)
|
|
396
|
-
platform.pendingPairingExpiresAt = pendingExpiresAt;
|
|
397
|
-
return platform;
|
|
398
|
-
}
|
package/dist/packages/core/src/infrastructure/repositories/sqlite-settings.repository.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-settings.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-settings.repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8EAA8E,CAAC;AACxH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAOjE;;;GAGG;AACH,qBACa,wBAAyB,YAAW,mBAAmB;IACtD,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAElD;;;;;;OAMG;IACG,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"sqlite-settings.repository.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/repositories/sqlite-settings.repository.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8EAA8E,CAAC;AACxH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAOjE;;;GAGG;AACH,qBACa,wBAAyB,YAAW,mBAAmB;IACtD,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,QAAQ,CAAC,QAAQ;IAElD;;;;;;OAMG;IACG,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAmFnD;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAgBtC;;;;;OAKG;IACG,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CA2FhD"}
|
|
@@ -73,15 +73,7 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
73
73
|
interactive_agent_max_concurrent_sessions,
|
|
74
74
|
auto_archive_delay_minutes,
|
|
75
75
|
stage_timeout_fast_implement_ms,
|
|
76
|
-
fab_position_swapped
|
|
77
|
-
messaging_enabled, messaging_gateway_url, messaging_device_id,
|
|
78
|
-
messaging_gateway_client_id, messaging_debounce_ms, messaging_chat_buffer_ms,
|
|
79
|
-
messaging_telegram_enabled, messaging_telegram_paired, messaging_telegram_chat_id,
|
|
80
|
-
messaging_telegram_route_id, messaging_telegram_route_token, messaging_telegram_public_url,
|
|
81
|
-
messaging_telegram_bot_token, messaging_telegram_pending_code, messaging_telegram_pending_expires_at,
|
|
82
|
-
messaging_whatsapp_enabled, messaging_whatsapp_paired, messaging_whatsapp_chat_id,
|
|
83
|
-
messaging_whatsapp_route_id, messaging_whatsapp_route_token, messaging_whatsapp_public_url,
|
|
84
|
-
messaging_whatsapp_bot_token, messaging_whatsapp_pending_code, messaging_whatsapp_pending_expires_at
|
|
76
|
+
fab_position_swapped
|
|
85
77
|
) VALUES (
|
|
86
78
|
@id, @created_at, @updated_at,
|
|
87
79
|
@model_analyze, @model_requirements, @model_plan, @model_implement, @model_default,
|
|
@@ -113,15 +105,7 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
113
105
|
@interactive_agent_max_concurrent_sessions,
|
|
114
106
|
@auto_archive_delay_minutes,
|
|
115
107
|
@stage_timeout_fast_implement_ms,
|
|
116
|
-
@fab_position_swapped
|
|
117
|
-
@messaging_enabled, @messaging_gateway_url, @messaging_device_id,
|
|
118
|
-
@messaging_gateway_client_id, @messaging_debounce_ms, @messaging_chat_buffer_ms,
|
|
119
|
-
@messaging_telegram_enabled, @messaging_telegram_paired, @messaging_telegram_chat_id,
|
|
120
|
-
@messaging_telegram_route_id, @messaging_telegram_route_token, @messaging_telegram_public_url,
|
|
121
|
-
@messaging_telegram_bot_token, @messaging_telegram_pending_code, @messaging_telegram_pending_expires_at,
|
|
122
|
-
@messaging_whatsapp_enabled, @messaging_whatsapp_paired, @messaging_whatsapp_chat_id,
|
|
123
|
-
@messaging_whatsapp_route_id, @messaging_whatsapp_route_token, @messaging_whatsapp_public_url,
|
|
124
|
-
@messaging_whatsapp_bot_token, @messaging_whatsapp_pending_code, @messaging_whatsapp_pending_expires_at
|
|
108
|
+
@fab_position_swapped
|
|
125
109
|
)
|
|
126
110
|
`);
|
|
127
111
|
// Execute with named parameters (safe from SQL injection)
|
|
@@ -227,31 +211,7 @@ let SQLiteSettingsRepository = class SQLiteSettingsRepository {
|
|
|
227
211
|
interactive_agent_max_concurrent_sessions = @interactive_agent_max_concurrent_sessions,
|
|
228
212
|
auto_archive_delay_minutes = @auto_archive_delay_minutes,
|
|
229
213
|
stage_timeout_fast_implement_ms = @stage_timeout_fast_implement_ms,
|
|
230
|
-
fab_position_swapped = @fab_position_swapped
|
|
231
|
-
messaging_enabled = @messaging_enabled,
|
|
232
|
-
messaging_gateway_url = @messaging_gateway_url,
|
|
233
|
-
messaging_device_id = @messaging_device_id,
|
|
234
|
-
messaging_gateway_client_id = @messaging_gateway_client_id,
|
|
235
|
-
messaging_debounce_ms = @messaging_debounce_ms,
|
|
236
|
-
messaging_chat_buffer_ms = @messaging_chat_buffer_ms,
|
|
237
|
-
messaging_telegram_enabled = @messaging_telegram_enabled,
|
|
238
|
-
messaging_telegram_paired = @messaging_telegram_paired,
|
|
239
|
-
messaging_telegram_chat_id = @messaging_telegram_chat_id,
|
|
240
|
-
messaging_telegram_route_id = @messaging_telegram_route_id,
|
|
241
|
-
messaging_telegram_route_token = @messaging_telegram_route_token,
|
|
242
|
-
messaging_telegram_public_url = @messaging_telegram_public_url,
|
|
243
|
-
messaging_telegram_bot_token = @messaging_telegram_bot_token,
|
|
244
|
-
messaging_telegram_pending_code = @messaging_telegram_pending_code,
|
|
245
|
-
messaging_telegram_pending_expires_at = @messaging_telegram_pending_expires_at,
|
|
246
|
-
messaging_whatsapp_enabled = @messaging_whatsapp_enabled,
|
|
247
|
-
messaging_whatsapp_paired = @messaging_whatsapp_paired,
|
|
248
|
-
messaging_whatsapp_chat_id = @messaging_whatsapp_chat_id,
|
|
249
|
-
messaging_whatsapp_route_id = @messaging_whatsapp_route_id,
|
|
250
|
-
messaging_whatsapp_route_token = @messaging_whatsapp_route_token,
|
|
251
|
-
messaging_whatsapp_public_url = @messaging_whatsapp_public_url,
|
|
252
|
-
messaging_whatsapp_bot_token = @messaging_whatsapp_bot_token,
|
|
253
|
-
messaging_whatsapp_pending_code = @messaging_whatsapp_pending_code,
|
|
254
|
-
messaging_whatsapp_pending_expires_at = @messaging_whatsapp_pending_expires_at
|
|
214
|
+
fab_position_swapped = @fab_position_swapped
|
|
255
215
|
WHERE id = @id
|
|
256
216
|
`);
|
|
257
217
|
// Execute with named parameters (safe from SQL injection)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAWrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAE7C,4DAA4D;gBAChD,IAAI;kBAGF,MAAM,GAAG,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AAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,UAAU,KAAK,MAAM,GACjE,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAwInE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,QAAQ,EAAE,EACpB,GAAG,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GACvC,IAAI,CAaN"}
|
package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js
CHANGED
|
@@ -14,6 +14,7 @@ import { reportNodeStart } from '../heartbeat.js';
|
|
|
14
14
|
import { recordPhaseStart, recordPhaseEnd, recordApprovalWaitStart, } from '../phase-timing-context.js';
|
|
15
15
|
import { updateNodeLifecycle } from '../lifecycle-context.js';
|
|
16
16
|
import { getLogPrefix, setCurrentPhase } from '../log-context.js';
|
|
17
|
+
import { COMMIT_CO_AUTHOR } from './prompts/pr-branding.js';
|
|
17
18
|
/**
|
|
18
19
|
* Create a scoped logger that prefixes messages with the node name.
|
|
19
20
|
* Output goes to stdout which the worker redirects to the log file.
|
|
@@ -350,8 +351,10 @@ export function buildCommitPushBlock(opts) {
|
|
|
350
351
|
``,
|
|
351
352
|
`After completing all tasks above:`,
|
|
352
353
|
`1. Stage the changed files: ${fileList} (use \`git add\` with the specific paths)`,
|
|
353
|
-
`2. Commit with a conventional commit message${opts.skipVerification ? ' using `--no-verify` to skip hooks' : ''}
|
|
354
|
+
`2. Commit with a conventional commit message${opts.skipVerification ? ' using `--no-verify` to skip hooks' : ''} and include the Shep Bot co-author trailer:`,
|
|
355
|
+
` - e.g. \`git commit${opts.skipVerification ? ' --no-verify' : ''} -m "${opts.commitHint}" -m "" -m "${COMMIT_CO_AUTHOR}"\``,
|
|
354
356
|
` - The message should accurately describe what changed`,
|
|
357
|
+
` - Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer`,
|
|
355
358
|
];
|
|
356
359
|
if (opts.push && !opts.skipVerification) {
|
|
357
360
|
lines.push(`3. Run local verification before pushing:`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast-implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"fast-implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAyIxD;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CA0EzE"}
|
|
@@ -12,6 +12,7 @@ import { readFileSync, readdirSync, statSync } from 'node:fs';
|
|
|
12
12
|
import { join } from 'node:path';
|
|
13
13
|
import yaml from 'js-yaml';
|
|
14
14
|
import { readSpecFile } from '../node-helpers.js';
|
|
15
|
+
import { COMMIT_CO_AUTHOR } from '../../../../git/pr-branding.js';
|
|
15
16
|
/**
|
|
16
17
|
* Read a file from the worktree, returning empty string if not found.
|
|
17
18
|
*/
|
|
@@ -179,7 +180,9 @@ ${userQuery}
|
|
|
179
180
|
3. Run the test suite and fix any failures
|
|
180
181
|
4. Run the linter and fix any issues
|
|
181
182
|
5. Ensure the project builds successfully
|
|
182
|
-
6. Commit your work with descriptive conventional commit messages
|
|
183
|
+
6. Commit your work with descriptive conventional commit messages and include the Shep Bot co-author trailer:
|
|
184
|
+
- e.g. \`git commit -m "feat(scope): description" -m "" -m "${COMMIT_CO_AUTHOR}"\`
|
|
185
|
+
- Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer above
|
|
183
186
|
- Commit incrementally as you complete logical units of work — do NOT wait until the end
|
|
184
187
|
- Each commit should be a coherent, working unit${state.push ? `\n7. Push to remote after committing: \`git push -u origin HEAD\`\n - Do NOT wait for or watch CI — just push and finish` : ''}
|
|
185
188
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,GAAG,EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAwBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAAE,EAClB,OAAO,EAAE;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACzE,MAAM,CAqER"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* and verification instructions.
|
|
7
7
|
*/
|
|
8
8
|
import { readSpecFile } from '../node-helpers.js';
|
|
9
|
+
import { COMMIT_CO_AUTHOR } from '../../../../git/pr-branding.js';
|
|
9
10
|
function formatTaskSection(task) {
|
|
10
11
|
let section = `### Task ${task.id}: ${task.title}\n${task.description}\n`;
|
|
11
12
|
section += `\n**Acceptance Criteria:**\n`;
|
|
@@ -79,7 +80,9 @@ ${taskSections}
|
|
|
79
80
|
2. For tasks with TDD guidance: write tests alongside implementation following the hints provided — use them as guidance, not rigid steps
|
|
80
81
|
3. Follow existing codebase conventions for file placement, naming patterns, and architecture layers
|
|
81
82
|
${verificationBlock}
|
|
82
|
-
5. Commit your work with descriptive conventional commit messages
|
|
83
|
+
5. Commit your work with descriptive conventional commit messages and include the Shep Bot co-author trailer:
|
|
84
|
+
- e.g. \`git commit -m "feat(scope): description" -m "" -m "${COMMIT_CO_AUTHOR}"\`
|
|
85
|
+
- Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer above
|
|
83
86
|
- Commit incrementally as you complete logical units of work — do NOT wait until the end
|
|
84
87
|
- Each commit should be a coherent, working unit
|
|
85
88
|
- It is CRITICAL that all implementation code is committed before this phase ends — evidence collection runs next and needs a clean working tree${state.push ? `\n6. Push to remote after committing: \`git push -u origin HEAD\`\n - Do NOT wait for or watch CI — just push and finish` : ''}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-prompts.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAyCxD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU9F;AAuCD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,EAAE,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAUR;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,
|
|
1
|
+
{"version":3,"file":"merge-prompts.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAyCxD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU9F;AAuCD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,EAAE,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAUR;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CA8ER;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,GACtB,MAAM,CAiDR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,MAAM,CA4BR;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAqDzD"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import yaml from 'js-yaml';
|
|
12
12
|
import { EvidenceType } from '../../../../../../domain/generated/output.js';
|
|
13
13
|
import { readSpecFile, buildResumeContext } from '../node-helpers.js';
|
|
14
|
-
import { PR_BRANDING } from './pr-branding.js';
|
|
14
|
+
import { PR_BRANDING, COMMIT_CO_AUTHOR } from './pr-branding.js';
|
|
15
15
|
/**
|
|
16
16
|
* Extract merge-phase rejection feedback from spec.yaml.
|
|
17
17
|
*/
|
|
@@ -137,7 +137,9 @@ export function buildCommitPushPrPrompt(state, branch, baseBranch, repoUrl) {
|
|
|
137
137
|
3. Write a conventional commit message based on the actual diff content
|
|
138
138
|
- Use the format: \`feat(<scope>): <description>\` or \`fix(<scope>): <description>\`
|
|
139
139
|
- The commit message should summarize what actually changed, not be generic
|
|
140
|
-
-
|
|
140
|
+
- MUST include the co-author trailer: \`${COMMIT_CO_AUTHOR}\`
|
|
141
|
+
- Run: \`git commit -m "<your message>" -m "" -m "${COMMIT_CO_AUTHOR}"\`
|
|
142
|
+
- Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer above`);
|
|
141
143
|
// Step 2: Local verification before push (conditional)
|
|
142
144
|
if (shouldPush) {
|
|
143
145
|
steps.push(`4. Run local verification checks before pushing:
|
|
@@ -182,6 +184,7 @@ ${evidenceSection}
|
|
|
182
184
|
## Constraints
|
|
183
185
|
|
|
184
186
|
- Write a meaningful conventional commit message derived from the actual diff — do NOT use generic messages
|
|
187
|
+
- Every commit MUST include the co-author trailer: \`${COMMIT_CO_AUTHOR}\` — do NOT include any other Co-Authored-By trailer
|
|
185
188
|
${rejectionSection ? '- You MUST modify source code files to address the rejection feedback above BEFORE committing' : '- Do NOT modify any source code files — only perform git operations'}
|
|
186
189
|
${!state.commitSpecs ? '- Do NOT commit the `specs/` directory — it must stay untracked. If you accidentally staged it, run `git reset -- specs/` before committing' : ''}
|
|
187
190
|
- Do NOT amend existing commits
|
|
@@ -236,8 +239,8 @@ Follow these steps EXACTLY:
|
|
|
236
239
|
- For config files (.gitignore, tsconfig.json, etc.), merge both sides' additions
|
|
237
240
|
- Stage each resolved file: \`git add <file>\`
|
|
238
241
|
|
|
239
|
-
4. After ALL conflicts are resolved, commit:
|
|
240
|
-
\`git commit -m "${commitMessage.replace(/"/g, '\\"')}"\`
|
|
242
|
+
4. After ALL conflicts are resolved, commit with the Shep Bot co-author trailer:
|
|
243
|
+
\`git commit -m "${commitMessage.replace(/"/g, '\\"')}" -m "" -m "${COMMIT_CO_AUTHOR}"\`
|
|
241
244
|
|
|
242
245
|
5. Delete the feature branch:
|
|
243
246
|
\`git branch -d ${featureBranch}\` (non-fatal if it fails)
|
|
@@ -278,14 +281,16 @@ ${failureLogs}
|
|
|
278
281
|
1. Analyze the CI failure logs above to diagnose the root cause
|
|
279
282
|
2. Apply a targeted fix to resolve the failure — change only what is necessary
|
|
280
283
|
3. Stage all changes: \`git add -A\`
|
|
281
|
-
4. Commit with this exact conventional commit message format:
|
|
282
|
-
\`fix(ci): attempt ${attemptNumber}/${maxAttempts} — <short description of what you fixed
|
|
284
|
+
4. Commit with this exact conventional commit message format and the Shep Bot co-author trailer:
|
|
285
|
+
\`git commit -m "fix(ci): attempt ${attemptNumber}/${maxAttempts} — <short description of what you fixed>" -m "" -m "${COMMIT_CO_AUTHOR}"\`
|
|
283
286
|
5. Push the fix to the branch: \`git push origin ${branch}\`
|
|
284
287
|
|
|
285
288
|
## Constraints
|
|
286
289
|
|
|
287
290
|
- Fix ONLY the issue(s) causing the CI failure — do not refactor unrelated code
|
|
288
291
|
- The commit message MUST start with \`fix(ci): attempt ${attemptNumber}/${maxAttempts} — \`
|
|
292
|
+
- The commit MUST include the co-author trailer: \`${COMMIT_CO_AUTHOR}\`
|
|
293
|
+
- Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer
|
|
289
294
|
- Do NOT create a new branch — push directly to \`${branch}\`
|
|
290
295
|
- If the failure is unclear, make your best diagnosis and explain your reasoning in the commit message`;
|
|
291
296
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Re-export PR branding from the canonical location in git services.
|
|
2
|
+
* Re-export PR & commit branding from the canonical location in git services.
|
|
3
3
|
*/
|
|
4
|
-
export { PR_BRANDING, applyPrBranding } from '../../../../../services/git/pr-branding.js';
|
|
4
|
+
export { PR_BRANDING, COMMIT_CO_AUTHOR, applyPrBranding, applyCommitBranding, } from '../../../../../services/git/pr-branding.js';
|
|
5
5
|
//# sourceMappingURL=pr-branding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,8CAA8C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Re-export PR branding from the canonical location in git services.
|
|
2
|
+
* Re-export PR & commit branding from the canonical location in git services.
|
|
3
3
|
*/
|
|
4
|
-
export { PR_BRANDING, applyPrBranding } from '../../../../../services/git/pr-branding.js';
|
|
4
|
+
export { PR_BRANDING, COMMIT_CO_AUTHOR, applyPrBranding, applyCommitBranding, } from '../../../../../services/git/pr-branding.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-pr.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/git-pr.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AAC5G,OAAO,KAAK,EACV,cAAc,EAGd,WAAW,EACX,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,wEAAwE,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D,qBACa,YAAa,YAAW,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,YAAY;IAErE,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBjD,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgF9C,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpD,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAYvE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAuClE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAE,aAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;YA6BjF,eAAe;IASvB,gBAAgB,CACpB,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,SAAS,UAAQ,GAChB,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"git-pr.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/git-pr.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AAC5G,OAAO,KAAK,EACV,cAAc,EAGd,WAAW,EACX,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,wEAAwE,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC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AAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAe9C"}
|
|
@@ -22,7 +22,7 @@ import { readFileSync, writeFileSync, unlinkSync } from 'node:fs';
|
|
|
22
22
|
import { tmpdir } from 'node:os';
|
|
23
23
|
import { join } from 'node:path';
|
|
24
24
|
import yaml from 'js-yaml';
|
|
25
|
-
import { applyPrBranding } from './pr-branding.js';
|
|
25
|
+
import { applyPrBranding, applyCommitBranding } from './pr-branding.js';
|
|
26
26
|
let GitPrService = class GitPrService {
|
|
27
27
|
execFile;
|
|
28
28
|
constructor(execFile) {
|
|
@@ -298,9 +298,10 @@ let GitPrService = class GitPrService {
|
|
|
298
298
|
if (status.trim().length > 0) {
|
|
299
299
|
// Write commit message to a temp file to avoid shell splitting on Windows
|
|
300
300
|
// (DI-injected execFile uses shell: true on Windows, which splits on spaces)
|
|
301
|
+
const brandedMessage = applyCommitBranding(commitMessage);
|
|
301
302
|
const msgFile = join(tmpdir(), `shep-merge-msg-${Date.now()}.txt`);
|
|
302
303
|
try {
|
|
303
|
-
writeFileSync(msgFile,
|
|
304
|
+
writeFileSync(msgFile, brandedMessage, 'utf8');
|
|
304
305
|
await this.execFile('git', ['commit', '--file', msgFile], { cwd });
|
|
305
306
|
}
|
|
306
307
|
finally {
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* PR Branding
|
|
2
|
+
* PR & Commit Branding
|
|
3
3
|
*
|
|
4
|
-
* Centralizes the branding
|
|
5
|
-
* created by Shep. Ensures consistent attribution across all
|
|
6
|
-
* PR creation paths (agent-driven, fork-and-PR, etc.)
|
|
4
|
+
* Centralizes the branding used in pull request bodies and commit
|
|
5
|
+
* trailers created by Shep. Ensures consistent attribution across all
|
|
6
|
+
* PR creation paths (agent-driven, fork-and-PR, etc.) and all commit
|
|
7
|
+
* paths (agent commits, squash-merge commits, CI-fix commits).
|
|
7
8
|
*/
|
|
8
9
|
/** The branding line to append to PR bodies. */
|
|
9
10
|
export declare const PR_BRANDING = "[\uD83D\uDC11](https://github.com/shep-ai/shep) Built with [Shep.bot](https://shep.bot)";
|
|
11
|
+
/** The co-author trailer to include in commit messages. */
|
|
12
|
+
export declare const COMMIT_CO_AUTHOR = "Co-Authored-By: Shep Bot <shep-agent@users.noreply.github.com>";
|
|
10
13
|
/**
|
|
11
14
|
* Ensure a PR body carries the correct Shep branding.
|
|
12
15
|
*
|
|
13
16
|
* 1. Strips any unwanted AI-tool attribution footers
|
|
14
|
-
* 2.
|
|
17
|
+
* 2. Strips any unwanted Co-Authored-By trailers
|
|
18
|
+
* 3. Appends the Shep branding line if not already present
|
|
15
19
|
*/
|
|
16
20
|
export declare function applyPrBranding(body: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Ensure a commit message carries the correct Shep co-author trailer.
|
|
23
|
+
*
|
|
24
|
+
* 1. Strips any unwanted Co-Authored-By trailers (e.g. Claude)
|
|
25
|
+
* 2. Appends the Shep Bot co-author trailer if not already present
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyCommitBranding(message: string): string;
|
|
17
28
|
//# sourceMappingURL=pr-branding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/pr-branding.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/pr-branding.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,gDAAgD;AAChD,eAAO,MAAM,WAAW,4FACyD,CAAC;AAElF,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,mEAAmE,CAAC;AAkBjG;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBpD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAa3D"}
|
|
@@ -1,26 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* PR Branding
|
|
2
|
+
* PR & Commit Branding
|
|
3
3
|
*
|
|
4
|
-
* Centralizes the branding
|
|
5
|
-
* created by Shep. Ensures consistent attribution across all
|
|
6
|
-
* PR creation paths (agent-driven, fork-and-PR, etc.)
|
|
4
|
+
* Centralizes the branding used in pull request bodies and commit
|
|
5
|
+
* trailers created by Shep. Ensures consistent attribution across all
|
|
6
|
+
* PR creation paths (agent-driven, fork-and-PR, etc.) and all commit
|
|
7
|
+
* paths (agent commits, squash-merge commits, CI-fix commits).
|
|
7
8
|
*/
|
|
8
9
|
/** The branding line to append to PR bodies. */
|
|
9
10
|
export const PR_BRANDING = '[🐑](https://github.com/shep-ai/shep) Built with [Shep.bot](https://shep.bot)';
|
|
11
|
+
/** The co-author trailer to include in commit messages. */
|
|
12
|
+
export const COMMIT_CO_AUTHOR = 'Co-Authored-By: Shep Bot <shep-agent@users.noreply.github.com>';
|
|
10
13
|
/**
|
|
11
14
|
* Pattern matching common AI-tool attribution footers that should be
|
|
12
15
|
* replaced (e.g. "Generated with Claude Code", "Co-Authored-By: Claude").
|
|
13
16
|
*/
|
|
14
|
-
const
|
|
17
|
+
const UNWANTED_PR_BRANDING_PATTERN = /\n*(?:🤖\s*)?Generated with \[Claude Code\]\(https:\/\/claude\.com\/claude-code\)\s*/gi;
|
|
18
|
+
/**
|
|
19
|
+
* Pattern matching unwanted Co-Authored-By trailers from AI tools.
|
|
20
|
+
* Matches lines like:
|
|
21
|
+
* Co-Authored-By: Claude <noreply@anthropic.com>
|
|
22
|
+
* Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
23
|
+
* Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
24
|
+
*/
|
|
25
|
+
const UNWANTED_CO_AUTHOR_PATTERN = /\n*Co-Authored-By:\s*Claude[^\n]*<noreply@anthropic\.com>\s*/gi;
|
|
15
26
|
/**
|
|
16
27
|
* Ensure a PR body carries the correct Shep branding.
|
|
17
28
|
*
|
|
18
29
|
* 1. Strips any unwanted AI-tool attribution footers
|
|
19
|
-
* 2.
|
|
30
|
+
* 2. Strips any unwanted Co-Authored-By trailers
|
|
31
|
+
* 3. Appends the Shep branding line if not already present
|
|
20
32
|
*/
|
|
21
33
|
export function applyPrBranding(body) {
|
|
22
34
|
// Strip unwanted branding
|
|
23
|
-
let cleaned = body.replace(
|
|
35
|
+
let cleaned = body.replace(UNWANTED_PR_BRANDING_PATTERN, '');
|
|
36
|
+
// Strip unwanted co-author trailers
|
|
37
|
+
cleaned = cleaned.replace(UNWANTED_CO_AUTHOR_PATTERN, '');
|
|
24
38
|
// Trim trailing whitespace/newlines before appending branding
|
|
25
39
|
cleaned = cleaned.trimEnd();
|
|
26
40
|
// Only append if not already present
|
|
@@ -29,3 +43,20 @@ export function applyPrBranding(body) {
|
|
|
29
43
|
}
|
|
30
44
|
return cleaned;
|
|
31
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Ensure a commit message carries the correct Shep co-author trailer.
|
|
48
|
+
*
|
|
49
|
+
* 1. Strips any unwanted Co-Authored-By trailers (e.g. Claude)
|
|
50
|
+
* 2. Appends the Shep Bot co-author trailer if not already present
|
|
51
|
+
*/
|
|
52
|
+
export function applyCommitBranding(message) {
|
|
53
|
+
// Strip unwanted co-author trailers
|
|
54
|
+
let cleaned = message.replace(UNWANTED_CO_AUTHOR_PATTERN, '');
|
|
55
|
+
// Trim trailing whitespace/newlines
|
|
56
|
+
cleaned = cleaned.trimEnd();
|
|
57
|
+
// Only append if not already present
|
|
58
|
+
if (!cleaned.includes(COMMIT_CO_AUTHOR)) {
|
|
59
|
+
cleaned = `${cleaned}\n\n${COMMIT_CO_AUTHOR}`;
|
|
60
|
+
}
|
|
61
|
+
return cleaned;
|
|
62
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_serve.command.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/_serve.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,OAAO,EAAwB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"_serve.command.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/cli/commands/_serve.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,OAAO,EAAwB,MAAM,WAAW,CAAC;AA6B1D;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAgE5C"}
|
|
@@ -68,11 +68,6 @@ export function createServeCommand() {
|
|
|
68
68
|
// Start auto-archive watcher
|
|
69
69
|
initializeAutoArchiveWatcher(featureRepo);
|
|
70
70
|
getAutoArchiveWatcher().start();
|
|
71
|
-
// Start messaging service if configured
|
|
72
|
-
const messagingService = container.resolve('IMessagingService');
|
|
73
|
-
if (messagingService.isConfigured()) {
|
|
74
|
-
await messagingService.start();
|
|
75
|
-
}
|
|
76
71
|
// Graceful shutdown handler — identical pattern to ui.command.ts
|
|
77
72
|
let isShuttingDown = false;
|
|
78
73
|
const shutdown = async () => {
|
|
@@ -84,7 +79,6 @@ export function createServeCommand() {
|
|
|
84
79
|
forceExit.unref();
|
|
85
80
|
getNotificationWatcher().stop();
|
|
86
81
|
getAutoArchiveWatcher().stop();
|
|
87
|
-
await messagingService.stop();
|
|
88
82
|
const deploymentService = container.resolve('IDeploymentService');
|
|
89
83
|
deploymentService.stopAll();
|
|
90
84
|
await service.stop();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/settings/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/cli/commands/settings/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAuB/C"}
|
|
@@ -22,7 +22,6 @@ import { createIdeCommand } from './ide.command.js';
|
|
|
22
22
|
import { createWorkflowCommand } from './workflow.command.js';
|
|
23
23
|
import { createModelCommand } from './model.command.js';
|
|
24
24
|
import { createLanguageCommand } from './language.command.js';
|
|
25
|
-
import { createMessagingCommand } from './messaging.command.js';
|
|
26
25
|
import { onboardingWizard } from '../../../tui/wizards/onboarding/onboarding.wizard.js';
|
|
27
26
|
import { messages } from '../../ui/index.js';
|
|
28
27
|
import { getCliI18n } from '../../i18n.js';
|
|
@@ -38,8 +37,7 @@ export function createSettingsCommand() {
|
|
|
38
37
|
.addCommand(createIdeCommand())
|
|
39
38
|
.addCommand(createWorkflowCommand())
|
|
40
39
|
.addCommand(createModelCommand())
|
|
41
|
-
.addCommand(createLanguageCommand())
|
|
42
|
-
.addCommand(createMessagingCommand());
|
|
40
|
+
.addCommand(createLanguageCommand());
|
|
43
41
|
// Default action: launch the full setup wizard when no subcommand is given
|
|
44
42
|
cmd.action(async () => {
|
|
45
43
|
try {
|
package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings-page-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/features/settings/settings-page-client.tsx"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EACV,QAAQ,EAKT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AA8B/E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AA+QD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,kBAAkB,GACnB,EAAE,uBAAuB,2CAw5CzB"}
|