@okxweb3/a2a-node 0.0.18 → 0.0.19
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 +16 -14
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7577,7 +7577,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
7577
7577
|
client: {
|
|
7578
7578
|
id: "gateway-client",
|
|
7579
7579
|
displayName: "okx-a2a-node",
|
|
7580
|
-
version: "0.0.
|
|
7580
|
+
version: "0.0.19",
|
|
7581
7581
|
platform: "node",
|
|
7582
7582
|
mode: "backend",
|
|
7583
7583
|
instanceId
|
|
@@ -7588,7 +7588,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
7588
7588
|
commands: [],
|
|
7589
7589
|
permissions: {},
|
|
7590
7590
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
7591
|
-
userAgent: `okx-a2a-node/${"0.0.
|
|
7591
|
+
userAgent: `okx-a2a-node/${"0.0.19"}`,
|
|
7592
7592
|
auth: {
|
|
7593
7593
|
...config.token ? { token: config.token } : {},
|
|
7594
7594
|
...config.password ? { password: config.password } : {}
|
|
@@ -24748,7 +24748,7 @@ var init_sentry_config = __esm({
|
|
|
24748
24748
|
environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
24749
24749
|
SENTRY_CONFIG = {
|
|
24750
24750
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
24751
|
-
release: "0.0.
|
|
24751
|
+
release: "0.0.19",
|
|
24752
24752
|
environment
|
|
24753
24753
|
};
|
|
24754
24754
|
}
|
|
@@ -92488,12 +92488,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
92488
92488
|
}));
|
|
92489
92489
|
}
|
|
92490
92490
|
});
|
|
92491
|
-
service.setPluginVersion("0.0.
|
|
92491
|
+
service.setPluginVersion("0.0.19");
|
|
92492
92492
|
await service.init();
|
|
92493
92493
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
92494
92494
|
if (pluginVersionStatus.unavailable) {
|
|
92495
92495
|
throw new Error(
|
|
92496
|
-
`@okxweb3/a2a-node v${"0.0.
|
|
92496
|
+
`@okxweb3/a2a-node v${"0.0.19"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
92497
92497
|
);
|
|
92498
92498
|
}
|
|
92499
92499
|
const systemConfig = service.getSystemConfig();
|
|
@@ -92511,7 +92511,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
92511
92511
|
onchainosAgentId: "*",
|
|
92512
92512
|
reason: "system-config missing sentryDsn",
|
|
92513
92513
|
pluginId: "@okxweb3/a2a-node",
|
|
92514
|
-
pluginVersion: "0.0.
|
|
92514
|
+
pluginVersion: "0.0.19"
|
|
92515
92515
|
});
|
|
92516
92516
|
}
|
|
92517
92517
|
logWithTimestamp(
|
|
@@ -95623,7 +95623,7 @@ async function getCurrentNodeCliVersion() {
|
|
|
95623
95623
|
return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
|
|
95624
95624
|
}
|
|
95625
95625
|
function getBundledNodeCliVersion() {
|
|
95626
|
-
return true ? "0.0.
|
|
95626
|
+
return true ? "0.0.19" : null;
|
|
95627
95627
|
}
|
|
95628
95628
|
function readConfiguredAiProvider() {
|
|
95629
95629
|
const explicit = process.env.OKX_AGENT_TASK_AI_CLI ?? process.env.OKX_A2A_AI_PROVIDER;
|
|
@@ -96456,7 +96456,7 @@ init_sentry_logger();
|
|
|
96456
96456
|
init_sentry_config();
|
|
96457
96457
|
var CURRENT_GATEWAY_SESSION_KEYS_ENV2 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
|
|
96458
96458
|
function printUsage2() {
|
|
96459
|
-
console.log(`okx-a2a ${"0.0.
|
|
96459
|
+
console.log(`okx-a2a ${"0.0.19"}
|
|
96460
96460
|
|
|
96461
96461
|
Usage:
|
|
96462
96462
|
okx-a2a <command> [options]
|
|
@@ -96493,7 +96493,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
|
|
|
96493
96493
|
`);
|
|
96494
96494
|
}
|
|
96495
96495
|
function printVersion() {
|
|
96496
|
-
console.log("0.0.
|
|
96496
|
+
console.log("0.0.19");
|
|
96497
96497
|
}
|
|
96498
96498
|
function printDaemonUsage() {
|
|
96499
96499
|
console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
|
|
@@ -97120,6 +97120,13 @@ async function handleStart(args) {
|
|
|
97120
97120
|
}
|
|
97121
97121
|
async function handleRestart(args) {
|
|
97122
97122
|
await configureDefaultAiProviderForLifecycle(args);
|
|
97123
|
+
const stopResult = await stopDaemon();
|
|
97124
|
+
if (stopResult.stopped || stopResult.running) {
|
|
97125
|
+
printStopDaemonResult(stopResult);
|
|
97126
|
+
}
|
|
97127
|
+
if (stopResult.running) {
|
|
97128
|
+
return;
|
|
97129
|
+
}
|
|
97123
97130
|
try {
|
|
97124
97131
|
const { installAutostart: installAutostart2, restartAutostart: restartAutostart2 } = await Promise.resolve().then(() => (init_autostart(), autostart_exports));
|
|
97125
97132
|
const autostart = await restartAutostart2();
|
|
@@ -97138,11 +97145,6 @@ async function handleRestart(args) {
|
|
|
97138
97145
|
const message = err2 instanceof Error ? err2.message : String(err2);
|
|
97139
97146
|
console.warn(`autostart restart skipped: ${message}`);
|
|
97140
97147
|
}
|
|
97141
|
-
const stopResult = await stopDaemon();
|
|
97142
|
-
printStopDaemonResult(stopResult);
|
|
97143
|
-
if (stopResult.running) {
|
|
97144
|
-
return;
|
|
97145
|
-
}
|
|
97146
97148
|
const startResult = await startDaemon();
|
|
97147
97149
|
if (startResult.started) {
|
|
97148
97150
|
console.log(`started pid=${startResult.pid} log=${startResult.logPath}`);
|
package/dist/index.js
CHANGED
|
@@ -86421,7 +86421,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
86421
86421
|
client: {
|
|
86422
86422
|
id: "gateway-client",
|
|
86423
86423
|
displayName: "okx-a2a-node",
|
|
86424
|
-
version: "0.0.
|
|
86424
|
+
version: "0.0.19",
|
|
86425
86425
|
platform: "node",
|
|
86426
86426
|
mode: "backend",
|
|
86427
86427
|
instanceId
|
|
@@ -86432,7 +86432,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
86432
86432
|
commands: [],
|
|
86433
86433
|
permissions: {},
|
|
86434
86434
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
86435
|
-
userAgent: `okx-a2a-node/${"0.0.
|
|
86435
|
+
userAgent: `okx-a2a-node/${"0.0.19"}`,
|
|
86436
86436
|
auth: {
|
|
86437
86437
|
...config.token ? { token: config.token } : {},
|
|
86438
86438
|
...config.password ? { password: config.password } : {}
|
|
@@ -90588,7 +90588,7 @@ function userWatchEventDeliveredSentryExtra(event) {
|
|
|
90588
90588
|
var environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
90589
90589
|
var SENTRY_CONFIG = {
|
|
90590
90590
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
90591
|
-
release: "0.0.
|
|
90591
|
+
release: "0.0.19",
|
|
90592
90592
|
environment
|
|
90593
90593
|
};
|
|
90594
90594
|
|
|
@@ -90815,12 +90815,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
90815
90815
|
}));
|
|
90816
90816
|
}
|
|
90817
90817
|
});
|
|
90818
|
-
service.setPluginVersion("0.0.
|
|
90818
|
+
service.setPluginVersion("0.0.19");
|
|
90819
90819
|
await service.init();
|
|
90820
90820
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
90821
90821
|
if (pluginVersionStatus.unavailable) {
|
|
90822
90822
|
throw new Error(
|
|
90823
|
-
`@okxweb3/a2a-node v${"0.0.
|
|
90823
|
+
`@okxweb3/a2a-node v${"0.0.19"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
90824
90824
|
);
|
|
90825
90825
|
}
|
|
90826
90826
|
const systemConfig = service.getSystemConfig();
|
|
@@ -90838,7 +90838,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
90838
90838
|
onchainosAgentId: "*",
|
|
90839
90839
|
reason: "system-config missing sentryDsn",
|
|
90840
90840
|
pluginId: "@okxweb3/a2a-node",
|
|
90841
|
-
pluginVersion: "0.0.
|
|
90841
|
+
pluginVersion: "0.0.19"
|
|
90842
90842
|
});
|
|
90843
90843
|
}
|
|
90844
90844
|
logWithTimestamp(
|