@okxweb3/a2a-node 0.2.11 → 0.2.12-beta-7449a77b9d-260908213110
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 +14 -13
- package/dist/index.js +11 -10
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -713,6 +713,7 @@ var init_session_store = __esm({
|
|
|
713
713
|
PRIMARY KEY(session_key, provider)
|
|
714
714
|
)
|
|
715
715
|
`);
|
|
716
|
+
this.db.exec("DROP TRIGGER IF EXISTS a2a_ai_sessions_delete_guard");
|
|
716
717
|
this.db.exec(`
|
|
717
718
|
CREATE TABLE IF NOT EXISTS job_provider_bindings (
|
|
718
719
|
job_id TEXT PRIMARY KEY,
|
|
@@ -26934,7 +26935,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
26934
26935
|
client: {
|
|
26935
26936
|
id: "gateway-client",
|
|
26936
26937
|
displayName: "okx-a2a-node",
|
|
26937
|
-
version: "0.2.
|
|
26938
|
+
version: "0.2.12-beta-7449a77b9d-260908213110",
|
|
26938
26939
|
platform: "node",
|
|
26939
26940
|
mode: "backend",
|
|
26940
26941
|
instanceId
|
|
@@ -26945,7 +26946,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
26945
26946
|
commands: [],
|
|
26946
26947
|
permissions: {},
|
|
26947
26948
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
26948
|
-
userAgent: `okx-a2a-node/${"0.2.
|
|
26949
|
+
userAgent: `okx-a2a-node/${"0.2.12-beta-7449a77b9d-260908213110"}`,
|
|
26949
26950
|
auth: {
|
|
26950
26951
|
...config.token ? { token: config.token } : {},
|
|
26951
26952
|
...config.password ? { password: config.password } : {}
|
|
@@ -29004,7 +29005,7 @@ var init_sentry_config = __esm({
|
|
|
29004
29005
|
environment = process.env.SENTRY_ENV === "dev" ? "dev" : "prod";
|
|
29005
29006
|
SENTRY_CONFIG = {
|
|
29006
29007
|
projectName: "okx/openclaw-okx-a2a-extension",
|
|
29007
|
-
release: "0.2.
|
|
29008
|
+
release: "0.2.12-beta-7449a77b9d-260908213110",
|
|
29008
29009
|
environment,
|
|
29009
29010
|
runtimeContainer: normalizeRuntimeContainer(process.env.OKX_A2A_RUNTIME_CONTAINER)
|
|
29010
29011
|
};
|
|
@@ -40174,7 +40175,7 @@ async function exportDiagnosticLogs(options) {
|
|
|
40174
40175
|
node: process.version,
|
|
40175
40176
|
platform: process.platform,
|
|
40176
40177
|
arch: process.arch,
|
|
40177
|
-
packageVersion: true ? "0.2.
|
|
40178
|
+
packageVersion: true ? "0.2.12-beta-7449a77b9d-260908213110" : "unknown",
|
|
40178
40179
|
sensitiveContentIncluded: options.includeSensitiveContent,
|
|
40179
40180
|
listenerAndLlmContentIncluded: true,
|
|
40180
40181
|
credentialsAlwaysRedacted: true,
|
|
@@ -68698,12 +68699,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
68698
68699
|
});
|
|
68699
68700
|
}
|
|
68700
68701
|
});
|
|
68701
|
-
service.setPluginVersion("0.2.
|
|
68702
|
+
service.setPluginVersion("0.2.12-beta-7449a77b9d-260908213110");
|
|
68702
68703
|
await service.init();
|
|
68703
68704
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
68704
68705
|
if (pluginVersionStatus.unavailable) {
|
|
68705
68706
|
throw new Error(
|
|
68706
|
-
`@okxweb3/a2a-node v${"0.2.
|
|
68707
|
+
`@okxweb3/a2a-node v${"0.2.12-beta-7449a77b9d-260908213110"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
68707
68708
|
);
|
|
68708
68709
|
}
|
|
68709
68710
|
const systemConfig = service.getSystemConfig();
|
|
@@ -68731,7 +68732,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
68731
68732
|
onchainosAgentId: "*",
|
|
68732
68733
|
reason: "system-config missing sentryDsn",
|
|
68733
68734
|
pluginId: "@okxweb3/a2a-node",
|
|
68734
|
-
pluginVersion: "0.2.
|
|
68735
|
+
pluginVersion: "0.2.12-beta-7449a77b9d-260908213110"
|
|
68735
68736
|
});
|
|
68736
68737
|
}
|
|
68737
68738
|
logWithTimestamp(
|
|
@@ -117058,7 +117059,7 @@ async function getCurrentNodeCliVersion() {
|
|
|
117058
117059
|
return await getGlobalNpmPackageVersion(UPDATE_PACKAGES.node) ?? getBundledNodeCliVersion();
|
|
117059
117060
|
}
|
|
117060
117061
|
function getBundledNodeCliVersion() {
|
|
117061
|
-
return true ? "0.2.
|
|
117062
|
+
return true ? "0.2.12-beta-7449a77b9d-260908213110" : null;
|
|
117062
117063
|
}
|
|
117063
117064
|
function readConfiguredAiProvider() {
|
|
117064
117065
|
const explicit = process.env.OKX_A2A_AI_PROVIDER || process.env.OKX_AGENT_TASK_AI_CLI;
|
|
@@ -117268,7 +117269,7 @@ async function updateHermes(release, options) {
|
|
|
117268
117269
|
}
|
|
117269
117270
|
}
|
|
117270
117271
|
async function installGatewayPluginForDoctor(target) {
|
|
117271
|
-
const release = isPrereleaseVersion("0.2.
|
|
117272
|
+
const release = isPrereleaseVersion("0.2.12-beta-7449a77b9d-260908213110") ? "beta" : "latest";
|
|
117272
117273
|
const insideTargetGateway = detectGatewayInvocation() === target;
|
|
117273
117274
|
const options = {
|
|
117274
117275
|
restart: !insideTargetGateway,
|
|
@@ -118321,7 +118322,7 @@ async function runDoctor(options = {}) {
|
|
|
118321
118322
|
platform: options.platform ?? process.platform,
|
|
118322
118323
|
env: options.env ?? process.env,
|
|
118323
118324
|
target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
|
|
118324
|
-
cliVersion: options.cliVersion ?? (true ? "0.2.
|
|
118325
|
+
cliVersion: options.cliVersion ?? (true ? "0.2.12-beta-7449a77b9d-260908213110" : "0.0.0"),
|
|
118325
118326
|
fixMode: options.fix === true,
|
|
118326
118327
|
nonInteractive: options.nonInteractive === true,
|
|
118327
118328
|
packageChanged: false,
|
|
@@ -119398,7 +119399,7 @@ init_sentry_config();
|
|
|
119398
119399
|
init_runtime_metadata();
|
|
119399
119400
|
var CURRENT_GATEWAY_SESSION_KEYS_ENV4 = "OKX_A2A_CURRENT_GATEWAY_SESSION_KEYS";
|
|
119400
119401
|
function printUsage3() {
|
|
119401
|
-
console.log(`okx-a2a ${"0.2.
|
|
119402
|
+
console.log(`okx-a2a ${"0.2.12-beta-7449a77b9d-260908213110"}
|
|
119402
119403
|
|
|
119403
119404
|
Usage:
|
|
119404
119405
|
okx-a2a <command> [options]
|
|
@@ -119438,7 +119439,7 @@ Run \`okx-a2a <command> -h\` for command-specific help.
|
|
|
119438
119439
|
`);
|
|
119439
119440
|
}
|
|
119440
119441
|
function printVersion() {
|
|
119441
|
-
console.log("0.2.
|
|
119442
|
+
console.log("0.2.12-beta-7449a77b9d-260908213110");
|
|
119442
119443
|
}
|
|
119443
119444
|
function printDaemonUsage() {
|
|
119444
119445
|
console.log(`Usage: okx-a2a daemon <start|restart|stop|status|autostart> [options]
|
|
@@ -120916,7 +120917,7 @@ async function main() {
|
|
|
120916
120917
|
if (command === "xmtp-test") {
|
|
120917
120918
|
const { handleXmtpTestCommand: handleXmtpTestCommand2 } = await Promise.resolve().then(() => (init_xmtp_test_cli(), xmtp_test_cli_exports));
|
|
120918
120919
|
await handleXmtpTestCommand2(process.argv.slice(3), {
|
|
120919
|
-
packageVersion: "0.2.
|
|
120920
|
+
packageVersion: "0.2.12-beta-7449a77b9d-260908213110",
|
|
120920
120921
|
agentSdkVersion: "2.3.0",
|
|
120921
120922
|
nodeSdkVersion: "6.1.0",
|
|
120922
120923
|
nodeBindingsVersion: "1.11.0"
|
package/dist/index.js
CHANGED
|
@@ -713,6 +713,7 @@ var init_session_store = __esm({
|
|
|
713
713
|
PRIMARY KEY(session_key, provider)
|
|
714
714
|
)
|
|
715
715
|
`);
|
|
716
|
+
this.db.exec("DROP TRIGGER IF EXISTS a2a_ai_sessions_delete_guard");
|
|
716
717
|
this.db.exec(`
|
|
717
718
|
CREATE TABLE IF NOT EXISTS job_provider_bindings (
|
|
718
719
|
job_id TEXT PRIMARY KEY,
|
|
@@ -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.12-beta-7449a77b9d-260908213110",
|
|
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.12-beta-7449a77b9d-260908213110" : 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.12-beta-7449a77b9d-260908213110") ? "beta" : "latest";
|
|
33592
33593
|
const insideTargetGateway = detectGatewayInvocation() === target;
|
|
33593
33594
|
const options = {
|
|
33594
33595
|
restart: !insideTargetGateway,
|
|
@@ -61351,7 +61352,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
61351
61352
|
client: {
|
|
61352
61353
|
id: "gateway-client",
|
|
61353
61354
|
displayName: "okx-a2a-node",
|
|
61354
|
-
version: "0.2.
|
|
61355
|
+
version: "0.2.12-beta-7449a77b9d-260908213110",
|
|
61355
61356
|
platform: "node",
|
|
61356
61357
|
mode: "backend",
|
|
61357
61358
|
instanceId
|
|
@@ -61362,7 +61363,7 @@ function buildConnectParams(config, instanceId, protocolVersion) {
|
|
|
61362
61363
|
commands: [],
|
|
61363
61364
|
permissions: {},
|
|
61364
61365
|
locale: Intl.DateTimeFormat().resolvedOptions().locale || "en-US",
|
|
61365
|
-
userAgent: `okx-a2a-node/${"0.2.
|
|
61366
|
+
userAgent: `okx-a2a-node/${"0.2.12-beta-7449a77b9d-260908213110"}`,
|
|
61366
61367
|
auth: {
|
|
61367
61368
|
...config.token ? { token: config.token } : {},
|
|
61368
61369
|
...config.password ? { password: config.password } : {}
|
|
@@ -67729,12 +67730,12 @@ async function runListenerWithLock(options, paths) {
|
|
|
67729
67730
|
});
|
|
67730
67731
|
}
|
|
67731
67732
|
});
|
|
67732
|
-
service.setPluginVersion("0.2.
|
|
67733
|
+
service.setPluginVersion("0.2.12-beta-7449a77b9d-260908213110");
|
|
67733
67734
|
await service.init();
|
|
67734
67735
|
const pluginVersionStatus = service.pluginVersionStatus;
|
|
67735
67736
|
if (pluginVersionStatus.unavailable) {
|
|
67736
67737
|
throw new Error(
|
|
67737
|
-
`@okxweb3/a2a-node v${"0.2.
|
|
67738
|
+
`@okxweb3/a2a-node v${"0.2.12-beta-7449a77b9d-260908213110"} is below the required minimum v${pluginVersionStatus.minVersion}`
|
|
67738
67739
|
);
|
|
67739
67740
|
}
|
|
67740
67741
|
const systemConfig = service.getSystemConfig();
|
|
@@ -67762,7 +67763,7 @@ async function runListenerWithLock(options, paths) {
|
|
|
67762
67763
|
onchainosAgentId: "*",
|
|
67763
67764
|
reason: "system-config missing sentryDsn",
|
|
67764
67765
|
pluginId: "@okxweb3/a2a-node",
|
|
67765
|
-
pluginVersion: "0.2.
|
|
67766
|
+
pluginVersion: "0.2.12-beta-7449a77b9d-260908213110"
|
|
67766
67767
|
});
|
|
67767
67768
|
}
|
|
67768
67769
|
logWithTimestamp(
|
|
@@ -70530,7 +70531,7 @@ async function exportDiagnosticLogs(options) {
|
|
|
70530
70531
|
node: process.version,
|
|
70531
70532
|
platform: process.platform,
|
|
70532
70533
|
arch: process.arch,
|
|
70533
|
-
packageVersion: true ? "0.2.
|
|
70534
|
+
packageVersion: true ? "0.2.12-beta-7449a77b9d-260908213110" : "unknown",
|
|
70534
70535
|
sensitiveContentIncluded: options.includeSensitiveContent,
|
|
70535
70536
|
listenerAndLlmContentIncluded: true,
|
|
70536
70537
|
credentialsAlwaysRedacted: true,
|
|
@@ -72412,7 +72413,7 @@ async function runDoctor(options = {}) {
|
|
|
72412
72413
|
platform: options.platform ?? process.platform,
|
|
72413
72414
|
env: options.env ?? process.env,
|
|
72414
72415
|
target: options.target ?? resolveDoctorTarget(options.env ?? process.env),
|
|
72415
|
-
cliVersion: options.cliVersion ?? (true ? "0.2.
|
|
72416
|
+
cliVersion: options.cliVersion ?? (true ? "0.2.12-beta-7449a77b9d-260908213110" : "0.0.0"),
|
|
72416
72417
|
fixMode: options.fix === true,
|
|
72417
72418
|
nonInteractive: options.nonInteractive === true,
|
|
72418
72419
|
packageChanged: false,
|
package/package.json
CHANGED