@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
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
mergePluginFragments,
|
|
6
6
|
resolveAgentPluginConfig,
|
|
7
7
|
resolvePluginSecrets
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OL5VH6RN.js";
|
|
9
9
|
|
|
10
10
|
// src/config/parser.ts
|
|
11
11
|
import { readFile } from "fs/promises";
|
|
@@ -417,11 +417,40 @@ function collectPluginBuildEnvVars(agent, config, cwd, env) {
|
|
|
417
417
|
forEachEnabledPlugin(agent, config, cwd, env, ({ pluginDef, context }) => {
|
|
418
418
|
for (const fn of pluginDef._hooks.buildEnv) {
|
|
419
419
|
const vars = fn(context);
|
|
420
|
-
if (vars)
|
|
420
|
+
if (vars) mergeBuildEnvVars(envVars, vars);
|
|
421
421
|
}
|
|
422
422
|
});
|
|
423
423
|
return envVars;
|
|
424
424
|
}
|
|
425
|
+
function collectPluginRuntimeEnvOmitKeys(agent, config, cwd, env) {
|
|
426
|
+
const keys = /* @__PURE__ */ new Set();
|
|
427
|
+
forEachEnabledPlugin(agent, config, cwd, env, ({ pluginDef }) => {
|
|
428
|
+
for (const field of pluginDef.secretFields ?? []) {
|
|
429
|
+
if (field.runtime !== false) continue;
|
|
430
|
+
keys.add(field.key);
|
|
431
|
+
for (const alias of field.aliases ?? []) keys.add(alias);
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
return keys;
|
|
435
|
+
}
|
|
436
|
+
var COLON_SEPARATED_ENV_KEYS = /* @__PURE__ */ new Set(["PATH", "PYTHONPATH", "NODE_PATH"]);
|
|
437
|
+
function mergeColonSeparatedEnvValue(current, next) {
|
|
438
|
+
const out = [];
|
|
439
|
+
for (const part of [...current?.split(":") ?? [], ...next.split(":")]) {
|
|
440
|
+
if (!part || out.includes(part)) continue;
|
|
441
|
+
out.push(part);
|
|
442
|
+
}
|
|
443
|
+
return out.join(":");
|
|
444
|
+
}
|
|
445
|
+
function mergeBuildEnvVars(target, vars) {
|
|
446
|
+
for (const [key, value] of Object.entries(vars)) {
|
|
447
|
+
if (COLON_SEPARATED_ENV_KEYS.has(key) && target[key]) {
|
|
448
|
+
target[key] = mergeColonSeparatedEnvValue(target[key], value);
|
|
449
|
+
} else {
|
|
450
|
+
target[key] = value;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
425
454
|
function mergeRuntimeExtensions(target, fragment) {
|
|
426
455
|
const manifestPatches = [
|
|
427
456
|
...target.openclaw?.manifestPatches ?? [],
|
|
@@ -435,6 +464,13 @@ function mergeRuntimeExtensions(target, fragment) {
|
|
|
435
464
|
for (const artifact of fragment.artifacts ?? []) {
|
|
436
465
|
artifacts.set(artifact.kind, artifact);
|
|
437
466
|
}
|
|
467
|
+
const routineDeliveries = /* @__PURE__ */ new Map();
|
|
468
|
+
for (const delivery of target.routineDeliveries ?? []) {
|
|
469
|
+
routineDeliveries.set(`${delivery.pluginId}:${delivery.kind}:${delivery.routineId}`, delivery);
|
|
470
|
+
}
|
|
471
|
+
for (const delivery of fragment.routineDeliveries ?? []) {
|
|
472
|
+
routineDeliveries.set(`${delivery.pluginId}:${delivery.kind}:${delivery.routineId}`, delivery);
|
|
473
|
+
}
|
|
438
474
|
const runtimeDependencies = /* @__PURE__ */ new Map();
|
|
439
475
|
for (const dependency of target.runtimeDependencies ?? []) {
|
|
440
476
|
runtimeDependencies.set(dependency.id, dependency);
|
|
@@ -482,6 +518,7 @@ function mergeRuntimeExtensions(target, fragment) {
|
|
|
482
518
|
...manifestPatches.length > 0 ? { openclaw: { manifestPatches } } : {},
|
|
483
519
|
...shadowob ? { shadowob } : {},
|
|
484
520
|
...artifacts.size > 0 ? { artifacts: [...artifacts.values()] } : {},
|
|
521
|
+
...routineDeliveries.size > 0 ? { routineDeliveries: [...routineDeliveries.values()] } : {},
|
|
485
522
|
...runtimeDependencies.size > 0 ? { runtimeDependencies: [...runtimeDependencies.values()] } : {},
|
|
486
523
|
...skillSources.size > 0 ? { skillSources: [...skillSources.values()] } : {},
|
|
487
524
|
...subagentSources.size > 0 ? { subagentSources: [...subagentSources.values()] } : {},
|
|
@@ -702,10 +739,11 @@ var HOME_DIR = RUNNER_HOME_DIR;
|
|
|
702
739
|
var WORKSPACE_DIR = "/workspace";
|
|
703
740
|
var OPENCLAW_SKILLS_DIR = `${HOME_DIR}/.openclaw/skills`;
|
|
704
741
|
var CC_CONNECT_CONFIG_PATH = `${HOME_DIR}/.cc-connect/config.toml`;
|
|
742
|
+
var SHADOWOB_CLI_CONFIG_PATH = `${HOME_DIR}/.shadowob/shadowob.config.json`;
|
|
705
743
|
var SHADOW_SLASH_COMMANDS_PATH = `${SHADOWOB_CONFIG_MOUNT_PATH}/slash-commands.json`;
|
|
706
744
|
function hasRuntimeExtensions(extension) {
|
|
707
745
|
return Boolean(
|
|
708
|
-
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
|
|
746
|
+
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
|
|
709
747
|
);
|
|
710
748
|
}
|
|
711
749
|
function runtimeExtensionsForKind(extension, runtimeKind) {
|
|
@@ -756,7 +794,8 @@ function shadowBindings(runtimeExtensions) {
|
|
|
756
794
|
buddyName: account.buddyName
|
|
757
795
|
}));
|
|
758
796
|
}
|
|
759
|
-
function shadowPlatformOptions(shadow) {
|
|
797
|
+
function shadowPlatformOptions(shadow, options) {
|
|
798
|
+
const channelEnvKeys = [...new Set(options?.channelEnvKeys ?? [])].filter(Boolean);
|
|
760
799
|
return {
|
|
761
800
|
token: envPlaceholder(shadow.tokenEnvKey),
|
|
762
801
|
server_url: envPlaceholder(shadow.serverUrlEnvKey),
|
|
@@ -764,7 +803,8 @@ function shadowPlatformOptions(shadow) {
|
|
|
764
803
|
listen_dms: true,
|
|
765
804
|
share_session_in_channel: false,
|
|
766
805
|
progress_style: "compact",
|
|
767
|
-
slash_commands_path: envPlaceholder("SHADOW_SLASH_COMMANDS_PATH")
|
|
806
|
+
slash_commands_path: envPlaceholder("SHADOW_SLASH_COMMANDS_PATH"),
|
|
807
|
+
...channelEnvKeys.length > 0 ? { channel_ids: channelEnvKeys.map((key) => envPlaceholder(key)) } : {}
|
|
768
808
|
};
|
|
769
809
|
}
|
|
770
810
|
function buildIdentityWorkspaceFiles(agent) {
|
|
@@ -830,6 +870,80 @@ function addShadowobSkill(files, runtimeKind, runtimeId) {
|
|
|
830
870
|
files[`${HOME_DIR}/.hermes/skills/shadowob/SKILL.md`] = skill;
|
|
831
871
|
}
|
|
832
872
|
}
|
|
873
|
+
function addShadowobCliAuth(files, runtimeExtensions) {
|
|
874
|
+
const bindings = shadowBindings(runtimeExtensions);
|
|
875
|
+
const profiles = {};
|
|
876
|
+
for (const [index, binding] of bindings.entries()) {
|
|
877
|
+
const profileName = binding.buddyId?.trim() || (index === 0 ? "default" : `shadow-${index + 1}`);
|
|
878
|
+
profiles[profileName] = {
|
|
879
|
+
serverUrl: envPlaceholder(binding.serverUrlEnvKey),
|
|
880
|
+
token: envPlaceholder(binding.tokenEnvKey)
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
const currentProfile = Object.keys(profiles)[0] ?? "default";
|
|
884
|
+
files[SHADOWOB_CLI_CONFIG_PATH] = json({
|
|
885
|
+
profiles,
|
|
886
|
+
currentProfile
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
// src/runtimes/routines.ts
|
|
891
|
+
import { createHash } from "crypto";
|
|
892
|
+
var SHADOW_TEMPLATE_ROUTINES_PATH = `${SHADOWOB_CONFIG_MOUNT_PATH}/template-routines.json`;
|
|
893
|
+
function stableValue(value) {
|
|
894
|
+
if (Array.isArray(value)) return value.map(stableValue);
|
|
895
|
+
if (!value || typeof value !== "object") return value;
|
|
896
|
+
return Object.fromEntries(
|
|
897
|
+
Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, item]) => [key, stableValue(item)])
|
|
898
|
+
);
|
|
899
|
+
}
|
|
900
|
+
function sourceHash(value) {
|
|
901
|
+
return createHash("sha256").update(JSON.stringify(stableValue(value))).digest("hex");
|
|
902
|
+
}
|
|
903
|
+
function deliveriesForRoutine(runtimeExtensions, routineId) {
|
|
904
|
+
return (runtimeExtensions.routineDeliveries ?? []).filter(
|
|
905
|
+
(delivery) => delivery.routineId === routineId
|
|
906
|
+
);
|
|
907
|
+
}
|
|
908
|
+
function templateRoutinesForAgent(config, agent, runtimeExtensions) {
|
|
909
|
+
return (config.routines ?? []).filter((routine) => routine.enabled !== false).filter((routine) => routine.agentId === agent.id).map((routine) => ({
|
|
910
|
+
id: routine.id,
|
|
911
|
+
agentId: routine.agentId,
|
|
912
|
+
...routine.title ? { title: routine.title } : {},
|
|
913
|
+
...routine.description ? { description: routine.description } : {},
|
|
914
|
+
enabled: routine.enabled !== false,
|
|
915
|
+
schedule: routine.schedule,
|
|
916
|
+
prompt: routine.prompt,
|
|
917
|
+
deliveries: deliveriesForRoutine(runtimeExtensions, routine.id),
|
|
918
|
+
...routine.metadata ? { metadata: routine.metadata } : {},
|
|
919
|
+
sourceHash: sourceHash({
|
|
920
|
+
id: routine.id,
|
|
921
|
+
agentId: routine.agentId,
|
|
922
|
+
schedule: routine.schedule,
|
|
923
|
+
prompt: routine.prompt,
|
|
924
|
+
metadata: routine.metadata
|
|
925
|
+
})
|
|
926
|
+
}));
|
|
927
|
+
}
|
|
928
|
+
function firstRoutineDeliveryTargetValue(config, agent, runtimeExtensions, pluginId, key) {
|
|
929
|
+
for (const routine of templateRoutinesForAgent(config, agent, runtimeExtensions)) {
|
|
930
|
+
const delivery = routine.deliveries.find((item) => item.pluginId === pluginId);
|
|
931
|
+
if (delivery?.target[key] !== void 0) return delivery.target[key];
|
|
932
|
+
}
|
|
933
|
+
return void 0;
|
|
934
|
+
}
|
|
935
|
+
function appendTemplateRoutineFiles(files, config, agent, runtimeKind, runtimeExtensions) {
|
|
936
|
+
const routines = templateRoutinesForAgent(config, agent, runtimeExtensions);
|
|
937
|
+
if (routines.length === 0) return;
|
|
938
|
+
files[SHADOW_TEMPLATE_ROUTINES_PATH] = json({
|
|
939
|
+
version: 1,
|
|
940
|
+
agentId: agent.id,
|
|
941
|
+
runtime: runtimeKind,
|
|
942
|
+
syncPolicy: "preserve-runtime-edits",
|
|
943
|
+
notes: "Template routine seed. Runtime sync must preserve user-edited jobs unless the previous sourceHash still matches.",
|
|
944
|
+
routines
|
|
945
|
+
});
|
|
946
|
+
}
|
|
833
947
|
|
|
834
948
|
// src/runtimes/slash-commands/openclaw.ts
|
|
835
949
|
var OPENCLAW_SLASH_COMMANDS_SOURCE = "https://docs.openclaw.ai/tools/slash-commands";
|
|
@@ -926,6 +1040,14 @@ var openclawAdapter = {
|
|
|
926
1040
|
[SHADOW_SLASH_COMMANDS_PATH]: json(openClawSlashCommands)
|
|
927
1041
|
};
|
|
928
1042
|
addShadowobSkill(runtimeFiles, "openclaw", context.agent.runtime);
|
|
1043
|
+
addShadowobCliAuth(runtimeFiles, context.runtimeExtensions);
|
|
1044
|
+
appendTemplateRoutineFiles(
|
|
1045
|
+
runtimeFiles,
|
|
1046
|
+
context.config,
|
|
1047
|
+
context.agent,
|
|
1048
|
+
"openclaw",
|
|
1049
|
+
context.runtimeExtensions
|
|
1050
|
+
);
|
|
929
1051
|
const configData = {
|
|
930
1052
|
"config.json": JSON.stringify(openclawConfig, null, 2),
|
|
931
1053
|
"runtime-files.json": json(runtimeFiles),
|
|
@@ -956,6 +1078,11 @@ function buildCcConnectConfig(options) {
|
|
|
956
1078
|
const effort = reasoningEffort(agent);
|
|
957
1079
|
if (model) baseAgentOptions.model = model;
|
|
958
1080
|
if (effort) baseAgentOptions.reasoning_effort = effort;
|
|
1081
|
+
const routineChannelEnvKeys = [
|
|
1082
|
+
...new Set(
|
|
1083
|
+
(options.routineDeliveries ?? []).filter((delivery) => delivery.pluginId === "shadowob" && delivery.kind === "channel").map((delivery) => delivery.target.channelEnvKey).filter((key) => typeof key === "string" && key.trim().length > 0)
|
|
1084
|
+
)
|
|
1085
|
+
];
|
|
959
1086
|
const root = {
|
|
960
1087
|
data_dir: `${HOME_DIR}/.cc-connect`,
|
|
961
1088
|
language: "zh",
|
|
@@ -973,7 +1100,7 @@ function buildCcConnectConfig(options) {
|
|
|
973
1100
|
},
|
|
974
1101
|
platforms: options.shadows.map((shadow) => ({
|
|
975
1102
|
type: "shadowob",
|
|
976
|
-
options: shadowPlatformOptions(shadow)
|
|
1103
|
+
options: shadowPlatformOptions(shadow, { channelEnvKeys: routineChannelEnvKeys })
|
|
977
1104
|
}))
|
|
978
1105
|
}
|
|
979
1106
|
]
|
|
@@ -989,6 +1116,8 @@ function buildCcConnectRuntimeFiles(options) {
|
|
|
989
1116
|
...options.nativeFiles ?? {}
|
|
990
1117
|
};
|
|
991
1118
|
addShadowobSkill(files, "cc-connect", agent.runtime);
|
|
1119
|
+
addShadowobCliAuth(files, options.runtimeExtensions);
|
|
1120
|
+
appendTemplateRoutineFiles(files, options.config, agent, "cc-connect", options.runtimeExtensions);
|
|
992
1121
|
return files;
|
|
993
1122
|
}
|
|
994
1123
|
function buildCcConnectPackage(context, options) {
|
|
@@ -998,11 +1127,14 @@ function buildCcConnectPackage(context, options) {
|
|
|
998
1127
|
agent: context.agent,
|
|
999
1128
|
agentType: options.agentType,
|
|
1000
1129
|
shadows,
|
|
1130
|
+
routineDeliveries: nativeRuntimeExtensions.routineDeliveries,
|
|
1001
1131
|
agentOptions: options.agentOptions?.(context.agent)
|
|
1002
1132
|
});
|
|
1003
1133
|
const files = buildCcConnectRuntimeFiles({
|
|
1004
1134
|
agent: context.agent,
|
|
1135
|
+
config: context.config,
|
|
1005
1136
|
ccConnectConfig,
|
|
1137
|
+
runtimeExtensions: context.runtimeExtensions,
|
|
1006
1138
|
nativeFiles: options.nativeFiles?.(context),
|
|
1007
1139
|
shadowSlashCommands: options.shadowSlashCommands
|
|
1008
1140
|
});
|
|
@@ -1644,6 +1776,13 @@ function readHermesPluginFile(cwd, file, fallback) {
|
|
|
1644
1776
|
function buildHermesConfig(options) {
|
|
1645
1777
|
const { agent, shadow } = options;
|
|
1646
1778
|
const mcpServers = hermesMcpServers(options.runtimeExtensions);
|
|
1779
|
+
const homeChannelEnvKey = firstRoutineDeliveryTargetValue(
|
|
1780
|
+
options.config,
|
|
1781
|
+
agent,
|
|
1782
|
+
options.runtimeExtensions,
|
|
1783
|
+
"shadowob",
|
|
1784
|
+
"channelEnvKey"
|
|
1785
|
+
);
|
|
1647
1786
|
return stringifyYaml({
|
|
1648
1787
|
approvals: {
|
|
1649
1788
|
mode: nativePermissionMode(agent) === "allow" ? "manual" : "manual"
|
|
@@ -1662,6 +1801,7 @@ function buildHermesConfig(options) {
|
|
|
1662
1801
|
rest_only: false,
|
|
1663
1802
|
catchup_minutes: 0,
|
|
1664
1803
|
download_media: true,
|
|
1804
|
+
...typeof homeChannelEnvKey === "string" ? { home_channel: envPlaceholder(homeChannelEnvKey) } : {},
|
|
1665
1805
|
slash_commands: hermesSlashCommands
|
|
1666
1806
|
}
|
|
1667
1807
|
}
|
|
@@ -1681,6 +1821,7 @@ var hermesAdapter = {
|
|
|
1681
1821
|
...buildIdentityWorkspaceFiles(context.agent),
|
|
1682
1822
|
[`${HOME_DIR}/.hermes/config.yaml`]: buildHermesConfig({
|
|
1683
1823
|
agent: context.agent,
|
|
1824
|
+
config: context.config,
|
|
1684
1825
|
shadow,
|
|
1685
1826
|
runtimeExtensions: nativeRuntimeExtensions
|
|
1686
1827
|
}),
|
|
@@ -1694,6 +1835,14 @@ var hermesAdapter = {
|
|
|
1694
1835
|
[SHADOW_SLASH_COMMANDS_PATH]: json(hermesSlashCommands)
|
|
1695
1836
|
};
|
|
1696
1837
|
addShadowobSkill(files, "hermes", "hermes");
|
|
1838
|
+
addShadowobCliAuth(files, context.runtimeExtensions);
|
|
1839
|
+
appendTemplateRoutineFiles(
|
|
1840
|
+
files,
|
|
1841
|
+
context.config,
|
|
1842
|
+
context.agent,
|
|
1843
|
+
"hermes",
|
|
1844
|
+
nativeRuntimeExtensions
|
|
1845
|
+
);
|
|
1697
1846
|
const pluginRoot = `${HOME_DIR}/.hermes/plugins/shadowob`;
|
|
1698
1847
|
files[`${pluginRoot}/plugin.yaml`] = readHermesPluginFile(
|
|
1699
1848
|
context.cwd,
|
|
@@ -1755,7 +1904,7 @@ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_cr
|
|
|
1755
1904
|
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
1756
1905
|
import typia from "typia";
|
|
1757
1906
|
var validateCloudConfig = (() => {
|
|
1758
|
-
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 &&
|
|
1907
|
+
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));
|
|
1759
1908
|
const _io1 = (input) => Object.keys(input).every((key) => {
|
|
1760
1909
|
const value = input[key];
|
|
1761
1910
|
if (void 0 === value)
|
|
@@ -1768,24 +1917,26 @@ var validateCloudConfig = (() => {
|
|
|
1768
1917
|
return true;
|
|
1769
1918
|
return "string" === typeof value;
|
|
1770
1919
|
});
|
|
1771
|
-
const _io3 = (input) => "string" === typeof input.
|
|
1772
|
-
const _io4 = (input) => "string" === typeof input.
|
|
1773
|
-
const _io5 = (input) =>
|
|
1774
|
-
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);
|
|
1775
|
-
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));
|
|
1776
|
-
const _io8 = (input) => Object.keys(input).every((key) => {
|
|
1920
|
+
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));
|
|
1921
|
+
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));
|
|
1922
|
+
const _io5 = (input) => Object.keys(input).every((key) => {
|
|
1777
1923
|
const value = input[key];
|
|
1778
1924
|
if (void 0 === value)
|
|
1779
1925
|
return true;
|
|
1780
1926
|
return true;
|
|
1781
1927
|
});
|
|
1782
|
-
const
|
|
1928
|
+
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));
|
|
1929
|
+
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));
|
|
1930
|
+
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);
|
|
1931
|
+
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);
|
|
1932
|
+
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));
|
|
1933
|
+
const _io11 = (input) => Object.keys(input).every((key) => {
|
|
1783
1934
|
const value = input[key];
|
|
1784
1935
|
if (void 0 === value)
|
|
1785
1936
|
return true;
|
|
1786
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1937
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io12(value);
|
|
1787
1938
|
});
|
|
1788
|
-
const
|
|
1939
|
+
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) => {
|
|
1789
1940
|
if (["enabled", "config", "agents", "secrets"].some((prop) => key === prop))
|
|
1790
1941
|
return true;
|
|
1791
1942
|
const value = input[key];
|
|
@@ -1793,19 +1944,19 @@ var validateCloudConfig = (() => {
|
|
|
1793
1944
|
return true;
|
|
1794
1945
|
return true;
|
|
1795
1946
|
});
|
|
1796
|
-
const
|
|
1947
|
+
const _io13 = (input) => Object.keys(input).every((key) => {
|
|
1797
1948
|
const value = input[key];
|
|
1798
1949
|
if (void 0 === value)
|
|
1799
1950
|
return true;
|
|
1800
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1951
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io14(value);
|
|
1801
1952
|
});
|
|
1802
|
-
const
|
|
1803
|
-
const
|
|
1804
|
-
const
|
|
1805
|
-
const
|
|
1806
|
-
const
|
|
1807
|
-
const
|
|
1808
|
-
const
|
|
1953
|
+
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));
|
|
1954
|
+
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));
|
|
1955
|
+
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)));
|
|
1956
|
+
const _io17 = (input) => void 0 === input.allowPrivateNetwork || "boolean" === typeof input.allowPrivateNetwork;
|
|
1957
|
+
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));
|
|
1958
|
+
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);
|
|
1959
|
+
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) => {
|
|
1809
1960
|
if (["id", "extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1810
1961
|
return true;
|
|
1811
1962
|
const value = input[key];
|
|
@@ -1813,7 +1964,7 @@ var validateCloudConfig = (() => {
|
|
|
1813
1964
|
return true;
|
|
1814
1965
|
return true;
|
|
1815
1966
|
});
|
|
1816
|
-
const
|
|
1967
|
+
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) => {
|
|
1817
1968
|
if (["agents", "bindings", "channels", "acp", "session", "messages", "tools", "models", "plugins", "skills", "gateway", "logging", "env"].some((prop) => key === prop))
|
|
1818
1969
|
return true;
|
|
1819
1970
|
const value = input[key];
|
|
@@ -1821,32 +1972,32 @@ var validateCloudConfig = (() => {
|
|
|
1821
1972
|
return true;
|
|
1822
1973
|
return true;
|
|
1823
1974
|
});
|
|
1824
|
-
const
|
|
1825
|
-
const
|
|
1826
|
-
const
|
|
1827
|
-
const
|
|
1975
|
+
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)));
|
|
1976
|
+
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));
|
|
1977
|
+
const _io24 = (input) => "string" === typeof input.primary && (void 0 === input.fallbacks || Array.isArray(input.fallbacks) && input.fallbacks.every((elem) => "string" === typeof elem));
|
|
1978
|
+
const _io25 = (input) => Object.keys(input).every((key) => {
|
|
1828
1979
|
const value = input[key];
|
|
1829
1980
|
if (void 0 === value)
|
|
1830
1981
|
return true;
|
|
1831
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1982
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io26(value);
|
|
1832
1983
|
});
|
|
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
|
|
1847
|
-
const
|
|
1848
|
-
const
|
|
1849
|
-
const
|
|
1984
|
+
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));
|
|
1985
|
+
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);
|
|
1986
|
+
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);
|
|
1987
|
+
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));
|
|
1988
|
+
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);
|
|
1989
|
+
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);
|
|
1990
|
+
const _io32 = (input) => void 0 === input.mentionPatterns || Array.isArray(input.mentionPatterns) && input.mentionPatterns.every((elem) => "string" === typeof elem);
|
|
1991
|
+
const _io33 = (input) => ("acp" === input.type || "subagent" === input.type) && (void 0 === input.acp || "object" === typeof input.acp && null !== input.acp && _io34(input.acp));
|
|
1992
|
+
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);
|
|
1993
|
+
const _io35 = (input) => void 0 === input.allowAgents || Array.isArray(input.allowAgents) && input.allowAgents.every((elem) => "string" === typeof elem);
|
|
1994
|
+
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));
|
|
1995
|
+
const _io37 = (input) => void 0 === input.enabled || "boolean" === typeof input.enabled;
|
|
1996
|
+
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));
|
|
1997
|
+
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);
|
|
1998
|
+
const _io40 = (input) => (void 0 === input.kind || "direct" === input.kind || "group" === input.kind || "channel" === input.kind) && (void 0 === input.id || "string" === typeof input.id);
|
|
1999
|
+
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);
|
|
2000
|
+
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) => {
|
|
1850
2001
|
if (["defaults", "modelByChannel", "telegram", "discord", "slack", "whatsapp", "shadowob"].some((prop) => key === prop))
|
|
1851
2002
|
return true;
|
|
1852
2003
|
const value = input[key];
|
|
@@ -1854,10 +2005,10 @@ var validateCloudConfig = (() => {
|
|
|
1854
2005
|
return true;
|
|
1855
2006
|
return true;
|
|
1856
2007
|
});
|
|
1857
|
-
const
|
|
1858
|
-
const
|
|
1859
|
-
const
|
|
1860
|
-
const
|
|
2008
|
+
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));
|
|
2009
|
+
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);
|
|
2010
|
+
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);
|
|
2011
|
+
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) => {
|
|
1861
2012
|
if (["inlineButtons", "interactive", "forms"].some((prop) => key === prop))
|
|
1862
2013
|
return true;
|
|
1863
2014
|
const value = input[key];
|
|
@@ -1865,101 +2016,102 @@ var validateCloudConfig = (() => {
|
|
|
1865
2016
|
return true;
|
|
1866
2017
|
return true;
|
|
1867
2018
|
});
|
|
1868
|
-
const
|
|
1869
|
-
const
|
|
1870
|
-
const
|
|
1871
|
-
const
|
|
1872
|
-
const
|
|
1873
|
-
const
|
|
2019
|
+
const _io47 = (input) => "string" === typeof input.command && "string" === typeof input.description;
|
|
2020
|
+
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);
|
|
2021
|
+
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);
|
|
2022
|
+
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));
|
|
2023
|
+
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));
|
|
2024
|
+
const _io52 = (input) => Object.keys(input).every((key) => {
|
|
1874
2025
|
const value = input[key];
|
|
1875
2026
|
if (void 0 === value)
|
|
1876
2027
|
return true;
|
|
1877
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2028
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io53(value);
|
|
1878
2029
|
});
|
|
1879
|
-
const
|
|
1880
|
-
const
|
|
1881
|
-
const
|
|
1882
|
-
const
|
|
1883
|
-
const
|
|
1884
|
-
const
|
|
1885
|
-
const
|
|
1886
|
-
const
|
|
2030
|
+
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));
|
|
2031
|
+
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));
|
|
2032
|
+
const _io55 = (input) => void 0 === input.enabled || "boolean" === typeof input.enabled;
|
|
2033
|
+
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);
|
|
2034
|
+
const _io57 = (input) => void 0 === input.ttlMinutes || "number" === typeof input.ttlMinutes;
|
|
2035
|
+
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));
|
|
2036
|
+
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);
|
|
2037
|
+
const _io60 = (input) => Object.keys(input).every((key) => {
|
|
1887
2038
|
const value = input[key];
|
|
1888
2039
|
if (void 0 === value)
|
|
1889
2040
|
return true;
|
|
1890
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2041
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io61(value);
|
|
1891
2042
|
});
|
|
1892
|
-
const
|
|
1893
|
-
const
|
|
1894
|
-
const
|
|
1895
|
-
const
|
|
1896
|
-
const
|
|
1897
|
-
const
|
|
1898
|
-
const
|
|
1899
|
-
const
|
|
2043
|
+
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);
|
|
2044
|
+
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);
|
|
2045
|
+
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));
|
|
2046
|
+
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);
|
|
2047
|
+
const _io65 = (input) => void 0 === input.historyLimit || "number" === typeof input.historyLimit;
|
|
2048
|
+
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));
|
|
2049
|
+
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));
|
|
2050
|
+
const _io68 = (input) => Object.keys(input).every((key) => {
|
|
1900
2051
|
const value = input[key];
|
|
1901
2052
|
if (void 0 === value)
|
|
1902
2053
|
return true;
|
|
1903
2054
|
return Array.isArray(value) && value.every((elem) => "string" === typeof elem);
|
|
1904
2055
|
});
|
|
1905
|
-
const
|
|
1906
|
-
const
|
|
1907
|
-
const
|
|
1908
|
-
const
|
|
1909
|
-
const
|
|
1910
|
-
const
|
|
2056
|
+
const _io69 = (input) => (void 0 === input.backgroundMs || "number" === typeof input.backgroundMs) && (void 0 === input.timeoutSec || "number" === typeof input.timeoutSec);
|
|
2057
|
+
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));
|
|
2058
|
+
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);
|
|
2059
|
+
const _io72 = (input) => (void 0 === input.enabled || "boolean" === typeof input.enabled) && (void 0 === input.maxChars || "number" === typeof input.maxChars);
|
|
2060
|
+
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));
|
|
2061
|
+
const _io74 = (input) => Object.keys(input).every((key) => {
|
|
1911
2062
|
const value = input[key];
|
|
1912
2063
|
if (void 0 === value)
|
|
1913
2064
|
return true;
|
|
1914
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2065
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io16(value);
|
|
1915
2066
|
});
|
|
1916
|
-
const
|
|
1917
|
-
const
|
|
1918
|
-
const
|
|
2067
|
+
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));
|
|
2068
|
+
const _io76 = (input) => void 0 === input.paths || Array.isArray(input.paths) && input.paths.every((elem) => "string" === typeof elem);
|
|
2069
|
+
const _io77 = (input) => Object.keys(input).every((key) => {
|
|
1919
2070
|
const value = input[key];
|
|
1920
2071
|
if (void 0 === value)
|
|
1921
2072
|
return true;
|
|
1922
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2073
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io78(value);
|
|
1923
2074
|
});
|
|
1924
|
-
const
|
|
1925
|
-
const
|
|
1926
|
-
const
|
|
1927
|
-
const
|
|
1928
|
-
const
|
|
1929
|
-
const
|
|
2075
|
+
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));
|
|
2076
|
+
const _io79 = (input) => void 0 === input.allowPromptInjection || "boolean" === typeof input.allowPromptInjection;
|
|
2077
|
+
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));
|
|
2078
|
+
const _io81 = (input) => void 0 === input.extraDirs || Array.isArray(input.extraDirs) && input.extraDirs.every((elem) => "string" === typeof elem);
|
|
2079
|
+
const _io82 = (input) => (void 0 === input.preferBrew || "boolean" === typeof input.preferBrew) && (void 0 === input.nodeManager || "npm" === input.nodeManager || "pnpm" === input.nodeManager || "yarn" === input.nodeManager);
|
|
2080
|
+
const _io83 = (input) => Object.keys(input).every((key) => {
|
|
1930
2081
|
const value = input[key];
|
|
1931
2082
|
if (void 0 === value)
|
|
1932
2083
|
return true;
|
|
1933
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2084
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io84(value);
|
|
1934
2085
|
});
|
|
1935
|
-
const
|
|
1936
|
-
const
|
|
1937
|
-
const
|
|
1938
|
-
const
|
|
1939
|
-
const
|
|
1940
|
-
const
|
|
1941
|
-
const
|
|
2086
|
+
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));
|
|
2087
|
+
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));
|
|
2088
|
+
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);
|
|
2089
|
+
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);
|
|
2090
|
+
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);
|
|
2091
|
+
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);
|
|
2092
|
+
const _io90 = (input) => Object.keys(input).every((key) => {
|
|
1942
2093
|
const value = input[key];
|
|
1943
2094
|
if (void 0 === value)
|
|
1944
2095
|
return true;
|
|
1945
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2096
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io91(value);
|
|
1946
2097
|
});
|
|
1947
|
-
const
|
|
1948
|
-
const
|
|
2098
|
+
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));
|
|
2099
|
+
const _io92 = (input) => Object.keys(input).every((key) => {
|
|
1949
2100
|
const value = input[key];
|
|
1950
2101
|
if (void 0 === value)
|
|
1951
2102
|
return true;
|
|
1952
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2103
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io93(value);
|
|
1953
2104
|
});
|
|
1954
|
-
const
|
|
1955
|
-
const
|
|
1956
|
-
const
|
|
1957
|
-
const
|
|
1958
|
-
const
|
|
1959
|
-
const
|
|
1960
|
-
const
|
|
1961
|
-
const
|
|
1962
|
-
const
|
|
2105
|
+
const _io93 = (input) => void 0 === input.apiKey || "string" === typeof input.apiKey;
|
|
2106
|
+
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)));
|
|
2107
|
+
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));
|
|
2108
|
+
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);
|
|
2109
|
+
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);
|
|
2110
|
+
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));
|
|
2111
|
+
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);
|
|
2112
|
+
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)));
|
|
2113
|
+
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);
|
|
2114
|
+
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) => {
|
|
1963
2115
|
if (["extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1964
2116
|
return true;
|
|
1965
2117
|
const value = input[key];
|
|
@@ -1967,31 +2119,31 @@ var validateCloudConfig = (() => {
|
|
|
1967
2119
|
return true;
|
|
1968
2120
|
return true;
|
|
1969
2121
|
});
|
|
1970
|
-
const
|
|
1971
|
-
const
|
|
1972
|
-
const
|
|
1973
|
-
const
|
|
1974
|
-
const
|
|
2122
|
+
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));
|
|
2123
|
+
const _io104 = (input) => (void 0 === input.cpu || "string" === typeof input.cpu) && (void 0 === input.memory || "string" === typeof input.memory);
|
|
2124
|
+
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);
|
|
2125
|
+
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));
|
|
2126
|
+
const _io107 = (input) => Object.keys(input).every((key) => {
|
|
1975
2127
|
const value = input[key];
|
|
1976
2128
|
if (void 0 === value)
|
|
1977
2129
|
return true;
|
|
1978
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2130
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io108(value);
|
|
1979
2131
|
});
|
|
1980
|
-
const
|
|
1981
|
-
const
|
|
1982
|
-
const
|
|
1983
|
-
const
|
|
1984
|
-
const
|
|
1985
|
-
const
|
|
2132
|
+
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));
|
|
2133
|
+
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));
|
|
2134
|
+
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);
|
|
2135
|
+
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);
|
|
2136
|
+
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);
|
|
2137
|
+
const _io113 = (input) => Object.keys(input).every((key) => {
|
|
1986
2138
|
const value = input[key];
|
|
1987
2139
|
if (void 0 === value)
|
|
1988
2140
|
return true;
|
|
1989
2141
|
return "approve-reads" === value || "deny-all" === value || "always-allow" === value || "always-ask" === value;
|
|
1990
2142
|
});
|
|
1991
|
-
const
|
|
1992
|
-
const
|
|
1993
|
-
const
|
|
1994
|
-
const
|
|
2143
|
+
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);
|
|
2144
|
+
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);
|
|
2145
|
+
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)));
|
|
2146
|
+
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);
|
|
1995
2147
|
const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.version || _report(_exceptionable, {
|
|
1996
2148
|
path: _path + ".version",
|
|
1997
2149
|
expected: "string",
|
|
@@ -2024,11 +2176,27 @@ var validateCloudConfig = (() => {
|
|
|
2024
2176
|
path: _path + ".i18n",
|
|
2025
2177
|
expected: "(Record<string, Record<string, string>> | undefined)",
|
|
2026
2178
|
value: input.i18n
|
|
2179
|
+
}), void 0 === input.routines || (Array.isArray(input.routines) || _report(_exceptionable, {
|
|
2180
|
+
path: _path + ".routines",
|
|
2181
|
+
expected: "(Array<CloudRoutineConfig> | undefined)",
|
|
2182
|
+
value: input.routines
|
|
2183
|
+
})) && input.routines.map((elem, _index43) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2184
|
+
path: _path + ".routines[" + _index43 + "]",
|
|
2185
|
+
expected: "CloudRoutineConfig",
|
|
2186
|
+
value: elem
|
|
2187
|
+
})) && _vo3(elem, _path + ".routines[" + _index43 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2188
|
+
path: _path + ".routines[" + _index43 + "]",
|
|
2189
|
+
expected: "CloudRoutineConfig",
|
|
2190
|
+
value: elem
|
|
2191
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
2192
|
+
path: _path + ".routines",
|
|
2193
|
+
expected: "(Array<CloudRoutineConfig> | undefined)",
|
|
2194
|
+
value: input.routines
|
|
2027
2195
|
}), void 0 === input.team || ("object" === typeof input.team && null !== input.team || _report(_exceptionable, {
|
|
2028
2196
|
path: _path + ".team",
|
|
2029
2197
|
expected: "(TeamConfig | undefined)",
|
|
2030
2198
|
value: input.team
|
|
2031
|
-
})) &&
|
|
2199
|
+
})) && _vo6(input.team, _path + ".team", _exceptionable) || _report(_exceptionable, {
|
|
2032
2200
|
path: _path + ".team",
|
|
2033
2201
|
expected: "(TeamConfig | undefined)",
|
|
2034
2202
|
value: input.team
|
|
@@ -2036,12 +2204,12 @@ var validateCloudConfig = (() => {
|
|
|
2036
2204
|
path: _path + ".use",
|
|
2037
2205
|
expected: "(Array<UseEntry> | undefined)",
|
|
2038
2206
|
value: input.use
|
|
2039
|
-
})) && input.use.map((elem,
|
|
2040
|
-
path: _path + ".use[" +
|
|
2207
|
+
})) && input.use.map((elem, _index44) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2208
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2041
2209
|
expected: "UseEntry",
|
|
2042
2210
|
value: elem
|
|
2043
|
-
})) &&
|
|
2044
|
-
path: _path + ".use[" +
|
|
2211
|
+
})) && _vo10(elem, _path + ".use[" + _index44 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2212
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2045
2213
|
expected: "UseEntry",
|
|
2046
2214
|
value: elem
|
|
2047
2215
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2052,7 +2220,7 @@ var validateCloudConfig = (() => {
|
|
|
2052
2220
|
path: _path + ".plugins",
|
|
2053
2221
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2054
2222
|
value: input.plugins
|
|
2055
|
-
})) &&
|
|
2223
|
+
})) && _vo11(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2056
2224
|
path: _path + ".plugins",
|
|
2057
2225
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2058
2226
|
value: input.plugins
|
|
@@ -2060,7 +2228,7 @@ var validateCloudConfig = (() => {
|
|
|
2060
2228
|
path: _path + ".registry",
|
|
2061
2229
|
expected: "(RegistryConfig | undefined)",
|
|
2062
2230
|
value: input.registry
|
|
2063
|
-
})) &&
|
|
2231
|
+
})) && _vo15(input.registry, _path + ".registry", _exceptionable) || _report(_exceptionable, {
|
|
2064
2232
|
path: _path + ".registry",
|
|
2065
2233
|
expected: "(RegistryConfig | undefined)",
|
|
2066
2234
|
value: input.registry
|
|
@@ -2068,7 +2236,7 @@ var validateCloudConfig = (() => {
|
|
|
2068
2236
|
path: _path + ".deployments",
|
|
2069
2237
|
expected: "(DeploymentsConfig | undefined)",
|
|
2070
2238
|
value: input.deployments
|
|
2071
|
-
})) &&
|
|
2239
|
+
})) && _vo94(input.deployments, _path + ".deployments", _exceptionable) || _report(_exceptionable, {
|
|
2072
2240
|
path: _path + ".deployments",
|
|
2073
2241
|
expected: "(DeploymentsConfig | undefined)",
|
|
2074
2242
|
value: input.deployments
|
|
@@ -2076,7 +2244,7 @@ var validateCloudConfig = (() => {
|
|
|
2076
2244
|
path: _path + ".workspace",
|
|
2077
2245
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2078
2246
|
value: input.workspace
|
|
2079
|
-
})) &&
|
|
2247
|
+
})) && _vo115(input.workspace, _path + ".workspace", _exceptionable) || _report(_exceptionable, {
|
|
2080
2248
|
path: _path + ".workspace",
|
|
2081
2249
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2082
2250
|
value: input.workspace
|
|
@@ -2084,7 +2252,7 @@ var validateCloudConfig = (() => {
|
|
|
2084
2252
|
path: _path + ".skills",
|
|
2085
2253
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2086
2254
|
value: input.skills
|
|
2087
|
-
})) &&
|
|
2255
|
+
})) && _vo116(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2088
2256
|
path: _path + ".skills",
|
|
2089
2257
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2090
2258
|
value: input.skills
|
|
@@ -2113,7 +2281,75 @@ var validateCloudConfig = (() => {
|
|
|
2113
2281
|
value
|
|
2114
2282
|
});
|
|
2115
2283
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2116
|
-
const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.
|
|
2284
|
+
const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2285
|
+
path: _path + ".id",
|
|
2286
|
+
expected: "string",
|
|
2287
|
+
value: input.id
|
|
2288
|
+
}), "string" === typeof input.agentId || _report(_exceptionable, {
|
|
2289
|
+
path: _path + ".agentId",
|
|
2290
|
+
expected: "string",
|
|
2291
|
+
value: input.agentId
|
|
2292
|
+
}), void 0 === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
2293
|
+
path: _path + ".title",
|
|
2294
|
+
expected: "(string | undefined)",
|
|
2295
|
+
value: input.title
|
|
2296
|
+
}), void 0 === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
2297
|
+
path: _path + ".description",
|
|
2298
|
+
expected: "(string | undefined)",
|
|
2299
|
+
value: input.description
|
|
2300
|
+
}), void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2301
|
+
path: _path + ".enabled",
|
|
2302
|
+
expected: "(boolean | undefined)",
|
|
2303
|
+
value: input.enabled
|
|
2304
|
+
}), ("object" === typeof input.schedule && null !== input.schedule && false === Array.isArray(input.schedule) || _report(_exceptionable, {
|
|
2305
|
+
path: _path + ".schedule",
|
|
2306
|
+
expected: "CloudRoutineSchedule",
|
|
2307
|
+
value: input.schedule
|
|
2308
|
+
})) && _vo4(input.schedule, _path + ".schedule", _exceptionable) || _report(_exceptionable, {
|
|
2309
|
+
path: _path + ".schedule",
|
|
2310
|
+
expected: "CloudRoutineSchedule",
|
|
2311
|
+
value: input.schedule
|
|
2312
|
+
}), "string" === typeof input.prompt || _report(_exceptionable, {
|
|
2313
|
+
path: _path + ".prompt",
|
|
2314
|
+
expected: "string",
|
|
2315
|
+
value: input.prompt
|
|
2316
|
+
}), void 0 === input.metadata || ("object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) || _report(_exceptionable, {
|
|
2317
|
+
path: _path + ".metadata",
|
|
2318
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
2319
|
+
value: input.metadata
|
|
2320
|
+
})) && _vo5(input.metadata, _path + ".metadata", _exceptionable) || _report(_exceptionable, {
|
|
2321
|
+
path: _path + ".metadata",
|
|
2322
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
2323
|
+
value: input.metadata
|
|
2324
|
+
})].every((flag) => flag);
|
|
2325
|
+
const _vo4 = (input, _path, _exceptionable = true) => [void 0 === input.cron || "string" === typeof input.cron || _report(_exceptionable, {
|
|
2326
|
+
path: _path + ".cron",
|
|
2327
|
+
expected: "(string | undefined)",
|
|
2328
|
+
value: input.cron
|
|
2329
|
+
}), void 0 === input.interval || "string" === typeof input.interval || _report(_exceptionable, {
|
|
2330
|
+
path: _path + ".interval",
|
|
2331
|
+
expected: "(string | undefined)",
|
|
2332
|
+
value: input.interval
|
|
2333
|
+
}), void 0 === input.timezone || "string" === typeof input.timezone || _report(_exceptionable, {
|
|
2334
|
+
path: _path + ".timezone",
|
|
2335
|
+
expected: "(string | undefined)",
|
|
2336
|
+
value: input.timezone
|
|
2337
|
+
}), void 0 === input.maxConcurrentRuns || "number" === typeof input.maxConcurrentRuns && (__typia_transform__isTypeUint32._isTypeUint32(input.maxConcurrentRuns) || _report(_exceptionable, {
|
|
2338
|
+
path: _path + ".maxConcurrentRuns",
|
|
2339
|
+
expected: 'number & Type<"uint32">',
|
|
2340
|
+
value: input.maxConcurrentRuns
|
|
2341
|
+
})) || _report(_exceptionable, {
|
|
2342
|
+
path: _path + ".maxConcurrentRuns",
|
|
2343
|
+
expected: '((number & Type<"uint32">) | undefined)',
|
|
2344
|
+
value: input.maxConcurrentRuns
|
|
2345
|
+
})].every((flag) => flag);
|
|
2346
|
+
const _vo5 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2347
|
+
const value = input[key];
|
|
2348
|
+
if (void 0 === value)
|
|
2349
|
+
return true;
|
|
2350
|
+
return true;
|
|
2351
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
2352
|
+
const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
2117
2353
|
path: _path + ".name",
|
|
2118
2354
|
expected: "string",
|
|
2119
2355
|
value: input.name
|
|
@@ -2125,7 +2361,7 @@ var validateCloudConfig = (() => {
|
|
|
2125
2361
|
path: _path + ".defaultModel",
|
|
2126
2362
|
expected: "(AgentModel | undefined)",
|
|
2127
2363
|
value: input.defaultModel
|
|
2128
|
-
})) &&
|
|
2364
|
+
})) && _vo7(input.defaultModel, _path + ".defaultModel", _exceptionable) || _report(_exceptionable, {
|
|
2129
2365
|
path: _path + ".defaultModel",
|
|
2130
2366
|
expected: "(AgentModel | undefined)",
|
|
2131
2367
|
value: input.defaultModel
|
|
@@ -2133,12 +2369,12 @@ var validateCloudConfig = (() => {
|
|
|
2133
2369
|
path: _path + ".defaultCompliance",
|
|
2134
2370
|
expected: "(AgentCompliance | undefined)",
|
|
2135
2371
|
value: input.defaultCompliance
|
|
2136
|
-
})) &&
|
|
2372
|
+
})) && _vo9(input.defaultCompliance, _path + ".defaultCompliance", _exceptionable) || _report(_exceptionable, {
|
|
2137
2373
|
path: _path + ".defaultCompliance",
|
|
2138
2374
|
expected: "(AgentCompliance | undefined)",
|
|
2139
2375
|
value: input.defaultCompliance
|
|
2140
2376
|
})].every((flag) => flag);
|
|
2141
|
-
const
|
|
2377
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.preferred || _report(_exceptionable, {
|
|
2142
2378
|
path: _path + ".preferred",
|
|
2143
2379
|
expected: "string",
|
|
2144
2380
|
value: input.preferred
|
|
@@ -2146,8 +2382,8 @@ var validateCloudConfig = (() => {
|
|
|
2146
2382
|
path: _path + ".fallbacks",
|
|
2147
2383
|
expected: "(Array<string> | undefined)",
|
|
2148
2384
|
value: input.fallbacks
|
|
2149
|
-
})) && input.fallbacks.map((elem,
|
|
2150
|
-
path: _path + ".fallbacks[" +
|
|
2385
|
+
})) && input.fallbacks.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
2386
|
+
path: _path + ".fallbacks[" + _index45 + "]",
|
|
2151
2387
|
expected: "string",
|
|
2152
2388
|
value: elem
|
|
2153
2389
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2158,12 +2394,12 @@ var validateCloudConfig = (() => {
|
|
|
2158
2394
|
path: _path + ".constraints",
|
|
2159
2395
|
expected: "(__type | undefined)",
|
|
2160
2396
|
value: input.constraints
|
|
2161
|
-
})) &&
|
|
2397
|
+
})) && _vo8(input.constraints, _path + ".constraints", _exceptionable) || _report(_exceptionable, {
|
|
2162
2398
|
path: _path + ".constraints",
|
|
2163
2399
|
expected: "(__type | undefined)",
|
|
2164
2400
|
value: input.constraints
|
|
2165
2401
|
})].every((flag) => flag);
|
|
2166
|
-
const
|
|
2402
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.temperature || "number" === typeof input.temperature && (0 <= input.temperature || _report(_exceptionable, {
|
|
2167
2403
|
path: _path + ".temperature",
|
|
2168
2404
|
expected: "number & Minimum<0>",
|
|
2169
2405
|
value: input.temperature
|
|
@@ -2200,7 +2436,7 @@ var validateCloudConfig = (() => {
|
|
|
2200
2436
|
expected: '("adaptive" | "high" | "low" | "medium" | "minimal" | "off" | "xhigh" | undefined)',
|
|
2201
2437
|
value: input.thinkingLevel
|
|
2202
2438
|
})].every((flag) => flag);
|
|
2203
|
-
const
|
|
2439
|
+
const _vo9 = (input, _path, _exceptionable = true) => [void 0 === input.riskTier || "low" === input.riskTier || "high" === input.riskTier || "standard" === input.riskTier || "critical" === input.riskTier || _report(_exceptionable, {
|
|
2204
2440
|
path: _path + ".riskTier",
|
|
2205
2441
|
expected: '("critical" | "high" | "low" | "standard" | undefined)',
|
|
2206
2442
|
value: input.riskTier
|
|
@@ -2208,8 +2444,8 @@ var validateCloudConfig = (() => {
|
|
|
2208
2444
|
path: _path + ".frameworks",
|
|
2209
2445
|
expected: "(Array<string> | undefined)",
|
|
2210
2446
|
value: input.frameworks
|
|
2211
|
-
})) && input.frameworks.map((elem,
|
|
2212
|
-
path: _path + ".frameworks[" +
|
|
2447
|
+
})) && input.frameworks.map((elem, _index46) => "string" === typeof elem || _report(_exceptionable, {
|
|
2448
|
+
path: _path + ".frameworks[" + _index46 + "]",
|
|
2213
2449
|
expected: "string",
|
|
2214
2450
|
value: elem
|
|
2215
2451
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2229,7 +2465,7 @@ var validateCloudConfig = (() => {
|
|
|
2229
2465
|
expected: "(string | undefined)",
|
|
2230
2466
|
value: input.retentionPeriod
|
|
2231
2467
|
})].every((flag) => flag);
|
|
2232
|
-
const
|
|
2468
|
+
const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.plugin || _report(_exceptionable, {
|
|
2233
2469
|
path: _path + ".plugin",
|
|
2234
2470
|
expected: "string",
|
|
2235
2471
|
value: input.plugin
|
|
@@ -2237,18 +2473,12 @@ var validateCloudConfig = (() => {
|
|
|
2237
2473
|
path: _path + ".options",
|
|
2238
2474
|
expected: "(Record<string, unknown> | undefined)",
|
|
2239
2475
|
value: input.options
|
|
2240
|
-
})) &&
|
|
2476
|
+
})) && _vo5(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
2241
2477
|
path: _path + ".options",
|
|
2242
2478
|
expected: "(Record<string, unknown> | undefined)",
|
|
2243
2479
|
value: input.options
|
|
2244
2480
|
})].every((flag) => flag);
|
|
2245
|
-
const
|
|
2246
|
-
const value = input[key];
|
|
2247
|
-
if (void 0 === value)
|
|
2248
|
-
return true;
|
|
2249
|
-
return true;
|
|
2250
|
-
}).every((flag) => flag)].every((flag) => flag);
|
|
2251
|
-
const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2481
|
+
const _vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2252
2482
|
const value = input[key];
|
|
2253
2483
|
if (void 0 === value)
|
|
2254
2484
|
return true;
|
|
@@ -2256,13 +2486,13 @@ var validateCloudConfig = (() => {
|
|
|
2256
2486
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2257
2487
|
expected: "CloudPluginInstanceConfig",
|
|
2258
2488
|
value
|
|
2259
|
-
})) &&
|
|
2489
|
+
})) && _vo12(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2260
2490
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2261
2491
|
expected: "CloudPluginInstanceConfig",
|
|
2262
2492
|
value
|
|
2263
2493
|
});
|
|
2264
2494
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2265
|
-
const
|
|
2495
|
+
const _vo12 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2266
2496
|
path: _path + ".enabled",
|
|
2267
2497
|
expected: "(boolean | undefined)",
|
|
2268
2498
|
value: input.enabled
|
|
@@ -2270,7 +2500,7 @@ var validateCloudConfig = (() => {
|
|
|
2270
2500
|
path: _path + ".config",
|
|
2271
2501
|
expected: "(Record<string, unknown> | undefined)",
|
|
2272
2502
|
value: input.config
|
|
2273
|
-
})) &&
|
|
2503
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2274
2504
|
path: _path + ".config",
|
|
2275
2505
|
expected: "(Record<string, unknown> | undefined)",
|
|
2276
2506
|
value: input.config
|
|
@@ -2278,7 +2508,7 @@ var validateCloudConfig = (() => {
|
|
|
2278
2508
|
path: _path + ".agents",
|
|
2279
2509
|
expected: "(Record<string, __type> | undefined)",
|
|
2280
2510
|
value: input.agents
|
|
2281
|
-
})) &&
|
|
2511
|
+
})) && _vo13(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2282
2512
|
path: _path + ".agents",
|
|
2283
2513
|
expected: "(Record<string, __type> | undefined)",
|
|
2284
2514
|
value: input.agents
|
|
@@ -2298,7 +2528,7 @@ var validateCloudConfig = (() => {
|
|
|
2298
2528
|
return true;
|
|
2299
2529
|
return true;
|
|
2300
2530
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2301
|
-
const
|
|
2531
|
+
const _vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2302
2532
|
const value = input[key];
|
|
2303
2533
|
if (void 0 === value)
|
|
2304
2534
|
return true;
|
|
@@ -2306,13 +2536,13 @@ var validateCloudConfig = (() => {
|
|
|
2306
2536
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2307
2537
|
expected: "__type.o9",
|
|
2308
2538
|
value
|
|
2309
|
-
})) &&
|
|
2539
|
+
})) && _vo14(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2310
2540
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2311
2541
|
expected: "__type.o9",
|
|
2312
2542
|
value
|
|
2313
2543
|
});
|
|
2314
2544
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2315
|
-
const
|
|
2545
|
+
const _vo14 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2316
2546
|
path: _path + ".enabled",
|
|
2317
2547
|
expected: "(boolean | undefined)",
|
|
2318
2548
|
value: input.enabled
|
|
@@ -2320,21 +2550,21 @@ var validateCloudConfig = (() => {
|
|
|
2320
2550
|
path: _path + ".config",
|
|
2321
2551
|
expected: "(Record<string, unknown> | undefined)",
|
|
2322
2552
|
value: input.config
|
|
2323
|
-
})) &&
|
|
2553
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2324
2554
|
path: _path + ".config",
|
|
2325
2555
|
expected: "(Record<string, unknown> | undefined)",
|
|
2326
2556
|
value: input.config
|
|
2327
2557
|
})].every((flag) => flag);
|
|
2328
|
-
const
|
|
2558
|
+
const _vo15 = (input, _path, _exceptionable = true) => [void 0 === input.providers || (Array.isArray(input.providers) || _report(_exceptionable, {
|
|
2329
2559
|
path: _path + ".providers",
|
|
2330
2560
|
expected: "(Array<OpenClawProviderConfig> | undefined)",
|
|
2331
2561
|
value: input.providers
|
|
2332
|
-
})) && input.providers.map((elem,
|
|
2333
|
-
path: _path + ".providers[" +
|
|
2562
|
+
})) && input.providers.map((elem, _index47) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
2563
|
+
path: _path + ".providers[" + _index47 + "]",
|
|
2334
2564
|
expected: "OpenClawProviderConfig",
|
|
2335
2565
|
value: elem
|
|
2336
|
-
})) &&
|
|
2337
|
-
path: _path + ".providers[" +
|
|
2566
|
+
})) && _vo16(elem, _path + ".providers[" + _index47 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2567
|
+
path: _path + ".providers[" + _index47 + "]",
|
|
2338
2568
|
expected: "OpenClawProviderConfig",
|
|
2339
2569
|
value: elem
|
|
2340
2570
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2345,12 +2575,12 @@ var validateCloudConfig = (() => {
|
|
|
2345
2575
|
path: _path + ".configurations",
|
|
2346
2576
|
expected: "(Array<Configuration> | undefined)",
|
|
2347
2577
|
value: input.configurations
|
|
2348
|
-
})) && input.configurations.map((elem,
|
|
2349
|
-
path: _path + ".configurations[" +
|
|
2578
|
+
})) && input.configurations.map((elem, _index48) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2579
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2350
2580
|
expected: "Configuration",
|
|
2351
2581
|
value: elem
|
|
2352
|
-
})) &&
|
|
2353
|
-
path: _path + ".configurations[" +
|
|
2582
|
+
})) && _vo20(elem, _path + ".configurations[" + _index48 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2583
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2354
2584
|
expected: "Configuration",
|
|
2355
2585
|
value: elem
|
|
2356
2586
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2361,12 +2591,12 @@ var validateCloudConfig = (() => {
|
|
|
2361
2591
|
path: _path + ".vaults",
|
|
2362
2592
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2363
2593
|
value: input.vaults
|
|
2364
|
-
})) &&
|
|
2594
|
+
})) && _vo90(input.vaults, _path + ".vaults", _exceptionable) || _report(_exceptionable, {
|
|
2365
2595
|
path: _path + ".vaults",
|
|
2366
2596
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2367
2597
|
value: input.vaults
|
|
2368
2598
|
})].every((flag) => flag);
|
|
2369
|
-
const
|
|
2599
|
+
const _vo16 = (input, _path, _exceptionable = true) => [void 0 === input.id || "string" === typeof input.id || _report(_exceptionable, {
|
|
2370
2600
|
path: _path + ".id",
|
|
2371
2601
|
expected: "(string | undefined)",
|
|
2372
2602
|
value: input.id
|
|
@@ -2398,7 +2628,7 @@ var validateCloudConfig = (() => {
|
|
|
2398
2628
|
path: _path + ".request",
|
|
2399
2629
|
expected: "(__type.o10 | undefined)",
|
|
2400
2630
|
value: input.request
|
|
2401
|
-
})) &&
|
|
2631
|
+
})) && _vo17(input.request, _path + ".request", _exceptionable) || _report(_exceptionable, {
|
|
2402
2632
|
path: _path + ".request",
|
|
2403
2633
|
expected: "(__type.o10 | undefined)",
|
|
2404
2634
|
value: input.request
|
|
@@ -2406,12 +2636,12 @@ var validateCloudConfig = (() => {
|
|
|
2406
2636
|
path: _path + ".models",
|
|
2407
2637
|
expected: "(Array<__type> | undefined)",
|
|
2408
2638
|
value: input.models
|
|
2409
|
-
})) && input.models.map((elem,
|
|
2410
|
-
path: _path + ".models[" +
|
|
2639
|
+
})) && input.models.map((elem, _index49) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2640
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2411
2641
|
expected: "__type.o11",
|
|
2412
2642
|
value: elem
|
|
2413
|
-
})) &&
|
|
2414
|
-
path: _path + ".models[" +
|
|
2643
|
+
})) && _vo18(elem, _path + ".models[" + _index49 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2644
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2415
2645
|
expected: "__type.o11",
|
|
2416
2646
|
value: elem
|
|
2417
2647
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2419,12 +2649,12 @@ var validateCloudConfig = (() => {
|
|
|
2419
2649
|
expected: "(Array<__type> | undefined)",
|
|
2420
2650
|
value: input.models
|
|
2421
2651
|
})].every((flag) => flag);
|
|
2422
|
-
const
|
|
2652
|
+
const _vo17 = (input, _path, _exceptionable = true) => [void 0 === input.allowPrivateNetwork || "boolean" === typeof input.allowPrivateNetwork || _report(_exceptionable, {
|
|
2423
2653
|
path: _path + ".allowPrivateNetwork",
|
|
2424
2654
|
expected: "(boolean | undefined)",
|
|
2425
2655
|
value: input.allowPrivateNetwork
|
|
2426
2656
|
})].every((flag) => flag);
|
|
2427
|
-
const
|
|
2657
|
+
const _vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2428
2658
|
path: _path + ".id",
|
|
2429
2659
|
expected: "string",
|
|
2430
2660
|
value: input.id
|
|
@@ -2440,8 +2670,8 @@ var validateCloudConfig = (() => {
|
|
|
2440
2670
|
path: _path + ".input",
|
|
2441
2671
|
expected: "(Array<string> | undefined)",
|
|
2442
2672
|
value: input.input
|
|
2443
|
-
})) && input.input.map((elem,
|
|
2444
|
-
path: _path + ".input[" +
|
|
2673
|
+
})) && input.input.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
2674
|
+
path: _path + ".input[" + _index50 + "]",
|
|
2445
2675
|
expected: "string",
|
|
2446
2676
|
value: elem
|
|
2447
2677
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2460,12 +2690,12 @@ var validateCloudConfig = (() => {
|
|
|
2460
2690
|
path: _path + ".cost",
|
|
2461
2691
|
expected: "(__type.o12 | undefined)",
|
|
2462
2692
|
value: input.cost
|
|
2463
|
-
})) &&
|
|
2693
|
+
})) && _vo19(input.cost, _path + ".cost", _exceptionable) || _report(_exceptionable, {
|
|
2464
2694
|
path: _path + ".cost",
|
|
2465
2695
|
expected: "(__type.o12 | undefined)",
|
|
2466
2696
|
value: input.cost
|
|
2467
2697
|
})].every((flag) => flag);
|
|
2468
|
-
const
|
|
2698
|
+
const _vo19 = (input, _path, _exceptionable = true) => [void 0 === input.input || "number" === typeof input.input || _report(_exceptionable, {
|
|
2469
2699
|
path: _path + ".input",
|
|
2470
2700
|
expected: "(number | undefined)",
|
|
2471
2701
|
value: input.input
|
|
@@ -2482,7 +2712,7 @@ var validateCloudConfig = (() => {
|
|
|
2482
2712
|
expected: "(number | undefined)",
|
|
2483
2713
|
value: input.cacheWrite
|
|
2484
2714
|
})].every((flag) => flag);
|
|
2485
|
-
const
|
|
2715
|
+
const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2486
2716
|
path: _path + ".id",
|
|
2487
2717
|
expected: "string",
|
|
2488
2718
|
value: input.id
|
|
@@ -2494,7 +2724,7 @@ var validateCloudConfig = (() => {
|
|
|
2494
2724
|
path: _path + ".model",
|
|
2495
2725
|
expected: "(AgentModel | undefined)",
|
|
2496
2726
|
value: input.model
|
|
2497
|
-
})) &&
|
|
2727
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2498
2728
|
path: _path + ".model",
|
|
2499
2729
|
expected: "(AgentModel | undefined)",
|
|
2500
2730
|
value: input.model
|
|
@@ -2502,7 +2732,7 @@ var validateCloudConfig = (() => {
|
|
|
2502
2732
|
path: _path + ".openclaw",
|
|
2503
2733
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2504
2734
|
value: input.openclaw
|
|
2505
|
-
})) &&
|
|
2735
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
2506
2736
|
path: _path + ".openclaw",
|
|
2507
2737
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2508
2738
|
value: input.openclaw
|
|
@@ -2514,11 +2744,11 @@ var validateCloudConfig = (() => {
|
|
|
2514
2744
|
return true;
|
|
2515
2745
|
return true;
|
|
2516
2746
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2517
|
-
const
|
|
2747
|
+
const _vo21 = (input, _path, _exceptionable = true) => [void 0 === input.agents || ("object" === typeof input.agents && null !== input.agents && false === Array.isArray(input.agents) || _report(_exceptionable, {
|
|
2518
2748
|
path: _path + ".agents",
|
|
2519
2749
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2520
2750
|
value: input.agents
|
|
2521
|
-
})) &&
|
|
2751
|
+
})) && _vo22(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2522
2752
|
path: _path + ".agents",
|
|
2523
2753
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2524
2754
|
value: input.agents
|
|
@@ -2526,12 +2756,12 @@ var validateCloudConfig = (() => {
|
|
|
2526
2756
|
path: _path + ".bindings",
|
|
2527
2757
|
expected: "(Array<OpenClawBinding> | undefined)",
|
|
2528
2758
|
value: input.bindings
|
|
2529
|
-
})) && input.bindings.map((elem,
|
|
2530
|
-
path: _path + ".bindings[" +
|
|
2759
|
+
})) && input.bindings.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2760
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2531
2761
|
expected: "OpenClawBinding",
|
|
2532
2762
|
value: elem
|
|
2533
|
-
})) &&
|
|
2534
|
-
path: _path + ".bindings[" +
|
|
2763
|
+
})) && _vo38(elem, _path + ".bindings[" + _index51 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2764
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2535
2765
|
expected: "OpenClawBinding",
|
|
2536
2766
|
value: elem
|
|
2537
2767
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2542,7 +2772,7 @@ var validateCloudConfig = (() => {
|
|
|
2542
2772
|
path: _path + ".channels",
|
|
2543
2773
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2544
2774
|
value: input.channels
|
|
2545
|
-
})) &&
|
|
2775
|
+
})) && _vo42(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
2546
2776
|
path: _path + ".channels",
|
|
2547
2777
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2548
2778
|
value: input.channels
|
|
@@ -2550,7 +2780,7 @@ var validateCloudConfig = (() => {
|
|
|
2550
2780
|
path: _path + ".acp",
|
|
2551
2781
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2552
2782
|
value: input.acp
|
|
2553
|
-
})) &&
|
|
2783
|
+
})) && _vo54(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
2554
2784
|
path: _path + ".acp",
|
|
2555
2785
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2556
2786
|
value: input.acp
|
|
@@ -2558,7 +2788,7 @@ var validateCloudConfig = (() => {
|
|
|
2558
2788
|
path: _path + ".session",
|
|
2559
2789
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2560
2790
|
value: input.session
|
|
2561
|
-
})) &&
|
|
2791
|
+
})) && _vo58(input.session, _path + ".session", _exceptionable) || _report(_exceptionable, {
|
|
2562
2792
|
path: _path + ".session",
|
|
2563
2793
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2564
2794
|
value: input.session
|
|
@@ -2566,7 +2796,7 @@ var validateCloudConfig = (() => {
|
|
|
2566
2796
|
path: _path + ".messages",
|
|
2567
2797
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2568
2798
|
value: input.messages
|
|
2569
|
-
})) &&
|
|
2799
|
+
})) && _vo63(input.messages, _path + ".messages", _exceptionable) || _report(_exceptionable, {
|
|
2570
2800
|
path: _path + ".messages",
|
|
2571
2801
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2572
2802
|
value: input.messages
|
|
@@ -2574,7 +2804,7 @@ var validateCloudConfig = (() => {
|
|
|
2574
2804
|
path: _path + ".tools",
|
|
2575
2805
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2576
2806
|
value: input.tools
|
|
2577
|
-
})) &&
|
|
2807
|
+
})) && _vo66(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
2578
2808
|
path: _path + ".tools",
|
|
2579
2809
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2580
2810
|
value: input.tools
|
|
@@ -2582,7 +2812,7 @@ var validateCloudConfig = (() => {
|
|
|
2582
2812
|
path: _path + ".models",
|
|
2583
2813
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2584
2814
|
value: input.models
|
|
2585
|
-
})) &&
|
|
2815
|
+
})) && _vo73(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2586
2816
|
path: _path + ".models",
|
|
2587
2817
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2588
2818
|
value: input.models
|
|
@@ -2590,7 +2820,7 @@ var validateCloudConfig = (() => {
|
|
|
2590
2820
|
path: _path + ".plugins",
|
|
2591
2821
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2592
2822
|
value: input.plugins
|
|
2593
|
-
})) &&
|
|
2823
|
+
})) && _vo75(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2594
2824
|
path: _path + ".plugins",
|
|
2595
2825
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2596
2826
|
value: input.plugins
|
|
@@ -2598,7 +2828,7 @@ var validateCloudConfig = (() => {
|
|
|
2598
2828
|
path: _path + ".skills",
|
|
2599
2829
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2600
2830
|
value: input.skills
|
|
2601
|
-
})) &&
|
|
2831
|
+
})) && _vo80(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2602
2832
|
path: _path + ".skills",
|
|
2603
2833
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2604
2834
|
value: input.skills
|
|
@@ -2606,7 +2836,7 @@ var validateCloudConfig = (() => {
|
|
|
2606
2836
|
path: _path + ".gateway",
|
|
2607
2837
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2608
2838
|
value: input.gateway
|
|
2609
|
-
})) &&
|
|
2839
|
+
})) && _vo85(input.gateway, _path + ".gateway", _exceptionable) || _report(_exceptionable, {
|
|
2610
2840
|
path: _path + ".gateway",
|
|
2611
2841
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2612
2842
|
value: input.gateway
|
|
@@ -2614,7 +2844,7 @@ var validateCloudConfig = (() => {
|
|
|
2614
2844
|
path: _path + ".logging",
|
|
2615
2845
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2616
2846
|
value: input.logging
|
|
2617
|
-
})) &&
|
|
2847
|
+
})) && _vo89(input.logging, _path + ".logging", _exceptionable) || _report(_exceptionable, {
|
|
2618
2848
|
path: _path + ".logging",
|
|
2619
2849
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2620
2850
|
value: input.logging
|
|
@@ -2622,7 +2852,7 @@ var validateCloudConfig = (() => {
|
|
|
2622
2852
|
path: _path + ".env",
|
|
2623
2853
|
expected: "(Record<string, unknown> | undefined)",
|
|
2624
2854
|
value: input.env
|
|
2625
|
-
})) &&
|
|
2855
|
+
})) && _vo5(input.env, _path + ".env", _exceptionable) || _report(_exceptionable, {
|
|
2626
2856
|
path: _path + ".env",
|
|
2627
2857
|
expected: "(Record<string, unknown> | undefined)",
|
|
2628
2858
|
value: input.env
|
|
@@ -2634,11 +2864,11 @@ var validateCloudConfig = (() => {
|
|
|
2634
2864
|
return true;
|
|
2635
2865
|
return true;
|
|
2636
2866
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2637
|
-
const
|
|
2867
|
+
const _vo22 = (input, _path, _exceptionable = true) => [void 0 === input.defaults || ("object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) || _report(_exceptionable, {
|
|
2638
2868
|
path: _path + ".defaults",
|
|
2639
2869
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2640
2870
|
value: input.defaults
|
|
2641
|
-
})) &&
|
|
2871
|
+
})) && _vo23(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
2642
2872
|
path: _path + ".defaults",
|
|
2643
2873
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2644
2874
|
value: input.defaults
|
|
@@ -2646,12 +2876,12 @@ var validateCloudConfig = (() => {
|
|
|
2646
2876
|
path: _path + ".list",
|
|
2647
2877
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2648
2878
|
value: input.list
|
|
2649
|
-
})) && input.list.map((elem,
|
|
2650
|
-
path: _path + ".list[" +
|
|
2879
|
+
})) && input.list.map((elem, _index52) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2880
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2651
2881
|
expected: "OpenClawAgentConfig",
|
|
2652
2882
|
value: elem
|
|
2653
|
-
})) &&
|
|
2654
|
-
path: _path + ".list[" +
|
|
2883
|
+
})) && _vo30(elem, _path + ".list[" + _index52 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2884
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2655
2885
|
expected: "OpenClawAgentConfig",
|
|
2656
2886
|
value: elem
|
|
2657
2887
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2659,7 +2889,7 @@ var validateCloudConfig = (() => {
|
|
|
2659
2889
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2660
2890
|
value: input.list
|
|
2661
2891
|
})].every((flag) => flag);
|
|
2662
|
-
const
|
|
2892
|
+
const _vo23 = (input, _path, _exceptionable = true) => [void 0 === input.workspace || "string" === typeof input.workspace || _report(_exceptionable, {
|
|
2663
2893
|
path: _path + ".workspace",
|
|
2664
2894
|
expected: "(string | undefined)",
|
|
2665
2895
|
value: input.workspace
|
|
@@ -2695,7 +2925,7 @@ var validateCloudConfig = (() => {
|
|
|
2695
2925
|
path: _path + ".model",
|
|
2696
2926
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2697
2927
|
value: input.model
|
|
2698
|
-
})) &&
|
|
2928
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2699
2929
|
path: _path + ".model",
|
|
2700
2930
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2701
2931
|
value: input.model
|
|
@@ -2707,7 +2937,7 @@ var validateCloudConfig = (() => {
|
|
|
2707
2937
|
path: _path + ".imageModel",
|
|
2708
2938
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2709
2939
|
value: input.imageModel
|
|
2710
|
-
})) &&
|
|
2940
|
+
})) && _vo24(input.imageModel, _path + ".imageModel", _exceptionable) || _report(_exceptionable, {
|
|
2711
2941
|
path: _path + ".imageModel",
|
|
2712
2942
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2713
2943
|
value: input.imageModel
|
|
@@ -2719,7 +2949,7 @@ var validateCloudConfig = (() => {
|
|
|
2719
2949
|
path: _path + ".pdfModel",
|
|
2720
2950
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2721
2951
|
value: input.pdfModel
|
|
2722
|
-
})) &&
|
|
2952
|
+
})) && _vo24(input.pdfModel, _path + ".pdfModel", _exceptionable) || _report(_exceptionable, {
|
|
2723
2953
|
path: _path + ".pdfModel",
|
|
2724
2954
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2725
2955
|
value: input.pdfModel
|
|
@@ -2731,7 +2961,7 @@ var validateCloudConfig = (() => {
|
|
|
2731
2961
|
path: _path + ".imageGenerationModel",
|
|
2732
2962
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2733
2963
|
value: input.imageGenerationModel
|
|
2734
|
-
})) &&
|
|
2964
|
+
})) && _vo24(input.imageGenerationModel, _path + ".imageGenerationModel", _exceptionable) || _report(_exceptionable, {
|
|
2735
2965
|
path: _path + ".imageGenerationModel",
|
|
2736
2966
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2737
2967
|
value: input.imageGenerationModel
|
|
@@ -2739,7 +2969,7 @@ var validateCloudConfig = (() => {
|
|
|
2739
2969
|
path: _path + ".models",
|
|
2740
2970
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2741
2971
|
value: input.models
|
|
2742
|
-
})) &&
|
|
2972
|
+
})) && _vo25(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2743
2973
|
path: _path + ".models",
|
|
2744
2974
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2745
2975
|
value: input.models
|
|
@@ -2811,7 +3041,7 @@ var validateCloudConfig = (() => {
|
|
|
2811
3041
|
path: _path + ".heartbeat",
|
|
2812
3042
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2813
3043
|
value: input.heartbeat
|
|
2814
|
-
})) &&
|
|
3044
|
+
})) && _vo27(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
2815
3045
|
path: _path + ".heartbeat",
|
|
2816
3046
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2817
3047
|
value: input.heartbeat
|
|
@@ -2819,7 +3049,7 @@ var validateCloudConfig = (() => {
|
|
|
2819
3049
|
path: _path + ".compaction",
|
|
2820
3050
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2821
3051
|
value: input.compaction
|
|
2822
|
-
})) &&
|
|
3052
|
+
})) && _vo28(input.compaction, _path + ".compaction", _exceptionable) || _report(_exceptionable, {
|
|
2823
3053
|
path: _path + ".compaction",
|
|
2824
3054
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2825
3055
|
value: input.compaction
|
|
@@ -2827,7 +3057,7 @@ var validateCloudConfig = (() => {
|
|
|
2827
3057
|
path: _path + ".sandbox",
|
|
2828
3058
|
expected: "(Record<string, unknown> | undefined)",
|
|
2829
3059
|
value: input.sandbox
|
|
2830
|
-
})) &&
|
|
3060
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
2831
3061
|
path: _path + ".sandbox",
|
|
2832
3062
|
expected: "(Record<string, unknown> | undefined)",
|
|
2833
3063
|
value: input.sandbox
|
|
@@ -2835,12 +3065,12 @@ var validateCloudConfig = (() => {
|
|
|
2835
3065
|
path: _path + ".subagents",
|
|
2836
3066
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2837
3067
|
value: input.subagents
|
|
2838
|
-
})) &&
|
|
3068
|
+
})) && _vo29(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
2839
3069
|
path: _path + ".subagents",
|
|
2840
3070
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2841
3071
|
value: input.subagents
|
|
2842
3072
|
})].every((flag) => flag);
|
|
2843
|
-
const
|
|
3073
|
+
const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.primary || _report(_exceptionable, {
|
|
2844
3074
|
path: _path + ".primary",
|
|
2845
3075
|
expected: "string",
|
|
2846
3076
|
value: input.primary
|
|
@@ -2848,8 +3078,8 @@ var validateCloudConfig = (() => {
|
|
|
2848
3078
|
path: _path + ".fallbacks",
|
|
2849
3079
|
expected: "(Array<string> | undefined)",
|
|
2850
3080
|
value: input.fallbacks
|
|
2851
|
-
})) && input.fallbacks.map((elem,
|
|
2852
|
-
path: _path + ".fallbacks[" +
|
|
3081
|
+
})) && input.fallbacks.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
3082
|
+
path: _path + ".fallbacks[" + _index53 + "]",
|
|
2853
3083
|
expected: "string",
|
|
2854
3084
|
value: elem
|
|
2855
3085
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2857,7 +3087,7 @@ var validateCloudConfig = (() => {
|
|
|
2857
3087
|
expected: "(Array<string> | undefined)",
|
|
2858
3088
|
value: input.fallbacks
|
|
2859
3089
|
})].every((flag) => flag);
|
|
2860
|
-
const
|
|
3090
|
+
const _vo25 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2861
3091
|
const value = input[key];
|
|
2862
3092
|
if (void 0 === value)
|
|
2863
3093
|
return true;
|
|
@@ -2865,13 +3095,13 @@ var validateCloudConfig = (() => {
|
|
|
2865
3095
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2866
3096
|
expected: "OpenClawModelEntry",
|
|
2867
3097
|
value
|
|
2868
|
-
})) &&
|
|
3098
|
+
})) && _vo26(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2869
3099
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2870
3100
|
expected: "OpenClawModelEntry",
|
|
2871
3101
|
value
|
|
2872
3102
|
});
|
|
2873
3103
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2874
|
-
const
|
|
3104
|
+
const _vo26 = (input, _path, _exceptionable = true) => [void 0 === input.alias || "string" === typeof input.alias || _report(_exceptionable, {
|
|
2875
3105
|
path: _path + ".alias",
|
|
2876
3106
|
expected: "(string | undefined)",
|
|
2877
3107
|
value: input.alias
|
|
@@ -2879,12 +3109,12 @@ var validateCloudConfig = (() => {
|
|
|
2879
3109
|
path: _path + ".params",
|
|
2880
3110
|
expected: "(Record<string, unknown> | undefined)",
|
|
2881
3111
|
value: input.params
|
|
2882
|
-
})) &&
|
|
3112
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
2883
3113
|
path: _path + ".params",
|
|
2884
3114
|
expected: "(Record<string, unknown> | undefined)",
|
|
2885
3115
|
value: input.params
|
|
2886
3116
|
})].every((flag) => flag);
|
|
2887
|
-
const
|
|
3117
|
+
const _vo27 = (input, _path, _exceptionable = true) => [void 0 === input.every || "string" === typeof input.every || _report(_exceptionable, {
|
|
2888
3118
|
path: _path + ".every",
|
|
2889
3119
|
expected: "(string | undefined)",
|
|
2890
3120
|
value: input.every
|
|
@@ -2909,7 +3139,7 @@ var validateCloudConfig = (() => {
|
|
|
2909
3139
|
expected: "(string | undefined)",
|
|
2910
3140
|
value: input.target
|
|
2911
3141
|
})].every((flag) => flag);
|
|
2912
|
-
const
|
|
3142
|
+
const _vo28 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "default" === input.mode || "safeguard" === input.mode || _report(_exceptionable, {
|
|
2913
3143
|
path: _path + ".mode",
|
|
2914
3144
|
expected: '("default" | "safeguard" | undefined)',
|
|
2915
3145
|
value: input.mode
|
|
@@ -2934,7 +3164,7 @@ var validateCloudConfig = (() => {
|
|
|
2934
3164
|
expected: "(string | undefined)",
|
|
2935
3165
|
value: input.model
|
|
2936
3166
|
})].every((flag) => flag);
|
|
2937
|
-
const
|
|
3167
|
+
const _vo29 = (input, _path, _exceptionable = true) => [void 0 === input.model || "string" === typeof input.model || _report(_exceptionable, {
|
|
2938
3168
|
path: _path + ".model",
|
|
2939
3169
|
expected: "(string | undefined)",
|
|
2940
3170
|
value: input.model
|
|
@@ -2955,7 +3185,7 @@ var validateCloudConfig = (() => {
|
|
|
2955
3185
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
2956
3186
|
value: input.runTimeoutSeconds
|
|
2957
3187
|
})].every((flag) => flag);
|
|
2958
|
-
const
|
|
3188
|
+
const _vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2959
3189
|
path: _path + ".id",
|
|
2960
3190
|
expected: "string",
|
|
2961
3191
|
value: input.id
|
|
@@ -2983,7 +3213,7 @@ var validateCloudConfig = (() => {
|
|
|
2983
3213
|
path: _path + ".model",
|
|
2984
3214
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2985
3215
|
value: input.model
|
|
2986
|
-
})) &&
|
|
3216
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2987
3217
|
path: _path + ".model",
|
|
2988
3218
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2989
3219
|
value: input.model
|
|
@@ -2995,7 +3225,7 @@ var validateCloudConfig = (() => {
|
|
|
2995
3225
|
path: _path + ".params",
|
|
2996
3226
|
expected: "(Record<string, unknown> | undefined)",
|
|
2997
3227
|
value: input.params
|
|
2998
|
-
})) &&
|
|
3228
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
2999
3229
|
path: _path + ".params",
|
|
3000
3230
|
expected: "(Record<string, unknown> | undefined)",
|
|
3001
3231
|
value: input.params
|
|
@@ -3003,7 +3233,7 @@ var validateCloudConfig = (() => {
|
|
|
3003
3233
|
path: _path + ".identity",
|
|
3004
3234
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3005
3235
|
value: input.identity
|
|
3006
|
-
})) &&
|
|
3236
|
+
})) && _vo31(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
3007
3237
|
path: _path + ".identity",
|
|
3008
3238
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3009
3239
|
value: input.identity
|
|
@@ -3011,7 +3241,7 @@ var validateCloudConfig = (() => {
|
|
|
3011
3241
|
path: _path + ".groupChat",
|
|
3012
3242
|
expected: "(__type.o13 | undefined)",
|
|
3013
3243
|
value: input.groupChat
|
|
3014
|
-
})) &&
|
|
3244
|
+
})) && _vo32(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
3015
3245
|
path: _path + ".groupChat",
|
|
3016
3246
|
expected: "(__type.o13 | undefined)",
|
|
3017
3247
|
value: input.groupChat
|
|
@@ -3019,7 +3249,7 @@ var validateCloudConfig = (() => {
|
|
|
3019
3249
|
path: _path + ".runtime",
|
|
3020
3250
|
expected: "(__type.o14 | undefined)",
|
|
3021
3251
|
value: input.runtime
|
|
3022
|
-
})) &&
|
|
3252
|
+
})) && _vo33(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3023
3253
|
path: _path + ".runtime",
|
|
3024
3254
|
expected: "(__type.o14 | undefined)",
|
|
3025
3255
|
value: input.runtime
|
|
@@ -3027,7 +3257,7 @@ var validateCloudConfig = (() => {
|
|
|
3027
3257
|
path: _path + ".subagents",
|
|
3028
3258
|
expected: "(__type.o15 | undefined)",
|
|
3029
3259
|
value: input.subagents
|
|
3030
|
-
})) &&
|
|
3260
|
+
})) && _vo35(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
3031
3261
|
path: _path + ".subagents",
|
|
3032
3262
|
expected: "(__type.o15 | undefined)",
|
|
3033
3263
|
value: input.subagents
|
|
@@ -3035,7 +3265,7 @@ var validateCloudConfig = (() => {
|
|
|
3035
3265
|
path: _path + ".tools",
|
|
3036
3266
|
expected: "(__type.o16 | undefined)",
|
|
3037
3267
|
value: input.tools
|
|
3038
|
-
})) &&
|
|
3268
|
+
})) && _vo36(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
3039
3269
|
path: _path + ".tools",
|
|
3040
3270
|
expected: "(__type.o16 | undefined)",
|
|
3041
3271
|
value: input.tools
|
|
@@ -3043,7 +3273,7 @@ var validateCloudConfig = (() => {
|
|
|
3043
3273
|
path: _path + ".sandbox",
|
|
3044
3274
|
expected: "(Record<string, unknown> | undefined)",
|
|
3045
3275
|
value: input.sandbox
|
|
3046
|
-
})) &&
|
|
3276
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
3047
3277
|
path: _path + ".sandbox",
|
|
3048
3278
|
expected: "(Record<string, unknown> | undefined)",
|
|
3049
3279
|
value: input.sandbox
|
|
@@ -3056,7 +3286,7 @@ var validateCloudConfig = (() => {
|
|
|
3056
3286
|
expected: "(string | undefined)",
|
|
3057
3287
|
value: input.instructions
|
|
3058
3288
|
})].every((flag) => flag);
|
|
3059
|
-
const
|
|
3289
|
+
const _vo31 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
3060
3290
|
path: _path + ".name",
|
|
3061
3291
|
expected: "(string | undefined)",
|
|
3062
3292
|
value: input.name
|
|
@@ -3073,12 +3303,12 @@ var validateCloudConfig = (() => {
|
|
|
3073
3303
|
expected: "(string | undefined)",
|
|
3074
3304
|
value: input.avatar
|
|
3075
3305
|
})].every((flag) => flag);
|
|
3076
|
-
const
|
|
3306
|
+
const _vo32 = (input, _path, _exceptionable = true) => [void 0 === input.mentionPatterns || (Array.isArray(input.mentionPatterns) || _report(_exceptionable, {
|
|
3077
3307
|
path: _path + ".mentionPatterns",
|
|
3078
3308
|
expected: "(Array<string> | undefined)",
|
|
3079
3309
|
value: input.mentionPatterns
|
|
3080
|
-
})) && input.mentionPatterns.map((elem,
|
|
3081
|
-
path: _path + ".mentionPatterns[" +
|
|
3310
|
+
})) && input.mentionPatterns.map((elem, _index54) => "string" === typeof elem || _report(_exceptionable, {
|
|
3311
|
+
path: _path + ".mentionPatterns[" + _index54 + "]",
|
|
3082
3312
|
expected: "string",
|
|
3083
3313
|
value: elem
|
|
3084
3314
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3086,7 +3316,7 @@ var validateCloudConfig = (() => {
|
|
|
3086
3316
|
expected: "(Array<string> | undefined)",
|
|
3087
3317
|
value: input.mentionPatterns
|
|
3088
3318
|
})].every((flag) => flag);
|
|
3089
|
-
const
|
|
3319
|
+
const _vo33 = (input, _path, _exceptionable = true) => ["acp" === input.type || "subagent" === input.type || _report(_exceptionable, {
|
|
3090
3320
|
path: _path + ".type",
|
|
3091
3321
|
expected: '("acp" | "subagent")',
|
|
3092
3322
|
value: input.type
|
|
@@ -3094,12 +3324,12 @@ var validateCloudConfig = (() => {
|
|
|
3094
3324
|
path: _path + ".acp",
|
|
3095
3325
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3096
3326
|
value: input.acp
|
|
3097
|
-
})) &&
|
|
3327
|
+
})) && _vo34(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3098
3328
|
path: _path + ".acp",
|
|
3099
3329
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3100
3330
|
value: input.acp
|
|
3101
3331
|
})].every((flag) => flag);
|
|
3102
|
-
const
|
|
3332
|
+
const _vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.agent || _report(_exceptionable, {
|
|
3103
3333
|
path: _path + ".agent",
|
|
3104
3334
|
expected: "string",
|
|
3105
3335
|
value: input.agent
|
|
@@ -3116,12 +3346,12 @@ var validateCloudConfig = (() => {
|
|
|
3116
3346
|
expected: "(string | undefined)",
|
|
3117
3347
|
value: input.cwd
|
|
3118
3348
|
})].every((flag) => flag);
|
|
3119
|
-
const
|
|
3349
|
+
const _vo35 = (input, _path, _exceptionable = true) => [void 0 === input.allowAgents || (Array.isArray(input.allowAgents) || _report(_exceptionable, {
|
|
3120
3350
|
path: _path + ".allowAgents",
|
|
3121
3351
|
expected: "(Array<string> | undefined)",
|
|
3122
3352
|
value: input.allowAgents
|
|
3123
|
-
})) && input.allowAgents.map((elem,
|
|
3124
|
-
path: _path + ".allowAgents[" +
|
|
3353
|
+
})) && input.allowAgents.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
3354
|
+
path: _path + ".allowAgents[" + _index55 + "]",
|
|
3125
3355
|
expected: "string",
|
|
3126
3356
|
value: elem
|
|
3127
3357
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3129,7 +3359,7 @@ var validateCloudConfig = (() => {
|
|
|
3129
3359
|
expected: "(Array<string> | undefined)",
|
|
3130
3360
|
value: input.allowAgents
|
|
3131
3361
|
})].every((flag) => flag);
|
|
3132
|
-
const
|
|
3362
|
+
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, {
|
|
3133
3363
|
path: _path + ".profile",
|
|
3134
3364
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
3135
3365
|
value: input.profile
|
|
@@ -3137,8 +3367,8 @@ var validateCloudConfig = (() => {
|
|
|
3137
3367
|
path: _path + ".allow",
|
|
3138
3368
|
expected: "(Array<string> | undefined)",
|
|
3139
3369
|
value: input.allow
|
|
3140
|
-
})) && input.allow.map((elem,
|
|
3141
|
-
path: _path + ".allow[" +
|
|
3370
|
+
})) && input.allow.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
3371
|
+
path: _path + ".allow[" + _index56 + "]",
|
|
3142
3372
|
expected: "string",
|
|
3143
3373
|
value: elem
|
|
3144
3374
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3149,8 +3379,8 @@ var validateCloudConfig = (() => {
|
|
|
3149
3379
|
path: _path + ".deny",
|
|
3150
3380
|
expected: "(Array<string> | undefined)",
|
|
3151
3381
|
value: input.deny
|
|
3152
|
-
})) && input.deny.map((elem,
|
|
3153
|
-
path: _path + ".deny[" +
|
|
3382
|
+
})) && input.deny.map((elem, _index57) => "string" === typeof elem || _report(_exceptionable, {
|
|
3383
|
+
path: _path + ".deny[" + _index57 + "]",
|
|
3154
3384
|
expected: "string",
|
|
3155
3385
|
value: elem
|
|
3156
3386
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3161,17 +3391,17 @@ var validateCloudConfig = (() => {
|
|
|
3161
3391
|
path: _path + ".elevated",
|
|
3162
3392
|
expected: "(__type.o17 | undefined)",
|
|
3163
3393
|
value: input.elevated
|
|
3164
|
-
})) &&
|
|
3394
|
+
})) && _vo37(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
3165
3395
|
path: _path + ".elevated",
|
|
3166
3396
|
expected: "(__type.o17 | undefined)",
|
|
3167
3397
|
value: input.elevated
|
|
3168
3398
|
})].every((flag) => flag);
|
|
3169
|
-
const
|
|
3399
|
+
const _vo37 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3170
3400
|
path: _path + ".enabled",
|
|
3171
3401
|
expected: "(boolean | undefined)",
|
|
3172
3402
|
value: input.enabled
|
|
3173
3403
|
})].every((flag) => flag);
|
|
3174
|
-
const
|
|
3404
|
+
const _vo38 = (input, _path, _exceptionable = true) => ["string" === typeof input.agentId || _report(_exceptionable, {
|
|
3175
3405
|
path: _path + ".agentId",
|
|
3176
3406
|
expected: "string",
|
|
3177
3407
|
value: input.agentId
|
|
@@ -3183,7 +3413,7 @@ var validateCloudConfig = (() => {
|
|
|
3183
3413
|
path: _path + ".match",
|
|
3184
3414
|
expected: "__type.o18",
|
|
3185
3415
|
value: input.match
|
|
3186
|
-
})) &&
|
|
3416
|
+
})) && _vo39(input.match, _path + ".match", _exceptionable) || _report(_exceptionable, {
|
|
3187
3417
|
path: _path + ".match",
|
|
3188
3418
|
expected: "__type.o18",
|
|
3189
3419
|
value: input.match
|
|
@@ -3191,12 +3421,12 @@ var validateCloudConfig = (() => {
|
|
|
3191
3421
|
path: _path + ".acp",
|
|
3192
3422
|
expected: "(__type.o20 | undefined)",
|
|
3193
3423
|
value: input.acp
|
|
3194
|
-
})) &&
|
|
3424
|
+
})) && _vo41(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3195
3425
|
path: _path + ".acp",
|
|
3196
3426
|
expected: "(__type.o20 | undefined)",
|
|
3197
3427
|
value: input.acp
|
|
3198
3428
|
})].every((flag) => flag);
|
|
3199
|
-
const
|
|
3429
|
+
const _vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.channel || _report(_exceptionable, {
|
|
3200
3430
|
path: _path + ".channel",
|
|
3201
3431
|
expected: "string",
|
|
3202
3432
|
value: input.channel
|
|
@@ -3208,7 +3438,7 @@ var validateCloudConfig = (() => {
|
|
|
3208
3438
|
path: _path + ".peer",
|
|
3209
3439
|
expected: "(__type.o19 | undefined)",
|
|
3210
3440
|
value: input.peer
|
|
3211
|
-
})) &&
|
|
3441
|
+
})) && _vo40(input.peer, _path + ".peer", _exceptionable) || _report(_exceptionable, {
|
|
3212
3442
|
path: _path + ".peer",
|
|
3213
3443
|
expected: "(__type.o19 | undefined)",
|
|
3214
3444
|
value: input.peer
|
|
@@ -3221,7 +3451,7 @@ var validateCloudConfig = (() => {
|
|
|
3221
3451
|
expected: "(string | undefined)",
|
|
3222
3452
|
value: input.teamId
|
|
3223
3453
|
})].every((flag) => flag);
|
|
3224
|
-
const
|
|
3454
|
+
const _vo40 = (input, _path, _exceptionable = true) => [void 0 === input.kind || "direct" === input.kind || "group" === input.kind || "channel" === input.kind || _report(_exceptionable, {
|
|
3225
3455
|
path: _path + ".kind",
|
|
3226
3456
|
expected: '("channel" | "direct" | "group" | undefined)',
|
|
3227
3457
|
value: input.kind
|
|
@@ -3230,7 +3460,7 @@ var validateCloudConfig = (() => {
|
|
|
3230
3460
|
expected: "(string | undefined)",
|
|
3231
3461
|
value: input.id
|
|
3232
3462
|
})].every((flag) => flag);
|
|
3233
|
-
const
|
|
3463
|
+
const _vo41 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "string" === typeof input.mode || _report(_exceptionable, {
|
|
3234
3464
|
path: _path + ".mode",
|
|
3235
3465
|
expected: "(string | undefined)",
|
|
3236
3466
|
value: input.mode
|
|
@@ -3247,11 +3477,11 @@ var validateCloudConfig = (() => {
|
|
|
3247
3477
|
expected: "(string | undefined)",
|
|
3248
3478
|
value: input.backend
|
|
3249
3479
|
})].every((flag) => flag);
|
|
3250
|
-
const
|
|
3480
|
+
const _vo42 = (input, _path, _exceptionable = true) => [void 0 === input.defaults || ("object" === typeof input.defaults && null !== input.defaults && false === Array.isArray(input.defaults) || _report(_exceptionable, {
|
|
3251
3481
|
path: _path + ".defaults",
|
|
3252
3482
|
expected: "(__type.o21 | undefined)",
|
|
3253
3483
|
value: input.defaults
|
|
3254
|
-
})) &&
|
|
3484
|
+
})) && _vo43(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
3255
3485
|
path: _path + ".defaults",
|
|
3256
3486
|
expected: "(__type.o21 | undefined)",
|
|
3257
3487
|
value: input.defaults
|
|
@@ -3267,7 +3497,7 @@ var validateCloudConfig = (() => {
|
|
|
3267
3497
|
path: _path + ".telegram",
|
|
3268
3498
|
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)',
|
|
3269
3499
|
value: input.telegram
|
|
3270
|
-
})) &&
|
|
3500
|
+
})) && _vo45(input.telegram, _path + ".telegram", _exceptionable) || _report(_exceptionable, {
|
|
3271
3501
|
path: _path + ".telegram",
|
|
3272
3502
|
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)',
|
|
3273
3503
|
value: input.telegram
|
|
@@ -3275,7 +3505,7 @@ var validateCloudConfig = (() => {
|
|
|
3275
3505
|
path: _path + ".discord",
|
|
3276
3506
|
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)',
|
|
3277
3507
|
value: input.discord
|
|
3278
|
-
})) &&
|
|
3508
|
+
})) && _vo48(input.discord, _path + ".discord", _exceptionable) || _report(_exceptionable, {
|
|
3279
3509
|
path: _path + ".discord",
|
|
3280
3510
|
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)',
|
|
3281
3511
|
value: input.discord
|
|
@@ -3283,7 +3513,7 @@ var validateCloudConfig = (() => {
|
|
|
3283
3513
|
path: _path + ".slack",
|
|
3284
3514
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3285
3515
|
value: input.slack
|
|
3286
|
-
})) &&
|
|
3516
|
+
})) && _vo49(input.slack, _path + ".slack", _exceptionable) || _report(_exceptionable, {
|
|
3287
3517
|
path: _path + ".slack",
|
|
3288
3518
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3289
3519
|
value: input.slack
|
|
@@ -3291,7 +3521,7 @@ var validateCloudConfig = (() => {
|
|
|
3291
3521
|
path: _path + ".whatsapp",
|
|
3292
3522
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3293
3523
|
value: input.whatsapp
|
|
3294
|
-
})) &&
|
|
3524
|
+
})) && _vo50(input.whatsapp, _path + ".whatsapp", _exceptionable) || _report(_exceptionable, {
|
|
3295
3525
|
path: _path + ".whatsapp",
|
|
3296
3526
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3297
3527
|
value: input.whatsapp
|
|
@@ -3299,7 +3529,7 @@ var validateCloudConfig = (() => {
|
|
|
3299
3529
|
path: _path + ".shadowob",
|
|
3300
3530
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3301
3531
|
value: input.shadowob
|
|
3302
|
-
})) &&
|
|
3532
|
+
})) && _vo51(input.shadowob, _path + ".shadowob", _exceptionable) || _report(_exceptionable, {
|
|
3303
3533
|
path: _path + ".shadowob",
|
|
3304
3534
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3305
3535
|
value: input.shadowob
|
|
@@ -3311,7 +3541,7 @@ var validateCloudConfig = (() => {
|
|
|
3311
3541
|
return true;
|
|
3312
3542
|
return true;
|
|
3313
3543
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3314
|
-
const
|
|
3544
|
+
const _vo43 = (input, _path, _exceptionable = true) => [void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy || _report(_exceptionable, {
|
|
3315
3545
|
path: _path + ".groupPolicy",
|
|
3316
3546
|
expected: '("allowlist" | "disabled" | "open" | undefined)',
|
|
3317
3547
|
value: input.groupPolicy
|
|
@@ -3319,12 +3549,12 @@ var validateCloudConfig = (() => {
|
|
|
3319
3549
|
path: _path + ".heartbeat",
|
|
3320
3550
|
expected: "(__type.o22 | undefined)",
|
|
3321
3551
|
value: input.heartbeat
|
|
3322
|
-
})) &&
|
|
3552
|
+
})) && _vo44(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
3323
3553
|
path: _path + ".heartbeat",
|
|
3324
3554
|
expected: "(__type.o22 | undefined)",
|
|
3325
3555
|
value: input.heartbeat
|
|
3326
3556
|
})].every((flag) => flag);
|
|
3327
|
-
const
|
|
3557
|
+
const _vo44 = (input, _path, _exceptionable = true) => [void 0 === input.showOk || "boolean" === typeof input.showOk || _report(_exceptionable, {
|
|
3328
3558
|
path: _path + ".showOk",
|
|
3329
3559
|
expected: "(boolean | undefined)",
|
|
3330
3560
|
value: input.showOk
|
|
@@ -3337,7 +3567,7 @@ var validateCloudConfig = (() => {
|
|
|
3337
3567
|
expected: "(boolean | undefined)",
|
|
3338
3568
|
value: input.useIndicator
|
|
3339
3569
|
})].every((flag) => flag);
|
|
3340
|
-
const
|
|
3570
|
+
const _vo45 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3341
3571
|
path: _path + ".enabled",
|
|
3342
3572
|
expected: "(boolean | undefined)",
|
|
3343
3573
|
value: input.enabled
|
|
@@ -3345,7 +3575,7 @@ var validateCloudConfig = (() => {
|
|
|
3345
3575
|
path: _path + ".capabilities",
|
|
3346
3576
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3347
3577
|
value: input.capabilities
|
|
3348
|
-
})) &&
|
|
3578
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3349
3579
|
path: _path + ".capabilities",
|
|
3350
3580
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3351
3581
|
value: input.capabilities
|
|
@@ -3357,8 +3587,8 @@ var validateCloudConfig = (() => {
|
|
|
3357
3587
|
path: _path + ".allowFrom",
|
|
3358
3588
|
expected: "(Array<string> | undefined)",
|
|
3359
3589
|
value: input.allowFrom
|
|
3360
|
-
})) && input.allowFrom.map((elem,
|
|
3361
|
-
path: _path + ".allowFrom[" +
|
|
3590
|
+
})) && input.allowFrom.map((elem, _index58) => "string" === typeof elem || _report(_exceptionable, {
|
|
3591
|
+
path: _path + ".allowFrom[" + _index58 + "]",
|
|
3362
3592
|
expected: "string",
|
|
3363
3593
|
value: elem
|
|
3364
3594
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3401,7 +3631,7 @@ var validateCloudConfig = (() => {
|
|
|
3401
3631
|
path: _path + ".groups",
|
|
3402
3632
|
expected: "(Record<string, unknown> | undefined)",
|
|
3403
3633
|
value: input.groups
|
|
3404
|
-
})) &&
|
|
3634
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3405
3635
|
path: _path + ".groups",
|
|
3406
3636
|
expected: "(Record<string, unknown> | undefined)",
|
|
3407
3637
|
value: input.groups
|
|
@@ -3409,12 +3639,12 @@ var validateCloudConfig = (() => {
|
|
|
3409
3639
|
path: _path + ".customCommands",
|
|
3410
3640
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3411
3641
|
value: input.customCommands
|
|
3412
|
-
})) && input.customCommands.map((elem,
|
|
3413
|
-
path: _path + ".customCommands[" +
|
|
3642
|
+
})) && input.customCommands.map((elem, _index59) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3643
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3414
3644
|
expected: "__type.o24",
|
|
3415
3645
|
value: elem
|
|
3416
|
-
})) &&
|
|
3417
|
-
path: _path + ".customCommands[" +
|
|
3646
|
+
})) && _vo47(elem, _path + ".customCommands[" + _index59 + "]", _exceptionable) || _report(_exceptionable, {
|
|
3647
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3418
3648
|
expected: "__type.o24",
|
|
3419
3649
|
value: elem
|
|
3420
3650
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3430,7 +3660,7 @@ var validateCloudConfig = (() => {
|
|
|
3430
3660
|
expected: "(boolean | undefined)",
|
|
3431
3661
|
value: input.linkPreview
|
|
3432
3662
|
})].every((flag) => flag);
|
|
3433
|
-
const
|
|
3663
|
+
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, {
|
|
3434
3664
|
path: _path + ".inlineButtons",
|
|
3435
3665
|
expected: '("all" | "allowlist" | "dm" | "group" | "off" | boolean | undefined)',
|
|
3436
3666
|
value: input.inlineButtons
|
|
@@ -3450,7 +3680,7 @@ var validateCloudConfig = (() => {
|
|
|
3450
3680
|
return true;
|
|
3451
3681
|
return true;
|
|
3452
3682
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3453
|
-
const
|
|
3683
|
+
const _vo47 = (input, _path, _exceptionable = true) => ["string" === typeof input.command || _report(_exceptionable, {
|
|
3454
3684
|
path: _path + ".command",
|
|
3455
3685
|
expected: "string",
|
|
3456
3686
|
value: input.command
|
|
@@ -3459,7 +3689,7 @@ var validateCloudConfig = (() => {
|
|
|
3459
3689
|
expected: "string",
|
|
3460
3690
|
value: input.description
|
|
3461
3691
|
})].every((flag) => flag);
|
|
3462
|
-
const
|
|
3692
|
+
const _vo48 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3463
3693
|
path: _path + ".enabled",
|
|
3464
3694
|
expected: "(boolean | undefined)",
|
|
3465
3695
|
value: input.enabled
|
|
@@ -3467,7 +3697,7 @@ var validateCloudConfig = (() => {
|
|
|
3467
3697
|
path: _path + ".capabilities",
|
|
3468
3698
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3469
3699
|
value: input.capabilities
|
|
3470
|
-
})) &&
|
|
3700
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3471
3701
|
path: _path + ".capabilities",
|
|
3472
3702
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3473
3703
|
value: input.capabilities
|
|
@@ -3479,8 +3709,8 @@ var validateCloudConfig = (() => {
|
|
|
3479
3709
|
path: _path + ".allowFrom",
|
|
3480
3710
|
expected: "(Array<string> | undefined)",
|
|
3481
3711
|
value: input.allowFrom
|
|
3482
|
-
})) && input.allowFrom.map((elem,
|
|
3483
|
-
path: _path + ".allowFrom[" +
|
|
3712
|
+
})) && input.allowFrom.map((elem, _index60) => "string" === typeof elem || _report(_exceptionable, {
|
|
3713
|
+
path: _path + ".allowFrom[" + _index60 + "]",
|
|
3484
3714
|
expected: "string",
|
|
3485
3715
|
value: elem
|
|
3486
3716
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3527,7 +3757,7 @@ var validateCloudConfig = (() => {
|
|
|
3527
3757
|
path: _path + ".guilds",
|
|
3528
3758
|
expected: "(Record<string, unknown> | undefined)",
|
|
3529
3759
|
value: input.guilds
|
|
3530
|
-
})) &&
|
|
3760
|
+
})) && _vo5(input.guilds, _path + ".guilds", _exceptionable) || _report(_exceptionable, {
|
|
3531
3761
|
path: _path + ".guilds",
|
|
3532
3762
|
expected: "(Record<string, unknown> | undefined)",
|
|
3533
3763
|
value: input.guilds
|
|
@@ -3544,7 +3774,7 @@ var validateCloudConfig = (() => {
|
|
|
3544
3774
|
expected: '("length" | "newline" | undefined)',
|
|
3545
3775
|
value: input.chunkMode
|
|
3546
3776
|
})].every((flag) => flag);
|
|
3547
|
-
const
|
|
3777
|
+
const _vo49 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3548
3778
|
path: _path + ".enabled",
|
|
3549
3779
|
expected: "(boolean | undefined)",
|
|
3550
3780
|
value: input.enabled
|
|
@@ -3552,7 +3782,7 @@ var validateCloudConfig = (() => {
|
|
|
3552
3782
|
path: _path + ".capabilities",
|
|
3553
3783
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3554
3784
|
value: input.capabilities
|
|
3555
|
-
})) &&
|
|
3785
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3556
3786
|
path: _path + ".capabilities",
|
|
3557
3787
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3558
3788
|
value: input.capabilities
|
|
@@ -3564,8 +3794,8 @@ var validateCloudConfig = (() => {
|
|
|
3564
3794
|
path: _path + ".allowFrom",
|
|
3565
3795
|
expected: "(Array<string> | undefined)",
|
|
3566
3796
|
value: input.allowFrom
|
|
3567
|
-
})) && input.allowFrom.map((elem,
|
|
3568
|
-
path: _path + ".allowFrom[" +
|
|
3797
|
+
})) && input.allowFrom.map((elem, _index61) => "string" === typeof elem || _report(_exceptionable, {
|
|
3798
|
+
path: _path + ".allowFrom[" + _index61 + "]",
|
|
3569
3799
|
expected: "string",
|
|
3570
3800
|
value: elem
|
|
3571
3801
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3612,7 +3842,7 @@ var validateCloudConfig = (() => {
|
|
|
3612
3842
|
path: _path + ".channels",
|
|
3613
3843
|
expected: "(Record<string, unknown> | undefined)",
|
|
3614
3844
|
value: input.channels
|
|
3615
|
-
})) &&
|
|
3845
|
+
})) && _vo5(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
3616
3846
|
path: _path + ".channels",
|
|
3617
3847
|
expected: "(Record<string, unknown> | undefined)",
|
|
3618
3848
|
value: input.channels
|
|
@@ -3621,7 +3851,7 @@ var validateCloudConfig = (() => {
|
|
|
3621
3851
|
expected: "(boolean | undefined)",
|
|
3622
3852
|
value: input.allowBots
|
|
3623
3853
|
})].every((flag) => flag);
|
|
3624
|
-
const
|
|
3854
|
+
const _vo50 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3625
3855
|
path: _path + ".enabled",
|
|
3626
3856
|
expected: "(boolean | undefined)",
|
|
3627
3857
|
value: input.enabled
|
|
@@ -3629,7 +3859,7 @@ var validateCloudConfig = (() => {
|
|
|
3629
3859
|
path: _path + ".capabilities",
|
|
3630
3860
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3631
3861
|
value: input.capabilities
|
|
3632
|
-
})) &&
|
|
3862
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3633
3863
|
path: _path + ".capabilities",
|
|
3634
3864
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3635
3865
|
value: input.capabilities
|
|
@@ -3641,8 +3871,8 @@ var validateCloudConfig = (() => {
|
|
|
3641
3871
|
path: _path + ".allowFrom",
|
|
3642
3872
|
expected: "(Array<string> | undefined)",
|
|
3643
3873
|
value: input.allowFrom
|
|
3644
|
-
})) && input.allowFrom.map((elem,
|
|
3645
|
-
path: _path + ".allowFrom[" +
|
|
3874
|
+
})) && input.allowFrom.map((elem, _index62) => "string" === typeof elem || _report(_exceptionable, {
|
|
3875
|
+
path: _path + ".allowFrom[" + _index62 + "]",
|
|
3646
3876
|
expected: "string",
|
|
3647
3877
|
value: elem
|
|
3648
3878
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3693,12 +3923,12 @@ var validateCloudConfig = (() => {
|
|
|
3693
3923
|
path: _path + ".groups",
|
|
3694
3924
|
expected: "(Record<string, unknown> | undefined)",
|
|
3695
3925
|
value: input.groups
|
|
3696
|
-
})) &&
|
|
3926
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3697
3927
|
path: _path + ".groups",
|
|
3698
3928
|
expected: "(Record<string, unknown> | undefined)",
|
|
3699
3929
|
value: input.groups
|
|
3700
3930
|
})].every((flag) => flag);
|
|
3701
|
-
const
|
|
3931
|
+
const _vo51 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3702
3932
|
path: _path + ".enabled",
|
|
3703
3933
|
expected: "(boolean | undefined)",
|
|
3704
3934
|
value: input.enabled
|
|
@@ -3706,7 +3936,7 @@ var validateCloudConfig = (() => {
|
|
|
3706
3936
|
path: _path + ".capabilities",
|
|
3707
3937
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3708
3938
|
value: input.capabilities
|
|
3709
|
-
})) &&
|
|
3939
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3710
3940
|
path: _path + ".capabilities",
|
|
3711
3941
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3712
3942
|
value: input.capabilities
|
|
@@ -3718,8 +3948,8 @@ var validateCloudConfig = (() => {
|
|
|
3718
3948
|
path: _path + ".allowFrom",
|
|
3719
3949
|
expected: "(Array<string> | undefined)",
|
|
3720
3950
|
value: input.allowFrom
|
|
3721
|
-
})) && input.allowFrom.map((elem,
|
|
3722
|
-
path: _path + ".allowFrom[" +
|
|
3951
|
+
})) && input.allowFrom.map((elem, _index63) => "string" === typeof elem || _report(_exceptionable, {
|
|
3952
|
+
path: _path + ".allowFrom[" + _index63 + "]",
|
|
3723
3953
|
expected: "string",
|
|
3724
3954
|
value: elem
|
|
3725
3955
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3758,12 +3988,12 @@ var validateCloudConfig = (() => {
|
|
|
3758
3988
|
path: _path + ".accounts",
|
|
3759
3989
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3760
3990
|
value: input.accounts
|
|
3761
|
-
})) &&
|
|
3991
|
+
})) && _vo52(input.accounts, _path + ".accounts", _exceptionable) || _report(_exceptionable, {
|
|
3762
3992
|
path: _path + ".accounts",
|
|
3763
3993
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3764
3994
|
value: input.accounts
|
|
3765
3995
|
})].every((flag) => flag);
|
|
3766
|
-
const
|
|
3996
|
+
const _vo52 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3767
3997
|
const value = input[key];
|
|
3768
3998
|
if (void 0 === value)
|
|
3769
3999
|
return true;
|
|
@@ -3771,13 +4001,13 @@ var validateCloudConfig = (() => {
|
|
|
3771
4001
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3772
4002
|
expected: "__type.o29",
|
|
3773
4003
|
value
|
|
3774
|
-
})) &&
|
|
4004
|
+
})) && _vo53(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3775
4005
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3776
4006
|
expected: "__type.o29",
|
|
3777
4007
|
value
|
|
3778
4008
|
});
|
|
3779
4009
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3780
|
-
const
|
|
4010
|
+
const _vo53 = (input, _path, _exceptionable = true) => [void 0 === input.token || "string" === typeof input.token || _report(_exceptionable, {
|
|
3781
4011
|
path: _path + ".token",
|
|
3782
4012
|
expected: "(string | undefined)",
|
|
3783
4013
|
value: input.token
|
|
@@ -3793,12 +4023,12 @@ var validateCloudConfig = (() => {
|
|
|
3793
4023
|
path: _path + ".capabilities",
|
|
3794
4024
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3795
4025
|
value: input.capabilities
|
|
3796
|
-
})) &&
|
|
4026
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3797
4027
|
path: _path + ".capabilities",
|
|
3798
4028
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3799
4029
|
value: input.capabilities
|
|
3800
4030
|
})].every((flag) => flag);
|
|
3801
|
-
const
|
|
4031
|
+
const _vo54 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3802
4032
|
path: _path + ".enabled",
|
|
3803
4033
|
expected: "(boolean | undefined)",
|
|
3804
4034
|
value: input.enabled
|
|
@@ -3806,7 +4036,7 @@ var validateCloudConfig = (() => {
|
|
|
3806
4036
|
path: _path + ".dispatch",
|
|
3807
4037
|
expected: "(__type.o30 | undefined)",
|
|
3808
4038
|
value: input.dispatch
|
|
3809
|
-
})) &&
|
|
4039
|
+
})) && _vo55(input.dispatch, _path + ".dispatch", _exceptionable) || _report(_exceptionable, {
|
|
3810
4040
|
path: _path + ".dispatch",
|
|
3811
4041
|
expected: "(__type.o30 | undefined)",
|
|
3812
4042
|
value: input.dispatch
|
|
@@ -3822,8 +4052,8 @@ var validateCloudConfig = (() => {
|
|
|
3822
4052
|
path: _path + ".allowedAgents",
|
|
3823
4053
|
expected: "(Array<string> | undefined)",
|
|
3824
4054
|
value: input.allowedAgents
|
|
3825
|
-
})) && input.allowedAgents.map((elem,
|
|
3826
|
-
path: _path + ".allowedAgents[" +
|
|
4055
|
+
})) && input.allowedAgents.map((elem, _index64) => "string" === typeof elem || _report(_exceptionable, {
|
|
4056
|
+
path: _path + ".allowedAgents[" + _index64 + "]",
|
|
3827
4057
|
expected: "string",
|
|
3828
4058
|
value: elem
|
|
3829
4059
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3842,7 +4072,7 @@ var validateCloudConfig = (() => {
|
|
|
3842
4072
|
path: _path + ".stream",
|
|
3843
4073
|
expected: "(__type.o31 | undefined)",
|
|
3844
4074
|
value: input.stream
|
|
3845
|
-
})) &&
|
|
4075
|
+
})) && _vo56(input.stream, _path + ".stream", _exceptionable) || _report(_exceptionable, {
|
|
3846
4076
|
path: _path + ".stream",
|
|
3847
4077
|
expected: "(__type.o31 | undefined)",
|
|
3848
4078
|
value: input.stream
|
|
@@ -3850,17 +4080,17 @@ var validateCloudConfig = (() => {
|
|
|
3850
4080
|
path: _path + ".runtime",
|
|
3851
4081
|
expected: "(__type.o32 | undefined)",
|
|
3852
4082
|
value: input.runtime
|
|
3853
|
-
})) &&
|
|
4083
|
+
})) && _vo57(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3854
4084
|
path: _path + ".runtime",
|
|
3855
4085
|
expected: "(__type.o32 | undefined)",
|
|
3856
4086
|
value: input.runtime
|
|
3857
4087
|
})].every((flag) => flag);
|
|
3858
|
-
const
|
|
4088
|
+
const _vo55 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3859
4089
|
path: _path + ".enabled",
|
|
3860
4090
|
expected: "(boolean | undefined)",
|
|
3861
4091
|
value: input.enabled
|
|
3862
4092
|
})].every((flag) => flag);
|
|
3863
|
-
const
|
|
4093
|
+
const _vo56 = (input, _path, _exceptionable = true) => [void 0 === input.coalesceIdleMs || "number" === typeof input.coalesceIdleMs || _report(_exceptionable, {
|
|
3864
4094
|
path: _path + ".coalesceIdleMs",
|
|
3865
4095
|
expected: "(number | undefined)",
|
|
3866
4096
|
value: input.coalesceIdleMs
|
|
@@ -3885,12 +4115,12 @@ var validateCloudConfig = (() => {
|
|
|
3885
4115
|
expected: "(number | undefined)",
|
|
3886
4116
|
value: input.maxSessionUpdateChars
|
|
3887
4117
|
})].every((flag) => flag);
|
|
3888
|
-
const
|
|
4118
|
+
const _vo57 = (input, _path, _exceptionable = true) => [void 0 === input.ttlMinutes || "number" === typeof input.ttlMinutes || _report(_exceptionable, {
|
|
3889
4119
|
path: _path + ".ttlMinutes",
|
|
3890
4120
|
expected: "(number | undefined)",
|
|
3891
4121
|
value: input.ttlMinutes
|
|
3892
4122
|
})].every((flag) => flag);
|
|
3893
|
-
const
|
|
4123
|
+
const _vo58 = (input, _path, _exceptionable = true) => [void 0 === input.scope || "string" === typeof input.scope || _report(_exceptionable, {
|
|
3894
4124
|
path: _path + ".scope",
|
|
3895
4125
|
expected: "(string | undefined)",
|
|
3896
4126
|
value: input.scope
|
|
@@ -3902,7 +4132,7 @@ var validateCloudConfig = (() => {
|
|
|
3902
4132
|
path: _path + ".reset",
|
|
3903
4133
|
expected: "(__type.o33 | undefined)",
|
|
3904
4134
|
value: input.reset
|
|
3905
|
-
})) &&
|
|
4135
|
+
})) && _vo59(input.reset, _path + ".reset", _exceptionable) || _report(_exceptionable, {
|
|
3906
4136
|
path: _path + ".reset",
|
|
3907
4137
|
expected: "(__type.o33 | undefined)",
|
|
3908
4138
|
value: input.reset
|
|
@@ -3910,7 +4140,7 @@ var validateCloudConfig = (() => {
|
|
|
3910
4140
|
path: _path + ".resetByType",
|
|
3911
4141
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3912
4142
|
value: input.resetByType
|
|
3913
|
-
})) &&
|
|
4143
|
+
})) && _vo60(input.resetByType, _path + ".resetByType", _exceptionable) || _report(_exceptionable, {
|
|
3914
4144
|
path: _path + ".resetByType",
|
|
3915
4145
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3916
4146
|
value: input.resetByType
|
|
@@ -3918,8 +4148,8 @@ var validateCloudConfig = (() => {
|
|
|
3918
4148
|
path: _path + ".resetTriggers",
|
|
3919
4149
|
expected: "(Array<string> | undefined)",
|
|
3920
4150
|
value: input.resetTriggers
|
|
3921
|
-
})) && input.resetTriggers.map((elem,
|
|
3922
|
-
path: _path + ".resetTriggers[" +
|
|
4151
|
+
})) && input.resetTriggers.map((elem, _index65) => "string" === typeof elem || _report(_exceptionable, {
|
|
4152
|
+
path: _path + ".resetTriggers[" + _index65 + "]",
|
|
3923
4153
|
expected: "string",
|
|
3924
4154
|
value: elem
|
|
3925
4155
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3934,12 +4164,12 @@ var validateCloudConfig = (() => {
|
|
|
3934
4164
|
path: _path + ".threadBindings",
|
|
3935
4165
|
expected: "(__type.o35 | undefined)",
|
|
3936
4166
|
value: input.threadBindings
|
|
3937
|
-
})) &&
|
|
4167
|
+
})) && _vo62(input.threadBindings, _path + ".threadBindings", _exceptionable) || _report(_exceptionable, {
|
|
3938
4168
|
path: _path + ".threadBindings",
|
|
3939
4169
|
expected: "(__type.o35 | undefined)",
|
|
3940
4170
|
value: input.threadBindings
|
|
3941
4171
|
})].every((flag) => flag);
|
|
3942
|
-
const
|
|
4172
|
+
const _vo59 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3943
4173
|
path: _path + ".mode",
|
|
3944
4174
|
expected: '("daily" | "idle" | undefined)',
|
|
3945
4175
|
value: input.mode
|
|
@@ -3952,7 +4182,7 @@ var validateCloudConfig = (() => {
|
|
|
3952
4182
|
expected: "(number | undefined)",
|
|
3953
4183
|
value: input.idleMinutes
|
|
3954
4184
|
})].every((flag) => flag);
|
|
3955
|
-
const
|
|
4185
|
+
const _vo60 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3956
4186
|
const value = input[key];
|
|
3957
4187
|
if (void 0 === value)
|
|
3958
4188
|
return true;
|
|
@@ -3960,13 +4190,13 @@ var validateCloudConfig = (() => {
|
|
|
3960
4190
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3961
4191
|
expected: "__type.o34",
|
|
3962
4192
|
value
|
|
3963
|
-
})) &&
|
|
4193
|
+
})) && _vo61(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3964
4194
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3965
4195
|
expected: "__type.o34",
|
|
3966
4196
|
value
|
|
3967
4197
|
});
|
|
3968
4198
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3969
|
-
const
|
|
4199
|
+
const _vo61 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3970
4200
|
path: _path + ".mode",
|
|
3971
4201
|
expected: '("daily" | "idle" | undefined)',
|
|
3972
4202
|
value: input.mode
|
|
@@ -3979,7 +4209,7 @@ var validateCloudConfig = (() => {
|
|
|
3979
4209
|
expected: "(number | undefined)",
|
|
3980
4210
|
value: input.idleMinutes
|
|
3981
4211
|
})].every((flag) => flag);
|
|
3982
|
-
const
|
|
4212
|
+
const _vo62 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3983
4213
|
path: _path + ".enabled",
|
|
3984
4214
|
expected: "(boolean | undefined)",
|
|
3985
4215
|
value: input.enabled
|
|
@@ -3992,7 +4222,7 @@ var validateCloudConfig = (() => {
|
|
|
3992
4222
|
expected: "(number | undefined)",
|
|
3993
4223
|
value: input.maxAgeHours
|
|
3994
4224
|
})].every((flag) => flag);
|
|
3995
|
-
const
|
|
4225
|
+
const _vo63 = (input, _path, _exceptionable = true) => [void 0 === input.responsePrefix || "string" === typeof input.responsePrefix || _report(_exceptionable, {
|
|
3996
4226
|
path: _path + ".responsePrefix",
|
|
3997
4227
|
expected: "(string | undefined)",
|
|
3998
4228
|
value: input.responsePrefix
|
|
@@ -4012,7 +4242,7 @@ var validateCloudConfig = (() => {
|
|
|
4012
4242
|
path: _path + ".queue",
|
|
4013
4243
|
expected: "(__type.o36 | undefined)",
|
|
4014
4244
|
value: input.queue
|
|
4015
|
-
})) &&
|
|
4245
|
+
})) && _vo64(input.queue, _path + ".queue", _exceptionable) || _report(_exceptionable, {
|
|
4016
4246
|
path: _path + ".queue",
|
|
4017
4247
|
expected: "(__type.o36 | undefined)",
|
|
4018
4248
|
value: input.queue
|
|
@@ -4020,12 +4250,12 @@ var validateCloudConfig = (() => {
|
|
|
4020
4250
|
path: _path + ".groupChat",
|
|
4021
4251
|
expected: "(__type.o37 | undefined)",
|
|
4022
4252
|
value: input.groupChat
|
|
4023
|
-
})) &&
|
|
4253
|
+
})) && _vo65(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
4024
4254
|
path: _path + ".groupChat",
|
|
4025
4255
|
expected: "(__type.o37 | undefined)",
|
|
4026
4256
|
value: input.groupChat
|
|
4027
4257
|
})].every((flag) => flag);
|
|
4028
|
-
const
|
|
4258
|
+
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, {
|
|
4029
4259
|
path: _path + ".mode",
|
|
4030
4260
|
expected: '("collect" | "followup" | "interrupt" | "queue" | "steer" | undefined)',
|
|
4031
4261
|
value: input.mode
|
|
@@ -4038,12 +4268,12 @@ var validateCloudConfig = (() => {
|
|
|
4038
4268
|
expected: "(number | undefined)",
|
|
4039
4269
|
value: input.cap
|
|
4040
4270
|
})].every((flag) => flag);
|
|
4041
|
-
const
|
|
4271
|
+
const _vo65 = (input, _path, _exceptionable = true) => [void 0 === input.historyLimit || "number" === typeof input.historyLimit || _report(_exceptionable, {
|
|
4042
4272
|
path: _path + ".historyLimit",
|
|
4043
4273
|
expected: "(number | undefined)",
|
|
4044
4274
|
value: input.historyLimit
|
|
4045
4275
|
})].every((flag) => flag);
|
|
4046
|
-
const
|
|
4276
|
+
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, {
|
|
4047
4277
|
path: _path + ".profile",
|
|
4048
4278
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
4049
4279
|
value: input.profile
|
|
@@ -4051,8 +4281,8 @@ var validateCloudConfig = (() => {
|
|
|
4051
4281
|
path: _path + ".allow",
|
|
4052
4282
|
expected: "(Array<string> | undefined)",
|
|
4053
4283
|
value: input.allow
|
|
4054
|
-
})) && input.allow.map((elem,
|
|
4055
|
-
path: _path + ".allow[" +
|
|
4284
|
+
})) && input.allow.map((elem, _index66) => "string" === typeof elem || _report(_exceptionable, {
|
|
4285
|
+
path: _path + ".allow[" + _index66 + "]",
|
|
4056
4286
|
expected: "string",
|
|
4057
4287
|
value: elem
|
|
4058
4288
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4063,8 +4293,8 @@ var validateCloudConfig = (() => {
|
|
|
4063
4293
|
path: _path + ".deny",
|
|
4064
4294
|
expected: "(Array<string> | undefined)",
|
|
4065
4295
|
value: input.deny
|
|
4066
|
-
})) && input.deny.map((elem,
|
|
4067
|
-
path: _path + ".deny[" +
|
|
4296
|
+
})) && input.deny.map((elem, _index67) => "string" === typeof elem || _report(_exceptionable, {
|
|
4297
|
+
path: _path + ".deny[" + _index67 + "]",
|
|
4068
4298
|
expected: "string",
|
|
4069
4299
|
value: elem
|
|
4070
4300
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4075,8 +4305,8 @@ var validateCloudConfig = (() => {
|
|
|
4075
4305
|
path: _path + ".readOnly",
|
|
4076
4306
|
expected: "(Array<string> | undefined)",
|
|
4077
4307
|
value: input.readOnly
|
|
4078
|
-
})) && input.readOnly.map((elem,
|
|
4079
|
-
path: _path + ".readOnly[" +
|
|
4308
|
+
})) && input.readOnly.map((elem, _index68) => "string" === typeof elem || _report(_exceptionable, {
|
|
4309
|
+
path: _path + ".readOnly[" + _index68 + "]",
|
|
4080
4310
|
expected: "string",
|
|
4081
4311
|
value: elem
|
|
4082
4312
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4091,7 +4321,7 @@ var validateCloudConfig = (() => {
|
|
|
4091
4321
|
path: _path + ".elevated",
|
|
4092
4322
|
expected: "(__type.o38 | undefined)",
|
|
4093
4323
|
value: input.elevated
|
|
4094
|
-
})) &&
|
|
4324
|
+
})) && _vo67(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
4095
4325
|
path: _path + ".elevated",
|
|
4096
4326
|
expected: "(__type.o38 | undefined)",
|
|
4097
4327
|
value: input.elevated
|
|
@@ -4099,7 +4329,7 @@ var validateCloudConfig = (() => {
|
|
|
4099
4329
|
path: _path + ".exec",
|
|
4100
4330
|
expected: "(__type.o39 | undefined)",
|
|
4101
4331
|
value: input.exec
|
|
4102
|
-
})) &&
|
|
4332
|
+
})) && _vo69(input.exec, _path + ".exec", _exceptionable) || _report(_exceptionable, {
|
|
4103
4333
|
path: _path + ".exec",
|
|
4104
4334
|
expected: "(__type.o39 | undefined)",
|
|
4105
4335
|
value: input.exec
|
|
@@ -4107,7 +4337,7 @@ var validateCloudConfig = (() => {
|
|
|
4107
4337
|
path: _path + ".web",
|
|
4108
4338
|
expected: "(__type.o40 | undefined)",
|
|
4109
4339
|
value: input.web
|
|
4110
|
-
})) &&
|
|
4340
|
+
})) && _vo70(input.web, _path + ".web", _exceptionable) || _report(_exceptionable, {
|
|
4111
4341
|
path: _path + ".web",
|
|
4112
4342
|
expected: "(__type.o40 | undefined)",
|
|
4113
4343
|
value: input.web
|
|
@@ -4115,12 +4345,12 @@ var validateCloudConfig = (() => {
|
|
|
4115
4345
|
path: _path + ".sandbox",
|
|
4116
4346
|
expected: "(Record<string, unknown> | undefined)",
|
|
4117
4347
|
value: input.sandbox
|
|
4118
|
-
})) &&
|
|
4348
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4119
4349
|
path: _path + ".sandbox",
|
|
4120
4350
|
expected: "(Record<string, unknown> | undefined)",
|
|
4121
4351
|
value: input.sandbox
|
|
4122
4352
|
})].every((flag) => flag);
|
|
4123
|
-
const
|
|
4353
|
+
const _vo67 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4124
4354
|
path: _path + ".enabled",
|
|
4125
4355
|
expected: "(boolean | undefined)",
|
|
4126
4356
|
value: input.enabled
|
|
@@ -4128,12 +4358,12 @@ var validateCloudConfig = (() => {
|
|
|
4128
4358
|
path: _path + ".allowFrom",
|
|
4129
4359
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4130
4360
|
value: input.allowFrom
|
|
4131
|
-
})) &&
|
|
4361
|
+
})) && _vo68(input.allowFrom, _path + ".allowFrom", _exceptionable) || _report(_exceptionable, {
|
|
4132
4362
|
path: _path + ".allowFrom",
|
|
4133
4363
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4134
4364
|
value: input.allowFrom
|
|
4135
4365
|
})].every((flag) => flag);
|
|
4136
|
-
const
|
|
4366
|
+
const _vo68 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4137
4367
|
const value = input[key];
|
|
4138
4368
|
if (void 0 === value)
|
|
4139
4369
|
return true;
|
|
@@ -4141,8 +4371,8 @@ var validateCloudConfig = (() => {
|
|
|
4141
4371
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4142
4372
|
expected: "Array<string>",
|
|
4143
4373
|
value
|
|
4144
|
-
})) && value.map((elem,
|
|
4145
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
|
4374
|
+
})) && value.map((elem, _index69) => "string" === typeof elem || _report(_exceptionable, {
|
|
4375
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index69 + "]",
|
|
4146
4376
|
expected: "string",
|
|
4147
4377
|
value: elem
|
|
4148
4378
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4151,7 +4381,7 @@ var validateCloudConfig = (() => {
|
|
|
4151
4381
|
value
|
|
4152
4382
|
});
|
|
4153
4383
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4154
|
-
const
|
|
4384
|
+
const _vo69 = (input, _path, _exceptionable = true) => [void 0 === input.backgroundMs || "number" === typeof input.backgroundMs || _report(_exceptionable, {
|
|
4155
4385
|
path: _path + ".backgroundMs",
|
|
4156
4386
|
expected: "(number | undefined)",
|
|
4157
4387
|
value: input.backgroundMs
|
|
@@ -4160,11 +4390,11 @@ var validateCloudConfig = (() => {
|
|
|
4160
4390
|
expected: "(number | undefined)",
|
|
4161
4391
|
value: input.timeoutSec
|
|
4162
4392
|
})].every((flag) => flag);
|
|
4163
|
-
const
|
|
4393
|
+
const _vo70 = (input, _path, _exceptionable = true) => [void 0 === input.search || ("object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) || _report(_exceptionable, {
|
|
4164
4394
|
path: _path + ".search",
|
|
4165
4395
|
expected: "(__type.o41 | undefined)",
|
|
4166
4396
|
value: input.search
|
|
4167
|
-
})) &&
|
|
4397
|
+
})) && _vo71(input.search, _path + ".search", _exceptionable) || _report(_exceptionable, {
|
|
4168
4398
|
path: _path + ".search",
|
|
4169
4399
|
expected: "(__type.o41 | undefined)",
|
|
4170
4400
|
value: input.search
|
|
@@ -4172,12 +4402,12 @@ var validateCloudConfig = (() => {
|
|
|
4172
4402
|
path: _path + ".fetch",
|
|
4173
4403
|
expected: "(__type.o42 | undefined)",
|
|
4174
4404
|
value: input.fetch
|
|
4175
|
-
})) &&
|
|
4405
|
+
})) && _vo72(input.fetch, _path + ".fetch", _exceptionable) || _report(_exceptionable, {
|
|
4176
4406
|
path: _path + ".fetch",
|
|
4177
4407
|
expected: "(__type.o42 | undefined)",
|
|
4178
4408
|
value: input.fetch
|
|
4179
4409
|
})].every((flag) => flag);
|
|
4180
|
-
const
|
|
4410
|
+
const _vo71 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4181
4411
|
path: _path + ".enabled",
|
|
4182
4412
|
expected: "(boolean | undefined)",
|
|
4183
4413
|
value: input.enabled
|
|
@@ -4190,7 +4420,7 @@ var validateCloudConfig = (() => {
|
|
|
4190
4420
|
expected: "(number | undefined)",
|
|
4191
4421
|
value: input.maxResults
|
|
4192
4422
|
})].every((flag) => flag);
|
|
4193
|
-
const
|
|
4423
|
+
const _vo72 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4194
4424
|
path: _path + ".enabled",
|
|
4195
4425
|
expected: "(boolean | undefined)",
|
|
4196
4426
|
value: input.enabled
|
|
@@ -4199,7 +4429,7 @@ var validateCloudConfig = (() => {
|
|
|
4199
4429
|
expected: "(number | undefined)",
|
|
4200
4430
|
value: input.maxChars
|
|
4201
4431
|
})].every((flag) => flag);
|
|
4202
|
-
const
|
|
4432
|
+
const _vo73 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "merge" === input.mode || "replace" === input.mode || _report(_exceptionable, {
|
|
4203
4433
|
path: _path + ".mode",
|
|
4204
4434
|
expected: '("merge" | "replace" | undefined)',
|
|
4205
4435
|
value: input.mode
|
|
@@ -4207,12 +4437,12 @@ var validateCloudConfig = (() => {
|
|
|
4207
4437
|
path: _path + ".providers",
|
|
4208
4438
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4209
4439
|
value: input.providers
|
|
4210
|
-
})) &&
|
|
4440
|
+
})) && _vo74(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4211
4441
|
path: _path + ".providers",
|
|
4212
4442
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4213
4443
|
value: input.providers
|
|
4214
4444
|
})].every((flag) => flag);
|
|
4215
|
-
const
|
|
4445
|
+
const _vo74 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4216
4446
|
const value = input[key];
|
|
4217
4447
|
if (void 0 === value)
|
|
4218
4448
|
return true;
|
|
@@ -4220,13 +4450,13 @@ var validateCloudConfig = (() => {
|
|
|
4220
4450
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4221
4451
|
expected: "OpenClawProviderConfig",
|
|
4222
4452
|
value
|
|
4223
|
-
})) &&
|
|
4453
|
+
})) && _vo16(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4224
4454
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4225
4455
|
expected: "OpenClawProviderConfig",
|
|
4226
4456
|
value
|
|
4227
4457
|
});
|
|
4228
4458
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4229
|
-
const
|
|
4459
|
+
const _vo75 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4230
4460
|
path: _path + ".enabled",
|
|
4231
4461
|
expected: "(boolean | undefined)",
|
|
4232
4462
|
value: input.enabled
|
|
@@ -4234,8 +4464,8 @@ var validateCloudConfig = (() => {
|
|
|
4234
4464
|
path: _path + ".allow",
|
|
4235
4465
|
expected: "(Array<string> | undefined)",
|
|
4236
4466
|
value: input.allow
|
|
4237
|
-
})) && input.allow.map((elem,
|
|
4238
|
-
path: _path + ".allow[" +
|
|
4467
|
+
})) && input.allow.map((elem, _index70) => "string" === typeof elem || _report(_exceptionable, {
|
|
4468
|
+
path: _path + ".allow[" + _index70 + "]",
|
|
4239
4469
|
expected: "string",
|
|
4240
4470
|
value: elem
|
|
4241
4471
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4246,8 +4476,8 @@ var validateCloudConfig = (() => {
|
|
|
4246
4476
|
path: _path + ".deny",
|
|
4247
4477
|
expected: "(Array<string> | undefined)",
|
|
4248
4478
|
value: input.deny
|
|
4249
|
-
})) && input.deny.map((elem,
|
|
4250
|
-
path: _path + ".deny[" +
|
|
4479
|
+
})) && input.deny.map((elem, _index71) => "string" === typeof elem || _report(_exceptionable, {
|
|
4480
|
+
path: _path + ".deny[" + _index71 + "]",
|
|
4251
4481
|
expected: "string",
|
|
4252
4482
|
value: elem
|
|
4253
4483
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4258,7 +4488,7 @@ var validateCloudConfig = (() => {
|
|
|
4258
4488
|
path: _path + ".load",
|
|
4259
4489
|
expected: "(__type.o43 | undefined)",
|
|
4260
4490
|
value: input.load
|
|
4261
|
-
})) &&
|
|
4491
|
+
})) && _vo76(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4262
4492
|
path: _path + ".load",
|
|
4263
4493
|
expected: "(__type.o43 | undefined)",
|
|
4264
4494
|
value: input.load
|
|
@@ -4266,17 +4496,17 @@ var validateCloudConfig = (() => {
|
|
|
4266
4496
|
path: _path + ".entries",
|
|
4267
4497
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4268
4498
|
value: input.entries
|
|
4269
|
-
})) &&
|
|
4499
|
+
})) && _vo77(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4270
4500
|
path: _path + ".entries",
|
|
4271
4501
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4272
4502
|
value: input.entries
|
|
4273
4503
|
})].every((flag) => flag);
|
|
4274
|
-
const
|
|
4504
|
+
const _vo76 = (input, _path, _exceptionable = true) => [void 0 === input.paths || (Array.isArray(input.paths) || _report(_exceptionable, {
|
|
4275
4505
|
path: _path + ".paths",
|
|
4276
4506
|
expected: "(Array<string> | undefined)",
|
|
4277
4507
|
value: input.paths
|
|
4278
|
-
})) && input.paths.map((elem,
|
|
4279
|
-
path: _path + ".paths[" +
|
|
4508
|
+
})) && input.paths.map((elem, _index72) => "string" === typeof elem || _report(_exceptionable, {
|
|
4509
|
+
path: _path + ".paths[" + _index72 + "]",
|
|
4280
4510
|
expected: "string",
|
|
4281
4511
|
value: elem
|
|
4282
4512
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4284,7 +4514,7 @@ var validateCloudConfig = (() => {
|
|
|
4284
4514
|
expected: "(Array<string> | undefined)",
|
|
4285
4515
|
value: input.paths
|
|
4286
4516
|
})].every((flag) => flag);
|
|
4287
|
-
const
|
|
4517
|
+
const _vo77 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4288
4518
|
const value = input[key];
|
|
4289
4519
|
if (void 0 === value)
|
|
4290
4520
|
return true;
|
|
@@ -4292,13 +4522,13 @@ var validateCloudConfig = (() => {
|
|
|
4292
4522
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4293
4523
|
expected: "__type.o44",
|
|
4294
4524
|
value
|
|
4295
|
-
})) &&
|
|
4525
|
+
})) && _vo78(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4296
4526
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4297
4527
|
expected: "__type.o44",
|
|
4298
4528
|
value
|
|
4299
4529
|
});
|
|
4300
4530
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4301
|
-
const
|
|
4531
|
+
const _vo78 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4302
4532
|
path: _path + ".enabled",
|
|
4303
4533
|
expected: "(boolean | undefined)",
|
|
4304
4534
|
value: input.enabled
|
|
@@ -4306,7 +4536,7 @@ var validateCloudConfig = (() => {
|
|
|
4306
4536
|
path: _path + ".config",
|
|
4307
4537
|
expected: "(Record<string, unknown> | undefined)",
|
|
4308
4538
|
value: input.config
|
|
4309
|
-
})) &&
|
|
4539
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4310
4540
|
path: _path + ".config",
|
|
4311
4541
|
expected: "(Record<string, unknown> | undefined)",
|
|
4312
4542
|
value: input.config
|
|
@@ -4314,22 +4544,22 @@ var validateCloudConfig = (() => {
|
|
|
4314
4544
|
path: _path + ".hooks",
|
|
4315
4545
|
expected: "(__type.o45 | undefined)",
|
|
4316
4546
|
value: input.hooks
|
|
4317
|
-
})) &&
|
|
4547
|
+
})) && _vo79(input.hooks, _path + ".hooks", _exceptionable) || _report(_exceptionable, {
|
|
4318
4548
|
path: _path + ".hooks",
|
|
4319
4549
|
expected: "(__type.o45 | undefined)",
|
|
4320
4550
|
value: input.hooks
|
|
4321
4551
|
})].every((flag) => flag);
|
|
4322
|
-
const
|
|
4552
|
+
const _vo79 = (input, _path, _exceptionable = true) => [void 0 === input.allowPromptInjection || "boolean" === typeof input.allowPromptInjection || _report(_exceptionable, {
|
|
4323
4553
|
path: _path + ".allowPromptInjection",
|
|
4324
4554
|
expected: "(boolean | undefined)",
|
|
4325
4555
|
value: input.allowPromptInjection
|
|
4326
4556
|
})].every((flag) => flag);
|
|
4327
|
-
const
|
|
4557
|
+
const _vo80 = (input, _path, _exceptionable = true) => [void 0 === input.allowBundled || (Array.isArray(input.allowBundled) || _report(_exceptionable, {
|
|
4328
4558
|
path: _path + ".allowBundled",
|
|
4329
4559
|
expected: "(Array<string> | undefined)",
|
|
4330
4560
|
value: input.allowBundled
|
|
4331
|
-
})) && input.allowBundled.map((elem,
|
|
4332
|
-
path: _path + ".allowBundled[" +
|
|
4561
|
+
})) && input.allowBundled.map((elem, _index73) => "string" === typeof elem || _report(_exceptionable, {
|
|
4562
|
+
path: _path + ".allowBundled[" + _index73 + "]",
|
|
4333
4563
|
expected: "string",
|
|
4334
4564
|
value: elem
|
|
4335
4565
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4340,7 +4570,7 @@ var validateCloudConfig = (() => {
|
|
|
4340
4570
|
path: _path + ".load",
|
|
4341
4571
|
expected: "(__type.o46 | undefined)",
|
|
4342
4572
|
value: input.load
|
|
4343
|
-
})) &&
|
|
4573
|
+
})) && _vo81(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4344
4574
|
path: _path + ".load",
|
|
4345
4575
|
expected: "(__type.o46 | undefined)",
|
|
4346
4576
|
value: input.load
|
|
@@ -4348,7 +4578,7 @@ var validateCloudConfig = (() => {
|
|
|
4348
4578
|
path: _path + ".install",
|
|
4349
4579
|
expected: "(__type.o47 | undefined)",
|
|
4350
4580
|
value: input.install
|
|
4351
|
-
})) &&
|
|
4581
|
+
})) && _vo82(input.install, _path + ".install", _exceptionable) || _report(_exceptionable, {
|
|
4352
4582
|
path: _path + ".install",
|
|
4353
4583
|
expected: "(__type.o47 | undefined)",
|
|
4354
4584
|
value: input.install
|
|
@@ -4356,17 +4586,17 @@ var validateCloudConfig = (() => {
|
|
|
4356
4586
|
path: _path + ".entries",
|
|
4357
4587
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4358
4588
|
value: input.entries
|
|
4359
|
-
})) &&
|
|
4589
|
+
})) && _vo83(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4360
4590
|
path: _path + ".entries",
|
|
4361
4591
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4362
4592
|
value: input.entries
|
|
4363
4593
|
})].every((flag) => flag);
|
|
4364
|
-
const
|
|
4594
|
+
const _vo81 = (input, _path, _exceptionable = true) => [void 0 === input.extraDirs || (Array.isArray(input.extraDirs) || _report(_exceptionable, {
|
|
4365
4595
|
path: _path + ".extraDirs",
|
|
4366
4596
|
expected: "(Array<string> | undefined)",
|
|
4367
4597
|
value: input.extraDirs
|
|
4368
|
-
})) && input.extraDirs.map((elem,
|
|
4369
|
-
path: _path + ".extraDirs[" +
|
|
4598
|
+
})) && input.extraDirs.map((elem, _index74) => "string" === typeof elem || _report(_exceptionable, {
|
|
4599
|
+
path: _path + ".extraDirs[" + _index74 + "]",
|
|
4370
4600
|
expected: "string",
|
|
4371
4601
|
value: elem
|
|
4372
4602
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4374,7 +4604,7 @@ var validateCloudConfig = (() => {
|
|
|
4374
4604
|
expected: "(Array<string> | undefined)",
|
|
4375
4605
|
value: input.extraDirs
|
|
4376
4606
|
})].every((flag) => flag);
|
|
4377
|
-
const
|
|
4607
|
+
const _vo82 = (input, _path, _exceptionable = true) => [void 0 === input.preferBrew || "boolean" === typeof input.preferBrew || _report(_exceptionable, {
|
|
4378
4608
|
path: _path + ".preferBrew",
|
|
4379
4609
|
expected: "(boolean | undefined)",
|
|
4380
4610
|
value: input.preferBrew
|
|
@@ -4383,7 +4613,7 @@ var validateCloudConfig = (() => {
|
|
|
4383
4613
|
expected: '("npm" | "pnpm" | "yarn" | undefined)',
|
|
4384
4614
|
value: input.nodeManager
|
|
4385
4615
|
})].every((flag) => flag);
|
|
4386
|
-
const
|
|
4616
|
+
const _vo83 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4387
4617
|
const value = input[key];
|
|
4388
4618
|
if (void 0 === value)
|
|
4389
4619
|
return true;
|
|
@@ -4391,13 +4621,13 @@ var validateCloudConfig = (() => {
|
|
|
4391
4621
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4392
4622
|
expected: "__type.o48",
|
|
4393
4623
|
value
|
|
4394
|
-
})) &&
|
|
4624
|
+
})) && _vo84(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4395
4625
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4396
4626
|
expected: "__type.o48",
|
|
4397
4627
|
value
|
|
4398
4628
|
});
|
|
4399
4629
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4400
|
-
const
|
|
4630
|
+
const _vo84 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4401
4631
|
path: _path + ".enabled",
|
|
4402
4632
|
expected: "(boolean | undefined)",
|
|
4403
4633
|
value: input.enabled
|
|
@@ -4417,12 +4647,12 @@ var validateCloudConfig = (() => {
|
|
|
4417
4647
|
path: _path + ".config",
|
|
4418
4648
|
expected: "(Record<string, unknown> | undefined)",
|
|
4419
4649
|
value: input.config
|
|
4420
|
-
})) &&
|
|
4650
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4421
4651
|
path: _path + ".config",
|
|
4422
4652
|
expected: "(Record<string, unknown> | undefined)",
|
|
4423
4653
|
value: input.config
|
|
4424
4654
|
})].every((flag) => flag);
|
|
4425
|
-
const
|
|
4655
|
+
const _vo85 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "local" === input.mode || "remote" === input.mode || _report(_exceptionable, {
|
|
4426
4656
|
path: _path + ".mode",
|
|
4427
4657
|
expected: '("local" | "remote" | undefined)',
|
|
4428
4658
|
value: input.mode
|
|
@@ -4442,7 +4672,7 @@ var validateCloudConfig = (() => {
|
|
|
4442
4672
|
path: _path + ".auth",
|
|
4443
4673
|
expected: "(__type.o49 | undefined)",
|
|
4444
4674
|
value: input.auth
|
|
4445
|
-
})) &&
|
|
4675
|
+
})) && _vo86(input.auth, _path + ".auth", _exceptionable) || _report(_exceptionable, {
|
|
4446
4676
|
path: _path + ".auth",
|
|
4447
4677
|
expected: "(__type.o49 | undefined)",
|
|
4448
4678
|
value: input.auth
|
|
@@ -4450,7 +4680,7 @@ var validateCloudConfig = (() => {
|
|
|
4450
4680
|
path: _path + ".tls",
|
|
4451
4681
|
expected: "(__type.o50 | undefined)",
|
|
4452
4682
|
value: input.tls
|
|
4453
|
-
})) &&
|
|
4683
|
+
})) && _vo87(input.tls, _path + ".tls", _exceptionable) || _report(_exceptionable, {
|
|
4454
4684
|
path: _path + ".tls",
|
|
4455
4685
|
expected: "(__type.o50 | undefined)",
|
|
4456
4686
|
value: input.tls
|
|
@@ -4458,12 +4688,12 @@ var validateCloudConfig = (() => {
|
|
|
4458
4688
|
path: _path + ".reload",
|
|
4459
4689
|
expected: "(__type.o51 | undefined)",
|
|
4460
4690
|
value: input.reload
|
|
4461
|
-
})) &&
|
|
4691
|
+
})) && _vo88(input.reload, _path + ".reload", _exceptionable) || _report(_exceptionable, {
|
|
4462
4692
|
path: _path + ".reload",
|
|
4463
4693
|
expected: "(__type.o51 | undefined)",
|
|
4464
4694
|
value: input.reload
|
|
4465
4695
|
})].every((flag) => flag);
|
|
4466
|
-
const
|
|
4696
|
+
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, {
|
|
4467
4697
|
path: _path + ".mode",
|
|
4468
4698
|
expected: '("none" | "password" | "token" | "trusted-proxy" | undefined)',
|
|
4469
4699
|
value: input.mode
|
|
@@ -4480,7 +4710,7 @@ var validateCloudConfig = (() => {
|
|
|
4480
4710
|
expected: "(boolean | undefined)",
|
|
4481
4711
|
value: input.allowTailscale
|
|
4482
4712
|
})].every((flag) => flag);
|
|
4483
|
-
const
|
|
4713
|
+
const _vo87 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4484
4714
|
path: _path + ".enabled",
|
|
4485
4715
|
expected: "(boolean | undefined)",
|
|
4486
4716
|
value: input.enabled
|
|
@@ -4493,7 +4723,7 @@ var validateCloudConfig = (() => {
|
|
|
4493
4723
|
expected: "(string | undefined)",
|
|
4494
4724
|
value: input.keyPath
|
|
4495
4725
|
})].every((flag) => flag);
|
|
4496
|
-
const
|
|
4726
|
+
const _vo88 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "off" === input.mode || "restart" === input.mode || "hot" === input.mode || "hybrid" === input.mode || _report(_exceptionable, {
|
|
4497
4727
|
path: _path + ".mode",
|
|
4498
4728
|
expected: '("hot" | "hybrid" | "off" | "restart" | undefined)',
|
|
4499
4729
|
value: input.mode
|
|
@@ -4502,7 +4732,7 @@ var validateCloudConfig = (() => {
|
|
|
4502
4732
|
expected: "(number | undefined)",
|
|
4503
4733
|
value: input.debounceMs
|
|
4504
4734
|
})].every((flag) => flag);
|
|
4505
|
-
const
|
|
4735
|
+
const _vo89 = (input, _path, _exceptionable = true) => [void 0 === input.level || "string" === typeof input.level || _report(_exceptionable, {
|
|
4506
4736
|
path: _path + ".level",
|
|
4507
4737
|
expected: "(string | undefined)",
|
|
4508
4738
|
value: input.level
|
|
@@ -4523,7 +4753,7 @@ var validateCloudConfig = (() => {
|
|
|
4523
4753
|
expected: '("off" | "tools" | undefined)',
|
|
4524
4754
|
value: input.redactSensitive
|
|
4525
4755
|
})].every((flag) => flag);
|
|
4526
|
-
const
|
|
4756
|
+
const _vo90 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4527
4757
|
const value = input[key];
|
|
4528
4758
|
if (void 0 === value)
|
|
4529
4759
|
return true;
|
|
@@ -4531,17 +4761,17 @@ var validateCloudConfig = (() => {
|
|
|
4531
4761
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4532
4762
|
expected: "VaultConfig",
|
|
4533
4763
|
value
|
|
4534
|
-
})) &&
|
|
4764
|
+
})) && _vo91(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4535
4765
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4536
4766
|
expected: "VaultConfig",
|
|
4537
4767
|
value
|
|
4538
4768
|
});
|
|
4539
4769
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4540
|
-
const
|
|
4770
|
+
const _vo91 = (input, _path, _exceptionable = true) => [void 0 === input.providers || ("object" === typeof input.providers && null !== input.providers && false === Array.isArray(input.providers) || _report(_exceptionable, {
|
|
4541
4771
|
path: _path + ".providers",
|
|
4542
4772
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4543
4773
|
value: input.providers
|
|
4544
|
-
})) &&
|
|
4774
|
+
})) && _vo92(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4545
4775
|
path: _path + ".providers",
|
|
4546
4776
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4547
4777
|
value: input.providers
|
|
@@ -4554,7 +4784,7 @@ var validateCloudConfig = (() => {
|
|
|
4554
4784
|
expected: "(Record<string, string> | undefined)",
|
|
4555
4785
|
value: input.secrets
|
|
4556
4786
|
})].every((flag) => flag);
|
|
4557
|
-
const
|
|
4787
|
+
const _vo92 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4558
4788
|
const value = input[key];
|
|
4559
4789
|
if (void 0 === value)
|
|
4560
4790
|
return true;
|
|
@@ -4562,18 +4792,18 @@ var validateCloudConfig = (() => {
|
|
|
4562
4792
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4563
4793
|
expected: "VaultSecretSource",
|
|
4564
4794
|
value
|
|
4565
|
-
})) &&
|
|
4795
|
+
})) && _vo93(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4566
4796
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4567
4797
|
expected: "VaultSecretSource",
|
|
4568
4798
|
value
|
|
4569
4799
|
});
|
|
4570
4800
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4571
|
-
const
|
|
4801
|
+
const _vo93 = (input, _path, _exceptionable = true) => [void 0 === input.apiKey || "string" === typeof input.apiKey || _report(_exceptionable, {
|
|
4572
4802
|
path: _path + ".apiKey",
|
|
4573
4803
|
expected: "(string | undefined)",
|
|
4574
4804
|
value: input.apiKey
|
|
4575
4805
|
})].every((flag) => flag);
|
|
4576
|
-
const
|
|
4806
|
+
const _vo94 = (input, _path, _exceptionable = true) => [void 0 === input.namespace || "string" === typeof input.namespace || _report(_exceptionable, {
|
|
4577
4807
|
path: _path + ".namespace",
|
|
4578
4808
|
expected: "(string | undefined)",
|
|
4579
4809
|
value: input.namespace
|
|
@@ -4581,24 +4811,36 @@ var validateCloudConfig = (() => {
|
|
|
4581
4811
|
path: _path + ".backend",
|
|
4582
4812
|
expected: '("agent-sandbox" | "deployment" | undefined)',
|
|
4583
4813
|
value: input.backend
|
|
4814
|
+
}), void 0 === input.backendPolicy || "sandbox-required" === input.backendPolicy || "sandbox-preferred" === input.backendPolicy || "deployment-only" === input.backendPolicy || _report(_exceptionable, {
|
|
4815
|
+
path: _path + ".backendPolicy",
|
|
4816
|
+
expected: '("deployment-only" | "sandbox-preferred" | "sandbox-required" | undefined)',
|
|
4817
|
+
value: input.backendPolicy
|
|
4584
4818
|
}), void 0 === input.sandbox || ("object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) || _report(_exceptionable, {
|
|
4585
4819
|
path: _path + ".sandbox",
|
|
4586
4820
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4587
4821
|
value: input.sandbox
|
|
4588
|
-
})) &&
|
|
4822
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4589
4823
|
path: _path + ".sandbox",
|
|
4590
4824
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4591
4825
|
value: input.sandbox
|
|
4826
|
+
}), void 0 === input.scheduling || ("object" === typeof input.scheduling && null !== input.scheduling && false === Array.isArray(input.scheduling) || _report(_exceptionable, {
|
|
4827
|
+
path: _path + ".scheduling",
|
|
4828
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
4829
|
+
value: input.scheduling
|
|
4830
|
+
})) && _vo100(input.scheduling, _path + ".scheduling", _exceptionable) || _report(_exceptionable, {
|
|
4831
|
+
path: _path + ".scheduling",
|
|
4832
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
4833
|
+
value: input.scheduling
|
|
4592
4834
|
}), (Array.isArray(input.agents) || _report(_exceptionable, {
|
|
4593
4835
|
path: _path + ".agents",
|
|
4594
4836
|
expected: "Array<AgentDeployment>",
|
|
4595
4837
|
value: input.agents
|
|
4596
|
-
})) && input.agents.map((elem,
|
|
4597
|
-
path: _path + ".agents[" +
|
|
4838
|
+
})) && input.agents.map((elem, _index75) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
4839
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4598
4840
|
expected: "AgentDeployment",
|
|
4599
4841
|
value: elem
|
|
4600
|
-
})) &&
|
|
4601
|
-
path: _path + ".agents[" +
|
|
4842
|
+
})) && _vo101(elem, _path + ".agents[" + _index75 + "]", _exceptionable) || _report(_exceptionable, {
|
|
4843
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4602
4844
|
expected: "AgentDeployment",
|
|
4603
4845
|
value: elem
|
|
4604
4846
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4606,7 +4848,7 @@ var validateCloudConfig = (() => {
|
|
|
4606
4848
|
expected: "Array<AgentDeployment>",
|
|
4607
4849
|
value: input.agents
|
|
4608
4850
|
})].every((flag) => flag);
|
|
4609
|
-
const
|
|
4851
|
+
const _vo95 = (input, _path, _exceptionable = true) => [void 0 === input.runtimeClassName || "string" === typeof input.runtimeClassName || _report(_exceptionable, {
|
|
4610
4852
|
path: _path + ".runtimeClassName",
|
|
4611
4853
|
expected: "(string | undefined)",
|
|
4612
4854
|
value: input.runtimeClassName
|
|
@@ -4614,7 +4856,7 @@ var validateCloudConfig = (() => {
|
|
|
4614
4856
|
path: _path + ".state",
|
|
4615
4857
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4616
4858
|
value: input.state
|
|
4617
|
-
})) &&
|
|
4859
|
+
})) && _vo96(input.state, _path + ".state", _exceptionable) || _report(_exceptionable, {
|
|
4618
4860
|
path: _path + ".state",
|
|
4619
4861
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4620
4862
|
value: input.state
|
|
@@ -4622,7 +4864,7 @@ var validateCloudConfig = (() => {
|
|
|
4622
4864
|
path: _path + ".lifecycle",
|
|
4623
4865
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4624
4866
|
value: input.lifecycle
|
|
4625
|
-
})) &&
|
|
4867
|
+
})) && _vo97(input.lifecycle, _path + ".lifecycle", _exceptionable) || _report(_exceptionable, {
|
|
4626
4868
|
path: _path + ".lifecycle",
|
|
4627
4869
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4628
4870
|
value: input.lifecycle
|
|
@@ -4630,7 +4872,7 @@ var validateCloudConfig = (() => {
|
|
|
4630
4872
|
path: _path + ".backup",
|
|
4631
4873
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4632
4874
|
value: input.backup
|
|
4633
|
-
})) &&
|
|
4875
|
+
})) && _vo98(input.backup, _path + ".backup", _exceptionable) || _report(_exceptionable, {
|
|
4634
4876
|
path: _path + ".backup",
|
|
4635
4877
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4636
4878
|
value: input.backup
|
|
@@ -4638,12 +4880,12 @@ var validateCloudConfig = (() => {
|
|
|
4638
4880
|
path: _path + ".warmPool",
|
|
4639
4881
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4640
4882
|
value: input.warmPool
|
|
4641
|
-
})) &&
|
|
4883
|
+
})) && _vo99(input.warmPool, _path + ".warmPool", _exceptionable) || _report(_exceptionable, {
|
|
4642
4884
|
path: _path + ".warmPool",
|
|
4643
4885
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4644
4886
|
value: input.warmPool
|
|
4645
4887
|
})].every((flag) => flag);
|
|
4646
|
-
const
|
|
4888
|
+
const _vo96 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4647
4889
|
path: _path + ".enabled",
|
|
4648
4890
|
expected: "(boolean | undefined)",
|
|
4649
4891
|
value: input.enabled
|
|
@@ -4660,7 +4902,7 @@ var validateCloudConfig = (() => {
|
|
|
4660
4902
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
4661
4903
|
value: input.accessMode
|
|
4662
4904
|
})].every((flag) => flag);
|
|
4663
|
-
const
|
|
4905
|
+
const _vo97 = (input, _path, _exceptionable = true) => [void 0 === input.autoPause || "boolean" === typeof input.autoPause || _report(_exceptionable, {
|
|
4664
4906
|
path: _path + ".autoPause",
|
|
4665
4907
|
expected: "(boolean | undefined)",
|
|
4666
4908
|
value: input.autoPause
|
|
@@ -4681,7 +4923,7 @@ var validateCloudConfig = (() => {
|
|
|
4681
4923
|
expected: '("Delete" | "Retain" | undefined)',
|
|
4682
4924
|
value: input.shutdownPolicy
|
|
4683
4925
|
})].every((flag) => flag);
|
|
4684
|
-
const
|
|
4926
|
+
const _vo98 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4685
4927
|
path: _path + ".enabled",
|
|
4686
4928
|
expected: "(boolean | undefined)",
|
|
4687
4929
|
value: input.enabled
|
|
@@ -4702,7 +4944,7 @@ var validateCloudConfig = (() => {
|
|
|
4702
4944
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
4703
4945
|
value: input.retention
|
|
4704
4946
|
})].every((flag) => flag);
|
|
4705
|
-
const
|
|
4947
|
+
const _vo99 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4706
4948
|
path: _path + ".enabled",
|
|
4707
4949
|
expected: "(boolean | undefined)",
|
|
4708
4950
|
value: input.enabled
|
|
@@ -4719,7 +4961,40 @@ var validateCloudConfig = (() => {
|
|
|
4719
4961
|
expected: '("OnReplenish" | "Recreate" | undefined)',
|
|
4720
4962
|
value: input.updateStrategy
|
|
4721
4963
|
})].every((flag) => flag);
|
|
4722
|
-
const
|
|
4964
|
+
const _vo100 = (input, _path, _exceptionable = true) => [void 0 === input.nodeSelector || ("object" === typeof input.nodeSelector && null !== input.nodeSelector && false === Array.isArray(input.nodeSelector) || _report(_exceptionable, {
|
|
4965
|
+
path: _path + ".nodeSelector",
|
|
4966
|
+
expected: "(Record<string, string> | undefined)",
|
|
4967
|
+
value: input.nodeSelector
|
|
4968
|
+
})) && _vo2(input.nodeSelector, _path + ".nodeSelector", _exceptionable) || _report(_exceptionable, {
|
|
4969
|
+
path: _path + ".nodeSelector",
|
|
4970
|
+
expected: "(Record<string, string> | undefined)",
|
|
4971
|
+
value: input.nodeSelector
|
|
4972
|
+
}), void 0 === input.affinity || ("object" === typeof input.affinity && null !== input.affinity && false === Array.isArray(input.affinity) || _report(_exceptionable, {
|
|
4973
|
+
path: _path + ".affinity",
|
|
4974
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
4975
|
+
value: input.affinity
|
|
4976
|
+
})) && _vo5(input.affinity, _path + ".affinity", _exceptionable) || _report(_exceptionable, {
|
|
4977
|
+
path: _path + ".affinity",
|
|
4978
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
4979
|
+
value: input.affinity
|
|
4980
|
+
}), void 0 === input.tolerations || (Array.isArray(input.tolerations) || _report(_exceptionable, {
|
|
4981
|
+
path: _path + ".tolerations",
|
|
4982
|
+
expected: "(Array<Record<string, unknown>> | undefined)",
|
|
4983
|
+
value: input.tolerations
|
|
4984
|
+
})) && input.tolerations.map((elem, _index76) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
4985
|
+
path: _path + ".tolerations[" + _index76 + "]",
|
|
4986
|
+
expected: "Record<string, unknown>",
|
|
4987
|
+
value: elem
|
|
4988
|
+
})) && _vo5(elem, _path + ".tolerations[" + _index76 + "]", _exceptionable) || _report(_exceptionable, {
|
|
4989
|
+
path: _path + ".tolerations[" + _index76 + "]",
|
|
4990
|
+
expected: "Record<string, unknown>",
|
|
4991
|
+
value: elem
|
|
4992
|
+
})).every((flag) => flag) || _report(_exceptionable, {
|
|
4993
|
+
path: _path + ".tolerations",
|
|
4994
|
+
expected: "(Array<Record<string, unknown>> | undefined)",
|
|
4995
|
+
value: input.tolerations
|
|
4996
|
+
})].every((flag) => flag);
|
|
4997
|
+
const _vo101 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
4723
4998
|
path: _path + ".id",
|
|
4724
4999
|
expected: "string",
|
|
4725
5000
|
value: input.id
|
|
@@ -4747,7 +5022,7 @@ var validateCloudConfig = (() => {
|
|
|
4747
5022
|
path: _path + ".configuration",
|
|
4748
5023
|
expected: "AgentConfiguration",
|
|
4749
5024
|
value: input.configuration
|
|
4750
|
-
})) &&
|
|
5025
|
+
})) && _vo102(input.configuration, _path + ".configuration", _exceptionable) || _report(_exceptionable, {
|
|
4751
5026
|
path: _path + ".configuration",
|
|
4752
5027
|
expected: "AgentConfiguration",
|
|
4753
5028
|
value: input.configuration
|
|
@@ -4755,7 +5030,7 @@ var validateCloudConfig = (() => {
|
|
|
4755
5030
|
path: _path + ".resources",
|
|
4756
5031
|
expected: "(__type.o52 | undefined)",
|
|
4757
5032
|
value: input.resources
|
|
4758
|
-
})) &&
|
|
5033
|
+
})) && _vo103(input.resources, _path + ".resources", _exceptionable) || _report(_exceptionable, {
|
|
4759
5034
|
path: _path + ".resources",
|
|
4760
5035
|
expected: "(__type.o52 | undefined)",
|
|
4761
5036
|
value: input.resources
|
|
@@ -4771,7 +5046,7 @@ var validateCloudConfig = (() => {
|
|
|
4771
5046
|
path: _path + ".identity",
|
|
4772
5047
|
expected: "(AgentIdentity | undefined)",
|
|
4773
5048
|
value: input.identity
|
|
4774
|
-
})) &&
|
|
5049
|
+
})) && _vo105(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
4775
5050
|
path: _path + ".identity",
|
|
4776
5051
|
expected: "(AgentIdentity | undefined)",
|
|
4777
5052
|
value: input.identity
|
|
@@ -4779,7 +5054,7 @@ var validateCloudConfig = (() => {
|
|
|
4779
5054
|
path: _path + ".model",
|
|
4780
5055
|
expected: "(AgentModel | undefined)",
|
|
4781
5056
|
value: input.model
|
|
4782
|
-
})) &&
|
|
5057
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4783
5058
|
path: _path + ".model",
|
|
4784
5059
|
expected: "(AgentModel | undefined)",
|
|
4785
5060
|
value: input.model
|
|
@@ -4787,7 +5062,7 @@ var validateCloudConfig = (() => {
|
|
|
4787
5062
|
path: _path + ".compliance",
|
|
4788
5063
|
expected: "(AgentCompliance | undefined)",
|
|
4789
5064
|
value: input.compliance
|
|
4790
|
-
})) &&
|
|
5065
|
+
})) && _vo9(input.compliance, _path + ".compliance", _exceptionable) || _report(_exceptionable, {
|
|
4791
5066
|
path: _path + ".compliance",
|
|
4792
5067
|
expected: "(AgentCompliance | undefined)",
|
|
4793
5068
|
value: input.compliance
|
|
@@ -4795,12 +5070,12 @@ var validateCloudConfig = (() => {
|
|
|
4795
5070
|
path: _path + ".workflows",
|
|
4796
5071
|
expected: "(Array<AgentWorkflowDef> | undefined)",
|
|
4797
5072
|
value: input.workflows
|
|
4798
|
-
})) && input.workflows.map((elem,
|
|
4799
|
-
path: _path + ".workflows[" +
|
|
5073
|
+
})) && input.workflows.map((elem, _index77) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5074
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4800
5075
|
expected: "AgentWorkflowDef",
|
|
4801
5076
|
value: elem
|
|
4802
|
-
})) &&
|
|
4803
|
-
path: _path + ".workflows[" +
|
|
5077
|
+
})) && _vo106(elem, _path + ".workflows[" + _index77 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5078
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4804
5079
|
expected: "AgentWorkflowDef",
|
|
4805
5080
|
value: elem
|
|
4806
5081
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4811,12 +5086,12 @@ var validateCloudConfig = (() => {
|
|
|
4811
5086
|
path: _path + ".use",
|
|
4812
5087
|
expected: "(Array<UseEntry> | undefined)",
|
|
4813
5088
|
value: input.use
|
|
4814
|
-
})) && input.use.map((elem,
|
|
4815
|
-
path: _path + ".use[" +
|
|
5089
|
+
})) && input.use.map((elem, _index78) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5090
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4816
5091
|
expected: "UseEntry",
|
|
4817
5092
|
value: elem
|
|
4818
|
-
})) &&
|
|
4819
|
-
path: _path + ".use[" +
|
|
5093
|
+
})) && _vo10(elem, _path + ".use[" + _index78 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5094
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4820
5095
|
expected: "UseEntry",
|
|
4821
5096
|
value: elem
|
|
4822
5097
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4831,7 +5106,7 @@ var validateCloudConfig = (() => {
|
|
|
4831
5106
|
path: _path + ".source",
|
|
4832
5107
|
expected: "(AgentSource | undefined)",
|
|
4833
5108
|
value: input.source
|
|
4834
|
-
})) &&
|
|
5109
|
+
})) && _vo110(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
4835
5110
|
path: _path + ".source",
|
|
4836
5111
|
expected: "(AgentSource | undefined)",
|
|
4837
5112
|
value: input.source
|
|
@@ -4843,7 +5118,7 @@ var validateCloudConfig = (() => {
|
|
|
4843
5118
|
path: _path + ".permissions",
|
|
4844
5119
|
expected: "(AgentPermissions | undefined)",
|
|
4845
5120
|
value: input.permissions
|
|
4846
|
-
})) &&
|
|
5121
|
+
})) && _vo112(input.permissions, _path + ".permissions", _exceptionable) || _report(_exceptionable, {
|
|
4847
5122
|
path: _path + ".permissions",
|
|
4848
5123
|
expected: "(AgentPermissions | undefined)",
|
|
4849
5124
|
value: input.permissions
|
|
@@ -4851,7 +5126,7 @@ var validateCloudConfig = (() => {
|
|
|
4851
5126
|
path: _path + ".networking",
|
|
4852
5127
|
expected: "(AgentNetworking | undefined)",
|
|
4853
5128
|
value: input.networking
|
|
4854
|
-
})) &&
|
|
5129
|
+
})) && _vo114(input.networking, _path + ".networking", _exceptionable) || _report(_exceptionable, {
|
|
4855
5130
|
path: _path + ".networking",
|
|
4856
5131
|
expected: "(AgentNetworking | undefined)",
|
|
4857
5132
|
value: input.networking
|
|
@@ -4859,10 +5134,18 @@ var validateCloudConfig = (() => {
|
|
|
4859
5134
|
path: _path + ".sandbox",
|
|
4860
5135
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4861
5136
|
value: input.sandbox
|
|
4862
|
-
})) &&
|
|
5137
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4863
5138
|
path: _path + ".sandbox",
|
|
4864
5139
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4865
5140
|
value: input.sandbox
|
|
5141
|
+
}), void 0 === input.scheduling || ("object" === typeof input.scheduling && null !== input.scheduling && false === Array.isArray(input.scheduling) || _report(_exceptionable, {
|
|
5142
|
+
path: _path + ".scheduling",
|
|
5143
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
5144
|
+
value: input.scheduling
|
|
5145
|
+
})) && _vo100(input.scheduling, _path + ".scheduling", _exceptionable) || _report(_exceptionable, {
|
|
5146
|
+
path: _path + ".scheduling",
|
|
5147
|
+
expected: "(AgentSchedulingConfig | undefined)",
|
|
5148
|
+
value: input.scheduling
|
|
4866
5149
|
}), void 0 === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
4867
5150
|
path: _path + ".version",
|
|
4868
5151
|
expected: "(string | undefined)",
|
|
@@ -4872,7 +5155,7 @@ var validateCloudConfig = (() => {
|
|
|
4872
5155
|
expected: "(string | undefined)",
|
|
4873
5156
|
value: input.changelog
|
|
4874
5157
|
})].every((flag) => flag);
|
|
4875
|
-
const
|
|
5158
|
+
const _vo102 = (input, _path, _exceptionable = true) => [void 0 === input["extends"] || "string" === typeof input["extends"] || _report(_exceptionable, {
|
|
4876
5159
|
path: _path + '["extends"]',
|
|
4877
5160
|
expected: "(string | undefined)",
|
|
4878
5161
|
value: input["extends"]
|
|
@@ -4880,7 +5163,7 @@ var validateCloudConfig = (() => {
|
|
|
4880
5163
|
path: _path + ".model",
|
|
4881
5164
|
expected: "(AgentModel | undefined)",
|
|
4882
5165
|
value: input.model
|
|
4883
|
-
})) &&
|
|
5166
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4884
5167
|
path: _path + ".model",
|
|
4885
5168
|
expected: "(AgentModel | undefined)",
|
|
4886
5169
|
value: input.model
|
|
@@ -4888,7 +5171,7 @@ var validateCloudConfig = (() => {
|
|
|
4888
5171
|
path: _path + ".openclaw",
|
|
4889
5172
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4890
5173
|
value: input.openclaw
|
|
4891
|
-
})) &&
|
|
5174
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
4892
5175
|
path: _path + ".openclaw",
|
|
4893
5176
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4894
5177
|
value: input.openclaw
|
|
@@ -4900,11 +5183,11 @@ var validateCloudConfig = (() => {
|
|
|
4900
5183
|
return true;
|
|
4901
5184
|
return true;
|
|
4902
5185
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4903
|
-
const
|
|
5186
|
+
const _vo103 = (input, _path, _exceptionable = true) => [void 0 === input.requests || ("object" === typeof input.requests && null !== input.requests && false === Array.isArray(input.requests) || _report(_exceptionable, {
|
|
4904
5187
|
path: _path + ".requests",
|
|
4905
5188
|
expected: "(K8sResources | undefined)",
|
|
4906
5189
|
value: input.requests
|
|
4907
|
-
})) &&
|
|
5190
|
+
})) && _vo104(input.requests, _path + ".requests", _exceptionable) || _report(_exceptionable, {
|
|
4908
5191
|
path: _path + ".requests",
|
|
4909
5192
|
expected: "(K8sResources | undefined)",
|
|
4910
5193
|
value: input.requests
|
|
@@ -4912,12 +5195,12 @@ var validateCloudConfig = (() => {
|
|
|
4912
5195
|
path: _path + ".limits",
|
|
4913
5196
|
expected: "(K8sResources | undefined)",
|
|
4914
5197
|
value: input.limits
|
|
4915
|
-
})) &&
|
|
5198
|
+
})) && _vo104(input.limits, _path + ".limits", _exceptionable) || _report(_exceptionable, {
|
|
4916
5199
|
path: _path + ".limits",
|
|
4917
5200
|
expected: "(K8sResources | undefined)",
|
|
4918
5201
|
value: input.limits
|
|
4919
5202
|
})].every((flag) => flag);
|
|
4920
|
-
const
|
|
5203
|
+
const _vo104 = (input, _path, _exceptionable = true) => [void 0 === input.cpu || "string" === typeof input.cpu || _report(_exceptionable, {
|
|
4921
5204
|
path: _path + ".cpu",
|
|
4922
5205
|
expected: "(string | undefined)",
|
|
4923
5206
|
value: input.cpu
|
|
@@ -4926,7 +5209,7 @@ var validateCloudConfig = (() => {
|
|
|
4926
5209
|
expected: "(string | undefined)",
|
|
4927
5210
|
value: input.memory
|
|
4928
5211
|
})].every((flag) => flag);
|
|
4929
|
-
const
|
|
5212
|
+
const _vo105 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
4930
5213
|
path: _path + ".name",
|
|
4931
5214
|
expected: "(string | undefined)",
|
|
4932
5215
|
value: input.name
|
|
@@ -4943,7 +5226,7 @@ var validateCloudConfig = (() => {
|
|
|
4943
5226
|
expected: "(string | undefined)",
|
|
4944
5227
|
value: input.systemPrompt
|
|
4945
5228
|
})].every((flag) => flag);
|
|
4946
|
-
const
|
|
5229
|
+
const _vo106 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
4947
5230
|
path: _path + ".name",
|
|
4948
5231
|
expected: "string",
|
|
4949
5232
|
value: input.name
|
|
@@ -4955,8 +5238,8 @@ var validateCloudConfig = (() => {
|
|
|
4955
5238
|
path: _path + ".triggers",
|
|
4956
5239
|
expected: "(Array<string> | undefined)",
|
|
4957
5240
|
value: input.triggers
|
|
4958
|
-
})) && input.triggers.map((elem,
|
|
4959
|
-
path: _path + ".triggers[" +
|
|
5241
|
+
})) && input.triggers.map((elem, _index79) => "string" === typeof elem || _report(_exceptionable, {
|
|
5242
|
+
path: _path + ".triggers[" + _index79 + "]",
|
|
4960
5243
|
expected: "string",
|
|
4961
5244
|
value: elem
|
|
4962
5245
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4971,7 +5254,7 @@ var validateCloudConfig = (() => {
|
|
|
4971
5254
|
path: _path + ".steps",
|
|
4972
5255
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4973
5256
|
value: input.steps
|
|
4974
|
-
})) &&
|
|
5257
|
+
})) && _vo107(input.steps, _path + ".steps", _exceptionable) || _report(_exceptionable, {
|
|
4975
5258
|
path: _path + ".steps",
|
|
4976
5259
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4977
5260
|
value: input.steps
|
|
@@ -4979,12 +5262,12 @@ var validateCloudConfig = (() => {
|
|
|
4979
5262
|
path: _path + ".errorHandling",
|
|
4980
5263
|
expected: "(__type.o53 | undefined)",
|
|
4981
5264
|
value: input.errorHandling
|
|
4982
|
-
})) &&
|
|
5265
|
+
})) && _vo109(input.errorHandling, _path + ".errorHandling", _exceptionable) || _report(_exceptionable, {
|
|
4983
5266
|
path: _path + ".errorHandling",
|
|
4984
5267
|
expected: "(__type.o53 | undefined)",
|
|
4985
5268
|
value: input.errorHandling
|
|
4986
5269
|
})].every((flag) => flag);
|
|
4987
|
-
const
|
|
5270
|
+
const _vo107 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4988
5271
|
const value = input[key];
|
|
4989
5272
|
if (void 0 === value)
|
|
4990
5273
|
return true;
|
|
@@ -4992,13 +5275,13 @@ var validateCloudConfig = (() => {
|
|
|
4992
5275
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4993
5276
|
expected: "AgentWorkflowStep",
|
|
4994
5277
|
value
|
|
4995
|
-
})) &&
|
|
5278
|
+
})) && _vo108(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4996
5279
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4997
5280
|
expected: "AgentWorkflowStep",
|
|
4998
5281
|
value
|
|
4999
5282
|
});
|
|
5000
5283
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5001
|
-
const
|
|
5284
|
+
const _vo108 = (input, _path, _exceptionable = true) => [void 0 === input.skill || "string" === typeof input.skill || _report(_exceptionable, {
|
|
5002
5285
|
path: _path + ".skill",
|
|
5003
5286
|
expected: "(string | undefined)",
|
|
5004
5287
|
value: input.skill
|
|
@@ -5014,8 +5297,8 @@ var validateCloudConfig = (() => {
|
|
|
5014
5297
|
path: _path + ".dependsOn",
|
|
5015
5298
|
expected: "(Array<string> | undefined)",
|
|
5016
5299
|
value: input.dependsOn
|
|
5017
|
-
})) && input.dependsOn.map((elem,
|
|
5018
|
-
path: _path + ".dependsOn[" +
|
|
5300
|
+
})) && input.dependsOn.map((elem, _index80) => "string" === typeof elem || _report(_exceptionable, {
|
|
5301
|
+
path: _path + ".dependsOn[" + _index80 + "]",
|
|
5019
5302
|
expected: "string",
|
|
5020
5303
|
value: elem
|
|
5021
5304
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5038,8 +5321,8 @@ var validateCloudConfig = (() => {
|
|
|
5038
5321
|
path: _path + ".conditions",
|
|
5039
5322
|
expected: "(Array<string> | undefined)",
|
|
5040
5323
|
value: input.conditions
|
|
5041
|
-
})) && input.conditions.map((elem,
|
|
5042
|
-
path: _path + ".conditions[" +
|
|
5324
|
+
})) && input.conditions.map((elem, _index81) => "string" === typeof elem || _report(_exceptionable, {
|
|
5325
|
+
path: _path + ".conditions[" + _index81 + "]",
|
|
5043
5326
|
expected: "string",
|
|
5044
5327
|
value: elem
|
|
5045
5328
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5047,7 +5330,7 @@ var validateCloudConfig = (() => {
|
|
|
5047
5330
|
expected: "(Array<string> | undefined)",
|
|
5048
5331
|
value: input.conditions
|
|
5049
5332
|
})].every((flag) => flag);
|
|
5050
|
-
const
|
|
5333
|
+
const _vo109 = (input, _path, _exceptionable = true) => [void 0 === input.onFailure || "retry" === input.onFailure || "notify" === input.onFailure || "abort" === input.onFailure || _report(_exceptionable, {
|
|
5051
5334
|
path: _path + ".onFailure",
|
|
5052
5335
|
expected: '("abort" | "notify" | "retry" | undefined)',
|
|
5053
5336
|
value: input.onFailure
|
|
@@ -5064,11 +5347,11 @@ var validateCloudConfig = (() => {
|
|
|
5064
5347
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
5065
5348
|
value: input.maxRetries
|
|
5066
5349
|
})].every((flag) => flag);
|
|
5067
|
-
const
|
|
5350
|
+
const _vo110 = (input, _path, _exceptionable = true) => [void 0 === input.git || ("object" === typeof input.git && null !== input.git || _report(_exceptionable, {
|
|
5068
5351
|
path: _path + ".git",
|
|
5069
5352
|
expected: "(GitSource | undefined)",
|
|
5070
5353
|
value: input.git
|
|
5071
|
-
})) &&
|
|
5354
|
+
})) && _vo111(input.git, _path + ".git", _exceptionable) || _report(_exceptionable, {
|
|
5072
5355
|
path: _path + ".git",
|
|
5073
5356
|
expected: "(GitSource | undefined)",
|
|
5074
5357
|
value: input.git
|
|
@@ -5088,8 +5371,8 @@ var validateCloudConfig = (() => {
|
|
|
5088
5371
|
path: _path + ".include",
|
|
5089
5372
|
expected: "(Array<string> | undefined)",
|
|
5090
5373
|
value: input.include
|
|
5091
|
-
})) && input.include.map((elem,
|
|
5092
|
-
path: _path + ".include[" +
|
|
5374
|
+
})) && input.include.map((elem, _index82) => "string" === typeof elem || _report(_exceptionable, {
|
|
5375
|
+
path: _path + ".include[" + _index82 + "]",
|
|
5093
5376
|
expected: "string",
|
|
5094
5377
|
value: elem
|
|
5095
5378
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5105,7 +5388,7 @@ var validateCloudConfig = (() => {
|
|
|
5105
5388
|
expected: "(string | undefined)",
|
|
5106
5389
|
value: input.imageTag
|
|
5107
5390
|
})].every((flag) => flag);
|
|
5108
|
-
const
|
|
5391
|
+
const _vo111 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
5109
5392
|
path: _path + ".url",
|
|
5110
5393
|
expected: "string",
|
|
5111
5394
|
value: input.url
|
|
@@ -5134,7 +5417,7 @@ var validateCloudConfig = (() => {
|
|
|
5134
5417
|
expected: "(string | undefined)",
|
|
5135
5418
|
value: input.tokenSecret
|
|
5136
5419
|
})].every((flag) => flag);
|
|
5137
|
-
const
|
|
5420
|
+
const _vo112 = (input, _path, _exceptionable = true) => ["approve-reads" === input["default"] || "deny-all" === input["default"] || "always-allow" === input["default"] || "always-ask" === input["default"] || _report(_exceptionable, {
|
|
5138
5421
|
path: _path + '["default"]',
|
|
5139
5422
|
expected: '("always-allow" | "always-ask" | "approve-reads" | "deny-all")',
|
|
5140
5423
|
value: input["default"]
|
|
@@ -5142,7 +5425,7 @@ var validateCloudConfig = (() => {
|
|
|
5142
5425
|
path: _path + ".tools",
|
|
5143
5426
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5144
5427
|
value: input.tools
|
|
5145
|
-
})) &&
|
|
5428
|
+
})) && _vo113(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
5146
5429
|
path: _path + ".tools",
|
|
5147
5430
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5148
5431
|
value: input.tools
|
|
@@ -5151,7 +5434,7 @@ var validateCloudConfig = (() => {
|
|
|
5151
5434
|
expected: '("deny" | "fail" | undefined)',
|
|
5152
5435
|
value: input.nonInteractive
|
|
5153
5436
|
})].every((flag) => flag);
|
|
5154
|
-
const
|
|
5437
|
+
const _vo113 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5155
5438
|
const value = input[key];
|
|
5156
5439
|
if (void 0 === value)
|
|
5157
5440
|
return true;
|
|
@@ -5161,7 +5444,7 @@ var validateCloudConfig = (() => {
|
|
|
5161
5444
|
value
|
|
5162
5445
|
});
|
|
5163
5446
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5164
|
-
const
|
|
5447
|
+
const _vo114 = (input, _path, _exceptionable = true) => ["deny-all" === input.type || "unrestricted" === input.type || "limited" === input.type || _report(_exceptionable, {
|
|
5165
5448
|
path: _path + ".type",
|
|
5166
5449
|
expected: '("deny-all" | "limited" | "unrestricted")',
|
|
5167
5450
|
value: input.type
|
|
@@ -5169,8 +5452,8 @@ var validateCloudConfig = (() => {
|
|
|
5169
5452
|
path: _path + ".allowedHosts",
|
|
5170
5453
|
expected: "(Array<string> | undefined)",
|
|
5171
5454
|
value: input.allowedHosts
|
|
5172
|
-
})) && input.allowedHosts.map((elem,
|
|
5173
|
-
path: _path + ".allowedHosts[" +
|
|
5455
|
+
})) && input.allowedHosts.map((elem, _index83) => "string" === typeof elem || _report(_exceptionable, {
|
|
5456
|
+
path: _path + ".allowedHosts[" + _index83 + "]",
|
|
5174
5457
|
expected: "string",
|
|
5175
5458
|
value: elem
|
|
5176
5459
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5186,7 +5469,7 @@ var validateCloudConfig = (() => {
|
|
|
5186
5469
|
expected: "(boolean | undefined)",
|
|
5187
5470
|
value: input.allowPackageManagers
|
|
5188
5471
|
})].every((flag) => flag);
|
|
5189
|
-
const
|
|
5472
|
+
const _vo115 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
5190
5473
|
path: _path + ".enabled",
|
|
5191
5474
|
expected: "boolean",
|
|
5192
5475
|
value: input.enabled
|
|
@@ -5207,7 +5490,7 @@ var validateCloudConfig = (() => {
|
|
|
5207
5490
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
5208
5491
|
value: input.accessMode
|
|
5209
5492
|
})].every((flag) => flag);
|
|
5210
|
-
const
|
|
5493
|
+
const _vo116 = (input, _path, _exceptionable = true) => [void 0 === input.installDir || "string" === typeof input.installDir || _report(_exceptionable, {
|
|
5211
5494
|
path: _path + ".installDir",
|
|
5212
5495
|
expected: "(string | undefined)",
|
|
5213
5496
|
value: input.installDir
|
|
@@ -5215,12 +5498,12 @@ var validateCloudConfig = (() => {
|
|
|
5215
5498
|
path: _path + ".entries",
|
|
5216
5499
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5217
5500
|
value: input.entries
|
|
5218
|
-
})) && input.entries.map((elem,
|
|
5219
|
-
path: _path + ".entries[" +
|
|
5501
|
+
})) && input.entries.map((elem, _index84) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5502
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5220
5503
|
expected: "CloudSkillEntry",
|
|
5221
5504
|
value: elem
|
|
5222
|
-
})) &&
|
|
5223
|
-
path: _path + ".entries[" +
|
|
5505
|
+
})) && _vo117(elem, _path + ".entries[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5506
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5224
5507
|
expected: "CloudSkillEntry",
|
|
5225
5508
|
value: elem
|
|
5226
5509
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5228,7 +5511,7 @@ var validateCloudConfig = (() => {
|
|
|
5228
5511
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5229
5512
|
value: input.entries
|
|
5230
5513
|
})].every((flag) => flag);
|
|
5231
|
-
const
|
|
5514
|
+
const _vo117 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
5232
5515
|
path: _path + ".name",
|
|
5233
5516
|
expected: "string",
|
|
5234
5517
|
value: input.name
|
|
@@ -5755,6 +6038,7 @@ export {
|
|
|
5755
6038
|
isDeploymentRuntimeContextEmpty,
|
|
5756
6039
|
runtimeContextEnv,
|
|
5757
6040
|
collectPluginBuildEnvVars,
|
|
6041
|
+
collectPluginRuntimeEnvOmitKeys,
|
|
5758
6042
|
collectPluginRuntimeExtensions,
|
|
5759
6043
|
buildOpenClawConfig,
|
|
5760
6044
|
RUNNER_CONFIG_MOUNT_PATH,
|