@north-light/crouter-api 0.3.270 → 0.3.273

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 CHANGED
@@ -46,6 +46,14 @@ autostart hook.
46
46
 
47
47
  The source lives in the [`crouter`](https://github.com/vallum-security/crouter)
48
48
  repo at `src/api/`; this package is a build-and-publish mirror of that subtree
49
- (it carries no source of its own). It is published by the `publish-api.yml`
50
- GitHub Action when a tag matching `api-vX.Y.Z` is pushed the tag version must
51
- match this package's `version`.
49
+ (it carries no source of its own). It is published by the `publish-api` job of
50
+ the `publish.yml` GitHub Action, in lockstep with `@north-light/crouter`: every
51
+ push to `main` bumps both to the same patch version and publishes both from the
52
+ same release commit.
53
+
54
+ To publish this package alone — a contract-only release, or a retry — run the
55
+ `Publish` workflow by hand with an `api_ref` naming the tag or sha to build. The
56
+ ref's version must match this package's `version`. It cannot live in its own
57
+ workflow file: npm's trusted publishing validates the workflow file the run
58
+ started in, so a second workflow would present a name no registration matches
59
+ and get no publish credential.
@@ -15,6 +15,8 @@ export declare function envModelExact(): boolean;
15
15
  * only when a caller needs the override itself — to check whether one is
16
16
  * set, or to propagate it verbatim into a child process's env. */
17
17
  export declare function envHomeOverride(): string | undefined;
18
+ /** The raw installed-runtime directory override, unresolved. */
19
+ export declare function envRuntimeHomeOverride(): string | undefined;
18
20
  /** Dead-provider watchdog timeout (`CRTR_STREAM_WATCHDOG_MS`), 5 minutes by
19
21
  * default. See `runtime/stream-watchdog.ts` for what it guards. */
20
22
  export declare function envStreamWatchdogMs(): number;
@@ -51,6 +51,10 @@ export function envModelExact() {
51
51
  export function envHomeOverride() {
52
52
  return process.env['CRTR_HOME'];
53
53
  }
54
+ /** The raw installed-runtime directory override, unresolved. */
55
+ export function envRuntimeHomeOverride() {
56
+ return process.env['CRTR_RUNTIME_HOME'];
57
+ }
54
58
  // Tuning
55
59
  /** Generic `Number(raw)` parse with a positive-finite guard, shared by every
56
60
  * millisecond tuning var below (each previously reimplemented this locally,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/crouter-api",
3
- "version": "0.3.270",
3
+ "version": "0.3.273",
4
4
  "description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, and the CrtrClient. Zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/api/index.js",