odant-work 1.0.92 → 1.0.94
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/#system/package-manifest.json +890 -930
- package/{MODELS/$ai → $server}/$folder/$class/$ai/class.js +12 -11
- package/{MODELS/$ai → $server}/$folder/$class/$ai/handlers/pages/form/system/ai/$handler/class.js +9 -5
- package/$server/$folder/$class/$data/$catalog/$virtual/class.js +1 -0
- package/$server/$folder/$class/$data/$catalog/class.js +1 -0
- package/$server/$folder/$class/$data/$operation/class.js +1 -0
- package/$server/$folder/$class/$data/$register/$account/class.js +1 -0
- package/$server/$folder/$class/$data/$register/class.js +1 -0
- package/$server/$folder/$class/$data/$struct/class.js +1 -0
- package/$server/$folder/$class/$domain/class.js +1 -0
- package/$server/$folder/$class/$domain/handlers/methods/restore/$handler/class.js +5 -5
- package/$server/$folder/$class/$domain/readme.md +1 -1
- package/$server/$folder/$class/$module/$mcp/class.js +343 -0
- package/$server/$folder/$class/$module/$mcp/handlers/pages/form/system/mcp/$handler/class.js +158 -0
- package/{MODELS/$ai/$folder/$class → $server/$folder/$class/$module}/$provider/class.js +2 -1
- package/{MODELS/$ai/$folder/$class → $server/$folder/$class/$module}/$provider/handlers/pages/form/system/ai/$handler/class.js +41 -8
- package/$server/$folder/$class/$module/$provider/readme.md +16 -0
- package/$server/$folder/$class/$module/class.js +8 -399
- package/$server/$folder/$class/$structure/$project/class.js +12 -8
- package/$server/$folder/$class/$structure/{$organization → $project}/handlers/pages/site/$handler/class.js +3 -3
- package/$server/$folder/$class/$structure/$project/readme.md +3 -11
- package/$server/$folder/$class/$structure/$server/class.js +1 -0
- package/$server/$folder/$class/$structure/$server/handlers/methods/distro/$handler/class.js +1 -1
- package/$server/$folder/$class/$structure/$server/handlers/pages/site/$handler/class.js +1 -1
- package/$server/$folder/$class/$structure/$user/class.js +2 -0
- package/$server/$folder/$class/$structure/ai/system.md +1 -1
- package/$server/$folder/$class/$structure/class.js +40 -1
- package/$server/$folder/$class/$structure/handlers/methods/archive/$handler/class.js +3 -3
- package/$server/$folder/$class/$structure/handlers/pages/form/chat/$handler/chat-task.js +20 -6
- package/$server/$folder/$class/$structure/handlers/pages/form/chat/$handler/class.js +23 -17
- package/$server/$folder/$class/$structure/handlers/pages/form/system/agent/$handler/class.js +35 -3
- package/$server/$folder/$class/$structure/handlers/pages/form/system/messengers/$handler/class.js +39 -4
- package/$server/$folder/$class/$structure/handlers/pages/form/system/skills/$handler/class.js +256 -0
- package/$server/$folder/$class/$structure/handlers/pages/form/system/staff/$handler/class.js +8 -8
- package/$server/$folder/$class/$structure/handlers/pages/site/$handler/class.js +3 -3
- package/$server/$folder/$class/$structure/handlers/pages/site/$handler/readme.md +1 -1
- package/$server/$folder/$class/$structure/readme.md +4 -4
- package/$server/$folder/$class/$users/class.js +1 -0
- package/$server/$folder/$class/ai/agents/builder.md +2 -2
- package/$server/$folder/$class/ai/agents/org-architect.md +5 -5
- package/$server/$folder/$class/ai/agents/readme.md +2 -2
- package/$server/$folder/$class/ai/agents/schema-validator.md +2 -2
- package/$server/$folder/$class/ai/config.js +3 -3
- package/$server/$folder/$class/ai/readme.md +1 -1
- package/$server/$folder/$class/ai/skills/accounting-design.md +1 -1
- package/$server/$folder/$class/ai/skills/data-modeling.md +1 -1
- package/$server/$folder/$class/ai/skills/import-table.md +1 -1
- package/$server/$folder/$class/ai/skills/org-structure.md +1 -1
- package/$server/$folder/$class/ai/skills/work-scenarios.md +9 -9
- package/$server/$folder/$class/ai/system.md +36 -36
- package/$server/$folder/$class/handlers/pages/form/system/requisites/$handler/class.js +95 -24
- package/$server/$folder/$class/handlers/pages/storage/$handler/class.js +22 -4
- package/$server/$folder/$file/$task/class.js +2 -2
- package/$server/$folder/$file/$task/handlers/pages/form/file/$handler/class.js +4 -3
- package/$server/$folder/$file/$task/handlers/pages/form/file/$handler/readme.md +2 -2
- package/$server/$folder/$file/$task/readme.md +1 -1
- package/$server/$folder/handlers/methods/create/$handler/class.js +35 -38
- package/$server/$folder/handlers/pages/form/$handler/class.js +81 -7
- package/$server/$folder/handlers/readme.md +1 -1
- package/$server/$folder/lib/chat-item/chat-item.js +2 -2
- package/$server/$folder/lib/class-picker/class-picker.js +8 -5
- package/$server/$folder/lib/consultant/consultant.js +5 -5
- package/$server/$folder/lib/explorer/explorer.js +2 -1
- package/$server/$folder/lib/icon/icon.js +2 -2
- package/$server/$folder/lib/item-data-grid/readme.md +1 -1
- package/$server/$folder/lib/item-form/readme.md +1 -1
- package/$server/$folder/lib/local-models-transfer/local-models-transfer.js +11 -11
- package/$server/$folder/lib/messenger-settings/messenger-settings.js +2 -2
- package/$server/$folder/lib/node/node.js +65 -36
- package/$server/$folder/lib/prompt-bar/prompt-bar.js +6 -4
- package/$server/$folder/lib/site-loc/site-loc.js +3 -3
- package/$server/$folder/lib/tree/tree.js +74 -30
- package/AGENTS.md +5 -5
- package/MODULES/$domain/$folder/$class/$module/class.js +5 -6
- package/MODULES/$domain/class.js +8 -31
- package/MODULES/$domain/handlers/pages/form/system/mcp/$handler/class.js +385 -3
- package/MODULES/$domain/readme.md +2 -2
- package/MODULES/MCP/.gitkeep +0 -0
- package/MODULES/{DaData → /320/224/320/260/320/275/320/275/321/213/320/265/DaData}/$module/class.js +2 -2
- package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}/$module/class.js +1 -0
- package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}/$module/readme.md +1 -1
- package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}//320/223/320/265/320/276/321/202/320/276/321/207/320/272/320/270/$catalog/class.js +1 -1
- package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}//320/232/320/260/321/200/321/202/320/260/$catalog/class.js +2 -2
- package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}//320/232/320/260/321/200/321/202/320/260/$catalog/handlers/pages/form/map/$handler/class.js +1 -1
- package/MODULES/{KLADR → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR}//320/235/320/260/321/201/320/265/320/273/321/221/320/275/320/275/321/213/320/265 /320/277/321/203/320/275/320/272/321/202/321/213/$catalog/class.js" +1 -1
- package/MODULES/{KLADR → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR}//320/243/320/273/320/270/321/206/321/213/$catalog/class.js +1 -1
- package/MODULES/{1C → /320/232/320/276/320/275/320/275/320/265/320/272/321/202/320/276/321/200/321/213/1C}/$module/class.js +1 -1
- package/MODULES/{Bitrix24 → /320/232/320/276/320/275/320/275/320/265/320/272/321/202/320/276/321/200/321/213/Bitrix24}/$module/class.js +1 -1
- package/MODULES/{YandexDisk → /320/232/320/276/320/275/320/275/320/265/320/272/321/202/320/276/321/200/321/213/YandexDisk}/$module/class.js +1 -1
- package/MODULES/{Marketplaces/Ozon/$module → /320/234/320/260/321/200/320/272/320/265/321/202/320/277/320/273/320/265/320/271/321/201/321/213/Ozon/$mcp}/class.js +1 -1
- package/MODULES/{Marketplaces/Wildberries/$module → /320/234/320/260/321/200/320/272/320/265/321/202/320/277/320/273/320/265/320/271/321/201/321/213/Wildberries/$mcp}/class.js +1 -1
- package/MODULES/{Marketplaces/YandexMarket/$module → /320/234/320/260/321/200/320/272/320/265/321/202/320/277/320/273/320/265/320/271/321/201/321/213/YandexMarket/$mcp}/class.js +1 -1
- package/{MODELS → MODULES//320/234/320/276/320/264/320/265/320/273/320/270}/GigaChat/$provider/readme.md +2 -2
- package/{MODELS → MODULES//320/234/320/276/320/264/320/265/320/273/320/270}/Local/$provider/$folder/$class/$ai/class.js +1 -1
- package/{MODELS → MODULES//320/234/320/276/320/264/320/265/320/273/320/270}/Local/$provider/class.js +1 -1
- package/MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Local/$provider/handlers/pages/form/system/ai/$handler/class.js +3 -0
- package/MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Local/$provider/handlers/pages/form/system/engine/$handler/class.js +445 -0
- package/{MODELS/Local/$provider/handlers/pages/form/system/ai → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Local/$provider/handlers/pages/form/system/models}/$handler/class.js +10 -164
- package/MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Local/$provider/handlers/pages/form/system/training/$handler/class.js +244 -0
- package/MODULES/{Process/$module/readme.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process/$module/readme.md" } +1 -1
- package/MODULES/{Process → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process}//320/227/320/260/320/264/320/260/321/207/320/270 /320/270 /321/215/321/202/320/260/320/277/321/213/$catalog/class.js" +3 -3
- package/MODULES/{Process → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process}//320/227/320/260/320/264/320/260/321/207/320/270 /320/270 /321/215/321/202/320/260/320/277/321/213/$catalog/handlers/pages/form/gantt/$handler/class.js" +2 -2
- package/MODULES/{Process → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process}//320/227/320/260/320/264/320/260/321/207/320/270 /320/270 /321/215/321/202/320/260/320/277/321/213/$catalog/handlers/pages/form/scheduler/$handler/class.js" +3 -3
- package/MODULES/{Process → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process}//320/241/321/205/320/265/320/274/321/213 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/320/276/320/262/$catalog/handlers/pages/form/bpmn/$handler/class.js" +1 -1
- package/MODULES/{Register/$module/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/$module/class.js" } +1 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/handlers/pages/form/objects/$handler/class.js" +3 -0
- package/MODULES/{Register/CATALOGS/$catalog/readme.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/readme.md" } +1 -1
- package/MODULES/{Register/CATALOGS//320/224/320/276/320/263/320/276/320/262/320/276/321/200/321/213/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/224/320/276/320/263/320/276/320/262/320/276/321/200/321/213/$catalog/class.js" } +1 -1
- package/MODULES/{Register/CATALOGS//320/232/320/273/320/270/320/265/320/275/321/202/321/213/$virtual/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/232/320/273/320/270/320/265/320/275/321/202/321/213/$virtual/class.js" } +2 -2
- package/MODULES/{Register/CATALOGS//320/235/320/276/320/274/320/265/320/275/320/272/320/273/320/260/321/202/321/203/321/200/320/260/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/235/320/276/320/274/320/265/320/275/320/272/320/273/320/260/321/202/321/203/321/200/320/260/$catalog/class.js" } +1 -1
- package/MODULES/{Register/CATALOGS//320/237/320/260/321/200/321/202/320/270/320/270/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/237/320/260/321/200/321/202/320/270/320/270/$catalog/class.js" } +2 -2
- package/MODULES/{Register/CATALOGS//320/237/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/320/270/$virtual/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/237/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/320/270/$virtual/class.js" } +1 -1
- package/MODULES/{Register/CATALOGS//320/241/320/272/320/273/320/260/320/264/321/213/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/241/320/272/320/273/320/260/320/264/321/213/$catalog/class.js" } +2 -2
- package/MODULES/{Register/CATALOGS//320/241/320/276/321/202/321/200/321/203/320/264/320/275/320/270/320/272/320/270/$virtual/$folder/$class/$data/$catalog/$virtual/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/241/320/276/321/202/321/200/321/203/320/264/320/275/320/270/320/272/320/270/$virtual/$folder/$class/$data/$catalog/$virtual/class.js" } +2 -2
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/241/320/276/321/202/321/200/321/203/320/264/320/275/320/270/320/272/320/270//320/222 /320/276/321/202/320/277/321/203/321/201/320/272/320/265/$virtual/class.js" +1 -1
- package/MODULES/{Register/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213/$catalog/$folder/$class/$data/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213/$catalog/$folder/$class/$data/$catalog/class.js" } +2 -2
- package/MODULES/{Register/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213//320/230/320/237/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213//320/230/320/237/$catalog/class.js" } +2 -2
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213//320/244/320/270/320/267. /320/273/320/270/321/206/320/260/$catalog/class.js" +2 -2
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213//320/256/321/200. /320/273/320/270/321/206/320/260/$catalog/class.js" +2 -2
- package/MODULES/{Register/CATALOGS//320/242/321/200/320/260/320/275/321/201/320/277/320/276/321/200/321/202/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS//320/242/321/200/320/260/320/275/321/201/320/277/320/276/321/200/321/202/$catalog/class.js" } +2 -2
- package/MODULES/{Register/OPERATIONS/$operation/readme.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS/$operation/readme.md" } +1 -1
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/224/320/276/321/201/321/202/320/260/320/262/320/272/320/260/$operation/class.js" +22 -0
- package/MODULES/{Register/OPERATIONS//320/227/320/260/321/200/320/277/320/273/320/260/321/202/320/260/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/227/320/260/321/200/320/277/320/273/320/260/321/202/320/260/$operation/class.js" } +7 -7
- package/MODULES/{Register/OPERATIONS//320/230/320/275/320/262/320/265/320/275/321/202/320/260/321/200/320/270/320/267/320/260/321/206/320/270/321/217/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/230/320/275/320/262/320/265/320/275/321/202/320/260/321/200/320/270/320/267/320/260/321/206/320/270/321/217/$operation/class.js" } +9 -9
- package/MODULES/{Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213/$operation/$folder/$class/$data/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213/$operation/$folder/$class/$data/$operation/class.js" } +1 -1
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/222/320/265/321/200/320/275/321/203/321/202/321/214 /320/270/320/267 /320/276/321/202/320/277/321/203/321/201/320/272/320/260/$operation/class.js" +14 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/236/321/202/320/277/321/200/320/260/320/262/320/270/321/202/321/214 /320/262 /320/276/321/202/320/277/321/203/321/201/320/272/$operation/class.js" +15 -0
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/237/321/200/320/270/321/221/320/274 /320/275/320/260 /321/200/320/260/320/261/320/276/321/202/321/203/$operation/class.js" +3 -3
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/243/320/262/320/276/320/273/321/214/320/275/320/265/320/275/320/270/320/265/$operation/class.js" +14 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/321/201/321/201/320/260//320/220/320/262/320/260/320/275/321/201/320/276/320/262/321/213/320/271 /320/276/321/202/321/207/321/221/321/202/$operation/class.js" +17 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/321/201/321/201/320/260//320/237/320/232/320/236/$operation/class.js" +18 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/260/321/201/321/201/320/260//320/240/320/232/320/236/$operation/class.js" +17 -0
- package/MODULES/{Register/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270/$operation/$folder/$class/$data/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270/$operation/$folder/$class/$data/$operation/class.js" } +1 -1
- package/MODULES/{Register/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270//320/227/320/262/320/276/320/275/320/276/320/272/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270//320/227/320/262/320/276/320/275/320/276/320/272/$operation/class.js" } +2 -2
- package/MODULES/{Register/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270//320/237/320/270/321/201/321/214/320/274/320/276/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270//320/237/320/270/321/201/321/214/320/274/320/276/$operation/class.js" } +2 -2
- package/MODULES/{Register/OPERATIONS//320/232/320/276/320/274/320/277/320/273/320/265/320/272/321/202/320/260/321/206/320/270/321/217/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/232/320/276/320/274/320/277/320/273/320/265/320/272/321/202/320/260/321/206/320/270/321/217/$operation/class.js" } +14 -14
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/236/321/201/320/275/320/276/320/262/320/275/321/213/320/265 /321/201/321/200/320/265/320/264/321/201/321/202/320/262/320/260//320/235/320/260/321/207/320/270/321/201/320/273/320/265/320/275/320/270/320/265 /320/260/320/274/320/276/321/200/321/202/320/270/320/267/320/260/321/206/320/270/320/270/$operation/class.js" +3 -3
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/236/321/201/320/275/320/276/320/262/320/275/321/213/320/265 /321/201/321/200/320/265/320/264/321/201/321/202/320/262/320/260//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/320/265 /320/236/320/241/$operation/class.js" +30 -0
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/236/321/201/320/275/320/276/320/262/320/275/321/213/320/265 /321/201/321/200/320/265/320/264/321/201/321/202/320/262/320/260//320/237/321/200/320/270/320/275/321/217/321/202/320/270/320/265 /320/272 /321/203/321/207/321/221/321/202/321/203 /320/236/320/241/$operation/class.js" +3 -3
- package/MODULES/{Register/OPERATIONS//320/237/320/265/321/200/320/265/320/274/320/265/321/211/320/265/320/275/320/270/320/265/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/237/320/265/321/200/320/265/320/274/320/265/321/211/320/265/320/275/320/270/320/265/$operation/class.js" } +7 -7
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260/$operation/$folder/$class/$data/$operation/class.js" +1 -1
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/227/320/260/321/200/320/277/320/273/320/260/321/202/320/260/$operation/class.js" +8 -0
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/235/320/224/320/241/$operation/class.js" +1 -1
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/235/320/224/320/244/320/233/$operation/class.js" +1 -1
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/237/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/321/203/$operation/class.js" +11 -0
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/241/321/202/321/200/320/260/321/205/320/276/320/262/321/213/320/265 /320/262/320/267/320/275/320/276/321/201/321/213/$operation/class.js" +1 -1
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/320/265 /321/202/320/276/320/262/320/260/321/200/320/260/$operation/class.js" +9 -9
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/321/217 /320/275/320/260 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/321/213/320/271 /321/201/321/207/321/221/321/202/$operation/$folder/$class/$data/$operation/class.js" +1 -1
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/321/217 /320/275/320/260 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/321/213/320/271 /321/201/321/207/321/221/321/202//320/222/320/276/320/267/320/262/321/200/320/260/321/202 /320/276/321/202 /320/277/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/320/260/$operation/class.js" +11 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/321/217 /320/275/320/260 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/321/213/320/271 /321/201/321/207/321/221/321/202//320/236/321/202 /320/277/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/217/$operation/class.js" +11 -0
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/321/200/320/276/320/270/320/267/320/262/320/276/320/264/321/201/321/202/320/262/320/276//320/222/321/213/320/277/321/203/321/201/320/272 /320/263/320/276/321/202/320/276/320/262/320/276/320/271 /320/277/321/200/320/276/320/264/321/203/320/272/321/206/320/270/320/270/$operation/class.js" +4 -4
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/321/200/320/276/320/270/320/267/320/262/320/276/320/264/321/201/321/202/320/262/320/276//320/237/320/265/321/200/320/265/320/264/320/260/321/207/320/260 /320/274/320/260/321/202/320/265/321/200/320/270/320/260/320/273/320/276/320/262 /320/262 /320/277/321/200/320/276/320/270/320/267/320/262/320/276/320/264/321/201/321/202/320/262/320/276/$operation/class.js" +4 -4
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/321/200/320/276/320/270/320/267/320/262/320/276/320/264/321/201/321/202/320/262/320/276//320/241/320/277/320/270/321/201/320/260/320/275/320/270/320/265 /320/276/320/261/321/211/320/265/321/205/320/276/320/267/321/217/320/271/321/201/321/202/320/262/320/265/320/275/320/275/321/213/321/205 /320/267/320/260/321/202/321/200/320/260/321/202/$operation/class.js" +6 -6
- package/MODULES/{Register/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217/$operation/$folder/$class/$data/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217/$operation/$folder/$class/$data/$operation/class.js" } +5 -5
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217//320/222/320/276/320/267/320/262/321/200/320/260/321/202 /320/276/321/202 /320/277/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/217/$operation/class.js" +32 -0
- package/MODULES//320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217//320/237/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/216/$operation/class.js" +32 -0
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/241/320/277/320/270/321/201/320/260/320/275/320/270/320/265 /320/242/320/234/320/246/$operation/class.js" +6 -6
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/243/321/201/321/202/320/260/320/275/320/276/320/262/320/272/320/260 /320/275/320/276/321/200/320/274/320/260/321/202/320/270/320/262/320/260/$operation/class.js" +4 -4
- package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/244/320/270/320/275/320/260/320/275/321/201/320/276/320/262/321/213/320/271 /321/200/320/265/320/267/321/203/320/273/321/214/321/202/320/260/321/202//320/227/320/260/320/272/321/200/321/213/321/202/320/270/320/265 /320/274/320/265/321/201/321/217/321/206/320/260/$operation/class.js" +2 -2
- package/MODULES/{Register/REGISTER/$register/$folder/$class/$data/$register/$account/readme.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/$folder/$class/$data/$register/$account/readme.md" } +1 -1
- package/MODULES/{Register/REGISTER/$register/ai/skills/register-accounts.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/ai/skills/register-accounts.md" } +1 -1
- package/MODULES/{Register/REGISTER/$register/readme.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/readme.md" } +1 -1
- package/MODULES/{Register/REGISTER/01/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/01/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/02/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/02/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/04/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/04/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/08/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/08/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/10/$account/$folder/$class/$data/$register/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/10/$account/$folder/$class/$data/$register/$account/class.js" } +2 -2
- package/MODULES/{Register/REGISTER/10/01/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/10/01/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/10/05/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/10/05/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/41/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/41/$account/class.js" } +3 -3
- package/MODULES/{Register/REGISTER/43/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/43/$account/class.js" } +2 -2
- package/MODULES/{Register/REGISTER/44/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/44/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/60/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/60/$account/class.js" } +2 -2
- package/MODULES/{Register/REGISTER/62/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/62/$account/class.js" } +2 -2
- package/MODULES/{Register/REGISTER/70/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/70/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/71/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/71/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/73/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/73/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/76/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/76/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/90/01/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/90/01/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/90/02/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/90/02/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/90/03/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/90/03/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/91/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/91/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER/94/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/94/$account/class.js" } +2 -2
- package/MODULES/{Register/REGISTER//320/232/320/260/320/264/321/200/321/213/$account/$folder/$class/$data/$register/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER//320/232/320/260/320/264/321/200/321/213/$account/$folder/$class/$data/$register/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270/$account/class.js" } +1 -1
- package/MODULES/{Register/REGISTER//320/235/320/276/321/200/320/274/320/260/321/202/320/270/320/262/321/213/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER//320/235/320/276/321/200/320/274/320/260/321/202/320/270/320/262/321/213/$account/class.js" } +2 -2
- package/MODULES/{Register/STRUCTS//320/237/320/260/321/201/320/277/320/276/321/200/321/202/$struct/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/STRUCTS//320/237/320/260/321/201/320/277/320/276/321/200/321/202/$struct/class.js" } +2 -2
- package/PROJECTS/$domain/$folder/$class/$structure/$project/class.js +1 -2
- package/PROJECTS/$domain/readme.md +1 -1
- package/package.json +1 -1
- package/run.mjs +11 -0
- package/scripts/agent-eval.mjs +2 -2
- package/scripts/check-architecture.mjs +25 -16
- package/scripts/check-ignored-code.mjs +4 -4
- package/scripts/demo-seed.mjs +7 -7
- package/scripts/import-bis.mjs +133 -133
- package/scripts/import-delovaya.mjs +94 -94
- package/scripts/migrate-tree.mjs +25 -0
- package/sources/client/class.js +1 -1
- package/sources/data/api.js +5 -5
- package/sources/data/classes.js +3 -3
- package/sources/data/db.js +5 -6
- package/sources/data/print.js +2 -2
- package/sources/data/schema.js +5 -5
- package/sources/data/sql-inspector.js +8 -8
- package/sources/host/auto-updater.js +37 -31
- package/sources/host/tree-migration.js +580 -0
- package/sources/host/tree-migration.json +85 -0
- package/sources/host/watch.js +1 -1
- package/sources/modules/agent/extensions.js +57 -30
- package/sources/modules/agent/index.js +31 -18
- package/sources/modules/agent/node-rules.js +100 -51
- package/sources/modules/agent/permissions.js +1 -1
- package/sources/modules/agent/plugins.js +4 -3
- package/sources/modules/agent/scope.js +3 -3
- package/sources/modules/agent/session.js +22 -2
- package/sources/modules/agent/tools/meta.js +2 -2
- package/sources/modules/agent/tools/services.js +8 -2
- package/sources/modules/agent/tools/work/access.js +5 -5
- package/sources/modules/agent/tools/work/classes.js +24 -8
- package/sources/modules/agent/tools/work/common.js +6 -6
- package/sources/modules/agent/tools/work/data.js +2 -2
- package/sources/modules/agent/triggers.js +2 -2
- package/sources/modules/agent/twin-bus.js +5 -5
- package/sources/modules/agent/voice.js +14 -10
- package/sources/modules/kladr/index.js +4 -5
- package/sources/modules/license/index.js +5 -5
- package/sources/modules/notify/index.js +12 -12
- package/sources/modules/rag/embedder.js +3 -3
- package/sources/modules/rag/indexer.js +1 -1
- package/sources/modules/rag/scope.js +3 -3
- package/sources/modules/rag/search.js +1 -1
- package/sources/modules/trainer/dataset.js +11 -9
- package/sources/modules/trainer/halogen.js +46 -46
- package/sources/modules/trainer/huggingface.js +14 -14
- package/sources/modules/trainer/index.js +66 -41
- package/sources/modules/trainer/local-engine.js +26 -20
- package/sources/modules/trainer/paths.js +9 -2
- package/sources/modules/trainer/providers.js +126 -78
- package/sources/modules/trainer/runner.js +42 -19
- package/sources/modules/trainer/transfer.js +8 -8
- package/sources/server/access/gateway.js +1 -1
- package/sources/server/access/links.js +4 -4
- package/sources/server/access/workplaces.js +7 -7
- package/sources/server/chat-threads.js +10 -7
- package/sources/server/class/archive.js +7 -7
- package/sources/server/class/base-template.js +34 -29
- package/sources/server/class/distro.js +42 -34
- package/sources/server/class/module-status.js +380 -0
- package/sources/server/class/scaffold.js +2 -2
- package/sources/server/class/search.js +1 -1
- package/sources/server/class/security.js +24 -14
- package/sources/server/class.js +144 -123
- package/sources/server/folder.js +83 -12
- package/sources/server/logs.js +5 -6
- package/sources/server/node.js +1 -1
- package/sources/server/server.js +2 -0
- package/sources/server/user.js +85 -18
- package/$server/$folder/$class/$data/$catalog/$folder/$class/$data/$catalog/$virtual/class.js +0 -4
- package/$server/$folder/$class/$data/$catalog/$folder/$class/$data/$catalog/class.js +0 -4
- package/$server/$folder/$class/$data/$catalog/$virtual/$folder/$class/$data/$catalog/$virtual/class.js +0 -4
- package/$server/$folder/$class/$data/$operation/$folder/$class/$data/$operation/class.js +0 -4
- package/$server/$folder/$class/$data/$register/$account/$folder/$class/$data/$register/$account/class.js +0 -4
- package/$server/$folder/$class/$data/$register/$folder/$class/$data/$register/$account/class.js +0 -4
- package/$server/$folder/$class/$data/$register/$folder/$class/$data/$register/class.js +0 -4
- package/$server/$folder/$class/$data/$struct/$folder/$class/$data/$struct/class.js +0 -4
- package/$server/$folder/$class/$domain/$folder/$class/$domain/class.js +0 -4
- package/$server/$folder/$class/$module/$folder/$class/$data/$catalog/class.js +0 -4
- package/$server/$folder/$class/$module/$folder/$class/$data/$operation/class.js +0 -4
- package/$server/$folder/$class/$module/$folder/$class/$data/$register/class.js +0 -4
- package/$server/$folder/$class/$module/$folder/$class/$data/$struct/class.js +0 -4
- package/$server/$folder/$class/$module/$folder/$class/$domain/class.js +0 -4
- package/$server/$folder/$class/$module/$folder/$class/$module/class.js +0 -4
- package/$server/$folder/$class/$module/handlers/pages/form/system/mcp/$handler/class.js +0 -854
- package/$server/$folder/$class/$structure/$folder/$class/$structure/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$data/$catalog/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$data/$operation/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$data/$register/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$data/$struct/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$domain/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$module/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$structure/$organization/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/$folder/$class/$structure/class.js +0 -4
- package/$server/$folder/$class/$structure/$organization/class.js +0 -19
- package/$server/$folder/$class/$structure/$organization/icon.png +0 -0
- package/$server/$folder/$class/$structure/$project/$folder/$class/$data/$catalog/class.js +0 -4
- package/$server/$folder/$class/$structure/$project/$folder/$class/$data/$operation/class.js +0 -4
- package/$server/$folder/$class/$structure/$project/$folder/$class/$data/$register/class.js +0 -4
- package/$server/$folder/$class/$structure/$project/$folder/$class/$data/$struct/class.js +0 -4
- package/$server/$folder/$class/$structure/$project/$folder/$class/$domain/class.js +0 -4
- package/$server/$folder/$class/$structure/$server/$folder/$class/$domain/class.js +0 -4
- package/$server/$folder/$class/$users/$folder/$class/$structure/$user/class.js +0 -4
- package/MODELS/$ai/$folder/$class/$provider/readme.md +0 -16
- package/MODELS/$ai/class.js +0 -169
- package/MODELS/$ai/handlers/pages/form/system/ai/$handler/class.js +0 -168
- package/MODELS/$ai/readme.md +0 -62
- package/MODELS/Local/$provider/handlers/methods/transfer/$handler/class.js +0 -41
- package/MODULES/Marketplaces/$domain/class.js +0 -9
- package/MODULES/Register/OPERATIONS//320/224/320/276/321/201/321/202/320/260/320/262/320/272/320/260/$operation/class.js +0 -22
- package/MODULES/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/222/320/265/321/200/320/275/321/203/321/202/321/214 /320/270/320/267 /320/276/321/202/320/277/321/203/321/201/320/272/320/260/$operation/class.js" +0 -14
- package/MODULES/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/236/321/202/320/277/321/200/320/260/320/262/320/270/321/202/321/214 /320/262 /320/276/321/202/320/277/321/203/321/201/320/272/$operation/class.js" +0 -15
- package/MODULES/Register/OPERATIONS//320/232/320/260/320/264/321/200/321/213//320/243/320/262/320/276/320/273/321/214/320/275/320/265/320/275/320/270/320/265/$operation/class.js +0 -14
- package/MODULES/Register/OPERATIONS//320/232/320/260/321/201/321/201/320/260//320/220/320/262/320/260/320/275/321/201/320/276/320/262/321/213/320/271 /320/276/321/202/321/207/321/221/321/202/$operation/class.js" +0 -17
- package/MODULES/Register/OPERATIONS//320/232/320/260/321/201/321/201/320/260//320/237/320/232/320/236/$operation/class.js +0 -18
- package/MODULES/Register/OPERATIONS//320/232/320/260/321/201/321/201/320/260//320/240/320/232/320/236/$operation/class.js +0 -17
- package/MODULES/Register/OPERATIONS//320/236/321/201/320/275/320/276/320/262/320/275/321/213/320/265 /321/201/321/200/320/265/320/264/321/201/321/202/320/262/320/260//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/320/265 /320/236/320/241/$operation/class.js" +0 -30
- package/MODULES/Register/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/227/320/260/321/200/320/277/320/273/320/260/321/202/320/260/$operation/class.js" +0 -8
- package/MODULES/Register/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260//320/237/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/321/203/$operation/class.js" +0 -11
- package/MODULES/Register/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/321/217 /320/275/320/260 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/321/213/320/271 /321/201/321/207/321/221/321/202//320/222/320/276/320/267/320/262/321/200/320/260/321/202 /320/276/321/202 /320/277/320/276/321/201/321/202/320/260/320/262/321/211/320/270/320/272/320/260/$operation/class.js" +0 -11
- package/MODULES/Register/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/321/217 /320/275/320/260 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/321/213/320/271 /321/201/321/207/321/221/321/202//320/236/321/202 /320/277/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/217/$operation/class.js" +0 -11
- package/MODULES/Register/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217//320/222/320/276/320/267/320/262/321/200/320/260/321/202 /320/276/321/202 /320/277/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/217/$operation/class.js" +0 -32
- package/MODULES/Register/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217//320/237/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/216/$operation/class.js +0 -32
- package/ORGANIZATIONS/$domain/$folder/$class/$structure/$organization/class.js +0 -5
- package/ORGANIZATIONS/$domain/class.js +0 -5
- package/ORGANIZATIONS/$domain/readme.md +0 -10
- /package/{MODELS/$ai → $server}/$folder/$class/$ai/methods/chat/$method/class.js +0 -0
- /package/$server/$folder/$class/$structure/{$organization → $project}/handlers/pages/form/system/requisites/$handler/class.js +0 -0
- /package/{MODULES/Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/handlers/pages/form/objects → $server/$folder/$class/$structure/$user/handlers/pages/form/system/skills}/$handler/class.js +0 -0
- /package/MODULES/{CBR/$module/class.js → /320/224/320/260/320/275/320/275/321/213/320/265/CBR/$module/class.js"} +0 -0
- /package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}//320/232/320/276/320/276/321/200/320/264/320/270/320/275/320/260/321/202/321/213/$struct/class.js" +0 -0
- /package/MODULES/{Geo → /320/224/320/260/320/275/320/275/321/213/320/265/Geo}//320/250/320/265/320/271/320/277/$struct/class.js" +0 -0
- /package/MODULES/{KLADR/$module/$folder/$class/$data/$catalog/class.js → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR/$module/$folder/$class/$data/$catalog/class.js"} +0 -0
- /package/MODULES/{KLADR/$module/class.js → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR/$module/class.js"} +0 -0
- /package/MODULES/{KLADR/$module/handlers/pages/form/kladr/$handler/class.js → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR/$module/handlers/pages/form/kladr/$handler/class.js"} +0 -0
- /package/MODULES/{KLADR/$module/readme.md → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR/$module/readme.md"} +0 -0
- /package/MODULES/{KLADR → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR}//320/237/320/276/320/264/321/200/320/260/320/267/320/264/320/265/320/273/320/265/320/275/320/270/321/217 /320/234/320/222/320/224/$catalog/class.js" +0 -0
- /package/MODULES/{KLADR → /320/224/320/260/320/275/320/275/321/213/320/265/KLADR}//320/240/320/265/320/263/320/270/320/276/320/275/321/213/$catalog/class.js" +0 -0
- /package/MODULES/{RuCalendar/$module/class.js → /320/224/320/260/320/275/320/275/321/213/320/265/RuCalendar/$module/class.js"} +0 -0
- /package/MODULES/{Weather/$module/class.js → /320/224/320/260/320/275/320/275/321/213/320/265/Weather/$module/class.js"} +0 -0
- /package/MODULES/{2GIS/$module/class.js → /320/232/320/276/320/275/320/275/320/265/320/272/321/202/320/276/321/200/321/213/2GIS/$mcp/class.js"} +0 -0
- /package/MODULES/{2GIS/$module/readme.md → /320/232/320/276/320/275/320/275/320/265/320/272/321/202/320/276/321/200/321/213/2GIS/$mcp/readme.md"} +0 -0
- /package/MODULES/{Telegram/$module/class.js → /320/232/320/276/320/275/320/275/320/265/320/272/321/202/320/276/321/200/321/213/Telegram/$module/class.js"} +0 -0
- /package/{MODELS/GigaChat/$provider/$folder/$class/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/GigaChat/$provider/$folder/$class/$ai/class.js"} +0 -0
- /package/{MODELS/GigaChat/$provider/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/GigaChat/$provider/class.js"} +0 -0
- /package/{MODELS/GigaChat/GigaChat 2 Lite/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/GigaChat/GigaChat 2 Lite/$ai/class.js"} +0 -0
- /package/{MODELS/GigaChat/GigaChat 2 Max/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/GigaChat/GigaChat 2 Max/$ai/class.js"} +0 -0
- /package/{MODELS/GigaChat/GigaChat 2 Pro/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/GigaChat/GigaChat 2 Pro/$ai/class.js"} +0 -0
- /package/{MODELS/GigaChat/GigaChat Embeddings/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/GigaChat/GigaChat Embeddings/$ai/class.js"} +0 -0
- /package/{MODELS/MTS-AI/$provider/$folder/$class/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/MTS-AI/$provider/$folder/$class/$ai/class.js"} +0 -0
- /package/{MODELS/MTS-AI/$provider/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/MTS-AI/$provider/class.js"} +0 -0
- /package/{MODELS/MTS-AI/Cotype Lite/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/MTS-AI/Cotype Lite/$ai/class.js"} +0 -0
- /package/{MODELS/MTS-AI/Cotype Pro 2/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/MTS-AI/Cotype Pro 2/$ai/class.js"} +0 -0
- /package/{MODELS/MTS-AI/Cotype Vision/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/MTS-AI/Cotype Vision/$ai/class.js"} +0 -0
- /package/{MODELS/T-Bank/$provider/$folder/$class/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/T-Bank/$provider/$folder/$class/$ai/class.js"} +0 -0
- /package/{MODELS/T-Bank/$provider/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/T-Bank/$provider/class.js"} +0 -0
- /package/{MODELS/T-Bank/T-Lite 2.0/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/T-Bank/T-Lite 2.0/$ai/class.js"} +0 -0
- /package/{MODELS/T-Bank/T-Pro 2.0/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/T-Bank/T-Pro 2.0/$ai/class.js"} +0 -0
- /package/{MODELS/T-Bank/T-VoiceKit ASR/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/T-Bank/T-VoiceKit ASR/$ai/class.js"} +0 -0
- /package/{MODELS/T-Bank/T-VoiceKit TTS/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/T-Bank/T-VoiceKit TTS/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/$provider/$folder/$class/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/$provider/$folder/$class/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/$provider/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/$provider/class.js"} +0 -0
- /package/{MODELS/Yandex/Alice AI (YandexGPT 5 Pro)/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/Alice AI (YandexGPT 5 Pro)/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/Yandex Embeddings/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/Yandex Embeddings/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/Yandex SpeechKit ASR/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/Yandex SpeechKit ASR/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/Yandex SpeechKit TTS/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/Yandex SpeechKit TTS/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/YandexART/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/YandexART/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/YandexGPT 5 Lite/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/YandexGPT 5 Lite/$ai/class.js"} +0 -0
- /package/{MODELS/Yandex/YandexGPT Reasoning/$ai/class.js → MODULES//320/234/320/276/320/264/320/265/320/273/320/270/Yandex/YandexGPT Reasoning/$ai/class.js"} +0 -0
- /package/MODULES/{DuckDuckGo/$module/class.js → /320/237/320/276/320/270/321/201/320/272/DuckDuckGo/$module/class.js"} +0 -0
- /package/MODULES/{SearXNG/$module/class.js → /320/237/320/276/320/270/321/201/320/272/SearXNG/$module/class.js"} +0 -0
- /package/MODULES/{Yandex/$module/class.js → /320/237/320/276/320/270/321/201/320/272/Yandex/$module/class.js"} +0 -0
- /package/MODULES/{Process/$module/$folder/$class/$data/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process/$module/$folder/$class/$data/$catalog/class.js"} +0 -0
- /package/MODULES/{Process/$module/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process/$module/class.js"} +0 -0
- /package/MODULES/{Process → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Process}//320/241/321/205/320/265/320/274/321/213 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/320/276/320/262/$catalog/class.js" +0 -0
- /package/MODULES/{Register/$module/$folder/$class/$data/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/$module/$folder/$class/$data/$catalog/class.js"} +0 -0
- /package/MODULES/{Register/$module/$folder/$class/$data/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/$module/$folder/$class/$data/$operation/class.js"} +0 -0
- /package/MODULES/{Register/$module/$folder/$class/$data/$register/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/$module/$folder/$class/$data/$register/class.js"} +0 -0
- /package/MODULES/{Register/$module/$folder/$class/$data/$struct/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/$module/$folder/$class/$data/$struct/class.js"} +0 -0
- /package/MODULES/{Register/$module/readme.md → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/$module/readme.md"} +0 -0
- /package/MODULES/{Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/$folder/$class/$data/$catalog/$virtual/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/$folder/$class/$data/$catalog/$virtual/class.js"} +0 -0
- /package/MODULES/{Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/class.js"} +0 -0
- /package/MODULES/{Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/handlers/pages/form/virtual/$handler/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/$virtual/handlers/pages/form/virtual/$handler/class.js"} +0 -0
- /package/MODULES/{Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/$folder/$class/$data/$catalog/class.js"} +0 -0
- /package/MODULES/{Register/CATALOGS/$catalog/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/CATALOGS/$catalog/class.js"} +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/222/320/270/320/264/321/213 /320/275/320/276/321/200/320/274/320/260/321/202/320/270/320/262/320/276/320/262/$catalog/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/224/320/276/320/273/320/266/320/275/320/276/321/201/321/202/320/270/$catalog/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/241/320/276/321/202/321/200/321/203/320/264/320/275/320/270/320/272/320/270/$virtual/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/CATALOGS//320/241/321/203/320/261/321/212/320/265/320/272/321/202/321/213/$catalog/class.js" +0 -0
- /package/MODULES/{Register/OPERATIONS/$operation/$folder/$class/$data/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS/$operation/$folder/$class/$data/$operation/class.js"} +0 -0
- /package/MODULES/{Register/OPERATIONS/$operation/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/OPERATIONS/$operation/class.js"} +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/232/320/260/320/264/321/200/321/213/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/232/320/260/321/201/321/201/320/260/$operation/$folder/$class/$data/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/232/320/260/321/201/321/201/320/260/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/232/320/276/320/274/320/274/321/203/320/275/320/270/320/272/320/260/321/206/320/270/320/270/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/236/321/201/320/275/320/276/320/262/320/275/321/213/320/265 /321/201/321/200/320/265/320/264/321/201/321/202/320/262/320/260/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260/$operation/$folder/$class/$data/$operation/print//320/237/320/273/320/260/321/202/321/221/320/266/320/275/320/276/320/265 /320/277/320/276/321/200/321/203/321/207/320/265/320/275/320/270/320/265.html" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/273/320/260/321/202/320/265/320/266/320/270 /321/201 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/320/276/320/263/320/276 /321/201/321/207/321/221/321/202/320/260/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/320/276/321/201/321/202/321/203/320/277/320/273/320/265/320/275/320/270/321/217 /320/275/320/260 /321/200/320/260/321/201/321/207/321/221/321/202/320/275/321/213/320/271 /321/201/321/207/321/221/321/202/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/237/321/200/320/276/320/270/320/267/320/262/320/276/320/264/321/201/321/202/320/262/320/276/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217/$operation/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217//320/237/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/216/$operation/print//320/241/321/207/321/221/321/202 /320/275/320/260 /320/276/320/277/320/273/320/260/321/202/321/203.html" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/240/320/265/320/260/320/273/320/270/320/267/320/260/321/206/320/270/321/217//320/237/320/276/320/272/321/203/320/277/320/260/321/202/320/265/320/273/321/216/$operation/print//320/242/320/276/320/262/320/260/321/200/320/275/320/260/321/217 /320/275/320/260/320/272/320/273/320/260/320/264/320/275/320/260/321/217.html" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/OPERATIONS//320/244/320/270/320/275/320/260/320/275/321/201/320/276/320/262/321/213/320/271 /321/200/320/265/320/267/321/203/320/273/321/214/321/202/320/260/321/202/$operation/class.js" +0 -0
- /package/MODULES/{Register/REGISTER/$register/$folder/$class/$data/$register/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/$folder/$class/$data/$register/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/$folder/$class/$data/$register/$account/handlers/pages/form/analysis/$handler/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/$folder/$class/$data/$register/$account/handlers/pages/form/analysis/$handler/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/$folder/$class/$data/$register/$account/handlers/pages/form/postings/$handler/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/$folder/$class/$data/$register/$account/handlers/pages/form/postings/$handler/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/$folder/$class/$data/$register/$account/handlers/pages/form/turnovers/$handler/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/$folder/$class/$data/$register/$account/handlers/pages/form/turnovers/$handler/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/$folder/$class/$data/$register/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/$folder/$class/$data/$register/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/handlers/pages/form/journal/$handler/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/handlers/pages/form/journal/$handler/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/$register/handlers/pages/form/sheet/$handler/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/$register/handlers/pages/form/sheet/$handler/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/10/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/10/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/19/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/19/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/20/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/20/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/26/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/26/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/50/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/50/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/51/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/51/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/55/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/55/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/58/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/58/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/66/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/66/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/67/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/67/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/68/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/68/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/68/01/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/68/01/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/68/02/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/68/02/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/68/04/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/68/04/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/69/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/69/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/75/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/75/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/80/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/80/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/84/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/84/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/90/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/90/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/90/09/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/90/09/$account/class.js"} +0 -0
- /package/MODULES/{Register/REGISTER/99/$account/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/REGISTER/99/$account/class.js"} +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/REGISTER//320/232/320/260/320/264/321/200/320/276/320/262/321/213/320/271 /321/200/320/265/320/267/320/265/321/200/320/262/$account/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/REGISTER//320/232/320/260/320/264/321/200/321/213/$account/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/REGISTER//320/232/320/260/320/264/321/200/321/213//320/222 /320/276/321/202/320/277/321/203/321/201/320/272/320/265/$account/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/REGISTER//320/232/320/260/320/264/321/200/321/213//320/240/320/260/320/261/320/276/321/202/320/260/321/216/321/202/$account/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/REGISTER//320/242/320/265/321/205/320/275/320/270/321/207/320/265/321/201/320/272/320/270/320/271/$account/class.js" +0 -0
- /package/MODULES/{Register/STRUCTS/$struct/$folder/$class/$data/$struct/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/STRUCTS/$struct/$folder/$class/$data/$struct/class.js"} +0 -0
- /package/MODULES/{Register/STRUCTS/$struct/class.js → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register/STRUCTS/$struct/class.js"} +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/STRUCTS//320/220/320/264/321/200/320/265/321/201/$struct/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/STRUCTS//320/221/320/260/320/275/320/272/320/276/320/262/321/201/320/272/320/270/320/271 /321/201/321/207/321/221/321/202/$struct/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/STRUCTS//320/225/320/264/320/270/320/275/320/270/321/206/320/260 /320/270/320/267/320/274/320/265/321/200/320/265/320/275/320/270/321/217/$struct/class.js" +0 -0
- /package/MODULES/{Register → /320/243/321/207/321/221/321/202 /320/270 /320/277/321/200/320/276/321/206/320/265/321/201/321/201/321/213/Register}/STRUCTS//320/244/320/230/320/236/$struct/class.js" +0 -0
|
@@ -45,10 +45,10 @@ function spawn() {
|
|
|
45
45
|
worker.on('exit', code => code && fail('exit ' + code));
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/** Найти активную локальную модель в /
|
|
48
|
+
/** Найти активную локальную модель в /MODULES/Модели/Local по capability (`embeddings` | `rerank`). */
|
|
49
49
|
export async function resolveLocalRagModel(cap = 'embeddings') {
|
|
50
50
|
try {
|
|
51
|
-
const local = await globalThis.WORK?.get_item?.('/
|
|
51
|
+
const local = await globalThis.WORK?.get_item?.('/MODULES/Модели/Local').catch(() => null);
|
|
52
52
|
for (const m of (await local?.items) || []) {
|
|
53
53
|
if (!m || Array.isArray(m))
|
|
54
54
|
continue;
|
|
@@ -72,7 +72,7 @@ export async function activeEmbedModelKey() {
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Эмбеддинги текстов (нормализованные, mean pooling).
|
|
75
|
-
* Если в /
|
|
75
|
+
* Если в /MODULES/Модели/Local активна модель эмбеддингов (напр. BGE-M3), используем её,
|
|
76
76
|
* иначе встроенный ONNX-воркер (EmbeddingGemma 2).
|
|
77
77
|
* @param {string[]} texts
|
|
78
78
|
* @returns {Promise<Float32Array[]>}
|
|
@@ -25,7 +25,7 @@ let processed = 0;
|
|
|
25
25
|
let failures = 0;
|
|
26
26
|
const recent = [];
|
|
27
27
|
const reconcileState = { running: false, done: false, at: 0, files: 0, queued: 0, removed: 0 };
|
|
28
|
-
const WATCH_ROOTS = ['$server', '
|
|
28
|
+
const WATCH_ROOTS = ['$server', 'PROJECTS', 'MODULES', 'NODES', 'USERS', 'rules', 'docs'];
|
|
29
29
|
let watchers = [];
|
|
30
30
|
let watchTimer = null;
|
|
31
31
|
const watchPending = new Set();
|
|
@@ -179,13 +179,13 @@ export function treeDistance(a, b) {
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Проверка вертикального конуса контекста от basePointPath:
|
|
182
|
-
* если basePointPath находится внутри /
|
|
182
|
+
* если basePointPath находится внутри /PROJECTS/<Орг>[/<Подразделение>...],
|
|
183
183
|
* разрешены только дочерние элементы («вниз») и предки/общие модули («вверх»),
|
|
184
184
|
* а соседние организации и соседние подразделения («влево-вправо») исключаются.
|
|
185
185
|
*/
|
|
186
186
|
export function inVerticalCone(targetPath, basePointPath) {
|
|
187
187
|
const baseSegs = segsOf(basePointPath);
|
|
188
|
-
if ((baseSegs[0] !== '
|
|
188
|
+
if ((baseSegs[0] !== 'PROJECTS') || baseSegs.length < 2)
|
|
189
189
|
return true;
|
|
190
190
|
const orgId = baseSegs[1];
|
|
191
191
|
if (!orgId || orgId[0] === '$' || orgId[0] === '.' || orgId === '~')
|
|
@@ -200,7 +200,7 @@ export function inVerticalCone(targetPath, basePointPath) {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
const segs = segsOf(targetPath);
|
|
203
|
-
if ((segs[0] !== '
|
|
203
|
+
if ((segs[0] !== 'PROJECTS') || segs.length < 2)
|
|
204
204
|
return true;
|
|
205
205
|
const orgSeg = segs[1];
|
|
206
206
|
if (orgSeg[0] === '$' || orgSeg[0] === '.' || orgSeg === '~')
|
|
@@ -170,7 +170,7 @@ export async function search(point, params = {}) {
|
|
|
170
170
|
authorized.push({ r, chunk });
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
// Второй этап ранжирования через активный локальный реранкер (/
|
|
173
|
+
// Второй этап ранжирования через активный локальный реранкер (/MODULES/Модели/Local/BGE-Reranker-v2-M3 или Qwen3-Reranker-NPU)
|
|
174
174
|
if (authorized.length > 1) {
|
|
175
175
|
const reranker = await resolveLocalRagModel('rerank');
|
|
176
176
|
if (reranker && typeof reranker.rerank === 'function') {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Источники данных:
|
|
6
6
|
* 1) `tasks` — завершённые задачи ИИ и Консультанта (`*.task` в `/USERS` и подразделениях);
|
|
7
|
-
* 2) `accounting` — реальные проведённые операции, двойные проводки (`account_entries`) и отчёты ОСВ из `work.db` организации (`$
|
|
8
|
-
* 3) `classes` — метаданные классов (`class.js`), контракты (`readme.md`) и навыки ИИ (`ai/skills/*.md`) из `/MODULES` и `/
|
|
7
|
+
* 2) `accounting` — реальные проведённые операции, двойные проводки (`account_entries`) и отчёты ОСВ из `work.db` организации (`$project`);
|
|
8
|
+
* 3) `classes` — метаданные классов (`class.js`), контракты (`readme.md`) и навыки ИИ (`ai/skills/*.md`) из `/MODULES` и `/PROJECTS`.
|
|
9
9
|
*/
|
|
10
10
|
import fs from 'node:fs';
|
|
11
11
|
import fsp from 'node:fs/promises';
|
|
@@ -18,6 +18,8 @@ import { previewEntries } from '../../data/posting.js';
|
|
|
18
18
|
import { trialBalance, journal } from '../../data/reports.js';
|
|
19
19
|
import { localDatasetsDir, migrateLocalModelsLayoutSync } from './paths.js';
|
|
20
20
|
|
|
21
|
+
const DEFAULT_BASE_PATH = '/PROJECTS/Маслоторг';
|
|
22
|
+
|
|
21
23
|
const SECRET_PATTERNS = [
|
|
22
24
|
/\bsk-[A-Za-z0-9_-]{16,}\b/g,
|
|
23
25
|
/\bBearer\s+[A-Za-z0-9._~+/=-]{16,}\b/gi,
|
|
@@ -25,7 +27,7 @@ const SECRET_PATTERNS = [
|
|
|
25
27
|
];
|
|
26
28
|
|
|
27
29
|
const SYSTEM_PROMPT_WORK = `Ты — ИИ-ассистент и учётный аналитик платформы WORK (архитектура ODANT).
|
|
28
|
-
Ты работаешь с объектно-иерархической моделью данных (домены /MODULES и /
|
|
30
|
+
Ты работаешь с объектно-иерархической моделью данных (домены /MODULES и /PROJECTS, изолированные БД $project, трёхосевое наследование Types → Ancestor → Parent → Сам класс, справочники $catalog и $virtual, структуры $struct с table: true, операции $operation с правилами POSTINGS и явной двойной записью в классы счетов $account).
|
|
29
31
|
Используй штатные инструменты describe_class, find_objects, register_operation и report.`;
|
|
30
32
|
|
|
31
33
|
export function scrubSecrets(text) {
|
|
@@ -68,13 +70,13 @@ function findFilesRecursive(dir, predicate, out = [], maxFiles = 400) {
|
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
|
-
* 1. Сбор обучающих диалогов из файлов задач `*.task` (в `/USERS` и `/
|
|
73
|
+
* 1. Сбор обучающих диалогов из файлов задач `*.task` (в `/USERS` и `/PROJECTS`).
|
|
72
74
|
*/
|
|
73
75
|
export function collectTaskExamples(rootDir = process.cwd()) {
|
|
74
76
|
const examples = [];
|
|
75
77
|
const scanDirs = [
|
|
76
78
|
path.join(rootDir, 'USERS'),
|
|
77
|
-
path.join(rootDir, '
|
|
79
|
+
path.join(rootDir, DEFAULT_BASE_PATH.split('/').filter(Boolean)[0]),
|
|
78
80
|
];
|
|
79
81
|
const taskFiles = [];
|
|
80
82
|
for (const d of scanDirs)
|
|
@@ -115,7 +117,7 @@ export function collectTaskExamples(rootDir = process.cwd()) {
|
|
|
115
117
|
/**
|
|
116
118
|
* 2. Синтез обучающих примеров по реальным данным организации (`work.db`: операции, проводки, ОСВ, справочники).
|
|
117
119
|
*/
|
|
118
|
-
export async function collectAccountingExamples(rootDir = process.cwd(), basePath =
|
|
120
|
+
export async function collectAccountingExamples(rootDir = process.cwd(), basePath = DEFAULT_BASE_PATH) {
|
|
119
121
|
const examples = [];
|
|
120
122
|
try {
|
|
121
123
|
const db = await dataStore(basePath);
|
|
@@ -282,7 +284,7 @@ export async function buildWorkDataset({
|
|
|
282
284
|
rootDir = process.cwd(),
|
|
283
285
|
name = 'work-sft-dataset',
|
|
284
286
|
sources = ['tasks', 'accounting', 'classes'],
|
|
285
|
-
basePath =
|
|
287
|
+
basePath = DEFAULT_BASE_PATH,
|
|
286
288
|
} = {}) {
|
|
287
289
|
const activeSources = new Set(Array.isArray(sources) && sources.length ? sources : ['tasks', 'accounting', 'classes']);
|
|
288
290
|
const all = [];
|
|
@@ -379,7 +381,7 @@ export async function listWorkDatasets(rootDir = process.cwd()) {
|
|
|
379
381
|
* и возвращает оценку `reward` в диапазоне `[0.0 .. 1.0]` и список причин `reasons`.
|
|
380
382
|
*/
|
|
381
383
|
export async function verifyCompletion({
|
|
382
|
-
basePath =
|
|
384
|
+
basePath = DEFAULT_BASE_PATH,
|
|
383
385
|
taskType = 'operation',
|
|
384
386
|
completion = '',
|
|
385
387
|
} = {}) {
|
|
@@ -410,7 +412,7 @@ export async function verifyCompletion({
|
|
|
410
412
|
const db = await dataStore(basePath);
|
|
411
413
|
|
|
412
414
|
if (taskType === 'schema') {
|
|
413
|
-
const cid = parsed.cid || '/
|
|
415
|
+
const cid = parsed.cid || '/PROJECTS/Маслоторг/MODULES/Register/OPERATIONS/Реализация/Покупателю';
|
|
414
416
|
const errs = checkSchema(db, cid);
|
|
415
417
|
if (errs.length === 0) {
|
|
416
418
|
reward = 1.0;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* - Требования Windows 11: `UMA / Variable Graphics Memory = 96–128 ГБ` + фиксированный файл подкачки
|
|
25
25
|
* `Page File = 131072 МБ (128 ГБ)` на NVMe SSD.
|
|
26
26
|
* 3. Автономный фоллбэк внутри WORK — если внешний сервер на `:8731` не запущен (например, на обычном ПК разработчика
|
|
27
|
-
* или в CI-тестах), вызовы `/
|
|
27
|
+
* или в CI-тестах), вызовы `/MODULES/Модели/Halogen/*` бесшовно обрабатываются локальным движком WORK.
|
|
28
28
|
*/
|
|
29
29
|
import os from 'node:os';
|
|
30
30
|
import fs from 'node:fs';
|
|
@@ -126,14 +126,14 @@ export const QWEN_FLASH_NEXT_GGUF_FILES = Object.freeze([
|
|
|
126
126
|
export const BUBO_ORIGINAL_MODEL_FILES = QWEN_FLASH_NEXT_GGUF_FILES;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Каталог штатных моделей для машинок Halo в `/
|
|
129
|
+
* Каталог штатных моделей для машинок Halo в `/MODULES/Модели/Local` (1 основная GPU-модель + 7 NPU-моделей на одном порту 8731).
|
|
130
130
|
*/
|
|
131
131
|
export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
132
132
|
{
|
|
133
133
|
nodeName: 'Qwen3.8-Flash-Next',
|
|
134
134
|
label: 'Qwen3.8-Flash-Next (180B MoE)',
|
|
135
135
|
icon: 'ai:qwen',
|
|
136
|
-
path: '/
|
|
136
|
+
path: '/MODULES/Модели/Local/Qwen3.8-Flash-Next',
|
|
137
137
|
baseUrl: 'http://127.0.0.1:8731/v1/chat/completions',
|
|
138
138
|
model: 'halogen-qwen3.8-flash-next',
|
|
139
139
|
hfRepo: 'peonist-ai/halogen-qwen3.8-flash-next',
|
|
@@ -158,7 +158,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
158
158
|
nodeName: 'Qwen3.5-2B-NPU',
|
|
159
159
|
label: 'Qwen3.5-2B (NPU Compact)',
|
|
160
160
|
icon: 'ai:qwen',
|
|
161
|
-
path: '/
|
|
161
|
+
path: '/MODULES/Модели/Local/Qwen3.5-2B-NPU',
|
|
162
162
|
baseUrl: 'http://127.0.0.1:8731/v1/chat/completions',
|
|
163
163
|
model: 'qwen3.5-2b',
|
|
164
164
|
hfRepo: 'peonist-ai/halogen-npu-qwen3.5-2b',
|
|
@@ -175,7 +175,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
175
175
|
nodeName: 'Qwen3-ASR-NPU',
|
|
176
176
|
label: 'Qwen3-ASR 1.7B (NPU STT)',
|
|
177
177
|
icon: 'carbon:microphone',
|
|
178
|
-
path: '/
|
|
178
|
+
path: '/MODULES/Модели/Local/Qwen3-ASR-NPU',
|
|
179
179
|
baseUrl: 'http://127.0.0.1:8731/v1/audio/transcriptions',
|
|
180
180
|
model: 'qwen3-asr-1.7b',
|
|
181
181
|
hfRepo: 'peonist-ai/halogen-npu-qwen3-asr-1.7b',
|
|
@@ -193,7 +193,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
193
193
|
nodeName: 'Qwen3-TTS-NPU',
|
|
194
194
|
label: 'Qwen3-TTS 1.7B (NPU Voice)',
|
|
195
195
|
icon: 'carbon:volume-up',
|
|
196
|
-
path: '/
|
|
196
|
+
path: '/MODULES/Модели/Local/Qwen3-TTS-NPU',
|
|
197
197
|
baseUrl: 'http://127.0.0.1:8731/v1/audio/speech',
|
|
198
198
|
model: 'qwen3-tts-1.7b-customvoice',
|
|
199
199
|
hfRepo: 'peonist-ai/halogen-npu-qwen3-tts-1.7b-customvoice',
|
|
@@ -211,7 +211,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
211
211
|
nodeName: 'Flux2-Klein-NPU',
|
|
212
212
|
label: 'FLUX.2-klein 4B (NPU Image)',
|
|
213
213
|
icon: 'ai:stablediffusion',
|
|
214
|
-
path: '/
|
|
214
|
+
path: '/MODULES/Модели/Local/Flux2-Klein-NPU',
|
|
215
215
|
baseUrl: 'http://127.0.0.1:8731/v1/images/generations',
|
|
216
216
|
model: 'flux2-klein-4b',
|
|
217
217
|
hfRepo: 'peonist-ai/halogen-npu-flux2-klein-4b',
|
|
@@ -229,7 +229,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
229
229
|
nodeName: 'Qwen3-Embedding-NPU',
|
|
230
230
|
label: 'Qwen3-Embedding 0.6B (NPU RAG)',
|
|
231
231
|
icon: 'carbon:search-locate',
|
|
232
|
-
path: '/
|
|
232
|
+
path: '/MODULES/Модели/Local/Qwen3-Embedding-NPU',
|
|
233
233
|
baseUrl: 'http://127.0.0.1:8731/v1/embeddings',
|
|
234
234
|
model: 'qwen3-embedding-0.6b',
|
|
235
235
|
hfRepo: 'peonist-ai/halogen-npu-qwen3-embedding-0.6b',
|
|
@@ -247,7 +247,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
247
247
|
nodeName: 'Qwen3-Reranker-NPU',
|
|
248
248
|
label: 'Qwen3-Reranker 0.6B (NPU Rerank)',
|
|
249
249
|
icon: 'carbon:filter',
|
|
250
|
-
path: '/
|
|
250
|
+
path: '/MODULES/Модели/Local/Qwen3-Reranker-NPU',
|
|
251
251
|
baseUrl: 'http://127.0.0.1:8731/v1/rerank',
|
|
252
252
|
model: 'qwen3-reranker-0.6b',
|
|
253
253
|
hfRepo: 'peonist-ai/halogen-npu-qwen3-reranker-0.6b',
|
|
@@ -264,7 +264,7 @@ export const HALOGEN_MODELS_CATALOG = Object.freeze([
|
|
|
264
264
|
nodeName: 'Decider-NPU',
|
|
265
265
|
label: 'Decider 0.8B (NPU SystemOne)',
|
|
266
266
|
icon: 'carbon:decision-tree',
|
|
267
|
-
path: '/
|
|
267
|
+
path: '/MODULES/Модели/Local/Decider-NPU',
|
|
268
268
|
baseUrl: 'http://127.0.0.1:8731/v1/systemone',
|
|
269
269
|
model: 'decider-0.8b',
|
|
270
270
|
hfRepo: 'peonist-ai/halogen-npu-decider-0.8b',
|
|
@@ -289,7 +289,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
289
289
|
nodeName: 'Qwen3-4B',
|
|
290
290
|
label: 'Qwen3-4B (Быстрая LLM / Сжатие)',
|
|
291
291
|
icon: 'ai:qwen',
|
|
292
|
-
path: '/
|
|
292
|
+
path: '/MODULES/Модели/Local/Qwen3-4B',
|
|
293
293
|
baseUrl: '',
|
|
294
294
|
model: 'Qwen/Qwen3-4B',
|
|
295
295
|
hfRepo: 'Qwen/Qwen3-4B',
|
|
@@ -307,7 +307,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
307
307
|
nodeName: 'Qwen3-ASR-1.7B',
|
|
308
308
|
label: 'Qwen3-ASR 1.7B (Распознавание речи)',
|
|
309
309
|
icon: 'carbon:microphone',
|
|
310
|
-
path: '/
|
|
310
|
+
path: '/MODULES/Модели/Local/Qwen3-ASR-1.7B',
|
|
311
311
|
baseUrl: '',
|
|
312
312
|
model: 'Qwen/Qwen3-ASR-1.7B',
|
|
313
313
|
hfRepo: 'Qwen/Qwen3-ASR-1.7B',
|
|
@@ -325,7 +325,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
325
325
|
nodeName: 'Qwen3-TTS-12Hz-1.7B-VoiceDesign',
|
|
326
326
|
label: 'Qwen3-TTS 1.7B VoiceDesign (Голос)',
|
|
327
327
|
icon: 'carbon:volume-up',
|
|
328
|
-
path: '/
|
|
328
|
+
path: '/MODULES/Модели/Local/Qwen3-TTS-12Hz-1.7B-VoiceDesign',
|
|
329
329
|
baseUrl: '',
|
|
330
330
|
model: 'Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign',
|
|
331
331
|
hfRepo: 'Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign',
|
|
@@ -343,7 +343,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
343
343
|
nodeName: 'Z-Image-Turbo',
|
|
344
344
|
label: 'Z-Image-Turbo 6B (Картинки)',
|
|
345
345
|
icon: 'ai:stablediffusion',
|
|
346
|
-
path: '/
|
|
346
|
+
path: '/MODULES/Модели/Local/Z-Image-Turbo',
|
|
347
347
|
baseUrl: '',
|
|
348
348
|
model: 'Tongyi-MAI/Z-Image-Turbo',
|
|
349
349
|
hfRepo: 'Tongyi-MAI/Z-Image-Turbo',
|
|
@@ -361,7 +361,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
361
361
|
nodeName: 'bge-m3',
|
|
362
362
|
label: 'BGE-M3 (Эмбеддинги RAG)',
|
|
363
363
|
icon: 'carbon:search-locate',
|
|
364
|
-
path: '/
|
|
364
|
+
path: '/MODULES/Модели/Local/bge-m3',
|
|
365
365
|
baseUrl: '',
|
|
366
366
|
model: 'BAAI/bge-m3',
|
|
367
367
|
hfRepo: 'BAAI/bge-m3',
|
|
@@ -379,7 +379,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
379
379
|
nodeName: 'bge-reranker-v2-m3',
|
|
380
380
|
label: 'BGE-Reranker-v2-M3 (Реранкер RAG)',
|
|
381
381
|
icon: 'carbon:filter',
|
|
382
|
-
path: '/
|
|
382
|
+
path: '/MODULES/Модели/Local/bge-reranker-v2-m3',
|
|
383
383
|
baseUrl: '',
|
|
384
384
|
model: 'BAAI/bge-reranker-v2-m3',
|
|
385
385
|
hfRepo: 'BAAI/bge-reranker-v2-m3',
|
|
@@ -397,7 +397,7 @@ export const HALOGEN_WINDOWS_COMPANIONS = Object.freeze([
|
|
|
397
397
|
nodeName: 'Qwen3-0.6B',
|
|
398
398
|
label: 'Qwen3-0.6B (Быстрый классификатор)',
|
|
399
399
|
icon: 'carbon:decision-tree',
|
|
400
|
-
path: '/
|
|
400
|
+
path: '/MODULES/Модели/Local/Qwen3-0.6B',
|
|
401
401
|
baseUrl: '',
|
|
402
402
|
model: 'Qwen/Qwen3-0.6B',
|
|
403
403
|
hfRepo: 'Qwen/Qwen3-0.6B',
|
|
@@ -787,25 +787,25 @@ export function computeHalogenMemoryPlan({
|
|
|
787
787
|
|
|
788
788
|
// Нативная подготовка движка Halowin Bubo (AMD ROCm 10.0.0 gfx1151) и запуск нейросети из её метапапки `$ai/#weights`
|
|
789
789
|
const windowsPrepareCommand = [
|
|
790
|
-
`.\\bubo.exe prepare runtime --runtime-dir "
|
|
790
|
+
`.\\bubo.exe prepare runtime --runtime-dir "MODULES\\Модели\\Local\\$provider\\#runtime\\bubo\\runtime\\rocm-10.0.0-gfx1151" --yes`,
|
|
791
791
|
].join('\n');
|
|
792
792
|
|
|
793
793
|
const windowsCommand = [
|
|
794
794
|
`bubo.exe serve llm ^`,
|
|
795
795
|
` --host 127.0.0.1 --port ${HALOGEN_DEFAULT_PORT} ^`,
|
|
796
|
-
` --model "
|
|
796
|
+
` --model "MODULES\\Модели\\Local\\Qwen3.8-Flash-Next\\$ai\\#weights\\Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf" ^`,
|
|
797
797
|
` --served-model-name halogen-qwen3.8-flash-next ^`,
|
|
798
798
|
` --profile ${kvSlots > 1 ? 'subagents' : 'default'} --context ${contextTokens} ^`,
|
|
799
799
|
` --npu-prefill on`,
|
|
800
800
|
].join('\n');
|
|
801
801
|
|
|
802
802
|
const windowsGufoServicesCommand = [
|
|
803
|
-
`gufo.exe serve --host 127.0.0.1 --port ${HALOGEN_DEFAULT_PORT} llm --model "
|
|
804
|
-
`gufo.exe serve asr --model "
|
|
805
|
-
`gufo.exe serve tts --model "
|
|
806
|
-
`gufo.exe serve embedding --model "
|
|
807
|
-
`gufo.exe serve image --model "
|
|
808
|
-
`gufo.exe serve decision --model "
|
|
803
|
+
`gufo.exe serve --host 127.0.0.1 --port ${HALOGEN_DEFAULT_PORT} llm --model "MODULES\\Модели\\Local\\Qwen3.8-Flash-Next\\$ai\\#weights\\Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf" --served-model-name halogen-qwen3.8-flash-next --speculative mtp`,
|
|
804
|
+
`gufo.exe serve asr --model "MODULES\\Модели\\Local\\Qwen3-ASR-NPU\\$ai\\#weights"`,
|
|
805
|
+
`gufo.exe serve tts --model "MODULES\\Модели\\Local\\Qwen3-TTS-NPU\\$ai\\#weights"`,
|
|
806
|
+
`gufo.exe serve embedding --model "MODULES\\Модели\\Local\\Qwen3-Embedding-NPU\\$ai\\#weights"`,
|
|
807
|
+
`gufo.exe serve image --model "MODULES\\Модели\\Local\\Flux2-Klein-NPU\\$ai\\#weights"`,
|
|
808
|
+
`gufo.exe serve decision --model "MODULES\\Модели\\Local\\Decider-NPU\\$ai\\#weights"`,
|
|
809
809
|
].join('\n');
|
|
810
810
|
|
|
811
811
|
const windowsStrataCommand = `strata launch --family qwen --model iq3_s --port ${HALOGEN_DEFAULT_PORT}`;
|
|
@@ -862,7 +862,7 @@ export function inspectWindowsHalogenEnvironment({ rootDir = process.cwd() } = {
|
|
|
862
862
|
const rtBase = localRuntimeDir(rootDir);
|
|
863
863
|
|
|
864
864
|
const nestedBuboCandidates = [];
|
|
865
|
-
for (const parentDir of [path.join(rtBase, 'bubo'), path.join(rootDir, '
|
|
865
|
+
for (const parentDir of [path.join(rtBase, 'bubo'), path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'bubo')]) {
|
|
866
866
|
try {
|
|
867
867
|
if (fs.existsSync(parentDir)) {
|
|
868
868
|
for (const sub of fs.readdirSync(parentDir, { withFileTypes: true })) {
|
|
@@ -880,10 +880,10 @@ export function inspectWindowsHalogenEnvironment({ rootDir = process.cwd() } = {
|
|
|
880
880
|
path.join(rtBase, 'bubo', 'bin', 'bubo.exe'),
|
|
881
881
|
path.join(rtBase, 'bubo', 'bubo.exe'),
|
|
882
882
|
...nestedBuboCandidates,
|
|
883
|
-
path.join(rootDir, '
|
|
884
|
-
path.join(rootDir, '
|
|
885
|
-
path.join(rootDir, '
|
|
886
|
-
path.join(rootDir, '
|
|
883
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'bubo', 'bin', 'bubo.exe'),
|
|
884
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'bubo', 'bubo.exe'),
|
|
885
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Halogen', '#runtime', 'bubo', 'bin', 'bubo.exe'),
|
|
886
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Halogen', '#runtime', 'bubo', 'bubo.exe'),
|
|
887
887
|
path.join(localAppData, 'Bubo', 'bin', 'bubo.exe'),
|
|
888
888
|
path.join(localAppData, 'Programs', 'Bubo', 'bin', 'bubo.exe'),
|
|
889
889
|
];
|
|
@@ -897,8 +897,8 @@ export function inspectWindowsHalogenEnvironment({ rootDir = process.cwd() } = {
|
|
|
897
897
|
const rocmCandidates = [
|
|
898
898
|
process.env.BUBO_RUNTIME_DIR || '',
|
|
899
899
|
path.join(rtBase, 'bubo', 'runtime', 'rocm-10.0.0-gfx1151'),
|
|
900
|
-
path.join(rootDir, '
|
|
901
|
-
path.join(rootDir, '
|
|
900
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'bubo', 'runtime', 'rocm-10.0.0-gfx1151'),
|
|
901
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Halogen', '#runtime', 'bubo', 'runtime', 'rocm-10.0.0-gfx1151'),
|
|
902
902
|
path.join(localAppData, 'Bubo', 'runtime', 'rocm-10.0.0-gfx1151'),
|
|
903
903
|
].filter(Boolean);
|
|
904
904
|
const rocmRuntimeDir = rocmCandidates.find(p => fs.existsSync(p)) || null;
|
|
@@ -910,10 +910,10 @@ export function inspectWindowsHalogenEnvironment({ rootDir = process.cwd() } = {
|
|
|
910
910
|
const gufoCandidates = [
|
|
911
911
|
path.join(rtBase, 'gufo', 'gufo.exe'),
|
|
912
912
|
path.join(rtBase, 'bubo', 'bin', 'gufo.exe'),
|
|
913
|
-
path.join(rootDir, '
|
|
914
|
-
path.join(rootDir, '
|
|
915
|
-
path.join(rootDir, '
|
|
916
|
-
path.join(rootDir, '
|
|
913
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'gufo', 'gufo.exe'),
|
|
914
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'bubo', 'bin', 'gufo.exe'),
|
|
915
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Halogen', '#runtime', 'gufo', 'gufo.exe'),
|
|
916
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Halogen', '#runtime', 'bubo', 'bin', 'gufo.exe'),
|
|
917
917
|
path.join(localAppData, 'Gufo', 'gufo.exe'),
|
|
918
918
|
];
|
|
919
919
|
const gufoExePath = gufoCandidates.find(p => fs.existsSync(p)) || null;
|
|
@@ -922,8 +922,8 @@ export function inspectWindowsHalogenEnvironment({ rootDir = process.cwd() } = {
|
|
|
922
922
|
path.join(localAppData, 'Programs', 'Strata', 'strata.exe'),
|
|
923
923
|
path.join(localAppData, 'Strata', 'strata.exe'),
|
|
924
924
|
path.join(rtBase, 'strata', 'strata.exe'),
|
|
925
|
-
path.join(rootDir, '
|
|
926
|
-
path.join(rootDir, '
|
|
925
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Local', '#runtime', 'strata', 'strata.exe'),
|
|
926
|
+
path.join(rootDir, 'MODULES', 'Модели', 'Halogen', '#runtime', 'strata', 'strata.exe'),
|
|
927
927
|
];
|
|
928
928
|
const strataExePath = strataCandidates.find(p => fs.existsSync(p)) || null;
|
|
929
929
|
|
|
@@ -1289,7 +1289,7 @@ function isNonLlmModelDir(modelDir, folderName = '', mainFile = '') {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
/**
|
|
1292
|
-
* Найти локальный GGUF-файл LLM-модели в метапапках моделей `/
|
|
1292
|
+
* Найти локальный GGUF-файл LLM-модели в метапапках моделей `/MODULES/Модели/Local/<Модель>/$ai/#weights`.
|
|
1293
1293
|
* Пропускает диффузионные и аудио-модели (LTX, Flux, Wan и т.д.), которые не запускаются через LLM-движок `bubo.exe`.
|
|
1294
1294
|
*/
|
|
1295
1295
|
function findLocalGgufModel(rootDir = process.cwd()) {
|
|
@@ -1297,7 +1297,7 @@ function findLocalGgufModel(rootDir = process.cwd()) {
|
|
|
1297
1297
|
if (preferred.mainModel)
|
|
1298
1298
|
return preferred.mainModel;
|
|
1299
1299
|
|
|
1300
|
-
const localRoot = path.join(rootDir, '
|
|
1300
|
+
const localRoot = path.join(rootDir, 'MODULES', 'Модели', 'Local');
|
|
1301
1301
|
if (!fs.existsSync(localRoot))
|
|
1302
1302
|
return null;
|
|
1303
1303
|
try {
|
|
@@ -2230,7 +2230,7 @@ export async function startHalogenBackend({
|
|
|
2230
2230
|
port,
|
|
2231
2231
|
windowsEnv: winEnv,
|
|
2232
2232
|
note: os.platform() === 'win32'
|
|
2233
|
-
? 'Нативный движок Halowin Bubo (bubo.exe) или модель ещё не подготовлены. Нажмите
|
|
2233
|
+
? 'Нативный движок Halowin Bubo (bubo.exe) или модель ещё не подготовлены. Нажмите «Подготовить Windows Runtime» во вкладке «Движок и настройка»; пока работает автономный контур WORK.'
|
|
2234
2234
|
: 'Контейнер halogen-flash-server не запущен; активирован автономный контур WORK.',
|
|
2235
2235
|
};
|
|
2236
2236
|
}
|
|
@@ -2590,7 +2590,7 @@ export function computeFallbackDecision({ state = '', questions = {}, model = 'd
|
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
2592
|
/**
|
|
2593
|
-
* Зарегистрировать модели Halo (`HALOGEN_MODELS_CATALOG`) как дочерние узлы `$ai` внутри `/
|
|
2593
|
+
* Зарегистрировать модели Halo (`HALOGEN_MODELS_CATALOG`) как дочерние узлы `$ai` внутри `/MODULES/Модели/Local/<nodeName>`.
|
|
2594
2594
|
*/
|
|
2595
2595
|
export async function ensureHalogenModelNodes(rootDir = process.cwd(), { models = null, onlyWithWeights = false } = {}) {
|
|
2596
2596
|
let filterList = null;
|
|
@@ -2640,7 +2640,7 @@ export async function ensureHalogenModelNodes(rootDir = process.cwd(), { models
|
|
|
2640
2640
|
registered.push(res.modelPath);
|
|
2641
2641
|
}
|
|
2642
2642
|
try {
|
|
2643
|
-
const localNode = await globalThis.WORK?.get_item?.('/
|
|
2643
|
+
const localNode = await globalThis.WORK?.get_item?.('/MODULES/Модели/Local');
|
|
2644
2644
|
localNode?.reset?.();
|
|
2645
2645
|
}
|
|
2646
2646
|
catch { /* ignore */ }
|
|
@@ -2681,8 +2681,8 @@ export function inspectHalogenCatalogWithStatus(rootDir = process.cwd(), { platf
|
|
|
2681
2681
|
|
|
2682
2682
|
return catalog.map(spec => {
|
|
2683
2683
|
const localWeightsDir = modelWeightsDir(rootDir, spec.nodeName, 'Local');
|
|
2684
|
-
const legacyLocalDir = path.join(rootDir, '
|
|
2685
|
-
const legacyHalogenDir = path.join(rootDir, '
|
|
2684
|
+
const legacyLocalDir = path.join(rootDir, 'MODULES', 'Модели', 'Local', spec.nodeName, '#weights');
|
|
2685
|
+
const legacyHalogenDir = path.join(rootDir, 'MODULES', 'Модели', 'Halogen', spec.nodeName, '#weights');
|
|
2686
2686
|
const weightsDir = fs.existsSync(localWeightsDir) ? localWeightsDir
|
|
2687
2687
|
: (fs.existsSync(legacyLocalDir) ? legacyLocalDir
|
|
2688
2688
|
: (fs.existsSync(legacyHalogenDir) ? legacyHalogenDir : localWeightsDir));
|
|
@@ -2729,7 +2729,7 @@ export function inspectHalogenCatalogWithStatus(rootDir = process.cwd(), { platf
|
|
|
2729
2729
|
}
|
|
2730
2730
|
|
|
2731
2731
|
/**
|
|
2732
|
-
* Поставить в очередь скачивание совместимого с текущей ОС стека моделей Halo в `/
|
|
2732
|
+
* Поставить в очередь скачивание совместимого с текущей ОС стека моделей Halo в `/MODULES/Модели/Local`:
|
|
2733
2733
|
* - На Windows 11: проверяет диск/память и запускает нативную установку `Halowin Bubo` (ROCm 10.0.0 gfx1151 + GGUF 116.6 ГБ).
|
|
2734
2734
|
* - На Linux: скачивает актуальные файлы `.hgn` + `.hnpw` для `halogen-flash-server`.
|
|
2735
2735
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* - оценка совместимости каждой модели с реальным бюджетом памяти машины (`evaluateModelFit`);
|
|
5
5
|
* - инспекция файлов репозитория (`inspectHuggingFaceRepo`: `.gguf`, `.safetensors`, `config.json`, квантизации и человекочитаемые размеры);
|
|
6
6
|
* - потоковая загрузка моделей с поддержкой докачки (`Range`), отслеживанием прогресса и отменой (`startHuggingFaceDownload`);
|
|
7
|
-
* - автоматическая регистрация скачанной модели как дочернего узла `$ai` в `/
|
|
7
|
+
* - автоматическая регистрация скачанной модели как дочернего узла `$ai` в `/MODULES/Модели/Local/<Имя>` с её реальными `capabilities`.
|
|
8
8
|
*/
|
|
9
9
|
import fs from 'node:fs';
|
|
10
10
|
import fsp from 'node:fs/promises';
|
|
@@ -1213,7 +1213,7 @@ export function selectFilesToDownload(repoMeta, { files = null, quant = '', moda
|
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
1215
|
/**
|
|
1216
|
-
* Зарегистрировать локальную модель как дочерний узел `$ai` внутри `/
|
|
1216
|
+
* Зарегистрировать локальную модель как дочерний узел `$ai` внутри `/MODULES/Модели/Local/<folderName>`
|
|
1217
1217
|
* с учётом её реального типа (`modality`) и умений (`capabilities`).
|
|
1218
1218
|
*/
|
|
1219
1219
|
export async function registerLocalModelNode({
|
|
@@ -1236,7 +1236,7 @@ export async function registerLocalModelNode({
|
|
|
1236
1236
|
baseUrl = 'http://127.0.0.1:8731/v1/chat/completions',
|
|
1237
1237
|
} = {}) {
|
|
1238
1238
|
const safeName = String(folderName || safeModelFolderName(repoId || label || 'Local-Model')).replace(/[<>:"/\\|?*]/g, '-');
|
|
1239
|
-
const aiDir = path.join(rootDir, '
|
|
1239
|
+
const aiDir = path.join(rootDir, 'MODULES', 'Модели', 'Local', safeName, '$ai');
|
|
1240
1240
|
await fsp.mkdir(aiDir, { recursive: true });
|
|
1241
1241
|
|
|
1242
1242
|
const inferred = inferModalityAndCapabilities({ id: repoId || safeName });
|
|
@@ -1294,7 +1294,7 @@ export default ${JSON.stringify(meta, null, 4)};
|
|
|
1294
1294
|
await fsp.writeFile(classFile, classJs, 'utf-8');
|
|
1295
1295
|
return {
|
|
1296
1296
|
folderName: safeName,
|
|
1297
|
-
modelPath: `/
|
|
1297
|
+
modelPath: `/MODULES/Модели/Local/${safeName}`,
|
|
1298
1298
|
classFile,
|
|
1299
1299
|
meta,
|
|
1300
1300
|
};
|
|
@@ -1518,7 +1518,7 @@ export async function startHuggingFaceDownload({
|
|
|
1518
1518
|
await fsp.mkdir(filesRootDir, { recursive: true });
|
|
1519
1519
|
|
|
1520
1520
|
// Если осталась недокачанная старая папка в #downloads/<folderName>, аккуратно перенесём её в $ai/#weights
|
|
1521
|
-
const legacyStaging = path.join(rootDir, '
|
|
1521
|
+
const legacyStaging = path.join(rootDir, 'MODULES', 'Модели', safeProvider, '#downloads', folderName);
|
|
1522
1522
|
if (fs.existsSync(legacyStaging))
|
|
1523
1523
|
migrateLocalModelsLayoutSync(rootDir);
|
|
1524
1524
|
|
|
@@ -1657,7 +1657,7 @@ export async function startHuggingFaceDownload({
|
|
|
1657
1657
|
retryError: '',
|
|
1658
1658
|
startedAt: Date.now(),
|
|
1659
1659
|
finishedAt: null,
|
|
1660
|
-
modelPath: `/
|
|
1660
|
+
modelPath: `/MODULES/Модели/${safeProvider}/${folderName}`,
|
|
1661
1661
|
error: null,
|
|
1662
1662
|
};
|
|
1663
1663
|
const entryMeta = {
|
|
@@ -1899,9 +1899,9 @@ export async function startHuggingFaceDownload({
|
|
|
1899
1899
|
job.status = 'completed';
|
|
1900
1900
|
job.finishedAt = Date.now();
|
|
1901
1901
|
try {
|
|
1902
|
-
const localNode = await globalThis.WORK?.get_item?.('/
|
|
1902
|
+
const localNode = await globalThis.WORK?.get_item?.('/MODULES/Модели/Local');
|
|
1903
1903
|
localNode?.reset?.();
|
|
1904
|
-
const modelsRoot = await globalThis.WORK?.get_item?.('/
|
|
1904
|
+
const modelsRoot = await globalThis.WORK?.get_item?.('/MODULES/Модели');
|
|
1905
1905
|
modelsRoot?.reset?.();
|
|
1906
1906
|
}
|
|
1907
1907
|
catch { /* ignore */ }
|
|
@@ -2055,7 +2055,7 @@ export function listHuggingFaceDownloads(rootDir = process.cwd()) {
|
|
|
2055
2055
|
stalled: false,
|
|
2056
2056
|
startedAt: state.updatedAt || Date.now(),
|
|
2057
2057
|
finishedAt: state.updatedAt || Date.now(),
|
|
2058
|
-
modelPath: `/
|
|
2058
|
+
modelPath: `/MODULES/Модели/Local/${e.name}`,
|
|
2059
2059
|
error: state.error || null,
|
|
2060
2060
|
nodeMeta: state.nodeMeta || null,
|
|
2061
2061
|
canResume: true,
|
|
@@ -2124,7 +2124,7 @@ export async function discardHuggingFaceDownload({ jobId = '', folderName = '',
|
|
|
2124
2124
|
if (!hasReadyWeightFilesSync(weightsDir))
|
|
2125
2125
|
await fsp.rm(getModelDir(rootDir, targetFolder, 'Local'), { recursive: true, force: true }).catch(() => {});
|
|
2126
2126
|
}
|
|
2127
|
-
const legacyDir = path.join(rootDir, '
|
|
2127
|
+
const legacyDir = path.join(rootDir, 'MODULES', 'Модели', 'Local', '#downloads', targetFolder);
|
|
2128
2128
|
await fsp.rm(legacyDir, { recursive: true, force: true }).catch(() => {});
|
|
2129
2129
|
}
|
|
2130
2130
|
return { ok: true, discarded: targetFolder || key };
|
|
@@ -2169,7 +2169,7 @@ export async function resumeHuggingFaceDownload({
|
|
|
2169
2169
|
const stateHasCustomUrls = Array.isArray(state.files) && state.files.some(f => f?.url || f?.destRelPath);
|
|
2170
2170
|
const resolvedCustomFiles = customFiles ?? entry?.customFiles ?? (stateHasCustomUrls ? state.files : null);
|
|
2171
2171
|
const rawCustomDir = customFilesDir || entry?.customFilesDir || state.customFilesDir || '';
|
|
2172
|
-
const resolvedCustomDir =
|
|
2172
|
+
const resolvedCustomDir = /(?:^|[\\/])Local[\\/]models([\\/]|$)/i.test(rawCustomDir) ? '' : rawCustomDir;
|
|
2173
2173
|
const stateFileNames = Array.isArray(state.files) && state.files.length
|
|
2174
2174
|
? state.files.map(f => f?.name).filter(Boolean)
|
|
2175
2175
|
: null;
|
|
@@ -2309,7 +2309,7 @@ export function readLocalModelMetaSync(rootDir = process.cwd(), folderName = '',
|
|
|
2309
2309
|
const safeName = String(folderName || '').trim();
|
|
2310
2310
|
if (!safeName)
|
|
2311
2311
|
return null;
|
|
2312
|
-
const aiDir = path.join(rootDir, '
|
|
2312
|
+
const aiDir = path.join(rootDir, 'MODULES', 'Модели', String(providerFolder || 'Local'), safeName, '$ai');
|
|
2313
2313
|
const classFile = path.join(aiDir, 'class.js');
|
|
2314
2314
|
if (!fs.existsSync(classFile))
|
|
2315
2315
|
return null;
|
|
@@ -2654,7 +2654,7 @@ export async function repairLocalModelWeightsIfNeeded({
|
|
|
2654
2654
|
state.error = finalJob?.error ? String(finalJob.error) : '';
|
|
2655
2655
|
_weightsRepairCooldown.set(safeName, Date.now());
|
|
2656
2656
|
try {
|
|
2657
|
-
Promise.resolve(globalThis.WORK?.get_item?.(`/
|
|
2657
|
+
Promise.resolve(globalThis.WORK?.get_item?.(`/MODULES/Модели/${providerFolder}/${safeName}`))
|
|
2658
2658
|
.then(node => node?.reset?.())
|
|
2659
2659
|
.catch(() => {});
|
|
2660
2660
|
}
|
|
@@ -2663,7 +2663,7 @@ export async function repairLocalModelWeightsIfNeeded({
|
|
|
2663
2663
|
if (waitForCompletion) {
|
|
2664
2664
|
finalize(job);
|
|
2665
2665
|
try {
|
|
2666
|
-
const localNode = await globalThis.WORK?.get_item?.(`/
|
|
2666
|
+
const localNode = await globalThis.WORK?.get_item?.(`/MODULES/Модели/${providerFolder}/${safeName}`);
|
|
2667
2667
|
localNode?.reset?.();
|
|
2668
2668
|
}
|
|
2669
2669
|
catch { /* ignore */ }
|