@shepai/cli 1.171.0-pr527.e2ee839 → 1.172.0-pr528.108a424
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/AgentType.yaml +1 -0
- package/apis/json-schema/Settings.yaml +0 -3
- package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts +1 -15
- package/dist/packages/core/src/application/ports/output/agents/agent-executor.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts +1 -3
- package/dist/packages/core/src/application/ports/output/agents/feature-agent-process.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts +0 -38
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.js +0 -9
- package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts +0 -11
- package/dist/packages/core/src/application/ports/output/services/spec-initializer.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/approve-agent-run.use-case.js +0 -2
- package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/agents/reject-agent-run.use-case.js +0 -2
- package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/check-and-unblock-features.use-case.js +0 -2
- 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 +0 -1
- 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 +0 -2
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.d.ts.map +1 -1
- package/dist/packages/core/src/application/use-cases/features/start-feature.use-case.js +0 -2
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.d.ts.map +1 -1
- package/dist/packages/core/src/domain/factories/settings-defaults.factory.js +1 -5
- package/dist/packages/core/src/domain/generated/output.d.ts +1 -259
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +1 -43
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +3 -57
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/settings.mapper.d.ts +0 -3
- 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 -14
- 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 -12
- package/dist/packages/core/src/infrastructure/services/agents/common/agent-executor-factory.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/agent-executor-factory.service.js +23 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/agent-validator.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/agent-validator.service.js +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts +0 -2
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-executor.service.js +0 -12
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/copilot-cli-executor.service.d.ts +63 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/copilot-cli-executor.service.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/copilot-cli-executor.service.js +494 -0
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts +0 -10
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts +0 -34
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-graph.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts +1 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-process.service.js +1 -7
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts +1 -3
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/feature-agent-worker.js +1 -32
- 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 +0 -19
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts +1 -4
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/state.js +0 -10
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts +1 -10
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.js +1 -101
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts +0 -1
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/spec/spec-initializer.service.js +0 -61
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/codex.json +32 -0
- package/dist/packages/core/src/infrastructure/services/tool-installer/tools/copilot.json +32 -0
- package/dist/src/presentation/cli/index.js +0 -2
- package/dist/src/presentation/tui/prompts/agent-select.prompt.d.ts.map +1 -1
- package/dist/src/presentation/tui/prompts/agent-select.prompt.js +5 -0
- package/dist/src/presentation/web/app/actions/check-agent-auth.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/check-agent-auth.js +18 -0
- package/dist/src/presentation/web/app/actions/get-all-agent-models.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/get-all-agent-models.js +4 -2
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts +1 -3
- package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
- package/dist/src/presentation/web/app/build-graph-nodes.js +0 -2
- package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.d.ts +1 -1
- package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.js +2 -0
- package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.stories.js +1 -0
- package/dist/src/presentation/web/components/common/feature-node/feature-node-state-config.d.ts +1 -3
- 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.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/feature-node/feature-node.js +1 -2
- package/dist/src/presentation/web/components/common/repo-group/repo-group.js +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts +1 -3
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.d.ts.map +1 -1
- package/dist/src/presentation/web/components/common/repository-node/repository-drawer.js +2 -3
- package/dist/src/presentation/web/components/features/settings/AgentModelPicker/AgentModelPicker.stories.d.ts +1 -0
- package/dist/src/presentation/web/components/features/settings/AgentModelPicker/AgentModelPicker.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/AgentModelPicker/AgentModelPicker.stories.js +7 -0
- package/dist/src/presentation/web/components/features/settings/agent-settings-section.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/agent-settings-section.js +11 -3
- package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.d.ts +1 -0
- package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.d.ts.map +1 -1
- package/dist/src/presentation/web/components/features/settings/agent-settings-section.stories.js +8 -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 +3 -16
- package/dist/translations/ar/cli.json +0 -20
- package/dist/translations/ar/tui.json +4 -0
- package/dist/translations/ar/web.json +1 -43
- package/dist/translations/de/cli.json +0 -20
- package/dist/translations/de/tui.json +4 -0
- package/dist/translations/de/web.json +1 -43
- package/dist/translations/en/cli.json +0 -20
- package/dist/translations/en/tui.json +4 -0
- package/dist/translations/en/web.json +1 -43
- package/dist/translations/es/cli.json +0 -20
- package/dist/translations/es/tui.json +4 -0
- package/dist/translations/es/web.json +1 -43
- package/dist/translations/fr/cli.json +0 -20
- package/dist/translations/fr/tui.json +4 -0
- package/dist/translations/fr/web.json +1 -43
- package/dist/translations/he/cli.json +0 -20
- package/dist/translations/he/tui.json +4 -0
- package/dist/translations/he/web.json +1 -43
- package/dist/translations/pt/cli.json +0 -20
- package/dist/translations/pt/tui.json +4 -0
- package/dist/translations/pt/web.json +1 -43
- package/dist/translations/ru/cli.json +0 -20
- package/dist/translations/ru/tui.json +4 -0
- package/dist/translations/ru/web.json +1 -43
- 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/adopt/page/server-reference-manifest.json +29 -29
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +1 -2
- 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 +27 -27
- package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +1 -2
- 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 +30 -30
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -2
- 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 +38 -38
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -2
- 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 +38 -38
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -2
- 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 +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +1 -2
- 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 +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -2
- 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 +27 -27
- package/web/.next/server/app/(dashboard)/chat/page.js +1 -2
- 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 +30 -30
- package/web/.next/server/app/(dashboard)/create/page.js +1 -2
- 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 +38 -38
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -2
- 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 +38 -38
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -2
- 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 +27 -27
- package/web/.next/server/app/(dashboard)/page.js +1 -2
- 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 +28 -28
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +1 -2
- 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 +28 -28
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -2
- 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 +6 -6
- 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/api/sessions/route.js.nft.json +1 -1
- package/web/.next/server/app/api/sessions-batch/route.js.nft.json +1 -1
- package/web/.next/server/app/features/page/server-reference-manifest.json +6 -6
- 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 +18 -33
- 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 +13 -13
- package/web/.next/server/app/skills/page.js +1 -2
- 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 +11 -11
- package/web/.next/server/app/tools/page.js +1 -2
- 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 +6 -6
- 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/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.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/[root-of-the-server]__1cd4327c._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4fb81977._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__4fb81977._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7dcd0917._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__7dcd0917._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__92ffd5ee._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__92ffd5ee._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b020c17d._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b020c17d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba7f5873._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__ba7f5873._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c5e09f6f._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c5e09f6f._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fa525872._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fa525872._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_02e01240._.js +4 -0
- package/web/.next/server/chunks/ssr/_02e01240._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
- package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
- package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_18886033._.js +4 -0
- package/web/.next/server/chunks/ssr/_18886033._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_1e08a336._.js +1 -1
- package/web/.next/server/chunks/ssr/_22e00a14._.js +4 -0
- package/web/.next/server/chunks/ssr/_22e00a14._.js.map +1 -0
- package/web/.next/server/chunks/ssr/{_ee42a212._.js → _324beb75._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_ee42a212._.js.map → _324beb75._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_43ba79e7._.js +3 -0
- package/web/.next/server/chunks/ssr/_43ba79e7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_45496654._.js +1 -1
- package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_4cbb7f95._.js +1 -1
- package/web/.next/server/chunks/ssr/_4cbb7f95._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_5119a3df._.js +1 -1
- package/web/.next/server/chunks/ssr/_5119a3df._.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/{_767748d2._.js → _5e3cb0a7._.js} +2 -2
- package/web/.next/server/chunks/ssr/_5e3cb0a7._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a5a5901d._.js +4 -0
- package/web/.next/server/chunks/ssr/_a5a5901d._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_a963dd3c._.js +3 -0
- package/web/.next/server/chunks/ssr/_a963dd3c._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_ad09f271._.js +4 -0
- package/web/.next/server/chunks/ssr/_ad09f271._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_c3f595c6._.js +4 -0
- package/web/.next/server/chunks/ssr/_c3f595c6._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_c9d3f255._.js +3 -0
- package/web/.next/server/chunks/ssr/_c9d3f255._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_df737cce._.js +1 -1
- package/web/.next/server/chunks/ssr/_e3f14907._.js +9 -0
- package/web/.next/server/chunks/ssr/_e3f14907._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_ea9e1556._.js +4 -0
- package/web/.next/server/chunks/ssr/_ea9e1556._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f1ba9be6._.js +6 -0
- package/web/.next/server/chunks/ssr/_f1ba9be6._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f33cd07e._.js +6 -0
- package/web/.next/server/chunks/ssr/_f33cd07e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/_f8b45233._.js +4 -0
- package/web/.next/server/chunks/ssr/_f8b45233._.js.map +1 -0
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
- package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.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_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_db9fa0c2._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_db9fa0c2._.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 +59 -74
- package/web/.next/static/chunks/01d34ca202152b33.js +1 -0
- package/web/.next/static/chunks/120279c82aa8aa25.js +1 -0
- package/web/.next/static/chunks/2e32d8578aace93a.js +1 -0
- package/web/.next/static/chunks/{16fa4d3877c28fe2.js → 41f5bb33ac4f3c7d.js} +1 -1
- package/web/.next/static/chunks/{b9c62932ed987239.js → 43cf78a6c49eb7c1.js} +2 -2
- package/web/.next/static/chunks/4559a403ee40dd19.js +7 -0
- package/web/.next/static/chunks/{a8edb9423086e83f.js → 50b760a2c7ad03d3.js} +1 -1
- package/web/.next/static/chunks/{d1c3e0ee8e788c87.js → 6e10cf4513c1f54f.js} +1 -1
- package/web/.next/static/chunks/{39f6ad3f9005703a.js → 8a486366e2878cbc.js} +1 -1
- package/web/.next/static/chunks/8b0a9cb5109fe899.js +1 -0
- package/web/.next/static/chunks/{9374d251360e808b.js → 947678ada7948442.js} +1 -1
- package/web/.next/static/chunks/{7e05e7e25220ee9a.js → b1b0c8ff51c0c2fc.js} +3 -3
- package/web/.next/static/chunks/b65e555419a0c664.js +1 -0
- package/web/.next/static/chunks/{89dd90bf14488ec0.js → bd55a833b24ee17b.js} +1 -1
- package/web/.next/static/chunks/{e8c3c12f92e9a521.js → c91571264851a71e.js} +3 -3
- package/web/.next/static/chunks/cc832e47f53eb2c3.js +1 -0
- package/web/.next/static/chunks/{fb8dadb64c0ffc6b.js → d5366257d6b9f855.js} +1 -1
- package/web/.next/static/chunks/da504d7f1c40bce1.js +1 -0
- package/web/.next/static/chunks/dcf8bb4389557a76.css +1 -0
- package/web/.next/static/chunks/f8f647baf2e91a9d.js +1 -0
- package/web/public/icons/agents/copilot.svg +12 -0
- package/apis/json-schema/ActionDispositionEntry.yaml +0 -14
- package/apis/json-schema/DependencyFinding.yaml +0 -28
- package/apis/json-schema/DependencyRiskType.yaml +0 -11
- package/apis/json-schema/DependencyRules.yaml +0 -38
- package/apis/json-schema/EffectivePolicySnapshot.yaml +0 -24
- package/apis/json-schema/ReleaseIntegrityCheck.yaml +0 -22
- package/apis/json-schema/ReleaseIntegrityCheckType.yaml +0 -9
- package/apis/json-schema/ReleaseIntegrityResult.yaml +0 -16
- package/apis/json-schema/ReleaseRules.yaml +0 -21
- package/apis/json-schema/SecurityActionCategory.yaml +0 -10
- package/apis/json-schema/SecurityActionDisposition.yaml +0 -8
- package/apis/json-schema/SecurityConfig.yaml +0 -17
- package/apis/json-schema/SecurityEvent.yaml +0 -36
- package/apis/json-schema/SecurityMode.yaml +0 -8
- package/apis/json-schema/SecurityPolicy.yaml +0 -24
- package/apis/json-schema/SecuritySeverity.yaml +0 -9
- package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts +0 -76
- package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/repositories/security-event.repository.interface.js +0 -11
- package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts +0 -77
- package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/security-policy-service.interface.js +0 -13
- package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts +0 -71
- package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/enforce-security.use-case.js +0 -215
- package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts +0 -24
- package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/evaluate-security-policy.use-case.js +0 -56
- package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts +0 -36
- package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/get-security-state.use-case.js +0 -76
- package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts +0 -14
- package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/security/record-security-event.use-case.js +0 -46
- package/dist/packages/core/src/domain/errors/security-violation.error.d.ts +0 -15
- package/dist/packages/core/src/domain/errors/security-violation.error.d.ts.map +0 -1
- package/dist/packages/core/src/domain/errors/security-violation.error.js +0 -20
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts +0 -44
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/security-event.mapper.js +0 -55
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts +0 -18
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/053-add-security-settings-columns.js +0 -31
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts +0 -29
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/054-create-security-events-table.js +0 -53
- package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts +0 -24
- package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/repositories/sqlite-security-event.repository.js +0 -96
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts +0 -22
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/security-constraint-validator.js +0 -30
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts +0 -45
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/security-pre-check.js +0 -70
- package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts +0 -53
- package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/dependency-risk-evaluator.js +0 -241
- package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts +0 -44
- package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/release-integrity-evaluator.js +0 -194
- package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts +0 -28
- package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/security-policy-file-reader.js +0 -50
- package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts +0 -26
- package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/security-policy-validator.js +0 -147
- package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts +0 -44
- package/dist/packages/core/src/infrastructure/services/security/security-policy.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/security/security-policy.service.js +0 -174
- package/dist/src/presentation/cli/commands/security.command.d.ts +0 -16
- package/dist/src/presentation/cli/commands/security.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/security.command.js +0 -118
- package/dist/src/presentation/web/app/actions/security.d.ts +0 -28
- package/dist/src/presentation/web/app/actions/security.d.ts.map +0 -1
- package/dist/src/presentation/web/app/actions/security.js +0 -59
- package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts +0 -6
- package/dist/src/presentation/web/components/common/repository-node/security-panel.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/repository-node/security-panel.js +0 -29
- package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts +0 -10
- package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/repository-node/security-panel.stories.js +0 -53
- package/dist/src/presentation/web/components/common/security-badge.d.ts +0 -7
- package/dist/src/presentation/web/components/common/security-badge.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/security-badge.js +0 -30
- package/dist/src/presentation/web/components/common/security-badge.stories.d.ts +0 -12
- package/dist/src/presentation/web/components/common/security-badge.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/common/security-badge.stories.js +0 -20
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts +0 -6
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.js +0 -60
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts +0 -14
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.d.ts.map +0 -1
- package/dist/src/presentation/web/components/features/settings/supply-chain-security-settings-section.stories.js +0 -116
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js +0 -3
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js.map +0 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js +0 -3
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js.map +0 -1
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js +0 -3
- package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__51ec77a8._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__51ec77a8._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__66047a1b._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__66047a1b._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9a9cb046._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__9a9cb046._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a2d6c0ac._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a2d6c0ac._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a932cd3a._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a932cd3a._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aa72e794._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aa72e794._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_02580450._.js +0 -3
- package/web/.next/server/chunks/ssr/_02580450._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_1594e369._.js +0 -9
- package/web/.next/server/chunks/ssr/_1594e369._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_21d37090._.js +0 -3
- package/web/.next/server/chunks/ssr/_21d37090._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_767748d2._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_f8c55130._.js +0 -4
- package/web/.next/server/chunks/ssr/_f8c55130._.js.map +0 -1
- package/web/.next/server/chunks/ssr/_ff04802c._.js +0 -3
- package/web/.next/server/chunks/ssr/_ff04802c._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js +0 -5
- package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js.map +0 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js +0 -3
- package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js.map +0 -1
- package/web/.next/static/chunks/051873309d87fb45.css +0 -1
- package/web/.next/static/chunks/23d80bb760e7dc4c.js +0 -1
- package/web/.next/static/chunks/30a0ba9015f94405.js +0 -7
- package/web/.next/static/chunks/3aba9d2242420cb5.js +0 -1
- package/web/.next/static/chunks/7a6f56f37aaa17ea.js +0 -1
- package/web/.next/static/chunks/9423dc2310202fda.js +0 -1
- package/web/.next/static/chunks/a794cf7a1a5648dd.js +0 -1
- package/web/.next/static/chunks/ae81796726a9bba3.js +0 -1
- package/web/.next/static/chunks/f3d5e0ae13def35a.js +0 -1
- package/web/.next/static/chunks/fd232b88b5b50b2e.js +0 -1
- /package/web/.next/static/{t6SUt71jyk_PYf152Imog → S_u3qor6FkwObhA1F2xEj}/_buildManifest.js +0 -0
- /package/web/.next/static/{t6SUt71jyk_PYf152Imog → S_u3qor6FkwObhA1F2xEj}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{t6SUt71jyk_PYf152Imog → S_u3qor6FkwObhA1F2xEj}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copilot CLI Executor Service
|
|
3
|
+
*
|
|
4
|
+
* Infrastructure implementation of IAgentExecutor for the GitHub Copilot CLI agent.
|
|
5
|
+
* Executes prompts via the `copilot` CLI subprocess with JSONL output format.
|
|
6
|
+
*
|
|
7
|
+
* Key differences from other executors:
|
|
8
|
+
* - Prompt is delivered via the -p flag (not stdin piping)
|
|
9
|
+
* - Large prompts use temp-file indirection to avoid Windows ENAMETOOLONG spawn failures
|
|
10
|
+
* - Auth is GitHub OAuth only — no API key injection is possible or supported
|
|
11
|
+
* - --resume=<sessionId> format (with equals sign) for session resume
|
|
12
|
+
*
|
|
13
|
+
* Uses constructor dependency injection for the spawn function
|
|
14
|
+
* to enable testability without mocking node:child_process directly.
|
|
15
|
+
*/
|
|
16
|
+
import { getCurrentPhase, getLogPrefix } from '../../feature-agent/log-context.js';
|
|
17
|
+
import { randomUUID } from 'node:crypto';
|
|
18
|
+
import { unlink, writeFile } from 'node:fs/promises';
|
|
19
|
+
import { join } from 'node:path';
|
|
20
|
+
import { tmpdir } from 'node:os';
|
|
21
|
+
/** Features supported by Copilot CLI */
|
|
22
|
+
const SUPPORTED_FEATURES = new Set(['session-resume', 'streaming']);
|
|
23
|
+
/**
|
|
24
|
+
* Base flags always passed to the copilot CLI for non-interactive headless operation.
|
|
25
|
+
* - --allow-all: bypass tool permission prompts (autonomous execution equivalent of --dangerously-skip-permissions)
|
|
26
|
+
* - --output-format json: structured JSONL event stream on stdout
|
|
27
|
+
* - -s: silent mode (suppress CLI progress UI on stderr, keeping it clean for error detection)
|
|
28
|
+
* - --no-custom-instructions: disable repo-level custom instructions for predictable behavior
|
|
29
|
+
* - --no-ask-user: never prompt for user input during execution
|
|
30
|
+
*/
|
|
31
|
+
const BASE_FLAGS = [
|
|
32
|
+
'--allow-all',
|
|
33
|
+
'--output-format',
|
|
34
|
+
'json',
|
|
35
|
+
'-s',
|
|
36
|
+
'--no-custom-instructions',
|
|
37
|
+
'--no-ask-user',
|
|
38
|
+
];
|
|
39
|
+
/**
|
|
40
|
+
* Conservative threshold for prompt characters passed through CLI args.
|
|
41
|
+
* Above this, we use file indirection to avoid process spawn arg-length failures.
|
|
42
|
+
*/
|
|
43
|
+
const MAX_PROMPT_ARG_CHARS = 12_000;
|
|
44
|
+
/** Prefix for temporary prompt files used by large prompt indirection mode. */
|
|
45
|
+
const PROMPT_FILE_PREFIX = 'shep-copilot-prompt-';
|
|
46
|
+
/**
|
|
47
|
+
* Legacy model aliases that appeared in older settings payloads.
|
|
48
|
+
* Copilot CLI expects dotted model versions (e.g. 4.5), not hyphenated (4-5).
|
|
49
|
+
*/
|
|
50
|
+
const LEGACY_MODEL_ALIASES = {
|
|
51
|
+
'claude-sonnet-4-5': 'claude-sonnet-4.5',
|
|
52
|
+
'claude-sonnet-4-6': 'claude-sonnet-4.6',
|
|
53
|
+
'claude-opus-4-5': 'claude-opus-4.5',
|
|
54
|
+
'claude-opus-4-6': 'claude-opus-4.6',
|
|
55
|
+
'claude-haiku-4-5': 'claude-haiku-4.5',
|
|
56
|
+
'gpt-4-1': 'gpt-4.1',
|
|
57
|
+
'gpt-5-2': 'gpt-5.2',
|
|
58
|
+
'gpt-5-2-codex': 'gpt-5.2-codex',
|
|
59
|
+
'gpt-5-3-codex': 'gpt-5.3-codex',
|
|
60
|
+
'gpt-5-4': 'gpt-5.4',
|
|
61
|
+
'gpt-5-4-mini': 'gpt-5.4-mini',
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Executor service for GitHub Copilot CLI agent.
|
|
65
|
+
* Uses subprocess spawning to interact with the `copilot` CLI.
|
|
66
|
+
*/
|
|
67
|
+
export class CopilotCliExecutorService {
|
|
68
|
+
spawn;
|
|
69
|
+
authConfig;
|
|
70
|
+
agentType = 'copilot-cli';
|
|
71
|
+
/** When true, suppresses debug logging (set per-call via options.silent) */
|
|
72
|
+
silent = false;
|
|
73
|
+
constructor(spawn, authConfig) {
|
|
74
|
+
this.spawn = spawn;
|
|
75
|
+
this.authConfig = authConfig;
|
|
76
|
+
}
|
|
77
|
+
/** Debug logging — writes to stdout so it appears in the worker log file */
|
|
78
|
+
log(message) {
|
|
79
|
+
if (this.silent)
|
|
80
|
+
return;
|
|
81
|
+
const ts = new Date().toISOString();
|
|
82
|
+
process.stdout.write(`[${ts}] ${getCurrentPhase()}${getLogPrefix()}${message}\n`);
|
|
83
|
+
}
|
|
84
|
+
supportsFeature(feature) {
|
|
85
|
+
return SUPPORTED_FEATURES.has(feature);
|
|
86
|
+
}
|
|
87
|
+
async execute(prompt, options) {
|
|
88
|
+
this.silent = options?.silent ?? false;
|
|
89
|
+
// Copilot CLI is OAuth-only. Surface a clear error if token auth is attempted.
|
|
90
|
+
if (this.authConfig?.authMethod === 'token') {
|
|
91
|
+
throw new Error('GitHub Copilot CLI does not support token-based authentication. ' +
|
|
92
|
+
'Auth is managed via GitHub OAuth. Run: copilot auth login');
|
|
93
|
+
}
|
|
94
|
+
let preparedPrompt = this.prepareDirectPrompt(prompt);
|
|
95
|
+
if (this.shouldUsePromptFile(prompt)) {
|
|
96
|
+
preparedPrompt = await this.preparePromptFileIndirection(prompt);
|
|
97
|
+
}
|
|
98
|
+
const args = this.buildArgs(preparedPrompt.promptArg, options);
|
|
99
|
+
const spawnOpts = this.buildSpawnOptions(options);
|
|
100
|
+
this.log(`Spawning: copilot ${args.map((a) => (a.length > 80 ? `${a.slice(0, 77)}...` : a)).join(' ')}`);
|
|
101
|
+
this.log(`Spawn cwd: ${spawnOpts.cwd ?? '(inherited)'}`);
|
|
102
|
+
let proc;
|
|
103
|
+
try {
|
|
104
|
+
proc = this.spawn('copilot', args, spawnOpts);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
await preparedPrompt.cleanup();
|
|
108
|
+
throw error;
|
|
109
|
+
}
|
|
110
|
+
this.log(`Subprocess PID: ${proc.pid ?? 'undefined (spawn may have failed)'}`);
|
|
111
|
+
this.log(`Prompt length: ${prompt.length} chars (${preparedPrompt.usedFileIndirection ? 'delivered via temp prompt file indirection' : 'delivered via -p flag'})`);
|
|
112
|
+
const executionPromise = new Promise((resolve, reject) => {
|
|
113
|
+
let lineBuffer = '';
|
|
114
|
+
let stderr = '';
|
|
115
|
+
let timedOut = false;
|
|
116
|
+
let timeoutId;
|
|
117
|
+
// State accumulated from JSONL events
|
|
118
|
+
let resultText = '';
|
|
119
|
+
let sessionId;
|
|
120
|
+
let usage;
|
|
121
|
+
if (options?.timeout) {
|
|
122
|
+
timeoutId = setTimeout(() => {
|
|
123
|
+
timedOut = true;
|
|
124
|
+
proc.kill();
|
|
125
|
+
}, options.timeout);
|
|
126
|
+
}
|
|
127
|
+
const processLine = (line) => {
|
|
128
|
+
try {
|
|
129
|
+
const parsed = JSON.parse(line);
|
|
130
|
+
const type = parsed.type;
|
|
131
|
+
if (type === 'assistant.message' && parsed.content) {
|
|
132
|
+
resultText += parsed.content;
|
|
133
|
+
}
|
|
134
|
+
else if (type === 'result') {
|
|
135
|
+
if (parsed.sessionId)
|
|
136
|
+
sessionId = parsed.sessionId;
|
|
137
|
+
if (parsed.usage)
|
|
138
|
+
usage = this.extractUsage(parsed.usage);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch {
|
|
142
|
+
// Malformed JSON line — skip gracefully
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
proc.stdout?.on('data', (chunk) => {
|
|
146
|
+
lineBuffer += chunk.toString();
|
|
147
|
+
const lines = lineBuffer.split('\n');
|
|
148
|
+
lineBuffer = lines.pop() ?? '';
|
|
149
|
+
for (const line of lines) {
|
|
150
|
+
const trimmed = line.trim();
|
|
151
|
+
if (trimmed)
|
|
152
|
+
processLine(trimmed);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
proc.stderr?.on('data', (chunk) => {
|
|
156
|
+
const data = chunk.toString();
|
|
157
|
+
stderr += data;
|
|
158
|
+
this.log(`stderr: ${data.trimEnd()}`);
|
|
159
|
+
});
|
|
160
|
+
proc.on('error', (error) => {
|
|
161
|
+
this.log(`Process error event: ${error.message}`);
|
|
162
|
+
if (timeoutId)
|
|
163
|
+
clearTimeout(timeoutId);
|
|
164
|
+
if (error.code === 'ENOENT') {
|
|
165
|
+
reject(new Error('GitHub Copilot CLI ("copilot") not found. ' +
|
|
166
|
+
'Install via: npm install -g @githubnext/github-copilot-cli, ' +
|
|
167
|
+
'then authenticate with: copilot auth login'));
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
reject(error);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
proc.on('close', (code) => {
|
|
174
|
+
// Flush remaining line buffer
|
|
175
|
+
if (lineBuffer.trim())
|
|
176
|
+
processLine(lineBuffer.trim());
|
|
177
|
+
this.log(`Process closed with code ${code}, result=${resultText.length} chars`);
|
|
178
|
+
if (timeoutId)
|
|
179
|
+
clearTimeout(timeoutId);
|
|
180
|
+
if (timedOut) {
|
|
181
|
+
reject(new Error('Agent execution timed out'));
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (code !== 0 && code !== null) {
|
|
185
|
+
// Check for auth-specific error patterns to provide actionable guidance
|
|
186
|
+
const authError = this.detectAuthError(stderr);
|
|
187
|
+
if (authError) {
|
|
188
|
+
reject(new Error(authError));
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const message = stderr.trim()
|
|
192
|
+
? `Process exited with code ${code}: ${stderr.trim()}`
|
|
193
|
+
: `Process exited with code ${code}`;
|
|
194
|
+
reject(new Error(message));
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const result = { result: resultText };
|
|
198
|
+
if (sessionId)
|
|
199
|
+
result.sessionId = sessionId;
|
|
200
|
+
if (usage)
|
|
201
|
+
result.usage = usage;
|
|
202
|
+
resolve(result);
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
return executionPromise.finally(async () => {
|
|
206
|
+
await preparedPrompt.cleanup();
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
async *executeStream(prompt, options) {
|
|
210
|
+
this.silent = options?.silent ?? false;
|
|
211
|
+
// Copilot CLI is OAuth-only. Surface a clear error if token auth is attempted.
|
|
212
|
+
if (this.authConfig?.authMethod === 'token') {
|
|
213
|
+
yield {
|
|
214
|
+
type: 'error',
|
|
215
|
+
content: 'GitHub Copilot CLI does not support token-based authentication. ' +
|
|
216
|
+
'Auth is managed via GitHub OAuth. Run: copilot auth login',
|
|
217
|
+
timestamp: new Date(),
|
|
218
|
+
};
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
let preparedPrompt = this.prepareDirectPrompt(prompt);
|
|
222
|
+
if (this.shouldUsePromptFile(prompt)) {
|
|
223
|
+
preparedPrompt = await this.preparePromptFileIndirection(prompt);
|
|
224
|
+
}
|
|
225
|
+
const args = this.buildArgs(preparedPrompt.promptArg, options);
|
|
226
|
+
const spawnOpts = this.buildSpawnOptions(options);
|
|
227
|
+
let proc;
|
|
228
|
+
try {
|
|
229
|
+
proc = this.spawn('copilot', args, spawnOpts);
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
await preparedPrompt.cleanup();
|
|
233
|
+
yield {
|
|
234
|
+
type: 'error',
|
|
235
|
+
content: error.message,
|
|
236
|
+
timestamp: new Date(),
|
|
237
|
+
};
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
let lineBuffer = '';
|
|
241
|
+
let stderr = '';
|
|
242
|
+
let timedOut = false;
|
|
243
|
+
let timeoutId;
|
|
244
|
+
// Accumulated final response text (from assistant.message events)
|
|
245
|
+
let resultText = '';
|
|
246
|
+
const queue = [];
|
|
247
|
+
let resolveWait = null;
|
|
248
|
+
let spawnError = null;
|
|
249
|
+
function enqueue(event) {
|
|
250
|
+
queue.push(event);
|
|
251
|
+
if (resolveWait) {
|
|
252
|
+
resolveWait();
|
|
253
|
+
resolveWait = null;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function waitForItem() {
|
|
257
|
+
if (queue.length > 0)
|
|
258
|
+
return Promise.resolve();
|
|
259
|
+
return new Promise((r) => {
|
|
260
|
+
resolveWait = r;
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
if (options?.timeout) {
|
|
264
|
+
timeoutId = setTimeout(() => {
|
|
265
|
+
timedOut = true;
|
|
266
|
+
proc.kill();
|
|
267
|
+
enqueue({ type: 'error', content: 'Agent execution timed out', timestamp: new Date() });
|
|
268
|
+
enqueue(null);
|
|
269
|
+
}, options.timeout);
|
|
270
|
+
}
|
|
271
|
+
const processStreamLine = (line) => {
|
|
272
|
+
try {
|
|
273
|
+
const parsed = JSON.parse(line);
|
|
274
|
+
const type = parsed.type;
|
|
275
|
+
if (type === 'assistant.message_delta' && parsed.delta) {
|
|
276
|
+
enqueue({
|
|
277
|
+
type: 'progress',
|
|
278
|
+
content: parsed.delta,
|
|
279
|
+
timestamp: new Date(),
|
|
280
|
+
});
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
if (type === 'assistant.message' && parsed.content) {
|
|
284
|
+
// Accumulate final text; streaming progress already yielded via deltas
|
|
285
|
+
resultText += parsed.content;
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (type === 'result') {
|
|
289
|
+
// Final event — yield result with accumulated text
|
|
290
|
+
enqueue({
|
|
291
|
+
type: 'result',
|
|
292
|
+
content: resultText,
|
|
293
|
+
timestamp: new Date(),
|
|
294
|
+
});
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
if (type === 'error') {
|
|
298
|
+
enqueue({
|
|
299
|
+
type: 'error',
|
|
300
|
+
content: parsed.message ?? parsed.content ?? 'Unknown error',
|
|
301
|
+
timestamp: new Date(),
|
|
302
|
+
});
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
// Unknown event types — skip gracefully
|
|
306
|
+
}
|
|
307
|
+
catch {
|
|
308
|
+
// Non-JSON line — emit as raw progress
|
|
309
|
+
enqueue({ type: 'progress', content: line, timestamp: new Date() });
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
proc.stdout?.on('data', (chunk) => {
|
|
313
|
+
lineBuffer += chunk.toString();
|
|
314
|
+
const lines = lineBuffer.split('\n');
|
|
315
|
+
lineBuffer = lines.pop() ?? '';
|
|
316
|
+
for (const line of lines) {
|
|
317
|
+
const trimmed = line.trim();
|
|
318
|
+
if (!trimmed)
|
|
319
|
+
continue;
|
|
320
|
+
processStreamLine(trimmed);
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
proc.stderr?.on('data', (chunk) => {
|
|
324
|
+
stderr += chunk.toString();
|
|
325
|
+
});
|
|
326
|
+
proc.on('error', (err) => {
|
|
327
|
+
if (timeoutId)
|
|
328
|
+
clearTimeout(timeoutId);
|
|
329
|
+
spawnError = err;
|
|
330
|
+
enqueue(null);
|
|
331
|
+
});
|
|
332
|
+
proc.on('close', (code) => {
|
|
333
|
+
if (timeoutId)
|
|
334
|
+
clearTimeout(timeoutId);
|
|
335
|
+
if (timedOut)
|
|
336
|
+
return; // already handled by timeout callback
|
|
337
|
+
if (lineBuffer.trim()) {
|
|
338
|
+
processStreamLine(lineBuffer.trim());
|
|
339
|
+
}
|
|
340
|
+
if (code !== 0 && code !== null) {
|
|
341
|
+
const authError = this.detectAuthError(stderr);
|
|
342
|
+
const msg = authError ??
|
|
343
|
+
(stderr.trim()
|
|
344
|
+
? `Process exited with code ${code}: ${stderr.trim()}`
|
|
345
|
+
: `Process exited with code ${code}`);
|
|
346
|
+
enqueue({ type: 'error', content: msg, timestamp: new Date() });
|
|
347
|
+
}
|
|
348
|
+
enqueue(null);
|
|
349
|
+
});
|
|
350
|
+
try {
|
|
351
|
+
while (true) {
|
|
352
|
+
await waitForItem();
|
|
353
|
+
const item = queue.shift();
|
|
354
|
+
if (item === null || item === undefined) {
|
|
355
|
+
if (spawnError !== null) {
|
|
356
|
+
yield {
|
|
357
|
+
type: 'error',
|
|
358
|
+
content: spawnError.message,
|
|
359
|
+
timestamp: new Date(),
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
yield item;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
finally {
|
|
368
|
+
await preparedPrompt.cleanup();
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Build CLI args for the copilot invocation.
|
|
373
|
+
* Prompt is passed via -p flag (not stdin).
|
|
374
|
+
*/
|
|
375
|
+
buildArgs(prompt, options) {
|
|
376
|
+
const args = ['-p', prompt, ...BASE_FLAGS];
|
|
377
|
+
if (options?.model) {
|
|
378
|
+
args.push('--model', this.normalizeModel(options.model));
|
|
379
|
+
}
|
|
380
|
+
if (options?.resumeSession)
|
|
381
|
+
args.push(`--resume=${options.resumeSession}`);
|
|
382
|
+
// Unsupported options — log and ignore
|
|
383
|
+
if (options?.allowedTools?.length) {
|
|
384
|
+
this.log('allowedTools option is not supported by Copilot CLI — ignoring');
|
|
385
|
+
}
|
|
386
|
+
if (options?.systemPrompt) {
|
|
387
|
+
this.log('systemPrompt option is not supported by Copilot CLI — ignoring');
|
|
388
|
+
}
|
|
389
|
+
if (options?.outputSchema) {
|
|
390
|
+
this.log('outputSchema option is not supported by Copilot CLI — ignoring');
|
|
391
|
+
}
|
|
392
|
+
return args;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Normalize legacy model names to the canonical Copilot CLI form.
|
|
396
|
+
*/
|
|
397
|
+
normalizeModel(model) {
|
|
398
|
+
const alias = LEGACY_MODEL_ALIASES[model];
|
|
399
|
+
if (alias) {
|
|
400
|
+
this.log(`Normalizing legacy model alias "${model}" to "${alias}"`);
|
|
401
|
+
return alias;
|
|
402
|
+
}
|
|
403
|
+
// Generic fallback for legacy GPT names like gpt-5-2-codex -> gpt-5.2-codex.
|
|
404
|
+
const genericGptAlias = model.replace(/^gpt-(\d+)-(\d+)(.*)$/i, 'gpt-$1.$2$3');
|
|
405
|
+
if (genericGptAlias !== model) {
|
|
406
|
+
this.log(`Normalizing legacy model alias "${model}" to "${genericGptAlias}"`);
|
|
407
|
+
return genericGptAlias;
|
|
408
|
+
}
|
|
409
|
+
return model;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Prepare prompt delivery for Copilot CLI.
|
|
413
|
+
* Uses temporary file indirection for large prompts to avoid ENAMETOOLONG.
|
|
414
|
+
*/
|
|
415
|
+
shouldUsePromptFile(prompt) {
|
|
416
|
+
return prompt.length > MAX_PROMPT_ARG_CHARS;
|
|
417
|
+
}
|
|
418
|
+
prepareDirectPrompt(prompt) {
|
|
419
|
+
return {
|
|
420
|
+
promptArg: prompt,
|
|
421
|
+
usedFileIndirection: false,
|
|
422
|
+
cleanup: async () => {
|
|
423
|
+
// No temp file created for short prompts.
|
|
424
|
+
},
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
async preparePromptFileIndirection(prompt) {
|
|
428
|
+
const promptFilePath = join(tmpdir(), `${PROMPT_FILE_PREFIX}${randomUUID()}.txt`);
|
|
429
|
+
await writeFile(promptFilePath, prompt, 'utf8');
|
|
430
|
+
const promptArg = 'The full original user prompt is stored in this file:\n' +
|
|
431
|
+
`${promptFilePath}\n` +
|
|
432
|
+
'Read that file completely, then execute its instructions exactly as if its content was passed directly as the prompt. ' +
|
|
433
|
+
'Do not summarize or reinterpret the instructions before executing them.';
|
|
434
|
+
return {
|
|
435
|
+
promptArg,
|
|
436
|
+
usedFileIndirection: true,
|
|
437
|
+
cleanup: async () => {
|
|
438
|
+
try {
|
|
439
|
+
await unlink(promptFilePath);
|
|
440
|
+
}
|
|
441
|
+
catch {
|
|
442
|
+
// Ignore cleanup failures (file may already be gone).
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
buildSpawnOptions(options) {
|
|
448
|
+
const spawnOpts = {};
|
|
449
|
+
if (options?.cwd)
|
|
450
|
+
spawnOpts.cwd = options.cwd;
|
|
451
|
+
// Explicitly pipe stdio so streams are available
|
|
452
|
+
spawnOpts.stdio = ['pipe', 'pipe', 'pipe'];
|
|
453
|
+
// On Windows: windowsHide=true to prevent blank console windows.
|
|
454
|
+
// Copilot CLI is a Node.js binary, so shell=true is NOT needed.
|
|
455
|
+
if (process.platform === 'win32') {
|
|
456
|
+
spawnOpts.windowsHide = true;
|
|
457
|
+
}
|
|
458
|
+
// Strip CLAUDECODE env var to prevent "nested session" error when shep
|
|
459
|
+
// is invoked from within a Claude Code session.
|
|
460
|
+
const { CLAUDECODE: _, ...cleanEnv } = process.env;
|
|
461
|
+
// Copilot CLI uses GitHub OAuth — no API key injection.
|
|
462
|
+
spawnOpts.env = cleanEnv;
|
|
463
|
+
return spawnOpts;
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Extract token usage from the Copilot CLI result event usage object.
|
|
467
|
+
* Returns undefined if usage data is absent (does not throw).
|
|
468
|
+
*/
|
|
469
|
+
extractUsage(usage) {
|
|
470
|
+
if (typeof usage.inputTokens !== 'number' || typeof usage.outputTokens !== 'number') {
|
|
471
|
+
return undefined;
|
|
472
|
+
}
|
|
473
|
+
return { inputTokens: usage.inputTokens, outputTokens: usage.outputTokens };
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Detect authentication-related errors in stderr and return a user-friendly message.
|
|
477
|
+
* Returns null if no auth error is detected.
|
|
478
|
+
*/
|
|
479
|
+
detectAuthError(stderr) {
|
|
480
|
+
if (!stderr)
|
|
481
|
+
return null;
|
|
482
|
+
const lowerStderr = stderr.toLowerCase();
|
|
483
|
+
if (lowerStderr.includes('not logged in') ||
|
|
484
|
+
lowerStderr.includes('authentication') ||
|
|
485
|
+
lowerStderr.includes('auth') ||
|
|
486
|
+
lowerStderr.includes('unauthorized') ||
|
|
487
|
+
lowerStderr.includes('login required')) {
|
|
488
|
+
return ('GitHub Copilot CLI authentication required. ' +
|
|
489
|
+
'Run: copilot auth login\n' +
|
|
490
|
+
`Original error: ${stderr.trim()}`);
|
|
491
|
+
}
|
|
492
|
+
return null;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
@@ -69,8 +69,6 @@ export declare function createFastFeatureAgentGraph(depsOrExecutor: FastFeatureA
|
|
|
69
69
|
ciFixAttempts: number;
|
|
70
70
|
ciFixHistory: import("../../../../domain/index.js").CiFixRecord[];
|
|
71
71
|
ciFixStatus: "success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted";
|
|
72
|
-
securityMode: import("../../../../domain/index.js").SecurityMode;
|
|
73
|
-
securityActionDispositions: Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>;
|
|
74
72
|
}, {
|
|
75
73
|
featureId?: string | undefined;
|
|
76
74
|
repositoryPath?: string | undefined;
|
|
@@ -104,8 +102,6 @@ export declare function createFastFeatureAgentGraph(depsOrExecutor: FastFeatureA
|
|
|
104
102
|
ciFixAttempts?: number | undefined;
|
|
105
103
|
ciFixHistory?: import("../../../../domain/index.js").CiFixRecord[] | undefined;
|
|
106
104
|
ciFixStatus?: "success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted" | undefined;
|
|
107
|
-
securityMode?: import("../../../../domain/index.js").SecurityMode | undefined;
|
|
108
|
-
securityActionDispositions?: Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>> | undefined;
|
|
109
105
|
}, "__start__" | "fast-implement", {
|
|
110
106
|
featureId: {
|
|
111
107
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
@@ -159,8 +155,6 @@ export declare function createFastFeatureAgentGraph(depsOrExecutor: FastFeatureA
|
|
|
159
155
|
ciFixAttempts: import("@langchain/langgraph").BinaryOperatorAggregate<number, number>;
|
|
160
156
|
ciFixHistory: import("@langchain/langgraph").BinaryOperatorAggregate<import("../../../../domain/index.js").CiFixRecord[], import("../../../../domain/index.js").CiFixRecord[]>;
|
|
161
157
|
ciFixStatus: import("@langchain/langgraph").BinaryOperatorAggregate<"success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted", "success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted">;
|
|
162
|
-
securityMode: import("@langchain/langgraph").BinaryOperatorAggregate<import("../../../../domain/index.js").SecurityMode, import("../../../../domain/index.js").SecurityMode>;
|
|
163
|
-
securityActionDispositions: import("@langchain/langgraph").BinaryOperatorAggregate<Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>, Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>>;
|
|
164
158
|
}, {
|
|
165
159
|
featureId: {
|
|
166
160
|
(): import("@langchain/langgraph").LastValue<string>;
|
|
@@ -214,8 +208,6 @@ export declare function createFastFeatureAgentGraph(depsOrExecutor: FastFeatureA
|
|
|
214
208
|
ciFixAttempts: import("@langchain/langgraph").BinaryOperatorAggregate<number, number>;
|
|
215
209
|
ciFixHistory: import("@langchain/langgraph").BinaryOperatorAggregate<import("../../../../domain/index.js").CiFixRecord[], import("../../../../domain/index.js").CiFixRecord[]>;
|
|
216
210
|
ciFixStatus: import("@langchain/langgraph").BinaryOperatorAggregate<"success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted", "success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted">;
|
|
217
|
-
securityMode: import("@langchain/langgraph").BinaryOperatorAggregate<import("../../../../domain/index.js").SecurityMode, import("../../../../domain/index.js").SecurityMode>;
|
|
218
|
-
securityActionDispositions: import("@langchain/langgraph").BinaryOperatorAggregate<Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>, Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>>;
|
|
219
211
|
}, import("@langchain/langgraph").StateDefinition, {
|
|
220
212
|
"fast-implement": Partial<import("@langchain/langgraph").StateType<{
|
|
221
213
|
featureId: {
|
|
@@ -270,8 +262,6 @@ export declare function createFastFeatureAgentGraph(depsOrExecutor: FastFeatureA
|
|
|
270
262
|
ciFixAttempts: import("@langchain/langgraph").BinaryOperatorAggregate<number, number>;
|
|
271
263
|
ciFixHistory: import("@langchain/langgraph").BinaryOperatorAggregate<import("../../../../domain/index.js").CiFixRecord[], import("../../../../domain/index.js").CiFixRecord[]>;
|
|
272
264
|
ciFixStatus: import("@langchain/langgraph").BinaryOperatorAggregate<"success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted", "success" | "timeout" | "idle" | "watching" | "fixing" | "exhausted">;
|
|
273
|
-
securityMode: import("@langchain/langgraph").BinaryOperatorAggregate<import("../../../../domain/index.js").SecurityMode, import("../../../../domain/index.js").SecurityMode>;
|
|
274
|
-
securityActionDispositions: import("@langchain/langgraph").BinaryOperatorAggregate<Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>, Partial<Record<import("../../../../domain/index.js").SecurityActionCategory, import("../../../../domain/index.js").SecurityActionDisposition>>>;
|
|
275
265
|
}>>;
|
|
276
266
|
}, unknown, unknown>;
|
|
277
267
|
//# sourceMappingURL=fast-feature-agent-graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fast-feature-agent-graph.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAA0B,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+DAA+D,CAAC;AAGpG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGlF,OAAO,EAAE,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE5E;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;CACjD;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,yBAAyB,GAAG,cAAc,EAC1D,YAAY,CAAC,EAAE,mBAAmB
|
|
1
|
+
{"version":3,"file":"fast-feature-agent-graph.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/fast-feature-agent-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAA0B,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+DAA+D,CAAC;AAGpG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGlF,OAAO,EAAE,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE5E;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;CACjD;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,yBAAyB,GAAG,cAAc,EAC1D,YAAY,CAAC,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6BnC"}
|