@vxil/cli 0.4.1 → 0.4.3

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.
@@ -10,7 +10,7 @@ export declare const HOOK_LIMITS: {
10
10
  readonly maxReadHooksPerCollection: 10;
11
11
  };
12
12
  /** The ONLY root variables an expression may reference. `caller` is the VERIFIED
13
- * end-user principal (docs/end-user-principals-design.md §5.6) — read-only and
13
+ * end-user principal (https://vxil.com/docs/guide/09-security-and-multitenancy) — read-only and
14
14
  * populated ONLY on the READ path (runReadHooks); on the write path and in
15
15
  * server-caller mode it is null, exactly like `before` on a create. It carries
16
16
  * `caller.endUserId` (the verified session sub, or null) and `caller.principal`
package/dist/config.d.ts CHANGED
@@ -76,7 +76,7 @@ export type CoversFieldAttrs<Covered extends FieldAttrName> = [
76
76
  export interface CollectionDef {
77
77
  singular?: string;
78
78
  fields: Record<string, FieldDef>;
79
- /** End-user owner-scoping (docs/end-user-principals-design.md §5.1): names an
79
+ /** End-user owner-scoping (https://vxil.com/docs/guide/09-security-and-multitenancy): names an
80
80
  * existing `string` field on this collection that holds the owner (end-user)
81
81
  * id. When set, the cms worker auto-scopes owned reads/writes to the VERIFIED
82
82
  * end-user principal in end-user mode (default-deny) — and is a no-op in
@@ -138,9 +138,9 @@ export interface FunctionDef {
138
138
  * functions:write, secrets:write rejected; payments:write / notifications:send /
139
139
  * users:* allowed as owner-granted business scopes). */
140
140
  scopes?: string[];
141
- /** tenant_secrets refs injected under KEK_FUNCTIONS (productization). */
141
+ /** Names of tenant secrets injected into the function at invoke time. */
142
142
  secrets?: string[];
143
- /** Outbound-Worker host allowlist (deny-by-default egress guard). */
143
+ /** Outbound host allowlist (deny-by-default egress guard). */
144
144
  egressAllow?: string[];
145
145
  limits?: {
146
146
  cpuMs?: number;
@@ -171,7 +171,7 @@ export interface SeedSpec {
171
171
  email?: string;
172
172
  }[];
173
173
  }
174
- /** The released API majors (docs/feature-versioning.md §3), a CLOSED union —
174
+ /** The released API majors (see https://vxil.com/docs/guide/12-going-to-production), a CLOSED union —
175
175
  * `'v1'` is the only released major, so `apiVersion: 'v2'` is a COMPILE error
176
176
  * until a v2 GAs. `defineConfig` also validates it at runtime against
177
177
  * `RELEASED_API_VERSIONS`. */
@@ -183,7 +183,7 @@ export declare const RELEASED_API_VERSIONS: readonly ApiVersion[];
183
183
  export interface VxilConfig {
184
184
  /** target environment label; resolved to a baseUrl by `vxil link` / `--env`. */
185
185
  env?: string;
186
- /** Pin the API major the CLI targets (default `'v1'`, docs/feature-versioning.md).
186
+ /** Pin the API major the CLI targets (default `'v1'`; see https://vxil.com/docs/guide/12-going-to-production).
187
187
  * Path-major, per-platform: a breaking change ships as a new major on a new
188
188
  * path with a ≥6-month deprecation window. `VXIL_API_VERSION` overrides this
189
189
  * for a one-off invocation. */
package/dist/config.js CHANGED
@@ -3,7 +3,7 @@ var RELEASED_API_VERSIONS = ["v1"];
3
3
  function defineConfig(c) {
4
4
  if (c.apiVersion !== void 0 && !RELEASED_API_VERSIONS.includes(c.apiVersion)) {
5
5
  throw new Error(
6
- `vxil.config: apiVersion '${String(c.apiVersion)}' is not a released API major (released: ${RELEASED_API_VERSIONS.map((v) => `'${v}'`).join(", ")}). A new major ships as a new path with its own deprecation window \u2014 see docs/feature-versioning.md.`
6
+ `vxil.config: apiVersion '${String(c.apiVersion)}' is not a released API major (released: ${RELEASED_API_VERSIONS.map((v) => `'${v}'`).join(", ")}). A new major ships as a new path with its own deprecation window \u2014 see https://vxil.com/docs/guide/12-going-to-production.`
7
7
  );
8
8
  }
9
9
  return c;