windmill-cli 1.530.0 → 1.532.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.
@@ -32,7 +32,7 @@ export const OpenAPI = {
32
32
  PASSWORD: undefined,
33
33
  TOKEN: getEnv("WM_TOKEN"),
34
34
  USERNAME: undefined,
35
- VERSION: '1.530.0',
35
+ VERSION: '1.532.0',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
package/esm/src/main.js CHANGED
@@ -38,7 +38,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
38
38
  // console.error(JSON.stringify(event.error, null, 4));
39
39
  // }
40
40
  // });
41
- export const VERSION = "1.530.0";
41
+ export const VERSION = "1.532.0";
42
42
  const command = new Command()
43
43
  .name("wmill")
44
44
  .action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.530.0",
3
+ "version": "1.532.0",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -80,7 +80,7 @@ export type JavascriptTransform = {
80
80
  expr: string;
81
81
  type: 'javascript';
82
82
  };
83
- export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity;
83
+ export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity | AiAgent;
84
84
  export type RawScript = {
85
85
  input_transforms: {
86
86
  [key: string]: InputTransform;
@@ -153,6 +153,14 @@ export type BranchAll = {
153
153
  type: 'branchall';
154
154
  parallel?: boolean;
155
155
  };
156
+ export type AiAgent = {
157
+ input_transforms: {
158
+ [key: string]: InputTransform;
159
+ };
160
+ tools: Array<FlowModule>;
161
+ type: 'aiagent';
162
+ parallel?: boolean;
163
+ };
156
164
  export type Identity = {
157
165
  type: 'identity';
158
166
  flow?: boolean;
@@ -199,6 +207,15 @@ export type FlowStatusModule = {
199
207
  }>;
200
208
  failed_retries?: Array<(string)>;
201
209
  skipped?: boolean;
210
+ agent_actions?: Array<({
211
+ job_id: string;
212
+ function_name: string;
213
+ type: 'tool_call';
214
+ module_id: string;
215
+ } | {
216
+ type: 'message';
217
+ })>;
218
+ agent_actions_success?: Array<(boolean)>;
202
219
  };
203
220
  export type type = 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
204
221
  export type EndpointTool = {
@@ -408,7 +425,7 @@ export type QueuedJob = {
408
425
  canceled_by?: string;
409
426
  canceled_reason?: string;
410
427
  last_ping?: string;
411
- job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript';
428
+ job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent';
412
429
  schedule_path?: string;
413
430
  /**
414
431
  * The user (u/userfoo) or group (g/groupfoo) whom
@@ -432,7 +449,7 @@ export type QueuedJob = {
432
449
  preprocessed?: boolean;
433
450
  worker?: string;
434
451
  };
435
- export type job_kind = 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript';
452
+ export type job_kind = 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent';
436
453
  export type CompletedJob = {
437
454
  workspace_id?: string;
438
455
  id: string;
@@ -452,7 +469,7 @@ export type CompletedJob = {
452
469
  canceled: boolean;
453
470
  canceled_by?: string;
454
471
  canceled_reason?: string;
455
- job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript';
472
+ job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent';
456
473
  schedule_path?: string;
457
474
  /**
458
475
  * The user (u/userfoo) or group (g/groupfoo) whom