@rivus/gateway 0.18.2 → 0.19.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.
@@ -4,8 +4,8 @@ import { fileURLToPath } from "node:url";
4
4
  import { Cause, Deferred, Effect, Exit, Semaphore } from "effect";
5
5
  import { chmod, mkdir, open, readFile, rename, stat, unlink } from "node:fs/promises";
6
6
  import { randomUUID } from "node:crypto";
7
- import { createConnection, createServer } from "node:net";
8
7
  import { readPersistenceFile } from "@rivus/platform/persistence";
8
+ import { createConnection, createServer } from "node:net";
9
9
  //#region src/platform/values/deep-freeze.ts
10
10
  function deepFreeze(value) {
11
11
  if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
@@ -574,6 +574,7 @@ const gatewayPackageDirectory = fileURLToPath(packageRootUrl);
574
574
  const gatewayPackageManifestPath = fileURLToPath(new URL("package.json", packageRootUrl));
575
575
  const gatewayTemplateDirectory = fileURLToPath(new URL("templates/", packageRootUrl));
576
576
  const gatewaySkillsDirectory = fileURLToPath(new URL("skills/", packageRootUrl));
577
+ const gatewayAudioTranscriberAssetDirectory = fileURLToPath(new URL("assets/audio-transcriber/", packageRootUrl));
577
578
  //#endregion
578
579
  //#region src/adapters/cli/model/rivus-model-cli-protocol.ts
579
580
  const RIVUS_MODEL_CLI_USAGE = `Usage:
@@ -1199,7 +1200,7 @@ function parseLockOwner(value) {
1199
1200
  //#endregion
1200
1201
  //#region src/platform/project/setup/release-descriptor.ts
1201
1202
  const RIVUS_RELEASE_DESCRIPTOR = Object.freeze({
1202
- version: "0.18.2",
1203
+ version: "0.19.0",
1203
1204
  dependencies: Object.freeze({
1204
1205
  "@earendil-works/pi-coding-agent": "0.84.4",
1205
1206
  "@larksuiteoapi/node-sdk": "1.74.0",
@@ -1288,5 +1289,17 @@ function invokeRuntimeControl(runtime, control) {
1288
1289
  return runtime.pipe(Effect.flatMap((selected) => selected ? control(selected) ?? Effect.succeed(false) : Effect.succeed(false)));
1289
1290
  }
1290
1291
  //#endregion
1291
- export { deepFreeze as S, loadMergedLocalEnvFile as _, createRivusModelManagementSocketServer as a, validateRivusDeploymentManifest as b, parseRivusModelCliArguments as c, gatewayPackageDirectory as d, gatewayPackageManifestPath as f, loadRivusDaemonConfig as g, loadRivusDeploymentManifest as h, RIVUS_RELEASE_DESCRIPTOR as i, renderRivusModelCliArgumentError as l, gatewayTemplateDirectory as m, disposeRuntimeCacheEntries as n, createRivusModelManagementFailure as o, gatewaySkillsDirectory as p, invokeRuntimeControl as r, createRivusModelManagementWireRequest as s, createRuntimeCache as t, renderRivusModelCliHelp as u, resolveFeishuEndpointCredentials as v, validateRivusProjectSpaceDeployment as x, InvalidRivusProjectSpace as y };
1292
+ //#region src/bootstrap/daemon/rivus-home-deployment-env.ts
1293
+ /**
1294
+ * Holds the Home directory of a daemon that a Home command (`rivus start`, `status`, `check-config`) runs, and marks
1295
+ * the deployment as a Home deployment. Only those commands set it: a project deployment drops it from the inherited
1296
+ * environment and from its env file, so an operator's exported RIVUS_HOME never turns a project into a Home.
1297
+ */
1298
+ const RIVUS_HOME_DEPLOYMENT_ENV = "RIVUS_HOME_DEPLOYMENT_DIR";
1299
+ function withoutRivusHomeDeployment(env) {
1300
+ const { [RIVUS_HOME_DEPLOYMENT_ENV]: _homeDirectory, ...rest } = env;
1301
+ return rest;
1302
+ }
1303
+ //#endregion
1304
+ export { validateRivusDeploymentManifest as C, InvalidRivusProjectSpace as S, deepFreeze as T, gatewayTemplateDirectory as _, invokeRuntimeControl as a, loadMergedLocalEnvFile as b, createRivusModelManagementFailure as c, renderRivusModelCliArgumentError as d, renderRivusModelCliHelp as f, gatewaySkillsDirectory as g, gatewayPackageManifestPath as h, disposeRuntimeCacheEntries as i, createRivusModelManagementWireRequest as l, gatewayPackageDirectory as m, withoutRivusHomeDeployment as n, RIVUS_RELEASE_DESCRIPTOR as o, gatewayAudioTranscriberAssetDirectory as p, createRuntimeCache as r, createRivusModelManagementSocketServer as s, RIVUS_HOME_DEPLOYMENT_ENV as t, parseRivusModelCliArguments as u, loadRivusDeploymentManifest as v, validateRivusProjectSpaceDeployment as w, resolveFeishuEndpointCredentials as x, loadRivusDaemonConfig as y };
1292
1305