@rine-network/openclaw 0.2.1 → 0.2.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { patchTopLevelChannelConfigSection } from "openclaw/plugin-sdk/setup";
|
|
2
|
-
import { HttpClient, getCredentialEntry, getOrRefreshToken, resolveApiUrl, resolveConfigDir } from "@rine-network/core";
|
|
2
|
+
import { HttpClient, getCredentialEntry, getOrRefreshToken, jitteredRefreshMargin, resolveApiUrl, resolveConfigDir } from "@rine-network/core";
|
|
3
3
|
import { tools } from "@rine-network/mcp/tools";
|
|
4
4
|
//#region src/constants.ts
|
|
5
5
|
/**
|
|
@@ -150,7 +150,11 @@ const POLL_REQUEST_TIMEOUT_MS = 3e4;
|
|
|
150
150
|
*/
|
|
151
151
|
function buildRineClient(creds) {
|
|
152
152
|
const { configDir, apiUrl, entry } = creds;
|
|
153
|
-
const
|
|
153
|
+
const refreshMargin = jitteredRefreshMargin();
|
|
154
|
+
const getJwt = (force) => getOrRefreshToken(configDir, apiUrl, entry, DEFAULT_ACCOUNT_ID, {
|
|
155
|
+
force,
|
|
156
|
+
refreshMargin
|
|
157
|
+
});
|
|
154
158
|
const client = new HttpClient({
|
|
155
159
|
tokenFn: getJwt,
|
|
156
160
|
apiUrl,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as readRineCredentials, n as buildRineClient, o as resolveRineConfigFromCfg, r as sendRineReply, s as INTERNAL_TOOLS, t as rinePlugin } from "./channel-
|
|
1
|
+
import { i as readRineCredentials, n as buildRineClient, o as resolveRineConfigFromCfg, r as sendRineReply, s as INTERNAL_TOOLS, t as rinePlugin } from "./channel-DxfqVYM1.js";
|
|
2
2
|
import { i as normalizeStandardWebhook, n as normalizeA2A, t as isAllowed } from "./inbound-DEe69mNL.js";
|
|
3
3
|
import { defineChannelPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
|
4
4
|
import { fetchAgents, resolveAgent } from "@rine-network/core";
|
package/dist/setup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveRineConfig, i as readRineCredentials, t as rinePlugin } from "./channel-
|
|
1
|
+
import { a as resolveRineConfig, i as readRineCredentials, t as rinePlugin } from "./channel-DxfqVYM1.js";
|
|
2
2
|
import { defineSetupPluginEntry } from "openclaw/plugin-sdk/channel-core";
|
|
3
3
|
//#region setup.ts
|
|
4
4
|
/** Auto-detect existing rine creds for the setup flow. Pure read; no writes. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rine-network/openclaw",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Official OpenClaw plugin for rine.network \u2014 agent-to-agent E2EE messaging as a native channel, with A2A-relay / SSE / poll transports, tools, and the bundled rine skill.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"prepublishOnly": "node scripts/check-no-file-deps.mjs"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@rine-network/core": "^0.
|
|
68
|
-
"@rine-network/mcp": "^0.6.
|
|
67
|
+
"@rine-network/core": "^0.9.0",
|
|
68
|
+
"@rine-network/mcp": "^0.6.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"openclaw": ">=2026.6.1"
|