nolo-cli 0.53.0-alpha.1 → 0.54.0-alpha.2
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-36GKPAEZ.js → _executeModel-ANY4SIAS.js} +34 -35
- package/{action-IU6ON7ZB.js → action-Q4W5JPI5.js} +7 -7
- package/{addContentAction-5V5CCI3I.js → addContentAction-O25HFR37.js} +6 -6
- package/{addDialogAgentAction-KF3KZZNZ.js → addDialogAgentAction-GH7AUPPB.js} +5 -5
- package/{agentDeleteCommand-SBODEUPE.js → agentDeleteCommand-JWIKNWWI.js} +17 -17
- package/{agentEmailCommands-ME7BCY5S.js → agentEmailCommands-PL22BEU5.js} +39 -40
- package/{agentListCommands-QBWPKN5D.js → agentListCommands-6NR7AQEK.js} +19 -19
- package/{agentMachineCommands-KFFUPELZ.js → agentMachineCommands-TASPU6OA.js} +18 -18
- package/{agentRecordCommands-4BF6JIHS.js → agentRecordCommands-Z64TA63M.js} +38 -39
- package/{agentRunCommand-4MA7D6SV.js → agentRunCommand-4QJQLPRW.js} +39 -40
- package/{agentRuntimeLocal-RD52NPCG.js → agentRuntimeLocal-PCJJ56J2.js} +17 -17
- package/{agentSlice-AJABGQHU.js → agentSlice-KYLDUSNN.js} +6 -6
- package/{appDeleteCommands-I42NL3LP.js → appDeleteCommands-WLHMJAVT.js} +19 -19
- package/{appDeployCommands-CZWHXVPU.js → appDeployCommands-CKON7N2E.js} +19 -19
- package/{appDeployStatusCommands-PIQYXACM.js → appDeployStatusCommands-PXRLDASH.js} +19 -19
- package/{appGetCommands-CI2OWLT7.js → appGetCommands-RAB5RM4M.js} +19 -19
- package/{appListCommands-LWLSHPCP.js → appListCommands-GU57FB62.js} +19 -19
- package/{authCommand-WLWOEVYI.js → authCommand-QOPOEYEK.js} +7 -7
- package/{chatQueueReduxAdapter-V37RK3A6.js → chatQueueReduxAdapter-5O2WLITN.js} +16 -16
- package/chunk-2BWU4ORW.js +2574 -0
- package/{chunk-SG65C33A.js → chunk-32I5RVMY.js} +4 -4
- package/{chunk-X7S7OFUX.js → chunk-3QJTD6DO.js} +4 -4
- package/{chunk-CY5KIIPU.js → chunk-3Z3DXZBD.js} +12 -12
- package/{chunk-RO2IUWZE.js → chunk-4NN3EK7H.js} +1 -1
- package/{chunk-Y7TGWSUN.js → chunk-56W233KG.js} +1 -1
- package/{chunk-C2WF2OY7.js → chunk-5WADL4O7.js} +1 -1
- package/{chunk-QTH72J3N.js → chunk-6BGAQ3KR.js} +116 -23
- package/{chunk-67Q6IHM5.js → chunk-6FQ2552G.js} +142 -62
- package/{chunk-6XIE5ZGI.js → chunk-6HIGYUBQ.js} +1 -1
- package/{chunk-XPW6JLOB.js → chunk-6SZ52ORL.js} +8 -8
- package/{chunk-4ZL2KBI7.js → chunk-757BGY6Y.js} +1 -1
- package/{chunk-SQTVMYMU.js → chunk-7APQB6R6.js} +3 -3
- package/{chunk-QF27IZB3.js → chunk-7K5VMB4Q.js} +3 -3
- package/{chunk-V2IPBG5U.js → chunk-AA564GBL.js} +2 -2
- package/{chunk-76UA7376.js → chunk-AV6KQCM5.js} +6 -6
- package/{chunk-PGKZ2KGE.js → chunk-BJLYCOZK.js} +24 -24
- package/{chunk-VKSBVRGP.js → chunk-CVT7L2WZ.js} +1 -1
- package/{chunk-JVKFKKYN.js → chunk-D3JQPONH.js} +1 -1
- package/{chunk-KHCLMKZZ.js → chunk-EY7V7REW.js} +280 -6
- package/{chunk-4RXXP6WD.js → chunk-FGEYVPPR.js} +2 -2
- package/{chunk-AZ6DT2UD.js → chunk-GBADO3SM.js} +1 -1
- package/chunk-GLGD2JGY.js +1766 -0
- package/{chunk-POLE2QLO.js → chunk-GV35EHNA.js} +126 -59
- package/{chunk-HR5XDXYM.js → chunk-H4RYESI6.js} +3 -3
- package/{chunk-W3RZLXMA.js → chunk-IKTHA3JH.js} +2 -2
- package/{chunk-XB7ACJFH.js → chunk-INXBNYCG.js} +3 -3
- package/{chunk-F22JQTSX.js → chunk-KUUTWU4I.js} +3 -3
- package/{chunk-DFY6O64O.js → chunk-LA4IDAK7.js} +12 -12
- package/{chunk-IVKEJD7I.js → chunk-LN3OQJGG.js} +1 -1
- package/{chunk-YZ2WE6CW.js → chunk-MFI4FGHX.js} +2 -2
- package/{chunk-LGUQHYAL.js → chunk-O5FLGN2L.js} +3 -2
- package/{chunk-HCBQVVFZ.js → chunk-PAHILFNT.js} +1 -1
- package/{chunk-HHBXCRJS.js → chunk-PYKV6FSC.js} +1 -1
- package/{chunk-BO3YFOZR.js → chunk-QDHZCAH3.js} +1 -1
- package/{chunk-L3JWI7WX.js → chunk-QOKAKDPE.js} +15 -11
- package/{chunk-B54WOZ77.js → chunk-RTLJUGQH.js} +1 -1
- package/{chunk-Z7A54NFZ.js → chunk-RU5D3B22.js} +1 -1
- package/{chunk-JBL24PK6.js → chunk-SP3DPVBH.js} +2 -2
- package/{chunk-TZRB2I2M.js → chunk-TI5BCZCH.js} +18 -18
- package/{chunk-KOZ2G3ZG.js → chunk-U2A47SVI.js} +5 -5
- package/{chunk-3YVCM5PE.js → chunk-U5Z7LFZF.js} +1 -1
- package/{chunk-DIQCV4FR.js → chunk-UITMHBVK.js} +1 -1
- package/{chunk-H5QLIP6S.js → chunk-UW4INMD2.js} +2 -2
- package/{chunk-5SLTA66C.js → chunk-V4KZGLOI.js} +30 -30
- package/{chunk-AV4Z57LV.js → chunk-VRJUIUIY.js} +2 -2
- package/{chunk-5XCW6RQG.js → chunk-VRZIH5JO.js} +1 -1
- package/{chunk-2JYSSXLY.js → chunk-VULELK4T.js} +2 -2
- package/{chunk-VFN256RI.js → chunk-WL3UOGYO.js} +25 -0
- package/{chunk-PJASTA2U.js → chunk-Y7LNKP32.js} +3 -3
- package/{chunk-OZKJBDG4.js → chunk-YBV6QJKM.js} +14 -8
- package/{codingSkills-BYQI6EPT.js → codingSkills-BCQXRZOI.js} +3 -4
- package/{createAgentAutomationAction-5OZIWOK4.js → createAgentAutomationAction-UJLNFFFC.js} +17 -17
- package/{createDialogAction-334CHPJF.js → createDialogAction-TJCX6GUE.js} +20 -21
- package/{createPageAction-LXY22WTA.js → createPageAction-N3IYABHV.js} +18 -19
- package/{dbSlice-FWF5F4L7.js → dbSlice-D5CNGWPD.js} +5 -5
- package/{deleteFile-NPZ64DFN.js → deleteFile-44TUM34Y.js} +3 -3
- package/{dialogCommands-4MGUHAJI.js → dialogCommands-35M6RBAC.js} +18 -18
- package/{dialogSlice-76W7S3C4.js → dialogSlice-KO7ADD7H.js} +16 -16
- package/{docCreateCommands-346W5443.js → docCreateCommands-VXHZWQ3P.js} +20 -21
- package/{docDeleteCommands-FKEEPUUS.js → docDeleteCommands-4WFAJR6A.js} +20 -21
- package/{docReadCommands-AACI4DVO.js → docReadCommands-OYREEFAR.js} +20 -21
- package/{docStore-N7QTPHAX.js → docStore-5BU76DFK.js} +18 -18
- package/{docUpdateCommands-WHWVZ2XE.js → docUpdateCommands-A7QERSME.js} +20 -21
- package/{getPricing-JNOCWYDH.js → getPricing-HAU62AFM.js} +3 -3
- package/{handleSendMessageAction-EAXEX5AX.js → handleSendMessageAction-OSGQJQ45.js} +16 -16
- package/index.js +58 -58
- package/{machineCommands-XNWLQVTN.js → machineCommands-J43U3TX5.js} +38 -39
- package/{machineWsRunDispatch-56HWQ67L.js → machineWsRunDispatch-Z2Z6STXZ.js} +38 -39
- package/{models-N4NXQ44D.js → models-4QF4BJVY.js} +2 -2
- package/package.json +2 -3
- package/{read-J7RVVCHH.js → read-RGNPI5H2.js} +3 -3
- package/{readDocTool-G2WBM4IH.js → readDocTool-6ESWKTXD.js} +1 -1
- package/{readlineWorkspace-AXTB7DJC.js → readlineWorkspace-YRPV6JPN.js} +485 -222
- package/{removeDialogAgentAction-RMPISD42.js → removeDialogAgentAction-JYT73FU2.js} +7 -7
- package/{runAgentClientLoop-PU3R3UXA.js → runAgentClientLoop-5YM5WMAY.js} +32 -33
- package/{setDialogExtraReferencesAction-7BUTHDAL.js → setDialogExtraReferencesAction-D564LMYQ.js} +6 -6
- package/{setPrimaryDialogAgentAction-WCYIBGZ4.js → setPrimaryDialogAgentAction-ACY3BLYA.js} +7 -7
- package/{settingSlice-7NN2MI6Y.js → settingSlice-MKI3MNZJ.js} +6 -6
- package/{skillDiscovery-COX56OBO.js → skillDiscovery-GPUDHDTZ.js} +1 -2
- package/{spaceCommands-JYI3X4N2.js → spaceCommands-MY26V52L.js} +17 -17
- package/{spaceSlice-ERZ3RGWC.js → spaceSlice-JUIXC365.js} +17 -17
- package/{streamAgentChatTurn-2IH4MTQC.js → streamAgentChatTurn-XV5X5TNQ.js} +36 -37
- package/{switchDialogAgentAction-WGMMQHDI.js → switchDialogAgentAction-CJ5H6SAR.js} +5 -5
- package/{tableCommands-P2TXJ3CF.js → tableCommands-R6WFRDYF.js} +1 -1
- package/{tools-DJUTQEMP.js → tools-MIMELA2Y.js} +27 -28
- package/{tuiSummaryLlmCaller-U4EGD2SX.js → tuiSummaryLlmCaller-XJ5BKNNS.js} +12 -12
- package/{updateDialogTitleAction-OVOPGTC3.js → updateDialogTitleAction-EIZUSWHR.js} +17 -17
- package/chunk-AETZ7AD6.js +0 -274
- package/chunk-EUG45QJR.js +0 -6104
- package/chunk-OFZPJ3NT.js +0 -114
package/chunk-OFZPJ3NT.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
load
|
|
3
|
-
} from "./chunk-KHCLMKZZ.js";
|
|
4
|
-
import {
|
|
5
|
-
buildSkillDiscoveryLayer
|
|
6
|
-
} from "./chunk-3AOLVADY.js";
|
|
7
|
-
|
|
8
|
-
// packages/agent-runtime/skillDiscovery.ts
|
|
9
|
-
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
10
|
-
import { join } from "node:path";
|
|
11
|
-
var SKILL_SCAN_DIRS = [".agents/skills"];
|
|
12
|
-
var MAX_DISCOVERED_SKILLS = 50;
|
|
13
|
-
var MAX_DISCOVERY_DESC_BUDGET = 4e3;
|
|
14
|
-
var MIN_DESC_LENGTH = 80;
|
|
15
|
-
function parseSkillFrontmatter(filePath) {
|
|
16
|
-
try {
|
|
17
|
-
const content = readFileSync(filePath, "utf8").slice(0, 2048);
|
|
18
|
-
const fmMatch = content.match(/^---\n([\s\S]*?)\n---/);
|
|
19
|
-
if (!fmMatch) return {};
|
|
20
|
-
const fm = (() => {
|
|
21
|
-
try {
|
|
22
|
-
return load(fmMatch[1]);
|
|
23
|
-
} catch (err) {
|
|
24
|
-
console.warn(
|
|
25
|
-
`[skillDiscovery] failed to parse frontmatter: ${filePath}: ${err.message}`
|
|
26
|
-
);
|
|
27
|
-
throw err;
|
|
28
|
-
}
|
|
29
|
-
})();
|
|
30
|
-
if (!fm || typeof fm !== "object") return {};
|
|
31
|
-
const name = typeof fm.name === "string" ? fm.name : void 0;
|
|
32
|
-
const rawDesc = fm.description;
|
|
33
|
-
const description = typeof rawDesc === "string" ? rawDesc : rawDesc == null ? void 0 : String(rawDesc);
|
|
34
|
-
const sanitizeName = (s) => s?.trim().replace(/^["']|["']$/g, "").replace(/[\n\r]+/g, " ").slice(0, 200);
|
|
35
|
-
const sanitizeDesc = (s) => s?.trim().replace(/^["']|["']$/g, "").replace(/[\n\r]+/g, " ").slice(0, 200);
|
|
36
|
-
return { name: sanitizeName(name), description: sanitizeDesc(description) };
|
|
37
|
-
} catch {
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function discoverSkills(cwd) {
|
|
42
|
-
const skills = [];
|
|
43
|
-
for (const dir of SKILL_SCAN_DIRS) {
|
|
44
|
-
if (skills.length >= MAX_DISCOVERED_SKILLS) break;
|
|
45
|
-
const absDir = join(cwd, dir);
|
|
46
|
-
if (!existsSync(absDir) || !statSync(absDir).isDirectory()) continue;
|
|
47
|
-
try {
|
|
48
|
-
for (const entry of readdirSync(absDir)) {
|
|
49
|
-
if (skills.length >= MAX_DISCOVERED_SKILLS) break;
|
|
50
|
-
const skillMdPath = join(absDir, entry, "SKILL.md");
|
|
51
|
-
if (existsSync(skillMdPath)) {
|
|
52
|
-
const { name, description } = parseSkillFrontmatter(skillMdPath);
|
|
53
|
-
skills.push({ name: name ?? entry, description: description ?? "", relativePath: join(dir, entry, "SKILL.md") });
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
} catch {
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
const totalDescLen = skills.reduce((sum, s) => sum + s.description.length, 0);
|
|
61
|
-
if (totalDescLen > MAX_DISCOVERY_DESC_BUDGET && skills.length > 0) {
|
|
62
|
-
const scale = MAX_DISCOVERY_DESC_BUDGET / totalDescLen;
|
|
63
|
-
for (const s of skills) {
|
|
64
|
-
const targetLen = Math.max(MIN_DESC_LENGTH, Math.floor(s.description.length * scale));
|
|
65
|
-
if (s.description.length > targetLen) {
|
|
66
|
-
s.description = s.description.slice(0, targetLen).trimEnd();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return skills;
|
|
71
|
-
}
|
|
72
|
-
function resolveSkillByName(cwd, name) {
|
|
73
|
-
const trimmed = name.trim();
|
|
74
|
-
if (!trimmed || trimmed.includes("/") || trimmed.includes("\\") || trimmed.includes("..")) {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
const agentsDir = join(cwd, ".agents", "skills", trimmed);
|
|
78
|
-
const agentsSkillMd = join(agentsDir, "SKILL.md");
|
|
79
|
-
if (existsSync(agentsSkillMd)) return agentsSkillMd;
|
|
80
|
-
const agentsParent = join(cwd, ".agents", "skills");
|
|
81
|
-
if (existsSync(agentsParent) && statSync(agentsParent).isDirectory()) {
|
|
82
|
-
try {
|
|
83
|
-
for (const entry of readdirSync(agentsParent)) {
|
|
84
|
-
const candidate = join(agentsParent, entry, "SKILL.md");
|
|
85
|
-
if (!existsSync(candidate)) continue;
|
|
86
|
-
try {
|
|
87
|
-
const { name: fmName } = parseSkillFrontmatter(candidate);
|
|
88
|
-
if (fmName && fmName === trimmed) return candidate;
|
|
89
|
-
} catch {
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
} catch {
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
function buildSkillDiscoveryContextLayer(cwd) {
|
|
98
|
-
try {
|
|
99
|
-
return buildSkillDiscoveryLayer(discoverSkills(cwd), cwd);
|
|
100
|
-
} catch {
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function buildSkillDiscoveryContextBlock(cwd) {
|
|
105
|
-
return buildSkillDiscoveryContextLayer(cwd)?.content ?? null;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
parseSkillFrontmatter,
|
|
110
|
-
discoverSkills,
|
|
111
|
-
resolveSkillByName,
|
|
112
|
-
buildSkillDiscoveryContextLayer,
|
|
113
|
-
buildSkillDiscoveryContextBlock
|
|
114
|
-
};
|