Merge remote-tracking branch 'origin/main' into fork-datatable-schema-export

This commit is contained in:
Diego Imbert
2026-04-01 13:49:37 +02:00
77 changed files with 3348 additions and 338 deletions
+3
View File
@@ -832,6 +832,8 @@ export function filePathExtensionFromContentType(
return ".java";
} else if (language === "ruby") {
return ".rb";
} else if (language === "rlang") {
return ".r";
// for related places search: ADD_NEW_LANG
} else {
throw new Error("Invalid language: " + language);
@@ -863,6 +865,7 @@ export const exts = [
".playbook.yml",
".java",
".rb",
".r",
// for related places search: ADD_NEW_LANG
];
+1
View File
@@ -1306,6 +1306,7 @@ export async function elementsToMap(
"nu",
"java",
"rb",
"r",
// for related places search: ADD_NEW_LANG
].includes(path.split(".").pop() ?? "")
) {
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -78,7 +78,7 @@ export {
token,
};
export const VERSION = "1.670.0";
export const VERSION = "1.671.0";
// Re-exported from constants.ts to maintain backwards compatibility
export { WM_FORK_PREFIX } from "./core/constants.ts";
+1
View File
@@ -300,6 +300,7 @@ export function getTypeStrFromPath(
parsed.ext == ".nu" ||
parsed.ext == ".java" ||
parsed.ext == ".rb" ||
parsed.ext == ".r" ||
// for related places search: ADD_NEW_LANG
(parsed.ext == ".yml" && parsed.name.split(".").pop() == "playbook")
) {
+3
View File
@@ -868,6 +868,9 @@ export async function inferSchema(
} else if (language === "ruby") {
const { parse_ruby } = await loadParser("windmill-parser-wasm-ruby");
inferedSchema = JSON.parse(parse_ruby(content));
} else if (language === "rlang") {
const { parse_r } = await loadParser("windmill-parser-wasm-r");
inferedSchema = JSON.parse(parse_r(content));
// for related places search: ADD_NEW_LANG
} else {
throw new Error("Invalid language: " + language);
+3
View File
@@ -20,6 +20,7 @@ export type ScriptLanguage =
| "nu"
| "ansible"
| "ruby"
| "rlang"
| "java";
// for related places search: ADD_NEW_LANG
@@ -105,6 +106,8 @@ export function inferContentTypeFromFilePath(
return "java";
} else if (contentPath.endsWith(".rb")) {
return "ruby";
} else if (contentPath.endsWith(".r")) {
return "rlang";
// for related places search: ADD_NEW_LANG
} else {
throw new Error(