odant-work 1.0.55 → 1.0.56
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 +32 -38
- package/$server/$folder/$class/$structure/$server/class.js +17 -1
- package/MODELS/$ai/$folder/$class/$ai/handlers/pages/form/trainer/$handler/trainer.js +26 -1
- package/MODELS/$ai/$folder/$class/$provider/handlers/pages/form/trainer/$handler/trainer.js +8 -1
- package/SERVICES/$service/$folder/$storage/$service/handlers/pages/form/mcp/$handler/mcp.js +22 -4
- package/SERVICES/1C/$service/class.js +209 -0
- package/SERVICES/Bitrix24/$service/class.js +180 -0
- package/SERVICES/CBR/$service/class.js +263 -0
- package/SERVICES/DaData/$service/class.js +352 -0
- package/SERVICES/DuckDuckGo/$service/class.js +3 -2
- package/SERVICES/RuCalendar/$service/class.js +289 -0
- package/SERVICES/SearXNG/$service/class.js +3 -1
- package/SERVICES/Telegram/$service/class.js +170 -114
- package/SERVICES/Weather/$service/class.js +3 -1
- package/SERVICES/Yandex/$service/class.js +4 -2
- package/SERVICES/YandexDisk/$service/class.js +191 -0
- package/SERVICES/readme.md +31 -43
- package/package.json +1 -1
- package/sources/data/progress.md +14 -0
- package/sources/modules/agent/extensions.js +118 -39
- package/sources/modules/agent/voice.js +1 -1
- package/sources/modules/trainer/halogen.js +24 -3
- package/sources/modules/trainer/huggingface.js +73 -11
- package/sources/modules/trainer/index.js +54 -29
- package/sources/modules/trainer/local-engine.js +38 -8
- package/sources/modules/trainer/paths.js +8 -0
- package/sources/modules/trainer/providers.js +14 -0
- package/sources/modules/trainer/worker/local_infer_worker.py +160 -1
- package/sources/server/access/gateway.js +1 -0
- package/SERVICES/ArgoCD/$service/$folder/$class/$service/class.js +0 -356
- package/SERVICES/ArgoCD/$service/$folder/$class/$service/handlers/pages/form/orders/$handler/class.js +0 -244
- package/SERVICES/ArgoCD/$service/$folder/$class/$service/handlers/pages/form/settings/$handler/class.js +0 -135
- package/SERVICES/ArgoCD/$service/class.js +0 -4
- package/SERVICES/ArgoCD/$service/readme.md +0 -63
- package/SERVICES/ArgoCD/PaaS/$service/$folder/$class/$service/class.js +0 -10
- package/SERVICES/ArgoCD/PaaS/$service/$folder/$class/$service/methods/checkDomain/$method/class.js +0 -33
- package/SERVICES/ArgoCD/PaaS/$service/$folder/$class/$service/methods/provision/$method/class.js +0 -225
- package/SERVICES/ArgoCD/PaaS/$service/$folder/$class/$service/methods/submitOrder/$method/class.js +0 -77
- package/SERVICES/ArgoCD/PaaS/$service/$folder/$class/$service/readme.md +0 -33
- package/SERVICES/ArgoCD/PaaS/$service/class.js +0 -347
- package/SERVICES/ArgoCD/PaaS/$service/order/pass.order +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "odant-work",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"createdAt":
|
|
5
|
-
"updatedAt":
|
|
3
|
+
"version": "1.0.56",
|
|
4
|
+
"createdAt": 1795100682741,
|
|
5
|
+
"updatedAt": 1795100682741,
|
|
6
6
|
"files": {
|
|
7
7
|
"run.mjs": "f8918c612e8641e9beee06221be6680aa6fd21f25468451f2ac857fd51772266",
|
|
8
|
-
"package.json": "
|
|
9
|
-
"package-lock.json": "
|
|
8
|
+
"package.json": "6a9a1f4b7a249f8a15411240a190195f1741dbe7c6ae35b1acab65ff354c61ec",
|
|
9
|
+
"package-lock.json": "fc1398ffe439a5b4643d216a1cbf45c1244ad8ebde90660a45f292eec953ad2f",
|
|
10
10
|
"sources/client/class.js": "c3fb8f143fc83aaa2df1ddeddd412d2d4dfe88656578095babe2df34fb3b3922",
|
|
11
11
|
"sources/client/field.js": "ffdd50fa8b6ec515cc42da5fca96658ff2b20e274601a1f926e0031372467a19",
|
|
12
12
|
"sources/client/file.js": "667101d75fa30840370d5be232e518aaac7c1fd52ca05a12da560eef6c0848b0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"sources/data/objects.js": "23f51d5b00cd766fe27879b874738bc9bd9056bd6e27285fb7a52926c0dbc6a8",
|
|
27
27
|
"sources/data/posting.js": "6595bb9ec632539ae7629504db327d25a491e61c1cdc598bb43d08ea0d45548d",
|
|
28
28
|
"sources/data/print.js": "48545bf8f35a6f3188b424aa9c3180508b272e0441375461fc361d4bcd565faf",
|
|
29
|
-
"sources/data/progress.md": "
|
|
29
|
+
"sources/data/progress.md": "465050b4d77a7bd84caf799f94a67a37d8b875bc1248ba7bf69a7dc2acdb9749",
|
|
30
30
|
"sources/data/readme.md": "593fa2ae07aa91bc26d7542275da6953a9cd419240a9a49e00cb62fb9d5d8e36",
|
|
31
31
|
"sources/data/reports.js": "0330f404860fe2589a7d46a2f0fe690ca23249bd841a062a26718742d4fd11d6",
|
|
32
32
|
"sources/data/schema.js": "311b03b75f0aab3bad16d3b389ba08588b68599cc297a671120b7c3e71670d14",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"sources/modules/agent/cost.js": "c911332955560c0227f77da4b76576f63fbd507b09cd5ef580700d74620f665a",
|
|
64
64
|
"sources/modules/agent/diff.js": "4b2284e47e1f656d86a29fb33706c3acb9c0115574ec7a8b7b89795a5228aa99",
|
|
65
65
|
"sources/modules/agent/eval.js": "91f907554630ad53c30d5c1d760bb646bb4dbd10ec854a69453d002368ce25cc",
|
|
66
|
-
"sources/modules/agent/extensions.js": "
|
|
66
|
+
"sources/modules/agent/extensions.js": "b2fb033a1ffe7bd99b5f385ec3c81af8dd8265dd27e5a5c51282d9c137d34bb4",
|
|
67
67
|
"sources/modules/agent/hooks.js": "b74e9d8f4b491b6d16d979891de69941955e50852289f55589c82997405c9048",
|
|
68
68
|
"sources/modules/agent/index.js": "eeb1f34f9ca36e13749389ea544f23e385891d355f6050206bff3f6bd106ceeb",
|
|
69
69
|
"sources/modules/agent/log.js": "03ae1979e2b00459178deda49847c30ed75937fc4f3eea9b778ca6c0f8c4ded0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"sources/modules/agent/types.d.ts": "9d47168bb9fefb1d7c5506afb263c6a6f2e3609602ee78e50c98c02bc052831f",
|
|
112
112
|
"sources/modules/agent/undo.js": "e46f3f1172c6d6e4055332bada74c546c0b0a0e585f1c96eac9b40e4d35b8544",
|
|
113
113
|
"sources/modules/agent/util.js": "9bca6569c16cdfed0134dfec0c99347b3e999692afdc35719886f6083fed87c5",
|
|
114
|
-
"sources/modules/agent/voice.js": "
|
|
114
|
+
"sources/modules/agent/voice.js": "9243a1241690e52bcee9c3b1d3e9be63c11041802f9634d9d8083467d3ad82d1",
|
|
115
115
|
"sources/modules/ai-schema.js": "84ecc7a872dec42e521f9e05366f053e36ae19b185f35c552b945157f95c66f4",
|
|
116
116
|
"sources/modules/bridge/chrome.js": "3bbba8c1726ef8341918bf94d9542093d47e57ec5364f600e863fe2500342e37",
|
|
117
117
|
"sources/modules/bridge/hub.js": "4398d503ad2581fad763ec2f56a6893cd00ecc6f0c0af42523f77de43c4e5f45",
|
|
@@ -176,16 +176,16 @@
|
|
|
176
176
|
"sources/modules/sandbox/vnc-proxy.js": "1c75c2b24d579f254de1c4727621fbbcc7e8a10360f638f4cf1c4bd91184d103",
|
|
177
177
|
"sources/modules/trainer/dataset.js": "e631e1feda2958cf93436cb48a331958d7b029aa52bd42247865e87504b642f7",
|
|
178
178
|
"sources/modules/trainer/downloader.js": "d9e96cb07e7bf64386558be8c2265c482af35a513f42954250add6d5fc87bdc4",
|
|
179
|
-
"sources/modules/trainer/halogen.js": "
|
|
180
|
-
"sources/modules/trainer/huggingface.js": "
|
|
181
|
-
"sources/modules/trainer/index.js": "
|
|
182
|
-
"sources/modules/trainer/local-engine.js": "
|
|
183
|
-
"sources/modules/trainer/paths.js": "
|
|
184
|
-
"sources/modules/trainer/providers.js": "
|
|
179
|
+
"sources/modules/trainer/halogen.js": "bd08cb4a5475e6b6f0d13fdf3458f2b3ef49e1997eb275c85dfd0ca9e6848457",
|
|
180
|
+
"sources/modules/trainer/huggingface.js": "b9fa410fa1f5c09e2ebf17bf0e8885d12439d07a6b40670d8bca090eb3f22e29",
|
|
181
|
+
"sources/modules/trainer/index.js": "f1e8a2e64d6f7c9969c511552d18ffa4efacae94a0beff049d947912b9fb6033",
|
|
182
|
+
"sources/modules/trainer/local-engine.js": "94cdb6d99e12fb4e6e7c1ca8ae8532d7ec0c73dc6aba089bedf8b07c232623ba",
|
|
183
|
+
"sources/modules/trainer/paths.js": "4d3e2503889ef2cdb6feb5979576ac2b289974cdb407a40e1bef797ce421e45c",
|
|
184
|
+
"sources/modules/trainer/providers.js": "190ca237108ee386fd7f27c66ea4be60411b2823b1c027fc6e44dfdcb419ec86",
|
|
185
185
|
"sources/modules/trainer/runner.js": "328843672fe0c1bd7e8c35c2e25285c31a9f749e04814e64c32e8cae74086024",
|
|
186
186
|
"sources/modules/trainer/tar-stream.js": "52f1739579a01818b53d04a93fd05a91c49a0716019f309a6fca951ba112794f",
|
|
187
187
|
"sources/modules/trainer/transfer.js": "2c603d538e0f85e1794e2f304081fac136f0ff72f85d8b00c2141c7402b3a1fb",
|
|
188
|
-
"sources/modules/trainer/worker/local_infer_worker.py": "
|
|
188
|
+
"sources/modules/trainer/worker/local_infer_worker.py": "75eedb50484528e1a896f702fcf4d00f9f42db4a0fdddcd7fe09fdc042380d82",
|
|
189
189
|
"sources/modules/trainer/worker/unsloth_train.py": "7774d94ffa6f60eed20c57a8dfdc12621d5d9f74d594c605dff32ff70e321e33",
|
|
190
190
|
"sources/modules/user-profile/user-profile.js": "5c8fd002809848b204aee83a44161375e8144bffcc048fde748f4f778162bbef",
|
|
191
191
|
"sources/modules/user-profile/user-token.js": "3797685232684e9e80261a2e63f70cbff4ef1bcc3ded6f755800804e9848d7d9",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"sources/reactor.js": "fa132f59bac51e0d7b05a109b83100046eacddfc84576bef6115c2605b57ebf6",
|
|
195
195
|
"sources/readme.md": "045fa4d63779731d4c535deefa7bfb2956b021ab25a4d86b8dc41d6f964386f2",
|
|
196
196
|
"sources/server/access/audit.js": "b3e2cf891faf4ce97f7e8eb96a8482727ed1ad25d0ed5d6cc4e30eb922917952",
|
|
197
|
-
"sources/server/access/gateway.js": "
|
|
197
|
+
"sources/server/access/gateway.js": "e4652e6d682acfe0f5ba0802cf631ed98e88dfd525bde823d25b6be58c39c97d",
|
|
198
198
|
"sources/server/access/index.js": "c98fd2acc4164e299334ab865a12a07218a81c6197e1021eecb155f0096688b7",
|
|
199
199
|
"sources/server/access/links.js": "a3ab8ad5a99407bb4f655669a89bf20f955125ccc4c4deaa6a9f8a3d9a79a4b2",
|
|
200
200
|
"sources/server/access/policy.js": "e5fd884ba2798b9b91efbf806de34c130e16df205dc254da6bfadfc48d824e09",
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
"$server/$folder/$class/$structure/$project/class.js": "b41bad6f4a2dd1a2bb3a0f1155778574c6a333f8ba17e59ba2d9dcea7df913d3",
|
|
584
584
|
"$server/$folder/$class/$structure/$project/handlers/methods/archive/$handler/class.js": "9c60e450f0296a83e86b1303b92bc3d625dcf38582c1c6af624b816a11db46cb",
|
|
585
585
|
"$server/$folder/$class/$structure/$project/readme.md": "bcf4df76086c5f012b779303ebcb40d4e40fc922ae1c0e0c72273abf939aea76",
|
|
586
|
-
"$server/$folder/$class/$structure/$server/class.js": "
|
|
586
|
+
"$server/$folder/$class/$structure/$server/class.js": "4ef01e5d854c72c139aae24367fc58a1f3fb24f633484d2cff9cdfdd39c067b4",
|
|
587
587
|
"$server/$folder/$class/$structure/$server/handlers/methods/distro/$handler/class.js": "d8a39ca7ce76d4ae971f4576b59ff422f7999eafe0fdfd9185dbd6a562be1426",
|
|
588
588
|
"$server/$folder/$class/$structure/$server/handlers/methods/npm/$handler/class.js": "981f5321d3d80ce5a9c561d4474587fbebe08b25bbd450bb5d797a91b18570ac",
|
|
589
589
|
"$server/$folder/$class/$structure/$server/handlers/pages/form/license/$handler/class.js": "87d545f6ba25fc835701a8e259bb0add544dea5ab776f323951eda4ffc00691f",
|
|
@@ -981,13 +981,13 @@
|
|
|
981
981
|
"MODULES/Register/STRUCTS/Паспорт/$struct/class.js": "4a50808e4db7741b0384a775177545d71686a680ccda7ef0ec68bf81f9c988b5",
|
|
982
982
|
"MODELS/$ai/$folder/$class/$ai/class.js": "766a73b4e110df0643edb2609e4bf46250e21c636ae6e86417147b234aa87c30",
|
|
983
983
|
"MODELS/$ai/$folder/$class/$ai/handlers/pages/form/trainer/$handler/class.js": "fe5ba834156495c28a34acd4b70a6b6b3bdfccb67ec7bf99e92a292afbb66d19",
|
|
984
|
-
"MODELS/$ai/$folder/$class/$ai/handlers/pages/form/trainer/$handler/trainer.js": "
|
|
984
|
+
"MODELS/$ai/$folder/$class/$ai/handlers/pages/form/trainer/$handler/trainer.js": "7a75fcde948c7ad106719e9134accca35c7f1d06aeb3ac5a903b69dc50a1d428",
|
|
985
985
|
"MODELS/$ai/$folder/$class/$ai/methods/chat/$method/class.js": "02fbb40d8ce93fbf568a6a8036c199e2af815be3d63d81f815aeb1da999db717",
|
|
986
986
|
"MODELS/$ai/$folder/$class/$provider/class.js": "069073501b93a95bb9d77e59ce71e53c7a8bcab2564c391b551f68a2453ac486",
|
|
987
987
|
"MODELS/$ai/$folder/$class/$provider/handlers/pages/form/provider/$handler/class.js": "8d327820cefd696d351ac4fa7998994039e4d57ef7a9f8ae297209e4dd1b0a9e",
|
|
988
988
|
"MODELS/$ai/$folder/$class/$provider/handlers/pages/form/provider/$handler/provider.js": "b9ddf0040a9cd12e0dacd2dd3a61a1f0e62686cc664d02ef446326bc3991f4ce",
|
|
989
989
|
"MODELS/$ai/$folder/$class/$provider/handlers/pages/form/trainer/$handler/class.js": "06b279a1c053deb37dd7401c84df7f9370309b8dfbd35b368ab1bab4f635cb3f",
|
|
990
|
-
"MODELS/$ai/$folder/$class/$provider/handlers/pages/form/trainer/$handler/trainer.js": "
|
|
990
|
+
"MODELS/$ai/$folder/$class/$provider/handlers/pages/form/trainer/$handler/trainer.js": "fda7a3da3d4dff1e883b0b2c4565c0ee34f6872fc9e5aee9606df735bdb5dd0f",
|
|
991
991
|
"MODELS/$ai/$folder/$class/$provider/readme.md": "d6ceef2010231ab121510c3d3f35630dd7009a069c7723f6673a0e264799b227",
|
|
992
992
|
"MODELS/$ai/class.js": "54e1bbbde88f8b1f272ff7f5cad87243407591748a44719b7ec90ae2b4962de7",
|
|
993
993
|
"MODELS/$ai/readme.md": "90d70305a2c85312282cf67cc468a0f0b417495cb3d5b3d2ca60c6f44b81cb77",
|
|
@@ -1031,26 +1031,20 @@
|
|
|
1031
1031
|
"MODELS/Yandex/YandexGPT Reasoning/$ai/class.js": "f96ec889c07d9b676d329eeed373a8603002682cfd7d4225896d13a55126e31c",
|
|
1032
1032
|
"SERVICES/$service/$folder/$storage/$service/class.js": "b00df43ea83a31b243fc8c899b8a6d949e47849c48dc03241cb78b9b9fda1f26",
|
|
1033
1033
|
"SERVICES/$service/$folder/$storage/$service/handlers/pages/form/mcp/$handler/class.js": "f59282ed99bd8d1483f9c6162a635f326c4224d7ffec9daa64dc2c22305034a5",
|
|
1034
|
-
"SERVICES/$service/$folder/$storage/$service/handlers/pages/form/mcp/$handler/mcp.js": "
|
|
1034
|
+
"SERVICES/$service/$folder/$storage/$service/handlers/pages/form/mcp/$handler/mcp.js": "87b868bf8f353e5935614de94a161791e1c3f04175ee03be782fde813035274a",
|
|
1035
1035
|
"SERVICES/$service/class.js": "74821f0a44aa1074ba3d8e15b28eb400e6ec43e122ea6d57f9934fa844daacbb",
|
|
1036
|
-
"SERVICES/
|
|
1037
|
-
"SERVICES/
|
|
1038
|
-
"SERVICES/
|
|
1039
|
-
"SERVICES/
|
|
1040
|
-
"SERVICES/
|
|
1041
|
-
"SERVICES/
|
|
1042
|
-
"SERVICES/
|
|
1043
|
-
"SERVICES/
|
|
1044
|
-
"SERVICES/
|
|
1045
|
-
"SERVICES/
|
|
1046
|
-
"SERVICES/
|
|
1047
|
-
"SERVICES/
|
|
1048
|
-
"SERVICES/DuckDuckGo/$service/class.js": "84ee069cfe75279daab56dbf9c3b45ce07cec5d1980b2a143ea0f52fb787ea93",
|
|
1049
|
-
"SERVICES/readme.md": "e3aa2e76678109577eaf9a2f30b20a48429141cc030f54cc1e1d558e2239d608",
|
|
1050
|
-
"SERVICES/SearXNG/$service/class.js": "97977b60aa9261fa763d2535f4dc418e55a295503872510816e53515130e1ca9",
|
|
1051
|
-
"SERVICES/Telegram/$service/class.js": "c3fe6d02bd3886a890b7ad214ac93e4567088571e0ca5b1c47e8e6474f0ffb9b",
|
|
1052
|
-
"SERVICES/Weather/$service/class.js": "d36c5447e042e9ea3736745bf40b162b72dcebee98d9b6cd0cf67c57e5ba4425",
|
|
1053
|
-
"SERVICES/Yandex/$service/class.js": "fa54c22b8285ff825fbbdda699498e96a0e4ca443c1f8326164d8a38e394b342",
|
|
1036
|
+
"SERVICES/1C/$service/class.js": "bf0045fab9851aa779c288b3c057e717d30bbcb7b0ab7ab2a61292537c3a2a6d",
|
|
1037
|
+
"SERVICES/Bitrix24/$service/class.js": "969538b8162e44b64fc862b68bc5a124d3000367577b66ae5e31645c7cc6d65f",
|
|
1038
|
+
"SERVICES/CBR/$service/class.js": "62b14542c1ba7df4a9be4ae02965c9fc98a7039c8316e42b195143b11b8981f9",
|
|
1039
|
+
"SERVICES/DaData/$service/class.js": "32f0e72bb2950a4b725d80f67ef9326f1685e274940f13596b828af1173cc0d1",
|
|
1040
|
+
"SERVICES/DuckDuckGo/$service/class.js": "b09ae558fe28369853c8a4dda1b2d3d66202f38281e19e579fa5bf96f095444c",
|
|
1041
|
+
"SERVICES/readme.md": "e27dfc6e998ff733aff8079e397dccaf237ce9bf104b83a9adc92566e1bd8c5f",
|
|
1042
|
+
"SERVICES/RuCalendar/$service/class.js": "3a8824da32079be2c614de079bf8a8ad3a8bfa5eb9724782398d9f015c566199",
|
|
1043
|
+
"SERVICES/SearXNG/$service/class.js": "87d8302c57b6cbf5fe99c342a112e98e3746ae19e6da1cc973d8a537341a7c9e",
|
|
1044
|
+
"SERVICES/Telegram/$service/class.js": "374d9644ed880f32d4e43e4ccdea290a3a3774f8c0096091ca7da502f94f99f2",
|
|
1045
|
+
"SERVICES/Weather/$service/class.js": "52987470a58116df3e57e30418d2e32d7371b9effef34be83a00435c73fa7d2f",
|
|
1046
|
+
"SERVICES/Yandex/$service/class.js": "bb2e9c3018bb0ac25e38d9b39e04fd67b9b232bbb33d6969e3a3505cdd98b486",
|
|
1047
|
+
"SERVICES/YandexDisk/$service/class.js": "22d57610d7ce8f652fcf330ac4d8731fb70dcf756abae7e1c75c186c8db5986c",
|
|
1054
1048
|
"USERS/$users/class.js": "be58697c501acedac15826cabdf3ec55ded77960d3712d5a23df906acc23349b",
|
|
1055
1049
|
"ORGANIZATIONS/$domain/$folder/$class/$base/$folder/$class/$structure/$base/class.js": "e00de6f0b3ec8066ec9c6c21b512b1c839af937435d68e26dd7675204e978f07",
|
|
1056
1050
|
"ORGANIZATIONS/$domain/$folder/$class/$base/class.js": "fbccd9f865b56a045dd444c2c0c8af110305324ee5d863f68404f85e3869f626",
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
isSystem: true,
|
|
3
|
-
icon: './odant.png'
|
|
3
|
+
icon: './odant.png',
|
|
4
|
+
ACCESS: {
|
|
5
|
+
distro_info: 'read',
|
|
6
|
+
export_distro: 'read',
|
|
7
|
+
},
|
|
8
|
+
async distro_info(params = {}) {
|
|
9
|
+
const { pathToFileURL } = await import('node:url');
|
|
10
|
+
const path = await import('node:path');
|
|
11
|
+
const { serverDistroMethods } = await import(pathToFileURL(path.resolve('sources/server/class/distro.js')).href);
|
|
12
|
+
return serverDistroMethods.distro_info.call(this, params);
|
|
13
|
+
},
|
|
14
|
+
async export_distro(params = {}) {
|
|
15
|
+
const { pathToFileURL } = await import('node:url');
|
|
16
|
+
const path = await import('node:path');
|
|
17
|
+
const { serverDistroMethods } = await import(pathToFileURL(path.resolve('sources/server/class/distro.js')).href);
|
|
18
|
+
return serverDistroMethods.export_distro.call(this, params);
|
|
19
|
+
},
|
|
4
20
|
}
|
|
@@ -292,7 +292,15 @@ export default {
|
|
|
292
292
|
{{$for.item.label}}
|
|
293
293
|
</button>
|
|
294
294
|
</div>
|
|
295
|
-
<div class="chips" style="gap:6px;" ~if="ttsKind
|
|
295
|
+
<div class="chips" style="gap:6px;" ~if="ttsKind === 'kokoro'">
|
|
296
|
+
<button type="button" class="btn" ~for="kokoroVoicePresets"
|
|
297
|
+
:style="testKokoroVoice === $for.item.speaker ? 'border-color:var(--accent-color,#4f46e5);color:var(--accent-color,#4f46e5);' : ''"
|
|
298
|
+
@tap="testKokoroVoice = $for.item.speaker">
|
|
299
|
+
{{$for.item.label}}
|
|
300
|
+
</button>
|
|
301
|
+
</div>
|
|
302
|
+
<div ~if="ttsKind === 'kokoro'" style="font-size:12px;opacity:0.8;">Kokoro-82M работает с EN/FR/ES/IT/PT/JA/ZH (для русского языка используйте Piper TTS RU или Qwen3-TTS).</div>
|
|
303
|
+
<div class="chips" style="gap:6px;" ~if="ttsKind !== 'base' && ttsKind !== 'piper' && ttsKind !== 'kokoro'">
|
|
296
304
|
<button type="button" class="btn" ~for="ttsVoicePresets"
|
|
297
305
|
:style="(isCustomVoice06B ? testTtsVoice === $for.item.speaker : testTtsInstructions === $for.item.value) ? 'border-color:var(--accent-color,#4f46e5);color:var(--accent-color,#4f46e5);' : ''"
|
|
298
306
|
@tap="selectTtsPreset($for.item)">
|
|
@@ -378,6 +386,15 @@ export default {
|
|
|
378
386
|
{ label: 'Мужской (Дмитрий)', speaker: 'dmitri' },
|
|
379
387
|
{ label: 'Женский (Ирина)', speaker: 'irina' },
|
|
380
388
|
],
|
|
389
|
+
testKokoroVoice: 'af_heart',
|
|
390
|
+
kokoroVoicePresets: [
|
|
391
|
+
{ label: 'EN Женский (Heart)', speaker: 'af_heart' },
|
|
392
|
+
{ label: 'EN Женский (Bella)', speaker: 'af_bella' },
|
|
393
|
+
{ label: 'EN Мужской (Adam)', speaker: 'am_adam' },
|
|
394
|
+
{ label: 'EN Мужской (Michael)', speaker: 'am_michael' },
|
|
395
|
+
{ label: 'UK Женский (Emma)', speaker: 'bf_emma' },
|
|
396
|
+
{ label: 'UK Мужской (George)', speaker: 'bm_george' },
|
|
397
|
+
],
|
|
381
398
|
ttsVoicePresets: [
|
|
382
399
|
{ label: 'Мужской баритон', value: 'Мужской баритон, спокойная деловая интонация', speaker: 'Ryan' },
|
|
383
400
|
{ label: 'Мужской диктор', value: 'Мужской дикторский голос, глубокий уверенный тембр, чёткая дикция', speaker: 'Aiden' },
|
|
@@ -433,6 +450,8 @@ export default {
|
|
|
433
450
|
const hay = `${id} ${task}`;
|
|
434
451
|
if (hay.includes('piper'))
|
|
435
452
|
return 'piper';
|
|
453
|
+
if (hay.includes('kokoro'))
|
|
454
|
+
return 'kokoro';
|
|
436
455
|
if (hay.includes('voicedesign') || hay.includes('voice_design'))
|
|
437
456
|
return 'voice_design';
|
|
438
457
|
if (hay.includes('customvoice') || hay.includes('custom_voice'))
|
|
@@ -563,6 +582,9 @@ export default {
|
|
|
563
582
|
inf = { ...inf.DATA, id: inf.id || inf.DATA.id, label: inf.label || inf.DATA.label, path: inf.path || inf.DATA.path };
|
|
564
583
|
}
|
|
565
584
|
this.info = inf;
|
|
585
|
+
if (this.ttsKind === 'kokoro' && this.testTtsText === 'Привет! Локальный синтез речи платформы WORK работает.') {
|
|
586
|
+
this.testTtsText = 'Hello! Local Kokoro-82M text-to-speech in WORK is working smoothly.';
|
|
587
|
+
}
|
|
566
588
|
if (inf?.weightsRepair)
|
|
567
589
|
this.weightsRepair = inf.weightsRepair;
|
|
568
590
|
this.modelEnabled = inf?.enabled !== false && inf?.DATA?.enabled !== false;
|
|
@@ -704,6 +726,9 @@ export default {
|
|
|
704
726
|
if (this.ttsKind === 'piper') {
|
|
705
727
|
body.voice = this.testPiperVoice || 'dmitri';
|
|
706
728
|
}
|
|
729
|
+
else if (this.ttsKind === 'kokoro') {
|
|
730
|
+
body.voice = this.testKokoroVoice || 'af_heart';
|
|
731
|
+
}
|
|
707
732
|
else {
|
|
708
733
|
if (!this.isCustomVoice06B && this.testTtsInstructions.trim())
|
|
709
734
|
body.instructions = this.testTtsInstructions.trim();
|
|
@@ -545,12 +545,14 @@ export default {
|
|
|
545
545
|
|
|
546
546
|
<!-- Состояние: доступна к установке -->
|
|
547
547
|
<div class="toolbar" ~if="$for.item.state === 'available'">
|
|
548
|
+
<span class="status-chip warn" ~if="$for.item.diffusersCompatible === false" :title="$for.item.compatibilityNote">Только ComfyUI</span>
|
|
548
549
|
<span class="mem-tag" :title="$for.item.fitLabel || ($for.item.fit === 'too_large' ? 'Требуется больше памяти, чем доступно на этом ПК' : ($for.item.fit === 'unknown' ? 'Число параметров не указано в названии — размер уточнится при установке' : 'Подходит по памяти'))">
|
|
549
550
|
<span class="dot" ~class="$for.item.fit === 'optimal' ? 'on' : ($for.item.fit === 'inference_only' ? 'warn' : 'off')"></span>
|
|
550
551
|
<span ~if="$for.item.ramGb"><span ~if="$for.item.device">{{$for.item.device}} · </span>~{{$for.item.ramGb}} ГБ</span>
|
|
551
552
|
<span ~if="!$for.item.ramGb">размер не указан</span>
|
|
552
553
|
</span>
|
|
553
|
-
<button type="button" class="btn primary" @tap="installUnifiedModel($for.item)">Установить</button>
|
|
554
|
+
<button type="button" class="btn primary" ~if="$for.item.diffusersCompatible !== false" @tap="installUnifiedModel($for.item)">Установить</button>
|
|
555
|
+
<button type="button" class="btn" ~if="$for.item.diffusersCompatible === false" disabled :title="$for.item.compatibilityNote">Несовместима</button>
|
|
554
556
|
</div>
|
|
555
557
|
</div>
|
|
556
558
|
</div>
|
|
@@ -580,6 +582,9 @@ export default {
|
|
|
580
582
|
</div>
|
|
581
583
|
|
|
582
584
|
<!-- Текст ошибки на той же карточке при обрыве или несовместимости с ОС -->
|
|
585
|
+
<div class="inline-warn" ~if="$for.item.state === 'available' && $for.item.diffusersCompatible === false && $for.item.compatibilityNote">
|
|
586
|
+
{{$for.item.compatibilityNote}}
|
|
587
|
+
</div>
|
|
583
588
|
<div class="inline-err" ~if="$for.item.incompatibleOnPlatform && $for.item.incompatibleReason">
|
|
584
589
|
{{$for.item.incompatibleReason}}
|
|
585
590
|
</div>
|
|
@@ -954,6 +959,8 @@ export default {
|
|
|
954
959
|
ramGb: Number(item.ramRequiredGb) || 0,
|
|
955
960
|
fit: item.fit || 'unknown',
|
|
956
961
|
fitLabel: item.fitLabel || '',
|
|
962
|
+
diffusersCompatible: item.diffusersCompatible !== false,
|
|
963
|
+
compatibilityNote: item.compatibilityNote || '',
|
|
957
964
|
device: '',
|
|
958
965
|
download: null,
|
|
959
966
|
progressPct: 0,
|
|
@@ -434,7 +434,7 @@ ODA({
|
|
|
434
434
|
<!-- Встроенные коннекторы /SERVICES -->
|
|
435
435
|
<div class="section-card">
|
|
436
436
|
<div class="section-head">
|
|
437
|
-
<h3
|
|
437
|
+
<h3>🇷🇺 Предустановленные сервисы и бизнес-коннекторы /SERVICES ({{connectors.length}})</h3>
|
|
438
438
|
</div>
|
|
439
439
|
<div class="cards-grid">
|
|
440
440
|
<div class="srv-card" ~for="connectors">
|
|
@@ -446,10 +446,16 @@ ODA({
|
|
|
446
446
|
</div>
|
|
447
447
|
<div class="srv-sub">{{$for.item.description}}</div>
|
|
448
448
|
</div>
|
|
449
|
-
<span class="status-pill status-on"
|
|
449
|
+
<span class="status-pill" :class="$for.item.enabled ? 'status-on' : 'status-off'">
|
|
450
|
+
{{$for.item.enabled ? 'Включён' : 'Выключен'}}
|
|
451
|
+
</span>
|
|
450
452
|
</div>
|
|
451
453
|
<div ~if="$for.item.tools?.length" style="font-size:12px;">
|
|
452
|
-
|
|
454
|
+
Инструменты ИИ: <span class="code-chip">{{$for.item.tools.join(', ')}}</span>
|
|
455
|
+
</div>
|
|
456
|
+
<div class="btn-row">
|
|
457
|
+
<button class="btn" @tap="openConnector($for.item)">⚙ Открыть сервис</button>
|
|
458
|
+
<button class="btn" @tap="toggleMcp($for.item)">{{$for.item.enabled ? '⏸ Выключить' : '▶ Включить'}}</button>
|
|
453
459
|
</div>
|
|
454
460
|
</div>
|
|
455
461
|
</div>
|
|
@@ -594,10 +600,22 @@ ODA({
|
|
|
594
600
|
},
|
|
595
601
|
get mcpTabItems() {
|
|
596
602
|
return [
|
|
597
|
-
{ id: 'mcp', label: '
|
|
603
|
+
{ id: 'mcp', label: 'Сервисы и MCP', icon: 'carbon:plug', count: (this.mcpServers?.length || 0) + (this.connectors?.length || 0), showZeroCount: true },
|
|
598
604
|
{ id: 'skills', label: 'Навыки ИИ (Skills)', icon: 'carbon:skill-level', count: this.skills?.length || 0, showZeroCount: true },
|
|
599
605
|
];
|
|
600
606
|
},
|
|
607
|
+
async openConnector(srv) {
|
|
608
|
+
if (!srv?.path)
|
|
609
|
+
return;
|
|
610
|
+
try {
|
|
611
|
+
const item = await WORK.get_item(srv.path);
|
|
612
|
+
if (item && typeof window?.execute === 'function')
|
|
613
|
+
window.execute(item, { view: 'builder' });
|
|
614
|
+
}
|
|
615
|
+
catch (e) {
|
|
616
|
+
this.showNotice(e?.message || String(e), true);
|
|
617
|
+
}
|
|
618
|
+
},
|
|
601
619
|
get mcpTabIndex() {
|
|
602
620
|
const idx = this.mcpTabItems.findIndex(t => t.id === this.activeTab);
|
|
603
621
|
return idx >= 0 ? idx : 0;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 1С:Предприятие (OData) — интеграция с типовыми конфигурациями 1С
|
|
3
|
+
* (1С:Бухгалтерия 3.0, 1С:УНФ, 1С:Управление торговлей 11, 1С:КА, 1С:ERP)
|
|
4
|
+
* через стандартный REST-интерфейс OData (`/odata/standard.odata`).
|
|
5
|
+
*
|
|
6
|
+
* Настройка подключения:
|
|
7
|
+
* - `baseUrl`: адрес опубликованной базы 1С, например `http://localhost/buh/odata/standard.odata`;
|
|
8
|
+
* - учётные данные: в `#secret/1c.json` (`{ "url": "...", "user": "Администратор", "password": "..." }`)
|
|
9
|
+
* или `apiKey` (Basic-строка `user:password` / Bearer).
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
async function resolve1CConfig(service) {
|
|
13
|
+
let sec = null;
|
|
14
|
+
try {
|
|
15
|
+
sec = await service.read_secret({ filename: '1c.json' });
|
|
16
|
+
}
|
|
17
|
+
catch { /* ignore */ }
|
|
18
|
+
let baseUrl = String(sec?.url || sec?.baseUrl || service?.baseUrl || service?.DATA?.baseUrl || '').trim();
|
|
19
|
+
if (baseUrl && !/\/odata\/standard\.odata\/?$/i.test(baseUrl))
|
|
20
|
+
baseUrl = baseUrl.replace(/\/+$/, '') + '/odata/standard.odata';
|
|
21
|
+
baseUrl = baseUrl.replace(/\/+$/, '');
|
|
22
|
+
|
|
23
|
+
const user = String(sec?.user || sec?.username || '').trim();
|
|
24
|
+
const password = String(sec?.password ?? '');
|
|
25
|
+
const apiKey = String(sec?.token || service?.apiKey || service?.DATA?.apiKey || '').trim();
|
|
26
|
+
|
|
27
|
+
let authHeader = '';
|
|
28
|
+
if (user) {
|
|
29
|
+
authHeader = 'Basic ' + Buffer.from(`${user}:${password}`, 'utf8').toString('base64');
|
|
30
|
+
}
|
|
31
|
+
else if (apiKey && !apiKey.startsWith('secret:')) {
|
|
32
|
+
authHeader = apiKey.includes(':')
|
|
33
|
+
? 'Basic ' + Buffer.from(apiKey, 'utf8').toString('base64')
|
|
34
|
+
: (apiKey.startsWith('Basic ') || apiKey.startsWith('Bearer ') ? apiKey : `Basic ${apiKey}`);
|
|
35
|
+
}
|
|
36
|
+
return { baseUrl, authHeader };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async function odataRequest(service, relPath = '', { method = 'GET', query = {}, body = null } = {}) {
|
|
40
|
+
const { baseUrl, authHeader } = await resolve1CConfig(service);
|
|
41
|
+
if (!baseUrl || baseUrl.includes('example.com')) {
|
|
42
|
+
return {
|
|
43
|
+
notConfigured: true,
|
|
44
|
+
hint: 'Укажите адрес публикации OData вашей базы 1С в поле baseUrl сервиса /SERVICES/1C (например http://1c-server/buh/odata/standard.odata) и учётные данные в #secret/1c.json ({ "user": "...", "password": "..." }).',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const qs = new URLSearchParams({ $format: 'json', ...query });
|
|
48
|
+
const sep = relPath.startsWith('/') ? '' : '/';
|
|
49
|
+
const url = `${baseUrl}${relPath ? sep + relPath : ''}?${qs.toString()}`;
|
|
50
|
+
const headers = {
|
|
51
|
+
Accept: 'application/json',
|
|
52
|
+
...(authHeader ? { Authorization: authHeader } : {}),
|
|
53
|
+
...(body ? { 'Content-Type': 'application/json; charset=utf-8' } : {}),
|
|
54
|
+
};
|
|
55
|
+
const res = await fetch(url, {
|
|
56
|
+
method,
|
|
57
|
+
headers,
|
|
58
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
59
|
+
signal: AbortSignal.timeout(20000),
|
|
60
|
+
});
|
|
61
|
+
const raw = await res.text();
|
|
62
|
+
if (!res.ok)
|
|
63
|
+
return { error: `1С OData HTTP ${res.status}: ${raw.slice(0, 300)}` };
|
|
64
|
+
try {
|
|
65
|
+
return JSON.parse(raw);
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return { raw: raw.slice(0, 2000) };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default {
|
|
73
|
+
icon: 'carbon:data-share',
|
|
74
|
+
label: '1С:Предприятие (OData)',
|
|
75
|
+
description: 'Обмен справочниками, контрагентами, номенклатурой и документами с 1С:Бухгалтерия / УНФ / УТ / ERP через стандартный REST-интерфейс OData',
|
|
76
|
+
baseUrl: '',
|
|
77
|
+
apiKey: '',
|
|
78
|
+
capabilities: ['1c', 'erp', 'odata', 'accounting'],
|
|
79
|
+
enabled: true,
|
|
80
|
+
|
|
81
|
+
SCHEMA: {
|
|
82
|
+
list_entities: {
|
|
83
|
+
readonly: true,
|
|
84
|
+
description: 'Получить список опубликованных в 1С справочников (Catalog_*), документов (Document_*), планов счетов и регистров (InformationRegister_*, AccumulationRegister_*).',
|
|
85
|
+
params: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: {
|
|
88
|
+
filter: { type: 'string', description: 'Фильтр по названию коллекции (например "Контрагенты", "Номенклатура", "Реализация")' },
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
query_entities: {
|
|
93
|
+
readonly: true,
|
|
94
|
+
description: 'Выбрать объекты из справочника, документа или регистра 1С по протоколу OData ($filter, $select, $top, $orderby).',
|
|
95
|
+
params: {
|
|
96
|
+
type: 'object',
|
|
97
|
+
properties: {
|
|
98
|
+
entity: { type: 'string', description: 'Имя коллекции OData в 1С, например "Catalog_Контрагенты", "Catalog_Номенклатура" или "Document_РеализацияТоваровУслуг"' },
|
|
99
|
+
filter: { type: 'string', description: 'Выражение OData $filter, например "ИНН eq \'7707083893\' and DeletionMark eq false"' },
|
|
100
|
+
select: { type: 'string', description: 'Поля через запятую ($select), например "Ref_Key,Code,Description,ИНН,КПП"' },
|
|
101
|
+
orderby: { type: 'string', description: 'Сортировка ($orderby), например "Date desc"' },
|
|
102
|
+
top: { type: 'number', description: 'Максимальное количество записей ($top, по умолчанию 25)' },
|
|
103
|
+
},
|
|
104
|
+
required: ['entity'],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
get_counterparty_by_inn: {
|
|
108
|
+
readonly: true,
|
|
109
|
+
description: 'Найти контрагента в справочнике Catalog_Контрагенты базы 1С по ИНН.',
|
|
110
|
+
params: {
|
|
111
|
+
type: 'object',
|
|
112
|
+
properties: {
|
|
113
|
+
inn: { type: 'string', description: 'ИНН контрагента (10 или 12 цифр)' },
|
|
114
|
+
},
|
|
115
|
+
required: ['inn'],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
create_entity: {
|
|
119
|
+
readonly: false,
|
|
120
|
+
description: 'Создать новый элемент справочника или документ в 1С через POST /odata/standard.odata/<entity>.',
|
|
121
|
+
params: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
properties: {
|
|
124
|
+
entity: { type: 'string', description: 'Имя коллекции OData в 1С, например "Catalog_Контрагенты"' },
|
|
125
|
+
data: { type: 'object', description: 'Поля создаваемого объекта 1С в формате JSON' },
|
|
126
|
+
},
|
|
127
|
+
required: ['entity', 'data'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
async list_entities(params = {}) {
|
|
133
|
+
try {
|
|
134
|
+
const res = await odataRequest(this, '');
|
|
135
|
+
if (res?.notConfigured || res?.error)
|
|
136
|
+
return res;
|
|
137
|
+
const sets = (res?.value || []).map(v => ({
|
|
138
|
+
name: v.name || v.url,
|
|
139
|
+
kind: v.kind || 'EntitySet',
|
|
140
|
+
}));
|
|
141
|
+
const q = String(params.filter || '').trim().toLowerCase();
|
|
142
|
+
const filtered = q ? sets.filter(s => String(s.name).toLowerCase().includes(q)) : sets;
|
|
143
|
+
return {
|
|
144
|
+
source: '1C OData',
|
|
145
|
+
total: filtered.length,
|
|
146
|
+
entities: filtered.slice(0, 100),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
catch (e) {
|
|
150
|
+
return { error: String(e?.message || e) };
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
async query_entities(params = {}) {
|
|
155
|
+
const entity = String(params.entity || '').trim();
|
|
156
|
+
if (!entity)
|
|
157
|
+
return { error: 'query_entities: укажите имя коллекции entity (например Catalog_Контрагенты)' };
|
|
158
|
+
const top = Math.min(Math.max(Number(params.top) || 25, 1), 200);
|
|
159
|
+
const query = { $top: String(top) };
|
|
160
|
+
if (params.filter) query.$filter = String(params.filter).trim();
|
|
161
|
+
if (params.select) query.$select = String(params.select).trim();
|
|
162
|
+
if (params.orderby) query.$orderby = String(params.orderby).trim();
|
|
163
|
+
|
|
164
|
+
try {
|
|
165
|
+
const res = await odataRequest(this, encodeURI(entity), { query });
|
|
166
|
+
if (res?.notConfigured || res?.error)
|
|
167
|
+
return res;
|
|
168
|
+
const items = Array.isArray(res?.value) ? res.value : [];
|
|
169
|
+
return {
|
|
170
|
+
source: '1C OData',
|
|
171
|
+
entity,
|
|
172
|
+
count: items.length,
|
|
173
|
+
items,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
catch (e) {
|
|
177
|
+
return { error: String(e?.message || e) };
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
async get_counterparty_by_inn(params = {}) {
|
|
182
|
+
const inn = String(params.inn || '').replace(/\D+/g, '');
|
|
183
|
+
if (!inn)
|
|
184
|
+
return { error: 'get_counterparty_by_inn: укажите ИНН' };
|
|
185
|
+
return this.query_entities({
|
|
186
|
+
entity: 'Catalog_Контрагенты',
|
|
187
|
+
filter: `ИНН eq '${inn}' and DeletionMark eq false`,
|
|
188
|
+
select: 'Ref_Key,Code,Description,НаименованиеПолное,ИНН,КПП,ЮрФизЛицо',
|
|
189
|
+
top: 10,
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
|
|
193
|
+
async create_entity(params = {}) {
|
|
194
|
+
const entity = String(params.entity || '').trim();
|
|
195
|
+
const data = params.data;
|
|
196
|
+
if (!entity || !data || typeof data !== 'object')
|
|
197
|
+
return { error: 'create_entity: укажите entity и объект data' };
|
|
198
|
+
try {
|
|
199
|
+
const res = await odataRequest(this, encodeURI(entity), {
|
|
200
|
+
method: 'POST',
|
|
201
|
+
body: data,
|
|
202
|
+
});
|
|
203
|
+
return res;
|
|
204
|
+
}
|
|
205
|
+
catch (e) {
|
|
206
|
+
return { error: String(e?.message || e) };
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
};
|