linkque-cli-v2 1.3.4 → 1.3.6

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
@@ -21611,6 +21611,54 @@ function getA2UIV4ProtocolIssues(value, path23 = "card") {
21611
21611
  validateReferences(surfaces, path23, issues);
21612
21612
  return issues;
21613
21613
  }
21614
+ function validateV4Component(component, componentPath, issues) {
21615
+ const schema = A2UI_V4_COMPONENT_CATALOG.components[component.component];
21616
+ if (!schema) {
21617
+ issues.push(issue2(`${componentPath}.component`, "UNSUPPORTED_COMPONENT", `V4 does not support component ${component.component}`));
21618
+ return;
21619
+ }
21620
+ const allowed = /* @__PURE__ */ new Set([
21621
+ "id",
21622
+ "component",
21623
+ ...Object.keys(schema.properties)
21624
+ ]);
21625
+ for (const key of Object.keys(component))
21626
+ if (!allowed.has(key))
21627
+ issues.push(issue2(`${componentPath}.${key}`, "UNSUPPORTED_COMPONENT_PROP", `${component.component} does not support property ${key}`));
21628
+ for (const [name, property] of Object.entries(schema.properties)) {
21629
+ const value = component[name];
21630
+ if (property.required && value === void 0)
21631
+ issues.push(issue2(`${componentPath}.${name}`, "REQUIRED_COMPONENT_PROP_MISSING", `${component.component}.${name} is required`));
21632
+ if (value !== void 0)
21633
+ validateProperty(value, property, `${componentPath}.${name}`, issues, name);
21634
+ }
21635
+ if (component["x2-overflow"] !== void 0)
21636
+ validateOverflow(component, componentPath, issues);
21637
+ if (component.component === "TextField")
21638
+ validateTextField(component, componentPath, issues);
21639
+ if (component.component === "ChoicePicker") {
21640
+ if (!isStrictBinding(component.value))
21641
+ issues.push(issue2(`${componentPath}.value`, "INPUT_REQUIRES_BINDING", "ChoicePicker.value must be a strict writable binding"));
21642
+ validateOptions(component.options, `${componentPath}.options`, issues);
21643
+ }
21644
+ if (component.component === "Stepper")
21645
+ validateStepper(component, componentPath, issues);
21646
+ if (["Card", "Row", "Column", "List"].includes(component.component)) {
21647
+ for (const axis of ["width", "height"]) {
21648
+ const value = component[axis];
21649
+ const modes = axis === "width" ? ["fit", "fill"] : ["auto"];
21650
+ if (value !== void 0 && !(typeof value === "string" && (modes.includes(value) || /^\d+(?:\.\d+)?px$/.test(value) && Number.isFinite(parseFloat(value))))) {
21651
+ issues.push(issue2(`${componentPath}.${axis}`, "INVALID_COMPONENT_PROP_VALUE", `size must be ${modes.join(" / ")} or a non-negative px string such as 120px`));
21652
+ }
21653
+ }
21654
+ }
21655
+ if (component.checks !== void 0)
21656
+ validateChecks(component.checks, `${componentPath}.checks`, issues);
21657
+ if (component.format !== void 0 && component.component === "Text")
21658
+ validateNumberFormat(component.format, `${componentPath}.format`, issues);
21659
+ if (component.action !== void 0)
21660
+ validateAction(component.action, `${componentPath}.action`, issues, 0);
21661
+ }
21614
21662
  function validateComponents(payload, path23, surfaces, issues) {
21615
21663
  if (!Array.isArray(payload.components)) {
21616
21664
  issues.push(issue2(`${path23}.updateComponents.components`, "INVALID_A2UI_COMPONENTS", "components must be an array"));
@@ -21627,52 +21675,7 @@ function validateComponents(payload, path23, surfaces, issues) {
21627
21675
  if (surface.has(component.id))
21628
21676
  issues.push(issue2(`${componentPath}.id`, "DUPLICATE_COMPONENT_ID", `component id ${component.id} is duplicated`));
21629
21677
  surface.set(component.id, component);
21630
- const schema = A2UI_V4_COMPONENT_CATALOG.components[component.component];
21631
- if (!schema) {
21632
- issues.push(issue2(`${componentPath}.component`, "UNSUPPORTED_COMPONENT", `V4 does not support component ${component.component}`));
21633
- return;
21634
- }
21635
- const allowed = /* @__PURE__ */ new Set([
21636
- "id",
21637
- "component",
21638
- ...Object.keys(schema.properties)
21639
- ]);
21640
- for (const key of Object.keys(component))
21641
- if (!allowed.has(key))
21642
- issues.push(issue2(`${componentPath}.${key}`, "UNSUPPORTED_COMPONENT_PROP", `${component.component} does not support property ${key}`));
21643
- for (const [name, property] of Object.entries(schema.properties)) {
21644
- const value = component[name];
21645
- if (property.required && value === void 0)
21646
- issues.push(issue2(`${componentPath}.${name}`, "REQUIRED_COMPONENT_PROP_MISSING", `${component.component}.${name} is required`));
21647
- if (value !== void 0)
21648
- validateProperty(value, property, `${componentPath}.${name}`, issues, name);
21649
- }
21650
- if (component["x2-overflow"] !== void 0)
21651
- validateOverflow(component, componentPath, issues);
21652
- if (component.component === "TextField")
21653
- validateTextField(component, componentPath, issues);
21654
- if (component.component === "ChoicePicker") {
21655
- if (!isStrictBinding(component.value))
21656
- issues.push(issue2(`${componentPath}.value`, "INPUT_REQUIRES_BINDING", "ChoicePicker.value must be a strict writable binding"));
21657
- validateOptions(component.options, `${componentPath}.options`, issues);
21658
- }
21659
- if (component.component === "Stepper")
21660
- validateStepper(component, componentPath, issues);
21661
- if (["Card", "Row", "Column", "List"].includes(component.component)) {
21662
- for (const axis of ["width", "height"]) {
21663
- const value = component[axis];
21664
- const modes = axis === "width" ? ["fit", "fill"] : ["auto"];
21665
- if (value !== void 0 && !(typeof value === "string" && (modes.includes(value) || /^\d+(?:\.\d+)?px$/.test(value) && Number.isFinite(parseFloat(value))))) {
21666
- issues.push(issue2(`${componentPath}.${axis}`, "INVALID_COMPONENT_PROP_VALUE", `size must be ${modes.join(" / ")} or a non-negative px string such as 120px`));
21667
- }
21668
- }
21669
- }
21670
- if (component.checks !== void 0)
21671
- validateChecks(component.checks, `${componentPath}.checks`, issues);
21672
- if (component.format !== void 0 && component.component === "Text")
21673
- validateNumberFormat(component.format, `${componentPath}.format`, issues);
21674
- if (component.action !== void 0)
21675
- validateAction(component.action, `${componentPath}.action`, issues, 0);
21678
+ validateV4Component(component, componentPath, issues);
21676
21679
  });
21677
21680
  }
21678
21681
  function validateProperty(value, schema, path23, issues, propertyName) {
@@ -23809,7 +23812,7 @@ var MCP_PROXY_DESCRIPTION = [
23809
23812
  "\u4EC5 mcp({}) \u5217\u51FA\u7684\u5DE5\u5177\u53EF\u8C03\u7528(\u672A\u58F0\u660E\u7684\u5DE5\u5177\u4E0D\u4F1A\u51FA\u73B0)\u3002"
23810
23813
  ].join("\n");
23811
23814
 
23812
- // ../linkque-agent-runtime/dist/esm/core/telemetry/telemetryEnums.js
23815
+ // ../linkque-agent-protocol/dist/esm/telemetry/telemetryEnums.js
23813
23816
  var ETelemetryAttribute;
23814
23817
  (function(ETelemetryAttribute2) {
23815
23818
  ETelemetryAttribute2["HARNESS_TELEMETRY_SCHEMA_VERSION"] = "harness.telemetry.schema.version";
@@ -24001,24 +24004,6 @@ var ETelemetrySignal;
24001
24004
  ETelemetrySignal2["LOGS"] = "logs";
24002
24005
  ETelemetrySignal2["TRACES"] = "traces";
24003
24006
  })(ETelemetrySignal || (ETelemetrySignal = {}));
24004
- var ETelemetryDiagnosticCode;
24005
- (function(ETelemetryDiagnosticCode2) {
24006
- ETelemetryDiagnosticCode2["INVALID_AUTHORIZATION"] = "invalid_authorization";
24007
- ETelemetryDiagnosticCode2["PARTITION_LIMIT"] = "partition_limit";
24008
- ETelemetryDiagnosticCode2["UNAVAILABLE_PARTITION"] = "unavailable_partition";
24009
- ETelemetryDiagnosticCode2["QUEUE_LIMIT"] = "queue_limit";
24010
- ETelemetryDiagnosticCode2["QUEUE_EXPIRED"] = "queue_expired";
24011
- ETelemetryDiagnosticCode2["SENDER_FAILED"] = "sender_failed";
24012
- ETelemetryDiagnosticCode2["PARTIAL_SUCCESS"] = "partial_success";
24013
- ETelemetryDiagnosticCode2["AUTHORIZATION_REJECTED"] = "authorization_rejected";
24014
- ETelemetryDiagnosticCode2["PERMANENT_REJECTION"] = "permanent_rejection";
24015
- ETelemetryDiagnosticCode2["SEND_RETRY"] = "send_retry";
24016
- ETelemetryDiagnosticCode2["SHUTDOWN_DROP"] = "shutdown_drop";
24017
- ETelemetryDiagnosticCode2["LOCAL_SINK_FAILED"] = "local_sink_failed";
24018
- ETelemetryDiagnosticCode2["CAPTURE_FAILED"] = "capture_failed";
24019
- ETelemetryDiagnosticCode2["IDENTITY_MISMATCH"] = "identity_mismatch";
24020
- ETelemetryDiagnosticCode2["ACTIVE_LIMIT"] = "active_limit";
24021
- })(ETelemetryDiagnosticCode || (ETelemetryDiagnosticCode = {}));
24022
24007
  var ETelemetryLossReason;
24023
24008
  (function(ETelemetryLossReason2) {
24024
24009
  ETelemetryLossReason2["UNCAUGHT_ERROR"] = "uncaught_error";
@@ -24149,6 +24134,31 @@ var ETelemetryGenAiOperation;
24149
24134
  ETelemetryGenAiOperation2["EXECUTE_TOOL"] = "execute_tool";
24150
24135
  ETelemetryGenAiOperation2["INVOKE_AGENT"] = "invoke_agent";
24151
24136
  })(ETelemetryGenAiOperation || (ETelemetryGenAiOperation = {}));
24137
+ var ETelemetryVersion;
24138
+ (function(ETelemetryVersion2) {
24139
+ ETelemetryVersion2["V0_2"] = "0.2";
24140
+ ETelemetryVersion2["V1_0"] = "1.0";
24141
+ })(ETelemetryVersion || (ETelemetryVersion = {}));
24142
+
24143
+ // ../linkque-agent-runtime/dist/esm/core/telemetry/telemetryEnums.js
24144
+ var ETelemetryDiagnosticCode;
24145
+ (function(ETelemetryDiagnosticCode2) {
24146
+ ETelemetryDiagnosticCode2["INVALID_AUTHORIZATION"] = "invalid_authorization";
24147
+ ETelemetryDiagnosticCode2["PARTITION_LIMIT"] = "partition_limit";
24148
+ ETelemetryDiagnosticCode2["UNAVAILABLE_PARTITION"] = "unavailable_partition";
24149
+ ETelemetryDiagnosticCode2["QUEUE_LIMIT"] = "queue_limit";
24150
+ ETelemetryDiagnosticCode2["QUEUE_EXPIRED"] = "queue_expired";
24151
+ ETelemetryDiagnosticCode2["SENDER_FAILED"] = "sender_failed";
24152
+ ETelemetryDiagnosticCode2["PARTIAL_SUCCESS"] = "partial_success";
24153
+ ETelemetryDiagnosticCode2["AUTHORIZATION_REJECTED"] = "authorization_rejected";
24154
+ ETelemetryDiagnosticCode2["PERMANENT_REJECTION"] = "permanent_rejection";
24155
+ ETelemetryDiagnosticCode2["SEND_RETRY"] = "send_retry";
24156
+ ETelemetryDiagnosticCode2["SHUTDOWN_DROP"] = "shutdown_drop";
24157
+ ETelemetryDiagnosticCode2["LOCAL_SINK_FAILED"] = "local_sink_failed";
24158
+ ETelemetryDiagnosticCode2["CAPTURE_FAILED"] = "capture_failed";
24159
+ ETelemetryDiagnosticCode2["IDENTITY_MISMATCH"] = "identity_mismatch";
24160
+ ETelemetryDiagnosticCode2["ACTIVE_LIMIT"] = "active_limit";
24161
+ })(ETelemetryDiagnosticCode || (ETelemetryDiagnosticCode = {}));
24152
24162
  var ETelemetryAssociation;
24153
24163
  (function(ETelemetryAssociation2) {
24154
24164
  ETelemetryAssociation2["LOOP"] = "loop";
@@ -24164,11 +24174,6 @@ var ETelemetryMetadata;
24164
24174
  ETelemetryMetadata2["SERVICE_NAMESPACE"] = "linkque";
24165
24175
  ETelemetryMetadata2["ROUTE_CONTEXT_KEY"] = "linkque.telemetry.route";
24166
24176
  })(ETelemetryMetadata || (ETelemetryMetadata = {}));
24167
- var ETelemetryVersion;
24168
- (function(ETelemetryVersion2) {
24169
- ETelemetryVersion2["V0_2"] = "0.2";
24170
- ETelemetryVersion2["V1_0"] = "1.0";
24171
- })(ETelemetryVersion || (ETelemetryVersion = {}));
24172
24177
 
24173
24178
  // ../linkque-agent-runtime/dist/esm/config/runtimeConfigProvider.js
24174
24179
  var LINKQUE_ENDPOINT_PROD = "https://linkquegw.alipay.com";
@@ -34572,8 +34577,6 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
34572
34577
  SEARCH_TABLE_ID: "linkque_conversation_message_search",
34573
34578
  CLIENT_CAPABILITY_DATABASE_ID: "linkque",
34574
34579
  CLIENT_CAPABILITY_TABLE_ID: "linkque_client_cap_invocations",
34575
- A2UI_ACTION_DATABASE_ID: "linkque",
34576
- A2UI_ACTION_TABLE_ID: "linkque_a2ui_action_invocations",
34577
34580
  RUN_CHUNK_SIZE: "30",
34578
34581
  RUN_CANCEL_POLL_INTERVAL_MS: "500",
34579
34582
  LOG_LEVEL: "INFO"
@@ -34582,97 +34585,6 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
34582
34585
  // src/commands/agentbuild/configTemplate.ts
34583
34586
  var import_path7 = __toESM(require("path"));
34584
34587
  var APPWRITE_CONFIG_NAME = "appwrite.config.json";
34585
- var A2UI_ACTION_TABLE_COLUMNS = [
34586
- ...[
34587
- "ownerId",
34588
- "agentId",
34589
- "threadId",
34590
- "cardRef",
34591
- "cardRevision",
34592
- "surfaceId",
34593
- "componentId"
34594
- ].map((key) => ({
34595
- key,
34596
- type: "varchar",
34597
- required: true,
34598
- array: false,
34599
- size: 128,
34600
- default: null
34601
- })),
34602
- {
34603
- key: "cardInstanceId",
34604
- type: "varchar",
34605
- required: true,
34606
- array: false,
34607
- size: 256,
34608
- default: null
34609
- },
34610
- {
34611
- key: "status",
34612
- type: "varchar",
34613
- required: true,
34614
- array: false,
34615
- size: 32,
34616
- default: null
34617
- },
34618
- {
34619
- key: "input",
34620
- type: "text",
34621
- required: true,
34622
- array: false,
34623
- size: 0,
34624
- default: null
34625
- },
34626
- {
34627
- key: "tradeNO",
34628
- type: "varchar",
34629
- required: false,
34630
- array: false,
34631
- size: 64,
34632
- default: null
34633
- },
34634
- {
34635
- key: "callback",
34636
- type: "text",
34637
- required: false,
34638
- array: false,
34639
- size: 0,
34640
- default: null
34641
- },
34642
- {
34643
- key: "verification",
34644
- type: "text",
34645
- required: false,
34646
- array: false,
34647
- size: 0,
34648
- default: null
34649
- },
34650
- {
34651
- key: "createdAt",
34652
- type: "varchar",
34653
- required: true,
34654
- array: false,
34655
- size: 32,
34656
- default: null
34657
- },
34658
- {
34659
- key: "expiresAt",
34660
- type: "varchar",
34661
- required: true,
34662
- array: false,
34663
- size: 32,
34664
- default: null
34665
- }
34666
- ];
34667
- var A2UI_ACTION_TABLE_INDEXES = [
34668
- {
34669
- key: "thread_status",
34670
- type: "key",
34671
- columns: ["threadId", "status"],
34672
- orders: ["asc", "asc"]
34673
- },
34674
- { key: "expires_at", type: "key", columns: ["expiresAt"], orders: ["asc"] }
34675
- ];
34676
34588
  var CLIENT_CAPABILITY_TABLE_COLUMNS = [
34677
34589
  ...["ownerId", "agentId", "threadId", "runId", "toolCallId"].map((key) => ({
34678
34590
  key,
@@ -35336,16 +35248,6 @@ var TABLES = [
35336
35248
  permissions: [],
35337
35249
  columns: CLIENT_CAPABILITY_TABLE_COLUMNS,
35338
35250
  indexes: CLIENT_CAPABILITY_TABLE_INDEXES
35339
- },
35340
- {
35341
- $id: APPBASE_RUNTIME_CONFIG_DEFAULTS.A2UI_ACTION_TABLE_ID,
35342
- databaseId: APPBASE_RUNTIME_CONFIG_DEFAULTS.A2UI_ACTION_DATABASE_ID,
35343
- name: APPBASE_RUNTIME_CONFIG_DEFAULTS.A2UI_ACTION_TABLE_ID,
35344
- enabled: true,
35345
- rowSecurity: true,
35346
- permissions: [],
35347
- columns: A2UI_ACTION_TABLE_COLUMNS,
35348
- indexes: A2UI_ACTION_TABLE_INDEXES
35349
35251
  }
35350
35252
  ];
35351
35253
  var buildAppwriteConfigTemplate = (envOverrides = {}) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkque-cli-v2",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"