@happyvertical/smrt-config 0.60.15 → 0.60.17

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.
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Self-host rendering of the compose deployment contract: turn a resolved
3
+ * declaration into values for the `smrt-app` chart.
4
+ *
5
+ * The declaration says what the application is. Everything the chart needs
6
+ * beyond that is environment-owned and comes in as explicit inputs: release
7
+ * identity, Secret references, resources, the maintenance responder and the
8
+ * ingress class. Nothing here invents a default for those, and the inputs are
9
+ * checked: they normally come from a hand-written JSON file.
10
+ */
11
+ import type { ComposeDeploymentDeclaration } from './compose-contract.js';
12
+ /**
13
+ * The migration guard capability the chart requires a release to declare.
14
+ * Rendering it is a declaration, not an implementation: the application's
15
+ * `migrate.command` has to be a wrapper that implements the guard.
16
+ */
17
+ export declare const SMRT_RELEASE_GUARD = "smrt-release-v1";
18
+ declare const WORKER_ROLES: readonly ["background", "task", "schedule"];
19
+ declare const PROBE_TIMING_FIELDS: readonly ["initialDelaySeconds", "periodSeconds", "timeoutSeconds", "failureThreshold", "successThreshold"];
20
+ export interface SmrtAppChartSecretRef {
21
+ secretName: string;
22
+ secretKey: string;
23
+ }
24
+ export interface SmrtAppChartSecretEnv extends SmrtAppChartSecretRef {
25
+ /** Environment variable name. */
26
+ name: string;
27
+ /** Limit the variable to these services. Defaults to every workload. */
28
+ services?: string[];
29
+ }
30
+ export interface SmrtAppChartResources {
31
+ requests: Record<string, string>;
32
+ limits: Record<string, string>;
33
+ }
34
+ /** Chart roles a contract `worker` may be rendered as. */
35
+ export type SmrtAppChartWorkerRole = (typeof WORKER_ROLES)[number];
36
+ /** Timing of the readiness probe rendered from a service's `health`. */
37
+ export type SmrtAppChartProbeTiming = Partial<Record<(typeof PROBE_TIMING_FIELDS)[number], number>>;
38
+ export interface SmrtAppChartWorkloadInputs {
39
+ /**
40
+ * Chart role for a contract `worker`. Defaults to `background`, the
41
+ * singleton runner. Not allowed on the web service.
42
+ */
43
+ role?: SmrtAppChartWorkerRole;
44
+ /** `background` and `schedule` workloads are singletons and stay at 1. */
45
+ replicas?: number;
46
+ /** Whether the workload writes to the database. Defaults to `true`. */
47
+ writer?: boolean;
48
+ resources?: SmrtAppChartResources;
49
+ terminationGracePeriodSeconds?: number;
50
+ /** Kubernetes defaults apply to whatever is left out (1 s timeout, 10 s period). */
51
+ readiness?: SmrtAppChartProbeTiming;
52
+ }
53
+ export interface SmrtAppChartInputs {
54
+ release: {
55
+ id: string;
56
+ phase: 'maintenance' | 'stopped' | 'migrate' | 'verify' | 'active';
57
+ sequence: number;
58
+ attempt: number;
59
+ };
60
+ app: {
61
+ /** Defaults to the Compose file's top-level `name:`. */
62
+ name?: string;
63
+ environment: string;
64
+ };
65
+ /**
66
+ * The runtime that is running now: the `target` block of the values
67
+ * document the previous release was rendered to, unchanged. Leave it out
68
+ * (or pass `false`) for a first install. It is never derived from the new
69
+ * declaration, because the running release may differ from it in more than
70
+ * its image digests.
71
+ */
72
+ current?: false | Record<string, unknown>;
73
+ bindings: {
74
+ /** Required when the declaration has a `postgres` binding. */
75
+ postgres?: {
76
+ /** Secret key holding the runtime `DATABASE_URL`. */
77
+ runtime: SmrtAppChartSecretRef;
78
+ /** Secret key holding the migration-only `DATABASE_URL`, in a different Secret. */
79
+ migration: SmrtAppChartSecretRef;
80
+ };
81
+ /** Required when the declaration has a `bucket` binding. */
82
+ bucket?: SmrtAppChartSecretRef;
83
+ };
84
+ /** Further runtime settings, each read from a named Secret key. */
85
+ env?: SmrtAppChartSecretEnv[];
86
+ defaults: {
87
+ resources: SmrtAppChartResources;
88
+ terminationGracePeriodSeconds: number;
89
+ replicas?: number;
90
+ };
91
+ /** Per-service overrides, keyed by Compose service name. */
92
+ workloads?: Record<string, SmrtAppChartWorkloadInputs>;
93
+ migration?: {
94
+ resources?: SmrtAppChartResources;
95
+ terminationGracePeriodSeconds?: number;
96
+ };
97
+ /** Passed through as the chart's `maintenance` block. */
98
+ maintenance: Record<string, unknown>;
99
+ /** Passed through as the chart's `ingress` block. `host` defaults to the declared domain. */
100
+ ingress: {
101
+ className: string;
102
+ host?: string;
103
+ } & Record<string, unknown>;
104
+ }
105
+ /** Thrown when a declaration cannot be rendered with the inputs given. */
106
+ export declare class SmrtAppChartValuesError extends Error {
107
+ readonly problems: string[];
108
+ constructor(problems: string[]);
109
+ }
110
+ /**
111
+ * Render `smrt-app` chart values from a declaration resolved at the `deploy`
112
+ * stage. Throws {@link SmrtAppChartValuesError} listing every problem when
113
+ * the declaration or the inputs cannot produce a faithful release.
114
+ *
115
+ * `target` is rendered from the declaration. `current` is whatever the caller
116
+ * passes as the running release and is never synthesized.
117
+ */
118
+ export declare function renderSmrtAppChartValues(declaration: ComposeDeploymentDeclaration, inputs: SmrtAppChartInputs): Record<string, unknown>;
119
+ export {};
120
+ //# sourceMappingURL=chart-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart-values.d.ts","sourceRoot":"","sources":["../../src/deployment/chart-values.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAIpD,QAAA,MAAM,YAAY,6CAA8C,CAAC;AAGjE,QAAA,MAAM,mBAAmB,6GAMf,CAAC;AAEX,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAA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;KAChC,CAAC;IACF,mEAAmE;IACnE,GAAG,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,qBAAqB,CAAC;QACjC,6BAA6B,EAAE,MAAM,CAAC;QACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvD,SAAS,CAAC,EAAE;QACV,SAAS,CAAC,EAAE,qBAAqB,CAAC;QAClC,6BAA6B,CAAC,EAAE,MAAM,CAAC;KACxC,CAAC;IACF,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,6FAA6F;IAC7F,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzE;AAED,0EAA0E;AAC1E,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;gBAEhB,QAAQ,EAAE,MAAM,EAAE;CAO/B;AAmVD;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,4BAA4B,EACzC,MAAM,EAAE,kBAAkB,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkHzB"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * The compose deployment contract: a Compose file annotated with
3
+ * `x-happyvertical` extension fields is an application's deployment
4
+ * declaration. Compose ignores `x-` keys, so the same file runs locally, on a
5
+ * self-hosted box, and on a platform that reads the annotations.
6
+ *
7
+ * This module validates a parsed Compose document against contract version 1
8
+ * and the supported platform subset, and resolves it into a plain declaration
9
+ * that a platform composer or the `smrt-app` chart renderer consumes. It does
10
+ * no I/O and has no Node dependency: the caller parses the YAML.
11
+ *
12
+ * The published JSON Schema (`schemas/x-happyvertical.v1.schema.json`) covers
13
+ * the shape of the annotations. The rules that span services live here.
14
+ */
15
+ /** The Compose extension key the contract lives under. */
16
+ export declare const X_HAPPYVERTICAL_KEY = "x-happyvertical";
17
+ /** The contract version this module validates. */
18
+ export declare const X_HAPPYVERTICAL_VERSION = 1;
19
+ /** `$id` of the published JSON Schema for {@link X_HAPPYVERTICAL_VERSION}. */
20
+ export declare const X_HAPPYVERTICAL_SCHEMA_ID = "https://s-m-r-t.dev/schemas/x-happyvertical/v1.schema.json";
21
+ /** Platform presets a version 1 declaration may name. */
22
+ export declare const X_HAPPYVERTICAL_PRESETS: readonly ["smrt"];
23
+ /** Roles a service the application runs may take. */
24
+ export declare const X_HAPPYVERTICAL_ROLES: readonly ["web", "worker"];
25
+ /** Platform services a local container may stand in for. */
26
+ export declare const X_HAPPYVERTICAL_BINDINGS: readonly ["postgres", "bucket", "email", "ai"];
27
+ export type XHappyVerticalPreset = (typeof X_HAPPYVERTICAL_PRESETS)[number];
28
+ export type XHappyVerticalRole = (typeof X_HAPPYVERTICAL_ROLES)[number];
29
+ export type XHappyVerticalBinding = (typeof X_HAPPYVERTICAL_BINDINGS)[number];
30
+ /**
31
+ * `declare` checks the file as it sits in the repository: services may be
32
+ * built locally or use tags. `deploy` additionally requires every web and
33
+ * worker service to resolve to an image digest, because the platform deploys
34
+ * what CI already built and never runs `build:`.
35
+ */
36
+ export type ComposeDeploymentStage = 'declare' | 'deploy';
37
+ export interface ComposeDeploymentOptions {
38
+ /** Defaults to `declare`. */
39
+ stage?: ComposeDeploymentStage;
40
+ /**
41
+ * Image digest references by service name (`registry/name@sha256:…`),
42
+ * normally the digests a release carries. They take precedence over the
43
+ * `image:` written in the file.
44
+ */
45
+ images?: Record<string, string>;
46
+ }
47
+ export type ComposeDeploymentIssueCode = 'document-invalid' | 'not-self-contained' | 'contract-missing' | 'contract-invalid' | 'version-unsupported' | 'preset-unknown' | 'domain-invalid' | 'migrate-missing' | 'migrate-invalid' | 'migrate-service-not-role' | 'services-missing' | 'service-invalid' | 'service-name-invalid' | 'annotation-invalid' | 'role-and-binding' | 'role-unknown' | 'binding-unknown' | 'binding-duplicate' | 'binding-with-health' | 'binding-no-local-image' | 'health-missing' | 'health-invalid' | 'worker-health-needs-command' | 'web-service-count' | 'ingress-port-count' | 'ingress-port-invalid' | 'worker-publishes-port' | 'service-no-image' | 'image-not-digest' | 'image-for-unknown-service' | 'privileged' | 'host-network' | 'volume-not-declared' | 'volume-not-plain' | 'command-not-list' | 'interpolated-value' | 'merge-key-unresolved' | 'local-only-service';
48
+ export interface ComposeDeploymentIssue {
49
+ code: ComposeDeploymentIssueCode;
50
+ severity: 'error' | 'warning';
51
+ /** Where in the Compose file the problem is, for example `services.web.ports`. */
52
+ path: string;
53
+ /** The service the issue belongs to, when it belongs to one. */
54
+ service?: string;
55
+ /** What is wrong, in plain language. */
56
+ message: string;
57
+ /** What to change. */
58
+ fix: string;
59
+ }
60
+ export type ComposeDeploymentHealth = {
61
+ path: string;
62
+ } | {
63
+ command: string[];
64
+ };
65
+ export interface ComposeDeploymentVolume {
66
+ /** Name of the volume declared under top-level `volumes:`. */
67
+ name: string;
68
+ /** Path the volume is mounted at inside the container. */
69
+ target: string;
70
+ readOnly: boolean;
71
+ }
72
+ export interface ComposeDeploymentWorkload {
73
+ name: string;
74
+ role: XHappyVerticalRole;
75
+ /**
76
+ * At the `deploy` stage, always an image digest reference. At the `declare`
77
+ * stage, the `image:` written in the file, absent for a service that is
78
+ * only built locally or whose image is interpolated (contains `$`).
79
+ */
80
+ image?: string;
81
+ /**
82
+ * Present only when the Compose file sets `entrypoint`; an empty list means
83
+ * the image's own entrypoint is ignored. Absent means the image's entrypoint
84
+ * runs, with `command` as its arguments, exactly as Compose does.
85
+ */
86
+ entrypoint?: string[];
87
+ /**
88
+ * Present only when the Compose file sets `command`; an empty list means
89
+ * the image's default command is discarded. Absent means the image's
90
+ * default command runs.
91
+ */
92
+ command?: string[];
93
+ /** The ingress port. Present on the web service only. */
94
+ port?: number;
95
+ health: ComposeDeploymentHealth;
96
+ volumes: ComposeDeploymentVolume[];
97
+ }
98
+ export interface ComposeDeploymentBinding {
99
+ /** The Compose service name of the local stand-in. */
100
+ name: string;
101
+ kind: XHappyVerticalBinding;
102
+ }
103
+ export interface ComposeDeploymentMigration {
104
+ /** The web or worker service whose image runs the migration. */
105
+ service: string;
106
+ command: string[];
107
+ /** Same meaning as {@link ComposeDeploymentWorkload.image}. */
108
+ image?: string;
109
+ }
110
+ /** The resolved declaration. Environment values are deliberately not part of it. */
111
+ export interface ComposeDeploymentDeclaration {
112
+ version: typeof X_HAPPYVERTICAL_VERSION;
113
+ preset: XHappyVerticalPreset;
114
+ stage: ComposeDeploymentStage;
115
+ /** Top-level Compose `name:`, when the file sets a literal one (no `$`). */
116
+ name?: string;
117
+ domain?: string;
118
+ migrate: ComposeDeploymentMigration;
119
+ workloads: ComposeDeploymentWorkload[];
120
+ bindings: ComposeDeploymentBinding[];
121
+ /** Services with no annotation. They run locally and are never deployed. */
122
+ localOnly: string[];
123
+ }
124
+ export interface ComposeDeploymentResult {
125
+ ok: boolean;
126
+ errors: ComposeDeploymentIssue[];
127
+ warnings: ComposeDeploymentIssue[];
128
+ /** Present only when there are no errors. */
129
+ declaration?: ComposeDeploymentDeclaration;
130
+ }
131
+ /**
132
+ * Validate a parsed Compose document as a deployment declaration.
133
+ *
134
+ * Errors are things the platform refuses. Warnings never block: they report
135
+ * services that only run locally. `declaration` is present when there are no
136
+ * errors.
137
+ */
138
+ export declare function validateComposeDeployment(document: unknown, options?: ComposeDeploymentOptions): ComposeDeploymentResult;
139
+ /** Render a validation result as plain text for a terminal or a log. */
140
+ export declare function formatComposeDeploymentReport(result: ComposeDeploymentResult): string;
141
+ //# sourceMappingURL=compose-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compose-contract.d.ts","sourceRoot":"","sources":["../../src/deployment/compose-contract.ts"],"names":[],"mappings":"AAAA;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CAAC;CAC7B;AAED,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,oFAAoF;AACpF,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,OAAO,uBAAuB,CAAC;IACxC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,KAAK,EAAE,sBAAsB,CAAC;IAC9B,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,0BAA0B,CAAC;IACpC,SAAS,EAAE,yBAAyB,EAAE,CAAC;IACvC,QAAQ,EAAE,wBAAwB,EAAE,CAAC;IACrC,4EAA4E;IAC5E,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,6CAA6C;IAC7C,WAAW,CAAC,EAAE,4BAA4B,CAAC;CAC5C;AAy2BD;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,OAAO,EACjB,OAAO,GAAE,wBAA6B,GACrC,uBAAuB,CA8SzB;AAOD,wEAAwE;AACxE,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,uBAAuB,GAC9B,MAAM,CAyCR"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `@happyvertical/smrt-config/deployment`: the compose deployment contract.
3
+ *
4
+ * A Compose file annotated with `x-happyvertical` extension fields declares
5
+ * how an application is deployed. This entry validates that declaration,
6
+ * resolves it into plain data, and renders it for the `smrt-app` chart. It is
7
+ * browser-safe and separate from the configuration loader.
8
+ */
9
+ export { renderSmrtAppChartValues, SMRT_RELEASE_GUARD, type SmrtAppChartInputs, type SmrtAppChartProbeTiming, type SmrtAppChartResources, type SmrtAppChartSecretEnv, type SmrtAppChartSecretRef, SmrtAppChartValuesError, type SmrtAppChartWorkerRole, type SmrtAppChartWorkloadInputs, } from './deployment/chart-values.js';
10
+ export { type ComposeDeploymentBinding, type ComposeDeploymentDeclaration, type ComposeDeploymentHealth, type ComposeDeploymentIssue, type ComposeDeploymentIssueCode, type ComposeDeploymentMigration, type ComposeDeploymentOptions, type ComposeDeploymentResult, type ComposeDeploymentStage, type ComposeDeploymentVolume, type ComposeDeploymentWorkload, formatComposeDeploymentReport, validateComposeDeployment, X_HAPPYVERTICAL_BINDINGS, X_HAPPYVERTICAL_KEY, X_HAPPYVERTICAL_PRESETS, X_HAPPYVERTICAL_ROLES, X_HAPPYVERTICAL_SCHEMA_ID, X_HAPPYVERTICAL_VERSION, type XHappyVerticalBinding, type XHappyVerticalPreset, type XHappyVerticalRole, } from './deployment/compose-contract.js';
11
+ //# sourceMappingURL=deployment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../src/deployment.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,uBAAuB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,GAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,MAAM,kCAAkC,CAAC"}