@ankhorage/deploy 0.10.0 → 0.12.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.
Files changed (164) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/cli/DeployCliEnvironment.d.ts +16 -2
  4. package/dist/cli/DeployCliEnvironment.d.ts.map +1 -1
  5. package/dist/cli/DeployCliEnvironment.js +16 -2
  6. package/dist/cli/DeployCliEnvironment.js.map +1 -1
  7. package/dist/cli/DeployCliExecutionOutcome.d.ts +7 -0
  8. package/dist/cli/DeployCliExecutionOutcome.d.ts.map +1 -0
  9. package/dist/cli/DeployCliExecutionOutcome.js +2 -0
  10. package/dist/cli/DeployCliExecutionOutcome.js.map +1 -0
  11. package/dist/cli/DeployCliExitCode.d.ts +4 -0
  12. package/dist/cli/DeployCliExitCode.d.ts.map +1 -0
  13. package/dist/cli/DeployCliExitCode.js +2 -0
  14. package/dist/cli/DeployCliExitCode.js.map +1 -0
  15. package/dist/cli/DeployCliExitCodes.d.ts +19 -0
  16. package/dist/cli/DeployCliExitCodes.d.ts.map +1 -0
  17. package/dist/cli/DeployCliExitCodes.js +19 -0
  18. package/dist/cli/DeployCliExitCodes.js.map +1 -0
  19. package/dist/cli/DeployCliInspectionResult.d.ts +12 -0
  20. package/dist/cli/DeployCliInspectionResult.d.ts.map +1 -0
  21. package/dist/cli/DeployCliInspectionResult.js +2 -0
  22. package/dist/cli/DeployCliInspectionResult.js.map +1 -0
  23. package/dist/cli/DeployCliJsonEnvelope.d.ts +34 -0
  24. package/dist/cli/DeployCliJsonEnvelope.d.ts.map +1 -0
  25. package/dist/cli/DeployCliJsonEnvelope.js +2 -0
  26. package/dist/cli/DeployCliJsonEnvelope.js.map +1 -0
  27. package/dist/cli/DeployCliPlanOutcome.d.ts +6 -0
  28. package/dist/cli/DeployCliPlanOutcome.d.ts.map +1 -0
  29. package/dist/cli/DeployCliPlanOutcome.js +2 -0
  30. package/dist/cli/DeployCliPlanOutcome.js.map +1 -0
  31. package/dist/cli/createDeployCliConfirmationEnvelope.d.ts +5 -0
  32. package/dist/cli/createDeployCliConfirmationEnvelope.d.ts.map +1 -0
  33. package/dist/cli/createDeployCliConfirmationEnvelope.js +21 -0
  34. package/dist/cli/createDeployCliConfirmationEnvelope.js.map +1 -0
  35. package/dist/cli/createDeployCliExecutionEnvelope.d.ts +5 -0
  36. package/dist/cli/createDeployCliExecutionEnvelope.d.ts.map +1 -0
  37. package/dist/cli/createDeployCliExecutionEnvelope.js +35 -0
  38. package/dist/cli/createDeployCliExecutionEnvelope.js.map +1 -0
  39. package/dist/cli/createDeployCliFailureEnvelope.d.ts +4 -0
  40. package/dist/cli/createDeployCliFailureEnvelope.d.ts.map +1 -0
  41. package/dist/cli/createDeployCliFailureEnvelope.js +13 -0
  42. package/dist/cli/createDeployCliFailureEnvelope.js.map +1 -0
  43. package/dist/cli/createDeployCliPlanEnvelope.d.ts +6 -0
  44. package/dist/cli/createDeployCliPlanEnvelope.d.ts.map +1 -0
  45. package/dist/cli/createDeployCliPlanEnvelope.js +20 -0
  46. package/dist/cli/createDeployCliPlanEnvelope.js.map +1 -0
  47. package/dist/cli/getDeployCliExecutionOutcome.d.ts +4 -0
  48. package/dist/cli/getDeployCliExecutionOutcome.d.ts.map +1 -0
  49. package/dist/cli/getDeployCliExecutionOutcome.js +19 -0
  50. package/dist/cli/getDeployCliExecutionOutcome.js.map +1 -0
  51. package/dist/cli/getDeployCliPlanOutcome.d.ts +5 -0
  52. package/dist/cli/getDeployCliPlanOutcome.d.ts.map +1 -0
  53. package/dist/cli/getDeployCliPlanOutcome.js +17 -0
  54. package/dist/cli/getDeployCliPlanOutcome.js.map +1 -0
  55. package/dist/cli/handleDeployCliCommand.d.ts.map +1 -1
  56. package/dist/cli/handleDeployCliCommand.js +68 -29
  57. package/dist/cli/handleDeployCliCommand.js.map +1 -1
  58. package/dist/cli/handleDeployCliPlan.d.ts.map +1 -1
  59. package/dist/cli/handleDeployCliPlan.js +8 -6
  60. package/dist/cli/handleDeployCliPlan.js.map +1 -1
  61. package/dist/cli/index.d.ts +3 -0
  62. package/dist/cli/index.d.ts.map +1 -1
  63. package/dist/cli/index.js +2 -0
  64. package/dist/cli/index.js.map +1 -1
  65. package/dist/cli/inspectDeployCliRelease.d.ts +2 -13
  66. package/dist/cli/inspectDeployCliRelease.d.ts.map +1 -1
  67. package/dist/cli/inspectDeployCliRelease.js.map +1 -1
  68. package/dist/cli/mapDeployCliPlan.d.ts +1 -1
  69. package/dist/cli/mapDeployCliPlan.d.ts.map +1 -1
  70. package/dist/cli/mapDeployCliPlan.js +5 -4
  71. package/dist/cli/mapDeployCliPlan.js.map +1 -1
  72. package/dist/cli/redactDeployCliActions.d.ts +3 -0
  73. package/dist/cli/redactDeployCliActions.d.ts.map +1 -0
  74. package/dist/cli/redactDeployCliActions.js +9 -0
  75. package/dist/cli/redactDeployCliActions.js.map +1 -0
  76. package/dist/cli/redactDeployCliFailure.d.ts +3 -0
  77. package/dist/cli/redactDeployCliFailure.d.ts.map +1 -0
  78. package/dist/cli/redactDeployCliFailure.js +5 -0
  79. package/dist/cli/redactDeployCliFailure.js.map +1 -0
  80. package/dist/cli/redactDeployCliPlan.d.ts +3 -0
  81. package/dist/cli/redactDeployCliPlan.d.ts.map +1 -0
  82. package/dist/cli/redactDeployCliPlan.js +11 -0
  83. package/dist/cli/redactDeployCliPlan.js.map +1 -0
  84. package/dist/cli/redactDeployCliText.d.ts +2 -0
  85. package/dist/cli/redactDeployCliText.d.ts.map +1 -0
  86. package/dist/cli/redactDeployCliText.js +61 -0
  87. package/dist/cli/redactDeployCliText.js.map +1 -0
  88. package/dist/cli/renderDeployCliExecution.d.ts +1 -1
  89. package/dist/cli/renderDeployCliExecution.d.ts.map +1 -1
  90. package/dist/cli/renderDeployCliExecution.js +1 -4
  91. package/dist/cli/renderDeployCliExecution.js.map +1 -1
  92. package/dist/cli/renderDeployCliPlan.d.ts +1 -1
  93. package/dist/cli/renderDeployCliPlan.d.ts.map +1 -1
  94. package/dist/cli/renderDeployCliPlan.js +1 -12
  95. package/dist/cli/renderDeployCliPlan.js.map +1 -1
  96. package/dist/cli/writeDeployCliHuman.d.ts +3 -0
  97. package/dist/cli/writeDeployCliHuman.d.ts.map +1 -0
  98. package/dist/cli/writeDeployCliHuman.js +9 -0
  99. package/dist/cli/writeDeployCliHuman.js.map +1 -0
  100. package/dist/cli/writeDeployCliJson.d.ts +4 -0
  101. package/dist/cli/writeDeployCliJson.d.ts.map +1 -0
  102. package/dist/cli/writeDeployCliJson.js +4 -0
  103. package/dist/cli/writeDeployCliJson.js.map +1 -0
  104. package/dist/project/index.d.ts +14 -0
  105. package/dist/project/index.d.ts.map +1 -1
  106. package/dist/project/index.js +7 -0
  107. package/dist/project/index.js.map +1 -1
  108. package/dist/project/io/removeContainedPath.d.ts +6 -0
  109. package/dist/project/io/removeContainedPath.d.ts.map +1 -0
  110. package/dist/project/io/removeContainedPath.js +10 -0
  111. package/dist/project/io/removeContainedPath.js.map +1 -0
  112. package/dist/project/monetization/writeProjectMonetization.d.ts +7 -0
  113. package/dist/project/monetization/writeProjectMonetization.d.ts.map +1 -0
  114. package/dist/project/monetization/writeProjectMonetization.js +15 -0
  115. package/dist/project/monetization/writeProjectMonetization.js.map +1 -0
  116. package/dist/project/release/ProjectReleaseInput.d.ts +3 -0
  117. package/dist/project/release/ProjectReleaseInput.d.ts.map +1 -0
  118. package/dist/project/release/ProjectReleaseInput.js +2 -0
  119. package/dist/project/release/ProjectReleaseInput.js.map +1 -0
  120. package/dist/project/release/writeProjectRelease.d.ts +7 -0
  121. package/dist/project/release/writeProjectRelease.d.ts.map +1 -0
  122. package/dist/project/release/writeProjectRelease.js +15 -0
  123. package/dist/project/release/writeProjectRelease.js.map +1 -0
  124. package/dist/project/storeListing/ProjectStoreListingAssetLocation.d.ts +11 -0
  125. package/dist/project/storeListing/ProjectStoreListingAssetLocation.d.ts.map +1 -0
  126. package/dist/project/storeListing/ProjectStoreListingAssetLocation.js +2 -0
  127. package/dist/project/storeListing/ProjectStoreListingAssetLocation.js.map +1 -0
  128. package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.d.ts +7 -0
  129. package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.d.ts.map +1 -0
  130. package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.js +2 -0
  131. package/dist/project/storeListing/ResolvedProjectStoreListingAssetLocation.js.map +1 -0
  132. package/dist/project/storeListing/assertStoreListingAssetBytes.d.ts +2 -0
  133. package/dist/project/storeListing/assertStoreListingAssetBytes.d.ts.map +1 -0
  134. package/dist/project/storeListing/assertStoreListingAssetBytes.js +29 -0
  135. package/dist/project/storeListing/assertStoreListingAssetBytes.js.map +1 -0
  136. package/dist/project/storeListing/assertStoreListingAssetLocale.d.ts +2 -0
  137. package/dist/project/storeListing/assertStoreListingAssetLocale.d.ts.map +1 -0
  138. package/dist/project/storeListing/assertStoreListingAssetLocale.js +10 -0
  139. package/dist/project/storeListing/assertStoreListingAssetLocale.js.map +1 -0
  140. package/dist/project/storeListing/removeEmptyStoreListingDirectories.d.ts +2 -0
  141. package/dist/project/storeListing/removeEmptyStoreListingDirectories.d.ts.map +1 -0
  142. package/dist/project/storeListing/removeEmptyStoreListingDirectories.js +32 -0
  143. package/dist/project/storeListing/removeEmptyStoreListingDirectories.js.map +1 -0
  144. package/dist/project/storeListing/removeProjectStoreListingAsset.d.ts +7 -0
  145. package/dist/project/storeListing/removeProjectStoreListingAsset.d.ts.map +1 -0
  146. package/dist/project/storeListing/removeProjectStoreListingAsset.js +16 -0
  147. package/dist/project/storeListing/removeProjectStoreListingAsset.js.map +1 -0
  148. package/dist/project/storeListing/removeProjectStoreListingLocale.d.ts +6 -0
  149. package/dist/project/storeListing/removeProjectStoreListingLocale.d.ts.map +1 -0
  150. package/dist/project/storeListing/removeProjectStoreListingLocale.js +27 -0
  151. package/dist/project/storeListing/removeProjectStoreListingLocale.js.map +1 -0
  152. package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.d.ts +5 -0
  153. package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.d.ts.map +1 -0
  154. package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.js +36 -0
  155. package/dist/project/storeListing/resolveProjectStoreListingAssetLocation.js.map +1 -0
  156. package/dist/project/storeListing/writeProjectStoreListingAsset.d.ts +8 -0
  157. package/dist/project/storeListing/writeProjectStoreListingAsset.d.ts.map +1 -0
  158. package/dist/project/storeListing/writeProjectStoreListingAsset.js +21 -0
  159. package/dist/project/storeListing/writeProjectStoreListingAsset.js.map +1 -0
  160. package/dist/project/storeListing/writeProjectStoreListingLocale.d.ts +7 -0
  161. package/dist/project/storeListing/writeProjectStoreListingLocale.d.ts.map +1 -0
  162. package/dist/project/storeListing/writeProjectStoreListingLocale.js +16 -0
  163. package/dist/project/storeListing/writeProjectStoreListingLocale.js.map +1 -0
  164. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ankhorage/deploy
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9b735ec: Expose canonical project authoring APIs for store listing locales/assets, monetization products, and prepared releases so Studio and other consumers can mutate Deploy-owned desired state without duplicating authored file layout or validation.
8
+
9
+ ## 0.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 5057a9a: Stabilize `ankh deploy` for CI with a versioned single-document JSON result, deterministic exit-code contract, prompt-free JSON approval semantics, action-required safety stops, transient credential redaction, and normal Ankh provider-discovery acceptance coverage.
14
+
3
15
  ## 0.10.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/deploy
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v0.9.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v0.11.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![docs: paradox](././paradox/badges/docs.svg)
7
7
 
8
8
  Declarative deployment engine for Expo apps across web, iOS, and Android.
9
9
 
@@ -1,9 +1,23 @@
1
1
  /**
2
2
  * Transient environment inputs understood by `ankh deploy`.
3
3
  *
4
- * Google Play expects the complete service-account JSON string.
5
- * App Store Connect expects JSON containing keyId, issuerId and privateKey.
4
+ * Credential values have no CLI-flag equivalent and never enter authored
5
+ * release state. Google Play expects the complete service-account JSON string;
6
+ * App Store Connect expects JSON with `keyId`, `issuerId`, and `privateKey`;
6
7
  * EAS expects the raw Expo access token.
8
+ *
9
+ * Operational input precedence is explicit:
10
+ * - `--project-root` overrides the command-context cwd.
11
+ * - `--execution-id` overrides generated execution ids.
12
+ * - Android track has no default; an Android build profile requires a track.
13
+ * - build profiles and Web alias/environment are CLI-only runtime inputs.
14
+ *
15
+ * CI examples:
16
+ * `ankh deploy --dry-run --json --android-track internal`
17
+ * `ankh deploy --yes --json --execution-id "$GITHUB_RUN_ID" --android-track production`
18
+ *
19
+ * `--json` writes exactly one versioned document to stdout and never prompts;
20
+ * mutation in JSON/CI mode therefore requires explicit `--yes`.
7
21
  */
8
22
  export declare const DEPLOY_CLI_ENVIRONMENT: {
9
23
  readonly googlePlayServiceAccountJson: "ANKH_DEPLOY_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON";
@@ -1 +1 @@
1
- {"version":3,"file":"DeployCliEnvironment.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliEnvironment.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC"}
1
+ {"version":3,"file":"DeployCliEnvironment.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliEnvironment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC"}
@@ -1,9 +1,23 @@
1
1
  /**
2
2
  * Transient environment inputs understood by `ankh deploy`.
3
3
  *
4
- * Google Play expects the complete service-account JSON string.
5
- * App Store Connect expects JSON containing keyId, issuerId and privateKey.
4
+ * Credential values have no CLI-flag equivalent and never enter authored
5
+ * release state. Google Play expects the complete service-account JSON string;
6
+ * App Store Connect expects JSON with `keyId`, `issuerId`, and `privateKey`;
6
7
  * EAS expects the raw Expo access token.
8
+ *
9
+ * Operational input precedence is explicit:
10
+ * - `--project-root` overrides the command-context cwd.
11
+ * - `--execution-id` overrides generated execution ids.
12
+ * - Android track has no default; an Android build profile requires a track.
13
+ * - build profiles and Web alias/environment are CLI-only runtime inputs.
14
+ *
15
+ * CI examples:
16
+ * `ankh deploy --dry-run --json --android-track internal`
17
+ * `ankh deploy --yes --json --execution-id "$GITHUB_RUN_ID" --android-track production`
18
+ *
19
+ * `--json` writes exactly one versioned document to stdout and never prompts;
20
+ * mutation in JSON/CI mode therefore requires explicit `--yes`.
7
21
  */
8
22
  export const DEPLOY_CLI_ENVIRONMENT = {
9
23
  googlePlayServiceAccountJson: 'ANKH_DEPLOY_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON',
@@ -1 +1 @@
1
- {"version":3,"file":"DeployCliEnvironment.js","sourceRoot":"","sources":["../../src/cli/DeployCliEnvironment.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,4BAA4B,EAAE,8CAA8C;IAC5E,yBAAyB,EAAE,4CAA4C;IACvE,QAAQ,EAAE,uBAAuB;CACzB,CAAC","sourcesContent":["/**\n * Transient environment inputs understood by `ankh deploy`.\n *\n * Google Play expects the complete service-account JSON string.\n * App Store Connect expects JSON containing keyId, issuerId and privateKey.\n * EAS expects the raw Expo access token.\n */\nexport const DEPLOY_CLI_ENVIRONMENT = {\n googlePlayServiceAccountJson: 'ANKH_DEPLOY_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON',\n appStoreConnectApiKeyJson: 'ANKH_DEPLOY_APP_STORE_CONNECT_API_KEY_JSON',\n easToken: 'ANKH_DEPLOY_EAS_TOKEN',\n} as const;\n"]}
1
+ {"version":3,"file":"DeployCliEnvironment.js","sourceRoot":"","sources":["../../src/cli/DeployCliEnvironment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,4BAA4B,EAAE,8CAA8C;IAC5E,yBAAyB,EAAE,4CAA4C;IACvE,QAAQ,EAAE,uBAAuB;CACzB,CAAC","sourcesContent":["/**\n * Transient environment inputs understood by `ankh deploy`.\n *\n * Credential values have no CLI-flag equivalent and never enter authored\n * release state. Google Play expects the complete service-account JSON string;\n * App Store Connect expects JSON with `keyId`, `issuerId`, and `privateKey`;\n * EAS expects the raw Expo access token.\n *\n * Operational input precedence is explicit:\n * - `--project-root` overrides the command-context cwd.\n * - `--execution-id` overrides generated execution ids.\n * - Android track has no default; an Android build profile requires a track.\n * - build profiles and Web alias/environment are CLI-only runtime inputs.\n *\n * CI examples:\n * `ankh deploy --dry-run --json --android-track internal`\n * `ankh deploy --yes --json --execution-id \"$GITHUB_RUN_ID\" --android-track production`\n *\n * `--json` writes exactly one versioned document to stdout and never prompts;\n * mutation in JSON/CI mode therefore requires explicit `--yes`.\n */\nexport const DEPLOY_CLI_ENVIRONMENT = {\n googlePlayServiceAccountJson: 'ANKH_DEPLOY_GOOGLE_PLAY_SERVICE_ACCOUNT_JSON',\n appStoreConnectApiKeyJson: 'ANKH_DEPLOY_APP_STORE_CONNECT_API_KEY_JSON',\n easToken: 'ANKH_DEPLOY_EAS_TOKEN',\n} as const;\n"]}
@@ -0,0 +1,7 @@
1
+ import type { DeployCliExitCode } from './DeployCliExitCode.js';
2
+ export interface DeployCliExecutionOutcome {
3
+ readonly phase: 'execute' | 'history';
4
+ readonly status: 'completed' | 'waiting' | 'blocked' | 'failed' | 'drifted' | 'history-failed';
5
+ readonly exitCode: DeployCliExitCode;
6
+ }
7
+ //# sourceMappingURL=DeployCliExecutionOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliExecutionOutcome.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliExecutionOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeployCliExecutionOutcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliExecutionOutcome.js","sourceRoot":"","sources":["../../src/cli/DeployCliExecutionOutcome.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeployCliExitCode } from './DeployCliExitCode.js';\n\nexport interface DeployCliExecutionOutcome {\n readonly phase: 'execute' | 'history';\n readonly status: 'completed' | 'waiting' | 'blocked' | 'failed' | 'drifted' | 'history-failed';\n readonly exitCode: DeployCliExitCode;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';
2
+ /** Stable `ankh deploy` process exit-code union. */
3
+ export type DeployCliExitCode = (typeof DEPLOY_CLI_EXIT_CODES)[keyof typeof DEPLOY_CLI_EXIT_CODES];
4
+ //# sourceMappingURL=DeployCliExitCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliExitCode.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliExitCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,oDAAoD;AACpD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeployCliExitCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliExitCode.js","sourceRoot":"","sources":["../../src/cli/DeployCliExitCode.ts"],"names":[],"mappings":"","sourcesContent":["import type { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';\n\n/** Stable `ankh deploy` process exit-code union. */\nexport type DeployCliExitCode = (typeof DEPLOY_CLI_EXIT_CODES)[keyof typeof DEPLOY_CLI_EXIT_CODES];\n"]}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Stable process exit codes for `ankh deploy`.
3
+ *
4
+ * - `success`: completed, no-change, or a clean dry-run plan.
5
+ * - `failure`: invalid input, inspection/execution failure, or history write failure.
6
+ * - `blocked`: blocked, waiting, or action-required state.
7
+ * - `confirmationRequired`: mutation needs explicit approval.
8
+ * - `declined`: an interactive user explicitly declined mutation.
9
+ * - `drifted`: provider/project state changed after planning.
10
+ */
11
+ export declare const DEPLOY_CLI_EXIT_CODES: {
12
+ readonly success: 0;
13
+ readonly failure: 1;
14
+ readonly blocked: 2;
15
+ readonly confirmationRequired: 3;
16
+ readonly declined: 4;
17
+ readonly drifted: 5;
18
+ };
19
+ //# sourceMappingURL=DeployCliExitCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliExitCodes.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliExitCodes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Stable process exit codes for `ankh deploy`.
3
+ *
4
+ * - `success`: completed, no-change, or a clean dry-run plan.
5
+ * - `failure`: invalid input, inspection/execution failure, or history write failure.
6
+ * - `blocked`: blocked, waiting, or action-required state.
7
+ * - `confirmationRequired`: mutation needs explicit approval.
8
+ * - `declined`: an interactive user explicitly declined mutation.
9
+ * - `drifted`: provider/project state changed after planning.
10
+ */
11
+ export const DEPLOY_CLI_EXIT_CODES = {
12
+ success: 0,
13
+ failure: 1,
14
+ blocked: 2,
15
+ confirmationRequired: 3,
16
+ declined: 4,
17
+ drifted: 5,
18
+ };
19
+ //# sourceMappingURL=DeployCliExitCodes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliExitCodes.js","sourceRoot":"","sources":["../../src/cli/DeployCliExitCodes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,oBAAoB,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,CAAC;CACF,CAAC","sourcesContent":["/**\n * Stable process exit codes for `ankh deploy`.\n *\n * - `success`: completed, no-change, or a clean dry-run plan.\n * - `failure`: invalid input, inspection/execution failure, or history write failure.\n * - `blocked`: blocked, waiting, or action-required state.\n * - `confirmationRequired`: mutation needs explicit approval.\n * - `declined`: an interactive user explicitly declined mutation.\n * - `drifted`: provider/project state changed after planning.\n */\nexport const DEPLOY_CLI_EXIT_CODES = {\n success: 0,\n failure: 1,\n blocked: 2,\n confirmationRequired: 3,\n declined: 4,\n drifted: 5,\n} as const;\n"]}
@@ -0,0 +1,12 @@
1
+ import type { DeploymentFailure, ReleasePlan } from '../index.js';
2
+ import type { ProjectReleaseAccess, ProjectReleaseInspection } from '../project/index.js';
3
+ export type DeployCliInspectionResult = {
4
+ readonly ok: true;
5
+ readonly access: ProjectReleaseAccess;
6
+ readonly inspection: ProjectReleaseInspection;
7
+ readonly plan: ReleasePlan;
8
+ } | {
9
+ readonly ok: false;
10
+ readonly failure: DeploymentFailure;
11
+ };
12
+ //# sourceMappingURL=DeployCliInspectionResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliInspectionResult.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliInspectionResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE1F,MAAM,MAAM,yBAAyB,GACjC;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC5B,GACD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeployCliInspectionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliInspectionResult.js","sourceRoot":"","sources":["../../src/cli/DeployCliInspectionResult.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeploymentFailure, ReleasePlan } from '../index.js';\nimport type { ProjectReleaseAccess, ProjectReleaseInspection } from '../project/index.js';\n\nexport type DeployCliInspectionResult =\n | {\n readonly ok: true;\n readonly access: ProjectReleaseAccess;\n readonly inspection: ProjectReleaseInspection;\n readonly plan: ReleasePlan;\n }\n | { readonly ok: false; readonly failure: DeploymentFailure };\n"]}
@@ -0,0 +1,34 @@
1
+ import type { DeploymentFailure, DeploymentRequiredAction, ReleasePlan, ReleaseTarget } from '../index.js';
2
+ import type { DeployCliExitCode } from './DeployCliExitCode.js';
3
+ /**
4
+ * Versioned machine-readable result emitted by `ankh deploy --json`.
5
+ *
6
+ * Exactly one JSON document is written to stdout. JSON mode never opens an
7
+ * interactive confirmation prompt; mutating execution therefore requires
8
+ * explicit `--yes`.
9
+ */
10
+ export interface DeployCliJsonEnvelope {
11
+ readonly kind: 'ankh-deploy-result';
12
+ readonly version: 1;
13
+ readonly phase: 'input' | 'inspect' | 'plan' | 'confirmation' | 'execute' | 'history';
14
+ readonly status: 'planned' | 'no-change' | 'action-required' | 'waiting' | 'blocked' | 'confirmation-required' | 'declined' | 'completed' | 'failed' | 'drifted' | 'history-failed';
15
+ readonly exitCode: DeployCliExitCode;
16
+ readonly release?: {
17
+ readonly version: string;
18
+ readonly targets: readonly ReleaseTarget[];
19
+ readonly revision: string;
20
+ };
21
+ readonly plan?: ReleasePlan;
22
+ readonly actions?: readonly DeploymentRequiredAction[];
23
+ readonly execution?: {
24
+ readonly id: string;
25
+ readonly status: 'completed' | 'waiting' | 'blocked' | 'failed' | 'drifted';
26
+ readonly currentRevision: string;
27
+ readonly executedStepIds: readonly string[];
28
+ readonly attemptedStepId?: string;
29
+ readonly code?: string;
30
+ readonly historyRecorded: boolean;
31
+ };
32
+ readonly failure?: DeploymentFailure;
33
+ }
34
+ //# sourceMappingURL=DeployCliJsonEnvelope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliJsonEnvelope.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliJsonEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,WAAW,EACX,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,CAAC;IACtF,QAAQ,CAAC,MAAM,EACX,SAAS,GACT,WAAW,GACX,iBAAiB,GACjB,SAAS,GACT,SAAS,GACT,uBAAuB,GACvB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,SAAS,GACT,gBAAgB,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE;QACjB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;QAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACvD,QAAQ,CAAC,SAAS,CAAC,EAAE;QACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;QAC5E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;QACjC,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;QAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;QAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;KACnC,CAAC;IACF,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeployCliJsonEnvelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliJsonEnvelope.js","sourceRoot":"","sources":["../../src/cli/DeployCliJsonEnvelope.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n DeploymentFailure,\n DeploymentRequiredAction,\n ReleasePlan,\n ReleaseTarget,\n} from '../index.js';\nimport type { DeployCliExitCode } from './DeployCliExitCode.js';\n\n/**\n * Versioned machine-readable result emitted by `ankh deploy --json`.\n *\n * Exactly one JSON document is written to stdout. JSON mode never opens an\n * interactive confirmation prompt; mutating execution therefore requires\n * explicit `--yes`.\n */\nexport interface DeployCliJsonEnvelope {\n readonly kind: 'ankh-deploy-result';\n readonly version: 1;\n readonly phase: 'input' | 'inspect' | 'plan' | 'confirmation' | 'execute' | 'history';\n readonly status:\n | 'planned'\n | 'no-change'\n | 'action-required'\n | 'waiting'\n | 'blocked'\n | 'confirmation-required'\n | 'declined'\n | 'completed'\n | 'failed'\n | 'drifted'\n | 'history-failed';\n readonly exitCode: DeployCliExitCode;\n readonly release?: {\n readonly version: string;\n readonly targets: readonly ReleaseTarget[];\n readonly revision: string;\n };\n readonly plan?: ReleasePlan;\n readonly actions?: readonly DeploymentRequiredAction[];\n readonly execution?: {\n readonly id: string;\n readonly status: 'completed' | 'waiting' | 'blocked' | 'failed' | 'drifted';\n readonly currentRevision: string;\n readonly executedStepIds: readonly string[];\n readonly attemptedStepId?: string;\n readonly code?: string;\n readonly historyRecorded: boolean;\n };\n readonly failure?: DeploymentFailure;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import type { DeployCliExitCode } from './DeployCliExitCode.js';
2
+ export interface DeployCliPlanOutcome {
3
+ readonly status: 'planned' | 'no-change' | 'action-required' | 'waiting' | 'blocked';
4
+ readonly exitCode: DeployCliExitCode;
5
+ }
6
+ //# sourceMappingURL=DeployCliPlanOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliPlanOutcome.d.ts","sourceRoot":"","sources":["../../src/cli/DeployCliPlanOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,iBAAiB,GAAG,SAAS,GAAG,SAAS,CAAC;IACrF,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeployCliPlanOutcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployCliPlanOutcome.js","sourceRoot":"","sources":["../../src/cli/DeployCliPlanOutcome.ts"],"names":[],"mappings":"","sourcesContent":["import type { DeployCliExitCode } from './DeployCliExitCode.js';\n\nexport interface DeployCliPlanOutcome {\n readonly status: 'planned' | 'no-change' | 'action-required' | 'waiting' | 'blocked';\n readonly exitCode: DeployCliExitCode;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { ReleasePlan } from '../index.js';
2
+ import type { ProjectReleaseInspection } from '../project/index.js';
3
+ import type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';
4
+ export declare function createDeployCliConfirmationEnvelope(inspection: ProjectReleaseInspection, plan: ReleasePlan, env: Readonly<Record<string, string | undefined>>): DeployCliJsonEnvelope;
5
+ //# sourceMappingURL=createDeployCliConfirmationEnvelope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliConfirmationEnvelope.d.ts","sourceRoot":"","sources":["../../src/cli/createDeployCliConfirmationEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKxE,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,wBAAwB,EACpC,IAAI,EAAE,WAAW,EACjB,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAChD,qBAAqB,CAevB"}
@@ -0,0 +1,21 @@
1
+ import { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';
2
+ import { redactDeployCliActions } from './redactDeployCliActions.js';
3
+ import { redactDeployCliPlan } from './redactDeployCliPlan.js';
4
+ import { redactDeployCliText } from './redactDeployCliText.js';
5
+ export function createDeployCliConfirmationEnvelope(inspection, plan, env) {
6
+ return {
7
+ kind: 'ankh-deploy-result',
8
+ version: 1,
9
+ phase: 'confirmation',
10
+ status: 'confirmation-required',
11
+ exitCode: DEPLOY_CLI_EXIT_CODES.confirmationRequired,
12
+ release: {
13
+ version: redactDeployCliText(inspection.desired.version, env),
14
+ targets: inspection.desired.targets,
15
+ revision: redactDeployCliText(inspection.desired.revision, env),
16
+ },
17
+ plan: redactDeployCliPlan(plan, env),
18
+ actions: redactDeployCliActions(inspection.actions, env),
19
+ };
20
+ }
21
+ //# sourceMappingURL=createDeployCliConfirmationEnvelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliConfirmationEnvelope.js","sourceRoot":"","sources":["../../src/cli/createDeployCliConfirmationEnvelope.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,UAAU,mCAAmC,CACjD,UAAoC,EACpC,IAAiB,EACjB,GAAiD;IAEjD,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,uBAAuB;QAC/B,QAAQ,EAAE,qBAAqB,CAAC,oBAAoB;QACpD,OAAO,EAAE;YACP,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;YAC7D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO;YACnC,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SAChE;QACD,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC;QACpC,OAAO,EAAE,sBAAsB,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;KACzD,CAAC;AACJ,CAAC","sourcesContent":["import type { ReleasePlan } from '../index.js';\nimport type { ProjectReleaseInspection } from '../project/index.js';\nimport { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';\nimport type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';\nimport { redactDeployCliActions } from './redactDeployCliActions.js';\nimport { redactDeployCliPlan } from './redactDeployCliPlan.js';\nimport { redactDeployCliText } from './redactDeployCliText.js';\n\nexport function createDeployCliConfirmationEnvelope(\n inspection: ProjectReleaseInspection,\n plan: ReleasePlan,\n env: Readonly<Record<string, string | undefined>>,\n): DeployCliJsonEnvelope {\n return {\n kind: 'ankh-deploy-result',\n version: 1,\n phase: 'confirmation',\n status: 'confirmation-required',\n exitCode: DEPLOY_CLI_EXIT_CODES.confirmationRequired,\n release: {\n version: redactDeployCliText(inspection.desired.version, env),\n targets: inspection.desired.targets,\n revision: redactDeployCliText(inspection.desired.revision, env),\n },\n plan: redactDeployCliPlan(plan, env),\n actions: redactDeployCliActions(inspection.actions, env),\n };\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { ProjectReleaseExecution, ProjectReleaseInspection } from '../project/index.js';
2
+ import type { DeployCliExecutionOutcome } from './DeployCliExecutionOutcome.js';
3
+ import type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';
4
+ export declare function createDeployCliExecutionEnvelope(inspection: ProjectReleaseInspection, execution: ProjectReleaseExecution, executionId: string, outcome: DeployCliExecutionOutcome, env: Readonly<Record<string, string | undefined>>): DeployCliJsonEnvelope;
5
+ //# sourceMappingURL=createDeployCliExecutionEnvelope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliExecutionEnvelope.d.ts","sourceRoot":"","sources":["../../src/cli/createDeployCliExecutionEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKxE,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,wBAAwB,EACpC,SAAS,EAAE,uBAAuB,EAClC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,yBAAyB,EAClC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAChD,qBAAqB,CA8BvB"}
@@ -0,0 +1,35 @@
1
+ import { redactDeployCliFailure } from './redactDeployCliFailure.js';
2
+ import { redactDeployCliPlan } from './redactDeployCliPlan.js';
3
+ import { redactDeployCliText } from './redactDeployCliText.js';
4
+ export function createDeployCliExecutionEnvelope(inspection, execution, executionId, outcome, env) {
5
+ return {
6
+ kind: 'ankh-deploy-result',
7
+ version: 1,
8
+ phase: outcome.phase,
9
+ status: outcome.status,
10
+ exitCode: outcome.exitCode,
11
+ release: {
12
+ version: redactDeployCliText(inspection.desired.version, env),
13
+ targets: inspection.desired.targets,
14
+ revision: redactDeployCliText(inspection.desired.revision, env),
15
+ },
16
+ plan: redactDeployCliPlan(execution.result.plan, env),
17
+ execution: {
18
+ id: redactDeployCliText(executionId, env),
19
+ status: execution.result.status,
20
+ currentRevision: redactDeployCliText(execution.result.currentRevision, env),
21
+ executedStepIds: execution.result.executedStepIds.map((id) => redactDeployCliText(id, env)),
22
+ ...(execution.result.attemptedStepId === undefined
23
+ ? {}
24
+ : { attemptedStepId: redactDeployCliText(execution.result.attemptedStepId, env) }),
25
+ ...(execution.result.code === undefined
26
+ ? {}
27
+ : { code: redactDeployCliText(execution.result.code, env) }),
28
+ historyRecorded: execution.historyRecorded,
29
+ },
30
+ ...(execution.historyFailure === undefined
31
+ ? {}
32
+ : { failure: redactDeployCliFailure(execution.historyFailure, env) }),
33
+ };
34
+ }
35
+ //# sourceMappingURL=createDeployCliExecutionEnvelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliExecutionEnvelope.js","sourceRoot":"","sources":["../../src/cli/createDeployCliExecutionEnvelope.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,UAAU,gCAAgC,CAC9C,UAAoC,EACpC,SAAkC,EAClC,WAAmB,EACnB,OAAkC,EAClC,GAAiD;IAEjD,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,OAAO,EAAE;YACP,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;YAC7D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO;YACnC,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SAChE;QACD,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC;QACrD,SAAS,EAAE;YACT,EAAE,EAAE,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC;YACzC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM;YAC/B,eAAe,EAAE,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,EAAE,GAAG,CAAC;YAC3E,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;YAC3F,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,KAAK,SAAS;gBAChD,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,EAAE,eAAe,EAAE,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,eAAe,EAAE,GAAG,CAAC,EAAE,CAAC;YACpF,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;gBACrC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,EAAE,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;YAC9D,eAAe,EAAE,SAAS,CAAC,eAAe;SAC3C;QACD,GAAG,CAAC,SAAS,CAAC,cAAc,KAAK,SAAS;YACxC,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,cAAc,EAAE,GAAG,CAAC,EAAE,CAAC;KACxE,CAAC;AACJ,CAAC","sourcesContent":["import type { ProjectReleaseExecution, ProjectReleaseInspection } from '../project/index.js';\nimport type { DeployCliExecutionOutcome } from './DeployCliExecutionOutcome.js';\nimport type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';\nimport { redactDeployCliFailure } from './redactDeployCliFailure.js';\nimport { redactDeployCliPlan } from './redactDeployCliPlan.js';\nimport { redactDeployCliText } from './redactDeployCliText.js';\n\nexport function createDeployCliExecutionEnvelope(\n inspection: ProjectReleaseInspection,\n execution: ProjectReleaseExecution,\n executionId: string,\n outcome: DeployCliExecutionOutcome,\n env: Readonly<Record<string, string | undefined>>,\n): DeployCliJsonEnvelope {\n return {\n kind: 'ankh-deploy-result',\n version: 1,\n phase: outcome.phase,\n status: outcome.status,\n exitCode: outcome.exitCode,\n release: {\n version: redactDeployCliText(inspection.desired.version, env),\n targets: inspection.desired.targets,\n revision: redactDeployCliText(inspection.desired.revision, env),\n },\n plan: redactDeployCliPlan(execution.result.plan, env),\n execution: {\n id: redactDeployCliText(executionId, env),\n status: execution.result.status,\n currentRevision: redactDeployCliText(execution.result.currentRevision, env),\n executedStepIds: execution.result.executedStepIds.map((id) => redactDeployCliText(id, env)),\n ...(execution.result.attemptedStepId === undefined\n ? {}\n : { attemptedStepId: redactDeployCliText(execution.result.attemptedStepId, env) }),\n ...(execution.result.code === undefined\n ? {}\n : { code: redactDeployCliText(execution.result.code, env) }),\n historyRecorded: execution.historyRecorded,\n },\n ...(execution.historyFailure === undefined\n ? {}\n : { failure: redactDeployCliFailure(execution.historyFailure, env) }),\n };\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { DeploymentFailure } from '../index.js';
2
+ import type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';
3
+ export declare function createDeployCliFailureEnvelope(phase: 'input' | 'inspect' | 'execute', failure: DeploymentFailure, env: Readonly<Record<string, string | undefined>>): DeployCliJsonEnvelope;
4
+ //# sourceMappingURL=createDeployCliFailureEnvelope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliFailureEnvelope.d.ts","sourceRoot":"","sources":["../../src/cli/createDeployCliFailureEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,EACtC,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAChD,qBAAqB,CASvB"}
@@ -0,0 +1,13 @@
1
+ import { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';
2
+ import { redactDeployCliFailure } from './redactDeployCliFailure.js';
3
+ export function createDeployCliFailureEnvelope(phase, failure, env) {
4
+ return {
5
+ kind: 'ankh-deploy-result',
6
+ version: 1,
7
+ phase,
8
+ status: 'failed',
9
+ exitCode: DEPLOY_CLI_EXIT_CODES.failure,
10
+ failure: redactDeployCliFailure(failure, env),
11
+ };
12
+ }
13
+ //# sourceMappingURL=createDeployCliFailureEnvelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliFailureEnvelope.js","sourceRoot":"","sources":["../../src/cli/createDeployCliFailureEnvelope.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,UAAU,8BAA8B,CAC5C,KAAsC,EACtC,OAA0B,EAC1B,GAAiD;IAEjD,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC;QACV,KAAK;QACL,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,qBAAqB,CAAC,OAAO;QACvC,OAAO,EAAE,sBAAsB,CAAC,OAAO,EAAE,GAAG,CAAC;KAC9C,CAAC;AACJ,CAAC","sourcesContent":["import type { DeploymentFailure } from '../index.js';\nimport { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';\nimport type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';\nimport { redactDeployCliFailure } from './redactDeployCliFailure.js';\n\nexport function createDeployCliFailureEnvelope(\n phase: 'input' | 'inspect' | 'execute',\n failure: DeploymentFailure,\n env: Readonly<Record<string, string | undefined>>,\n): DeployCliJsonEnvelope {\n return {\n kind: 'ankh-deploy-result',\n version: 1,\n phase,\n status: 'failed',\n exitCode: DEPLOY_CLI_EXIT_CODES.failure,\n failure: redactDeployCliFailure(failure, env),\n };\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import type { ReleasePlan } from '../index.js';
2
+ import type { ProjectReleaseInspection } from '../project/index.js';
3
+ import type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';
4
+ import type { DeployCliPlanOutcome } from './DeployCliPlanOutcome.js';
5
+ export declare function createDeployCliPlanEnvelope(inspection: ProjectReleaseInspection, plan: ReleasePlan, outcome: DeployCliPlanOutcome, env: Readonly<Record<string, string | undefined>>): DeployCliJsonEnvelope;
6
+ //# sourceMappingURL=createDeployCliPlanEnvelope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliPlanEnvelope.d.ts","sourceRoot":"","sources":["../../src/cli/createDeployCliPlanEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKtE,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,wBAAwB,EACpC,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,oBAAoB,EAC7B,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAChD,qBAAqB,CAevB"}
@@ -0,0 +1,20 @@
1
+ import { redactDeployCliActions } from './redactDeployCliActions.js';
2
+ import { redactDeployCliPlan } from './redactDeployCliPlan.js';
3
+ import { redactDeployCliText } from './redactDeployCliText.js';
4
+ export function createDeployCliPlanEnvelope(inspection, plan, outcome, env) {
5
+ return {
6
+ kind: 'ankh-deploy-result',
7
+ version: 1,
8
+ phase: 'plan',
9
+ status: outcome.status,
10
+ exitCode: outcome.exitCode,
11
+ release: {
12
+ version: redactDeployCliText(inspection.desired.version, env),
13
+ targets: inspection.desired.targets,
14
+ revision: redactDeployCliText(inspection.desired.revision, env),
15
+ },
16
+ plan: redactDeployCliPlan(plan, env),
17
+ actions: redactDeployCliActions(inspection.actions, env),
18
+ };
19
+ }
20
+ //# sourceMappingURL=createDeployCliPlanEnvelope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeployCliPlanEnvelope.js","sourceRoot":"","sources":["../../src/cli/createDeployCliPlanEnvelope.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,UAAU,2BAA2B,CACzC,UAAoC,EACpC,IAAiB,EACjB,OAA6B,EAC7B,GAAiD;IAEjD,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,OAAO,EAAE;YACP,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;YAC7D,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO;YACnC,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SAChE;QACD,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC;QACpC,OAAO,EAAE,sBAAsB,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC;KACzD,CAAC;AACJ,CAAC","sourcesContent":["import type { ReleasePlan } from '../index.js';\nimport type { ProjectReleaseInspection } from '../project/index.js';\nimport type { DeployCliJsonEnvelope } from './DeployCliJsonEnvelope.js';\nimport type { DeployCliPlanOutcome } from './DeployCliPlanOutcome.js';\nimport { redactDeployCliActions } from './redactDeployCliActions.js';\nimport { redactDeployCliPlan } from './redactDeployCliPlan.js';\nimport { redactDeployCliText } from './redactDeployCliText.js';\n\nexport function createDeployCliPlanEnvelope(\n inspection: ProjectReleaseInspection,\n plan: ReleasePlan,\n outcome: DeployCliPlanOutcome,\n env: Readonly<Record<string, string | undefined>>,\n): DeployCliJsonEnvelope {\n return {\n kind: 'ankh-deploy-result',\n version: 1,\n phase: 'plan',\n status: outcome.status,\n exitCode: outcome.exitCode,\n release: {\n version: redactDeployCliText(inspection.desired.version, env),\n targets: inspection.desired.targets,\n revision: redactDeployCliText(inspection.desired.revision, env),\n },\n plan: redactDeployCliPlan(plan, env),\n actions: redactDeployCliActions(inspection.actions, env),\n };\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { ProjectReleaseExecution } from '../project/index.js';
2
+ import type { DeployCliExecutionOutcome } from './DeployCliExecutionOutcome.js';
3
+ export declare function getDeployCliExecutionOutcome(execution: ProjectReleaseExecution): DeployCliExecutionOutcome;
4
+ //# sourceMappingURL=getDeployCliExecutionOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeployCliExecutionOutcome.d.ts","sourceRoot":"","sources":["../../src/cli/getDeployCliExecutionOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAGhF,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,uBAAuB,GACjC,yBAAyB,CAgB3B"}
@@ -0,0 +1,19 @@
1
+ import { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';
2
+ export function getDeployCliExecutionOutcome(execution) {
3
+ if (!execution.historyRecorded) {
4
+ return { phase: 'history', status: 'history-failed', exitCode: DEPLOY_CLI_EXIT_CODES.failure };
5
+ }
6
+ switch (execution.result.status) {
7
+ case 'completed':
8
+ return { phase: 'execute', status: 'completed', exitCode: DEPLOY_CLI_EXIT_CODES.success };
9
+ case 'waiting':
10
+ return { phase: 'execute', status: 'waiting', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };
11
+ case 'blocked':
12
+ return { phase: 'execute', status: 'blocked', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };
13
+ case 'failed':
14
+ return { phase: 'execute', status: 'failed', exitCode: DEPLOY_CLI_EXIT_CODES.failure };
15
+ case 'drifted':
16
+ return { phase: 'execute', status: 'drifted', exitCode: DEPLOY_CLI_EXIT_CODES.drifted };
17
+ }
18
+ }
19
+ //# sourceMappingURL=getDeployCliExecutionOutcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeployCliExecutionOutcome.js","sourceRoot":"","sources":["../../src/cli/getDeployCliExecutionOutcome.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,UAAU,4BAA4B,CAC1C,SAAkC;IAElC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;QAC/B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;IACjG,CAAC;IACD,QAAQ,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QAChC,KAAK,WAAW;YACd,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;QAC5F,KAAK,SAAS;YACZ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;QAC1F,KAAK,SAAS;YACZ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;QAC1F,KAAK,QAAQ;YACX,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;QACzF,KAAK,SAAS;YACZ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;IAC5F,CAAC;AACH,CAAC","sourcesContent":["import type { ProjectReleaseExecution } from '../project/index.js';\nimport type { DeployCliExecutionOutcome } from './DeployCliExecutionOutcome.js';\nimport { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';\n\nexport function getDeployCliExecutionOutcome(\n execution: ProjectReleaseExecution,\n): DeployCliExecutionOutcome {\n if (!execution.historyRecorded) {\n return { phase: 'history', status: 'history-failed', exitCode: DEPLOY_CLI_EXIT_CODES.failure };\n }\n switch (execution.result.status) {\n case 'completed':\n return { phase: 'execute', status: 'completed', exitCode: DEPLOY_CLI_EXIT_CODES.success };\n case 'waiting':\n return { phase: 'execute', status: 'waiting', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };\n case 'blocked':\n return { phase: 'execute', status: 'blocked', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };\n case 'failed':\n return { phase: 'execute', status: 'failed', exitCode: DEPLOY_CLI_EXIT_CODES.failure };\n case 'drifted':\n return { phase: 'execute', status: 'drifted', exitCode: DEPLOY_CLI_EXIT_CODES.drifted };\n }\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import type { ReleasePlan } from '../index.js';
2
+ import type { ProjectReleaseInspection } from '../project/index.js';
3
+ import type { DeployCliPlanOutcome } from './DeployCliPlanOutcome.js';
4
+ export declare function getDeployCliPlanOutcome(inspection: ProjectReleaseInspection, plan: ReleasePlan): DeployCliPlanOutcome;
5
+ //# sourceMappingURL=getDeployCliPlanOutcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeployCliPlanOutcome.d.ts","sourceRoot":"","sources":["../../src/cli/getDeployCliPlanOutcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,wBAAwB,EACpC,IAAI,EAAE,WAAW,GAChB,oBAAoB,CActB"}
@@ -0,0 +1,17 @@
1
+ import { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';
2
+ export function getDeployCliPlanOutcome(inspection, plan) {
3
+ if (plan.status === 'blocked') {
4
+ return { status: 'blocked', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };
5
+ }
6
+ if (inspection.actions.length > 0) {
7
+ return { status: 'action-required', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };
8
+ }
9
+ if (plan.status === 'waiting') {
10
+ return { status: 'waiting', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };
11
+ }
12
+ if (plan.status === 'no-change') {
13
+ return { status: 'no-change', exitCode: DEPLOY_CLI_EXIT_CODES.success };
14
+ }
15
+ return { status: 'planned', exitCode: DEPLOY_CLI_EXIT_CODES.success };
16
+ }
17
+ //# sourceMappingURL=getDeployCliPlanOutcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeployCliPlanOutcome.js","sourceRoot":"","sources":["../../src/cli/getDeployCliPlanOutcome.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,UAAU,uBAAuB,CACrC,UAAoC,EACpC,IAAiB;IAEjB,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;IACxE,CAAC;IACD,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;IAChF,CAAC;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;IACxE,CAAC;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;IAC1E,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,qBAAqB,CAAC,OAAO,EAAE,CAAC;AACxE,CAAC","sourcesContent":["import type { ReleasePlan } from '../index.js';\nimport type { ProjectReleaseInspection } from '../project/index.js';\nimport { DEPLOY_CLI_EXIT_CODES } from './DeployCliExitCodes.js';\nimport type { DeployCliPlanOutcome } from './DeployCliPlanOutcome.js';\n\nexport function getDeployCliPlanOutcome(\n inspection: ProjectReleaseInspection,\n plan: ReleasePlan,\n): DeployCliPlanOutcome {\n if (plan.status === 'blocked') {\n return { status: 'blocked', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };\n }\n if (inspection.actions.length > 0) {\n return { status: 'action-required', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };\n }\n if (plan.status === 'waiting') {\n return { status: 'waiting', exitCode: DEPLOY_CLI_EXIT_CODES.blocked };\n }\n if (plan.status === 'no-change') {\n return { status: 'no-change', exitCode: DEPLOY_CLI_EXIT_CODES.success };\n }\n return { status: 'planned', exitCode: DEPLOY_CLI_EXIT_CODES.success };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"handleDeployCliCommand.d.ts","sourceRoot":"","sources":["../../src/cli/handleDeployCliCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAA0B,MAAM,iBAAiB,CAAC;AAGhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAO9D,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAoC3B"}
1
+ {"version":3,"file":"handleDeployCliCommand.d.ts","sourceRoot":"","sources":["../../src/cli/handleDeployCliCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAA0B,MAAM,iBAAiB,CAAC;AAQhF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAa9D,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAY3B"}