@okxweb3/a2a-node 0.2.11-beta-8fef2ef558-260901172338 → 0.2.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/dist/cli.js +222 -1298
- package/dist/index.js +17 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -108,7 +108,6 @@ 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"),
|
|
112
111
|
pendingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "pending"),
|
|
113
112
|
processingCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "processing"),
|
|
114
113
|
completedCommandsDir: (0, import_node_path2.join)(homeDir, "commands", "completed"),
|
|
@@ -32438,7 +32437,7 @@ var init_sentry_config = __esm({
|
|
|
32438
32437
|
environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
32439
32438
|
SENTRY_CONFIG = {
|
|
32440
32439
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
32441
|
-
release: "0.2.11
|
|
32440
|
+
release: "0.2.11",
|
|
32442
32441
|
environment,
|
|
32443
32442
|
runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
|
|
32444
32443
|
};
|
|
@@ -33379,7 +33378,7 @@ async function getCurrentNodeCliVersion() {
|
|
|
33379
33378
|
return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
|
|
33380
33379
|
}
|
|
33381
33380
|
function getBundledNodeCliVersion() {
|
|
33382
|
-
return true ? "0.2.11
|
|
33381
|
+
return true ? "0.2.11" : null;
|
|
33383
33382
|
}
|
|
33384
33383
|
function readConfiguredAiProvider() {
|
|
33385
33384
|
const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
|
|
@@ -33589,7 +33588,7 @@ async function updateHermes(release, options) {
|
|
|
33589
33588
|
}
|
|
33590
33589
|
}
|
|
33591
33590
|
async function installGatewayPluginForDoctor(target) {
|
|
33592
|
-
const release = isPrereleaseVersion("0.2.11
|
|
33591
|
+
const release = isPrereleaseVersion("0.2.11") ? "beta" : "latest";
|
|
33593
33592
|
const insideTargetGateway = detectGatewayInvocation() === target;
|
|
33594
33593
|
const options = {
|
|
33595
33594
|
restart: !insideTargetGateway,
|
|
@@ -46025,7 +46024,8 @@ var AiRunner = class {
|
|
|
46025
46024
|
existingFailures: toolFailures.failures,
|
|
46026
46025
|
errorType: fullOutputErrorType,
|
|
46027
46026
|
output: runCompletedSuccessfully ? stdoutFull : fullOutputForClassification,
|
|
46028
|
-
exitCode
|
|
46027
|
+
exitCode,
|
|
46028
|
+
runCompletedSuccessfully
|
|
46029
46029
|
});
|
|
46030
46030
|
const detectedToolFailures = syntheticToolFailure ? [...toolFailures.failures, syntheticToolFailure] : toolFailures.failures;
|
|
46031
46031
|
const reportableToolFailures = selectReportableAiToolFailures({
|
|
@@ -47481,7 +47481,11 @@ function synthesizeCodexProsePermissionFailure(input) {
|
|
|
47481
47481
|
if (input.existingFailures.some(isReportableAiToolFailure)) {
|
|
47482
47482
|
return null;
|
|
47483
47483
|
}
|
|
47484
|
-
const
|
|
47484
|
+
const agentMessageOutput = extractCodexAgentMessagePermissionText(input.output);
|
|
47485
|
+
if (input.runCompletedSuccessfully && agentMessageOutput === null) {
|
|
47486
|
+
return null;
|
|
47487
|
+
}
|
|
47488
|
+
const output = agentMessageOutput ?? input.output;
|
|
47485
47489
|
if (!looksLikeTerminalPermissionFailure(output)) {
|
|
47486
47490
|
return null;
|
|
47487
47491
|
}
|
|
@@ -61347,7 +61351,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
61347
61351
|
client: {
|
|
61348
61352
|
id: "gateway-client",
|
|
61349
61353
|
displayName: "okx-a2a-node",
|
|
61350
|
-
version: "0.2.11
|
|
61354
|
+
version: "0.2.11",
|
|
61351
61355
|
platform: "node",
|
|
61352
61356
|
mode: "backend",
|
|
61353
61357
|
instanceId
|
|
@@ -61358,7 +61362,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
61358
61362
|
commands: [],
|
|
61359
61363
|
permissions: {},
|
|
61360
61364
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
61361
|
-
userAgent: `okx-a2a-node/${"0.2.11
|
|
61365
|
+
userAgent: `okx-a2a-node/${"0.2.11"}`,
|
|
61362
61366
|
auth: {
|
|
61363
61367
|
...config.token ? { token: config.token } : {},
|
|
61364
61368
|
...config.password ? { password: config.password } : {}
|
|
@@ -67725,12 +67729,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
67725
67729
|
});
|
|
67726
67730
|
}
|
|
67727
67731
|
});
|
|
67728
|
-
service.setPluginVersion("0.2.11
|
|
67732
|
+
service.setPluginVersion("0.2.11");
|
|
67729
67733
|
await service.init();
|
|
67730
67734
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
67731
67735
|
if (pluginVersionStatus.unavailable) {
|
|
67732
67736
|
throw new Error(
|
|
67733
|
-
`@okxweb3/a2a-node v${"0.2.11
|
|
67737
|
+
`@okxweb3/a2a-node v${"0.2.11"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
67734
67738
|
);
|
|
67735
67739
|
}
|
|
67736
67740
|
const systemConfig = service.getSystemConfig();
|
|
@@ -67758,7 +67762,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
67758
67762
|
onchainosAgentId: "*",
|
|
67759
67763
|
reason: "system-config missing sentryDsn",
|
|
67760
67764
|
pluginId: "@okxweb3/a2a-node",
|
|
67761
|
-
pluginVersion: "0.2.11
|
|
67765
|
+
pluginVersion: "0.2.11"
|
|
67762
67766
|
});
|
|
67763
67767
|
}
|
|
67764
67768
|
logWithTimestamp(
|
|
@@ -69134,11 +69138,6 @@ function getA2ACapabilities() {
|
|
|
69134
69138
|
ok: true,
|
|
69135
69139
|
fixCommands: [],
|
|
69136
69140
|
message: ""
|
|
69137
|
-
},
|
|
69138
|
-
tradeRecordsV1: {
|
|
69139
|
-
ok: true,
|
|
69140
|
-
fixCommands: [],
|
|
69141
|
-
message: ""
|
|
69142
69141
|
}
|
|
69143
69142
|
};
|
|
69144
69143
|
}
|
|
@@ -70531,7 +70530,7 @@ async function exportDiagnosticLogs(options) {
|
|
|
70531
70530
|
node: process.version,
|
|
70532
70531
|
platform: process.platform,
|
|
70533
70532
|
arch: process.arch,
|
|
70534
|
-
packageVersion: true ? "0.2.11
|
|
70533
|
+
packageVersion: true ? "0.2.11" : "unknown",
|
|
70535
70534
|
sensitiveContentIncluded: options.includeSensitiveContent,
|
|
70536
70535
|
listenerAndLlmContentIncluded: true,
|
|
70537
70536
|
credentialsAlwaysRedacted: true,
|
|
@@ -72413,7 +72412,7 @@ async function runDoctor(options = {}) {
|
|
|
72413
72412
|
platform: options.platform ?? process.platform,
|
|
72414
72413
|
env: options.env ?? process.env,
|
|
72415
72414
|
target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
|
|
72416
|
-
cliVersion: options.cliVersion ?? (true ? "0.2.11
|
|
72415
|
+
cliVersion: options.cliVersion ?? (true ? "0.2.11" : "0.0.0"),
|
|
72417
72416
|
fixMode: options.fix === true,
|
|
72418
72417
|
nonInteractive: options.nonInteractive === true,
|
|
72419
72418
|
packageChanged: false,
|
package/package.json
CHANGED