@shepai/cli 1.120.0-pr384.fdb89bb → 1.120.0
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/dist/packages/core/src/application/ports/output/services/deployment-service.interface.d.ts +1 -9
- package/dist/packages/core/src/application/ports/output/services/deployment-service.interface.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/di/container.js +0 -19
- package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts +2 -6
- package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts.map +1 -1
- package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.js +13 -30
- package/dist/src/presentation/web/app/actions/deploy-feature.d.ts +1 -2
- package/dist/src/presentation/web/app/actions/deploy-feature.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/deploy-feature.js +6 -9
- package/dist/src/presentation/web/app/actions/deploy-repository.d.ts +1 -2
- package/dist/src/presentation/web/app/actions/deploy-repository.d.ts.map +1 -1
- package/dist/src/presentation/web/app/actions/deploy-repository.js +6 -9
- 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 +3 -3
- package/web/.next/required-server-files.json +3 -3
- package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +21 -21
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +19 -19
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +21 -21
- package/web/.next/server/app/(dashboard)/create/page.js +1 -1
- package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +27 -27
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +19 -19
- package/web/.next/server/app/(dashboard)/page.js +1 -1
- package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +19 -19
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
- package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/settings/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/settings/page.js.nft.json +1 -1
- package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/skills/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/skills/page.js +2 -1
- package/web/.next/server/app/skills/page.js.nft.json +1 -1
- package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/tools/page/server-reference-manifest.json +6 -6
- package/web/.next/server/app/tools/page.js +2 -1
- package/web/.next/server/app/tools/page.js.nft.json +1 -1
- package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
- package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
- package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
- package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_@drawer_repository_[repositoryId]_page_actions_ed372306.js.map +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js +1 -1
- package/web/.next/server/chunks/ssr/8ba4b_server_app_(dashboard)_repository_[repositoryId]_page_actions_32e26434.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__06fef644._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3b14e5a0._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__3b14e5a0._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__545792ab._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__6bb00d90._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8b59c03e._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8b59c03e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__8c553503._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__994ad9fe._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__994ad9fe._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js +2 -2
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a022445f._.js.map +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js +4 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a7de2711._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js +3 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__b724df9e._.js.map +1 -0
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c9c1cfee._.js +1 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__c9c1cfee._.js.map +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js +1 -1
- package/web/.next/server/chunks/ssr/_135edb9c._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_83b11c33._.js → _16e2ff25._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_83b11c33._.js.map → _16e2ff25._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_2f6f48b8._.js +1 -1
- package/web/.next/server/chunks/ssr/_2f6f48b8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_3c9e300b._.js → _503b26e9._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_3c9e300b._.js.map → _503b26e9._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_ab069e13._.js +1 -1
- package/web/.next/server/chunks/ssr/_ab069e13._.js.map +1 -1
- package/web/.next/server/chunks/ssr/{_3b5f25fa._.js → _c93f4352._.js} +2 -2
- package/web/.next/server/chunks/ssr/{_3b5f25fa._.js.map → _c93f4352._.js.map} +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js +1 -1
- package/web/.next/server/chunks/ssr/_cc77a143._.js.map +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
- package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_0835b28e._.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_e99d78dd.js.map +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_1fa8042e.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js +3 -0
- package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_24684200.js.map +1 -0
- package/web/.next/server/chunks/ssr/src_presentation_web_components_bf50c527._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_de814675._.js +1 -1
- package/web/.next/server/chunks/ssr/src_presentation_web_components_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_e8034a29._.js +2 -2
- package/web/.next/server/chunks/ssr/src_presentation_web_e8034a29._.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 +33 -33
- package/web/.next/static/chunks/027d779d1dd1535e.js +1 -0
- package/web/.next/static/chunks/{f81995913dac5269.js → 263497416e5198a3.js} +1 -1
- package/web/.next/static/chunks/{83e2aac7e244633a.js → 51244236801cad96.js} +1 -1
- package/web/.next/static/chunks/{720858e147830a1b.js → 57e0b981e00941e4.js} +1 -1
- package/web/.next/static/chunks/{2f9dcf87c0a9c513.js → 700fc491c912dd68.js} +1 -1
- package/web/.next/static/chunks/{652d07e1b3da6fd3.js → 844405e9e0f44c8b.js} +1 -1
- package/web/.next/static/chunks/943a2b78e452a2fb.js +2 -0
- package/web/.next/static/chunks/{6e9701fc52697f2b.js → a5ff70a7709ec5af.js} +1 -1
- package/web/.next/static/chunks/{7da5a2bd92f03feb.js → abb2b485cb0da264.js} +1 -1
- package/web/.next/static/chunks/{9e8ebcb706d0ca6f.js → f518c011aaa1941e.js} +1 -1
- package/dist/packages/core/src/application/ports/output/services/agent-deployment-service.interface.d.ts +0 -46
- package/dist/packages/core/src/application/ports/output/services/agent-deployment-service.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/agent-deployment-service.interface.js +0 -13
- package/dist/packages/core/src/application/ports/output/services/dev-environment-agent.interface.d.ts +0 -65
- package/dist/packages/core/src/application/ports/output/services/dev-environment-agent.interface.d.ts.map +0 -1
- package/dist/packages/core/src/application/ports/output/services/dev-environment-agent.interface.js +0 -14
- package/dist/packages/core/src/infrastructure/services/deployment/agent-deployment.service.d.ts +0 -30
- package/dist/packages/core/src/infrastructure/services/deployment/agent-deployment.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/deployment/agent-deployment.service.js +0 -110
- package/dist/packages/core/src/infrastructure/services/deployment/dev-environment-agent.service.d.ts +0 -35
- package/dist/packages/core/src/infrastructure/services/deployment/dev-environment-agent.service.d.ts.map +0 -1
- package/dist/packages/core/src/infrastructure/services/deployment/dev-environment-agent.service.js +0 -210
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0534f358._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__0534f358._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__997ccfcc._.js +0 -4
- package/web/.next/server/chunks/ssr/[root-of-the-server]__997ccfcc._.js.map +0 -1
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a6c615b8._.js +0 -3
- package/web/.next/server/chunks/ssr/[root-of-the-server]__a6c615b8._.js.map +0 -1
- package/web/.next/static/chunks/06702284aedb4e13.js +0 -1
- package/web/.next/static/chunks/57063722dbce9768.js +0 -2
- /package/web/.next/static/{yAqHoeHdmindXxK6kOd6a → oxdz8EAvGqpg8JW3gRSSs}/_buildManifest.js +0 -0
- /package/web/.next/static/{yAqHoeHdmindXxK6kOd6a → oxdz8EAvGqpg8JW3gRSSs}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{yAqHoeHdmindXxK6kOd6a → oxdz8EAvGqpg8JW3gRSSs}/_ssgManifest.js +0 -0
package/dist/packages/core/src/application/ports/output/services/deployment-service.interface.d.ts
CHANGED
|
@@ -28,13 +28,6 @@ export interface DeploymentStatus {
|
|
|
28
28
|
/** Detected URL when the dev server is Ready, null while Booting. */
|
|
29
29
|
url: string | null;
|
|
30
30
|
}
|
|
31
|
-
/** Options for overriding the default dev script detection. */
|
|
32
|
-
export interface DeploymentStartOptions {
|
|
33
|
-
/** Shell command to run instead of auto-detecting from package.json. */
|
|
34
|
-
command?: string;
|
|
35
|
-
/** Working directory relative to targetPath (defaults to "."). */
|
|
36
|
-
cwd?: string;
|
|
37
|
-
}
|
|
38
31
|
/**
|
|
39
32
|
* Port interface for managing local dev server deployments.
|
|
40
33
|
*
|
|
@@ -52,11 +45,10 @@ export interface IDeploymentService {
|
|
|
52
45
|
*
|
|
53
46
|
* @param targetId - Unique identifier for the deployment target (featureId or repositoryId)
|
|
54
47
|
* @param targetPath - Absolute filesystem path to the directory to run the dev server in
|
|
55
|
-
* @param options - Optional: override the auto-detected command
|
|
56
48
|
* @returns The initial deployment state (always Booting on success)
|
|
57
49
|
* @throws Error if no dev script is found in package.json or the process fails to spawn
|
|
58
50
|
*/
|
|
59
|
-
start(targetId: string, targetPath: string
|
|
51
|
+
start(targetId: string, targetPath: string): void;
|
|
60
52
|
/**
|
|
61
53
|
* Stop a running deployment gracefully.
|
|
62
54
|
* Sends SIGTERM to the process group, then SIGKILL after a timeout.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-service.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/services/deployment-service.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,uEAAuE;AACvE,MAAM,WAAW,QAAQ;IACvB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,KAAK,EAAE,eAAe,CAAC;IACvB,qEAAqE;IACrE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED
|
|
1
|
+
{"version":3,"file":"deployment-service.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/services/deployment-service.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,uEAAuE;AACvE,MAAM,WAAW,QAAQ;IACvB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC5B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,KAAK,EAAE,eAAe,CAAC;IACvB,qEAAqE;IACrE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;OAQG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAElD;;;;;;OAMG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAErD;;;OAGG;IACH,OAAO,IAAI,IAAI,CAAC;IAIhB;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;IAE7C;;;;;OAKG;IACH,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI,CAAC;IAE3D;;;;;OAKG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI,CAAC;CAC7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/di/container.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/infrastructure/di/container.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAoHrC;;;;;;GAMG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,OAAO,SAAS,CAAC,CAiUrE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -26,8 +26,6 @@ import { GitPrService } from '../services/git/git-pr.service.js';
|
|
|
26
26
|
import { JsonDrivenIdeLauncherService } from '../services/ide-launchers/json-driven-ide-launcher.service.js';
|
|
27
27
|
import { DaemonPidService } from '../services/daemon/daemon-pid.service.js';
|
|
28
28
|
import { DeploymentService } from '../services/deployment/deployment.service.js';
|
|
29
|
-
import { DevEnvironmentAgentService } from '../services/deployment/dev-environment-agent.service.js';
|
|
30
|
-
import { AgentDeploymentService } from '../services/deployment/agent-deployment.service.js';
|
|
31
29
|
import { AttachmentStorageService } from '../services/attachment-storage.service.js';
|
|
32
30
|
import { AgentExecutorFactory } from '../services/agents/common/agent-executor-factory.service.js';
|
|
33
31
|
import { AgentExecutorProvider } from '../services/agents/common/agent-executor-provider.service.js';
|
|
@@ -240,23 +238,6 @@ export async function initializeContainer() {
|
|
|
240
238
|
return new FeatureAgentProcessService(runRepository);
|
|
241
239
|
},
|
|
242
240
|
});
|
|
243
|
-
// Register agent-based deployment services
|
|
244
|
-
container.register('IDevEnvironmentAgent', {
|
|
245
|
-
useFactory: (c) => {
|
|
246
|
-
const caller = c.resolve('IStructuredAgentCaller');
|
|
247
|
-
return new DevEnvironmentAgentService({ structuredAgentCaller: caller });
|
|
248
|
-
},
|
|
249
|
-
});
|
|
250
|
-
container.register('IAgentDeploymentService', {
|
|
251
|
-
useFactory: (c) => {
|
|
252
|
-
const devEnvAgent = c.resolve('IDevEnvironmentAgent');
|
|
253
|
-
const deploySvc = c.resolve('IDeploymentService');
|
|
254
|
-
return new AgentDeploymentService({
|
|
255
|
-
devEnvironmentAgent: devEnvAgent,
|
|
256
|
-
deploymentService: deploySvc,
|
|
257
|
-
});
|
|
258
|
-
},
|
|
259
|
-
});
|
|
260
241
|
container.register('ISpecInitializerService', {
|
|
261
242
|
useFactory: () => new SpecInitializerService(),
|
|
262
243
|
});
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* shutdown (SIGTERM → poll → SIGKILL).
|
|
8
8
|
*/
|
|
9
9
|
import { spawn } from 'node:child_process';
|
|
10
|
-
import type { IDeploymentService, DeploymentStatus,
|
|
10
|
+
import type { IDeploymentService, DeploymentStatus, LogEntry } from '../../../application/ports/output/services/deployment-service.interface.js';
|
|
11
11
|
import { detectDevScript } from './detect-dev-script.js';
|
|
12
12
|
export interface DeploymentServiceDeps {
|
|
13
13
|
spawn: typeof spawn;
|
|
@@ -23,12 +23,8 @@ export declare class DeploymentService implements IDeploymentService {
|
|
|
23
23
|
/**
|
|
24
24
|
* Start a deployment for the given target.
|
|
25
25
|
* If a deployment already exists for this target, it is stopped first.
|
|
26
|
-
*
|
|
27
|
-
* When options.command is provided, the command is executed directly via shell
|
|
28
|
-
* instead of auto-detecting from package.json. This enables agent-based
|
|
29
|
-
* deployment for any language/framework.
|
|
30
26
|
*/
|
|
31
|
-
start(targetId: string, targetPath: string
|
|
27
|
+
start(targetId: string, targetPath: string): void;
|
|
32
28
|
/**
|
|
33
29
|
* Get the current deployment status for a target.
|
|
34
30
|
* Returns null if no deployment exists for this target.
|
package/dist/packages/core/src/infrastructure/services/deployment/deployment.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/deployment/deployment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAI9D,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"deployment.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/deployment/deployment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAI9D,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACT,MAAM,qEAAqE,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAoBzD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnC;AAgBD,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsC;IAClE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwB;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;gBAElC,IAAI,GAAE,OAAO,CAAC,qBAAqB,CAAM;IAIrD;;;OAGG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IA+EjD;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAYpD;;OAEG;IACG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyC3C;;OAEG;IACH,OAAO,IAAI,IAAI;IAOf;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,IAAI;IAM5C;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAI1D;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAI3D;;OAEG;IACH,OAAO,CAAC,WAAW;IAQnB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA+D5B;;OAEG;YACW,aAAa;IAW3B;;OAEG;IACH,OAAO,CAAC,WAAW;CASpB"}
|
|
@@ -41,13 +41,9 @@ export class DeploymentService {
|
|
|
41
41
|
/**
|
|
42
42
|
* Start a deployment for the given target.
|
|
43
43
|
* If a deployment already exists for this target, it is stopped first.
|
|
44
|
-
*
|
|
45
|
-
* When options.command is provided, the command is executed directly via shell
|
|
46
|
-
* instead of auto-detecting from package.json. This enables agent-based
|
|
47
|
-
* deployment for any language/framework.
|
|
48
44
|
*/
|
|
49
|
-
start(targetId, targetPath
|
|
50
|
-
log.info(`start() called — targetId="${targetId}", targetPath="${targetPath}"
|
|
45
|
+
start(targetId, targetPath) {
|
|
46
|
+
log.info(`start() called — targetId="${targetId}", targetPath="${targetPath}"`);
|
|
51
47
|
// Stop any existing deployment for this target
|
|
52
48
|
const existing = this.deployments.get(targetId);
|
|
53
49
|
if (existing) {
|
|
@@ -55,32 +51,19 @@ export class DeploymentService {
|
|
|
55
51
|
this.killProcess(existing);
|
|
56
52
|
this.deployments.delete(targetId);
|
|
57
53
|
}
|
|
58
|
-
//
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// Agent-provided command — run directly via shell
|
|
64
|
-
const parts = options.command.split(/\s+/);
|
|
65
|
-
spawnCommand = parts[0];
|
|
66
|
-
spawnArgs = parts.slice(1);
|
|
67
|
-
log.info(`Using agent-provided command: "${options.command}", cwd="${cwd}"`);
|
|
54
|
+
// Detect the dev script
|
|
55
|
+
const detection = this.deps.detectDevScript(targetPath);
|
|
56
|
+
if (!detection.success) {
|
|
57
|
+
log.error(`Dev script detection failed: ${detection.error}`);
|
|
58
|
+
throw new Error(detection.error);
|
|
68
59
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
throw new Error(detection.error);
|
|
75
|
-
}
|
|
76
|
-
const { packageManager, scriptName, command } = detection;
|
|
77
|
-
spawnCommand = packageManager;
|
|
78
|
-
spawnArgs = packageManager === 'npm' ? ['run', scriptName] : [scriptName];
|
|
79
|
-
log.info(`Spawning dev server: command="${command}", packageManager="${packageManager}", scriptName="${scriptName}", cwd="${cwd}"`);
|
|
80
|
-
}
|
|
81
|
-
const child = this.deps.spawn(spawnCommand, spawnArgs, {
|
|
60
|
+
// Build spawn args based on package manager
|
|
61
|
+
const { packageManager, scriptName, command } = detection;
|
|
62
|
+
const args = packageManager === 'npm' ? ['run', scriptName] : [scriptName];
|
|
63
|
+
log.info(`Spawning dev server: command="${command}", packageManager="${packageManager}", scriptName="${scriptName}", cwd="${targetPath}"`);
|
|
64
|
+
const child = this.deps.spawn(packageManager, args, {
|
|
82
65
|
shell: true,
|
|
83
|
-
cwd,
|
|
66
|
+
cwd: targetPath,
|
|
84
67
|
detached: true,
|
|
85
68
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
86
69
|
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DeploymentState } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
2
2
|
export declare function deployFeature(featureId: string): Promise<{
|
|
3
3
|
success: boolean;
|
|
4
4
|
error?: string;
|
|
5
5
|
state?: DeploymentState;
|
|
6
|
-
reason?: string;
|
|
7
6
|
}>;
|
|
8
7
|
//# sourceMappingURL=deploy-feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-feature.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/deploy-feature.ts"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"deploy-feature.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/deploy-feature.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAIvE,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC,CAwCxE"}
|
|
@@ -3,6 +3,7 @@ import { existsSync } from 'node:fs';
|
|
|
3
3
|
import { resolve } from '../../lib/server-container.js';
|
|
4
4
|
import { createDeploymentLogger } from '../../../../../packages/core/src/infrastructure/services/deployment/deployment-logger.js';
|
|
5
5
|
import { computeWorktreePath } from '../../../../../packages/core/src/infrastructure/services/ide-launchers/compute-worktree-path.js';
|
|
6
|
+
import { DeploymentState } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
6
7
|
const log = createDeploymentLogger('[deployFeature]');
|
|
7
8
|
export async function deployFeature(featureId) {
|
|
8
9
|
log.info(`called — featureId="${featureId}"`);
|
|
@@ -24,15 +25,11 @@ export async function deployFeature(featureId) {
|
|
|
24
25
|
log.warn(`worktree path does not exist on disk: "${worktreePath}"`);
|
|
25
26
|
return { success: false, error: `Worktree path does not exist: ${worktreePath}` };
|
|
26
27
|
}
|
|
27
|
-
log.info('worktree path exists, calling
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return { success: false, error: result.error, reason: result.analysis?.reason };
|
|
33
|
-
}
|
|
34
|
-
log.info('deploy() returned successfully — state=Booting');
|
|
35
|
-
return { success: true, state: result.state };
|
|
28
|
+
log.info('worktree path exists, calling deploymentService.start()');
|
|
29
|
+
const deploymentService = resolve('IDeploymentService');
|
|
30
|
+
deploymentService.start(featureId, worktreePath);
|
|
31
|
+
log.info('start() returned successfully — state=Booting');
|
|
32
|
+
return { success: true, state: DeploymentState.Booting };
|
|
36
33
|
}
|
|
37
34
|
catch (error) {
|
|
38
35
|
const message = error instanceof Error ? error.message : 'Failed to deploy feature';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DeploymentState } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
2
2
|
export declare function deployRepository(repositoryPath: string): Promise<{
|
|
3
3
|
success: boolean;
|
|
4
4
|
error?: string;
|
|
5
5
|
state?: DeploymentState;
|
|
6
|
-
reason?: string;
|
|
7
6
|
}>;
|
|
8
7
|
//# sourceMappingURL=deploy-repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-repository.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/deploy-repository.ts"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"deploy-repository.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/deploy-repository.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAIvE,wBAAsB,gBAAgB,CACpC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC,CAyBxE"}
|
|
@@ -3,6 +3,7 @@ import { existsSync } from 'node:fs';
|
|
|
3
3
|
import { isAbsolute } from 'node:path';
|
|
4
4
|
import { resolve } from '../../lib/server-container.js';
|
|
5
5
|
import { createDeploymentLogger } from '../../../../../packages/core/src/infrastructure/services/deployment/deployment-logger.js';
|
|
6
|
+
import { DeploymentState } from '../../../../../packages/core/src/domain/generated/output.js';
|
|
6
7
|
const log = createDeploymentLogger('[deployRepository]');
|
|
7
8
|
export async function deployRepository(repositoryPath) {
|
|
8
9
|
log.info(`called — repositoryPath="${repositoryPath}"`);
|
|
@@ -15,15 +16,11 @@ export async function deployRepository(repositoryPath) {
|
|
|
15
16
|
log.warn(`directory does not exist: "${repositoryPath}"`);
|
|
16
17
|
return { success: false, error: `Directory does not exist: ${repositoryPath}` };
|
|
17
18
|
}
|
|
18
|
-
log.info('directory exists, calling
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return { success: false, error: result.error, reason: result.analysis?.reason };
|
|
24
|
-
}
|
|
25
|
-
log.info('deploy() returned successfully — state=Booting');
|
|
26
|
-
return { success: true, state: result.state };
|
|
19
|
+
log.info('directory exists, calling deploymentService.start()');
|
|
20
|
+
const deploymentService = resolve('IDeploymentService');
|
|
21
|
+
deploymentService.start(repositoryPath, repositoryPath);
|
|
22
|
+
log.info('start() returned successfully — state=Booting');
|
|
23
|
+
return { success: true, state: DeploymentState.Booting };
|
|
27
24
|
}
|
|
28
25
|
catch (error) {
|
|
29
26
|
const message = error instanceof Error ? error.message : 'Failed to deploy repository';
|