linkque-cli-v2 1.3.8 → 1.4.0

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.
Files changed (16) hide show
  1. package/linkquejs.js +6 -7
  2. package/package.json +1 -1
  3. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-ZNU4GVF3.js → chunk-OHRCYI66.js} +146 -119
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-RHMVQTA7.js → chunk-WM6JHW55.js} +225 -214
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-AACYYAZ6.js → chunk-XL6BPKTI.js} +1 -1
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +109 -34
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +3 -3
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +3 -3
  9. package/worker.js +135 -32
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-EL2IU4YU.js → anthropic-messages-5DOLTIGP.js} +3 -3
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-A4XURCOX.js → azure-openai-responses-HVAVRLTK.js} +1 -1
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-5RZTVEO2.js → mistral-conversations-OEBGEDLQ.js} +10 -10
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-WLREQPZK.js → openai-codex-responses-3KOC6KHN.js} +1 -1
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-U6LUBY4P.js → openai-completions-HG6OJRL5.js} +3 -3
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-SFZAU5JA.js → openai-responses-F6V2PG3Y.js} +1 -1
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-QQA6ZGV2.js → pi-messages-DC4DVRAJ.js} +3 -3
package/linkquejs.js CHANGED
@@ -7574,14 +7574,13 @@ var require_fast_uri = __commonJS({
7574
7574
  if (!malformedIPLiteral) {
7575
7575
  malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
7576
7576
  }
7577
- if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
7578
- let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
7579
- if (!isIP) {
7580
- host = normalizePercentEncoding(host.toLowerCase());
7581
- }
7582
- parsed.host = reescapeHostDelimiters(host, isIP);
7583
- }
7584
7577
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
7578
+ if (uri.indexOf("%") !== -1) {
7579
+ if (parsed.host !== void 0 && !malformedIPLiteral) {
7580
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
7581
+ parsed.host = reescapeHostDelimiters(host, isIP);
7582
+ }
7583
+ }
7585
7584
  if (parsed.path) {
7586
7585
  parsed.path = normalizePathEncoding(parsed.path);
7587
7586
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkque-cli-v2",
3
- "version": "1.3.8",
3
+ "version": "1.4.0",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"
@@ -1,108 +1,3 @@
1
- import {
2
- BRAND,
3
- DIRTY,
4
- EMPTY_PATH,
5
- INVALID,
6
- NEVER,
7
- OK,
8
- ParseStatus,
9
- ZodAny,
10
- ZodArray,
11
- ZodBigInt,
12
- ZodBoolean,
13
- ZodBranded,
14
- ZodCatch,
15
- ZodDate,
16
- ZodDefault,
17
- ZodDiscriminatedUnion,
18
- ZodEffects,
19
- ZodEnum,
20
- ZodError,
21
- ZodFirstPartyTypeKind,
22
- ZodFunction,
23
- ZodIntersection,
24
- ZodIssueCode,
25
- ZodLazy,
26
- ZodLiteral,
27
- ZodMap,
28
- ZodNaN,
29
- ZodNativeEnum,
30
- ZodNever,
31
- ZodNull,
32
- ZodNullable,
33
- ZodNumber,
34
- ZodObject,
35
- ZodOptional,
36
- ZodParsedType,
37
- ZodPipeline,
38
- ZodPromise,
39
- ZodReadonly,
40
- ZodRecord,
41
- ZodSet,
42
- ZodString,
43
- ZodSymbol,
44
- ZodTuple,
45
- ZodType,
46
- ZodUndefined,
47
- ZodUnion,
48
- ZodUnknown,
49
- ZodVoid,
50
- addIssueToContext,
51
- anyType,
52
- arrayType,
53
- bigIntType,
54
- booleanType,
55
- coerce,
56
- custom,
57
- dateType,
58
- datetimeRegex,
59
- discriminatedUnionType,
60
- effectsType,
61
- en_default,
62
- enumType,
63
- functionType,
64
- getErrorMap,
65
- getParsedType,
66
- instanceOfType,
67
- intersectionType,
68
- isAborted,
69
- isAsync,
70
- isDirty,
71
- isValid,
72
- late,
73
- lazyType,
74
- literalType,
75
- makeIssue,
76
- mapType,
77
- nanType,
78
- nativeEnumType,
79
- neverType,
80
- nullType,
81
- nullableType,
82
- numberType,
83
- objectType,
84
- objectUtil,
85
- oboolean,
86
- onumber,
87
- optionalType,
88
- ostring,
89
- pipelineType,
90
- preprocessType,
91
- promiseType,
92
- quotelessJson,
93
- recordType,
94
- setErrorMap,
95
- setType,
96
- strictObjectType,
97
- stringType,
98
- symbolType,
99
- tupleType,
100
- undefinedType,
101
- unionType,
102
- unknownType,
103
- util,
104
- voidType
105
- } from "./chunk-XUFLSZM4.js";
106
1
  import {
107
2
  ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED,
108
3
  ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED,
@@ -352,6 +247,111 @@ import {
352
247
  init_stable_events,
353
248
  init_stable_metrics
354
249
  } from "./chunk-EAODRPW4.js";
250
+ import {
251
+ BRAND,
252
+ DIRTY,
253
+ EMPTY_PATH,
254
+ INVALID,
255
+ NEVER,
256
+ OK,
257
+ ParseStatus,
258
+ ZodAny,
259
+ ZodArray,
260
+ ZodBigInt,
261
+ ZodBoolean,
262
+ ZodBranded,
263
+ ZodCatch,
264
+ ZodDate,
265
+ ZodDefault,
266
+ ZodDiscriminatedUnion,
267
+ ZodEffects,
268
+ ZodEnum,
269
+ ZodError,
270
+ ZodFirstPartyTypeKind,
271
+ ZodFunction,
272
+ ZodIntersection,
273
+ ZodIssueCode,
274
+ ZodLazy,
275
+ ZodLiteral,
276
+ ZodMap,
277
+ ZodNaN,
278
+ ZodNativeEnum,
279
+ ZodNever,
280
+ ZodNull,
281
+ ZodNullable,
282
+ ZodNumber,
283
+ ZodObject,
284
+ ZodOptional,
285
+ ZodParsedType,
286
+ ZodPipeline,
287
+ ZodPromise,
288
+ ZodReadonly,
289
+ ZodRecord,
290
+ ZodSet,
291
+ ZodString,
292
+ ZodSymbol,
293
+ ZodTuple,
294
+ ZodType,
295
+ ZodUndefined,
296
+ ZodUnion,
297
+ ZodUnknown,
298
+ ZodVoid,
299
+ addIssueToContext,
300
+ anyType,
301
+ arrayType,
302
+ bigIntType,
303
+ booleanType,
304
+ coerce,
305
+ custom,
306
+ dateType,
307
+ datetimeRegex,
308
+ discriminatedUnionType,
309
+ effectsType,
310
+ en_default,
311
+ enumType,
312
+ functionType,
313
+ getErrorMap,
314
+ getParsedType,
315
+ instanceOfType,
316
+ intersectionType,
317
+ isAborted,
318
+ isAsync,
319
+ isDirty,
320
+ isValid,
321
+ late,
322
+ lazyType,
323
+ literalType,
324
+ makeIssue,
325
+ mapType,
326
+ nanType,
327
+ nativeEnumType,
328
+ neverType,
329
+ nullType,
330
+ nullableType,
331
+ numberType,
332
+ objectType,
333
+ objectUtil,
334
+ oboolean,
335
+ onumber,
336
+ optionalType,
337
+ ostring,
338
+ pipelineType,
339
+ preprocessType,
340
+ promiseType,
341
+ quotelessJson,
342
+ recordType,
343
+ setErrorMap,
344
+ setType,
345
+ strictObjectType,
346
+ stringType,
347
+ symbolType,
348
+ tupleType,
349
+ undefinedType,
350
+ unionType,
351
+ unknownType,
352
+ util,
353
+ voidType
354
+ } from "./chunk-XUFLSZM4.js";
355
355
  import {
356
356
  NEVER as NEVER2,
357
357
  ZodIssueCode as ZodIssueCode2,
@@ -4514,14 +4514,13 @@ var require_fast_uri = __commonJS({
4514
4514
  if (!malformedIPLiteral) {
4515
4515
  malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
4516
4516
  }
4517
- if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
4518
- let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4519
- if (!isIP) {
4520
- host = normalizePercentEncoding(host.toLowerCase());
4521
- }
4522
- parsed.host = reescapeHostDelimiters(host, isIP);
4523
- }
4524
4517
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4518
+ if (uri.indexOf("%") !== -1) {
4519
+ if (parsed.host !== void 0 && !malformedIPLiteral) {
4520
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4521
+ parsed.host = reescapeHostDelimiters(host, isIP);
4522
+ }
4523
+ }
4525
4524
  if (parsed.path) {
4526
4525
  parsed.path = normalizePathEncoding(parsed.path);
4527
4526
  }
@@ -30331,6 +30330,26 @@ function isRecord5(value) {
30331
30330
  }
30332
30331
 
30333
30332
  // ../agent-conversation-contract/dist/esm/sse.js
30333
+ var MAX_CONVERSATION_TOOL_CALL_DISPLAY_NAME_LENGTH = 20;
30334
+ function parseConversationToolCallDisplayName(value) {
30335
+ if (typeof value !== "string" || /[\r\n\u2028\u2029]/u.test(value)) {
30336
+ return void 0;
30337
+ }
30338
+ const normalized = value.trim();
30339
+ if (!normalized || normalized.length > MAX_CONVERSATION_TOOL_CALL_DISPLAY_NAME_LENGTH) {
30340
+ return void 0;
30341
+ }
30342
+ return normalized;
30343
+ }
30344
+ function createConversationToolCallStartEvent(toolCallId, toolCallName, displayName) {
30345
+ const normalized = parseConversationToolCallDisplayName(displayName);
30346
+ return {
30347
+ type: EventType.TOOL_CALL_START,
30348
+ toolCallId,
30349
+ toolCallName,
30350
+ ...normalized ? { displayName: normalized } : {}
30351
+ };
30352
+ }
30334
30353
  function createConversationRunAck(runId, threadId, options = {}) {
30335
30354
  return {
30336
30355
  event: "ack",
@@ -30348,8 +30367,18 @@ function createConversationAGUIEvent(data, id) {
30348
30367
  }
30349
30368
  function parseConversationAGUIEvent(value) {
30350
30369
  const parsed = EventSchemas.safeParse(value);
30351
- if (parsed.success)
30352
- return parsed.data;
30370
+ if (parsed.success) {
30371
+ if (parsed.data.type !== EventType.TOOL_CALL_START)
30372
+ return parsed.data;
30373
+ const event = parsed.data;
30374
+ const displayName = parseConversationToolCallDisplayName(event.displayName);
30375
+ const baseEvent = { ...event };
30376
+ delete baseEvent.displayName;
30377
+ return {
30378
+ ...baseEvent,
30379
+ ...displayName ? { displayName } : {}
30380
+ };
30381
+ }
30353
30382
  throw new ConversationProtocolValidationError(parsed.error.issues.map((issue3) => `${issue3.path.length ? issue3.path.join(".") : "event"}: ${issue3.message}`));
30354
30383
  }
30355
30384
  function createConversationTransportError(data, id) {
@@ -36988,11 +37017,7 @@ function mapAgentEventToBaseEvents(event, messageId, thinkingId) {
36988
37017
  }
36989
37018
  case "tool_start": {
36990
37019
  const events = [
36991
- {
36992
- type: EventType.TOOL_CALL_START,
36993
- toolCallId: event.toolCallId,
36994
- toolCallName: event.toolName
36995
- }
37020
+ createConversationToolCallStartEvent(event.toolCallId, event.toolName, event.displayName)
36996
37021
  ];
36997
37022
  const argsDelta = safeStringifyArgs(event.args);
36998
37023
  if (argsDelta !== "") {
@@ -38104,6 +38129,8 @@ export {
38104
38129
  DEFAULT_CONVERSATION_SEARCH_LIMIT,
38105
38130
  ConversationHistoryValidationError,
38106
38131
  parseConversationHistoryRequest,
38132
+ MAX_CONVERSATION_TOOL_CALL_DISPLAY_NAME_LENGTH,
38133
+ parseConversationToolCallDisplayName,
38107
38134
  encodeConversationSseEvent,
38108
38135
  streamToConversationEvents,
38109
38136
  OtelRuntimeTelemetry