windmill-cli 1.589.2 → 1.590.0

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.
Files changed (54) hide show
  1. package/esm/deps/jsr.io/@windmill-labs/shared-utils/{1.0.10 → 1.0.11}/lib.es.js +4 -4
  2. package/esm/deps.js +1 -1
  3. package/esm/gen/core/OpenAPI.js +1 -1
  4. package/esm/gen/services.gen.js +149 -27
  5. package/esm/src/commands/app/app_metadata.js +87 -54
  6. package/esm/src/commands/app/apps.js +2 -0
  7. package/esm/src/commands/app/bundle.js +6 -2
  8. package/esm/src/commands/app/dev.js +40 -14
  9. package/esm/src/commands/app/lint.js +159 -0
  10. package/esm/src/commands/app/raw_apps.js +169 -24
  11. package/esm/src/commands/init/init.js +8 -0
  12. package/esm/src/commands/resource-type/resource-type.js +29 -2
  13. package/esm/src/commands/script/script.js +11 -0
  14. package/esm/src/commands/sync/sync.js +49 -17
  15. package/esm/src/main.js +1 -1
  16. package/esm/src/utils/resource_types.js +32 -0
  17. package/esm/src/utils/utils.js +8 -0
  18. package/esm/windmill-utils-internal/src/path-utils/path-assigner.js +78 -0
  19. package/package.json +1 -1
  20. package/types/bootstrap/common.d.ts +12 -0
  21. package/types/bootstrap/common.d.ts.map +1 -1
  22. package/types/deps/jsr.io/@windmill-labs/shared-utils/{1.0.10 → 1.0.11}/lib.es.d.ts.map +1 -1
  23. package/types/deps.d.ts +1 -1
  24. package/types/gen/services.gen.d.ts +74 -16
  25. package/types/gen/services.gen.d.ts.map +1 -1
  26. package/types/gen/types.gen.d.ts +568 -62
  27. package/types/gen/types.gen.d.ts.map +1 -1
  28. package/types/src/commands/app/app_metadata.d.ts +1 -1
  29. package/types/src/commands/app/app_metadata.d.ts.map +1 -1
  30. package/types/src/commands/app/apps.d.ts.map +1 -1
  31. package/types/src/commands/app/bundle.d.ts.map +1 -1
  32. package/types/src/commands/app/dev.d.ts.map +1 -1
  33. package/types/src/commands/app/lint.d.ts +12 -0
  34. package/types/src/commands/app/lint.d.ts.map +1 -0
  35. package/types/src/commands/app/metadata.d.ts +2 -3
  36. package/types/src/commands/app/metadata.d.ts.map +1 -1
  37. package/types/src/commands/app/raw_apps.d.ts +26 -1
  38. package/types/src/commands/app/raw_apps.d.ts.map +1 -1
  39. package/types/src/commands/init/init.d.ts.map +1 -1
  40. package/types/src/commands/resource-type/resource-type.d.ts +3 -1
  41. package/types/src/commands/resource-type/resource-type.d.ts.map +1 -1
  42. package/types/src/commands/script/script.d.ts +5 -0
  43. package/types/src/commands/script/script.d.ts.map +1 -1
  44. package/types/src/commands/sync/sync.d.ts.map +1 -1
  45. package/types/src/main.d.ts +1 -1
  46. package/types/src/utils/resource_types.d.ts +3 -0
  47. package/types/src/utils/resource_types.d.ts.map +1 -0
  48. package/types/src/utils/utils.d.ts +2 -0
  49. package/types/src/utils/utils.d.ts.map +1 -1
  50. package/types/windmill-utils-internal/src/gen/types.gen.d.ts +568 -62
  51. package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
  52. package/types/windmill-utils-internal/src/path-utils/path-assigner.d.ts +22 -0
  53. package/types/windmill-utils-internal/src/path-utils/path-assigner.d.ts.map +1 -1
  54. /package/types/deps/jsr.io/@windmill-labs/shared-utils/{1.0.10 → 1.0.11}/lib.es.d.ts +0 -0
@@ -16,6 +16,19 @@ export declare const LANGUAGE_EXTENSIONS: Record<SupportedLanguage, string>;
16
16
  * @returns File extension string (without the dot)
17
17
  */
18
18
  export declare function getLanguageExtension(language: SupportedLanguage, defaultTs?: "bun" | "deno"): string;
19
+ /**
20
+ * Reverse mapping from file extensions to languages.
21
+ * Used when deriving language from file extension.
22
+ */
23
+ export declare const EXTENSION_TO_LANGUAGE: Record<string, SupportedLanguage>;
24
+ /**
25
+ * Gets the language from a file extension.
26
+ *
27
+ * @param ext - File extension (e.g., "py", "ts", "bun.ts")
28
+ * @param defaultTs - Default TypeScript runtime for plain .ts files
29
+ * @returns The language, or undefined if not recognized
30
+ */
31
+ export declare function getLanguageFromExtension(ext: string, defaultTs?: "bun" | "deno"): SupportedLanguage | undefined;
19
32
  export interface PathAssigner {
20
33
  assignPath(summary: string | undefined, language: SupportedLanguage): [string, string];
21
34
  }
@@ -26,4 +39,13 @@ export interface PathAssigner {
26
39
  * @returns Path assigner function
27
40
  */
28
41
  export declare function newPathAssigner(defaultTs: "bun" | "deno"): PathAssigner;
42
+ /**
43
+ * Creates a new path assigner for raw app runnables.
44
+ * Unlike newPathAssigner, this does NOT add ".inline_script." prefix since
45
+ * everything in raw_app/backend/ is already known to be for inline scripts.
46
+ *
47
+ * @param defaultTs - Default TypeScript runtime ("bun" or "deno")
48
+ * @returns Path assigner function
49
+ */
50
+ export declare function newRawAppPathAssigner(defaultTs: "bun" | "deno"): PathAssigner;
29
51
  //# sourceMappingURL=path-assigner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"path-assigner.d.ts","sourceRoot":"","sources":["../../../../src/windmill-utils-internal/src/path-utils/path-assigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzJ;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAyBjE,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,GAAE,KAAK,GAAG,MAAc,GAChC,MAAM,CAKR;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,YAAY,CA6BvE"}
1
+ {"version":3,"file":"path-assigner.d.ts","sourceRoot":"","sources":["../../../../src/windmill-utils-internal/src/path-utils/path-assigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzJ;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAyBjE,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,GAAE,KAAK,GAAG,MAAc,GAChC,MAAM,CAKR;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAyBnE,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,KAAK,GAAG,MAAc,GAChC,iBAAiB,GAAG,SAAS,CAW/B;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,iBAAiB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,YAAY,CA6BvE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,YAAY,CA6B7E"}