@shadowob/cloud 1.1.7 → 1.1.8
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/README.md +159 -11
- package/dist/{agent-browser-CERTMCDL.js → agent-browser-EI7FIK3X.js} +3 -3
- package/dist/{agent-browser-CIRZRIY4.js → agent-browser-YXE4ES6Q.js} +3 -3
- package/dist/{agent-pack-LF3O5TR4.js → agent-pack-35TFCZKP.js} +1 -1
- package/dist/{agent-pack-RQT27V7R.js → agent-pack-UOG6ZAUL.js} +1 -1
- package/dist/agentmemory-KP5O7GHB.js +101 -0
- package/dist/agentmemory-UV74POU5.js +100 -0
- package/dist/{airtable-BG2Q75G2.js → airtable-CXXS3YUN.js} +3 -3
- package/dist/{airtable-JCQXFM5D.js → airtable-YZ5JR5JC.js} +3 -3
- package/dist/{alipay-TZQI34RB.js → alipay-WED5P3XC.js} +3 -3
- package/dist/{alipay-MZX2XCDB.js → alipay-WJTVREMG.js} +3 -3
- package/dist/{amap-KPCLZYYL.js → amap-AIN23TQ7.js} +3 -3
- package/dist/{amap-5RQB3VGC.js → amap-F6GF7QKB.js} +3 -3
- package/dist/{atlassian-LGOEWYC7.js → atlassian-G6PM6UVM.js} +3 -3
- package/dist/{atlassian-TVS2A4IU.js → atlassian-IDR2NPJC.js} +3 -3
- package/dist/{baidu-appbuilder-QRRL3ETM.js → baidu-appbuilder-JKQIA5TG.js} +3 -3
- package/dist/{baidu-appbuilder-6UMESXHW.js → baidu-appbuilder-KVMCIFYH.js} +3 -3
- package/dist/{baidu-maps-HEPMVP5D.js → baidu-maps-GWMXV6YT.js} +3 -3
- package/dist/{baidu-maps-HXC4FBVP.js → baidu-maps-ZXGT6QZM.js} +3 -3
- package/dist/{baidu-netdisk-G5Q6B5NH.js → baidu-netdisk-J5SLQVWW.js} +3 -3
- package/dist/{baidu-netdisk-RS2K5W2M.js → baidu-netdisk-PONM3DY6.js} +3 -3
- package/dist/{baidu-smartprogram-JHD3XWF6.js → baidu-smartprogram-WJ5JMO6V.js} +3 -3
- package/dist/{baidu-smartprogram-EWTK5WKK.js → baidu-smartprogram-Y5WBR7RX.js} +3 -3
- package/dist/{browserbase-IUIYVYI7.js → browserbase-CGVQHRC4.js} +3 -3
- package/dist/{browserbase-JFO2PCIA.js → browserbase-PVWYTEZC.js} +3 -3
- package/dist/{canva-3YOFL7JS.js → canva-COCBQAT2.js} +3 -3
- package/dist/{canva-FMYN65SM.js → canva-RSTJSEX5.js} +3 -3
- package/dist/{chunk-35LJYCQF.js → chunk-3CT6RQNM.js} +745 -482
- package/dist/{chunk-KODMGZUC.js → chunk-4YO3NA26.js} +1 -1
- package/dist/{chunk-RECNVWMT.js → chunk-6V7MW4HU.js} +17 -3
- package/dist/{chunk-C6OI4ZNO.js → chunk-EVV774KS.js} +1 -1
- package/dist/{chunk-SVMXSIMG.js → chunk-F6CQ6GAG.js} +2 -1
- package/dist/{chunk-JUPAE5IA.js → chunk-OL5VH6RN.js} +72 -69
- package/dist/{chunk-POSVEKIY.js → chunk-OYY64ZSX.js} +17 -3
- package/dist/{chunk-ZHVYNIHA.js → chunk-P5Y6F2NH.js} +745 -482
- package/dist/{chunk-EEFMJYKB.js → chunk-PSK2SYZ3.js} +2 -1
- package/dist/{chunk-6YAYCWGK.js → chunk-PYJRFKPN.js} +1 -1
- package/dist/{chunk-JY2HTT7Q.js → chunk-RMDY3W4V.js} +6 -0
- package/dist/{chunk-EWB7L7IW.js → chunk-X2SREECR.js} +6 -6
- package/dist/{chunk-LXJBQBGL.js → chunk-X5VOIA72.js} +6 -6
- package/dist/{chunk-CTNUKOQE.js → chunk-Y5BJ3EW2.js} +6 -0
- package/dist/{chunk-SAP2DBHO.js → chunk-Y6BKVDG7.js} +1 -1
- package/dist/{chunk-6P2K6QZR.js → chunk-ZGMWSSCC.js} +72 -69
- package/dist/{claude-plugin-577TAQVS.js → claude-plugin-FPN32WMT.js} +1 -1
- package/dist/{claude-plugin-L3MXJJ6J.js → claude-plugin-IYHOVTVL.js} +1 -1
- package/dist/cli.js +930 -149
- package/dist/{cloudflare-RDFPKMM5.js → cloudflare-U3RHJJKK.js} +3 -3
- package/dist/{cloudflare-HBBABPK6.js → cloudflare-ZHN7UGPX.js} +3 -3
- package/dist/{cnb-FLP3QX46.js → cnb-AMXC5I7D.js} +3 -3
- package/dist/{cnb-YAVVEYFB.js → cnb-P3IZ4JTD.js} +3 -3
- package/dist/console/index.html +1 -1
- package/dist/console/static/css/index.f4563d95.css +1 -0
- package/dist/console/static/js/index.020abc71.js +1 -0
- package/dist/{coze-E6VGRNLV.js → coze-66RYMKVB.js} +3 -3
- package/dist/{coze-C6PMDPBI.js → coze-YE3BINXP.js} +3 -3
- package/dist/{dashboard.command-ZMQFKLNQ.js → dashboard.command-BRPZCZER.js} +1 -1
- package/dist/{dashboard.command-2AM45SIT.js → dashboard.command-GUHSJ2CN.js} +1 -1
- package/dist/{dingtalk-JNRNRN7E.js → dingtalk-4RFQG7N2.js} +3 -3
- package/dist/{dingtalk-WZGGIAHJ.js → dingtalk-VNFKXD2P.js} +3 -3
- package/dist/{douyin-miniprogram-AIJPPIZH.js → douyin-miniprogram-UEALAGOS.js} +3 -3
- package/dist/{douyin-miniprogram-HCYZ5NBW.js → douyin-miniprogram-UNB6UO2I.js} +3 -3
- package/dist/{figma-2YYNSCDX.js → figma-A264OWU5.js} +3 -3
- package/dist/{figma-RYOBMENP.js → figma-Y4TGSDZP.js} +3 -3
- package/dist/{firebase-OYSY6HPT.js → firebase-AI3MAGYG.js} +3 -3
- package/dist/{firebase-2IJDDBXX.js → firebase-ZGQARUIH.js} +3 -3
- package/dist/{firecrawl-2T3SBUW7.js → firecrawl-2JW7DMTH.js} +3 -3
- package/dist/{firecrawl-IYYXLAZM.js → firecrawl-UURQ5P5N.js} +3 -3
- package/dist/{flyai-QS5Q6FJR.js → flyai-EJGDMYFA.js} +3 -3
- package/dist/{flyai-7FJ4TRAG.js → flyai-ZFMZBBHJ.js} +3 -3
- package/dist/{gitagent-MWI75OIX.js → gitagent-5SDBYFNA.js} +1 -1
- package/dist/{gitagent-YBMWY7NZ.js → gitagent-ODXPCR4X.js} +1 -1
- package/dist/{gitee-3N7OFOM7.js → gitee-5UMJ4BC7.js} +3 -3
- package/dist/{gitee-KVNK6KLZ.js → gitee-D6NAZTCO.js} +3 -3
- package/dist/{github-LUEC2LID.js → github-JBLDKIA3.js} +3 -3
- package/dist/{github-XRO5Z3GC.js → github-PZQAVEZP.js} +3 -3
- package/dist/{google-ads-VPKWTX67.js → google-ads-BIFQOJ5M.js} +3 -3
- package/dist/{google-ads-A3QAJI4D.js → google-ads-QU3LJE4O.js} +3 -3
- package/dist/{google-analytics-C4UR5ZR2.js → google-analytics-7VZ6YZVA.js} +3 -3
- package/dist/{google-analytics-XDYZA2B7.js → google-analytics-HXMPCL5V.js} +3 -3
- package/dist/{google-workspace-YX35SHHX.js → google-workspace-6SEBJ4VA.js} +2 -2
- package/dist/{google-workspace-LL3EWVHH.js → google-workspace-L3AMJLCF.js} +2 -2
- package/dist/{huawei-xiaoyi-KPWLTSHB.js → huawei-xiaoyi-C6QIJMPM.js} +3 -3
- package/dist/{huawei-xiaoyi-6BSMGJHR.js → huawei-xiaoyi-JGLXWU5P.js} +3 -3
- package/dist/{hubspot-FTIEMNZO.js → hubspot-LACJGE6D.js} +3 -3
- package/dist/{hubspot-DIUHGEDI.js → hubspot-XWPRO4KZ.js} +3 -3
- package/dist/{huggingface-UUXK2RHK.js → huggingface-26QQZK4C.js} +3 -3
- package/dist/{huggingface-MJCOXA7E.js → huggingface-CQICNA2R.js} +3 -3
- package/dist/index.d.ts +1338 -1
- package/dist/index.js +1364 -226
- package/dist/{inference-ai-image-generation-PXV6IG4U.js → inference-ai-image-generation-5KYIUWT6.js} +3 -3
- package/dist/{inference-ai-image-generation-CMI6R5T3.js → inference-ai-image-generation-J2NYDCLZ.js} +3 -3
- package/dist/{inference-sh-7AZOLEFI.js → inference-sh-5SWQTK73.js} +3 -3
- package/dist/{inference-sh-ABQOD3YF.js → inference-sh-PTQF6T3R.js} +3 -3
- package/dist/{init.command-YVG4X6II.js → init.command-C7UKPK2Y.js} +3 -3
- package/dist/{init.command-JKE3SXAS.js → init.command-UNL66BMR.js} +3 -3
- package/dist/{klaviyo-LDPBWBSS.js → klaviyo-4UNPMBFT.js} +3 -3
- package/dist/{klaviyo-6K5YEFNH.js → klaviyo-SLYNEULT.js} +3 -3
- package/dist/{kuaidi100-HGFM5VK2.js → kuaidi100-HZKV5AIS.js} +3 -3
- package/dist/{kuaidi100-UHPFCVXP.js → kuaidi100-ZQUW7GHH.js} +3 -3
- package/dist/lark-HQUZNHDI.js +382 -0
- package/dist/lark-PAV7XWJS.js +381 -0
- package/dist/{linear-T4ORUP7N.js → linear-PYGQ5SLK.js} +3 -3
- package/dist/{linear-7QFSFPOD.js → linear-VJLYNTUF.js} +3 -3
- package/dist/{lovart-PDUXRUHJ.js → lovart-KC6SVNAJ.js} +3 -3
- package/dist/{lovart-QO3SK55T.js → lovart-WVKY4RR4.js} +3 -3
- package/dist/{meta-ads-SCNFI45S.js → meta-ads-E6XT33GI.js} +3 -3
- package/dist/{meta-ads-V6XPZWX3.js → meta-ads-RJ6DWRYN.js} +3 -3
- package/dist/{miclaw-TPPPS2WN.js → miclaw-4BA3A2YN.js} +3 -3
- package/dist/{miclaw-5CNTW7VV.js → miclaw-LUV6DCHX.js} +3 -3
- package/dist/{model-provider-KFB76XV5.js → model-provider-SYXJZ3JD.js} +1 -1
- package/dist/{model-provider-AVSFJSZP.js → model-provider-U7NEYA3Y.js} +1 -1
- package/dist/nature-skills-G76ABIWZ.js +143 -0
- package/dist/nature-skills-SQHMFXKT.js +142 -0
- package/dist/{notion-WFA7KGZZ.js → notion-2JZAKOFP.js} +1 -1
- package/dist/{notion-FZK76MN2.js → notion-O3NO5TJH.js} +1 -1
- package/dist/{oceanengine-3JZUS3PP.js → oceanengine-D23UZGVB.js} +3 -3
- package/dist/{oceanengine-5BRIJVJE.js → oceanengine-WDK2OXX5.js} +3 -3
- package/dist/{opencli-PFXHGCS2.js → opencli-36P63YNU.js} +3 -3
- package/dist/{opencli-VIGRJTGH.js → opencli-SUHDFR33.js} +3 -3
- package/dist/{paypal-Z5JYHIWD.js → paypal-K27SUW3B.js} +3 -3
- package/dist/{paypal-33UADIPR.js → paypal-OPZ3KOV5.js} +3 -3
- package/dist/{playwright-SQAQ3DZG.js → playwright-2ULT3NIC.js} +3 -3
- package/dist/{playwright-MG5WHK47.js → playwright-3Q7LBILG.js} +3 -3
- package/dist/{plugins-HZBWK3WQ.js → plugins-2MITZ4ZD.js} +2 -2
- package/dist/{plugins-I4GD5SZX.js → plugins-UK2QWD6G.js} +2 -2
- package/dist/{posthog-MU5MAJOQ.js → posthog-E3EHXLAN.js} +3 -3
- package/dist/{posthog-RJRRKDWB.js → posthog-KPJVLGX6.js} +3 -3
- package/dist/{salesforce-34FVIJTG.js → salesforce-FGPNG7FB.js} +3 -3
- package/dist/{salesforce-3QZ6OFVO.js → salesforce-TVHISKBC.js} +3 -3
- package/dist/{sentry-PIWW46VA.js → sentry-BZ3J3MZM.js} +3 -3
- package/dist/{sentry-MCIRMACU.js → sentry-XC57YRAJ.js} +3 -3
- package/dist/{seo-suite-WJXMA3S4.js → seo-suite-2MDEDLAB.js} +3 -3
- package/dist/{seo-suite-4SQ3I67Q.js → seo-suite-U75O3QP6.js} +3 -3
- package/dist/{serve.command-XLBJUOV6.js → serve.command-G5RVQFUD.js} +3 -3
- package/dist/{serve.command-RD6I6MFD.js → serve.command-PYGDG7K3.js} +3 -3
- package/dist/{shadowob-PRSMI5MW.js → shadowob-3QZ7DLDW.js} +158 -31
- package/dist/{shadowob-JELOWHWX.js → shadowob-CJLOEKFP.js} +158 -31
- package/dist/{sherlock-2PKY2E2Y.js → sherlock-CQFUHKDH.js} +3 -3
- package/dist/{sherlock-C5ZWPPVT.js → sherlock-DONK2I6E.js} +3 -3
- package/dist/{shopify-GL3NFVGE.js → shopify-NO5GI3WD.js} +3 -3
- package/dist/{shopify-R4G3UXM6.js → shopify-VW2KLKH5.js} +3 -3
- package/dist/{skill-discovery-YPXXV622.js → skill-discovery-6JEPPKKM.js} +3 -3
- package/dist/{skill-discovery-7INAUP4D.js → skill-discovery-PWRAVGIS.js} +3 -3
- package/dist/skills/shadowob-cli/SKILL.md +7 -0
- package/dist/{stripe-LJNPQ3CQ.js → stripe-HCNCKG4C.js} +1 -1
- package/dist/{stripe-C22RR4ZS.js → stripe-IU3KTJ4H.js} +1 -1
- package/dist/{supabase-IRNQ54FJ.js → supabase-KRL7JW2D.js} +3 -3
- package/dist/{supabase-N4ONFJNQ.js → supabase-TYEBTZNO.js} +3 -3
- package/dist/{taobao-aipaas-LRR4GMO3.js → taobao-aipaas-PEUIDOYP.js} +3 -3
- package/dist/{taobao-aipaas-RVKORSF4.js → taobao-aipaas-SA5E4MZA.js} +3 -3
- package/dist/{tapd-TMQRSMFG.js → tapd-6DDIUPVQ.js} +3 -3
- package/dist/{tapd-3JPVJ7XH.js → tapd-OTYLSZGY.js} +3 -3
- package/dist/{tencent-ads-UHC6OPBV.js → tencent-ads-OW2TAMH5.js} +3 -3
- package/dist/{tencent-ads-IGD33LO7.js → tencent-ads-XTQZ27YT.js} +3 -3
- package/dist/{tencent-docs-C3A4J3CJ.js → tencent-docs-6D6A2VCO.js} +3 -3
- package/dist/{tencent-docs-O2SC4FHL.js → tencent-docs-K3TMUIWD.js} +3 -3
- package/dist/{tencent-maps-OQOKHVW2.js → tencent-maps-IZYWITJZ.js} +3 -3
- package/dist/{tencent-maps-HMMWMNF4.js → tencent-maps-SWI7CLQY.js} +3 -3
- package/dist/text-to-cad-B2UP6PKA.js +192 -0
- package/dist/text-to-cad-I4B6VBFV.js +193 -0
- package/dist/{vercel-KOXDDTHX.js → vercel-CCKRC76D.js} +3 -3
- package/dist/{vercel-OLNVDWMG.js → vercel-SBGEMIJJ.js} +3 -3
- package/dist/{webflow-OMJKZM54.js → webflow-C3EHNNSN.js} +3 -3
- package/dist/{webflow-FULU5Q2I.js → webflow-ZFBJH4CR.js} +3 -3
- package/dist/{wechat-miniprogram-skyline-KYCDMQNW.js → wechat-miniprogram-skyline-VNCRERHX.js} +3 -3
- package/dist/{wechat-miniprogram-skyline-VR4FVIQL.js → wechat-miniprogram-skyline-Z5JQUV5Q.js} +3 -3
- package/dist/{wechat-pay-BCMAJ6UW.js → wechat-pay-RPDKPUEB.js} +3 -3
- package/dist/{wechat-pay-YQQKXVUI.js → wechat-pay-XVDGJRF2.js} +3 -3
- package/dist/{wonda-NGWIORYN.js → wonda-EL2P44S7.js} +3 -3
- package/dist/{wonda-RBABXFNM.js → wonda-XK5JK4X3.js} +3 -3
- package/dist/{wordpress-woocommerce-RNA5HB3N.js → wordpress-woocommerce-4MEE5A2M.js} +3 -3
- package/dist/{wordpress-woocommerce-RDIUTHYT.js → wordpress-woocommerce-6ECNM2QU.js} +3 -3
- package/dist/{wps-LUWHMZQQ.js → wps-E4OZEMOF.js} +3 -3
- package/dist/{wps-DAEFQHDE.js → wps-JNQUC4JS.js} +3 -3
- package/dist/{yuque-HCHTJWNI.js → yuque-GLAAOS7X.js} +3 -3
- package/dist/{yuque-KRH5O74J.js → yuque-MEF6VFLJ.js} +3 -3
- package/images/RUNNERS.md +15 -0
- package/images/cc-connect-runner/entrypoint.mjs +228 -0
- package/images/claude-runner/RUNNER.md +5 -3
- package/images/codex-runner/RUNNER.md +5 -3
- package/images/gemini-runner/RUNNER.md +5 -2
- package/images/hermes-runner/RUNNER.md +4 -2
- package/images/hermes-runner/entrypoint.mjs +269 -1
- package/images/openclaw-runner/Dockerfile +1 -0
- package/images/openclaw-runner/RUNNER.md +3 -0
- package/images/openclaw-runner/entrypoint.mjs +249 -1
- package/images/openclaw-runner/warm-runtime-deps.mjs +1 -3
- package/images/opencode-runner/RUNNER.md +5 -3
- package/package.json +3 -3
- package/templates/agent-marketplace-buddy.template.json +4 -1
- package/templates/bmad-method-buddy.template.json +4 -1
- package/templates/code-trainer.template.json +331 -0
- package/templates/gstack-buddy.template.json +4 -1
- package/templates/little-match-girl.template.json +10 -3
- package/dist/console/static/css/index.7f91f806.css +0 -1
- package/dist/console/static/js/index.4487e1ff.js +0 -1
- package/dist/lark-6LNA3LUQ.js +0 -103
- package/dist/lark-URVBZNS4.js +0 -102
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
mergePluginFragments,
|
|
7
7
|
resolveAgentPluginConfig,
|
|
8
8
|
resolvePluginSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZGMWSSCC.js";
|
|
10
10
|
|
|
11
11
|
// src/config/parser.ts
|
|
12
12
|
import { readFile } from "fs/promises";
|
|
@@ -414,11 +414,40 @@ function collectPluginBuildEnvVars(agent, config, cwd, env) {
|
|
|
414
414
|
forEachEnabledPlugin(agent, config, cwd, env, ({ pluginDef, context }) => {
|
|
415
415
|
for (const fn of pluginDef._hooks.buildEnv) {
|
|
416
416
|
const vars = fn(context);
|
|
417
|
-
if (vars)
|
|
417
|
+
if (vars) mergeBuildEnvVars(envVars, vars);
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
420
|
return envVars;
|
|
421
421
|
}
|
|
422
|
+
function collectPluginRuntimeEnvOmitKeys(agent, config, cwd, env) {
|
|
423
|
+
const keys = /* @__PURE__ */ new Set();
|
|
424
|
+
forEachEnabledPlugin(agent, config, cwd, env, ({ pluginDef }) => {
|
|
425
|
+
for (const field of pluginDef.secretFields ?? []) {
|
|
426
|
+
if (field.runtime !== false) continue;
|
|
427
|
+
keys.add(field.key);
|
|
428
|
+
for (const alias of field.aliases ?? []) keys.add(alias);
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
return keys;
|
|
432
|
+
}
|
|
433
|
+
var COLON_SEPARATED_ENV_KEYS = /* @__PURE__ */ new Set(["PATH", "PYTHONPATH", "NODE_PATH"]);
|
|
434
|
+
function mergeColonSeparatedEnvValue(current, next) {
|
|
435
|
+
const out = [];
|
|
436
|
+
for (const part of [...current?.split(":") ?? [], ...next.split(":")]) {
|
|
437
|
+
if (!part || out.includes(part)) continue;
|
|
438
|
+
out.push(part);
|
|
439
|
+
}
|
|
440
|
+
return out.join(":");
|
|
441
|
+
}
|
|
442
|
+
function mergeBuildEnvVars(target, vars) {
|
|
443
|
+
for (const [key, value] of Object.entries(vars)) {
|
|
444
|
+
if (COLON_SEPARATED_ENV_KEYS.has(key) && target[key]) {
|
|
445
|
+
target[key] = mergeColonSeparatedEnvValue(target[key], value);
|
|
446
|
+
} else {
|
|
447
|
+
target[key] = value;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
422
451
|
function mergeRuntimeExtensions(target, fragment) {
|
|
423
452
|
const manifestPatches = [
|
|
424
453
|
...target.openclaw?.manifestPatches ?? [],
|
|
@@ -432,6 +461,13 @@ function mergeRuntimeExtensions(target, fragment) {
|
|
|
432
461
|
for (const artifact of fragment.artifacts ?? []) {
|
|
433
462
|
artifacts.set(artifact.kind, artifact);
|
|
434
463
|
}
|
|
464
|
+
const routineDeliveries = /* @__PURE__ */ new Map();
|
|
465
|
+
for (const delivery of target.routineDeliveries ?? []) {
|
|
466
|
+
routineDeliveries.set(`${delivery.pluginId}:${delivery.kind}:${delivery.routineId}`, delivery);
|
|
467
|
+
}
|
|
468
|
+
for (const delivery of fragment.routineDeliveries ?? []) {
|
|
469
|
+
routineDeliveries.set(`${delivery.pluginId}:${delivery.kind}:${delivery.routineId}`, delivery);
|
|
470
|
+
}
|
|
435
471
|
const runtimeDependencies = /* @__PURE__ */ new Map();
|
|
436
472
|
for (const dependency of target.runtimeDependencies ?? []) {
|
|
437
473
|
runtimeDependencies.set(dependency.id, dependency);
|
|
@@ -479,6 +515,7 @@ function mergeRuntimeExtensions(target, fragment) {
|
|
|
479
515
|
...manifestPatches.length > 0 ? { openclaw: { manifestPatches } } : {},
|
|
480
516
|
...shadowob ? { shadowob } : {},
|
|
481
517
|
...artifacts.size > 0 ? { artifacts: [...artifacts.values()] } : {},
|
|
518
|
+
...routineDeliveries.size > 0 ? { routineDeliveries: [...routineDeliveries.values()] } : {},
|
|
482
519
|
...runtimeDependencies.size > 0 ? { runtimeDependencies: [...runtimeDependencies.values()] } : {},
|
|
483
520
|
...skillSources.size > 0 ? { skillSources: [...skillSources.values()] } : {},
|
|
484
521
|
...subagentSources.size > 0 ? { subagentSources: [...subagentSources.values()] } : {},
|
|
@@ -703,7 +740,7 @@ var SHADOWOB_CLI_CONFIG_PATH = `${HOME_DIR}/.shadowob/shadowob.config.json`;
|
|
|
703
740
|
var SHADOW_SLASH_COMMANDS_PATH = `${SHADOWOB_CONFIG_MOUNT_PATH}/slash-commands.json`;
|
|
704
741
|
function hasRuntimeExtensions(extension) {
|
|
705
742
|
return Boolean(
|
|
706
|
-
extension.shadowob || extension.openclaw?.manifestPatches?.length || extension.artifacts?.length || extension.runtimeDependencies?.length || extension.skillSources?.length || extension.subagentSources?.length || extension.mcpServers?.length || extension.credentialFiles?.length || extension.verificationChecks?.length
|
|
743
|
+
extension.shadowob || extension.openclaw?.manifestPatches?.length || extension.routineDeliveries?.length || extension.artifacts?.length || extension.runtimeDependencies?.length || extension.skillSources?.length || extension.subagentSources?.length || extension.mcpServers?.length || extension.credentialFiles?.length || extension.verificationChecks?.length
|
|
707
744
|
);
|
|
708
745
|
}
|
|
709
746
|
function runtimeExtensionsForKind(extension, runtimeKind) {
|
|
@@ -754,7 +791,8 @@ function shadowBindings(runtimeExtensions) {
|
|
|
754
791
|
buddyName: account.buddyName
|
|
755
792
|
}));
|
|
756
793
|
}
|
|
757
|
-
function shadowPlatformOptions(shadow) {
|
|
794
|
+
function shadowPlatformOptions(shadow, options) {
|
|
795
|
+
const channelEnvKeys = [...new Set(options?.channelEnvKeys ?? [])].filter(Boolean);
|
|
758
796
|
return {
|
|
759
797
|
token: envPlaceholder(shadow.tokenEnvKey),
|
|
760
798
|
server_url: envPlaceholder(shadow.serverUrlEnvKey),
|
|
@@ -762,7 +800,8 @@ function shadowPlatformOptions(shadow) {
|
|
|
762
800
|
listen_dms: true,
|
|
763
801
|
share_session_in_channel: false,
|
|
764
802
|
progress_style: "compact",
|
|
765
|
-
slash_commands_path: envPlaceholder("SHADOW_SLASH_COMMANDS_PATH")
|
|
803
|
+
slash_commands_path: envPlaceholder("SHADOW_SLASH_COMMANDS_PATH"),
|
|
804
|
+
...channelEnvKeys.length > 0 ? { channel_ids: channelEnvKeys.map((key) => envPlaceholder(key)) } : {}
|
|
766
805
|
};
|
|
767
806
|
}
|
|
768
807
|
function buildIdentityWorkspaceFiles(agent) {
|
|
@@ -845,6 +884,64 @@ function addShadowobCliAuth(files, runtimeExtensions) {
|
|
|
845
884
|
});
|
|
846
885
|
}
|
|
847
886
|
|
|
887
|
+
// src/runtimes/routines.ts
|
|
888
|
+
import { createHash } from "crypto";
|
|
889
|
+
var SHADOW_TEMPLATE_ROUTINES_PATH = `${SHADOWOB_CONFIG_MOUNT_PATH}/template-routines.json`;
|
|
890
|
+
function stableValue(value) {
|
|
891
|
+
if (Array.isArray(value)) return value.map(stableValue);
|
|
892
|
+
if (!value || typeof value !== "object") return value;
|
|
893
|
+
return Object.fromEntries(
|
|
894
|
+
Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, item]) => [key, stableValue(item)])
|
|
895
|
+
);
|
|
896
|
+
}
|
|
897
|
+
function sourceHash(value) {
|
|
898
|
+
return createHash("sha256").update(JSON.stringify(stableValue(value))).digest("hex");
|
|
899
|
+
}
|
|
900
|
+
function deliveriesForRoutine(runtimeExtensions, routineId) {
|
|
901
|
+
return (runtimeExtensions.routineDeliveries ?? []).filter(
|
|
902
|
+
(delivery) => delivery.routineId === routineId
|
|
903
|
+
);
|
|
904
|
+
}
|
|
905
|
+
function templateRoutinesForAgent(config, agent, runtimeExtensions) {
|
|
906
|
+
return (config.routines ?? []).filter((routine) => routine.enabled !== false).filter((routine) => routine.agentId === agent.id).map((routine) => ({
|
|
907
|
+
id: routine.id,
|
|
908
|
+
agentId: routine.agentId,
|
|
909
|
+
...routine.title ? { title: routine.title } : {},
|
|
910
|
+
...routine.description ? { description: routine.description } : {},
|
|
911
|
+
enabled: routine.enabled !== false,
|
|
912
|
+
schedule: routine.schedule,
|
|
913
|
+
prompt: routine.prompt,
|
|
914
|
+
deliveries: deliveriesForRoutine(runtimeExtensions, routine.id),
|
|
915
|
+
...routine.metadata ? { metadata: routine.metadata } : {},
|
|
916
|
+
sourceHash: sourceHash({
|
|
917
|
+
id: routine.id,
|
|
918
|
+
agentId: routine.agentId,
|
|
919
|
+
schedule: routine.schedule,
|
|
920
|
+
prompt: routine.prompt,
|
|
921
|
+
metadata: routine.metadata
|
|
922
|
+
})
|
|
923
|
+
}));
|
|
924
|
+
}
|
|
925
|
+
function firstRoutineDeliveryTargetValue(config, agent, runtimeExtensions, pluginId, key) {
|
|
926
|
+
for (const routine of templateRoutinesForAgent(config, agent, runtimeExtensions)) {
|
|
927
|
+
const delivery = routine.deliveries.find((item) => item.pluginId === pluginId);
|
|
928
|
+
if (delivery?.target[key] !== void 0) return delivery.target[key];
|
|
929
|
+
}
|
|
930
|
+
return void 0;
|
|
931
|
+
}
|
|
932
|
+
function appendTemplateRoutineFiles(files, config, agent, runtimeKind, runtimeExtensions) {
|
|
933
|
+
const routines = templateRoutinesForAgent(config, agent, runtimeExtensions);
|
|
934
|
+
if (routines.length === 0) return;
|
|
935
|
+
files[SHADOW_TEMPLATE_ROUTINES_PATH] = json({
|
|
936
|
+
version: 1,
|
|
937
|
+
agentId: agent.id,
|
|
938
|
+
runtime: runtimeKind,
|
|
939
|
+
syncPolicy: "preserve-runtime-edits",
|
|
940
|
+
notes: "Template routine seed. Runtime sync must preserve user-edited jobs unless the previous sourceHash still matches.",
|
|
941
|
+
routines
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
|
|
848
945
|
// src/runtimes/slash-commands/openclaw.ts
|
|
849
946
|
var OPENCLAW_SLASH_COMMANDS_SOURCE = "https://docs.openclaw.ai/tools/slash-commands";
|
|
850
947
|
var openClawCommands = [
|
|
@@ -941,6 +1038,13 @@ var openclawAdapter = {
|
|
|
941
1038
|
};
|
|
942
1039
|
addShadowobSkill(runtimeFiles, "openclaw", context.agent.runtime);
|
|
943
1040
|
addShadowobCliAuth(runtimeFiles, context.runtimeExtensions);
|
|
1041
|
+
appendTemplateRoutineFiles(
|
|
1042
|
+
runtimeFiles,
|
|
1043
|
+
context.config,
|
|
1044
|
+
context.agent,
|
|
1045
|
+
"openclaw",
|
|
1046
|
+
context.runtimeExtensions
|
|
1047
|
+
);
|
|
944
1048
|
const configData = {
|
|
945
1049
|
"config.json": JSON.stringify(openclawConfig, null, 2),
|
|
946
1050
|
"runtime-files.json": json(runtimeFiles),
|
|
@@ -971,6 +1075,11 @@ function buildCcConnectConfig(options) {
|
|
|
971
1075
|
const effort = reasoningEffort(agent);
|
|
972
1076
|
if (model) baseAgentOptions.model = model;
|
|
973
1077
|
if (effort) baseAgentOptions.reasoning_effort = effort;
|
|
1078
|
+
const routineChannelEnvKeys = [
|
|
1079
|
+
...new Set(
|
|
1080
|
+
(options.routineDeliveries ?? []).filter((delivery) => delivery.pluginId === "shadowob" && delivery.kind === "channel").map((delivery) => delivery.target.channelEnvKey).filter((key) => typeof key === "string" && key.trim().length > 0)
|
|
1081
|
+
)
|
|
1082
|
+
];
|
|
974
1083
|
const root = {
|
|
975
1084
|
data_dir: `${HOME_DIR}/.cc-connect`,
|
|
976
1085
|
language: "zh",
|
|
@@ -988,7 +1097,7 @@ function buildCcConnectConfig(options) {
|
|
|
988
1097
|
},
|
|
989
1098
|
platforms: options.shadows.map((shadow) => ({
|
|
990
1099
|
type: "shadowob",
|
|
991
|
-
options: shadowPlatformOptions(shadow)
|
|
1100
|
+
options: shadowPlatformOptions(shadow, { channelEnvKeys: routineChannelEnvKeys })
|
|
992
1101
|
}))
|
|
993
1102
|
}
|
|
994
1103
|
]
|
|
@@ -1005,6 +1114,7 @@ function buildCcConnectRuntimeFiles(options) {
|
|
|
1005
1114
|
};
|
|
1006
1115
|
addShadowobSkill(files, "cc-connect", agent.runtime);
|
|
1007
1116
|
addShadowobCliAuth(files, options.runtimeExtensions);
|
|
1117
|
+
appendTemplateRoutineFiles(files, options.config, agent, "cc-connect", options.runtimeExtensions);
|
|
1008
1118
|
return files;
|
|
1009
1119
|
}
|
|
1010
1120
|
function buildCcConnectPackage(context, options) {
|
|
@@ -1014,10 +1124,12 @@ function buildCcConnectPackage(context, options) {
|
|
|
1014
1124
|
agent: context.agent,
|
|
1015
1125
|
agentType: options.agentType,
|
|
1016
1126
|
shadows,
|
|
1127
|
+
routineDeliveries: nativeRuntimeExtensions.routineDeliveries,
|
|
1017
1128
|
agentOptions: options.agentOptions?.(context.agent)
|
|
1018
1129
|
});
|
|
1019
1130
|
const files = buildCcConnectRuntimeFiles({
|
|
1020
1131
|
agent: context.agent,
|
|
1132
|
+
config: context.config,
|
|
1021
1133
|
ccConnectConfig,
|
|
1022
1134
|
runtimeExtensions: context.runtimeExtensions,
|
|
1023
1135
|
nativeFiles: options.nativeFiles?.(context),
|
|
@@ -1661,6 +1773,13 @@ function readHermesPluginFile(cwd, file, fallback) {
|
|
|
1661
1773
|
function buildHermesConfig(options) {
|
|
1662
1774
|
const { agent, shadow } = options;
|
|
1663
1775
|
const mcpServers = hermesMcpServers(options.runtimeExtensions);
|
|
1776
|
+
const homeChannelEnvKey = firstRoutineDeliveryTargetValue(
|
|
1777
|
+
options.config,
|
|
1778
|
+
agent,
|
|
1779
|
+
options.runtimeExtensions,
|
|
1780
|
+
"shadowob",
|
|
1781
|
+
"channelEnvKey"
|
|
1782
|
+
);
|
|
1664
1783
|
return stringifyYaml({
|
|
1665
1784
|
approvals: {
|
|
1666
1785
|
mode: nativePermissionMode(agent) === "allow" ? "manual" : "manual"
|
|
@@ -1679,6 +1798,7 @@ function buildHermesConfig(options) {
|
|
|
1679
1798
|
rest_only: false,
|
|
1680
1799
|
catchup_minutes: 0,
|
|
1681
1800
|
download_media: true,
|
|
1801
|
+
...typeof homeChannelEnvKey === "string" ? { home_channel: envPlaceholder(homeChannelEnvKey) } : {},
|
|
1682
1802
|
slash_commands: hermesSlashCommands
|
|
1683
1803
|
}
|
|
1684
1804
|
}
|
|
@@ -1698,6 +1818,7 @@ var hermesAdapter = {
|
|
|
1698
1818
|
...buildIdentityWorkspaceFiles(context.agent),
|
|
1699
1819
|
[`${HOME_DIR}/.hermes/config.yaml`]: buildHermesConfig({
|
|
1700
1820
|
agent: context.agent,
|
|
1821
|
+
config: context.config,
|
|
1701
1822
|
shadow,
|
|
1702
1823
|
runtimeExtensions: nativeRuntimeExtensions
|
|
1703
1824
|
}),
|
|
@@ -1712,6 +1833,13 @@ var hermesAdapter = {
|
|
|
1712
1833
|
};
|
|
1713
1834
|
addShadowobSkill(files, "hermes", "hermes");
|
|
1714
1835
|
addShadowobCliAuth(files, context.runtimeExtensions);
|
|
1836
|
+
appendTemplateRoutineFiles(
|
|
1837
|
+
files,
|
|
1838
|
+
context.config,
|
|
1839
|
+
context.agent,
|
|
1840
|
+
"hermes",
|
|
1841
|
+
nativeRuntimeExtensions
|
|
1842
|
+
);
|
|
1715
1843
|
const pluginRoot = `${HOME_DIR}/.hermes/plugins/shadowob`;
|
|
1716
1844
|
files[`${pluginRoot}/plugin.yaml`] = readHermesPluginFile(
|
|
1717
1845
|
context.cwd,
|
|
@@ -1773,7 +1901,7 @@ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_cr
|
|
|
1773
1901
|
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
1774
1902
|
import typia from "typia";
|
|
1775
1903
|
var validateCloudConfig = (() => {
|
|
1776
|
-
const _io0 = (input) => "string" === typeof input.version && (void 0 === input.name || "string" === typeof input.name) && (void 0 === input.title || "string" === typeof input.title) && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.environment || "development" === input.environment || "staging" === input.environment || "production" === input.environment) && (void 0 === input.locale || "string" === typeof input.locale) && (void 0 === input.i18n || "object" === typeof input.i18n && null !== input.i18n && false === Array.isArray(input.i18n) && _io1(input.i18n)) && (void 0 === input.team || "object" === typeof input.team && null !== input.team &&
|
|
1904
|
+
const _io0 = (input) => "string" === typeof input.version && (void 0 === input.name || "string" === typeof input.name) && (void 0 === input.title || "string" === typeof input.title) && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.environment || "development" === input.environment || "staging" === input.environment || "production" === input.environment) && (void 0 === input.locale || "string" === typeof input.locale) && (void 0 === input.i18n || "object" === typeof input.i18n && null !== input.i18n && false === Array.isArray(input.i18n) && _io1(input.i18n)) && (void 0 === input.routines || Array.isArray(input.routines) && input.routines.every((elem) => "object" === typeof elem && null !== elem && _io3(elem))) && (void 0 === input.team || "object" === typeof input.team && null !== input.team && _io6(input.team)) && (void 0 === input.use || Array.isArray(input.use) && input.use.every((elem) => "object" === typeof elem && null !== elem && _io10(elem))) && (void 0 === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io11(input.plugins)) && (void 0 === input.registry || "object" === typeof input.registry && null !== input.registry && false === Array.isArray(input.registry) && _io15(input.registry)) && (void 0 === input.deployments || "object" === typeof input.deployments && null !== input.deployments && _io94(input.deployments)) && (void 0 === input.workspace || "object" === typeof input.workspace && null !== input.workspace && _io115(input.workspace)) && (void 0 === input.skills || "object" === typeof input.skills && null !== input.skills && false === Array.isArray(input.skills) && _io116(input.skills));
|
|
1777
1905
|
const _io1 = (input) => Object.keys(input).every((key) => {
|
|
1778
1906
|
const value = input[key];
|
|
1779
1907
|
if (void 0 === value)
|
|
@@ -1786,24 +1914,26 @@ var validateCloudConfig = (() => {
|
|
|
1786
1914
|
return true;
|
|
1787
1915
|
return "string" === typeof value;
|
|
1788
1916
|
});
|
|
1789
|
-
const _io3 = (input) => "string" === typeof input.
|
|
1790
|
-
const _io4 = (input) => "string" === typeof input.
|
|
1791
|
-
const _io5 = (input) =>
|
|
1792
|
-
const _io6 = (input) => (void 0 === input.riskTier || "low" === input.riskTier || "high" === input.riskTier || "standard" === input.riskTier || "critical" === input.riskTier) && (void 0 === input.frameworks || Array.isArray(input.frameworks) && input.frameworks.every((elem) => "string" === typeof elem)) && (void 0 === input.humanInTheLoop || "always" === input.humanInTheLoop || "conditional" === input.humanInTheLoop || "advisory" === input.humanInTheLoop || "none" === input.humanInTheLoop) && (void 0 === input.auditLogging || "boolean" === typeof input.auditLogging) && (void 0 === input.retentionPeriod || "string" === typeof input.retentionPeriod);
|
|
1793
|
-
const _io7 = (input) => "string" === typeof input.plugin && (void 0 === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io8(input.options));
|
|
1794
|
-
const _io8 = (input) => Object.keys(input).every((key) => {
|
|
1917
|
+
const _io3 = (input) => "string" === typeof input.id && "string" === typeof input.agentId && (void 0 === input.title || "string" === typeof input.title) && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.enabled || "boolean" === typeof input.enabled) && ("object" === typeof input.schedule && null !== input.schedule && false === Array.isArray(input.schedule) && _io4(input.schedule)) && "string" === typeof input.prompt && (void 0 === input.metadata || "object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && _io5(input.metadata));
|
|
1918
|
+
const _io4 = (input) => (void 0 === input.cron || "string" === typeof input.cron) && (void 0 === input.interval || "string" === typeof input.interval) && (void 0 === input.timezone || "string" === typeof input.timezone) && (void 0 === input.maxConcurrentRuns || "number" === typeof input.maxConcurrentRuns && __typia_transform__isTypeUint32._isTypeUint32(input.maxConcurrentRuns));
|
|
1919
|
+
const _io5 = (input) => Object.keys(input).every((key) => {
|
|
1795
1920
|
const value = input[key];
|
|
1796
1921
|
if (void 0 === value)
|
|
1797
1922
|
return true;
|
|
1798
1923
|
return true;
|
|
1799
1924
|
});
|
|
1800
|
-
const
|
|
1925
|
+
const _io6 = (input) => "string" === typeof input.name && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.defaultModel || "object" === typeof input.defaultModel && null !== input.defaultModel && _io7(input.defaultModel)) && (void 0 === input.defaultCompliance || "object" === typeof input.defaultCompliance && null !== input.defaultCompliance && false === Array.isArray(input.defaultCompliance) && _io9(input.defaultCompliance));
|
|
1926
|
+
const _io7 = (input) => "string" === typeof input.preferred && (void 0 === input.fallbacks || Array.isArray(input.fallbacks) && input.fallbacks.every((elem) => "string" === typeof elem)) && (void 0 === input.constraints || "object" === typeof input.constraints && null !== input.constraints && false === Array.isArray(input.constraints) && _io8(input.constraints));
|
|
1927
|
+
const _io8 = (input) => (void 0 === input.temperature || "number" === typeof input.temperature && (0 <= input.temperature && input.temperature <= 2)) && (void 0 === input.maxTokens || "number" === typeof input.maxTokens && __typia_transform__isTypeUint32._isTypeUint32(input.maxTokens)) && (void 0 === input.topP || "number" === typeof input.topP && (0 <= input.topP && input.topP <= 1)) && (void 0 === input.thinkingLevel || "off" === input.thinkingLevel || "minimal" === input.thinkingLevel || "low" === input.thinkingLevel || "medium" === input.thinkingLevel || "high" === input.thinkingLevel || "xhigh" === input.thinkingLevel || "adaptive" === input.thinkingLevel);
|
|
1928
|
+
const _io9 = (input) => (void 0 === input.riskTier || "low" === input.riskTier || "high" === input.riskTier || "standard" === input.riskTier || "critical" === input.riskTier) && (void 0 === input.frameworks || Array.isArray(input.frameworks) && input.frameworks.every((elem) => "string" === typeof elem)) && (void 0 === input.humanInTheLoop || "always" === input.humanInTheLoop || "conditional" === input.humanInTheLoop || "advisory" === input.humanInTheLoop || "none" === input.humanInTheLoop) && (void 0 === input.auditLogging || "boolean" === typeof input.auditLogging) && (void 0 === input.retentionPeriod || "string" === typeof input.retentionPeriod);
|
|
1929
|
+
const _io10 = (input) => "string" === typeof input.plugin && (void 0 === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io5(input.options));
|
|
1930
|
+
const _io11 = (input) => Object.keys(input).every((key) => {
|
|
1801
1931
|
const value = input[key];
|
|
1802
1932
|
if (void 0 === value)
|
|
1803
1933
|
return true;
|
|
1804
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1934
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io12(value);
|
|
1805
1935
|
});
|
|
1806
|
-
const
|
|
1936
|
+
const _io12 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.config || "object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && _io5(input.config)) && (void 0 === input.agents || "object" === typeof input.agents && null !== input.agents && false === Array.isArray(input.agents) && _io13(input.agents)) && (void 0 === input.secrets || "object" === typeof input.secrets && null !== input.secrets && false === Array.isArray(input.secrets) && _io2(input.secrets)) && Object.keys(input).every((key) => {
|
|
1807
1937
|
if (["enabled", "config", "agents", "secrets"].some((prop) => key === prop))
|
|
1808
1938
|
return true;
|
|
1809
1939
|
const value = input[key];
|
|
@@ -1811,19 +1941,19 @@ var validateCloudConfig = (() => {
|
|
|
1811
1941
|
return true;
|
|
1812
1942
|
return true;
|
|
1813
1943
|
});
|
|
1814
|
-
const
|
|
1944
|
+
const _io13 = (input) => Object.keys(input).every((key) => {
|
|
1815
1945
|
const value = input[key];
|
|
1816
1946
|
if (void 0 === value)
|
|
1817
1947
|
return true;
|
|
1818
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1948
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io14(value);
|
|
1819
1949
|
});
|
|
1820
|
-
const
|
|
1821
|
-
const
|
|
1822
|
-
const
|
|
1823
|
-
const
|
|
1824
|
-
const
|
|
1825
|
-
const
|
|
1826
|
-
const
|
|
1950
|
+
const _io14 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.config || "object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && _io5(input.config));
|
|
1951
|
+
const _io15 = (input) => (void 0 === input.providers || Array.isArray(input.providers) && input.providers.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io16(elem))) && (void 0 === input.configurations || Array.isArray(input.configurations) && input.configurations.every((elem) => "object" === typeof elem && null !== elem && _io20(elem))) && (void 0 === input.vaults || "object" === typeof input.vaults && null !== input.vaults && false === Array.isArray(input.vaults) && _io90(input.vaults));
|
|
1952
|
+
const _io16 = (input) => (void 0 === input.id || "string" === typeof input.id) && (void 0 === input.api || "string" === typeof input.api) && (void 0 === input.apiKey || "string" === typeof input.apiKey) && (void 0 === input.auth || "string" === typeof input.auth) && (void 0 === input.baseUrl || "string" === typeof input.baseUrl) && (void 0 === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io2(input.headers)) && (void 0 === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io17(input.request)) && (void 0 === input.models || Array.isArray(input.models) && input.models.every((elem) => "object" === typeof elem && null !== elem && _io18(elem)));
|
|
1953
|
+
const _io17 = (input) => void 0 === input.allowPrivateNetwork || "boolean" === typeof input.allowPrivateNetwork;
|
|
1954
|
+
const _io18 = (input) => "string" === typeof input.id && (void 0 === input.name || "string" === typeof input.name) && (void 0 === input.reasoning || "boolean" === typeof input.reasoning) && (void 0 === input.input || Array.isArray(input.input) && input.input.every((elem) => "string" === typeof elem)) && (void 0 === input.contextWindow || "number" === typeof input.contextWindow) && (void 0 === input.maxTokens || "number" === typeof input.maxTokens) && (void 0 === input.cost || "object" === typeof input.cost && null !== input.cost && false === Array.isArray(input.cost) && _io19(input.cost));
|
|
1955
|
+
const _io19 = (input) => (void 0 === input.input || "number" === typeof input.input) && (void 0 === input.output || "number" === typeof input.output) && (void 0 === input.cacheRead || "number" === typeof input.cacheRead) && (void 0 === input.cacheWrite || "number" === typeof input.cacheWrite);
|
|
1956
|
+
const _io20 = (input) => "string" === typeof input.id && (void 0 === input["extends"] || "string" === typeof input["extends"]) && (void 0 === input.model || "object" === typeof input.model && null !== input.model && _io7(input.model)) && (void 0 === input.openclaw || "object" === typeof input.openclaw && null !== input.openclaw && false === Array.isArray(input.openclaw) && _io21(input.openclaw)) && Object.keys(input).every((key) => {
|
|
1827
1957
|
if (["id", "extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1828
1958
|
return true;
|
|
1829
1959
|
const value = input[key];
|
|
@@ -1831,7 +1961,7 @@ var validateCloudConfig = (() => {
|
|
|
1831
1961
|
return true;
|
|
1832
1962
|
return true;
|
|
1833
1963
|
});
|
|
1834
|
-
const
|
|
1964
|
+
const _io21 = (input) => (void 0 === input.agents || "object" === typeof input.agents && null !== input.agents && false === Array.isArray(input.agents) && _io22(input.agents)) && (void 0 === input.bindings || Array.isArray(input.bindings) && input.bindings.every((elem) => "object" === typeof elem && null !== elem && _io38(elem))) && (void 0 === input.channels || "object" === typeof input.channels && null !== input.channels && false === Array.isArray(input.channels) && _io42(input.channels)) && (void 0 === input.acp || "object" === typeof input.acp && null !== input.acp && false === Array.isArray(input.acp) && _io54(input.acp)) && (void 0 === input.session || "object" === typeof input.session && null !== input.session && false === Array.isArray(input.session) && _io58(input.session)) && (void 0 === input.messages || "object" === typeof input.messages && null !== input.messages && false === Array.isArray(input.messages) && _io63(input.messages)) && (void 0 === input.tools || "object" === typeof input.tools && null !== input.tools && false === Array.isArray(input.tools) && _io66(input.tools)) && (void 0 === input.models || "object" === typeof input.models && null !== input.models && false === Array.isArray(input.models) && _io73(input.models)) && (void 0 === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io75(input.plugins)) && (void 0 === input.skills || "object" === typeof input.skills && null !== input.skills && false === Array.isArray(input.skills) && _io80(input.skills)) && (void 0 === input.gateway || "object" === typeof input.gateway && null !== input.gateway && false === Array.isArray(input.gateway) && _io85(input.gateway)) && (void 0 === input.logging || "object" === typeof input.logging && null !== input.logging && false === Array.isArray(input.logging) && _io89(input.logging)) && (void 0 === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io5(input.env)) && Object.keys(input).every((key) => {
|
|
1835
1965
|
if (["agents", "bindings", "channels", "acp", "session", "messages", "tools", "models", "plugins", "skills", "gateway", "logging", "env"].some((prop) => key === prop))
|
|
1836
1966
|
return true;
|
|
1837
1967
|
const value = input[key];
|
|
@@ -1839,32 +1969,32 @@ var validateCloudConfig = (() => {
|
|
|
1839
1969
|
return true;
|
|
1840
1970
|
return true;
|
|
1841
1971
|
});
|
|
1842
|
-
const
|
|
1843
|
-
const
|
|
1844
|
-
const
|
|
1845
|
-
const
|
|
1972
|
+
const _io22 = (input) => (void 0 === input.defaults || "object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) && _io23(input.defaults)) && (void 0 === input.list || Array.isArray(input.list) && input.list.every((elem) => "object" === typeof elem && null !== elem && _io30(elem)));
|
|
1973
|
+
const _io23 = (input) => (void 0 === input.workspace || "string" === typeof input.workspace) && (void 0 === input.repoRoot || "string" === typeof input.repoRoot) && (void 0 === input.skipBootstrap || "boolean" === typeof input.skipBootstrap) && (void 0 === input.bootstrapMaxChars || "number" === typeof input.bootstrapMaxChars && __typia_transform__isTypeUint32._isTypeUint32(input.bootstrapMaxChars)) && (void 0 === input.bootstrapTotalMaxChars || "number" === typeof input.bootstrapTotalMaxChars && __typia_transform__isTypeUint32._isTypeUint32(input.bootstrapTotalMaxChars)) && (null !== input.model && (void 0 === input.model || "string" === typeof input.model || "object" === typeof input.model && null !== input.model && _io24(input.model))) && (null !== input.imageModel && (void 0 === input.imageModel || "string" === typeof input.imageModel || "object" === typeof input.imageModel && null !== input.imageModel && _io24(input.imageModel))) && (null !== input.pdfModel && (void 0 === input.pdfModel || "string" === typeof input.pdfModel || "object" === typeof input.pdfModel && null !== input.pdfModel && _io24(input.pdfModel))) && (null !== input.imageGenerationModel && (void 0 === input.imageGenerationModel || "string" === typeof input.imageGenerationModel || "object" === typeof input.imageGenerationModel && null !== input.imageGenerationModel && _io24(input.imageGenerationModel))) && (void 0 === input.models || "object" === typeof input.models && null !== input.models && false === Array.isArray(input.models) && _io25(input.models)) && (void 0 === input.thinkingDefault || "off" === input.thinkingDefault || "minimal" === input.thinkingDefault || "low" === input.thinkingDefault || "medium" === input.thinkingDefault || "high" === input.thinkingDefault || "xhigh" === input.thinkingDefault || "adaptive" === input.thinkingDefault) && (void 0 === input.verboseDefault || "off" === input.verboseDefault || "on" === input.verboseDefault || "full" === input.verboseDefault) && (void 0 === input.elevatedDefault || "off" === input.elevatedDefault || "on" === input.elevatedDefault || "full" === input.elevatedDefault || "ask" === input.elevatedDefault) && (void 0 === input.timeoutSeconds || "number" === typeof input.timeoutSeconds && __typia_transform__isTypeUint32._isTypeUint32(input.timeoutSeconds)) && (void 0 === input.mediaMaxMb || "number" === typeof input.mediaMaxMb && __typia_transform__isTypeUint32._isTypeUint32(input.mediaMaxMb)) && (void 0 === input.contextTokens || "number" === typeof input.contextTokens && __typia_transform__isTypeUint32._isTypeUint32(input.contextTokens)) && (void 0 === input.maxConcurrent || "number" === typeof input.maxConcurrent && __typia_transform__isTypeUint32._isTypeUint32(input.maxConcurrent)) && (void 0 === input.userTimezone || "string" === typeof input.userTimezone) && (void 0 === input.envelopeTimezone || "string" === typeof input.envelopeTimezone) && (void 0 === input.envelopeTimestamp || "off" === input.envelopeTimestamp || "on" === input.envelopeTimestamp) && (void 0 === input.envelopeElapsed || "off" === input.envelopeElapsed || "on" === input.envelopeElapsed) && (void 0 === input.timeFormat || "auto" === input.timeFormat || "12" === input.timeFormat || "24" === input.timeFormat) && (void 0 === input.heartbeat || "object" === typeof input.heartbeat && null !== input.heartbeat && false === Array.isArray(input.heartbeat) && _io27(input.heartbeat)) && (void 0 === input.compaction || "object" === typeof input.compaction && null !== input.compaction && false === Array.isArray(input.compaction) && _io28(input.compaction)) && (void 0 === input.sandbox || "object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) && _io5(input.sandbox)) && (void 0 === input.subagents || "object" === typeof input.subagents && null !== input.subagents && false === Array.isArray(input.subagents) && _io29(input.subagents));
|
|
1974
|
+
const _io24 = (input) => "string" === typeof input.primary && (void 0 === input.fallbacks || Array.isArray(input.fallbacks) && input.fallbacks.every((elem) => "string" === typeof elem));
|
|
1975
|
+
const _io25 = (input) => Object.keys(input).every((key) => {
|
|
1846
1976
|
const value = input[key];
|
|
1847
1977
|
if (void 0 === value)
|
|
1848
1978
|
return true;
|
|
1849
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1979
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io26(value);
|
|
1850
1980
|
});
|
|
1851
|
-
const
|
|
1852
|
-
const
|
|
1853
|
-
const
|
|
1854
|
-
const
|
|
1855
|
-
const
|
|
1856
|
-
const
|
|
1857
|
-
const
|
|
1858
|
-
const
|
|
1859
|
-
const
|
|
1860
|
-
const
|
|
1861
|
-
const
|
|
1862
|
-
const
|
|
1863
|
-
const
|
|
1864
|
-
const
|
|
1865
|
-
const
|
|
1866
|
-
const
|
|
1867
|
-
const
|
|
1981
|
+
const _io26 = (input) => (void 0 === input.alias || "string" === typeof input.alias) && (void 0 === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _io5(input.params));
|
|
1982
|
+
const _io27 = (input) => (void 0 === input.every || "string" === typeof input.every) && (void 0 === input.model || "string" === typeof input.model) && (void 0 === input.prompt || "string" === typeof input.prompt) && (void 0 === input.session || "string" === typeof input.session) && (void 0 === input.to || "string" === typeof input.to) && (void 0 === input.target || "string" === typeof input.target);
|
|
1983
|
+
const _io28 = (input) => (void 0 === input.mode || "default" === input.mode || "safeguard" === input.mode) && (void 0 === input.timeoutSeconds || "number" === typeof input.timeoutSeconds && __typia_transform__isTypeUint32._isTypeUint32(input.timeoutSeconds)) && (void 0 === input.identifierPolicy || "off" === input.identifierPolicy || "strict" === input.identifierPolicy || "custom" === input.identifierPolicy) && (void 0 === input.identifierInstructions || "string" === typeof input.identifierInstructions) && (void 0 === input.model || "string" === typeof input.model);
|
|
1984
|
+
const _io29 = (input) => (void 0 === input.model || "string" === typeof input.model) && (void 0 === input.maxConcurrent || "number" === typeof input.maxConcurrent && __typia_transform__isTypeUint32._isTypeUint32(input.maxConcurrent)) && (void 0 === input.runTimeoutSeconds || "number" === typeof input.runTimeoutSeconds && __typia_transform__isTypeUint32._isTypeUint32(input.runTimeoutSeconds));
|
|
1985
|
+
const _io30 = (input) => "string" === typeof input.id && (void 0 === input["default"] || "boolean" === typeof input["default"]) && (void 0 === input.name || "string" === typeof input.name) && (void 0 === input.workspace || "string" === typeof input.workspace) && (void 0 === input.agentDir || "string" === typeof input.agentDir) && (null !== input.model && (void 0 === input.model || "string" === typeof input.model || "object" === typeof input.model && null !== input.model && _io24(input.model))) && (void 0 === input.thinkingDefault || "off" === input.thinkingDefault || "minimal" === input.thinkingDefault || "low" === input.thinkingDefault || "medium" === input.thinkingDefault || "high" === input.thinkingDefault || "xhigh" === input.thinkingDefault || "adaptive" === input.thinkingDefault) && (void 0 === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _io5(input.params)) && (void 0 === input.identity || "object" === typeof input.identity && null !== input.identity && false === Array.isArray(input.identity) && _io31(input.identity)) && (void 0 === input.groupChat || "object" === typeof input.groupChat && null !== input.groupChat && false === Array.isArray(input.groupChat) && _io32(input.groupChat)) && (void 0 === input.runtime || "object" === typeof input.runtime && null !== input.runtime && _io33(input.runtime)) && (void 0 === input.subagents || "object" === typeof input.subagents && null !== input.subagents && false === Array.isArray(input.subagents) && _io35(input.subagents)) && (void 0 === input.tools || "object" === typeof input.tools && null !== input.tools && false === Array.isArray(input.tools) && _io36(input.tools)) && (void 0 === input.sandbox || "object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) && _io5(input.sandbox)) && (void 0 === input.systemPrompt || "string" === typeof input.systemPrompt) && (void 0 === input.instructions || "string" === typeof input.instructions);
|
|
1986
|
+
const _io31 = (input) => (void 0 === input.name || "string" === typeof input.name) && (void 0 === input.theme || "string" === typeof input.theme) && (void 0 === input.emoji || "string" === typeof input.emoji) && (void 0 === input.avatar || "string" === typeof input.avatar);
|
|
1987
|
+
const _io32 = (input) => void 0 === input.mentionPatterns || Array.isArray(input.mentionPatterns) && input.mentionPatterns.every((elem) => "string" === typeof elem);
|
|
1988
|
+
const _io33 = (input) => ("acp" === input.type || "subagent" === input.type) && (void 0 === input.acp || "object" === typeof input.acp && null !== input.acp && _io34(input.acp));
|
|
1989
|
+
const _io34 = (input) => "string" === typeof input.agent && (void 0 === input.backend || "string" === typeof input.backend) && (void 0 === input.mode || "persistent" === input.mode || "ephemeral" === input.mode) && (void 0 === input.cwd || "string" === typeof input.cwd);
|
|
1990
|
+
const _io35 = (input) => void 0 === input.allowAgents || Array.isArray(input.allowAgents) && input.allowAgents.every((elem) => "string" === typeof elem);
|
|
1991
|
+
const _io36 = (input) => (void 0 === input.profile || "minimal" === input.profile || "full" === input.profile || "coding" === input.profile || "messaging" === input.profile || "dangerously-skip-permissions" === input.profile || "approve-reads" === input.profile || "approve-all" === input.profile || "deny-all" === input.profile) && (void 0 === input.allow || Array.isArray(input.allow) && input.allow.every((elem) => "string" === typeof elem)) && (void 0 === input.deny || Array.isArray(input.deny) && input.deny.every((elem) => "string" === typeof elem)) && (void 0 === input.elevated || "object" === typeof input.elevated && null !== input.elevated && false === Array.isArray(input.elevated) && _io37(input.elevated));
|
|
1992
|
+
const _io37 = (input) => void 0 === input.enabled || "boolean" === typeof input.enabled;
|
|
1993
|
+
const _io38 = (input) => "string" === typeof input.agentId && (void 0 === input.type || "acp" === input.type || "route" === input.type) && ("object" === typeof input.match && null !== input.match && _io39(input.match)) && (void 0 === input.acp || "object" === typeof input.acp && null !== input.acp && false === Array.isArray(input.acp) && _io41(input.acp));
|
|
1994
|
+
const _io39 = (input) => "string" === typeof input.channel && (void 0 === input.accountId || "string" === typeof input.accountId) && (void 0 === input.peer || "object" === typeof input.peer && null !== input.peer && false === Array.isArray(input.peer) && _io40(input.peer)) && (void 0 === input.guildId || "string" === typeof input.guildId) && (void 0 === input.teamId || "string" === typeof input.teamId);
|
|
1995
|
+
const _io40 = (input) => (void 0 === input.kind || "direct" === input.kind || "group" === input.kind || "channel" === input.kind) && (void 0 === input.id || "string" === typeof input.id);
|
|
1996
|
+
const _io41 = (input) => (void 0 === input.mode || "string" === typeof input.mode) && (void 0 === input.label || "string" === typeof input.label) && (void 0 === input.cwd || "string" === typeof input.cwd) && (void 0 === input.backend || "string" === typeof input.backend);
|
|
1997
|
+
const _io42 = (input) => (void 0 === input.defaults || "object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) && _io43(input.defaults)) && (void 0 === input.modelByChannel || "object" === typeof input.modelByChannel && null !== input.modelByChannel && false === Array.isArray(input.modelByChannel) && _io1(input.modelByChannel)) && (void 0 === input.telegram || "object" === typeof input.telegram && null !== input.telegram && false === Array.isArray(input.telegram) && _io45(input.telegram)) && (void 0 === input.discord || "object" === typeof input.discord && null !== input.discord && false === Array.isArray(input.discord) && _io48(input.discord)) && (void 0 === input.slack || "object" === typeof input.slack && null !== input.slack && false === Array.isArray(input.slack) && _io49(input.slack)) && (void 0 === input.whatsapp || "object" === typeof input.whatsapp && null !== input.whatsapp && false === Array.isArray(input.whatsapp) && _io50(input.whatsapp)) && (void 0 === input.shadowob || "object" === typeof input.shadowob && null !== input.shadowob && false === Array.isArray(input.shadowob) && _io51(input.shadowob)) && Object.keys(input).every((key) => {
|
|
1868
1998
|
if (["defaults", "modelByChannel", "telegram", "discord", "slack", "whatsapp", "shadowob"].some((prop) => key === prop))
|
|
1869
1999
|
return true;
|
|
1870
2000
|
const value = input[key];
|
|
@@ -1872,10 +2002,10 @@ var validateCloudConfig = (() => {
|
|
|
1872
2002
|
return true;
|
|
1873
2003
|
return true;
|
|
1874
2004
|
});
|
|
1875
|
-
const
|
|
1876
|
-
const
|
|
1877
|
-
const
|
|
1878
|
-
const
|
|
2005
|
+
const _io43 = (input) => (void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy) && (void 0 === input.heartbeat || "object" === typeof input.heartbeat && null !== input.heartbeat && false === Array.isArray(input.heartbeat) && _io44(input.heartbeat));
|
|
2006
|
+
const _io44 = (input) => (void 0 === input.showOk || "boolean" === typeof input.showOk) && (void 0 === input.showAlerts || "boolean" === typeof input.showAlerts) && (void 0 === input.useIndicator || "boolean" === typeof input.useIndicator);
|
|
2007
|
+
const _io45 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.capabilities || "object" === typeof input.capabilities && null !== input.capabilities && false === Array.isArray(input.capabilities) && _io46(input.capabilities)) && (void 0 === input.dmPolicy || "allowlist" === input.dmPolicy || "open" === input.dmPolicy || "disabled" === input.dmPolicy || "pairing" === input.dmPolicy) && (void 0 === input.allowFrom || Array.isArray(input.allowFrom) && input.allowFrom.every((elem) => "string" === typeof elem)) && (void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy) && (void 0 === input.historyLimit || "number" === typeof input.historyLimit && __typia_transform__isTypeUint32._isTypeUint32(input.historyLimit)) && (void 0 === input.mediaMaxMb || "number" === typeof input.mediaMaxMb && __typia_transform__isTypeUint32._isTypeUint32(input.mediaMaxMb)) && (void 0 === input.streaming || "off" === input.streaming || "partial" === input.streaming || "block" === input.streaming || "progress" === input.streaming) && (void 0 === input.configWrites || "boolean" === typeof input.configWrites) && (void 0 === input.botToken || "string" === typeof input.botToken) && (void 0 === input.groups || "object" === typeof input.groups && null !== input.groups && false === Array.isArray(input.groups) && _io5(input.groups)) && (void 0 === input.customCommands || Array.isArray(input.customCommands) && input.customCommands.every((elem) => "object" === typeof elem && null !== elem && _io47(elem))) && (void 0 === input.replyToMode || "off" === input.replyToMode || "all" === input.replyToMode || "first" === input.replyToMode) && (void 0 === input.linkPreview || "boolean" === typeof input.linkPreview);
|
|
2008
|
+
const _io46 = (input) => (void 0 === input.inlineButtons || "off" === input.inlineButtons || "group" === input.inlineButtons || "allowlist" === input.inlineButtons || "dm" === input.inlineButtons || "all" === input.inlineButtons || "boolean" === typeof input.inlineButtons) && (void 0 === input.interactive || "boolean" === typeof input.interactive) && (void 0 === input.forms || "boolean" === typeof input.forms) && Object.keys(input).every((key) => {
|
|
1879
2009
|
if (["inlineButtons", "interactive", "forms"].some((prop) => key === prop))
|
|
1880
2010
|
return true;
|
|
1881
2011
|
const value = input[key];
|
|
@@ -1883,101 +2013,102 @@ var validateCloudConfig = (() => {
|
|
|
1883
2013
|
return true;
|
|
1884
2014
|
return true;
|
|
1885
2015
|
});
|
|
1886
|
-
const
|
|
1887
|
-
const
|
|
1888
|
-
const
|
|
1889
|
-
const
|
|
1890
|
-
const
|
|
1891
|
-
const
|
|
2016
|
+
const _io47 = (input) => "string" === typeof input.command && "string" === typeof input.description;
|
|
2017
|
+
const _io48 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.capabilities || "object" === typeof input.capabilities && null !== input.capabilities && false === Array.isArray(input.capabilities) && _io46(input.capabilities)) && (void 0 === input.dmPolicy || "allowlist" === input.dmPolicy || "open" === input.dmPolicy || "disabled" === input.dmPolicy || "pairing" === input.dmPolicy) && (void 0 === input.allowFrom || Array.isArray(input.allowFrom) && input.allowFrom.every((elem) => "string" === typeof elem)) && (void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy) && (void 0 === input.historyLimit || "number" === typeof input.historyLimit && __typia_transform__isTypeUint32._isTypeUint32(input.historyLimit)) && (void 0 === input.mediaMaxMb || "number" === typeof input.mediaMaxMb && __typia_transform__isTypeUint32._isTypeUint32(input.mediaMaxMb)) && (void 0 === input.streaming || "off" === input.streaming || "partial" === input.streaming || "block" === input.streaming || "progress" === input.streaming) && (void 0 === input.configWrites || "boolean" === typeof input.configWrites) && (void 0 === input.token || "string" === typeof input.token) && (void 0 === input.allowBots || "mentions" === input.allowBots || "boolean" === typeof input.allowBots) && (void 0 === input.guilds || "object" === typeof input.guilds && null !== input.guilds && false === Array.isArray(input.guilds) && _io5(input.guilds)) && (void 0 === input.replyToMode || "off" === input.replyToMode || "all" === input.replyToMode || "first" === input.replyToMode) && (void 0 === input.textChunkLimit || "number" === typeof input.textChunkLimit) && (void 0 === input.chunkMode || "length" === input.chunkMode || "newline" === input.chunkMode);
|
|
2018
|
+
const _io49 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.capabilities || "object" === typeof input.capabilities && null !== input.capabilities && false === Array.isArray(input.capabilities) && _io46(input.capabilities)) && (void 0 === input.dmPolicy || "allowlist" === input.dmPolicy || "open" === input.dmPolicy || "disabled" === input.dmPolicy || "pairing" === input.dmPolicy) && (void 0 === input.allowFrom || Array.isArray(input.allowFrom) && input.allowFrom.every((elem) => "string" === typeof elem)) && (void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy) && (void 0 === input.historyLimit || "number" === typeof input.historyLimit && __typia_transform__isTypeUint32._isTypeUint32(input.historyLimit)) && (void 0 === input.mediaMaxMb || "number" === typeof input.mediaMaxMb && __typia_transform__isTypeUint32._isTypeUint32(input.mediaMaxMb)) && (void 0 === input.streaming || "off" === input.streaming || "partial" === input.streaming || "block" === input.streaming || "progress" === input.streaming) && (void 0 === input.configWrites || "boolean" === typeof input.configWrites) && (void 0 === input.botToken || "string" === typeof input.botToken) && (void 0 === input.appToken || "string" === typeof input.appToken) && (void 0 === input.channels || "object" === typeof input.channels && null !== input.channels && false === Array.isArray(input.channels) && _io5(input.channels)) && (void 0 === input.allowBots || "boolean" === typeof input.allowBots);
|
|
2019
|
+
const _io50 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.capabilities || "object" === typeof input.capabilities && null !== input.capabilities && false === Array.isArray(input.capabilities) && _io46(input.capabilities)) && (void 0 === input.dmPolicy || "allowlist" === input.dmPolicy || "open" === input.dmPolicy || "disabled" === input.dmPolicy || "pairing" === input.dmPolicy) && (void 0 === input.allowFrom || Array.isArray(input.allowFrom) && input.allowFrom.every((elem) => "string" === typeof elem)) && (void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy) && (void 0 === input.historyLimit || "number" === typeof input.historyLimit && __typia_transform__isTypeUint32._isTypeUint32(input.historyLimit)) && (void 0 === input.mediaMaxMb || "number" === typeof input.mediaMaxMb && __typia_transform__isTypeUint32._isTypeUint32(input.mediaMaxMb)) && (void 0 === input.streaming || "off" === input.streaming || "partial" === input.streaming || "block" === input.streaming || "progress" === input.streaming) && (void 0 === input.configWrites || "boolean" === typeof input.configWrites) && (void 0 === input.textChunkLimit || "number" === typeof input.textChunkLimit) && (void 0 === input.chunkMode || "length" === input.chunkMode || "newline" === input.chunkMode) && (void 0 === input.sendReadReceipts || "boolean" === typeof input.sendReadReceipts) && (void 0 === input.groups || "object" === typeof input.groups && null !== input.groups && false === Array.isArray(input.groups) && _io5(input.groups));
|
|
2020
|
+
const _io51 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.capabilities || "object" === typeof input.capabilities && null !== input.capabilities && false === Array.isArray(input.capabilities) && _io46(input.capabilities)) && (void 0 === input.dmPolicy || "allowlist" === input.dmPolicy || "open" === input.dmPolicy || "disabled" === input.dmPolicy || "pairing" === input.dmPolicy) && (void 0 === input.allowFrom || Array.isArray(input.allowFrom) && input.allowFrom.every((elem) => "string" === typeof elem)) && (void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy) && (void 0 === input.historyLimit || "number" === typeof input.historyLimit && __typia_transform__isTypeUint32._isTypeUint32(input.historyLimit)) && (void 0 === input.mediaMaxMb || "number" === typeof input.mediaMaxMb && __typia_transform__isTypeUint32._isTypeUint32(input.mediaMaxMb)) && (void 0 === input.streaming || "off" === input.streaming || "partial" === input.streaming || "block" === input.streaming || "progress" === input.streaming) && (void 0 === input.configWrites || "boolean" === typeof input.configWrites) && (void 0 === input.accounts || "object" === typeof input.accounts && null !== input.accounts && false === Array.isArray(input.accounts) && _io52(input.accounts));
|
|
2021
|
+
const _io52 = (input) => Object.keys(input).every((key) => {
|
|
1892
2022
|
const value = input[key];
|
|
1893
2023
|
if (void 0 === value)
|
|
1894
2024
|
return true;
|
|
1895
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2025
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io53(value);
|
|
1896
2026
|
});
|
|
1897
|
-
const
|
|
1898
|
-
const
|
|
1899
|
-
const
|
|
1900
|
-
const
|
|
1901
|
-
const
|
|
1902
|
-
const
|
|
1903
|
-
const
|
|
1904
|
-
const
|
|
2027
|
+
const _io53 = (input) => (void 0 === input.token || "string" === typeof input.token) && (void 0 === input.serverUrl || "string" === typeof input.serverUrl) && (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.capabilities || "object" === typeof input.capabilities && null !== input.capabilities && false === Array.isArray(input.capabilities) && _io46(input.capabilities));
|
|
2028
|
+
const _io54 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.dispatch || "object" === typeof input.dispatch && null !== input.dispatch && false === Array.isArray(input.dispatch) && _io55(input.dispatch)) && (void 0 === input.backend || "string" === typeof input.backend) && (void 0 === input.defaultAgent || "string" === typeof input.defaultAgent) && (void 0 === input.allowedAgents || Array.isArray(input.allowedAgents) && input.allowedAgents.every((elem) => "string" === typeof elem)) && (void 0 === input.maxConcurrentSessions || "number" === typeof input.maxConcurrentSessions && __typia_transform__isTypeUint32._isTypeUint32(input.maxConcurrentSessions)) && (void 0 === input.stream || "object" === typeof input.stream && null !== input.stream && false === Array.isArray(input.stream) && _io56(input.stream)) && (void 0 === input.runtime || "object" === typeof input.runtime && null !== input.runtime && false === Array.isArray(input.runtime) && _io57(input.runtime));
|
|
2029
|
+
const _io55 = (input) => void 0 === input.enabled || "boolean" === typeof input.enabled;
|
|
2030
|
+
const _io56 = (input) => (void 0 === input.coalesceIdleMs || "number" === typeof input.coalesceIdleMs) && (void 0 === input.maxChunkChars || "number" === typeof input.maxChunkChars) && (void 0 === input.repeatSuppression || "boolean" === typeof input.repeatSuppression) && (void 0 === input.deliveryMode || "live" === input.deliveryMode || "final_only" === input.deliveryMode) && (void 0 === input.maxOutputChars || "number" === typeof input.maxOutputChars) && (void 0 === input.maxSessionUpdateChars || "number" === typeof input.maxSessionUpdateChars);
|
|
2031
|
+
const _io57 = (input) => void 0 === input.ttlMinutes || "number" === typeof input.ttlMinutes;
|
|
2032
|
+
const _io58 = (input) => (void 0 === input.scope || "string" === typeof input.scope) && (void 0 === input.dmScope || "main" === input.dmScope || "per-peer" === input.dmScope || "per-channel-peer" === input.dmScope || "per-account-channel-peer" === input.dmScope) && (void 0 === input.reset || "object" === typeof input.reset && null !== input.reset && false === Array.isArray(input.reset) && _io59(input.reset)) && (void 0 === input.resetByType || "object" === typeof input.resetByType && null !== input.resetByType && false === Array.isArray(input.resetByType) && _io60(input.resetByType)) && (void 0 === input.resetTriggers || Array.isArray(input.resetTriggers) && input.resetTriggers.every((elem) => "string" === typeof elem)) && (void 0 === input.store || "string" === typeof input.store) && (void 0 === input.threadBindings || "object" === typeof input.threadBindings && null !== input.threadBindings && false === Array.isArray(input.threadBindings) && _io62(input.threadBindings));
|
|
2033
|
+
const _io59 = (input) => (void 0 === input.mode || "daily" === input.mode || "idle" === input.mode) && (void 0 === input.atHour || "number" === typeof input.atHour) && (void 0 === input.idleMinutes || "number" === typeof input.idleMinutes);
|
|
2034
|
+
const _io60 = (input) => Object.keys(input).every((key) => {
|
|
1905
2035
|
const value = input[key];
|
|
1906
2036
|
if (void 0 === value)
|
|
1907
2037
|
return true;
|
|
1908
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2038
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io61(value);
|
|
1909
2039
|
});
|
|
1910
|
-
const
|
|
1911
|
-
const
|
|
1912
|
-
const
|
|
1913
|
-
const
|
|
1914
|
-
const
|
|
1915
|
-
const
|
|
1916
|
-
const
|
|
1917
|
-
const
|
|
2040
|
+
const _io61 = (input) => (void 0 === input.mode || "daily" === input.mode || "idle" === input.mode) && (void 0 === input.atHour || "number" === typeof input.atHour) && (void 0 === input.idleMinutes || "number" === typeof input.idleMinutes);
|
|
2041
|
+
const _io62 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.idleHours || "number" === typeof input.idleHours) && (void 0 === input.maxAgeHours || "number" === typeof input.maxAgeHours);
|
|
2042
|
+
const _io63 = (input) => (void 0 === input.responsePrefix || "string" === typeof input.responsePrefix) && (void 0 === input.ackReaction || "string" === typeof input.ackReaction) && (void 0 === input.ackReactionScope || "direct" === input.ackReactionScope || "all" === input.ackReactionScope || "group-mentions" === input.ackReactionScope || "group-all" === input.ackReactionScope) && (void 0 === input.removeAckAfterReply || "boolean" === typeof input.removeAckAfterReply) && (void 0 === input.queue || "object" === typeof input.queue && null !== input.queue && false === Array.isArray(input.queue) && _io64(input.queue)) && (void 0 === input.groupChat || "object" === typeof input.groupChat && null !== input.groupChat && false === Array.isArray(input.groupChat) && _io65(input.groupChat));
|
|
2043
|
+
const _io64 = (input) => (void 0 === input.mode || "collect" === input.mode || "steer" === input.mode || "followup" === input.mode || "queue" === input.mode || "interrupt" === input.mode) && (void 0 === input.debounceMs || "number" === typeof input.debounceMs) && (void 0 === input.cap || "number" === typeof input.cap);
|
|
2044
|
+
const _io65 = (input) => void 0 === input.historyLimit || "number" === typeof input.historyLimit;
|
|
2045
|
+
const _io66 = (input) => (void 0 === input.profile || "minimal" === input.profile || "full" === input.profile || "coding" === input.profile || "messaging" === input.profile || "dangerously-skip-permissions" === input.profile || "approve-reads" === input.profile || "approve-all" === input.profile || "deny-all" === input.profile) && (void 0 === input.allow || Array.isArray(input.allow) && input.allow.every((elem) => "string" === typeof elem)) && (void 0 === input.deny || Array.isArray(input.deny) && input.deny.every((elem) => "string" === typeof elem)) && (void 0 === input.readOnly || Array.isArray(input.readOnly) && input.readOnly.every((elem) => "string" === typeof elem)) && (void 0 === input.nonInteractive || "deny" === input.nonInteractive || "fail" === input.nonInteractive) && (void 0 === input.elevated || "object" === typeof input.elevated && null !== input.elevated && false === Array.isArray(input.elevated) && _io67(input.elevated)) && (void 0 === input.exec || "object" === typeof input.exec && null !== input.exec && false === Array.isArray(input.exec) && _io69(input.exec)) && (void 0 === input.web || "object" === typeof input.web && null !== input.web && false === Array.isArray(input.web) && _io70(input.web)) && (void 0 === input.sandbox || "object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) && _io5(input.sandbox));
|
|
2046
|
+
const _io67 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.allowFrom || "object" === typeof input.allowFrom && null !== input.allowFrom && false === Array.isArray(input.allowFrom) && _io68(input.allowFrom));
|
|
2047
|
+
const _io68 = (input) => Object.keys(input).every((key) => {
|
|
1918
2048
|
const value = input[key];
|
|
1919
2049
|
if (void 0 === value)
|
|
1920
2050
|
return true;
|
|
1921
2051
|
return Array.isArray(value) && value.every((elem) => "string" === typeof elem);
|
|
1922
2052
|
});
|
|
1923
|
-
const
|
|
1924
|
-
const
|
|
1925
|
-
const
|
|
1926
|
-
const
|
|
1927
|
-
const
|
|
1928
|
-
const
|
|
2053
|
+
const _io69 = (input) => (void 0 === input.backgroundMs || "number" === typeof input.backgroundMs) && (void 0 === input.timeoutSec || "number" === typeof input.timeoutSec);
|
|
2054
|
+
const _io70 = (input) => (void 0 === input.search || "object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) && _io71(input.search)) && (void 0 === input.fetch || "object" === typeof input.fetch && null !== input.fetch && false === Array.isArray(input.fetch) && _io72(input.fetch));
|
|
2055
|
+
const _io71 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.apiKey || "string" === typeof input.apiKey) && (void 0 === input.maxResults || "number" === typeof input.maxResults);
|
|
2056
|
+
const _io72 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.maxChars || "number" === typeof input.maxChars);
|
|
2057
|
+
const _io73 = (input) => (void 0 === input.mode || "merge" === input.mode || "replace" === input.mode) && (void 0 === input.providers || "object" === typeof input.providers && null !== input.providers && false === Array.isArray(input.providers) && _io74(input.providers));
|
|
2058
|
+
const _io74 = (input) => Object.keys(input).every((key) => {
|
|
1929
2059
|
const value = input[key];
|
|
1930
2060
|
if (void 0 === value)
|
|
1931
2061
|
return true;
|
|
1932
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2062
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io16(value);
|
|
1933
2063
|
});
|
|
1934
|
-
const
|
|
1935
|
-
const
|
|
1936
|
-
const
|
|
2064
|
+
const _io75 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.allow || Array.isArray(input.allow) && input.allow.every((elem) => "string" === typeof elem)) && (void 0 === input.deny || Array.isArray(input.deny) && input.deny.every((elem) => "string" === typeof elem)) && (void 0 === input.load || "object" === typeof input.load && null !== input.load && false === Array.isArray(input.load) && _io76(input.load)) && (void 0 === input.entries || "object" === typeof input.entries && null !== input.entries && false === Array.isArray(input.entries) && _io77(input.entries));
|
|
2065
|
+
const _io76 = (input) => void 0 === input.paths || Array.isArray(input.paths) && input.paths.every((elem) => "string" === typeof elem);
|
|
2066
|
+
const _io77 = (input) => Object.keys(input).every((key) => {
|
|
1937
2067
|
const value = input[key];
|
|
1938
2068
|
if (void 0 === value)
|
|
1939
2069
|
return true;
|
|
1940
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2070
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io78(value);
|
|
1941
2071
|
});
|
|
1942
|
-
const
|
|
1943
|
-
const
|
|
1944
|
-
const
|
|
1945
|
-
const
|
|
1946
|
-
const
|
|
1947
|
-
const
|
|
2072
|
+
const _io78 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.config || "object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && _io5(input.config)) && (void 0 === input.hooks || "object" === typeof input.hooks && null !== input.hooks && false === Array.isArray(input.hooks) && _io79(input.hooks));
|
|
2073
|
+
const _io79 = (input) => void 0 === input.allowPromptInjection || "boolean" === typeof input.allowPromptInjection;
|
|
2074
|
+
const _io80 = (input) => (void 0 === input.allowBundled || Array.isArray(input.allowBundled) && input.allowBundled.every((elem) => "string" === typeof elem)) && (void 0 === input.load || "object" === typeof input.load && null !== input.load && false === Array.isArray(input.load) && _io81(input.load)) && (void 0 === input.install || "object" === typeof input.install && null !== input.install && false === Array.isArray(input.install) && _io82(input.install)) && (void 0 === input.entries || "object" === typeof input.entries && null !== input.entries && false === Array.isArray(input.entries) && _io83(input.entries));
|
|
2075
|
+
const _io81 = (input) => void 0 === input.extraDirs || Array.isArray(input.extraDirs) && input.extraDirs.every((elem) => "string" === typeof elem);
|
|
2076
|
+
const _io82 = (input) => (void 0 === input.preferBrew || "boolean" === typeof input.preferBrew) && (void 0 === input.nodeManager || "npm" === input.nodeManager || "pnpm" === input.nodeManager || "yarn" === input.nodeManager);
|
|
2077
|
+
const _io83 = (input) => Object.keys(input).every((key) => {
|
|
1948
2078
|
const value = input[key];
|
|
1949
2079
|
if (void 0 === value)
|
|
1950
2080
|
return true;
|
|
1951
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2081
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io84(value);
|
|
1952
2082
|
});
|
|
1953
|
-
const
|
|
1954
|
-
const
|
|
1955
|
-
const
|
|
1956
|
-
const
|
|
1957
|
-
const
|
|
1958
|
-
const
|
|
1959
|
-
const
|
|
2083
|
+
const _io84 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.apiKey || "string" === typeof input.apiKey) && (void 0 === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io2(input.env)) && (void 0 === input.config || "object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && _io5(input.config));
|
|
2084
|
+
const _io85 = (input) => (void 0 === input.mode || "local" === input.mode || "remote" === input.mode) && (void 0 === input.port || "number" === typeof input.port && __typia_transform__isTypeUint32._isTypeUint32(input.port)) && (void 0 === input.bind || "string" === typeof input.bind) && (void 0 === input.auth || "object" === typeof input.auth && null !== input.auth && false === Array.isArray(input.auth) && _io86(input.auth)) && (void 0 === input.tls || "object" === typeof input.tls && null !== input.tls && false === Array.isArray(input.tls) && _io87(input.tls)) && (void 0 === input.reload || "object" === typeof input.reload && null !== input.reload && false === Array.isArray(input.reload) && _io88(input.reload));
|
|
2085
|
+
const _io86 = (input) => (void 0 === input.mode || "none" === input.mode || "token" === input.mode || "password" === input.mode || "trusted-proxy" === input.mode) && (void 0 === input.token || "string" === typeof input.token) && (void 0 === input.password || "string" === typeof input.password) && (void 0 === input.allowTailscale || "boolean" === typeof input.allowTailscale);
|
|
2086
|
+
const _io87 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.certPath || "string" === typeof input.certPath) && (void 0 === input.keyPath || "string" === typeof input.keyPath);
|
|
2087
|
+
const _io88 = (input) => (void 0 === input.mode || "off" === input.mode || "restart" === input.mode || "hot" === input.mode || "hybrid" === input.mode) && (void 0 === input.debounceMs || "number" === typeof input.debounceMs);
|
|
2088
|
+
const _io89 = (input) => (void 0 === input.level || "string" === typeof input.level) && (void 0 === input.file || "string" === typeof input.file) && (void 0 === input.consoleLevel || "string" === typeof input.consoleLevel) && (void 0 === input.consoleStyle || "pretty" === input.consoleStyle || "compact" === input.consoleStyle || "json" === input.consoleStyle) && (void 0 === input.redactSensitive || "off" === input.redactSensitive || "tools" === input.redactSensitive);
|
|
2089
|
+
const _io90 = (input) => Object.keys(input).every((key) => {
|
|
1960
2090
|
const value = input[key];
|
|
1961
2091
|
if (void 0 === value)
|
|
1962
2092
|
return true;
|
|
1963
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2093
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io91(value);
|
|
1964
2094
|
});
|
|
1965
|
-
const
|
|
1966
|
-
const
|
|
2095
|
+
const _io91 = (input) => (void 0 === input.providers || "object" === typeof input.providers && null !== input.providers && false === Array.isArray(input.providers) && _io92(input.providers)) && (void 0 === input.secrets || "object" === typeof input.secrets && null !== input.secrets && false === Array.isArray(input.secrets) && _io2(input.secrets));
|
|
2096
|
+
const _io92 = (input) => Object.keys(input).every((key) => {
|
|
1967
2097
|
const value = input[key];
|
|
1968
2098
|
if (void 0 === value)
|
|
1969
2099
|
return true;
|
|
1970
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2100
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io93(value);
|
|
1971
2101
|
});
|
|
1972
|
-
const
|
|
1973
|
-
const
|
|
1974
|
-
const
|
|
1975
|
-
const
|
|
1976
|
-
const
|
|
1977
|
-
const
|
|
1978
|
-
const
|
|
1979
|
-
const
|
|
1980
|
-
const
|
|
2102
|
+
const _io93 = (input) => void 0 === input.apiKey || "string" === typeof input.apiKey;
|
|
2103
|
+
const _io94 = (input) => (void 0 === input.namespace || "string" === typeof input.namespace) && (void 0 === input.backend || "agent-sandbox" === input.backend || "deployment" === input.backend) && (void 0 === input.backendPolicy || "sandbox-required" === input.backendPolicy || "sandbox-preferred" === input.backendPolicy || "deployment-only" === input.backendPolicy) && (void 0 === input.sandbox || "object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) && _io95(input.sandbox)) && (void 0 === input.scheduling || "object" === typeof input.scheduling && null !== input.scheduling && false === Array.isArray(input.scheduling) && _io100(input.scheduling)) && (Array.isArray(input.agents) && input.agents.every((elem) => "object" === typeof elem && null !== elem && _io101(elem)));
|
|
2104
|
+
const _io95 = (input) => (void 0 === input.runtimeClassName || "string" === typeof input.runtimeClassName) && (void 0 === input.state || "object" === typeof input.state && null !== input.state && false === Array.isArray(input.state) && _io96(input.state)) && (void 0 === input.lifecycle || "object" === typeof input.lifecycle && null !== input.lifecycle && false === Array.isArray(input.lifecycle) && _io97(input.lifecycle)) && (void 0 === input.backup || "object" === typeof input.backup && null !== input.backup && false === Array.isArray(input.backup) && _io98(input.backup)) && (void 0 === input.warmPool || "object" === typeof input.warmPool && null !== input.warmPool && false === Array.isArray(input.warmPool) && _io99(input.warmPool));
|
|
2105
|
+
const _io96 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.size || "string" === typeof input.size) && (void 0 === input.storageClassName || "string" === typeof input.storageClassName) && (void 0 === input.accessMode || "ReadWriteOnce" === input.accessMode || "ReadWriteMany" === input.accessMode || "ReadOnlyMany" === input.accessMode);
|
|
2106
|
+
const _io97 = (input) => (void 0 === input.autoPause || "boolean" === typeof input.autoPause) && (void 0 === input.idleSeconds || "number" === typeof input.idleSeconds && __typia_transform__isTypeUint32._isTypeUint32(input.idleSeconds)) && (void 0 === input.backupBeforePause || "boolean" === typeof input.backupBeforePause) && (void 0 === input.shutdownPolicy || "Delete" === input.shutdownPolicy || "Retain" === input.shutdownPolicy);
|
|
2107
|
+
const _io98 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.driver || "volumeSnapshot" === input.driver || "restic" === input.driver) && (void 0 === input.schedule || "string" === typeof input.schedule) && (void 0 === input.retention || "number" === typeof input.retention && __typia_transform__isTypeUint32._isTypeUint32(input.retention));
|
|
2108
|
+
const _io99 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.replicas || "number" === typeof input.replicas && __typia_transform__isTypeUint32._isTypeUint32(input.replicas)) && (void 0 === input.updateStrategy || "OnReplenish" === input.updateStrategy || "Recreate" === input.updateStrategy);
|
|
2109
|
+
const _io100 = (input) => (void 0 === input.nodeSelector || "object" === typeof input.nodeSelector && null !== input.nodeSelector && false === Array.isArray(input.nodeSelector) && _io2(input.nodeSelector)) && (void 0 === input.affinity || "object" === typeof input.affinity && null !== input.affinity && false === Array.isArray(input.affinity) && _io5(input.affinity)) && (void 0 === input.tolerations || Array.isArray(input.tolerations) && input.tolerations.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io5(elem)));
|
|
2110
|
+
const _io101 = (input) => "string" === typeof input.id && ("openclaw" === input.runtime || "claude-code" === input.runtime || "codex" === input.runtime || "gemini" === input.runtime || "opencode" === input.runtime || "hermes" === input.runtime) && (void 0 === input.image || "string" === typeof input.image) && (void 0 === input.replicas || "number" === typeof input.replicas && (0 <= input.replicas && __typia_transform__isTypeUint32._isTypeUint32(input.replicas))) && ("object" === typeof input.configuration && null !== input.configuration && false === Array.isArray(input.configuration) && _io102(input.configuration)) && (void 0 === input.resources || "object" === typeof input.resources && null !== input.resources && false === Array.isArray(input.resources) && _io103(input.resources)) && (void 0 === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io2(input.env)) && (void 0 === input.identity || "object" === typeof input.identity && null !== input.identity && false === Array.isArray(input.identity) && _io105(input.identity)) && (void 0 === input.model || "object" === typeof input.model && null !== input.model && _io7(input.model)) && (void 0 === input.compliance || "object" === typeof input.compliance && null !== input.compliance && false === Array.isArray(input.compliance) && _io9(input.compliance)) && (void 0 === input.workflows || Array.isArray(input.workflows) && input.workflows.every((elem) => "object" === typeof elem && null !== elem && _io106(elem))) && (void 0 === input.use || Array.isArray(input.use) && input.use.every((elem) => "object" === typeof elem && null !== elem && _io10(elem))) && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.source || "object" === typeof input.source && null !== input.source && false === Array.isArray(input.source) && _io110(input.source)) && (void 0 === input.vault || "string" === typeof input.vault) && (void 0 === input.permissions || "object" === typeof input.permissions && null !== input.permissions && _io112(input.permissions)) && (void 0 === input.networking || "object" === typeof input.networking && null !== input.networking && _io114(input.networking)) && (void 0 === input.sandbox || "object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) && _io95(input.sandbox)) && (void 0 === input.scheduling || "object" === typeof input.scheduling && null !== input.scheduling && false === Array.isArray(input.scheduling) && _io100(input.scheduling)) && (void 0 === input.version || "string" === typeof input.version) && (void 0 === input.changelog || "string" === typeof input.changelog);
|
|
2111
|
+
const _io102 = (input) => (void 0 === input["extends"] || "string" === typeof input["extends"]) && (void 0 === input.model || "object" === typeof input.model && null !== input.model && _io7(input.model)) && (void 0 === input.openclaw || "object" === typeof input.openclaw && null !== input.openclaw && false === Array.isArray(input.openclaw) && _io21(input.openclaw)) && Object.keys(input).every((key) => {
|
|
1981
2112
|
if (["extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1982
2113
|
return true;
|
|
1983
2114
|
const value = input[key];
|
|
@@ -1985,31 +2116,31 @@ var validateCloudConfig = (() => {
|
|
|
1985
2116
|
return true;
|
|
1986
2117
|
return true;
|
|
1987
2118
|
});
|
|
1988
|
-
const
|
|
1989
|
-
const
|
|
1990
|
-
const
|
|
1991
|
-
const
|
|
1992
|
-
const
|
|
2119
|
+
const _io103 = (input) => (void 0 === input.requests || "object" === typeof input.requests && null !== input.requests && false === Array.isArray(input.requests) && _io104(input.requests)) && (void 0 === input.limits || "object" === typeof input.limits && null !== input.limits && false === Array.isArray(input.limits) && _io104(input.limits));
|
|
2120
|
+
const _io104 = (input) => (void 0 === input.cpu || "string" === typeof input.cpu) && (void 0 === input.memory || "string" === typeof input.memory);
|
|
2121
|
+
const _io105 = (input) => (void 0 === input.name || "string" === typeof input.name) && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.personality || "string" === typeof input.personality) && (void 0 === input.systemPrompt || "string" === typeof input.systemPrompt);
|
|
2122
|
+
const _io106 = (input) => "string" === typeof input.name && (void 0 === input.description || "string" === typeof input.description) && (void 0 === input.triggers || Array.isArray(input.triggers) && input.triggers.every((elem) => "string" === typeof elem)) && (void 0 === input.schedule || "string" === typeof input.schedule) && ("object" === typeof input.steps && null !== input.steps && false === Array.isArray(input.steps) && _io107(input.steps)) && (void 0 === input.errorHandling || "object" === typeof input.errorHandling && null !== input.errorHandling && false === Array.isArray(input.errorHandling) && _io109(input.errorHandling));
|
|
2123
|
+
const _io107 = (input) => Object.keys(input).every((key) => {
|
|
1993
2124
|
const value = input[key];
|
|
1994
2125
|
if (void 0 === value)
|
|
1995
2126
|
return true;
|
|
1996
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2127
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io108(value);
|
|
1997
2128
|
});
|
|
1998
|
-
const
|
|
1999
|
-
const
|
|
2000
|
-
const
|
|
2001
|
-
const
|
|
2002
|
-
const
|
|
2003
|
-
const
|
|
2129
|
+
const _io108 = (input) => (void 0 === input.skill || "string" === typeof input.skill) && (void 0 === input.agent || "string" === typeof input.agent) && (void 0 === input.tool || "string" === typeof input.tool) && (void 0 === input.dependsOn || Array.isArray(input.dependsOn) && input.dependsOn.every((elem) => "string" === typeof elem)) && (void 0 === input.inputs || "object" === typeof input.inputs && null !== input.inputs && false === Array.isArray(input.inputs) && _io2(input.inputs)) && (void 0 === input.prompt || "string" === typeof input.prompt) && (void 0 === input.conditions || Array.isArray(input.conditions) && input.conditions.every((elem) => "string" === typeof elem));
|
|
2130
|
+
const _io109 = (input) => (void 0 === input.onFailure || "retry" === input.onFailure || "notify" === input.onFailure || "abort" === input.onFailure) && (void 0 === input.notifyChannel || "string" === typeof input.notifyChannel) && (void 0 === input.maxRetries || "number" === typeof input.maxRetries && __typia_transform__isTypeUint32._isTypeUint32(input.maxRetries));
|
|
2131
|
+
const _io110 = (input) => (void 0 === input.git || "object" === typeof input.git && null !== input.git && _io111(input.git)) && (void 0 === input.path || "string" === typeof input.path) && (void 0 === input.strategy || "init-container" === input.strategy || "build-image" === input.strategy) && (void 0 === input.mountPath || "string" === typeof input.mountPath) && (void 0 === input.include || Array.isArray(input.include) && input.include.every((elem) => "string" === typeof elem)) && (void 0 === input.gitagent || "boolean" === typeof input.gitagent) && (void 0 === input.imageTag || "string" === typeof input.imageTag);
|
|
2132
|
+
const _io111 = (input) => "string" === typeof input.url && (void 0 === input.ref || "string" === typeof input.ref) && (void 0 === input.dir || "string" === typeof input.dir) && (void 0 === input.depth || "number" === typeof input.depth && __typia_transform__isTypeUint32._isTypeUint32(input.depth)) && (void 0 === input.sshKeySecret || "string" === typeof input.sshKeySecret) && (void 0 === input.tokenSecret || "string" === typeof input.tokenSecret);
|
|
2133
|
+
const _io112 = (input) => ("approve-reads" === input["default"] || "deny-all" === input["default"] || "always-allow" === input["default"] || "always-ask" === input["default"]) && (void 0 === input.tools || "object" === typeof input.tools && null !== input.tools && false === Array.isArray(input.tools) && _io113(input.tools)) && (void 0 === input.nonInteractive || "deny" === input.nonInteractive || "fail" === input.nonInteractive);
|
|
2134
|
+
const _io113 = (input) => Object.keys(input).every((key) => {
|
|
2004
2135
|
const value = input[key];
|
|
2005
2136
|
if (void 0 === value)
|
|
2006
2137
|
return true;
|
|
2007
2138
|
return "approve-reads" === value || "deny-all" === value || "always-allow" === value || "always-ask" === value;
|
|
2008
2139
|
});
|
|
2009
|
-
const
|
|
2010
|
-
const
|
|
2011
|
-
const
|
|
2012
|
-
const
|
|
2140
|
+
const _io114 = (input) => ("deny-all" === input.type || "unrestricted" === input.type || "limited" === input.type) && (void 0 === input.allowedHosts || Array.isArray(input.allowedHosts) && input.allowedHosts.every((elem) => "string" === typeof elem)) && (void 0 === input.allowMcpServers || "boolean" === typeof input.allowMcpServers) && (void 0 === input.allowPackageManagers || "boolean" === typeof input.allowPackageManagers);
|
|
2141
|
+
const _io115 = (input) => "boolean" === typeof input.enabled && (void 0 === input.storageSize || "string" === typeof input.storageSize) && (void 0 === input.storageClassName || "string" === typeof input.storageClassName) && (void 0 === input.mountPath || "string" === typeof input.mountPath) && (void 0 === input.accessMode || "ReadWriteOnce" === input.accessMode || "ReadWriteMany" === input.accessMode || "ReadOnlyMany" === input.accessMode);
|
|
2142
|
+
const _io116 = (input) => (void 0 === input.installDir || "string" === typeof input.installDir) && (void 0 === input.entries || Array.isArray(input.entries) && input.entries.every((elem) => "object" === typeof elem && null !== elem && _io117(elem)));
|
|
2143
|
+
const _io117 = (input) => "string" === typeof input.name && (void 0 === input.source || "npm" === input.source || "bundled" === input.source || "path" === input.source) && (void 0 === input.version || "string" === typeof input.version) && (void 0 === input.path || "string" === typeof input.path) && (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.env || "object" === typeof input.env && null !== input.env && false === Array.isArray(input.env) && _io2(input.env)) && (void 0 === input.apiKey || "string" === typeof input.apiKey);
|
|
2013
2144
|
const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.version || _report(_exceptionable, {
|
|
2014
2145
|
path: _path + ".version",
|
|
2015
2146
|
expected: "string",
|
|
@@ -2042,11 +2173,27 @@ var validateCloudConfig = (() => {
|
|
|
2042
2173
|
path: _path + ".i18n",
|
|
2043
2174
|
expected: "(Record<string, Record<string, string>> | undefined)",
|
|
2044
2175
|
value: input.i18n
|
|
2176
|
+
}), void 0 === input.routines || (Array.isArray(input.routines) || _report(_exceptionable, {
|
|
2177
|
+
path: _path + ".routines",
|
|
2178
|
+
expected: "(Array<CloudRoutineConfig> | undefined)",
|
|
2179
|
+
value: input.routines
|
|
2180
|
+
})) && input.routines.map((elem, _index43) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2181
|
+
path: _path + ".routines[" + _index43 + "]",
|
|
2182
|
+
expected: "CloudRoutineConfig",
|
|
2183
|
+
value: elem
|
|
2184
|
+
})) && _vo3(elem, _path + ".routines[" + _index43 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2185
|
+
path: _path + ".routines[" + _index43 + "]",
|
|
2186
|
+
expected: "CloudRoutineConfig",
|
|
2187
|
+
value: elem
|
|
2188
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
2189
|
+
path: _path + ".routines",
|
|
2190
|
+
expected: "(Array<CloudRoutineConfig> | undefined)",
|
|
2191
|
+
value: input.routines
|
|
2045
2192
|
}), void 0 === input.team || ("object" === typeof input.team && null !== input.team || _report(_exceptionable, {
|
|
2046
2193
|
path: _path + ".team",
|
|
2047
2194
|
expected: "(TeamConfig | undefined)",
|
|
2048
2195
|
value: input.team
|
|
2049
|
-
})) &&
|
|
2196
|
+
})) && _vo6(input.team, _path + ".team", _exceptionable) || _report(_exceptionable, {
|
|
2050
2197
|
path: _path + ".team",
|
|
2051
2198
|
expected: "(TeamConfig | undefined)",
|
|
2052
2199
|
value: input.team
|
|
@@ -2054,12 +2201,12 @@ var validateCloudConfig = (() => {
|
|
|
2054
2201
|
path: _path + ".use",
|
|
2055
2202
|
expected: "(Array<UseEntry> | undefined)",
|
|
2056
2203
|
value: input.use
|
|
2057
|
-
})) && input.use.map((elem,
|
|
2058
|
-
path: _path + ".use[" +
|
|
2204
|
+
})) && input.use.map((elem, _index44) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2205
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2059
2206
|
expected: "UseEntry",
|
|
2060
2207
|
value: elem
|
|
2061
|
-
})) &&
|
|
2062
|
-
path: _path + ".use[" +
|
|
2208
|
+
})) && _vo10(elem, _path + ".use[" + _index44 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2209
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2063
2210
|
expected: "UseEntry",
|
|
2064
2211
|
value: elem
|
|
2065
2212
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2070,7 +2217,7 @@ var validateCloudConfig = (() => {
|
|
|
2070
2217
|
path: _path + ".plugins",
|
|
2071
2218
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2072
2219
|
value: input.plugins
|
|
2073
|
-
})) &&
|
|
2220
|
+
})) && _vo11(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2074
2221
|
path: _path + ".plugins",
|
|
2075
2222
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2076
2223
|
value: input.plugins
|
|
@@ -2078,7 +2225,7 @@ var validateCloudConfig = (() => {
|
|
|
2078
2225
|
path: _path + ".registry",
|
|
2079
2226
|
expected: "(RegistryConfig | undefined)",
|
|
2080
2227
|
value: input.registry
|
|
2081
|
-
})) &&
|
|
2228
|
+
})) && _vo15(input.registry, _path + ".registry", _exceptionable) || _report(_exceptionable, {
|
|
2082
2229
|
path: _path + ".registry",
|
|
2083
2230
|
expected: "(RegistryConfig | undefined)",
|
|
2084
2231
|
value: input.registry
|
|
@@ -2086,7 +2233,7 @@ var validateCloudConfig = (() => {
|
|
|
2086
2233
|
path: _path + ".deployments",
|
|
2087
2234
|
expected: "(DeploymentsConfig | undefined)",
|
|
2088
2235
|
value: input.deployments
|
|
2089
|
-
})) &&
|
|
2236
|
+
})) && _vo94(input.deployments, _path + ".deployments", _exceptionable) || _report(_exceptionable, {
|
|
2090
2237
|
path: _path + ".deployments",
|
|
2091
2238
|
expected: "(DeploymentsConfig | undefined)",
|
|
2092
2239
|
value: input.deployments
|
|
@@ -2094,7 +2241,7 @@ var validateCloudConfig = (() => {
|
|
|
2094
2241
|
path: _path + ".workspace",
|
|
2095
2242
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2096
2243
|
value: input.workspace
|
|
2097
|
-
})) &&
|
|
2244
|
+
})) && _vo115(input.workspace, _path + ".workspace", _exceptionable) || _report(_exceptionable, {
|
|
2098
2245
|
path: _path + ".workspace",
|
|
2099
2246
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2100
2247
|
value: input.workspace
|
|
@@ -2102,7 +2249,7 @@ var validateCloudConfig = (() => {
|
|
|
2102
2249
|
path: _path + ".skills",
|
|
2103
2250
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2104
2251
|
value: input.skills
|
|
2105
|
-
})) &&
|
|
2252
|
+
})) && _vo116(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2106
2253
|
path: _path + ".skills",
|
|
2107
2254
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2108
2255
|
value: input.skills
|
|
@@ -2131,7 +2278,75 @@ var validateCloudConfig = (() => {
|
|
|
2131
2278
|
value
|
|
2132
2279
|
});
|
|
2133
2280
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2134
|
-
const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
2281
|
+
const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2282
|
+
path: _path + ".id",
|
|
2283
|
+
expected: "string",
|
|
2284
|
+
value: input.id
|
|
2285
|
+
}), "string" === typeof input.agentId || _report(_exceptionable, {
|
|
2286
|
+
path: _path + ".agentId",
|
|
2287
|
+
expected: "string",
|
|
2288
|
+
value: input.agentId
|
|
2289
|
+
}), void 0 === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
2290
|
+
path: _path + ".title",
|
|
2291
|
+
expected: "(string | undefined)",
|
|
2292
|
+
value: input.title
|
|
2293
|
+
}), void 0 === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
2294
|
+
path: _path + ".description",
|
|
2295
|
+
expected: "(string | undefined)",
|
|
2296
|
+
value: input.description
|
|
2297
|
+
}), void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2298
|
+
path: _path + ".enabled",
|
|
2299
|
+
expected: "(boolean | undefined)",
|
|
2300
|
+
value: input.enabled
|
|
2301
|
+
}), ("object" === typeof input.schedule && null !== input.schedule && false === Array.isArray(input.schedule) || _report(_exceptionable, {
|
|
2302
|
+
path: _path + ".schedule",
|
|
2303
|
+
expected: "CloudRoutineSchedule",
|
|
2304
|
+
value: input.schedule
|
|
2305
|
+
})) && _vo4(input.schedule, _path + ".schedule", _exceptionable) || _report(_exceptionable, {
|
|
2306
|
+
path: _path + ".schedule",
|
|
2307
|
+
expected: "CloudRoutineSchedule",
|
|
2308
|
+
value: input.schedule
|
|
2309
|
+
}), "string" === typeof input.prompt || _report(_exceptionable, {
|
|
2310
|
+
path: _path + ".prompt",
|
|
2311
|
+
expected: "string",
|
|
2312
|
+
value: input.prompt
|
|
2313
|
+
}), void 0 === input.metadata || ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) || _report(_exceptionable, {
|
|
2314
|
+
path: _path + ".metadata",
|
|
2315
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
2316
|
+
value: input.metadata
|
|
2317
|
+
})) && _vo5(input.metadata, _path + ".metadata", _exceptionable) || _report(_exceptionable, {
|
|
2318
|
+
path: _path + ".metadata",
|
|
2319
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
2320
|
+
value: input.metadata
|
|
2321
|
+
})].every((flag) => flag);
|
|
2322
|
+
const _vo4 = (input, _path, _exceptionable = true) => [void 0 === input.cron || "string" === typeof input.cron || _report(_exceptionable, {
|
|
2323
|
+
path: _path + ".cron",
|
|
2324
|
+
expected: "(string | undefined)",
|
|
2325
|
+
value: input.cron
|
|
2326
|
+
}), void 0 === input.interval || "string" === typeof input.interval || _report(_exceptionable, {
|
|
2327
|
+
path: _path + ".interval",
|
|
2328
|
+
expected: "(string | undefined)",
|
|
2329
|
+
value: input.interval
|
|
2330
|
+
}), void 0 === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
2331
|
+
path: _path + ".timezone",
|
|
2332
|
+
expected: "(string | undefined)",
|
|
2333
|
+
value: input.timezone
|
|
2334
|
+
}), void 0 === input.maxConcurrentRuns || "number" === typeof input.maxConcurrentRuns && (__typia_transform__isTypeUint32._isTypeUint32(input.maxConcurrentRuns) || _report(_exceptionable, {
|
|
2335
|
+
path: _path + ".maxConcurrentRuns",
|
|
2336
|
+
expected: 'number & Type<"uint32">',
|
|
2337
|
+
value: input.maxConcurrentRuns
|
|
2338
|
+
})) || _report(_exceptionable, {
|
|
2339
|
+
path: _path + ".maxConcurrentRuns",
|
|
2340
|
+
expected: '((number & Type<"uint32">) | undefined)',
|
|
2341
|
+
value: input.maxConcurrentRuns
|
|
2342
|
+
})].every((flag) => flag);
|
|
2343
|
+
const _vo5 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2344
|
+
const value = input[key];
|
|
2345
|
+
if (void 0 === value)
|
|
2346
|
+
return true;
|
|
2347
|
+
return true;
|
|
2348
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
2349
|
+
const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
2135
2350
|
path: _path + ".name",
|
|
2136
2351
|
expected: "string",
|
|
2137
2352
|
value: input.name
|
|
@@ -2143,7 +2358,7 @@ var validateCloudConfig = (() => {
|
|
|
2143
2358
|
path: _path + ".defaultModel",
|
|
2144
2359
|
expected: "(AgentModel | undefined)",
|
|
2145
2360
|
value: input.defaultModel
|
|
2146
|
-
})) &&
|
|
2361
|
+
})) && _vo7(input.defaultModel, _path + ".defaultModel", _exceptionable) || _report(_exceptionable, {
|
|
2147
2362
|
path: _path + ".defaultModel",
|
|
2148
2363
|
expected: "(AgentModel | undefined)",
|
|
2149
2364
|
value: input.defaultModel
|
|
@@ -2151,12 +2366,12 @@ var validateCloudConfig = (() => {
|
|
|
2151
2366
|
path: _path + ".defaultCompliance",
|
|
2152
2367
|
expected: "(AgentCompliance | undefined)",
|
|
2153
2368
|
value: input.defaultCompliance
|
|
2154
|
-
})) &&
|
|
2369
|
+
})) && _vo9(input.defaultCompliance, _path + ".defaultCompliance", _exceptionable) || _report(_exceptionable, {
|
|
2155
2370
|
path: _path + ".defaultCompliance",
|
|
2156
2371
|
expected: "(AgentCompliance | undefined)",
|
|
2157
2372
|
value: input.defaultCompliance
|
|
2158
2373
|
})].every((flag) => flag);
|
|
2159
|
-
const
|
|
2374
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.preferred || _report(_exceptionable, {
|
|
2160
2375
|
path: _path + ".preferred",
|
|
2161
2376
|
expected: "string",
|
|
2162
2377
|
value: input.preferred
|
|
@@ -2164,8 +2379,8 @@ var validateCloudConfig = (() => {
|
|
|
2164
2379
|
path: _path + ".fallbacks",
|
|
2165
2380
|
expected: "(Array<string> | undefined)",
|
|
2166
2381
|
value: input.fallbacks
|
|
2167
|
-
})) && input.fallbacks.map((elem,
|
|
2168
|
-
path: _path + ".fallbacks[" +
|
|
2382
|
+
})) && input.fallbacks.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
2383
|
+
path: _path + ".fallbacks[" + _index45 + "]",
|
|
2169
2384
|
expected: "string",
|
|
2170
2385
|
value: elem
|
|
2171
2386
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2176,12 +2391,12 @@ var validateCloudConfig = (() => {
|
|
|
2176
2391
|
path: _path + ".constraints",
|
|
2177
2392
|
expected: "(__type | undefined)",
|
|
2178
2393
|
value: input.constraints
|
|
2179
|
-
})) &&
|
|
2394
|
+
})) && _vo8(input.constraints, _path + ".constraints", _exceptionable) || _report(_exceptionable, {
|
|
2180
2395
|
path: _path + ".constraints",
|
|
2181
2396
|
expected: "(__type | undefined)",
|
|
2182
2397
|
value: input.constraints
|
|
2183
2398
|
})].every((flag) => flag);
|
|
2184
|
-
const
|
|
2399
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.temperature || "number" === typeof input.temperature && (0 <= input.temperature || _report(_exceptionable, {
|
|
2185
2400
|
path: _path + ".temperature",
|
|
2186
2401
|
expected: "number & Minimum<0>",
|
|
2187
2402
|
value: input.temperature
|
|
@@ -2218,7 +2433,7 @@ var validateCloudConfig = (() => {
|
|
|
2218
2433
|
expected: '("adaptive" | "high" | "low" | "medium" | "minimal" | "off" | "xhigh" | undefined)',
|
|
2219
2434
|
value: input.thinkingLevel
|
|
2220
2435
|
})].every((flag) => flag);
|
|
2221
|
-
const
|
|
2436
|
+
const _vo9 = (input, _path, _exceptionable = true) => [void 0 === input.riskTier || "low" === input.riskTier || "high" === input.riskTier || "standard" === input.riskTier || "critical" === input.riskTier || _report(_exceptionable, {
|
|
2222
2437
|
path: _path + ".riskTier",
|
|
2223
2438
|
expected: '("critical" | "high" | "low" | "standard" | undefined)',
|
|
2224
2439
|
value: input.riskTier
|
|
@@ -2226,8 +2441,8 @@ var validateCloudConfig = (() => {
|
|
|
2226
2441
|
path: _path + ".frameworks",
|
|
2227
2442
|
expected: "(Array<string> | undefined)",
|
|
2228
2443
|
value: input.frameworks
|
|
2229
|
-
})) && input.frameworks.map((elem,
|
|
2230
|
-
path: _path + ".frameworks[" +
|
|
2444
|
+
})) && input.frameworks.map((elem, _index46) => "string" === typeof elem || _report(_exceptionable, {
|
|
2445
|
+
path: _path + ".frameworks[" + _index46 + "]",
|
|
2231
2446
|
expected: "string",
|
|
2232
2447
|
value: elem
|
|
2233
2448
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2247,7 +2462,7 @@ var validateCloudConfig = (() => {
|
|
|
2247
2462
|
expected: "(string | undefined)",
|
|
2248
2463
|
value: input.retentionPeriod
|
|
2249
2464
|
})].every((flag) => flag);
|
|
2250
|
-
const
|
|
2465
|
+
const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.plugin || _report(_exceptionable, {
|
|
2251
2466
|
path: _path + ".plugin",
|
|
2252
2467
|
expected: "string",
|
|
2253
2468
|
value: input.plugin
|
|
@@ -2255,18 +2470,12 @@ var validateCloudConfig = (() => {
|
|
|
2255
2470
|
path: _path + ".options",
|
|
2256
2471
|
expected: "(Record<string, unknown> | undefined)",
|
|
2257
2472
|
value: input.options
|
|
2258
|
-
})) &&
|
|
2473
|
+
})) && _vo5(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
2259
2474
|
path: _path + ".options",
|
|
2260
2475
|
expected: "(Record<string, unknown> | undefined)",
|
|
2261
2476
|
value: input.options
|
|
2262
2477
|
})].every((flag) => flag);
|
|
2263
|
-
const
|
|
2264
|
-
const value = input[key];
|
|
2265
|
-
if (void 0 === value)
|
|
2266
|
-
return true;
|
|
2267
|
-
return true;
|
|
2268
|
-
}).every((flag) => flag)].every((flag) => flag);
|
|
2269
|
-
const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2478
|
+
const _vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2270
2479
|
const value = input[key];
|
|
2271
2480
|
if (void 0 === value)
|
|
2272
2481
|
return true;
|
|
@@ -2274,13 +2483,13 @@ var validateCloudConfig = (() => {
|
|
|
2274
2483
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2275
2484
|
expected: "CloudPluginInstanceConfig",
|
|
2276
2485
|
value
|
|
2277
|
-
})) &&
|
|
2486
|
+
})) && _vo12(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2278
2487
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2279
2488
|
expected: "CloudPluginInstanceConfig",
|
|
2280
2489
|
value
|
|
2281
2490
|
});
|
|
2282
2491
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2283
|
-
const
|
|
2492
|
+
const _vo12 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2284
2493
|
path: _path + ".enabled",
|
|
2285
2494
|
expected: "(boolean | undefined)",
|
|
2286
2495
|
value: input.enabled
|
|
@@ -2288,7 +2497,7 @@ var validateCloudConfig = (() => {
|
|
|
2288
2497
|
path: _path + ".config",
|
|
2289
2498
|
expected: "(Record<string, unknown> | undefined)",
|
|
2290
2499
|
value: input.config
|
|
2291
|
-
})) &&
|
|
2500
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2292
2501
|
path: _path + ".config",
|
|
2293
2502
|
expected: "(Record<string, unknown> | undefined)",
|
|
2294
2503
|
value: input.config
|
|
@@ -2296,7 +2505,7 @@ var validateCloudConfig = (() => {
|
|
|
2296
2505
|
path: _path + ".agents",
|
|
2297
2506
|
expected: "(Record<string, __type> | undefined)",
|
|
2298
2507
|
value: input.agents
|
|
2299
|
-
})) &&
|
|
2508
|
+
})) && _vo13(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2300
2509
|
path: _path + ".agents",
|
|
2301
2510
|
expected: "(Record<string, __type> | undefined)",
|
|
2302
2511
|
value: input.agents
|
|
@@ -2316,7 +2525,7 @@ var validateCloudConfig = (() => {
|
|
|
2316
2525
|
return true;
|
|
2317
2526
|
return true;
|
|
2318
2527
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2319
|
-
const
|
|
2528
|
+
const _vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2320
2529
|
const value = input[key];
|
|
2321
2530
|
if (void 0 === value)
|
|
2322
2531
|
return true;
|
|
@@ -2324,13 +2533,13 @@ var validateCloudConfig = (() => {
|
|
|
2324
2533
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2325
2534
|
expected: "__type.o9",
|
|
2326
2535
|
value
|
|
2327
|
-
})) &&
|
|
2536
|
+
})) && _vo14(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2328
2537
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2329
2538
|
expected: "__type.o9",
|
|
2330
2539
|
value
|
|
2331
2540
|
});
|
|
2332
2541
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2333
|
-
const
|
|
2542
|
+
const _vo14 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2334
2543
|
path: _path + ".enabled",
|
|
2335
2544
|
expected: "(boolean | undefined)",
|
|
2336
2545
|
value: input.enabled
|
|
@@ -2338,21 +2547,21 @@ var validateCloudConfig = (() => {
|
|
|
2338
2547
|
path: _path + ".config",
|
|
2339
2548
|
expected: "(Record<string, unknown> | undefined)",
|
|
2340
2549
|
value: input.config
|
|
2341
|
-
})) &&
|
|
2550
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2342
2551
|
path: _path + ".config",
|
|
2343
2552
|
expected: "(Record<string, unknown> | undefined)",
|
|
2344
2553
|
value: input.config
|
|
2345
2554
|
})].every((flag) => flag);
|
|
2346
|
-
const
|
|
2555
|
+
const _vo15 = (input, _path, _exceptionable = true) => [void 0 === input.providers || (Array.isArray(input.providers) || _report(_exceptionable, {
|
|
2347
2556
|
path: _path + ".providers",
|
|
2348
2557
|
expected: "(Array<OpenClawProviderConfig> | undefined)",
|
|
2349
2558
|
value: input.providers
|
|
2350
|
-
})) && input.providers.map((elem,
|
|
2351
|
-
path: _path + ".providers[" +
|
|
2559
|
+
})) && input.providers.map((elem, _index47) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
2560
|
+
path: _path + ".providers[" + _index47 + "]",
|
|
2352
2561
|
expected: "OpenClawProviderConfig",
|
|
2353
2562
|
value: elem
|
|
2354
|
-
})) &&
|
|
2355
|
-
path: _path + ".providers[" +
|
|
2563
|
+
})) && _vo16(elem, _path + ".providers[" + _index47 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2564
|
+
path: _path + ".providers[" + _index47 + "]",
|
|
2356
2565
|
expected: "OpenClawProviderConfig",
|
|
2357
2566
|
value: elem
|
|
2358
2567
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2363,12 +2572,12 @@ var validateCloudConfig = (() => {
|
|
|
2363
2572
|
path: _path + ".configurations",
|
|
2364
2573
|
expected: "(Array<Configuration> | undefined)",
|
|
2365
2574
|
value: input.configurations
|
|
2366
|
-
})) && input.configurations.map((elem,
|
|
2367
|
-
path: _path + ".configurations[" +
|
|
2575
|
+
})) && input.configurations.map((elem, _index48) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2576
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2368
2577
|
expected: "Configuration",
|
|
2369
2578
|
value: elem
|
|
2370
|
-
})) &&
|
|
2371
|
-
path: _path + ".configurations[" +
|
|
2579
|
+
})) && _vo20(elem, _path + ".configurations[" + _index48 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2580
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2372
2581
|
expected: "Configuration",
|
|
2373
2582
|
value: elem
|
|
2374
2583
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2379,12 +2588,12 @@ var validateCloudConfig = (() => {
|
|
|
2379
2588
|
path: _path + ".vaults",
|
|
2380
2589
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2381
2590
|
value: input.vaults
|
|
2382
|
-
})) &&
|
|
2591
|
+
})) && _vo90(input.vaults, _path + ".vaults", _exceptionable) || _report(_exceptionable, {
|
|
2383
2592
|
path: _path + ".vaults",
|
|
2384
2593
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2385
2594
|
value: input.vaults
|
|
2386
2595
|
})].every((flag) => flag);
|
|
2387
|
-
const
|
|
2596
|
+
const _vo16 = (input, _path, _exceptionable = true) => [void 0 === input.id || "string" === typeof input.id || _report(_exceptionable, {
|
|
2388
2597
|
path: _path + ".id",
|
|
2389
2598
|
expected: "(string | undefined)",
|
|
2390
2599
|
value: input.id
|
|
@@ -2416,7 +2625,7 @@ var validateCloudConfig = (() => {
|
|
|
2416
2625
|
path: _path + ".request",
|
|
2417
2626
|
expected: "(__type.o10 | undefined)",
|
|
2418
2627
|
value: input.request
|
|
2419
|
-
})) &&
|
|
2628
|
+
})) && _vo17(input.request, _path + ".request", _exceptionable) || _report(_exceptionable, {
|
|
2420
2629
|
path: _path + ".request",
|
|
2421
2630
|
expected: "(__type.o10 | undefined)",
|
|
2422
2631
|
value: input.request
|
|
@@ -2424,12 +2633,12 @@ var validateCloudConfig = (() => {
|
|
|
2424
2633
|
path: _path + ".models",
|
|
2425
2634
|
expected: "(Array<__type> | undefined)",
|
|
2426
2635
|
value: input.models
|
|
2427
|
-
})) && input.models.map((elem,
|
|
2428
|
-
path: _path + ".models[" +
|
|
2636
|
+
})) && input.models.map((elem, _index49) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2637
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2429
2638
|
expected: "__type.o11",
|
|
2430
2639
|
value: elem
|
|
2431
|
-
})) &&
|
|
2432
|
-
path: _path + ".models[" +
|
|
2640
|
+
})) && _vo18(elem, _path + ".models[" + _index49 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2641
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2433
2642
|
expected: "__type.o11",
|
|
2434
2643
|
value: elem
|
|
2435
2644
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2437,12 +2646,12 @@ var validateCloudConfig = (() => {
|
|
|
2437
2646
|
expected: "(Array<__type> | undefined)",
|
|
2438
2647
|
value: input.models
|
|
2439
2648
|
})].every((flag) => flag);
|
|
2440
|
-
const
|
|
2649
|
+
const _vo17 = (input, _path, _exceptionable = true) => [void 0 === input.allowPrivateNetwork || "boolean" === typeof input.allowPrivateNetwork || _report(_exceptionable, {
|
|
2441
2650
|
path: _path + ".allowPrivateNetwork",
|
|
2442
2651
|
expected: "(boolean | undefined)",
|
|
2443
2652
|
value: input.allowPrivateNetwork
|
|
2444
2653
|
})].every((flag) => flag);
|
|
2445
|
-
const
|
|
2654
|
+
const _vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2446
2655
|
path: _path + ".id",
|
|
2447
2656
|
expected: "string",
|
|
2448
2657
|
value: input.id
|
|
@@ -2458,8 +2667,8 @@ var validateCloudConfig = (() => {
|
|
|
2458
2667
|
path: _path + ".input",
|
|
2459
2668
|
expected: "(Array<string> | undefined)",
|
|
2460
2669
|
value: input.input
|
|
2461
|
-
})) && input.input.map((elem,
|
|
2462
|
-
path: _path + ".input[" +
|
|
2670
|
+
})) && input.input.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
2671
|
+
path: _path + ".input[" + _index50 + "]",
|
|
2463
2672
|
expected: "string",
|
|
2464
2673
|
value: elem
|
|
2465
2674
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2478,12 +2687,12 @@ var validateCloudConfig = (() => {
|
|
|
2478
2687
|
path: _path + ".cost",
|
|
2479
2688
|
expected: "(__type.o12 | undefined)",
|
|
2480
2689
|
value: input.cost
|
|
2481
|
-
})) &&
|
|
2690
|
+
})) && _vo19(input.cost, _path + ".cost", _exceptionable) || _report(_exceptionable, {
|
|
2482
2691
|
path: _path + ".cost",
|
|
2483
2692
|
expected: "(__type.o12 | undefined)",
|
|
2484
2693
|
value: input.cost
|
|
2485
2694
|
})].every((flag) => flag);
|
|
2486
|
-
const
|
|
2695
|
+
const _vo19 = (input, _path, _exceptionable = true) => [void 0 === input.input || "number" === typeof input.input || _report(_exceptionable, {
|
|
2487
2696
|
path: _path + ".input",
|
|
2488
2697
|
expected: "(number | undefined)",
|
|
2489
2698
|
value: input.input
|
|
@@ -2500,7 +2709,7 @@ var validateCloudConfig = (() => {
|
|
|
2500
2709
|
expected: "(number | undefined)",
|
|
2501
2710
|
value: input.cacheWrite
|
|
2502
2711
|
})].every((flag) => flag);
|
|
2503
|
-
const
|
|
2712
|
+
const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2504
2713
|
path: _path + ".id",
|
|
2505
2714
|
expected: "string",
|
|
2506
2715
|
value: input.id
|
|
@@ -2512,7 +2721,7 @@ var validateCloudConfig = (() => {
|
|
|
2512
2721
|
path: _path + ".model",
|
|
2513
2722
|
expected: "(AgentModel | undefined)",
|
|
2514
2723
|
value: input.model
|
|
2515
|
-
})) &&
|
|
2724
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2516
2725
|
path: _path + ".model",
|
|
2517
2726
|
expected: "(AgentModel | undefined)",
|
|
2518
2727
|
value: input.model
|
|
@@ -2520,7 +2729,7 @@ var validateCloudConfig = (() => {
|
|
|
2520
2729
|
path: _path + ".openclaw",
|
|
2521
2730
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2522
2731
|
value: input.openclaw
|
|
2523
|
-
})) &&
|
|
2732
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
2524
2733
|
path: _path + ".openclaw",
|
|
2525
2734
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2526
2735
|
value: input.openclaw
|
|
@@ -2532,11 +2741,11 @@ var validateCloudConfig = (() => {
|
|
|
2532
2741
|
return true;
|
|
2533
2742
|
return true;
|
|
2534
2743
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2535
|
-
const
|
|
2744
|
+
const _vo21 = (input, _path, _exceptionable = true) => [void 0 === input.agents || ("object" === typeof input.agents && null !== input.agents && false === Array.isArray(input.agents) || _report(_exceptionable, {
|
|
2536
2745
|
path: _path + ".agents",
|
|
2537
2746
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2538
2747
|
value: input.agents
|
|
2539
|
-
})) &&
|
|
2748
|
+
})) && _vo22(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2540
2749
|
path: _path + ".agents",
|
|
2541
2750
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2542
2751
|
value: input.agents
|
|
@@ -2544,12 +2753,12 @@ var validateCloudConfig = (() => {
|
|
|
2544
2753
|
path: _path + ".bindings",
|
|
2545
2754
|
expected: "(Array<OpenClawBinding> | undefined)",
|
|
2546
2755
|
value: input.bindings
|
|
2547
|
-
})) && input.bindings.map((elem,
|
|
2548
|
-
path: _path + ".bindings[" +
|
|
2756
|
+
})) && input.bindings.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2757
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2549
2758
|
expected: "OpenClawBinding",
|
|
2550
2759
|
value: elem
|
|
2551
|
-
})) &&
|
|
2552
|
-
path: _path + ".bindings[" +
|
|
2760
|
+
})) && _vo38(elem, _path + ".bindings[" + _index51 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2761
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2553
2762
|
expected: "OpenClawBinding",
|
|
2554
2763
|
value: elem
|
|
2555
2764
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2560,7 +2769,7 @@ var validateCloudConfig = (() => {
|
|
|
2560
2769
|
path: _path + ".channels",
|
|
2561
2770
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2562
2771
|
value: input.channels
|
|
2563
|
-
})) &&
|
|
2772
|
+
})) && _vo42(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
2564
2773
|
path: _path + ".channels",
|
|
2565
2774
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2566
2775
|
value: input.channels
|
|
@@ -2568,7 +2777,7 @@ var validateCloudConfig = (() => {
|
|
|
2568
2777
|
path: _path + ".acp",
|
|
2569
2778
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2570
2779
|
value: input.acp
|
|
2571
|
-
})) &&
|
|
2780
|
+
})) && _vo54(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
2572
2781
|
path: _path + ".acp",
|
|
2573
2782
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2574
2783
|
value: input.acp
|
|
@@ -2576,7 +2785,7 @@ var validateCloudConfig = (() => {
|
|
|
2576
2785
|
path: _path + ".session",
|
|
2577
2786
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2578
2787
|
value: input.session
|
|
2579
|
-
})) &&
|
|
2788
|
+
})) && _vo58(input.session, _path + ".session", _exceptionable) || _report(_exceptionable, {
|
|
2580
2789
|
path: _path + ".session",
|
|
2581
2790
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2582
2791
|
value: input.session
|
|
@@ -2584,7 +2793,7 @@ var validateCloudConfig = (() => {
|
|
|
2584
2793
|
path: _path + ".messages",
|
|
2585
2794
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2586
2795
|
value: input.messages
|
|
2587
|
-
})) &&
|
|
2796
|
+
})) && _vo63(input.messages, _path + ".messages", _exceptionable) || _report(_exceptionable, {
|
|
2588
2797
|
path: _path + ".messages",
|
|
2589
2798
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2590
2799
|
value: input.messages
|
|
@@ -2592,7 +2801,7 @@ var validateCloudConfig = (() => {
|
|
|
2592
2801
|
path: _path + ".tools",
|
|
2593
2802
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2594
2803
|
value: input.tools
|
|
2595
|
-
})) &&
|
|
2804
|
+
})) && _vo66(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
2596
2805
|
path: _path + ".tools",
|
|
2597
2806
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2598
2807
|
value: input.tools
|
|
@@ -2600,7 +2809,7 @@ var validateCloudConfig = (() => {
|
|
|
2600
2809
|
path: _path + ".models",
|
|
2601
2810
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2602
2811
|
value: input.models
|
|
2603
|
-
})) &&
|
|
2812
|
+
})) && _vo73(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2604
2813
|
path: _path + ".models",
|
|
2605
2814
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2606
2815
|
value: input.models
|
|
@@ -2608,7 +2817,7 @@ var validateCloudConfig = (() => {
|
|
|
2608
2817
|
path: _path + ".plugins",
|
|
2609
2818
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2610
2819
|
value: input.plugins
|
|
2611
|
-
})) &&
|
|
2820
|
+
})) && _vo75(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2612
2821
|
path: _path + ".plugins",
|
|
2613
2822
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2614
2823
|
value: input.plugins
|
|
@@ -2616,7 +2825,7 @@ var validateCloudConfig = (() => {
|
|
|
2616
2825
|
path: _path + ".skills",
|
|
2617
2826
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2618
2827
|
value: input.skills
|
|
2619
|
-
})) &&
|
|
2828
|
+
})) && _vo80(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2620
2829
|
path: _path + ".skills",
|
|
2621
2830
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2622
2831
|
value: input.skills
|
|
@@ -2624,7 +2833,7 @@ var validateCloudConfig = (() => {
|
|
|
2624
2833
|
path: _path + ".gateway",
|
|
2625
2834
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2626
2835
|
value: input.gateway
|
|
2627
|
-
})) &&
|
|
2836
|
+
})) && _vo85(input.gateway, _path + ".gateway", _exceptionable) || _report(_exceptionable, {
|
|
2628
2837
|
path: _path + ".gateway",
|
|
2629
2838
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2630
2839
|
value: input.gateway
|
|
@@ -2632,7 +2841,7 @@ var validateCloudConfig = (() => {
|
|
|
2632
2841
|
path: _path + ".logging",
|
|
2633
2842
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2634
2843
|
value: input.logging
|
|
2635
|
-
})) &&
|
|
2844
|
+
})) && _vo89(input.logging, _path + ".logging", _exceptionable) || _report(_exceptionable, {
|
|
2636
2845
|
path: _path + ".logging",
|
|
2637
2846
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2638
2847
|
value: input.logging
|
|
@@ -2640,7 +2849,7 @@ var validateCloudConfig = (() => {
|
|
|
2640
2849
|
path: _path + ".env",
|
|
2641
2850
|
expected: "(Record<string, unknown> | undefined)",
|
|
2642
2851
|
value: input.env
|
|
2643
|
-
})) &&
|
|
2852
|
+
})) && _vo5(input.env, _path + ".env", _exceptionable) || _report(_exceptionable, {
|
|
2644
2853
|
path: _path + ".env",
|
|
2645
2854
|
expected: "(Record<string, unknown> | undefined)",
|
|
2646
2855
|
value: input.env
|
|
@@ -2652,11 +2861,11 @@ var validateCloudConfig = (() => {
|
|
|
2652
2861
|
return true;
|
|
2653
2862
|
return true;
|
|
2654
2863
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2655
|
-
const
|
|
2864
|
+
const _vo22 = (input, _path, _exceptionable = true) => [void 0 === input.defaults || ("object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) || _report(_exceptionable, {
|
|
2656
2865
|
path: _path + ".defaults",
|
|
2657
2866
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2658
2867
|
value: input.defaults
|
|
2659
|
-
})) &&
|
|
2868
|
+
})) && _vo23(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
2660
2869
|
path: _path + ".defaults",
|
|
2661
2870
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2662
2871
|
value: input.defaults
|
|
@@ -2664,12 +2873,12 @@ var validateCloudConfig = (() => {
|
|
|
2664
2873
|
path: _path + ".list",
|
|
2665
2874
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2666
2875
|
value: input.list
|
|
2667
|
-
})) && input.list.map((elem,
|
|
2668
|
-
path: _path + ".list[" +
|
|
2876
|
+
})) && input.list.map((elem, _index52) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2877
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2669
2878
|
expected: "OpenClawAgentConfig",
|
|
2670
2879
|
value: elem
|
|
2671
|
-
})) &&
|
|
2672
|
-
path: _path + ".list[" +
|
|
2880
|
+
})) && _vo30(elem, _path + ".list[" + _index52 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2881
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2673
2882
|
expected: "OpenClawAgentConfig",
|
|
2674
2883
|
value: elem
|
|
2675
2884
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2677,7 +2886,7 @@ var validateCloudConfig = (() => {
|
|
|
2677
2886
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2678
2887
|
value: input.list
|
|
2679
2888
|
})].every((flag) => flag);
|
|
2680
|
-
const
|
|
2889
|
+
const _vo23 = (input, _path, _exceptionable = true) => [void 0 === input.workspace || "string" === typeof input.workspace || _report(_exceptionable, {
|
|
2681
2890
|
path: _path + ".workspace",
|
|
2682
2891
|
expected: "(string | undefined)",
|
|
2683
2892
|
value: input.workspace
|
|
@@ -2713,7 +2922,7 @@ var validateCloudConfig = (() => {
|
|
|
2713
2922
|
path: _path + ".model",
|
|
2714
2923
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2715
2924
|
value: input.model
|
|
2716
|
-
})) &&
|
|
2925
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2717
2926
|
path: _path + ".model",
|
|
2718
2927
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2719
2928
|
value: input.model
|
|
@@ -2725,7 +2934,7 @@ var validateCloudConfig = (() => {
|
|
|
2725
2934
|
path: _path + ".imageModel",
|
|
2726
2935
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2727
2936
|
value: input.imageModel
|
|
2728
|
-
})) &&
|
|
2937
|
+
})) && _vo24(input.imageModel, _path + ".imageModel", _exceptionable) || _report(_exceptionable, {
|
|
2729
2938
|
path: _path + ".imageModel",
|
|
2730
2939
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2731
2940
|
value: input.imageModel
|
|
@@ -2737,7 +2946,7 @@ var validateCloudConfig = (() => {
|
|
|
2737
2946
|
path: _path + ".pdfModel",
|
|
2738
2947
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2739
2948
|
value: input.pdfModel
|
|
2740
|
-
})) &&
|
|
2949
|
+
})) && _vo24(input.pdfModel, _path + ".pdfModel", _exceptionable) || _report(_exceptionable, {
|
|
2741
2950
|
path: _path + ".pdfModel",
|
|
2742
2951
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2743
2952
|
value: input.pdfModel
|
|
@@ -2749,7 +2958,7 @@ var validateCloudConfig = (() => {
|
|
|
2749
2958
|
path: _path + ".imageGenerationModel",
|
|
2750
2959
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2751
2960
|
value: input.imageGenerationModel
|
|
2752
|
-
})) &&
|
|
2961
|
+
})) && _vo24(input.imageGenerationModel, _path + ".imageGenerationModel", _exceptionable) || _report(_exceptionable, {
|
|
2753
2962
|
path: _path + ".imageGenerationModel",
|
|
2754
2963
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2755
2964
|
value: input.imageGenerationModel
|
|
@@ -2757,7 +2966,7 @@ var validateCloudConfig = (() => {
|
|
|
2757
2966
|
path: _path + ".models",
|
|
2758
2967
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2759
2968
|
value: input.models
|
|
2760
|
-
})) &&
|
|
2969
|
+
})) && _vo25(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2761
2970
|
path: _path + ".models",
|
|
2762
2971
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2763
2972
|
value: input.models
|
|
@@ -2829,7 +3038,7 @@ var validateCloudConfig = (() => {
|
|
|
2829
3038
|
path: _path + ".heartbeat",
|
|
2830
3039
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2831
3040
|
value: input.heartbeat
|
|
2832
|
-
})) &&
|
|
3041
|
+
})) && _vo27(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
2833
3042
|
path: _path + ".heartbeat",
|
|
2834
3043
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2835
3044
|
value: input.heartbeat
|
|
@@ -2837,7 +3046,7 @@ var validateCloudConfig = (() => {
|
|
|
2837
3046
|
path: _path + ".compaction",
|
|
2838
3047
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2839
3048
|
value: input.compaction
|
|
2840
|
-
})) &&
|
|
3049
|
+
})) && _vo28(input.compaction, _path + ".compaction", _exceptionable) || _report(_exceptionable, {
|
|
2841
3050
|
path: _path + ".compaction",
|
|
2842
3051
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2843
3052
|
value: input.compaction
|
|
@@ -2845,7 +3054,7 @@ var validateCloudConfig = (() => {
|
|
|
2845
3054
|
path: _path + ".sandbox",
|
|
2846
3055
|
expected: "(Record<string, unknown> | undefined)",
|
|
2847
3056
|
value: input.sandbox
|
|
2848
|
-
})) &&
|
|
3057
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
2849
3058
|
path: _path + ".sandbox",
|
|
2850
3059
|
expected: "(Record<string, unknown> | undefined)",
|
|
2851
3060
|
value: input.sandbox
|
|
@@ -2853,12 +3062,12 @@ var validateCloudConfig = (() => {
|
|
|
2853
3062
|
path: _path + ".subagents",
|
|
2854
3063
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2855
3064
|
value: input.subagents
|
|
2856
|
-
})) &&
|
|
3065
|
+
})) && _vo29(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
2857
3066
|
path: _path + ".subagents",
|
|
2858
3067
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2859
3068
|
value: input.subagents
|
|
2860
3069
|
})].every((flag) => flag);
|
|
2861
|
-
const
|
|
3070
|
+
const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.primary || _report(_exceptionable, {
|
|
2862
3071
|
path: _path + ".primary",
|
|
2863
3072
|
expected: "string",
|
|
2864
3073
|
value: input.primary
|
|
@@ -2866,8 +3075,8 @@ var validateCloudConfig = (() => {
|
|
|
2866
3075
|
path: _path + ".fallbacks",
|
|
2867
3076
|
expected: "(Array<string> | undefined)",
|
|
2868
3077
|
value: input.fallbacks
|
|
2869
|
-
})) && input.fallbacks.map((elem,
|
|
2870
|
-
path: _path + ".fallbacks[" +
|
|
3078
|
+
})) && input.fallbacks.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
3079
|
+
path: _path + ".fallbacks[" + _index53 + "]",
|
|
2871
3080
|
expected: "string",
|
|
2872
3081
|
value: elem
|
|
2873
3082
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2875,7 +3084,7 @@ var validateCloudConfig = (() => {
|
|
|
2875
3084
|
expected: "(Array<string> | undefined)",
|
|
2876
3085
|
value: input.fallbacks
|
|
2877
3086
|
})].every((flag) => flag);
|
|
2878
|
-
const
|
|
3087
|
+
const _vo25 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2879
3088
|
const value = input[key];
|
|
2880
3089
|
if (void 0 === value)
|
|
2881
3090
|
return true;
|
|
@@ -2883,13 +3092,13 @@ var validateCloudConfig = (() => {
|
|
|
2883
3092
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2884
3093
|
expected: "OpenClawModelEntry",
|
|
2885
3094
|
value
|
|
2886
|
-
})) &&
|
|
3095
|
+
})) && _vo26(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2887
3096
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2888
3097
|
expected: "OpenClawModelEntry",
|
|
2889
3098
|
value
|
|
2890
3099
|
});
|
|
2891
3100
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2892
|
-
const
|
|
3101
|
+
const _vo26 = (input, _path, _exceptionable = true) => [void 0 === input.alias || "string" === typeof input.alias || _report(_exceptionable, {
|
|
2893
3102
|
path: _path + ".alias",
|
|
2894
3103
|
expected: "(string | undefined)",
|
|
2895
3104
|
value: input.alias
|
|
@@ -2897,12 +3106,12 @@ var validateCloudConfig = (() => {
|
|
|
2897
3106
|
path: _path + ".params",
|
|
2898
3107
|
expected: "(Record<string, unknown> | undefined)",
|
|
2899
3108
|
value: input.params
|
|
2900
|
-
})) &&
|
|
3109
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
2901
3110
|
path: _path + ".params",
|
|
2902
3111
|
expected: "(Record<string, unknown> | undefined)",
|
|
2903
3112
|
value: input.params
|
|
2904
3113
|
})].every((flag) => flag);
|
|
2905
|
-
const
|
|
3114
|
+
const _vo27 = (input, _path, _exceptionable = true) => [void 0 === input.every || "string" === typeof input.every || _report(_exceptionable, {
|
|
2906
3115
|
path: _path + ".every",
|
|
2907
3116
|
expected: "(string | undefined)",
|
|
2908
3117
|
value: input.every
|
|
@@ -2927,7 +3136,7 @@ var validateCloudConfig = (() => {
|
|
|
2927
3136
|
expected: "(string | undefined)",
|
|
2928
3137
|
value: input.target
|
|
2929
3138
|
})].every((flag) => flag);
|
|
2930
|
-
const
|
|
3139
|
+
const _vo28 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "default" === input.mode || "safeguard" === input.mode || _report(_exceptionable, {
|
|
2931
3140
|
path: _path + ".mode",
|
|
2932
3141
|
expected: '("default" | "safeguard" | undefined)',
|
|
2933
3142
|
value: input.mode
|
|
@@ -2952,7 +3161,7 @@ var validateCloudConfig = (() => {
|
|
|
2952
3161
|
expected: "(string | undefined)",
|
|
2953
3162
|
value: input.model
|
|
2954
3163
|
})].every((flag) => flag);
|
|
2955
|
-
const
|
|
3164
|
+
const _vo29 = (input, _path, _exceptionable = true) => [void 0 === input.model || "string" === typeof input.model || _report(_exceptionable, {
|
|
2956
3165
|
path: _path + ".model",
|
|
2957
3166
|
expected: "(string | undefined)",
|
|
2958
3167
|
value: input.model
|
|
@@ -2973,7 +3182,7 @@ var validateCloudConfig = (() => {
|
|
|
2973
3182
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
2974
3183
|
value: input.runTimeoutSeconds
|
|
2975
3184
|
})].every((flag) => flag);
|
|
2976
|
-
const
|
|
3185
|
+
const _vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2977
3186
|
path: _path + ".id",
|
|
2978
3187
|
expected: "string",
|
|
2979
3188
|
value: input.id
|
|
@@ -3001,7 +3210,7 @@ var validateCloudConfig = (() => {
|
|
|
3001
3210
|
path: _path + ".model",
|
|
3002
3211
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
3003
3212
|
value: input.model
|
|
3004
|
-
})) &&
|
|
3213
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
3005
3214
|
path: _path + ".model",
|
|
3006
3215
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
3007
3216
|
value: input.model
|
|
@@ -3013,7 +3222,7 @@ var validateCloudConfig = (() => {
|
|
|
3013
3222
|
path: _path + ".params",
|
|
3014
3223
|
expected: "(Record<string, unknown> | undefined)",
|
|
3015
3224
|
value: input.params
|
|
3016
|
-
})) &&
|
|
3225
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
3017
3226
|
path: _path + ".params",
|
|
3018
3227
|
expected: "(Record<string, unknown> | undefined)",
|
|
3019
3228
|
value: input.params
|
|
@@ -3021,7 +3230,7 @@ var validateCloudConfig = (() => {
|
|
|
3021
3230
|
path: _path + ".identity",
|
|
3022
3231
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3023
3232
|
value: input.identity
|
|
3024
|
-
})) &&
|
|
3233
|
+
})) && _vo31(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
3025
3234
|
path: _path + ".identity",
|
|
3026
3235
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3027
3236
|
value: input.identity
|
|
@@ -3029,7 +3238,7 @@ var validateCloudConfig = (() => {
|
|
|
3029
3238
|
path: _path + ".groupChat",
|
|
3030
3239
|
expected: "(__type.o13 | undefined)",
|
|
3031
3240
|
value: input.groupChat
|
|
3032
|
-
})) &&
|
|
3241
|
+
})) && _vo32(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
3033
3242
|
path: _path + ".groupChat",
|
|
3034
3243
|
expected: "(__type.o13 | undefined)",
|
|
3035
3244
|
value: input.groupChat
|
|
@@ -3037,7 +3246,7 @@ var validateCloudConfig = (() => {
|
|
|
3037
3246
|
path: _path + ".runtime",
|
|
3038
3247
|
expected: "(__type.o14 | undefined)",
|
|
3039
3248
|
value: input.runtime
|
|
3040
|
-
})) &&
|
|
3249
|
+
})) && _vo33(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3041
3250
|
path: _path + ".runtime",
|
|
3042
3251
|
expected: "(__type.o14 | undefined)",
|
|
3043
3252
|
value: input.runtime
|
|
@@ -3045,7 +3254,7 @@ var validateCloudConfig = (() => {
|
|
|
3045
3254
|
path: _path + ".subagents",
|
|
3046
3255
|
expected: "(__type.o15 | undefined)",
|
|
3047
3256
|
value: input.subagents
|
|
3048
|
-
})) &&
|
|
3257
|
+
})) && _vo35(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
3049
3258
|
path: _path + ".subagents",
|
|
3050
3259
|
expected: "(__type.o15 | undefined)",
|
|
3051
3260
|
value: input.subagents
|
|
@@ -3053,7 +3262,7 @@ var validateCloudConfig = (() => {
|
|
|
3053
3262
|
path: _path + ".tools",
|
|
3054
3263
|
expected: "(__type.o16 | undefined)",
|
|
3055
3264
|
value: input.tools
|
|
3056
|
-
})) &&
|
|
3265
|
+
})) && _vo36(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
3057
3266
|
path: _path + ".tools",
|
|
3058
3267
|
expected: "(__type.o16 | undefined)",
|
|
3059
3268
|
value: input.tools
|
|
@@ -3061,7 +3270,7 @@ var validateCloudConfig = (() => {
|
|
|
3061
3270
|
path: _path + ".sandbox",
|
|
3062
3271
|
expected: "(Record<string, unknown> | undefined)",
|
|
3063
3272
|
value: input.sandbox
|
|
3064
|
-
})) &&
|
|
3273
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
3065
3274
|
path: _path + ".sandbox",
|
|
3066
3275
|
expected: "(Record<string, unknown> | undefined)",
|
|
3067
3276
|
value: input.sandbox
|
|
@@ -3074,7 +3283,7 @@ var validateCloudConfig = (() => {
|
|
|
3074
3283
|
expected: "(string | undefined)",
|
|
3075
3284
|
value: input.instructions
|
|
3076
3285
|
})].every((flag) => flag);
|
|
3077
|
-
const
|
|
3286
|
+
const _vo31 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
3078
3287
|
path: _path + ".name",
|
|
3079
3288
|
expected: "(string | undefined)",
|
|
3080
3289
|
value: input.name
|
|
@@ -3091,12 +3300,12 @@ var validateCloudConfig = (() => {
|
|
|
3091
3300
|
expected: "(string | undefined)",
|
|
3092
3301
|
value: input.avatar
|
|
3093
3302
|
})].every((flag) => flag);
|
|
3094
|
-
const
|
|
3303
|
+
const _vo32 = (input, _path, _exceptionable = true) => [void 0 === input.mentionPatterns || (Array.isArray(input.mentionPatterns) || _report(_exceptionable, {
|
|
3095
3304
|
path: _path + ".mentionPatterns",
|
|
3096
3305
|
expected: "(Array<string> | undefined)",
|
|
3097
3306
|
value: input.mentionPatterns
|
|
3098
|
-
})) && input.mentionPatterns.map((elem,
|
|
3099
|
-
path: _path + ".mentionPatterns[" +
|
|
3307
|
+
})) && input.mentionPatterns.map((elem, _index54) => "string" === typeof elem || _report(_exceptionable, {
|
|
3308
|
+
path: _path + ".mentionPatterns[" + _index54 + "]",
|
|
3100
3309
|
expected: "string",
|
|
3101
3310
|
value: elem
|
|
3102
3311
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3104,7 +3313,7 @@ var validateCloudConfig = (() => {
|
|
|
3104
3313
|
expected: "(Array<string> | undefined)",
|
|
3105
3314
|
value: input.mentionPatterns
|
|
3106
3315
|
})].every((flag) => flag);
|
|
3107
|
-
const
|
|
3316
|
+
const _vo33 = (input, _path, _exceptionable = true) => ["acp" === input.type || "subagent" === input.type || _report(_exceptionable, {
|
|
3108
3317
|
path: _path + ".type",
|
|
3109
3318
|
expected: '("acp" | "subagent")',
|
|
3110
3319
|
value: input.type
|
|
@@ -3112,12 +3321,12 @@ var validateCloudConfig = (() => {
|
|
|
3112
3321
|
path: _path + ".acp",
|
|
3113
3322
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3114
3323
|
value: input.acp
|
|
3115
|
-
})) &&
|
|
3324
|
+
})) && _vo34(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3116
3325
|
path: _path + ".acp",
|
|
3117
3326
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3118
3327
|
value: input.acp
|
|
3119
3328
|
})].every((flag) => flag);
|
|
3120
|
-
const
|
|
3329
|
+
const _vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.agent || _report(_exceptionable, {
|
|
3121
3330
|
path: _path + ".agent",
|
|
3122
3331
|
expected: "string",
|
|
3123
3332
|
value: input.agent
|
|
@@ -3134,12 +3343,12 @@ var validateCloudConfig = (() => {
|
|
|
3134
3343
|
expected: "(string | undefined)",
|
|
3135
3344
|
value: input.cwd
|
|
3136
3345
|
})].every((flag) => flag);
|
|
3137
|
-
const
|
|
3346
|
+
const _vo35 = (input, _path, _exceptionable = true) => [void 0 === input.allowAgents || (Array.isArray(input.allowAgents) || _report(_exceptionable, {
|
|
3138
3347
|
path: _path + ".allowAgents",
|
|
3139
3348
|
expected: "(Array<string> | undefined)",
|
|
3140
3349
|
value: input.allowAgents
|
|
3141
|
-
})) && input.allowAgents.map((elem,
|
|
3142
|
-
path: _path + ".allowAgents[" +
|
|
3350
|
+
})) && input.allowAgents.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
3351
|
+
path: _path + ".allowAgents[" + _index55 + "]",
|
|
3143
3352
|
expected: "string",
|
|
3144
3353
|
value: elem
|
|
3145
3354
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3147,7 +3356,7 @@ var validateCloudConfig = (() => {
|
|
|
3147
3356
|
expected: "(Array<string> | undefined)",
|
|
3148
3357
|
value: input.allowAgents
|
|
3149
3358
|
})].every((flag) => flag);
|
|
3150
|
-
const
|
|
3359
|
+
const _vo36 = (input, _path, _exceptionable = true) => [void 0 === input.profile || "minimal" === input.profile || "full" === input.profile || "coding" === input.profile || "messaging" === input.profile || "dangerously-skip-permissions" === input.profile || "approve-reads" === input.profile || "approve-all" === input.profile || "deny-all" === input.profile || _report(_exceptionable, {
|
|
3151
3360
|
path: _path + ".profile",
|
|
3152
3361
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
3153
3362
|
value: input.profile
|
|
@@ -3155,8 +3364,8 @@ var validateCloudConfig = (() => {
|
|
|
3155
3364
|
path: _path + ".allow",
|
|
3156
3365
|
expected: "(Array<string> | undefined)",
|
|
3157
3366
|
value: input.allow
|
|
3158
|
-
})) && input.allow.map((elem,
|
|
3159
|
-
path: _path + ".allow[" +
|
|
3367
|
+
})) && input.allow.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
3368
|
+
path: _path + ".allow[" + _index56 + "]",
|
|
3160
3369
|
expected: "string",
|
|
3161
3370
|
value: elem
|
|
3162
3371
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3167,8 +3376,8 @@ var validateCloudConfig = (() => {
|
|
|
3167
3376
|
path: _path + ".deny",
|
|
3168
3377
|
expected: "(Array<string> | undefined)",
|
|
3169
3378
|
value: input.deny
|
|
3170
|
-
})) && input.deny.map((elem,
|
|
3171
|
-
path: _path + ".deny[" +
|
|
3379
|
+
})) && input.deny.map((elem, _index57) => "string" === typeof elem || _report(_exceptionable, {
|
|
3380
|
+
path: _path + ".deny[" + _index57 + "]",
|
|
3172
3381
|
expected: "string",
|
|
3173
3382
|
value: elem
|
|
3174
3383
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3179,17 +3388,17 @@ var validateCloudConfig = (() => {
|
|
|
3179
3388
|
path: _path + ".elevated",
|
|
3180
3389
|
expected: "(__type.o17 | undefined)",
|
|
3181
3390
|
value: input.elevated
|
|
3182
|
-
})) &&
|
|
3391
|
+
})) && _vo37(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
3183
3392
|
path: _path + ".elevated",
|
|
3184
3393
|
expected: "(__type.o17 | undefined)",
|
|
3185
3394
|
value: input.elevated
|
|
3186
3395
|
})].every((flag) => flag);
|
|
3187
|
-
const
|
|
3396
|
+
const _vo37 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3188
3397
|
path: _path + ".enabled",
|
|
3189
3398
|
expected: "(boolean | undefined)",
|
|
3190
3399
|
value: input.enabled
|
|
3191
3400
|
})].every((flag) => flag);
|
|
3192
|
-
const
|
|
3401
|
+
const _vo38 = (input, _path, _exceptionable = true) => ["string" === typeof input.agentId || _report(_exceptionable, {
|
|
3193
3402
|
path: _path + ".agentId",
|
|
3194
3403
|
expected: "string",
|
|
3195
3404
|
value: input.agentId
|
|
@@ -3201,7 +3410,7 @@ var validateCloudConfig = (() => {
|
|
|
3201
3410
|
path: _path + ".match",
|
|
3202
3411
|
expected: "__type.o18",
|
|
3203
3412
|
value: input.match
|
|
3204
|
-
})) &&
|
|
3413
|
+
})) && _vo39(input.match, _path + ".match", _exceptionable) || _report(_exceptionable, {
|
|
3205
3414
|
path: _path + ".match",
|
|
3206
3415
|
expected: "__type.o18",
|
|
3207
3416
|
value: input.match
|
|
@@ -3209,12 +3418,12 @@ var validateCloudConfig = (() => {
|
|
|
3209
3418
|
path: _path + ".acp",
|
|
3210
3419
|
expected: "(__type.o20 | undefined)",
|
|
3211
3420
|
value: input.acp
|
|
3212
|
-
})) &&
|
|
3421
|
+
})) && _vo41(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3213
3422
|
path: _path + ".acp",
|
|
3214
3423
|
expected: "(__type.o20 | undefined)",
|
|
3215
3424
|
value: input.acp
|
|
3216
3425
|
})].every((flag) => flag);
|
|
3217
|
-
const
|
|
3426
|
+
const _vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.channel || _report(_exceptionable, {
|
|
3218
3427
|
path: _path + ".channel",
|
|
3219
3428
|
expected: "string",
|
|
3220
3429
|
value: input.channel
|
|
@@ -3226,7 +3435,7 @@ var validateCloudConfig = (() => {
|
|
|
3226
3435
|
path: _path + ".peer",
|
|
3227
3436
|
expected: "(__type.o19 | undefined)",
|
|
3228
3437
|
value: input.peer
|
|
3229
|
-
})) &&
|
|
3438
|
+
})) && _vo40(input.peer, _path + ".peer", _exceptionable) || _report(_exceptionable, {
|
|
3230
3439
|
path: _path + ".peer",
|
|
3231
3440
|
expected: "(__type.o19 | undefined)",
|
|
3232
3441
|
value: input.peer
|
|
@@ -3239,7 +3448,7 @@ var validateCloudConfig = (() => {
|
|
|
3239
3448
|
expected: "(string | undefined)",
|
|
3240
3449
|
value: input.teamId
|
|
3241
3450
|
})].every((flag) => flag);
|
|
3242
|
-
const
|
|
3451
|
+
const _vo40 = (input, _path, _exceptionable = true) => [void 0 === input.kind || "direct" === input.kind || "group" === input.kind || "channel" === input.kind || _report(_exceptionable, {
|
|
3243
3452
|
path: _path + ".kind",
|
|
3244
3453
|
expected: '("channel" | "direct" | "group" | undefined)',
|
|
3245
3454
|
value: input.kind
|
|
@@ -3248,7 +3457,7 @@ var validateCloudConfig = (() => {
|
|
|
3248
3457
|
expected: "(string | undefined)",
|
|
3249
3458
|
value: input.id
|
|
3250
3459
|
})].every((flag) => flag);
|
|
3251
|
-
const
|
|
3460
|
+
const _vo41 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "string" === typeof input.mode || _report(_exceptionable, {
|
|
3252
3461
|
path: _path + ".mode",
|
|
3253
3462
|
expected: "(string | undefined)",
|
|
3254
3463
|
value: input.mode
|
|
@@ -3265,11 +3474,11 @@ var validateCloudConfig = (() => {
|
|
|
3265
3474
|
expected: "(string | undefined)",
|
|
3266
3475
|
value: input.backend
|
|
3267
3476
|
})].every((flag) => flag);
|
|
3268
|
-
const
|
|
3477
|
+
const _vo42 = (input, _path, _exceptionable = true) => [void 0 === input.defaults || ("object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) || _report(_exceptionable, {
|
|
3269
3478
|
path: _path + ".defaults",
|
|
3270
3479
|
expected: "(__type.o21 | undefined)",
|
|
3271
3480
|
value: input.defaults
|
|
3272
|
-
})) &&
|
|
3481
|
+
})) && _vo43(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
3273
3482
|
path: _path + ".defaults",
|
|
3274
3483
|
expected: "(__type.o21 | undefined)",
|
|
3275
3484
|
value: input.defaults
|
|
@@ -3285,7 +3494,7 @@ var validateCloudConfig = (() => {
|
|
|
3285
3494
|
path: _path + ".telegram",
|
|
3286
3495
|
expected: '(OpenClawChannelBase & { botToken?: string | undefined; groups?: Record<string, unknown> | undefined; customCommands?: { command: string; description: string; }[] | undefined; replyToMode?: "off" | ... 2 more ... | undefined; linkPreview?: boolean | undefined; } | undefined)',
|
|
3287
3496
|
value: input.telegram
|
|
3288
|
-
})) &&
|
|
3497
|
+
})) && _vo45(input.telegram, _path + ".telegram", _exceptionable) || _report(_exceptionable, {
|
|
3289
3498
|
path: _path + ".telegram",
|
|
3290
3499
|
expected: '(OpenClawChannelBase & { botToken?: string | undefined; groups?: Record<string, unknown> | undefined; customCommands?: { command: string; description: string; }[] | undefined; replyToMode?: "off" | ... 2 more ... | undefined; linkPreview?: boolean | undefined; } | undefined)',
|
|
3291
3500
|
value: input.telegram
|
|
@@ -3293,7 +3502,7 @@ var validateCloudConfig = (() => {
|
|
|
3293
3502
|
path: _path + ".discord",
|
|
3294
3503
|
expected: '(OpenClawChannelBase & { token?: string | undefined; allowBots?: boolean | "mentions" | undefined; guilds?: Record<string, unknown> | undefined; replyToMode?: "off" | ... 2 more ... | undefined; textChunkLimit?: number | undefined; chunkMode?: "length" | ... 1 more ... | undefined; } | undefined)',
|
|
3295
3504
|
value: input.discord
|
|
3296
|
-
})) &&
|
|
3505
|
+
})) && _vo48(input.discord, _path + ".discord", _exceptionable) || _report(_exceptionable, {
|
|
3297
3506
|
path: _path + ".discord",
|
|
3298
3507
|
expected: '(OpenClawChannelBase & { token?: string | undefined; allowBots?: boolean | "mentions" | undefined; guilds?: Record<string, unknown> | undefined; replyToMode?: "off" | ... 2 more ... | undefined; textChunkLimit?: number | undefined; chunkMode?: "length" | ... 1 more ... | undefined; } | undefined)',
|
|
3299
3508
|
value: input.discord
|
|
@@ -3301,7 +3510,7 @@ var validateCloudConfig = (() => {
|
|
|
3301
3510
|
path: _path + ".slack",
|
|
3302
3511
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3303
3512
|
value: input.slack
|
|
3304
|
-
})) &&
|
|
3513
|
+
})) && _vo49(input.slack, _path + ".slack", _exceptionable) || _report(_exceptionable, {
|
|
3305
3514
|
path: _path + ".slack",
|
|
3306
3515
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3307
3516
|
value: input.slack
|
|
@@ -3309,7 +3518,7 @@ var validateCloudConfig = (() => {
|
|
|
3309
3518
|
path: _path + ".whatsapp",
|
|
3310
3519
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3311
3520
|
value: input.whatsapp
|
|
3312
|
-
})) &&
|
|
3521
|
+
})) && _vo50(input.whatsapp, _path + ".whatsapp", _exceptionable) || _report(_exceptionable, {
|
|
3313
3522
|
path: _path + ".whatsapp",
|
|
3314
3523
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3315
3524
|
value: input.whatsapp
|
|
@@ -3317,7 +3526,7 @@ var validateCloudConfig = (() => {
|
|
|
3317
3526
|
path: _path + ".shadowob",
|
|
3318
3527
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3319
3528
|
value: input.shadowob
|
|
3320
|
-
})) &&
|
|
3529
|
+
})) && _vo51(input.shadowob, _path + ".shadowob", _exceptionable) || _report(_exceptionable, {
|
|
3321
3530
|
path: _path + ".shadowob",
|
|
3322
3531
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3323
3532
|
value: input.shadowob
|
|
@@ -3329,7 +3538,7 @@ var validateCloudConfig = (() => {
|
|
|
3329
3538
|
return true;
|
|
3330
3539
|
return true;
|
|
3331
3540
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3332
|
-
const
|
|
3541
|
+
const _vo43 = (input, _path, _exceptionable = true) => [void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy || _report(_exceptionable, {
|
|
3333
3542
|
path: _path + ".groupPolicy",
|
|
3334
3543
|
expected: '("allowlist" | "disabled" | "open" | undefined)',
|
|
3335
3544
|
value: input.groupPolicy
|
|
@@ -3337,12 +3546,12 @@ var validateCloudConfig = (() => {
|
|
|
3337
3546
|
path: _path + ".heartbeat",
|
|
3338
3547
|
expected: "(__type.o22 | undefined)",
|
|
3339
3548
|
value: input.heartbeat
|
|
3340
|
-
})) &&
|
|
3549
|
+
})) && _vo44(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
3341
3550
|
path: _path + ".heartbeat",
|
|
3342
3551
|
expected: "(__type.o22 | undefined)",
|
|
3343
3552
|
value: input.heartbeat
|
|
3344
3553
|
})].every((flag) => flag);
|
|
3345
|
-
const
|
|
3554
|
+
const _vo44 = (input, _path, _exceptionable = true) => [void 0 === input.showOk || "boolean" === typeof input.showOk || _report(_exceptionable, {
|
|
3346
3555
|
path: _path + ".showOk",
|
|
3347
3556
|
expected: "(boolean | undefined)",
|
|
3348
3557
|
value: input.showOk
|
|
@@ -3355,7 +3564,7 @@ var validateCloudConfig = (() => {
|
|
|
3355
3564
|
expected: "(boolean | undefined)",
|
|
3356
3565
|
value: input.useIndicator
|
|
3357
3566
|
})].every((flag) => flag);
|
|
3358
|
-
const
|
|
3567
|
+
const _vo45 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3359
3568
|
path: _path + ".enabled",
|
|
3360
3569
|
expected: "(boolean | undefined)",
|
|
3361
3570
|
value: input.enabled
|
|
@@ -3363,7 +3572,7 @@ var validateCloudConfig = (() => {
|
|
|
3363
3572
|
path: _path + ".capabilities",
|
|
3364
3573
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3365
3574
|
value: input.capabilities
|
|
3366
|
-
})) &&
|
|
3575
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3367
3576
|
path: _path + ".capabilities",
|
|
3368
3577
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3369
3578
|
value: input.capabilities
|
|
@@ -3375,8 +3584,8 @@ var validateCloudConfig = (() => {
|
|
|
3375
3584
|
path: _path + ".allowFrom",
|
|
3376
3585
|
expected: "(Array<string> | undefined)",
|
|
3377
3586
|
value: input.allowFrom
|
|
3378
|
-
})) && input.allowFrom.map((elem,
|
|
3379
|
-
path: _path + ".allowFrom[" +
|
|
3587
|
+
})) && input.allowFrom.map((elem, _index58) => "string" === typeof elem || _report(_exceptionable, {
|
|
3588
|
+
path: _path + ".allowFrom[" + _index58 + "]",
|
|
3380
3589
|
expected: "string",
|
|
3381
3590
|
value: elem
|
|
3382
3591
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3419,7 +3628,7 @@ var validateCloudConfig = (() => {
|
|
|
3419
3628
|
path: _path + ".groups",
|
|
3420
3629
|
expected: "(Record<string, unknown> | undefined)",
|
|
3421
3630
|
value: input.groups
|
|
3422
|
-
})) &&
|
|
3631
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3423
3632
|
path: _path + ".groups",
|
|
3424
3633
|
expected: "(Record<string, unknown> | undefined)",
|
|
3425
3634
|
value: input.groups
|
|
@@ -3427,12 +3636,12 @@ var validateCloudConfig = (() => {
|
|
|
3427
3636
|
path: _path + ".customCommands",
|
|
3428
3637
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3429
3638
|
value: input.customCommands
|
|
3430
|
-
})) && input.customCommands.map((elem,
|
|
3431
|
-
path: _path + ".customCommands[" +
|
|
3639
|
+
})) && input.customCommands.map((elem, _index59) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3640
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3432
3641
|
expected: "__type.o24",
|
|
3433
3642
|
value: elem
|
|
3434
|
-
})) &&
|
|
3435
|
-
path: _path + ".customCommands[" +
|
|
3643
|
+
})) && _vo47(elem, _path + ".customCommands[" + _index59 + "]", _exceptionable) || _report(_exceptionable, {
|
|
3644
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3436
3645
|
expected: "__type.o24",
|
|
3437
3646
|
value: elem
|
|
3438
3647
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3448,7 +3657,7 @@ var validateCloudConfig = (() => {
|
|
|
3448
3657
|
expected: "(boolean | undefined)",
|
|
3449
3658
|
value: input.linkPreview
|
|
3450
3659
|
})].every((flag) => flag);
|
|
3451
|
-
const
|
|
3660
|
+
const _vo46 = (input, _path, _exceptionable = true) => [void 0 === input.inlineButtons || "off" === input.inlineButtons || "group" === input.inlineButtons || "allowlist" === input.inlineButtons || "dm" === input.inlineButtons || "all" === input.inlineButtons || "boolean" === typeof input.inlineButtons || _report(_exceptionable, {
|
|
3452
3661
|
path: _path + ".inlineButtons",
|
|
3453
3662
|
expected: '("all" | "allowlist" | "dm" | "group" | "off" | boolean | undefined)',
|
|
3454
3663
|
value: input.inlineButtons
|
|
@@ -3468,7 +3677,7 @@ var validateCloudConfig = (() => {
|
|
|
3468
3677
|
return true;
|
|
3469
3678
|
return true;
|
|
3470
3679
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3471
|
-
const
|
|
3680
|
+
const _vo47 = (input, _path, _exceptionable = true) => ["string" === typeof input.command || _report(_exceptionable, {
|
|
3472
3681
|
path: _path + ".command",
|
|
3473
3682
|
expected: "string",
|
|
3474
3683
|
value: input.command
|
|
@@ -3477,7 +3686,7 @@ var validateCloudConfig = (() => {
|
|
|
3477
3686
|
expected: "string",
|
|
3478
3687
|
value: input.description
|
|
3479
3688
|
})].every((flag) => flag);
|
|
3480
|
-
const
|
|
3689
|
+
const _vo48 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3481
3690
|
path: _path + ".enabled",
|
|
3482
3691
|
expected: "(boolean | undefined)",
|
|
3483
3692
|
value: input.enabled
|
|
@@ -3485,7 +3694,7 @@ var validateCloudConfig = (() => {
|
|
|
3485
3694
|
path: _path + ".capabilities",
|
|
3486
3695
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3487
3696
|
value: input.capabilities
|
|
3488
|
-
})) &&
|
|
3697
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3489
3698
|
path: _path + ".capabilities",
|
|
3490
3699
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3491
3700
|
value: input.capabilities
|
|
@@ -3497,8 +3706,8 @@ var validateCloudConfig = (() => {
|
|
|
3497
3706
|
path: _path + ".allowFrom",
|
|
3498
3707
|
expected: "(Array<string> | undefined)",
|
|
3499
3708
|
value: input.allowFrom
|
|
3500
|
-
})) && input.allowFrom.map((elem,
|
|
3501
|
-
path: _path + ".allowFrom[" +
|
|
3709
|
+
})) && input.allowFrom.map((elem, _index60) => "string" === typeof elem || _report(_exceptionable, {
|
|
3710
|
+
path: _path + ".allowFrom[" + _index60 + "]",
|
|
3502
3711
|
expected: "string",
|
|
3503
3712
|
value: elem
|
|
3504
3713
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3545,7 +3754,7 @@ var validateCloudConfig = (() => {
|
|
|
3545
3754
|
path: _path + ".guilds",
|
|
3546
3755
|
expected: "(Record<string, unknown> | undefined)",
|
|
3547
3756
|
value: input.guilds
|
|
3548
|
-
})) &&
|
|
3757
|
+
})) && _vo5(input.guilds, _path + ".guilds", _exceptionable) || _report(_exceptionable, {
|
|
3549
3758
|
path: _path + ".guilds",
|
|
3550
3759
|
expected: "(Record<string, unknown> | undefined)",
|
|
3551
3760
|
value: input.guilds
|
|
@@ -3562,7 +3771,7 @@ var validateCloudConfig = (() => {
|
|
|
3562
3771
|
expected: '("length" | "newline" | undefined)',
|
|
3563
3772
|
value: input.chunkMode
|
|
3564
3773
|
})].every((flag) => flag);
|
|
3565
|
-
const
|
|
3774
|
+
const _vo49 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3566
3775
|
path: _path + ".enabled",
|
|
3567
3776
|
expected: "(boolean | undefined)",
|
|
3568
3777
|
value: input.enabled
|
|
@@ -3570,7 +3779,7 @@ var validateCloudConfig = (() => {
|
|
|
3570
3779
|
path: _path + ".capabilities",
|
|
3571
3780
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3572
3781
|
value: input.capabilities
|
|
3573
|
-
})) &&
|
|
3782
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3574
3783
|
path: _path + ".capabilities",
|
|
3575
3784
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3576
3785
|
value: input.capabilities
|
|
@@ -3582,8 +3791,8 @@ var validateCloudConfig = (() => {
|
|
|
3582
3791
|
path: _path + ".allowFrom",
|
|
3583
3792
|
expected: "(Array<string> | undefined)",
|
|
3584
3793
|
value: input.allowFrom
|
|
3585
|
-
})) && input.allowFrom.map((elem,
|
|
3586
|
-
path: _path + ".allowFrom[" +
|
|
3794
|
+
})) && input.allowFrom.map((elem, _index61) => "string" === typeof elem || _report(_exceptionable, {
|
|
3795
|
+
path: _path + ".allowFrom[" + _index61 + "]",
|
|
3587
3796
|
expected: "string",
|
|
3588
3797
|
value: elem
|
|
3589
3798
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3630,7 +3839,7 @@ var validateCloudConfig = (() => {
|
|
|
3630
3839
|
path: _path + ".channels",
|
|
3631
3840
|
expected: "(Record<string, unknown> | undefined)",
|
|
3632
3841
|
value: input.channels
|
|
3633
|
-
})) &&
|
|
3842
|
+
})) && _vo5(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
3634
3843
|
path: _path + ".channels",
|
|
3635
3844
|
expected: "(Record<string, unknown> | undefined)",
|
|
3636
3845
|
value: input.channels
|
|
@@ -3639,7 +3848,7 @@ var validateCloudConfig = (() => {
|
|
|
3639
3848
|
expected: "(boolean | undefined)",
|
|
3640
3849
|
value: input.allowBots
|
|
3641
3850
|
})].every((flag) => flag);
|
|
3642
|
-
const
|
|
3851
|
+
const _vo50 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3643
3852
|
path: _path + ".enabled",
|
|
3644
3853
|
expected: "(boolean | undefined)",
|
|
3645
3854
|
value: input.enabled
|
|
@@ -3647,7 +3856,7 @@ var validateCloudConfig = (() => {
|
|
|
3647
3856
|
path: _path + ".capabilities",
|
|
3648
3857
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3649
3858
|
value: input.capabilities
|
|
3650
|
-
})) &&
|
|
3859
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3651
3860
|
path: _path + ".capabilities",
|
|
3652
3861
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3653
3862
|
value: input.capabilities
|
|
@@ -3659,8 +3868,8 @@ var validateCloudConfig = (() => {
|
|
|
3659
3868
|
path: _path + ".allowFrom",
|
|
3660
3869
|
expected: "(Array<string> | undefined)",
|
|
3661
3870
|
value: input.allowFrom
|
|
3662
|
-
})) && input.allowFrom.map((elem,
|
|
3663
|
-
path: _path + ".allowFrom[" +
|
|
3871
|
+
})) && input.allowFrom.map((elem, _index62) => "string" === typeof elem || _report(_exceptionable, {
|
|
3872
|
+
path: _path + ".allowFrom[" + _index62 + "]",
|
|
3664
3873
|
expected: "string",
|
|
3665
3874
|
value: elem
|
|
3666
3875
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3711,12 +3920,12 @@ var validateCloudConfig = (() => {
|
|
|
3711
3920
|
path: _path + ".groups",
|
|
3712
3921
|
expected: "(Record<string, unknown> | undefined)",
|
|
3713
3922
|
value: input.groups
|
|
3714
|
-
})) &&
|
|
3923
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3715
3924
|
path: _path + ".groups",
|
|
3716
3925
|
expected: "(Record<string, unknown> | undefined)",
|
|
3717
3926
|
value: input.groups
|
|
3718
3927
|
})].every((flag) => flag);
|
|
3719
|
-
const
|
|
3928
|
+
const _vo51 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3720
3929
|
path: _path + ".enabled",
|
|
3721
3930
|
expected: "(boolean | undefined)",
|
|
3722
3931
|
value: input.enabled
|
|
@@ -3724,7 +3933,7 @@ var validateCloudConfig = (() => {
|
|
|
3724
3933
|
path: _path + ".capabilities",
|
|
3725
3934
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3726
3935
|
value: input.capabilities
|
|
3727
|
-
})) &&
|
|
3936
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3728
3937
|
path: _path + ".capabilities",
|
|
3729
3938
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3730
3939
|
value: input.capabilities
|
|
@@ -3736,8 +3945,8 @@ var validateCloudConfig = (() => {
|
|
|
3736
3945
|
path: _path + ".allowFrom",
|
|
3737
3946
|
expected: "(Array<string> | undefined)",
|
|
3738
3947
|
value: input.allowFrom
|
|
3739
|
-
})) && input.allowFrom.map((elem,
|
|
3740
|
-
path: _path + ".allowFrom[" +
|
|
3948
|
+
})) && input.allowFrom.map((elem, _index63) => "string" === typeof elem || _report(_exceptionable, {
|
|
3949
|
+
path: _path + ".allowFrom[" + _index63 + "]",
|
|
3741
3950
|
expected: "string",
|
|
3742
3951
|
value: elem
|
|
3743
3952
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3776,12 +3985,12 @@ var validateCloudConfig = (() => {
|
|
|
3776
3985
|
path: _path + ".accounts",
|
|
3777
3986
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3778
3987
|
value: input.accounts
|
|
3779
|
-
})) &&
|
|
3988
|
+
})) && _vo52(input.accounts, _path + ".accounts", _exceptionable) || _report(_exceptionable, {
|
|
3780
3989
|
path: _path + ".accounts",
|
|
3781
3990
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3782
3991
|
value: input.accounts
|
|
3783
3992
|
})].every((flag) => flag);
|
|
3784
|
-
const
|
|
3993
|
+
const _vo52 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3785
3994
|
const value = input[key];
|
|
3786
3995
|
if (void 0 === value)
|
|
3787
3996
|
return true;
|
|
@@ -3789,13 +3998,13 @@ var validateCloudConfig = (() => {
|
|
|
3789
3998
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3790
3999
|
expected: "__type.o29",
|
|
3791
4000
|
value
|
|
3792
|
-
})) &&
|
|
4001
|
+
})) && _vo53(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3793
4002
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3794
4003
|
expected: "__type.o29",
|
|
3795
4004
|
value
|
|
3796
4005
|
});
|
|
3797
4006
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3798
|
-
const
|
|
4007
|
+
const _vo53 = (input, _path, _exceptionable = true) => [void 0 === input.token || "string" === typeof input.token || _report(_exceptionable, {
|
|
3799
4008
|
path: _path + ".token",
|
|
3800
4009
|
expected: "(string | undefined)",
|
|
3801
4010
|
value: input.token
|
|
@@ -3811,12 +4020,12 @@ var validateCloudConfig = (() => {
|
|
|
3811
4020
|
path: _path + ".capabilities",
|
|
3812
4021
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3813
4022
|
value: input.capabilities
|
|
3814
|
-
})) &&
|
|
4023
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3815
4024
|
path: _path + ".capabilities",
|
|
3816
4025
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3817
4026
|
value: input.capabilities
|
|
3818
4027
|
})].every((flag) => flag);
|
|
3819
|
-
const
|
|
4028
|
+
const _vo54 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3820
4029
|
path: _path + ".enabled",
|
|
3821
4030
|
expected: "(boolean | undefined)",
|
|
3822
4031
|
value: input.enabled
|
|
@@ -3824,7 +4033,7 @@ var validateCloudConfig = (() => {
|
|
|
3824
4033
|
path: _path + ".dispatch",
|
|
3825
4034
|
expected: "(__type.o30 | undefined)",
|
|
3826
4035
|
value: input.dispatch
|
|
3827
|
-
})) &&
|
|
4036
|
+
})) && _vo55(input.dispatch, _path + ".dispatch", _exceptionable) || _report(_exceptionable, {
|
|
3828
4037
|
path: _path + ".dispatch",
|
|
3829
4038
|
expected: "(__type.o30 | undefined)",
|
|
3830
4039
|
value: input.dispatch
|
|
@@ -3840,8 +4049,8 @@ var validateCloudConfig = (() => {
|
|
|
3840
4049
|
path: _path + ".allowedAgents",
|
|
3841
4050
|
expected: "(Array<string> | undefined)",
|
|
3842
4051
|
value: input.allowedAgents
|
|
3843
|
-
})) && input.allowedAgents.map((elem,
|
|
3844
|
-
path: _path + ".allowedAgents[" +
|
|
4052
|
+
})) && input.allowedAgents.map((elem, _index64) => "string" === typeof elem || _report(_exceptionable, {
|
|
4053
|
+
path: _path + ".allowedAgents[" + _index64 + "]",
|
|
3845
4054
|
expected: "string",
|
|
3846
4055
|
value: elem
|
|
3847
4056
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3860,7 +4069,7 @@ var validateCloudConfig = (() => {
|
|
|
3860
4069
|
path: _path + ".stream",
|
|
3861
4070
|
expected: "(__type.o31 | undefined)",
|
|
3862
4071
|
value: input.stream
|
|
3863
|
-
})) &&
|
|
4072
|
+
})) && _vo56(input.stream, _path + ".stream", _exceptionable) || _report(_exceptionable, {
|
|
3864
4073
|
path: _path + ".stream",
|
|
3865
4074
|
expected: "(__type.o31 | undefined)",
|
|
3866
4075
|
value: input.stream
|
|
@@ -3868,17 +4077,17 @@ var validateCloudConfig = (() => {
|
|
|
3868
4077
|
path: _path + ".runtime",
|
|
3869
4078
|
expected: "(__type.o32 | undefined)",
|
|
3870
4079
|
value: input.runtime
|
|
3871
|
-
})) &&
|
|
4080
|
+
})) && _vo57(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3872
4081
|
path: _path + ".runtime",
|
|
3873
4082
|
expected: "(__type.o32 | undefined)",
|
|
3874
4083
|
value: input.runtime
|
|
3875
4084
|
})].every((flag) => flag);
|
|
3876
|
-
const
|
|
4085
|
+
const _vo55 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3877
4086
|
path: _path + ".enabled",
|
|
3878
4087
|
expected: "(boolean | undefined)",
|
|
3879
4088
|
value: input.enabled
|
|
3880
4089
|
})].every((flag) => flag);
|
|
3881
|
-
const
|
|
4090
|
+
const _vo56 = (input, _path, _exceptionable = true) => [void 0 === input.coalesceIdleMs || "number" === typeof input.coalesceIdleMs || _report(_exceptionable, {
|
|
3882
4091
|
path: _path + ".coalesceIdleMs",
|
|
3883
4092
|
expected: "(number | undefined)",
|
|
3884
4093
|
value: input.coalesceIdleMs
|
|
@@ -3903,12 +4112,12 @@ var validateCloudConfig = (() => {
|
|
|
3903
4112
|
expected: "(number | undefined)",
|
|
3904
4113
|
value: input.maxSessionUpdateChars
|
|
3905
4114
|
})].every((flag) => flag);
|
|
3906
|
-
const
|
|
4115
|
+
const _vo57 = (input, _path, _exceptionable = true) => [void 0 === input.ttlMinutes || "number" === typeof input.ttlMinutes || _report(_exceptionable, {
|
|
3907
4116
|
path: _path + ".ttlMinutes",
|
|
3908
4117
|
expected: "(number | undefined)",
|
|
3909
4118
|
value: input.ttlMinutes
|
|
3910
4119
|
})].every((flag) => flag);
|
|
3911
|
-
const
|
|
4120
|
+
const _vo58 = (input, _path, _exceptionable = true) => [void 0 === input.scope || "string" === typeof input.scope || _report(_exceptionable, {
|
|
3912
4121
|
path: _path + ".scope",
|
|
3913
4122
|
expected: "(string | undefined)",
|
|
3914
4123
|
value: input.scope
|
|
@@ -3920,7 +4129,7 @@ var validateCloudConfig = (() => {
|
|
|
3920
4129
|
path: _path + ".reset",
|
|
3921
4130
|
expected: "(__type.o33 | undefined)",
|
|
3922
4131
|
value: input.reset
|
|
3923
|
-
})) &&
|
|
4132
|
+
})) && _vo59(input.reset, _path + ".reset", _exceptionable) || _report(_exceptionable, {
|
|
3924
4133
|
path: _path + ".reset",
|
|
3925
4134
|
expected: "(__type.o33 | undefined)",
|
|
3926
4135
|
value: input.reset
|
|
@@ -3928,7 +4137,7 @@ var validateCloudConfig = (() => {
|
|
|
3928
4137
|
path: _path + ".resetByType",
|
|
3929
4138
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3930
4139
|
value: input.resetByType
|
|
3931
|
-
})) &&
|
|
4140
|
+
})) && _vo60(input.resetByType, _path + ".resetByType", _exceptionable) || _report(_exceptionable, {
|
|
3932
4141
|
path: _path + ".resetByType",
|
|
3933
4142
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3934
4143
|
value: input.resetByType
|
|
@@ -3936,8 +4145,8 @@ var validateCloudConfig = (() => {
|
|
|
3936
4145
|
path: _path + ".resetTriggers",
|
|
3937
4146
|
expected: "(Array<string> | undefined)",
|
|
3938
4147
|
value: input.resetTriggers
|
|
3939
|
-
})) && input.resetTriggers.map((elem,
|
|
3940
|
-
path: _path + ".resetTriggers[" +
|
|
4148
|
+
})) && input.resetTriggers.map((elem, _index65) => "string" === typeof elem || _report(_exceptionable, {
|
|
4149
|
+
path: _path + ".resetTriggers[" + _index65 + "]",
|
|
3941
4150
|
expected: "string",
|
|
3942
4151
|
value: elem
|
|
3943
4152
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3952,12 +4161,12 @@ var validateCloudConfig = (() => {
|
|
|
3952
4161
|
path: _path + ".threadBindings",
|
|
3953
4162
|
expected: "(__type.o35 | undefined)",
|
|
3954
4163
|
value: input.threadBindings
|
|
3955
|
-
})) &&
|
|
4164
|
+
})) && _vo62(input.threadBindings, _path + ".threadBindings", _exceptionable) || _report(_exceptionable, {
|
|
3956
4165
|
path: _path + ".threadBindings",
|
|
3957
4166
|
expected: "(__type.o35 | undefined)",
|
|
3958
4167
|
value: input.threadBindings
|
|
3959
4168
|
})].every((flag) => flag);
|
|
3960
|
-
const
|
|
4169
|
+
const _vo59 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3961
4170
|
path: _path + ".mode",
|
|
3962
4171
|
expected: '("daily" | "idle" | undefined)',
|
|
3963
4172
|
value: input.mode
|
|
@@ -3970,7 +4179,7 @@ var validateCloudConfig = (() => {
|
|
|
3970
4179
|
expected: "(number | undefined)",
|
|
3971
4180
|
value: input.idleMinutes
|
|
3972
4181
|
})].every((flag) => flag);
|
|
3973
|
-
const
|
|
4182
|
+
const _vo60 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3974
4183
|
const value = input[key];
|
|
3975
4184
|
if (void 0 === value)
|
|
3976
4185
|
return true;
|
|
@@ -3978,13 +4187,13 @@ var validateCloudConfig = (() => {
|
|
|
3978
4187
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3979
4188
|
expected: "__type.o34",
|
|
3980
4189
|
value
|
|
3981
|
-
})) &&
|
|
4190
|
+
})) && _vo61(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3982
4191
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3983
4192
|
expected: "__type.o34",
|
|
3984
4193
|
value
|
|
3985
4194
|
});
|
|
3986
4195
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3987
|
-
const
|
|
4196
|
+
const _vo61 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3988
4197
|
path: _path + ".mode",
|
|
3989
4198
|
expected: '("daily" | "idle" | undefined)',
|
|
3990
4199
|
value: input.mode
|
|
@@ -3997,7 +4206,7 @@ var validateCloudConfig = (() => {
|
|
|
3997
4206
|
expected: "(number | undefined)",
|
|
3998
4207
|
value: input.idleMinutes
|
|
3999
4208
|
})].every((flag) => flag);
|
|
4000
|
-
const
|
|
4209
|
+
const _vo62 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4001
4210
|
path: _path + ".enabled",
|
|
4002
4211
|
expected: "(boolean | undefined)",
|
|
4003
4212
|
value: input.enabled
|
|
@@ -4010,7 +4219,7 @@ var validateCloudConfig = (() => {
|
|
|
4010
4219
|
expected: "(number | undefined)",
|
|
4011
4220
|
value: input.maxAgeHours
|
|
4012
4221
|
})].every((flag) => flag);
|
|
4013
|
-
const
|
|
4222
|
+
const _vo63 = (input, _path, _exceptionable = true) => [void 0 === input.responsePrefix || "string" === typeof input.responsePrefix || _report(_exceptionable, {
|
|
4014
4223
|
path: _path + ".responsePrefix",
|
|
4015
4224
|
expected: "(string | undefined)",
|
|
4016
4225
|
value: input.responsePrefix
|
|
@@ -4030,7 +4239,7 @@ var validateCloudConfig = (() => {
|
|
|
4030
4239
|
path: _path + ".queue",
|
|
4031
4240
|
expected: "(__type.o36 | undefined)",
|
|
4032
4241
|
value: input.queue
|
|
4033
|
-
})) &&
|
|
4242
|
+
})) && _vo64(input.queue, _path + ".queue", _exceptionable) || _report(_exceptionable, {
|
|
4034
4243
|
path: _path + ".queue",
|
|
4035
4244
|
expected: "(__type.o36 | undefined)",
|
|
4036
4245
|
value: input.queue
|
|
@@ -4038,12 +4247,12 @@ var validateCloudConfig = (() => {
|
|
|
4038
4247
|
path: _path + ".groupChat",
|
|
4039
4248
|
expected: "(__type.o37 | undefined)",
|
|
4040
4249
|
value: input.groupChat
|
|
4041
|
-
})) &&
|
|
4250
|
+
})) && _vo65(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
4042
4251
|
path: _path + ".groupChat",
|
|
4043
4252
|
expected: "(__type.o37 | undefined)",
|
|
4044
4253
|
value: input.groupChat
|
|
4045
4254
|
})].every((flag) => flag);
|
|
4046
|
-
const
|
|
4255
|
+
const _vo64 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "collect" === input.mode || "steer" === input.mode || "followup" === input.mode || "queue" === input.mode || "interrupt" === input.mode || _report(_exceptionable, {
|
|
4047
4256
|
path: _path + ".mode",
|
|
4048
4257
|
expected: '("collect" | "followup" | "interrupt" | "queue" | "steer" | undefined)',
|
|
4049
4258
|
value: input.mode
|
|
@@ -4056,12 +4265,12 @@ var validateCloudConfig = (() => {
|
|
|
4056
4265
|
expected: "(number | undefined)",
|
|
4057
4266
|
value: input.cap
|
|
4058
4267
|
})].every((flag) => flag);
|
|
4059
|
-
const
|
|
4268
|
+
const _vo65 = (input, _path, _exceptionable = true) => [void 0 === input.historyLimit || "number" === typeof input.historyLimit || _report(_exceptionable, {
|
|
4060
4269
|
path: _path + ".historyLimit",
|
|
4061
4270
|
expected: "(number | undefined)",
|
|
4062
4271
|
value: input.historyLimit
|
|
4063
4272
|
})].every((flag) => flag);
|
|
4064
|
-
const
|
|
4273
|
+
const _vo66 = (input, _path, _exceptionable = true) => [void 0 === input.profile || "minimal" === input.profile || "full" === input.profile || "coding" === input.profile || "messaging" === input.profile || "dangerously-skip-permissions" === input.profile || "approve-reads" === input.profile || "approve-all" === input.profile || "deny-all" === input.profile || _report(_exceptionable, {
|
|
4065
4274
|
path: _path + ".profile",
|
|
4066
4275
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
4067
4276
|
value: input.profile
|
|
@@ -4069,8 +4278,8 @@ var validateCloudConfig = (() => {
|
|
|
4069
4278
|
path: _path + ".allow",
|
|
4070
4279
|
expected: "(Array<string> | undefined)",
|
|
4071
4280
|
value: input.allow
|
|
4072
|
-
})) && input.allow.map((elem,
|
|
4073
|
-
path: _path + ".allow[" +
|
|
4281
|
+
})) && input.allow.map((elem, _index66) => "string" === typeof elem || _report(_exceptionable, {
|
|
4282
|
+
path: _path + ".allow[" + _index66 + "]",
|
|
4074
4283
|
expected: "string",
|
|
4075
4284
|
value: elem
|
|
4076
4285
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4081,8 +4290,8 @@ var validateCloudConfig = (() => {
|
|
|
4081
4290
|
path: _path + ".deny",
|
|
4082
4291
|
expected: "(Array<string> | undefined)",
|
|
4083
4292
|
value: input.deny
|
|
4084
|
-
})) && input.deny.map((elem,
|
|
4085
|
-
path: _path + ".deny[" +
|
|
4293
|
+
})) && input.deny.map((elem, _index67) => "string" === typeof elem || _report(_exceptionable, {
|
|
4294
|
+
path: _path + ".deny[" + _index67 + "]",
|
|
4086
4295
|
expected: "string",
|
|
4087
4296
|
value: elem
|
|
4088
4297
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4093,8 +4302,8 @@ var validateCloudConfig = (() => {
|
|
|
4093
4302
|
path: _path + ".readOnly",
|
|
4094
4303
|
expected: "(Array<string> | undefined)",
|
|
4095
4304
|
value: input.readOnly
|
|
4096
|
-
})) && input.readOnly.map((elem,
|
|
4097
|
-
path: _path + ".readOnly[" +
|
|
4305
|
+
})) && input.readOnly.map((elem, _index68) => "string" === typeof elem || _report(_exceptionable, {
|
|
4306
|
+
path: _path + ".readOnly[" + _index68 + "]",
|
|
4098
4307
|
expected: "string",
|
|
4099
4308
|
value: elem
|
|
4100
4309
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4109,7 +4318,7 @@ var validateCloudConfig = (() => {
|
|
|
4109
4318
|
path: _path + ".elevated",
|
|
4110
4319
|
expected: "(__type.o38 | undefined)",
|
|
4111
4320
|
value: input.elevated
|
|
4112
|
-
})) &&
|
|
4321
|
+
})) && _vo67(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
4113
4322
|
path: _path + ".elevated",
|
|
4114
4323
|
expected: "(__type.o38 | undefined)",
|
|
4115
4324
|
value: input.elevated
|
|
@@ -4117,7 +4326,7 @@ var validateCloudConfig = (() => {
|
|
|
4117
4326
|
path: _path + ".exec",
|
|
4118
4327
|
expected: "(__type.o39 | undefined)",
|
|
4119
4328
|
value: input.exec
|
|
4120
|
-
})) &&
|
|
4329
|
+
})) && _vo69(input.exec, _path + ".exec", _exceptionable) || _report(_exceptionable, {
|
|
4121
4330
|
path: _path + ".exec",
|
|
4122
4331
|
expected: "(__type.o39 | undefined)",
|
|
4123
4332
|
value: input.exec
|
|
@@ -4125,7 +4334,7 @@ var validateCloudConfig = (() => {
|
|
|
4125
4334
|
path: _path + ".web",
|
|
4126
4335
|
expected: "(__type.o40 | undefined)",
|
|
4127
4336
|
value: input.web
|
|
4128
|
-
})) &&
|
|
4337
|
+
})) && _vo70(input.web, _path + ".web", _exceptionable) || _report(_exceptionable, {
|
|
4129
4338
|
path: _path + ".web",
|
|
4130
4339
|
expected: "(__type.o40 | undefined)",
|
|
4131
4340
|
value: input.web
|
|
@@ -4133,12 +4342,12 @@ var validateCloudConfig = (() => {
|
|
|
4133
4342
|
path: _path + ".sandbox",
|
|
4134
4343
|
expected: "(Record<string, unknown> | undefined)",
|
|
4135
4344
|
value: input.sandbox
|
|
4136
|
-
})) &&
|
|
4345
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4137
4346
|
path: _path + ".sandbox",
|
|
4138
4347
|
expected: "(Record<string, unknown> | undefined)",
|
|
4139
4348
|
value: input.sandbox
|
|
4140
4349
|
})].every((flag) => flag);
|
|
4141
|
-
const
|
|
4350
|
+
const _vo67 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4142
4351
|
path: _path + ".enabled",
|
|
4143
4352
|
expected: "(boolean | undefined)",
|
|
4144
4353
|
value: input.enabled
|
|
@@ -4146,12 +4355,12 @@ var validateCloudConfig = (() => {
|
|
|
4146
4355
|
path: _path + ".allowFrom",
|
|
4147
4356
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4148
4357
|
value: input.allowFrom
|
|
4149
|
-
})) &&
|
|
4358
|
+
})) && _vo68(input.allowFrom, _path + ".allowFrom", _exceptionable) || _report(_exceptionable, {
|
|
4150
4359
|
path: _path + ".allowFrom",
|
|
4151
4360
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4152
4361
|
value: input.allowFrom
|
|
4153
4362
|
})].every((flag) => flag);
|
|
4154
|
-
const
|
|
4363
|
+
const _vo68 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4155
4364
|
const value = input[key];
|
|
4156
4365
|
if (void 0 === value)
|
|
4157
4366
|
return true;
|
|
@@ -4159,8 +4368,8 @@ var validateCloudConfig = (() => {
|
|
|
4159
4368
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4160
4369
|
expected: "Array<string>",
|
|
4161
4370
|
value
|
|
4162
|
-
})) && value.map((elem,
|
|
4163
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
4371
|
+
})) && value.map((elem, _index69) => "string" === typeof elem || _report(_exceptionable, {
|
|
4372
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index69 + "]",
|
|
4164
4373
|
expected: "string",
|
|
4165
4374
|
value: elem
|
|
4166
4375
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4169,7 +4378,7 @@ var validateCloudConfig = (() => {
|
|
|
4169
4378
|
value
|
|
4170
4379
|
});
|
|
4171
4380
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4172
|
-
const
|
|
4381
|
+
const _vo69 = (input, _path, _exceptionable = true) => [void 0 === input.backgroundMs || "number" === typeof input.backgroundMs || _report(_exceptionable, {
|
|
4173
4382
|
path: _path + ".backgroundMs",
|
|
4174
4383
|
expected: "(number | undefined)",
|
|
4175
4384
|
value: input.backgroundMs
|
|
@@ -4178,11 +4387,11 @@ var validateCloudConfig = (() => {
|
|
|
4178
4387
|
expected: "(number | undefined)",
|
|
4179
4388
|
value: input.timeoutSec
|
|
4180
4389
|
})].every((flag) => flag);
|
|
4181
|
-
const
|
|
4390
|
+
const _vo70 = (input, _path, _exceptionable = true) => [void 0 === input.search || ("object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) || _report(_exceptionable, {
|
|
4182
4391
|
path: _path + ".search",
|
|
4183
4392
|
expected: "(__type.o41 | undefined)",
|
|
4184
4393
|
value: input.search
|
|
4185
|
-
})) &&
|
|
4394
|
+
})) && _vo71(input.search, _path + ".search", _exceptionable) || _report(_exceptionable, {
|
|
4186
4395
|
path: _path + ".search",
|
|
4187
4396
|
expected: "(__type.o41 | undefined)",
|
|
4188
4397
|
value: input.search
|
|
@@ -4190,12 +4399,12 @@ var validateCloudConfig = (() => {
|
|
|
4190
4399
|
path: _path + ".fetch",
|
|
4191
4400
|
expected: "(__type.o42 | undefined)",
|
|
4192
4401
|
value: input.fetch
|
|
4193
|
-
})) &&
|
|
4402
|
+
})) && _vo72(input.fetch, _path + ".fetch", _exceptionable) || _report(_exceptionable, {
|
|
4194
4403
|
path: _path + ".fetch",
|
|
4195
4404
|
expected: "(__type.o42 | undefined)",
|
|
4196
4405
|
value: input.fetch
|
|
4197
4406
|
})].every((flag) => flag);
|
|
4198
|
-
const
|
|
4407
|
+
const _vo71 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4199
4408
|
path: _path + ".enabled",
|
|
4200
4409
|
expected: "(boolean | undefined)",
|
|
4201
4410
|
value: input.enabled
|
|
@@ -4208,7 +4417,7 @@ var validateCloudConfig = (() => {
|
|
|
4208
4417
|
expected: "(number | undefined)",
|
|
4209
4418
|
value: input.maxResults
|
|
4210
4419
|
})].every((flag) => flag);
|
|
4211
|
-
const
|
|
4420
|
+
const _vo72 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4212
4421
|
path: _path + ".enabled",
|
|
4213
4422
|
expected: "(boolean | undefined)",
|
|
4214
4423
|
value: input.enabled
|
|
@@ -4217,7 +4426,7 @@ var validateCloudConfig = (() => {
|
|
|
4217
4426
|
expected: "(number | undefined)",
|
|
4218
4427
|
value: input.maxChars
|
|
4219
4428
|
})].every((flag) => flag);
|
|
4220
|
-
const
|
|
4429
|
+
const _vo73 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "merge" === input.mode || "replace" === input.mode || _report(_exceptionable, {
|
|
4221
4430
|
path: _path + ".mode",
|
|
4222
4431
|
expected: '("merge" | "replace" | undefined)',
|
|
4223
4432
|
value: input.mode
|
|
@@ -4225,12 +4434,12 @@ var validateCloudConfig = (() => {
|
|
|
4225
4434
|
path: _path + ".providers",
|
|
4226
4435
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4227
4436
|
value: input.providers
|
|
4228
|
-
})) &&
|
|
4437
|
+
})) && _vo74(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4229
4438
|
path: _path + ".providers",
|
|
4230
4439
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4231
4440
|
value: input.providers
|
|
4232
4441
|
})].every((flag) => flag);
|
|
4233
|
-
const
|
|
4442
|
+
const _vo74 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4234
4443
|
const value = input[key];
|
|
4235
4444
|
if (void 0 === value)
|
|
4236
4445
|
return true;
|
|
@@ -4238,13 +4447,13 @@ var validateCloudConfig = (() => {
|
|
|
4238
4447
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4239
4448
|
expected: "OpenClawProviderConfig",
|
|
4240
4449
|
value
|
|
4241
|
-
})) &&
|
|
4450
|
+
})) && _vo16(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4242
4451
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4243
4452
|
expected: "OpenClawProviderConfig",
|
|
4244
4453
|
value
|
|
4245
4454
|
});
|
|
4246
4455
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4247
|
-
const
|
|
4456
|
+
const _vo75 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4248
4457
|
path: _path + ".enabled",
|
|
4249
4458
|
expected: "(boolean | undefined)",
|
|
4250
4459
|
value: input.enabled
|
|
@@ -4252,8 +4461,8 @@ var validateCloudConfig = (() => {
|
|
|
4252
4461
|
path: _path + ".allow",
|
|
4253
4462
|
expected: "(Array<string> | undefined)",
|
|
4254
4463
|
value: input.allow
|
|
4255
|
-
})) && input.allow.map((elem,
|
|
4256
|
-
path: _path + ".allow[" +
|
|
4464
|
+
})) && input.allow.map((elem, _index70) => "string" === typeof elem || _report(_exceptionable, {
|
|
4465
|
+
path: _path + ".allow[" + _index70 + "]",
|
|
4257
4466
|
expected: "string",
|
|
4258
4467
|
value: elem
|
|
4259
4468
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4264,8 +4473,8 @@ var validateCloudConfig = (() => {
|
|
|
4264
4473
|
path: _path + ".deny",
|
|
4265
4474
|
expected: "(Array<string> | undefined)",
|
|
4266
4475
|
value: input.deny
|
|
4267
|
-
})) && input.deny.map((elem,
|
|
4268
|
-
path: _path + ".deny[" +
|
|
4476
|
+
})) && input.deny.map((elem, _index71) => "string" === typeof elem || _report(_exceptionable, {
|
|
4477
|
+
path: _path + ".deny[" + _index71 + "]",
|
|
4269
4478
|
expected: "string",
|
|
4270
4479
|
value: elem
|
|
4271
4480
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4276,7 +4485,7 @@ var validateCloudConfig = (() => {
|
|
|
4276
4485
|
path: _path + ".load",
|
|
4277
4486
|
expected: "(__type.o43 | undefined)",
|
|
4278
4487
|
value: input.load
|
|
4279
|
-
})) &&
|
|
4488
|
+
})) && _vo76(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4280
4489
|
path: _path + ".load",
|
|
4281
4490
|
expected: "(__type.o43 | undefined)",
|
|
4282
4491
|
value: input.load
|
|
@@ -4284,17 +4493,17 @@ var validateCloudConfig = (() => {
|
|
|
4284
4493
|
path: _path + ".entries",
|
|
4285
4494
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4286
4495
|
value: input.entries
|
|
4287
|
-
})) &&
|
|
4496
|
+
})) && _vo77(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4288
4497
|
path: _path + ".entries",
|
|
4289
4498
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4290
4499
|
value: input.entries
|
|
4291
4500
|
})].every((flag) => flag);
|
|
4292
|
-
const
|
|
4501
|
+
const _vo76 = (input, _path, _exceptionable = true) => [void 0 === input.paths || (Array.isArray(input.paths) || _report(_exceptionable, {
|
|
4293
4502
|
path: _path + ".paths",
|
|
4294
4503
|
expected: "(Array<string> | undefined)",
|
|
4295
4504
|
value: input.paths
|
|
4296
|
-
})) && input.paths.map((elem,
|
|
4297
|
-
path: _path + ".paths[" +
|
|
4505
|
+
})) && input.paths.map((elem, _index72) => "string" === typeof elem || _report(_exceptionable, {
|
|
4506
|
+
path: _path + ".paths[" + _index72 + "]",
|
|
4298
4507
|
expected: "string",
|
|
4299
4508
|
value: elem
|
|
4300
4509
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4302,7 +4511,7 @@ var validateCloudConfig = (() => {
|
|
|
4302
4511
|
expected: "(Array<string> | undefined)",
|
|
4303
4512
|
value: input.paths
|
|
4304
4513
|
})].every((flag) => flag);
|
|
4305
|
-
const
|
|
4514
|
+
const _vo77 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4306
4515
|
const value = input[key];
|
|
4307
4516
|
if (void 0 === value)
|
|
4308
4517
|
return true;
|
|
@@ -4310,13 +4519,13 @@ var validateCloudConfig = (() => {
|
|
|
4310
4519
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4311
4520
|
expected: "__type.o44",
|
|
4312
4521
|
value
|
|
4313
|
-
})) &&
|
|
4522
|
+
})) && _vo78(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4314
4523
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4315
4524
|
expected: "__type.o44",
|
|
4316
4525
|
value
|
|
4317
4526
|
});
|
|
4318
4527
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4319
|
-
const
|
|
4528
|
+
const _vo78 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4320
4529
|
path: _path + ".enabled",
|
|
4321
4530
|
expected: "(boolean | undefined)",
|
|
4322
4531
|
value: input.enabled
|
|
@@ -4324,7 +4533,7 @@ var validateCloudConfig = (() => {
|
|
|
4324
4533
|
path: _path + ".config",
|
|
4325
4534
|
expected: "(Record<string, unknown> | undefined)",
|
|
4326
4535
|
value: input.config
|
|
4327
|
-
})) &&
|
|
4536
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4328
4537
|
path: _path + ".config",
|
|
4329
4538
|
expected: "(Record<string, unknown> | undefined)",
|
|
4330
4539
|
value: input.config
|
|
@@ -4332,22 +4541,22 @@ var validateCloudConfig = (() => {
|
|
|
4332
4541
|
path: _path + ".hooks",
|
|
4333
4542
|
expected: "(__type.o45 | undefined)",
|
|
4334
4543
|
value: input.hooks
|
|
4335
|
-
})) &&
|
|
4544
|
+
})) && _vo79(input.hooks, _path + ".hooks", _exceptionable) || _report(_exceptionable, {
|
|
4336
4545
|
path: _path + ".hooks",
|
|
4337
4546
|
expected: "(__type.o45 | undefined)",
|
|
4338
4547
|
value: input.hooks
|
|
4339
4548
|
})].every((flag) => flag);
|
|
4340
|
-
const
|
|
4549
|
+
const _vo79 = (input, _path, _exceptionable = true) => [void 0 === input.allowPromptInjection || "boolean" === typeof input.allowPromptInjection || _report(_exceptionable, {
|
|
4341
4550
|
path: _path + ".allowPromptInjection",
|
|
4342
4551
|
expected: "(boolean | undefined)",
|
|
4343
4552
|
value: input.allowPromptInjection
|
|
4344
4553
|
})].every((flag) => flag);
|
|
4345
|
-
const
|
|
4554
|
+
const _vo80 = (input, _path, _exceptionable = true) => [void 0 === input.allowBundled || (Array.isArray(input.allowBundled) || _report(_exceptionable, {
|
|
4346
4555
|
path: _path + ".allowBundled",
|
|
4347
4556
|
expected: "(Array<string> | undefined)",
|
|
4348
4557
|
value: input.allowBundled
|
|
4349
|
-
})) && input.allowBundled.map((elem,
|
|
4350
|
-
path: _path + ".allowBundled[" +
|
|
4558
|
+
})) && input.allowBundled.map((elem, _index73) => "string" === typeof elem || _report(_exceptionable, {
|
|
4559
|
+
path: _path + ".allowBundled[" + _index73 + "]",
|
|
4351
4560
|
expected: "string",
|
|
4352
4561
|
value: elem
|
|
4353
4562
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4358,7 +4567,7 @@ var validateCloudConfig = (() => {
|
|
|
4358
4567
|
path: _path + ".load",
|
|
4359
4568
|
expected: "(__type.o46 | undefined)",
|
|
4360
4569
|
value: input.load
|
|
4361
|
-
})) &&
|
|
4570
|
+
})) && _vo81(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4362
4571
|
path: _path + ".load",
|
|
4363
4572
|
expected: "(__type.o46 | undefined)",
|
|
4364
4573
|
value: input.load
|
|
@@ -4366,7 +4575,7 @@ var validateCloudConfig = (() => {
|
|
|
4366
4575
|
path: _path + ".install",
|
|
4367
4576
|
expected: "(__type.o47 | undefined)",
|
|
4368
4577
|
value: input.install
|
|
4369
|
-
})) &&
|
|
4578
|
+
})) && _vo82(input.install, _path + ".install", _exceptionable) || _report(_exceptionable, {
|
|
4370
4579
|
path: _path + ".install",
|
|
4371
4580
|
expected: "(__type.o47 | undefined)",
|
|
4372
4581
|
value: input.install
|
|
@@ -4374,17 +4583,17 @@ var validateCloudConfig = (() => {
|
|
|
4374
4583
|
path: _path + ".entries",
|
|
4375
4584
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4376
4585
|
value: input.entries
|
|
4377
|
-
})) &&
|
|
4586
|
+
})) && _vo83(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4378
4587
|
path: _path + ".entries",
|
|
4379
4588
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4380
4589
|
value: input.entries
|
|
4381
4590
|
})].every((flag) => flag);
|
|
4382
|
-
const
|
|
4591
|
+
const _vo81 = (input, _path, _exceptionable = true) => [void 0 === input.extraDirs || (Array.isArray(input.extraDirs) || _report(_exceptionable, {
|
|
4383
4592
|
path: _path + ".extraDirs",
|
|
4384
4593
|
expected: "(Array<string> | undefined)",
|
|
4385
4594
|
value: input.extraDirs
|
|
4386
|
-
})) && input.extraDirs.map((elem,
|
|
4387
|
-
path: _path + ".extraDirs[" +
|
|
4595
|
+
})) && input.extraDirs.map((elem, _index74) => "string" === typeof elem || _report(_exceptionable, {
|
|
4596
|
+
path: _path + ".extraDirs[" + _index74 + "]",
|
|
4388
4597
|
expected: "string",
|
|
4389
4598
|
value: elem
|
|
4390
4599
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4392,7 +4601,7 @@ var validateCloudConfig = (() => {
|
|
|
4392
4601
|
expected: "(Array<string> | undefined)",
|
|
4393
4602
|
value: input.extraDirs
|
|
4394
4603
|
})].every((flag) => flag);
|
|
4395
|
-
const
|
|
4604
|
+
const _vo82 = (input, _path, _exceptionable = true) => [void 0 === input.preferBrew || "boolean" === typeof input.preferBrew || _report(_exceptionable, {
|
|
4396
4605
|
path: _path + ".preferBrew",
|
|
4397
4606
|
expected: "(boolean | undefined)",
|
|
4398
4607
|
value: input.preferBrew
|
|
@@ -4401,7 +4610,7 @@ var validateCloudConfig = (() => {
|
|
|
4401
4610
|
expected: '("npm" | "pnpm" | "yarn" | undefined)',
|
|
4402
4611
|
value: input.nodeManager
|
|
4403
4612
|
})].every((flag) => flag);
|
|
4404
|
-
const
|
|
4613
|
+
const _vo83 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4405
4614
|
const value = input[key];
|
|
4406
4615
|
if (void 0 === value)
|
|
4407
4616
|
return true;
|
|
@@ -4409,13 +4618,13 @@ var validateCloudConfig = (() => {
|
|
|
4409
4618
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4410
4619
|
expected: "__type.o48",
|
|
4411
4620
|
value
|
|
4412
|
-
})) &&
|
|
4621
|
+
})) && _vo84(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4413
4622
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4414
4623
|
expected: "__type.o48",
|
|
4415
4624
|
value
|
|
4416
4625
|
});
|
|
4417
4626
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4418
|
-
const
|
|
4627
|
+
const _vo84 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4419
4628
|
path: _path + ".enabled",
|
|
4420
4629
|
expected: "(boolean | undefined)",
|
|
4421
4630
|
value: input.enabled
|
|
@@ -4435,12 +4644,12 @@ var validateCloudConfig = (() => {
|
|
|
4435
4644
|
path: _path + ".config",
|
|
4436
4645
|
expected: "(Record<string, unknown> | undefined)",
|
|
4437
4646
|
value: input.config
|
|
4438
|
-
})) &&
|
|
4647
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4439
4648
|
path: _path + ".config",
|
|
4440
4649
|
expected: "(Record<string, unknown> | undefined)",
|
|
4441
4650
|
value: input.config
|
|
4442
4651
|
})].every((flag) => flag);
|
|
4443
|
-
const
|
|
4652
|
+
const _vo85 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "local" === input.mode || "remote" === input.mode || _report(_exceptionable, {
|
|
4444
4653
|
path: _path + ".mode",
|
|
4445
4654
|
expected: '("local" | "remote" | undefined)',
|
|
4446
4655
|
value: input.mode
|
|
@@ -4460,7 +4669,7 @@ var validateCloudConfig = (() => {
|
|
|
4460
4669
|
path: _path + ".auth",
|
|
4461
4670
|
expected: "(__type.o49 | undefined)",
|
|
4462
4671
|
value: input.auth
|
|
4463
|
-
})) &&
|
|
4672
|
+
})) && _vo86(input.auth, _path + ".auth", _exceptionable) || _report(_exceptionable, {
|
|
4464
4673
|
path: _path + ".auth",
|
|
4465
4674
|
expected: "(__type.o49 | undefined)",
|
|
4466
4675
|
value: input.auth
|
|
@@ -4468,7 +4677,7 @@ var validateCloudConfig = (() => {
|
|
|
4468
4677
|
path: _path + ".tls",
|
|
4469
4678
|
expected: "(__type.o50 | undefined)",
|
|
4470
4679
|
value: input.tls
|
|
4471
|
-
})) &&
|
|
4680
|
+
})) && _vo87(input.tls, _path + ".tls", _exceptionable) || _report(_exceptionable, {
|
|
4472
4681
|
path: _path + ".tls",
|
|
4473
4682
|
expected: "(__type.o50 | undefined)",
|
|
4474
4683
|
value: input.tls
|
|
@@ -4476,12 +4685,12 @@ var validateCloudConfig = (() => {
|
|
|
4476
4685
|
path: _path + ".reload",
|
|
4477
4686
|
expected: "(__type.o51 | undefined)",
|
|
4478
4687
|
value: input.reload
|
|
4479
|
-
})) &&
|
|
4688
|
+
})) && _vo88(input.reload, _path + ".reload", _exceptionable) || _report(_exceptionable, {
|
|
4480
4689
|
path: _path + ".reload",
|
|
4481
4690
|
expected: "(__type.o51 | undefined)",
|
|
4482
4691
|
value: input.reload
|
|
4483
4692
|
})].every((flag) => flag);
|
|
4484
|
-
const
|
|
4693
|
+
const _vo86 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "none" === input.mode || "token" === input.mode || "password" === input.mode || "trusted-proxy" === input.mode || _report(_exceptionable, {
|
|
4485
4694
|
path: _path + ".mode",
|
|
4486
4695
|
expected: '("none" | "password" | "token" | "trusted-proxy" | undefined)',
|
|
4487
4696
|
value: input.mode
|
|
@@ -4498,7 +4707,7 @@ var validateCloudConfig = (() => {
|
|
|
4498
4707
|
expected: "(boolean | undefined)",
|
|
4499
4708
|
value: input.allowTailscale
|
|
4500
4709
|
})].every((flag) => flag);
|
|
4501
|
-
const
|
|
4710
|
+
const _vo87 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4502
4711
|
path: _path + ".enabled",
|
|
4503
4712
|
expected: "(boolean | undefined)",
|
|
4504
4713
|
value: input.enabled
|
|
@@ -4511,7 +4720,7 @@ var validateCloudConfig = (() => {
|
|
|
4511
4720
|
expected: "(string | undefined)",
|
|
4512
4721
|
value: input.keyPath
|
|
4513
4722
|
})].every((flag) => flag);
|
|
4514
|
-
const
|
|
4723
|
+
const _vo88 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "off" === input.mode || "restart" === input.mode || "hot" === input.mode || "hybrid" === input.mode || _report(_exceptionable, {
|
|
4515
4724
|
path: _path + ".mode",
|
|
4516
4725
|
expected: '("hot" | "hybrid" | "off" | "restart" | undefined)',
|
|
4517
4726
|
value: input.mode
|
|
@@ -4520,7 +4729,7 @@ var validateCloudConfig = (() => {
|
|
|
4520
4729
|
expected: "(number | undefined)",
|
|
4521
4730
|
value: input.debounceMs
|
|
4522
4731
|
})].every((flag) => flag);
|
|
4523
|
-
const
|
|
4732
|
+
const _vo89 = (input, _path, _exceptionable = true) => [void 0 === input.level || "string" === typeof input.level || _report(_exceptionable, {
|
|
4524
4733
|
path: _path + ".level",
|
|
4525
4734
|
expected: "(string | undefined)",
|
|
4526
4735
|
value: input.level
|
|
@@ -4541,7 +4750,7 @@ var validateCloudConfig = (() => {
|
|
|
4541
4750
|
expected: '("off" | "tools" | undefined)',
|
|
4542
4751
|
value: input.redactSensitive
|
|
4543
4752
|
})].every((flag) => flag);
|
|
4544
|
-
const
|
|
4753
|
+
const _vo90 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4545
4754
|
const value = input[key];
|
|
4546
4755
|
if (void 0 === value)
|
|
4547
4756
|
return true;
|
|
@@ -4549,17 +4758,17 @@ var validateCloudConfig = (() => {
|
|
|
4549
4758
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4550
4759
|
expected: "VaultConfig",
|
|
4551
4760
|
value
|
|
4552
|
-
})) &&
|
|
4761
|
+
})) && _vo91(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4553
4762
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4554
4763
|
expected: "VaultConfig",
|
|
4555
4764
|
value
|
|
4556
4765
|
});
|
|
4557
4766
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4558
|
-
const
|
|
4767
|
+
const _vo91 = (input, _path, _exceptionable = true) => [void 0 === input.providers || ("object" === typeof input.providers && null !== input.providers && false === Array.isArray(input.providers) || _report(_exceptionable, {
|
|
4559
4768
|
path: _path + ".providers",
|
|
4560
4769
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4561
4770
|
value: input.providers
|
|
4562
|
-
})) &&
|
|
4771
|
+
})) && _vo92(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4563
4772
|
path: _path + ".providers",
|
|
4564
4773
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4565
4774
|
value: input.providers
|
|
@@ -4572,7 +4781,7 @@ var validateCloudConfig = (() => {
|
|
|
4572
4781
|
expected: "(Record<string, string> | undefined)",
|
|
4573
4782
|
value: input.secrets
|
|
4574
4783
|
})].every((flag) => flag);
|
|
4575
|
-
const
|
|
4784
|
+
const _vo92 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4576
4785
|
const value = input[key];
|
|
4577
4786
|
if (void 0 === value)
|
|
4578
4787
|
return true;
|
|
@@ -4580,18 +4789,18 @@ var validateCloudConfig = (() => {
|
|
|
4580
4789
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4581
4790
|
expected: "VaultSecretSource",
|
|
4582
4791
|
value
|
|
4583
|
-
})) &&
|
|
4792
|
+
})) && _vo93(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4584
4793
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4585
4794
|
expected: "VaultSecretSource",
|
|
4586
4795
|
value
|
|
4587
4796
|
});
|
|
4588
4797
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4589
|
-
const
|
|
4798
|
+
const _vo93 = (input, _path, _exceptionable = true) => [void 0 === input.apiKey || "string" === typeof input.apiKey || _report(_exceptionable, {
|
|
4590
4799
|
path: _path + ".apiKey",
|
|
4591
4800
|
expected: "(string | undefined)",
|
|
4592
4801
|
value: input.apiKey
|
|
4593
4802
|
})].every((flag) => flag);
|
|
4594
|
-
const
|
|
4803
|
+
const _vo94 = (input, _path, _exceptionable = true) => [void 0 === input.namespace || "string" === typeof input.namespace || _report(_exceptionable, {
|
|
4595
4804
|
path: _path + ".namespace",
|
|
4596
4805
|
expected: "(string | undefined)",
|
|
4597
4806
|
value: input.namespace
|
|
@@ -4599,24 +4808,36 @@ var validateCloudConfig = (() => {
|
|
|
4599
4808
|
path: _path + ".backend",
|
|
4600
4809
|
expected: '("agent-sandbox" | "deployment" | undefined)',
|
|
4601
4810
|
value: input.backend
|
|
4811
|
+
}), void 0 === input.backendPolicy || "sandbox-required" === input.backendPolicy || "sandbox-preferred" === input.backendPolicy || "deployment-only" === input.backendPolicy || _report(_exceptionable, {
|
|
4812
|
+
path: _path + ".backendPolicy",
|
|
4813
|
+
expected: '("deployment-only" | "sandbox-preferred" | "sandbox-required" | undefined)',
|
|
4814
|
+
value: input.backendPolicy
|
|
4602
4815
|
}), void 0 === input.sandbox || ("object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) || _report(_exceptionable, {
|
|
4603
4816
|
path: _path + ".sandbox",
|
|
4604
4817
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4605
4818
|
value: input.sandbox
|
|
4606
|
-
})) &&
|
|
4819
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4607
4820
|
path: _path + ".sandbox",
|
|
4608
4821
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4609
4822
|
value: input.sandbox
|
|
4823
|
+
}), void 0 === input.scheduling || ("object" === typeof input.scheduling && null !== input.scheduling && false === Array.isArray(input.scheduling) || _report(_exceptionable, {
|
|
4824
|
+
path: _path + ".scheduling",
|
|
4825
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
4826
|
+
value: input.scheduling
|
|
4827
|
+
})) && _vo100(input.scheduling, _path + ".scheduling", _exceptionable) || _report(_exceptionable, {
|
|
4828
|
+
path: _path + ".scheduling",
|
|
4829
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
4830
|
+
value: input.scheduling
|
|
4610
4831
|
}), (Array.isArray(input.agents) || _report(_exceptionable, {
|
|
4611
4832
|
path: _path + ".agents",
|
|
4612
4833
|
expected: "Array<AgentDeployment>",
|
|
4613
4834
|
value: input.agents
|
|
4614
|
-
})) && input.agents.map((elem,
|
|
4615
|
-
path: _path + ".agents[" +
|
|
4835
|
+
})) && input.agents.map((elem, _index75) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
4836
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4616
4837
|
expected: "AgentDeployment",
|
|
4617
4838
|
value: elem
|
|
4618
|
-
})) &&
|
|
4619
|
-
path: _path + ".agents[" +
|
|
4839
|
+
})) && _vo101(elem, _path + ".agents[" + _index75 + "]", _exceptionable) || _report(_exceptionable, {
|
|
4840
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4620
4841
|
expected: "AgentDeployment",
|
|
4621
4842
|
value: elem
|
|
4622
4843
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4624,7 +4845,7 @@ var validateCloudConfig = (() => {
|
|
|
4624
4845
|
expected: "Array<AgentDeployment>",
|
|
4625
4846
|
value: input.agents
|
|
4626
4847
|
})].every((flag) => flag);
|
|
4627
|
-
const
|
|
4848
|
+
const _vo95 = (input, _path, _exceptionable = true) => [void 0 === input.runtimeClassName || "string" === typeof input.runtimeClassName || _report(_exceptionable, {
|
|
4628
4849
|
path: _path + ".runtimeClassName",
|
|
4629
4850
|
expected: "(string | undefined)",
|
|
4630
4851
|
value: input.runtimeClassName
|
|
@@ -4632,7 +4853,7 @@ var validateCloudConfig = (() => {
|
|
|
4632
4853
|
path: _path + ".state",
|
|
4633
4854
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4634
4855
|
value: input.state
|
|
4635
|
-
})) &&
|
|
4856
|
+
})) && _vo96(input.state, _path + ".state", _exceptionable) || _report(_exceptionable, {
|
|
4636
4857
|
path: _path + ".state",
|
|
4637
4858
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4638
4859
|
value: input.state
|
|
@@ -4640,7 +4861,7 @@ var validateCloudConfig = (() => {
|
|
|
4640
4861
|
path: _path + ".lifecycle",
|
|
4641
4862
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4642
4863
|
value: input.lifecycle
|
|
4643
|
-
})) &&
|
|
4864
|
+
})) && _vo97(input.lifecycle, _path + ".lifecycle", _exceptionable) || _report(_exceptionable, {
|
|
4644
4865
|
path: _path + ".lifecycle",
|
|
4645
4866
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4646
4867
|
value: input.lifecycle
|
|
@@ -4648,7 +4869,7 @@ var validateCloudConfig = (() => {
|
|
|
4648
4869
|
path: _path + ".backup",
|
|
4649
4870
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4650
4871
|
value: input.backup
|
|
4651
|
-
})) &&
|
|
4872
|
+
})) && _vo98(input.backup, _path + ".backup", _exceptionable) || _report(_exceptionable, {
|
|
4652
4873
|
path: _path + ".backup",
|
|
4653
4874
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4654
4875
|
value: input.backup
|
|
@@ -4656,12 +4877,12 @@ var validateCloudConfig = (() => {
|
|
|
4656
4877
|
path: _path + ".warmPool",
|
|
4657
4878
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4658
4879
|
value: input.warmPool
|
|
4659
|
-
})) &&
|
|
4880
|
+
})) && _vo99(input.warmPool, _path + ".warmPool", _exceptionable) || _report(_exceptionable, {
|
|
4660
4881
|
path: _path + ".warmPool",
|
|
4661
4882
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4662
4883
|
value: input.warmPool
|
|
4663
4884
|
})].every((flag) => flag);
|
|
4664
|
-
const
|
|
4885
|
+
const _vo96 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4665
4886
|
path: _path + ".enabled",
|
|
4666
4887
|
expected: "(boolean | undefined)",
|
|
4667
4888
|
value: input.enabled
|
|
@@ -4678,7 +4899,7 @@ var validateCloudConfig = (() => {
|
|
|
4678
4899
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
4679
4900
|
value: input.accessMode
|
|
4680
4901
|
})].every((flag) => flag);
|
|
4681
|
-
const
|
|
4902
|
+
const _vo97 = (input, _path, _exceptionable = true) => [void 0 === input.autoPause || "boolean" === typeof input.autoPause || _report(_exceptionable, {
|
|
4682
4903
|
path: _path + ".autoPause",
|
|
4683
4904
|
expected: "(boolean | undefined)",
|
|
4684
4905
|
value: input.autoPause
|
|
@@ -4699,7 +4920,7 @@ var validateCloudConfig = (() => {
|
|
|
4699
4920
|
expected: '("Delete" | "Retain" | undefined)',
|
|
4700
4921
|
value: input.shutdownPolicy
|
|
4701
4922
|
})].every((flag) => flag);
|
|
4702
|
-
const
|
|
4923
|
+
const _vo98 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4703
4924
|
path: _path + ".enabled",
|
|
4704
4925
|
expected: "(boolean | undefined)",
|
|
4705
4926
|
value: input.enabled
|
|
@@ -4720,7 +4941,7 @@ var validateCloudConfig = (() => {
|
|
|
4720
4941
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
4721
4942
|
value: input.retention
|
|
4722
4943
|
})].every((flag) => flag);
|
|
4723
|
-
const
|
|
4944
|
+
const _vo99 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4724
4945
|
path: _path + ".enabled",
|
|
4725
4946
|
expected: "(boolean | undefined)",
|
|
4726
4947
|
value: input.enabled
|
|
@@ -4737,7 +4958,40 @@ var validateCloudConfig = (() => {
|
|
|
4737
4958
|
expected: '("OnReplenish" | "Recreate" | undefined)',
|
|
4738
4959
|
value: input.updateStrategy
|
|
4739
4960
|
})].every((flag) => flag);
|
|
4740
|
-
const
|
|
4961
|
+
const _vo100 = (input, _path, _exceptionable = true) => [void 0 === input.nodeSelector || ("object" === typeof input.nodeSelector && null !== input.nodeSelector && false === Array.isArray(input.nodeSelector) || _report(_exceptionable, {
|
|
4962
|
+
path: _path + ".nodeSelector",
|
|
4963
|
+
expected: "(Record<string, string> | undefined)",
|
|
4964
|
+
value: input.nodeSelector
|
|
4965
|
+
})) && _vo2(input.nodeSelector, _path + ".nodeSelector", _exceptionable) || _report(_exceptionable, {
|
|
4966
|
+
path: _path + ".nodeSelector",
|
|
4967
|
+
expected: "(Record<string, string> | undefined)",
|
|
4968
|
+
value: input.nodeSelector
|
|
4969
|
+
}), void 0 === input.affinity || ("object" === typeof input.affinity && null !== input.affinity && false === Array.isArray(input.affinity) || _report(_exceptionable, {
|
|
4970
|
+
path: _path + ".affinity",
|
|
4971
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
4972
|
+
value: input.affinity
|
|
4973
|
+
})) && _vo5(input.affinity, _path + ".affinity", _exceptionable) || _report(_exceptionable, {
|
|
4974
|
+
path: _path + ".affinity",
|
|
4975
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
4976
|
+
value: input.affinity
|
|
4977
|
+
}), void 0 === input.tolerations || (Array.isArray(input.tolerations) || _report(_exceptionable, {
|
|
4978
|
+
path: _path + ".tolerations",
|
|
4979
|
+
expected: "(Array<Record<string, unknown>> | undefined)",
|
|
4980
|
+
value: input.tolerations
|
|
4981
|
+
})) && input.tolerations.map((elem, _index76) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
4982
|
+
path: _path + ".tolerations[" + _index76 + "]",
|
|
4983
|
+
expected: "Record<string, unknown>",
|
|
4984
|
+
value: elem
|
|
4985
|
+
})) && _vo5(elem, _path + ".tolerations[" + _index76 + "]", _exceptionable) || _report(_exceptionable, {
|
|
4986
|
+
path: _path + ".tolerations[" + _index76 + "]",
|
|
4987
|
+
expected: "Record<string, unknown>",
|
|
4988
|
+
value: elem
|
|
4989
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
4990
|
+
path: _path + ".tolerations",
|
|
4991
|
+
expected: "(Array<Record<string, unknown>> | undefined)",
|
|
4992
|
+
value: input.tolerations
|
|
4993
|
+
})].every((flag) => flag);
|
|
4994
|
+
const _vo101 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
4741
4995
|
path: _path + ".id",
|
|
4742
4996
|
expected: "string",
|
|
4743
4997
|
value: input.id
|
|
@@ -4765,7 +5019,7 @@ var validateCloudConfig = (() => {
|
|
|
4765
5019
|
path: _path + ".configuration",
|
|
4766
5020
|
expected: "AgentConfiguration",
|
|
4767
5021
|
value: input.configuration
|
|
4768
|
-
})) &&
|
|
5022
|
+
})) && _vo102(input.configuration, _path + ".configuration", _exceptionable) || _report(_exceptionable, {
|
|
4769
5023
|
path: _path + ".configuration",
|
|
4770
5024
|
expected: "AgentConfiguration",
|
|
4771
5025
|
value: input.configuration
|
|
@@ -4773,7 +5027,7 @@ var validateCloudConfig = (() => {
|
|
|
4773
5027
|
path: _path + ".resources",
|
|
4774
5028
|
expected: "(__type.o52 | undefined)",
|
|
4775
5029
|
value: input.resources
|
|
4776
|
-
})) &&
|
|
5030
|
+
})) && _vo103(input.resources, _path + ".resources", _exceptionable) || _report(_exceptionable, {
|
|
4777
5031
|
path: _path + ".resources",
|
|
4778
5032
|
expected: "(__type.o52 | undefined)",
|
|
4779
5033
|
value: input.resources
|
|
@@ -4789,7 +5043,7 @@ var validateCloudConfig = (() => {
|
|
|
4789
5043
|
path: _path + ".identity",
|
|
4790
5044
|
expected: "(AgentIdentity | undefined)",
|
|
4791
5045
|
value: input.identity
|
|
4792
|
-
})) &&
|
|
5046
|
+
})) && _vo105(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
4793
5047
|
path: _path + ".identity",
|
|
4794
5048
|
expected: "(AgentIdentity | undefined)",
|
|
4795
5049
|
value: input.identity
|
|
@@ -4797,7 +5051,7 @@ var validateCloudConfig = (() => {
|
|
|
4797
5051
|
path: _path + ".model",
|
|
4798
5052
|
expected: "(AgentModel | undefined)",
|
|
4799
5053
|
value: input.model
|
|
4800
|
-
})) &&
|
|
5054
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4801
5055
|
path: _path + ".model",
|
|
4802
5056
|
expected: "(AgentModel | undefined)",
|
|
4803
5057
|
value: input.model
|
|
@@ -4805,7 +5059,7 @@ var validateCloudConfig = (() => {
|
|
|
4805
5059
|
path: _path + ".compliance",
|
|
4806
5060
|
expected: "(AgentCompliance | undefined)",
|
|
4807
5061
|
value: input.compliance
|
|
4808
|
-
})) &&
|
|
5062
|
+
})) && _vo9(input.compliance, _path + ".compliance", _exceptionable) || _report(_exceptionable, {
|
|
4809
5063
|
path: _path + ".compliance",
|
|
4810
5064
|
expected: "(AgentCompliance | undefined)",
|
|
4811
5065
|
value: input.compliance
|
|
@@ -4813,12 +5067,12 @@ var validateCloudConfig = (() => {
|
|
|
4813
5067
|
path: _path + ".workflows",
|
|
4814
5068
|
expected: "(Array<AgentWorkflowDef> | undefined)",
|
|
4815
5069
|
value: input.workflows
|
|
4816
|
-
})) && input.workflows.map((elem,
|
|
4817
|
-
path: _path + ".workflows[" +
|
|
5070
|
+
})) && input.workflows.map((elem, _index77) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5071
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4818
5072
|
expected: "AgentWorkflowDef",
|
|
4819
5073
|
value: elem
|
|
4820
|
-
})) &&
|
|
4821
|
-
path: _path + ".workflows[" +
|
|
5074
|
+
})) && _vo106(elem, _path + ".workflows[" + _index77 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5075
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4822
5076
|
expected: "AgentWorkflowDef",
|
|
4823
5077
|
value: elem
|
|
4824
5078
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4829,12 +5083,12 @@ var validateCloudConfig = (() => {
|
|
|
4829
5083
|
path: _path + ".use",
|
|
4830
5084
|
expected: "(Array<UseEntry> | undefined)",
|
|
4831
5085
|
value: input.use
|
|
4832
|
-
})) && input.use.map((elem,
|
|
4833
|
-
path: _path + ".use[" +
|
|
5086
|
+
})) && input.use.map((elem, _index78) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5087
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4834
5088
|
expected: "UseEntry",
|
|
4835
5089
|
value: elem
|
|
4836
|
-
})) &&
|
|
4837
|
-
path: _path + ".use[" +
|
|
5090
|
+
})) && _vo10(elem, _path + ".use[" + _index78 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5091
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4838
5092
|
expected: "UseEntry",
|
|
4839
5093
|
value: elem
|
|
4840
5094
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4849,7 +5103,7 @@ var validateCloudConfig = (() => {
|
|
|
4849
5103
|
path: _path + ".source",
|
|
4850
5104
|
expected: "(AgentSource | undefined)",
|
|
4851
5105
|
value: input.source
|
|
4852
|
-
})) &&
|
|
5106
|
+
})) && _vo110(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
4853
5107
|
path: _path + ".source",
|
|
4854
5108
|
expected: "(AgentSource | undefined)",
|
|
4855
5109
|
value: input.source
|
|
@@ -4861,7 +5115,7 @@ var validateCloudConfig = (() => {
|
|
|
4861
5115
|
path: _path + ".permissions",
|
|
4862
5116
|
expected: "(AgentPermissions | undefined)",
|
|
4863
5117
|
value: input.permissions
|
|
4864
|
-
})) &&
|
|
5118
|
+
})) && _vo112(input.permissions, _path + ".permissions", _exceptionable) || _report(_exceptionable, {
|
|
4865
5119
|
path: _path + ".permissions",
|
|
4866
5120
|
expected: "(AgentPermissions | undefined)",
|
|
4867
5121
|
value: input.permissions
|
|
@@ -4869,7 +5123,7 @@ var validateCloudConfig = (() => {
|
|
|
4869
5123
|
path: _path + ".networking",
|
|
4870
5124
|
expected: "(AgentNetworking | undefined)",
|
|
4871
5125
|
value: input.networking
|
|
4872
|
-
})) &&
|
|
5126
|
+
})) && _vo114(input.networking, _path + ".networking", _exceptionable) || _report(_exceptionable, {
|
|
4873
5127
|
path: _path + ".networking",
|
|
4874
5128
|
expected: "(AgentNetworking | undefined)",
|
|
4875
5129
|
value: input.networking
|
|
@@ -4877,10 +5131,18 @@ var validateCloudConfig = (() => {
|
|
|
4877
5131
|
path: _path + ".sandbox",
|
|
4878
5132
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4879
5133
|
value: input.sandbox
|
|
4880
|
-
})) &&
|
|
5134
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4881
5135
|
path: _path + ".sandbox",
|
|
4882
5136
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4883
5137
|
value: input.sandbox
|
|
5138
|
+
}), void 0 === input.scheduling || ("object" === typeof input.scheduling && null !== input.scheduling && false === Array.isArray(input.scheduling) || _report(_exceptionable, {
|
|
5139
|
+
path: _path + ".scheduling",
|
|
5140
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
5141
|
+
value: input.scheduling
|
|
5142
|
+
})) && _vo100(input.scheduling, _path + ".scheduling", _exceptionable) || _report(_exceptionable, {
|
|
5143
|
+
path: _path + ".scheduling",
|
|
5144
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
5145
|
+
value: input.scheduling
|
|
4884
5146
|
}), void 0 === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
4885
5147
|
path: _path + ".version",
|
|
4886
5148
|
expected: "(string | undefined)",
|
|
@@ -4890,7 +5152,7 @@ var validateCloudConfig = (() => {
|
|
|
4890
5152
|
expected: "(string | undefined)",
|
|
4891
5153
|
value: input.changelog
|
|
4892
5154
|
})].every((flag) => flag);
|
|
4893
|
-
const
|
|
5155
|
+
const _vo102 = (input, _path, _exceptionable = true) => [void 0 === input["extends"] || "string" === typeof input["extends"] || _report(_exceptionable, {
|
|
4894
5156
|
path: _path + '["extends"]',
|
|
4895
5157
|
expected: "(string | undefined)",
|
|
4896
5158
|
value: input["extends"]
|
|
@@ -4898,7 +5160,7 @@ var validateCloudConfig = (() => {
|
|
|
4898
5160
|
path: _path + ".model",
|
|
4899
5161
|
expected: "(AgentModel | undefined)",
|
|
4900
5162
|
value: input.model
|
|
4901
|
-
})) &&
|
|
5163
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4902
5164
|
path: _path + ".model",
|
|
4903
5165
|
expected: "(AgentModel | undefined)",
|
|
4904
5166
|
value: input.model
|
|
@@ -4906,7 +5168,7 @@ var validateCloudConfig = (() => {
|
|
|
4906
5168
|
path: _path + ".openclaw",
|
|
4907
5169
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4908
5170
|
value: input.openclaw
|
|
4909
|
-
})) &&
|
|
5171
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
4910
5172
|
path: _path + ".openclaw",
|
|
4911
5173
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4912
5174
|
value: input.openclaw
|
|
@@ -4918,11 +5180,11 @@ var validateCloudConfig = (() => {
|
|
|
4918
5180
|
return true;
|
|
4919
5181
|
return true;
|
|
4920
5182
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4921
|
-
const
|
|
5183
|
+
const _vo103 = (input, _path, _exceptionable = true) => [void 0 === input.requests || ("object" === typeof input.requests && null !== input.requests && false === Array.isArray(input.requests) || _report(_exceptionable, {
|
|
4922
5184
|
path: _path + ".requests",
|
|
4923
5185
|
expected: "(K8sResources | undefined)",
|
|
4924
5186
|
value: input.requests
|
|
4925
|
-
})) &&
|
|
5187
|
+
})) && _vo104(input.requests, _path + ".requests", _exceptionable) || _report(_exceptionable, {
|
|
4926
5188
|
path: _path + ".requests",
|
|
4927
5189
|
expected: "(K8sResources | undefined)",
|
|
4928
5190
|
value: input.requests
|
|
@@ -4930,12 +5192,12 @@ var validateCloudConfig = (() => {
|
|
|
4930
5192
|
path: _path + ".limits",
|
|
4931
5193
|
expected: "(K8sResources | undefined)",
|
|
4932
5194
|
value: input.limits
|
|
4933
|
-
})) &&
|
|
5195
|
+
})) && _vo104(input.limits, _path + ".limits", _exceptionable) || _report(_exceptionable, {
|
|
4934
5196
|
path: _path + ".limits",
|
|
4935
5197
|
expected: "(K8sResources | undefined)",
|
|
4936
5198
|
value: input.limits
|
|
4937
5199
|
})].every((flag) => flag);
|
|
4938
|
-
const
|
|
5200
|
+
const _vo104 = (input, _path, _exceptionable = true) => [void 0 === input.cpu || "string" === typeof input.cpu || _report(_exceptionable, {
|
|
4939
5201
|
path: _path + ".cpu",
|
|
4940
5202
|
expected: "(string | undefined)",
|
|
4941
5203
|
value: input.cpu
|
|
@@ -4944,7 +5206,7 @@ var validateCloudConfig = (() => {
|
|
|
4944
5206
|
expected: "(string | undefined)",
|
|
4945
5207
|
value: input.memory
|
|
4946
5208
|
})].every((flag) => flag);
|
|
4947
|
-
const
|
|
5209
|
+
const _vo105 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
4948
5210
|
path: _path + ".name",
|
|
4949
5211
|
expected: "(string | undefined)",
|
|
4950
5212
|
value: input.name
|
|
@@ -4961,7 +5223,7 @@ var validateCloudConfig = (() => {
|
|
|
4961
5223
|
expected: "(string | undefined)",
|
|
4962
5224
|
value: input.systemPrompt
|
|
4963
5225
|
})].every((flag) => flag);
|
|
4964
|
-
const
|
|
5226
|
+
const _vo106 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
4965
5227
|
path: _path + ".name",
|
|
4966
5228
|
expected: "string",
|
|
4967
5229
|
value: input.name
|
|
@@ -4973,8 +5235,8 @@ var validateCloudConfig = (() => {
|
|
|
4973
5235
|
path: _path + ".triggers",
|
|
4974
5236
|
expected: "(Array<string> | undefined)",
|
|
4975
5237
|
value: input.triggers
|
|
4976
|
-
})) && input.triggers.map((elem,
|
|
4977
|
-
path: _path + ".triggers[" +
|
|
5238
|
+
})) && input.triggers.map((elem, _index79) => "string" === typeof elem || _report(_exceptionable, {
|
|
5239
|
+
path: _path + ".triggers[" + _index79 + "]",
|
|
4978
5240
|
expected: "string",
|
|
4979
5241
|
value: elem
|
|
4980
5242
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4989,7 +5251,7 @@ var validateCloudConfig = (() => {
|
|
|
4989
5251
|
path: _path + ".steps",
|
|
4990
5252
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4991
5253
|
value: input.steps
|
|
4992
|
-
})) &&
|
|
5254
|
+
})) && _vo107(input.steps, _path + ".steps", _exceptionable) || _report(_exceptionable, {
|
|
4993
5255
|
path: _path + ".steps",
|
|
4994
5256
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4995
5257
|
value: input.steps
|
|
@@ -4997,12 +5259,12 @@ var validateCloudConfig = (() => {
|
|
|
4997
5259
|
path: _path + ".errorHandling",
|
|
4998
5260
|
expected: "(__type.o53 | undefined)",
|
|
4999
5261
|
value: input.errorHandling
|
|
5000
|
-
})) &&
|
|
5262
|
+
})) && _vo109(input.errorHandling, _path + ".errorHandling", _exceptionable) || _report(_exceptionable, {
|
|
5001
5263
|
path: _path + ".errorHandling",
|
|
5002
5264
|
expected: "(__type.o53 | undefined)",
|
|
5003
5265
|
value: input.errorHandling
|
|
5004
5266
|
})].every((flag) => flag);
|
|
5005
|
-
const
|
|
5267
|
+
const _vo107 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5006
5268
|
const value = input[key];
|
|
5007
5269
|
if (void 0 === value)
|
|
5008
5270
|
return true;
|
|
@@ -5010,13 +5272,13 @@ var validateCloudConfig = (() => {
|
|
|
5010
5272
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5011
5273
|
expected: "AgentWorkflowStep",
|
|
5012
5274
|
value
|
|
5013
|
-
})) &&
|
|
5275
|
+
})) && _vo108(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
5014
5276
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5015
5277
|
expected: "AgentWorkflowStep",
|
|
5016
5278
|
value
|
|
5017
5279
|
});
|
|
5018
5280
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5019
|
-
const
|
|
5281
|
+
const _vo108 = (input, _path, _exceptionable = true) => [void 0 === input.skill || "string" === typeof input.skill || _report(_exceptionable, {
|
|
5020
5282
|
path: _path + ".skill",
|
|
5021
5283
|
expected: "(string | undefined)",
|
|
5022
5284
|
value: input.skill
|
|
@@ -5032,8 +5294,8 @@ var validateCloudConfig = (() => {
|
|
|
5032
5294
|
path: _path + ".dependsOn",
|
|
5033
5295
|
expected: "(Array<string> | undefined)",
|
|
5034
5296
|
value: input.dependsOn
|
|
5035
|
-
})) && input.dependsOn.map((elem,
|
|
5036
|
-
path: _path + ".dependsOn[" +
|
|
5297
|
+
})) && input.dependsOn.map((elem, _index80) => "string" === typeof elem || _report(_exceptionable, {
|
|
5298
|
+
path: _path + ".dependsOn[" + _index80 + "]",
|
|
5037
5299
|
expected: "string",
|
|
5038
5300
|
value: elem
|
|
5039
5301
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5056,8 +5318,8 @@ var validateCloudConfig = (() => {
|
|
|
5056
5318
|
path: _path + ".conditions",
|
|
5057
5319
|
expected: "(Array<string> | undefined)",
|
|
5058
5320
|
value: input.conditions
|
|
5059
|
-
})) && input.conditions.map((elem,
|
|
5060
|
-
path: _path + ".conditions[" +
|
|
5321
|
+
})) && input.conditions.map((elem, _index81) => "string" === typeof elem || _report(_exceptionable, {
|
|
5322
|
+
path: _path + ".conditions[" + _index81 + "]",
|
|
5061
5323
|
expected: "string",
|
|
5062
5324
|
value: elem
|
|
5063
5325
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5065,7 +5327,7 @@ var validateCloudConfig = (() => {
|
|
|
5065
5327
|
expected: "(Array<string> | undefined)",
|
|
5066
5328
|
value: input.conditions
|
|
5067
5329
|
})].every((flag) => flag);
|
|
5068
|
-
const
|
|
5330
|
+
const _vo109 = (input, _path, _exceptionable = true) => [void 0 === input.onFailure || "retry" === input.onFailure || "notify" === input.onFailure || "abort" === input.onFailure || _report(_exceptionable, {
|
|
5069
5331
|
path: _path + ".onFailure",
|
|
5070
5332
|
expected: '("abort" | "notify" | "retry" | undefined)',
|
|
5071
5333
|
value: input.onFailure
|
|
@@ -5082,11 +5344,11 @@ var validateCloudConfig = (() => {
|
|
|
5082
5344
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
5083
5345
|
value: input.maxRetries
|
|
5084
5346
|
})].every((flag) => flag);
|
|
5085
|
-
const
|
|
5347
|
+
const _vo110 = (input, _path, _exceptionable = true) => [void 0 === input.git || ("object" === typeof input.git && null !== input.git || _report(_exceptionable, {
|
|
5086
5348
|
path: _path + ".git",
|
|
5087
5349
|
expected: "(GitSource | undefined)",
|
|
5088
5350
|
value: input.git
|
|
5089
|
-
})) &&
|
|
5351
|
+
})) && _vo111(input.git, _path + ".git", _exceptionable) || _report(_exceptionable, {
|
|
5090
5352
|
path: _path + ".git",
|
|
5091
5353
|
expected: "(GitSource | undefined)",
|
|
5092
5354
|
value: input.git
|
|
@@ -5106,8 +5368,8 @@ var validateCloudConfig = (() => {
|
|
|
5106
5368
|
path: _path + ".include",
|
|
5107
5369
|
expected: "(Array<string> | undefined)",
|
|
5108
5370
|
value: input.include
|
|
5109
|
-
})) && input.include.map((elem,
|
|
5110
|
-
path: _path + ".include[" +
|
|
5371
|
+
})) && input.include.map((elem, _index82) => "string" === typeof elem || _report(_exceptionable, {
|
|
5372
|
+
path: _path + ".include[" + _index82 + "]",
|
|
5111
5373
|
expected: "string",
|
|
5112
5374
|
value: elem
|
|
5113
5375
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5123,7 +5385,7 @@ var validateCloudConfig = (() => {
|
|
|
5123
5385
|
expected: "(string | undefined)",
|
|
5124
5386
|
value: input.imageTag
|
|
5125
5387
|
})].every((flag) => flag);
|
|
5126
|
-
const
|
|
5388
|
+
const _vo111 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
5127
5389
|
path: _path + ".url",
|
|
5128
5390
|
expected: "string",
|
|
5129
5391
|
value: input.url
|
|
@@ -5152,7 +5414,7 @@ var validateCloudConfig = (() => {
|
|
|
5152
5414
|
expected: "(string | undefined)",
|
|
5153
5415
|
value: input.tokenSecret
|
|
5154
5416
|
})].every((flag) => flag);
|
|
5155
|
-
const
|
|
5417
|
+
const _vo112 = (input, _path, _exceptionable = true) => ["approve-reads" === input["default"] || "deny-all" === input["default"] || "always-allow" === input["default"] || "always-ask" === input["default"] || _report(_exceptionable, {
|
|
5156
5418
|
path: _path + '["default"]',
|
|
5157
5419
|
expected: '("always-allow" | "always-ask" | "approve-reads" | "deny-all")',
|
|
5158
5420
|
value: input["default"]
|
|
@@ -5160,7 +5422,7 @@ var validateCloudConfig = (() => {
|
|
|
5160
5422
|
path: _path + ".tools",
|
|
5161
5423
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5162
5424
|
value: input.tools
|
|
5163
|
-
})) &&
|
|
5425
|
+
})) && _vo113(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
5164
5426
|
path: _path + ".tools",
|
|
5165
5427
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5166
5428
|
value: input.tools
|
|
@@ -5169,7 +5431,7 @@ var validateCloudConfig = (() => {
|
|
|
5169
5431
|
expected: '("deny" | "fail" | undefined)',
|
|
5170
5432
|
value: input.nonInteractive
|
|
5171
5433
|
})].every((flag) => flag);
|
|
5172
|
-
const
|
|
5434
|
+
const _vo113 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5173
5435
|
const value = input[key];
|
|
5174
5436
|
if (void 0 === value)
|
|
5175
5437
|
return true;
|
|
@@ -5179,7 +5441,7 @@ var validateCloudConfig = (() => {
|
|
|
5179
5441
|
value
|
|
5180
5442
|
});
|
|
5181
5443
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5182
|
-
const
|
|
5444
|
+
const _vo114 = (input, _path, _exceptionable = true) => ["deny-all" === input.type || "unrestricted" === input.type || "limited" === input.type || _report(_exceptionable, {
|
|
5183
5445
|
path: _path + ".type",
|
|
5184
5446
|
expected: '("deny-all" | "limited" | "unrestricted")',
|
|
5185
5447
|
value: input.type
|
|
@@ -5187,8 +5449,8 @@ var validateCloudConfig = (() => {
|
|
|
5187
5449
|
path: _path + ".allowedHosts",
|
|
5188
5450
|
expected: "(Array<string> | undefined)",
|
|
5189
5451
|
value: input.allowedHosts
|
|
5190
|
-
})) && input.allowedHosts.map((elem,
|
|
5191
|
-
path: _path + ".allowedHosts[" +
|
|
5452
|
+
})) && input.allowedHosts.map((elem, _index83) => "string" === typeof elem || _report(_exceptionable, {
|
|
5453
|
+
path: _path + ".allowedHosts[" + _index83 + "]",
|
|
5192
5454
|
expected: "string",
|
|
5193
5455
|
value: elem
|
|
5194
5456
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5204,7 +5466,7 @@ var validateCloudConfig = (() => {
|
|
|
5204
5466
|
expected: "(boolean | undefined)",
|
|
5205
5467
|
value: input.allowPackageManagers
|
|
5206
5468
|
})].every((flag) => flag);
|
|
5207
|
-
const
|
|
5469
|
+
const _vo115 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
5208
5470
|
path: _path + ".enabled",
|
|
5209
5471
|
expected: "boolean",
|
|
5210
5472
|
value: input.enabled
|
|
@@ -5225,7 +5487,7 @@ var validateCloudConfig = (() => {
|
|
|
5225
5487
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
5226
5488
|
value: input.accessMode
|
|
5227
5489
|
})].every((flag) => flag);
|
|
5228
|
-
const
|
|
5490
|
+
const _vo116 = (input, _path, _exceptionable = true) => [void 0 === input.installDir || "string" === typeof input.installDir || _report(_exceptionable, {
|
|
5229
5491
|
path: _path + ".installDir",
|
|
5230
5492
|
expected: "(string | undefined)",
|
|
5231
5493
|
value: input.installDir
|
|
@@ -5233,12 +5495,12 @@ var validateCloudConfig = (() => {
|
|
|
5233
5495
|
path: _path + ".entries",
|
|
5234
5496
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5235
5497
|
value: input.entries
|
|
5236
|
-
})) && input.entries.map((elem,
|
|
5237
|
-
path: _path + ".entries[" +
|
|
5498
|
+
})) && input.entries.map((elem, _index84) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5499
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5238
5500
|
expected: "CloudSkillEntry",
|
|
5239
5501
|
value: elem
|
|
5240
|
-
})) &&
|
|
5241
|
-
path: _path + ".entries[" +
|
|
5502
|
+
})) && _vo117(elem, _path + ".entries[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5503
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5242
5504
|
expected: "CloudSkillEntry",
|
|
5243
5505
|
value: elem
|
|
5244
5506
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5246,7 +5508,7 @@ var validateCloudConfig = (() => {
|
|
|
5246
5508
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5247
5509
|
value: input.entries
|
|
5248
5510
|
})].every((flag) => flag);
|
|
5249
|
-
const
|
|
5511
|
+
const _vo117 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
5250
5512
|
path: _path + ".name",
|
|
5251
5513
|
expected: "string",
|
|
5252
5514
|
value: input.name
|
|
@@ -5781,6 +6043,7 @@ export {
|
|
|
5781
6043
|
normalizeDeploymentRuntimeContext,
|
|
5782
6044
|
runtimeContextEnv,
|
|
5783
6045
|
collectPluginBuildEnvVars,
|
|
6046
|
+
collectPluginRuntimeEnvOmitKeys,
|
|
5784
6047
|
collectPluginRuntimeExtensions,
|
|
5785
6048
|
buildOpenClawConfig,
|
|
5786
6049
|
getRuntime,
|