@flowrunner/cli 0.1.4 → 0.1.5-dev.1

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 (48) hide show
  1. package/ai-docs/instructions/service-code-format/08-polling-triggers.md +2 -2
  2. package/dist/cli.js +46 -31
  3. package/dist/cli.js.map +3 -3
  4. package/dist/index.js +14 -7
  5. package/dist/index.js.map +2 -2
  6. package/dist/types/shared/src/constants/docs.d.ts +4 -0
  7. package/dist/types/shared/src/constants/error-codes.d.ts +1 -0
  8. package/dist/types/shared/src/constants/index.d.ts +1 -0
  9. package/dist/types/shared/src/constants/knowledge-base.d.ts +1 -0
  10. package/dist/types/shared/src/constants/notification-types.d.ts +95 -22
  11. package/dist/types/shared/src/constants/shared-extensions.d.ts +9 -0
  12. package/dist/types/shared/src/errors/k8s.d.ts +10 -0
  13. package/dist/types/shared/src/scheme/crm/dto.d.ts +2 -2
  14. package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +20 -29
  15. package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +2 -2
  16. package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +80 -0
  17. package/dist/types/shared/src/scheme/notifications/dto.d.ts +3 -0
  18. package/dist/types/shared/src/scheme/notifications/rest.d.ts +6 -0
  19. package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +20 -20
  20. package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +30 -36
  21. package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +40 -40
  22. package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
  23. package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +15 -24
  24. package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +10 -10
  25. package/dist/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +44 -0
  26. package/dist/types/shared/src/scheme/workspace/dto.d.ts +1 -1
  27. package/package.json +1 -1
  28. package/runtime/index.js +14 -7
  29. package/runtime/index.js.map +2 -2
  30. package/runtime/types/shared/src/constants/docs.d.ts +4 -0
  31. package/runtime/types/shared/src/constants/error-codes.d.ts +1 -0
  32. package/runtime/types/shared/src/constants/index.d.ts +1 -0
  33. package/runtime/types/shared/src/constants/knowledge-base.d.ts +1 -0
  34. package/runtime/types/shared/src/constants/notification-types.d.ts +95 -22
  35. package/runtime/types/shared/src/constants/shared-extensions.d.ts +9 -0
  36. package/runtime/types/shared/src/errors/k8s.d.ts +10 -0
  37. package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +20 -29
  38. package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +2 -2
  39. package/runtime/types/shared/src/scheme/knowledge-base/dto.d.ts +80 -0
  40. package/runtime/types/shared/src/scheme/notifications/dto.d.ts +3 -0
  41. package/runtime/types/shared/src/scheme/notifications/rest.d.ts +6 -0
  42. package/runtime/types/shared/src/scheme/shared-extensions/config.d.ts +20 -20
  43. package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +30 -36
  44. package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +40 -40
  45. package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
  46. package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +15 -24
  47. package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +10 -10
  48. package/runtime/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +44 -0
@@ -58,11 +58,11 @@ export declare const CustomExtensionDTOSchema: z.ZodObject<{
58
58
  shared: z.ZodBoolean;
59
59
  name: z.ZodString;
60
60
  type: z.ZodEnum<{
61
- string: "string";
62
- date: "date";
63
- bool: "bool";
64
- choice: "choice";
65
- text: "text";
61
+ readonly STRING: "string";
62
+ readonly BOOL: "bool";
63
+ readonly DATE: "date";
64
+ readonly CHOICE: "choice";
65
+ readonly TEXT: "text";
66
66
  }>;
67
67
  required: z.ZodBoolean;
68
68
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -161,11 +161,11 @@ export declare const CustomExtensionDeployServiceSchema: z.ZodObject<{
161
161
  shared: z.ZodBoolean;
162
162
  name: z.ZodString;
163
163
  type: z.ZodEnum<{
164
- string: "string";
165
- date: "date";
166
- bool: "bool";
167
- choice: "choice";
168
- text: "text";
164
+ readonly STRING: "string";
165
+ readonly BOOL: "bool";
166
+ readonly DATE: "date";
167
+ readonly CHOICE: "choice";
168
+ readonly TEXT: "text";
169
169
  }>;
170
170
  required: z.ZodBoolean;
171
171
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -228,11 +228,11 @@ export declare const CustomExtensionDeployDefinitionSchema: z.ZodObject<{
228
228
  shared: z.ZodBoolean;
229
229
  name: z.ZodString;
230
230
  type: z.ZodEnum<{
231
- string: "string";
232
- date: "date";
233
- bool: "bool";
234
- choice: "choice";
235
- text: "text";
231
+ readonly STRING: "string";
232
+ readonly BOOL: "bool";
233
+ readonly DATE: "date";
234
+ readonly CHOICE: "choice";
235
+ readonly TEXT: "text";
236
236
  }>;
237
237
  required: z.ZodBoolean;
238
238
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -268,11 +268,11 @@ export declare const CustomExtensionConfigsResponseSchema: z.ZodObject<{
268
268
  shared: z.ZodBoolean;
269
269
  name: z.ZodString;
270
270
  type: z.ZodEnum<{
271
- string: "string";
272
- date: "date";
273
- bool: "bool";
274
- choice: "choice";
275
- text: "text";
271
+ readonly STRING: "string";
272
+ readonly BOOL: "bool";
273
+ readonly DATE: "date";
274
+ readonly CHOICE: "choice";
275
+ readonly TEXT: "text";
276
276
  }>;
277
277
  required: z.ZodBoolean;
278
278
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -296,11 +296,11 @@ export declare const CustomExtensionElementsFullSchema: z.ZodObject<{
296
296
  shared: z.ZodBoolean;
297
297
  name: z.ZodString;
298
298
  type: z.ZodEnum<{
299
- string: "string";
300
- date: "date";
301
- bool: "bool";
302
- choice: "choice";
303
- text: "text";
299
+ readonly STRING: "string";
300
+ readonly BOOL: "bool";
301
+ readonly DATE: "date";
302
+ readonly CHOICE: "choice";
303
+ readonly TEXT: "text";
304
304
  }>;
305
305
  required: z.ZodBoolean;
306
306
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -363,12 +363,9 @@ export declare const CustomExtensionElementsFullSchema: z.ZodObject<{
363
363
  APP: "APP";
364
364
  SHARED: "SHARED";
365
365
  }>;
366
- serviceName: z.ZodString;
367
366
  requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
368
367
  id: z.ZodString;
369
368
  legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
- modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
369
  }, z.core.$strip>>;
373
370
  }, z.core.$strip>>;
374
371
  }, z.core.$strip>;
@@ -390,11 +387,11 @@ export declare const CustomExtensionElementsSchema: z.ZodDiscriminatedUnion<[z.Z
390
387
  shared: z.ZodBoolean;
391
388
  name: z.ZodString;
392
389
  type: z.ZodEnum<{
393
- string: "string";
394
- date: "date";
395
- bool: "bool";
396
- choice: "choice";
397
- text: "text";
390
+ readonly STRING: "string";
391
+ readonly BOOL: "bool";
392
+ readonly DATE: "date";
393
+ readonly CHOICE: "choice";
394
+ readonly TEXT: "text";
398
395
  }>;
399
396
  required: z.ZodBoolean;
400
397
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -457,12 +454,9 @@ export declare const CustomExtensionElementsSchema: z.ZodDiscriminatedUnion<[z.Z
457
454
  APP: "APP";
458
455
  SHARED: "SHARED";
459
456
  }>;
460
- serviceName: z.ZodString;
461
457
  requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
462
458
  id: z.ZodString;
463
459
  legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
- modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
460
  }, z.core.$strip>>;
467
461
  }, z.core.$strip>>;
468
462
  }, z.core.$strip>, z.ZodObject<{
@@ -67,11 +67,11 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
67
67
  shared: z.ZodBoolean;
68
68
  name: z.ZodString;
69
69
  type: z.ZodEnum<{
70
- string: "string";
71
- date: "date";
72
- bool: "bool";
73
- choice: "choice";
74
- text: "text";
70
+ readonly STRING: "string";
71
+ readonly BOOL: "bool";
72
+ readonly DATE: "date";
73
+ readonly CHOICE: "choice";
74
+ readonly TEXT: "text";
75
75
  }>;
76
76
  required: z.ZodBoolean;
77
77
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -83,11 +83,11 @@ export declare const InstalledSharedExtensionDTOSchema: z.ZodObject<{
83
83
  shared: z.ZodBoolean;
84
84
  name: z.ZodString;
85
85
  type: z.ZodEnum<{
86
- string: "string";
87
- date: "date";
88
- bool: "bool";
89
- choice: "choice";
90
- text: "text";
86
+ readonly STRING: "string";
87
+ readonly BOOL: "bool";
88
+ readonly DATE: "date";
89
+ readonly CHOICE: "choice";
90
+ readonly TEXT: "text";
91
91
  }>;
92
92
  required: z.ZodBoolean;
93
93
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -155,11 +155,11 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
155
155
  shared: z.ZodBoolean;
156
156
  name: z.ZodString;
157
157
  type: z.ZodEnum<{
158
- string: "string";
159
- date: "date";
160
- bool: "bool";
161
- choice: "choice";
162
- text: "text";
158
+ readonly STRING: "string";
159
+ readonly BOOL: "bool";
160
+ readonly DATE: "date";
161
+ readonly CHOICE: "choice";
162
+ readonly TEXT: "text";
163
163
  }>;
164
164
  required: z.ZodBoolean;
165
165
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -171,11 +171,11 @@ export declare const MissingFSSharedExtensionDTOSchema: z.ZodObject<{
171
171
  shared: z.ZodBoolean;
172
172
  name: z.ZodString;
173
173
  type: z.ZodEnum<{
174
- string: "string";
175
- date: "date";
176
- bool: "bool";
177
- choice: "choice";
178
- text: "text";
174
+ readonly STRING: "string";
175
+ readonly BOOL: "bool";
176
+ readonly DATE: "date";
177
+ readonly CHOICE: "choice";
178
+ readonly TEXT: "text";
179
179
  }>;
180
180
  required: z.ZodBoolean;
181
181
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -255,11 +255,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
255
255
  shared: z.ZodBoolean;
256
256
  name: z.ZodString;
257
257
  type: z.ZodEnum<{
258
- string: "string";
259
- date: "date";
260
- bool: "bool";
261
- choice: "choice";
262
- text: "text";
258
+ readonly STRING: "string";
259
+ readonly BOOL: "bool";
260
+ readonly DATE: "date";
261
+ readonly CHOICE: "choice";
262
+ readonly TEXT: "text";
263
263
  }>;
264
264
  required: z.ZodBoolean;
265
265
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -271,11 +271,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
271
271
  shared: z.ZodBoolean;
272
272
  name: z.ZodString;
273
273
  type: z.ZodEnum<{
274
- string: "string";
275
- date: "date";
276
- bool: "bool";
277
- choice: "choice";
278
- text: "text";
274
+ readonly STRING: "string";
275
+ readonly BOOL: "bool";
276
+ readonly DATE: "date";
277
+ readonly CHOICE: "choice";
278
+ readonly TEXT: "text";
279
279
  }>;
280
280
  required: z.ZodBoolean;
281
281
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -342,11 +342,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
342
342
  shared: z.ZodBoolean;
343
343
  name: z.ZodString;
344
344
  type: z.ZodEnum<{
345
- string: "string";
346
- date: "date";
347
- bool: "bool";
348
- choice: "choice";
349
- text: "text";
345
+ readonly STRING: "string";
346
+ readonly BOOL: "bool";
347
+ readonly DATE: "date";
348
+ readonly CHOICE: "choice";
349
+ readonly TEXT: "text";
350
350
  }>;
351
351
  required: z.ZodBoolean;
352
352
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -358,11 +358,11 @@ export declare const AnySharedExtensionVersionSchema: z.ZodDiscriminatedUnion<[z
358
358
  shared: z.ZodBoolean;
359
359
  name: z.ZodString;
360
360
  type: z.ZodEnum<{
361
- string: "string";
362
- date: "date";
363
- bool: "bool";
364
- choice: "choice";
365
- text: "text";
361
+ readonly STRING: "string";
362
+ readonly BOOL: "bool";
363
+ readonly DATE: "date";
364
+ readonly CHOICE: "choice";
365
+ readonly TEXT: "text";
366
366
  }>;
367
367
  required: z.ZodBoolean;
368
368
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13,3 +13,4 @@ export * from './rest';
13
13
  export * from './search';
14
14
  export * from './service-identity';
15
15
  export * from './service-info';
16
+ export * from './workspace-stack';
@@ -40,11 +40,11 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
40
40
  shared: z.ZodBoolean;
41
41
  name: z.ZodString;
42
42
  type: z.ZodEnum<{
43
- string: "string";
44
- date: "date";
45
- bool: "bool";
46
- choice: "choice";
47
- text: "text";
43
+ readonly STRING: "string";
44
+ readonly BOOL: "bool";
45
+ readonly DATE: "date";
46
+ readonly CHOICE: "choice";
47
+ readonly TEXT: "text";
48
48
  }>;
49
49
  required: z.ZodBoolean;
50
50
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -107,12 +107,9 @@ export declare const ExtensionResolveUpdatedSchema: z.ZodObject<{
107
107
  APP: "APP";
108
108
  SHARED: "SHARED";
109
109
  }>;
110
- serviceName: z.ZodString;
111
110
  requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
112
111
  id: z.ZodString;
113
112
  legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
- modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
113
  }, z.core.$strip>>;
117
114
  }, z.core.$strip>;
118
115
  hostType: z.ZodEnum<{
@@ -153,11 +150,11 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
153
150
  shared: z.ZodBoolean;
154
151
  name: z.ZodString;
155
152
  type: z.ZodEnum<{
156
- string: "string";
157
- date: "date";
158
- bool: "bool";
159
- choice: "choice";
160
- text: "text";
153
+ readonly STRING: "string";
154
+ readonly BOOL: "bool";
155
+ readonly DATE: "date";
156
+ readonly CHOICE: "choice";
157
+ readonly TEXT: "text";
161
158
  }>;
162
159
  required: z.ZodBoolean;
163
160
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -220,12 +217,9 @@ export declare const ExtensionResolveResultItemSchema: z.ZodDiscriminatedUnion<[
220
217
  APP: "APP";
221
218
  SHARED: "SHARED";
222
219
  }>;
223
- serviceName: z.ZodString;
224
220
  requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
225
221
  id: z.ZodString;
226
222
  legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
- modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
223
  }, z.core.$strip>>;
230
224
  }, z.core.$strip>;
231
225
  hostType: z.ZodEnum<{
@@ -265,11 +259,11 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
265
259
  shared: z.ZodBoolean;
266
260
  name: z.ZodString;
267
261
  type: z.ZodEnum<{
268
- string: "string";
269
- date: "date";
270
- bool: "bool";
271
- choice: "choice";
272
- text: "text";
262
+ readonly STRING: "string";
263
+ readonly BOOL: "bool";
264
+ readonly DATE: "date";
265
+ readonly CHOICE: "choice";
266
+ readonly TEXT: "text";
273
267
  }>;
274
268
  required: z.ZodBoolean;
275
269
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -332,12 +326,9 @@ export declare const ExtensionResolveResponseSchema: z.ZodArray<z.ZodDiscriminat
332
326
  APP: "APP";
333
327
  SHARED: "SHARED";
334
328
  }>;
335
- serviceName: z.ZodString;
336
329
  requireOAuth: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
337
330
  id: z.ZodString;
338
331
  legacyElementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
339
- modelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
- lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
332
  }, z.core.$strip>>;
342
333
  }, z.core.$strip>;
343
334
  hostType: z.ZodEnum<{
@@ -44,11 +44,11 @@ export declare const SharedExtensionSearchResultMethodSchema: z.ZodObject<{
44
44
  shared: z.ZodBoolean;
45
45
  name: z.ZodString;
46
46
  type: z.ZodEnum<{
47
- string: "string";
48
- date: "date";
49
- bool: "bool";
50
- choice: "choice";
51
- text: "text";
47
+ readonly STRING: "string";
48
+ readonly BOOL: "bool";
49
+ readonly DATE: "date";
50
+ readonly CHOICE: "choice";
51
+ readonly TEXT: "text";
52
52
  }>;
53
53
  required: z.ZodBoolean;
54
54
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -136,11 +136,11 @@ export declare const SearchSharedExtensionsResponseSchema: z.ZodObject<{
136
136
  shared: z.ZodBoolean;
137
137
  name: z.ZodString;
138
138
  type: z.ZodEnum<{
139
- string: "string";
140
- date: "date";
141
- bool: "bool";
142
- choice: "choice";
143
- text: "text";
139
+ readonly STRING: "string";
140
+ readonly BOOL: "bool";
141
+ readonly DATE: "date";
142
+ readonly CHOICE: "choice";
143
+ readonly TEXT: "text";
144
144
  }>;
145
145
  required: z.ZodBoolean;
146
146
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -0,0 +1,44 @@
1
+ import { z } from 'zod';
2
+ export declare const WorkspaceStackExtensionDTOSchema: z.ZodObject<{
3
+ serviceId: z.ZodString;
4
+ packageId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ export declare const WorkspaceStackResponseSchema: z.ZodObject<{
7
+ extensions: z.ZodArray<z.ZodObject<{
8
+ serviceId: z.ZodString;
9
+ packageId: z.ZodString;
10
+ }, z.core.$strip>>;
11
+ developersCount: z.ZodNumber;
12
+ }, z.core.$strip>;
13
+ export declare const SaveWorkspaceStackRequestSchema: z.ZodObject<{
14
+ extensions: z.ZodArray<z.ZodObject<{
15
+ serviceId: z.ZodString;
16
+ packageId: z.ZodString;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ export declare const WorkspaceStackUsagesJavaDTOSchema: z.ZodArray<z.ZodObject<{
20
+ serviceId: z.ZodString;
21
+ packageId: z.ZodString;
22
+ }, z.core.$strip>>;
23
+ export declare const WorkspaceStackUsageDTOSchema: z.ZodObject<{
24
+ serviceId: z.ZodString;
25
+ serviceName: z.ZodString;
26
+ integrationName: z.ZodString;
27
+ integrationIcon: z.ZodNullable<z.ZodString>;
28
+ sourceHash: z.ZodString;
29
+ packageId: z.ZodString;
30
+ }, z.core.$strip>;
31
+ export declare const WorkspaceStackUsagesResponseSchema: z.ZodArray<z.ZodObject<{
32
+ serviceId: z.ZodString;
33
+ serviceName: z.ZodString;
34
+ integrationName: z.ZodString;
35
+ integrationIcon: z.ZodNullable<z.ZodString>;
36
+ sourceHash: z.ZodString;
37
+ packageId: z.ZodString;
38
+ }, z.core.$strip>>;
39
+ export type WorkspaceStackExtensionDTO = z.infer<typeof WorkspaceStackExtensionDTOSchema>;
40
+ export type WorkspaceStackResponse = z.infer<typeof WorkspaceStackResponseSchema>;
41
+ export type SaveWorkspaceStackRequest = z.infer<typeof SaveWorkspaceStackRequestSchema>;
42
+ export type WorkspaceStackUsageJavaDTO = z.infer<typeof WorkspaceStackUsagesJavaDTOSchema>[number];
43
+ export type WorkspaceStackUsageDTO = z.infer<typeof WorkspaceStackUsageDTOSchema>;
44
+ export type WorkspaceStackUsagesResponse = z.infer<typeof WorkspaceStackUsagesResponseSchema>;
@@ -20,8 +20,8 @@ export declare const WorkspaceDocSchema: z.ZodObject<{
20
20
  export declare const WorkspaceJavaDTOSchema: z.ZodObject<{
21
21
  type: z.ZodOptional<z.ZodString>;
22
22
  _class: z.ZodOptional<z.ZodString>;
23
- version: z.ZodString;
24
23
  subscriptionId: z.ZodOptional<z.ZodString>;
24
+ version: z.ZodString;
25
25
  created: z.ZodCoercedDate<unknown>;
26
26
  accountOwnerId: z.ZodString;
27
27
  originDomains: z.ZodString;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@flowrunner/cli",
3
+ "version": "0.1.5-dev.1",
3
4
  "publishConfig": {
4
5
  "access": "public"
5
6
  },
6
- "version": "0.1.4",
7
7
  "engines": {
8
8
  "node": ">=20"
9
9
  },
package/runtime/index.js CHANGED
@@ -4103,17 +4103,24 @@ var DedupeMechanism = class extends FetchingMechanism {
4103
4103
  delta(items, state) {
4104
4104
  const currentIds = items.map(this.#by).map((id) => `${id}`);
4105
4105
  if (!state?.[this.#stateKey]) {
4106
- return { events: [], state: { [this.#stateKey]: this.#buildSeen(currentIds) } };
4106
+ return { events: [], state: { [this.#stateKey]: this.#buildSeen([], currentIds) } };
4107
4107
  }
4108
- const seen = state[this.#stateKey];
4109
- const events = items.filter((item) => !seen[`${this.#by(item)}`]);
4110
- return { events, state: { [this.#stateKey]: this.#buildSeen([...Object.keys(seen), ...currentIds]) } };
4108
+ const seen = toSeenList(state[this.#stateKey]);
4109
+ const seenSet = new Set(seen);
4110
+ const events = items.filter((_item, index) => !seenSet.has(currentIds[index]));
4111
+ return { events, state: { [this.#stateKey]: this.#buildSeen(seen, currentIds) } };
4111
4112
  }
4112
- // Bounded id → 1 map, keeping the most-recent `max` ids (dedup, last occurrence wins).
4113
- #buildSeen(ids) {
4114
- return [...new Set(ids)].slice(-this.#max).reduce((acc, id) => ({ ...acc, [id]: 1 }), {});
4113
+ // Bounded id list, oldest first, keeping the most-recent `max` ids. An id fetched again moves to the end,
4114
+ // so an item that is still in the feed is never the one evicted. It is a list, not an `{ id: 1 }` map: a
4115
+ // map orders integer-like keys numerically, which evicted the SMALLEST id instead of the oldest one.
4116
+ #buildSeen(seen, currentIds) {
4117
+ const fetched = new Set(currentIds);
4118
+ return [...seen.filter((id) => !fetched.has(id)), ...fetched].slice(-this.#max);
4115
4119
  }
4116
4120
  };
4121
+ var toSeenList = (value) => {
4122
+ return Array.isArray(value) ? value.map((id) => `${id}`) : Object.keys(value);
4123
+ };
4117
4124
  var isNewer = (value, marker) => value > marker;
4118
4125
  var WatermarkMechanism = class extends FetchingMechanism {
4119
4126
  constructor(fetch, config) {