@rivus/agent 0.13.2 → 0.14.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 +20 -15
- package/dist/acp.d.ts +40 -40
- package/dist/acp.js +71 -31
- package/dist/bootstrap/pi-feishu.d.ts +20 -0
- package/dist/bootstrap/pi-feishu.js +594 -0
- package/dist/{agent-loop.d.ts → chunks/agent-loop.d.ts} +293 -44
- package/dist/chunks/agent-loop.js +1272 -0
- package/dist/chunks/api.d.ts +70 -0
- package/dist/chunks/api.js +471 -0
- package/dist/{rivus-plugin.d.ts → chunks/api2.d.ts} +271 -120
- package/dist/chunks/api2.js +1331 -0
- package/dist/chunks/api3.d.ts +402 -0
- package/dist/chunks/index.d.ts +3662 -0
- package/dist/chunks/module.js +267 -0
- package/dist/chunks/pi-skill-tool.js +460 -0
- package/dist/chunks/pi-tool-proxy.d.ts +188 -0
- package/dist/chunks/pi.js +329 -0
- package/dist/{rivus-daemon-cli.js → chunks/rivus-daemon-cli.js} +2197 -1526
- package/dist/{rivus-plugin-testkit.d.ts → chunks/rivus-plugin-testkit.d.ts} +1 -1
- package/dist/{rivus-plugin-testkit.js → chunks/rivus-plugin-testkit.js} +11 -3
- package/dist/chunks/sha256-digest.js +12 -0
- package/dist/chunks/spi.d.ts +1 -0
- package/dist/chunks/spi.js +2 -0
- package/dist/chunks/src.js +9897 -0
- package/dist/cli.js +602 -93
- package/dist/index.d.ts +8 -3645
- package/dist/index.js +9 -10483
- package/dist/mcp.d.ts +3 -38
- package/dist/mcp.js +4 -114
- package/dist/pi.d.ts +95 -9
- package/dist/pi.js +3 -146
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/examples/pi-feishu-deployment.bootstrap.ts +35 -46
- package/examples/pi-feishu.bootstrap.ts +35 -20
- package/examples/rivus-starter.plugin.mjs +3 -1
- package/package.json +8 -2
- package/dist/agent-loop.js +0 -121
- package/dist/agent-memory.d.ts +0 -100
- package/dist/agent-memory.js +0 -114
- package/dist/background-session-authority.js +0 -224
- package/dist/background-session-input.js +0 -45
- package/dist/background-session-service.d.ts +0 -291
- package/dist/pi-tool-proxy.d.ts +0 -197
- package/dist/rivus-plugin-registry.js +0 -215
- package/dist/tool-input-digest.js +0 -128
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { i as createRivusPluginCatalog } from "./api.js";
|
|
2
|
+
import { n as createRivusHostToolDescriptorProvider, r as RIVUS_MEMORY_TOOL_ID, t as createRivusAgentCatalog } from "./module.js";
|
|
3
|
+
//#region src/adapters/compatibility/agent-catalog/rivus-agent-catalog.ts
|
|
4
|
+
function createCompatibleRivusAgentCatalog(options = {}) {
|
|
5
|
+
return createRivusAgentCatalog({ toolDescriptorProviders: [createRivusHostToolDescriptorProvider({ backgroundSessions: options.backgroundSessions === true })] });
|
|
6
|
+
}
|
|
7
|
+
function resolveRivusAgentDefinition(catalog, deployment, options = {}) {
|
|
8
|
+
return createCompatibleRivusAgentCatalog(options).resolve(catalog, deployment);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
3
11
|
//#region src/testing/rivus-plugin-testkit.ts
|
|
4
12
|
var RivusPluginConformanceError = class extends Error {
|
|
5
13
|
name = "RivusPluginConformanceError";
|
|
@@ -60,4 +68,4 @@ function createFakeRivusPlugin() {
|
|
|
60
68
|
};
|
|
61
69
|
}
|
|
62
70
|
//#endregion
|
|
63
|
-
export { assertRivusPluginConforms as n, createFakeRivusPlugin as r, RivusPluginConformanceError as t };
|
|
71
|
+
export { resolveRivusAgentDefinition as a, createCompatibleRivusAgentCatalog as i, assertRivusPluginConforms as n, createFakeRivusPlugin as r, RivusPluginConformanceError as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
2
|
+
//#region src/platform/identity/random-id.ts
|
|
3
|
+
function createRandomId() {
|
|
4
|
+
return randomUUID();
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/platform/identity/sha256-digest.ts
|
|
8
|
+
function createSha256Digest(value) {
|
|
9
|
+
return `sha256:${createHash("sha256").update(value).digest("hex")}`;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createRandomId as n, createSha256Digest as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|