@shepai/cli 1.151.2-pr438.6135e39 → 1.151.2-pr468.4830e01
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/WorkflowConfig.yaml +0 -5
- package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +0 -28
- package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/github-repository-service.interface.d.ts +0 -37
- 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 -12
- package/dist/packages/core/src/application/ports/output/services/index.d.ts +3 -5
- package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
- package/dist/packages/core/src/application/ports/output/services/index.js +1 -2
- package/dist/packages/core/src/domain/generated/output.d.ts +1 -185
- package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
- package/dist/packages/core/src/domain/generated/output.js +1 -0
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +4 -4
- 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 +22 -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/codex-cli-executor.service.d.ts +61 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/codex-cli-executor.service.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/common/executors/codex-cli-executor.service.js +628 -0
- package/dist/packages/core/src/infrastructure/services/agents/sessions/codex-cli-session.repository.d.ts +62 -0
- package/dist/packages/core/src/infrastructure/services/agents/sessions/codex-cli-session.repository.d.ts.map +1 -0
- package/dist/packages/core/src/infrastructure/services/agents/sessions/codex-cli-session.repository.js +356 -0
- package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts +1 -3
- 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 -37
- package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +1 -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 +0 -21
- package/dist/src/presentation/cli/index.js +0 -2
- package/dist/src/presentation/tui/prompts/agent-select.prompt.d.ts +6 -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 +7 -2
- 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/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/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 +1 -0
- 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/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 +1 -1
- package/web/.next/required-server-files.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +28 -28
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +29 -29
- 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 +36 -36
- 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 +36 -36
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +26 -26
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +29 -29
- 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 +36 -36
- 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 +36 -36
- 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 +26 -26
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +26 -26
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/_not-found/page_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/settings/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +8 -8
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +3 -3
- package/web/.next/server/app/version/page_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]__c6e32a23._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__c6e32a23._.js.map +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_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/[root-of-the-server]__0b150ddf._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2138fa7e._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__2138fa7e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__29580090._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__29580090._.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]__3ef34e4c._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3ef34e4c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__43f51aa6._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__815546bd._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__aad040c0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c094882b._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c094882b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__d48c5b11._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dac5dbf1._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__dac5dbf1._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fae8b355._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__fae8b355._.js.map +1 -1
- 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/_0c473fef._.js +2 -2
- package/web/.next/server/chunks/ssr/_0c473fef._.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/_1b719e7f._.js +1 -1
- package/web/.next/server/chunks/ssr/_1b719e7f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_37e8548b._.js +1 -1
- package/web/.next/server/chunks/ssr/_37e8548b._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_4093a637._.js +1 -1
- package/web/.next/server/chunks/ssr/_4093a637._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_55d763e2._.js +1 -1
- package/web/.next/server/chunks/ssr/_55d763e2._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_6256a985._.js +1 -1
- package/web/.next/server/chunks/ssr/_6256a985._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_8fcc39d4._.js +1 -1
- package/web/.next/server/chunks/ssr/{_c2ca0f1b._.js → _b47f40e8._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_c2ca0f1b._.js.map → _b47f40e8._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_b71645b4._.js +1 -1
- package/web/.next/server/chunks/ssr/_b71645b4._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d4b20e29._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js +1 -1
- package/web/.next/server/chunks/ssr/_d8575088._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_dc9a9d32._.js → _dd815000._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_dc9a9d32._.js.map → _dd815000._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_e9e9ed20._.js +2 -2
- package/web/.next/server/chunks/ssr/_e9e9ed20._.js.map +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{src_presentation_web_aa941041._.js → src_presentation_web_4f99488d._.js} +2 -2
- package/web/.next/server/chunks/ssr/{src_presentation_web_aa941041._.js.map → src_presentation_web_4f99488d._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1b176e3c.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_bd9f0dda.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
- package/web/.next/server/pages/500.html +2 -2
- package/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/server/server-reference-manifest.json +45 -45
- package/web/.next/static/chunks/{87b72b8a10f8255b.js → 2ef0f4ca4e98c9a7.js} +2 -2
- package/web/.next/static/chunks/{359b2815c5ed39cc.js → 3a7945f19b79b23f.js} +1 -1
- package/web/.next/static/chunks/{4a28fd1bca225386.js → 4e0a2f0a76498c81.js} +1 -1
- package/web/.next/static/chunks/{80915095cec414bf.js → 5942cf630e48ca8d.js} +1 -1
- package/web/.next/static/chunks/{5e1877d1f1bcfd77.js → 6a5afc469cf09a04.js} +1 -1
- package/web/.next/static/chunks/{76a3f345f8cf2608.js → 866b1f54b7f49d15.js} +1 -1
- package/web/.next/static/chunks/89b3762438e133be.js +1 -0
- package/web/.next/static/chunks/{25889ca8401d1bc0.js → 956b17e72f758911.js} +1 -1
- package/web/.next/static/chunks/{79eae02d0342fb73.js → 98126d854a888c69.js} +1 -1
- package/web/.next/static/chunks/{c2388f8bc58b2a21.js → a7d8b0dda225c732.js} +1 -1
- package/web/.next/static/chunks/{08baac5434d9528e.js → ae411737fa84a470.js} +7 -7
- package/web/.next/static/chunks/{091de81012e2bc48.js → be299036f3de6864.js} +1 -1
- package/web/.next/static/chunks/{ed9408f100149c34.js → ca8a36bfe8400d5d.js} +1 -1
- package/web/public/icons/agents/openai.svg +3 -0
- package/apis/json-schema/AgentRunDetail.yaml +0 -28
- package/apis/json-schema/DoctorDiagnosticReport.yaml +0 -76
- package/apis/json-schema/FailedRunSummary.yaml +0 -22
- package/apis/json-schema/SystemInfo.yaml +0 -22
- package/apis/json-schema/WorkerLogEntry.yaml +0 -27
- package/dist/packages/core/src/application/ports/output/services/github-issue-service.interface.d.ts +0 -57
- package/dist/packages/core/src/application/ports/output/services/github-issue-service.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/github-issue-service.interface.js +0 -39
- package/dist/packages/core/src/application/use-cases/doctor/doctor-diagnose.use-case.d.ts +0 -64
- package/dist/packages/core/src/application/use-cases/doctor/doctor-diagnose.use-case.d.ts.map +0 -1
- package/dist/packages/core/src/application/use-cases/doctor/doctor-diagnose.use-case.js +0 -493
- package/dist/packages/core/src/infrastructure/services/external/github-issue-creator.service.d.ts +0 -17
- package/dist/packages/core/src/infrastructure/services/external/github-issue-creator.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/external/github-issue-creator.service.js +0 -69
- package/dist/src/presentation/cli/commands/doctor.command.d.ts +0 -20
- package/dist/src/presentation/cli/commands/doctor.command.d.ts.map +0 -1
- package/dist/src/presentation/cli/commands/doctor.command.js +0 -129
- package/web/.next/static/chunks/e760b952ba1a10d4.js +0 -1
- /package/web/.next/static/{-o7QIcv1p5C722dwF4EFd → MUDs2V0kbD3BsECyukWE4}/_buildManifest.js +0 -0
- /package/web/.next/static/{-o7QIcv1p5C722dwF4EFd → MUDs2V0kbD3BsECyukWE4}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{-o7QIcv1p5C722dwF4EFd → MUDs2V0kbD3BsECyukWE4}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-cli-session.repository.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/infrastructure/services/agents/sessions/codex-cli-session.repository.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,OAAO,KAAK,EACV,YAAY,EAGb,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,mFAAmF,CAAC;AA0C3F,qBACa,yBAA0B,YAAW,uBAAuB;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,GAAE,MAAqD;IAE5F;;;OAGG;IACH,MAAM,CAAC,gBAAgB,IAAI,MAAM;IAIjC,WAAW,IAAI,OAAO;IAIhB,IAAI,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IA8C5D,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAmBrF,kDAAkD;YACpC,gBAAgB;IAoB9B,kEAAkE;IAClE,OAAO,CAAC,mBAAmB;IAa3B;;;OAGG;YACW,mBAAmB;IAajC,wEAAwE;YAC1D,aAAa;IAsC3B;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IASpC;;;OAGG;YACW,eAAe;IAqB7B;;OAEG;YACW,gBAAgB;IAgI9B,6CAA6C;IAC7C,OAAO,CAAC,sBAAsB;IAW9B,2CAA2C;IAC3C,OAAO,CAAC,cAAc;CAQvB"}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex CLI Session Repository
|
|
3
|
+
*
|
|
4
|
+
* Infrastructure implementation of IAgentSessionRepository for OpenAI Codex CLI.
|
|
5
|
+
* Reads JSONL session rollout files from `$CODEX_HOME/sessions/` (or `~/.codex/sessions/`
|
|
6
|
+
* when CODEX_HOME is not set) and the session index from `$CODEX_HOME/session_index.jsonl`.
|
|
7
|
+
*
|
|
8
|
+
* Directory structure:
|
|
9
|
+
* $CODEX_HOME/session_index.jsonl — one JSON object per line with {id, thread_name, updated_at}
|
|
10
|
+
* $CODEX_HOME/sessions/YYYY/MM/DD/rollout-<timestamp>-<session-id>.jsonl
|
|
11
|
+
*
|
|
12
|
+
* Rollout file events:
|
|
13
|
+
* - session_meta: session metadata (id, cwd, cli_version, model_provider)
|
|
14
|
+
* - event_msg: lifecycle events (task_started, etc.)
|
|
15
|
+
* - response_item: messages (role: user/assistant/developer), function_call, function_call_output
|
|
16
|
+
* - turn_context: per-turn context (cwd, model, sandbox_policy)
|
|
17
|
+
*/
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
25
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
26
|
+
};
|
|
27
|
+
var CodexCliSessionRepository_1;
|
|
28
|
+
import * as fs from 'node:fs/promises';
|
|
29
|
+
import * as os from 'node:os';
|
|
30
|
+
import * as path from 'node:path';
|
|
31
|
+
import { injectable } from 'tsyringe';
|
|
32
|
+
let CodexCliSessionRepository = CodexCliSessionRepository_1 = class CodexCliSessionRepository {
|
|
33
|
+
basePath;
|
|
34
|
+
constructor(basePath = CodexCliSessionRepository_1.resolveCodexHome()) {
|
|
35
|
+
this.basePath = basePath;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Resolve the Codex home directory.
|
|
39
|
+
* Uses CODEX_HOME env var if set, otherwise defaults to ~/.codex
|
|
40
|
+
*/
|
|
41
|
+
static resolveCodexHome() {
|
|
42
|
+
return process.env.CODEX_HOME ?? path.join(os.homedir(), '.codex');
|
|
43
|
+
}
|
|
44
|
+
isSupported() {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
async list(options) {
|
|
48
|
+
const limit = options?.limit ?? 20;
|
|
49
|
+
// First try the session index for fast listing
|
|
50
|
+
const indexEntries = await this.readSessionIndex();
|
|
51
|
+
if (indexEntries.length > 0) {
|
|
52
|
+
// Deduplicate: keep the latest entry per session ID
|
|
53
|
+
const latestById = new Map();
|
|
54
|
+
for (const entry of indexEntries) {
|
|
55
|
+
latestById.set(entry.id, entry);
|
|
56
|
+
}
|
|
57
|
+
// Sort by updated_at descending
|
|
58
|
+
const sorted = [...latestById.values()].sort((a, b) => {
|
|
59
|
+
const aTime = a.updated_at ? new Date(a.updated_at).getTime() : 0;
|
|
60
|
+
const bTime = b.updated_at ? new Date(b.updated_at).getTime() : 0;
|
|
61
|
+
return bTime - aTime;
|
|
62
|
+
});
|
|
63
|
+
const toReturn = limit > 0 ? sorted.slice(0, limit) : sorted;
|
|
64
|
+
// Build lightweight sessions from index (no need to parse full rollout files)
|
|
65
|
+
return toReturn.map((entry) => this.indexEntryToSession(entry));
|
|
66
|
+
}
|
|
67
|
+
// Fallback: scan rollout files directly
|
|
68
|
+
const fileInfos = await this.collectSessionFiles();
|
|
69
|
+
fileInfos.sort((a, b) => b.mtime.getTime() - a.mtime.getTime());
|
|
70
|
+
const toParse = limit > 0 ? fileInfos.slice(0, limit) : fileInfos;
|
|
71
|
+
const parseResults = await Promise.allSettled(toParse.map((fi) => this.parseRolloutFile(fi, { includeMessages: false })));
|
|
72
|
+
const sessions = [];
|
|
73
|
+
for (const result of parseResults) {
|
|
74
|
+
if (result.status === 'fulfilled' && result.value !== null) {
|
|
75
|
+
sessions.push(result.value);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return sessions;
|
|
79
|
+
}
|
|
80
|
+
async findById(id, options) {
|
|
81
|
+
const messageLimit = options?.messageLimit ?? 20;
|
|
82
|
+
const match = await this.findSessionFile(id);
|
|
83
|
+
if (match === null)
|
|
84
|
+
return null;
|
|
85
|
+
try {
|
|
86
|
+
const stat = await fs.stat(match.filePath);
|
|
87
|
+
const fileInfo = {
|
|
88
|
+
id: match.resolvedId,
|
|
89
|
+
filePath: match.filePath,
|
|
90
|
+
mtime: stat.mtime,
|
|
91
|
+
};
|
|
92
|
+
return await this.parseRolloutFile(fileInfo, { includeMessages: true, messageLimit });
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** Read and parse the session_index.jsonl file */
|
|
99
|
+
async readSessionIndex() {
|
|
100
|
+
const indexPath = path.join(this.basePath, 'session_index.jsonl');
|
|
101
|
+
try {
|
|
102
|
+
const content = await fs.readFile(indexPath, 'utf-8');
|
|
103
|
+
const entries = [];
|
|
104
|
+
for (const line of content.split('\n')) {
|
|
105
|
+
const trimmed = line.trim();
|
|
106
|
+
if (!trimmed)
|
|
107
|
+
continue;
|
|
108
|
+
try {
|
|
109
|
+
entries.push(JSON.parse(trimmed));
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
// Skip malformed lines
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return entries;
|
|
116
|
+
}
|
|
117
|
+
catch {
|
|
118
|
+
return [];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/** Convert a session index entry to a lightweight AgentSession */
|
|
122
|
+
indexEntryToSession(entry) {
|
|
123
|
+
const updatedAt = entry.updated_at ? new Date(entry.updated_at) : new Date();
|
|
124
|
+
return {
|
|
125
|
+
id: entry.id,
|
|
126
|
+
agentType: 'codex-cli',
|
|
127
|
+
projectPath: '',
|
|
128
|
+
messageCount: 0,
|
|
129
|
+
createdAt: updatedAt,
|
|
130
|
+
updatedAt,
|
|
131
|
+
preview: entry.thread_name,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Recursively collect all rollout .jsonl files from the sessions/ directory.
|
|
136
|
+
* Structure: sessions/YYYY/MM/DD/rollout-<timestamp>-<id>.jsonl
|
|
137
|
+
*/
|
|
138
|
+
async collectSessionFiles() {
|
|
139
|
+
const sessionsDir = path.join(this.basePath, 'sessions');
|
|
140
|
+
const fileInfos = [];
|
|
141
|
+
try {
|
|
142
|
+
await this.walkDirectory(sessionsDir, fileInfos);
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
// sessions directory doesn't exist
|
|
146
|
+
}
|
|
147
|
+
return fileInfos;
|
|
148
|
+
}
|
|
149
|
+
/** Recursively walk a directory tree collecting .jsonl rollout files */
|
|
150
|
+
async walkDirectory(dir, results) {
|
|
151
|
+
let entries;
|
|
152
|
+
try {
|
|
153
|
+
entries = await fs.readdir(dir, { withFileTypes: true, encoding: 'utf-8' });
|
|
154
|
+
}
|
|
155
|
+
catch {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
const promises = [];
|
|
159
|
+
for (const entry of entries) {
|
|
160
|
+
const fullPath = path.join(dir, entry.name);
|
|
161
|
+
if (entry.isDirectory()) {
|
|
162
|
+
promises.push(this.walkDirectory(fullPath, results));
|
|
163
|
+
}
|
|
164
|
+
else if (entry.isFile() &&
|
|
165
|
+
entry.name.endsWith('.jsonl') &&
|
|
166
|
+
entry.name.startsWith('rollout-')) {
|
|
167
|
+
promises.push(fs
|
|
168
|
+
.stat(fullPath)
|
|
169
|
+
.then((stat) => {
|
|
170
|
+
const sessionId = this.extractSessionIdFromFilename(entry.name);
|
|
171
|
+
if (sessionId) {
|
|
172
|
+
results.push({ id: sessionId, filePath: fullPath, mtime: stat.mtime });
|
|
173
|
+
}
|
|
174
|
+
})
|
|
175
|
+
.catch(() => {
|
|
176
|
+
// Skip files we can't stat
|
|
177
|
+
}));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
await Promise.allSettled(promises);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Extract session ID from a rollout filename.
|
|
184
|
+
* Format: rollout-YYYY-MM-DDTHH-MM-SS-<session-id>.jsonl
|
|
185
|
+
* The session ID is the UUID portion after the timestamp.
|
|
186
|
+
*/
|
|
187
|
+
extractSessionIdFromFilename(filename) {
|
|
188
|
+
// rollout-2026-03-24T12-25-16-019d1f60-95de-7141-a648-e3e2fe3da012.jsonl
|
|
189
|
+
// The UUID starts after the timestamp prefix (rollout-YYYY-MM-DDTHH-MM-SS-)
|
|
190
|
+
const withoutExt = filename.replace(/\.jsonl$/, '');
|
|
191
|
+
// Match: rollout-<date>T<time>-<uuid>
|
|
192
|
+
const match = withoutExt.match(/^rollout-\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}-(.+)$/);
|
|
193
|
+
return match ? match[1] : null;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Find a session rollout file by ID.
|
|
197
|
+
* Scans the sessions/ directory recursively for a file containing the given ID.
|
|
198
|
+
*/
|
|
199
|
+
async findSessionFile(id) {
|
|
200
|
+
const fileInfos = await this.collectSessionFiles();
|
|
201
|
+
// Exact match first
|
|
202
|
+
for (const fi of fileInfos) {
|
|
203
|
+
if (fi.id === id) {
|
|
204
|
+
return { filePath: fi.filePath, resolvedId: fi.id };
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
// Prefix match
|
|
208
|
+
const matches = fileInfos.filter((fi) => fi.id.startsWith(id));
|
|
209
|
+
if (matches.length === 1) {
|
|
210
|
+
return { filePath: matches[0].filePath, resolvedId: matches[0].id };
|
|
211
|
+
}
|
|
212
|
+
return null;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Parse a Codex CLI rollout JSONL file into an AgentSession.
|
|
216
|
+
*/
|
|
217
|
+
async parseRolloutFile(fileInfo, options) {
|
|
218
|
+
const content = await fs.readFile(fileInfo.filePath, 'utf-8');
|
|
219
|
+
const lines = content.split('\n').filter((l) => l.trim().length > 0);
|
|
220
|
+
let cwd;
|
|
221
|
+
let _cliVersion;
|
|
222
|
+
let firstMessageAt;
|
|
223
|
+
let lastMessageAt;
|
|
224
|
+
let preview;
|
|
225
|
+
let messageCount = 0;
|
|
226
|
+
const messages = [];
|
|
227
|
+
for (const line of lines) {
|
|
228
|
+
let entry;
|
|
229
|
+
try {
|
|
230
|
+
entry = JSON.parse(line);
|
|
231
|
+
}
|
|
232
|
+
catch {
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
const type = entry.type;
|
|
236
|
+
const timestamp = entry.timestamp ? new Date(entry.timestamp) : fileInfo.mtime;
|
|
237
|
+
if (type === 'session_meta') {
|
|
238
|
+
const payload = entry.payload;
|
|
239
|
+
if (payload?.cwd)
|
|
240
|
+
cwd = payload.cwd;
|
|
241
|
+
if (payload?.cli_version)
|
|
242
|
+
_cliVersion = payload.cli_version;
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if (type === 'turn_context') {
|
|
246
|
+
// Use turn context cwd as fallback
|
|
247
|
+
if (!cwd && entry.payload?.cwd)
|
|
248
|
+
cwd = entry.payload.cwd;
|
|
249
|
+
continue;
|
|
250
|
+
}
|
|
251
|
+
if (type === 'response_item') {
|
|
252
|
+
const payload = entry.payload;
|
|
253
|
+
if (!payload)
|
|
254
|
+
continue;
|
|
255
|
+
// Only count user and assistant messages (skip developer/system)
|
|
256
|
+
if (payload.type === 'message' &&
|
|
257
|
+
(payload.role === 'user' || payload.role === 'assistant')) {
|
|
258
|
+
messageCount++;
|
|
259
|
+
firstMessageAt ??= timestamp;
|
|
260
|
+
lastMessageAt = timestamp;
|
|
261
|
+
// Extract preview from first user message
|
|
262
|
+
if (payload.role === 'user' && preview === undefined) {
|
|
263
|
+
preview = this.extractTextFromContent(payload.content);
|
|
264
|
+
}
|
|
265
|
+
if (options.includeMessages) {
|
|
266
|
+
messages.push({
|
|
267
|
+
uuid: entry.payload?.call_id ?? `${fileInfo.id}-${messageCount}`,
|
|
268
|
+
role: payload.role,
|
|
269
|
+
content: this.extractTextFromContent(payload.content),
|
|
270
|
+
timestamp,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
// Count function calls as part of conversation but don't add as messages
|
|
275
|
+
if (payload.type === 'function_call') {
|
|
276
|
+
messageCount++;
|
|
277
|
+
lastMessageAt = timestamp;
|
|
278
|
+
if (options.includeMessages) {
|
|
279
|
+
const toolName = payload.name ?? 'unknown_tool';
|
|
280
|
+
messages.push({
|
|
281
|
+
uuid: payload.call_id ?? `${fileInfo.id}-${messageCount}`,
|
|
282
|
+
role: 'assistant',
|
|
283
|
+
content: `[tool: ${toolName}] ${payload.arguments ?? ''}`,
|
|
284
|
+
timestamp,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (payload.type === 'function_call_output') {
|
|
289
|
+
lastMessageAt = timestamp;
|
|
290
|
+
if (options.includeMessages) {
|
|
291
|
+
const output = payload.output ?? '';
|
|
292
|
+
const truncated = output.length > 500 ? `${output.slice(0, 497)}...` : output;
|
|
293
|
+
messages.push({
|
|
294
|
+
uuid: payload.call_id ?? `${fileInfo.id}-result-${messageCount}`,
|
|
295
|
+
role: 'assistant',
|
|
296
|
+
content: `[tool-result] ${truncated}`,
|
|
297
|
+
timestamp,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
if (cwd === undefined) {
|
|
304
|
+
// Can't determine project path — too sparse
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
let messagesToReturn = messages;
|
|
308
|
+
if (options.includeMessages && options.messageLimit !== undefined && options.messageLimit > 0) {
|
|
309
|
+
messagesToReturn = messages.slice(-options.messageLimit);
|
|
310
|
+
}
|
|
311
|
+
const session = {
|
|
312
|
+
id: fileInfo.id,
|
|
313
|
+
agentType: 'codex-cli',
|
|
314
|
+
projectPath: this.abbreviatePath(cwd),
|
|
315
|
+
messageCount,
|
|
316
|
+
createdAt: firstMessageAt ?? fileInfo.mtime,
|
|
317
|
+
updatedAt: lastMessageAt ?? fileInfo.mtime,
|
|
318
|
+
};
|
|
319
|
+
if (preview !== undefined)
|
|
320
|
+
session.preview = preview;
|
|
321
|
+
if (firstMessageAt !== undefined)
|
|
322
|
+
session.firstMessageAt = firstMessageAt;
|
|
323
|
+
if (lastMessageAt !== undefined)
|
|
324
|
+
session.lastMessageAt = lastMessageAt;
|
|
325
|
+
if (options.includeMessages)
|
|
326
|
+
session.messages = messagesToReturn;
|
|
327
|
+
return session;
|
|
328
|
+
}
|
|
329
|
+
/** Extract text from Codex content blocks */
|
|
330
|
+
extractTextFromContent(content) {
|
|
331
|
+
if (!content || !Array.isArray(content))
|
|
332
|
+
return '';
|
|
333
|
+
const parts = [];
|
|
334
|
+
for (const block of content) {
|
|
335
|
+
if ((block.type === 'input_text' || block.type === 'output_text') && block.text) {
|
|
336
|
+
parts.push(block.text);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return parts.join('\n');
|
|
340
|
+
}
|
|
341
|
+
/** Replace home directory prefix with ~ */
|
|
342
|
+
abbreviatePath(filePath) {
|
|
343
|
+
const home = os.homedir();
|
|
344
|
+
if (filePath === home)
|
|
345
|
+
return '~';
|
|
346
|
+
if (filePath.startsWith(`${home}${path.sep}`)) {
|
|
347
|
+
return `~${filePath.slice(home.length)}`;
|
|
348
|
+
}
|
|
349
|
+
return filePath;
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
CodexCliSessionRepository = CodexCliSessionRepository_1 = __decorate([
|
|
353
|
+
injectable(),
|
|
354
|
+
__metadata("design:paramtypes", [String])
|
|
355
|
+
], CodexCliSessionRepository);
|
|
356
|
+
export { CodexCliSessionRepository };
|
package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* checks, repository listing, cloning (with progress streaming), and URL parsing.
|
|
6
6
|
*/
|
|
7
7
|
import type { ExecFunction } from '../git/worktree.service.js';
|
|
8
|
-
import type { IGitHubRepositoryService, GitHubRepo, ListUserRepositoriesOptions, CloneOptions, ParsedGitHubUrl
|
|
8
|
+
import type { IGitHubRepositoryService, GitHubRepo, ListUserRepositoriesOptions, CloneOptions, ParsedGitHubUrl } from '../../../application/ports/output/services/github-repository-service.interface.js';
|
|
9
9
|
export declare class GitHubRepositoryService implements IGitHubRepositoryService {
|
|
10
10
|
private readonly execFile;
|
|
11
11
|
constructor(execFile: ExecFunction);
|
|
@@ -13,8 +13,6 @@ export declare class GitHubRepositoryService implements IGitHubRepositoryService
|
|
|
13
13
|
listUserRepositories(options?: ListUserRepositoriesOptions): Promise<GitHubRepo[]>;
|
|
14
14
|
cloneRepository(nameWithOwner: string, destination: string, options?: CloneOptions): Promise<void>;
|
|
15
15
|
parseGitHubUrl(url: string): ParsedGitHubUrl;
|
|
16
|
-
checkPushAccess(repoNameWithOwner: string): Promise<boolean>;
|
|
17
|
-
forkRepository(repoNameWithOwner: string): Promise<ForkResult>;
|
|
18
16
|
getViewerPermission(repoPath: string): Promise<string>;
|
|
19
17
|
private cleanupPartialClone;
|
|
20
18
|
}
|
package/dist/packages/core/src/infrastructure/services/external/github-repository.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-repository.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/external/github-repository.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,wBAAwB,EACxB,UAAU,EACV,2BAA2B,EAC3B,YAAY,EACZ,eAAe,
|
|
1
|
+
{"version":3,"file":"github-repository.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/external/github-repository.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,wBAAwB,EACxB,UAAU,EACV,2BAA2B,EAC3B,YAAY,EACZ,eAAe,EAChB,MAAM,mFAAmF,CAAC;AAyB3F,qBACa,uBAAwB,YAAW,wBAAwB;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,YAAY;IAErE,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB1B,oBAAoB,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAsClF,eAAe,CACnB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,IAAI,CAAC;IAgDhB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe;IA2CtC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAyB9C,mBAAmB;CAOlC"}
|
package/dist/packages/core/src/infrastructure/services/external/github-repository.service.js
CHANGED
|
@@ -20,7 +20,7 @@ import { injectable, inject } from 'tsyringe';
|
|
|
20
20
|
import { resolve, normalize } from 'node:path';
|
|
21
21
|
import { rm } from 'node:fs/promises';
|
|
22
22
|
import { spawn } from 'node:child_process';
|
|
23
|
-
import { GitHubAuthError, GitHubCloneError,
|
|
23
|
+
import { GitHubAuthError, GitHubCloneError, GitHubPermissionError, GitHubRepoListError, GitHubUrlParseError, } from '../../../application/ports/output/services/github-repository-service.interface.js';
|
|
24
24
|
// ---------------------------------------------------------------------------
|
|
25
25
|
// URL regex patterns
|
|
26
26
|
// ---------------------------------------------------------------------------
|
|
@@ -154,42 +154,6 @@ let GitHubRepositoryService = class GitHubRepositoryService {
|
|
|
154
154
|
'Supported formats: https://github.com/owner/repo, ' +
|
|
155
155
|
'git@github.com:owner/repo.git, or owner/repo shorthand.');
|
|
156
156
|
}
|
|
157
|
-
async checkPushAccess(repoNameWithOwner) {
|
|
158
|
-
try {
|
|
159
|
-
const { stdout } = await this.execFile('gh', [
|
|
160
|
-
'api',
|
|
161
|
-
`repos/${repoNameWithOwner}`,
|
|
162
|
-
'--jq',
|
|
163
|
-
'.permissions.push',
|
|
164
|
-
]);
|
|
165
|
-
return stdout.trim() === 'true';
|
|
166
|
-
}
|
|
167
|
-
catch {
|
|
168
|
-
// Safe fallback: assume no push access on any error (NFR-9)
|
|
169
|
-
return false;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
async forkRepository(repoNameWithOwner) {
|
|
173
|
-
try {
|
|
174
|
-
const { stdout } = await this.execFile('gh', [
|
|
175
|
-
'repo',
|
|
176
|
-
'fork',
|
|
177
|
-
repoNameWithOwner,
|
|
178
|
-
'--clone=false',
|
|
179
|
-
'--json',
|
|
180
|
-
'nameWithOwner,url',
|
|
181
|
-
]);
|
|
182
|
-
const parsed = JSON.parse(stdout);
|
|
183
|
-
return {
|
|
184
|
-
nameWithOwner: parsed.nameWithOwner,
|
|
185
|
-
cloneUrl: parsed.url.endsWith('.git') ? parsed.url : `${parsed.url}.git`,
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
catch (error) {
|
|
189
|
-
const cause = error instanceof Error ? error : undefined;
|
|
190
|
-
throw new GitHubForkError(`Failed to fork ${repoNameWithOwner}: ${cause?.message ?? String(error)}`, cause);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
157
|
async getViewerPermission(repoPath) {
|
|
194
158
|
try {
|
|
195
159
|
const { stdout } = await this.execFile('gh', ['repo', 'view', '--json', 'viewerPermission'], {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Uses constructor dependency injection for the command executor.
|
|
6
6
|
*/
|
|
7
7
|
import type { IGitPrService } from '../../../application/ports/output/services/git-pr-service.interface.js';
|
|
8
|
-
import type { CiStatusResult, DiffSummary, FileDiff, MergeStrategy,
|
|
8
|
+
import type { CiStatusResult, DiffSummary, FileDiff, MergeStrategy, PrCreateResult, PrStatusInfo } from '../../../application/ports/output/services/git-pr-service.interface.js';
|
|
9
9
|
import type { ExecFunction } from './worktree.service.js';
|
|
10
10
|
export declare class GitPrService implements IGitPrService {
|
|
11
11
|
private readonly execFile;
|
|
@@ -18,7 +18,6 @@ export declare class GitPrService implements IGitPrService {
|
|
|
18
18
|
commitAll(cwd: string, message: string): Promise<string>;
|
|
19
19
|
push(cwd: string, branch: string, setUpstream?: boolean): Promise<void>;
|
|
20
20
|
createPr(cwd: string, prYamlPath: string): Promise<PrCreateResult>;
|
|
21
|
-
createPrFromArgs(cwd: string, args: PrCreateArgs): Promise<PrCreateResult>;
|
|
22
21
|
mergePr(cwd: string, prNumber: number, strategy?: MergeStrategy): Promise<void>;
|
|
23
22
|
private getPrHeadBranch;
|
|
24
23
|
localMergeSquash(cwd: string, featureBranch: string, baseBranch: string, commitMessage: string, hasRemote?: boolean): Promise<void>;
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"git-pr.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/git-pr.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -184,27 +184,6 @@ let GitPrService = class GitPrService {
|
|
|
184
184
|
throw this.parseGhError(error);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
async createPrFromArgs(cwd, args) {
|
|
188
|
-
try {
|
|
189
|
-
const ghArgs = ['pr', 'create', '--title', args.title, '--body', args.body];
|
|
190
|
-
if (args.base) {
|
|
191
|
-
ghArgs.push('--base', args.base);
|
|
192
|
-
}
|
|
193
|
-
if (args.labels?.length) {
|
|
194
|
-
ghArgs.push('--label', args.labels.join(','));
|
|
195
|
-
}
|
|
196
|
-
if (args.repo) {
|
|
197
|
-
ghArgs.push('--repo', args.repo);
|
|
198
|
-
}
|
|
199
|
-
const { stdout } = await this.execFile('gh', ghArgs, { cwd });
|
|
200
|
-
const url = stdout.trim();
|
|
201
|
-
const number = this.parsePrNumberFromUrl(url);
|
|
202
|
-
return { url, number };
|
|
203
|
-
}
|
|
204
|
-
catch (error) {
|
|
205
|
-
throw this.parseGhError(error);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
187
|
async mergePr(cwd, prNumber, strategy = 'squash') {
|
|
209
188
|
try {
|
|
210
189
|
await this.execFile('gh', ['pr', 'merge', String(prNumber), `--${strategy}`], {
|
|
@@ -42,7 +42,6 @@ import { createIdeOpenCommand } from './commands/ide-open.command.js';
|
|
|
42
42
|
import { createInstallCommand } from './commands/install.command.js';
|
|
43
43
|
import { createUpgradeCommand } from './commands/upgrade.command.js';
|
|
44
44
|
import { createToolsCommand } from './commands/tools.command.js';
|
|
45
|
-
import { createDoctorCommand } from './commands/doctor.command.js';
|
|
46
45
|
import { messages } from './ui/index.js';
|
|
47
46
|
// Daemon lifecycle commands
|
|
48
47
|
import { createStartCommand } from './commands/start.command.js';
|
|
@@ -111,7 +110,6 @@ async function bootstrap() {
|
|
|
111
110
|
program.addCommand(createInstallCommand());
|
|
112
111
|
program.addCommand(createToolsCommand());
|
|
113
112
|
program.addCommand(createUpgradeCommand());
|
|
114
|
-
program.addCommand(createDoctorCommand());
|
|
115
113
|
// Daemon lifecycle commands (task-9)
|
|
116
114
|
program.addCommand(createStartCommand());
|
|
117
115
|
program.addCommand(createStopCommand());
|
|
@@ -8,8 +8,8 @@ import { AgentType } from '../../../../packages/core/src/domain/generated/output
|
|
|
8
8
|
/**
|
|
9
9
|
* Creates the @inquirer/select configuration for selecting an AI coding agent.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
* disabled with a "Coming Soon" badge.
|
|
11
|
+
* Active agents are selectable. Agents not yet implemented are shown
|
|
12
|
+
* as disabled with a "Coming Soon" badge.
|
|
13
13
|
*/
|
|
14
14
|
export declare function createAgentSelectConfig(): {
|
|
15
15
|
readonly message: "Select your AI coding agent";
|
|
@@ -21,6 +21,10 @@ export declare function createAgentSelectConfig(): {
|
|
|
21
21
|
readonly name: "Gemini CLI";
|
|
22
22
|
readonly value: AgentType.GeminiCli;
|
|
23
23
|
readonly description: "Google Gemini CLI";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "Codex CLI";
|
|
26
|
+
readonly value: AgentType.CodexCli;
|
|
27
|
+
readonly description: "OpenAI's Codex CLI terminal agent (GPT models)";
|
|
24
28
|
}, {
|
|
25
29
|
readonly name: "Cursor";
|
|
26
30
|
readonly value: AgentType.Cursor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-select.prompt.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/tui/prompts/agent-select.prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD;;;;;GAKG;AACH,wBAAgB,uBAAuB
|
|
1
|
+
{"version":3,"file":"agent-select.prompt.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/tui/prompts/agent-select.prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD;;;;;GAKG;AACH,wBAAgB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CtC"}
|
|
@@ -9,8 +9,8 @@ import { shepTheme } from '../themes/shep.theme.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates the @inquirer/select configuration for selecting an AI coding agent.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
* disabled with a "Coming Soon" badge.
|
|
12
|
+
* Active agents are selectable. Agents not yet implemented are shown
|
|
13
|
+
* as disabled with a "Coming Soon" badge.
|
|
14
14
|
*/
|
|
15
15
|
export function createAgentSelectConfig() {
|
|
16
16
|
return {
|
|
@@ -26,6 +26,11 @@ export function createAgentSelectConfig() {
|
|
|
26
26
|
value: AgentType.GeminiCli,
|
|
27
27
|
description: 'Google Gemini CLI',
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Codex CLI',
|
|
31
|
+
value: AgentType.CodexCli,
|
|
32
|
+
description: "OpenAI's Codex CLI terminal agent (GPT models)",
|
|
33
|
+
},
|
|
29
34
|
{
|
|
30
35
|
name: 'Cursor',
|
|
31
36
|
value: AgentType.Cursor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-agent-models.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-all-agent-models.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"get-all-agent-models.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/get-all-agent-models.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAmBD,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CA+BpE"}
|
|
@@ -3,6 +3,7 @@ import { resolve } from '../../lib/server-container.js';
|
|
|
3
3
|
import { getModelMeta } from '../../lib/model-metadata.js';
|
|
4
4
|
const AGENT_LABELS = {
|
|
5
5
|
'claude-code': 'Claude Code',
|
|
6
|
+
'codex-cli': 'Codex CLI',
|
|
6
7
|
cursor: 'Cursor CLI',
|
|
7
8
|
'gemini-cli': 'Gemini CLI',
|
|
8
9
|
dev: 'Demo',
|
|
@@ -10,8 +11,9 @@ const AGENT_LABELS = {
|
|
|
10
11
|
/** Sort weight — higher = further down. Demo always last. */
|
|
11
12
|
const AGENT_ORDER = {
|
|
12
13
|
'claude-code': 0,
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
'codex-cli': 1,
|
|
15
|
+
cursor: 2,
|
|
16
|
+
'gemini-cli': 3,
|
|
15
17
|
dev: 99,
|
|
16
18
|
};
|
|
17
19
|
export async function getAllAgentModels() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType, SVGProps } from 'react';
|
|
2
2
|
/** Agent type values mirroring the TypeSpec AgentType enum. */
|
|
3
|
-
export type AgentTypeValue = 'claude-code' | 'cursor' | 'gemini-cli' | 'aider' | 'continue' | 'dev';
|
|
3
|
+
export type AgentTypeValue = 'claude-code' | 'codex-cli' | 'cursor' | 'gemini-cli' | 'aider' | 'continue' | 'dev';
|
|
4
4
|
type IconProps = SVGProps<SVGSVGElement> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-type-icons.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/agent-type-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIrD,+DAA+D;AAC/D,MAAM,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"agent-type-icons.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/agent-type-icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAIrD,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GACtB,aAAa,GACb,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,OAAO,GACP,UAAU,GACV,KAAK,CAAC;AAEV,KAAK,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAmBlE,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,2CAOhD;AA4DD,6CAA6C;AAC7C,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAQ1D,CAAC;AAEF,wEAAwE;AACxE,wBAAgB,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC,SAAS,CAAC,CAK7E"}
|
|
@@ -20,6 +20,7 @@ function DevAgentIcon({ className, ...props }) {
|
|
|
20
20
|
DevAgentIcon.displayName = 'DevAgentIcon';
|
|
21
21
|
const agentTypeIconMap = {
|
|
22
22
|
'claude-code': createBrandIcon('/icons/agents/claude-ai-icon.svg', 'Claude Code'),
|
|
23
|
+
'codex-cli': createBrandIcon('/icons/agents/openai.svg', 'Codex CLI'),
|
|
23
24
|
cursor: createBrandIcon('/icons/agents/cursor.jpeg', 'Cursor'),
|
|
24
25
|
'gemini-cli': createBrandIcon('/icons/agents/gemini-cli.jpeg', 'Gemini CLI'),
|
|
25
26
|
aider: createBrandIcon('/icons/agents/aider.png', 'Aider'),
|
|
@@ -29,6 +30,7 @@ const agentTypeIconMap = {
|
|
|
29
30
|
/** Human-readable labels for agent types. */
|
|
30
31
|
export const agentTypeLabels = {
|
|
31
32
|
'claude-code': 'Claude Code',
|
|
33
|
+
'codex-cli': 'Codex CLI',
|
|
32
34
|
cursor: 'Cursor',
|
|
33
35
|
'gemini-cli': 'Gemini CLI',
|
|
34
36
|
aider: 'Aider',
|
package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-type-icons.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/agent-type-icons.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-type-icons.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/common/feature-node/agent-type-icons.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA0CvD,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAa1B,CAAC"}
|
package/dist/src/presentation/web/components/common/feature-node/agent-type-icons.stories.js
CHANGED
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { getAgentTypeIcon, DefaultAgentIcon } from './agent-type-icons.js';
|
|
3
3
|
const allAgentTypes = [
|
|
4
4
|
{ type: 'claude-code', label: 'Claude Code' },
|
|
5
|
+
{ type: 'codex-cli', label: 'Codex CLI' },
|
|
5
6
|
{ type: 'cursor', label: 'Cursor' },
|
|
6
7
|
{ type: 'gemini-cli', label: 'Gemini CLI' },
|
|
7
8
|
{ type: 'aider', label: 'Aider' },
|