@okxweb3/a2a-node 0.0.20 → 0.0.21
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/cli.js +15 -9
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7819,7 +7819,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
7819
7819
|
client: {
|
|
7820
7820
|
id: "gateway-client",
|
|
7821
7821
|
displayName: "okx-a2a-node",
|
|
7822
|
-
version: "0.0.
|
|
7822
|
+
version: "0.0.21",
|
|
7823
7823
|
platform: "node",
|
|
7824
7824
|
mode: "backend",
|
|
7825
7825
|
instanceId
|
|
@@ -7830,7 +7830,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
7830
7830
|
commands: [],
|
|
7831
7831
|
permissions: {},
|
|
7832
7832
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
7833
|
-
userAgent: `okx-a2a-node/${"0.0.
|
|
7833
|
+
userAgent: `okx-a2a-node/${"0.0.21"}`,
|
|
7834
7834
|
auth: {
|
|
7835
7835
|
...config.token ? { token: config.token } : {},
|
|
7836
7836
|
...config.password ? { password: config.password } : {}
|
|
@@ -25049,7 +25049,7 @@ var init_sentry_config = __esm({
|
|
|
25049
25049
|
environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
25050
25050
|
SENTRY_CONFIG = {
|
|
25051
25051
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
25052
|
-
release: "0.0.
|
|
25052
|
+
release: "0.0.21",
|
|
25053
25053
|
environment
|
|
25054
25054
|
};
|
|
25055
25055
|
}
|
|
@@ -92875,12 +92875,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
92875
92875
|
}));
|
|
92876
92876
|
}
|
|
92877
92877
|
});
|
|
92878
|
-
service.setPluginVersion("0.0.
|
|
92878
|
+
service.setPluginVersion("0.0.21");
|
|
92879
92879
|
await service.init();
|
|
92880
92880
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
92881
92881
|
if (pluginVersionStatus.unavailable) {
|
|
92882
92882
|
throw new Error(
|
|
92883
|
-
`@okxweb3/a2a-node v${"0.0.
|
|
92883
|
+
`@okxweb3/a2a-node v${"0.0.21"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
92884
92884
|
);
|
|
92885
92885
|
}
|
|
92886
92886
|
const systemConfig = service.getSystemConfig();
|
|
@@ -92898,7 +92898,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
92898
92898
|
onchainosAgentId: "*",
|
|
92899
92899
|
reason: "system-config missing sentryDsn",
|
|
92900
92900
|
pluginId: "@okxweb3/a2a-node",
|
|
92901
|
-
pluginVersion: "0.0.
|
|
92901
|
+
pluginVersion: "0.0.21"
|
|
92902
92902
|
});
|
|
92903
92903
|
}
|
|
92904
92904
|
logWithTimestamp(
|
|
@@ -96063,7 +96063,7 @@ async function getCurrentNodeCliVersion() {
|
|
|
96063
96063
|
return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
|
|
96064
96064
|
}
|
|
96065
96065
|
function getBundledNodeCliVersion() {
|
|
96066
|
-
return true ? "0.0.
|
|
96066
|
+
return true ? "0.0.21" : null;
|
|
96067
96067
|
}
|
|
96068
96068
|
function readConfiguredAiProvider() {
|
|
96069
96069
|
const explicit = process.env.OKX_AGENT_TASK_AI_CLI ?? process.env.OKX_A2A_AI_PROVIDER;
|
|
@@ -96765,6 +96765,9 @@ function isSupportedRelease(value) {
|
|
|
96765
96765
|
function assertOnlyKnownUpdateOptions(args, command = "update") {
|
|
96766
96766
|
for (let i = 0; i < args.length; i++) {
|
|
96767
96767
|
const arg = args[i];
|
|
96768
|
+
if (arg === "--no-wait") {
|
|
96769
|
+
continue;
|
|
96770
|
+
}
|
|
96768
96771
|
if (arg === "--release") {
|
|
96769
96772
|
if (i + 1 >= args.length || args[i + 1].startsWith("--")) {
|
|
96770
96773
|
throw new Error(`${command} option --release requires a value`);
|
|
@@ -96896,7 +96899,7 @@ init_sentry_logger();
|
|
|
96896
96899
|
init_sentry_config();
|
|
96897
96900
|
var CURRENT_GATEWAY_SESSION_KEYS_ENV2 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
|
|
96898
96901
|
function printUsage2() {
|
|
96899
|
-
console.log(`okx-a2a ${"0.0.
|
|
96902
|
+
console.log(`okx-a2a ${"0.0.21"}
|
|
96900
96903
|
|
|
96901
96904
|
Usage:
|
|
96902
96905
|
okx-a2a <command> [options]
|
|
@@ -96933,7 +96936,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
|
|
|
96933
96936
|
`);
|
|
96934
96937
|
}
|
|
96935
96938
|
function printVersion() {
|
|
96936
|
-
console.log("0.0.
|
|
96939
|
+
console.log("0.0.21");
|
|
96937
96940
|
}
|
|
96938
96941
|
function printDaemonUsage() {
|
|
96939
96942
|
console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
|
|
@@ -97420,6 +97423,9 @@ function safeDecodeURIComponent6(value) {
|
|
|
97420
97423
|
function assertOnlyKnownOptions(args, input) {
|
|
97421
97424
|
for (let i = 0; i < args.length; i++) {
|
|
97422
97425
|
const arg = args[i];
|
|
97426
|
+
if (arg === "--no-wait") {
|
|
97427
|
+
continue;
|
|
97428
|
+
}
|
|
97423
97429
|
if (input.flags.has(arg)) {
|
|
97424
97430
|
continue;
|
|
97425
97431
|
}
|
package/dist/index.js
CHANGED
|
@@ -86691,7 +86691,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
86691
86691
|
client: {
|
|
86692
86692
|
id: "gateway-client",
|
|
86693
86693
|
displayName: "okx-a2a-node",
|
|
86694
|
-
version: "0.0.
|
|
86694
|
+
version: "0.0.21",
|
|
86695
86695
|
platform: "node",
|
|
86696
86696
|
mode: "backend",
|
|
86697
86697
|
instanceId
|
|
@@ -86702,7 +86702,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
86702
86702
|
commands: [],
|
|
86703
86703
|
permissions: {},
|
|
86704
86704
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
86705
|
-
userAgent: `okx-a2a-node/${"0.0.
|
|
86705
|
+
userAgent: `okx-a2a-node/${"0.0.21"}`,
|
|
86706
86706
|
auth: {
|
|
86707
86707
|
...config.token ? { token: config.token } : {},
|
|
86708
86708
|
...config.password ? { password: config.password } : {}
|
|
@@ -90975,7 +90975,7 @@ function userWatchEventDeliveredSentryExtra(event) {
|
|
|
90975
90975
|
var environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
90976
90976
|
var SENTRY_CONFIG = {
|
|
90977
90977
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
90978
|
-
release: "0.0.
|
|
90978
|
+
release: "0.0.21",
|
|
90979
90979
|
environment
|
|
90980
90980
|
};
|
|
90981
90981
|
|
|
@@ -91202,12 +91202,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
91202
91202
|
}));
|
|
91203
91203
|
}
|
|
91204
91204
|
});
|
|
91205
|
-
service.setPluginVersion("0.0.
|
|
91205
|
+
service.setPluginVersion("0.0.21");
|
|
91206
91206
|
await service.init();
|
|
91207
91207
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
91208
91208
|
if (pluginVersionStatus.unavailable) {
|
|
91209
91209
|
throw new Error(
|
|
91210
|
-
`@okxweb3/a2a-node v${"0.0.
|
|
91210
|
+
`@okxweb3/a2a-node v${"0.0.21"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
91211
91211
|
);
|
|
91212
91212
|
}
|
|
91213
91213
|
const systemConfig = service.getSystemConfig();
|
|
@@ -91225,7 +91225,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
91225
91225
|
onchainosAgentId: "*",
|
|
91226
91226
|
reason: "system-config missing sentryDsn",
|
|
91227
91227
|
pluginId: "@okxweb3/a2a-node",
|
|
91228
|
-
pluginVersion: "0.0.
|
|
91228
|
+
pluginVersion: "0.0.21"
|
|
91229
91229
|
});
|
|
91230
91230
|
}
|
|
91231
91231
|
logWithTimestamp(
|