@sylphx/cli 0.14.13 → 0.14.15

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,19 @@
1
1
  # @sylphx/cli
2
2
 
3
+ ## 0.14.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b6deea0`](https://github.com/SylphxAI/platform/commit/b6deea0e14e4c75f65853bcc8ab0f1565a1ae0ad)]:
8
+ - @sylphx/sdk@0.17.0
9
+
10
+ ## 0.14.14
11
+
12
+ ### Patch Changes
13
+
14
+ - [#1807](https://github.com/SylphxAI/platform/pull/1807) [`e9e6190`](https://github.com/SylphxAI/platform/commit/e9e6190fec0ebfb9ff71999b57e0b9254bdd51ae) Thanks [@shtse8](https://github.com/shtse8)! - Publish project manifests before triggering `sylphx deploy`, so management
15
+ deploys use the local `sylphx.toml` as the desired-state source of truth.
16
+
3
17
  ## 0.14.13
4
18
 
5
19
  ### 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.13",
18
+ version: "0.14.15",
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",
@@ -71,7 +71,7 @@ var init_package = __esm({
71
71
  "@effect/cli": "0.75.1",
72
72
  "@effect/platform": "0.96.0",
73
73
  "@effect/platform-bun": "0.89.0",
74
- "@sylphx/sdk": "0.16.0",
74
+ "@sylphx/sdk": "0.17.0",
75
75
  chalk: "^5.3.0",
76
76
  effect: "3.21.0",
77
77
  eventsource: "^2.0.2",
@@ -25650,6 +25650,15 @@ function apiErrorToCli(command) {
25650
25650
  });
25651
25651
  };
25652
25652
  }
25653
+ function pushManifestToProjectEffect(input) {
25654
+ return Effect23.tryPromise({
25655
+ try: () => authedFetch(`/projects/${input.projectId}/manifest`, {
25656
+ method: "PUT",
25657
+ body: JSON.stringify(input.manifest)
25658
+ }),
25659
+ catch: apiErrorToCli(input.command)
25660
+ });
25661
+ }
25653
25662
  function configPullEffect(input) {
25654
25663
  return Effect23.gen(function* () {
25655
25664
  yield* requireAuthEffect;
@@ -25712,12 +25721,10 @@ function configPushEffect(input) {
25712
25721
  const local = yield* loadManifestEffect(input.file).pipe(
25713
25722
  Effect23.mapError(toCliError("config push"))
25714
25723
  );
25715
- const response = yield* Effect23.tryPromise({
25716
- try: () => authedFetch(`/projects/${linked.projectId}/manifest`, {
25717
- method: "PUT",
25718
- body: JSON.stringify(local.manifest)
25719
- }),
25720
- catch: apiErrorToCli("config push")
25724
+ const response = yield* pushManifestToProjectEffect({
25725
+ command: "config push",
25726
+ manifest: local.manifest,
25727
+ projectId: linked.projectId
25721
25728
  });
25722
25729
  yield* Console13.log("");
25723
25730
  yield* Console13.log(
@@ -27327,6 +27334,19 @@ function deployEffect(env, opts = {}) {
27327
27334
  const target = env ?? targetProject.defaultEnv;
27328
27335
  const reconcileTimeoutMs = resolveDeployReconcileTimeoutMs(opts.waitTimeout);
27329
27336
  const manifest = yield* preflightManifestEffect(opts.skipManifest ?? false);
27337
+ if (manifest) {
27338
+ const response = yield* withSpinner(
27339
+ "Publishing manifest...",
27340
+ pushManifestToProjectEffect({
27341
+ command: "deploy",
27342
+ manifest,
27343
+ projectId: targetProject.projectId
27344
+ })
27345
+ );
27346
+ yield* Console17.log(
27347
+ chalk_default.dim(` \u2713 Manifest v${response.version} published (${response.updatedAt})`)
27348
+ );
27349
+ }
27330
27350
  const frameworkSignals = yield* Effect29.tryPromise({
27331
27351
  try: () => detectFrameworkSignals(manifest),
27332
27352
  catch: () => null