Merge branch 'develop' into merge/2025-03-24

This commit is contained in:
dakkar 2025-04-28 15:00:00 +01:00
commit 4981e5ba36
18 changed files with 306 additions and 57 deletions

View file

@ -68,7 +68,7 @@ export function createAiScriptEnv(opts: { storageKey: string, token?: string })
}),
'Mk:api': values.FN_NATIVE(async ([ep, param, token]) => {
utils.assertString(ep);
if (ep.value.includes('://')) {
if (ep.value.includes('://') || ep.value.includes('..')) {
throw new errors.AiScriptRuntimeError('invalid endpoint');
}
if (token) {