nolo-cli 0.16.0 → 0.17.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 (132) hide show
  1. package/{_executeModel-AVCA2NAV.js → _executeModel-WPNX5DH4.js} +49 -43
  2. package/{action-F5JACQBG.js → action-LT7BRFLK.js} +10 -9
  3. package/{addContentAction-AQXEYRBE.js → addContentAction-PL3KKBDH.js} +9 -8
  4. package/{addDialogAgentAction-EJHHJZWW.js → addDialogAgentAction-FCMSKYAF.js} +8 -7
  5. package/{agentDeleteCommand-QW5PUMDQ.js → agentDeleteCommand-L3357EFL.js} +31 -28
  6. package/{agentEmailCommands-4ORVLGVQ.js → agentEmailCommands-N65AVLEI.js} +61 -55
  7. package/{agentListCommands-YWBYRTYC.js → agentListCommands-CH27FTI2.js} +30 -27
  8. package/{agentMachineCommands-JSQW4FOA.js → agentMachineCommands-PPK5HJZB.js} +29 -26
  9. package/{agentPullCommand-6HWUT3SW.js → agentPullCommand-ZZGU5KOY.js} +4 -4
  10. package/{agentRecordCommands-AASIWOBT.js → agentRecordCommands-HTVXD4TT.js} +56 -50
  11. package/{agentRunCommand-TB5BHXUH.js → agentRunCommand-MGLVJUA5.js} +62 -53
  12. package/{agentRunControl-6ADXVYMR.js → agentRunControl-P75VPTGS.js} +24 -1
  13. package/{agentRuntimeLocal-QNPNJRVH.js → agentRuntimeLocal-QUTBSY3I.js} +24 -21
  14. package/{agentSlice-RUNXC62Y.js → agentSlice-DOGRCMWK.js} +9 -8
  15. package/appDeleteCommands-FEEVXUBG.js +127 -0
  16. package/appDeployCommands-C4HCGC4B.js +166 -0
  17. package/appDeployStatusCommands-IR5ZUZBQ.js +147 -0
  18. package/appGetCommands-6RJGZ66Z.js +122 -0
  19. package/appListCommands-VMTF5YZF.js +125 -0
  20. package/{authCommand-YFTR3347.js → authCommand-WJZPOLSS.js} +16 -9
  21. package/{authCommands-YXGOXNBZ.js → authCommands-XTBV7OFZ.js} +6 -5
  22. package/{chunk-XPC5C7BK.js → chunk-3ND52WIL.js} +2 -2
  23. package/{chunk-SOTZ6RDN.js → chunk-3Q7WHGCB.js} +1 -1
  24. package/{chunk-M43KDE25.js → chunk-45BY7RLP.js} +2 -8
  25. package/{chunk-KKY4B2Q2.js → chunk-4PWB7JRR.js} +4 -1
  26. package/{chunk-6N4KODMN.js → chunk-4T5F7YZQ.js} +1 -1
  27. package/chunk-7BUYEZ6U.js +671 -0
  28. package/{chunk-AS3ZQ3O2.js → chunk-7OBMZCRD.js} +1 -1
  29. package/{chunk-AVVZUXXC.js → chunk-AAODAAUQ.js} +34 -13
  30. package/{chunk-QLUFR47U.js → chunk-AL2V7U3E.js} +1 -1
  31. package/{chunk-MTU75CZ2.js → chunk-B5TOXZAK.js} +1 -1
  32. package/{chunk-AUURUT6L.js → chunk-BT6K76S7.js} +238 -424
  33. package/chunk-CEFXYF66.js +107 -0
  34. package/{chunk-RLCXU7A5.js → chunk-D3HVJJIA.js} +1 -1
  35. package/{chunk-JTMNCCWF.js → chunk-DKZFOK24.js} +16 -87
  36. package/chunk-DL6EPNIK.js +50 -0
  37. package/{chunk-4L2OJPCU.js → chunk-EGPCU42M.js} +58 -8
  38. package/{chunk-IWLUTMYX.js → chunk-ELT65PZW.js} +2 -2
  39. package/chunk-FKXFCYVO.js +221 -0
  40. package/{chunk-4FX6NVDW.js → chunk-FPKLD4KB.js} +3 -136
  41. package/{chunk-PCTUYVUM.js → chunk-FVIPEIVX.js} +10 -3
  42. package/chunk-GFUIQ4RY.js +136 -0
  43. package/{chunk-66X4VSRC.js → chunk-HQPG2PIV.js} +41 -1
  44. package/{chunk-IGXREZW2.js → chunk-HV2A3B4W.js} +1 -1
  45. package/{chunk-LPEUV5RE.js → chunk-IOOMJJ4Z.js} +2 -2
  46. package/{setDialogExtraReferencesAction-LR6MSIXO.js → chunk-JLA4FXYC.js} +2 -17
  47. package/{chunk-3OIRVWXA.js → chunk-JP7REMYP.js} +10 -1
  48. package/chunk-KFEVY3ST.js +255 -0
  49. package/{chunk-P3RIAYGG.js → chunk-L2MLZQXU.js} +3 -3
  50. package/{chunk-55NSNCFM.js → chunk-L6NVTGI7.js} +1 -1
  51. package/{chunk-3WGLLTK4.js → chunk-LSFAWXKC.js} +100 -3
  52. package/{chunk-S2LXHNHG.js → chunk-MD3V54DA.js} +6 -6
  53. package/{chunk-6EVITP2G.js → chunk-MUCU6ATG.js} +2 -251
  54. package/{chunk-KFHN5NGJ.js → chunk-MVQ4TBSD.js} +1 -1
  55. package/{chunk-ZQBL7LIC.js → chunk-NEKFSXOP.js} +310 -211
  56. package/{chunk-NSCHQQPU.js → chunk-NVB267BZ.js} +397 -324
  57. package/{chunk-Z5JQNBNY.js → chunk-NYUXSXLY.js} +33 -14
  58. package/{chunk-FRV6A633.js → chunk-PZCBZO4J.js} +2 -2
  59. package/{chunk-GSINCD4P.js → chunk-QCJITMYO.js} +21 -11
  60. package/{chunk-OOSFSFMA.js → chunk-R5V5G73M.js} +2 -0
  61. package/{chunk-4IJYA27C.js → chunk-RG2U2MTJ.js} +1 -1
  62. package/{chunk-BEBNFWDU.js → chunk-RRGVDPH3.js} +3 -3
  63. package/{chunk-EABWT43X.js → chunk-RVOUXDFU.js} +5 -5
  64. package/{chunk-JTINRTBT.js → chunk-SKDNBYZK.js} +2 -2
  65. package/{chunk-3663CXZN.js → chunk-SNZV4QCE.js} +65 -22
  66. package/{chunk-KMQPSTMJ.js → chunk-TRT4I4UD.js} +2 -2
  67. package/{chunk-MYMMNKYL.js → chunk-TSIYZBTH.js} +156 -6
  68. package/{chunk-EHLHSX7R.js → chunk-UB4RYYNQ.js} +9 -2
  69. package/{chunk-YJKXGHJ6.js → chunk-UGUW3FHG.js} +4 -4
  70. package/{chunk-DPAB4FQ7.js → chunk-UZY4BEBR.js} +1579 -212
  71. package/chunk-V5R4NZP2.js +78 -0
  72. package/{chunk-MR6ISAGB.js → chunk-VDNQF5VI.js} +6 -6
  73. package/{chunk-33BJUVK4.js → chunk-VGMJ6PDJ.js} +5 -5
  74. package/{chunk-W4NVOSFF.js → chunk-WFHXMLHZ.js} +1 -1
  75. package/{chunk-H33743XH.js → chunk-WJRJDX2W.js} +1 -1
  76. package/chunk-X4Q4UZEY.js +26 -0
  77. package/{chunk-RPDGJO4D.js → chunk-XHG22OEX.js} +4 -4
  78. package/{chunk-DVRHHFEA.js → chunk-XMLRJUU5.js} +1 -1
  79. package/{chunk-3S2VOMIF.js → chunk-XRZJGPFI.js} +7 -7
  80. package/{chunk-7UKFVQ5W.js → chunk-YLRTBX4Y.js} +105 -36
  81. package/{chunk-DGEYDWEZ.js → chunk-YXTRNO5W.js} +3 -3
  82. package/{chunk-FY233ZFU.js → chunk-ZJZCMKOR.js} +107 -177
  83. package/{chunk-NVEWUJVX.js → chunk-ZVOZH2HW.js} +1 -1
  84. package/chunk-ZZ2MH7LE.js +84 -0
  85. package/{cliExecutor-K3F7DMRO.js → cliExecutor-DNE7TCC4.js} +2 -2
  86. package/codingSkills-36KN5NQT.js +48 -0
  87. package/{createAgentAutomationAction-FNHPSKKO.js → createAgentAutomationAction-PMOLEPGJ.js} +19 -18
  88. package/{createDialogAction-TZCVQ3NU.js → createDialogAction-DPRTYNAK.js} +21 -20
  89. package/{createPageAction-EIGZ3BKT.js → createPageAction-JGZK3WAM.js} +25 -24
  90. package/{dbSlice-7KQH6GOU.js → dbSlice-CGSRFJN3.js} +8 -7
  91. package/{deleteFile-WPWVZE4B.js → deleteFile-WDZ3VM7B.js} +3 -3
  92. package/{dialogCommands-FO77J5DQ.js → dialogCommands-XED6DKLV.js} +29 -26
  93. package/{dialogSlice-MM5U4KE2.js → dialogSlice-KO4NRNKC.js} +19 -18
  94. package/{docCreateCommands-I3BS3AZI.js → docCreateCommands-P6DYWHH3.js} +32 -27
  95. package/{docDeleteCommands-Q2OPV52P.js → docDeleteCommands-KUWXAMSN.js} +31 -26
  96. package/{docReadCommands-YOOFACYZ.js → docReadCommands-ECW55TKB.js} +30 -25
  97. package/{docStore-NGYQ2JTR.js → docStore-6KMERNUY.js} +20 -19
  98. package/{docUpdateCommands-2B32ITHN.js → docUpdateCommands-5J4BTJQN.js} +31 -26
  99. package/{fetchMessages-KTNM7QAR.js → fetchMessages-BMGVZVSE.js} +4 -3
  100. package/{getPricing-P4XRJRZB.js → getPricing-RYY6OBA4.js} +2 -2
  101. package/{handleSendMessageAction-JRZWWBKP.js → handleSendMessageAction-R3ZHTVU4.js} +20 -19
  102. package/index.js +95 -64
  103. package/{localDialogRead-2VRI24F4.js → localDialogRead-HQZPVIE3.js} +1 -1
  104. package/{localRuntimeDb-LGDF6FQP.js → localRuntimeDb-THJZGAOJ.js} +1 -1
  105. package/{machineCommands-WRWF2ICZ.js → machineCommands-JF2YL34J.js} +62 -56
  106. package/{machineWsRunDispatch-ZX7Q3TWZ.js → machineWsRunDispatch-ON4AEOJL.js} +54 -48
  107. package/{models-WQ5N4OJM.js → models-5K5G2CZI.js} +1 -1
  108. package/package.json +1 -1
  109. package/queryRunOverlay-O4LOMMPO.js +161 -0
  110. package/{read-CN3TNXIP.js → read-3FMPZPER.js} +3 -3
  111. package/{readDocTool-WF3675ED.js → readDocTool-VSYHKK3V.js} +1 -1
  112. package/{readlineWorkspace-ZTGRGW46.js → readlineWorkspace-SUCINTL7.js} +354 -185
  113. package/{removeDialogAgentAction-YDHBFEGI.js → removeDialogAgentAction-OAGA2G3U.js} +10 -9
  114. package/{runAgentClientLoop-JZCOP7LG.js → runAgentClientLoop-OBD2AVEL.js} +43 -37
  115. package/runOverlayPresentation-ZO4VCWEU.js +11 -0
  116. package/{runtimeDoctorCommands-THIHX2SY.js → runtimeDoctorCommands-E2OUORHK.js} +6 -6
  117. package/setDialogExtraReferencesAction-JZEXA5SL.js +27 -0
  118. package/{setPrimaryDialogAgentAction-IIVDCY5C.js → setPrimaryDialogAgentAction-4ZUQQKDG.js} +26 -17
  119. package/{settingSlice-O23YDK2O.js → settingSlice-7MNKHZ6R.js} +9 -8
  120. package/{skillDiscovery-6M2BZUFN.js → skillDiscovery-KJWT7JBU.js} +3 -3
  121. package/{spaceCommands-VV4GTPQK.js → spaceCommands-32NTNLHS.js} +30 -27
  122. package/{spaceSlice-DRWWZJP7.js → spaceSlice-P7VOXLY6.js} +19 -18
  123. package/{streamAgentChatTurn-Y6WGATQR.js → streamAgentChatTurn-UHEMNI3X.js} +97 -56
  124. package/{tableCommands-3P7MJ3PF.js → tableCommands-BEQAGE4I.js} +1 -1
  125. package/{tools-PUNBY3AH.js → tools-BMXIXHMB.js} +32 -27
  126. package/{tuiSummaryLlmCaller-F64WLSAF.js → tuiSummaryLlmCaller-VUNVBRX3.js} +5 -4
  127. package/types-ZSTJ7MPR.js +7 -0
  128. package/{updateDialogTitleAction-YSR4TCMB.js → updateDialogTitleAction-LJBDYZLH.js} +22 -21
  129. package/{chunk-O4BU24WZ.js → chunk-6Y7A3OQQ.js} +3 -3
  130. package/{chunk-XBS2WYJ2.js → chunk-RK5NYQEL.js} +0 -0
  131. package/{chunk-CMKUBIGW.js → chunk-X7W4TNB4.js} +3 -3
  132. package/{localRuntimeAuthority-TEGCOWX4.js → localRuntimeAuthority-4IXJCHZ7.js} +3 -3
@@ -1,15 +1,12 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-66X4VSRC.js";
3
+ } from "./chunk-HQPG2PIV.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
7
7
  import {
8
8
  asTrimmedString
9
9
  } from "./chunk-3EUW3WEO.js";
10
- import {
11
- isRecord
12
- } from "./chunk-KUG52IAP.js";
13
10
  import {
14
11
  normalizeServerOrigin
15
12
  } from "./chunk-CF7PE763.js";
@@ -336,242 +333,6 @@ async function buildProviderExecutionPlan(args) {
336
333
  };
337
334
  }
338
335
 
339
- // packages/agent-runtime/openAiCompatibleMessages.ts
340
- function preserveAgentStateFields(source, target, options) {
341
- const mutableTarget = target;
342
- if (source.role === "assistant") {
343
- if (!options?.stripReasoningContent && typeof source.reasoning_content === "string") {
344
- mutableTarget.reasoning_content = source.reasoning_content;
345
- }
346
- if (Array.isArray(source.tool_calls)) {
347
- mutableTarget.tool_calls = source.tool_calls;
348
- }
349
- }
350
- if (source.role === "tool") {
351
- const toolCallId = typeof source.tool_call_id === "string" ? source.tool_call_id.trim() : typeof source.toolCallId === "string" ? source.toolCallId.trim() : "";
352
- if (toolCallId) mutableTarget.tool_call_id = toolCallId;
353
- }
354
- return target;
355
- }
356
- function toOpenAiCompatibleMessages(messages, options) {
357
- return messages.map(
358
- (message) => preserveAgentStateFields(message, {
359
- role: message.role,
360
- content: message.content ?? ""
361
- }, options)
362
- );
363
- }
364
- function shouldStripReasoningContentForOutbound(provider, model) {
365
- const p = provider?.trim().toLowerCase();
366
- const m = model?.trim().toLowerCase();
367
- if (!p || !m) return false;
368
- if (p === "deepseek" || p === "nolo") return m === "deepseek-v4-flash";
369
- return false;
370
- }
371
-
372
- // packages/integrations/openai/responsesHelpers.ts
373
- var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
374
- var sanitizeResponsesParameters = (parameters) => {
375
- if (!isRecord(parameters)) {
376
- return parameters;
377
- }
378
- const next = { ...parameters };
379
- for (const key of RESPONSES_TOP_LEVEL_SCHEMA_KEYS) {
380
- delete next[key];
381
- }
382
- return next;
383
- };
384
- var appendTextPart = (parts, text, role) => {
385
- if (!text) return;
386
- const last = parts.at(-1);
387
- const textType = role === "assistant" ? "output_text" : "input_text";
388
- if (last?.type === textType) {
389
- last.text += text;
390
- return;
391
- }
392
- parts.push({ type: textType, text });
393
- };
394
- var normalizeMessageParts = (content, role) => {
395
- if (typeof content === "string") {
396
- if (!content) return [];
397
- return [
398
- {
399
- type: role === "assistant" ? "output_text" : "input_text",
400
- text: content
401
- }
402
- ];
403
- }
404
- const parts = [];
405
- for (const part of content ?? []) {
406
- const typedPart = part;
407
- if (typedPart?.type === "text" && typeof typedPart.text === "string") {
408
- appendTextPart(parts, typedPart.text, role);
409
- continue;
410
- }
411
- if (typedPart?.type === "image_url" && typeof typedPart.image_url?.url === "string" && typedPart.image_url.url) {
412
- if (role === "assistant") continue;
413
- parts.push({
414
- type: "input_image",
415
- image_url: typedPart.image_url.url,
416
- detail: typedPart.image_url.detail
417
- });
418
- }
419
- }
420
- return parts;
421
- };
422
- var normalizeToolOutput = (content) => {
423
- if (typeof content === "string") return content;
424
- return JSON.stringify(content ?? "");
425
- };
426
- var toResponsesTools = (tools) => {
427
- if (!Array.isArray(tools) || tools.length === 0) return void 0;
428
- return tools.map((tool) => {
429
- const fn = tool?.function;
430
- if (!fn?.name) return null;
431
- return {
432
- type: "function",
433
- name: fn.name,
434
- description: fn.description,
435
- parameters: sanitizeResponsesParameters(fn.parameters),
436
- strict: fn.strict
437
- };
438
- }).filter(Boolean);
439
- };
440
- var convertMessagesToResponsesInput = (messages, options) => {
441
- const input = [];
442
- for (const message of messages) {
443
- if (!message?.role) continue;
444
- if (message.role === "tool") {
445
- if (!message.tool_call_id) continue;
446
- input.push({
447
- type: "function_call_output",
448
- call_id: message.tool_call_id,
449
- output: normalizeToolOutput(message.content)
450
- });
451
- continue;
452
- }
453
- const role = message.role;
454
- if (role === "assistant" && !options?.stripReasoningContent && typeof message.reasoning_content === "string" && message.reasoning_content) {
455
- input.push({ type: "reasoning", content: message.reasoning_content });
456
- }
457
- const contentParts = normalizeMessageParts(message.content, role);
458
- if (contentParts.length > 0) {
459
- input.push({
460
- type: "message",
461
- role,
462
- content: contentParts
463
- });
464
- }
465
- if (role === "assistant" && Array.isArray(message.content)) {
466
- const replayImages = message.content.map((part) => part).filter(
467
- (part) => part?.type === "image_url" && typeof part.image_url?.url === "string" && Boolean(part.image_url.url)
468
- ).map((part) => ({
469
- type: "input_image",
470
- image_url: part.image_url.url,
471
- detail: part.image_url.detail
472
- }));
473
- if (replayImages.length > 0) {
474
- input.push({
475
- type: "message",
476
- role: "user",
477
- content: replayImages
478
- });
479
- }
480
- }
481
- if (role === "assistant" && Array.isArray(message.tool_calls)) {
482
- for (const toolCall of message.tool_calls) {
483
- if (!toolCall?.id || !toolCall.function?.name) continue;
484
- input.push({
485
- type: "function_call",
486
- call_id: toolCall.id,
487
- name: toolCall.function.name,
488
- arguments: typeof toolCall.function.arguments === "string" ? toolCall.function.arguments : JSON.stringify(toolCall.function.arguments ?? {})
489
- });
490
- }
491
- }
492
- }
493
- return input;
494
- };
495
- var extractTextFromResponseOutput = (response) => {
496
- const parts = [];
497
- for (const item of response?.output ?? []) {
498
- if (item?.type !== "message") continue;
499
- for (const content of item.content ?? []) {
500
- if (content?.type === "output_text" && typeof content.text === "string") {
501
- parts.push(content.text);
502
- }
503
- }
504
- }
505
- return parts.join("");
506
- };
507
- var toDataUrl = (base64Data, mimeType) => {
508
- const normalizedMimeType = asOptionalTrimmedString(mimeType) ?? "image/png";
509
- return `data:${normalizedMimeType};base64,${base64Data}`;
510
- };
511
- var extractImagePartsFromResponseOutput = (response) => {
512
- const images = [];
513
- for (const item of response?.output ?? []) {
514
- if (item?.type === "image_generation_call") {
515
- const result = asOptionalTrimmedString(item.result);
516
- if (result) {
517
- const outputFormat = asOptionalTrimmedString(item.output_format);
518
- images.push({
519
- type: "image_url",
520
- image_url: {
521
- url: toDataUrl(
522
- result,
523
- outputFormat ? `image/${outputFormat}` : void 0
524
- )
525
- }
526
- });
527
- }
528
- continue;
529
- }
530
- if (item?.type !== "message") continue;
531
- for (const content of item.content ?? []) {
532
- const result = asOptionalTrimmedString(content?.result);
533
- if (content?.type === "output_image" && result) {
534
- images.push({
535
- type: "image_url",
536
- image_url: {
537
- url: toDataUrl(
538
- result,
539
- content.mime_type ?? content.mimeType ?? null
540
- )
541
- }
542
- });
543
- }
544
- }
545
- }
546
- return images;
547
- };
548
- var extractToolCallsFromResponseOutput = (response) => {
549
- const calls = [];
550
- for (const item of response?.output ?? []) {
551
- if (item?.type !== "function_call") continue;
552
- if (!item.call_id || !item.name) continue;
553
- calls.push({
554
- id: item.call_id,
555
- type: "function",
556
- function: {
557
- name: item.name,
558
- arguments: typeof item.arguments === "string" ? item.arguments : JSON.stringify(item.arguments ?? {})
559
- }
560
- });
561
- }
562
- return calls;
563
- };
564
-
565
- // packages/core/chat/imageParts.ts
566
- function isImageUrlPart(part) {
567
- return isRecord(part) && part.type === "image_url";
568
- }
569
- function hasImageParts(messages) {
570
- return messages.some(
571
- (message) => Array.isArray(message.content) && message.content.some(isImageUrlPart)
572
- );
573
- }
574
-
575
336
  export {
576
337
  pickAgentRuntimeInferenceOptions,
577
338
  isOpenAiResponsesModel,
@@ -585,15 +346,5 @@ export {
585
346
  resolveAgentRuntimeLocation,
586
347
  resolveProviderTransportDecision,
587
348
  buildProviderAuthHeaders,
588
- buildProviderExecutionPlan,
589
- isImageUrlPart,
590
- hasImageParts,
591
- preserveAgentStateFields,
592
- toOpenAiCompatibleMessages,
593
- shouldStripReasoningContentForOutbound,
594
- toResponsesTools,
595
- convertMessagesToResponsesInput,
596
- extractTextFromResponseOutput,
597
- extractImagePartsFromResponseOutput,
598
- extractToolCallsFromResponseOutput
349
+ buildProviderExecutionPlan
599
350
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_AGENT_BASE_POLICY,
3
3
  DEFAULT_USER_PREFERENCE_PROFILE
4
- } from "./chunk-EABWT43X.js";
4
+ } from "./chunk-RVOUXDFU.js";
5
5
 
6
6
  // packages/ai/policy/runtimePolicy.ts
7
7
  var clampLevel = (value, fallback) => {