nolo-cli 0.29.1 → 0.30.0-alpha.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/{_executeModel-TN7FW73L.js → _executeModel-VBHHG7LT.js} +62 -68
- package/{action-6BM26ZYM.js → action-FENWPT3C.js} +14 -15
- package/{addContentAction-HLTFX56O.js → addContentAction-Z5S5ZQ7I.js} +12 -12
- package/{addDialogAgentAction-Q2TYWDO6.js → addDialogAgentAction-VUNVD2XR.js} +11 -11
- package/{agentDeleteCommand-VP4VLCMG.js → agentDeleteCommand-LLGZXUYJ.js} +60 -39
- package/{agentEmailCommands-N32KWVCX.js → agentEmailCommands-LC2FPN6G.js} +76 -81
- package/{agentGrantCommands-JNDE4RWR.js → agentGrantCommands-E7ZZFRHK.js} +2 -1
- package/{agentListCommands-MXITEBUS.js → agentListCommands-A6OBQ3QX.js} +57 -40
- package/{agentMachineCommands-47Y2XEZZ.js → agentMachineCommands-4O4Q5B5X.js} +53 -35
- package/{agentPullCommand-ZZGU5KOY.js → agentPullCommand-4V36XNGV.js} +4 -3
- package/{agentRecordCommands-AK6ZRJLD.js → agentRecordCommands-W22RIQRV.js} +73 -78
- package/{agentRunCommand-24SNVDNC.js → agentRunCommand-V4OBU4FB.js} +77 -82
- package/{agentRunControl-SNUKXN6J.js → agentRunControl-AKBN2366.js} +13 -1
- package/{agentRuntimeLocal-VI3NHLDU.js → agentRuntimeLocal-I57YSGH4.js} +52 -34
- package/{agentSlice-D666DABC.js → agentSlice-3ZHY7RAO.js} +12 -13
- package/{appDeleteCommands-SF2V6QYZ.js → appDeleteCommands-DJJF466K.js} +53 -35
- package/{appDeployCommands-3EPVR545.js → appDeployCommands-WJZGIOEZ.js} +53 -35
- package/{appDeployStatusCommands-O65Y747J.js → appDeployStatusCommands-ICYXUJNO.js} +53 -35
- package/{appGetCommands-AHDOF4SS.js → appGetCommands-UOCWYJPV.js} +53 -35
- package/{appListCommands-Y7YCXODU.js → appListCommands-EOKWTXPW.js} +53 -35
- package/{authCommand-XMQHBK5L.js → authCommand-H5KE7K7K.js} +16 -16
- package/{authCommands-JSOG2H4E.js → authCommands-CXJ6PI2O.js} +7 -7
- package/{chunk-SNMJPH7J.js → chunk-2XM5KUNE.js} +4 -2
- package/{chunk-7H3UTGPM.js → chunk-3AUWC6EM.js} +82 -3
- package/{chunk-FVY6KI5A.js → chunk-3RIWR23B.js} +1 -1
- package/{chunk-ENUJPSZN.js → chunk-446VANPP.js} +18 -14
- package/{chunk-PB7G5MAM.js → chunk-44HACRCK.js} +4 -4
- package/{chunk-RZNYL4LW.js → chunk-4SAV7BD7.js} +65 -1
- package/{chunk-I5TJCJQP.js → chunk-56IUA7RU.js} +3 -3
- package/{chunk-STOUEEBU.js → chunk-66O5MZYH.js} +1 -1
- package/{chunk-PSK2RUHV.js → chunk-7CD24PU4.js} +360 -2
- package/{chunk-JYSXE6LE.js → chunk-A4JDTA5T.js} +13 -13
- package/{chunk-DZ3XJVET.js → chunk-AOS5IN2I.js} +1 -1
- package/{chunk-SKDNBYZK.js → chunk-BOL2D2JW.js} +1 -1
- package/{chunk-YTA2QOEE.js → chunk-CAENRKNJ.js} +15 -0
- package/{chunk-2TYLTEAH.js → chunk-CV6I4HBA.js} +1 -1
- package/chunk-DCDL3GC4.js +171 -0
- package/{chunk-WNENLKKI.js → chunk-DCWBP2O7.js} +42 -393
- package/{chunk-Y52E3TIS.js → chunk-DI6MXJK5.js} +37 -37
- package/{chunk-Z3LLUGD5.js → chunk-DKRT67FG.js} +11 -11
- package/{chunk-NWT2WUCY.js → chunk-DWQNDGO7.js} +20 -8
- package/{chunk-BPZSJH5X.js → chunk-FS5TTXPS.js} +6 -6
- package/chunk-G5JHHUAK.js +73 -0
- package/{chunk-GFVFYNL7.js → chunk-G6VITLCZ.js} +3 -3
- package/{chunk-MUI34IA2.js → chunk-GAGUBI42.js} +302 -14
- package/{chunk-YBHJZVWO.js → chunk-GVKTKT3O.js} +15 -8
- package/{chunk-GVYU3EVI.js → chunk-HI7QZNWX.js} +17 -10
- package/{chunk-MHHYH3JA.js → chunk-HLG6GAUD.js} +1 -1
- package/{chunk-MQRZ5QUH.js → chunk-IXZX5CJK.js} +1 -1
- package/{chunk-INWBJPQC.js → chunk-IZ3CBMD5.js} +3 -3
- package/{chunk-VHBWHNVT.js → chunk-K6QEHQZ3.js} +8 -4
- package/chunk-KW47OSRJ.js +3246 -0
- package/{chunk-F7S2SH5C.js → chunk-KWKD3BCC.js} +189 -122
- package/{chunk-L65QKSVJ.js → chunk-L3GCUVOH.js} +1 -1
- package/{chunk-XISENOC2.js → chunk-L3VQOVKK.js} +8 -8
- package/{chunk-HALKDXKP.js → chunk-MEUZFIAJ.js} +8 -4
- package/{chunk-XMAMUPXU.js → chunk-MMCVBEAD.js} +174 -149
- package/{chunk-XOIF2TNF.js → chunk-OB6FBSH3.js} +13 -0
- package/chunk-OYK7PA5U.js +1707 -0
- package/{chunk-WPRSBZYN.js → chunk-Q24P6TUS.js} +1 -1
- package/{chunk-7CP4UOUV.js → chunk-QLV2GKU5.js} +16 -178
- package/{chunk-2AX4ZWSG.js → chunk-SWOTB2TX.js} +135 -1166
- package/{chunk-BOPFLKHA.js → chunk-SWYMCHM7.js} +1 -69
- package/{chunk-YRMUYZ5H.js → chunk-SZ5CBYMZ.js} +4 -4
- package/chunk-T27IEBNQ.js +149 -0
- package/{chunk-WX3ZOSTL.js → chunk-T3Y5EMJS.js} +24 -26
- package/{chunk-RD6AOXQI.js → chunk-THTAR67C.js} +1056 -137
- package/{chunk-2FX23RGA.js → chunk-TJYWZ3LO.js} +4 -4
- package/{chunk-SLOGKB7M.js → chunk-TOW4E763.js} +9 -1
- package/{chunk-33K2M3AU.js → chunk-UKC5HU2C.js} +33 -40
- package/{chunk-STRCGEC6.js → chunk-UTQZ73QQ.js} +13 -9
- package/{chunk-GT3GG2H7.js → chunk-VSTUQGLT.js} +1 -1
- package/{chunk-4MCHUZUI.js → chunk-W2YKDXT7.js} +95 -95
- package/{chunk-L3QFIBZG.js → chunk-WTGCTVJG.js} +1 -1
- package/{chunk-XS7UPVR7.js → chunk-XD5NQEOH.js} +5 -5
- package/{chunk-WSQLK2KR.js → chunk-XFGM5PJP.js} +6 -6
- package/{chunk-DBUNOYLF.js → chunk-YLADSPDU.js} +3 -3
- package/{chunk-FRN5QOKN.js → chunk-YWGSCF37.js} +19 -4
- package/{codingSkills-EN6Z6G6U.js → codingSkills-V35TRR4Y.js} +1 -2
- package/{createAgentAutomationAction-VK3N263U.js → createAgentAutomationAction-3GMH6ORX.js} +30 -37
- package/{createDialogAction-KWZ74S2G.js → createDialogAction-R5MCL4RE.js} +32 -38
- package/{createPageAction-3CIZL5ZL.js → createPageAction-QYTG656R.js} +43 -50
- package/{db-W5UHK4P3.js → db-IPCJ43PW.js} +10 -6
- package/{dbSlice-GOKRGQ47.js → dbSlice-OBV7VFCF.js} +11 -11
- package/{deleteFile-WDZ3VM7B.js → deleteFile-AC45HYSM.js} +5 -5
- package/{dialogCommands-N4XKI6ZU.js → dialogCommands-NUQGIXVZ.js} +53 -37
- package/{dialogSlice-TKYB6VLO.js → dialogSlice-CFDECXEU.js} +27 -34
- package/{docCreateCommands-DTDKANXX.js → docCreateCommands-UNFCXB5N.js} +52 -36
- package/{docDeleteCommands-U4NB6OHK.js → docDeleteCommands-NG5IVKE5.js} +54 -38
- package/{docReadCommands-SDVQM3BH.js → docReadCommands-6J7MUUX6.js} +52 -36
- package/{docStore-E5QAM75M.js → docStore-MZZWJM4F.js} +28 -35
- package/{docUpdateCommands-O2O644FV.js → docUpdateCommands-6AW3VZOX.js} +55 -39
- package/{fetchMessages-W4IKHPCS.js → fetchMessages-VPPQDDZ4.js} +3 -3
- package/{getPricing-X6I23RN6.js → getPricing-XQYSSVV6.js} +6 -7
- package/{handleSendMessageAction-7OVC2SVU.js → handleSendMessageAction-IU2QNTLM.js} +30 -37
- package/index.js +72 -72
- package/localDialogRead-P72W2U2R.js +38 -0
- package/{machineCommands-6GNFKAVC.js → machineCommands-Z2QEWTHZ.js} +76 -81
- package/{machineWsRunDispatch-2DCHVG3U.js → machineWsRunDispatch-SJTYHZHN.js} +71 -76
- 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-A23NKT3O.js → read-QK7ZRX6G.js} +6 -6
- package/{readDocTool-JAM5BI5Q.js → readDocTool-EYDMVRBL.js} +2 -1
- package/{readlineWorkspace-KELDMUNZ.js → readlineWorkspace-EY3BPXIU.js} +151 -163
- package/{removeDialogAgentAction-K4HOWFHO.js → removeDialogAgentAction-TBW3UZJW.js} +15 -16
- package/{runAgentClientLoop-R3S7YN6Z.js → runAgentClientLoop-N3YDLTMS.js} +61 -66
- package/{setDialogExtraReferencesAction-JD7J7JM4.js → setDialogExtraReferencesAction-Q3ANF2NR.js} +12 -12
- package/{setPrimaryDialogAgentAction-YWSA5XEU.js → setPrimaryDialogAgentAction-FQ5R3EFJ.js} +15 -16
- package/{settingSlice-22GTX6CA.js → settingSlice-JKKV2T7O.js} +13 -14
- package/{skillDiscovery-ITA7BI7A.js → skillDiscovery-I3QRA7NE.js} +2 -2
- package/{spaceCommands-WM6W3WMQ.js → spaceCommands-R6AEQNLG.js} +57 -40
- package/{spaceSlice-RC2APBOD.js → spaceSlice-MCH7RLLP.js} +27 -34
- package/{streamAgentChatTurn-Q655CCVP.js → streamAgentChatTurn-Q4U2CVMI.js} +130 -1300
- package/{switchDialogAgentAction-6JKFBJVR.js → switchDialogAgentAction-QQGVE4SL.js} +11 -11
- package/{toolApiClient-ISM4ZQX4.js → toolApiClient-ARGFDJAG.js} +3 -3
- package/{tools-A6MUIA3Q.js → tools-Y3UBLLYW.js} +50 -56
- package/{tuiSummaryLlmCaller-GCUPULOV.js → tuiSummaryLlmCaller-4474IBTI.js} +12 -12
- package/{updateDialogTitleAction-DQYY564Y.js → updateDialogTitleAction-3J7GH67I.js} +35 -43
- package/chunk-3LJ4RSSF.js +0 -231
- package/chunk-5CS33IBL.js +0 -301
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-MRC4Q34M.js +0 -188
- package/chunk-P6TB7JIA.js +0 -1791
- package/chunk-PFTK5SEB.js +0 -620
- package/chunk-PMSG3OGF.js +0 -669
- package/chunk-SIZQB7BD.js +0 -91
- package/chunk-VIDPVFP3.js +0 -20
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YYLHWIW6.js +0 -48
- package/chunk-ZZ2MH7LE.js +0 -84
- package/localDialogRead-JXTAHW2E.js +0 -26
- 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/{chunk-XMLRJUU5.js → chunk-ZFTCLBEX.js} +9 -9
- package/{runtimeDoctorCommands-HSU632DY.js → runtimeDoctorCommands-E2OUORHK.js} +3 -3
- package/{tableCommands-QSZILI7I.js → tableCommands-PRJNWN6Q.js} +6 -6
package/chunk-SIZQB7BD.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dialogMessageKey
|
|
3
|
-
} from "./chunk-NRY4GCKJ.js";
|
|
4
|
-
import {
|
|
5
|
-
asOptionalFiniteNumber
|
|
6
|
-
} from "./chunk-WWC7I6TA.js";
|
|
7
|
-
import {
|
|
8
|
-
asOptionalTrimmedString
|
|
9
|
-
} from "./chunk-G3SUCT4W.js";
|
|
10
|
-
|
|
11
|
-
// packages/core/chat/dialogAttachmentCleanup.ts
|
|
12
|
-
var FILE_CONTENT_RE = /(?:https?:\/\/[^/"'\s]+)?\/api\/v1\/db\/file\/content\/([^?#"'\s)]+)/g;
|
|
13
|
-
function extractFileContentIds(value) {
|
|
14
|
-
const ids = /* @__PURE__ */ new Set();
|
|
15
|
-
const visit = (input) => {
|
|
16
|
-
if (typeof input === "string") {
|
|
17
|
-
for (const match of input.matchAll(FILE_CONTENT_RE)) {
|
|
18
|
-
const fileId = decodeURIComponent(match[1] ?? "").trim();
|
|
19
|
-
if (fileId) ids.add(fileId);
|
|
20
|
-
}
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (Array.isArray(input)) {
|
|
24
|
-
for (const item of input) visit(item);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (input && typeof input === "object") {
|
|
28
|
-
for (const item of Object.values(input)) visit(item);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
visit(value);
|
|
32
|
-
return [...ids];
|
|
33
|
-
}
|
|
34
|
-
function messageDbKey(dialogId, message) {
|
|
35
|
-
const dbKey = asOptionalTrimmedString(message.dbKey);
|
|
36
|
-
if (dbKey) return dbKey;
|
|
37
|
-
const id = asOptionalTrimmedString(message.id);
|
|
38
|
-
if (id) return dialogMessageKey(dialogId, id);
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
function asText(value) {
|
|
42
|
-
return asOptionalTrimmedString(value) ?? null;
|
|
43
|
-
}
|
|
44
|
-
function buildDialogAttachmentPlan(args) {
|
|
45
|
-
const messageKeys = new Set(
|
|
46
|
-
args.messages.map((message) => messageDbKey(args.dialogId, message)).filter((key) => Boolean(key))
|
|
47
|
-
);
|
|
48
|
-
const referencedFileIds = [
|
|
49
|
-
...new Set(args.messages.flatMap((message) => extractFileContentIds(message)))
|
|
50
|
-
];
|
|
51
|
-
const candidates = referencedFileIds.map((fileId) => {
|
|
52
|
-
const metadata = args.metadataByFileId[fileId];
|
|
53
|
-
const ownerType = asText(metadata?.ownerType);
|
|
54
|
-
const ownerId = asText(metadata?.ownerId);
|
|
55
|
-
const ownerDbKey = asText(metadata?.ownerDbKey);
|
|
56
|
-
const fileDbKey = asText(metadata?.dbKey);
|
|
57
|
-
const source = asText(metadata?.source);
|
|
58
|
-
const ownedByDialog = ownerType === "dialog" && ownerId === args.dialogId;
|
|
59
|
-
const ownedByMessage = Boolean(ownerDbKey && messageKeys.has(ownerDbKey));
|
|
60
|
-
const userOwnedReferenced = args.includeUserOwnedReferenced === true && Boolean(args.ownerId) && ownerType === "user" && ownerId === args.ownerId;
|
|
61
|
-
const canDelete = Boolean(fileDbKey && (ownedByDialog || ownedByMessage || userOwnedReferenced));
|
|
62
|
-
return {
|
|
63
|
-
fileId,
|
|
64
|
-
fileDbKey,
|
|
65
|
-
size: asOptionalFiniteNumber(metadata?.size) ?? null,
|
|
66
|
-
ownerType,
|
|
67
|
-
ownerId,
|
|
68
|
-
ownerDbKey,
|
|
69
|
-
source,
|
|
70
|
-
status: canDelete ? "delete" : "retain",
|
|
71
|
-
reason: canDelete ? ownedByMessage ? "ownerDbKey matches a message in this dialog" : userOwnedReferenced ? "user-owned file is referenced by this dialog and explicit referenced-attachment deletion is enabled" : "ownerType/ownerId matches this dialog" : fileDbKey ? "file ownership is not exclusive to this dialog" : "file metadata not found"
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
const deleteCandidates = candidates.filter((candidate) => candidate.status === "delete");
|
|
75
|
-
const retainedCandidates = candidates.filter((candidate) => candidate.status === "retain");
|
|
76
|
-
return {
|
|
77
|
-
dialogId: args.dialogId,
|
|
78
|
-
messageCount: args.messages.length,
|
|
79
|
-
referencedFileIds,
|
|
80
|
-
candidates,
|
|
81
|
-
deleteCandidates,
|
|
82
|
-
retainedCandidates,
|
|
83
|
-
bytesToDelete: deleteCandidates.reduce((sum, candidate) => sum + (candidate.size ?? 0), 0),
|
|
84
|
-
metadataReadFailures: args.metadataReadFailures ?? []
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export {
|
|
89
|
-
extractFileContentIds,
|
|
90
|
-
buildDialogAttachmentPlan
|
|
91
|
-
};
|
package/chunk-VIDPVFP3.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// packages/ai/agent/utils/publicImageAgentMode.ts
|
|
2
|
-
var getPublicImageAgentMode = (agent) => {
|
|
3
|
-
if (!agent) return null;
|
|
4
|
-
if (agent.imageWorkflow) return agent.imageWorkflow;
|
|
5
|
-
return null;
|
|
6
|
-
};
|
|
7
|
-
var getPublicImageAgentDefaultProfile = (mode) => {
|
|
8
|
-
if (mode === "generate") {
|
|
9
|
-
return { quality: "medium", size: "1024x1024", outputFormat: "png" };
|
|
10
|
-
}
|
|
11
|
-
if (mode === "edit") {
|
|
12
|
-
return { quality: "medium", size: "auto", outputFormat: "png" };
|
|
13
|
-
}
|
|
14
|
-
return { quality: "low", size: "auto", outputFormat: "png" };
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
getPublicImageAgentMode,
|
|
19
|
-
getPublicImageAgentDefaultProfile
|
|
20
|
-
};
|
package/chunk-Y5GCAMGP.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// packages/core/positiveFiniteNumberOrFallback.ts
|
|
2
|
-
function parsePositiveFiniteNumberOrFallback(value, fallback) {
|
|
3
|
-
const parsed = Number(value);
|
|
4
|
-
return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
parsePositiveFiniteNumberOrFallback
|
|
9
|
-
};
|
package/chunk-YYLHWIW6.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
asTrimmedLowercaseString
|
|
3
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
4
|
-
|
|
5
|
-
// packages/agent-runtime/serverProxyPolicy.ts
|
|
6
|
-
var OAUTH_APIKEY_REFS = /* @__PURE__ */ new Set([
|
|
7
|
-
"antigravity",
|
|
8
|
-
"xai",
|
|
9
|
-
"chatgpt",
|
|
10
|
-
"claude",
|
|
11
|
-
"cursor"
|
|
12
|
-
]);
|
|
13
|
-
function isGoogleFamilyProvider(provider) {
|
|
14
|
-
const normalized = asTrimmedLowercaseString(provider);
|
|
15
|
-
return normalized === "google" || normalized.startsWith("google-");
|
|
16
|
-
}
|
|
17
|
-
function isOAuthApiKeyRef(value) {
|
|
18
|
-
const ref = asTrimmedLowercaseString(value);
|
|
19
|
-
return ref.length > 0 && OAUTH_APIKEY_REFS.has(ref);
|
|
20
|
-
}
|
|
21
|
-
function shouldUseServerProxy(agentConfig, requestProvider) {
|
|
22
|
-
const effectiveProvider = (requestProvider || agentConfig.provider || "").toLowerCase();
|
|
23
|
-
if (isGoogleFamilyProvider(effectiveProvider)) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
if (isOAuthApiKeyRef(agentConfig.apiKeyRef)) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
if (agentConfig.apiSource === "custom" && isRemoteCustomEndpoint(agentConfig.customProviderUrl)) {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
return !!agentConfig.useServerProxy;
|
|
33
|
-
}
|
|
34
|
-
var LOCAL_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1", "0.0.0.0"]);
|
|
35
|
-
function isRemoteCustomEndpoint(url) {
|
|
36
|
-
if (typeof url !== "string") return false;
|
|
37
|
-
try {
|
|
38
|
-
const host = new URL(url).hostname.toLowerCase();
|
|
39
|
-
return !LOCAL_HOSTS.has(host);
|
|
40
|
-
} catch {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
isOAuthApiKeyRef,
|
|
47
|
-
shouldUseServerProxy
|
|
48
|
-
};
|
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,26 +0,0 @@
|
|
|
1
|
-
import "./chunk-4VNS5WPM.js";
|
|
2
|
-
|
|
3
|
-
// packages/agent-runtime/localDialogRead.ts
|
|
4
|
-
async function readDialogFromLocalDb(args) {
|
|
5
|
-
const [{ fetchMessages }] = await Promise.all([
|
|
6
|
-
import("./fetchMessages-W4IKHPCS.js")
|
|
7
|
-
]);
|
|
8
|
-
let serverDb;
|
|
9
|
-
if (args.db) {
|
|
10
|
-
serverDb = args.db;
|
|
11
|
-
} else {
|
|
12
|
-
const dbModule = await import("./db-W5UHK4P3.js");
|
|
13
|
-
serverDb = dbModule.default;
|
|
14
|
-
await dbModule.ensureServerDbOpen();
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
meta: await serverDb.get(args.dialogKey),
|
|
18
|
-
msgs: await fetchMessages(serverDb, args.dialogId, {
|
|
19
|
-
limit: args.limit,
|
|
20
|
-
throwOnError: true
|
|
21
|
-
})
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
readDialogFromLocalDb
|
|
26
|
-
};
|
|
@@ -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
|
};
|
|
@@ -3,15 +3,6 @@ import {
|
|
|
3
3
|
getIsDesktopApp,
|
|
4
4
|
isAbortError
|
|
5
5
|
} from "./chunk-R5V5G73M.js";
|
|
6
|
-
import {
|
|
7
|
-
asTrimmedString
|
|
8
|
-
} from "./chunk-3EUW3WEO.js";
|
|
9
|
-
import {
|
|
10
|
-
asOptionalPositiveFiniteNumber
|
|
11
|
-
} from "./chunk-U6VC4MU4.js";
|
|
12
|
-
import {
|
|
13
|
-
isRecord
|
|
14
|
-
} from "./chunk-KUG52IAP.js";
|
|
15
6
|
import {
|
|
16
7
|
API_ENDPOINTS,
|
|
17
8
|
SERVERS,
|
|
@@ -23,6 +14,15 @@ import {
|
|
|
23
14
|
import {
|
|
24
15
|
normalizeServerOrigin
|
|
25
16
|
} from "./chunk-CF7PE763.js";
|
|
17
|
+
import {
|
|
18
|
+
asTrimmedString
|
|
19
|
+
} from "./chunk-3EUW3WEO.js";
|
|
20
|
+
import {
|
|
21
|
+
asOptionalPositiveFiniteNumber
|
|
22
|
+
} from "./chunk-U6VC4MU4.js";
|
|
23
|
+
import {
|
|
24
|
+
isRecord
|
|
25
|
+
} from "./chunk-KUG52IAP.js";
|
|
26
26
|
import {
|
|
27
27
|
asOptionalTrimmedString
|
|
28
28
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -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";
|
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_NOLO_SERVER_URL
|
|
15
15
|
} from "./chunk-OLZBQWZU.js";
|
|
16
|
-
import {
|
|
17
|
-
asOptionalFiniteNumber
|
|
18
|
-
} from "./chunk-WWC7I6TA.js";
|
|
19
16
|
import {
|
|
20
17
|
asTrimmedLowercaseString
|
|
21
18
|
} from "./chunk-QSJ3HFEF.js";
|
|
22
19
|
import {
|
|
23
20
|
getAllServers
|
|
24
21
|
} from "./chunk-R5V5G73M.js";
|
|
25
|
-
import {
|
|
26
|
-
isRecord
|
|
27
|
-
} from "./chunk-KUG52IAP.js";
|
|
28
22
|
import {
|
|
29
23
|
NOLO_CLUSTER_SERVERS
|
|
30
24
|
} from "./chunk-LCBAMY2M.js";
|
|
31
25
|
import "./chunk-CF7PE763.js";
|
|
26
|
+
import {
|
|
27
|
+
asOptionalFiniteNumber
|
|
28
|
+
} from "./chunk-WWC7I6TA.js";
|
|
29
|
+
import {
|
|
30
|
+
isRecord
|
|
31
|
+
} from "./chunk-KUG52IAP.js";
|
|
32
32
|
import {
|
|
33
33
|
asOptionalTrimmedString
|
|
34
34
|
} from "./chunk-G3SUCT4W.js";
|