linkque-cli-v2 1.6.22 → 1.6.23
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/linkquejs.js +34 -12
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-5YW4CWBG.js → chunk-55VHSCSE.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-Q6N5427R.js → chunk-FB6H4CGZ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-27TIUPEZ.js → chunk-NOCU2PBJ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +2 -2
- package/worker.js +2 -2
package/linkquejs.js
CHANGED
|
@@ -34500,9 +34500,19 @@ function splitAgentCards(input) {
|
|
|
34500
34500
|
for (const resource of config3.agent.resources ?? []) {
|
|
34501
34501
|
if (resource.resourceType !== "CARD")
|
|
34502
34502
|
continue;
|
|
34503
|
+
const { config: inline } = resource;
|
|
34504
|
+
const directory = `cards/${encodeURIComponent(resource.resourceId)}/${contentChecksum(inline)}`;
|
|
34505
|
+
const definitionRef = `${directory}/card.json`;
|
|
34506
|
+
const bindingRef = `${directory}/binding.json`;
|
|
34507
|
+
if (inline.format === "alipay-a2ui") {
|
|
34508
|
+
const { protocol, ...binding2 } = inline;
|
|
34509
|
+
files[definitionRef] = { format: inline.format, protocol };
|
|
34510
|
+
files[bindingRef] = { ...binding2, definitionRef };
|
|
34511
|
+
resource.config = { format: inline.format, bindingRef };
|
|
34512
|
+
continue;
|
|
34513
|
+
}
|
|
34503
34514
|
if (resource.config.schemaVersion !== "4")
|
|
34504
34515
|
throw new Error("\u5361\u7247\u5B58\u50A8\u53EA\u652F\u6301 V4");
|
|
34505
|
-
const directory = `cards/${encodeURIComponent(resource.resourceId)}/${contentChecksum(resource.config)}`;
|
|
34506
34516
|
const template = resource.config.a2uiTemplate;
|
|
34507
34517
|
const definition = {
|
|
34508
34518
|
format: "linkque-a2ui",
|
|
@@ -34510,12 +34520,12 @@ function splitAgentCards(input) {
|
|
|
34510
34520
|
};
|
|
34511
34521
|
const binding = {
|
|
34512
34522
|
...resource.config,
|
|
34513
|
-
definitionRef
|
|
34523
|
+
definitionRef,
|
|
34514
34524
|
a2uiTemplate: { argsSchema: template.argsSchema }
|
|
34515
34525
|
};
|
|
34516
|
-
files[
|
|
34517
|
-
files[
|
|
34518
|
-
resource.config = { bindingRef
|
|
34526
|
+
files[definitionRef] = definition;
|
|
34527
|
+
files[bindingRef] = binding;
|
|
34528
|
+
resource.config = { bindingRef };
|
|
34519
34529
|
}
|
|
34520
34530
|
return { config: config3, files };
|
|
34521
34531
|
}
|
|
@@ -34525,6 +34535,8 @@ async function hydrateAgentCards(input, readJson) {
|
|
|
34525
34535
|
if (resource.resourceType !== "CARD")
|
|
34526
34536
|
continue;
|
|
34527
34537
|
if (!("bindingRef" in resource.config)) {
|
|
34538
|
+
if (resource.config.format === "alipay-a2ui")
|
|
34539
|
+
continue;
|
|
34528
34540
|
if (resource.config.schemaVersion !== "4")
|
|
34529
34541
|
throw new Error("\u5361\u7247\u5B58\u50A8\u53EA\u652F\u6301 V4");
|
|
34530
34542
|
const template = resource.config.a2uiTemplate;
|
|
@@ -34536,16 +34548,26 @@ async function hydrateAgentCards(input, readJson) {
|
|
|
34536
34548
|
assertCardPath(binding.definitionRef);
|
|
34537
34549
|
const definition = await readJson(binding.definitionRef);
|
|
34538
34550
|
const { definitionRef: _ref, ...execution } = binding;
|
|
34539
|
-
resource.config =
|
|
34540
|
-
...execution,
|
|
34541
|
-
a2uiTemplate: {
|
|
34542
|
-
...execution.a2uiTemplate,
|
|
34543
|
-
content: canonicalJson(definition.protocol)
|
|
34544
|
-
}
|
|
34545
|
-
};
|
|
34551
|
+
resource.config = inlineCard(execution, definition);
|
|
34546
34552
|
}
|
|
34547
34553
|
return config3;
|
|
34548
34554
|
}
|
|
34555
|
+
function inlineCard(binding, definition) {
|
|
34556
|
+
if (definition.format === "alipay-a2ui") {
|
|
34557
|
+
return {
|
|
34558
|
+
...binding,
|
|
34559
|
+
format: definition.format,
|
|
34560
|
+
protocol: definition.protocol
|
|
34561
|
+
};
|
|
34562
|
+
}
|
|
34563
|
+
return {
|
|
34564
|
+
...binding,
|
|
34565
|
+
a2uiTemplate: {
|
|
34566
|
+
...binding.a2uiTemplate,
|
|
34567
|
+
content: canonicalJson(definition.protocol)
|
|
34568
|
+
}
|
|
34569
|
+
};
|
|
34570
|
+
}
|
|
34549
34571
|
|
|
34550
34572
|
// src/utils/files.ts
|
|
34551
34573
|
var import_crypto = require("crypto");
|
package/package.json
CHANGED
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-5YW4CWBG.js → chunk-55VHSCSE.js}
RENAMED
|
@@ -46157,7 +46157,7 @@ function projectPresentationReceiptForModel(receipt) {
|
|
|
46157
46157
|
};
|
|
46158
46158
|
}
|
|
46159
46159
|
function parseCardConfig(resource) {
|
|
46160
|
-
if ("definitionRef" in resource.config)
|
|
46160
|
+
if ("definitionRef" in resource.config && resource.config.schemaVersion === "4")
|
|
46161
46161
|
return resource.config;
|
|
46162
46162
|
const parsed = parseA2UICardResourceConfig(resource.config);
|
|
46163
46163
|
if (!parsed.success) {
|
|
@@ -59,13 +59,13 @@ import {
|
|
|
59
59
|
resolveRunStorage,
|
|
60
60
|
toAgentRunMessages,
|
|
61
61
|
withIsoTimestamp
|
|
62
|
-
} from "../../chunk-
|
|
62
|
+
} from "../../chunk-FB6H4CGZ.js";
|
|
63
63
|
import "../../chunk-IWOFD643.js";
|
|
64
64
|
import "../../chunk-PXCGFBV5.js";
|
|
65
65
|
import "../../chunk-ETG6PNHQ.js";
|
|
66
66
|
import {
|
|
67
67
|
getBakedProtocol
|
|
68
|
-
} from "../../chunk-
|
|
68
|
+
} from "../../chunk-NOCU2PBJ.js";
|
|
69
69
|
import {
|
|
70
70
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
71
71
|
AUTHORIZATION_CONFIRM_EVENT,
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
warnLogFailure,
|
|
237
237
|
wrapToolWithHooks,
|
|
238
238
|
writeJsonPointer
|
|
239
|
-
} from "../../chunk-
|
|
239
|
+
} from "../../chunk-55VHSCSE.js";
|
|
240
240
|
import "../../chunk-XUFLSZM4.js";
|
|
241
241
|
import "../../chunk-GAYNLDWK.js";
|
|
242
242
|
import "../../chunk-SICWMO5Y.js";
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
runClientCapability,
|
|
4
4
|
runClientCapabilityCleanup,
|
|
5
5
|
runClientCapabilityResult
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-FB6H4CGZ.js";
|
|
7
7
|
import "../../chunk-IWOFD643.js";
|
|
8
8
|
import "../../chunk-PXCGFBV5.js";
|
|
9
9
|
import "../../chunk-ETG6PNHQ.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-55VHSCSE.js";
|
|
11
11
|
import "../../chunk-XUFLSZM4.js";
|
|
12
12
|
import "../../chunk-GAYNLDWK.js";
|
|
13
13
|
import "../../chunk-SICWMO5Y.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBakedProtocol,
|
|
3
3
|
setBakedProtocol
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-NOCU2PBJ.js";
|
|
5
|
+
import "../chunk-55VHSCSE.js";
|
|
6
6
|
import "../chunk-XUFLSZM4.js";
|
|
7
7
|
import "../chunk-GAYNLDWK.js";
|
|
8
8
|
import "../chunk-SICWMO5Y.js";
|
package/worker.js
CHANGED
|
@@ -12291,7 +12291,7 @@ function projectPresentationReceiptForModel(receipt) {
|
|
|
12291
12291
|
};
|
|
12292
12292
|
}
|
|
12293
12293
|
function parseCardConfig(resource) {
|
|
12294
|
-
if ("definitionRef" in resource.config)
|
|
12294
|
+
if ("definitionRef" in resource.config && resource.config.schemaVersion === "4")
|
|
12295
12295
|
return resource.config;
|
|
12296
12296
|
const parsed = parseA2UICardResourceConfig(resource.config);
|
|
12297
12297
|
if (!parsed.success) {
|
|
@@ -240598,7 +240598,7 @@ async function readAgentCardBindings(configPath, input) {
|
|
|
240598
240598
|
resource.config = {
|
|
240599
240599
|
...binding,
|
|
240600
240600
|
definitionRef: {
|
|
240601
|
-
format: "linkque-a2ui",
|
|
240601
|
+
format: binding.format ?? "linkque-a2ui",
|
|
240602
240602
|
checksum: import_path4.default.basename(import_path4.default.dirname(binding.definitionRef)),
|
|
240603
240603
|
objectName: binding.definitionRef
|
|
240604
240604
|
}
|