linkque-cli-v2 1.6.8 → 1.6.9
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 +7 -7
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-UAOFFEXJ.js → chunk-BJXGRRWL.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-U6OH2FQV.js → chunk-HGKCCOSQ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-OYT6HQOV.js → chunk-NJKO34ZC.js} +3 -3
- 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 +3 -3
package/linkquejs.js
CHANGED
|
@@ -22545,11 +22545,11 @@ function validateClientAction(body, path24, issues) {
|
|
|
22545
22545
|
issues.push(issue2(`${path24}.context`, "INVALID_CLIENT_ACTION_CONTEXT", "ui.surface.open requires context.surfaceId"));
|
|
22546
22546
|
return;
|
|
22547
22547
|
}
|
|
22548
|
-
if (body.name === "ui.page.open") {
|
|
22548
|
+
if (body.name === "ui.page.open" || body.name === "ui.miniprogram.embed") {
|
|
22549
22549
|
if (!isPlainRecord(body.context) || Object.keys(body.context).length !== 1 || typeof body.context.url !== "string" && !isStrictBinding(body.context.url))
|
|
22550
|
-
issues.push(issue2(`${path24}.context`, "INVALID_CLIENT_ACTION_CONTEXT",
|
|
22550
|
+
issues.push(issue2(`${path24}.context`, "INVALID_CLIENT_ACTION_CONTEXT", `${body.name} requires one literal or bound URL`));
|
|
22551
22551
|
else if (typeof body.context.url === "string" && !isSafePageUrl(body.context.url))
|
|
22552
|
-
issues.push(issue2(`${path24}.context.url`, "INVALID_PAGE_URL",
|
|
22552
|
+
issues.push(issue2(`${path24}.context.url`, "INVALID_PAGE_URL", `${body.name} URL must use https or the approved Alipay scheme`));
|
|
22553
22553
|
return;
|
|
22554
22554
|
}
|
|
22555
22555
|
issues.push(issue2(`${path24}.name`, "UNSUPPORTED_CLIENT_ACTION", `unsupported client action ${String(body.name)}`));
|
|
@@ -24502,7 +24502,7 @@ function getA2UICardAuthoringDiagnostics(bundle, partial2) {
|
|
|
24502
24502
|
const component = findComponent(bundle, group.surfaceId, group.componentId);
|
|
24503
24503
|
const action = isPlainRecord(component?.action) ? component.action : void 0;
|
|
24504
24504
|
const client = action && isPlainRecord(action.client) ? action.client : void 0;
|
|
24505
|
-
if (client?.name === "ui.page.open") {
|
|
24505
|
+
if (client?.name === "ui.page.open" || client?.name === "ui.miniprogram.embed") {
|
|
24506
24506
|
const context = isPlainRecord(client.context) ? client.context : void 0;
|
|
24507
24507
|
if (typeof context?.url === "string" && !isSafePageUrl2(context.url)) {
|
|
24508
24508
|
diagnostics.push({
|
|
@@ -24642,16 +24642,16 @@ function actionTargets(component, occurrenceId) {
|
|
|
24642
24642
|
];
|
|
24643
24643
|
}
|
|
24644
24644
|
const client = isPlainRecord(action.client) ? action.client : void 0;
|
|
24645
|
-
if (client?.name === "ui.page.open") {
|
|
24645
|
+
if (client?.name === "ui.page.open" || client?.name === "ui.miniprogram.embed") {
|
|
24646
24646
|
const context = isPlainRecord(client.context) ? client.context : void 0;
|
|
24647
24647
|
const url2 = context?.url;
|
|
24648
24648
|
return [
|
|
24649
24649
|
{
|
|
24650
|
-
kind: "page-open",
|
|
24650
|
+
kind: client.name === "ui.miniprogram.embed" ? "miniprogram-embed" : "page-open",
|
|
24651
24651
|
targetId: createA2UICardAuthoringTargetId(occurrenceId, "action"),
|
|
24652
24652
|
occurrenceId,
|
|
24653
24653
|
propertyPath: "action",
|
|
24654
|
-
label: "\u6253\u5F00\u9875\u9762",
|
|
24654
|
+
label: client.name === "ui.miniprogram.embed" ? "\u5C0F\u7A0B\u5E8F\u534A\u5C4F\u6253\u5F00" : "\u6253\u5F00\u9875\u9762",
|
|
24655
24655
|
...typeof url2 === "string" ? { url: url2 } : {},
|
|
24656
24656
|
dynamic: isPlainRecord(url2) && typeof url2.path === "string"
|
|
24657
24657
|
}
|
package/package.json
CHANGED
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-OYT6HQOV.js → chunk-NJKO34ZC.js}
RENAMED
|
@@ -24632,11 +24632,11 @@ function validateClientAction(body, path2, issues) {
|
|
|
24632
24632
|
issues.push(issue2(`${path2}.context`, "INVALID_CLIENT_ACTION_CONTEXT", "ui.surface.open requires context.surfaceId"));
|
|
24633
24633
|
return;
|
|
24634
24634
|
}
|
|
24635
|
-
if (body.name === "ui.page.open") {
|
|
24635
|
+
if (body.name === "ui.page.open" || body.name === "ui.miniprogram.embed") {
|
|
24636
24636
|
if (!isPlainRecord(body.context) || Object.keys(body.context).length !== 1 || typeof body.context.url !== "string" && !isStrictBinding(body.context.url))
|
|
24637
|
-
issues.push(issue2(`${path2}.context`, "INVALID_CLIENT_ACTION_CONTEXT",
|
|
24637
|
+
issues.push(issue2(`${path2}.context`, "INVALID_CLIENT_ACTION_CONTEXT", `${body.name} requires one literal or bound URL`));
|
|
24638
24638
|
else if (typeof body.context.url === "string" && !isSafePageUrl(body.context.url))
|
|
24639
|
-
issues.push(issue2(`${path2}.context.url`, "INVALID_PAGE_URL",
|
|
24639
|
+
issues.push(issue2(`${path2}.context.url`, "INVALID_PAGE_URL", `${body.name} URL must use https or the approved Alipay scheme`));
|
|
24640
24640
|
return;
|
|
24641
24641
|
}
|
|
24642
24642
|
issues.push(issue2(`${path2}.name`, "UNSUPPORTED_CLIENT_ACTION", `unsupported client action ${String(body.name)}`));
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
resolveRunStorage,
|
|
51
51
|
toAgentRunMessages,
|
|
52
52
|
withIsoTimestamp
|
|
53
|
-
} from "../../chunk-
|
|
53
|
+
} from "../../chunk-HGKCCOSQ.js";
|
|
54
54
|
import "../../chunk-IWOFD643.js";
|
|
55
55
|
import "../../chunk-PXCGFBV5.js";
|
|
56
56
|
import "../../chunk-ETG6PNHQ.js";
|
|
57
57
|
import {
|
|
58
58
|
getBakedProtocol
|
|
59
|
-
} from "../../chunk-
|
|
59
|
+
} from "../../chunk-BJXGRRWL.js";
|
|
60
60
|
import {
|
|
61
61
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
62
62
|
CANCEL_CONVERSATION_RUN_OPERATION,
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
warnLogFailure,
|
|
197
197
|
wrapToolWithHooks,
|
|
198
198
|
writeJsonPointer
|
|
199
|
-
} from "../../chunk-
|
|
199
|
+
} from "../../chunk-NJKO34ZC.js";
|
|
200
200
|
import "../../chunk-EAODRPW4.js";
|
|
201
201
|
import "../../chunk-XUFLSZM4.js";
|
|
202
202
|
import "../../chunk-GAYNLDWK.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-HGKCCOSQ.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-NJKO34ZC.js";
|
|
11
11
|
import "../../chunk-EAODRPW4.js";
|
|
12
12
|
import "../../chunk-XUFLSZM4.js";
|
|
13
13
|
import "../../chunk-GAYNLDWK.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBakedProtocol,
|
|
3
3
|
setBakedProtocol
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-BJXGRRWL.js";
|
|
5
|
+
import "../chunk-NJKO34ZC.js";
|
|
6
6
|
import "../chunk-EAODRPW4.js";
|
|
7
7
|
import "../chunk-XUFLSZM4.js";
|
|
8
8
|
import "../chunk-GAYNLDWK.js";
|
package/worker.js
CHANGED
|
@@ -10039,11 +10039,11 @@ function validateClientAction(body, path9, issues) {
|
|
|
10039
10039
|
issues.push(issue2(`${path9}.context`, "INVALID_CLIENT_ACTION_CONTEXT", "ui.surface.open requires context.surfaceId"));
|
|
10040
10040
|
return;
|
|
10041
10041
|
}
|
|
10042
|
-
if (body.name === "ui.page.open") {
|
|
10042
|
+
if (body.name === "ui.page.open" || body.name === "ui.miniprogram.embed") {
|
|
10043
10043
|
if (!isPlainRecord(body.context) || Object.keys(body.context).length !== 1 || typeof body.context.url !== "string" && !isStrictBinding(body.context.url))
|
|
10044
|
-
issues.push(issue2(`${path9}.context`, "INVALID_CLIENT_ACTION_CONTEXT",
|
|
10044
|
+
issues.push(issue2(`${path9}.context`, "INVALID_CLIENT_ACTION_CONTEXT", `${body.name} requires one literal or bound URL`));
|
|
10045
10045
|
else if (typeof body.context.url === "string" && !isSafePageUrl(body.context.url))
|
|
10046
|
-
issues.push(issue2(`${path9}.context.url`, "INVALID_PAGE_URL",
|
|
10046
|
+
issues.push(issue2(`${path9}.context.url`, "INVALID_PAGE_URL", `${body.name} URL must use https or the approved Alipay scheme`));
|
|
10047
10047
|
return;
|
|
10048
10048
|
}
|
|
10049
10049
|
issues.push(issue2(`${path9}.name`, "UNSUPPORTED_CLIENT_ACTION", `unsupported client action ${String(body.name)}`));
|