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 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", "ui.page.open requires one literal or bound URL"));
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", "ui.page.open URL must use https or the approved Alipay scheme"));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkque-cli-v2",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EModelProvider
3
- } from "./chunk-OYT6HQOV.js";
3
+ } from "./chunk-NJKO34ZC.js";
4
4
 
5
5
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js
6
6
  var baked;
@@ -22,7 +22,7 @@ import {
22
22
  RUNTIME_CONFIG_DEFAULTS,
23
23
  RuntimeConfigProvider,
24
24
  isDebugLoggingEnabled
25
- } from "./chunk-OYT6HQOV.js";
25
+ } from "./chunk-NJKO34ZC.js";
26
26
  import {
27
27
  __commonJS,
28
28
  __require,
@@ -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", "ui.page.open requires one literal or bound URL"));
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", "ui.page.open URL must use https or the approved Alipay scheme"));
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-U6OH2FQV.js";
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-UAOFFEXJ.js";
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-OYT6HQOV.js";
199
+ } from "../../chunk-NJKO34ZC.js";
200
200
  import "../../chunk-EAODRPW4.js";
201
201
  import "../../chunk-XUFLSZM4.js";
202
202
  import "../../chunk-GAYNLDWK.js";
@@ -3,11 +3,11 @@ import {
3
3
  runClientCapability,
4
4
  runClientCapabilityCleanup,
5
5
  runClientCapabilityResult
6
- } from "../../chunk-U6OH2FQV.js";
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-OYT6HQOV.js";
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-UAOFFEXJ.js";
5
- import "../chunk-OYT6HQOV.js";
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", "ui.page.open requires one literal or bound URL"));
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", "ui.page.open URL must use https or the approved Alipay scheme"));
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)}`));