nolo-cli 0.29.2 → 0.30.0-alpha.10
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-BFVTGZXE.js → _executeModel-5ARVVUIK.js} +64 -69
- package/{action-LG32A6DJ.js → action-HI3VRQLP.js} +15 -16
- package/{addContentAction-MPGMBJTQ.js → addContentAction-NCURJ6PK.js} +13 -13
- package/{addDialogAgentAction-ZH23WDID.js → addDialogAgentAction-RCY4ECF4.js} +12 -12
- package/{agentDeleteCommand-4S4STG42.js → agentDeleteCommand-5Q6TDCJU.js} +62 -40
- package/{agentEmailCommands-3F4IP4DI.js → agentEmailCommands-DSX4BJ2I.js} +77 -81
- package/{agentGrantCommands-JNDE4RWR.js → agentGrantCommands-E7ZZFRHK.js} +2 -1
- package/{agentListCommands-JCRV2XF6.js → agentListCommands-S66HL5RO.js} +59 -41
- package/{agentMachineCommands-KYXPYSFP.js → agentMachineCommands-ULCQ5ZNN.js} +55 -36
- package/{agentPullCommand-ZZGU5KOY.js → agentPullCommand-4V36XNGV.js} +4 -3
- package/{agentRecordCommands-UADUPIXO.js → agentRecordCommands-2AA3GEGO.js} +75 -79
- package/{agentRunCommand-MJWSR53W.js → agentRunCommand-3KOT77XY.js} +79 -83
- package/{agentRunControl-SNUKXN6J.js → agentRunControl-AKBN2366.js} +13 -1
- package/{agentRuntimeLocal-PC5RRRPT.js → agentRuntimeLocal-7TMDJD4S.js} +50 -31
- package/{agentSlice-C5OYLNBT.js → agentSlice-6IQRQZX3.js} +13 -14
- package/{appDeleteCommands-ZXODZ5AD.js → appDeleteCommands-UUDIWLNE.js} +55 -36
- package/{appDeployCommands-AWC6JPZH.js → appDeployCommands-CO6SZ7YP.js} +55 -36
- package/{appDeployStatusCommands-74NXMDAI.js → appDeployStatusCommands-QEVKVECJ.js} +55 -36
- package/{appGetCommands-6YGIAP5L.js → appGetCommands-3YSCCLK4.js} +55 -36
- package/{appListCommands-DZWBHMNK.js → appListCommands-FBJAFZKK.js} +55 -36
- package/{authCommand-XMQHBK5L.js → authCommand-3ADNCFKD.js} +16 -16
- package/{authCommands-JSOG2H4E.js → authCommands-CXJ6PI2O.js} +7 -7
- package/{chunk-TOGGHWHI.js → chunk-2CYGIPJH.js} +3 -3
- package/{chunk-HRJEPMZY.js → chunk-2HQ4OG6N.js} +2 -2
- package/{chunk-XMLRJUU5.js → chunk-2IJAKBK2.js} +12 -10
- package/{chunk-OLWMGSW2.js → chunk-2SOQY5L6.js} +41 -39
- package/{chunk-7H3UTGPM.js → chunk-3AUWC6EM.js} +82 -3
- package/{chunk-6HTWA77J.js → chunk-43EPBPZ2.js} +1 -1
- package/{chunk-RJBTU7AS.js → chunk-4F77PJBR.js} +302 -14
- package/{chunk-RZNYL4LW.js → chunk-4SAV7BD7.js} +65 -1
- package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
- package/{chunk-VKBTAQWT.js → chunk-6JH2DF7J.js} +6 -6
- package/{chunk-DZ3XJVET.js → chunk-AOS5IN2I.js} +1 -1
- package/{chunk-5ZXNLOAG.js → chunk-ARPAHODF.js} +17 -10
- package/{chunk-IC7W63RM.js → chunk-ATK5WJOA.js} +4 -4
- package/{chunk-OEWEE4VW.js → chunk-BIPRFBC2.js} +4 -2
- package/{chunk-YTA2QOEE.js → chunk-CAENRKNJ.js} +15 -0
- package/chunk-CYRMUTGB.js +1707 -0
- package/chunk-DCDL3GC4.js +171 -0
- package/{chunk-WX3ZOSTL.js → chunk-EBNSAABL.js} +24 -26
- package/{chunk-2TYLTEAH.js → chunk-EDWM6D6L.js} +1 -1
- package/{chunk-GT3GG2H7.js → chunk-EIQDGAAE.js} +148 -2
- package/chunk-F3MP7CP6.js +73 -0
- package/{chunk-R7LOFGRE.js → chunk-G5GVZAXF.js} +19 -15
- package/{chunk-KEF5OBOZ.js → chunk-GKXS4F2I.js} +33 -27
- package/{chunk-R3JSTDQO.js → chunk-GVPMJPCT.js} +1 -1
- package/{chunk-WMB7GVPN.js → chunk-IPSPETAL.js} +152 -1177
- package/{chunk-MQRZ5QUH.js → chunk-IXZX5CJK.js} +1 -1
- package/{chunk-2FX23RGA.js → chunk-J3LHGBNO.js} +5 -5
- package/{chunk-VHBWHNVT.js → chunk-K6QEHQZ3.js} +8 -4
- package/{chunk-HRPWRVBI.js → chunk-KGEVMUMI.js} +11 -11
- package/{chunk-L65QKSVJ.js → chunk-L3GCUVOH.js} +1 -1
- package/{chunk-G2BZ43DV.js → chunk-LAXMH7JY.js} +14 -14
- package/chunk-LEVCXTDN.js +5558 -0
- package/{chunk-HEXXIS77.js → chunk-N2IX3ZYK.js} +1 -1
- package/{chunk-32ZM6HVI.js → chunk-NZBH7FTB.js} +95 -95
- package/{chunk-XOIF2TNF.js → chunk-OB6FBSH3.js} +13 -0
- package/{chunk-PSK2RUHV.js → chunk-OIW2RJ74.js} +360 -2
- package/{chunk-FRN5QOKN.js → chunk-PACNSC37.js} +19 -4
- package/{chunk-QC6ZWDSV.js → chunk-PIC6Z7VI.js} +3 -3
- package/{chunk-H5S4XUGI.js → chunk-Q243PXRU.js} +185 -158
- package/{chunk-BBGRJB5E.js → chunk-QBOW6RZN.js} +4 -4
- package/{chunk-FVOSIYXM.js → chunk-R5Y4XELF.js} +43 -394
- package/{chunk-DF7SMWEV.js → chunk-RWJPDKPB.js} +1 -1
- package/{chunk-NXMJ55RU.js → chunk-S2BMRBR2.js} +3 -3
- package/{chunk-GC34RRTQ.js → chunk-SWYMCHM7.js} +1 -69
- package/chunk-T27IEBNQ.js +149 -0
- package/{chunk-GMJS5AYP.js → chunk-T4X4GCYT.js} +19 -179
- package/{chunk-4BDPDTJU.js → chunk-TXVSNFHC.js} +8 -8
- package/{chunk-JSB4N6NU.js → chunk-V54H24CQ.js} +3 -3
- package/chunk-VQ4QPCKE.js +3226 -0
- package/{chunk-Q5RXHXKU.js → chunk-W3UDJJMA.js} +189 -122
- package/{chunk-L3QFIBZG.js → chunk-WTGCTVJG.js} +1 -1
- package/{chunk-XS7UPVR7.js → chunk-WTPC3XD4.js} +5 -5
- package/{chunk-WSQLK2KR.js → chunk-XFGM5PJP.js} +6 -6
- package/{chunk-HALKDXKP.js → chunk-XORE26Z4.js} +8 -4
- package/chunk-YLC42PIE.js +7889 -0
- package/{chunk-SKDNBYZK.js → chunk-ZJ2WITOO.js} +2 -2
- package/{chunk-L6RBX4L4.js → chunk-ZJH3LKEW.js} +21 -9
- package/{codingSkills-EN6Z6G6U.js → codingSkills-V35TRR4Y.js} +1 -2
- package/{createAgentAutomationAction-BK4UZJKU.js → createAgentAutomationAction-EYNYY2LB.js} +31 -37
- package/{createDialogAction-MJJUI2MK.js → createDialogAction-OUIRWYZP.js} +34 -39
- package/{createPageAction-YMZ7K363.js → createPageAction-2I5PHJFF.js} +45 -51
- package/{dbSlice-6QJYQUBV.js → dbSlice-BBL3PEVW.js} +12 -12
- package/{deleteFile-WDZ3VM7B.js → deleteFile-RJTEPOT4.js} +6 -6
- package/{dialogCommands-OKH45ASS.js → dialogCommands-5CL4QYQ7.js} +55 -38
- package/{dialogSlice-UDOKNDHB.js → dialogSlice-EKKVFKBJ.js} +28 -35
- package/{docCreateCommands-MCLMR4TE.js → docCreateCommands-QHCLYGNW.js} +54 -37
- package/{docDeleteCommands-ONDHI7JV.js → docDeleteCommands-DS6KOU6N.js} +56 -39
- package/{docReadCommands-FCXBMISW.js → docReadCommands-FRI5DAKH.js} +54 -37
- package/{docStore-N66O4CGH.js → docStore-V7EJS4PX.js} +30 -36
- package/{docUpdateCommands-T3XN6XOX.js → docUpdateCommands-RQO5ZTXT.js} +57 -40
- package/{fetchMessages-W4IKHPCS.js → fetchMessages-VPPQDDZ4.js} +3 -3
- package/{getPricing-X6I23RN6.js → getPricing-67TQVKFV.js} +6 -7
- package/{handleSendMessageAction-KC4AYUZP.js → handleSendMessageAction-KCF7KII4.js} +30 -37
- package/index.js +72 -72
- package/{localDialogRead-UFLBS6OT.js → localDialogRead-P72W2U2R.js} +1 -1
- package/{machineCommands-DIMRFA3Y.js → machineCommands-IAGAKTHV.js} +78 -82
- package/{machineWsRunDispatch-2DYJZI6Z.js → machineWsRunDispatch-JGKC2HEK.js} +73 -77
- package/{models-YT32CTT5.js → models-WDUTTYFS.js} +2 -2
- package/{offlineMarxistsAgentCommand-5OOWZLJI.js → offlineMarxistsAgentCommand-E6LUG63A.js} +6 -2
- package/package.json +1 -1
- package/{read-C7Y6LSBM.js → read-64OQDO3I.js} +7 -7
- package/{readDocTool-TOHRYJHP.js → readDocTool-MXM3T6PE.js} +2 -1
- package/{readlineWorkspace-HUPHMLDG.js → readlineWorkspace-5AQHHIBK.js} +209 -183
- package/{removeDialogAgentAction-WZXPOH5S.js → removeDialogAgentAction-NEKVAMSH.js} +16 -17
- package/{runAgentClientLoop-5TGSUKHV.js → runAgentClientLoop-6OGPS6SI.js} +63 -67
- package/{setDialogExtraReferencesAction-INZY2ENI.js → setDialogExtraReferencesAction-WTOHQDIV.js} +13 -13
- package/{setPrimaryDialogAgentAction-WCVLPYCF.js → setPrimaryDialogAgentAction-LDJOYC4F.js} +16 -17
- package/{settingSlice-IDUM4LWU.js → settingSlice-4M37TN7V.js} +14 -15
- package/{skillDiscovery-ITA7BI7A.js → skillDiscovery-I3QRA7NE.js} +2 -2
- package/{spaceCommands-XSSDB3YK.js → spaceCommands-VTDNKTSF.js} +240 -41
- package/{spaceSlice-BXDCO6PT.js → spaceSlice-LGUZMB7Y.js} +29 -35
- package/{streamAgentChatTurn-HRFMVSVC.js → streamAgentChatTurn-TIGCZUNZ.js} +133 -1301
- package/{switchDialogAgentAction-YBFFCBOD.js → switchDialogAgentAction-XVWGKR2Z.js} +12 -12
- package/{tableCommands-QSZILI7I.js → tableCommands-RJZ3V4TF.js} +7 -7
- package/{toolApiClient-WVTUYOFM.js → toolApiClient-ARGFDJAG.js} +2 -2
- package/{tools-5V6FHWQU.js → tools-BQAOPYMR.js} +51 -56
- package/{tuiSummaryLlmCaller-GCUPULOV.js → tuiSummaryLlmCaller-YQBN5IMG.js} +12 -12
- package/{updateDialogTitleAction-W62C4W4K.js → updateDialogTitleAction-E6HMEDPH.js} +39 -45
- package/chunk-5CS33IBL.js +0 -301
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-HYSJHRWD.js +0 -669
- package/chunk-MRC4Q34M.js +0 -188
- package/chunk-SIZQB7BD.js +0 -91
- package/chunk-UEOPA6MV.js +0 -641
- package/chunk-UFL6WHHJ.js +0 -15419
- package/chunk-VIDPVFP3.js +0 -20
- package/chunk-W2LZV5GE.js +0 -231
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YYLHWIW6.js +0 -48
- package/chunk-Z54ZAZZC.js +0 -1791
- package/chunk-ZZ2MH7LE.js +0 -84
- package/{chunk-OMP5L5NF.js → chunk-44HACRCK.js} +3 -3
- package/{chunk-ZVZMT3EA.js → chunk-KWCLUYGQ.js} +3 -3
- package/{chunk-NRY4GCKJ.js → chunk-WHLVPK32.js} +3 -3
- package/{chunk-RQSOAMPJ.js → chunk-Z5MXSEOJ.js} +2 -2
- package/{runtimeDoctorCommands-HSU632DY.js → runtimeDoctorCommands-E2OUORHK.js} +3 -3
package/chunk-ZZ2MH7LE.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
// packages/agent-runtime/toolNameAliases.ts
|
|
2
|
-
var LEGACY_TOOL_NAME_ALIASES = {
|
|
3
|
-
createPage: "createDoc",
|
|
4
|
-
updatePage: "updateDoc",
|
|
5
|
-
update_page: "updateDoc",
|
|
6
|
-
create_page: "createDoc",
|
|
7
|
-
fetchwebpage: "fetchWebpage",
|
|
8
|
-
fetch_webpage: "fetchWebpage",
|
|
9
|
-
"fetch-page": "fetchWebpage",
|
|
10
|
-
exasearch: "exa_search",
|
|
11
|
-
"exa-search": "exa_search",
|
|
12
|
-
exa_search: "exa_search",
|
|
13
|
-
firecrawlscrape: "firecrawl_scrape",
|
|
14
|
-
"firecrawl-scrape": "firecrawl_scrape",
|
|
15
|
-
firecrawl_scrape: "firecrawl_scrape",
|
|
16
|
-
firecrawlsearch: "firecrawl_search",
|
|
17
|
-
"firecrawl-search": "firecrawl_search",
|
|
18
|
-
firecrawl_search: "firecrawl_search",
|
|
19
|
-
readDoc: "readDoc",
|
|
20
|
-
readpage: "readDoc",
|
|
21
|
-
read_page: "readDoc",
|
|
22
|
-
read_doc: "readDoc",
|
|
23
|
-
createdoc: "createDoc",
|
|
24
|
-
updateDocTool: "updateDoc",
|
|
25
|
-
terminalCommand: "execShell",
|
|
26
|
-
terminal_command: "execShell",
|
|
27
|
-
runCommand: "execShell",
|
|
28
|
-
run_command: "execShell",
|
|
29
|
-
runInBash: "execShell",
|
|
30
|
-
run_in_bash: "execShell",
|
|
31
|
-
executeCommand: "execShell",
|
|
32
|
-
execute_command: "execShell",
|
|
33
|
-
// Codex CLI 风格工具名 → nolo 原生工具名
|
|
34
|
-
bash: "execShell",
|
|
35
|
-
shell: "execShell",
|
|
36
|
-
read: "readFile",
|
|
37
|
-
edit: "editFile",
|
|
38
|
-
write: "writeFile",
|
|
39
|
-
glob: "globFiles",
|
|
40
|
-
grep: "searchFiles",
|
|
41
|
-
// 联网搜索别名
|
|
42
|
-
web_search: "exa_search",
|
|
43
|
-
websearch: "exa_search",
|
|
44
|
-
search_web: "exa_search",
|
|
45
|
-
searchweb: "exa_search",
|
|
46
|
-
webfetch: "fetchWebpage",
|
|
47
|
-
web_fetch: "fetchWebpage",
|
|
48
|
-
fetchweb: "fetchWebpage",
|
|
49
|
-
fetch_web: "fetchWebpage",
|
|
50
|
-
// 模型偶尔会把 loadSkill 幻觉成 readSkill(参数风格 name= 一致),
|
|
51
|
-
// 规范化到 loadSkill,避免 localToolPolicy 把这种调用直接拦死。
|
|
52
|
-
readSkill: "loadSkill"
|
|
53
|
-
};
|
|
54
|
-
var normalizeToolName = (name) => name.replace(/[-_]/g, "").toLowerCase();
|
|
55
|
-
var canonicalizeToolName = (rawName) => {
|
|
56
|
-
const trimmedName = rawName.trim();
|
|
57
|
-
if (!trimmedName) return rawName;
|
|
58
|
-
if (LEGACY_TOOL_NAME_ALIASES[trimmedName]) {
|
|
59
|
-
return LEGACY_TOOL_NAME_ALIASES[trimmedName];
|
|
60
|
-
}
|
|
61
|
-
const normalizedRawName = normalizeToolName(trimmedName);
|
|
62
|
-
const matchedAlias = Object.entries(LEGACY_TOOL_NAME_ALIASES).find(
|
|
63
|
-
([alias]) => normalizeToolName(alias) === normalizedRawName
|
|
64
|
-
);
|
|
65
|
-
return matchedAlias?.[1] ?? trimmedName;
|
|
66
|
-
};
|
|
67
|
-
var canonicalizeToolNames = (toolNames) => Array.from(
|
|
68
|
-
new Set(
|
|
69
|
-
toolNames.filter((toolName) => typeof toolName === "string").map(canonicalizeToolName)
|
|
70
|
-
)
|
|
71
|
-
);
|
|
72
|
-
var prioritizeToolNames = (toolNames, preferredToolNames) => {
|
|
73
|
-
const canonicalTools = canonicalizeToolNames(toolNames);
|
|
74
|
-
const preferred = new Set(canonicalizeToolNames(preferredToolNames));
|
|
75
|
-
const prioritized = canonicalTools.filter((toolName) => preferred.has(toolName));
|
|
76
|
-
const remaining = canonicalTools.filter((toolName) => !preferred.has(toolName));
|
|
77
|
-
return [...prioritized, ...remaining];
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export {
|
|
81
|
-
canonicalizeToolName,
|
|
82
|
-
canonicalizeToolNames,
|
|
83
|
-
prioritizeToolNames
|
|
84
|
-
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getActiveDialogKey
|
|
3
|
-
} from "./chunk-3ASDTTEI.js";
|
|
4
1
|
import {
|
|
5
2
|
compactWhitespace
|
|
6
3
|
} from "./chunk-DWLEOOGR.js";
|
|
4
|
+
import {
|
|
5
|
+
getActiveDialogKey
|
|
6
|
+
} from "./chunk-3ASDTTEI.js";
|
|
7
7
|
import {
|
|
8
8
|
asTrimmedLowercaseString
|
|
9
9
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
load
|
|
3
|
-
} from "./chunk-WZSRQNQG.js";
|
|
4
1
|
import {
|
|
5
2
|
buildSkillDiscoveryLayer
|
|
6
3
|
} from "./chunk-PJY5AH5A.js";
|
|
4
|
+
import {
|
|
5
|
+
load
|
|
6
|
+
} from "./chunk-WZSRQNQG.js";
|
|
7
7
|
|
|
8
8
|
// packages/agent-runtime/skillDiscovery.ts
|
|
9
9
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asOptionalFiniteNumber
|
|
3
3
|
} from "./chunk-WWC7I6TA.js";
|
|
4
|
-
import {
|
|
5
|
-
asNonEmptyStringArray
|
|
6
|
-
} from "./chunk-I42VC5KR.js";
|
|
7
4
|
import {
|
|
8
5
|
asTrimmedString
|
|
9
6
|
} from "./chunk-3EUW3WEO.js";
|
|
7
|
+
import {
|
|
8
|
+
asNonEmptyStringArray
|
|
9
|
+
} from "./chunk-I42VC5KR.js";
|
|
10
10
|
import {
|
|
11
11
|
asOptionalTrimmedString
|
|
12
12
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -40,11 +40,11 @@ function isGatewayHttpStatus(status) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export {
|
|
43
|
+
normalizeNonNegativeMs,
|
|
44
|
+
parseRetryAfterHeaderMs,
|
|
43
45
|
CORE_DRAIN_REASON,
|
|
44
46
|
DRAIN_EXHAUSTED_USER_MESSAGE,
|
|
45
47
|
isCoreDrainingBody,
|
|
46
48
|
createDrainExhaustedResponse,
|
|
47
|
-
normalizeNonNegativeMs,
|
|
48
|
-
parseRetryAfterHeaderMs,
|
|
49
49
|
isGatewayHttpStatus
|
|
50
50
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveAgentRuntimeDecision
|
|
3
|
-
} from "./chunk-ZNFJWEN4.js";
|
|
4
1
|
import {
|
|
5
2
|
createCliAuthorityBrokerClient,
|
|
6
3
|
createCliAuthorityBrokerSocketInvoker,
|
|
@@ -10,6 +7,9 @@ import {
|
|
|
10
7
|
resolveCliAuthorityStoreDriver
|
|
11
8
|
} from "./chunk-U4TRT5V4.js";
|
|
12
9
|
import "./chunk-LM6IYQ3F.js";
|
|
10
|
+
import {
|
|
11
|
+
resolveAgentRuntimeDecision
|
|
12
|
+
} from "./chunk-ZNFJWEN4.js";
|
|
13
13
|
import {
|
|
14
14
|
toErrorMessage
|
|
15
15
|
} from "./chunk-HNMXYYJR.js";
|