@rivus/gateway 0.22.1 → 0.22.2

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.
@@ -34,7 +34,7 @@ const messageFields = {
34
34
  chat_type: Schema.optional(Schema.String),
35
35
  create_time: Schema.optional(Schema.String),
36
36
  mentions: Schema.optional(Schema.Array(Schema.Struct({
37
- id: Schema.optional(Schema.Record(Schema.String, Schema.String)),
37
+ id: Schema.optional(Schema.Struct({ open_id: Schema.optional(Schema.String) })),
38
38
  key: Schema.optional(Schema.String),
39
39
  name: Schema.optional(Schema.String)
40
40
  }))),
@@ -435,7 +435,10 @@ interface FeishuReceiveMessagePayload {
435
435
  readonly root_id?: string;
436
436
  readonly message_type: string;
437
437
  readonly mentions?: ReadonlyArray<{
438
- readonly id?: Readonly<Record<string, string>>;
438
+ readonly id?: {
439
+ readonly open_id?: string;
440
+ readonly [key: string]: unknown;
441
+ };
439
442
  readonly key?: string;
440
443
  readonly name?: string;
441
444
  }>;
@@ -741,7 +741,7 @@ const gatewayAudioTranscriberAssetDirectory = fileURLToPath(new URL("assets/audi
741
741
  //#endregion
742
742
  //#region src/home/infra/adapters/project/release-descriptor.ts
743
743
  const RIVUS_RELEASE_DESCRIPTOR = Object.freeze({
744
- version: "0.22.1",
744
+ version: "0.22.2",
745
745
  dependencies: Object.freeze({
746
746
  "@earendil-works/pi-coding-agent": "0.84.4",
747
747
  "@larksuiteoapi/node-sdk": "1.74.0",
@@ -11,6 +11,7 @@ import { basename, delimiter, dirname, isAbsolute, join, relative, resolve, sep
11
11
  import { fileURLToPath, pathToFileURL } from "node:url";
12
12
  import { createNodePlatform } from "@rivus/agent-kit/node";
13
13
  import { access, chmod, constants, copyFile, link, lstat, mkdir, open, readFile, readdir, realpath, rename, rm, rmdir, stat, symlink, unlink, writeFile } from "node:fs/promises";
14
+ import { compare, minVersion, parse, satisfies, valid } from "semver";
14
15
  import { assertPathWithin, isNodeErrorWithCode, isPathWithin } from "@rivus/platform/filesystem";
15
16
  import { createConnection } from "node:net";
16
17
  import { randomUUID } from "node:crypto";
@@ -19,8 +20,7 @@ import { constants as constants$1, realpathSync } from "node:fs";
19
20
  import { spawn } from "node:child_process";
20
21
  import { isDeepStrictEqual } from "node:util";
21
22
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
22
- import { parse, stringify } from "yaml";
23
- import { compare, minVersion, parse as parse$1, satisfies, valid } from "semver";
23
+ import { parse as parse$1, stringify } from "yaml";
24
24
  //#region src/agent-catalog/domain/plugin/value-objects/rivus-plugin.ts
25
25
  const RIVUS_PLUGIN_API_VERSION = "1";
26
26
  var InvalidRivusPlugin = class extends Error {
@@ -1200,16 +1200,13 @@ function loadRivusHome(directoryPath) {
1200
1200
  }
1201
1201
  //#endregion
1202
1202
  //#region src/home/infra/adapters/doctor/rivus-home-doctor.ts
1203
- function checkNode$1(version) {
1204
- const [major, minor] = version.split(".").map(Number);
1205
- return major === 24 && Number.isInteger(minor) && minor >= 11 ? {
1206
- message: `Node.js ${version} satisfies the supported ^24.11 runtime`,
1207
- name: "node",
1208
- status: "pass"
1209
- } : {
1210
- message: `Node.js 24.11 or newer on major 24 is required; current version is ${version}`,
1203
+ function checkNodeRuntime(version) {
1204
+ const range = "^24.11.0 || ^26.13.1";
1205
+ const supported = satisfies(version, range);
1206
+ return {
1211
1207
  name: "node",
1212
- status: "fail"
1208
+ status: supported ? "pass" : "fail",
1209
+ message: supported ? `Node.js ${version} satisfies ${range}` : `Node.js ${range} is required; current version is ${version}`
1213
1210
  };
1214
1211
  }
1215
1212
  function checkWorkspace(home, findMissingWorkspacePaths) {
@@ -1239,7 +1236,7 @@ function report(directory, checks) {
1239
1236
  }
1240
1237
  function diagnoseRivusHome(input, options) {
1241
1238
  return Effect.gen(function* () {
1242
- const checks = [checkNode$1(input.nodeVersion)];
1239
+ const checks = [checkNodeRuntime(input.nodeVersion)];
1243
1240
  const loaded = yield* options.load(input.directory).pipe(Effect.result);
1244
1241
  if (Result.isFailure(loaded)) {
1245
1242
  checks.push({
@@ -2007,19 +2004,6 @@ const REQUIRED_DEPENDENCIES = Object.freeze([
2007
2004
  "@larksuiteoapi/node-sdk",
2008
2005
  "effect"
2009
2006
  ]);
2010
- function checkNode(version) {
2011
- const [major, minor] = version.split(".").map(Number);
2012
- if (major === 24 && Number.isInteger(minor) && minor >= 11) return {
2013
- message: `Node.js ${version} satisfies the supported ^24.11 runtime`,
2014
- name: "node",
2015
- status: "pass"
2016
- };
2017
- return {
2018
- message: `Node.js 24.11 or newer on major 24 is required; current version is ${version}`,
2019
- name: "node",
2020
- status: "fail"
2021
- };
2022
- }
2023
2007
  function checkManifest(directory) {
2024
2008
  return loadRivusDeploymentManifest(join(directory, "rivus.config.json")).pipe(Effect.flatMap((manifest) => Effect.gen(function* () {
2025
2009
  validateRivusDeploymentManifest(manifest);
@@ -2124,7 +2108,7 @@ function toError(error) {
2124
2108
  function diagnoseRivusProject(options) {
2125
2109
  return Effect.gen(function* () {
2126
2110
  const directory = resolve(options.directory);
2127
- const checks = [checkNode(options.nodeVersion)];
2111
+ const checks = [checkNodeRuntime(options.nodeVersion)];
2128
2112
  checks.push(yield* Effect.tryPromise({
2129
2113
  try: () => checkFiles(directory),
2130
2114
  catch: toError
@@ -4532,7 +4516,7 @@ async function optionalRecord(path, yaml = false) {
4532
4516
  throw new Error("The installed consumer configuration cannot be read");
4533
4517
  }
4534
4518
  try {
4535
- return record(yaml ? parse(text) : JSON.parse(text));
4519
+ return record(yaml ? parse$1(text) : JSON.parse(text));
4536
4520
  } catch {
4537
4521
  throw new Error("The installed consumer configuration is invalid");
4538
4522
  }
@@ -4626,7 +4610,7 @@ try { if (image.get_width() !== 1 || image.get_height() !== 1 || !image.get_byte
4626
4610
  finally { image.free(); }
4627
4611
  `;
4628
4612
  function stableVersion(value) {
4629
- const parsed = parse$1(value);
4613
+ const parsed = parse(value);
4630
4614
  return parsed !== null && parsed.version === value && parsed.prerelease.length === 0 && parsed.build.length === 0;
4631
4615
  }
4632
4616
  async function inspectInstalledRelease(command, cwd, env) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivus/gateway",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Message gateway, channels, host binding, automation, and daemon assembly for Rivus.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "license": "GPL-3.0-only",
11
11
  "engines": {
12
- "node": "^24.11.0"
12
+ "node": "^24.11.0 || ^26.13.1"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -63,8 +63,8 @@
63
63
  "@resvg/resvg-js": "2.6.2",
64
64
  "@rivus/agent-kit": "0.24.0",
65
65
  "@rivus/agent-kit-collab": "0.24.0",
66
- "@rivus/platform": "0.22.1",
67
- "@rivus/runtime": "0.22.1",
66
+ "@rivus/platform": "0.22.2",
67
+ "@rivus/runtime": "0.22.2",
68
68
  "axios": "1.20.0",
69
69
  "effect": "4.1.1",
70
70
  "get-east-asian-width": "1.7.0",