@north-light/api 0.3.522 → 0.3.523

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.
@@ -1,7 +1,4 @@
1
1
  export declare function isReservedEnvName(name: string): boolean;
2
- /** The app env store's reservation: `isReservedEnvName` minus the admitted
3
- * deployment names. Both its write and read paths use this one rule. */
4
- export declare function isReservedAppEnvName(name: string): boolean;
5
2
  /** Every stored variable NAME for a profile, sorted. Never returns values. */
6
3
  export declare function listProfileEnvNames(profileId: string): string[];
7
4
  /** Set one variable, replacing any prior value under the same name. Holds the
@@ -26,23 +26,13 @@ import { notFound, usage } from '../errors.js';
26
26
  * (hand-edited file, a pre-reservation write) is uniformly invisible rather
27
27
  * than trusted.
28
28
  *
29
- * Exception, app env store only (`isReservedAppEnvName`): the two names in
30
- * `APP_ENV_ADMITTED_CRTR_NAMES`. They are crtr-owned deployment settings (where
31
- * `crtr sys feedback` posts, and its bearer token) that must reach every node
32
- * of the app, and neither can redirect a broker's home, canvas or identity.
33
- * They are app-wide deployment config, so the per-profile store still refuses
34
- * them. */
29
+ * The deployment-wide feedback names are the only `CRTR_*` values stored
30
+ * anywhere; they live in their own store (`profiles/app-env-store.ts`). */
35
31
  const RESERVED_ENV_PREFIX = 'CRTR_';
36
32
  const RESERVED_ENV_EXACT_NAMES = new Set(['HOME']);
37
- const APP_ENV_ADMITTED_CRTR_NAMES = new Set(['CRTR_FEEDBACK_ENDPOINT', 'CRTR_FEEDBACK_TOKEN']);
38
33
  export function isReservedEnvName(name) {
39
34
  return name.startsWith(RESERVED_ENV_PREFIX) || RESERVED_ENV_EXACT_NAMES.has(name);
40
35
  }
41
- /** The app env store's reservation: `isReservedEnvName` minus the admitted
42
- * deployment names. Both its write and read paths use this one rule. */
43
- export function isReservedAppEnvName(name) {
44
- return isReservedEnvName(name) && !APP_ENV_ADMITTED_CRTR_NAMES.has(name);
45
- }
46
36
  /** NUL is the one byte no OS accepts in an env value — Node's own `spawn`
47
37
  * rejects it synchronously and echoes the full value in the thrown error, so
48
38
  * it must never reach storage or a spawn call. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/api",
3
- "version": "0.3.522",
3
+ "version": "0.3.523",
4
4
  "description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/api/index.js",