@rivus/gateway 0.22.3 → 0.23.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/dist/bootstrap/feishu.d.ts +42 -3
- package/dist/bootstrap/feishu.js +12431 -12708
- package/dist/bootstrap/herdr-feishu.d.ts +8 -1
- package/dist/bootstrap/herdr-feishu.js +1 -1
- package/dist/chunks/dist.js +9052 -0
- package/dist/chunks/errors.js +13 -0
- package/dist/chunks/feishu-receive-message.js +1 -1
- package/dist/chunks/herdr-feishu-runtime.js +524 -415
- package/dist/chunks/public.d.ts +93 -63
- package/dist/chunks/public2.d.ts +0 -7
- package/dist/chunks/rivus-audio-process.js +5290 -0
- package/dist/chunks/rivus-deployment-cli-process.d.ts +136 -353
- package/dist/chunks/rivus-node-entrypoint.js +1244 -1624
- package/dist/chunks/superagent-worker-wire.js +226 -0
- package/dist/index.d.ts +12 -25
- package/dist/index.js +2 -1
- package/dist/mcp.js +109 -24
- package/dist/superagent.d.ts +194 -0
- package/dist/superagent.js +2 -0
- package/package.json +17 -5
- package/dist/chunks/automation-presentation.js +0 -263
- package/dist/chunks/rivus-home-deployment-env.js +0 -1916
|
@@ -1,15 +1,54 @@
|
|
|
1
|
-
import { c as CreateRivusDeploymentEndpointPortInput, d as RivusDeploymentEndpointPort, f as RivusDeploymentRuntimePort, l as CreateRivusDeploymentRuntimePortInput, o as CreateRivusDeploymentAutomationPortInput, p as RecoveryControl, s as CreateRivusDeploymentBackgroundSessionPortInput, t as RivusDeploymentBootstrapContext, u as RivusDeploymentBackgroundSessionPort } from "../chunks/rivus-deployment-cli-process.js";
|
|
2
1
|
import { _ as AutomationScheduler } from "../chunks/public.js";
|
|
3
|
-
import {
|
|
2
|
+
import { a as CreateRivusDeploymentAutomationPortInput, c as CreateRivusDeploymentRuntimePortInput, d as RivusDeploymentRuntimePort, l as RivusDeploymentBackgroundSessionPort, o as CreateRivusDeploymentBackgroundSessionPortInput, r as RecoveryControl, s as CreateRivusDeploymentEndpointPortInput, t as RivusDeploymentBootstrapContext, u as RivusDeploymentEndpointPort } from "../chunks/rivus-deployment-cli-process.js";
|
|
3
|
+
import "../chunks/public2.js";
|
|
4
|
+
import { Effect, Schema } from "effect";
|
|
5
|
+
import { AgentInvocationOrigin, AgentRunId, AgentRunUpdate, AttachmentAccess, SessionKey, UserInput } from "@rivus/runtime";
|
|
6
|
+
import "@rivus/platform/concurrency";
|
|
7
|
+
import "@rivus/runtime/pi";
|
|
8
|
+
import { ProcessLockPlatform } from "@rivus/agent-kit-collab/process-lock";
|
|
9
|
+
import { Client } from "@larksuiteoapi/node-sdk";
|
|
10
|
+
//#region ../superagent/dist/chunks/scheduled-automation-types.d.ts
|
|
11
|
+
//#region src/bootstrap/scheduled-automation-types.d.ts
|
|
12
|
+
interface ScheduledDelivery {
|
|
13
|
+
readonly recipientKey: string;
|
|
14
|
+
execute(at: Date): Effect.Effect<void, unknown>;
|
|
15
|
+
send(idempotencyKey: string, payload: Schema.Json): Effect.Effect<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
interface BoundScheduledAutomation {
|
|
18
|
+
runWorker(input: {
|
|
19
|
+
readonly granted: boolean;
|
|
20
|
+
readonly occurrence: string;
|
|
21
|
+
readonly workerId: string;
|
|
22
|
+
readonly text: string;
|
|
23
|
+
}): Effect.Effect<{
|
|
24
|
+
readonly finalText: string;
|
|
25
|
+
readonly runId: string;
|
|
26
|
+
}, unknown>;
|
|
27
|
+
enqueue(at: Date): Effect.Effect<void, unknown>;
|
|
28
|
+
reconcile(idempotencyKey: string): Effect.Effect<string | undefined, unknown>;
|
|
29
|
+
publish(idempotencyKey: string, payload: Schema.Json): Effect.Effect<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/bootstrap/deployment/automation-adapter.d.ts
|
|
33
|
+
type FeishuAutomationScheduler = Omit<AutomationScheduler, "runOccurrence" | "start"> & {
|
|
34
|
+
start(): Effect.Effect<void, unknown>;
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
4
37
|
//#region src/bootstrap/feishu.d.ts
|
|
5
38
|
/** Assemble the deployment adapters for a manifest-driven daemon. */
|
|
6
39
|
export declare function createRivusDeploymentAdapters(context: RivusDeploymentBootstrapContext): Promise<{
|
|
7
40
|
dispose: () => Promise<void>;
|
|
8
41
|
createRecoveryControl: () => Effect.Effect<RecoveryControl, unknown, never>;
|
|
9
42
|
createBackgroundSession: ((input: CreateRivusDeploymentBackgroundSessionPortInput) => Effect.Effect<RivusDeploymentBackgroundSessionPort, unknown, never>) | undefined;
|
|
10
|
-
createAutomation: (input: CreateRivusDeploymentAutomationPortInput) => Effect.Effect<
|
|
43
|
+
createAutomation: (input: CreateRivusDeploymentAutomationPortInput) => Effect.Effect<FeishuAutomationScheduler, unknown, never>;
|
|
11
44
|
createEndpoint: (input: CreateRivusDeploymentEndpointPortInput) => Effect.Effect<RivusDeploymentEndpointPort, unknown, never>;
|
|
12
45
|
createRuntime: (input: CreateRivusDeploymentRuntimePortInput) => Effect.Effect<RivusDeploymentRuntimePort, unknown, never>;
|
|
46
|
+
superagent?: {
|
|
47
|
+
bindScheduledAutomation(this: void, automationId: string, delivery: ScheduledDelivery): BoundScheduledAutomation;
|
|
48
|
+
start: () => Effect.Effect<boolean, unknown, never>;
|
|
49
|
+
stop: () => Effect.Effect<void, unknown, never>;
|
|
50
|
+
} | undefined;
|
|
13
51
|
}>;
|
|
14
52
|
//#endregion
|
|
53
|
+
export {};
|
|
15
54
|
export {};
|