@rivus/gateway 0.22.3 → 0.24.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/README.md +3 -3
- package/assets/audio-transcriber/THIRD_PARTY_NOTICES.md +1 -3
- package/assets/audio-transcriber/fetch-model.mjs +29 -21
- package/assets/audio-transcriber/npm-shrinkwrap.json +5 -63
- package/assets/audio-transcriber/package.json +1 -1
- package/assets/installation-policy.json +9 -4
- package/dist/bootstrap/feishu.d.ts +42 -3
- package/dist/bootstrap/feishu.js +11964 -12401
- package/dist/bootstrap/herdr-feishu.d.ts +8 -1
- package/dist/bootstrap/herdr-feishu.js +2 -2
- package/dist/chunks/dist.js +10371 -0
- package/dist/chunks/errors.js +13 -0
- package/dist/chunks/herdr-feishu-runtime.js +128 -395
- package/dist/chunks/herdr-socket-client.js +496 -0
- package/dist/chunks/public.d.ts +93 -63
- package/dist/chunks/public2.d.ts +0 -7
- package/dist/chunks/rivus-deployment-cli-process.d.ts +136 -353
- package/dist/chunks/rivus-node-entrypoint.js +1543 -1579
- package/dist/chunks/superagent-worker-programs.js +7240 -0
- package/dist/chunks/superagent-worker-wire.js +233 -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 +301 -0
- package/dist/superagent.js +2 -0
- package/package.json +25 -11
- package/dist/chunks/automation-presentation.js +0 -263
- package/dist/chunks/feishu-receive-message.js +0 -113
- package/dist/chunks/rivus-home-deployment-env.js +0 -1916
package/dist/chunks/public.d.ts
CHANGED
|
@@ -1,40 +1,5 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
2
2
|
import { AgentInvocationOrigin, AgentRunId, AgentRunUpdate, AttachmentAccess, RegisteredRivusSkill, RegisteredRivusTool, RivusMemoryScope, RivusResolvedToolDescriptor, RivusRuntimeToolGrantSet, RivusRuntimeToolId, RivusSkillDescriptor, RivusSkillGrantSet, RivusToolDescriptor, RivusToolGrantSet, SessionKey, UserInput } from "@rivus/runtime";
|
|
3
|
-
//#region src/automation/domain/automation-occurrence/value-objects/occurrence-recovery.d.ts
|
|
4
|
-
interface AutomationOccurrenceRecovery {
|
|
5
|
-
readonly actorId: string;
|
|
6
|
-
readonly at: string;
|
|
7
|
-
readonly note: string;
|
|
8
|
-
readonly attemptLimit: number;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/automation/domain/automation-occurrence/value-objects/occurrence-stop.d.ts
|
|
12
|
-
interface AutomationOccurrenceStop {
|
|
13
|
-
readonly reason: "attempt-limit" | "terminal-failure";
|
|
14
|
-
readonly code?: string;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region src/automation/domain/automation-occurrence/aggregates/snapshot.d.ts
|
|
18
|
-
type AutomationOccurrenceStatus = "running" | "failed" | "generated" | "suppressed" | "delivered" | "stopped";
|
|
19
|
-
interface AutomationOccurrenceSnapshot {
|
|
20
|
-
readonly attempts: number;
|
|
21
|
-
readonly attemptLimit: number | null;
|
|
22
|
-
readonly automationId: string;
|
|
23
|
-
readonly body?: string;
|
|
24
|
-
readonly error?: string;
|
|
25
|
-
readonly mandateId: string;
|
|
26
|
-
readonly occurrence: string;
|
|
27
|
-
readonly presentation?: unknown;
|
|
28
|
-
readonly providerMessageId?: string;
|
|
29
|
-
readonly recoveries: ReadonlyArray<AutomationOccurrenceRecovery>;
|
|
30
|
-
readonly revision: number;
|
|
31
|
-
readonly runId?: string;
|
|
32
|
-
readonly status: AutomationOccurrenceStatus;
|
|
33
|
-
readonly stop?: AutomationOccurrenceStop;
|
|
34
|
-
readonly suppressionReason?: string;
|
|
35
|
-
readonly tickId: string;
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
3
|
//#region src/automation/domain/presentation/adapters/automation-line-chart.d.ts
|
|
39
4
|
interface AutomationLineChart {
|
|
40
5
|
readonly title: string;
|
|
@@ -101,15 +66,79 @@ interface AutomationPresentation {
|
|
|
101
66
|
}
|
|
102
67
|
declare function readAutomationPresentation(value: unknown): AutomationPresentation;
|
|
103
68
|
//#endregion
|
|
69
|
+
//#region src/automation/domain/automation-occurrence/occurrence-recovery.d.ts
|
|
70
|
+
interface AutomationOccurrenceRecovery {
|
|
71
|
+
readonly actorId: string;
|
|
72
|
+
readonly at: string;
|
|
73
|
+
readonly note: string;
|
|
74
|
+
readonly attemptLimit: number;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/automation/domain/automation-occurrence/occurrence-stop.d.ts
|
|
78
|
+
interface AutomationOccurrenceStop {
|
|
79
|
+
readonly reason: "attempt-limit" | "terminal-failure";
|
|
80
|
+
readonly code?: string;
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/automation/domain/automation-occurrence/snapshot.d.ts
|
|
84
|
+
type AutomationOccurrenceStatus = "running" | "failed" | "generated" | "suppressed" | "delivered" | "stopped";
|
|
85
|
+
interface AutomationOccurrenceSnapshot {
|
|
86
|
+
readonly attempts: number;
|
|
87
|
+
readonly attemptLimit: number | null;
|
|
88
|
+
readonly automationId: string;
|
|
89
|
+
readonly body?: string;
|
|
90
|
+
readonly error?: string;
|
|
91
|
+
readonly mandateId: string;
|
|
92
|
+
readonly occurrence: string;
|
|
93
|
+
readonly presentation?: unknown;
|
|
94
|
+
readonly providerMessageId?: string;
|
|
95
|
+
readonly recoveries: ReadonlyArray<AutomationOccurrenceRecovery>;
|
|
96
|
+
readonly revision: number;
|
|
97
|
+
readonly runId?: string;
|
|
98
|
+
readonly status: AutomationOccurrenceStatus;
|
|
99
|
+
readonly stop?: AutomationOccurrenceStop;
|
|
100
|
+
readonly suppressionReason?: string;
|
|
101
|
+
readonly tickId: string;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
104
|
//#region src/automation/application/ports.d.ts
|
|
105
105
|
interface ScheduledAutomationRunInput {
|
|
106
|
+
/** True for the attempt an operator recovery grant allowed. Only that attempt may resend input whose delivery to a
|
|
107
|
+
* worker could not be confirmed; ordinary retries must not repeat it. */
|
|
108
|
+
readonly granted: boolean;
|
|
106
109
|
readonly occurrence: string;
|
|
107
110
|
readonly sessionKey: string;
|
|
108
111
|
readonly text: string;
|
|
109
112
|
readonly tickId: string;
|
|
110
113
|
}
|
|
111
114
|
//#endregion
|
|
112
|
-
//#region src/automation/
|
|
115
|
+
//#region src/automation/application/use-cases/grant-occurrence-attempt.d.ts
|
|
116
|
+
/** The granted occurrence as the operator sees it: identity, counters and audit, no note. */
|
|
117
|
+
interface AutomationAttemptGrantResult {
|
|
118
|
+
readonly attemptLimit: number;
|
|
119
|
+
readonly attempts: number;
|
|
120
|
+
readonly automationId: string;
|
|
121
|
+
readonly grantedAt: string;
|
|
122
|
+
readonly grantedBy: string;
|
|
123
|
+
readonly occurrence: string;
|
|
124
|
+
readonly revision: number;
|
|
125
|
+
readonly status: "failed" | "generated";
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/automation/application/use-cases/list-stopped-occurrences.d.ts
|
|
129
|
+
/** A stopped occurrence as the operator sees it: no report body, error text or recovery notes. */
|
|
130
|
+
interface AutomationOccurrenceRecoveryItem {
|
|
131
|
+
readonly attempts: number;
|
|
132
|
+
readonly automationId: string;
|
|
133
|
+
readonly failureCode?: string;
|
|
134
|
+
readonly limit: number;
|
|
135
|
+
readonly occurrence: string;
|
|
136
|
+
readonly phase: "generation" | "delivery";
|
|
137
|
+
readonly revision: number;
|
|
138
|
+
readonly stopReason: "attempt-limit" | "terminal-failure";
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/automation/domain/automation-occurrence/rivus-automation-retry-policy.d.ts
|
|
113
142
|
interface RivusAutomationRetryPolicy {
|
|
114
143
|
readonly maxAttempts: number;
|
|
115
144
|
readonly terminalFailureCodes?: ReadonlyArray<string>;
|
|
@@ -119,11 +148,12 @@ interface RivusAutomationRetryPolicy {
|
|
|
119
148
|
interface AutomationScheduler {
|
|
120
149
|
running(): boolean;
|
|
121
150
|
runDue(at: Date): Effect.Effect<AutomationOccurrenceSnapshot | undefined, unknown>;
|
|
151
|
+
runOccurrence(at: Date): Effect.Effect<AutomationOccurrenceSnapshot, unknown>;
|
|
122
152
|
start(): Effect.Effect<void>;
|
|
123
153
|
stop(): Effect.Effect<void>;
|
|
124
154
|
}
|
|
125
155
|
//#endregion
|
|
126
|
-
//#region src/agent-
|
|
156
|
+
//#region src/agent-host/application/services/catalog/rivus-agent-definition.d.ts
|
|
127
157
|
interface RivusAgentProfile {
|
|
128
158
|
readonly id: string;
|
|
129
159
|
readonly displayName: string;
|
|
@@ -197,7 +227,30 @@ interface ResolvedRivusAgentDefinition {
|
|
|
197
227
|
readonly toolGrantSet: RivusToolGrantSet;
|
|
198
228
|
}
|
|
199
229
|
//#endregion
|
|
200
|
-
//#region src/agent-
|
|
230
|
+
//#region src/agent-host/application/ports.d.ts
|
|
231
|
+
interface AgentRuntimeInput {
|
|
232
|
+
readonly attachmentAccess?: AttachmentAccess;
|
|
233
|
+
readonly invocation?: AgentInvocationOrigin;
|
|
234
|
+
readonly onUpdate?: (update: AgentRunUpdate) => Effect.Effect<void, unknown>;
|
|
235
|
+
readonly payload?: unknown;
|
|
236
|
+
readonly sessionKey: SessionKey;
|
|
237
|
+
readonly text: string;
|
|
238
|
+
readonly userInput?: UserInput;
|
|
239
|
+
}
|
|
240
|
+
interface AgentRuntimeCancellation {
|
|
241
|
+
readonly reason?: string;
|
|
242
|
+
readonly runId: AgentRunId;
|
|
243
|
+
readonly sessionKey: SessionKey;
|
|
244
|
+
}
|
|
245
|
+
interface AgentRuntimeSteering {
|
|
246
|
+
readonly attachmentAccess?: AttachmentAccess;
|
|
247
|
+
readonly runId: AgentRunId;
|
|
248
|
+
readonly sessionKey: SessionKey;
|
|
249
|
+
readonly text: string;
|
|
250
|
+
readonly userInput?: UserInput;
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/agent-host/domain/plugin/rivus-plugin.d.ts
|
|
201
254
|
declare const RIVUS_PLUGIN_API_VERSION = "1";
|
|
202
255
|
interface RivusPluginManifest {
|
|
203
256
|
readonly apiVersion: string;
|
|
@@ -206,7 +259,7 @@ interface RivusPluginManifest {
|
|
|
206
259
|
}
|
|
207
260
|
interface RegisteredRivusPlugin extends RivusPluginManifest {}
|
|
208
261
|
//#endregion
|
|
209
|
-
//#region src/agent-
|
|
262
|
+
//#region src/agent-host/application/spi.d.ts
|
|
210
263
|
interface RivusAutomationTemplate {
|
|
211
264
|
readonly id: string;
|
|
212
265
|
readonly profileId: string;
|
|
@@ -251,28 +304,5 @@ interface RivusPluginCatalog {
|
|
|
251
304
|
snapshot(): RivusPluginCatalogSnapshot;
|
|
252
305
|
}
|
|
253
306
|
//#endregion
|
|
254
|
-
|
|
255
|
-
interface AgentRuntimeInput {
|
|
256
|
-
readonly attachmentAccess?: AttachmentAccess;
|
|
257
|
-
readonly invocation?: AgentInvocationOrigin;
|
|
258
|
-
readonly onUpdate?: (update: AgentRunUpdate) => Effect.Effect<void, unknown>;
|
|
259
|
-
readonly payload?: unknown;
|
|
260
|
-
readonly sessionKey: SessionKey;
|
|
261
|
-
readonly text: string;
|
|
262
|
-
readonly userInput?: UserInput;
|
|
263
|
-
}
|
|
264
|
-
interface AgentRuntimeCancellation {
|
|
265
|
-
readonly reason?: string;
|
|
266
|
-
readonly runId: AgentRunId;
|
|
267
|
-
readonly sessionKey: SessionKey;
|
|
268
|
-
}
|
|
269
|
-
interface AgentRuntimeSteering {
|
|
270
|
-
readonly attachmentAccess?: AttachmentAccess;
|
|
271
|
-
readonly runId: AgentRunId;
|
|
272
|
-
readonly sessionKey: SessionKey;
|
|
273
|
-
readonly text: string;
|
|
274
|
-
readonly userInput?: UserInput;
|
|
275
|
-
}
|
|
276
|
-
//#endregion
|
|
277
|
-
export { AutomationLineChart as A, AutomationPresentationSection as C, AutomationPresentationTableColumn as D, AutomationPresentationTableCell as E, AutomationPresentationTrend as O, AutomationPresentationKind as S, AutomationPresentationTable as T, AutomationScheduler as _, RivusAutomationInput as a, AutomationPresentation as b, RivusAutomationTickContext as c, RivusPluginRegistry as d, RIVUS_PLUGIN_API_VERSION as f, RivusAgentProfile as g, RivusAgentDeployment as h, RegisteredRivusAutomation as i, readAutomationPresentation as k, RivusPlugin as l, ResolvedRivusAgentDefinition as m, AgentRuntimeInput as n, RivusAutomationOutput as o, RivusPluginManifest as p, AgentRuntimeSteering as r, RivusAutomationTemplate as s, AgentRuntimeCancellation as t, RivusPluginCatalog as u, RivusAutomationRetryPolicy as v, AutomationPresentationSource as w, AutomationPresentationItem as x, ScheduledAutomationRunInput as y };
|
|
307
|
+
export { AutomationPresentationTrend as A, AutomationPresentationItem as C, AutomationPresentationTable as D, AutomationPresentationSource as E, AutomationLineChart as M, AutomationPresentationTableCell as O, AutomationPresentation as S, AutomationPresentationSection as T, AutomationScheduler as _, RivusAutomationTickContext as a, AutomationAttemptGrantResult as b, RivusPluginRegistry as c, AgentRuntimeCancellation as d, AgentRuntimeInput as f, RivusAgentProfile as g, RivusAgentDeployment as h, RivusAutomationTemplate as i, readAutomationPresentation as j, AutomationPresentationTableColumn as k, RIVUS_PLUGIN_API_VERSION as l, ResolvedRivusAgentDefinition as m, RivusAutomationInput as n, RivusPlugin as o, AgentRuntimeSteering as p, RivusAutomationOutput as r, RivusPluginCatalog as s, RegisteredRivusAutomation as t, RivusPluginManifest as u, RivusAutomationRetryPolicy as v, AutomationPresentationKind as w, ScheduledAutomationRunInput as x, AutomationOccurrenceRecoveryItem as y };
|
|
278
308
|
export {};
|
package/dist/chunks/public2.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
2
2
|
import { ProcessLockPlatform } from "@rivus/agent-kit-collab/process-lock";
|
|
3
|
-
//#region src/terminal-session/infra/adapters/herdr/herdr-socket-client.d.ts
|
|
4
|
-
interface HerdrSessionConfig {
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly socketPath: string;
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { HerdrSessionConfig as t };
|
|
10
3
|
export {};
|