@kelviq/cli 0.1.1 → 0.2.0
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/README.md +13 -0
- package/dist/config-format/builders.d.ts +4 -5
- package/dist/config-format/builders.js +14 -7
- package/dist/config-format/builders.js.map +1 -1
- package/dist/config-format/index.d.ts +2 -2
- package/dist/config-format/index.js +1 -1
- package/dist/config-format/index.js.map +1 -1
- package/dist/config-format/load.js +84 -15
- package/dist/config-format/load.js.map +1 -1
- package/dist/config-format/schema.d.ts +290 -76
- package/dist/config-format/schema.js +100 -16
- package/dist/config-format/schema.js.map +1 -1
- package/dist/generated/openapi.json +4920 -1007
- package/dist/sync/diff.d.ts +5 -1
- package/dist/sync/diff.js +13 -0
- package/dist/sync/diff.js.map +1 -1
- package/dist/sync/to-config.js +7 -2
- package/dist/sync/to-config.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -103,6 +103,19 @@ UUIDs), but that resolution is sync's job, not something you write by hand.
|
|
|
103
103
|
The plan lifecycle (draft → publish) is deliberately absent from this
|
|
104
104
|
format: it describes desired state, not deployment state.
|
|
105
105
|
|
|
106
|
+
A plan can also carry `license: { enabled, activationLimit,
|
|
107
|
+
activationLimitEnabled, hasExpiry, durationValue, durationUnit }` — the
|
|
108
|
+
plan-level license-key issuance settings (the dashboard's "License keys"
|
|
109
|
+
section). `pull` captures it, `push`/`promote` diff and send it as one
|
|
110
|
+
object, and a plan that omits it leaves the remote settings untouched.
|
|
111
|
+
|
|
112
|
+
Fields like `taxCode`, `type`, `priceType`, `taxBehavior`, `reset`, and
|
|
113
|
+
`durationUnit` are
|
|
114
|
+
open enums: known values (like the ones above) get editor autocomplete, but
|
|
115
|
+
the API may accept additional values — some require enabling from the
|
|
116
|
+
Kelviq dashboard first. The CLI passes any value it doesn't recognize
|
|
117
|
+
through unchanged; the server validates it on `push`.
|
|
118
|
+
|
|
106
119
|
`kelviq pull` generates this same shape from a live environment's catalog
|
|
107
120
|
instead of you writing it by hand — the two are meant to be interchangeable
|
|
108
121
|
starting points.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { featureDefSchema, planDefSchema, productDefSchema, type FeatureDef, type PlanDef, type ProductDef } from './schema.js';
|
|
1
|
+
import { type FeatureDef, type PlanDef, type ProductDef } from './schema.js';
|
|
3
2
|
export type Kind = 'product' | 'feature' | 'plan';
|
|
4
3
|
/** A parsed def plus a non-enumerable `__kind` tag identifying which builder produced it. */
|
|
5
4
|
export type Branded<T, K extends Kind> = T & {
|
|
6
5
|
readonly __kind: K;
|
|
7
6
|
};
|
|
8
|
-
export declare function product(def:
|
|
9
|
-
export declare function feature(def:
|
|
10
|
-
export declare function plan(def:
|
|
7
|
+
export declare function product(def: ProductDef): Branded<ProductDef, 'product'>;
|
|
8
|
+
export declare function feature(def: FeatureDef): Branded<FeatureDef, 'feature'>;
|
|
9
|
+
export declare function plan(def: PlanDef): Branded<PlanDef, 'plan'>;
|
|
@@ -27,13 +27,20 @@ function parseOrThrow(schema, def, kind) {
|
|
|
27
27
|
}
|
|
28
28
|
return result.data;
|
|
29
29
|
}
|
|
30
|
-
// Each builder takes the schema's
|
|
31
|
-
// `
|
|
32
|
-
// checking and editor autocomplete (a misspelled `taxCod:` or
|
|
33
|
-
// field is a tsc error, not a surprise at runtime).
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
30
|
+
// Each builder takes the schema's `*Def` type (not `unknown`, not
|
|
31
|
+
// `z.input<...>`): this is what gives kelviq.config.ts authors compile-time
|
|
32
|
+
// field checking and editor autocomplete (a misspelled `taxCod:` or
|
|
33
|
+
// wrong-typed field is a tsc error, not a surprise at runtime). None of
|
|
34
|
+
// these schemas use `.transform()`, so a def's input and output shapes are
|
|
35
|
+
// identical except for the API-owned enum fields (taxCode, type, reset,
|
|
36
|
+
// priceType, taxBehavior) — those are open enums (CLI plan 019) and
|
|
37
|
+
// `z.input<...>` would collapse their known-value literals down to plain
|
|
38
|
+
// `string`, losing autocomplete; ./schema.ts's `*Def` types re-type just
|
|
39
|
+
// those fields to `Known | (string & {})` instead, which is why builders
|
|
40
|
+
// use them here rather than deriving a parameter type from the schema. The
|
|
41
|
+
// `parseOrThrow` / `safeParse` call below stays regardless — it's
|
|
42
|
+
// belt-and-suspenders, protecting ./load.ts when a config file's values are
|
|
43
|
+
// constructed dynamically and bypass these static types.
|
|
37
44
|
export function product(def) {
|
|
38
45
|
return brand(parseOrThrow(productDefSchema, def, 'product'), 'product');
|
|
39
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builders.js","sourceRoot":"","sources":["../../src/config-format/builders.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GAIjB,MAAM,aAAa,CAAC;AAOrB,SAAS,KAAK,CAAmC,KAAQ,EAAE,IAAO;IAChE,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE;QACrC,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,KAAK;KACpB,CAAC,CAAC;IACH,OAAO,KAAsB,CAAC;AAChC,CAAC;AAED,wGAAwG;AACxG,SAAS,YAAY,CAAC,GAAY;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAI,YAAY,IAAI,GAAG,EAAE,CAAC;QACnE,MAAM,EAAE,GAAI,GAA+B,CAAC,UAAU,CAAC;QACvD,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,EAAE,CAAC;IACzD,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,YAAY,CAAI,MAAoB,EAAE,GAAY,EAAE,IAAU;IACrE,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC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AAa,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { product, feature, plan } from './builders.js';
|
|
2
2
|
export type { Branded, Kind } from './builders.js';
|
|
3
|
-
export { featureDefSchema, entitlementDefSchema, priceDefSchema, planDefSchema, productDefSchema, kelviqConfigSchema, taxCodeSchema, featureTypeSchema, resetSchema, taxBehaviorSchema, priceTypeSchema, identifierSchema, } from './schema.js';
|
|
4
|
-
export type { FeatureDef, EntitlementDef, PriceDef, PlanDef, ProductDef, KelviqConfig, TaxCode, FeatureType, Reset, TaxBehavior, PriceType, } from './schema.js';
|
|
3
|
+
export { featureDefSchema, entitlementDefSchema, priceDefSchema, licenseDefSchema, planDefSchema, productDefSchema, kelviqConfigSchema, taxCodeSchema, featureTypeSchema, resetSchema, taxBehaviorSchema, priceTypeSchema, durationUnitSchema, identifierSchema, } from './schema.js';
|
|
4
|
+
export type { FeatureDef, EntitlementDef, PriceDef, LicenseDef, PlanDef, ProductDef, KelviqConfig, TaxCode, FeatureType, Reset, TaxBehavior, PriceType, DurationUnit, } from './schema.js';
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
// re-exported here — it's a CLI-internal concern (used by `pull`/`push`,
|
|
6
6
|
// plans 005/006), not part of what a user's config file imports.
|
|
7
7
|
export { product, feature, plan } from './builders.js';
|
|
8
|
-
export { featureDefSchema, entitlementDefSchema, priceDefSchema, planDefSchema, productDefSchema, kelviqConfigSchema, taxCodeSchema, featureTypeSchema, resetSchema, taxBehaviorSchema, priceTypeSchema, identifierSchema, } from './schema.js';
|
|
8
|
+
export { featureDefSchema, entitlementDefSchema, priceDefSchema, licenseDefSchema, planDefSchema, productDefSchema, kelviqConfigSchema, taxCodeSchema, featureTypeSchema, resetSchema, taxBehaviorSchema, priceTypeSchema, durationUnitSchema, identifierSchema, } from './schema.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config-format/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,6EAA6E;AAC7E,uEAAuE;AACvE,oEAAoE;AACpE,yEAAyE;AACzE,iEAAiE;AACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config-format/index.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,6EAA6E;AAC7E,uEAAuE;AACvE,oEAAoE;AACpE,yEAAyE;AACzE,iEAAiE;AACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
|
|
@@ -3,20 +3,32 @@
|
|
|
3
3
|
// NOT re-exported from ./index.ts, which is the public `@kelviq/cli/config`
|
|
4
4
|
// surface a user's config file imports from.
|
|
5
5
|
//
|
|
6
|
-
// Loading strategy:
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
6
|
+
// Loading strategy: bundle-and-import (the same pattern Vite/Vitest/tsup use
|
|
7
|
+
// for loading a user's config file at runtime). CLI plan 018 replaced two
|
|
8
|
+
// tsx-based loaders that both turned out to be compromised:
|
|
9
|
+
// - `tsImport()` (tsx/esm/api): on Windows, its scoped-namespace resolver
|
|
10
|
+
// emits a raw `C:\...?namespace=...` path for the config's nested bare
|
|
11
|
+
// imports (e.g. `@kelviq/cli/config`) instead of a file:// URL, which
|
|
12
|
+
// Node's ESM loader rejects with ERR_MODULE_NOT_FOUND (plan 018, the bug
|
|
13
|
+
// report).
|
|
14
|
+
// - tsx's global `register()` + plain `import()`: on Node >=22.15,
|
|
15
|
+
// collides with vitest's own `module.registerHooks()` — the stacked
|
|
16
|
+
// loader hooks corrupt nested absolute-URL resolution and broke 46
|
|
17
|
+
// tests (plan 018 v1, STOPPED).
|
|
18
|
+
// Neither replacement may use Node's ESM loader hooks. Instead: esbuild
|
|
19
|
+
// bundles the config file (inlining any relative imports it has, leaving
|
|
20
|
+
// bare specifiers — `@kelviq/cli/config`, node builtins — external) into
|
|
21
|
+
// one self-contained ESM text; we write that text to a uniquely-named temp
|
|
22
|
+
// file NEXT TO the original config (so its external bare imports resolve
|
|
23
|
+
// through the user's own node_modules, exactly as if the config itself had
|
|
24
|
+
// been run directly); `import()` that temp file by its file:// URL via
|
|
25
|
+
// node:url; and delete it in a `finally`. No loader hooks, no namespaces —
|
|
26
|
+
// nothing for Windows (or vitest) to mangle. Do not reintroduce tsx here.
|
|
27
|
+
import { randomUUID } from 'node:crypto';
|
|
28
|
+
import { existsSync } from 'node:fs';
|
|
29
|
+
import { rm, writeFile } from 'node:fs/promises';
|
|
18
30
|
import { pathToFileURL } from 'node:url';
|
|
19
|
-
import {
|
|
31
|
+
import { build } from 'esbuild';
|
|
20
32
|
/**
|
|
21
33
|
* Dynamically loads `path` (a `.ts` or `.js` kelviq config file) and
|
|
22
34
|
* collects every exported value branded by `product()`/`feature()`/`plan()`
|
|
@@ -30,8 +42,7 @@ import { tsImport } from 'tsx/esm/api';
|
|
|
30
42
|
* remotely only.
|
|
31
43
|
*/
|
|
32
44
|
export async function loadConfigFile(path) {
|
|
33
|
-
const
|
|
34
|
-
const mod = (await tsImport(fileUrl, import.meta.url));
|
|
45
|
+
const mod = await bundleAndImport(path);
|
|
35
46
|
const products = [];
|
|
36
47
|
const features = [];
|
|
37
48
|
const plans = [];
|
|
@@ -52,6 +63,64 @@ export async function loadConfigFile(path) {
|
|
|
52
63
|
const warnings = collectReferenceWarnings(products, features, plans);
|
|
53
64
|
return { config: { products, features, plans }, warnings };
|
|
54
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Bundles `path` with esbuild, writes the result to a throwaway `.tmp.mjs`
|
|
68
|
+
* sibling, imports it, and removes it — success or failure. The temp file's
|
|
69
|
+
* directory (same as `path`) is load-bearing: it's how the bundle's
|
|
70
|
+
* external bare imports (e.g. `@kelviq/cli/config`) find the user project's
|
|
71
|
+
* `node_modules` via normal Node resolution.
|
|
72
|
+
*/
|
|
73
|
+
async function bundleAndImport(path) {
|
|
74
|
+
if (!existsSync(path)) {
|
|
75
|
+
throw new Error(`Config file not found: ${path}`);
|
|
76
|
+
}
|
|
77
|
+
const bundled = await bundleConfig(path);
|
|
78
|
+
const tempPath = `${path}.${randomUUID()}.tmp.mjs`;
|
|
79
|
+
try {
|
|
80
|
+
await writeFile(tempPath, bundled, 'utf8');
|
|
81
|
+
return (await import(pathToFileURL(tempPath).href));
|
|
82
|
+
}
|
|
83
|
+
finally {
|
|
84
|
+
await rm(tempPath, { force: true });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/** Runs esbuild and returns the bundled ESM text, or throws a clean one-line error. */
|
|
88
|
+
async function bundleConfig(path) {
|
|
89
|
+
try {
|
|
90
|
+
const result = await build({
|
|
91
|
+
entryPoints: [path],
|
|
92
|
+
bundle: true,
|
|
93
|
+
format: 'esm',
|
|
94
|
+
platform: 'node',
|
|
95
|
+
packages: 'external',
|
|
96
|
+
write: false,
|
|
97
|
+
// We format and throw our own clean one-line error below — don't let
|
|
98
|
+
// esbuild additionally print its own colorized error/code-frame to
|
|
99
|
+
// stderr on a build failure.
|
|
100
|
+
logLevel: 'silent',
|
|
101
|
+
});
|
|
102
|
+
// `outputFiles` is only absent when `write` isn't `false` — it is here.
|
|
103
|
+
return result.outputFiles[0].text;
|
|
104
|
+
}
|
|
105
|
+
catch (err) {
|
|
106
|
+
throw new Error(`Failed to load config file "${path}": ${formatEsbuildError(err)}`, { cause: err });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/** Reduces an esbuild `BuildFailure` to a single readable line (file:line: message), never a raw stack. */
|
|
110
|
+
function formatEsbuildError(err) {
|
|
111
|
+
const errors = isBuildFailure(err) ? err.errors : undefined;
|
|
112
|
+
if (errors && errors.length > 0) {
|
|
113
|
+
return errors.map(formatEsbuildMessage).join('; ');
|
|
114
|
+
}
|
|
115
|
+
return err instanceof Error ? err.message : String(err);
|
|
116
|
+
}
|
|
117
|
+
function formatEsbuildMessage(message) {
|
|
118
|
+
const loc = message.location;
|
|
119
|
+
return loc ? `${loc.file}:${loc.line}:${loc.column}: ${message.text}` : message.text;
|
|
120
|
+
}
|
|
121
|
+
function isBuildFailure(err) {
|
|
122
|
+
return err instanceof Error && Array.isArray(err.errors);
|
|
123
|
+
}
|
|
55
124
|
function requireUniqueIdentifiers(defs, kind) {
|
|
56
125
|
const seen = new Set();
|
|
57
126
|
for (const def of defs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/config-format/load.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,6EAA6E;AAC7E,4EAA4E;AAC5E,6CAA6C;AAC7C,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/config-format/load.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,6EAA6E;AAC7E,4EAA4E;AAC5E,6CAA6C;AAC7C,EAAE;AACF,6EAA6E;AAC7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