@sylphx/cli 0.14.8 → 0.14.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sylphx/cli
2
2
 
3
+ ## 0.14.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1546](https://github.com/SylphxAI/platform/pull/1546) [`0412606`](https://github.com/SylphxAI/platform/commit/04126068505391fa9a7aee21681e18dc083bb0a1) Thanks [@shtse8](https://github.com/shtse8)! - Scope deploy log terminal status to the active build record and verify the deployment rollout separately before reporting success.
8
+
3
9
  ## 0.14.8
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@sylphx/cli",
18
- version: "0.14.8",
18
+ version: "0.14.9",
19
19
  description: "Sylphx Platform CLI \u2014 deploy and manage your applications from the terminal. 63 commands across deployment, logs, env vars, domains, databases, storage, monitoring, self-service (user), admin (users/quotas/audit/invitations/jwt-keys/project-migrate), and more.",
20
20
  type: "module",
21
21
  homepage: "https://sylphx.com",
@@ -20595,6 +20595,7 @@ async function createEnvironmentLogStream(envId, options = {}) {
20595
20595
  limit: String(options.limit ?? 200)
20596
20596
  });
20597
20597
  if (options.deploymentId) params.set("deploymentId", options.deploymentId);
20598
+ if (options.buildId) params.set("buildId", options.buildId);
20598
20599
  if (options.since) params.set("since", options.since);
20599
20600
  if (options.level) params.set("level", options.level);
20600
20601
  const preferredOrgId = options.orgId ?? resolvePreferredOrgId();
@@ -26931,12 +26932,29 @@ function deployLogStreamEffect(api2, projectId, envType, result, orgId) {
26931
26932
  return api2.createEnvironmentLogStream(result.envId, {
26932
26933
  type: "build",
26933
26934
  deploymentId: deploymentId2,
26935
+ ...result.buildRecordId ? { buildId: result.buildRecordId } : {},
26934
26936
  ...orgId ? { orgId } : {}
26935
26937
  });
26936
26938
  }
26937
26939
  const logScope = orgId || result.envId ? { ...orgId ? { orgId } : {}, ...result.envId ? { envId: result.envId } : {} } : void 0;
26938
26940
  return api2.createLogStream(projectId, envType, logScope);
26939
26941
  }
26942
+ function verifyDeploymentAfterBuildLogs(api2, id, orgId, timeoutMs) {
26943
+ return Effect28.gen(function* () {
26944
+ yield* Console17.log("");
26945
+ yield* Console17.log(chalk_default.dim(" Verifying authoritative deployment state..."));
26946
+ yield* withSpinner(
26947
+ `Waiting for deployment ${chalk_default.bold(id)} rollout...`,
26948
+ waitForDeploymentSuccessEffect(api2, {
26949
+ id,
26950
+ ...orgId ? { orgId } : {},
26951
+ command: "deploy",
26952
+ timeoutMs
26953
+ })
26954
+ );
26955
+ return true;
26956
+ });
26957
+ }
26940
26958
  function reconcileDeploymentAfterLogStreamIssue(api2, id, orgId, reason, timeoutMs) {
26941
26959
  return Effect28.gen(function* () {
26942
26960
  yield* Console17.log("");
@@ -27097,6 +27115,12 @@ The trigger response did not include a deployment id, so the authoritative deplo
27097
27115
  })
27098
27116
  );
27099
27117
  }
27118
+ if (result.buildRecordId) {
27119
+ const id = deploymentRecordId(result);
27120
+ if (id) {
27121
+ yield* verifyDeploymentAfterBuildLogs(api2, id, orgId, reconcileTimeoutMs);
27122
+ }
27123
+ }
27100
27124
  yield* Console17.log("");
27101
27125
  yield* Console17.log(chalk_default.green.bold(" \u2713 Deployment successful!"));
27102
27126
  yield* Console17.log("");