@rivus/gateway 0.20.0 → 0.21.1
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 +9 -0
- package/assets/installation-policy.json +13 -0
- package/dist/bootstrap/feishu.d.ts +1 -1
- package/dist/bootstrap/feishu.js +2 -2
- package/dist/chunks/rivus-deployment-cli-process.d.ts +1 -1
- package/dist/chunks/rivus-home-deployment-env.js +187 -4
- package/dist/chunks/rivus-node-entrypoint.js +1658 -23
- package/dist/index.d.ts +35 -1
- package/package.json +7 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as AutomationPresentationKind, C as RivusAutomationInput, D as RivusAutomationTickContext, E as RivusAutomationTemplate, F as AutomationPresentationTableColumn, I as AutomationPresentationTrend, L as readAutomationPresentation, M as AutomationPresentationSource, N as AutomationPresentationTable, O as AutomationPresentation, P as AutomationPresentationTableCell, R as AutomationLineChart, S as RivusAutomationFailure, T as RivusAutomationRetryPolicy, _ as RivusPluginManifest, a as RivusDaemonEnv, b as RivusAgentProfile, g as RIVUS_PLUGIN_API_VERSION, h as RivusPluginRegistry, i as RivusHomeApi, j as AutomationPresentationSection, k as AutomationPresentationItem, m as RivusPluginCatalog, n as RivusDeploymentBootstrapFactory, p as RivusPlugin, r as RivusHome, v as ResolvedRivusAgentDefinition, w as RivusAutomationOutput, y as RivusAgentDeployment } from "./chunks/rivus-deployment-cli-process.js";
|
|
2
2
|
import { Effect } from "effect";
|
|
3
3
|
import { RivusMemoryScope, RivusResolvedToolDescriptor } from "@rivus/runtime";
|
|
4
4
|
//#region src/bootstrap/catalog/rivus-agent-catalog.d.ts
|
|
@@ -59,6 +59,34 @@ interface RivusDaemonCliOptions {
|
|
|
59
59
|
readonly stderr: RivusDaemonCliWriter;
|
|
60
60
|
readonly stdout: RivusDaemonCliWriter;
|
|
61
61
|
readonly pluginPackageManifestPath?: string;
|
|
62
|
+
readonly checkPlugins?: boolean;
|
|
63
|
+
readonly lifecycle?: {
|
|
64
|
+
readonly started: () => Promise<void>;
|
|
65
|
+
readonly stopped: () => Promise<void>;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/bootstrap/upgrade/upgrade-home.d.ts
|
|
70
|
+
interface UpgradeResult {
|
|
71
|
+
readonly status: "upgraded" | "current";
|
|
72
|
+
readonly version: string;
|
|
73
|
+
readonly previousVersion: string;
|
|
74
|
+
readonly home: string;
|
|
75
|
+
readonly service: string;
|
|
76
|
+
readonly pid: number;
|
|
77
|
+
readonly executable: string;
|
|
78
|
+
readonly backup?: string;
|
|
79
|
+
readonly operationId?: string;
|
|
80
|
+
}
|
|
81
|
+
interface UpgradeHomeInvocation {
|
|
82
|
+
readonly home: RivusHome;
|
|
83
|
+
readonly userHome: string;
|
|
84
|
+
readonly platform: NodeJS.Platform;
|
|
85
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
86
|
+
readonly pid: number;
|
|
87
|
+
readonly isProcessAlive: (pid: number) => boolean;
|
|
88
|
+
readonly signal?: AbortSignal;
|
|
89
|
+
readonly progress: (phase: string, detail: string) => void;
|
|
62
90
|
}
|
|
63
91
|
//#endregion
|
|
64
92
|
//#region src/bootstrap/cli/rivus-cli.d.ts
|
|
@@ -70,6 +98,12 @@ interface RivusCliOptions extends RivusDaemonCliOptions {
|
|
|
70
98
|
readonly nodeExecutable: string;
|
|
71
99
|
readonly nodeVersion: string;
|
|
72
100
|
readonly modelManagementClient?: RivusModelManagementSocketClient;
|
|
101
|
+
readonly runtimeProcess?: {
|
|
102
|
+
readonly pid: number;
|
|
103
|
+
readonly executable: string;
|
|
104
|
+
};
|
|
105
|
+
readonly upgradeHost?: Pick<UpgradeHomeInvocation, "pid" | "platform" | "isProcessAlive">;
|
|
106
|
+
readonly upgradeRunner?: (input: UpgradeHomeInvocation) => Promise<UpgradeResult>;
|
|
73
107
|
}
|
|
74
108
|
//#endregion
|
|
75
109
|
//#region src/bootstrap/cli/rivus-node-entrypoint.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivus/gateway",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Message gateway, channels, host binding, automation, and daemon assembly for Rivus.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -57,18 +57,21 @@
|
|
|
57
57
|
"@agentclientprotocol/sdk": "1.5.1",
|
|
58
58
|
"@larksuiteoapi/node-sdk": "1.74.0",
|
|
59
59
|
"@resvg/resvg-js": "2.6.2",
|
|
60
|
-
"@rivus/platform": "0.
|
|
61
|
-
"@rivus/runtime": "0.
|
|
60
|
+
"@rivus/platform": "0.21.1",
|
|
61
|
+
"@rivus/runtime": "0.21.1",
|
|
62
62
|
"axios": "1.20.0",
|
|
63
63
|
"effect": "^4.0.0",
|
|
64
64
|
"get-east-asian-width": "1.6.0",
|
|
65
|
-
"marked": "18.0.14"
|
|
65
|
+
"marked": "18.0.14",
|
|
66
|
+
"semver": "7.8.0",
|
|
67
|
+
"yaml": "2.9.1"
|
|
66
68
|
},
|
|
67
69
|
"publishConfig": {
|
|
68
70
|
"access": "public"
|
|
69
71
|
},
|
|
70
72
|
"devDependencies": {
|
|
71
73
|
"@types/node": "24.19.2",
|
|
74
|
+
"@types/semver": "7.7.1",
|
|
72
75
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
73
76
|
"@vitest/coverage-v8": "5.0.1",
|
|
74
77
|
"tar": "7.5.22",
|