windmill-cli 1.612.3 → 1.613.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.
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/src/commands/app/lint.js +2 -2
- package/esm/src/commands/instance/instance.js +10 -9
- package/esm/src/main.js +1 -1
- package/package.json +2 -2
- package/types/src/commands/app/lint.d.ts.map +1 -1
- package/types/src/commands/instance/instance.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
package/esm/gen/core/OpenAPI.js
CHANGED
|
@@ -3,11 +3,11 @@ import * as dntShim from "../../../_dnt.shims.js";
|
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
6
|
-
import {
|
|
6
|
+
import { colors, Command, log, yamlParseFile } from "../../../deps.js";
|
|
7
7
|
import { createBundle } from "./bundle.js";
|
|
8
8
|
import { APP_BACKEND_FOLDER } from "./app_metadata.js";
|
|
9
9
|
import { loadRunnablesFromBackend } from "./raw_apps.js";
|
|
10
|
-
import { hasFolderSuffix,
|
|
10
|
+
import { getFolderSuffix, hasFolderSuffix, } from "../../utils/resource_folders.js";
|
|
11
11
|
/**
|
|
12
12
|
* Validates the structure of raw_app.yaml
|
|
13
13
|
*/
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Command, Confirm, path, Select, setClient, Table, yamlParseFile, yamlStringify, } from "../../../deps.js";
|
|
3
3
|
import * as wmill from "../../../gen/services.gen.js";
|
|
4
|
-
import
|
|
4
|
+
import process from "node:process";
|
|
5
|
+
import { colors, Input, log } from "../../../deps.js";
|
|
5
6
|
import { loginInteractive } from "../../core/login.js";
|
|
6
|
-
import { getActiveInstanceFilePath, getInstancesConfigFilePath } from "../../../windmill-utils-internal/src/config/config.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getActiveInstanceFilePath, getInstancesConfigFilePath, } from "../../../windmill-utils-internal/src/config/config.js";
|
|
8
|
+
import { pull, push } from "../sync/sync.js";
|
|
8
9
|
import { showDiff } from "../../types.js";
|
|
9
|
-
import {
|
|
10
|
+
import { pullInstanceGroups, pullInstanceUsers, pushInstanceGroups, pushInstanceUsers, } from "../user/user.js";
|
|
10
11
|
import { add as workspaceSetup, addWorkspace, removeWorkspace, setActiveWorkspace, } from "../workspace/workspace.js";
|
|
11
|
-
import {
|
|
12
|
+
import { pullInstanceConfigs, pullInstanceSettings, pushInstanceConfigs, pushInstanceSettings, } from "../../core/settings.js";
|
|
12
13
|
import { deepEqual } from "../../utils/utils.js";
|
|
13
14
|
import { getActiveWorkspace } from "../workspace/workspace.js";
|
|
14
15
|
export async function allInstances() {
|
|
@@ -369,7 +370,7 @@ async function instancePush(opts) {
|
|
|
369
370
|
throw new Error("Workspace folder not found, are you in the right directory?");
|
|
370
371
|
}
|
|
371
372
|
try {
|
|
372
|
-
const workspaceSettings = (await yamlParseFile("settings.yaml"));
|
|
373
|
+
const workspaceSettings = (await yamlParseFile(path.join(process.cwd(), "settings.yaml")));
|
|
373
374
|
await workspaceSetup({
|
|
374
375
|
token: instance.token,
|
|
375
376
|
workspace: undefined,
|
|
@@ -380,8 +381,8 @@ async function instancePush(opts) {
|
|
|
380
381
|
createUsername: undefined,
|
|
381
382
|
}, localWorkspace.dir, localWorkspace.id, instance.remote);
|
|
382
383
|
}
|
|
383
|
-
catch (
|
|
384
|
-
log.error(
|
|
384
|
+
catch (e) {
|
|
385
|
+
log.error(`Settings file not found in workspace ${localWorkspace.id} or error setting up workspace ${e.message}, skipping`);
|
|
385
386
|
continue;
|
|
386
387
|
}
|
|
387
388
|
await push({
|
package/esm/src/main.js
CHANGED
|
@@ -40,7 +40,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
|
|
|
40
40
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
41
41
|
// }
|
|
42
42
|
// });
|
|
43
|
-
export const VERSION = "1.
|
|
43
|
+
export const VERSION = "1.613.0";
|
|
44
44
|
// Re-exported from constants.ts to maintain backwards compatibility
|
|
45
45
|
export { WM_FORK_PREFIX } from "./core/constants.js";
|
|
46
46
|
const command = new Command()
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/lint.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/lint.ts"],"names":[],"mappings":"AAMA,OAAO,EAAU,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AAgOvE,QAAA,MAAM,OAAO;;;;;;;;mBAIS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/instance/instance.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/instance/instance.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EAQR,MAAM,kBAAkB,CAAC;AAmC1B,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAiBxD;AACD,wBAAsB,WAAW,CAC/B,IAAI,EAAE,EAAE,EACR,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;GA2C1B;AA4BD,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI;KACpC,CAAC,IAAI,CAAC,GAAG,MAAM;CACjB,CAAC;AACF,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,EACrD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,EAC/B,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,EAC7B,MAAM,EAAE,CAAC,EACT,UAAU,EAAE,MAAM,UAwBnB;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,wBAAsB,YAAY,CAChC,IAAI,EAAE,mBAAmB,EACzB,QAAQ,EAAE,OAAO,qBAuElB;AAwXD,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAS9B;AAgBD,QAAA,MAAM,OAAO;;;;;;oBA4GW,CAAC;AAEzB,eAAe,OAAO,CAAC"}
|
package/types/src/main.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
|
|
|
22
22
|
import { pull, push } from "./commands/sync/sync.js";
|
|
23
23
|
import { add as workspaceAdd } from "./commands/workspace/workspace.js";
|
|
24
24
|
export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
25
|
-
export declare const VERSION = "1.
|
|
25
|
+
export declare const VERSION = "1.613.0";
|
|
26
26
|
export { WM_FORK_PREFIX } from "./core/constants.js";
|
|
27
27
|
declare const command: Command<{
|
|
28
28
|
workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
|