@archipelagolab/lobi 1.0.9 → 1.0.11
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/index.ts +5 -7
- package/package.json +1 -1
- package/src/legacy-state.ts +1 -1
- package/src/matrix/deps.ts +1 -1
package/index.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
2
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
3
3
|
import type { ChannelPlugin, OpenClawPluginApi } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
|
+
import { matrixPlugin } from "./src/channel.js";
|
|
5
|
+
import { setMatrixRuntime } from "./src/runtime.js";
|
|
4
6
|
import { registerLobiCliMetadata } from "./cli-metadata.js";
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
// Load the channel plugin
|
|
8
|
-
const { matrixPlugin } = await import("./src/channel.js");
|
|
9
|
-
|
|
8
|
+
function registerLobiChannel(api: OpenClawPluginApi) {
|
|
10
9
|
// Register the channel
|
|
11
10
|
api.registerChannel({ plugin: matrixPlugin as ChannelPlugin });
|
|
12
11
|
|
|
13
12
|
// Load runtime
|
|
14
|
-
const { setMatrixRuntime } = await import("./src/runtime.js");
|
|
15
13
|
setMatrixRuntime(api.runtime);
|
|
16
14
|
|
|
17
15
|
// Register CLI metadata
|
|
@@ -50,7 +48,7 @@ export default definePluginEntry({
|
|
|
50
48
|
id: "lobi",
|
|
51
49
|
name: "Lobi",
|
|
52
50
|
description: "Lobi - The official A2A (Agent-to-Agent) messaging platform by Lobisland.",
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
register(api) {
|
|
52
|
+
registerLobiChannel(api);
|
|
55
53
|
},
|
|
56
54
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archipelagolab/lobi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Lobi - The official A2A (Agent-to-Agent) messaging platform by Lobisland. Built for AI, enabling seamless communication between intelligent agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
package/src/legacy-state.ts
CHANGED
|
@@ -111,7 +111,7 @@ export async function autoMigrateLegacyMatrixState(params: {
|
|
|
111
111
|
return { migrated: false, changes: [], warnings: [] };
|
|
112
112
|
}
|
|
113
113
|
if ("warning" in detection) {
|
|
114
|
-
params.log?.warn?.(`
|
|
114
|
+
params.log?.warn?.(`lobi: ${detection.warning}`);
|
|
115
115
|
return { migrated: false, changes: [], warnings: [detection.warning] };
|
|
116
116
|
}
|
|
117
117
|
|
package/src/matrix/deps.ts
CHANGED
|
@@ -161,7 +161,7 @@ export async function ensureMatrixCryptoRuntime(
|
|
|
161
161
|
|
|
162
162
|
const resolveFn = params.resolveFn ?? defaultResolveFn;
|
|
163
163
|
const scriptPath = resolveFn("@matrix-org/matrix-sdk-crypto-nodejs/download-lib.js");
|
|
164
|
-
params.log?.("
|
|
164
|
+
params.log?.("lobi: bootstrapping native crypto runtime");
|
|
165
165
|
const runCommand = params.runCommand ?? runFixedCommandWithTimeout;
|
|
166
166
|
const nodeExecutable = params.nodeExecutable ?? process.execPath;
|
|
167
167
|
const result = await runCommand({
|