@shadowob/cloud 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -11
- package/dist/{agent-browser-CERTMCDL.js → agent-browser-EI7FIK3X.js} +3 -3
- package/dist/{agent-browser-CIRZRIY4.js → agent-browser-YXE4ES6Q.js} +3 -3
- package/dist/{agent-pack-LF3O5TR4.js → agent-pack-35TFCZKP.js} +1 -1
- package/dist/{agent-pack-RQT27V7R.js → agent-pack-UOG6ZAUL.js} +1 -1
- package/dist/agentmemory-KP5O7GHB.js +101 -0
- package/dist/agentmemory-UV74POU5.js +100 -0
- package/dist/{airtable-BG2Q75G2.js → airtable-CXXS3YUN.js} +3 -3
- package/dist/{airtable-JCQXFM5D.js → airtable-YZ5JR5JC.js} +3 -3
- package/dist/{alipay-TZQI34RB.js → alipay-WED5P3XC.js} +3 -3
- package/dist/{alipay-MZX2XCDB.js → alipay-WJTVREMG.js} +3 -3
- package/dist/{amap-KPCLZYYL.js → amap-AIN23TQ7.js} +3 -3
- package/dist/{amap-5RQB3VGC.js → amap-F6GF7QKB.js} +3 -3
- package/dist/{atlassian-LGOEWYC7.js → atlassian-G6PM6UVM.js} +3 -3
- package/dist/{atlassian-TVS2A4IU.js → atlassian-IDR2NPJC.js} +3 -3
- package/dist/{baidu-appbuilder-QRRL3ETM.js → baidu-appbuilder-JKQIA5TG.js} +3 -3
- package/dist/{baidu-appbuilder-6UMESXHW.js → baidu-appbuilder-KVMCIFYH.js} +3 -3
- package/dist/{baidu-maps-HEPMVP5D.js → baidu-maps-GWMXV6YT.js} +3 -3
- package/dist/{baidu-maps-HXC4FBVP.js → baidu-maps-ZXGT6QZM.js} +3 -3
- package/dist/{baidu-netdisk-G5Q6B5NH.js → baidu-netdisk-J5SLQVWW.js} +3 -3
- package/dist/{baidu-netdisk-RS2K5W2M.js → baidu-netdisk-PONM3DY6.js} +3 -3
- package/dist/{baidu-smartprogram-JHD3XWF6.js → baidu-smartprogram-WJ5JMO6V.js} +3 -3
- package/dist/{baidu-smartprogram-EWTK5WKK.js → baidu-smartprogram-Y5WBR7RX.js} +3 -3
- package/dist/{browserbase-IUIYVYI7.js → browserbase-CGVQHRC4.js} +3 -3
- package/dist/{browserbase-JFO2PCIA.js → browserbase-PVWYTEZC.js} +3 -3
- package/dist/{canva-3YOFL7JS.js → canva-COCBQAT2.js} +3 -3
- package/dist/{canva-FMYN65SM.js → canva-RSTJSEX5.js} +3 -3
- package/dist/{chunk-35LJYCQF.js → chunk-3CT6RQNM.js} +745 -482
- package/dist/{chunk-KODMGZUC.js → chunk-4YO3NA26.js} +1 -1
- package/dist/{chunk-RECNVWMT.js → chunk-6V7MW4HU.js} +17 -3
- package/dist/{chunk-C6OI4ZNO.js → chunk-EVV774KS.js} +1 -1
- package/dist/{chunk-SVMXSIMG.js → chunk-F6CQ6GAG.js} +2 -1
- package/dist/{chunk-JUPAE5IA.js → chunk-OL5VH6RN.js} +72 -69
- package/dist/{chunk-POSVEKIY.js → chunk-OYY64ZSX.js} +17 -3
- package/dist/{chunk-ZHVYNIHA.js → chunk-P5Y6F2NH.js} +745 -482
- package/dist/{chunk-EEFMJYKB.js → chunk-PSK2SYZ3.js} +2 -1
- package/dist/{chunk-6YAYCWGK.js → chunk-PYJRFKPN.js} +1 -1
- package/dist/{chunk-JY2HTT7Q.js → chunk-RMDY3W4V.js} +6 -0
- package/dist/{chunk-EWB7L7IW.js → chunk-X2SREECR.js} +6 -6
- package/dist/{chunk-LXJBQBGL.js → chunk-X5VOIA72.js} +6 -6
- package/dist/{chunk-CTNUKOQE.js → chunk-Y5BJ3EW2.js} +6 -0
- package/dist/{chunk-SAP2DBHO.js → chunk-Y6BKVDG7.js} +1 -1
- package/dist/{chunk-6P2K6QZR.js → chunk-ZGMWSSCC.js} +72 -69
- package/dist/{claude-plugin-577TAQVS.js → claude-plugin-FPN32WMT.js} +1 -1
- package/dist/{claude-plugin-L3MXJJ6J.js → claude-plugin-IYHOVTVL.js} +1 -1
- package/dist/cli.js +930 -149
- package/dist/{cloudflare-RDFPKMM5.js → cloudflare-U3RHJJKK.js} +3 -3
- package/dist/{cloudflare-HBBABPK6.js → cloudflare-ZHN7UGPX.js} +3 -3
- package/dist/{cnb-FLP3QX46.js → cnb-AMXC5I7D.js} +3 -3
- package/dist/{cnb-YAVVEYFB.js → cnb-P3IZ4JTD.js} +3 -3
- package/dist/console/index.html +1 -1
- package/dist/console/static/css/index.f4563d95.css +1 -0
- package/dist/console/static/js/index.020abc71.js +1 -0
- package/dist/{coze-E6VGRNLV.js → coze-66RYMKVB.js} +3 -3
- package/dist/{coze-C6PMDPBI.js → coze-YE3BINXP.js} +3 -3
- package/dist/{dashboard.command-ZMQFKLNQ.js → dashboard.command-BRPZCZER.js} +1 -1
- package/dist/{dashboard.command-2AM45SIT.js → dashboard.command-GUHSJ2CN.js} +1 -1
- package/dist/{dingtalk-JNRNRN7E.js → dingtalk-4RFQG7N2.js} +3 -3
- package/dist/{dingtalk-WZGGIAHJ.js → dingtalk-VNFKXD2P.js} +3 -3
- package/dist/{douyin-miniprogram-AIJPPIZH.js → douyin-miniprogram-UEALAGOS.js} +3 -3
- package/dist/{douyin-miniprogram-HCYZ5NBW.js → douyin-miniprogram-UNB6UO2I.js} +3 -3
- package/dist/{figma-2YYNSCDX.js → figma-A264OWU5.js} +3 -3
- package/dist/{figma-RYOBMENP.js → figma-Y4TGSDZP.js} +3 -3
- package/dist/{firebase-OYSY6HPT.js → firebase-AI3MAGYG.js} +3 -3
- package/dist/{firebase-2IJDDBXX.js → firebase-ZGQARUIH.js} +3 -3
- package/dist/{firecrawl-2T3SBUW7.js → firecrawl-2JW7DMTH.js} +3 -3
- package/dist/{firecrawl-IYYXLAZM.js → firecrawl-UURQ5P5N.js} +3 -3
- package/dist/{flyai-QS5Q6FJR.js → flyai-EJGDMYFA.js} +3 -3
- package/dist/{flyai-7FJ4TRAG.js → flyai-ZFMZBBHJ.js} +3 -3
- package/dist/{gitagent-MWI75OIX.js → gitagent-5SDBYFNA.js} +1 -1
- package/dist/{gitagent-YBMWY7NZ.js → gitagent-ODXPCR4X.js} +1 -1
- package/dist/{gitee-3N7OFOM7.js → gitee-5UMJ4BC7.js} +3 -3
- package/dist/{gitee-KVNK6KLZ.js → gitee-D6NAZTCO.js} +3 -3
- package/dist/{github-LUEC2LID.js → github-JBLDKIA3.js} +3 -3
- package/dist/{github-XRO5Z3GC.js → github-PZQAVEZP.js} +3 -3
- package/dist/{google-ads-VPKWTX67.js → google-ads-BIFQOJ5M.js} +3 -3
- package/dist/{google-ads-A3QAJI4D.js → google-ads-QU3LJE4O.js} +3 -3
- package/dist/{google-analytics-C4UR5ZR2.js → google-analytics-7VZ6YZVA.js} +3 -3
- package/dist/{google-analytics-XDYZA2B7.js → google-analytics-HXMPCL5V.js} +3 -3
- package/dist/{google-workspace-YX35SHHX.js → google-workspace-6SEBJ4VA.js} +2 -2
- package/dist/{google-workspace-LL3EWVHH.js → google-workspace-L3AMJLCF.js} +2 -2
- package/dist/{huawei-xiaoyi-KPWLTSHB.js → huawei-xiaoyi-C6QIJMPM.js} +3 -3
- package/dist/{huawei-xiaoyi-6BSMGJHR.js → huawei-xiaoyi-JGLXWU5P.js} +3 -3
- package/dist/{hubspot-FTIEMNZO.js → hubspot-LACJGE6D.js} +3 -3
- package/dist/{hubspot-DIUHGEDI.js → hubspot-XWPRO4KZ.js} +3 -3
- package/dist/{huggingface-UUXK2RHK.js → huggingface-26QQZK4C.js} +3 -3
- package/dist/{huggingface-MJCOXA7E.js → huggingface-CQICNA2R.js} +3 -3
- package/dist/index.d.ts +1338 -1
- package/dist/index.js +1364 -226
- package/dist/{inference-ai-image-generation-PXV6IG4U.js → inference-ai-image-generation-5KYIUWT6.js} +3 -3
- package/dist/{inference-ai-image-generation-CMI6R5T3.js → inference-ai-image-generation-J2NYDCLZ.js} +3 -3
- package/dist/{inference-sh-7AZOLEFI.js → inference-sh-5SWQTK73.js} +3 -3
- package/dist/{inference-sh-ABQOD3YF.js → inference-sh-PTQF6T3R.js} +3 -3
- package/dist/{init.command-YVG4X6II.js → init.command-C7UKPK2Y.js} +3 -3
- package/dist/{init.command-JKE3SXAS.js → init.command-UNL66BMR.js} +3 -3
- package/dist/{klaviyo-LDPBWBSS.js → klaviyo-4UNPMBFT.js} +3 -3
- package/dist/{klaviyo-6K5YEFNH.js → klaviyo-SLYNEULT.js} +3 -3
- package/dist/{kuaidi100-HGFM5VK2.js → kuaidi100-HZKV5AIS.js} +3 -3
- package/dist/{kuaidi100-UHPFCVXP.js → kuaidi100-ZQUW7GHH.js} +3 -3
- package/dist/lark-HQUZNHDI.js +382 -0
- package/dist/lark-PAV7XWJS.js +381 -0
- package/dist/{linear-T4ORUP7N.js → linear-PYGQ5SLK.js} +3 -3
- package/dist/{linear-7QFSFPOD.js → linear-VJLYNTUF.js} +3 -3
- package/dist/{lovart-PDUXRUHJ.js → lovart-KC6SVNAJ.js} +3 -3
- package/dist/{lovart-QO3SK55T.js → lovart-WVKY4RR4.js} +3 -3
- package/dist/{meta-ads-SCNFI45S.js → meta-ads-E6XT33GI.js} +3 -3
- package/dist/{meta-ads-V6XPZWX3.js → meta-ads-RJ6DWRYN.js} +3 -3
- package/dist/{miclaw-TPPPS2WN.js → miclaw-4BA3A2YN.js} +3 -3
- package/dist/{miclaw-5CNTW7VV.js → miclaw-LUV6DCHX.js} +3 -3
- package/dist/{model-provider-KFB76XV5.js → model-provider-SYXJZ3JD.js} +1 -1
- package/dist/{model-provider-AVSFJSZP.js → model-provider-U7NEYA3Y.js} +1 -1
- package/dist/nature-skills-G76ABIWZ.js +143 -0
- package/dist/nature-skills-SQHMFXKT.js +142 -0
- package/dist/{notion-WFA7KGZZ.js → notion-2JZAKOFP.js} +1 -1
- package/dist/{notion-FZK76MN2.js → notion-O3NO5TJH.js} +1 -1
- package/dist/{oceanengine-3JZUS3PP.js → oceanengine-D23UZGVB.js} +3 -3
- package/dist/{oceanengine-5BRIJVJE.js → oceanengine-WDK2OXX5.js} +3 -3
- package/dist/{opencli-PFXHGCS2.js → opencli-36P63YNU.js} +3 -3
- package/dist/{opencli-VIGRJTGH.js → opencli-SUHDFR33.js} +3 -3
- package/dist/{paypal-Z5JYHIWD.js → paypal-K27SUW3B.js} +3 -3
- package/dist/{paypal-33UADIPR.js → paypal-OPZ3KOV5.js} +3 -3
- package/dist/{playwright-SQAQ3DZG.js → playwright-2ULT3NIC.js} +3 -3
- package/dist/{playwright-MG5WHK47.js → playwright-3Q7LBILG.js} +3 -3
- package/dist/{plugins-HZBWK3WQ.js → plugins-2MITZ4ZD.js} +2 -2
- package/dist/{plugins-I4GD5SZX.js → plugins-UK2QWD6G.js} +2 -2
- package/dist/{posthog-MU5MAJOQ.js → posthog-E3EHXLAN.js} +3 -3
- package/dist/{posthog-RJRRKDWB.js → posthog-KPJVLGX6.js} +3 -3
- package/dist/{salesforce-34FVIJTG.js → salesforce-FGPNG7FB.js} +3 -3
- package/dist/{salesforce-3QZ6OFVO.js → salesforce-TVHISKBC.js} +3 -3
- package/dist/{sentry-PIWW46VA.js → sentry-BZ3J3MZM.js} +3 -3
- package/dist/{sentry-MCIRMACU.js → sentry-XC57YRAJ.js} +3 -3
- package/dist/{seo-suite-WJXMA3S4.js → seo-suite-2MDEDLAB.js} +3 -3
- package/dist/{seo-suite-4SQ3I67Q.js → seo-suite-U75O3QP6.js} +3 -3
- package/dist/{serve.command-XLBJUOV6.js → serve.command-G5RVQFUD.js} +3 -3
- package/dist/{serve.command-RD6I6MFD.js → serve.command-PYGDG7K3.js} +3 -3
- package/dist/{shadowob-PRSMI5MW.js → shadowob-3QZ7DLDW.js} +158 -31
- package/dist/{shadowob-JELOWHWX.js → shadowob-CJLOEKFP.js} +158 -31
- package/dist/{sherlock-2PKY2E2Y.js → sherlock-CQFUHKDH.js} +3 -3
- package/dist/{sherlock-C5ZWPPVT.js → sherlock-DONK2I6E.js} +3 -3
- package/dist/{shopify-GL3NFVGE.js → shopify-NO5GI3WD.js} +3 -3
- package/dist/{shopify-R4G3UXM6.js → shopify-VW2KLKH5.js} +3 -3
- package/dist/{skill-discovery-YPXXV622.js → skill-discovery-6JEPPKKM.js} +3 -3
- package/dist/{skill-discovery-7INAUP4D.js → skill-discovery-PWRAVGIS.js} +3 -3
- package/dist/skills/shadowob-cli/SKILL.md +7 -0
- package/dist/{stripe-LJNPQ3CQ.js → stripe-HCNCKG4C.js} +1 -1
- package/dist/{stripe-C22RR4ZS.js → stripe-IU3KTJ4H.js} +1 -1
- package/dist/{supabase-IRNQ54FJ.js → supabase-KRL7JW2D.js} +3 -3
- package/dist/{supabase-N4ONFJNQ.js → supabase-TYEBTZNO.js} +3 -3
- package/dist/{taobao-aipaas-LRR4GMO3.js → taobao-aipaas-PEUIDOYP.js} +3 -3
- package/dist/{taobao-aipaas-RVKORSF4.js → taobao-aipaas-SA5E4MZA.js} +3 -3
- package/dist/{tapd-TMQRSMFG.js → tapd-6DDIUPVQ.js} +3 -3
- package/dist/{tapd-3JPVJ7XH.js → tapd-OTYLSZGY.js} +3 -3
- package/dist/{tencent-ads-UHC6OPBV.js → tencent-ads-OW2TAMH5.js} +3 -3
- package/dist/{tencent-ads-IGD33LO7.js → tencent-ads-XTQZ27YT.js} +3 -3
- package/dist/{tencent-docs-C3A4J3CJ.js → tencent-docs-6D6A2VCO.js} +3 -3
- package/dist/{tencent-docs-O2SC4FHL.js → tencent-docs-K3TMUIWD.js} +3 -3
- package/dist/{tencent-maps-OQOKHVW2.js → tencent-maps-IZYWITJZ.js} +3 -3
- package/dist/{tencent-maps-HMMWMNF4.js → tencent-maps-SWI7CLQY.js} +3 -3
- package/dist/text-to-cad-B2UP6PKA.js +192 -0
- package/dist/text-to-cad-I4B6VBFV.js +193 -0
- package/dist/{vercel-KOXDDTHX.js → vercel-CCKRC76D.js} +3 -3
- package/dist/{vercel-OLNVDWMG.js → vercel-SBGEMIJJ.js} +3 -3
- package/dist/{webflow-OMJKZM54.js → webflow-C3EHNNSN.js} +3 -3
- package/dist/{webflow-FULU5Q2I.js → webflow-ZFBJH4CR.js} +3 -3
- package/dist/{wechat-miniprogram-skyline-KYCDMQNW.js → wechat-miniprogram-skyline-VNCRERHX.js} +3 -3
- package/dist/{wechat-miniprogram-skyline-VR4FVIQL.js → wechat-miniprogram-skyline-Z5JQUV5Q.js} +3 -3
- package/dist/{wechat-pay-BCMAJ6UW.js → wechat-pay-RPDKPUEB.js} +3 -3
- package/dist/{wechat-pay-YQQKXVUI.js → wechat-pay-XVDGJRF2.js} +3 -3
- package/dist/{wonda-NGWIORYN.js → wonda-EL2P44S7.js} +3 -3
- package/dist/{wonda-RBABXFNM.js → wonda-XK5JK4X3.js} +3 -3
- package/dist/{wordpress-woocommerce-RNA5HB3N.js → wordpress-woocommerce-4MEE5A2M.js} +3 -3
- package/dist/{wordpress-woocommerce-RDIUTHYT.js → wordpress-woocommerce-6ECNM2QU.js} +3 -3
- package/dist/{wps-LUWHMZQQ.js → wps-E4OZEMOF.js} +3 -3
- package/dist/{wps-DAEFQHDE.js → wps-JNQUC4JS.js} +3 -3
- package/dist/{yuque-HCHTJWNI.js → yuque-GLAAOS7X.js} +3 -3
- package/dist/{yuque-KRH5O74J.js → yuque-MEF6VFLJ.js} +3 -3
- package/images/RUNNERS.md +15 -0
- package/images/cc-connect-runner/entrypoint.mjs +228 -0
- package/images/claude-runner/RUNNER.md +5 -3
- package/images/codex-runner/RUNNER.md +5 -3
- package/images/gemini-runner/RUNNER.md +5 -2
- package/images/hermes-runner/RUNNER.md +4 -2
- package/images/hermes-runner/entrypoint.mjs +269 -1
- package/images/openclaw-runner/Dockerfile +1 -0
- package/images/openclaw-runner/RUNNER.md +3 -0
- package/images/openclaw-runner/entrypoint.mjs +249 -1
- package/images/openclaw-runner/warm-runtime-deps.mjs +1 -3
- package/images/opencode-runner/RUNNER.md +5 -3
- package/package.json +3 -3
- package/templates/agent-marketplace-buddy.template.json +4 -1
- package/templates/bmad-method-buddy.template.json +4 -1
- package/templates/code-trainer.template.json +331 -0
- package/templates/gstack-buddy.template.json +4 -1
- package/templates/little-match-girl.template.json +10 -3
- package/dist/console/static/css/index.7f91f806.css +0 -1
- package/dist/console/static/js/index.4487e1ff.js +0 -1
- package/dist/lark-6LNA3LUQ.js +0 -103
- package/dist/lark-URVBZNS4.js +0 -102
|
@@ -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()] } : {},
|
|
@@ -706,7 +743,7 @@ var SHADOWOB_CLI_CONFIG_PATH = `${HOME_DIR}/.shadowob/shadowob.config.json`;
|
|
|
706
743
|
var SHADOW_SLASH_COMMANDS_PATH = `${SHADOWOB_CONFIG_MOUNT_PATH}/slash-commands.json`;
|
|
707
744
|
function hasRuntimeExtensions(extension) {
|
|
708
745
|
return Boolean(
|
|
709
|
-
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
|
|
710
747
|
);
|
|
711
748
|
}
|
|
712
749
|
function runtimeExtensionsForKind(extension, runtimeKind) {
|
|
@@ -757,7 +794,8 @@ function shadowBindings(runtimeExtensions) {
|
|
|
757
794
|
buddyName: account.buddyName
|
|
758
795
|
}));
|
|
759
796
|
}
|
|
760
|
-
function shadowPlatformOptions(shadow) {
|
|
797
|
+
function shadowPlatformOptions(shadow, options) {
|
|
798
|
+
const channelEnvKeys = [...new Set(options?.channelEnvKeys ?? [])].filter(Boolean);
|
|
761
799
|
return {
|
|
762
800
|
token: envPlaceholder(shadow.tokenEnvKey),
|
|
763
801
|
server_url: envPlaceholder(shadow.serverUrlEnvKey),
|
|
@@ -765,7 +803,8 @@ function shadowPlatformOptions(shadow) {
|
|
|
765
803
|
listen_dms: true,
|
|
766
804
|
share_session_in_channel: false,
|
|
767
805
|
progress_style: "compact",
|
|
768
|
-
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)) } : {}
|
|
769
808
|
};
|
|
770
809
|
}
|
|
771
810
|
function buildIdentityWorkspaceFiles(agent) {
|
|
@@ -848,6 +887,64 @@ function addShadowobCliAuth(files, runtimeExtensions) {
|
|
|
848
887
|
});
|
|
849
888
|
}
|
|
850
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
|
+
}
|
|
947
|
+
|
|
851
948
|
// src/runtimes/slash-commands/openclaw.ts
|
|
852
949
|
var OPENCLAW_SLASH_COMMANDS_SOURCE = "https://docs.openclaw.ai/tools/slash-commands";
|
|
853
950
|
var openClawCommands = [
|
|
@@ -944,6 +1041,13 @@ var openclawAdapter = {
|
|
|
944
1041
|
};
|
|
945
1042
|
addShadowobSkill(runtimeFiles, "openclaw", context.agent.runtime);
|
|
946
1043
|
addShadowobCliAuth(runtimeFiles, context.runtimeExtensions);
|
|
1044
|
+
appendTemplateRoutineFiles(
|
|
1045
|
+
runtimeFiles,
|
|
1046
|
+
context.config,
|
|
1047
|
+
context.agent,
|
|
1048
|
+
"openclaw",
|
|
1049
|
+
context.runtimeExtensions
|
|
1050
|
+
);
|
|
947
1051
|
const configData = {
|
|
948
1052
|
"config.json": JSON.stringify(openclawConfig, null, 2),
|
|
949
1053
|
"runtime-files.json": json(runtimeFiles),
|
|
@@ -974,6 +1078,11 @@ function buildCcConnectConfig(options) {
|
|
|
974
1078
|
const effort = reasoningEffort(agent);
|
|
975
1079
|
if (model) baseAgentOptions.model = model;
|
|
976
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
|
+
];
|
|
977
1086
|
const root = {
|
|
978
1087
|
data_dir: `${HOME_DIR}/.cc-connect`,
|
|
979
1088
|
language: "zh",
|
|
@@ -991,7 +1100,7 @@ function buildCcConnectConfig(options) {
|
|
|
991
1100
|
},
|
|
992
1101
|
platforms: options.shadows.map((shadow) => ({
|
|
993
1102
|
type: "shadowob",
|
|
994
|
-
options: shadowPlatformOptions(shadow)
|
|
1103
|
+
options: shadowPlatformOptions(shadow, { channelEnvKeys: routineChannelEnvKeys })
|
|
995
1104
|
}))
|
|
996
1105
|
}
|
|
997
1106
|
]
|
|
@@ -1008,6 +1117,7 @@ function buildCcConnectRuntimeFiles(options) {
|
|
|
1008
1117
|
};
|
|
1009
1118
|
addShadowobSkill(files, "cc-connect", agent.runtime);
|
|
1010
1119
|
addShadowobCliAuth(files, options.runtimeExtensions);
|
|
1120
|
+
appendTemplateRoutineFiles(files, options.config, agent, "cc-connect", options.runtimeExtensions);
|
|
1011
1121
|
return files;
|
|
1012
1122
|
}
|
|
1013
1123
|
function buildCcConnectPackage(context, options) {
|
|
@@ -1017,10 +1127,12 @@ function buildCcConnectPackage(context, options) {
|
|
|
1017
1127
|
agent: context.agent,
|
|
1018
1128
|
agentType: options.agentType,
|
|
1019
1129
|
shadows,
|
|
1130
|
+
routineDeliveries: nativeRuntimeExtensions.routineDeliveries,
|
|
1020
1131
|
agentOptions: options.agentOptions?.(context.agent)
|
|
1021
1132
|
});
|
|
1022
1133
|
const files = buildCcConnectRuntimeFiles({
|
|
1023
1134
|
agent: context.agent,
|
|
1135
|
+
config: context.config,
|
|
1024
1136
|
ccConnectConfig,
|
|
1025
1137
|
runtimeExtensions: context.runtimeExtensions,
|
|
1026
1138
|
nativeFiles: options.nativeFiles?.(context),
|
|
@@ -1664,6 +1776,13 @@ function readHermesPluginFile(cwd, file, fallback) {
|
|
|
1664
1776
|
function buildHermesConfig(options) {
|
|
1665
1777
|
const { agent, shadow } = options;
|
|
1666
1778
|
const mcpServers = hermesMcpServers(options.runtimeExtensions);
|
|
1779
|
+
const homeChannelEnvKey = firstRoutineDeliveryTargetValue(
|
|
1780
|
+
options.config,
|
|
1781
|
+
agent,
|
|
1782
|
+
options.runtimeExtensions,
|
|
1783
|
+
"shadowob",
|
|
1784
|
+
"channelEnvKey"
|
|
1785
|
+
);
|
|
1667
1786
|
return stringifyYaml({
|
|
1668
1787
|
approvals: {
|
|
1669
1788
|
mode: nativePermissionMode(agent) === "allow" ? "manual" : "manual"
|
|
@@ -1682,6 +1801,7 @@ function buildHermesConfig(options) {
|
|
|
1682
1801
|
rest_only: false,
|
|
1683
1802
|
catchup_minutes: 0,
|
|
1684
1803
|
download_media: true,
|
|
1804
|
+
...typeof homeChannelEnvKey === "string" ? { home_channel: envPlaceholder(homeChannelEnvKey) } : {},
|
|
1685
1805
|
slash_commands: hermesSlashCommands
|
|
1686
1806
|
}
|
|
1687
1807
|
}
|
|
@@ -1701,6 +1821,7 @@ var hermesAdapter = {
|
|
|
1701
1821
|
...buildIdentityWorkspaceFiles(context.agent),
|
|
1702
1822
|
[`${HOME_DIR}/.hermes/config.yaml`]: buildHermesConfig({
|
|
1703
1823
|
agent: context.agent,
|
|
1824
|
+
config: context.config,
|
|
1704
1825
|
shadow,
|
|
1705
1826
|
runtimeExtensions: nativeRuntimeExtensions
|
|
1706
1827
|
}),
|
|
@@ -1715,6 +1836,13 @@ var hermesAdapter = {
|
|
|
1715
1836
|
};
|
|
1716
1837
|
addShadowobSkill(files, "hermes", "hermes");
|
|
1717
1838
|
addShadowobCliAuth(files, context.runtimeExtensions);
|
|
1839
|
+
appendTemplateRoutineFiles(
|
|
1840
|
+
files,
|
|
1841
|
+
context.config,
|
|
1842
|
+
context.agent,
|
|
1843
|
+
"hermes",
|
|
1844
|
+
nativeRuntimeExtensions
|
|
1845
|
+
);
|
|
1718
1846
|
const pluginRoot = `${HOME_DIR}/.hermes/plugins/shadowob`;
|
|
1719
1847
|
files[`${pluginRoot}/plugin.yaml`] = readHermesPluginFile(
|
|
1720
1848
|
context.cwd,
|
|
@@ -1776,7 +1904,7 @@ import * as __typia_transform__createStandardSchema from "typia/lib/internal/_cr
|
|
|
1776
1904
|
import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard";
|
|
1777
1905
|
import typia from "typia";
|
|
1778
1906
|
var validateCloudConfig = (() => {
|
|
1779
|
-
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));
|
|
1780
1908
|
const _io1 = (input) => Object.keys(input).every((key) => {
|
|
1781
1909
|
const value = input[key];
|
|
1782
1910
|
if (void 0 === value)
|
|
@@ -1789,24 +1917,26 @@ var validateCloudConfig = (() => {
|
|
|
1789
1917
|
return true;
|
|
1790
1918
|
return "string" === typeof value;
|
|
1791
1919
|
});
|
|
1792
|
-
const _io3 = (input) => "string" === typeof input.
|
|
1793
|
-
const _io4 = (input) => "string" === typeof input.
|
|
1794
|
-
const _io5 = (input) =>
|
|
1795
|
-
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);
|
|
1796
|
-
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));
|
|
1797
|
-
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) => {
|
|
1798
1923
|
const value = input[key];
|
|
1799
1924
|
if (void 0 === value)
|
|
1800
1925
|
return true;
|
|
1801
1926
|
return true;
|
|
1802
1927
|
});
|
|
1803
|
-
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) => {
|
|
1804
1934
|
const value = input[key];
|
|
1805
1935
|
if (void 0 === value)
|
|
1806
1936
|
return true;
|
|
1807
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1937
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io12(value);
|
|
1808
1938
|
});
|
|
1809
|
-
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) => {
|
|
1810
1940
|
if (["enabled", "config", "agents", "secrets"].some((prop) => key === prop))
|
|
1811
1941
|
return true;
|
|
1812
1942
|
const value = input[key];
|
|
@@ -1814,19 +1944,19 @@ var validateCloudConfig = (() => {
|
|
|
1814
1944
|
return true;
|
|
1815
1945
|
return true;
|
|
1816
1946
|
});
|
|
1817
|
-
const
|
|
1947
|
+
const _io13 = (input) => Object.keys(input).every((key) => {
|
|
1818
1948
|
const value = input[key];
|
|
1819
1949
|
if (void 0 === value)
|
|
1820
1950
|
return true;
|
|
1821
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1951
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io14(value);
|
|
1822
1952
|
});
|
|
1823
|
-
const
|
|
1824
|
-
const
|
|
1825
|
-
const
|
|
1826
|
-
const
|
|
1827
|
-
const
|
|
1828
|
-
const
|
|
1829
|
-
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) => {
|
|
1830
1960
|
if (["id", "extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1831
1961
|
return true;
|
|
1832
1962
|
const value = input[key];
|
|
@@ -1834,7 +1964,7 @@ var validateCloudConfig = (() => {
|
|
|
1834
1964
|
return true;
|
|
1835
1965
|
return true;
|
|
1836
1966
|
});
|
|
1837
|
-
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) => {
|
|
1838
1968
|
if (["agents", "bindings", "channels", "acp", "session", "messages", "tools", "models", "plugins", "skills", "gateway", "logging", "env"].some((prop) => key === prop))
|
|
1839
1969
|
return true;
|
|
1840
1970
|
const value = input[key];
|
|
@@ -1842,32 +1972,32 @@ var validateCloudConfig = (() => {
|
|
|
1842
1972
|
return true;
|
|
1843
1973
|
return true;
|
|
1844
1974
|
});
|
|
1845
|
-
const
|
|
1846
|
-
const
|
|
1847
|
-
const
|
|
1848
|
-
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) => {
|
|
1849
1979
|
const value = input[key];
|
|
1850
1980
|
if (void 0 === value)
|
|
1851
1981
|
return true;
|
|
1852
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
1982
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io26(value);
|
|
1853
1983
|
});
|
|
1854
|
-
const
|
|
1855
|
-
const
|
|
1856
|
-
const
|
|
1857
|
-
const
|
|
1858
|
-
const
|
|
1859
|
-
const
|
|
1860
|
-
const
|
|
1861
|
-
const
|
|
1862
|
-
const
|
|
1863
|
-
const
|
|
1864
|
-
const
|
|
1865
|
-
const
|
|
1866
|
-
const
|
|
1867
|
-
const
|
|
1868
|
-
const
|
|
1869
|
-
const
|
|
1870
|
-
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) => {
|
|
1871
2001
|
if (["defaults", "modelByChannel", "telegram", "discord", "slack", "whatsapp", "shadowob"].some((prop) => key === prop))
|
|
1872
2002
|
return true;
|
|
1873
2003
|
const value = input[key];
|
|
@@ -1875,10 +2005,10 @@ var validateCloudConfig = (() => {
|
|
|
1875
2005
|
return true;
|
|
1876
2006
|
return true;
|
|
1877
2007
|
});
|
|
1878
|
-
const
|
|
1879
|
-
const
|
|
1880
|
-
const
|
|
1881
|
-
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) => {
|
|
1882
2012
|
if (["inlineButtons", "interactive", "forms"].some((prop) => key === prop))
|
|
1883
2013
|
return true;
|
|
1884
2014
|
const value = input[key];
|
|
@@ -1886,101 +2016,102 @@ var validateCloudConfig = (() => {
|
|
|
1886
2016
|
return true;
|
|
1887
2017
|
return true;
|
|
1888
2018
|
});
|
|
1889
|
-
const
|
|
1890
|
-
const
|
|
1891
|
-
const
|
|
1892
|
-
const
|
|
1893
|
-
const
|
|
1894
|
-
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) => {
|
|
1895
2025
|
const value = input[key];
|
|
1896
2026
|
if (void 0 === value)
|
|
1897
2027
|
return true;
|
|
1898
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2028
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io53(value);
|
|
1899
2029
|
});
|
|
1900
|
-
const
|
|
1901
|
-
const
|
|
1902
|
-
const
|
|
1903
|
-
const
|
|
1904
|
-
const
|
|
1905
|
-
const
|
|
1906
|
-
const
|
|
1907
|
-
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) => {
|
|
1908
2038
|
const value = input[key];
|
|
1909
2039
|
if (void 0 === value)
|
|
1910
2040
|
return true;
|
|
1911
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2041
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io61(value);
|
|
1912
2042
|
});
|
|
1913
|
-
const
|
|
1914
|
-
const
|
|
1915
|
-
const
|
|
1916
|
-
const
|
|
1917
|
-
const
|
|
1918
|
-
const
|
|
1919
|
-
const
|
|
1920
|
-
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) => {
|
|
1921
2051
|
const value = input[key];
|
|
1922
2052
|
if (void 0 === value)
|
|
1923
2053
|
return true;
|
|
1924
2054
|
return Array.isArray(value) && value.every((elem) => "string" === typeof elem);
|
|
1925
2055
|
});
|
|
1926
|
-
const
|
|
1927
|
-
const
|
|
1928
|
-
const
|
|
1929
|
-
const
|
|
1930
|
-
const
|
|
1931
|
-
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) => {
|
|
1932
2062
|
const value = input[key];
|
|
1933
2063
|
if (void 0 === value)
|
|
1934
2064
|
return true;
|
|
1935
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2065
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io16(value);
|
|
1936
2066
|
});
|
|
1937
|
-
const
|
|
1938
|
-
const
|
|
1939
|
-
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) => {
|
|
1940
2070
|
const value = input[key];
|
|
1941
2071
|
if (void 0 === value)
|
|
1942
2072
|
return true;
|
|
1943
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2073
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io78(value);
|
|
1944
2074
|
});
|
|
1945
|
-
const
|
|
1946
|
-
const
|
|
1947
|
-
const
|
|
1948
|
-
const
|
|
1949
|
-
const
|
|
1950
|
-
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) => {
|
|
1951
2081
|
const value = input[key];
|
|
1952
2082
|
if (void 0 === value)
|
|
1953
2083
|
return true;
|
|
1954
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2084
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io84(value);
|
|
1955
2085
|
});
|
|
1956
|
-
const
|
|
1957
|
-
const
|
|
1958
|
-
const
|
|
1959
|
-
const
|
|
1960
|
-
const
|
|
1961
|
-
const
|
|
1962
|
-
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) => {
|
|
1963
2093
|
const value = input[key];
|
|
1964
2094
|
if (void 0 === value)
|
|
1965
2095
|
return true;
|
|
1966
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2096
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io91(value);
|
|
1967
2097
|
});
|
|
1968
|
-
const
|
|
1969
|
-
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) => {
|
|
1970
2100
|
const value = input[key];
|
|
1971
2101
|
if (void 0 === value)
|
|
1972
2102
|
return true;
|
|
1973
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2103
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io93(value);
|
|
1974
2104
|
});
|
|
1975
|
-
const
|
|
1976
|
-
const
|
|
1977
|
-
const
|
|
1978
|
-
const
|
|
1979
|
-
const
|
|
1980
|
-
const
|
|
1981
|
-
const
|
|
1982
|
-
const
|
|
1983
|
-
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) => {
|
|
1984
2115
|
if (["extends", "model", "openclaw"].some((prop) => key === prop))
|
|
1985
2116
|
return true;
|
|
1986
2117
|
const value = input[key];
|
|
@@ -1988,31 +2119,31 @@ var validateCloudConfig = (() => {
|
|
|
1988
2119
|
return true;
|
|
1989
2120
|
return true;
|
|
1990
2121
|
});
|
|
1991
|
-
const
|
|
1992
|
-
const
|
|
1993
|
-
const
|
|
1994
|
-
const
|
|
1995
|
-
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) => {
|
|
1996
2127
|
const value = input[key];
|
|
1997
2128
|
if (void 0 === value)
|
|
1998
2129
|
return true;
|
|
1999
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
2130
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io108(value);
|
|
2000
2131
|
});
|
|
2001
|
-
const
|
|
2002
|
-
const
|
|
2003
|
-
const
|
|
2004
|
-
const
|
|
2005
|
-
const
|
|
2006
|
-
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) => {
|
|
2007
2138
|
const value = input[key];
|
|
2008
2139
|
if (void 0 === value)
|
|
2009
2140
|
return true;
|
|
2010
2141
|
return "approve-reads" === value || "deny-all" === value || "always-allow" === value || "always-ask" === value;
|
|
2011
2142
|
});
|
|
2012
|
-
const
|
|
2013
|
-
const
|
|
2014
|
-
const
|
|
2015
|
-
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);
|
|
2016
2147
|
const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.version || _report(_exceptionable, {
|
|
2017
2148
|
path: _path + ".version",
|
|
2018
2149
|
expected: "string",
|
|
@@ -2045,11 +2176,27 @@ var validateCloudConfig = (() => {
|
|
|
2045
2176
|
path: _path + ".i18n",
|
|
2046
2177
|
expected: "(Record<string, Record<string, string>> | undefined)",
|
|
2047
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
|
|
2048
2195
|
}), void 0 === input.team || ("object" === typeof input.team && null !== input.team || _report(_exceptionable, {
|
|
2049
2196
|
path: _path + ".team",
|
|
2050
2197
|
expected: "(TeamConfig | undefined)",
|
|
2051
2198
|
value: input.team
|
|
2052
|
-
})) &&
|
|
2199
|
+
})) && _vo6(input.team, _path + ".team", _exceptionable) || _report(_exceptionable, {
|
|
2053
2200
|
path: _path + ".team",
|
|
2054
2201
|
expected: "(TeamConfig | undefined)",
|
|
2055
2202
|
value: input.team
|
|
@@ -2057,12 +2204,12 @@ var validateCloudConfig = (() => {
|
|
|
2057
2204
|
path: _path + ".use",
|
|
2058
2205
|
expected: "(Array<UseEntry> | undefined)",
|
|
2059
2206
|
value: input.use
|
|
2060
|
-
})) && input.use.map((elem,
|
|
2061
|
-
path: _path + ".use[" +
|
|
2207
|
+
})) && input.use.map((elem, _index44) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2208
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2062
2209
|
expected: "UseEntry",
|
|
2063
2210
|
value: elem
|
|
2064
|
-
})) &&
|
|
2065
|
-
path: _path + ".use[" +
|
|
2211
|
+
})) && _vo10(elem, _path + ".use[" + _index44 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2212
|
+
path: _path + ".use[" + _index44 + "]",
|
|
2066
2213
|
expected: "UseEntry",
|
|
2067
2214
|
value: elem
|
|
2068
2215
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2073,7 +2220,7 @@ var validateCloudConfig = (() => {
|
|
|
2073
2220
|
path: _path + ".plugins",
|
|
2074
2221
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2075
2222
|
value: input.plugins
|
|
2076
|
-
})) &&
|
|
2223
|
+
})) && _vo11(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2077
2224
|
path: _path + ".plugins",
|
|
2078
2225
|
expected: "(Record<string, CloudPluginInstanceConfig> | undefined)",
|
|
2079
2226
|
value: input.plugins
|
|
@@ -2081,7 +2228,7 @@ var validateCloudConfig = (() => {
|
|
|
2081
2228
|
path: _path + ".registry",
|
|
2082
2229
|
expected: "(RegistryConfig | undefined)",
|
|
2083
2230
|
value: input.registry
|
|
2084
|
-
})) &&
|
|
2231
|
+
})) && _vo15(input.registry, _path + ".registry", _exceptionable) || _report(_exceptionable, {
|
|
2085
2232
|
path: _path + ".registry",
|
|
2086
2233
|
expected: "(RegistryConfig | undefined)",
|
|
2087
2234
|
value: input.registry
|
|
@@ -2089,7 +2236,7 @@ var validateCloudConfig = (() => {
|
|
|
2089
2236
|
path: _path + ".deployments",
|
|
2090
2237
|
expected: "(DeploymentsConfig | undefined)",
|
|
2091
2238
|
value: input.deployments
|
|
2092
|
-
})) &&
|
|
2239
|
+
})) && _vo94(input.deployments, _path + ".deployments", _exceptionable) || _report(_exceptionable, {
|
|
2093
2240
|
path: _path + ".deployments",
|
|
2094
2241
|
expected: "(DeploymentsConfig | undefined)",
|
|
2095
2242
|
value: input.deployments
|
|
@@ -2097,7 +2244,7 @@ var validateCloudConfig = (() => {
|
|
|
2097
2244
|
path: _path + ".workspace",
|
|
2098
2245
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2099
2246
|
value: input.workspace
|
|
2100
|
-
})) &&
|
|
2247
|
+
})) && _vo115(input.workspace, _path + ".workspace", _exceptionable) || _report(_exceptionable, {
|
|
2101
2248
|
path: _path + ".workspace",
|
|
2102
2249
|
expected: "(SharedWorkspaceConfig | undefined)",
|
|
2103
2250
|
value: input.workspace
|
|
@@ -2105,7 +2252,7 @@ var validateCloudConfig = (() => {
|
|
|
2105
2252
|
path: _path + ".skills",
|
|
2106
2253
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2107
2254
|
value: input.skills
|
|
2108
|
-
})) &&
|
|
2255
|
+
})) && _vo116(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2109
2256
|
path: _path + ".skills",
|
|
2110
2257
|
expected: "(CloudSkillsConfig | undefined)",
|
|
2111
2258
|
value: input.skills
|
|
@@ -2134,7 +2281,75 @@ var validateCloudConfig = (() => {
|
|
|
2134
2281
|
value
|
|
2135
2282
|
});
|
|
2136
2283
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2137
|
-
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, {
|
|
2138
2353
|
path: _path + ".name",
|
|
2139
2354
|
expected: "string",
|
|
2140
2355
|
value: input.name
|
|
@@ -2146,7 +2361,7 @@ var validateCloudConfig = (() => {
|
|
|
2146
2361
|
path: _path + ".defaultModel",
|
|
2147
2362
|
expected: "(AgentModel | undefined)",
|
|
2148
2363
|
value: input.defaultModel
|
|
2149
|
-
})) &&
|
|
2364
|
+
})) && _vo7(input.defaultModel, _path + ".defaultModel", _exceptionable) || _report(_exceptionable, {
|
|
2150
2365
|
path: _path + ".defaultModel",
|
|
2151
2366
|
expected: "(AgentModel | undefined)",
|
|
2152
2367
|
value: input.defaultModel
|
|
@@ -2154,12 +2369,12 @@ var validateCloudConfig = (() => {
|
|
|
2154
2369
|
path: _path + ".defaultCompliance",
|
|
2155
2370
|
expected: "(AgentCompliance | undefined)",
|
|
2156
2371
|
value: input.defaultCompliance
|
|
2157
|
-
})) &&
|
|
2372
|
+
})) && _vo9(input.defaultCompliance, _path + ".defaultCompliance", _exceptionable) || _report(_exceptionable, {
|
|
2158
2373
|
path: _path + ".defaultCompliance",
|
|
2159
2374
|
expected: "(AgentCompliance | undefined)",
|
|
2160
2375
|
value: input.defaultCompliance
|
|
2161
2376
|
})].every((flag) => flag);
|
|
2162
|
-
const
|
|
2377
|
+
const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.preferred || _report(_exceptionable, {
|
|
2163
2378
|
path: _path + ".preferred",
|
|
2164
2379
|
expected: "string",
|
|
2165
2380
|
value: input.preferred
|
|
@@ -2167,8 +2382,8 @@ var validateCloudConfig = (() => {
|
|
|
2167
2382
|
path: _path + ".fallbacks",
|
|
2168
2383
|
expected: "(Array<string> | undefined)",
|
|
2169
2384
|
value: input.fallbacks
|
|
2170
|
-
})) && input.fallbacks.map((elem,
|
|
2171
|
-
path: _path + ".fallbacks[" +
|
|
2385
|
+
})) && input.fallbacks.map((elem, _index45) => "string" === typeof elem || _report(_exceptionable, {
|
|
2386
|
+
path: _path + ".fallbacks[" + _index45 + "]",
|
|
2172
2387
|
expected: "string",
|
|
2173
2388
|
value: elem
|
|
2174
2389
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2179,12 +2394,12 @@ var validateCloudConfig = (() => {
|
|
|
2179
2394
|
path: _path + ".constraints",
|
|
2180
2395
|
expected: "(__type | undefined)",
|
|
2181
2396
|
value: input.constraints
|
|
2182
|
-
})) &&
|
|
2397
|
+
})) && _vo8(input.constraints, _path + ".constraints", _exceptionable) || _report(_exceptionable, {
|
|
2183
2398
|
path: _path + ".constraints",
|
|
2184
2399
|
expected: "(__type | undefined)",
|
|
2185
2400
|
value: input.constraints
|
|
2186
2401
|
})].every((flag) => flag);
|
|
2187
|
-
const
|
|
2402
|
+
const _vo8 = (input, _path, _exceptionable = true) => [void 0 === input.temperature || "number" === typeof input.temperature && (0 <= input.temperature || _report(_exceptionable, {
|
|
2188
2403
|
path: _path + ".temperature",
|
|
2189
2404
|
expected: "number & Minimum<0>",
|
|
2190
2405
|
value: input.temperature
|
|
@@ -2221,7 +2436,7 @@ var validateCloudConfig = (() => {
|
|
|
2221
2436
|
expected: '("adaptive" | "high" | "low" | "medium" | "minimal" | "off" | "xhigh" | undefined)',
|
|
2222
2437
|
value: input.thinkingLevel
|
|
2223
2438
|
})].every((flag) => flag);
|
|
2224
|
-
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, {
|
|
2225
2440
|
path: _path + ".riskTier",
|
|
2226
2441
|
expected: '("critical" | "high" | "low" | "standard" | undefined)',
|
|
2227
2442
|
value: input.riskTier
|
|
@@ -2229,8 +2444,8 @@ var validateCloudConfig = (() => {
|
|
|
2229
2444
|
path: _path + ".frameworks",
|
|
2230
2445
|
expected: "(Array<string> | undefined)",
|
|
2231
2446
|
value: input.frameworks
|
|
2232
|
-
})) && input.frameworks.map((elem,
|
|
2233
|
-
path: _path + ".frameworks[" +
|
|
2447
|
+
})) && input.frameworks.map((elem, _index46) => "string" === typeof elem || _report(_exceptionable, {
|
|
2448
|
+
path: _path + ".frameworks[" + _index46 + "]",
|
|
2234
2449
|
expected: "string",
|
|
2235
2450
|
value: elem
|
|
2236
2451
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2250,7 +2465,7 @@ var validateCloudConfig = (() => {
|
|
|
2250
2465
|
expected: "(string | undefined)",
|
|
2251
2466
|
value: input.retentionPeriod
|
|
2252
2467
|
})].every((flag) => flag);
|
|
2253
|
-
const
|
|
2468
|
+
const _vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.plugin || _report(_exceptionable, {
|
|
2254
2469
|
path: _path + ".plugin",
|
|
2255
2470
|
expected: "string",
|
|
2256
2471
|
value: input.plugin
|
|
@@ -2258,18 +2473,12 @@ var validateCloudConfig = (() => {
|
|
|
2258
2473
|
path: _path + ".options",
|
|
2259
2474
|
expected: "(Record<string, unknown> | undefined)",
|
|
2260
2475
|
value: input.options
|
|
2261
|
-
})) &&
|
|
2476
|
+
})) && _vo5(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
2262
2477
|
path: _path + ".options",
|
|
2263
2478
|
expected: "(Record<string, unknown> | undefined)",
|
|
2264
2479
|
value: input.options
|
|
2265
2480
|
})].every((flag) => flag);
|
|
2266
|
-
const
|
|
2267
|
-
const value = input[key];
|
|
2268
|
-
if (void 0 === value)
|
|
2269
|
-
return true;
|
|
2270
|
-
return true;
|
|
2271
|
-
}).every((flag) => flag)].every((flag) => flag);
|
|
2272
|
-
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) => {
|
|
2273
2482
|
const value = input[key];
|
|
2274
2483
|
if (void 0 === value)
|
|
2275
2484
|
return true;
|
|
@@ -2277,13 +2486,13 @@ var validateCloudConfig = (() => {
|
|
|
2277
2486
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2278
2487
|
expected: "CloudPluginInstanceConfig",
|
|
2279
2488
|
value
|
|
2280
|
-
})) &&
|
|
2489
|
+
})) && _vo12(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2281
2490
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2282
2491
|
expected: "CloudPluginInstanceConfig",
|
|
2283
2492
|
value
|
|
2284
2493
|
});
|
|
2285
2494
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2286
|
-
const
|
|
2495
|
+
const _vo12 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2287
2496
|
path: _path + ".enabled",
|
|
2288
2497
|
expected: "(boolean | undefined)",
|
|
2289
2498
|
value: input.enabled
|
|
@@ -2291,7 +2500,7 @@ var validateCloudConfig = (() => {
|
|
|
2291
2500
|
path: _path + ".config",
|
|
2292
2501
|
expected: "(Record<string, unknown> | undefined)",
|
|
2293
2502
|
value: input.config
|
|
2294
|
-
})) &&
|
|
2503
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2295
2504
|
path: _path + ".config",
|
|
2296
2505
|
expected: "(Record<string, unknown> | undefined)",
|
|
2297
2506
|
value: input.config
|
|
@@ -2299,7 +2508,7 @@ var validateCloudConfig = (() => {
|
|
|
2299
2508
|
path: _path + ".agents",
|
|
2300
2509
|
expected: "(Record<string, __type> | undefined)",
|
|
2301
2510
|
value: input.agents
|
|
2302
|
-
})) &&
|
|
2511
|
+
})) && _vo13(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2303
2512
|
path: _path + ".agents",
|
|
2304
2513
|
expected: "(Record<string, __type> | undefined)",
|
|
2305
2514
|
value: input.agents
|
|
@@ -2319,7 +2528,7 @@ var validateCloudConfig = (() => {
|
|
|
2319
2528
|
return true;
|
|
2320
2529
|
return true;
|
|
2321
2530
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2322
|
-
const
|
|
2531
|
+
const _vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2323
2532
|
const value = input[key];
|
|
2324
2533
|
if (void 0 === value)
|
|
2325
2534
|
return true;
|
|
@@ -2327,13 +2536,13 @@ var validateCloudConfig = (() => {
|
|
|
2327
2536
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2328
2537
|
expected: "__type.o9",
|
|
2329
2538
|
value
|
|
2330
|
-
})) &&
|
|
2539
|
+
})) && _vo14(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2331
2540
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2332
2541
|
expected: "__type.o9",
|
|
2333
2542
|
value
|
|
2334
2543
|
});
|
|
2335
2544
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2336
|
-
const
|
|
2545
|
+
const _vo14 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
2337
2546
|
path: _path + ".enabled",
|
|
2338
2547
|
expected: "(boolean | undefined)",
|
|
2339
2548
|
value: input.enabled
|
|
@@ -2341,21 +2550,21 @@ var validateCloudConfig = (() => {
|
|
|
2341
2550
|
path: _path + ".config",
|
|
2342
2551
|
expected: "(Record<string, unknown> | undefined)",
|
|
2343
2552
|
value: input.config
|
|
2344
|
-
})) &&
|
|
2553
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
2345
2554
|
path: _path + ".config",
|
|
2346
2555
|
expected: "(Record<string, unknown> | undefined)",
|
|
2347
2556
|
value: input.config
|
|
2348
2557
|
})].every((flag) => flag);
|
|
2349
|
-
const
|
|
2558
|
+
const _vo15 = (input, _path, _exceptionable = true) => [void 0 === input.providers || (Array.isArray(input.providers) || _report(_exceptionable, {
|
|
2350
2559
|
path: _path + ".providers",
|
|
2351
2560
|
expected: "(Array<OpenClawProviderConfig> | undefined)",
|
|
2352
2561
|
value: input.providers
|
|
2353
|
-
})) && input.providers.map((elem,
|
|
2354
|
-
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 + "]",
|
|
2355
2564
|
expected: "OpenClawProviderConfig",
|
|
2356
2565
|
value: elem
|
|
2357
|
-
})) &&
|
|
2358
|
-
path: _path + ".providers[" +
|
|
2566
|
+
})) && _vo16(elem, _path + ".providers[" + _index47 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2567
|
+
path: _path + ".providers[" + _index47 + "]",
|
|
2359
2568
|
expected: "OpenClawProviderConfig",
|
|
2360
2569
|
value: elem
|
|
2361
2570
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2366,12 +2575,12 @@ var validateCloudConfig = (() => {
|
|
|
2366
2575
|
path: _path + ".configurations",
|
|
2367
2576
|
expected: "(Array<Configuration> | undefined)",
|
|
2368
2577
|
value: input.configurations
|
|
2369
|
-
})) && input.configurations.map((elem,
|
|
2370
|
-
path: _path + ".configurations[" +
|
|
2578
|
+
})) && input.configurations.map((elem, _index48) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2579
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2371
2580
|
expected: "Configuration",
|
|
2372
2581
|
value: elem
|
|
2373
|
-
})) &&
|
|
2374
|
-
path: _path + ".configurations[" +
|
|
2582
|
+
})) && _vo20(elem, _path + ".configurations[" + _index48 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2583
|
+
path: _path + ".configurations[" + _index48 + "]",
|
|
2375
2584
|
expected: "Configuration",
|
|
2376
2585
|
value: elem
|
|
2377
2586
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2382,12 +2591,12 @@ var validateCloudConfig = (() => {
|
|
|
2382
2591
|
path: _path + ".vaults",
|
|
2383
2592
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2384
2593
|
value: input.vaults
|
|
2385
|
-
})) &&
|
|
2594
|
+
})) && _vo90(input.vaults, _path + ".vaults", _exceptionable) || _report(_exceptionable, {
|
|
2386
2595
|
path: _path + ".vaults",
|
|
2387
2596
|
expected: "(Record<string, VaultConfig> | undefined)",
|
|
2388
2597
|
value: input.vaults
|
|
2389
2598
|
})].every((flag) => flag);
|
|
2390
|
-
const
|
|
2599
|
+
const _vo16 = (input, _path, _exceptionable = true) => [void 0 === input.id || "string" === typeof input.id || _report(_exceptionable, {
|
|
2391
2600
|
path: _path + ".id",
|
|
2392
2601
|
expected: "(string | undefined)",
|
|
2393
2602
|
value: input.id
|
|
@@ -2419,7 +2628,7 @@ var validateCloudConfig = (() => {
|
|
|
2419
2628
|
path: _path + ".request",
|
|
2420
2629
|
expected: "(__type.o10 | undefined)",
|
|
2421
2630
|
value: input.request
|
|
2422
|
-
})) &&
|
|
2631
|
+
})) && _vo17(input.request, _path + ".request", _exceptionable) || _report(_exceptionable, {
|
|
2423
2632
|
path: _path + ".request",
|
|
2424
2633
|
expected: "(__type.o10 | undefined)",
|
|
2425
2634
|
value: input.request
|
|
@@ -2427,12 +2636,12 @@ var validateCloudConfig = (() => {
|
|
|
2427
2636
|
path: _path + ".models",
|
|
2428
2637
|
expected: "(Array<__type> | undefined)",
|
|
2429
2638
|
value: input.models
|
|
2430
|
-
})) && input.models.map((elem,
|
|
2431
|
-
path: _path + ".models[" +
|
|
2639
|
+
})) && input.models.map((elem, _index49) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2640
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2432
2641
|
expected: "__type.o11",
|
|
2433
2642
|
value: elem
|
|
2434
|
-
})) &&
|
|
2435
|
-
path: _path + ".models[" +
|
|
2643
|
+
})) && _vo18(elem, _path + ".models[" + _index49 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2644
|
+
path: _path + ".models[" + _index49 + "]",
|
|
2436
2645
|
expected: "__type.o11",
|
|
2437
2646
|
value: elem
|
|
2438
2647
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2440,12 +2649,12 @@ var validateCloudConfig = (() => {
|
|
|
2440
2649
|
expected: "(Array<__type> | undefined)",
|
|
2441
2650
|
value: input.models
|
|
2442
2651
|
})].every((flag) => flag);
|
|
2443
|
-
const
|
|
2652
|
+
const _vo17 = (input, _path, _exceptionable = true) => [void 0 === input.allowPrivateNetwork || "boolean" === typeof input.allowPrivateNetwork || _report(_exceptionable, {
|
|
2444
2653
|
path: _path + ".allowPrivateNetwork",
|
|
2445
2654
|
expected: "(boolean | undefined)",
|
|
2446
2655
|
value: input.allowPrivateNetwork
|
|
2447
2656
|
})].every((flag) => flag);
|
|
2448
|
-
const
|
|
2657
|
+
const _vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2449
2658
|
path: _path + ".id",
|
|
2450
2659
|
expected: "string",
|
|
2451
2660
|
value: input.id
|
|
@@ -2461,8 +2670,8 @@ var validateCloudConfig = (() => {
|
|
|
2461
2670
|
path: _path + ".input",
|
|
2462
2671
|
expected: "(Array<string> | undefined)",
|
|
2463
2672
|
value: input.input
|
|
2464
|
-
})) && input.input.map((elem,
|
|
2465
|
-
path: _path + ".input[" +
|
|
2673
|
+
})) && input.input.map((elem, _index50) => "string" === typeof elem || _report(_exceptionable, {
|
|
2674
|
+
path: _path + ".input[" + _index50 + "]",
|
|
2466
2675
|
expected: "string",
|
|
2467
2676
|
value: elem
|
|
2468
2677
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2481,12 +2690,12 @@ var validateCloudConfig = (() => {
|
|
|
2481
2690
|
path: _path + ".cost",
|
|
2482
2691
|
expected: "(__type.o12 | undefined)",
|
|
2483
2692
|
value: input.cost
|
|
2484
|
-
})) &&
|
|
2693
|
+
})) && _vo19(input.cost, _path + ".cost", _exceptionable) || _report(_exceptionable, {
|
|
2485
2694
|
path: _path + ".cost",
|
|
2486
2695
|
expected: "(__type.o12 | undefined)",
|
|
2487
2696
|
value: input.cost
|
|
2488
2697
|
})].every((flag) => flag);
|
|
2489
|
-
const
|
|
2698
|
+
const _vo19 = (input, _path, _exceptionable = true) => [void 0 === input.input || "number" === typeof input.input || _report(_exceptionable, {
|
|
2490
2699
|
path: _path + ".input",
|
|
2491
2700
|
expected: "(number | undefined)",
|
|
2492
2701
|
value: input.input
|
|
@@ -2503,7 +2712,7 @@ var validateCloudConfig = (() => {
|
|
|
2503
2712
|
expected: "(number | undefined)",
|
|
2504
2713
|
value: input.cacheWrite
|
|
2505
2714
|
})].every((flag) => flag);
|
|
2506
|
-
const
|
|
2715
|
+
const _vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2507
2716
|
path: _path + ".id",
|
|
2508
2717
|
expected: "string",
|
|
2509
2718
|
value: input.id
|
|
@@ -2515,7 +2724,7 @@ var validateCloudConfig = (() => {
|
|
|
2515
2724
|
path: _path + ".model",
|
|
2516
2725
|
expected: "(AgentModel | undefined)",
|
|
2517
2726
|
value: input.model
|
|
2518
|
-
})) &&
|
|
2727
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2519
2728
|
path: _path + ".model",
|
|
2520
2729
|
expected: "(AgentModel | undefined)",
|
|
2521
2730
|
value: input.model
|
|
@@ -2523,7 +2732,7 @@ var validateCloudConfig = (() => {
|
|
|
2523
2732
|
path: _path + ".openclaw",
|
|
2524
2733
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2525
2734
|
value: input.openclaw
|
|
2526
|
-
})) &&
|
|
2735
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
2527
2736
|
path: _path + ".openclaw",
|
|
2528
2737
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
2529
2738
|
value: input.openclaw
|
|
@@ -2535,11 +2744,11 @@ var validateCloudConfig = (() => {
|
|
|
2535
2744
|
return true;
|
|
2536
2745
|
return true;
|
|
2537
2746
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2538
|
-
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, {
|
|
2539
2748
|
path: _path + ".agents",
|
|
2540
2749
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2541
2750
|
value: input.agents
|
|
2542
|
-
})) &&
|
|
2751
|
+
})) && _vo22(input.agents, _path + ".agents", _exceptionable) || _report(_exceptionable, {
|
|
2543
2752
|
path: _path + ".agents",
|
|
2544
2753
|
expected: "(OpenClawAgentsConfig | undefined)",
|
|
2545
2754
|
value: input.agents
|
|
@@ -2547,12 +2756,12 @@ var validateCloudConfig = (() => {
|
|
|
2547
2756
|
path: _path + ".bindings",
|
|
2548
2757
|
expected: "(Array<OpenClawBinding> | undefined)",
|
|
2549
2758
|
value: input.bindings
|
|
2550
|
-
})) && input.bindings.map((elem,
|
|
2551
|
-
path: _path + ".bindings[" +
|
|
2759
|
+
})) && input.bindings.map((elem, _index51) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2760
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2552
2761
|
expected: "OpenClawBinding",
|
|
2553
2762
|
value: elem
|
|
2554
|
-
})) &&
|
|
2555
|
-
path: _path + ".bindings[" +
|
|
2763
|
+
})) && _vo38(elem, _path + ".bindings[" + _index51 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2764
|
+
path: _path + ".bindings[" + _index51 + "]",
|
|
2556
2765
|
expected: "OpenClawBinding",
|
|
2557
2766
|
value: elem
|
|
2558
2767
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2563,7 +2772,7 @@ var validateCloudConfig = (() => {
|
|
|
2563
2772
|
path: _path + ".channels",
|
|
2564
2773
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2565
2774
|
value: input.channels
|
|
2566
|
-
})) &&
|
|
2775
|
+
})) && _vo42(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
2567
2776
|
path: _path + ".channels",
|
|
2568
2777
|
expected: "(OpenClawChannelsConfig | undefined)",
|
|
2569
2778
|
value: input.channels
|
|
@@ -2571,7 +2780,7 @@ var validateCloudConfig = (() => {
|
|
|
2571
2780
|
path: _path + ".acp",
|
|
2572
2781
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2573
2782
|
value: input.acp
|
|
2574
|
-
})) &&
|
|
2783
|
+
})) && _vo54(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
2575
2784
|
path: _path + ".acp",
|
|
2576
2785
|
expected: "(OpenClawAcpConfig | undefined)",
|
|
2577
2786
|
value: input.acp
|
|
@@ -2579,7 +2788,7 @@ var validateCloudConfig = (() => {
|
|
|
2579
2788
|
path: _path + ".session",
|
|
2580
2789
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2581
2790
|
value: input.session
|
|
2582
|
-
})) &&
|
|
2791
|
+
})) && _vo58(input.session, _path + ".session", _exceptionable) || _report(_exceptionable, {
|
|
2583
2792
|
path: _path + ".session",
|
|
2584
2793
|
expected: "(OpenClawSessionConfig | undefined)",
|
|
2585
2794
|
value: input.session
|
|
@@ -2587,7 +2796,7 @@ var validateCloudConfig = (() => {
|
|
|
2587
2796
|
path: _path + ".messages",
|
|
2588
2797
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2589
2798
|
value: input.messages
|
|
2590
|
-
})) &&
|
|
2799
|
+
})) && _vo63(input.messages, _path + ".messages", _exceptionable) || _report(_exceptionable, {
|
|
2591
2800
|
path: _path + ".messages",
|
|
2592
2801
|
expected: "(OpenClawMessagesConfig | undefined)",
|
|
2593
2802
|
value: input.messages
|
|
@@ -2595,7 +2804,7 @@ var validateCloudConfig = (() => {
|
|
|
2595
2804
|
path: _path + ".tools",
|
|
2596
2805
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2597
2806
|
value: input.tools
|
|
2598
|
-
})) &&
|
|
2807
|
+
})) && _vo66(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
2599
2808
|
path: _path + ".tools",
|
|
2600
2809
|
expected: "(OpenClawToolsConfig | undefined)",
|
|
2601
2810
|
value: input.tools
|
|
@@ -2603,7 +2812,7 @@ var validateCloudConfig = (() => {
|
|
|
2603
2812
|
path: _path + ".models",
|
|
2604
2813
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2605
2814
|
value: input.models
|
|
2606
|
-
})) &&
|
|
2815
|
+
})) && _vo73(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2607
2816
|
path: _path + ".models",
|
|
2608
2817
|
expected: "(OpenClawModelsConfig | undefined)",
|
|
2609
2818
|
value: input.models
|
|
@@ -2611,7 +2820,7 @@ var validateCloudConfig = (() => {
|
|
|
2611
2820
|
path: _path + ".plugins",
|
|
2612
2821
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2613
2822
|
value: input.plugins
|
|
2614
|
-
})) &&
|
|
2823
|
+
})) && _vo75(input.plugins, _path + ".plugins", _exceptionable) || _report(_exceptionable, {
|
|
2615
2824
|
path: _path + ".plugins",
|
|
2616
2825
|
expected: "(OpenClawPluginsConfig | undefined)",
|
|
2617
2826
|
value: input.plugins
|
|
@@ -2619,7 +2828,7 @@ var validateCloudConfig = (() => {
|
|
|
2619
2828
|
path: _path + ".skills",
|
|
2620
2829
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2621
2830
|
value: input.skills
|
|
2622
|
-
})) &&
|
|
2831
|
+
})) && _vo80(input.skills, _path + ".skills", _exceptionable) || _report(_exceptionable, {
|
|
2623
2832
|
path: _path + ".skills",
|
|
2624
2833
|
expected: "(OpenClawSkillsConfig | undefined)",
|
|
2625
2834
|
value: input.skills
|
|
@@ -2627,7 +2836,7 @@ var validateCloudConfig = (() => {
|
|
|
2627
2836
|
path: _path + ".gateway",
|
|
2628
2837
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2629
2838
|
value: input.gateway
|
|
2630
|
-
})) &&
|
|
2839
|
+
})) && _vo85(input.gateway, _path + ".gateway", _exceptionable) || _report(_exceptionable, {
|
|
2631
2840
|
path: _path + ".gateway",
|
|
2632
2841
|
expected: "(OpenClawGatewayConfig | undefined)",
|
|
2633
2842
|
value: input.gateway
|
|
@@ -2635,7 +2844,7 @@ var validateCloudConfig = (() => {
|
|
|
2635
2844
|
path: _path + ".logging",
|
|
2636
2845
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2637
2846
|
value: input.logging
|
|
2638
|
-
})) &&
|
|
2847
|
+
})) && _vo89(input.logging, _path + ".logging", _exceptionable) || _report(_exceptionable, {
|
|
2639
2848
|
path: _path + ".logging",
|
|
2640
2849
|
expected: "(OpenClawLoggingConfig | undefined)",
|
|
2641
2850
|
value: input.logging
|
|
@@ -2643,7 +2852,7 @@ var validateCloudConfig = (() => {
|
|
|
2643
2852
|
path: _path + ".env",
|
|
2644
2853
|
expected: "(Record<string, unknown> | undefined)",
|
|
2645
2854
|
value: input.env
|
|
2646
|
-
})) &&
|
|
2855
|
+
})) && _vo5(input.env, _path + ".env", _exceptionable) || _report(_exceptionable, {
|
|
2647
2856
|
path: _path + ".env",
|
|
2648
2857
|
expected: "(Record<string, unknown> | undefined)",
|
|
2649
2858
|
value: input.env
|
|
@@ -2655,11 +2864,11 @@ var validateCloudConfig = (() => {
|
|
|
2655
2864
|
return true;
|
|
2656
2865
|
return true;
|
|
2657
2866
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2658
|
-
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, {
|
|
2659
2868
|
path: _path + ".defaults",
|
|
2660
2869
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2661
2870
|
value: input.defaults
|
|
2662
|
-
})) &&
|
|
2871
|
+
})) && _vo23(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
2663
2872
|
path: _path + ".defaults",
|
|
2664
2873
|
expected: "(OpenClawAgentDefaults | undefined)",
|
|
2665
2874
|
value: input.defaults
|
|
@@ -2667,12 +2876,12 @@ var validateCloudConfig = (() => {
|
|
|
2667
2876
|
path: _path + ".list",
|
|
2668
2877
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2669
2878
|
value: input.list
|
|
2670
|
-
})) && input.list.map((elem,
|
|
2671
|
-
path: _path + ".list[" +
|
|
2879
|
+
})) && input.list.map((elem, _index52) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
2880
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2672
2881
|
expected: "OpenClawAgentConfig",
|
|
2673
2882
|
value: elem
|
|
2674
|
-
})) &&
|
|
2675
|
-
path: _path + ".list[" +
|
|
2883
|
+
})) && _vo30(elem, _path + ".list[" + _index52 + "]", _exceptionable) || _report(_exceptionable, {
|
|
2884
|
+
path: _path + ".list[" + _index52 + "]",
|
|
2676
2885
|
expected: "OpenClawAgentConfig",
|
|
2677
2886
|
value: elem
|
|
2678
2887
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2680,7 +2889,7 @@ var validateCloudConfig = (() => {
|
|
|
2680
2889
|
expected: "(Array<OpenClawAgentConfig> | undefined)",
|
|
2681
2890
|
value: input.list
|
|
2682
2891
|
})].every((flag) => flag);
|
|
2683
|
-
const
|
|
2892
|
+
const _vo23 = (input, _path, _exceptionable = true) => [void 0 === input.workspace || "string" === typeof input.workspace || _report(_exceptionable, {
|
|
2684
2893
|
path: _path + ".workspace",
|
|
2685
2894
|
expected: "(string | undefined)",
|
|
2686
2895
|
value: input.workspace
|
|
@@ -2716,7 +2925,7 @@ var validateCloudConfig = (() => {
|
|
|
2716
2925
|
path: _path + ".model",
|
|
2717
2926
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2718
2927
|
value: input.model
|
|
2719
|
-
})) &&
|
|
2928
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
2720
2929
|
path: _path + ".model",
|
|
2721
2930
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2722
2931
|
value: input.model
|
|
@@ -2728,7 +2937,7 @@ var validateCloudConfig = (() => {
|
|
|
2728
2937
|
path: _path + ".imageModel",
|
|
2729
2938
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2730
2939
|
value: input.imageModel
|
|
2731
|
-
})) &&
|
|
2940
|
+
})) && _vo24(input.imageModel, _path + ".imageModel", _exceptionable) || _report(_exceptionable, {
|
|
2732
2941
|
path: _path + ".imageModel",
|
|
2733
2942
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2734
2943
|
value: input.imageModel
|
|
@@ -2740,7 +2949,7 @@ var validateCloudConfig = (() => {
|
|
|
2740
2949
|
path: _path + ".pdfModel",
|
|
2741
2950
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2742
2951
|
value: input.pdfModel
|
|
2743
|
-
})) &&
|
|
2952
|
+
})) && _vo24(input.pdfModel, _path + ".pdfModel", _exceptionable) || _report(_exceptionable, {
|
|
2744
2953
|
path: _path + ".pdfModel",
|
|
2745
2954
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2746
2955
|
value: input.pdfModel
|
|
@@ -2752,7 +2961,7 @@ var validateCloudConfig = (() => {
|
|
|
2752
2961
|
path: _path + ".imageGenerationModel",
|
|
2753
2962
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2754
2963
|
value: input.imageGenerationModel
|
|
2755
|
-
})) &&
|
|
2964
|
+
})) && _vo24(input.imageGenerationModel, _path + ".imageGenerationModel", _exceptionable) || _report(_exceptionable, {
|
|
2756
2965
|
path: _path + ".imageGenerationModel",
|
|
2757
2966
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
2758
2967
|
value: input.imageGenerationModel
|
|
@@ -2760,7 +2969,7 @@ var validateCloudConfig = (() => {
|
|
|
2760
2969
|
path: _path + ".models",
|
|
2761
2970
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2762
2971
|
value: input.models
|
|
2763
|
-
})) &&
|
|
2972
|
+
})) && _vo25(input.models, _path + ".models", _exceptionable) || _report(_exceptionable, {
|
|
2764
2973
|
path: _path + ".models",
|
|
2765
2974
|
expected: "(Record<string, OpenClawModelEntry> | undefined)",
|
|
2766
2975
|
value: input.models
|
|
@@ -2832,7 +3041,7 @@ var validateCloudConfig = (() => {
|
|
|
2832
3041
|
path: _path + ".heartbeat",
|
|
2833
3042
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2834
3043
|
value: input.heartbeat
|
|
2835
|
-
})) &&
|
|
3044
|
+
})) && _vo27(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
2836
3045
|
path: _path + ".heartbeat",
|
|
2837
3046
|
expected: "(OpenClawHeartbeatConfig | undefined)",
|
|
2838
3047
|
value: input.heartbeat
|
|
@@ -2840,7 +3049,7 @@ var validateCloudConfig = (() => {
|
|
|
2840
3049
|
path: _path + ".compaction",
|
|
2841
3050
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2842
3051
|
value: input.compaction
|
|
2843
|
-
})) &&
|
|
3052
|
+
})) && _vo28(input.compaction, _path + ".compaction", _exceptionable) || _report(_exceptionable, {
|
|
2844
3053
|
path: _path + ".compaction",
|
|
2845
3054
|
expected: "(OpenClawCompactionConfig | undefined)",
|
|
2846
3055
|
value: input.compaction
|
|
@@ -2848,7 +3057,7 @@ var validateCloudConfig = (() => {
|
|
|
2848
3057
|
path: _path + ".sandbox",
|
|
2849
3058
|
expected: "(Record<string, unknown> | undefined)",
|
|
2850
3059
|
value: input.sandbox
|
|
2851
|
-
})) &&
|
|
3060
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
2852
3061
|
path: _path + ".sandbox",
|
|
2853
3062
|
expected: "(Record<string, unknown> | undefined)",
|
|
2854
3063
|
value: input.sandbox
|
|
@@ -2856,12 +3065,12 @@ var validateCloudConfig = (() => {
|
|
|
2856
3065
|
path: _path + ".subagents",
|
|
2857
3066
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2858
3067
|
value: input.subagents
|
|
2859
|
-
})) &&
|
|
3068
|
+
})) && _vo29(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
2860
3069
|
path: _path + ".subagents",
|
|
2861
3070
|
expected: "(OpenClawSubagentDefaults | undefined)",
|
|
2862
3071
|
value: input.subagents
|
|
2863
3072
|
})].every((flag) => flag);
|
|
2864
|
-
const
|
|
3073
|
+
const _vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.primary || _report(_exceptionable, {
|
|
2865
3074
|
path: _path + ".primary",
|
|
2866
3075
|
expected: "string",
|
|
2867
3076
|
value: input.primary
|
|
@@ -2869,8 +3078,8 @@ var validateCloudConfig = (() => {
|
|
|
2869
3078
|
path: _path + ".fallbacks",
|
|
2870
3079
|
expected: "(Array<string> | undefined)",
|
|
2871
3080
|
value: input.fallbacks
|
|
2872
|
-
})) && input.fallbacks.map((elem,
|
|
2873
|
-
path: _path + ".fallbacks[" +
|
|
3081
|
+
})) && input.fallbacks.map((elem, _index53) => "string" === typeof elem || _report(_exceptionable, {
|
|
3082
|
+
path: _path + ".fallbacks[" + _index53 + "]",
|
|
2874
3083
|
expected: "string",
|
|
2875
3084
|
value: elem
|
|
2876
3085
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -2878,7 +3087,7 @@ var validateCloudConfig = (() => {
|
|
|
2878
3087
|
expected: "(Array<string> | undefined)",
|
|
2879
3088
|
value: input.fallbacks
|
|
2880
3089
|
})].every((flag) => flag);
|
|
2881
|
-
const
|
|
3090
|
+
const _vo25 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
2882
3091
|
const value = input[key];
|
|
2883
3092
|
if (void 0 === value)
|
|
2884
3093
|
return true;
|
|
@@ -2886,13 +3095,13 @@ var validateCloudConfig = (() => {
|
|
|
2886
3095
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2887
3096
|
expected: "OpenClawModelEntry",
|
|
2888
3097
|
value
|
|
2889
|
-
})) &&
|
|
3098
|
+
})) && _vo26(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
2890
3099
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
2891
3100
|
expected: "OpenClawModelEntry",
|
|
2892
3101
|
value
|
|
2893
3102
|
});
|
|
2894
3103
|
}).every((flag) => flag)].every((flag) => flag);
|
|
2895
|
-
const
|
|
3104
|
+
const _vo26 = (input, _path, _exceptionable = true) => [void 0 === input.alias || "string" === typeof input.alias || _report(_exceptionable, {
|
|
2896
3105
|
path: _path + ".alias",
|
|
2897
3106
|
expected: "(string | undefined)",
|
|
2898
3107
|
value: input.alias
|
|
@@ -2900,12 +3109,12 @@ var validateCloudConfig = (() => {
|
|
|
2900
3109
|
path: _path + ".params",
|
|
2901
3110
|
expected: "(Record<string, unknown> | undefined)",
|
|
2902
3111
|
value: input.params
|
|
2903
|
-
})) &&
|
|
3112
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
2904
3113
|
path: _path + ".params",
|
|
2905
3114
|
expected: "(Record<string, unknown> | undefined)",
|
|
2906
3115
|
value: input.params
|
|
2907
3116
|
})].every((flag) => flag);
|
|
2908
|
-
const
|
|
3117
|
+
const _vo27 = (input, _path, _exceptionable = true) => [void 0 === input.every || "string" === typeof input.every || _report(_exceptionable, {
|
|
2909
3118
|
path: _path + ".every",
|
|
2910
3119
|
expected: "(string | undefined)",
|
|
2911
3120
|
value: input.every
|
|
@@ -2930,7 +3139,7 @@ var validateCloudConfig = (() => {
|
|
|
2930
3139
|
expected: "(string | undefined)",
|
|
2931
3140
|
value: input.target
|
|
2932
3141
|
})].every((flag) => flag);
|
|
2933
|
-
const
|
|
3142
|
+
const _vo28 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "default" === input.mode || "safeguard" === input.mode || _report(_exceptionable, {
|
|
2934
3143
|
path: _path + ".mode",
|
|
2935
3144
|
expected: '("default" | "safeguard" | undefined)',
|
|
2936
3145
|
value: input.mode
|
|
@@ -2955,7 +3164,7 @@ var validateCloudConfig = (() => {
|
|
|
2955
3164
|
expected: "(string | undefined)",
|
|
2956
3165
|
value: input.model
|
|
2957
3166
|
})].every((flag) => flag);
|
|
2958
|
-
const
|
|
3167
|
+
const _vo29 = (input, _path, _exceptionable = true) => [void 0 === input.model || "string" === typeof input.model || _report(_exceptionable, {
|
|
2959
3168
|
path: _path + ".model",
|
|
2960
3169
|
expected: "(string | undefined)",
|
|
2961
3170
|
value: input.model
|
|
@@ -2976,7 +3185,7 @@ var validateCloudConfig = (() => {
|
|
|
2976
3185
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
2977
3186
|
value: input.runTimeoutSeconds
|
|
2978
3187
|
})].every((flag) => flag);
|
|
2979
|
-
const
|
|
3188
|
+
const _vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
2980
3189
|
path: _path + ".id",
|
|
2981
3190
|
expected: "string",
|
|
2982
3191
|
value: input.id
|
|
@@ -3004,7 +3213,7 @@ var validateCloudConfig = (() => {
|
|
|
3004
3213
|
path: _path + ".model",
|
|
3005
3214
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
3006
3215
|
value: input.model
|
|
3007
|
-
})) &&
|
|
3216
|
+
})) && _vo24(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
3008
3217
|
path: _path + ".model",
|
|
3009
3218
|
expected: "(OpenClawModelConfig | string | undefined)",
|
|
3010
3219
|
value: input.model
|
|
@@ -3016,7 +3225,7 @@ var validateCloudConfig = (() => {
|
|
|
3016
3225
|
path: _path + ".params",
|
|
3017
3226
|
expected: "(Record<string, unknown> | undefined)",
|
|
3018
3227
|
value: input.params
|
|
3019
|
-
})) &&
|
|
3228
|
+
})) && _vo5(input.params, _path + ".params", _exceptionable) || _report(_exceptionable, {
|
|
3020
3229
|
path: _path + ".params",
|
|
3021
3230
|
expected: "(Record<string, unknown> | undefined)",
|
|
3022
3231
|
value: input.params
|
|
@@ -3024,7 +3233,7 @@ var validateCloudConfig = (() => {
|
|
|
3024
3233
|
path: _path + ".identity",
|
|
3025
3234
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3026
3235
|
value: input.identity
|
|
3027
|
-
})) &&
|
|
3236
|
+
})) && _vo31(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
3028
3237
|
path: _path + ".identity",
|
|
3029
3238
|
expected: "(OpenClawAgentIdentity | undefined)",
|
|
3030
3239
|
value: input.identity
|
|
@@ -3032,7 +3241,7 @@ var validateCloudConfig = (() => {
|
|
|
3032
3241
|
path: _path + ".groupChat",
|
|
3033
3242
|
expected: "(__type.o13 | undefined)",
|
|
3034
3243
|
value: input.groupChat
|
|
3035
|
-
})) &&
|
|
3244
|
+
})) && _vo32(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
3036
3245
|
path: _path + ".groupChat",
|
|
3037
3246
|
expected: "(__type.o13 | undefined)",
|
|
3038
3247
|
value: input.groupChat
|
|
@@ -3040,7 +3249,7 @@ var validateCloudConfig = (() => {
|
|
|
3040
3249
|
path: _path + ".runtime",
|
|
3041
3250
|
expected: "(__type.o14 | undefined)",
|
|
3042
3251
|
value: input.runtime
|
|
3043
|
-
})) &&
|
|
3252
|
+
})) && _vo33(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3044
3253
|
path: _path + ".runtime",
|
|
3045
3254
|
expected: "(__type.o14 | undefined)",
|
|
3046
3255
|
value: input.runtime
|
|
@@ -3048,7 +3257,7 @@ var validateCloudConfig = (() => {
|
|
|
3048
3257
|
path: _path + ".subagents",
|
|
3049
3258
|
expected: "(__type.o15 | undefined)",
|
|
3050
3259
|
value: input.subagents
|
|
3051
|
-
})) &&
|
|
3260
|
+
})) && _vo35(input.subagents, _path + ".subagents", _exceptionable) || _report(_exceptionable, {
|
|
3052
3261
|
path: _path + ".subagents",
|
|
3053
3262
|
expected: "(__type.o15 | undefined)",
|
|
3054
3263
|
value: input.subagents
|
|
@@ -3056,7 +3265,7 @@ var validateCloudConfig = (() => {
|
|
|
3056
3265
|
path: _path + ".tools",
|
|
3057
3266
|
expected: "(__type.o16 | undefined)",
|
|
3058
3267
|
value: input.tools
|
|
3059
|
-
})) &&
|
|
3268
|
+
})) && _vo36(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
3060
3269
|
path: _path + ".tools",
|
|
3061
3270
|
expected: "(__type.o16 | undefined)",
|
|
3062
3271
|
value: input.tools
|
|
@@ -3064,7 +3273,7 @@ var validateCloudConfig = (() => {
|
|
|
3064
3273
|
path: _path + ".sandbox",
|
|
3065
3274
|
expected: "(Record<string, unknown> | undefined)",
|
|
3066
3275
|
value: input.sandbox
|
|
3067
|
-
})) &&
|
|
3276
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
3068
3277
|
path: _path + ".sandbox",
|
|
3069
3278
|
expected: "(Record<string, unknown> | undefined)",
|
|
3070
3279
|
value: input.sandbox
|
|
@@ -3077,7 +3286,7 @@ var validateCloudConfig = (() => {
|
|
|
3077
3286
|
expected: "(string | undefined)",
|
|
3078
3287
|
value: input.instructions
|
|
3079
3288
|
})].every((flag) => flag);
|
|
3080
|
-
const
|
|
3289
|
+
const _vo31 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
3081
3290
|
path: _path + ".name",
|
|
3082
3291
|
expected: "(string | undefined)",
|
|
3083
3292
|
value: input.name
|
|
@@ -3094,12 +3303,12 @@ var validateCloudConfig = (() => {
|
|
|
3094
3303
|
expected: "(string | undefined)",
|
|
3095
3304
|
value: input.avatar
|
|
3096
3305
|
})].every((flag) => flag);
|
|
3097
|
-
const
|
|
3306
|
+
const _vo32 = (input, _path, _exceptionable = true) => [void 0 === input.mentionPatterns || (Array.isArray(input.mentionPatterns) || _report(_exceptionable, {
|
|
3098
3307
|
path: _path + ".mentionPatterns",
|
|
3099
3308
|
expected: "(Array<string> | undefined)",
|
|
3100
3309
|
value: input.mentionPatterns
|
|
3101
|
-
})) && input.mentionPatterns.map((elem,
|
|
3102
|
-
path: _path + ".mentionPatterns[" +
|
|
3310
|
+
})) && input.mentionPatterns.map((elem, _index54) => "string" === typeof elem || _report(_exceptionable, {
|
|
3311
|
+
path: _path + ".mentionPatterns[" + _index54 + "]",
|
|
3103
3312
|
expected: "string",
|
|
3104
3313
|
value: elem
|
|
3105
3314
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3107,7 +3316,7 @@ var validateCloudConfig = (() => {
|
|
|
3107
3316
|
expected: "(Array<string> | undefined)",
|
|
3108
3317
|
value: input.mentionPatterns
|
|
3109
3318
|
})].every((flag) => flag);
|
|
3110
|
-
const
|
|
3319
|
+
const _vo33 = (input, _path, _exceptionable = true) => ["acp" === input.type || "subagent" === input.type || _report(_exceptionable, {
|
|
3111
3320
|
path: _path + ".type",
|
|
3112
3321
|
expected: '("acp" | "subagent")',
|
|
3113
3322
|
value: input.type
|
|
@@ -3115,12 +3324,12 @@ var validateCloudConfig = (() => {
|
|
|
3115
3324
|
path: _path + ".acp",
|
|
3116
3325
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3117
3326
|
value: input.acp
|
|
3118
|
-
})) &&
|
|
3327
|
+
})) && _vo34(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3119
3328
|
path: _path + ".acp",
|
|
3120
3329
|
expected: "(OpenClawAcpRuntime | undefined)",
|
|
3121
3330
|
value: input.acp
|
|
3122
3331
|
})].every((flag) => flag);
|
|
3123
|
-
const
|
|
3332
|
+
const _vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.agent || _report(_exceptionable, {
|
|
3124
3333
|
path: _path + ".agent",
|
|
3125
3334
|
expected: "string",
|
|
3126
3335
|
value: input.agent
|
|
@@ -3137,12 +3346,12 @@ var validateCloudConfig = (() => {
|
|
|
3137
3346
|
expected: "(string | undefined)",
|
|
3138
3347
|
value: input.cwd
|
|
3139
3348
|
})].every((flag) => flag);
|
|
3140
|
-
const
|
|
3349
|
+
const _vo35 = (input, _path, _exceptionable = true) => [void 0 === input.allowAgents || (Array.isArray(input.allowAgents) || _report(_exceptionable, {
|
|
3141
3350
|
path: _path + ".allowAgents",
|
|
3142
3351
|
expected: "(Array<string> | undefined)",
|
|
3143
3352
|
value: input.allowAgents
|
|
3144
|
-
})) && input.allowAgents.map((elem,
|
|
3145
|
-
path: _path + ".allowAgents[" +
|
|
3353
|
+
})) && input.allowAgents.map((elem, _index55) => "string" === typeof elem || _report(_exceptionable, {
|
|
3354
|
+
path: _path + ".allowAgents[" + _index55 + "]",
|
|
3146
3355
|
expected: "string",
|
|
3147
3356
|
value: elem
|
|
3148
3357
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3150,7 +3359,7 @@ var validateCloudConfig = (() => {
|
|
|
3150
3359
|
expected: "(Array<string> | undefined)",
|
|
3151
3360
|
value: input.allowAgents
|
|
3152
3361
|
})].every((flag) => flag);
|
|
3153
|
-
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, {
|
|
3154
3363
|
path: _path + ".profile",
|
|
3155
3364
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
3156
3365
|
value: input.profile
|
|
@@ -3158,8 +3367,8 @@ var validateCloudConfig = (() => {
|
|
|
3158
3367
|
path: _path + ".allow",
|
|
3159
3368
|
expected: "(Array<string> | undefined)",
|
|
3160
3369
|
value: input.allow
|
|
3161
|
-
})) && input.allow.map((elem,
|
|
3162
|
-
path: _path + ".allow[" +
|
|
3370
|
+
})) && input.allow.map((elem, _index56) => "string" === typeof elem || _report(_exceptionable, {
|
|
3371
|
+
path: _path + ".allow[" + _index56 + "]",
|
|
3163
3372
|
expected: "string",
|
|
3164
3373
|
value: elem
|
|
3165
3374
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3170,8 +3379,8 @@ var validateCloudConfig = (() => {
|
|
|
3170
3379
|
path: _path + ".deny",
|
|
3171
3380
|
expected: "(Array<string> | undefined)",
|
|
3172
3381
|
value: input.deny
|
|
3173
|
-
})) && input.deny.map((elem,
|
|
3174
|
-
path: _path + ".deny[" +
|
|
3382
|
+
})) && input.deny.map((elem, _index57) => "string" === typeof elem || _report(_exceptionable, {
|
|
3383
|
+
path: _path + ".deny[" + _index57 + "]",
|
|
3175
3384
|
expected: "string",
|
|
3176
3385
|
value: elem
|
|
3177
3386
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3182,17 +3391,17 @@ var validateCloudConfig = (() => {
|
|
|
3182
3391
|
path: _path + ".elevated",
|
|
3183
3392
|
expected: "(__type.o17 | undefined)",
|
|
3184
3393
|
value: input.elevated
|
|
3185
|
-
})) &&
|
|
3394
|
+
})) && _vo37(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
3186
3395
|
path: _path + ".elevated",
|
|
3187
3396
|
expected: "(__type.o17 | undefined)",
|
|
3188
3397
|
value: input.elevated
|
|
3189
3398
|
})].every((flag) => flag);
|
|
3190
|
-
const
|
|
3399
|
+
const _vo37 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3191
3400
|
path: _path + ".enabled",
|
|
3192
3401
|
expected: "(boolean | undefined)",
|
|
3193
3402
|
value: input.enabled
|
|
3194
3403
|
})].every((flag) => flag);
|
|
3195
|
-
const
|
|
3404
|
+
const _vo38 = (input, _path, _exceptionable = true) => ["string" === typeof input.agentId || _report(_exceptionable, {
|
|
3196
3405
|
path: _path + ".agentId",
|
|
3197
3406
|
expected: "string",
|
|
3198
3407
|
value: input.agentId
|
|
@@ -3204,7 +3413,7 @@ var validateCloudConfig = (() => {
|
|
|
3204
3413
|
path: _path + ".match",
|
|
3205
3414
|
expected: "__type.o18",
|
|
3206
3415
|
value: input.match
|
|
3207
|
-
})) &&
|
|
3416
|
+
})) && _vo39(input.match, _path + ".match", _exceptionable) || _report(_exceptionable, {
|
|
3208
3417
|
path: _path + ".match",
|
|
3209
3418
|
expected: "__type.o18",
|
|
3210
3419
|
value: input.match
|
|
@@ -3212,12 +3421,12 @@ var validateCloudConfig = (() => {
|
|
|
3212
3421
|
path: _path + ".acp",
|
|
3213
3422
|
expected: "(__type.o20 | undefined)",
|
|
3214
3423
|
value: input.acp
|
|
3215
|
-
})) &&
|
|
3424
|
+
})) && _vo41(input.acp, _path + ".acp", _exceptionable) || _report(_exceptionable, {
|
|
3216
3425
|
path: _path + ".acp",
|
|
3217
3426
|
expected: "(__type.o20 | undefined)",
|
|
3218
3427
|
value: input.acp
|
|
3219
3428
|
})].every((flag) => flag);
|
|
3220
|
-
const
|
|
3429
|
+
const _vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.channel || _report(_exceptionable, {
|
|
3221
3430
|
path: _path + ".channel",
|
|
3222
3431
|
expected: "string",
|
|
3223
3432
|
value: input.channel
|
|
@@ -3229,7 +3438,7 @@ var validateCloudConfig = (() => {
|
|
|
3229
3438
|
path: _path + ".peer",
|
|
3230
3439
|
expected: "(__type.o19 | undefined)",
|
|
3231
3440
|
value: input.peer
|
|
3232
|
-
})) &&
|
|
3441
|
+
})) && _vo40(input.peer, _path + ".peer", _exceptionable) || _report(_exceptionable, {
|
|
3233
3442
|
path: _path + ".peer",
|
|
3234
3443
|
expected: "(__type.o19 | undefined)",
|
|
3235
3444
|
value: input.peer
|
|
@@ -3242,7 +3451,7 @@ var validateCloudConfig = (() => {
|
|
|
3242
3451
|
expected: "(string | undefined)",
|
|
3243
3452
|
value: input.teamId
|
|
3244
3453
|
})].every((flag) => flag);
|
|
3245
|
-
const
|
|
3454
|
+
const _vo40 = (input, _path, _exceptionable = true) => [void 0 === input.kind || "direct" === input.kind || "group" === input.kind || "channel" === input.kind || _report(_exceptionable, {
|
|
3246
3455
|
path: _path + ".kind",
|
|
3247
3456
|
expected: '("channel" | "direct" | "group" | undefined)',
|
|
3248
3457
|
value: input.kind
|
|
@@ -3251,7 +3460,7 @@ var validateCloudConfig = (() => {
|
|
|
3251
3460
|
expected: "(string | undefined)",
|
|
3252
3461
|
value: input.id
|
|
3253
3462
|
})].every((flag) => flag);
|
|
3254
|
-
const
|
|
3463
|
+
const _vo41 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "string" === typeof input.mode || _report(_exceptionable, {
|
|
3255
3464
|
path: _path + ".mode",
|
|
3256
3465
|
expected: "(string | undefined)",
|
|
3257
3466
|
value: input.mode
|
|
@@ -3268,11 +3477,11 @@ var validateCloudConfig = (() => {
|
|
|
3268
3477
|
expected: "(string | undefined)",
|
|
3269
3478
|
value: input.backend
|
|
3270
3479
|
})].every((flag) => flag);
|
|
3271
|
-
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, {
|
|
3272
3481
|
path: _path + ".defaults",
|
|
3273
3482
|
expected: "(__type.o21 | undefined)",
|
|
3274
3483
|
value: input.defaults
|
|
3275
|
-
})) &&
|
|
3484
|
+
})) && _vo43(input.defaults, _path + ".defaults", _exceptionable) || _report(_exceptionable, {
|
|
3276
3485
|
path: _path + ".defaults",
|
|
3277
3486
|
expected: "(__type.o21 | undefined)",
|
|
3278
3487
|
value: input.defaults
|
|
@@ -3288,7 +3497,7 @@ var validateCloudConfig = (() => {
|
|
|
3288
3497
|
path: _path + ".telegram",
|
|
3289
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)',
|
|
3290
3499
|
value: input.telegram
|
|
3291
|
-
})) &&
|
|
3500
|
+
})) && _vo45(input.telegram, _path + ".telegram", _exceptionable) || _report(_exceptionable, {
|
|
3292
3501
|
path: _path + ".telegram",
|
|
3293
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)',
|
|
3294
3503
|
value: input.telegram
|
|
@@ -3296,7 +3505,7 @@ var validateCloudConfig = (() => {
|
|
|
3296
3505
|
path: _path + ".discord",
|
|
3297
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)',
|
|
3298
3507
|
value: input.discord
|
|
3299
|
-
})) &&
|
|
3508
|
+
})) && _vo48(input.discord, _path + ".discord", _exceptionable) || _report(_exceptionable, {
|
|
3300
3509
|
path: _path + ".discord",
|
|
3301
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)',
|
|
3302
3511
|
value: input.discord
|
|
@@ -3304,7 +3513,7 @@ var validateCloudConfig = (() => {
|
|
|
3304
3513
|
path: _path + ".slack",
|
|
3305
3514
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3306
3515
|
value: input.slack
|
|
3307
|
-
})) &&
|
|
3516
|
+
})) && _vo49(input.slack, _path + ".slack", _exceptionable) || _report(_exceptionable, {
|
|
3308
3517
|
path: _path + ".slack",
|
|
3309
3518
|
expected: "(OpenClawChannelBase & { botToken?: string | undefined; appToken?: string | undefined; channels?: Record<string, unknown> | undefined; allowBots?: boolean | undefined; } | undefined)",
|
|
3310
3519
|
value: input.slack
|
|
@@ -3312,7 +3521,7 @@ var validateCloudConfig = (() => {
|
|
|
3312
3521
|
path: _path + ".whatsapp",
|
|
3313
3522
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3314
3523
|
value: input.whatsapp
|
|
3315
|
-
})) &&
|
|
3524
|
+
})) && _vo50(input.whatsapp, _path + ".whatsapp", _exceptionable) || _report(_exceptionable, {
|
|
3316
3525
|
path: _path + ".whatsapp",
|
|
3317
3526
|
expected: '(OpenClawChannelBase & { textChunkLimit?: number | undefined; chunkMode?: "length" | "newline" | undefined; sendReadReceipts?: boolean | undefined; groups?: Record<...> | undefined; } | undefined)',
|
|
3318
3527
|
value: input.whatsapp
|
|
@@ -3320,7 +3529,7 @@ var validateCloudConfig = (() => {
|
|
|
3320
3529
|
path: _path + ".shadowob",
|
|
3321
3530
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3322
3531
|
value: input.shadowob
|
|
3323
|
-
})) &&
|
|
3532
|
+
})) && _vo51(input.shadowob, _path + ".shadowob", _exceptionable) || _report(_exceptionable, {
|
|
3324
3533
|
path: _path + ".shadowob",
|
|
3325
3534
|
expected: "(OpenClawChannelBase & { enabled?: boolean | undefined; capabilities?: OpenClawChannelCapabilities | undefined; accounts?: Record<...> | undefined; } | undefined)",
|
|
3326
3535
|
value: input.shadowob
|
|
@@ -3332,7 +3541,7 @@ var validateCloudConfig = (() => {
|
|
|
3332
3541
|
return true;
|
|
3333
3542
|
return true;
|
|
3334
3543
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3335
|
-
const
|
|
3544
|
+
const _vo43 = (input, _path, _exceptionable = true) => [void 0 === input.groupPolicy || "allowlist" === input.groupPolicy || "open" === input.groupPolicy || "disabled" === input.groupPolicy || _report(_exceptionable, {
|
|
3336
3545
|
path: _path + ".groupPolicy",
|
|
3337
3546
|
expected: '("allowlist" | "disabled" | "open" | undefined)',
|
|
3338
3547
|
value: input.groupPolicy
|
|
@@ -3340,12 +3549,12 @@ var validateCloudConfig = (() => {
|
|
|
3340
3549
|
path: _path + ".heartbeat",
|
|
3341
3550
|
expected: "(__type.o22 | undefined)",
|
|
3342
3551
|
value: input.heartbeat
|
|
3343
|
-
})) &&
|
|
3552
|
+
})) && _vo44(input.heartbeat, _path + ".heartbeat", _exceptionable) || _report(_exceptionable, {
|
|
3344
3553
|
path: _path + ".heartbeat",
|
|
3345
3554
|
expected: "(__type.o22 | undefined)",
|
|
3346
3555
|
value: input.heartbeat
|
|
3347
3556
|
})].every((flag) => flag);
|
|
3348
|
-
const
|
|
3557
|
+
const _vo44 = (input, _path, _exceptionable = true) => [void 0 === input.showOk || "boolean" === typeof input.showOk || _report(_exceptionable, {
|
|
3349
3558
|
path: _path + ".showOk",
|
|
3350
3559
|
expected: "(boolean | undefined)",
|
|
3351
3560
|
value: input.showOk
|
|
@@ -3358,7 +3567,7 @@ var validateCloudConfig = (() => {
|
|
|
3358
3567
|
expected: "(boolean | undefined)",
|
|
3359
3568
|
value: input.useIndicator
|
|
3360
3569
|
})].every((flag) => flag);
|
|
3361
|
-
const
|
|
3570
|
+
const _vo45 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3362
3571
|
path: _path + ".enabled",
|
|
3363
3572
|
expected: "(boolean | undefined)",
|
|
3364
3573
|
value: input.enabled
|
|
@@ -3366,7 +3575,7 @@ var validateCloudConfig = (() => {
|
|
|
3366
3575
|
path: _path + ".capabilities",
|
|
3367
3576
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3368
3577
|
value: input.capabilities
|
|
3369
|
-
})) &&
|
|
3578
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3370
3579
|
path: _path + ".capabilities",
|
|
3371
3580
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3372
3581
|
value: input.capabilities
|
|
@@ -3378,8 +3587,8 @@ var validateCloudConfig = (() => {
|
|
|
3378
3587
|
path: _path + ".allowFrom",
|
|
3379
3588
|
expected: "(Array<string> | undefined)",
|
|
3380
3589
|
value: input.allowFrom
|
|
3381
|
-
})) && input.allowFrom.map((elem,
|
|
3382
|
-
path: _path + ".allowFrom[" +
|
|
3590
|
+
})) && input.allowFrom.map((elem, _index58) => "string" === typeof elem || _report(_exceptionable, {
|
|
3591
|
+
path: _path + ".allowFrom[" + _index58 + "]",
|
|
3383
3592
|
expected: "string",
|
|
3384
3593
|
value: elem
|
|
3385
3594
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3422,7 +3631,7 @@ var validateCloudConfig = (() => {
|
|
|
3422
3631
|
path: _path + ".groups",
|
|
3423
3632
|
expected: "(Record<string, unknown> | undefined)",
|
|
3424
3633
|
value: input.groups
|
|
3425
|
-
})) &&
|
|
3634
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3426
3635
|
path: _path + ".groups",
|
|
3427
3636
|
expected: "(Record<string, unknown> | undefined)",
|
|
3428
3637
|
value: input.groups
|
|
@@ -3430,12 +3639,12 @@ var validateCloudConfig = (() => {
|
|
|
3430
3639
|
path: _path + ".customCommands",
|
|
3431
3640
|
expected: "(Array<__type>.o1 | undefined)",
|
|
3432
3641
|
value: input.customCommands
|
|
3433
|
-
})) && input.customCommands.map((elem,
|
|
3434
|
-
path: _path + ".customCommands[" +
|
|
3642
|
+
})) && input.customCommands.map((elem, _index59) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
3643
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3435
3644
|
expected: "__type.o24",
|
|
3436
3645
|
value: elem
|
|
3437
|
-
})) &&
|
|
3438
|
-
path: _path + ".customCommands[" +
|
|
3646
|
+
})) && _vo47(elem, _path + ".customCommands[" + _index59 + "]", _exceptionable) || _report(_exceptionable, {
|
|
3647
|
+
path: _path + ".customCommands[" + _index59 + "]",
|
|
3439
3648
|
expected: "__type.o24",
|
|
3440
3649
|
value: elem
|
|
3441
3650
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3451,7 +3660,7 @@ var validateCloudConfig = (() => {
|
|
|
3451
3660
|
expected: "(boolean | undefined)",
|
|
3452
3661
|
value: input.linkPreview
|
|
3453
3662
|
})].every((flag) => flag);
|
|
3454
|
-
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, {
|
|
3455
3664
|
path: _path + ".inlineButtons",
|
|
3456
3665
|
expected: '("all" | "allowlist" | "dm" | "group" | "off" | boolean | undefined)',
|
|
3457
3666
|
value: input.inlineButtons
|
|
@@ -3471,7 +3680,7 @@ var validateCloudConfig = (() => {
|
|
|
3471
3680
|
return true;
|
|
3472
3681
|
return true;
|
|
3473
3682
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3474
|
-
const
|
|
3683
|
+
const _vo47 = (input, _path, _exceptionable = true) => ["string" === typeof input.command || _report(_exceptionable, {
|
|
3475
3684
|
path: _path + ".command",
|
|
3476
3685
|
expected: "string",
|
|
3477
3686
|
value: input.command
|
|
@@ -3480,7 +3689,7 @@ var validateCloudConfig = (() => {
|
|
|
3480
3689
|
expected: "string",
|
|
3481
3690
|
value: input.description
|
|
3482
3691
|
})].every((flag) => flag);
|
|
3483
|
-
const
|
|
3692
|
+
const _vo48 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3484
3693
|
path: _path + ".enabled",
|
|
3485
3694
|
expected: "(boolean | undefined)",
|
|
3486
3695
|
value: input.enabled
|
|
@@ -3488,7 +3697,7 @@ var validateCloudConfig = (() => {
|
|
|
3488
3697
|
path: _path + ".capabilities",
|
|
3489
3698
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3490
3699
|
value: input.capabilities
|
|
3491
|
-
})) &&
|
|
3700
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3492
3701
|
path: _path + ".capabilities",
|
|
3493
3702
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3494
3703
|
value: input.capabilities
|
|
@@ -3500,8 +3709,8 @@ var validateCloudConfig = (() => {
|
|
|
3500
3709
|
path: _path + ".allowFrom",
|
|
3501
3710
|
expected: "(Array<string> | undefined)",
|
|
3502
3711
|
value: input.allowFrom
|
|
3503
|
-
})) && input.allowFrom.map((elem,
|
|
3504
|
-
path: _path + ".allowFrom[" +
|
|
3712
|
+
})) && input.allowFrom.map((elem, _index60) => "string" === typeof elem || _report(_exceptionable, {
|
|
3713
|
+
path: _path + ".allowFrom[" + _index60 + "]",
|
|
3505
3714
|
expected: "string",
|
|
3506
3715
|
value: elem
|
|
3507
3716
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3548,7 +3757,7 @@ var validateCloudConfig = (() => {
|
|
|
3548
3757
|
path: _path + ".guilds",
|
|
3549
3758
|
expected: "(Record<string, unknown> | undefined)",
|
|
3550
3759
|
value: input.guilds
|
|
3551
|
-
})) &&
|
|
3760
|
+
})) && _vo5(input.guilds, _path + ".guilds", _exceptionable) || _report(_exceptionable, {
|
|
3552
3761
|
path: _path + ".guilds",
|
|
3553
3762
|
expected: "(Record<string, unknown> | undefined)",
|
|
3554
3763
|
value: input.guilds
|
|
@@ -3565,7 +3774,7 @@ var validateCloudConfig = (() => {
|
|
|
3565
3774
|
expected: '("length" | "newline" | undefined)',
|
|
3566
3775
|
value: input.chunkMode
|
|
3567
3776
|
})].every((flag) => flag);
|
|
3568
|
-
const
|
|
3777
|
+
const _vo49 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3569
3778
|
path: _path + ".enabled",
|
|
3570
3779
|
expected: "(boolean | undefined)",
|
|
3571
3780
|
value: input.enabled
|
|
@@ -3573,7 +3782,7 @@ var validateCloudConfig = (() => {
|
|
|
3573
3782
|
path: _path + ".capabilities",
|
|
3574
3783
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3575
3784
|
value: input.capabilities
|
|
3576
|
-
})) &&
|
|
3785
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3577
3786
|
path: _path + ".capabilities",
|
|
3578
3787
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3579
3788
|
value: input.capabilities
|
|
@@ -3585,8 +3794,8 @@ var validateCloudConfig = (() => {
|
|
|
3585
3794
|
path: _path + ".allowFrom",
|
|
3586
3795
|
expected: "(Array<string> | undefined)",
|
|
3587
3796
|
value: input.allowFrom
|
|
3588
|
-
})) && input.allowFrom.map((elem,
|
|
3589
|
-
path: _path + ".allowFrom[" +
|
|
3797
|
+
})) && input.allowFrom.map((elem, _index61) => "string" === typeof elem || _report(_exceptionable, {
|
|
3798
|
+
path: _path + ".allowFrom[" + _index61 + "]",
|
|
3590
3799
|
expected: "string",
|
|
3591
3800
|
value: elem
|
|
3592
3801
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3633,7 +3842,7 @@ var validateCloudConfig = (() => {
|
|
|
3633
3842
|
path: _path + ".channels",
|
|
3634
3843
|
expected: "(Record<string, unknown> | undefined)",
|
|
3635
3844
|
value: input.channels
|
|
3636
|
-
})) &&
|
|
3845
|
+
})) && _vo5(input.channels, _path + ".channels", _exceptionable) || _report(_exceptionable, {
|
|
3637
3846
|
path: _path + ".channels",
|
|
3638
3847
|
expected: "(Record<string, unknown> | undefined)",
|
|
3639
3848
|
value: input.channels
|
|
@@ -3642,7 +3851,7 @@ var validateCloudConfig = (() => {
|
|
|
3642
3851
|
expected: "(boolean | undefined)",
|
|
3643
3852
|
value: input.allowBots
|
|
3644
3853
|
})].every((flag) => flag);
|
|
3645
|
-
const
|
|
3854
|
+
const _vo50 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3646
3855
|
path: _path + ".enabled",
|
|
3647
3856
|
expected: "(boolean | undefined)",
|
|
3648
3857
|
value: input.enabled
|
|
@@ -3650,7 +3859,7 @@ var validateCloudConfig = (() => {
|
|
|
3650
3859
|
path: _path + ".capabilities",
|
|
3651
3860
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3652
3861
|
value: input.capabilities
|
|
3653
|
-
})) &&
|
|
3862
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3654
3863
|
path: _path + ".capabilities",
|
|
3655
3864
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3656
3865
|
value: input.capabilities
|
|
@@ -3662,8 +3871,8 @@ var validateCloudConfig = (() => {
|
|
|
3662
3871
|
path: _path + ".allowFrom",
|
|
3663
3872
|
expected: "(Array<string> | undefined)",
|
|
3664
3873
|
value: input.allowFrom
|
|
3665
|
-
})) && input.allowFrom.map((elem,
|
|
3666
|
-
path: _path + ".allowFrom[" +
|
|
3874
|
+
})) && input.allowFrom.map((elem, _index62) => "string" === typeof elem || _report(_exceptionable, {
|
|
3875
|
+
path: _path + ".allowFrom[" + _index62 + "]",
|
|
3667
3876
|
expected: "string",
|
|
3668
3877
|
value: elem
|
|
3669
3878
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3714,12 +3923,12 @@ var validateCloudConfig = (() => {
|
|
|
3714
3923
|
path: _path + ".groups",
|
|
3715
3924
|
expected: "(Record<string, unknown> | undefined)",
|
|
3716
3925
|
value: input.groups
|
|
3717
|
-
})) &&
|
|
3926
|
+
})) && _vo5(input.groups, _path + ".groups", _exceptionable) || _report(_exceptionable, {
|
|
3718
3927
|
path: _path + ".groups",
|
|
3719
3928
|
expected: "(Record<string, unknown> | undefined)",
|
|
3720
3929
|
value: input.groups
|
|
3721
3930
|
})].every((flag) => flag);
|
|
3722
|
-
const
|
|
3931
|
+
const _vo51 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3723
3932
|
path: _path + ".enabled",
|
|
3724
3933
|
expected: "(boolean | undefined)",
|
|
3725
3934
|
value: input.enabled
|
|
@@ -3727,7 +3936,7 @@ var validateCloudConfig = (() => {
|
|
|
3727
3936
|
path: _path + ".capabilities",
|
|
3728
3937
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3729
3938
|
value: input.capabilities
|
|
3730
|
-
})) &&
|
|
3939
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3731
3940
|
path: _path + ".capabilities",
|
|
3732
3941
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3733
3942
|
value: input.capabilities
|
|
@@ -3739,8 +3948,8 @@ var validateCloudConfig = (() => {
|
|
|
3739
3948
|
path: _path + ".allowFrom",
|
|
3740
3949
|
expected: "(Array<string> | undefined)",
|
|
3741
3950
|
value: input.allowFrom
|
|
3742
|
-
})) && input.allowFrom.map((elem,
|
|
3743
|
-
path: _path + ".allowFrom[" +
|
|
3951
|
+
})) && input.allowFrom.map((elem, _index63) => "string" === typeof elem || _report(_exceptionable, {
|
|
3952
|
+
path: _path + ".allowFrom[" + _index63 + "]",
|
|
3744
3953
|
expected: "string",
|
|
3745
3954
|
value: elem
|
|
3746
3955
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3779,12 +3988,12 @@ var validateCloudConfig = (() => {
|
|
|
3779
3988
|
path: _path + ".accounts",
|
|
3780
3989
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3781
3990
|
value: input.accounts
|
|
3782
|
-
})) &&
|
|
3991
|
+
})) && _vo52(input.accounts, _path + ".accounts", _exceptionable) || _report(_exceptionable, {
|
|
3783
3992
|
path: _path + ".accounts",
|
|
3784
3993
|
expected: "(Record<string, __type>.o1 | undefined)",
|
|
3785
3994
|
value: input.accounts
|
|
3786
3995
|
})].every((flag) => flag);
|
|
3787
|
-
const
|
|
3996
|
+
const _vo52 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3788
3997
|
const value = input[key];
|
|
3789
3998
|
if (void 0 === value)
|
|
3790
3999
|
return true;
|
|
@@ -3792,13 +4001,13 @@ var validateCloudConfig = (() => {
|
|
|
3792
4001
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3793
4002
|
expected: "__type.o29",
|
|
3794
4003
|
value
|
|
3795
|
-
})) &&
|
|
4004
|
+
})) && _vo53(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3796
4005
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3797
4006
|
expected: "__type.o29",
|
|
3798
4007
|
value
|
|
3799
4008
|
});
|
|
3800
4009
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3801
|
-
const
|
|
4010
|
+
const _vo53 = (input, _path, _exceptionable = true) => [void 0 === input.token || "string" === typeof input.token || _report(_exceptionable, {
|
|
3802
4011
|
path: _path + ".token",
|
|
3803
4012
|
expected: "(string | undefined)",
|
|
3804
4013
|
value: input.token
|
|
@@ -3814,12 +4023,12 @@ var validateCloudConfig = (() => {
|
|
|
3814
4023
|
path: _path + ".capabilities",
|
|
3815
4024
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3816
4025
|
value: input.capabilities
|
|
3817
|
-
})) &&
|
|
4026
|
+
})) && _vo46(input.capabilities, _path + ".capabilities", _exceptionable) || _report(_exceptionable, {
|
|
3818
4027
|
path: _path + ".capabilities",
|
|
3819
4028
|
expected: "(OpenClawChannelCapabilities | undefined)",
|
|
3820
4029
|
value: input.capabilities
|
|
3821
4030
|
})].every((flag) => flag);
|
|
3822
|
-
const
|
|
4031
|
+
const _vo54 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3823
4032
|
path: _path + ".enabled",
|
|
3824
4033
|
expected: "(boolean | undefined)",
|
|
3825
4034
|
value: input.enabled
|
|
@@ -3827,7 +4036,7 @@ var validateCloudConfig = (() => {
|
|
|
3827
4036
|
path: _path + ".dispatch",
|
|
3828
4037
|
expected: "(__type.o30 | undefined)",
|
|
3829
4038
|
value: input.dispatch
|
|
3830
|
-
})) &&
|
|
4039
|
+
})) && _vo55(input.dispatch, _path + ".dispatch", _exceptionable) || _report(_exceptionable, {
|
|
3831
4040
|
path: _path + ".dispatch",
|
|
3832
4041
|
expected: "(__type.o30 | undefined)",
|
|
3833
4042
|
value: input.dispatch
|
|
@@ -3843,8 +4052,8 @@ var validateCloudConfig = (() => {
|
|
|
3843
4052
|
path: _path + ".allowedAgents",
|
|
3844
4053
|
expected: "(Array<string> | undefined)",
|
|
3845
4054
|
value: input.allowedAgents
|
|
3846
|
-
})) && input.allowedAgents.map((elem,
|
|
3847
|
-
path: _path + ".allowedAgents[" +
|
|
4055
|
+
})) && input.allowedAgents.map((elem, _index64) => "string" === typeof elem || _report(_exceptionable, {
|
|
4056
|
+
path: _path + ".allowedAgents[" + _index64 + "]",
|
|
3848
4057
|
expected: "string",
|
|
3849
4058
|
value: elem
|
|
3850
4059
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3863,7 +4072,7 @@ var validateCloudConfig = (() => {
|
|
|
3863
4072
|
path: _path + ".stream",
|
|
3864
4073
|
expected: "(__type.o31 | undefined)",
|
|
3865
4074
|
value: input.stream
|
|
3866
|
-
})) &&
|
|
4075
|
+
})) && _vo56(input.stream, _path + ".stream", _exceptionable) || _report(_exceptionable, {
|
|
3867
4076
|
path: _path + ".stream",
|
|
3868
4077
|
expected: "(__type.o31 | undefined)",
|
|
3869
4078
|
value: input.stream
|
|
@@ -3871,17 +4080,17 @@ var validateCloudConfig = (() => {
|
|
|
3871
4080
|
path: _path + ".runtime",
|
|
3872
4081
|
expected: "(__type.o32 | undefined)",
|
|
3873
4082
|
value: input.runtime
|
|
3874
|
-
})) &&
|
|
4083
|
+
})) && _vo57(input.runtime, _path + ".runtime", _exceptionable) || _report(_exceptionable, {
|
|
3875
4084
|
path: _path + ".runtime",
|
|
3876
4085
|
expected: "(__type.o32 | undefined)",
|
|
3877
4086
|
value: input.runtime
|
|
3878
4087
|
})].every((flag) => flag);
|
|
3879
|
-
const
|
|
4088
|
+
const _vo55 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
3880
4089
|
path: _path + ".enabled",
|
|
3881
4090
|
expected: "(boolean | undefined)",
|
|
3882
4091
|
value: input.enabled
|
|
3883
4092
|
})].every((flag) => flag);
|
|
3884
|
-
const
|
|
4093
|
+
const _vo56 = (input, _path, _exceptionable = true) => [void 0 === input.coalesceIdleMs || "number" === typeof input.coalesceIdleMs || _report(_exceptionable, {
|
|
3885
4094
|
path: _path + ".coalesceIdleMs",
|
|
3886
4095
|
expected: "(number | undefined)",
|
|
3887
4096
|
value: input.coalesceIdleMs
|
|
@@ -3906,12 +4115,12 @@ var validateCloudConfig = (() => {
|
|
|
3906
4115
|
expected: "(number | undefined)",
|
|
3907
4116
|
value: input.maxSessionUpdateChars
|
|
3908
4117
|
})].every((flag) => flag);
|
|
3909
|
-
const
|
|
4118
|
+
const _vo57 = (input, _path, _exceptionable = true) => [void 0 === input.ttlMinutes || "number" === typeof input.ttlMinutes || _report(_exceptionable, {
|
|
3910
4119
|
path: _path + ".ttlMinutes",
|
|
3911
4120
|
expected: "(number | undefined)",
|
|
3912
4121
|
value: input.ttlMinutes
|
|
3913
4122
|
})].every((flag) => flag);
|
|
3914
|
-
const
|
|
4123
|
+
const _vo58 = (input, _path, _exceptionable = true) => [void 0 === input.scope || "string" === typeof input.scope || _report(_exceptionable, {
|
|
3915
4124
|
path: _path + ".scope",
|
|
3916
4125
|
expected: "(string | undefined)",
|
|
3917
4126
|
value: input.scope
|
|
@@ -3923,7 +4132,7 @@ var validateCloudConfig = (() => {
|
|
|
3923
4132
|
path: _path + ".reset",
|
|
3924
4133
|
expected: "(__type.o33 | undefined)",
|
|
3925
4134
|
value: input.reset
|
|
3926
|
-
})) &&
|
|
4135
|
+
})) && _vo59(input.reset, _path + ".reset", _exceptionable) || _report(_exceptionable, {
|
|
3927
4136
|
path: _path + ".reset",
|
|
3928
4137
|
expected: "(__type.o33 | undefined)",
|
|
3929
4138
|
value: input.reset
|
|
@@ -3931,7 +4140,7 @@ var validateCloudConfig = (() => {
|
|
|
3931
4140
|
path: _path + ".resetByType",
|
|
3932
4141
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3933
4142
|
value: input.resetByType
|
|
3934
|
-
})) &&
|
|
4143
|
+
})) && _vo60(input.resetByType, _path + ".resetByType", _exceptionable) || _report(_exceptionable, {
|
|
3935
4144
|
path: _path + ".resetByType",
|
|
3936
4145
|
expected: "(Record<string, __type>.o2 | undefined)",
|
|
3937
4146
|
value: input.resetByType
|
|
@@ -3939,8 +4148,8 @@ var validateCloudConfig = (() => {
|
|
|
3939
4148
|
path: _path + ".resetTriggers",
|
|
3940
4149
|
expected: "(Array<string> | undefined)",
|
|
3941
4150
|
value: input.resetTriggers
|
|
3942
|
-
})) && input.resetTriggers.map((elem,
|
|
3943
|
-
path: _path + ".resetTriggers[" +
|
|
4151
|
+
})) && input.resetTriggers.map((elem, _index65) => "string" === typeof elem || _report(_exceptionable, {
|
|
4152
|
+
path: _path + ".resetTriggers[" + _index65 + "]",
|
|
3944
4153
|
expected: "string",
|
|
3945
4154
|
value: elem
|
|
3946
4155
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -3955,12 +4164,12 @@ var validateCloudConfig = (() => {
|
|
|
3955
4164
|
path: _path + ".threadBindings",
|
|
3956
4165
|
expected: "(__type.o35 | undefined)",
|
|
3957
4166
|
value: input.threadBindings
|
|
3958
|
-
})) &&
|
|
4167
|
+
})) && _vo62(input.threadBindings, _path + ".threadBindings", _exceptionable) || _report(_exceptionable, {
|
|
3959
4168
|
path: _path + ".threadBindings",
|
|
3960
4169
|
expected: "(__type.o35 | undefined)",
|
|
3961
4170
|
value: input.threadBindings
|
|
3962
4171
|
})].every((flag) => flag);
|
|
3963
|
-
const
|
|
4172
|
+
const _vo59 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3964
4173
|
path: _path + ".mode",
|
|
3965
4174
|
expected: '("daily" | "idle" | undefined)',
|
|
3966
4175
|
value: input.mode
|
|
@@ -3973,7 +4182,7 @@ var validateCloudConfig = (() => {
|
|
|
3973
4182
|
expected: "(number | undefined)",
|
|
3974
4183
|
value: input.idleMinutes
|
|
3975
4184
|
})].every((flag) => flag);
|
|
3976
|
-
const
|
|
4185
|
+
const _vo60 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
3977
4186
|
const value = input[key];
|
|
3978
4187
|
if (void 0 === value)
|
|
3979
4188
|
return true;
|
|
@@ -3981,13 +4190,13 @@ var validateCloudConfig = (() => {
|
|
|
3981
4190
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3982
4191
|
expected: "__type.o34",
|
|
3983
4192
|
value
|
|
3984
|
-
})) &&
|
|
4193
|
+
})) && _vo61(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
3985
4194
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
3986
4195
|
expected: "__type.o34",
|
|
3987
4196
|
value
|
|
3988
4197
|
});
|
|
3989
4198
|
}).every((flag) => flag)].every((flag) => flag);
|
|
3990
|
-
const
|
|
4199
|
+
const _vo61 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "daily" === input.mode || "idle" === input.mode || _report(_exceptionable, {
|
|
3991
4200
|
path: _path + ".mode",
|
|
3992
4201
|
expected: '("daily" | "idle" | undefined)',
|
|
3993
4202
|
value: input.mode
|
|
@@ -4000,7 +4209,7 @@ var validateCloudConfig = (() => {
|
|
|
4000
4209
|
expected: "(number | undefined)",
|
|
4001
4210
|
value: input.idleMinutes
|
|
4002
4211
|
})].every((flag) => flag);
|
|
4003
|
-
const
|
|
4212
|
+
const _vo62 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4004
4213
|
path: _path + ".enabled",
|
|
4005
4214
|
expected: "(boolean | undefined)",
|
|
4006
4215
|
value: input.enabled
|
|
@@ -4013,7 +4222,7 @@ var validateCloudConfig = (() => {
|
|
|
4013
4222
|
expected: "(number | undefined)",
|
|
4014
4223
|
value: input.maxAgeHours
|
|
4015
4224
|
})].every((flag) => flag);
|
|
4016
|
-
const
|
|
4225
|
+
const _vo63 = (input, _path, _exceptionable = true) => [void 0 === input.responsePrefix || "string" === typeof input.responsePrefix || _report(_exceptionable, {
|
|
4017
4226
|
path: _path + ".responsePrefix",
|
|
4018
4227
|
expected: "(string | undefined)",
|
|
4019
4228
|
value: input.responsePrefix
|
|
@@ -4033,7 +4242,7 @@ var validateCloudConfig = (() => {
|
|
|
4033
4242
|
path: _path + ".queue",
|
|
4034
4243
|
expected: "(__type.o36 | undefined)",
|
|
4035
4244
|
value: input.queue
|
|
4036
|
-
})) &&
|
|
4245
|
+
})) && _vo64(input.queue, _path + ".queue", _exceptionable) || _report(_exceptionable, {
|
|
4037
4246
|
path: _path + ".queue",
|
|
4038
4247
|
expected: "(__type.o36 | undefined)",
|
|
4039
4248
|
value: input.queue
|
|
@@ -4041,12 +4250,12 @@ var validateCloudConfig = (() => {
|
|
|
4041
4250
|
path: _path + ".groupChat",
|
|
4042
4251
|
expected: "(__type.o37 | undefined)",
|
|
4043
4252
|
value: input.groupChat
|
|
4044
|
-
})) &&
|
|
4253
|
+
})) && _vo65(input.groupChat, _path + ".groupChat", _exceptionable) || _report(_exceptionable, {
|
|
4045
4254
|
path: _path + ".groupChat",
|
|
4046
4255
|
expected: "(__type.o37 | undefined)",
|
|
4047
4256
|
value: input.groupChat
|
|
4048
4257
|
})].every((flag) => flag);
|
|
4049
|
-
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, {
|
|
4050
4259
|
path: _path + ".mode",
|
|
4051
4260
|
expected: '("collect" | "followup" | "interrupt" | "queue" | "steer" | undefined)',
|
|
4052
4261
|
value: input.mode
|
|
@@ -4059,12 +4268,12 @@ var validateCloudConfig = (() => {
|
|
|
4059
4268
|
expected: "(number | undefined)",
|
|
4060
4269
|
value: input.cap
|
|
4061
4270
|
})].every((flag) => flag);
|
|
4062
|
-
const
|
|
4271
|
+
const _vo65 = (input, _path, _exceptionable = true) => [void 0 === input.historyLimit || "number" === typeof input.historyLimit || _report(_exceptionable, {
|
|
4063
4272
|
path: _path + ".historyLimit",
|
|
4064
4273
|
expected: "(number | undefined)",
|
|
4065
4274
|
value: input.historyLimit
|
|
4066
4275
|
})].every((flag) => flag);
|
|
4067
|
-
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, {
|
|
4068
4277
|
path: _path + ".profile",
|
|
4069
4278
|
expected: '("approve-all" | "approve-reads" | "coding" | "dangerously-skip-permissions" | "deny-all" | "full" | "messaging" | "minimal" | undefined)',
|
|
4070
4279
|
value: input.profile
|
|
@@ -4072,8 +4281,8 @@ var validateCloudConfig = (() => {
|
|
|
4072
4281
|
path: _path + ".allow",
|
|
4073
4282
|
expected: "(Array<string> | undefined)",
|
|
4074
4283
|
value: input.allow
|
|
4075
|
-
})) && input.allow.map((elem,
|
|
4076
|
-
path: _path + ".allow[" +
|
|
4284
|
+
})) && input.allow.map((elem, _index66) => "string" === typeof elem || _report(_exceptionable, {
|
|
4285
|
+
path: _path + ".allow[" + _index66 + "]",
|
|
4077
4286
|
expected: "string",
|
|
4078
4287
|
value: elem
|
|
4079
4288
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4084,8 +4293,8 @@ var validateCloudConfig = (() => {
|
|
|
4084
4293
|
path: _path + ".deny",
|
|
4085
4294
|
expected: "(Array<string> | undefined)",
|
|
4086
4295
|
value: input.deny
|
|
4087
|
-
})) && input.deny.map((elem,
|
|
4088
|
-
path: _path + ".deny[" +
|
|
4296
|
+
})) && input.deny.map((elem, _index67) => "string" === typeof elem || _report(_exceptionable, {
|
|
4297
|
+
path: _path + ".deny[" + _index67 + "]",
|
|
4089
4298
|
expected: "string",
|
|
4090
4299
|
value: elem
|
|
4091
4300
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4096,8 +4305,8 @@ var validateCloudConfig = (() => {
|
|
|
4096
4305
|
path: _path + ".readOnly",
|
|
4097
4306
|
expected: "(Array<string> | undefined)",
|
|
4098
4307
|
value: input.readOnly
|
|
4099
|
-
})) && input.readOnly.map((elem,
|
|
4100
|
-
path: _path + ".readOnly[" +
|
|
4308
|
+
})) && input.readOnly.map((elem, _index68) => "string" === typeof elem || _report(_exceptionable, {
|
|
4309
|
+
path: _path + ".readOnly[" + _index68 + "]",
|
|
4101
4310
|
expected: "string",
|
|
4102
4311
|
value: elem
|
|
4103
4312
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4112,7 +4321,7 @@ var validateCloudConfig = (() => {
|
|
|
4112
4321
|
path: _path + ".elevated",
|
|
4113
4322
|
expected: "(__type.o38 | undefined)",
|
|
4114
4323
|
value: input.elevated
|
|
4115
|
-
})) &&
|
|
4324
|
+
})) && _vo67(input.elevated, _path + ".elevated", _exceptionable) || _report(_exceptionable, {
|
|
4116
4325
|
path: _path + ".elevated",
|
|
4117
4326
|
expected: "(__type.o38 | undefined)",
|
|
4118
4327
|
value: input.elevated
|
|
@@ -4120,7 +4329,7 @@ var validateCloudConfig = (() => {
|
|
|
4120
4329
|
path: _path + ".exec",
|
|
4121
4330
|
expected: "(__type.o39 | undefined)",
|
|
4122
4331
|
value: input.exec
|
|
4123
|
-
})) &&
|
|
4332
|
+
})) && _vo69(input.exec, _path + ".exec", _exceptionable) || _report(_exceptionable, {
|
|
4124
4333
|
path: _path + ".exec",
|
|
4125
4334
|
expected: "(__type.o39 | undefined)",
|
|
4126
4335
|
value: input.exec
|
|
@@ -4128,7 +4337,7 @@ var validateCloudConfig = (() => {
|
|
|
4128
4337
|
path: _path + ".web",
|
|
4129
4338
|
expected: "(__type.o40 | undefined)",
|
|
4130
4339
|
value: input.web
|
|
4131
|
-
})) &&
|
|
4340
|
+
})) && _vo70(input.web, _path + ".web", _exceptionable) || _report(_exceptionable, {
|
|
4132
4341
|
path: _path + ".web",
|
|
4133
4342
|
expected: "(__type.o40 | undefined)",
|
|
4134
4343
|
value: input.web
|
|
@@ -4136,12 +4345,12 @@ var validateCloudConfig = (() => {
|
|
|
4136
4345
|
path: _path + ".sandbox",
|
|
4137
4346
|
expected: "(Record<string, unknown> | undefined)",
|
|
4138
4347
|
value: input.sandbox
|
|
4139
|
-
})) &&
|
|
4348
|
+
})) && _vo5(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4140
4349
|
path: _path + ".sandbox",
|
|
4141
4350
|
expected: "(Record<string, unknown> | undefined)",
|
|
4142
4351
|
value: input.sandbox
|
|
4143
4352
|
})].every((flag) => flag);
|
|
4144
|
-
const
|
|
4353
|
+
const _vo67 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4145
4354
|
path: _path + ".enabled",
|
|
4146
4355
|
expected: "(boolean | undefined)",
|
|
4147
4356
|
value: input.enabled
|
|
@@ -4149,12 +4358,12 @@ var validateCloudConfig = (() => {
|
|
|
4149
4358
|
path: _path + ".allowFrom",
|
|
4150
4359
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4151
4360
|
value: input.allowFrom
|
|
4152
|
-
})) &&
|
|
4361
|
+
})) && _vo68(input.allowFrom, _path + ".allowFrom", _exceptionable) || _report(_exceptionable, {
|
|
4153
4362
|
path: _path + ".allowFrom",
|
|
4154
4363
|
expected: "(Record<string, Array<string>> | undefined)",
|
|
4155
4364
|
value: input.allowFrom
|
|
4156
4365
|
})].every((flag) => flag);
|
|
4157
|
-
const
|
|
4366
|
+
const _vo68 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4158
4367
|
const value = input[key];
|
|
4159
4368
|
if (void 0 === value)
|
|
4160
4369
|
return true;
|
|
@@ -4162,8 +4371,8 @@ var validateCloudConfig = (() => {
|
|
|
4162
4371
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4163
4372
|
expected: "Array<string>",
|
|
4164
4373
|
value
|
|
4165
|
-
})) && value.map((elem,
|
|
4166
|
-
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 + "]",
|
|
4167
4376
|
expected: "string",
|
|
4168
4377
|
value: elem
|
|
4169
4378
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4172,7 +4381,7 @@ var validateCloudConfig = (() => {
|
|
|
4172
4381
|
value
|
|
4173
4382
|
});
|
|
4174
4383
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4175
|
-
const
|
|
4384
|
+
const _vo69 = (input, _path, _exceptionable = true) => [void 0 === input.backgroundMs || "number" === typeof input.backgroundMs || _report(_exceptionable, {
|
|
4176
4385
|
path: _path + ".backgroundMs",
|
|
4177
4386
|
expected: "(number | undefined)",
|
|
4178
4387
|
value: input.backgroundMs
|
|
@@ -4181,11 +4390,11 @@ var validateCloudConfig = (() => {
|
|
|
4181
4390
|
expected: "(number | undefined)",
|
|
4182
4391
|
value: input.timeoutSec
|
|
4183
4392
|
})].every((flag) => flag);
|
|
4184
|
-
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, {
|
|
4185
4394
|
path: _path + ".search",
|
|
4186
4395
|
expected: "(__type.o41 | undefined)",
|
|
4187
4396
|
value: input.search
|
|
4188
|
-
})) &&
|
|
4397
|
+
})) && _vo71(input.search, _path + ".search", _exceptionable) || _report(_exceptionable, {
|
|
4189
4398
|
path: _path + ".search",
|
|
4190
4399
|
expected: "(__type.o41 | undefined)",
|
|
4191
4400
|
value: input.search
|
|
@@ -4193,12 +4402,12 @@ var validateCloudConfig = (() => {
|
|
|
4193
4402
|
path: _path + ".fetch",
|
|
4194
4403
|
expected: "(__type.o42 | undefined)",
|
|
4195
4404
|
value: input.fetch
|
|
4196
|
-
})) &&
|
|
4405
|
+
})) && _vo72(input.fetch, _path + ".fetch", _exceptionable) || _report(_exceptionable, {
|
|
4197
4406
|
path: _path + ".fetch",
|
|
4198
4407
|
expected: "(__type.o42 | undefined)",
|
|
4199
4408
|
value: input.fetch
|
|
4200
4409
|
})].every((flag) => flag);
|
|
4201
|
-
const
|
|
4410
|
+
const _vo71 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4202
4411
|
path: _path + ".enabled",
|
|
4203
4412
|
expected: "(boolean | undefined)",
|
|
4204
4413
|
value: input.enabled
|
|
@@ -4211,7 +4420,7 @@ var validateCloudConfig = (() => {
|
|
|
4211
4420
|
expected: "(number | undefined)",
|
|
4212
4421
|
value: input.maxResults
|
|
4213
4422
|
})].every((flag) => flag);
|
|
4214
|
-
const
|
|
4423
|
+
const _vo72 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4215
4424
|
path: _path + ".enabled",
|
|
4216
4425
|
expected: "(boolean | undefined)",
|
|
4217
4426
|
value: input.enabled
|
|
@@ -4220,7 +4429,7 @@ var validateCloudConfig = (() => {
|
|
|
4220
4429
|
expected: "(number | undefined)",
|
|
4221
4430
|
value: input.maxChars
|
|
4222
4431
|
})].every((flag) => flag);
|
|
4223
|
-
const
|
|
4432
|
+
const _vo73 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "merge" === input.mode || "replace" === input.mode || _report(_exceptionable, {
|
|
4224
4433
|
path: _path + ".mode",
|
|
4225
4434
|
expected: '("merge" | "replace" | undefined)',
|
|
4226
4435
|
value: input.mode
|
|
@@ -4228,12 +4437,12 @@ var validateCloudConfig = (() => {
|
|
|
4228
4437
|
path: _path + ".providers",
|
|
4229
4438
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4230
4439
|
value: input.providers
|
|
4231
|
-
})) &&
|
|
4440
|
+
})) && _vo74(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4232
4441
|
path: _path + ".providers",
|
|
4233
4442
|
expected: "(Record<string, OpenClawProviderConfig> | undefined)",
|
|
4234
4443
|
value: input.providers
|
|
4235
4444
|
})].every((flag) => flag);
|
|
4236
|
-
const
|
|
4445
|
+
const _vo74 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4237
4446
|
const value = input[key];
|
|
4238
4447
|
if (void 0 === value)
|
|
4239
4448
|
return true;
|
|
@@ -4241,13 +4450,13 @@ var validateCloudConfig = (() => {
|
|
|
4241
4450
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4242
4451
|
expected: "OpenClawProviderConfig",
|
|
4243
4452
|
value
|
|
4244
|
-
})) &&
|
|
4453
|
+
})) && _vo16(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4245
4454
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4246
4455
|
expected: "OpenClawProviderConfig",
|
|
4247
4456
|
value
|
|
4248
4457
|
});
|
|
4249
4458
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4250
|
-
const
|
|
4459
|
+
const _vo75 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4251
4460
|
path: _path + ".enabled",
|
|
4252
4461
|
expected: "(boolean | undefined)",
|
|
4253
4462
|
value: input.enabled
|
|
@@ -4255,8 +4464,8 @@ var validateCloudConfig = (() => {
|
|
|
4255
4464
|
path: _path + ".allow",
|
|
4256
4465
|
expected: "(Array<string> | undefined)",
|
|
4257
4466
|
value: input.allow
|
|
4258
|
-
})) && input.allow.map((elem,
|
|
4259
|
-
path: _path + ".allow[" +
|
|
4467
|
+
})) && input.allow.map((elem, _index70) => "string" === typeof elem || _report(_exceptionable, {
|
|
4468
|
+
path: _path + ".allow[" + _index70 + "]",
|
|
4260
4469
|
expected: "string",
|
|
4261
4470
|
value: elem
|
|
4262
4471
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4267,8 +4476,8 @@ var validateCloudConfig = (() => {
|
|
|
4267
4476
|
path: _path + ".deny",
|
|
4268
4477
|
expected: "(Array<string> | undefined)",
|
|
4269
4478
|
value: input.deny
|
|
4270
|
-
})) && input.deny.map((elem,
|
|
4271
|
-
path: _path + ".deny[" +
|
|
4479
|
+
})) && input.deny.map((elem, _index71) => "string" === typeof elem || _report(_exceptionable, {
|
|
4480
|
+
path: _path + ".deny[" + _index71 + "]",
|
|
4272
4481
|
expected: "string",
|
|
4273
4482
|
value: elem
|
|
4274
4483
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4279,7 +4488,7 @@ var validateCloudConfig = (() => {
|
|
|
4279
4488
|
path: _path + ".load",
|
|
4280
4489
|
expected: "(__type.o43 | undefined)",
|
|
4281
4490
|
value: input.load
|
|
4282
|
-
})) &&
|
|
4491
|
+
})) && _vo76(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4283
4492
|
path: _path + ".load",
|
|
4284
4493
|
expected: "(__type.o43 | undefined)",
|
|
4285
4494
|
value: input.load
|
|
@@ -4287,17 +4496,17 @@ var validateCloudConfig = (() => {
|
|
|
4287
4496
|
path: _path + ".entries",
|
|
4288
4497
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4289
4498
|
value: input.entries
|
|
4290
|
-
})) &&
|
|
4499
|
+
})) && _vo77(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4291
4500
|
path: _path + ".entries",
|
|
4292
4501
|
expected: "(Record<string, __type>.o3 | undefined)",
|
|
4293
4502
|
value: input.entries
|
|
4294
4503
|
})].every((flag) => flag);
|
|
4295
|
-
const
|
|
4504
|
+
const _vo76 = (input, _path, _exceptionable = true) => [void 0 === input.paths || (Array.isArray(input.paths) || _report(_exceptionable, {
|
|
4296
4505
|
path: _path + ".paths",
|
|
4297
4506
|
expected: "(Array<string> | undefined)",
|
|
4298
4507
|
value: input.paths
|
|
4299
|
-
})) && input.paths.map((elem,
|
|
4300
|
-
path: _path + ".paths[" +
|
|
4508
|
+
})) && input.paths.map((elem, _index72) => "string" === typeof elem || _report(_exceptionable, {
|
|
4509
|
+
path: _path + ".paths[" + _index72 + "]",
|
|
4301
4510
|
expected: "string",
|
|
4302
4511
|
value: elem
|
|
4303
4512
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4305,7 +4514,7 @@ var validateCloudConfig = (() => {
|
|
|
4305
4514
|
expected: "(Array<string> | undefined)",
|
|
4306
4515
|
value: input.paths
|
|
4307
4516
|
})].every((flag) => flag);
|
|
4308
|
-
const
|
|
4517
|
+
const _vo77 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4309
4518
|
const value = input[key];
|
|
4310
4519
|
if (void 0 === value)
|
|
4311
4520
|
return true;
|
|
@@ -4313,13 +4522,13 @@ var validateCloudConfig = (() => {
|
|
|
4313
4522
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4314
4523
|
expected: "__type.o44",
|
|
4315
4524
|
value
|
|
4316
|
-
})) &&
|
|
4525
|
+
})) && _vo78(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4317
4526
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4318
4527
|
expected: "__type.o44",
|
|
4319
4528
|
value
|
|
4320
4529
|
});
|
|
4321
4530
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4322
|
-
const
|
|
4531
|
+
const _vo78 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4323
4532
|
path: _path + ".enabled",
|
|
4324
4533
|
expected: "(boolean | undefined)",
|
|
4325
4534
|
value: input.enabled
|
|
@@ -4327,7 +4536,7 @@ var validateCloudConfig = (() => {
|
|
|
4327
4536
|
path: _path + ".config",
|
|
4328
4537
|
expected: "(Record<string, unknown> | undefined)",
|
|
4329
4538
|
value: input.config
|
|
4330
|
-
})) &&
|
|
4539
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4331
4540
|
path: _path + ".config",
|
|
4332
4541
|
expected: "(Record<string, unknown> | undefined)",
|
|
4333
4542
|
value: input.config
|
|
@@ -4335,22 +4544,22 @@ var validateCloudConfig = (() => {
|
|
|
4335
4544
|
path: _path + ".hooks",
|
|
4336
4545
|
expected: "(__type.o45 | undefined)",
|
|
4337
4546
|
value: input.hooks
|
|
4338
|
-
})) &&
|
|
4547
|
+
})) && _vo79(input.hooks, _path + ".hooks", _exceptionable) || _report(_exceptionable, {
|
|
4339
4548
|
path: _path + ".hooks",
|
|
4340
4549
|
expected: "(__type.o45 | undefined)",
|
|
4341
4550
|
value: input.hooks
|
|
4342
4551
|
})].every((flag) => flag);
|
|
4343
|
-
const
|
|
4552
|
+
const _vo79 = (input, _path, _exceptionable = true) => [void 0 === input.allowPromptInjection || "boolean" === typeof input.allowPromptInjection || _report(_exceptionable, {
|
|
4344
4553
|
path: _path + ".allowPromptInjection",
|
|
4345
4554
|
expected: "(boolean | undefined)",
|
|
4346
4555
|
value: input.allowPromptInjection
|
|
4347
4556
|
})].every((flag) => flag);
|
|
4348
|
-
const
|
|
4557
|
+
const _vo80 = (input, _path, _exceptionable = true) => [void 0 === input.allowBundled || (Array.isArray(input.allowBundled) || _report(_exceptionable, {
|
|
4349
4558
|
path: _path + ".allowBundled",
|
|
4350
4559
|
expected: "(Array<string> | undefined)",
|
|
4351
4560
|
value: input.allowBundled
|
|
4352
|
-
})) && input.allowBundled.map((elem,
|
|
4353
|
-
path: _path + ".allowBundled[" +
|
|
4561
|
+
})) && input.allowBundled.map((elem, _index73) => "string" === typeof elem || _report(_exceptionable, {
|
|
4562
|
+
path: _path + ".allowBundled[" + _index73 + "]",
|
|
4354
4563
|
expected: "string",
|
|
4355
4564
|
value: elem
|
|
4356
4565
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4361,7 +4570,7 @@ var validateCloudConfig = (() => {
|
|
|
4361
4570
|
path: _path + ".load",
|
|
4362
4571
|
expected: "(__type.o46 | undefined)",
|
|
4363
4572
|
value: input.load
|
|
4364
|
-
})) &&
|
|
4573
|
+
})) && _vo81(input.load, _path + ".load", _exceptionable) || _report(_exceptionable, {
|
|
4365
4574
|
path: _path + ".load",
|
|
4366
4575
|
expected: "(__type.o46 | undefined)",
|
|
4367
4576
|
value: input.load
|
|
@@ -4369,7 +4578,7 @@ var validateCloudConfig = (() => {
|
|
|
4369
4578
|
path: _path + ".install",
|
|
4370
4579
|
expected: "(__type.o47 | undefined)",
|
|
4371
4580
|
value: input.install
|
|
4372
|
-
})) &&
|
|
4581
|
+
})) && _vo82(input.install, _path + ".install", _exceptionable) || _report(_exceptionable, {
|
|
4373
4582
|
path: _path + ".install",
|
|
4374
4583
|
expected: "(__type.o47 | undefined)",
|
|
4375
4584
|
value: input.install
|
|
@@ -4377,17 +4586,17 @@ var validateCloudConfig = (() => {
|
|
|
4377
4586
|
path: _path + ".entries",
|
|
4378
4587
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4379
4588
|
value: input.entries
|
|
4380
|
-
})) &&
|
|
4589
|
+
})) && _vo83(input.entries, _path + ".entries", _exceptionable) || _report(_exceptionable, {
|
|
4381
4590
|
path: _path + ".entries",
|
|
4382
4591
|
expected: "(Record<string, __type>.o4 | undefined)",
|
|
4383
4592
|
value: input.entries
|
|
4384
4593
|
})].every((flag) => flag);
|
|
4385
|
-
const
|
|
4594
|
+
const _vo81 = (input, _path, _exceptionable = true) => [void 0 === input.extraDirs || (Array.isArray(input.extraDirs) || _report(_exceptionable, {
|
|
4386
4595
|
path: _path + ".extraDirs",
|
|
4387
4596
|
expected: "(Array<string> | undefined)",
|
|
4388
4597
|
value: input.extraDirs
|
|
4389
|
-
})) && input.extraDirs.map((elem,
|
|
4390
|
-
path: _path + ".extraDirs[" +
|
|
4598
|
+
})) && input.extraDirs.map((elem, _index74) => "string" === typeof elem || _report(_exceptionable, {
|
|
4599
|
+
path: _path + ".extraDirs[" + _index74 + "]",
|
|
4391
4600
|
expected: "string",
|
|
4392
4601
|
value: elem
|
|
4393
4602
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4395,7 +4604,7 @@ var validateCloudConfig = (() => {
|
|
|
4395
4604
|
expected: "(Array<string> | undefined)",
|
|
4396
4605
|
value: input.extraDirs
|
|
4397
4606
|
})].every((flag) => flag);
|
|
4398
|
-
const
|
|
4607
|
+
const _vo82 = (input, _path, _exceptionable = true) => [void 0 === input.preferBrew || "boolean" === typeof input.preferBrew || _report(_exceptionable, {
|
|
4399
4608
|
path: _path + ".preferBrew",
|
|
4400
4609
|
expected: "(boolean | undefined)",
|
|
4401
4610
|
value: input.preferBrew
|
|
@@ -4404,7 +4613,7 @@ var validateCloudConfig = (() => {
|
|
|
4404
4613
|
expected: '("npm" | "pnpm" | "yarn" | undefined)',
|
|
4405
4614
|
value: input.nodeManager
|
|
4406
4615
|
})].every((flag) => flag);
|
|
4407
|
-
const
|
|
4616
|
+
const _vo83 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4408
4617
|
const value = input[key];
|
|
4409
4618
|
if (void 0 === value)
|
|
4410
4619
|
return true;
|
|
@@ -4412,13 +4621,13 @@ var validateCloudConfig = (() => {
|
|
|
4412
4621
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4413
4622
|
expected: "__type.o48",
|
|
4414
4623
|
value
|
|
4415
|
-
})) &&
|
|
4624
|
+
})) && _vo84(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4416
4625
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4417
4626
|
expected: "__type.o48",
|
|
4418
4627
|
value
|
|
4419
4628
|
});
|
|
4420
4629
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4421
|
-
const
|
|
4630
|
+
const _vo84 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4422
4631
|
path: _path + ".enabled",
|
|
4423
4632
|
expected: "(boolean | undefined)",
|
|
4424
4633
|
value: input.enabled
|
|
@@ -4438,12 +4647,12 @@ var validateCloudConfig = (() => {
|
|
|
4438
4647
|
path: _path + ".config",
|
|
4439
4648
|
expected: "(Record<string, unknown> | undefined)",
|
|
4440
4649
|
value: input.config
|
|
4441
|
-
})) &&
|
|
4650
|
+
})) && _vo5(input.config, _path + ".config", _exceptionable) || _report(_exceptionable, {
|
|
4442
4651
|
path: _path + ".config",
|
|
4443
4652
|
expected: "(Record<string, unknown> | undefined)",
|
|
4444
4653
|
value: input.config
|
|
4445
4654
|
})].every((flag) => flag);
|
|
4446
|
-
const
|
|
4655
|
+
const _vo85 = (input, _path, _exceptionable = true) => [void 0 === input.mode || "local" === input.mode || "remote" === input.mode || _report(_exceptionable, {
|
|
4447
4656
|
path: _path + ".mode",
|
|
4448
4657
|
expected: '("local" | "remote" | undefined)',
|
|
4449
4658
|
value: input.mode
|
|
@@ -4463,7 +4672,7 @@ var validateCloudConfig = (() => {
|
|
|
4463
4672
|
path: _path + ".auth",
|
|
4464
4673
|
expected: "(__type.o49 | undefined)",
|
|
4465
4674
|
value: input.auth
|
|
4466
|
-
})) &&
|
|
4675
|
+
})) && _vo86(input.auth, _path + ".auth", _exceptionable) || _report(_exceptionable, {
|
|
4467
4676
|
path: _path + ".auth",
|
|
4468
4677
|
expected: "(__type.o49 | undefined)",
|
|
4469
4678
|
value: input.auth
|
|
@@ -4471,7 +4680,7 @@ var validateCloudConfig = (() => {
|
|
|
4471
4680
|
path: _path + ".tls",
|
|
4472
4681
|
expected: "(__type.o50 | undefined)",
|
|
4473
4682
|
value: input.tls
|
|
4474
|
-
})) &&
|
|
4683
|
+
})) && _vo87(input.tls, _path + ".tls", _exceptionable) || _report(_exceptionable, {
|
|
4475
4684
|
path: _path + ".tls",
|
|
4476
4685
|
expected: "(__type.o50 | undefined)",
|
|
4477
4686
|
value: input.tls
|
|
@@ -4479,12 +4688,12 @@ var validateCloudConfig = (() => {
|
|
|
4479
4688
|
path: _path + ".reload",
|
|
4480
4689
|
expected: "(__type.o51 | undefined)",
|
|
4481
4690
|
value: input.reload
|
|
4482
|
-
})) &&
|
|
4691
|
+
})) && _vo88(input.reload, _path + ".reload", _exceptionable) || _report(_exceptionable, {
|
|
4483
4692
|
path: _path + ".reload",
|
|
4484
4693
|
expected: "(__type.o51 | undefined)",
|
|
4485
4694
|
value: input.reload
|
|
4486
4695
|
})].every((flag) => flag);
|
|
4487
|
-
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, {
|
|
4488
4697
|
path: _path + ".mode",
|
|
4489
4698
|
expected: '("none" | "password" | "token" | "trusted-proxy" | undefined)',
|
|
4490
4699
|
value: input.mode
|
|
@@ -4501,7 +4710,7 @@ var validateCloudConfig = (() => {
|
|
|
4501
4710
|
expected: "(boolean | undefined)",
|
|
4502
4711
|
value: input.allowTailscale
|
|
4503
4712
|
})].every((flag) => flag);
|
|
4504
|
-
const
|
|
4713
|
+
const _vo87 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4505
4714
|
path: _path + ".enabled",
|
|
4506
4715
|
expected: "(boolean | undefined)",
|
|
4507
4716
|
value: input.enabled
|
|
@@ -4514,7 +4723,7 @@ var validateCloudConfig = (() => {
|
|
|
4514
4723
|
expected: "(string | undefined)",
|
|
4515
4724
|
value: input.keyPath
|
|
4516
4725
|
})].every((flag) => flag);
|
|
4517
|
-
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, {
|
|
4518
4727
|
path: _path + ".mode",
|
|
4519
4728
|
expected: '("hot" | "hybrid" | "off" | "restart" | undefined)',
|
|
4520
4729
|
value: input.mode
|
|
@@ -4523,7 +4732,7 @@ var validateCloudConfig = (() => {
|
|
|
4523
4732
|
expected: "(number | undefined)",
|
|
4524
4733
|
value: input.debounceMs
|
|
4525
4734
|
})].every((flag) => flag);
|
|
4526
|
-
const
|
|
4735
|
+
const _vo89 = (input, _path, _exceptionable = true) => [void 0 === input.level || "string" === typeof input.level || _report(_exceptionable, {
|
|
4527
4736
|
path: _path + ".level",
|
|
4528
4737
|
expected: "(string | undefined)",
|
|
4529
4738
|
value: input.level
|
|
@@ -4544,7 +4753,7 @@ var validateCloudConfig = (() => {
|
|
|
4544
4753
|
expected: '("off" | "tools" | undefined)',
|
|
4545
4754
|
value: input.redactSensitive
|
|
4546
4755
|
})].every((flag) => flag);
|
|
4547
|
-
const
|
|
4756
|
+
const _vo90 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4548
4757
|
const value = input[key];
|
|
4549
4758
|
if (void 0 === value)
|
|
4550
4759
|
return true;
|
|
@@ -4552,17 +4761,17 @@ var validateCloudConfig = (() => {
|
|
|
4552
4761
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4553
4762
|
expected: "VaultConfig",
|
|
4554
4763
|
value
|
|
4555
|
-
})) &&
|
|
4764
|
+
})) && _vo91(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4556
4765
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4557
4766
|
expected: "VaultConfig",
|
|
4558
4767
|
value
|
|
4559
4768
|
});
|
|
4560
4769
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4561
|
-
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, {
|
|
4562
4771
|
path: _path + ".providers",
|
|
4563
4772
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4564
4773
|
value: input.providers
|
|
4565
|
-
})) &&
|
|
4774
|
+
})) && _vo92(input.providers, _path + ".providers", _exceptionable) || _report(_exceptionable, {
|
|
4566
4775
|
path: _path + ".providers",
|
|
4567
4776
|
expected: "(Record<string, VaultSecretSource> | undefined)",
|
|
4568
4777
|
value: input.providers
|
|
@@ -4575,7 +4784,7 @@ var validateCloudConfig = (() => {
|
|
|
4575
4784
|
expected: "(Record<string, string> | undefined)",
|
|
4576
4785
|
value: input.secrets
|
|
4577
4786
|
})].every((flag) => flag);
|
|
4578
|
-
const
|
|
4787
|
+
const _vo92 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
4579
4788
|
const value = input[key];
|
|
4580
4789
|
if (void 0 === value)
|
|
4581
4790
|
return true;
|
|
@@ -4583,18 +4792,18 @@ var validateCloudConfig = (() => {
|
|
|
4583
4792
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4584
4793
|
expected: "VaultSecretSource",
|
|
4585
4794
|
value
|
|
4586
|
-
})) &&
|
|
4795
|
+
})) && _vo93(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
4587
4796
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
4588
4797
|
expected: "VaultSecretSource",
|
|
4589
4798
|
value
|
|
4590
4799
|
});
|
|
4591
4800
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4592
|
-
const
|
|
4801
|
+
const _vo93 = (input, _path, _exceptionable = true) => [void 0 === input.apiKey || "string" === typeof input.apiKey || _report(_exceptionable, {
|
|
4593
4802
|
path: _path + ".apiKey",
|
|
4594
4803
|
expected: "(string | undefined)",
|
|
4595
4804
|
value: input.apiKey
|
|
4596
4805
|
})].every((flag) => flag);
|
|
4597
|
-
const
|
|
4806
|
+
const _vo94 = (input, _path, _exceptionable = true) => [void 0 === input.namespace || "string" === typeof input.namespace || _report(_exceptionable, {
|
|
4598
4807
|
path: _path + ".namespace",
|
|
4599
4808
|
expected: "(string | undefined)",
|
|
4600
4809
|
value: input.namespace
|
|
@@ -4602,24 +4811,36 @@ var validateCloudConfig = (() => {
|
|
|
4602
4811
|
path: _path + ".backend",
|
|
4603
4812
|
expected: '("agent-sandbox" | "deployment" | undefined)',
|
|
4604
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
|
|
4605
4818
|
}), void 0 === input.sandbox || ("object" === typeof input.sandbox && null !== input.sandbox && false === Array.isArray(input.sandbox) || _report(_exceptionable, {
|
|
4606
4819
|
path: _path + ".sandbox",
|
|
4607
4820
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4608
4821
|
value: input.sandbox
|
|
4609
|
-
})) &&
|
|
4822
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4610
4823
|
path: _path + ".sandbox",
|
|
4611
4824
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4612
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
|
|
4613
4834
|
}), (Array.isArray(input.agents) || _report(_exceptionable, {
|
|
4614
4835
|
path: _path + ".agents",
|
|
4615
4836
|
expected: "Array<AgentDeployment>",
|
|
4616
4837
|
value: input.agents
|
|
4617
|
-
})) && input.agents.map((elem,
|
|
4618
|
-
path: _path + ".agents[" +
|
|
4838
|
+
})) && input.agents.map((elem, _index75) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
4839
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4619
4840
|
expected: "AgentDeployment",
|
|
4620
4841
|
value: elem
|
|
4621
|
-
})) &&
|
|
4622
|
-
path: _path + ".agents[" +
|
|
4842
|
+
})) && _vo101(elem, _path + ".agents[" + _index75 + "]", _exceptionable) || _report(_exceptionable, {
|
|
4843
|
+
path: _path + ".agents[" + _index75 + "]",
|
|
4623
4844
|
expected: "AgentDeployment",
|
|
4624
4845
|
value: elem
|
|
4625
4846
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4627,7 +4848,7 @@ var validateCloudConfig = (() => {
|
|
|
4627
4848
|
expected: "Array<AgentDeployment>",
|
|
4628
4849
|
value: input.agents
|
|
4629
4850
|
})].every((flag) => flag);
|
|
4630
|
-
const
|
|
4851
|
+
const _vo95 = (input, _path, _exceptionable = true) => [void 0 === input.runtimeClassName || "string" === typeof input.runtimeClassName || _report(_exceptionable, {
|
|
4631
4852
|
path: _path + ".runtimeClassName",
|
|
4632
4853
|
expected: "(string | undefined)",
|
|
4633
4854
|
value: input.runtimeClassName
|
|
@@ -4635,7 +4856,7 @@ var validateCloudConfig = (() => {
|
|
|
4635
4856
|
path: _path + ".state",
|
|
4636
4857
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4637
4858
|
value: input.state
|
|
4638
|
-
})) &&
|
|
4859
|
+
})) && _vo96(input.state, _path + ".state", _exceptionable) || _report(_exceptionable, {
|
|
4639
4860
|
path: _path + ".state",
|
|
4640
4861
|
expected: "(AgentSandboxStateConfig | undefined)",
|
|
4641
4862
|
value: input.state
|
|
@@ -4643,7 +4864,7 @@ var validateCloudConfig = (() => {
|
|
|
4643
4864
|
path: _path + ".lifecycle",
|
|
4644
4865
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4645
4866
|
value: input.lifecycle
|
|
4646
|
-
})) &&
|
|
4867
|
+
})) && _vo97(input.lifecycle, _path + ".lifecycle", _exceptionable) || _report(_exceptionable, {
|
|
4647
4868
|
path: _path + ".lifecycle",
|
|
4648
4869
|
expected: "(AgentSandboxLifecycleConfig | undefined)",
|
|
4649
4870
|
value: input.lifecycle
|
|
@@ -4651,7 +4872,7 @@ var validateCloudConfig = (() => {
|
|
|
4651
4872
|
path: _path + ".backup",
|
|
4652
4873
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4653
4874
|
value: input.backup
|
|
4654
|
-
})) &&
|
|
4875
|
+
})) && _vo98(input.backup, _path + ".backup", _exceptionable) || _report(_exceptionable, {
|
|
4655
4876
|
path: _path + ".backup",
|
|
4656
4877
|
expected: "(AgentSandboxBackupConfig | undefined)",
|
|
4657
4878
|
value: input.backup
|
|
@@ -4659,12 +4880,12 @@ var validateCloudConfig = (() => {
|
|
|
4659
4880
|
path: _path + ".warmPool",
|
|
4660
4881
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4661
4882
|
value: input.warmPool
|
|
4662
|
-
})) &&
|
|
4883
|
+
})) && _vo99(input.warmPool, _path + ".warmPool", _exceptionable) || _report(_exceptionable, {
|
|
4663
4884
|
path: _path + ".warmPool",
|
|
4664
4885
|
expected: "(AgentSandboxWarmPoolConfig | undefined)",
|
|
4665
4886
|
value: input.warmPool
|
|
4666
4887
|
})].every((flag) => flag);
|
|
4667
|
-
const
|
|
4888
|
+
const _vo96 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4668
4889
|
path: _path + ".enabled",
|
|
4669
4890
|
expected: "(boolean | undefined)",
|
|
4670
4891
|
value: input.enabled
|
|
@@ -4681,7 +4902,7 @@ var validateCloudConfig = (() => {
|
|
|
4681
4902
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
4682
4903
|
value: input.accessMode
|
|
4683
4904
|
})].every((flag) => flag);
|
|
4684
|
-
const
|
|
4905
|
+
const _vo97 = (input, _path, _exceptionable = true) => [void 0 === input.autoPause || "boolean" === typeof input.autoPause || _report(_exceptionable, {
|
|
4685
4906
|
path: _path + ".autoPause",
|
|
4686
4907
|
expected: "(boolean | undefined)",
|
|
4687
4908
|
value: input.autoPause
|
|
@@ -4702,7 +4923,7 @@ var validateCloudConfig = (() => {
|
|
|
4702
4923
|
expected: '("Delete" | "Retain" | undefined)',
|
|
4703
4924
|
value: input.shutdownPolicy
|
|
4704
4925
|
})].every((flag) => flag);
|
|
4705
|
-
const
|
|
4926
|
+
const _vo98 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4706
4927
|
path: _path + ".enabled",
|
|
4707
4928
|
expected: "(boolean | undefined)",
|
|
4708
4929
|
value: input.enabled
|
|
@@ -4723,7 +4944,7 @@ var validateCloudConfig = (() => {
|
|
|
4723
4944
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
4724
4945
|
value: input.retention
|
|
4725
4946
|
})].every((flag) => flag);
|
|
4726
|
-
const
|
|
4947
|
+
const _vo99 = (input, _path, _exceptionable = true) => [void 0 === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
4727
4948
|
path: _path + ".enabled",
|
|
4728
4949
|
expected: "(boolean | undefined)",
|
|
4729
4950
|
value: input.enabled
|
|
@@ -4740,7 +4961,40 @@ var validateCloudConfig = (() => {
|
|
|
4740
4961
|
expected: '("OnReplenish" | "Recreate" | undefined)',
|
|
4741
4962
|
value: input.updateStrategy
|
|
4742
4963
|
})].every((flag) => flag);
|
|
4743
|
-
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, {
|
|
4744
4998
|
path: _path + ".id",
|
|
4745
4999
|
expected: "string",
|
|
4746
5000
|
value: input.id
|
|
@@ -4768,7 +5022,7 @@ var validateCloudConfig = (() => {
|
|
|
4768
5022
|
path: _path + ".configuration",
|
|
4769
5023
|
expected: "AgentConfiguration",
|
|
4770
5024
|
value: input.configuration
|
|
4771
|
-
})) &&
|
|
5025
|
+
})) && _vo102(input.configuration, _path + ".configuration", _exceptionable) || _report(_exceptionable, {
|
|
4772
5026
|
path: _path + ".configuration",
|
|
4773
5027
|
expected: "AgentConfiguration",
|
|
4774
5028
|
value: input.configuration
|
|
@@ -4776,7 +5030,7 @@ var validateCloudConfig = (() => {
|
|
|
4776
5030
|
path: _path + ".resources",
|
|
4777
5031
|
expected: "(__type.o52 | undefined)",
|
|
4778
5032
|
value: input.resources
|
|
4779
|
-
})) &&
|
|
5033
|
+
})) && _vo103(input.resources, _path + ".resources", _exceptionable) || _report(_exceptionable, {
|
|
4780
5034
|
path: _path + ".resources",
|
|
4781
5035
|
expected: "(__type.o52 | undefined)",
|
|
4782
5036
|
value: input.resources
|
|
@@ -4792,7 +5046,7 @@ var validateCloudConfig = (() => {
|
|
|
4792
5046
|
path: _path + ".identity",
|
|
4793
5047
|
expected: "(AgentIdentity | undefined)",
|
|
4794
5048
|
value: input.identity
|
|
4795
|
-
})) &&
|
|
5049
|
+
})) && _vo105(input.identity, _path + ".identity", _exceptionable) || _report(_exceptionable, {
|
|
4796
5050
|
path: _path + ".identity",
|
|
4797
5051
|
expected: "(AgentIdentity | undefined)",
|
|
4798
5052
|
value: input.identity
|
|
@@ -4800,7 +5054,7 @@ var validateCloudConfig = (() => {
|
|
|
4800
5054
|
path: _path + ".model",
|
|
4801
5055
|
expected: "(AgentModel | undefined)",
|
|
4802
5056
|
value: input.model
|
|
4803
|
-
})) &&
|
|
5057
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4804
5058
|
path: _path + ".model",
|
|
4805
5059
|
expected: "(AgentModel | undefined)",
|
|
4806
5060
|
value: input.model
|
|
@@ -4808,7 +5062,7 @@ var validateCloudConfig = (() => {
|
|
|
4808
5062
|
path: _path + ".compliance",
|
|
4809
5063
|
expected: "(AgentCompliance | undefined)",
|
|
4810
5064
|
value: input.compliance
|
|
4811
|
-
})) &&
|
|
5065
|
+
})) && _vo9(input.compliance, _path + ".compliance", _exceptionable) || _report(_exceptionable, {
|
|
4812
5066
|
path: _path + ".compliance",
|
|
4813
5067
|
expected: "(AgentCompliance | undefined)",
|
|
4814
5068
|
value: input.compliance
|
|
@@ -4816,12 +5070,12 @@ var validateCloudConfig = (() => {
|
|
|
4816
5070
|
path: _path + ".workflows",
|
|
4817
5071
|
expected: "(Array<AgentWorkflowDef> | undefined)",
|
|
4818
5072
|
value: input.workflows
|
|
4819
|
-
})) && input.workflows.map((elem,
|
|
4820
|
-
path: _path + ".workflows[" +
|
|
5073
|
+
})) && input.workflows.map((elem, _index77) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5074
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4821
5075
|
expected: "AgentWorkflowDef",
|
|
4822
5076
|
value: elem
|
|
4823
|
-
})) &&
|
|
4824
|
-
path: _path + ".workflows[" +
|
|
5077
|
+
})) && _vo106(elem, _path + ".workflows[" + _index77 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5078
|
+
path: _path + ".workflows[" + _index77 + "]",
|
|
4825
5079
|
expected: "AgentWorkflowDef",
|
|
4826
5080
|
value: elem
|
|
4827
5081
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4832,12 +5086,12 @@ var validateCloudConfig = (() => {
|
|
|
4832
5086
|
path: _path + ".use",
|
|
4833
5087
|
expected: "(Array<UseEntry> | undefined)",
|
|
4834
5088
|
value: input.use
|
|
4835
|
-
})) && input.use.map((elem,
|
|
4836
|
-
path: _path + ".use[" +
|
|
5089
|
+
})) && input.use.map((elem, _index78) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5090
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4837
5091
|
expected: "UseEntry",
|
|
4838
5092
|
value: elem
|
|
4839
|
-
})) &&
|
|
4840
|
-
path: _path + ".use[" +
|
|
5093
|
+
})) && _vo10(elem, _path + ".use[" + _index78 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5094
|
+
path: _path + ".use[" + _index78 + "]",
|
|
4841
5095
|
expected: "UseEntry",
|
|
4842
5096
|
value: elem
|
|
4843
5097
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4852,7 +5106,7 @@ var validateCloudConfig = (() => {
|
|
|
4852
5106
|
path: _path + ".source",
|
|
4853
5107
|
expected: "(AgentSource | undefined)",
|
|
4854
5108
|
value: input.source
|
|
4855
|
-
})) &&
|
|
5109
|
+
})) && _vo110(input.source, _path + ".source", _exceptionable) || _report(_exceptionable, {
|
|
4856
5110
|
path: _path + ".source",
|
|
4857
5111
|
expected: "(AgentSource | undefined)",
|
|
4858
5112
|
value: input.source
|
|
@@ -4864,7 +5118,7 @@ var validateCloudConfig = (() => {
|
|
|
4864
5118
|
path: _path + ".permissions",
|
|
4865
5119
|
expected: "(AgentPermissions | undefined)",
|
|
4866
5120
|
value: input.permissions
|
|
4867
|
-
})) &&
|
|
5121
|
+
})) && _vo112(input.permissions, _path + ".permissions", _exceptionable) || _report(_exceptionable, {
|
|
4868
5122
|
path: _path + ".permissions",
|
|
4869
5123
|
expected: "(AgentPermissions | undefined)",
|
|
4870
5124
|
value: input.permissions
|
|
@@ -4872,7 +5126,7 @@ var validateCloudConfig = (() => {
|
|
|
4872
5126
|
path: _path + ".networking",
|
|
4873
5127
|
expected: "(AgentNetworking | undefined)",
|
|
4874
5128
|
value: input.networking
|
|
4875
|
-
})) &&
|
|
5129
|
+
})) && _vo114(input.networking, _path + ".networking", _exceptionable) || _report(_exceptionable, {
|
|
4876
5130
|
path: _path + ".networking",
|
|
4877
5131
|
expected: "(AgentNetworking | undefined)",
|
|
4878
5132
|
value: input.networking
|
|
@@ -4880,10 +5134,18 @@ var validateCloudConfig = (() => {
|
|
|
4880
5134
|
path: _path + ".sandbox",
|
|
4881
5135
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4882
5136
|
value: input.sandbox
|
|
4883
|
-
})) &&
|
|
5137
|
+
})) && _vo95(input.sandbox, _path + ".sandbox", _exceptionable) || _report(_exceptionable, {
|
|
4884
5138
|
path: _path + ".sandbox",
|
|
4885
5139
|
expected: "(AgentSandboxConfig | undefined)",
|
|
4886
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
|
|
4887
5149
|
}), void 0 === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
4888
5150
|
path: _path + ".version",
|
|
4889
5151
|
expected: "(string | undefined)",
|
|
@@ -4893,7 +5155,7 @@ var validateCloudConfig = (() => {
|
|
|
4893
5155
|
expected: "(string | undefined)",
|
|
4894
5156
|
value: input.changelog
|
|
4895
5157
|
})].every((flag) => flag);
|
|
4896
|
-
const
|
|
5158
|
+
const _vo102 = (input, _path, _exceptionable = true) => [void 0 === input["extends"] || "string" === typeof input["extends"] || _report(_exceptionable, {
|
|
4897
5159
|
path: _path + '["extends"]',
|
|
4898
5160
|
expected: "(string | undefined)",
|
|
4899
5161
|
value: input["extends"]
|
|
@@ -4901,7 +5163,7 @@ var validateCloudConfig = (() => {
|
|
|
4901
5163
|
path: _path + ".model",
|
|
4902
5164
|
expected: "(AgentModel | undefined)",
|
|
4903
5165
|
value: input.model
|
|
4904
|
-
})) &&
|
|
5166
|
+
})) && _vo7(input.model, _path + ".model", _exceptionable) || _report(_exceptionable, {
|
|
4905
5167
|
path: _path + ".model",
|
|
4906
5168
|
expected: "(AgentModel | undefined)",
|
|
4907
5169
|
value: input.model
|
|
@@ -4909,7 +5171,7 @@ var validateCloudConfig = (() => {
|
|
|
4909
5171
|
path: _path + ".openclaw",
|
|
4910
5172
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4911
5173
|
value: input.openclaw
|
|
4912
|
-
})) &&
|
|
5174
|
+
})) && _vo21(input.openclaw, _path + ".openclaw", _exceptionable) || _report(_exceptionable, {
|
|
4913
5175
|
path: _path + ".openclaw",
|
|
4914
5176
|
expected: "(Partial<OpenClawConfig> | undefined)",
|
|
4915
5177
|
value: input.openclaw
|
|
@@ -4921,11 +5183,11 @@ var validateCloudConfig = (() => {
|
|
|
4921
5183
|
return true;
|
|
4922
5184
|
return true;
|
|
4923
5185
|
}).every((flag) => flag)].every((flag) => flag);
|
|
4924
|
-
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, {
|
|
4925
5187
|
path: _path + ".requests",
|
|
4926
5188
|
expected: "(K8sResources | undefined)",
|
|
4927
5189
|
value: input.requests
|
|
4928
|
-
})) &&
|
|
5190
|
+
})) && _vo104(input.requests, _path + ".requests", _exceptionable) || _report(_exceptionable, {
|
|
4929
5191
|
path: _path + ".requests",
|
|
4930
5192
|
expected: "(K8sResources | undefined)",
|
|
4931
5193
|
value: input.requests
|
|
@@ -4933,12 +5195,12 @@ var validateCloudConfig = (() => {
|
|
|
4933
5195
|
path: _path + ".limits",
|
|
4934
5196
|
expected: "(K8sResources | undefined)",
|
|
4935
5197
|
value: input.limits
|
|
4936
|
-
})) &&
|
|
5198
|
+
})) && _vo104(input.limits, _path + ".limits", _exceptionable) || _report(_exceptionable, {
|
|
4937
5199
|
path: _path + ".limits",
|
|
4938
5200
|
expected: "(K8sResources | undefined)",
|
|
4939
5201
|
value: input.limits
|
|
4940
5202
|
})].every((flag) => flag);
|
|
4941
|
-
const
|
|
5203
|
+
const _vo104 = (input, _path, _exceptionable = true) => [void 0 === input.cpu || "string" === typeof input.cpu || _report(_exceptionable, {
|
|
4942
5204
|
path: _path + ".cpu",
|
|
4943
5205
|
expected: "(string | undefined)",
|
|
4944
5206
|
value: input.cpu
|
|
@@ -4947,7 +5209,7 @@ var validateCloudConfig = (() => {
|
|
|
4947
5209
|
expected: "(string | undefined)",
|
|
4948
5210
|
value: input.memory
|
|
4949
5211
|
})].every((flag) => flag);
|
|
4950
|
-
const
|
|
5212
|
+
const _vo105 = (input, _path, _exceptionable = true) => [void 0 === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
|
4951
5213
|
path: _path + ".name",
|
|
4952
5214
|
expected: "(string | undefined)",
|
|
4953
5215
|
value: input.name
|
|
@@ -4964,7 +5226,7 @@ var validateCloudConfig = (() => {
|
|
|
4964
5226
|
expected: "(string | undefined)",
|
|
4965
5227
|
value: input.systemPrompt
|
|
4966
5228
|
})].every((flag) => flag);
|
|
4967
|
-
const
|
|
5229
|
+
const _vo106 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
4968
5230
|
path: _path + ".name",
|
|
4969
5231
|
expected: "string",
|
|
4970
5232
|
value: input.name
|
|
@@ -4976,8 +5238,8 @@ var validateCloudConfig = (() => {
|
|
|
4976
5238
|
path: _path + ".triggers",
|
|
4977
5239
|
expected: "(Array<string> | undefined)",
|
|
4978
5240
|
value: input.triggers
|
|
4979
|
-
})) && input.triggers.map((elem,
|
|
4980
|
-
path: _path + ".triggers[" +
|
|
5241
|
+
})) && input.triggers.map((elem, _index79) => "string" === typeof elem || _report(_exceptionable, {
|
|
5242
|
+
path: _path + ".triggers[" + _index79 + "]",
|
|
4981
5243
|
expected: "string",
|
|
4982
5244
|
value: elem
|
|
4983
5245
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -4992,7 +5254,7 @@ var validateCloudConfig = (() => {
|
|
|
4992
5254
|
path: _path + ".steps",
|
|
4993
5255
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4994
5256
|
value: input.steps
|
|
4995
|
-
})) &&
|
|
5257
|
+
})) && _vo107(input.steps, _path + ".steps", _exceptionable) || _report(_exceptionable, {
|
|
4996
5258
|
path: _path + ".steps",
|
|
4997
5259
|
expected: "Record<string, AgentWorkflowStep>",
|
|
4998
5260
|
value: input.steps
|
|
@@ -5000,12 +5262,12 @@ var validateCloudConfig = (() => {
|
|
|
5000
5262
|
path: _path + ".errorHandling",
|
|
5001
5263
|
expected: "(__type.o53 | undefined)",
|
|
5002
5264
|
value: input.errorHandling
|
|
5003
|
-
})) &&
|
|
5265
|
+
})) && _vo109(input.errorHandling, _path + ".errorHandling", _exceptionable) || _report(_exceptionable, {
|
|
5004
5266
|
path: _path + ".errorHandling",
|
|
5005
5267
|
expected: "(__type.o53 | undefined)",
|
|
5006
5268
|
value: input.errorHandling
|
|
5007
5269
|
})].every((flag) => flag);
|
|
5008
|
-
const
|
|
5270
|
+
const _vo107 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5009
5271
|
const value = input[key];
|
|
5010
5272
|
if (void 0 === value)
|
|
5011
5273
|
return true;
|
|
@@ -5013,13 +5275,13 @@ var validateCloudConfig = (() => {
|
|
|
5013
5275
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5014
5276
|
expected: "AgentWorkflowStep",
|
|
5015
5277
|
value
|
|
5016
|
-
})) &&
|
|
5278
|
+
})) && _vo108(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
|
5017
5279
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5018
5280
|
expected: "AgentWorkflowStep",
|
|
5019
5281
|
value
|
|
5020
5282
|
});
|
|
5021
5283
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5022
|
-
const
|
|
5284
|
+
const _vo108 = (input, _path, _exceptionable = true) => [void 0 === input.skill || "string" === typeof input.skill || _report(_exceptionable, {
|
|
5023
5285
|
path: _path + ".skill",
|
|
5024
5286
|
expected: "(string | undefined)",
|
|
5025
5287
|
value: input.skill
|
|
@@ -5035,8 +5297,8 @@ var validateCloudConfig = (() => {
|
|
|
5035
5297
|
path: _path + ".dependsOn",
|
|
5036
5298
|
expected: "(Array<string> | undefined)",
|
|
5037
5299
|
value: input.dependsOn
|
|
5038
|
-
})) && input.dependsOn.map((elem,
|
|
5039
|
-
path: _path + ".dependsOn[" +
|
|
5300
|
+
})) && input.dependsOn.map((elem, _index80) => "string" === typeof elem || _report(_exceptionable, {
|
|
5301
|
+
path: _path + ".dependsOn[" + _index80 + "]",
|
|
5040
5302
|
expected: "string",
|
|
5041
5303
|
value: elem
|
|
5042
5304
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5059,8 +5321,8 @@ var validateCloudConfig = (() => {
|
|
|
5059
5321
|
path: _path + ".conditions",
|
|
5060
5322
|
expected: "(Array<string> | undefined)",
|
|
5061
5323
|
value: input.conditions
|
|
5062
|
-
})) && input.conditions.map((elem,
|
|
5063
|
-
path: _path + ".conditions[" +
|
|
5324
|
+
})) && input.conditions.map((elem, _index81) => "string" === typeof elem || _report(_exceptionable, {
|
|
5325
|
+
path: _path + ".conditions[" + _index81 + "]",
|
|
5064
5326
|
expected: "string",
|
|
5065
5327
|
value: elem
|
|
5066
5328
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5068,7 +5330,7 @@ var validateCloudConfig = (() => {
|
|
|
5068
5330
|
expected: "(Array<string> | undefined)",
|
|
5069
5331
|
value: input.conditions
|
|
5070
5332
|
})].every((flag) => flag);
|
|
5071
|
-
const
|
|
5333
|
+
const _vo109 = (input, _path, _exceptionable = true) => [void 0 === input.onFailure || "retry" === input.onFailure || "notify" === input.onFailure || "abort" === input.onFailure || _report(_exceptionable, {
|
|
5072
5334
|
path: _path + ".onFailure",
|
|
5073
5335
|
expected: '("abort" | "notify" | "retry" | undefined)',
|
|
5074
5336
|
value: input.onFailure
|
|
@@ -5085,11 +5347,11 @@ var validateCloudConfig = (() => {
|
|
|
5085
5347
|
expected: '((number & Type<"uint32">) | undefined)',
|
|
5086
5348
|
value: input.maxRetries
|
|
5087
5349
|
})].every((flag) => flag);
|
|
5088
|
-
const
|
|
5350
|
+
const _vo110 = (input, _path, _exceptionable = true) => [void 0 === input.git || ("object" === typeof input.git && null !== input.git || _report(_exceptionable, {
|
|
5089
5351
|
path: _path + ".git",
|
|
5090
5352
|
expected: "(GitSource | undefined)",
|
|
5091
5353
|
value: input.git
|
|
5092
|
-
})) &&
|
|
5354
|
+
})) && _vo111(input.git, _path + ".git", _exceptionable) || _report(_exceptionable, {
|
|
5093
5355
|
path: _path + ".git",
|
|
5094
5356
|
expected: "(GitSource | undefined)",
|
|
5095
5357
|
value: input.git
|
|
@@ -5109,8 +5371,8 @@ var validateCloudConfig = (() => {
|
|
|
5109
5371
|
path: _path + ".include",
|
|
5110
5372
|
expected: "(Array<string> | undefined)",
|
|
5111
5373
|
value: input.include
|
|
5112
|
-
})) && input.include.map((elem,
|
|
5113
|
-
path: _path + ".include[" +
|
|
5374
|
+
})) && input.include.map((elem, _index82) => "string" === typeof elem || _report(_exceptionable, {
|
|
5375
|
+
path: _path + ".include[" + _index82 + "]",
|
|
5114
5376
|
expected: "string",
|
|
5115
5377
|
value: elem
|
|
5116
5378
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5126,7 +5388,7 @@ var validateCloudConfig = (() => {
|
|
|
5126
5388
|
expected: "(string | undefined)",
|
|
5127
5389
|
value: input.imageTag
|
|
5128
5390
|
})].every((flag) => flag);
|
|
5129
|
-
const
|
|
5391
|
+
const _vo111 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || _report(_exceptionable, {
|
|
5130
5392
|
path: _path + ".url",
|
|
5131
5393
|
expected: "string",
|
|
5132
5394
|
value: input.url
|
|
@@ -5155,7 +5417,7 @@ var validateCloudConfig = (() => {
|
|
|
5155
5417
|
expected: "(string | undefined)",
|
|
5156
5418
|
value: input.tokenSecret
|
|
5157
5419
|
})].every((flag) => flag);
|
|
5158
|
-
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, {
|
|
5159
5421
|
path: _path + '["default"]',
|
|
5160
5422
|
expected: '("always-allow" | "always-ask" | "approve-reads" | "deny-all")',
|
|
5161
5423
|
value: input["default"]
|
|
@@ -5163,7 +5425,7 @@ var validateCloudConfig = (() => {
|
|
|
5163
5425
|
path: _path + ".tools",
|
|
5164
5426
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5165
5427
|
value: input.tools
|
|
5166
|
-
})) &&
|
|
5428
|
+
})) && _vo113(input.tools, _path + ".tools", _exceptionable) || _report(_exceptionable, {
|
|
5167
5429
|
path: _path + ".tools",
|
|
5168
5430
|
expected: "(Record<string, PermissionLevel> | undefined)",
|
|
5169
5431
|
value: input.tools
|
|
@@ -5172,7 +5434,7 @@ var validateCloudConfig = (() => {
|
|
|
5172
5434
|
expected: '("deny" | "fail" | undefined)',
|
|
5173
5435
|
value: input.nonInteractive
|
|
5174
5436
|
})].every((flag) => flag);
|
|
5175
|
-
const
|
|
5437
|
+
const _vo113 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map((key) => {
|
|
5176
5438
|
const value = input[key];
|
|
5177
5439
|
if (void 0 === value)
|
|
5178
5440
|
return true;
|
|
@@ -5182,7 +5444,7 @@ var validateCloudConfig = (() => {
|
|
|
5182
5444
|
value
|
|
5183
5445
|
});
|
|
5184
5446
|
}).every((flag) => flag)].every((flag) => flag);
|
|
5185
|
-
const
|
|
5447
|
+
const _vo114 = (input, _path, _exceptionable = true) => ["deny-all" === input.type || "unrestricted" === input.type || "limited" === input.type || _report(_exceptionable, {
|
|
5186
5448
|
path: _path + ".type",
|
|
5187
5449
|
expected: '("deny-all" | "limited" | "unrestricted")',
|
|
5188
5450
|
value: input.type
|
|
@@ -5190,8 +5452,8 @@ var validateCloudConfig = (() => {
|
|
|
5190
5452
|
path: _path + ".allowedHosts",
|
|
5191
5453
|
expected: "(Array<string> | undefined)",
|
|
5192
5454
|
value: input.allowedHosts
|
|
5193
|
-
})) && input.allowedHosts.map((elem,
|
|
5194
|
-
path: _path + ".allowedHosts[" +
|
|
5455
|
+
})) && input.allowedHosts.map((elem, _index83) => "string" === typeof elem || _report(_exceptionable, {
|
|
5456
|
+
path: _path + ".allowedHosts[" + _index83 + "]",
|
|
5195
5457
|
expected: "string",
|
|
5196
5458
|
value: elem
|
|
5197
5459
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5207,7 +5469,7 @@ var validateCloudConfig = (() => {
|
|
|
5207
5469
|
expected: "(boolean | undefined)",
|
|
5208
5470
|
value: input.allowPackageManagers
|
|
5209
5471
|
})].every((flag) => flag);
|
|
5210
|
-
const
|
|
5472
|
+
const _vo115 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
5211
5473
|
path: _path + ".enabled",
|
|
5212
5474
|
expected: "boolean",
|
|
5213
5475
|
value: input.enabled
|
|
@@ -5228,7 +5490,7 @@ var validateCloudConfig = (() => {
|
|
|
5228
5490
|
expected: '("ReadOnlyMany" | "ReadWriteMany" | "ReadWriteOnce" | undefined)',
|
|
5229
5491
|
value: input.accessMode
|
|
5230
5492
|
})].every((flag) => flag);
|
|
5231
|
-
const
|
|
5493
|
+
const _vo116 = (input, _path, _exceptionable = true) => [void 0 === input.installDir || "string" === typeof input.installDir || _report(_exceptionable, {
|
|
5232
5494
|
path: _path + ".installDir",
|
|
5233
5495
|
expected: "(string | undefined)",
|
|
5234
5496
|
value: input.installDir
|
|
@@ -5236,12 +5498,12 @@ var validateCloudConfig = (() => {
|
|
|
5236
5498
|
path: _path + ".entries",
|
|
5237
5499
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5238
5500
|
value: input.entries
|
|
5239
|
-
})) && input.entries.map((elem,
|
|
5240
|
-
path: _path + ".entries[" +
|
|
5501
|
+
})) && input.entries.map((elem, _index84) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5502
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5241
5503
|
expected: "CloudSkillEntry",
|
|
5242
5504
|
value: elem
|
|
5243
|
-
})) &&
|
|
5244
|
-
path: _path + ".entries[" +
|
|
5505
|
+
})) && _vo117(elem, _path + ".entries[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
|
|
5506
|
+
path: _path + ".entries[" + _index84 + "]",
|
|
5245
5507
|
expected: "CloudSkillEntry",
|
|
5246
5508
|
value: elem
|
|
5247
5509
|
})).every((flag) => flag) || _report(_exceptionable, {
|
|
@@ -5249,7 +5511,7 @@ var validateCloudConfig = (() => {
|
|
|
5249
5511
|
expected: "(Array<CloudSkillEntry> | undefined)",
|
|
5250
5512
|
value: input.entries
|
|
5251
5513
|
})].every((flag) => flag);
|
|
5252
|
-
const
|
|
5514
|
+
const _vo117 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
5253
5515
|
path: _path + ".name",
|
|
5254
5516
|
expected: "string",
|
|
5255
5517
|
value: input.name
|
|
@@ -5776,6 +6038,7 @@ export {
|
|
|
5776
6038
|
isDeploymentRuntimeContextEmpty,
|
|
5777
6039
|
runtimeContextEnv,
|
|
5778
6040
|
collectPluginBuildEnvVars,
|
|
6041
|
+
collectPluginRuntimeEnvOmitKeys,
|
|
5779
6042
|
collectPluginRuntimeExtensions,
|
|
5780
6043
|
buildOpenClawConfig,
|
|
5781
6044
|
RUNNER_CONFIG_MOUNT_PATH,
|