@okxweb3/a2a-node 0.2.10 → 0.2.11-beta-8fef2ef558-260901171734
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 +1296 -215
- package/dist/index.js +16 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -108,6 +108,7 @@ function resolveTaskPaths(homeDir = resolveTaskHome()) {
|
|
|
108
108
|
workspaceDir: (0, import_node_path2.join)(homeDir, "workspace"),
|
|
109
109
|
xmtpDir: (0, import_node_path2.join)(homeDir, "xmtp"),
|
|
110
110
|
sqliteDir: (0, import_node_path2.join)(homeDir, "sqlite"),
|
|
111
|
+
bzRecordsDir: (0, import_node_path2.join)(homeDir, "bz-records"),
|
|
111
112
|
pendingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "pending"),
|
|
112
113
|
processingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "processing"),
|
|
113
114
|
completedCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "completed"),
|
|
@@ -32437,7 +32438,7 @@ var init_sentry_config = __esm({
|
|
|
32437
32438
|
environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
32438
32439
|
SENTRY_CONFIG = {
|
|
32439
32440
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
32440
|
-
release: "0.2.
|
|
32441
|
+
release: "0.2.11-beta-8fef2ef558-260901171734",
|
|
32441
32442
|
environment,
|
|
32442
32443
|
runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
|
|
32443
32444
|
};
|
|
@@ -33378,7 +33379,7 @@ async function getCurrentNodeCliVersion() {
|
|
|
33378
33379
|
return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
|
|
33379
33380
|
}
|
|
33380
33381
|
function getBundledNodeCliVersion() {
|
|
33381
|
-
return true ? "0.2.
|
|
33382
|
+
return true ? "0.2.11-beta-8fef2ef558-260901171734" : null;
|
|
33382
33383
|
}
|
|
33383
33384
|
function readConfiguredAiProvider() {
|
|
33384
33385
|
const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
|
|
@@ -33588,7 +33589,7 @@ async function updateHermes(release, options) {
|
|
|
33588
33589
|
}
|
|
33589
33590
|
}
|
|
33590
33591
|
async function installGatewayPluginForDoctor(target) {
|
|
33591
|
-
const release = isPrereleaseVersion("0.2.
|
|
33592
|
+
const release = isPrereleaseVersion("0.2.11-beta-8fef2ef558-260901171734") ? "beta" : "latest";
|
|
33592
33593
|
const insideTargetGateway = detectGatewayInvocation() === target;
|
|
33593
33594
|
const options = {
|
|
33594
33595
|
restart: !insideTargetGateway,
|
|
@@ -61346,7 +61347,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
61346
61347
|
client: {
|
|
61347
61348
|
id: "gateway-client",
|
|
61348
61349
|
displayName: "okx-a2a-node",
|
|
61349
|
-
version: "0.2.
|
|
61350
|
+
version: "0.2.11-beta-8fef2ef558-260901171734",
|
|
61350
61351
|
platform: "node",
|
|
61351
61352
|
mode: "backend",
|
|
61352
61353
|
instanceId
|
|
@@ -61357,7 +61358,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
61357
61358
|
commands: [],
|
|
61358
61359
|
permissions: {},
|
|
61359
61360
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
61360
|
-
userAgent: `okx-a2a-node/${"0.2.
|
|
61361
|
+
userAgent: `okx-a2a-node/${"0.2.11-beta-8fef2ef558-260901171734"}`,
|
|
61361
61362
|
auth: {
|
|
61362
61363
|
...config.token ? { token: config.token } : {},
|
|
61363
61364
|
...config.password ? { password: config.password } : {}
|
|
@@ -67724,12 +67725,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
67724
67725
|
});
|
|
67725
67726
|
}
|
|
67726
67727
|
});
|
|
67727
|
-
service.setPluginVersion("0.2.
|
|
67728
|
+
service.setPluginVersion("0.2.11-beta-8fef2ef558-260901171734");
|
|
67728
67729
|
await service.init();
|
|
67729
67730
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
67730
67731
|
if (pluginVersionStatus.unavailable) {
|
|
67731
67732
|
throw new Error(
|
|
67732
|
-
`@okxweb3/a2a-node v${"0.2.
|
|
67733
|
+
`@okxweb3/a2a-node v${"0.2.11-beta-8fef2ef558-260901171734"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
67733
67734
|
);
|
|
67734
67735
|
}
|
|
67735
67736
|
const systemConfig = service.getSystemConfig();
|
|
@@ -67757,7 +67758,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
67757
67758
|
onchainosAgentId: "*",
|
|
67758
67759
|
reason: "system-config missing sentryDsn",
|
|
67759
67760
|
pluginId: "@okxweb3/a2a-node",
|
|
67760
|
-
pluginVersion: "0.2.
|
|
67761
|
+
pluginVersion: "0.2.11-beta-8fef2ef558-260901171734"
|
|
67761
67762
|
});
|
|
67762
67763
|
}
|
|
67763
67764
|
logWithTimestamp(
|
|
@@ -69133,6 +69134,11 @@ function getA2ACapabilities() {
|
|
|
69133
69134
|
ok: true,
|
|
69134
69135
|
fixCommands: [],
|
|
69135
69136
|
message: ""
|
|
69137
|
+
},
|
|
69138
|
+
tradeRecordsV1: {
|
|
69139
|
+
ok: true,
|
|
69140
|
+
fixCommands: [],
|
|
69141
|
+
message: ""
|
|
69136
69142
|
}
|
|
69137
69143
|
};
|
|
69138
69144
|
}
|
|
@@ -70525,7 +70531,7 @@ async function exportDiagnosticLogs(options) {
|
|
|
70525
70531
|
node: process.version,
|
|
70526
70532
|
platform: process.platform,
|
|
70527
70533
|
arch: process.arch,
|
|
70528
|
-
packageVersion: true ? "0.2.
|
|
70534
|
+
packageVersion: true ? "0.2.11-beta-8fef2ef558-260901171734" : "unknown",
|
|
70529
70535
|
sensitiveContentIncluded: options.includeSensitiveContent,
|
|
70530
70536
|
listenerAndLlmContentIncluded: true,
|
|
70531
70537
|
credentialsAlwaysRedacted: true,
|
|
@@ -72407,7 +72413,7 @@ async function runDoctor(options = {}) {
|
|
|
72407
72413
|
platform: options.platform ?? process.platform,
|
|
72408
72414
|
env: options.env ?? process.env,
|
|
72409
72415
|
target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
|
|
72410
|
-
cliVersion: options.cliVersion ?? (true ? "0.2.
|
|
72416
|
+
cliVersion: options.cliVersion ?? (true ? "0.2.11-beta-8fef2ef558-260901171734" : "0.0.0"),
|
|
72411
72417
|
fixMode: options.fix === true,
|
|
72412
72418
|
nonInteractive: options.nonInteractive === true,
|
|
72413
72419
|
packageChanged: false,
|
package/package.json
CHANGED