@rivus/gateway 0.16.6 → 0.17.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.
- package/LICENSE +674 -21
- package/README.md +25 -0
- package/dist/bootstrap/herdr-feishu.d.ts +37 -0
- package/dist/bootstrap/herdr-feishu.js +856 -0
- package/dist/bootstrap/pi-feishu.d.ts +281 -16
- package/dist/bootstrap/pi-feishu.js +17314 -344
- package/dist/chunks/background-session-authority.js +2 -38
- package/dist/chunks/rivus-daemon-cli.d.ts +1115 -0
- package/dist/chunks/rivus-node-entrypoint.js +700 -819
- package/dist/chunks/{node-rivus-deployment-manifest.js → runtime-cache.js} +1116 -1475
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +1 -0
- package/dist/index.d.ts +65 -3
- package/dist/index.js +3 -1215
- package/dist/mcp.d.ts +7 -63
- package/dist/mcp.js +3 -250
- package/package.json +21 -13
- package/templates/a-share-briefing-analysis.mjs +3 -1
- package/templates/a-share-briefing-renderer.mjs +15 -5
- package/templates/a-share-index-evidence.mjs +9 -3
- package/templates/a-share-market-briefing.mjs +3 -1
- package/templates/a-share-overseas-evidence.mjs +12 -4
- package/templates/a-share-policy-evidence.mjs +30 -10
- package/templates/a-share-sector-evidence.mjs +3 -1
- package/templates/acp-stdio-proxy.mjs +10 -4
- package/templates/current-weather.mjs +36 -12
- package/templates/herdr-feishu.mjs +30 -0
- package/templates/html-drive-tools.mjs +36 -12
- package/templates/pi-feishu-deployment.bootstrap.ts +1 -3
- package/templates/pi-feishu.bootstrap.ts +1 -242
- package/templates/rivus-agents.plugin.mjs +3 -1
- package/dist/chunks/background-session-control-input.js +0 -45
- package/dist/chunks/background-session-service.d.ts +0 -390
- package/dist/chunks/index.d.ts +0 -4703
- package/dist/chunks/service.js +0 -12112
- package/templates/langfuse-drive-e2e.mjs +0 -175
package/README.md
CHANGED
|
@@ -4,3 +4,28 @@ Message Gateway and deployment control package for Rivus. It owns normalized mes
|
|
|
4
4
|
Feishu adapters, management, project initialization, and the Gateway CLI resources.
|
|
5
5
|
|
|
6
6
|
The package has no npm bin. Applications choose the public entrypoint or an explicit template resource.
|
|
7
|
+
|
|
8
|
+
The root exposes `createRivusPluginCatalog`, `resolveRivusAgentDefinition`, `RIVUS_PLUGIN_API_VERSION` and
|
|
9
|
+
`runRivusNodeEntrypoint`, plus nine plugin contracts. Catalog construction and resolution are implemented in Bootstrap.
|
|
10
|
+
Host, Deployment, Automation, Human, Inbox, Recovery, Delegation and presentation helpers remain internal; use the
|
|
11
|
+
published Bootstrap and MCP entrypoints for complete process graphs.
|
|
12
|
+
|
|
13
|
+
`@rivus/gateway/bootstrap/pi-feishu` provides `createRivusDeploymentAdapters` for manifest deployments and
|
|
14
|
+
`createRivusDaemonProcess` for standalone Pi/Feishu daemons. The Pi templates re-export these constructors; Gateway
|
|
15
|
+
assembles canonical Runtime execution through public package APIs. Standalone HTTP status is optional through
|
|
16
|
+
`RIVUS_STATUS_PORT`; Home/manifest deployments use their own status path.
|
|
17
|
+
|
|
18
|
+
Gateway is the sole owner of deployment templates, the starter Plugin and runtime-management Skill. Resolve
|
|
19
|
+
`@rivus/gateway/plugin/starter` and `@rivus/gateway/skills/runtime-management/SKILL.md` directly. Background-session
|
|
20
|
+
MCP uses `@rivus/gateway/mcp`; old Agent bootstrap, Plugin, Skill and MCP aliases are not available.
|
|
21
|
+
|
|
22
|
+
Pi deployment Bootstrap opens the Runtime JSONL Memory Repository and injects one canonical Effect Memory service.
|
|
23
|
+
The former Gateway Memory service factories are removed; use Runtime's public Repository and service constructors.
|
|
24
|
+
|
|
25
|
+
Gateway adapts real plugin tools to Runtime's canonical Effect Broker. Pi deployment Bootstrap and offline Recovery
|
|
26
|
+
open the canonical Runtime Ledger directly, and Human approval ports compose Effect. The former Gateway Promise
|
|
27
|
+
Broker and JSONL Ledger factories are removed; operation files retain their existing path and v1 format.
|
|
28
|
+
|
|
29
|
+
Bootstrap composes canonical Effect Host/Endpoint/Runtime factories, control and replay directly. WebSocket, SDK,
|
|
30
|
+
plugin and CLI boundaries retain their actual asynchronous calling conventions. Removing Compatibility adapters
|
|
31
|
+
does not change the JSON/JSONL historical readers or the durable delivery retry budget.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
//#region src/adapters/herdr/session/herdr-socket-client.d.ts
|
|
3
|
+
interface HerdrSessionConfig {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly socketPath: string;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/bootstrap/herdr-feishu.d.ts
|
|
9
|
+
export interface HerdrFeishuBridgeOptions {
|
|
10
|
+
readonly appId: string;
|
|
11
|
+
readonly appSecret: string;
|
|
12
|
+
readonly sessions?: readonly HerdrSessionConfig[];
|
|
13
|
+
readonly discoverSessionsIn?: string;
|
|
14
|
+
readonly allowedActors: readonly string[];
|
|
15
|
+
readonly allowedChats: readonly string[];
|
|
16
|
+
readonly menuChats?: Readonly<Record<string, string>>;
|
|
17
|
+
readonly stateDirectory: string;
|
|
18
|
+
readonly writable?: boolean;
|
|
19
|
+
readonly fontFiles?: readonly string[];
|
|
20
|
+
readonly onObservation?: (event: {
|
|
21
|
+
readonly type: string;
|
|
22
|
+
readonly messageId?: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function checkHerdrFeishuBridge(options: HerdrFeishuBridgeOptions): Promise<{
|
|
26
|
+
panels: number;
|
|
27
|
+
sessionsWithPanels: number;
|
|
28
|
+
unavailableSessions: string[];
|
|
29
|
+
writable: boolean;
|
|
30
|
+
feishuVerified: false;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function startHerdrFeishuBridge(options: HerdrFeishuBridgeOptions): Promise<{
|
|
33
|
+
stop: () => Promise<void>;
|
|
34
|
+
}>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export type { HerdrSessionConfig };
|
|
37
|
+
export {};
|