@sylphx/cli 0.7.0 → 0.7.1
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 +46 -4
- package/dist/main.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
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.7.
|
|
18
|
+
version: "0.7.1",
|
|
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.10.
|
|
74
|
+
"@sylphx/sdk": "0.10.3",
|
|
75
75
|
chalk: "^5.3.0",
|
|
76
76
|
effect: "3.21.0",
|
|
77
77
|
eventsource: "^2.0.2",
|
|
@@ -10822,7 +10822,7 @@ var init_privacy = __esm({
|
|
|
10822
10822
|
|
|
10823
10823
|
// ../contract/dist/schemas/project-manifest.js
|
|
10824
10824
|
import { Schema as Schema83 } from "effect";
|
|
10825
|
-
var Slug2, ManifestEnvName, ManifestRegion, MachineSize, BuildMachineSize, BuildpackName, ServiceType, DeployStrategy, WwwRedirect, ManifestProjectSection, ManifestBuildSection, ManifestDeploySection, ManifestServiceSection, ManifestEnvValue, ManifestDomainSection, PostgresTier, PostgresVersion, SearchTier, ManifestDatabaseEngine, ManifestSearchEngine, ManifestDatabaseResource, ManifestSearchResource, ManifestResourcesSection, ManifestCiSection, ManifestServiceOverride, ManifestEnvironmentOverride, ManifestEnvironmentsMap, SylphxManifest;
|
|
10825
|
+
var Slug2, ManifestEnvName, ManifestRegion, MachineSize, BuildMachineSize, BuildpackName, BuildStrategy, ServiceType, DeployStrategy, WwwRedirect, ManifestProjectSection, ManifestBuildSection, ManifestDeploySection, ManifestServiceBuildSection, ManifestServiceHealthSection, ManifestServiceSection, ManifestMigrationEngine, ManifestMigrationDestructivePolicy, ManifestMigrationsSection, ManifestDatabaseSection, ManifestEnvValue, ManifestDomainSection, PostgresTier, PostgresVersion, SearchTier, ManifestDatabaseEngine, ManifestSearchEngine, ManifestDatabaseResource, ManifestSearchResource, ManifestResourcesSection, ManifestCiSection, ManifestServiceOverride, ManifestEnvironmentOverride, ManifestEnvironmentsMap, SylphxManifest;
|
|
10826
10826
|
var init_project_manifest = __esm({
|
|
10827
10827
|
"../contract/dist/schemas/project-manifest.js"() {
|
|
10828
10828
|
"use strict";
|
|
@@ -10832,6 +10832,7 @@ var init_project_manifest = __esm({
|
|
|
10832
10832
|
MachineSize = Schema83.Literal("nano", "micro", "small", "standard", "large", "xlarge");
|
|
10833
10833
|
BuildMachineSize = Schema83.Literal("standard", "large", "xlarge");
|
|
10834
10834
|
BuildpackName = Schema83.Literal("auto", "ruby", "node", "python", "static", "dockerfile");
|
|
10835
|
+
BuildStrategy = Schema83.Literal("auto", "buildpack", "dockerfile", "nixpacks");
|
|
10835
10836
|
ServiceType = Schema83.Literal("web", "worker", "cron", "function");
|
|
10836
10837
|
DeployStrategy = Schema83.Literal("rolling", "blue-green", "immediate");
|
|
10837
10838
|
WwwRedirect = Schema83.Literal("apex", "www", "none");
|
|
@@ -10856,8 +10857,12 @@ var init_project_manifest = __esm({
|
|
|
10856
10857
|
* package.json / Gemfile / requirements.txt / Dockerfile.
|
|
10857
10858
|
*/
|
|
10858
10859
|
buildpack: Schema83.optional(BuildpackName),
|
|
10860
|
+
/** High-level build strategy alias used by current sylphx.toml files. */
|
|
10861
|
+
strategy: Schema83.optional(BuildStrategy),
|
|
10859
10862
|
/** Override path to Dockerfile (implies buildpack=dockerfile). */
|
|
10860
10863
|
dockerfile: Schema83.optional(Schema83.String),
|
|
10864
|
+
/** Docker build context path. `context` is the product-facing TOML alias. */
|
|
10865
|
+
context: Schema83.optional(Schema83.String),
|
|
10861
10866
|
/** Docker build context path (default: repo root). */
|
|
10862
10867
|
docker_context: Schema83.optional(Schema83.String),
|
|
10863
10868
|
/** Custom build command; overrides buildpack default. */
|
|
@@ -10884,10 +10889,26 @@ var init_project_manifest = __esm({
|
|
|
10884
10889
|
/** Grace period before SIGKILL (seconds). */
|
|
10885
10890
|
graceful_shutdown: Schema83.optional(Schema83.Number.pipe(Schema83.int(), Schema83.between(0, 300)))
|
|
10886
10891
|
});
|
|
10892
|
+
ManifestServiceBuildSection = Schema83.Struct({
|
|
10893
|
+
strategy: Schema83.optional(BuildStrategy),
|
|
10894
|
+
dockerfile: Schema83.optional(Schema83.String),
|
|
10895
|
+
context: Schema83.optional(Schema83.String),
|
|
10896
|
+
docker_context: Schema83.optional(Schema83.String),
|
|
10897
|
+
build_command: Schema83.optional(Schema83.String)
|
|
10898
|
+
});
|
|
10899
|
+
ManifestServiceHealthSection = Schema83.Struct({
|
|
10900
|
+
mode: Schema83.optional(Schema83.Literal("http", "tcp", "command")),
|
|
10901
|
+
path: Schema83.optional(Schema83.String),
|
|
10902
|
+
command: Schema83.optional(Schema83.String)
|
|
10903
|
+
});
|
|
10887
10904
|
ManifestServiceSection = Schema83.Struct({
|
|
10888
10905
|
/** Service name — unique within project. Used as K8s Deployment name. */
|
|
10889
10906
|
name: Slug2,
|
|
10890
10907
|
type: ServiceType,
|
|
10908
|
+
/** Per-service build override. Root [build] remains the default. */
|
|
10909
|
+
build: Schema83.optional(ManifestServiceBuildSection),
|
|
10910
|
+
/** Per-service health contract. Platform owns probe translation. */
|
|
10911
|
+
health: Schema83.optional(ManifestServiceHealthSection),
|
|
10891
10912
|
/** Container start command. */
|
|
10892
10913
|
command: Schema83.optional(Schema83.String),
|
|
10893
10914
|
/** Internal container port; required for `web`. */
|
|
@@ -10926,7 +10947,22 @@ var init_project_manifest = __esm({
|
|
|
10926
10947
|
/** Per-service env var merge — refs entries from top-level [env]. */
|
|
10927
10948
|
env: Schema83.optional(Schema83.Array(Schema83.String)),
|
|
10928
10949
|
/** Per-service resource bindings (by resource name). */
|
|
10929
|
-
resources: Schema83.optional(Schema83.Array(Slug2))
|
|
10950
|
+
resources: Schema83.optional(Schema83.Array(Slug2)),
|
|
10951
|
+
/** Paths whose changes should trigger this service in monorepos. */
|
|
10952
|
+
watch_paths: Schema83.optional(Schema83.Array(Schema83.String))
|
|
10953
|
+
});
|
|
10954
|
+
ManifestMigrationEngine = Schema83.Literal("atlas", "drizzle", "prisma", "alembic", "flyway", "goose", "sqlx", "custom");
|
|
10955
|
+
ManifestMigrationDestructivePolicy = Schema83.Literal("require-approval", "allow");
|
|
10956
|
+
ManifestMigrationsSection = Schema83.Struct({
|
|
10957
|
+
engine: ManifestMigrationEngine,
|
|
10958
|
+
dir: Schema83.optional(Schema83.String),
|
|
10959
|
+
image: Slug2,
|
|
10960
|
+
command: Schema83.String.pipe(Schema83.minLength(1)),
|
|
10961
|
+
timeout: Schema83.optional(Schema83.String),
|
|
10962
|
+
destructive_policy: Schema83.optional(ManifestMigrationDestructivePolicy)
|
|
10963
|
+
});
|
|
10964
|
+
ManifestDatabaseSection = Schema83.Struct({
|
|
10965
|
+
migrations: Schema83.optional(ManifestMigrationsSection)
|
|
10930
10966
|
});
|
|
10931
10967
|
ManifestEnvValue = Schema83.Union(Schema83.Struct({ value: Schema83.String }), Schema83.Struct({ from_secret: Schema83.String }), Schema83.Struct({ from_resource: Schema83.String, attr: Schema83.String }));
|
|
10932
10968
|
ManifestDomainSection = Schema83.Struct({
|
|
@@ -11021,6 +11057,7 @@ var init_project_manifest = __esm({
|
|
|
11021
11057
|
build: Schema83.optional(ManifestBuildSection),
|
|
11022
11058
|
deploy: Schema83.optional(ManifestDeploySection),
|
|
11023
11059
|
services: Schema83.optional(Schema83.Array(ManifestServiceSection)),
|
|
11060
|
+
database: Schema83.optional(ManifestDatabaseSection),
|
|
11024
11061
|
env: Schema83.optional(Schema83.Record({ key: Schema83.String, value: ManifestEnvValue })),
|
|
11025
11062
|
domains: Schema83.optional(Schema83.Array(ManifestDomainSection)),
|
|
11026
11063
|
environments: Schema83.optional(ManifestEnvironmentsMap),
|
|
@@ -21409,6 +21446,11 @@ function renderManifestToml(manifest) {
|
|
|
21409
21446
|
parts.push(...kv(manifest.deploy));
|
|
21410
21447
|
parts.push("");
|
|
21411
21448
|
}
|
|
21449
|
+
if (manifest.database?.migrations) {
|
|
21450
|
+
parts.push("[database.migrations]");
|
|
21451
|
+
parts.push(...kv(manifest.database.migrations));
|
|
21452
|
+
parts.push("");
|
|
21453
|
+
}
|
|
21412
21454
|
if (manifest.services) {
|
|
21413
21455
|
for (const svc of manifest.services) {
|
|
21414
21456
|
parts.push("[[services]]");
|