@sylphx/cli 0.14.13 → 0.14.14
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 +7 -0
- package/dist/main.js +27 -7
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @sylphx/cli
|
|
2
2
|
|
|
3
|
+
## 0.14.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
deploys use the local `sylphx.toml` as the desired-state source of truth.
|
|
9
|
+
|
|
3
10
|
## 0.14.13
|
|
4
11
|
|
|
5
12
|
### 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.
|
|
18
|
+
version: "0.14.14",
|
|
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",
|
|
@@ -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*
|
|
25716
|
-
|
|
25717
|
-
|
|
25718
|
-
|
|
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
|