@shadowob/cloud 1.1.6 → 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-ULOJLXQV.js → chunk-3CT6RQNM.js} +766 -482
- package/dist/{chunk-SIDBK5SZ.js → chunk-4YO3NA26.js} +1 -1
- package/dist/{chunk-RECNVWMT.js → chunk-6V7MW4HU.js} +17 -3
- package/dist/{chunk-2FWJSE6Z.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-FSW4TNHN.js → chunk-P5Y6F2NH.js} +766 -482
- package/dist/{chunk-EEFMJYKB.js → chunk-PSK2SYZ3.js} +2 -1
- package/dist/{chunk-HRTBOZ7O.js → chunk-PYJRFKPN.js} +1 -1
- package/dist/{chunk-JY2HTT7Q.js → chunk-RMDY3W4V.js} +6 -0
- package/dist/{chunk-I3NRNCDR.js → chunk-X2SREECR.js} +6 -6
- package/dist/{chunk-XFJX4NWN.js → chunk-X5VOIA72.js} +6 -6
- package/dist/{chunk-CTNUKOQE.js → chunk-Y5BJ3EW2.js} +6 -0
- package/dist/{chunk-IXN3FU5J.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-SCAAQ23X.js → dashboard.command-BRPZCZER.js} +1 -1
- package/dist/{dashboard.command-H5DIGLUR.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-WGKN3GC6.js → init.command-C7UKPK2Y.js} +3 -3
- package/dist/{init.command-775GLXTC.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-2AHJI665.js → serve.command-G5RVQFUD.js} +3 -3
- package/dist/{serve.command-Q46LHQG6.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 +33 -22
- 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()] } : {},
|
|
@@ -699,10 +736,11 @@ var HOME_DIR = RUNNER_HOME_DIR;
|
|
|
699
736
|
var WORKSPACE_DIR = "/workspace";
|
|
700
737
|
var OPENCLAW_SKILLS_DIR = `${HOME_DIR}/.openclaw/skills`;
|
|
701
738
|
var CC_CONNECT_CONFIG_PATH = `${HOME_DIR}/.cc-connect/config.toml`;
|
|
739
|
+
var SHADOWOB_CLI_CONFIG_PATH = `${HOME_DIR}/.shadowob/shadowob.config.json`;
|
|
702
740
|
var SHADOW_SLASH_COMMANDS_PATH = `${SHADOWOB_CONFIG_MOUNT_PATH}/slash-commands.json`;
|
|
703
741
|
function hasRuntimeExtensions(extension) {
|
|
704
742
|
return Boolean(
|
|
705
|
-
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
|
|
706
744
|
);
|
|
707
745
|
}
|
|
708
746
|
function runtimeExtensionsForKind(extension, runtimeKind) {
|
|
@@ -753,7 +791,8 @@ function shadowBindings(runtimeExtensions) {
|
|
|
753
791
|
buddyName: account.buddyName
|
|
754
792
|
}));
|
|
755
793
|
}
|
|
756
|
-
function shadowPlatformOptions(shadow) {
|
|
794
|
+
function shadowPlatformOptions(shadow, options) {
|
|
795
|
+
const channelEnvKeys = [...new Set(options?.channelEnvKeys ?? [])].filter(Boolean);
|
|
757
796
|
return {
|
|
758
797
|
token: envPlaceholder(shadow.tokenEnvKey),
|
|
759
798
|
server_url: envPlaceholder(shadow.serverUrlEnvKey),
|
|
@@ -761,7 +800,8 @@ function shadowPlatformOptions(shadow) {
|
|
|
761
800
|
listen_dms: true,
|
|
762
801
|
share_session_in_channel: false,
|
|
763
802
|
progress_style: "compact",
|
|
764
|
-
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)) } : {}
|
|
765
805
|
};
|
|
766
806
|
}
|
|
767
807
|
function buildIdentityWorkspaceFiles(agent) {
|
|
@@ -827,6 +867,80 @@ function addShadowobSkill(files, runtimeKind, runtimeId) {
|
|
|
827
867
|
files[`${HOME_DIR}/.hermes/skills/shadowob/SKILL.md`] = skill;
|
|
828
868
|
}
|
|
829
869
|
}
|
|
870
|
+
function addShadowobCliAuth(files, runtimeExtensions) {
|
|
871
|
+
const bindings = shadowBindings(runtimeExtensions);
|
|
872
|
+
const profiles = {};
|
|
873
|
+
for (const [index, binding] of bindings.entries()) {
|
|
874
|
+
const profileName = binding.buddyId?.trim() || (index === 0 ? "default" : `shadow-${index + 1}`);
|
|
875
|
+
profiles[profileName] = {
|
|
876
|
+
serverUrl: envPlaceholder(binding.serverUrlEnvKey),
|
|
877
|
+
token: envPlaceholder(binding.tokenEnvKey)
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
const currentProfile = Object.keys(profiles)[0] ?? "default";
|
|
881
|
+
files[SHADOWOB_CLI_CONFIG_PATH] = json({
|
|
882
|
+
profiles,
|
|
883
|
+
currentProfile
|
|
884
|
+
});
|
|
885
|
+
}
|
|
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
|
+
}
|
|
830
944
|
|
|
831
945
|
// src/runtimes/slash-commands/openclaw.ts
|
|
832
946
|
var OPENCLAW_SLASH_COMMANDS_SOURCE = "https://docs.openclaw.ai/tools/slash-commands";
|
|
@@ -923,6 +1037,14 @@ var openclawAdapter = {
|
|
|
923
1037
|
[SHADOW_SLASH_COMMANDS_PATH]: json(openClawSlashCommands)
|
|
924
1038
|
};
|
|
925
1039
|
addShadowobSkill(runtimeFiles, "openclaw", context.agent.runtime);
|
|
1040
|
+
addShadowobCliAuth(runtimeFiles, context.runtimeExtensions);
|
|
1041
|
+
appendTemplateRoutineFiles(
|
|
1042
|
+
runtimeFiles,
|
|
1043
|
+
context.config,
|
|
1044
|
+
context.agent,
|
|
1045
|
+
"openclaw",
|
|
1046
|
+
context.runtimeExtensions
|
|
1047
|
+
);
|
|
926
1048
|
const configData = {
|
|
927
1049
|
"config.json": JSON.stringify(openclawConfig, null, 2),
|
|
928
1050
|
"runtime-files.json": json(runtimeFiles),
|
|
@@ -953,6 +1075,11 @@ function buildCcConnectConfig(options) {
|
|
|
953
1075
|
const effort = reasoningEffort(agent);
|
|
954
1076
|
if (model) baseAgentOptions.model = model;
|
|
955
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
|
+
];
|
|
956
1083
|
const root = {
|
|
957
1084
|
data_dir: `${HOME_DIR}/.cc-connect`,
|
|
958
1085
|
language: "zh",
|
|
@@ -970,7 +1097,7 @@ function buildCcConnectConfig(options) {
|
|
|
970
1097
|
},
|
|
971
1098
|
platforms: options.shadows.map((shadow) => ({
|
|
972
1099
|
type: "shadowob",
|
|
973
|
-
options: shadowPlatformOptions(shadow)
|
|
1100
|
+
options: shadowPlatformOptions(shadow, { channelEnvKeys: routineChannelEnvKeys })
|
|
974
1101
|
}))
|
|
975
1102
|
}
|
|
976
1103
|
]
|
|
@@ -986,6 +1113,8 @@ function buildCcConnectRuntimeFiles(options) {
|
|
|
986
1113
|
...options.nativeFiles ?? {}
|
|
987
1114
|
};
|
|
988
1115
|
addShadowobSkill(files, "cc-connect", agent.runtime);
|
|
1116
|
+
addShadowobCliAuth(files, options.runtimeExtensions);
|
|
1117
|
+
appendTemplateRoutineFiles(files, options.config, agent, "cc-connect", options.runtimeExtensions);
|
|
989
1118
|
return files;
|
|
990
1119
|
}
|
|
991
1120
|
function buildCcConnectPackage(context, options) {
|
|
@@ -995,11 +1124,14 @@ function buildCcConnectPackage(context, options) {
|
|
|
995
1124
|
agent: context.agent,
|
|
996
1125
|
agentType: options.agentType,
|
|
997
1126
|
shadows,
|
|
1127
|
+
routineDeliveries: nativeRuntimeExtensions.routineDeliveries,
|
|
998
1128
|
agentOptions: options.agentOptions?.(context.agent)
|
|
999
1129
|
});
|
|
1000
1130
|
const files = buildCcConnectRuntimeFiles({
|
|
1001
1131
|
agent: context.agent,
|
|
1132
|
+
config: context.config,
|
|
1002
1133
|
ccConnectConfig,
|
|
1134
|
+
runtimeExtensions: context.runtimeExtensions,
|
|
1003
1135
|
nativeFiles: options.nativeFiles?.(context),
|
|
1004
1136
|
shadowSlashCommands: options.shadowSlashCommands
|
|
1005
1137
|
});
|
|
@@ -1641,6 +1773,13 @@ function readHermesPluginFile(cwd, file, fallback) {
|
|
|
1641
1773
|
function buildHermesConfig(options) {
|
|
1642
1774
|
const { agent, shadow } = options;
|
|
1643
1775
|
const mcpServers = hermesMcpServers(options.runtimeExtensions);
|
|
1776
|
+
const homeChannelEnvKey = firstRoutineDeliveryTargetValue(
|
|
1777
|
+
options.config,
|
|
1778
|
+
agent,
|
|
1779
|
+
options.runtimeExtensions,
|
|
1780
|
+
"shadowob",
|
|
1781
|
+
"channelEnvKey"
|
|
1782
|
+
);
|
|
1644
1783
|
return stringifyYaml({
|
|
1645
1784
|
approvals: {
|
|
1646
1785
|
mode: nativePermissionMode(agent) === "allow" ? "manual" : "manual"
|
|
@@ -1659,6 +1798,7 @@ function buildHermesConfig(options) {
|
|
|
1659
1798
|
rest_only: false,
|
|
1660
1799
|
catchup_minutes: 0,
|
|
1661
1800
|
download_media: true,
|
|
1801
|
+
...typeof homeChannelEnvKey === "string" ? { home_channel: envPlaceholder(homeChannelEnvKey) } : {},
|
|
1662
1802
|
slash_commands: hermesSlashCommands
|
|
1663
1803
|
}
|
|
1664
1804
|
}
|
|
@@ -1678,6 +1818,7 @@ var hermesAdapter = {
|
|
|
1678
1818
|
...buildIdentityWorkspaceFiles(context.agent),
|
|
1679
1819
|
[`${HOME_DIR}/.hermes/config.yaml`]: buildHermesConfig({
|
|
1680
1820
|
agent: context.agent,
|
|
1821
|
+
config: context.config,
|
|
1681
1822
|
shadow,
|
|
1682
1823
|
runtimeExtensions: nativeRuntimeExtensions
|
|
1683
1824
|
}),
|
|
@@ -1691,6 +1832,14 @@ var hermesAdapter = {
|
|
|
1691
1832
|
[SHADOW_SLASH_COMMANDS_PATH]: json(hermesSlashCommands)
|
|
1692
1833
|
};
|
|
1693
1834
|
addShadowobSkill(files, "hermes", "hermes");
|
|
1835
|
+
addShadowobCliAuth(files, context.runtimeExtensions);
|
|
1836
|
+
appendTemplateRoutineFiles(
|
|
1837
|
+
files,
|
|
1838
|
+
context.config,
|
|
1839
|
+
context.agent,
|
|
1840
|
+
"hermes",
|
|
1841
|
+
nativeRuntimeExtensions
|
|
1842
|
+
);
|
|
1694
1843
|
const pluginRoot = `${HOME_DIR}/.hermes/plugins/shadowob`;
|
|
1695
1844
|
files[`${pluginRoot}/plugin.yaml`] = readHermesPluginFile(
|
|
1696
1845
|
context.cwd,
|
|
@@ -1752,7 +1901,7 @@ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_cr
|
|
|
1752
1901
|
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
1753
1902
|
import typia from "typia";
|
|
1754
1903
|
var validateCloudConfig = (() => {
|
|
1755
|
-
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));
|
|
1756
1905
|
const _io1 = (input) => Object.keys(input).every((key) => {
|
|
1757
1906
|
const value = input[key];
|
|
1758
1907
|
if (void 0 === value)
|
|
@@ -1765,24 +1914,26 @@ var validateCloudConfig = (() => {
|
|
|
1765
1914
|
return true;
|
|
1766
1915
|
return "string" === typeof value;
|
|
1767
1916
|
});
|
|
1768
|
-
const _io3 = (input) => "string" === typeof input.
|
|
1769
|
-
const _io4 = (input) => "string" === typeof input.
|
|
1770
|
-
const _io5 = (input) =>
|
|
1771
|
-
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);
|
|
1772
|
-
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));
|
|
1773
|
-
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) => {
|
|
1774
1920
|
const value = input[key];
|
|
1775
1921
|
if (void 0 === value)
|
|
1776
1922
|
return true;
|
|
1777
1923
|
return true;
|
|
1778
1924
|
});
|
|
1779
|
-
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) => {
|
|
1780
1931
|
const value = input[key];
|
|
1781
1932
|
if (void 0 === value)
|
|
1782
1933
|
return true;
|
|
1783
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1934
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io12(value);
|
|
1784
1935
|
});
|
|
1785
|
-
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) => {
|
|
1786
1937
|
if (["enabled", "config", "agents", "secrets"].some((prop) => key === prop))
|
|
1787
1938
|
return true;
|
|
1788
1939
|
const value = input[key];
|
|
@@ -1790,19 +1941,19 @@ var validateCloudConfig = (() => {
|
|
|
1790
1941
|
return true;
|
|
1791
1942
|
return true;
|
|
1792
1943
|
});
|
|
1793
|
-
const
|
|
1944
|
+
const _io13 = (input) => Object.keys(input).every((key) => {
|
|
1794
1945
|
const value = input[key];
|
|
1795
1946
|
if (void 0 === value)
|
|
1796
1947
|
return true;
|
|
1797
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1948
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io14(value);
|
|
1798
1949
|
});
|
|
1799
|
-
const
|
|
1800
|
-
const
|
|
1801
|
-
const
|
|
1802
|
-
const
|
|
1803
|
-
const
|
|
1804
|
-
const
|
|
1805
|
-
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) => {
|
|
1806
1957
|
if (["id", "extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1807
1958
|
return true;
|
|
1808
1959
|
const value = input[key];
|
|
@@ -1810,7 +1961,7 @@ var validateCloudConfig = (() => {
|
|
|
1810
1961
|
return true;
|
|
1811
1962
|
return true;
|
|
1812
1963
|
});
|
|
1813
|
-
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) => {
|
|
1814
1965
|
if (["agents", "bindings", "channels", "acp", "session", "messages", "tools", "models", "plugins", "skills", "gateway", "logging", "env"].some((prop) => key === prop))
|
|
1815
1966
|
return true;
|
|
1816
1967
|
const value = input[key];
|
|
@@ -1818,32 +1969,32 @@ var validateCloudConfig = (() => {
|
|
|
1818
1969
|
return true;
|
|
1819
1970
|
return true;
|
|
1820
1971
|
});
|
|
1821
|
-
const
|
|
1822
|
-
const
|
|
1823
|
-
const
|
|
1824
|
-
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) => {
|
|
1825
1976
|
const value = input[key];
|
|
1826
1977
|
if (void 0 === value)
|
|
1827
1978
|
return true;
|
|
1828
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1979
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io26(value);
|
|
1829
1980
|
});
|
|
1830
|
-
const
|
|
1831
|
-
const
|
|
1832
|
-
const
|
|
1833
|
-
const
|
|
1834
|
-
const
|
|
1835
|
-
const
|
|
1836
|
-
const
|
|
1837
|
-
const
|
|
1838
|
-
const
|
|
1839
|
-
const
|
|
1840
|
-
const
|
|
1841
|
-
const
|
|
1842
|
-
const
|
|
1843
|
-
const
|
|
1844
|
-
const
|
|
1845
|
-
const
|
|
1846
|
-
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) => {
|
|
1847
1998
|
if (["defaults", "modelByChannel", "telegram", "discord", "slack", "whatsapp", "shadowob"].some((prop) => key === prop))
|
|
1848
1999
|
return true;
|
|
1849
2000
|
const value = input[key];
|
|
@@ -1851,10 +2002,10 @@ var validateCloudConfig = (() => {
|
|
|
1851
2002
|
return true;
|
|
1852
2003
|
return true;
|
|
1853
2004
|
});
|
|
1854
|
-
const
|
|
1855
|
-
const
|
|
1856
|
-
const
|
|
1857
|
-
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) => {
|
|
1858
2009
|
if (["inlineButtons", "interactive", "forms"].some((prop) => key === prop))
|
|
1859
2010
|
return true;
|
|
1860
2011
|
const value = input[key];
|
|
@@ -1862,101 +2013,102 @@ var validateCloudConfig = (() => {
|
|
|
1862
2013
|
return true;
|
|
1863
2014
|
return true;
|
|
1864
2015
|
});
|
|
1865
|
-
const
|
|
1866
|
-
const
|
|
1867
|
-
const
|
|
1868
|
-
const
|
|
1869
|
-
const
|
|
1870
|
-
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) => {
|
|
1871
2022
|
const value = input[key];
|
|
1872
2023
|
if (void 0 === value)
|
|
1873
2024
|
return true;
|
|
1874
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2025
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io53(value);
|
|
1875
2026
|
});
|
|
1876
|
-
const
|
|
1877
|
-
const
|
|
1878
|
-
const
|
|
1879
|
-
const
|
|
1880
|
-
const
|
|
1881
|
-
const
|
|
1882
|
-
const
|
|
1883
|
-
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) => {
|
|
1884
2035
|
const value = input[key];
|
|
1885
2036
|
if (void 0 === value)
|
|
1886
2037
|
return true;
|
|
1887
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2038
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io61(value);
|
|
1888
2039
|
});
|
|
1889
|
-
const
|
|
1890
|
-
const
|
|
1891
|
-
const
|
|
1892
|
-
const
|
|
1893
|
-
const
|
|
1894
|
-
const
|
|
1895
|
-
const
|
|
1896
|
-
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) => {
|
|
1897
2048
|
const value = input[key];
|
|
1898
2049
|
if (void 0 === value)
|
|
1899
2050
|
return true;
|
|
1900
2051
|
return Array.isArray(value) && value.every((elem) => "string" === typeof elem);
|
|
1901
2052
|
});
|
|
1902
|
-
const
|
|
1903
|
-
const
|
|
1904
|
-
const
|
|
1905
|
-
const
|
|
1906
|
-
const
|
|
1907
|
-
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) => {
|
|
1908
2059
|
const value = input[key];
|
|
1909
2060
|
if (void 0 === value)
|
|
1910
2061
|
return true;
|
|
1911
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2062
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io16(value);
|
|
1912
2063
|
});
|
|
1913
|
-
const
|
|
1914
|
-
const
|
|
1915
|
-
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) => {
|
|
1916
2067
|
const value = input[key];
|
|
1917
2068
|
if (void 0 === value)
|
|
1918
2069
|
return true;
|
|
1919
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2070
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io78(value);
|
|
1920
2071
|
});
|
|
1921
|
-
const
|
|
1922
|
-
const
|
|
1923
|
-
const
|
|
1924
|
-
const
|
|
1925
|
-
const
|
|
1926
|
-
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) => {
|
|
1927
2078
|
const value = input[key];
|
|
1928
2079
|
if (void 0 === value)
|
|
1929
2080
|
return true;
|
|
1930
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2081
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io84(value);
|
|
1931
2082
|
});
|
|
1932
|
-
const
|
|
1933
|
-
const
|
|
1934
|
-
const
|
|
1935
|
-
const
|
|
1936
|
-
const
|
|
1937
|
-
const
|
|
1938
|
-
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) => {
|
|
1939
2090
|
const value = input[key];
|
|
1940
2091
|
if (void 0 === value)
|
|
1941
2092
|
return true;
|
|
1942
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2093
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io91(value);
|
|
1943
2094
|
});
|
|
1944
|
-
const
|
|
1945
|
-
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) => {
|
|
1946
2097
|
const value = input[key];
|
|
1947
2098
|
if (void 0 === value)
|
|
1948
2099
|
return true;
|
|
1949
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2100
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io93(value);
|
|
1950
2101
|
});
|
|
1951
|
-
const
|
|
1952
|
-
const
|
|
1953
|
-
const
|
|
1954
|
-
const
|
|
1955
|
-
const
|
|
1956
|
-
const
|
|
1957
|
-
const
|
|
1958
|
-
const
|
|
1959
|
-
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) => {
|
|
1960
2112
|
if (["extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1961
2113
|
return true;
|
|
1962
2114
|
const value = input[key];
|
|
@@ -1964,31 +2116,31 @@ var validateCloudConfig = (() => {
|
|
|
1964
2116
|
return true;
|
|
1965
2117
|
return true;
|
|
1966
2118
|
});
|
|
1967
|
-
const
|
|
1968
|
-
const
|
|
1969
|
-
const
|
|
1970
|
-
const
|
|
1971
|
-
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) => {
|
|
1972
2124
|
const value = input[key];
|
|
1973
2125
|
if (void 0 === value)
|
|
1974
2126
|
return true;
|
|
1975
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2127
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io108(value);
|
|
1976
2128
|
});
|
|
1977
|
-
const
|
|
1978
|
-
const
|
|
1979
|
-
const
|
|
1980
|
-
const
|
|
1981
|
-
const
|
|
1982
|
-
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) => {
|
|
1983
2135
|
const value = input[key];
|
|
1984
2136
|
if (void 0 === value)
|
|
1985
2137
|
return true;
|
|
1986
2138
|
return "approve-reads" === value || "deny-all" === value || "always-allow" === value || "always-ask" === value;
|
|
1987
2139
|
});
|
|
1988
|
-
const
|
|
1989
|
-
const
|
|
1990
|
-
const
|
|
1991
|
-
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);
|
|
1992
2144
|
const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.version || _report(_exceptionable, {
|
|
1993
2145
|
path: _path + ".version",
|
|
1994
2146
|
expected: "string",
|
|
@@ -2021,11 +2173,27 @@ var validateCloudConfig = (() => {
|
|
|
2021
2173
|
path: _path + ".i18n",
|
|
2022
2174
|
expected: "(Record<string, Record<string, string>> | undefined)",
|
|
2023
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
|
|
2024
2192
|
}), void 0 === input.team || ("object" === typeof input.team && null !== input.team || _report(_exceptionable, {
|
|
2025
2193
|
path: _path + ".team",
|
|
2026
2194
|
expected: "(TeamConfig | undefined)",
|
|
2027
2195
|
value: input.team
|
|
2028
|
-
})) &&
|
|
2196
|
+
})) && _vo6(input.team, _path + ".team", _exceptionable) || _report(_exceptionable, {
|
|
2029
2197
|
path: _path + ".team",
|
|
2030
2198
|
expected: "(TeamConfig | undefined)",
|
|
2031
2199
|
value: input.team
|
|
@@ -2033,12 +2201,12 @@ var validateCloudConfig = (() => {
|
|
|
2033
2201
|
path: _path + ".use",
|
|
2034
2202
|
expected: "(Array<UseEntry> | undefined)",
|
|
2035
2203
|
value: input.use
|
|
2036
|
-
})) && input.use.map((elem,
|
|
2037
|
-
path: _path + ".use[" +
|
|
2204
|
+
})) && input.use.map((elem, _index44) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2205
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2038
2206
|
expected: "UseEntry",
|
|
2039
2207
|
value: elem
|
|
2040
|
-
})) &&
|
|
2041
|
-
path: _path + ".use[" +
|
|
2208
|
+
})) && _vo10(elem, _path + ".use[" + _index44 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2209
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2042
2210
|
expected: "UseEntry",
|
|
2043
2211
|
value: elem
|
|
2044
2212
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2049,7 +2217,7 @@ var validateCloudConfig = (() => {
|
|
|
2049
2217
|
path: _path + ".plugins",
|
|
2050
2218
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2051
2219
|
value: input.plugins
|
|
2052
|
-
})) &&
|
|
2220
|
+
})) && _vo11(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2053
2221
|
path: _path + ".plugins",
|
|
2054
2222
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2055
2223
|
value: input.plugins
|
|
@@ -2057,7 +2225,7 @@ var validateCloudConfig = (() => {
|
|
|
2057
2225
|
path: _path + ".registry",
|
|
2058
2226
|
expected: "(RegistryConfig | undefined)",
|
|
2059
2227
|
value: input.registry
|
|
2060
|
-
})) &&
|
|
2228
|
+
})) && _vo15(input.registry, _path + ".registry", _exceptionable) || _report(_exceptionable, {
|
|
2061
2229
|
path: _path + ".registry",
|
|
2062
2230
|
expected: "(RegistryConfig | undefined)",
|
|
2063
2231
|
value: input.registry
|
|
@@ -2065,7 +2233,7 @@ var validateCloudConfig = (() => {
|
|
|
2065
2233
|
path: _path + ".deployments",
|
|
2066
2234
|
expected: "(DeploymentsConfig | undefined)",
|
|
2067
2235
|
value: input.deployments
|
|
2068
|
-
})) &&
|
|
2236
|
+
})) && _vo94(input.deployments, _path + ".deployments", _exceptionable) || _report(_exceptionable, {
|
|
2069
2237
|
path: _path + ".deployments",
|
|
2070
2238
|
expected: "(DeploymentsConfig | undefined)",
|
|
2071
2239
|
value: input.deployments
|
|
@@ -2073,7 +2241,7 @@ var validateCloudConfig = (() => {
|
|
|
2073
2241
|
path: _path + ".workspace",
|
|
2074
2242
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2075
2243
|
value: input.workspace
|
|
2076
|
-
})) &&
|
|
2244
|
+
})) && _vo115(input.workspace, _path + ".workspace", _exceptionable) || _report(_exceptionable, {
|
|
2077
2245
|
path: _path + ".workspace",
|
|
2078
2246
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2079
2247
|
value: input.workspace
|
|
@@ -2081,7 +2249,7 @@ var validateCloudConfig = (() => {
|
|
|
2081
2249
|
path: _path + ".skills",
|
|
2082
2250
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2083
2251
|
value: input.skills
|
|
2084
|
-
})) &&
|
|
2252
|
+
})) && _vo116(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2085
2253
|
path: _path + ".skills",
|
|
2086
2254
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2087
2255
|
value: input.skills
|
|
@@ -2110,7 +2278,75 @@ var validateCloudConfig = (() => {
|
|
|
2110
2278
|
value
|
|
2111
2279
|
});
|
|
2112
2280
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2113
|
-
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, {
|
|
2114
2350
|
path: _path + ".name",
|
|
2115
2351
|
expected: "string",
|
|
2116
2352
|
value: input.name
|
|
@@ -2122,7 +2358,7 @@ var validateCloudConfig = (() => {
|
|
|
2122
2358
|
path: _path + ".defaultModel",
|
|
2123
2359
|
expected: "(AgentModel | undefined)",
|
|
2124
2360
|
value: input.defaultModel
|
|
2125
|
-
})) &&
|
|
2361
|
+
})) && _vo7(input.defaultModel, _path + ".defaultModel", _exceptionable) || _report(_exceptionable, {
|
|
2126
2362
|
path: _path + ".defaultModel",
|
|
2127
2363
|
expected: "(AgentModel | undefined)",
|
|
2128
2364
|
value: input.defaultModel
|
|
@@ -2130,12 +2366,12 @@ var validateCloudConfig = (() => {
|
|
|
2130
2366
|
path: _path + ".defaultCompliance",
|
|
2131
2367
|
expected: "(AgentCompliance | undefined)",
|
|
2132
2368
|
value: input.defaultCompliance
|
|
2133
|
-
})) &&
|
|
2369
|
+
})) && _vo9(input.defaultCompliance, _path + ".defaultCompliance", _exceptionable) || _report(_exceptionable, {
|
|
2134
2370
|
path: _path + ".defaultCompliance",
|
|
2135
2371
|
expected: "(AgentCompliance | undefined)",
|
|
2136
2372
|
value: input.defaultCompliance
|
|
2137
2373
|
})].every((flag) => flag);
|
|
2138
|
-
const
|
|
2374
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.preferred || _report(_exceptionable, {
|
|
2139
2375
|
path: _path + ".preferred",
|
|
2140
2376
|
expected: "string",
|
|
2141
2377
|
value: input.preferred
|
|
@@ -2143,8 +2379,8 @@ var validateCloudConfig = (() => {
|
|
|
2143
2379
|
path: _path + ".fallbacks",
|
|
2144
2380
|
expected: "(Array<string> | undefined)",
|
|
2145
2381
|
value: input.fallbacks
|
|
2146
|
-
})) && input.fallbacks.map((elem,
|
|
2147
|
-
path: _path + ".fallbacks[" +
|
|
2382
|
+
})) && input.fallbacks.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
2383
|
+
path: _path + ".fallbacks[" + _index45 + "]",
|
|
2148
2384
|
expected: "string",
|
|
2149
2385
|
value: elem
|
|
2150
2386
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2155,12 +2391,12 @@ var validateCloudConfig = (() => {
|
|
|
2155
2391
|
path: _path + ".constraints",
|
|
2156
2392
|
expected: "(__type | undefined)",
|
|
2157
2393
|
value: input.constraints
|
|
2158
|
-
})) &&
|
|
2394
|
+
})) && _vo8(input.constraints, _path + ".constraints", _exceptionable) || _report(_exceptionable, {
|
|
2159
2395
|
path: _path + ".constraints",
|
|
2160
2396
|
expected: "(__type | undefined)",
|
|
2161
2397
|
value: input.constraints
|
|
2162
2398
|
})].every((flag) => flag);
|
|
2163
|
-
const
|
|
2399
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.temperature || "number" === typeof input.temperature && (0 <= input.temperature || _report(_exceptionable, {
|
|
2164
2400
|
path: _path + ".temperature",
|
|
2165
2401
|
expected: "number & Minimum<0>",
|
|
2166
2402
|
value: input.temperature
|
|
@@ -2197,7 +2433,7 @@ var validateCloudConfig = (() => {
|
|
|
2197
2433
|
expected: '("adaptive" | "high" | "low" | "medium" | "minimal" | "off" | "xhigh" | undefined)',
|
|
2198
2434
|
value: input.thinkingLevel
|
|
2199
2435
|
})].every((flag) => flag);
|
|
2200
|
-
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, {
|
|
2201
2437
|
path: _path + ".riskTier",
|
|
2202
2438
|
expected: '("critical" | "high" | "low" | "standard" | undefined)',
|
|
2203
2439
|
value: input.riskTier
|
|
@@ -2205,8 +2441,8 @@ var validateCloudConfig = (() => {
|
|
|
2205
2441
|
path: _path + ".frameworks",
|
|
2206
2442
|
expected: "(Array<string> | undefined)",
|
|
2207
2443
|
value: input.frameworks
|
|
2208
|
-
})) && input.frameworks.map((elem,
|
|
2209
|
-
path: _path + ".frameworks[" +
|
|
2444
|
+
})) && input.frameworks.map((elem, _index46) => "string" === typeof elem || _report(_exceptionable, {
|
|
2445
|
+
path: _path + ".frameworks[" + _index46 + "]",
|
|
2210
2446
|
expected: "string",
|
|
2211
2447
|
value: elem
|
|
2212
2448
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2226,7 +2462,7 @@ var validateCloudConfig = (() => {
|
|
|
2226
2462
|
expected: "(string | undefined)",
|
|
2227
2463
|
value: input.retentionPeriod
|
|
2228
2464
|
})].every((flag) => flag);
|
|
2229
|
-
const
|
|
2465
|
+
const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.plugin || _report(_exceptionable, {
|
|
2230
2466
|
path: _path + ".plugin",
|
|
2231
2467
|
expected: "string",
|
|
2232
2468
|
value: input.plugin
|
|
@@ -2234,18 +2470,12 @@ var validateCloudConfig = (() => {
|
|
|
2234
2470
|
path: _path + ".options",
|
|
2235
2471
|
expected: "(Record<string, unknown> | undefined)",
|
|
2236
2472
|
value: input.options
|
|
2237
|
-
})) &&
|
|
2473
|
+
})) && _vo5(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
2238
2474
|
path: _path + ".options",
|
|
2239
2475
|
expected: "(Record<string, unknown> | undefined)",
|
|
2240
2476
|
value: input.options
|
|
2241
2477
|
})].every((flag) => flag);
|
|
2242
|
-
const
|
|
2243
|
-
const value = input[key];
|
|
2244
|
-
if (void 0 === value)
|
|
2245
|
-
return true;
|
|
2246
|
-
return true;
|
|
2247
|
-
}).every((flag) => flag)].every((flag) => flag);
|
|
2248
|
-
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) => {
|
|
2249
2479
|
const value = input[key];
|
|
2250
2480
|
if (void 0 === value)
|
|
2251
2481
|
return true;
|
|
@@ -2253,13 +2483,13 @@ var validateCloudConfig = (() => {
|
|
|
2253
2483
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2254
2484
|
expected: "CloudPluginInstanceConfig",
|
|
2255
2485
|
value
|
|
2256
|
-
})) &&
|
|
2486
|
+
})) && _vo12(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2257
2487
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2258
2488
|
expected: "CloudPluginInstanceConfig",
|
|
2259
2489
|
value
|
|
2260
2490
|
});
|
|
2261
2491
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2262
|
-
const
|
|
2492
|
+
const _vo12 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2263
2493
|
path: _path + ".enabled",
|
|
2264
2494
|
expected: "(boolean | undefined)",
|
|
2265
2495
|
value: input.enabled
|
|
@@ -2267,7 +2497,7 @@ var validateCloudConfig = (() => {
|
|
|
2267
2497
|
path: _path + ".config",
|
|
2268
2498
|
expected: "(Record<string, unknown> | undefined)",
|
|
2269
2499
|
value: input.config
|
|
2270
|
-
})) &&
|
|
2500
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2271
2501
|
path: _path + ".config",
|
|
2272
2502
|
expected: "(Record<string, unknown> | undefined)",
|
|
2273
2503
|
value: input.config
|
|
@@ -2275,7 +2505,7 @@ var validateCloudConfig = (() => {
|
|
|
2275
2505
|
path: _path + ".agents",
|
|
2276
2506
|
expected: "(Record<string, __type> | undefined)",
|
|
2277
2507
|
value: input.agents
|
|
2278
|
-
})) &&
|
|
2508
|
+
})) && _vo13(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2279
2509
|
path: _path + ".agents",
|
|
2280
2510
|
expected: "(Record<string, __type> | undefined)",
|
|
2281
2511
|
value: input.agents
|
|
@@ -2295,7 +2525,7 @@ var validateCloudConfig = (() => {
|
|
|
2295
2525
|
return true;
|
|
2296
2526
|
return true;
|
|
2297
2527
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2298
|
-
const
|
|
2528
|
+
const _vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2299
2529
|
const value = input[key];
|
|
2300
2530
|
if (void 0 === value)
|
|
2301
2531
|
return true;
|
|
@@ -2303,13 +2533,13 @@ var validateCloudConfig = (() => {
|
|
|
2303
2533
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2304
2534
|
expected: "__type.o9",
|
|
2305
2535
|
value
|
|
2306
|
-
})) &&
|
|
2536
|
+
})) && _vo14(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2307
2537
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2308
2538
|
expected: "__type.o9",
|
|
2309
2539
|
value
|
|
2310
2540
|
});
|
|
2311
2541
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2312
|
-
const
|
|
2542
|
+
const _vo14 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2313
2543
|
path: _path + ".enabled",
|
|
2314
2544
|
expected: "(boolean | undefined)",
|
|
2315
2545
|
value: input.enabled
|
|
@@ -2317,21 +2547,21 @@ var validateCloudConfig = (() => {
|
|
|
2317
2547
|
path: _path + ".config",
|
|
2318
2548
|
expected: "(Record<string, unknown> | undefined)",
|
|
2319
2549
|
value: input.config
|
|
2320
|
-
})) &&
|
|
2550
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2321
2551
|
path: _path + ".config",
|
|
2322
2552
|
expected: "(Record<string, unknown> | undefined)",
|
|
2323
2553
|
value: input.config
|
|
2324
2554
|
})].every((flag) => flag);
|
|
2325
|
-
const
|
|
2555
|
+
const _vo15 = (input, _path, _exceptionable = true) => [void 0 === input.providers || (Array.isArray(input.providers) || _report(_exceptionable, {
|
|
2326
2556
|
path: _path + ".providers",
|
|
2327
2557
|
expected: "(Array<OpenClawProviderConfig> | undefined)",
|
|
2328
2558
|
value: input.providers
|
|
2329
|
-
})) && input.providers.map((elem,
|
|
2330
|
-
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 + "]",
|
|
2331
2561
|
expected: "OpenClawProviderConfig",
|
|
2332
2562
|
value: elem
|
|
2333
|
-
})) &&
|
|
2334
|
-
path: _path + ".providers[" +
|
|
2563
|
+
})) && _vo16(elem, _path + ".providers[" + _index47 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2564
|
+
path: _path + ".providers[" + _index47 + "]",
|
|
2335
2565
|
expected: "OpenClawProviderConfig",
|
|
2336
2566
|
value: elem
|
|
2337
2567
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2342,12 +2572,12 @@ var validateCloudConfig = (() => {
|
|
|
2342
2572
|
path: _path + ".configurations",
|
|
2343
2573
|
expected: "(Array<Configuration> | undefined)",
|
|
2344
2574
|
value: input.configurations
|
|
2345
|
-
})) && input.configurations.map((elem,
|
|
2346
|
-
path: _path + ".configurations[" +
|
|
2575
|
+
})) && input.configurations.map((elem, _index48) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2576
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2347
2577
|
expected: "Configuration",
|
|
2348
2578
|
value: elem
|
|
2349
|
-
})) &&
|
|
2350
|
-
path: _path + ".configurations[" +
|
|
2579
|
+
})) && _vo20(elem, _path + ".configurations[" + _index48 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2580
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2351
2581
|
expected: "Configuration",
|
|
2352
2582
|
value: elem
|
|
2353
2583
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2358,12 +2588,12 @@ var validateCloudConfig = (() => {
|
|
|
2358
2588
|
path: _path + ".vaults",
|
|
2359
2589
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2360
2590
|
value: input.vaults
|
|
2361
|
-
})) &&
|
|
2591
|
+
})) && _vo90(input.vaults, _path + ".vaults", _exceptionable) || _report(_exceptionable, {
|
|
2362
2592
|
path: _path + ".vaults",
|
|
2363
2593
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2364
2594
|
value: input.vaults
|
|
2365
2595
|
})].every((flag) => flag);
|
|
2366
|
-
const
|
|
2596
|
+
const _vo16 = (input, _path, _exceptionable = true) => [void 0 === input.id || "string" === typeof input.id || _report(_exceptionable, {
|
|
2367
2597
|
path: _path + ".id",
|
|
2368
2598
|
expected: "(string | undefined)",
|
|
2369
2599
|
value: input.id
|
|
@@ -2395,7 +2625,7 @@ var validateCloudConfig = (() => {
|
|
|
2395
2625
|
path: _path + ".request",
|
|
2396
2626
|
expected: "(__type.o10 | undefined)",
|
|
2397
2627
|
value: input.request
|
|
2398
|
-
})) &&
|
|
2628
|
+
})) && _vo17(input.request, _path + ".request", _exceptionable) || _report(_exceptionable, {
|
|
2399
2629
|
path: _path + ".request",
|
|
2400
2630
|
expected: "(__type.o10 | undefined)",
|
|
2401
2631
|
value: input.request
|
|
@@ -2403,12 +2633,12 @@ var validateCloudConfig = (() => {
|
|
|
2403
2633
|
path: _path + ".models",
|
|
2404
2634
|
expected: "(Array<__type> | undefined)",
|
|
2405
2635
|
value: input.models
|
|
2406
|
-
})) && input.models.map((elem,
|
|
2407
|
-
path: _path + ".models[" +
|
|
2636
|
+
})) && input.models.map((elem, _index49) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2637
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2408
2638
|
expected: "__type.o11",
|
|
2409
2639
|
value: elem
|
|
2410
|
-
})) &&
|
|
2411
|
-
path: _path + ".models[" +
|
|
2640
|
+
})) && _vo18(elem, _path + ".models[" + _index49 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2641
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2412
2642
|
expected: "__type.o11",
|
|
2413
2643
|
value: elem
|
|
2414
2644
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2416,12 +2646,12 @@ var validateCloudConfig = (() => {
|
|
|
2416
2646
|
expected: "(Array<__type> | undefined)",
|
|
2417
2647
|
value: input.models
|
|
2418
2648
|
})].every((flag) => flag);
|
|
2419
|
-
const
|
|
2649
|
+
const _vo17 = (input, _path, _exceptionable = true) => [void 0 === input.allowPrivateNetwork || "boolean" === typeof input.allowPrivateNetwork || _report(_exceptionable, {
|
|
2420
2650
|
path: _path + ".allowPrivateNetwork",
|
|
2421
2651
|
expected: "(boolean | undefined)",
|
|
2422
2652
|
value: input.allowPrivateNetwork
|
|
2423
2653
|
})].every((flag) => flag);
|
|
2424
|
-
const
|
|
2654
|
+
const _vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2425
2655
|
path: _path + ".id",
|
|
2426
2656
|
expected: "string",
|
|
2427
2657
|
value: input.id
|
|
@@ -2437,8 +2667,8 @@ var validateCloudConfig = (() => {
|
|
|
2437
2667
|
path: _path + ".input",
|
|
2438
2668
|
expected: "(Array<string> | undefined)",
|
|
2439
2669
|
value: input.input
|
|
2440
|
-
})) && input.input.map((elem,
|
|
2441
|
-
path: _path + ".input[" +
|
|
2670
|
+
})) && input.input.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
2671
|
+
path: _path + ".input[" + _index50 + "]",
|
|
2442
2672
|
expected: "string",
|
|
2443
2673
|
value: elem
|
|
2444
2674
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2457,12 +2687,12 @@ var validateCloudConfig = (() => {
|
|
|
2457
2687
|
path: _path + ".cost",
|
|
2458
2688
|
expected: "(__type.o12 | undefined)",
|
|
2459
2689
|
value: input.cost
|
|
2460
|
-
})) &&
|
|
2690
|
+
})) && _vo19(input.cost, _path + ".cost", _exceptionable) || _report(_exceptionable, {
|
|
2461
2691
|
path: _path + ".cost",
|
|
2462
2692
|
expected: "(__type.o12 | undefined)",
|
|
2463
2693
|
value: input.cost
|
|
2464
2694
|
})].every((flag) => flag);
|
|
2465
|
-
const
|
|
2695
|
+
const _vo19 = (input, _path, _exceptionable = true) => [void 0 === input.input || "number" === typeof input.input || _report(_exceptionable, {
|
|
2466
2696
|
path: _path + ".input",
|
|
2467
2697
|
expected: "(number | undefined)",
|
|
2468
2698
|
value: input.input
|
|
@@ -2479,7 +2709,7 @@ var validateCloudConfig = (() => {
|
|
|
2479
2709
|
expected: "(number | undefined)",
|
|
2480
2710
|
value: input.cacheWrite
|
|
2481
2711
|
})].every((flag) => flag);
|
|
2482
|
-
const
|
|
2712
|
+
const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2483
2713
|
path: _path + ".id",
|
|
2484
2714
|
expected: "string",
|
|
2485
2715
|
value: input.id
|
|
@@ -2491,7 +2721,7 @@ var validateCloudConfig = (() => {
|
|
|
2491
2721
|
path: _path + ".model",
|
|
2492
2722
|
expected: "(AgentModel | undefined)",
|
|
2493
2723
|
value: input.model
|
|
2494
|
-
})) &&
|
|
2724
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2495
2725
|
path: _path + ".model",
|
|
2496
2726
|
expected: "(AgentModel | undefined)",
|
|
2497
2727
|
value: input.model
|
|
@@ -2499,7 +2729,7 @@ var validateCloudConfig = (() => {
|
|
|
2499
2729
|
path: _path + ".openclaw",
|
|
2500
2730
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2501
2731
|
value: input.openclaw
|
|
2502
|
-
})) &&
|
|
2732
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
2503
2733
|
path: _path + ".openclaw",
|
|
2504
2734
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2505
2735
|
value: input.openclaw
|
|
@@ -2511,11 +2741,11 @@ var validateCloudConfig = (() => {
|
|
|
2511
2741
|
return true;
|
|
2512
2742
|
return true;
|
|
2513
2743
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2514
|
-
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, {
|
|
2515
2745
|
path: _path + ".agents",
|
|
2516
2746
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2517
2747
|
value: input.agents
|
|
2518
|
-
})) &&
|
|
2748
|
+
})) && _vo22(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2519
2749
|
path: _path + ".agents",
|
|
2520
2750
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2521
2751
|
value: input.agents
|
|
@@ -2523,12 +2753,12 @@ var validateCloudConfig = (() => {
|
|
|
2523
2753
|
path: _path + ".bindings",
|
|
2524
2754
|
expected: "(Array<OpenClawBinding> | undefined)",
|
|
2525
2755
|
value: input.bindings
|
|
2526
|
-
})) && input.bindings.map((elem,
|
|
2527
|
-
path: _path + ".bindings[" +
|
|
2756
|
+
})) && input.bindings.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2757
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2528
2758
|
expected: "OpenClawBinding",
|
|
2529
2759
|
value: elem
|
|
2530
|
-
})) &&
|
|
2531
|
-
path: _path + ".bindings[" +
|
|
2760
|
+
})) && _vo38(elem, _path + ".bindings[" + _index51 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2761
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2532
2762
|
expected: "OpenClawBinding",
|
|
2533
2763
|
value: elem
|
|
2534
2764
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2539,7 +2769,7 @@ var validateCloudConfig = (() => {
|
|
|
2539
2769
|
path: _path + ".channels",
|
|
2540
2770
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2541
2771
|
value: input.channels
|
|
2542
|
-
})) &&
|
|
2772
|
+
})) && _vo42(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
2543
2773
|
path: _path + ".channels",
|
|
2544
2774
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2545
2775
|
value: input.channels
|
|
@@ -2547,7 +2777,7 @@ var validateCloudConfig = (() => {
|
|
|
2547
2777
|
path: _path + ".acp",
|
|
2548
2778
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2549
2779
|
value: input.acp
|
|
2550
|
-
})) &&
|
|
2780
|
+
})) && _vo54(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
2551
2781
|
path: _path + ".acp",
|
|
2552
2782
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2553
2783
|
value: input.acp
|
|
@@ -2555,7 +2785,7 @@ var validateCloudConfig = (() => {
|
|
|
2555
2785
|
path: _path + ".session",
|
|
2556
2786
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2557
2787
|
value: input.session
|
|
2558
|
-
})) &&
|
|
2788
|
+
})) && _vo58(input.session, _path + ".session", _exceptionable) || _report(_exceptionable, {
|
|
2559
2789
|
path: _path + ".session",
|
|
2560
2790
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2561
2791
|
value: input.session
|
|
@@ -2563,7 +2793,7 @@ var validateCloudConfig = (() => {
|
|
|
2563
2793
|
path: _path + ".messages",
|
|
2564
2794
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2565
2795
|
value: input.messages
|
|
2566
|
-
})) &&
|
|
2796
|
+
})) && _vo63(input.messages, _path + ".messages", _exceptionable) || _report(_exceptionable, {
|
|
2567
2797
|
path: _path + ".messages",
|
|
2568
2798
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2569
2799
|
value: input.messages
|
|
@@ -2571,7 +2801,7 @@ var validateCloudConfig = (() => {
|
|
|
2571
2801
|
path: _path + ".tools",
|
|
2572
2802
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2573
2803
|
value: input.tools
|
|
2574
|
-
})) &&
|
|
2804
|
+
})) && _vo66(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
2575
2805
|
path: _path + ".tools",
|
|
2576
2806
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2577
2807
|
value: input.tools
|
|
@@ -2579,7 +2809,7 @@ var validateCloudConfig = (() => {
|
|
|
2579
2809
|
path: _path + ".models",
|
|
2580
2810
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2581
2811
|
value: input.models
|
|
2582
|
-
})) &&
|
|
2812
|
+
})) && _vo73(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2583
2813
|
path: _path + ".models",
|
|
2584
2814
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2585
2815
|
value: input.models
|
|
@@ -2587,7 +2817,7 @@ var validateCloudConfig = (() => {
|
|
|
2587
2817
|
path: _path + ".plugins",
|
|
2588
2818
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2589
2819
|
value: input.plugins
|
|
2590
|
-
})) &&
|
|
2820
|
+
})) && _vo75(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2591
2821
|
path: _path + ".plugins",
|
|
2592
2822
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2593
2823
|
value: input.plugins
|
|
@@ -2595,7 +2825,7 @@ var validateCloudConfig = (() => {
|
|
|
2595
2825
|
path: _path + ".skills",
|
|
2596
2826
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2597
2827
|
value: input.skills
|
|
2598
|
-
})) &&
|
|
2828
|
+
})) && _vo80(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2599
2829
|
path: _path + ".skills",
|
|
2600
2830
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2601
2831
|
value: input.skills
|
|
@@ -2603,7 +2833,7 @@ var validateCloudConfig = (() => {
|
|
|
2603
2833
|
path: _path + ".gateway",
|
|
2604
2834
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2605
2835
|
value: input.gateway
|
|
2606
|
-
})) &&
|
|
2836
|
+
})) && _vo85(input.gateway, _path + ".gateway", _exceptionable) || _report(_exceptionable, {
|
|
2607
2837
|
path: _path + ".gateway",
|
|
2608
2838
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2609
2839
|
value: input.gateway
|
|
@@ -2611,7 +2841,7 @@ var validateCloudConfig = (() => {
|
|
|
2611
2841
|
path: _path + ".logging",
|
|
2612
2842
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2613
2843
|
value: input.logging
|
|
2614
|
-
})) &&
|
|
2844
|
+
})) && _vo89(input.logging, _path + ".logging", _exceptionable) || _report(_exceptionable, {
|
|
2615
2845
|
path: _path + ".logging",
|
|
2616
2846
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2617
2847
|
value: input.logging
|
|
@@ -2619,7 +2849,7 @@ var validateCloudConfig = (() => {
|
|
|
2619
2849
|
path: _path + ".env",
|
|
2620
2850
|
expected: "(Record<string, unknown> | undefined)",
|
|
2621
2851
|
value: input.env
|
|
2622
|
-
})) &&
|
|
2852
|
+
})) && _vo5(input.env, _path + ".env", _exceptionable) || _report(_exceptionable, {
|
|
2623
2853
|
path: _path + ".env",
|
|
2624
2854
|
expected: "(Record<string, unknown> | undefined)",
|
|
2625
2855
|
value: input.env
|
|
@@ -2631,11 +2861,11 @@ var validateCloudConfig = (() => {
|
|
|
2631
2861
|
return true;
|
|
2632
2862
|
return true;
|
|
2633
2863
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2634
|
-
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, {
|
|
2635
2865
|
path: _path + ".defaults",
|
|
2636
2866
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2637
2867
|
value: input.defaults
|
|
2638
|
-
})) &&
|
|
2868
|
+
})) && _vo23(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
2639
2869
|
path: _path + ".defaults",
|
|
2640
2870
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2641
2871
|
value: input.defaults
|
|
@@ -2643,12 +2873,12 @@ var validateCloudConfig = (() => {
|
|
|
2643
2873
|
path: _path + ".list",
|
|
2644
2874
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2645
2875
|
value: input.list
|
|
2646
|
-
})) && input.list.map((elem,
|
|
2647
|
-
path: _path + ".list[" +
|
|
2876
|
+
})) && input.list.map((elem, _index52) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2877
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2648
2878
|
expected: "OpenClawAgentConfig",
|
|
2649
2879
|
value: elem
|
|
2650
|
-
})) &&
|
|
2651
|
-
path: _path + ".list[" +
|
|
2880
|
+
})) && _vo30(elem, _path + ".list[" + _index52 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2881
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2652
2882
|
expected: "OpenClawAgentConfig",
|
|
2653
2883
|
value: elem
|
|
2654
2884
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2656,7 +2886,7 @@ var validateCloudConfig = (() => {
|
|
|
2656
2886
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2657
2887
|
value: input.list
|
|
2658
2888
|
})].every((flag) => flag);
|
|
2659
|
-
const
|
|
2889
|
+
const _vo23 = (input, _path, _exceptionable = true) => [void 0 === input.workspace || "string" === typeof input.workspace || _report(_exceptionable, {
|
|
2660
2890
|
path: _path + ".workspace",
|
|
2661
2891
|
expected: "(string | undefined)",
|
|
2662
2892
|
value: input.workspace
|
|
@@ -2692,7 +2922,7 @@ var validateCloudConfig = (() => {
|
|
|
2692
2922
|
path: _path + ".model",
|
|
2693
2923
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2694
2924
|
value: input.model
|
|
2695
|
-
})) &&
|
|
2925
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2696
2926
|
path: _path + ".model",
|
|
2697
2927
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2698
2928
|
value: input.model
|
|
@@ -2704,7 +2934,7 @@ var validateCloudConfig = (() => {
|
|
|
2704
2934
|
path: _path + ".imageModel",
|
|
2705
2935
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2706
2936
|
value: input.imageModel
|
|
2707
|
-
})) &&
|
|
2937
|
+
})) && _vo24(input.imageModel, _path + ".imageModel", _exceptionable) || _report(_exceptionable, {
|
|
2708
2938
|
path: _path + ".imageModel",
|
|
2709
2939
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2710
2940
|
value: input.imageModel
|
|
@@ -2716,7 +2946,7 @@ var validateCloudConfig = (() => {
|
|
|
2716
2946
|
path: _path + ".pdfModel",
|
|
2717
2947
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2718
2948
|
value: input.pdfModel
|
|
2719
|
-
})) &&
|
|
2949
|
+
})) && _vo24(input.pdfModel, _path + ".pdfModel", _exceptionable) || _report(_exceptionable, {
|
|
2720
2950
|
path: _path + ".pdfModel",
|
|
2721
2951
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2722
2952
|
value: input.pdfModel
|
|
@@ -2728,7 +2958,7 @@ var validateCloudConfig = (() => {
|
|
|
2728
2958
|
path: _path + ".imageGenerationModel",
|
|
2729
2959
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2730
2960
|
value: input.imageGenerationModel
|
|
2731
|
-
})) &&
|
|
2961
|
+
})) && _vo24(input.imageGenerationModel, _path + ".imageGenerationModel", _exceptionable) || _report(_exceptionable, {
|
|
2732
2962
|
path: _path + ".imageGenerationModel",
|
|
2733
2963
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2734
2964
|
value: input.imageGenerationModel
|
|
@@ -2736,7 +2966,7 @@ var validateCloudConfig = (() => {
|
|
|
2736
2966
|
path: _path + ".models",
|
|
2737
2967
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2738
2968
|
value: input.models
|
|
2739
|
-
})) &&
|
|
2969
|
+
})) && _vo25(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2740
2970
|
path: _path + ".models",
|
|
2741
2971
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2742
2972
|
value: input.models
|
|
@@ -2808,7 +3038,7 @@ var validateCloudConfig = (() => {
|
|
|
2808
3038
|
path: _path + ".heartbeat",
|
|
2809
3039
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2810
3040
|
value: input.heartbeat
|
|
2811
|
-
})) &&
|
|
3041
|
+
})) && _vo27(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
2812
3042
|
path: _path + ".heartbeat",
|
|
2813
3043
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2814
3044
|
value: input.heartbeat
|
|
@@ -2816,7 +3046,7 @@ var validateCloudConfig = (() => {
|
|
|
2816
3046
|
path: _path + ".compaction",
|
|
2817
3047
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2818
3048
|
value: input.compaction
|
|
2819
|
-
})) &&
|
|
3049
|
+
})) && _vo28(input.compaction, _path + ".compaction", _exceptionable) || _report(_exceptionable, {
|
|
2820
3050
|
path: _path + ".compaction",
|
|
2821
3051
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2822
3052
|
value: input.compaction
|
|
@@ -2824,7 +3054,7 @@ var validateCloudConfig = (() => {
|
|
|
2824
3054
|
path: _path + ".sandbox",
|
|
2825
3055
|
expected: "(Record<string, unknown> | undefined)",
|
|
2826
3056
|
value: input.sandbox
|
|
2827
|
-
})) &&
|
|
3057
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
2828
3058
|
path: _path + ".sandbox",
|
|
2829
3059
|
expected: "(Record<string, unknown> | undefined)",
|
|
2830
3060
|
value: input.sandbox
|
|
@@ -2832,12 +3062,12 @@ var validateCloudConfig = (() => {
|
|
|
2832
3062
|
path: _path + ".subagents",
|
|
2833
3063
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2834
3064
|
value: input.subagents
|
|
2835
|
-
})) &&
|
|
3065
|
+
})) && _vo29(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
2836
3066
|
path: _path + ".subagents",
|
|
2837
3067
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2838
3068
|
value: input.subagents
|
|
2839
3069
|
})].every((flag) => flag);
|
|
2840
|
-
const
|
|
3070
|
+
const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.primary || _report(_exceptionable, {
|
|
2841
3071
|
path: _path + ".primary",
|
|
2842
3072
|
expected: "string",
|
|
2843
3073
|
value: input.primary
|
|
@@ -2845,8 +3075,8 @@ var validateCloudConfig = (() => {
|
|
|
2845
3075
|
path: _path + ".fallbacks",
|
|
2846
3076
|
expected: "(Array<string> | undefined)",
|
|
2847
3077
|
value: input.fallbacks
|
|
2848
|
-
})) && input.fallbacks.map((elem,
|
|
2849
|
-
path: _path + ".fallbacks[" +
|
|
3078
|
+
})) && input.fallbacks.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
3079
|
+
path: _path + ".fallbacks[" + _index53 + "]",
|
|
2850
3080
|
expected: "string",
|
|
2851
3081
|
value: elem
|
|
2852
3082
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2854,7 +3084,7 @@ var validateCloudConfig = (() => {
|
|
|
2854
3084
|
expected: "(Array<string> | undefined)",
|
|
2855
3085
|
value: input.fallbacks
|
|
2856
3086
|
})].every((flag) => flag);
|
|
2857
|
-
const
|
|
3087
|
+
const _vo25 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2858
3088
|
const value = input[key];
|
|
2859
3089
|
if (void 0 === value)
|
|
2860
3090
|
return true;
|
|
@@ -2862,13 +3092,13 @@ var validateCloudConfig = (() => {
|
|
|
2862
3092
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2863
3093
|
expected: "OpenClawModelEntry",
|
|
2864
3094
|
value
|
|
2865
|
-
})) &&
|
|
3095
|
+
})) && _vo26(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2866
3096
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2867
3097
|
expected: "OpenClawModelEntry",
|
|
2868
3098
|
value
|
|
2869
3099
|
});
|
|
2870
3100
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2871
|
-
const
|
|
3101
|
+
const _vo26 = (input, _path, _exceptionable = true) => [void 0 === input.alias || "string" === typeof input.alias || _report(_exceptionable, {
|
|
2872
3102
|
path: _path + ".alias",
|
|
2873
3103
|
expected: "(string | undefined)",
|
|
2874
3104
|
value: input.alias
|
|
@@ -2876,12 +3106,12 @@ var validateCloudConfig = (() => {
|
|
|
2876
3106
|
path: _path + ".params",
|
|
2877
3107
|
expected: "(Record<string, unknown> | undefined)",
|
|
2878
3108
|
value: input.params
|
|
2879
|
-
})) &&
|
|
3109
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
2880
3110
|
path: _path + ".params",
|
|
2881
3111
|
expected: "(Record<string, unknown> | undefined)",
|
|
2882
3112
|
value: input.params
|
|
2883
3113
|
})].every((flag) => flag);
|
|
2884
|
-
const
|
|
3114
|
+
const _vo27 = (input, _path, _exceptionable = true) => [void 0 === input.every || "string" === typeof input.every || _report(_exceptionable, {
|
|
2885
3115
|
path: _path + ".every",
|
|
2886
3116
|
expected: "(string | undefined)",
|
|
2887
3117
|
value: input.every
|
|
@@ -2906,7 +3136,7 @@ var validateCloudConfig = (() => {
|
|
|
2906
3136
|
expected: "(string | undefined)",
|
|
2907
3137
|
value: input.target
|
|
2908
3138
|
})].every((flag) => flag);
|
|
2909
|
-
const
|
|
3139
|
+
const _vo28 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "default" === input.mode || "safeguard" === input.mode || _report(_exceptionable, {
|
|
2910
3140
|
path: _path + ".mode",
|
|
2911
3141
|
expected: '("default" | "safeguard" | undefined)',
|
|
2912
3142
|
value: input.mode
|
|
@@ -2931,7 +3161,7 @@ var validateCloudConfig = (() => {
|
|
|
2931
3161
|
expected: "(string | undefined)",
|
|
2932
3162
|
value: input.model
|
|
2933
3163
|
})].every((flag) => flag);
|
|
2934
|
-
const
|
|
3164
|
+
const _vo29 = (input, _path, _exceptionable = true) => [void 0 === input.model || "string" === typeof input.model || _report(_exceptionable, {
|
|
2935
3165
|
path: _path + ".model",
|
|
2936
3166
|
expected: "(string | undefined)",
|
|
2937
3167
|
value: input.model
|
|
@@ -2952,7 +3182,7 @@ var validateCloudConfig = (() => {
|
|
|
2952
3182
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
2953
3183
|
value: input.runTimeoutSeconds
|
|
2954
3184
|
})].every((flag) => flag);
|
|
2955
|
-
const
|
|
3185
|
+
const _vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2956
3186
|
path: _path + ".id",
|
|
2957
3187
|
expected: "string",
|
|
2958
3188
|
value: input.id
|
|
@@ -2980,7 +3210,7 @@ var validateCloudConfig = (() => {
|
|
|
2980
3210
|
path: _path + ".model",
|
|
2981
3211
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2982
3212
|
value: input.model
|
|
2983
|
-
})) &&
|
|
3213
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2984
3214
|
path: _path + ".model",
|
|
2985
3215
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2986
3216
|
value: input.model
|
|
@@ -2992,7 +3222,7 @@ var validateCloudConfig = (() => {
|
|
|
2992
3222
|
path: _path + ".params",
|
|
2993
3223
|
expected: "(Record<string, unknown> | undefined)",
|
|
2994
3224
|
value: input.params
|
|
2995
|
-
})) &&
|
|
3225
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
2996
3226
|
path: _path + ".params",
|
|
2997
3227
|
expected: "(Record<string, unknown> | undefined)",
|
|
2998
3228
|
value: input.params
|
|
@@ -3000,7 +3230,7 @@ var validateCloudConfig = (() => {
|
|
|
3000
3230
|
path: _path + ".identity",
|
|
3001
3231
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3002
3232
|
value: input.identity
|
|
3003
|
-
})) &&
|
|
3233
|
+
})) && _vo31(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
3004
3234
|
path: _path + ".identity",
|
|
3005
3235
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3006
3236
|
value: input.identity
|
|
@@ -3008,7 +3238,7 @@ var validateCloudConfig = (() => {
|
|
|
3008
3238
|
path: _path + ".groupChat",
|
|
3009
3239
|
expected: "(__type.o13 | undefined)",
|
|
3010
3240
|
value: input.groupChat
|
|
3011
|
-
})) &&
|
|
3241
|
+
})) && _vo32(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
3012
3242
|
path: _path + ".groupChat",
|
|
3013
3243
|
expected: "(__type.o13 | undefined)",
|
|
3014
3244
|
value: input.groupChat
|
|
@@ -3016,7 +3246,7 @@ var validateCloudConfig = (() => {
|
|
|
3016
3246
|
path: _path + ".runtime",
|
|
3017
3247
|
expected: "(__type.o14 | undefined)",
|
|
3018
3248
|
value: input.runtime
|
|
3019
|
-
})) &&
|
|
3249
|
+
})) && _vo33(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3020
3250
|
path: _path + ".runtime",
|
|
3021
3251
|
expected: "(__type.o14 | undefined)",
|
|
3022
3252
|
value: input.runtime
|
|
@@ -3024,7 +3254,7 @@ var validateCloudConfig = (() => {
|
|
|
3024
3254
|
path: _path + ".subagents",
|
|
3025
3255
|
expected: "(__type.o15 | undefined)",
|
|
3026
3256
|
value: input.subagents
|
|
3027
|
-
})) &&
|
|
3257
|
+
})) && _vo35(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
3028
3258
|
path: _path + ".subagents",
|
|
3029
3259
|
expected: "(__type.o15 | undefined)",
|
|
3030
3260
|
value: input.subagents
|
|
@@ -3032,7 +3262,7 @@ var validateCloudConfig = (() => {
|
|
|
3032
3262
|
path: _path + ".tools",
|
|
3033
3263
|
expected: "(__type.o16 | undefined)",
|
|
3034
3264
|
value: input.tools
|
|
3035
|
-
})) &&
|
|
3265
|
+
})) && _vo36(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
3036
3266
|
path: _path + ".tools",
|
|
3037
3267
|
expected: "(__type.o16 | undefined)",
|
|
3038
3268
|
value: input.tools
|
|
@@ -3040,7 +3270,7 @@ var validateCloudConfig = (() => {
|
|
|
3040
3270
|
path: _path + ".sandbox",
|
|
3041
3271
|
expected: "(Record<string, unknown> | undefined)",
|
|
3042
3272
|
value: input.sandbox
|
|
3043
|
-
})) &&
|
|
3273
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
3044
3274
|
path: _path + ".sandbox",
|
|
3045
3275
|
expected: "(Record<string, unknown> | undefined)",
|
|
3046
3276
|
value: input.sandbox
|
|
@@ -3053,7 +3283,7 @@ var validateCloudConfig = (() => {
|
|
|
3053
3283
|
expected: "(string | undefined)",
|
|
3054
3284
|
value: input.instructions
|
|
3055
3285
|
})].every((flag) => flag);
|
|
3056
|
-
const
|
|
3286
|
+
const _vo31 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
3057
3287
|
path: _path + ".name",
|
|
3058
3288
|
expected: "(string | undefined)",
|
|
3059
3289
|
value: input.name
|
|
@@ -3070,12 +3300,12 @@ var validateCloudConfig = (() => {
|
|
|
3070
3300
|
expected: "(string | undefined)",
|
|
3071
3301
|
value: input.avatar
|
|
3072
3302
|
})].every((flag) => flag);
|
|
3073
|
-
const
|
|
3303
|
+
const _vo32 = (input, _path, _exceptionable = true) => [void 0 === input.mentionPatterns || (Array.isArray(input.mentionPatterns) || _report(_exceptionable, {
|
|
3074
3304
|
path: _path + ".mentionPatterns",
|
|
3075
3305
|
expected: "(Array<string> | undefined)",
|
|
3076
3306
|
value: input.mentionPatterns
|
|
3077
|
-
})) && input.mentionPatterns.map((elem,
|
|
3078
|
-
path: _path + ".mentionPatterns[" +
|
|
3307
|
+
})) && input.mentionPatterns.map((elem, _index54) => "string" === typeof elem || _report(_exceptionable, {
|
|
3308
|
+
path: _path + ".mentionPatterns[" + _index54 + "]",
|
|
3079
3309
|
expected: "string",
|
|
3080
3310
|
value: elem
|
|
3081
3311
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3083,7 +3313,7 @@ var validateCloudConfig = (() => {
|
|
|
3083
3313
|
expected: "(Array<string> | undefined)",
|
|
3084
3314
|
value: input.mentionPatterns
|
|
3085
3315
|
})].every((flag) => flag);
|
|
3086
|
-
const
|
|
3316
|
+
const _vo33 = (input, _path, _exceptionable = true) => ["acp" === input.type || "subagent" === input.type || _report(_exceptionable, {
|
|
3087
3317
|
path: _path + ".type",
|
|
3088
3318
|
expected: '("acp" | "subagent")',
|
|
3089
3319
|
value: input.type
|
|
@@ -3091,12 +3321,12 @@ var validateCloudConfig = (() => {
|
|
|
3091
3321
|
path: _path + ".acp",
|
|
3092
3322
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3093
3323
|
value: input.acp
|
|
3094
|
-
})) &&
|
|
3324
|
+
})) && _vo34(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3095
3325
|
path: _path + ".acp",
|
|
3096
3326
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3097
3327
|
value: input.acp
|
|
3098
3328
|
})].every((flag) => flag);
|
|
3099
|
-
const
|
|
3329
|
+
const _vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.agent || _report(_exceptionable, {
|
|
3100
3330
|
path: _path + ".agent",
|
|
3101
3331
|
expected: "string",
|
|
3102
3332
|
value: input.agent
|
|
@@ -3113,12 +3343,12 @@ var validateCloudConfig = (() => {
|
|
|
3113
3343
|
expected: "(string | undefined)",
|
|
3114
3344
|
value: input.cwd
|
|
3115
3345
|
})].every((flag) => flag);
|
|
3116
|
-
const
|
|
3346
|
+
const _vo35 = (input, _path, _exceptionable = true) => [void 0 === input.allowAgents || (Array.isArray(input.allowAgents) || _report(_exceptionable, {
|
|
3117
3347
|
path: _path + ".allowAgents",
|
|
3118
3348
|
expected: "(Array<string> | undefined)",
|
|
3119
3349
|
value: input.allowAgents
|
|
3120
|
-
})) && input.allowAgents.map((elem,
|
|
3121
|
-
path: _path + ".allowAgents[" +
|
|
3350
|
+
})) && input.allowAgents.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
3351
|
+
path: _path + ".allowAgents[" + _index55 + "]",
|
|
3122
3352
|
expected: "string",
|
|
3123
3353
|
value: elem
|
|
3124
3354
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3126,7 +3356,7 @@ var validateCloudConfig = (() => {
|
|
|
3126
3356
|
expected: "(Array<string> | undefined)",
|
|
3127
3357
|
value: input.allowAgents
|
|
3128
3358
|
})].every((flag) => flag);
|
|
3129
|
-
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, {
|
|
3130
3360
|
path: _path + ".profile",
|
|
3131
3361
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
3132
3362
|
value: input.profile
|
|
@@ -3134,8 +3364,8 @@ var validateCloudConfig = (() => {
|
|
|
3134
3364
|
path: _path + ".allow",
|
|
3135
3365
|
expected: "(Array<string> | undefined)",
|
|
3136
3366
|
value: input.allow
|
|
3137
|
-
})) && input.allow.map((elem,
|
|
3138
|
-
path: _path + ".allow[" +
|
|
3367
|
+
})) && input.allow.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
3368
|
+
path: _path + ".allow[" + _index56 + "]",
|
|
3139
3369
|
expected: "string",
|
|
3140
3370
|
value: elem
|
|
3141
3371
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3146,8 +3376,8 @@ var validateCloudConfig = (() => {
|
|
|
3146
3376
|
path: _path + ".deny",
|
|
3147
3377
|
expected: "(Array<string> | undefined)",
|
|
3148
3378
|
value: input.deny
|
|
3149
|
-
})) && input.deny.map((elem,
|
|
3150
|
-
path: _path + ".deny[" +
|
|
3379
|
+
})) && input.deny.map((elem, _index57) => "string" === typeof elem || _report(_exceptionable, {
|
|
3380
|
+
path: _path + ".deny[" + _index57 + "]",
|
|
3151
3381
|
expected: "string",
|
|
3152
3382
|
value: elem
|
|
3153
3383
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3158,17 +3388,17 @@ var validateCloudConfig = (() => {
|
|
|
3158
3388
|
path: _path + ".elevated",
|
|
3159
3389
|
expected: "(__type.o17 | undefined)",
|
|
3160
3390
|
value: input.elevated
|
|
3161
|
-
})) &&
|
|
3391
|
+
})) && _vo37(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
3162
3392
|
path: _path + ".elevated",
|
|
3163
3393
|
expected: "(__type.o17 | undefined)",
|
|
3164
3394
|
value: input.elevated
|
|
3165
3395
|
})].every((flag) => flag);
|
|
3166
|
-
const
|
|
3396
|
+
const _vo37 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3167
3397
|
path: _path + ".enabled",
|
|
3168
3398
|
expected: "(boolean | undefined)",
|
|
3169
3399
|
value: input.enabled
|
|
3170
3400
|
})].every((flag) => flag);
|
|
3171
|
-
const
|
|
3401
|
+
const _vo38 = (input, _path, _exceptionable = true) => ["string" === typeof input.agentId || _report(_exceptionable, {
|
|
3172
3402
|
path: _path + ".agentId",
|
|
3173
3403
|
expected: "string",
|
|
3174
3404
|
value: input.agentId
|
|
@@ -3180,7 +3410,7 @@ var validateCloudConfig = (() => {
|
|
|
3180
3410
|
path: _path + ".match",
|
|
3181
3411
|
expected: "__type.o18",
|
|
3182
3412
|
value: input.match
|
|
3183
|
-
})) &&
|
|
3413
|
+
})) && _vo39(input.match, _path + ".match", _exceptionable) || _report(_exceptionable, {
|
|
3184
3414
|
path: _path + ".match",
|
|
3185
3415
|
expected: "__type.o18",
|
|
3186
3416
|
value: input.match
|
|
@@ -3188,12 +3418,12 @@ var validateCloudConfig = (() => {
|
|
|
3188
3418
|
path: _path + ".acp",
|
|
3189
3419
|
expected: "(__type.o20 | undefined)",
|
|
3190
3420
|
value: input.acp
|
|
3191
|
-
})) &&
|
|
3421
|
+
})) && _vo41(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3192
3422
|
path: _path + ".acp",
|
|
3193
3423
|
expected: "(__type.o20 | undefined)",
|
|
3194
3424
|
value: input.acp
|
|
3195
3425
|
})].every((flag) => flag);
|
|
3196
|
-
const
|
|
3426
|
+
const _vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.channel || _report(_exceptionable, {
|
|
3197
3427
|
path: _path + ".channel",
|
|
3198
3428
|
expected: "string",
|
|
3199
3429
|
value: input.channel
|
|
@@ -3205,7 +3435,7 @@ var validateCloudConfig = (() => {
|
|
|
3205
3435
|
path: _path + ".peer",
|
|
3206
3436
|
expected: "(__type.o19 | undefined)",
|
|
3207
3437
|
value: input.peer
|
|
3208
|
-
})) &&
|
|
3438
|
+
})) && _vo40(input.peer, _path + ".peer", _exceptionable) || _report(_exceptionable, {
|
|
3209
3439
|
path: _path + ".peer",
|
|
3210
3440
|
expected: "(__type.o19 | undefined)",
|
|
3211
3441
|
value: input.peer
|
|
@@ -3218,7 +3448,7 @@ var validateCloudConfig = (() => {
|
|
|
3218
3448
|
expected: "(string | undefined)",
|
|
3219
3449
|
value: input.teamId
|
|
3220
3450
|
})].every((flag) => flag);
|
|
3221
|
-
const
|
|
3451
|
+
const _vo40 = (input, _path, _exceptionable = true) => [void 0 === input.kind || "direct" === input.kind || "group" === input.kind || "channel" === input.kind || _report(_exceptionable, {
|
|
3222
3452
|
path: _path + ".kind",
|
|
3223
3453
|
expected: '("channel" | "direct" | "group" | undefined)',
|
|
3224
3454
|
value: input.kind
|
|
@@ -3227,7 +3457,7 @@ var validateCloudConfig = (() => {
|
|
|
3227
3457
|
expected: "(string | undefined)",
|
|
3228
3458
|
value: input.id
|
|
3229
3459
|
})].every((flag) => flag);
|
|
3230
|
-
const
|
|
3460
|
+
const _vo41 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "string" === typeof input.mode || _report(_exceptionable, {
|
|
3231
3461
|
path: _path + ".mode",
|
|
3232
3462
|
expected: "(string | undefined)",
|
|
3233
3463
|
value: input.mode
|
|
@@ -3244,11 +3474,11 @@ var validateCloudConfig = (() => {
|
|
|
3244
3474
|
expected: "(string | undefined)",
|
|
3245
3475
|
value: input.backend
|
|
3246
3476
|
})].every((flag) => flag);
|
|
3247
|
-
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, {
|
|
3248
3478
|
path: _path + ".defaults",
|
|
3249
3479
|
expected: "(__type.o21 | undefined)",
|
|
3250
3480
|
value: input.defaults
|
|
3251
|
-
})) &&
|
|
3481
|
+
})) && _vo43(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
3252
3482
|
path: _path + ".defaults",
|
|
3253
3483
|
expected: "(__type.o21 | undefined)",
|
|
3254
3484
|
value: input.defaults
|
|
@@ -3264,7 +3494,7 @@ var validateCloudConfig = (() => {
|
|
|
3264
3494
|
path: _path + ".telegram",
|
|
3265
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)',
|
|
3266
3496
|
value: input.telegram
|
|
3267
|
-
})) &&
|
|
3497
|
+
})) && _vo45(input.telegram, _path + ".telegram", _exceptionable) || _report(_exceptionable, {
|
|
3268
3498
|
path: _path + ".telegram",
|
|
3269
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)',
|
|
3270
3500
|
value: input.telegram
|
|
@@ -3272,7 +3502,7 @@ var validateCloudConfig = (() => {
|
|
|
3272
3502
|
path: _path + ".discord",
|
|
3273
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)',
|
|
3274
3504
|
value: input.discord
|
|
3275
|
-
})) &&
|
|
3505
|
+
})) && _vo48(input.discord, _path + ".discord", _exceptionable) || _report(_exceptionable, {
|
|
3276
3506
|
path: _path + ".discord",
|
|
3277
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)',
|
|
3278
3508
|
value: input.discord
|
|
@@ -3280,7 +3510,7 @@ var validateCloudConfig = (() => {
|
|
|
3280
3510
|
path: _path + ".slack",
|
|
3281
3511
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3282
3512
|
value: input.slack
|
|
3283
|
-
})) &&
|
|
3513
|
+
})) && _vo49(input.slack, _path + ".slack", _exceptionable) || _report(_exceptionable, {
|
|
3284
3514
|
path: _path + ".slack",
|
|
3285
3515
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3286
3516
|
value: input.slack
|
|
@@ -3288,7 +3518,7 @@ var validateCloudConfig = (() => {
|
|
|
3288
3518
|
path: _path + ".whatsapp",
|
|
3289
3519
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3290
3520
|
value: input.whatsapp
|
|
3291
|
-
})) &&
|
|
3521
|
+
})) && _vo50(input.whatsapp, _path + ".whatsapp", _exceptionable) || _report(_exceptionable, {
|
|
3292
3522
|
path: _path + ".whatsapp",
|
|
3293
3523
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3294
3524
|
value: input.whatsapp
|
|
@@ -3296,7 +3526,7 @@ var validateCloudConfig = (() => {
|
|
|
3296
3526
|
path: _path + ".shadowob",
|
|
3297
3527
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3298
3528
|
value: input.shadowob
|
|
3299
|
-
})) &&
|
|
3529
|
+
})) && _vo51(input.shadowob, _path + ".shadowob", _exceptionable) || _report(_exceptionable, {
|
|
3300
3530
|
path: _path + ".shadowob",
|
|
3301
3531
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3302
3532
|
value: input.shadowob
|
|
@@ -3308,7 +3538,7 @@ var validateCloudConfig = (() => {
|
|
|
3308
3538
|
return true;
|
|
3309
3539
|
return true;
|
|
3310
3540
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3311
|
-
const
|
|
3541
|
+
const _vo43 = (input, _path, _exceptionable = true) => [void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy || _report(_exceptionable, {
|
|
3312
3542
|
path: _path + ".groupPolicy",
|
|
3313
3543
|
expected: '("allowlist" | "disabled" | "open" | undefined)',
|
|
3314
3544
|
value: input.groupPolicy
|
|
@@ -3316,12 +3546,12 @@ var validateCloudConfig = (() => {
|
|
|
3316
3546
|
path: _path + ".heartbeat",
|
|
3317
3547
|
expected: "(__type.o22 | undefined)",
|
|
3318
3548
|
value: input.heartbeat
|
|
3319
|
-
})) &&
|
|
3549
|
+
})) && _vo44(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
3320
3550
|
path: _path + ".heartbeat",
|
|
3321
3551
|
expected: "(__type.o22 | undefined)",
|
|
3322
3552
|
value: input.heartbeat
|
|
3323
3553
|
})].every((flag) => flag);
|
|
3324
|
-
const
|
|
3554
|
+
const _vo44 = (input, _path, _exceptionable = true) => [void 0 === input.showOk || "boolean" === typeof input.showOk || _report(_exceptionable, {
|
|
3325
3555
|
path: _path + ".showOk",
|
|
3326
3556
|
expected: "(boolean | undefined)",
|
|
3327
3557
|
value: input.showOk
|
|
@@ -3334,7 +3564,7 @@ var validateCloudConfig = (() => {
|
|
|
3334
3564
|
expected: "(boolean | undefined)",
|
|
3335
3565
|
value: input.useIndicator
|
|
3336
3566
|
})].every((flag) => flag);
|
|
3337
|
-
const
|
|
3567
|
+
const _vo45 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3338
3568
|
path: _path + ".enabled",
|
|
3339
3569
|
expected: "(boolean | undefined)",
|
|
3340
3570
|
value: input.enabled
|
|
@@ -3342,7 +3572,7 @@ var validateCloudConfig = (() => {
|
|
|
3342
3572
|
path: _path + ".capabilities",
|
|
3343
3573
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3344
3574
|
value: input.capabilities
|
|
3345
|
-
})) &&
|
|
3575
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3346
3576
|
path: _path + ".capabilities",
|
|
3347
3577
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3348
3578
|
value: input.capabilities
|
|
@@ -3354,8 +3584,8 @@ var validateCloudConfig = (() => {
|
|
|
3354
3584
|
path: _path + ".allowFrom",
|
|
3355
3585
|
expected: "(Array<string> | undefined)",
|
|
3356
3586
|
value: input.allowFrom
|
|
3357
|
-
})) && input.allowFrom.map((elem,
|
|
3358
|
-
path: _path + ".allowFrom[" +
|
|
3587
|
+
})) && input.allowFrom.map((elem, _index58) => "string" === typeof elem || _report(_exceptionable, {
|
|
3588
|
+
path: _path + ".allowFrom[" + _index58 + "]",
|
|
3359
3589
|
expected: "string",
|
|
3360
3590
|
value: elem
|
|
3361
3591
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3398,7 +3628,7 @@ var validateCloudConfig = (() => {
|
|
|
3398
3628
|
path: _path + ".groups",
|
|
3399
3629
|
expected: "(Record<string, unknown> | undefined)",
|
|
3400
3630
|
value: input.groups
|
|
3401
|
-
})) &&
|
|
3631
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3402
3632
|
path: _path + ".groups",
|
|
3403
3633
|
expected: "(Record<string, unknown> | undefined)",
|
|
3404
3634
|
value: input.groups
|
|
@@ -3406,12 +3636,12 @@ var validateCloudConfig = (() => {
|
|
|
3406
3636
|
path: _path + ".customCommands",
|
|
3407
3637
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3408
3638
|
value: input.customCommands
|
|
3409
|
-
})) && input.customCommands.map((elem,
|
|
3410
|
-
path: _path + ".customCommands[" +
|
|
3639
|
+
})) && input.customCommands.map((elem, _index59) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3640
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3411
3641
|
expected: "__type.o24",
|
|
3412
3642
|
value: elem
|
|
3413
|
-
})) &&
|
|
3414
|
-
path: _path + ".customCommands[" +
|
|
3643
|
+
})) && _vo47(elem, _path + ".customCommands[" + _index59 + "]", _exceptionable) || _report(_exceptionable, {
|
|
3644
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3415
3645
|
expected: "__type.o24",
|
|
3416
3646
|
value: elem
|
|
3417
3647
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3427,7 +3657,7 @@ var validateCloudConfig = (() => {
|
|
|
3427
3657
|
expected: "(boolean | undefined)",
|
|
3428
3658
|
value: input.linkPreview
|
|
3429
3659
|
})].every((flag) => flag);
|
|
3430
|
-
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, {
|
|
3431
3661
|
path: _path + ".inlineButtons",
|
|
3432
3662
|
expected: '("all" | "allowlist" | "dm" | "group" | "off" | boolean | undefined)',
|
|
3433
3663
|
value: input.inlineButtons
|
|
@@ -3447,7 +3677,7 @@ var validateCloudConfig = (() => {
|
|
|
3447
3677
|
return true;
|
|
3448
3678
|
return true;
|
|
3449
3679
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3450
|
-
const
|
|
3680
|
+
const _vo47 = (input, _path, _exceptionable = true) => ["string" === typeof input.command || _report(_exceptionable, {
|
|
3451
3681
|
path: _path + ".command",
|
|
3452
3682
|
expected: "string",
|
|
3453
3683
|
value: input.command
|
|
@@ -3456,7 +3686,7 @@ var validateCloudConfig = (() => {
|
|
|
3456
3686
|
expected: "string",
|
|
3457
3687
|
value: input.description
|
|
3458
3688
|
})].every((flag) => flag);
|
|
3459
|
-
const
|
|
3689
|
+
const _vo48 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3460
3690
|
path: _path + ".enabled",
|
|
3461
3691
|
expected: "(boolean | undefined)",
|
|
3462
3692
|
value: input.enabled
|
|
@@ -3464,7 +3694,7 @@ var validateCloudConfig = (() => {
|
|
|
3464
3694
|
path: _path + ".capabilities",
|
|
3465
3695
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3466
3696
|
value: input.capabilities
|
|
3467
|
-
})) &&
|
|
3697
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3468
3698
|
path: _path + ".capabilities",
|
|
3469
3699
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3470
3700
|
value: input.capabilities
|
|
@@ -3476,8 +3706,8 @@ var validateCloudConfig = (() => {
|
|
|
3476
3706
|
path: _path + ".allowFrom",
|
|
3477
3707
|
expected: "(Array<string> | undefined)",
|
|
3478
3708
|
value: input.allowFrom
|
|
3479
|
-
})) && input.allowFrom.map((elem,
|
|
3480
|
-
path: _path + ".allowFrom[" +
|
|
3709
|
+
})) && input.allowFrom.map((elem, _index60) => "string" === typeof elem || _report(_exceptionable, {
|
|
3710
|
+
path: _path + ".allowFrom[" + _index60 + "]",
|
|
3481
3711
|
expected: "string",
|
|
3482
3712
|
value: elem
|
|
3483
3713
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3524,7 +3754,7 @@ var validateCloudConfig = (() => {
|
|
|
3524
3754
|
path: _path + ".guilds",
|
|
3525
3755
|
expected: "(Record<string, unknown> | undefined)",
|
|
3526
3756
|
value: input.guilds
|
|
3527
|
-
})) &&
|
|
3757
|
+
})) && _vo5(input.guilds, _path + ".guilds", _exceptionable) || _report(_exceptionable, {
|
|
3528
3758
|
path: _path + ".guilds",
|
|
3529
3759
|
expected: "(Record<string, unknown> | undefined)",
|
|
3530
3760
|
value: input.guilds
|
|
@@ -3541,7 +3771,7 @@ var validateCloudConfig = (() => {
|
|
|
3541
3771
|
expected: '("length" | "newline" | undefined)',
|
|
3542
3772
|
value: input.chunkMode
|
|
3543
3773
|
})].every((flag) => flag);
|
|
3544
|
-
const
|
|
3774
|
+
const _vo49 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3545
3775
|
path: _path + ".enabled",
|
|
3546
3776
|
expected: "(boolean | undefined)",
|
|
3547
3777
|
value: input.enabled
|
|
@@ -3549,7 +3779,7 @@ var validateCloudConfig = (() => {
|
|
|
3549
3779
|
path: _path + ".capabilities",
|
|
3550
3780
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3551
3781
|
value: input.capabilities
|
|
3552
|
-
})) &&
|
|
3782
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3553
3783
|
path: _path + ".capabilities",
|
|
3554
3784
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3555
3785
|
value: input.capabilities
|
|
@@ -3561,8 +3791,8 @@ var validateCloudConfig = (() => {
|
|
|
3561
3791
|
path: _path + ".allowFrom",
|
|
3562
3792
|
expected: "(Array<string> | undefined)",
|
|
3563
3793
|
value: input.allowFrom
|
|
3564
|
-
})) && input.allowFrom.map((elem,
|
|
3565
|
-
path: _path + ".allowFrom[" +
|
|
3794
|
+
})) && input.allowFrom.map((elem, _index61) => "string" === typeof elem || _report(_exceptionable, {
|
|
3795
|
+
path: _path + ".allowFrom[" + _index61 + "]",
|
|
3566
3796
|
expected: "string",
|
|
3567
3797
|
value: elem
|
|
3568
3798
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3609,7 +3839,7 @@ var validateCloudConfig = (() => {
|
|
|
3609
3839
|
path: _path + ".channels",
|
|
3610
3840
|
expected: "(Record<string, unknown> | undefined)",
|
|
3611
3841
|
value: input.channels
|
|
3612
|
-
})) &&
|
|
3842
|
+
})) && _vo5(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
3613
3843
|
path: _path + ".channels",
|
|
3614
3844
|
expected: "(Record<string, unknown> | undefined)",
|
|
3615
3845
|
value: input.channels
|
|
@@ -3618,7 +3848,7 @@ var validateCloudConfig = (() => {
|
|
|
3618
3848
|
expected: "(boolean | undefined)",
|
|
3619
3849
|
value: input.allowBots
|
|
3620
3850
|
})].every((flag) => flag);
|
|
3621
|
-
const
|
|
3851
|
+
const _vo50 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3622
3852
|
path: _path + ".enabled",
|
|
3623
3853
|
expected: "(boolean | undefined)",
|
|
3624
3854
|
value: input.enabled
|
|
@@ -3626,7 +3856,7 @@ var validateCloudConfig = (() => {
|
|
|
3626
3856
|
path: _path + ".capabilities",
|
|
3627
3857
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3628
3858
|
value: input.capabilities
|
|
3629
|
-
})) &&
|
|
3859
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3630
3860
|
path: _path + ".capabilities",
|
|
3631
3861
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3632
3862
|
value: input.capabilities
|
|
@@ -3638,8 +3868,8 @@ var validateCloudConfig = (() => {
|
|
|
3638
3868
|
path: _path + ".allowFrom",
|
|
3639
3869
|
expected: "(Array<string> | undefined)",
|
|
3640
3870
|
value: input.allowFrom
|
|
3641
|
-
})) && input.allowFrom.map((elem,
|
|
3642
|
-
path: _path + ".allowFrom[" +
|
|
3871
|
+
})) && input.allowFrom.map((elem, _index62) => "string" === typeof elem || _report(_exceptionable, {
|
|
3872
|
+
path: _path + ".allowFrom[" + _index62 + "]",
|
|
3643
3873
|
expected: "string",
|
|
3644
3874
|
value: elem
|
|
3645
3875
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3690,12 +3920,12 @@ var validateCloudConfig = (() => {
|
|
|
3690
3920
|
path: _path + ".groups",
|
|
3691
3921
|
expected: "(Record<string, unknown> | undefined)",
|
|
3692
3922
|
value: input.groups
|
|
3693
|
-
})) &&
|
|
3923
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3694
3924
|
path: _path + ".groups",
|
|
3695
3925
|
expected: "(Record<string, unknown> | undefined)",
|
|
3696
3926
|
value: input.groups
|
|
3697
3927
|
})].every((flag) => flag);
|
|
3698
|
-
const
|
|
3928
|
+
const _vo51 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3699
3929
|
path: _path + ".enabled",
|
|
3700
3930
|
expected: "(boolean | undefined)",
|
|
3701
3931
|
value: input.enabled
|
|
@@ -3703,7 +3933,7 @@ var validateCloudConfig = (() => {
|
|
|
3703
3933
|
path: _path + ".capabilities",
|
|
3704
3934
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3705
3935
|
value: input.capabilities
|
|
3706
|
-
})) &&
|
|
3936
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3707
3937
|
path: _path + ".capabilities",
|
|
3708
3938
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3709
3939
|
value: input.capabilities
|
|
@@ -3715,8 +3945,8 @@ var validateCloudConfig = (() => {
|
|
|
3715
3945
|
path: _path + ".allowFrom",
|
|
3716
3946
|
expected: "(Array<string> | undefined)",
|
|
3717
3947
|
value: input.allowFrom
|
|
3718
|
-
})) && input.allowFrom.map((elem,
|
|
3719
|
-
path: _path + ".allowFrom[" +
|
|
3948
|
+
})) && input.allowFrom.map((elem, _index63) => "string" === typeof elem || _report(_exceptionable, {
|
|
3949
|
+
path: _path + ".allowFrom[" + _index63 + "]",
|
|
3720
3950
|
expected: "string",
|
|
3721
3951
|
value: elem
|
|
3722
3952
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3755,12 +3985,12 @@ var validateCloudConfig = (() => {
|
|
|
3755
3985
|
path: _path + ".accounts",
|
|
3756
3986
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3757
3987
|
value: input.accounts
|
|
3758
|
-
})) &&
|
|
3988
|
+
})) && _vo52(input.accounts, _path + ".accounts", _exceptionable) || _report(_exceptionable, {
|
|
3759
3989
|
path: _path + ".accounts",
|
|
3760
3990
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3761
3991
|
value: input.accounts
|
|
3762
3992
|
})].every((flag) => flag);
|
|
3763
|
-
const
|
|
3993
|
+
const _vo52 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3764
3994
|
const value = input[key];
|
|
3765
3995
|
if (void 0 === value)
|
|
3766
3996
|
return true;
|
|
@@ -3768,13 +3998,13 @@ var validateCloudConfig = (() => {
|
|
|
3768
3998
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3769
3999
|
expected: "__type.o29",
|
|
3770
4000
|
value
|
|
3771
|
-
})) &&
|
|
4001
|
+
})) && _vo53(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3772
4002
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3773
4003
|
expected: "__type.o29",
|
|
3774
4004
|
value
|
|
3775
4005
|
});
|
|
3776
4006
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3777
|
-
const
|
|
4007
|
+
const _vo53 = (input, _path, _exceptionable = true) => [void 0 === input.token || "string" === typeof input.token || _report(_exceptionable, {
|
|
3778
4008
|
path: _path + ".token",
|
|
3779
4009
|
expected: "(string | undefined)",
|
|
3780
4010
|
value: input.token
|
|
@@ -3790,12 +4020,12 @@ var validateCloudConfig = (() => {
|
|
|
3790
4020
|
path: _path + ".capabilities",
|
|
3791
4021
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3792
4022
|
value: input.capabilities
|
|
3793
|
-
})) &&
|
|
4023
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3794
4024
|
path: _path + ".capabilities",
|
|
3795
4025
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3796
4026
|
value: input.capabilities
|
|
3797
4027
|
})].every((flag) => flag);
|
|
3798
|
-
const
|
|
4028
|
+
const _vo54 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3799
4029
|
path: _path + ".enabled",
|
|
3800
4030
|
expected: "(boolean | undefined)",
|
|
3801
4031
|
value: input.enabled
|
|
@@ -3803,7 +4033,7 @@ var validateCloudConfig = (() => {
|
|
|
3803
4033
|
path: _path + ".dispatch",
|
|
3804
4034
|
expected: "(__type.o30 | undefined)",
|
|
3805
4035
|
value: input.dispatch
|
|
3806
|
-
})) &&
|
|
4036
|
+
})) && _vo55(input.dispatch, _path + ".dispatch", _exceptionable) || _report(_exceptionable, {
|
|
3807
4037
|
path: _path + ".dispatch",
|
|
3808
4038
|
expected: "(__type.o30 | undefined)",
|
|
3809
4039
|
value: input.dispatch
|
|
@@ -3819,8 +4049,8 @@ var validateCloudConfig = (() => {
|
|
|
3819
4049
|
path: _path + ".allowedAgents",
|
|
3820
4050
|
expected: "(Array<string> | undefined)",
|
|
3821
4051
|
value: input.allowedAgents
|
|
3822
|
-
})) && input.allowedAgents.map((elem,
|
|
3823
|
-
path: _path + ".allowedAgents[" +
|
|
4052
|
+
})) && input.allowedAgents.map((elem, _index64) => "string" === typeof elem || _report(_exceptionable, {
|
|
4053
|
+
path: _path + ".allowedAgents[" + _index64 + "]",
|
|
3824
4054
|
expected: "string",
|
|
3825
4055
|
value: elem
|
|
3826
4056
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3839,7 +4069,7 @@ var validateCloudConfig = (() => {
|
|
|
3839
4069
|
path: _path + ".stream",
|
|
3840
4070
|
expected: "(__type.o31 | undefined)",
|
|
3841
4071
|
value: input.stream
|
|
3842
|
-
})) &&
|
|
4072
|
+
})) && _vo56(input.stream, _path + ".stream", _exceptionable) || _report(_exceptionable, {
|
|
3843
4073
|
path: _path + ".stream",
|
|
3844
4074
|
expected: "(__type.o31 | undefined)",
|
|
3845
4075
|
value: input.stream
|
|
@@ -3847,17 +4077,17 @@ var validateCloudConfig = (() => {
|
|
|
3847
4077
|
path: _path + ".runtime",
|
|
3848
4078
|
expected: "(__type.o32 | undefined)",
|
|
3849
4079
|
value: input.runtime
|
|
3850
|
-
})) &&
|
|
4080
|
+
})) && _vo57(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3851
4081
|
path: _path + ".runtime",
|
|
3852
4082
|
expected: "(__type.o32 | undefined)",
|
|
3853
4083
|
value: input.runtime
|
|
3854
4084
|
})].every((flag) => flag);
|
|
3855
|
-
const
|
|
4085
|
+
const _vo55 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3856
4086
|
path: _path + ".enabled",
|
|
3857
4087
|
expected: "(boolean | undefined)",
|
|
3858
4088
|
value: input.enabled
|
|
3859
4089
|
})].every((flag) => flag);
|
|
3860
|
-
const
|
|
4090
|
+
const _vo56 = (input, _path, _exceptionable = true) => [void 0 === input.coalesceIdleMs || "number" === typeof input.coalesceIdleMs || _report(_exceptionable, {
|
|
3861
4091
|
path: _path + ".coalesceIdleMs",
|
|
3862
4092
|
expected: "(number | undefined)",
|
|
3863
4093
|
value: input.coalesceIdleMs
|
|
@@ -3882,12 +4112,12 @@ var validateCloudConfig = (() => {
|
|
|
3882
4112
|
expected: "(number | undefined)",
|
|
3883
4113
|
value: input.maxSessionUpdateChars
|
|
3884
4114
|
})].every((flag) => flag);
|
|
3885
|
-
const
|
|
4115
|
+
const _vo57 = (input, _path, _exceptionable = true) => [void 0 === input.ttlMinutes || "number" === typeof input.ttlMinutes || _report(_exceptionable, {
|
|
3886
4116
|
path: _path + ".ttlMinutes",
|
|
3887
4117
|
expected: "(number | undefined)",
|
|
3888
4118
|
value: input.ttlMinutes
|
|
3889
4119
|
})].every((flag) => flag);
|
|
3890
|
-
const
|
|
4120
|
+
const _vo58 = (input, _path, _exceptionable = true) => [void 0 === input.scope || "string" === typeof input.scope || _report(_exceptionable, {
|
|
3891
4121
|
path: _path + ".scope",
|
|
3892
4122
|
expected: "(string | undefined)",
|
|
3893
4123
|
value: input.scope
|
|
@@ -3899,7 +4129,7 @@ var validateCloudConfig = (() => {
|
|
|
3899
4129
|
path: _path + ".reset",
|
|
3900
4130
|
expected: "(__type.o33 | undefined)",
|
|
3901
4131
|
value: input.reset
|
|
3902
|
-
})) &&
|
|
4132
|
+
})) && _vo59(input.reset, _path + ".reset", _exceptionable) || _report(_exceptionable, {
|
|
3903
4133
|
path: _path + ".reset",
|
|
3904
4134
|
expected: "(__type.o33 | undefined)",
|
|
3905
4135
|
value: input.reset
|
|
@@ -3907,7 +4137,7 @@ var validateCloudConfig = (() => {
|
|
|
3907
4137
|
path: _path + ".resetByType",
|
|
3908
4138
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3909
4139
|
value: input.resetByType
|
|
3910
|
-
})) &&
|
|
4140
|
+
})) && _vo60(input.resetByType, _path + ".resetByType", _exceptionable) || _report(_exceptionable, {
|
|
3911
4141
|
path: _path + ".resetByType",
|
|
3912
4142
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3913
4143
|
value: input.resetByType
|
|
@@ -3915,8 +4145,8 @@ var validateCloudConfig = (() => {
|
|
|
3915
4145
|
path: _path + ".resetTriggers",
|
|
3916
4146
|
expected: "(Array<string> | undefined)",
|
|
3917
4147
|
value: input.resetTriggers
|
|
3918
|
-
})) && input.resetTriggers.map((elem,
|
|
3919
|
-
path: _path + ".resetTriggers[" +
|
|
4148
|
+
})) && input.resetTriggers.map((elem, _index65) => "string" === typeof elem || _report(_exceptionable, {
|
|
4149
|
+
path: _path + ".resetTriggers[" + _index65 + "]",
|
|
3920
4150
|
expected: "string",
|
|
3921
4151
|
value: elem
|
|
3922
4152
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3931,12 +4161,12 @@ var validateCloudConfig = (() => {
|
|
|
3931
4161
|
path: _path + ".threadBindings",
|
|
3932
4162
|
expected: "(__type.o35 | undefined)",
|
|
3933
4163
|
value: input.threadBindings
|
|
3934
|
-
})) &&
|
|
4164
|
+
})) && _vo62(input.threadBindings, _path + ".threadBindings", _exceptionable) || _report(_exceptionable, {
|
|
3935
4165
|
path: _path + ".threadBindings",
|
|
3936
4166
|
expected: "(__type.o35 | undefined)",
|
|
3937
4167
|
value: input.threadBindings
|
|
3938
4168
|
})].every((flag) => flag);
|
|
3939
|
-
const
|
|
4169
|
+
const _vo59 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3940
4170
|
path: _path + ".mode",
|
|
3941
4171
|
expected: '("daily" | "idle" | undefined)',
|
|
3942
4172
|
value: input.mode
|
|
@@ -3949,7 +4179,7 @@ var validateCloudConfig = (() => {
|
|
|
3949
4179
|
expected: "(number | undefined)",
|
|
3950
4180
|
value: input.idleMinutes
|
|
3951
4181
|
})].every((flag) => flag);
|
|
3952
|
-
const
|
|
4182
|
+
const _vo60 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3953
4183
|
const value = input[key];
|
|
3954
4184
|
if (void 0 === value)
|
|
3955
4185
|
return true;
|
|
@@ -3957,13 +4187,13 @@ var validateCloudConfig = (() => {
|
|
|
3957
4187
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3958
4188
|
expected: "__type.o34",
|
|
3959
4189
|
value
|
|
3960
|
-
})) &&
|
|
4190
|
+
})) && _vo61(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3961
4191
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3962
4192
|
expected: "__type.o34",
|
|
3963
4193
|
value
|
|
3964
4194
|
});
|
|
3965
4195
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3966
|
-
const
|
|
4196
|
+
const _vo61 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3967
4197
|
path: _path + ".mode",
|
|
3968
4198
|
expected: '("daily" | "idle" | undefined)',
|
|
3969
4199
|
value: input.mode
|
|
@@ -3976,7 +4206,7 @@ var validateCloudConfig = (() => {
|
|
|
3976
4206
|
expected: "(number | undefined)",
|
|
3977
4207
|
value: input.idleMinutes
|
|
3978
4208
|
})].every((flag) => flag);
|
|
3979
|
-
const
|
|
4209
|
+
const _vo62 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3980
4210
|
path: _path + ".enabled",
|
|
3981
4211
|
expected: "(boolean | undefined)",
|
|
3982
4212
|
value: input.enabled
|
|
@@ -3989,7 +4219,7 @@ var validateCloudConfig = (() => {
|
|
|
3989
4219
|
expected: "(number | undefined)",
|
|
3990
4220
|
value: input.maxAgeHours
|
|
3991
4221
|
})].every((flag) => flag);
|
|
3992
|
-
const
|
|
4222
|
+
const _vo63 = (input, _path, _exceptionable = true) => [void 0 === input.responsePrefix || "string" === typeof input.responsePrefix || _report(_exceptionable, {
|
|
3993
4223
|
path: _path + ".responsePrefix",
|
|
3994
4224
|
expected: "(string | undefined)",
|
|
3995
4225
|
value: input.responsePrefix
|
|
@@ -4009,7 +4239,7 @@ var validateCloudConfig = (() => {
|
|
|
4009
4239
|
path: _path + ".queue",
|
|
4010
4240
|
expected: "(__type.o36 | undefined)",
|
|
4011
4241
|
value: input.queue
|
|
4012
|
-
})) &&
|
|
4242
|
+
})) && _vo64(input.queue, _path + ".queue", _exceptionable) || _report(_exceptionable, {
|
|
4013
4243
|
path: _path + ".queue",
|
|
4014
4244
|
expected: "(__type.o36 | undefined)",
|
|
4015
4245
|
value: input.queue
|
|
@@ -4017,12 +4247,12 @@ var validateCloudConfig = (() => {
|
|
|
4017
4247
|
path: _path + ".groupChat",
|
|
4018
4248
|
expected: "(__type.o37 | undefined)",
|
|
4019
4249
|
value: input.groupChat
|
|
4020
|
-
})) &&
|
|
4250
|
+
})) && _vo65(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
4021
4251
|
path: _path + ".groupChat",
|
|
4022
4252
|
expected: "(__type.o37 | undefined)",
|
|
4023
4253
|
value: input.groupChat
|
|
4024
4254
|
})].every((flag) => flag);
|
|
4025
|
-
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, {
|
|
4026
4256
|
path: _path + ".mode",
|
|
4027
4257
|
expected: '("collect" | "followup" | "interrupt" | "queue" | "steer" | undefined)',
|
|
4028
4258
|
value: input.mode
|
|
@@ -4035,12 +4265,12 @@ var validateCloudConfig = (() => {
|
|
|
4035
4265
|
expected: "(number | undefined)",
|
|
4036
4266
|
value: input.cap
|
|
4037
4267
|
})].every((flag) => flag);
|
|
4038
|
-
const
|
|
4268
|
+
const _vo65 = (input, _path, _exceptionable = true) => [void 0 === input.historyLimit || "number" === typeof input.historyLimit || _report(_exceptionable, {
|
|
4039
4269
|
path: _path + ".historyLimit",
|
|
4040
4270
|
expected: "(number | undefined)",
|
|
4041
4271
|
value: input.historyLimit
|
|
4042
4272
|
})].every((flag) => flag);
|
|
4043
|
-
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, {
|
|
4044
4274
|
path: _path + ".profile",
|
|
4045
4275
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
4046
4276
|
value: input.profile
|
|
@@ -4048,8 +4278,8 @@ var validateCloudConfig = (() => {
|
|
|
4048
4278
|
path: _path + ".allow",
|
|
4049
4279
|
expected: "(Array<string> | undefined)",
|
|
4050
4280
|
value: input.allow
|
|
4051
|
-
})) && input.allow.map((elem,
|
|
4052
|
-
path: _path + ".allow[" +
|
|
4281
|
+
})) && input.allow.map((elem, _index66) => "string" === typeof elem || _report(_exceptionable, {
|
|
4282
|
+
path: _path + ".allow[" + _index66 + "]",
|
|
4053
4283
|
expected: "string",
|
|
4054
4284
|
value: elem
|
|
4055
4285
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4060,8 +4290,8 @@ var validateCloudConfig = (() => {
|
|
|
4060
4290
|
path: _path + ".deny",
|
|
4061
4291
|
expected: "(Array<string> | undefined)",
|
|
4062
4292
|
value: input.deny
|
|
4063
|
-
})) && input.deny.map((elem,
|
|
4064
|
-
path: _path + ".deny[" +
|
|
4293
|
+
})) && input.deny.map((elem, _index67) => "string" === typeof elem || _report(_exceptionable, {
|
|
4294
|
+
path: _path + ".deny[" + _index67 + "]",
|
|
4065
4295
|
expected: "string",
|
|
4066
4296
|
value: elem
|
|
4067
4297
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4072,8 +4302,8 @@ var validateCloudConfig = (() => {
|
|
|
4072
4302
|
path: _path + ".readOnly",
|
|
4073
4303
|
expected: "(Array<string> | undefined)",
|
|
4074
4304
|
value: input.readOnly
|
|
4075
|
-
})) && input.readOnly.map((elem,
|
|
4076
|
-
path: _path + ".readOnly[" +
|
|
4305
|
+
})) && input.readOnly.map((elem, _index68) => "string" === typeof elem || _report(_exceptionable, {
|
|
4306
|
+
path: _path + ".readOnly[" + _index68 + "]",
|
|
4077
4307
|
expected: "string",
|
|
4078
4308
|
value: elem
|
|
4079
4309
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4088,7 +4318,7 @@ var validateCloudConfig = (() => {
|
|
|
4088
4318
|
path: _path + ".elevated",
|
|
4089
4319
|
expected: "(__type.o38 | undefined)",
|
|
4090
4320
|
value: input.elevated
|
|
4091
|
-
})) &&
|
|
4321
|
+
})) && _vo67(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
4092
4322
|
path: _path + ".elevated",
|
|
4093
4323
|
expected: "(__type.o38 | undefined)",
|
|
4094
4324
|
value: input.elevated
|
|
@@ -4096,7 +4326,7 @@ var validateCloudConfig = (() => {
|
|
|
4096
4326
|
path: _path + ".exec",
|
|
4097
4327
|
expected: "(__type.o39 | undefined)",
|
|
4098
4328
|
value: input.exec
|
|
4099
|
-
})) &&
|
|
4329
|
+
})) && _vo69(input.exec, _path + ".exec", _exceptionable) || _report(_exceptionable, {
|
|
4100
4330
|
path: _path + ".exec",
|
|
4101
4331
|
expected: "(__type.o39 | undefined)",
|
|
4102
4332
|
value: input.exec
|
|
@@ -4104,7 +4334,7 @@ var validateCloudConfig = (() => {
|
|
|
4104
4334
|
path: _path + ".web",
|
|
4105
4335
|
expected: "(__type.o40 | undefined)",
|
|
4106
4336
|
value: input.web
|
|
4107
|
-
})) &&
|
|
4337
|
+
})) && _vo70(input.web, _path + ".web", _exceptionable) || _report(_exceptionable, {
|
|
4108
4338
|
path: _path + ".web",
|
|
4109
4339
|
expected: "(__type.o40 | undefined)",
|
|
4110
4340
|
value: input.web
|
|
@@ -4112,12 +4342,12 @@ var validateCloudConfig = (() => {
|
|
|
4112
4342
|
path: _path + ".sandbox",
|
|
4113
4343
|
expected: "(Record<string, unknown> | undefined)",
|
|
4114
4344
|
value: input.sandbox
|
|
4115
|
-
})) &&
|
|
4345
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4116
4346
|
path: _path + ".sandbox",
|
|
4117
4347
|
expected: "(Record<string, unknown> | undefined)",
|
|
4118
4348
|
value: input.sandbox
|
|
4119
4349
|
})].every((flag) => flag);
|
|
4120
|
-
const
|
|
4350
|
+
const _vo67 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4121
4351
|
path: _path + ".enabled",
|
|
4122
4352
|
expected: "(boolean | undefined)",
|
|
4123
4353
|
value: input.enabled
|
|
@@ -4125,12 +4355,12 @@ var validateCloudConfig = (() => {
|
|
|
4125
4355
|
path: _path + ".allowFrom",
|
|
4126
4356
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4127
4357
|
value: input.allowFrom
|
|
4128
|
-
})) &&
|
|
4358
|
+
})) && _vo68(input.allowFrom, _path + ".allowFrom", _exceptionable) || _report(_exceptionable, {
|
|
4129
4359
|
path: _path + ".allowFrom",
|
|
4130
4360
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4131
4361
|
value: input.allowFrom
|
|
4132
4362
|
})].every((flag) => flag);
|
|
4133
|
-
const
|
|
4363
|
+
const _vo68 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4134
4364
|
const value = input[key];
|
|
4135
4365
|
if (void 0 === value)
|
|
4136
4366
|
return true;
|
|
@@ -4138,8 +4368,8 @@ var validateCloudConfig = (() => {
|
|
|
4138
4368
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4139
4369
|
expected: "Array<string>",
|
|
4140
4370
|
value
|
|
4141
|
-
})) && value.map((elem,
|
|
4142
|
-
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 + "]",
|
|
4143
4373
|
expected: "string",
|
|
4144
4374
|
value: elem
|
|
4145
4375
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4148,7 +4378,7 @@ var validateCloudConfig = (() => {
|
|
|
4148
4378
|
value
|
|
4149
4379
|
});
|
|
4150
4380
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4151
|
-
const
|
|
4381
|
+
const _vo69 = (input, _path, _exceptionable = true) => [void 0 === input.backgroundMs || "number" === typeof input.backgroundMs || _report(_exceptionable, {
|
|
4152
4382
|
path: _path + ".backgroundMs",
|
|
4153
4383
|
expected: "(number | undefined)",
|
|
4154
4384
|
value: input.backgroundMs
|
|
@@ -4157,11 +4387,11 @@ var validateCloudConfig = (() => {
|
|
|
4157
4387
|
expected: "(number | undefined)",
|
|
4158
4388
|
value: input.timeoutSec
|
|
4159
4389
|
})].every((flag) => flag);
|
|
4160
|
-
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, {
|
|
4161
4391
|
path: _path + ".search",
|
|
4162
4392
|
expected: "(__type.o41 | undefined)",
|
|
4163
4393
|
value: input.search
|
|
4164
|
-
})) &&
|
|
4394
|
+
})) && _vo71(input.search, _path + ".search", _exceptionable) || _report(_exceptionable, {
|
|
4165
4395
|
path: _path + ".search",
|
|
4166
4396
|
expected: "(__type.o41 | undefined)",
|
|
4167
4397
|
value: input.search
|
|
@@ -4169,12 +4399,12 @@ var validateCloudConfig = (() => {
|
|
|
4169
4399
|
path: _path + ".fetch",
|
|
4170
4400
|
expected: "(__type.o42 | undefined)",
|
|
4171
4401
|
value: input.fetch
|
|
4172
|
-
})) &&
|
|
4402
|
+
})) && _vo72(input.fetch, _path + ".fetch", _exceptionable) || _report(_exceptionable, {
|
|
4173
4403
|
path: _path + ".fetch",
|
|
4174
4404
|
expected: "(__type.o42 | undefined)",
|
|
4175
4405
|
value: input.fetch
|
|
4176
4406
|
})].every((flag) => flag);
|
|
4177
|
-
const
|
|
4407
|
+
const _vo71 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4178
4408
|
path: _path + ".enabled",
|
|
4179
4409
|
expected: "(boolean | undefined)",
|
|
4180
4410
|
value: input.enabled
|
|
@@ -4187,7 +4417,7 @@ var validateCloudConfig = (() => {
|
|
|
4187
4417
|
expected: "(number | undefined)",
|
|
4188
4418
|
value: input.maxResults
|
|
4189
4419
|
})].every((flag) => flag);
|
|
4190
|
-
const
|
|
4420
|
+
const _vo72 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4191
4421
|
path: _path + ".enabled",
|
|
4192
4422
|
expected: "(boolean | undefined)",
|
|
4193
4423
|
value: input.enabled
|
|
@@ -4196,7 +4426,7 @@ var validateCloudConfig = (() => {
|
|
|
4196
4426
|
expected: "(number | undefined)",
|
|
4197
4427
|
value: input.maxChars
|
|
4198
4428
|
})].every((flag) => flag);
|
|
4199
|
-
const
|
|
4429
|
+
const _vo73 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "merge" === input.mode || "replace" === input.mode || _report(_exceptionable, {
|
|
4200
4430
|
path: _path + ".mode",
|
|
4201
4431
|
expected: '("merge" | "replace" | undefined)',
|
|
4202
4432
|
value: input.mode
|
|
@@ -4204,12 +4434,12 @@ var validateCloudConfig = (() => {
|
|
|
4204
4434
|
path: _path + ".providers",
|
|
4205
4435
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4206
4436
|
value: input.providers
|
|
4207
|
-
})) &&
|
|
4437
|
+
})) && _vo74(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4208
4438
|
path: _path + ".providers",
|
|
4209
4439
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4210
4440
|
value: input.providers
|
|
4211
4441
|
})].every((flag) => flag);
|
|
4212
|
-
const
|
|
4442
|
+
const _vo74 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4213
4443
|
const value = input[key];
|
|
4214
4444
|
if (void 0 === value)
|
|
4215
4445
|
return true;
|
|
@@ -4217,13 +4447,13 @@ var validateCloudConfig = (() => {
|
|
|
4217
4447
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4218
4448
|
expected: "OpenClawProviderConfig",
|
|
4219
4449
|
value
|
|
4220
|
-
})) &&
|
|
4450
|
+
})) && _vo16(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4221
4451
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4222
4452
|
expected: "OpenClawProviderConfig",
|
|
4223
4453
|
value
|
|
4224
4454
|
});
|
|
4225
4455
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4226
|
-
const
|
|
4456
|
+
const _vo75 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4227
4457
|
path: _path + ".enabled",
|
|
4228
4458
|
expected: "(boolean | undefined)",
|
|
4229
4459
|
value: input.enabled
|
|
@@ -4231,8 +4461,8 @@ var validateCloudConfig = (() => {
|
|
|
4231
4461
|
path: _path + ".allow",
|
|
4232
4462
|
expected: "(Array<string> | undefined)",
|
|
4233
4463
|
value: input.allow
|
|
4234
|
-
})) && input.allow.map((elem,
|
|
4235
|
-
path: _path + ".allow[" +
|
|
4464
|
+
})) && input.allow.map((elem, _index70) => "string" === typeof elem || _report(_exceptionable, {
|
|
4465
|
+
path: _path + ".allow[" + _index70 + "]",
|
|
4236
4466
|
expected: "string",
|
|
4237
4467
|
value: elem
|
|
4238
4468
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4243,8 +4473,8 @@ var validateCloudConfig = (() => {
|
|
|
4243
4473
|
path: _path + ".deny",
|
|
4244
4474
|
expected: "(Array<string> | undefined)",
|
|
4245
4475
|
value: input.deny
|
|
4246
|
-
})) && input.deny.map((elem,
|
|
4247
|
-
path: _path + ".deny[" +
|
|
4476
|
+
})) && input.deny.map((elem, _index71) => "string" === typeof elem || _report(_exceptionable, {
|
|
4477
|
+
path: _path + ".deny[" + _index71 + "]",
|
|
4248
4478
|
expected: "string",
|
|
4249
4479
|
value: elem
|
|
4250
4480
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4255,7 +4485,7 @@ var validateCloudConfig = (() => {
|
|
|
4255
4485
|
path: _path + ".load",
|
|
4256
4486
|
expected: "(__type.o43 | undefined)",
|
|
4257
4487
|
value: input.load
|
|
4258
|
-
})) &&
|
|
4488
|
+
})) && _vo76(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4259
4489
|
path: _path + ".load",
|
|
4260
4490
|
expected: "(__type.o43 | undefined)",
|
|
4261
4491
|
value: input.load
|
|
@@ -4263,17 +4493,17 @@ var validateCloudConfig = (() => {
|
|
|
4263
4493
|
path: _path + ".entries",
|
|
4264
4494
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4265
4495
|
value: input.entries
|
|
4266
|
-
})) &&
|
|
4496
|
+
})) && _vo77(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4267
4497
|
path: _path + ".entries",
|
|
4268
4498
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4269
4499
|
value: input.entries
|
|
4270
4500
|
})].every((flag) => flag);
|
|
4271
|
-
const
|
|
4501
|
+
const _vo76 = (input, _path, _exceptionable = true) => [void 0 === input.paths || (Array.isArray(input.paths) || _report(_exceptionable, {
|
|
4272
4502
|
path: _path + ".paths",
|
|
4273
4503
|
expected: "(Array<string> | undefined)",
|
|
4274
4504
|
value: input.paths
|
|
4275
|
-
})) && input.paths.map((elem,
|
|
4276
|
-
path: _path + ".paths[" +
|
|
4505
|
+
})) && input.paths.map((elem, _index72) => "string" === typeof elem || _report(_exceptionable, {
|
|
4506
|
+
path: _path + ".paths[" + _index72 + "]",
|
|
4277
4507
|
expected: "string",
|
|
4278
4508
|
value: elem
|
|
4279
4509
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4281,7 +4511,7 @@ var validateCloudConfig = (() => {
|
|
|
4281
4511
|
expected: "(Array<string> | undefined)",
|
|
4282
4512
|
value: input.paths
|
|
4283
4513
|
})].every((flag) => flag);
|
|
4284
|
-
const
|
|
4514
|
+
const _vo77 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4285
4515
|
const value = input[key];
|
|
4286
4516
|
if (void 0 === value)
|
|
4287
4517
|
return true;
|
|
@@ -4289,13 +4519,13 @@ var validateCloudConfig = (() => {
|
|
|
4289
4519
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4290
4520
|
expected: "__type.o44",
|
|
4291
4521
|
value
|
|
4292
|
-
})) &&
|
|
4522
|
+
})) && _vo78(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4293
4523
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4294
4524
|
expected: "__type.o44",
|
|
4295
4525
|
value
|
|
4296
4526
|
});
|
|
4297
4527
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4298
|
-
const
|
|
4528
|
+
const _vo78 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4299
4529
|
path: _path + ".enabled",
|
|
4300
4530
|
expected: "(boolean | undefined)",
|
|
4301
4531
|
value: input.enabled
|
|
@@ -4303,7 +4533,7 @@ var validateCloudConfig = (() => {
|
|
|
4303
4533
|
path: _path + ".config",
|
|
4304
4534
|
expected: "(Record<string, unknown> | undefined)",
|
|
4305
4535
|
value: input.config
|
|
4306
|
-
})) &&
|
|
4536
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4307
4537
|
path: _path + ".config",
|
|
4308
4538
|
expected: "(Record<string, unknown> | undefined)",
|
|
4309
4539
|
value: input.config
|
|
@@ -4311,22 +4541,22 @@ var validateCloudConfig = (() => {
|
|
|
4311
4541
|
path: _path + ".hooks",
|
|
4312
4542
|
expected: "(__type.o45 | undefined)",
|
|
4313
4543
|
value: input.hooks
|
|
4314
|
-
})) &&
|
|
4544
|
+
})) && _vo79(input.hooks, _path + ".hooks", _exceptionable) || _report(_exceptionable, {
|
|
4315
4545
|
path: _path + ".hooks",
|
|
4316
4546
|
expected: "(__type.o45 | undefined)",
|
|
4317
4547
|
value: input.hooks
|
|
4318
4548
|
})].every((flag) => flag);
|
|
4319
|
-
const
|
|
4549
|
+
const _vo79 = (input, _path, _exceptionable = true) => [void 0 === input.allowPromptInjection || "boolean" === typeof input.allowPromptInjection || _report(_exceptionable, {
|
|
4320
4550
|
path: _path + ".allowPromptInjection",
|
|
4321
4551
|
expected: "(boolean | undefined)",
|
|
4322
4552
|
value: input.allowPromptInjection
|
|
4323
4553
|
})].every((flag) => flag);
|
|
4324
|
-
const
|
|
4554
|
+
const _vo80 = (input, _path, _exceptionable = true) => [void 0 === input.allowBundled || (Array.isArray(input.allowBundled) || _report(_exceptionable, {
|
|
4325
4555
|
path: _path + ".allowBundled",
|
|
4326
4556
|
expected: "(Array<string> | undefined)",
|
|
4327
4557
|
value: input.allowBundled
|
|
4328
|
-
})) && input.allowBundled.map((elem,
|
|
4329
|
-
path: _path + ".allowBundled[" +
|
|
4558
|
+
})) && input.allowBundled.map((elem, _index73) => "string" === typeof elem || _report(_exceptionable, {
|
|
4559
|
+
path: _path + ".allowBundled[" + _index73 + "]",
|
|
4330
4560
|
expected: "string",
|
|
4331
4561
|
value: elem
|
|
4332
4562
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4337,7 +4567,7 @@ var validateCloudConfig = (() => {
|
|
|
4337
4567
|
path: _path + ".load",
|
|
4338
4568
|
expected: "(__type.o46 | undefined)",
|
|
4339
4569
|
value: input.load
|
|
4340
|
-
})) &&
|
|
4570
|
+
})) && _vo81(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4341
4571
|
path: _path + ".load",
|
|
4342
4572
|
expected: "(__type.o46 | undefined)",
|
|
4343
4573
|
value: input.load
|
|
@@ -4345,7 +4575,7 @@ var validateCloudConfig = (() => {
|
|
|
4345
4575
|
path: _path + ".install",
|
|
4346
4576
|
expected: "(__type.o47 | undefined)",
|
|
4347
4577
|
value: input.install
|
|
4348
|
-
})) &&
|
|
4578
|
+
})) && _vo82(input.install, _path + ".install", _exceptionable) || _report(_exceptionable, {
|
|
4349
4579
|
path: _path + ".install",
|
|
4350
4580
|
expected: "(__type.o47 | undefined)",
|
|
4351
4581
|
value: input.install
|
|
@@ -4353,17 +4583,17 @@ var validateCloudConfig = (() => {
|
|
|
4353
4583
|
path: _path + ".entries",
|
|
4354
4584
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4355
4585
|
value: input.entries
|
|
4356
|
-
})) &&
|
|
4586
|
+
})) && _vo83(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4357
4587
|
path: _path + ".entries",
|
|
4358
4588
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4359
4589
|
value: input.entries
|
|
4360
4590
|
})].every((flag) => flag);
|
|
4361
|
-
const
|
|
4591
|
+
const _vo81 = (input, _path, _exceptionable = true) => [void 0 === input.extraDirs || (Array.isArray(input.extraDirs) || _report(_exceptionable, {
|
|
4362
4592
|
path: _path + ".extraDirs",
|
|
4363
4593
|
expected: "(Array<string> | undefined)",
|
|
4364
4594
|
value: input.extraDirs
|
|
4365
|
-
})) && input.extraDirs.map((elem,
|
|
4366
|
-
path: _path + ".extraDirs[" +
|
|
4595
|
+
})) && input.extraDirs.map((elem, _index74) => "string" === typeof elem || _report(_exceptionable, {
|
|
4596
|
+
path: _path + ".extraDirs[" + _index74 + "]",
|
|
4367
4597
|
expected: "string",
|
|
4368
4598
|
value: elem
|
|
4369
4599
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4371,7 +4601,7 @@ var validateCloudConfig = (() => {
|
|
|
4371
4601
|
expected: "(Array<string> | undefined)",
|
|
4372
4602
|
value: input.extraDirs
|
|
4373
4603
|
})].every((flag) => flag);
|
|
4374
|
-
const
|
|
4604
|
+
const _vo82 = (input, _path, _exceptionable = true) => [void 0 === input.preferBrew || "boolean" === typeof input.preferBrew || _report(_exceptionable, {
|
|
4375
4605
|
path: _path + ".preferBrew",
|
|
4376
4606
|
expected: "(boolean | undefined)",
|
|
4377
4607
|
value: input.preferBrew
|
|
@@ -4380,7 +4610,7 @@ var validateCloudConfig = (() => {
|
|
|
4380
4610
|
expected: '("npm" | "pnpm" | "yarn" | undefined)',
|
|
4381
4611
|
value: input.nodeManager
|
|
4382
4612
|
})].every((flag) => flag);
|
|
4383
|
-
const
|
|
4613
|
+
const _vo83 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4384
4614
|
const value = input[key];
|
|
4385
4615
|
if (void 0 === value)
|
|
4386
4616
|
return true;
|
|
@@ -4388,13 +4618,13 @@ var validateCloudConfig = (() => {
|
|
|
4388
4618
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4389
4619
|
expected: "__type.o48",
|
|
4390
4620
|
value
|
|
4391
|
-
})) &&
|
|
4621
|
+
})) && _vo84(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4392
4622
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4393
4623
|
expected: "__type.o48",
|
|
4394
4624
|
value
|
|
4395
4625
|
});
|
|
4396
4626
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4397
|
-
const
|
|
4627
|
+
const _vo84 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4398
4628
|
path: _path + ".enabled",
|
|
4399
4629
|
expected: "(boolean | undefined)",
|
|
4400
4630
|
value: input.enabled
|
|
@@ -4414,12 +4644,12 @@ var validateCloudConfig = (() => {
|
|
|
4414
4644
|
path: _path + ".config",
|
|
4415
4645
|
expected: "(Record<string, unknown> | undefined)",
|
|
4416
4646
|
value: input.config
|
|
4417
|
-
})) &&
|
|
4647
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4418
4648
|
path: _path + ".config",
|
|
4419
4649
|
expected: "(Record<string, unknown> | undefined)",
|
|
4420
4650
|
value: input.config
|
|
4421
4651
|
})].every((flag) => flag);
|
|
4422
|
-
const
|
|
4652
|
+
const _vo85 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "local" === input.mode || "remote" === input.mode || _report(_exceptionable, {
|
|
4423
4653
|
path: _path + ".mode",
|
|
4424
4654
|
expected: '("local" | "remote" | undefined)',
|
|
4425
4655
|
value: input.mode
|
|
@@ -4439,7 +4669,7 @@ var validateCloudConfig = (() => {
|
|
|
4439
4669
|
path: _path + ".auth",
|
|
4440
4670
|
expected: "(__type.o49 | undefined)",
|
|
4441
4671
|
value: input.auth
|
|
4442
|
-
})) &&
|
|
4672
|
+
})) && _vo86(input.auth, _path + ".auth", _exceptionable) || _report(_exceptionable, {
|
|
4443
4673
|
path: _path + ".auth",
|
|
4444
4674
|
expected: "(__type.o49 | undefined)",
|
|
4445
4675
|
value: input.auth
|
|
@@ -4447,7 +4677,7 @@ var validateCloudConfig = (() => {
|
|
|
4447
4677
|
path: _path + ".tls",
|
|
4448
4678
|
expected: "(__type.o50 | undefined)",
|
|
4449
4679
|
value: input.tls
|
|
4450
|
-
})) &&
|
|
4680
|
+
})) && _vo87(input.tls, _path + ".tls", _exceptionable) || _report(_exceptionable, {
|
|
4451
4681
|
path: _path + ".tls",
|
|
4452
4682
|
expected: "(__type.o50 | undefined)",
|
|
4453
4683
|
value: input.tls
|
|
@@ -4455,12 +4685,12 @@ var validateCloudConfig = (() => {
|
|
|
4455
4685
|
path: _path + ".reload",
|
|
4456
4686
|
expected: "(__type.o51 | undefined)",
|
|
4457
4687
|
value: input.reload
|
|
4458
|
-
})) &&
|
|
4688
|
+
})) && _vo88(input.reload, _path + ".reload", _exceptionable) || _report(_exceptionable, {
|
|
4459
4689
|
path: _path + ".reload",
|
|
4460
4690
|
expected: "(__type.o51 | undefined)",
|
|
4461
4691
|
value: input.reload
|
|
4462
4692
|
})].every((flag) => flag);
|
|
4463
|
-
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, {
|
|
4464
4694
|
path: _path + ".mode",
|
|
4465
4695
|
expected: '("none" | "password" | "token" | "trusted-proxy" | undefined)',
|
|
4466
4696
|
value: input.mode
|
|
@@ -4477,7 +4707,7 @@ var validateCloudConfig = (() => {
|
|
|
4477
4707
|
expected: "(boolean | undefined)",
|
|
4478
4708
|
value: input.allowTailscale
|
|
4479
4709
|
})].every((flag) => flag);
|
|
4480
|
-
const
|
|
4710
|
+
const _vo87 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4481
4711
|
path: _path + ".enabled",
|
|
4482
4712
|
expected: "(boolean | undefined)",
|
|
4483
4713
|
value: input.enabled
|
|
@@ -4490,7 +4720,7 @@ var validateCloudConfig = (() => {
|
|
|
4490
4720
|
expected: "(string | undefined)",
|
|
4491
4721
|
value: input.keyPath
|
|
4492
4722
|
})].every((flag) => flag);
|
|
4493
|
-
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, {
|
|
4494
4724
|
path: _path + ".mode",
|
|
4495
4725
|
expected: '("hot" | "hybrid" | "off" | "restart" | undefined)',
|
|
4496
4726
|
value: input.mode
|
|
@@ -4499,7 +4729,7 @@ var validateCloudConfig = (() => {
|
|
|
4499
4729
|
expected: "(number | undefined)",
|
|
4500
4730
|
value: input.debounceMs
|
|
4501
4731
|
})].every((flag) => flag);
|
|
4502
|
-
const
|
|
4732
|
+
const _vo89 = (input, _path, _exceptionable = true) => [void 0 === input.level || "string" === typeof input.level || _report(_exceptionable, {
|
|
4503
4733
|
path: _path + ".level",
|
|
4504
4734
|
expected: "(string | undefined)",
|
|
4505
4735
|
value: input.level
|
|
@@ -4520,7 +4750,7 @@ var validateCloudConfig = (() => {
|
|
|
4520
4750
|
expected: '("off" | "tools" | undefined)',
|
|
4521
4751
|
value: input.redactSensitive
|
|
4522
4752
|
})].every((flag) => flag);
|
|
4523
|
-
const
|
|
4753
|
+
const _vo90 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4524
4754
|
const value = input[key];
|
|
4525
4755
|
if (void 0 === value)
|
|
4526
4756
|
return true;
|
|
@@ -4528,17 +4758,17 @@ var validateCloudConfig = (() => {
|
|
|
4528
4758
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4529
4759
|
expected: "VaultConfig",
|
|
4530
4760
|
value
|
|
4531
|
-
})) &&
|
|
4761
|
+
})) && _vo91(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4532
4762
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4533
4763
|
expected: "VaultConfig",
|
|
4534
4764
|
value
|
|
4535
4765
|
});
|
|
4536
4766
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4537
|
-
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, {
|
|
4538
4768
|
path: _path + ".providers",
|
|
4539
4769
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4540
4770
|
value: input.providers
|
|
4541
|
-
})) &&
|
|
4771
|
+
})) && _vo92(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4542
4772
|
path: _path + ".providers",
|
|
4543
4773
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4544
4774
|
value: input.providers
|
|
@@ -4551,7 +4781,7 @@ var validateCloudConfig = (() => {
|
|
|
4551
4781
|
expected: "(Record<string, string> | undefined)",
|
|
4552
4782
|
value: input.secrets
|
|
4553
4783
|
})].every((flag) => flag);
|
|
4554
|
-
const
|
|
4784
|
+
const _vo92 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4555
4785
|
const value = input[key];
|
|
4556
4786
|
if (void 0 === value)
|
|
4557
4787
|
return true;
|
|
@@ -4559,18 +4789,18 @@ var validateCloudConfig = (() => {
|
|
|
4559
4789
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4560
4790
|
expected: "VaultSecretSource",
|
|
4561
4791
|
value
|
|
4562
|
-
})) &&
|
|
4792
|
+
})) && _vo93(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4563
4793
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4564
4794
|
expected: "VaultSecretSource",
|
|
4565
4795
|
value
|
|
4566
4796
|
});
|
|
4567
4797
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4568
|
-
const
|
|
4798
|
+
const _vo93 = (input, _path, _exceptionable = true) => [void 0 === input.apiKey || "string" === typeof input.apiKey || _report(_exceptionable, {
|
|
4569
4799
|
path: _path + ".apiKey",
|
|
4570
4800
|
expected: "(string | undefined)",
|
|
4571
4801
|
value: input.apiKey
|
|
4572
4802
|
})].every((flag) => flag);
|
|
4573
|
-
const
|
|
4803
|
+
const _vo94 = (input, _path, _exceptionable = true) => [void 0 === input.namespace || "string" === typeof input.namespace || _report(_exceptionable, {
|
|
4574
4804
|
path: _path + ".namespace",
|
|
4575
4805
|
expected: "(string | undefined)",
|
|
4576
4806
|
value: input.namespace
|
|
@@ -4578,24 +4808,36 @@ var validateCloudConfig = (() => {
|
|
|
4578
4808
|
path: _path + ".backend",
|
|
4579
4809
|
expected: '("agent-sandbox" | "deployment" | undefined)',
|
|
4580
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
|
|
4581
4815
|
}), void 0 === input.sandbox || ("object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) || _report(_exceptionable, {
|
|
4582
4816
|
path: _path + ".sandbox",
|
|
4583
4817
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4584
4818
|
value: input.sandbox
|
|
4585
|
-
})) &&
|
|
4819
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4586
4820
|
path: _path + ".sandbox",
|
|
4587
4821
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4588
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
|
|
4589
4831
|
}), (Array.isArray(input.agents) || _report(_exceptionable, {
|
|
4590
4832
|
path: _path + ".agents",
|
|
4591
4833
|
expected: "Array<AgentDeployment>",
|
|
4592
4834
|
value: input.agents
|
|
4593
|
-
})) && input.agents.map((elem,
|
|
4594
|
-
path: _path + ".agents[" +
|
|
4835
|
+
})) && input.agents.map((elem, _index75) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
4836
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4595
4837
|
expected: "AgentDeployment",
|
|
4596
4838
|
value: elem
|
|
4597
|
-
})) &&
|
|
4598
|
-
path: _path + ".agents[" +
|
|
4839
|
+
})) && _vo101(elem, _path + ".agents[" + _index75 + "]", _exceptionable) || _report(_exceptionable, {
|
|
4840
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4599
4841
|
expected: "AgentDeployment",
|
|
4600
4842
|
value: elem
|
|
4601
4843
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4603,7 +4845,7 @@ var validateCloudConfig = (() => {
|
|
|
4603
4845
|
expected: "Array<AgentDeployment>",
|
|
4604
4846
|
value: input.agents
|
|
4605
4847
|
})].every((flag) => flag);
|
|
4606
|
-
const
|
|
4848
|
+
const _vo95 = (input, _path, _exceptionable = true) => [void 0 === input.runtimeClassName || "string" === typeof input.runtimeClassName || _report(_exceptionable, {
|
|
4607
4849
|
path: _path + ".runtimeClassName",
|
|
4608
4850
|
expected: "(string | undefined)",
|
|
4609
4851
|
value: input.runtimeClassName
|
|
@@ -4611,7 +4853,7 @@ var validateCloudConfig = (() => {
|
|
|
4611
4853
|
path: _path + ".state",
|
|
4612
4854
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4613
4855
|
value: input.state
|
|
4614
|
-
})) &&
|
|
4856
|
+
})) && _vo96(input.state, _path + ".state", _exceptionable) || _report(_exceptionable, {
|
|
4615
4857
|
path: _path + ".state",
|
|
4616
4858
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4617
4859
|
value: input.state
|
|
@@ -4619,7 +4861,7 @@ var validateCloudConfig = (() => {
|
|
|
4619
4861
|
path: _path + ".lifecycle",
|
|
4620
4862
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4621
4863
|
value: input.lifecycle
|
|
4622
|
-
})) &&
|
|
4864
|
+
})) && _vo97(input.lifecycle, _path + ".lifecycle", _exceptionable) || _report(_exceptionable, {
|
|
4623
4865
|
path: _path + ".lifecycle",
|
|
4624
4866
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4625
4867
|
value: input.lifecycle
|
|
@@ -4627,7 +4869,7 @@ var validateCloudConfig = (() => {
|
|
|
4627
4869
|
path: _path + ".backup",
|
|
4628
4870
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4629
4871
|
value: input.backup
|
|
4630
|
-
})) &&
|
|
4872
|
+
})) && _vo98(input.backup, _path + ".backup", _exceptionable) || _report(_exceptionable, {
|
|
4631
4873
|
path: _path + ".backup",
|
|
4632
4874
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4633
4875
|
value: input.backup
|
|
@@ -4635,12 +4877,12 @@ var validateCloudConfig = (() => {
|
|
|
4635
4877
|
path: _path + ".warmPool",
|
|
4636
4878
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4637
4879
|
value: input.warmPool
|
|
4638
|
-
})) &&
|
|
4880
|
+
})) && _vo99(input.warmPool, _path + ".warmPool", _exceptionable) || _report(_exceptionable, {
|
|
4639
4881
|
path: _path + ".warmPool",
|
|
4640
4882
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4641
4883
|
value: input.warmPool
|
|
4642
4884
|
})].every((flag) => flag);
|
|
4643
|
-
const
|
|
4885
|
+
const _vo96 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4644
4886
|
path: _path + ".enabled",
|
|
4645
4887
|
expected: "(boolean | undefined)",
|
|
4646
4888
|
value: input.enabled
|
|
@@ -4657,7 +4899,7 @@ var validateCloudConfig = (() => {
|
|
|
4657
4899
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
4658
4900
|
value: input.accessMode
|
|
4659
4901
|
})].every((flag) => flag);
|
|
4660
|
-
const
|
|
4902
|
+
const _vo97 = (input, _path, _exceptionable = true) => [void 0 === input.autoPause || "boolean" === typeof input.autoPause || _report(_exceptionable, {
|
|
4661
4903
|
path: _path + ".autoPause",
|
|
4662
4904
|
expected: "(boolean | undefined)",
|
|
4663
4905
|
value: input.autoPause
|
|
@@ -4678,7 +4920,7 @@ var validateCloudConfig = (() => {
|
|
|
4678
4920
|
expected: '("Delete" | "Retain" | undefined)',
|
|
4679
4921
|
value: input.shutdownPolicy
|
|
4680
4922
|
})].every((flag) => flag);
|
|
4681
|
-
const
|
|
4923
|
+
const _vo98 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4682
4924
|
path: _path + ".enabled",
|
|
4683
4925
|
expected: "(boolean | undefined)",
|
|
4684
4926
|
value: input.enabled
|
|
@@ -4699,7 +4941,7 @@ var validateCloudConfig = (() => {
|
|
|
4699
4941
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
4700
4942
|
value: input.retention
|
|
4701
4943
|
})].every((flag) => flag);
|
|
4702
|
-
const
|
|
4944
|
+
const _vo99 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4703
4945
|
path: _path + ".enabled",
|
|
4704
4946
|
expected: "(boolean | undefined)",
|
|
4705
4947
|
value: input.enabled
|
|
@@ -4716,7 +4958,40 @@ var validateCloudConfig = (() => {
|
|
|
4716
4958
|
expected: '("OnReplenish" | "Recreate" | undefined)',
|
|
4717
4959
|
value: input.updateStrategy
|
|
4718
4960
|
})].every((flag) => flag);
|
|
4719
|
-
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, {
|
|
4720
4995
|
path: _path + ".id",
|
|
4721
4996
|
expected: "string",
|
|
4722
4997
|
value: input.id
|
|
@@ -4744,7 +5019,7 @@ var validateCloudConfig = (() => {
|
|
|
4744
5019
|
path: _path + ".configuration",
|
|
4745
5020
|
expected: "AgentConfiguration",
|
|
4746
5021
|
value: input.configuration
|
|
4747
|
-
})) &&
|
|
5022
|
+
})) && _vo102(input.configuration, _path + ".configuration", _exceptionable) || _report(_exceptionable, {
|
|
4748
5023
|
path: _path + ".configuration",
|
|
4749
5024
|
expected: "AgentConfiguration",
|
|
4750
5025
|
value: input.configuration
|
|
@@ -4752,7 +5027,7 @@ var validateCloudConfig = (() => {
|
|
|
4752
5027
|
path: _path + ".resources",
|
|
4753
5028
|
expected: "(__type.o52 | undefined)",
|
|
4754
5029
|
value: input.resources
|
|
4755
|
-
})) &&
|
|
5030
|
+
})) && _vo103(input.resources, _path + ".resources", _exceptionable) || _report(_exceptionable, {
|
|
4756
5031
|
path: _path + ".resources",
|
|
4757
5032
|
expected: "(__type.o52 | undefined)",
|
|
4758
5033
|
value: input.resources
|
|
@@ -4768,7 +5043,7 @@ var validateCloudConfig = (() => {
|
|
|
4768
5043
|
path: _path + ".identity",
|
|
4769
5044
|
expected: "(AgentIdentity | undefined)",
|
|
4770
5045
|
value: input.identity
|
|
4771
|
-
})) &&
|
|
5046
|
+
})) && _vo105(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
4772
5047
|
path: _path + ".identity",
|
|
4773
5048
|
expected: "(AgentIdentity | undefined)",
|
|
4774
5049
|
value: input.identity
|
|
@@ -4776,7 +5051,7 @@ var validateCloudConfig = (() => {
|
|
|
4776
5051
|
path: _path + ".model",
|
|
4777
5052
|
expected: "(AgentModel | undefined)",
|
|
4778
5053
|
value: input.model
|
|
4779
|
-
})) &&
|
|
5054
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4780
5055
|
path: _path + ".model",
|
|
4781
5056
|
expected: "(AgentModel | undefined)",
|
|
4782
5057
|
value: input.model
|
|
@@ -4784,7 +5059,7 @@ var validateCloudConfig = (() => {
|
|
|
4784
5059
|
path: _path + ".compliance",
|
|
4785
5060
|
expected: "(AgentCompliance | undefined)",
|
|
4786
5061
|
value: input.compliance
|
|
4787
|
-
})) &&
|
|
5062
|
+
})) && _vo9(input.compliance, _path + ".compliance", _exceptionable) || _report(_exceptionable, {
|
|
4788
5063
|
path: _path + ".compliance",
|
|
4789
5064
|
expected: "(AgentCompliance | undefined)",
|
|
4790
5065
|
value: input.compliance
|
|
@@ -4792,12 +5067,12 @@ var validateCloudConfig = (() => {
|
|
|
4792
5067
|
path: _path + ".workflows",
|
|
4793
5068
|
expected: "(Array<AgentWorkflowDef> | undefined)",
|
|
4794
5069
|
value: input.workflows
|
|
4795
|
-
})) && input.workflows.map((elem,
|
|
4796
|
-
path: _path + ".workflows[" +
|
|
5070
|
+
})) && input.workflows.map((elem, _index77) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5071
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4797
5072
|
expected: "AgentWorkflowDef",
|
|
4798
5073
|
value: elem
|
|
4799
|
-
})) &&
|
|
4800
|
-
path: _path + ".workflows[" +
|
|
5074
|
+
})) && _vo106(elem, _path + ".workflows[" + _index77 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5075
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4801
5076
|
expected: "AgentWorkflowDef",
|
|
4802
5077
|
value: elem
|
|
4803
5078
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4808,12 +5083,12 @@ var validateCloudConfig = (() => {
|
|
|
4808
5083
|
path: _path + ".use",
|
|
4809
5084
|
expected: "(Array<UseEntry> | undefined)",
|
|
4810
5085
|
value: input.use
|
|
4811
|
-
})) && input.use.map((elem,
|
|
4812
|
-
path: _path + ".use[" +
|
|
5086
|
+
})) && input.use.map((elem, _index78) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5087
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4813
5088
|
expected: "UseEntry",
|
|
4814
5089
|
value: elem
|
|
4815
|
-
})) &&
|
|
4816
|
-
path: _path + ".use[" +
|
|
5090
|
+
})) && _vo10(elem, _path + ".use[" + _index78 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5091
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4817
5092
|
expected: "UseEntry",
|
|
4818
5093
|
value: elem
|
|
4819
5094
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4828,7 +5103,7 @@ var validateCloudConfig = (() => {
|
|
|
4828
5103
|
path: _path + ".source",
|
|
4829
5104
|
expected: "(AgentSource | undefined)",
|
|
4830
5105
|
value: input.source
|
|
4831
|
-
})) &&
|
|
5106
|
+
})) && _vo110(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
4832
5107
|
path: _path + ".source",
|
|
4833
5108
|
expected: "(AgentSource | undefined)",
|
|
4834
5109
|
value: input.source
|
|
@@ -4840,7 +5115,7 @@ var validateCloudConfig = (() => {
|
|
|
4840
5115
|
path: _path + ".permissions",
|
|
4841
5116
|
expected: "(AgentPermissions | undefined)",
|
|
4842
5117
|
value: input.permissions
|
|
4843
|
-
})) &&
|
|
5118
|
+
})) && _vo112(input.permissions, _path + ".permissions", _exceptionable) || _report(_exceptionable, {
|
|
4844
5119
|
path: _path + ".permissions",
|
|
4845
5120
|
expected: "(AgentPermissions | undefined)",
|
|
4846
5121
|
value: input.permissions
|
|
@@ -4848,7 +5123,7 @@ var validateCloudConfig = (() => {
|
|
|
4848
5123
|
path: _path + ".networking",
|
|
4849
5124
|
expected: "(AgentNetworking | undefined)",
|
|
4850
5125
|
value: input.networking
|
|
4851
|
-
})) &&
|
|
5126
|
+
})) && _vo114(input.networking, _path + ".networking", _exceptionable) || _report(_exceptionable, {
|
|
4852
5127
|
path: _path + ".networking",
|
|
4853
5128
|
expected: "(AgentNetworking | undefined)",
|
|
4854
5129
|
value: input.networking
|
|
@@ -4856,10 +5131,18 @@ var validateCloudConfig = (() => {
|
|
|
4856
5131
|
path: _path + ".sandbox",
|
|
4857
5132
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4858
5133
|
value: input.sandbox
|
|
4859
|
-
})) &&
|
|
5134
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4860
5135
|
path: _path + ".sandbox",
|
|
4861
5136
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4862
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
|
|
4863
5146
|
}), void 0 === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
4864
5147
|
path: _path + ".version",
|
|
4865
5148
|
expected: "(string | undefined)",
|
|
@@ -4869,7 +5152,7 @@ var validateCloudConfig = (() => {
|
|
|
4869
5152
|
expected: "(string | undefined)",
|
|
4870
5153
|
value: input.changelog
|
|
4871
5154
|
})].every((flag) => flag);
|
|
4872
|
-
const
|
|
5155
|
+
const _vo102 = (input, _path, _exceptionable = true) => [void 0 === input["extends"] || "string" === typeof input["extends"] || _report(_exceptionable, {
|
|
4873
5156
|
path: _path + '["extends"]',
|
|
4874
5157
|
expected: "(string | undefined)",
|
|
4875
5158
|
value: input["extends"]
|
|
@@ -4877,7 +5160,7 @@ var validateCloudConfig = (() => {
|
|
|
4877
5160
|
path: _path + ".model",
|
|
4878
5161
|
expected: "(AgentModel | undefined)",
|
|
4879
5162
|
value: input.model
|
|
4880
|
-
})) &&
|
|
5163
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4881
5164
|
path: _path + ".model",
|
|
4882
5165
|
expected: "(AgentModel | undefined)",
|
|
4883
5166
|
value: input.model
|
|
@@ -4885,7 +5168,7 @@ var validateCloudConfig = (() => {
|
|
|
4885
5168
|
path: _path + ".openclaw",
|
|
4886
5169
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4887
5170
|
value: input.openclaw
|
|
4888
|
-
})) &&
|
|
5171
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
4889
5172
|
path: _path + ".openclaw",
|
|
4890
5173
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4891
5174
|
value: input.openclaw
|
|
@@ -4897,11 +5180,11 @@ var validateCloudConfig = (() => {
|
|
|
4897
5180
|
return true;
|
|
4898
5181
|
return true;
|
|
4899
5182
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4900
|
-
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, {
|
|
4901
5184
|
path: _path + ".requests",
|
|
4902
5185
|
expected: "(K8sResources | undefined)",
|
|
4903
5186
|
value: input.requests
|
|
4904
|
-
})) &&
|
|
5187
|
+
})) && _vo104(input.requests, _path + ".requests", _exceptionable) || _report(_exceptionable, {
|
|
4905
5188
|
path: _path + ".requests",
|
|
4906
5189
|
expected: "(K8sResources | undefined)",
|
|
4907
5190
|
value: input.requests
|
|
@@ -4909,12 +5192,12 @@ var validateCloudConfig = (() => {
|
|
|
4909
5192
|
path: _path + ".limits",
|
|
4910
5193
|
expected: "(K8sResources | undefined)",
|
|
4911
5194
|
value: input.limits
|
|
4912
|
-
})) &&
|
|
5195
|
+
})) && _vo104(input.limits, _path + ".limits", _exceptionable) || _report(_exceptionable, {
|
|
4913
5196
|
path: _path + ".limits",
|
|
4914
5197
|
expected: "(K8sResources | undefined)",
|
|
4915
5198
|
value: input.limits
|
|
4916
5199
|
})].every((flag) => flag);
|
|
4917
|
-
const
|
|
5200
|
+
const _vo104 = (input, _path, _exceptionable = true) => [void 0 === input.cpu || "string" === typeof input.cpu || _report(_exceptionable, {
|
|
4918
5201
|
path: _path + ".cpu",
|
|
4919
5202
|
expected: "(string | undefined)",
|
|
4920
5203
|
value: input.cpu
|
|
@@ -4923,7 +5206,7 @@ var validateCloudConfig = (() => {
|
|
|
4923
5206
|
expected: "(string | undefined)",
|
|
4924
5207
|
value: input.memory
|
|
4925
5208
|
})].every((flag) => flag);
|
|
4926
|
-
const
|
|
5209
|
+
const _vo105 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
4927
5210
|
path: _path + ".name",
|
|
4928
5211
|
expected: "(string | undefined)",
|
|
4929
5212
|
value: input.name
|
|
@@ -4940,7 +5223,7 @@ var validateCloudConfig = (() => {
|
|
|
4940
5223
|
expected: "(string | undefined)",
|
|
4941
5224
|
value: input.systemPrompt
|
|
4942
5225
|
})].every((flag) => flag);
|
|
4943
|
-
const
|
|
5226
|
+
const _vo106 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
4944
5227
|
path: _path + ".name",
|
|
4945
5228
|
expected: "string",
|
|
4946
5229
|
value: input.name
|
|
@@ -4952,8 +5235,8 @@ var validateCloudConfig = (() => {
|
|
|
4952
5235
|
path: _path + ".triggers",
|
|
4953
5236
|
expected: "(Array<string> | undefined)",
|
|
4954
5237
|
value: input.triggers
|
|
4955
|
-
})) && input.triggers.map((elem,
|
|
4956
|
-
path: _path + ".triggers[" +
|
|
5238
|
+
})) && input.triggers.map((elem, _index79) => "string" === typeof elem || _report(_exceptionable, {
|
|
5239
|
+
path: _path + ".triggers[" + _index79 + "]",
|
|
4957
5240
|
expected: "string",
|
|
4958
5241
|
value: elem
|
|
4959
5242
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4968,7 +5251,7 @@ var validateCloudConfig = (() => {
|
|
|
4968
5251
|
path: _path + ".steps",
|
|
4969
5252
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4970
5253
|
value: input.steps
|
|
4971
|
-
})) &&
|
|
5254
|
+
})) && _vo107(input.steps, _path + ".steps", _exceptionable) || _report(_exceptionable, {
|
|
4972
5255
|
path: _path + ".steps",
|
|
4973
5256
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4974
5257
|
value: input.steps
|
|
@@ -4976,12 +5259,12 @@ var validateCloudConfig = (() => {
|
|
|
4976
5259
|
path: _path + ".errorHandling",
|
|
4977
5260
|
expected: "(__type.o53 | undefined)",
|
|
4978
5261
|
value: input.errorHandling
|
|
4979
|
-
})) &&
|
|
5262
|
+
})) && _vo109(input.errorHandling, _path + ".errorHandling", _exceptionable) || _report(_exceptionable, {
|
|
4980
5263
|
path: _path + ".errorHandling",
|
|
4981
5264
|
expected: "(__type.o53 | undefined)",
|
|
4982
5265
|
value: input.errorHandling
|
|
4983
5266
|
})].every((flag) => flag);
|
|
4984
|
-
const
|
|
5267
|
+
const _vo107 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4985
5268
|
const value = input[key];
|
|
4986
5269
|
if (void 0 === value)
|
|
4987
5270
|
return true;
|
|
@@ -4989,13 +5272,13 @@ var validateCloudConfig = (() => {
|
|
|
4989
5272
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4990
5273
|
expected: "AgentWorkflowStep",
|
|
4991
5274
|
value
|
|
4992
|
-
})) &&
|
|
5275
|
+
})) && _vo108(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4993
5276
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4994
5277
|
expected: "AgentWorkflowStep",
|
|
4995
5278
|
value
|
|
4996
5279
|
});
|
|
4997
5280
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4998
|
-
const
|
|
5281
|
+
const _vo108 = (input, _path, _exceptionable = true) => [void 0 === input.skill || "string" === typeof input.skill || _report(_exceptionable, {
|
|
4999
5282
|
path: _path + ".skill",
|
|
5000
5283
|
expected: "(string | undefined)",
|
|
5001
5284
|
value: input.skill
|
|
@@ -5011,8 +5294,8 @@ var validateCloudConfig = (() => {
|
|
|
5011
5294
|
path: _path + ".dependsOn",
|
|
5012
5295
|
expected: "(Array<string> | undefined)",
|
|
5013
5296
|
value: input.dependsOn
|
|
5014
|
-
})) && input.dependsOn.map((elem,
|
|
5015
|
-
path: _path + ".dependsOn[" +
|
|
5297
|
+
})) && input.dependsOn.map((elem, _index80) => "string" === typeof elem || _report(_exceptionable, {
|
|
5298
|
+
path: _path + ".dependsOn[" + _index80 + "]",
|
|
5016
5299
|
expected: "string",
|
|
5017
5300
|
value: elem
|
|
5018
5301
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5035,8 +5318,8 @@ var validateCloudConfig = (() => {
|
|
|
5035
5318
|
path: _path + ".conditions",
|
|
5036
5319
|
expected: "(Array<string> | undefined)",
|
|
5037
5320
|
value: input.conditions
|
|
5038
|
-
})) && input.conditions.map((elem,
|
|
5039
|
-
path: _path + ".conditions[" +
|
|
5321
|
+
})) && input.conditions.map((elem, _index81) => "string" === typeof elem || _report(_exceptionable, {
|
|
5322
|
+
path: _path + ".conditions[" + _index81 + "]",
|
|
5040
5323
|
expected: "string",
|
|
5041
5324
|
value: elem
|
|
5042
5325
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5044,7 +5327,7 @@ var validateCloudConfig = (() => {
|
|
|
5044
5327
|
expected: "(Array<string> | undefined)",
|
|
5045
5328
|
value: input.conditions
|
|
5046
5329
|
})].every((flag) => flag);
|
|
5047
|
-
const
|
|
5330
|
+
const _vo109 = (input, _path, _exceptionable = true) => [void 0 === input.onFailure || "retry" === input.onFailure || "notify" === input.onFailure || "abort" === input.onFailure || _report(_exceptionable, {
|
|
5048
5331
|
path: _path + ".onFailure",
|
|
5049
5332
|
expected: '("abort" | "notify" | "retry" | undefined)',
|
|
5050
5333
|
value: input.onFailure
|
|
@@ -5061,11 +5344,11 @@ var validateCloudConfig = (() => {
|
|
|
5061
5344
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
5062
5345
|
value: input.maxRetries
|
|
5063
5346
|
})].every((flag) => flag);
|
|
5064
|
-
const
|
|
5347
|
+
const _vo110 = (input, _path, _exceptionable = true) => [void 0 === input.git || ("object" === typeof input.git && null !== input.git || _report(_exceptionable, {
|
|
5065
5348
|
path: _path + ".git",
|
|
5066
5349
|
expected: "(GitSource | undefined)",
|
|
5067
5350
|
value: input.git
|
|
5068
|
-
})) &&
|
|
5351
|
+
})) && _vo111(input.git, _path + ".git", _exceptionable) || _report(_exceptionable, {
|
|
5069
5352
|
path: _path + ".git",
|
|
5070
5353
|
expected: "(GitSource | undefined)",
|
|
5071
5354
|
value: input.git
|
|
@@ -5085,8 +5368,8 @@ var validateCloudConfig = (() => {
|
|
|
5085
5368
|
path: _path + ".include",
|
|
5086
5369
|
expected: "(Array<string> | undefined)",
|
|
5087
5370
|
value: input.include
|
|
5088
|
-
})) && input.include.map((elem,
|
|
5089
|
-
path: _path + ".include[" +
|
|
5371
|
+
})) && input.include.map((elem, _index82) => "string" === typeof elem || _report(_exceptionable, {
|
|
5372
|
+
path: _path + ".include[" + _index82 + "]",
|
|
5090
5373
|
expected: "string",
|
|
5091
5374
|
value: elem
|
|
5092
5375
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5102,7 +5385,7 @@ var validateCloudConfig = (() => {
|
|
|
5102
5385
|
expected: "(string | undefined)",
|
|
5103
5386
|
value: input.imageTag
|
|
5104
5387
|
})].every((flag) => flag);
|
|
5105
|
-
const
|
|
5388
|
+
const _vo111 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
5106
5389
|
path: _path + ".url",
|
|
5107
5390
|
expected: "string",
|
|
5108
5391
|
value: input.url
|
|
@@ -5131,7 +5414,7 @@ var validateCloudConfig = (() => {
|
|
|
5131
5414
|
expected: "(string | undefined)",
|
|
5132
5415
|
value: input.tokenSecret
|
|
5133
5416
|
})].every((flag) => flag);
|
|
5134
|
-
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, {
|
|
5135
5418
|
path: _path + '["default"]',
|
|
5136
5419
|
expected: '("always-allow" | "always-ask" | "approve-reads" | "deny-all")',
|
|
5137
5420
|
value: input["default"]
|
|
@@ -5139,7 +5422,7 @@ var validateCloudConfig = (() => {
|
|
|
5139
5422
|
path: _path + ".tools",
|
|
5140
5423
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5141
5424
|
value: input.tools
|
|
5142
|
-
})) &&
|
|
5425
|
+
})) && _vo113(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
5143
5426
|
path: _path + ".tools",
|
|
5144
5427
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5145
5428
|
value: input.tools
|
|
@@ -5148,7 +5431,7 @@ var validateCloudConfig = (() => {
|
|
|
5148
5431
|
expected: '("deny" | "fail" | undefined)',
|
|
5149
5432
|
value: input.nonInteractive
|
|
5150
5433
|
})].every((flag) => flag);
|
|
5151
|
-
const
|
|
5434
|
+
const _vo113 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5152
5435
|
const value = input[key];
|
|
5153
5436
|
if (void 0 === value)
|
|
5154
5437
|
return true;
|
|
@@ -5158,7 +5441,7 @@ var validateCloudConfig = (() => {
|
|
|
5158
5441
|
value
|
|
5159
5442
|
});
|
|
5160
5443
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5161
|
-
const
|
|
5444
|
+
const _vo114 = (input, _path, _exceptionable = true) => ["deny-all" === input.type || "unrestricted" === input.type || "limited" === input.type || _report(_exceptionable, {
|
|
5162
5445
|
path: _path + ".type",
|
|
5163
5446
|
expected: '("deny-all" | "limited" | "unrestricted")',
|
|
5164
5447
|
value: input.type
|
|
@@ -5166,8 +5449,8 @@ var validateCloudConfig = (() => {
|
|
|
5166
5449
|
path: _path + ".allowedHosts",
|
|
5167
5450
|
expected: "(Array<string> | undefined)",
|
|
5168
5451
|
value: input.allowedHosts
|
|
5169
|
-
})) && input.allowedHosts.map((elem,
|
|
5170
|
-
path: _path + ".allowedHosts[" +
|
|
5452
|
+
})) && input.allowedHosts.map((elem, _index83) => "string" === typeof elem || _report(_exceptionable, {
|
|
5453
|
+
path: _path + ".allowedHosts[" + _index83 + "]",
|
|
5171
5454
|
expected: "string",
|
|
5172
5455
|
value: elem
|
|
5173
5456
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5183,7 +5466,7 @@ var validateCloudConfig = (() => {
|
|
|
5183
5466
|
expected: "(boolean | undefined)",
|
|
5184
5467
|
value: input.allowPackageManagers
|
|
5185
5468
|
})].every((flag) => flag);
|
|
5186
|
-
const
|
|
5469
|
+
const _vo115 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
5187
5470
|
path: _path + ".enabled",
|
|
5188
5471
|
expected: "boolean",
|
|
5189
5472
|
value: input.enabled
|
|
@@ -5204,7 +5487,7 @@ var validateCloudConfig = (() => {
|
|
|
5204
5487
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
5205
5488
|
value: input.accessMode
|
|
5206
5489
|
})].every((flag) => flag);
|
|
5207
|
-
const
|
|
5490
|
+
const _vo116 = (input, _path, _exceptionable = true) => [void 0 === input.installDir || "string" === typeof input.installDir || _report(_exceptionable, {
|
|
5208
5491
|
path: _path + ".installDir",
|
|
5209
5492
|
expected: "(string | undefined)",
|
|
5210
5493
|
value: input.installDir
|
|
@@ -5212,12 +5495,12 @@ var validateCloudConfig = (() => {
|
|
|
5212
5495
|
path: _path + ".entries",
|
|
5213
5496
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5214
5497
|
value: input.entries
|
|
5215
|
-
})) && input.entries.map((elem,
|
|
5216
|
-
path: _path + ".entries[" +
|
|
5498
|
+
})) && input.entries.map((elem, _index84) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5499
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5217
5500
|
expected: "CloudSkillEntry",
|
|
5218
5501
|
value: elem
|
|
5219
|
-
})) &&
|
|
5220
|
-
path: _path + ".entries[" +
|
|
5502
|
+
})) && _vo117(elem, _path + ".entries[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5503
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5221
5504
|
expected: "CloudSkillEntry",
|
|
5222
5505
|
value: elem
|
|
5223
5506
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5225,7 +5508,7 @@ var validateCloudConfig = (() => {
|
|
|
5225
5508
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5226
5509
|
value: input.entries
|
|
5227
5510
|
})].every((flag) => flag);
|
|
5228
|
-
const
|
|
5511
|
+
const _vo117 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
5229
5512
|
path: _path + ".name",
|
|
5230
5513
|
expected: "string",
|
|
5231
5514
|
value: input.name
|
|
@@ -5760,6 +6043,7 @@ export {
|
|
|
5760
6043
|
normalizeDeploymentRuntimeContext,
|
|
5761
6044
|
runtimeContextEnv,
|
|
5762
6045
|
collectPluginBuildEnvVars,
|
|
6046
|
+
collectPluginRuntimeEnvOmitKeys,
|
|
5763
6047
|
collectPluginRuntimeExtensions,
|
|
5764
6048
|
buildOpenClawConfig,
|
|
5765
6049
|
getRuntime,
|