linkque-cli-v2 1.2.9 → 1.3.1
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 +867 -1107
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LULNN6DW.js → chunk-CITJWG2O.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-G46UWJIX.js → chunk-KTFQX5XN.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-WPZG6QOH.js → chunk-P5YTVR76.js} +65 -98
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +5 -4
- 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 +69 -101
package/package.json
CHANGED
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-WPZG6QOH.js → chunk-P5YTVR76.js}
RENAMED
|
@@ -8994,8 +8994,6 @@ var ALLOWED_AST_TYPES = /* @__PURE__ */ new Set([
|
|
|
8994
8994
|
"Field",
|
|
8995
8995
|
"Function",
|
|
8996
8996
|
"Identity",
|
|
8997
|
-
"Index",
|
|
8998
|
-
"IndexExpression",
|
|
8999
8997
|
"KeyValuePair",
|
|
9000
8998
|
"Literal",
|
|
9001
8999
|
"MultiSelectHash",
|
|
@@ -9067,9 +9065,6 @@ function validateAst(ast) {
|
|
|
9067
9065
|
if (!ALLOWED_AST_TYPES.has(value.type)) {
|
|
9068
9066
|
throw new StructuralExpressionError("STRUCTURAL_EXPRESSION_NODE_FORBIDDEN", `JMESPath node ${value.type} is not allowed`);
|
|
9069
9067
|
}
|
|
9070
|
-
if (value.type === "Index" && (typeof value.value !== "number" || !Number.isSafeInteger(value.value) || value.value < 0)) {
|
|
9071
|
-
throw new StructuralExpressionError("STRUCTURAL_EXPRESSION_INVALID", "array index must be a non-negative safe integer");
|
|
9072
|
-
}
|
|
9073
9068
|
if (value.type === "Function" && value.name !== "not_null") {
|
|
9074
9069
|
throw new StructuralExpressionError("STRUCTURAL_EXPRESSION_FUNCTION_FORBIDDEN", `JMESPath function ${String(value.name)} is not allowed`);
|
|
9075
9070
|
}
|
|
@@ -9857,8 +9852,6 @@ var ALLOWED_AST_TYPES2 = /* @__PURE__ */ new Set([
|
|
|
9857
9852
|
"Field",
|
|
9858
9853
|
"Function",
|
|
9859
9854
|
"Identity",
|
|
9860
|
-
"Index",
|
|
9861
|
-
"IndexExpression",
|
|
9862
9855
|
"KeyValuePair",
|
|
9863
9856
|
"Literal",
|
|
9864
9857
|
"MultiSelectHash",
|
|
@@ -9951,9 +9944,6 @@ function validateAst2(ast) {
|
|
|
9951
9944
|
if (!ALLOWED_AST_TYPES2.has(value.type)) {
|
|
9952
9945
|
throw new A2UICardExpressionError("CARD_EXPRESSION_NODE_FORBIDDEN", `JMESPath node ${value.type} is not allowed by ${A2UI_CARD_TRANSFORM_PROFILE}`);
|
|
9953
9946
|
}
|
|
9954
|
-
if (value.type === "Index" && (typeof value.value !== "number" || !Number.isSafeInteger(value.value) || value.value < 0)) {
|
|
9955
|
-
throw new A2UICardExpressionError("CARD_EXPRESSION_INVALID", "array index must be a non-negative safe integer");
|
|
9956
|
-
}
|
|
9957
9947
|
if (value.type === "Function" && value.name !== "not_null") {
|
|
9958
9948
|
throw new A2UICardExpressionError("CARD_EXPRESSION_FUNCTION_FORBIDDEN", `JMESPath function ${String(value.name)} is not allowed`);
|
|
9959
9949
|
}
|
|
@@ -9972,6 +9962,7 @@ var colors = [
|
|
|
9972
9962
|
"default",
|
|
9973
9963
|
"muted",
|
|
9974
9964
|
"primary",
|
|
9965
|
+
"accent",
|
|
9975
9966
|
"success",
|
|
9976
9967
|
"warning",
|
|
9977
9968
|
"error",
|
|
@@ -10023,18 +10014,8 @@ var iconNames = [
|
|
|
10023
10014
|
"warning",
|
|
10024
10015
|
"arrow-right-long"
|
|
10025
10016
|
];
|
|
10026
|
-
var
|
|
10027
|
-
|
|
10028
|
-
kind: "number",
|
|
10029
|
-
values: [0, 1, 2, 3, 4],
|
|
10030
|
-
parentComponents: ["Row", "Column"]
|
|
10031
|
-
}
|
|
10032
|
-
};
|
|
10033
|
-
var width = { width: { kind: "string", values: ["fit", "fill"] } };
|
|
10034
|
-
var radius = {
|
|
10035
|
-
radius: { kind: "string", values: ["none", "xs", "sm", "md", "full"] }
|
|
10036
|
-
};
|
|
10037
|
-
var decoration = {
|
|
10017
|
+
var box = {
|
|
10018
|
+
margin: { kind: "string", values: spacing },
|
|
10038
10019
|
padding: { kind: "string", values: spacing },
|
|
10039
10020
|
background: {
|
|
10040
10021
|
kind: "string",
|
|
@@ -10052,17 +10033,29 @@ var decoration = {
|
|
|
10052
10033
|
kind: "string",
|
|
10053
10034
|
values: ["none", "subtle", "card-border", "primary"]
|
|
10054
10035
|
},
|
|
10055
|
-
|
|
10036
|
+
radius: { kind: "string", values: ["none", "xs", "sm", "md", "full"] },
|
|
10037
|
+
width: { kind: "string", values: ["fit", "fill"] },
|
|
10038
|
+
grow: { kind: "number", values: [0, 1, 2, 3, 4] },
|
|
10039
|
+
shrink: { kind: "boolean" }
|
|
10056
10040
|
};
|
|
10057
10041
|
var typography = {
|
|
10058
10042
|
color: { kind: "string", values: colors },
|
|
10059
|
-
fontSize: {
|
|
10043
|
+
fontSize: {
|
|
10044
|
+
kind: "string",
|
|
10045
|
+
values: [
|
|
10046
|
+
"small",
|
|
10047
|
+
"medium",
|
|
10048
|
+
"large",
|
|
10049
|
+
"striking",
|
|
10050
|
+
"display",
|
|
10051
|
+
"badge",
|
|
10052
|
+
"merchant"
|
|
10053
|
+
]
|
|
10054
|
+
},
|
|
10060
10055
|
fontWeight: { kind: "string", values: ["normal", "semibold", "bold"] }
|
|
10061
10056
|
};
|
|
10062
10057
|
var container = {
|
|
10063
|
-
...
|
|
10064
|
-
...width,
|
|
10065
|
-
padding: { kind: "string", values: spacing },
|
|
10058
|
+
...box,
|
|
10066
10059
|
children: { kind: "children", required: true },
|
|
10067
10060
|
gap: { kind: "string", values: spacing },
|
|
10068
10061
|
align: {
|
|
@@ -10082,7 +10075,6 @@ var container = {
|
|
|
10082
10075
|
},
|
|
10083
10076
|
"x2-overflow": { kind: "format" }
|
|
10084
10077
|
};
|
|
10085
|
-
var { justify: _listJustify, ...listContainer } = container;
|
|
10086
10078
|
var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
10087
10079
|
catalogId: LINKQUE_A2UI_V4_CATALOG_ID,
|
|
10088
10080
|
protocolVersion: "0.9",
|
|
@@ -10090,10 +10082,7 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10090
10082
|
Card: {
|
|
10091
10083
|
interaction: "action",
|
|
10092
10084
|
properties: {
|
|
10093
|
-
...
|
|
10094
|
-
...width,
|
|
10095
|
-
...decoration,
|
|
10096
|
-
child: { kind: "child", required: true },
|
|
10085
|
+
...container,
|
|
10097
10086
|
action: { kind: "action" },
|
|
10098
10087
|
disabled: { kind: "boolean" }
|
|
10099
10088
|
}
|
|
@@ -10103,14 +10092,13 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10103
10092
|
interaction: "none",
|
|
10104
10093
|
properties: {
|
|
10105
10094
|
...container,
|
|
10106
|
-
wrap: { kind: "string", values: ["wrap", "nowrap"] }
|
|
10107
|
-
layout: { kind: "string", values: ["flex", "inline"] }
|
|
10095
|
+
wrap: { kind: "string", values: ["wrap", "nowrap"] }
|
|
10108
10096
|
}
|
|
10109
10097
|
},
|
|
10110
10098
|
List: {
|
|
10111
10099
|
interaction: "none",
|
|
10112
10100
|
properties: {
|
|
10113
|
-
...
|
|
10101
|
+
...container,
|
|
10114
10102
|
variant: {
|
|
10115
10103
|
kind: "string",
|
|
10116
10104
|
required: true,
|
|
@@ -10121,9 +10109,8 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10121
10109
|
Text: {
|
|
10122
10110
|
interaction: "none",
|
|
10123
10111
|
properties: {
|
|
10124
|
-
...
|
|
10112
|
+
...box,
|
|
10125
10113
|
...typography,
|
|
10126
|
-
shrink: { kind: "boolean" },
|
|
10127
10114
|
text: { kind: "binding", required: true },
|
|
10128
10115
|
maxLines: { kind: "number", values: [0, 1, 2, 3, 4, 5, 6] },
|
|
10129
10116
|
decoration: { kind: "string", values: ["line-through"] },
|
|
@@ -10133,31 +10120,19 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10133
10120
|
Tag: {
|
|
10134
10121
|
interaction: "none",
|
|
10135
10122
|
properties: {
|
|
10136
|
-
...
|
|
10123
|
+
...box,
|
|
10124
|
+
...typography,
|
|
10137
10125
|
text: { kind: "binding", required: true },
|
|
10138
10126
|
icon: { kind: "string", values: iconNames },
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
"default",
|
|
10143
|
-
"muted",
|
|
10144
|
-
"primary",
|
|
10145
|
-
"success",
|
|
10146
|
-
"warning",
|
|
10147
|
-
"error"
|
|
10148
|
-
]
|
|
10149
|
-
},
|
|
10150
|
-
variant: { kind: "string", values: ["soft", "outline", "plain"] },
|
|
10151
|
-
size: { kind: "string", values: ["sm", "md"] },
|
|
10152
|
-
shrink: { kind: "boolean" },
|
|
10153
|
-
maxLines: { kind: "number", values: [0, 1, 2, 3, 4, 5, 6] }
|
|
10127
|
+
gap: { kind: "string", values: spacing },
|
|
10128
|
+
maxLines: { kind: "number", values: [0, 1, 2, 3, 4, 5, 6] },
|
|
10129
|
+
format: { kind: "format" }
|
|
10154
10130
|
}
|
|
10155
10131
|
},
|
|
10156
10132
|
Button: {
|
|
10157
10133
|
interaction: "action",
|
|
10158
10134
|
properties: {
|
|
10159
|
-
...
|
|
10160
|
-
...width,
|
|
10135
|
+
...box,
|
|
10161
10136
|
label: { kind: "binding", required: true },
|
|
10162
10137
|
action: { kind: "action", required: true },
|
|
10163
10138
|
checks: { kind: "format" },
|
|
@@ -10175,29 +10150,34 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10175
10150
|
Image: {
|
|
10176
10151
|
interaction: "none",
|
|
10177
10152
|
properties: {
|
|
10178
|
-
...
|
|
10179
|
-
...radius,
|
|
10153
|
+
...box,
|
|
10180
10154
|
src: { kind: "binding", required: true },
|
|
10181
10155
|
alt: { kind: "binding" },
|
|
10182
10156
|
fit: {
|
|
10183
10157
|
kind: "string",
|
|
10184
10158
|
values: ["contain", "cover", "fill", "none", "scale-down"]
|
|
10185
10159
|
},
|
|
10186
|
-
|
|
10187
|
-
kind: "string",
|
|
10188
|
-
values: ["square", "portrait", "landscape", "wide", "banner"]
|
|
10189
|
-
},
|
|
10190
|
-
height: { kind: "string", values: ["auto", "fill"] },
|
|
10191
|
-
size: {
|
|
10160
|
+
variant: {
|
|
10192
10161
|
kind: "string",
|
|
10193
|
-
values: [
|
|
10162
|
+
values: [
|
|
10163
|
+
"icon",
|
|
10164
|
+
"avatar",
|
|
10165
|
+
"merchantLogo",
|
|
10166
|
+
"smallFeature",
|
|
10167
|
+
"mediumFeature",
|
|
10168
|
+
"portraitFeature",
|
|
10169
|
+
"productThumbnail",
|
|
10170
|
+
"voucherThumbnail",
|
|
10171
|
+
"largeFeature",
|
|
10172
|
+
"header"
|
|
10173
|
+
]
|
|
10194
10174
|
}
|
|
10195
10175
|
}
|
|
10196
10176
|
},
|
|
10197
10177
|
Icon: {
|
|
10198
10178
|
interaction: "none",
|
|
10199
10179
|
properties: {
|
|
10200
|
-
...
|
|
10180
|
+
...box,
|
|
10201
10181
|
name: { kind: "string", required: true, values: iconNames },
|
|
10202
10182
|
label: { kind: "string" },
|
|
10203
10183
|
color: { kind: "string", values: colors },
|
|
@@ -10210,15 +10190,15 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10210
10190
|
Divider: {
|
|
10211
10191
|
interaction: "none",
|
|
10212
10192
|
properties: {
|
|
10213
|
-
...
|
|
10193
|
+
...box,
|
|
10214
10194
|
axis: { kind: "string", values: ["horizontal", "vertical"] }
|
|
10215
10195
|
}
|
|
10216
10196
|
},
|
|
10217
10197
|
TextField: {
|
|
10218
10198
|
interaction: "input",
|
|
10219
10199
|
properties: {
|
|
10220
|
-
...
|
|
10221
|
-
...
|
|
10200
|
+
...box,
|
|
10201
|
+
...typography,
|
|
10222
10202
|
label: { kind: "string", required: true },
|
|
10223
10203
|
value: { kind: "binding", required: true },
|
|
10224
10204
|
checks: { kind: "format" },
|
|
@@ -10242,8 +10222,7 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10242
10222
|
ChoicePicker: {
|
|
10243
10223
|
interaction: "input",
|
|
10244
10224
|
properties: {
|
|
10245
|
-
...
|
|
10246
|
-
...width,
|
|
10225
|
+
...box,
|
|
10247
10226
|
label: { kind: "string", required: true },
|
|
10248
10227
|
value: { kind: "binding", required: true },
|
|
10249
10228
|
options: { kind: "options", required: true },
|
|
@@ -10258,8 +10237,7 @@ var A2UI_V4_COMPONENT_CATALOG = Object.freeze({
|
|
|
10258
10237
|
Stepper: {
|
|
10259
10238
|
interaction: "input",
|
|
10260
10239
|
properties: {
|
|
10261
|
-
...
|
|
10262
|
-
...width,
|
|
10240
|
+
...box,
|
|
10263
10241
|
label: { kind: "string", required: true },
|
|
10264
10242
|
value: { kind: "binding", required: true },
|
|
10265
10243
|
min: { kind: "number" },
|
|
@@ -10375,6 +10353,8 @@ function validateComponents(payload, path2, surfaces, issues) {
|
|
|
10375
10353
|
if (value !== void 0)
|
|
10376
10354
|
validateProperty(value, property, `${componentPath}.${name}`, issues, name);
|
|
10377
10355
|
}
|
|
10356
|
+
if (component.component === "Tag" && component.icon === void 0 && component.gap !== void 0)
|
|
10357
|
+
issues.push(issue2(`${componentPath}.gap`, "TAG_GAP_REQUIRES_ICON", "Tag.gap requires Tag.icon"));
|
|
10378
10358
|
if (component["x2-overflow"] !== void 0)
|
|
10379
10359
|
validateOverflow(component, componentPath, issues);
|
|
10380
10360
|
if (component.component === "TextField")
|
|
@@ -10388,7 +10368,7 @@ function validateComponents(payload, path2, surfaces, issues) {
|
|
|
10388
10368
|
validateStepper(component, componentPath, issues);
|
|
10389
10369
|
if (component.checks !== void 0)
|
|
10390
10370
|
validateChecks(component.checks, `${componentPath}.checks`, issues);
|
|
10391
|
-
if (component.format !== void 0 && component.component === "Text")
|
|
10371
|
+
if (component.format !== void 0 && (component.component === "Text" || component.component === "Tag"))
|
|
10392
10372
|
validateNumberFormat(component.format, `${componentPath}.format`, issues);
|
|
10393
10373
|
if (component.action !== void 0)
|
|
10394
10374
|
validateAction(component.action, `${componentPath}.action`, issues, 0);
|
|
@@ -10402,11 +10382,6 @@ function validateProperty(value, schema, path2, issues, propertyName) {
|
|
|
10402
10382
|
issues.push(issue2(path2, "INVALID_DISPLAY_VALUE", `display value must be ${stringOnly ? "a string" : "a string or finite number"}, or a compatible display binding`));
|
|
10403
10383
|
return;
|
|
10404
10384
|
}
|
|
10405
|
-
if (schema.kind === "child") {
|
|
10406
|
-
if (!isSafeIdentifier(value))
|
|
10407
|
-
issues.push(issue2(path2, "INVALID_CHILD", "child must be a safe component id"));
|
|
10408
|
-
return;
|
|
10409
|
-
}
|
|
10410
10385
|
if (schema.kind === "children") {
|
|
10411
10386
|
const valid = Array.isArray(value) ? value.every(isSafeIdentifier) : isPlainRecord(value) && Object.keys(value).length === 2 && isSafeIdentifier(value.componentId) && typeof value.path === "string" && isSafePath(value.path);
|
|
10412
10387
|
if (!valid)
|
|
@@ -10647,27 +10622,20 @@ function validateReferences(surfaces, path2, issues) {
|
|
|
10647
10622
|
issues.push(issue2(`${path2}.surfaces.${surfaceId}`, "MISSING_ROOT_COMPONENT", "surface must define root"));
|
|
10648
10623
|
const edges = /* @__PURE__ */ new Map();
|
|
10649
10624
|
for (const [id, component] of components) {
|
|
10650
|
-
const
|
|
10625
|
+
const children = component.children;
|
|
10626
|
+
const refs = Array.isArray(children) ? children.filter((entry) => typeof entry === "string") : isPlainRecord(children) && typeof children.componentId === "string" ? [children.componentId] : [];
|
|
10651
10627
|
edges.set(id, refs);
|
|
10652
10628
|
refs.forEach((ref) => {
|
|
10653
10629
|
if (!components.has(ref))
|
|
10654
|
-
issues.push(issue2(`${path2}.surfaces.${surfaceId}.components.${id}
|
|
10630
|
+
issues.push(issue2(`${path2}.surfaces.${surfaceId}.components.${id}.children`, "MISSING_COMPONENT_REFERENCE", `component ${ref} does not exist`));
|
|
10655
10631
|
});
|
|
10656
10632
|
if ((component.component === "Button" || component.component === "Card" && component.action !== void 0) && refs.some((ref) => hasInteractiveDescendant(ref, components, /* @__PURE__ */ new Set())))
|
|
10657
|
-
issues.push(issue2(`${path2}.surfaces.${surfaceId}.components.${id}
|
|
10633
|
+
issues.push(issue2(`${path2}.surfaces.${surfaceId}.components.${id}.children`, "NESTED_INTERACTION", "action components cannot contain interactive descendants"));
|
|
10658
10634
|
collectSurfaceOpenReferences(component.action).forEach((targetSurfaceId) => {
|
|
10659
10635
|
if (!surfaces.has(targetSurfaceId))
|
|
10660
10636
|
issues.push(issue2(`${path2}.surfaces.${surfaceId}.components.${id}.action`, "MISSING_SURFACE_REFERENCE", `surface ${targetSurfaceId} does not exist`));
|
|
10661
10637
|
});
|
|
10662
10638
|
}
|
|
10663
|
-
components.forEach((component, id) => {
|
|
10664
|
-
if (component.grow === void 0)
|
|
10665
|
-
return;
|
|
10666
|
-
const parents = [...components.values()].filter((parent) => getComponentReferences(parent).includes(id));
|
|
10667
|
-
if (id === "root" || parents.length === 0 || parents.some((parent) => parent.component !== "Row" && parent.component !== "Column")) {
|
|
10668
|
-
issues.push(issue2(`${path2}.surfaces.${surfaceId}.components.${id}.grow`, "INVALID_LAYOUT_PARENT", "grow requires a direct Row or Column parent in every occurrence"));
|
|
10669
|
-
}
|
|
10670
|
-
});
|
|
10671
10639
|
const visiting = /* @__PURE__ */ new Set();
|
|
10672
10640
|
const visited = /* @__PURE__ */ new Set();
|
|
10673
10641
|
const walk = (id) => {
|
|
@@ -10698,14 +10666,6 @@ function collectSurfaceOpenReferences(value, result = /* @__PURE__ */ new Set())
|
|
|
10698
10666
|
}
|
|
10699
10667
|
return result;
|
|
10700
10668
|
}
|
|
10701
|
-
function getComponentReferences(component) {
|
|
10702
|
-
if (typeof component.child === "string")
|
|
10703
|
-
return [component.child];
|
|
10704
|
-
const children = component.children;
|
|
10705
|
-
if (Array.isArray(children))
|
|
10706
|
-
return children.filter((entry) => typeof entry === "string");
|
|
10707
|
-
return isPlainRecord(children) && typeof children.componentId === "string" ? [children.componentId] : [];
|
|
10708
|
-
}
|
|
10709
10669
|
function hasInteractiveDescendant(id, components, visited) {
|
|
10710
10670
|
if (visited.has(id))
|
|
10711
10671
|
return false;
|
|
@@ -10715,7 +10675,8 @@ function hasInteractiveDescendant(id, components, visited) {
|
|
|
10715
10675
|
return false;
|
|
10716
10676
|
if (component.component === "Button" || component.action !== void 0 || ["TextField", "ChoicePicker", "Stepper"].includes(String(component.component)))
|
|
10717
10677
|
return true;
|
|
10718
|
-
const
|
|
10678
|
+
const children = component.children;
|
|
10679
|
+
const refs = Array.isArray(children) ? children : isPlainRecord(children) ? [children.componentId] : [];
|
|
10719
10680
|
return refs.some((ref) => typeof ref === "string" && hasInteractiveDescendant(ref, components, visited));
|
|
10720
10681
|
}
|
|
10721
10682
|
|
|
@@ -15048,6 +15009,9 @@ function getConversationRunRequestIssues(value) {
|
|
|
15048
15009
|
issues.push("attachments must be an array");
|
|
15049
15010
|
} else {
|
|
15050
15011
|
value.attachments.forEach((attachment, index) => validateAttachment(attachment, index, issues));
|
|
15012
|
+
if (value.attachments.length > 0 && (!Array.isArray(value.messages) || !value.messages.some((message) => isRecord4(message) && message.role === "user"))) {
|
|
15013
|
+
issues.push("non-empty attachments require at least one user message");
|
|
15014
|
+
}
|
|
15051
15015
|
}
|
|
15052
15016
|
if (!isRecord4(value.metadata))
|
|
15053
15017
|
issues.push("metadata must be an object");
|
|
@@ -15188,6 +15152,9 @@ function validateAttachment(value, index, issues) {
|
|
|
15188
15152
|
if (value.size !== void 0 && (!Number.isSafeInteger(value.size) || Number(value.size) < 0)) {
|
|
15189
15153
|
issues.push(`attachments[${index}].size must be a non-negative safe integer when provided`);
|
|
15190
15154
|
}
|
|
15155
|
+
if (value.availability !== void 0 && value.availability !== "resolvable" && value.availability !== "current_turn_only") {
|
|
15156
|
+
issues.push(`attachments[${index}].availability must be resolvable or current_turn_only when provided`);
|
|
15157
|
+
}
|
|
15191
15158
|
if (value.metadata !== void 0 && !isRecord4(value.metadata)) {
|
|
15192
15159
|
issues.push(`attachments[${index}].metadata must be an object when provided`);
|
|
15193
15160
|
}
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
resolveLinkqueGatewayAuth,
|
|
25
25
|
resolveRunStorage,
|
|
26
26
|
toAgentRunMessages
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-KTFQX5XN.js";
|
|
28
28
|
import "../../chunk-MKS245OU.js";
|
|
29
29
|
import "../../chunk-YDKZZ6EH.js";
|
|
30
30
|
import "../../chunk-2NGJGNYB.js";
|
|
31
31
|
import {
|
|
32
32
|
getBakedProtocol
|
|
33
|
-
} from "../../chunk-
|
|
33
|
+
} from "../../chunk-CITJWG2O.js";
|
|
34
34
|
import {
|
|
35
35
|
A2UI_PAYMENT_RESULT_EVENT_NAME,
|
|
36
36
|
CANCEL_CONVERSATION_RUN_OPERATION,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
verifyPaymentResult,
|
|
102
102
|
warnLogFailure,
|
|
103
103
|
wrapToolWithHooks
|
|
104
|
-
} from "../../chunk-
|
|
104
|
+
} from "../../chunk-P5YTVR76.js";
|
|
105
105
|
import "../../chunk-XUFLSZM4.js";
|
|
106
106
|
import "../../chunk-I64V3ICJ.js";
|
|
107
107
|
import {
|
|
@@ -41184,7 +41184,8 @@ function composeSystemPrompt(harnessPrompt, systemPrompt, skillcatalog = "", run
|
|
|
41184
41184
|
// ../linkque-agent-runtime/dist/esm/impl/plugin/imageUnderstanding/io.js
|
|
41185
41185
|
var DEFAULT_IMAGE_URL_RULES = [
|
|
41186
41186
|
{ host: "mass.alipay.com", pathPrefix: "/linkque/afts/img/" },
|
|
41187
|
-
{ host: "masspre.alipay.com", pathPrefix: "/linkque/afts/img/" }
|
|
41187
|
+
{ host: "masspre.alipay.com", pathPrefix: "/linkque/afts/img/" },
|
|
41188
|
+
{ host: "mdn.alipayobjects.com", pathPrefix: "/linkque/afts/img/" }
|
|
41188
41189
|
];
|
|
41189
41190
|
var MAX_BYTES = 2 * 1024 * 1024;
|
|
41190
41191
|
function imageError(code) {
|
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-KTFQX5XN.js";
|
|
7
7
|
import "../../chunk-MKS245OU.js";
|
|
8
8
|
import "../../chunk-YDKZZ6EH.js";
|
|
9
9
|
import "../../chunk-2NGJGNYB.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-P5YTVR76.js";
|
|
11
11
|
import "../../chunk-XUFLSZM4.js";
|
|
12
12
|
import "../../chunk-I64V3ICJ.js";
|
|
13
13
|
import "../../chunk-VS2QQHAK.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getBakedProtocol,
|
|
3
3
|
setBakedProtocol
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-CITJWG2O.js";
|
|
5
|
+
import "../chunk-P5YTVR76.js";
|
|
6
6
|
import "../chunk-XUFLSZM4.js";
|
|
7
7
|
import "../chunk-I64V3ICJ.js";
|
|
8
8
|
import "../chunk-VS2QQHAK.js";
|