nolo-cli 0.8.0-alpha.11 → 0.8.0-alpha.13
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/{_executeModel-GPU2276G.js → _executeModel-EBU7YBDV.js} +26 -22
- package/{action-PAXRPJJF.js → action-SQGI5JY5.js} +5 -4
- package/{addContentAction-CZVWF3QZ.js → addContentAction-ZX2PUS3X.js} +4 -3
- package/{addDialogAgentAction-CCIDTPHC.js → addDialogAgentAction-ULADQX2Q.js} +3 -2
- package/{agentDeleteCommand-4ZZFM6AT.js → agentDeleteCommand-GNVYHOGZ.js} +11 -8
- package/{agentEmailCommands-C4FIVQYV.js → agentEmailCommands-IC52LATA.js} +29 -25
- package/{agentListCommands-VQAKVNEX.js → agentListCommands-FM4OWXYT.js} +12 -9
- package/{agentMachineCommands-ONFDXZUQ.js → agentMachineCommands-SFWC6KN4.js} +11 -8
- package/{agentRecordCommands-QANUGHLK.js → agentRecordCommands-VLMLWLCM.js} +29 -25
- package/{agentRunCommand-A3OSRB5Q.js → agentRunCommand-D2PVHUGR.js} +30 -25
- package/{agentRuntimeLocal-62ZB2ODP.js → agentRuntimeLocal-XL5PLRJV.js} +16 -12
- package/{agentSlice-GCGLVR2N.js → agentSlice-IIC7AISR.js} +5 -4
- package/{chunk-YOUZDXU7.js → chunk-3N55DSXH.js} +21 -17
- package/chunk-4ZDM73SD.js +34 -0
- package/{chunk-TDIQFT2F.js → chunk-5CS33IBL.js} +1 -1
- package/{chunk-IYQV26RA.js → chunk-6A3LI5TZ.js} +2 -2
- package/{chunk-VEJLAVTC.js → chunk-6CBN7GGH.js} +2 -2
- package/{chunk-BSTNFPHD.js → chunk-6XKX2N2E.js} +1 -1
- package/{chunk-7OC5VCLW.js → chunk-7EPLXPTM.js} +4 -4
- package/{chunk-GCMRDRCQ.js → chunk-7IPLJUYC.js} +1 -1
- package/{chunk-53DNV5AT.js → chunk-7U4TQSWU.js} +3 -3
- package/{chunk-GGUO4FKF.js → chunk-7XN726FS.js} +41 -19
- package/{chunk-I3D64LRJ.js → chunk-BKPVTIEK.js} +4 -4
- package/{chunk-7YLKNMOM.js → chunk-DAB7DRXD.js} +6 -6
- package/{chunk-LM25IZBJ.js → chunk-DG7AAAR3.js} +1 -1
- package/{chunk-F6QQI5YI.js → chunk-DGFWICQJ.js} +1 -1
- package/chunk-DSNONPGW.js +386 -0
- package/{chunk-LAWBMYBC.js → chunk-FE2TZO7Z.js} +2 -2
- package/{chunk-R2HXWML7.js → chunk-HLM6MG7F.js} +19 -20
- package/chunk-I42VC5KR.js +15 -0
- package/{chunk-J5KV47ZW.js → chunk-IBJC3GOP.js} +2 -2
- package/chunk-JEXVIMYZ.js +55 -0
- package/{chunk-6B7G54GE.js → chunk-KH4OXCBK.js} +5 -5
- package/{chunk-SYOF5TAS.js → chunk-MXLQWBVM.js} +36 -95
- package/chunk-OPZYGHUC.js +89 -0
- package/{chunk-J4576WMJ.js → chunk-PCWC3JTN.js} +1 -1
- package/{chunk-HEIIIZBX.js → chunk-Q2YZULBH.js} +1 -1
- package/{chunk-KB7YFGL6.js → chunk-Q3K5K4KS.js} +1 -1
- package/{chunk-IAXBCTTE.js → chunk-QO4YO77G.js} +2 -2
- package/{chunk-GGXABIPP.js → chunk-RJKDVL4L.js} +2 -2
- package/{chunk-CJH2VTEU.js → chunk-RLCFUU46.js} +3 -3
- package/{chunk-2UZXR7WO.js → chunk-SACYB45H.js} +19 -378
- package/{chunk-PN7AFLOK.js → chunk-SH2CFQOH.js} +3 -13
- package/{chunk-XBIUN5CR.js → chunk-TWPGVS2U.js} +2 -2
- package/{chunk-G5H7RNFL.js → chunk-V2AISYMA.js} +2 -2
- package/{chunk-TZNCFAUP.js → chunk-XOH46MRF.js} +8 -15
- package/{chunk-CQAHS7YO.js → chunk-YDESHYQC.js} +56 -12
- package/{chunk-AUGHVUFE.js → chunk-YYUCRDOK.js} +1 -1
- package/{chunk-H2RMRZJE.js → chunk-ZDXZSXYQ.js} +1 -1
- package/{chunk-NXZGF7F7.js → chunk-ZQ2UM4KG.js} +1 -1
- package/{chunk-QR5IPGT3.js → chunk-ZRS4MX3R.js} +170 -176
- package/{createAgentAutomationAction-537X433B.js → createAgentAutomationAction-GNRYFKTT.js} +12 -10
- package/{createDialogAction-YUD4RKBS.js → createDialogAction-Q4ISCARO.js} +15 -13
- package/{createPageAction-KJMFHL4C.js → createPageAction-7YCAZPK3.js} +13 -11
- package/{dbSlice-C4UJLRZP.js → dbSlice-TO2TSMWM.js} +3 -2
- package/{dialogCommands-H74KJKHC.js → dialogCommands-DWSE4PMW.js} +13 -10
- package/{dialogSlice-ETSD4YWS.js → dialogSlice-5KZA46HM.js} +12 -10
- package/{docCreateCommands-ADUSU34K.js → docCreateCommands-UFJL5PUM.js} +12 -9
- package/{docDeleteCommands-ZXV3S5OS.js → docDeleteCommands-XHEIBAB2.js} +13 -10
- package/{docReadCommands-YYYI6LT7.js → docReadCommands-PEDIC2CW.js} +12 -9
- package/{docStore-ZBF5DDKR.js → docStore-M7K7QFVS.js} +13 -11
- package/{docUpdateCommands-7MGJ3BYA.js → docUpdateCommands-WBRODQ7P.js} +12 -9
- package/{fetchMessages-JOCYIFKL.js → fetchMessages-U6ZHN56A.js} +3 -2
- package/{handleSendMessageAction-MGKI62Y6.js → handleSendMessageAction-SEV4YIPL.js} +12 -10
- package/index.js +40 -36
- package/{localDialogRead-D3BELSTF.js → localDialogRead-Z5UTAJPU.js} +1 -1
- package/{machineCommands-RMTMN7VQ.js → machineCommands-T4DN3MOU.js} +28 -24
- package/{machineWsRunDispatch-UIP355FN.js → machineWsRunDispatch-QRIIT2AK.js} +28 -24
- package/package.json +1 -1
- package/{readlineWorkspace-CRNQRZ6D.js → readlineWorkspace-DXOTOVHL.js} +163 -31
- package/{removeDialogAgentAction-CXLST3N6.js → removeDialogAgentAction-3MUQGFZX.js} +5 -4
- package/{runAgentClientLoop-2S334SGA.js → runAgentClientLoop-UEQEP3XG.js} +21 -19
- package/{setDialogExtraReferencesAction-LP6VYGU7.js → setDialogExtraReferencesAction-MXHX2HPK.js} +3 -2
- package/{setPrimaryDialogAgentAction-D3GGH23T.js → setPrimaryDialogAgentAction-7DLDZHDT.js} +5 -4
- package/{settingSlice-J4I3Z5H7.js → settingSlice-PNLASZGI.js} +4 -3
- package/{spaceCommands-NDEWMFZJ.js → spaceCommands-ORSFAWEY.js} +11 -8
- package/{spaceSlice-RLB6RTHO.js → spaceSlice-HOMW64JA.js} +12 -10
- package/{streamAgentChatTurn-Y2TTYPBD.js → streamAgentChatTurn-REWDBIL3.js} +28 -26
- package/{tools-YZYLY2ZQ.js → tools-L4UQS5VW.js} +19 -17
- package/tuiSummaryLlmCaller-JSI4GL6W.js +78 -0
- package/{understanding-HCSFPE7R.js → understanding-YH4X3XU6.js} +3 -2
- package/{updateDialogTitleAction-LQV6QLBW.js → updateDialogTitleAction-CKLNP73H.js} +14 -11
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
createCliCallAgentToolExecutor,
|
|
17
17
|
createCliLocalRuntimeAdapter,
|
|
18
18
|
isBuiltinNoloAgentRef
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3N55DSXH.js";
|
|
20
20
|
import {
|
|
21
21
|
getReadableCliDb
|
|
22
22
|
} from "./chunk-W4NVOSFF.js";
|
|
23
23
|
import {
|
|
24
24
|
readDbRecord,
|
|
25
25
|
resolveAgentRecordFromHybridStore
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RJKDVL4L.js";
|
|
27
27
|
import {
|
|
28
28
|
normalizeAgentHandle
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DGFWICQJ.js";
|
|
30
30
|
import {
|
|
31
31
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
32
32
|
isLocalCliAgentKey
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
load,
|
|
47
47
|
parseExternalSkillMarkdown,
|
|
48
48
|
parseSkillDocProtocol
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZQ2UM4KG.js";
|
|
50
50
|
import {
|
|
51
51
|
getModelContextWindow,
|
|
52
52
|
parseUiAskChoiceContent
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ZRS4MX3R.js";
|
|
54
54
|
import {
|
|
55
55
|
readPipeText,
|
|
56
56
|
spawnProcess
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
buildPlatformChatCompletionRequest,
|
|
63
63
|
parsePlatformChatCompletionData
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-DSNONPGW.js";
|
|
65
65
|
import {
|
|
66
66
|
resolveAgentRuntimeConfigFromRecord
|
|
67
67
|
} from "./chunk-TILFE6LV.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
LOCAL_TURN_ABORTED_CODE,
|
|
71
71
|
readActionGate,
|
|
72
72
|
readCommandActionGatePayload
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-MXLQWBVM.js";
|
|
74
74
|
import {
|
|
75
75
|
resolvePlatformChatCompletionsEndpoint
|
|
76
76
|
} from "./chunk-XDVAYP26.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
} from "./chunk-Y5GCAMGP.js";
|
|
92
92
|
import {
|
|
93
93
|
require_index_umd
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-SH2CFQOH.js";
|
|
95
95
|
import {
|
|
96
96
|
asTrimmedLowercaseString
|
|
97
97
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -486,10 +486,35 @@ function themeText(text, token, colorEnabled = resolveCliColorEnabled(), env = p
|
|
|
486
486
|
if (!colorEnabled) return text;
|
|
487
487
|
return `${themeColorSequence(token, env)}${text}\x1B[39m`;
|
|
488
488
|
}
|
|
489
|
+
function renderDiffCodeBlock(code, env = process.env) {
|
|
490
|
+
const border = themeText("\u2502", "chrome", true, env);
|
|
491
|
+
const addedColor = themeColorSequence("success", env);
|
|
492
|
+
const deletedColor = themeColorSequence("danger", env);
|
|
493
|
+
const hunkColor = themeColorSequence("info", env);
|
|
494
|
+
const contextColor = themeColorSequence("chrome", env);
|
|
495
|
+
const reset = "\x1B[0m";
|
|
496
|
+
const lines = code.split("\n").map((line) => {
|
|
497
|
+
let color = contextColor;
|
|
498
|
+
if (line.startsWith("@@")) {
|
|
499
|
+
color = hunkColor;
|
|
500
|
+
} else if (line.startsWith("+") && !line.startsWith("+++")) {
|
|
501
|
+
color = addedColor;
|
|
502
|
+
} else if (line.startsWith("-") && !line.startsWith("---")) {
|
|
503
|
+
color = deletedColor;
|
|
504
|
+
}
|
|
505
|
+
return ` ${border} ${color}${line}${reset}`;
|
|
506
|
+
});
|
|
507
|
+
return ` ${themeText("\u250C\u2500\u2500\u2500", "chrome", true, env)}
|
|
508
|
+
${lines.join("\n")}
|
|
509
|
+
${themeText("\u2514\u2500\u2500\u2500", "chrome", true, env)}`;
|
|
510
|
+
}
|
|
489
511
|
function highlightMarkdown(text, colorEnabled = resolveCliColorEnabled(), env = process.env) {
|
|
490
512
|
if (!colorEnabled) return text;
|
|
491
513
|
let result = text;
|
|
492
|
-
result = result.replace(/```[a-zA-Z-]
|
|
514
|
+
result = result.replace(/```([a-zA-Z-]*)\n([\s\S]*?)\n```/g, (match, lang, code) => {
|
|
515
|
+
if (lang.toLowerCase() === "diff") {
|
|
516
|
+
return renderDiffCodeBlock(code, env);
|
|
517
|
+
}
|
|
493
518
|
const infoColor = themeColorSequence("info", env);
|
|
494
519
|
const reset2 = "\x1B[39m\x1B[22m";
|
|
495
520
|
const border = themeText("\u2502", "chrome", true, env);
|
|
@@ -580,6 +605,8 @@ function normalizeCodeLang(raw) {
|
|
|
580
605
|
return "sh";
|
|
581
606
|
case "json":
|
|
582
607
|
return "json";
|
|
608
|
+
case "diff":
|
|
609
|
+
return "diff";
|
|
583
610
|
default:
|
|
584
611
|
return "unknown";
|
|
585
612
|
}
|
|
@@ -652,7 +679,8 @@ var KEYWORDS = {
|
|
|
652
679
|
"echo",
|
|
653
680
|
"cd"
|
|
654
681
|
]),
|
|
655
|
-
json: /* @__PURE__ */ new Set(["true", "false", "null"])
|
|
682
|
+
json: /* @__PURE__ */ new Set(["true", "false", "null"]),
|
|
683
|
+
diff: /* @__PURE__ */ new Set([])
|
|
656
684
|
};
|
|
657
685
|
function scanStringCommentRegions(line, lang) {
|
|
658
686
|
const regions = [];
|
|
@@ -698,6 +726,22 @@ function highlightCodeLine(line, lang, brightness) {
|
|
|
698
726
|
if (lang === "unknown") {
|
|
699
727
|
return `${info}${line}${STYLE.reset}`;
|
|
700
728
|
}
|
|
729
|
+
if (lang === "diff") {
|
|
730
|
+
const added = colorSeq("success", brightness);
|
|
731
|
+
const deleted = colorSeq("danger", brightness);
|
|
732
|
+
const hunk = colorSeq("info", brightness);
|
|
733
|
+
const context = colorSeq("chrome", brightness);
|
|
734
|
+
const reset2 = STYLE.reset;
|
|
735
|
+
let color = context;
|
|
736
|
+
if (line.startsWith("@@")) {
|
|
737
|
+
color = hunk;
|
|
738
|
+
} else if (line.startsWith("+") && !line.startsWith("+++")) {
|
|
739
|
+
color = added;
|
|
740
|
+
} else if (line.startsWith("-") && !line.startsWith("---")) {
|
|
741
|
+
color = deleted;
|
|
742
|
+
}
|
|
743
|
+
return `${color}${line}${reset2}`;
|
|
744
|
+
}
|
|
701
745
|
const regions = scanStringCommentRegions(line, lang);
|
|
702
746
|
const keywords = KEYWORDS[lang];
|
|
703
747
|
const accent = colorSeq("accent", brightness);
|
|
@@ -2732,7 +2776,7 @@ function isKnownServerPlatformAgent(options) {
|
|
|
2732
2776
|
// packages/cli/client/agentRun.ts
|
|
2733
2777
|
var import_ulid = __toESM(require_index_umd(), 1);
|
|
2734
2778
|
async function loadRunLocalAgentTurn() {
|
|
2735
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
2779
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XL5PLRJV.js");
|
|
2736
2780
|
return runLocalAgentTurn;
|
|
2737
2781
|
}
|
|
2738
2782
|
async function resolveCurrentMachineId(options) {
|
|
@@ -3130,7 +3174,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
3130
3174
|
} : void 0;
|
|
3131
3175
|
const currentDialogId = options.continueDialogId ?? (0, import_ulid.ulid)();
|
|
3132
3176
|
const runChildTurn = async (input) => {
|
|
3133
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3177
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XL5PLRJV.js");
|
|
3134
3178
|
return runLocalAgentTurn(input);
|
|
3135
3179
|
};
|
|
3136
3180
|
const createFreshChildBaseAdapter = () => {
|