@ever-works/activepieces-plugin 1.0.15 → 1.0.16

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/dist/index.cjs CHANGED
@@ -491,7 +491,11 @@ var TASK_RESERVED_LABELS = Object.freeze([
491
491
  "release:promotion",
492
492
  "release:revert"
493
493
  ]);
494
- var TASK_RESERVED_LABEL_PREFIXES = Object.freeze(["release:", "provision-attempt-", "fleet:"]);
494
+ var TASK_RESERVED_LABEL_PREFIXES = Object.freeze([
495
+ "release:",
496
+ "provision-attempt-",
497
+ "fleet:"
498
+ ]);
495
499
  var PLATFORM_DEFAULT_MERGE_POLICY = Object.freeze({
496
500
  allowAgentMerge: false,
497
501
  requireGreenGate: true,
@@ -1614,7 +1618,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1614
1618
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
1615
1619
  cli: "fleet desktop screenshot"
1616
1620
  }),
1617
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1621
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
1618
1622
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1619
1623
  cli: "fleet desktop displays"
1620
1624
  }),
@@ -1888,6 +1892,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1888
1892
  route: GET("/api/fleet/checkouts/{id}/changes"),
1889
1893
  cli: "fleet checkouts changes"
1890
1894
  }),
1895
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1896
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1897
+ }),
1891
1898
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1892
1899
  route: POST("/api/fleet/checkouts"),
1893
1900
  cli: "fleet checkouts create",
@@ -2016,13 +2023,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2016
2023
  }),
2017
2024
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
2018
2025
  // stop, a restart and a remove asked by an Agent are held for the owner's approval
2019
- // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
2026
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
2020
2027
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
2021
2028
  phase: "P3",
2022
2029
  route: GET("/api/fleet/nodes/{id}/runners"),
2023
2030
  cli: "fleet runners list"
2024
2031
  }),
2025
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
2032
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
2026
2033
  phase: "P3",
2027
2034
  route: GET("/api/fleet/runners/jobs"),
2028
2035
  cli: "fleet runners jobs"
@@ -2077,9 +2084,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2077
2084
  "machines",
2078
2085
  "FL-18",
2079
2086
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2080
- "planned",
2087
+ "live",
2081
2088
  confirm("machine.admin"),
2082
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
2089
+ {
2090
+ phase: "P3",
2091
+ route: POST("/api/fleet/runners/jobs/cancel"),
2092
+ cli: "fleet runners cancel-run",
2093
+ alwaysHeld: true
2094
+ }
2083
2095
  ),
2084
2096
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
2085
2097
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -2255,7 +2267,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
2255
2267
  approxDownloadGiB: 0.7
2256
2268
  }
2257
2269
  ];
2258
- var FLEET_VIRTUAL_SYSTEM_IDS = FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
2270
+ var FLEET_VIRTUAL_SYSTEM_IDS = FLEET_VIRTUAL_SYSTEMS.map(
2271
+ (system) => system.id
2272
+ );
2259
2273
  var FLEET_VIRTUAL_ENROLL_TIMEOUT_MS = 20 * 60 * 1e3;
2260
2274
  var FLEET_CLOUD_OPTIONS_CACHE_MS = 10 * 60 * 1e3;
2261
2275
  var HOUR_MS2 = 60 * 60 * 1e3;
@@ -2269,6 +2283,58 @@ var FLEET_USAGE_ZERO_TOKENS = Object.freeze({
2269
2283
  cacheWrite: 0
2270
2284
  });
2271
2285
  var FLEET_ACTIONS_RUNNERS_CLOSED_REFRESH_MS = 5 * 6e4;
2286
+ var FLEET_ACTIONS_RUNNER_DOWNLOADS_CACHE_MS = 60 * 6e4;
2287
+ var FLEET_DESKTOP_CONTROL_REASON_FIXES = Object.freeze({
2288
+ "control-not-allowed": { command: "ever-works-node helper control allow" },
2289
+ "permission-accessibility": { settingsPath: "System Settings \u2192 Privacy & Security \u2192 Accessibility" },
2290
+ "input-unavailable": {}
2291
+ });
2292
+ var FLEET_DESKTOP_REASONS = [
2293
+ "kind-unsupported",
2294
+ "wayland-unsupported",
2295
+ "helper-missing",
2296
+ "helper-unadmitted",
2297
+ "helper-untrusted",
2298
+ "no-display-session",
2299
+ "permission-screen-recording",
2300
+ "permission-accessibility"
2301
+ ];
2302
+ var FLEET_DESKTOP_WATCH_REASONS = FLEET_DESKTOP_REASONS.filter(
2303
+ (reason) => reason !== "permission-accessibility"
2304
+ );
2305
+ var FLEET_DESKTOP_MAX_REASONS = FLEET_DESKTOP_REASONS.length;
2306
+ var FLEET_DESKTOP_REASON_FIXES = Object.freeze({
2307
+ "kind-unsupported": Object.freeze({}),
2308
+ "wayland-unsupported": Object.freeze({}),
2309
+ "helper-missing": Object.freeze({ command: "ever-works-node helper install" }),
2310
+ "helper-unadmitted": Object.freeze({ command: "ever-works-node helper admit" }),
2311
+ "helper-untrusted": Object.freeze({ command: "ever-works-node helper status" }),
2312
+ "no-display-session": Object.freeze({}),
2313
+ "permission-screen-recording": Object.freeze({
2314
+ settingsPath: "System Settings \u2192 Privacy & Security \u2192 Screen Recording"
2315
+ }),
2316
+ "permission-accessibility": Object.freeze({ settingsPath: "System Settings \u2192 Privacy & Security \u2192 Accessibility" })
2317
+ });
2318
+ var FLEET_DESKTOP_BLOCKER_CODES = Object.freeze({
2319
+ "kill-switch": "kill_switch",
2320
+ "kind-unsupported": "unsupported_on_node",
2321
+ offline: "unreachable",
2322
+ "consent-missing": "consent_missing",
2323
+ "permission-denied": "permission_denied",
2324
+ "wayland-unsupported": "unsupported_on_node",
2325
+ "helper-missing": "unsupported_on_node",
2326
+ "helper-unadmitted": "unsupported_on_node",
2327
+ "helper-untrusted": "unsupported_on_node",
2328
+ "no-display-session": "unsupported_on_node",
2329
+ "permission-screen-recording": "unsupported_on_node",
2330
+ "link-unavailable": "unreachable"
2331
+ });
2332
+ var FLEET_DESKTOP_VIEW_CEILING_MS = 4 * 60 * 6e4;
2333
+ var FLEET_DESKTOP_MAX_PUBLISH_BYTES = 512 * 1024;
2334
+ var FLEET_DESKTOP_RECORDING_MAX_BYTES = 200 * 1024 * 1024;
2335
+ var FLEET_DESKTOP_RECORDING_MAX_MS = 4 * 60 * 6e4;
2336
+ var FLEET_DESKTOP_RECORDING_MAGIC = new Uint8Array([69, 87, 82, 49]);
2337
+ var FLEET_DESKTOP_RECORDING_MAX_CHUNK_BYTES = 64 * 1024 * 1024;
2272
2338
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
2273
2339
  var EMAIL_INBOX_BURST_SENDS = 10;
2274
2340
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -3249,6 +3315,161 @@ function buildErrorPipelineResult(error, base) {
3249
3315
  function buildCancelledPipelineResult(base) {
3250
3316
  return buildErrorPipelineResult("Pipeline cancelled", base);
3251
3317
  }
3318
+ function zod3ParsedType(data) {
3319
+ switch (typeof data) {
3320
+ case "undefined":
3321
+ return "undefined";
3322
+ case "string":
3323
+ return "string";
3324
+ case "number":
3325
+ return Number.isNaN(data) ? "nan" : "number";
3326
+ case "boolean":
3327
+ return "boolean";
3328
+ case "function":
3329
+ return "function";
3330
+ case "bigint":
3331
+ return "bigint";
3332
+ case "symbol":
3333
+ return "symbol";
3334
+ case "object": {
3335
+ if (Array.isArray(data)) return "array";
3336
+ if (data === null) return "null";
3337
+ const thenable = data;
3338
+ if (typeof thenable.then === "function" && typeof thenable.catch === "function") return "promise";
3339
+ if (data instanceof Map) return "map";
3340
+ if (data instanceof Set) return "set";
3341
+ if (data instanceof Date) return "date";
3342
+ return "object";
3343
+ }
3344
+ default:
3345
+ return "unknown";
3346
+ }
3347
+ }
3348
+ function joinValues(values, separator = " | ") {
3349
+ return values.map((value) => typeof value === "string" ? `'${value}'` : value).join(separator);
3350
+ }
3351
+ function bigIntSafe(_key, value) {
3352
+ return typeof value === "bigint" ? value.toString() : value;
3353
+ }
3354
+ function schemaType(issue) {
3355
+ return issue.inst?._zod?.def?.type;
3356
+ }
3357
+ var ZOD3_EXPECTED = {
3358
+ record: "object",
3359
+ tuple: "array"
3360
+ };
3361
+ var ZOD3_FORMAT = {
3362
+ guid: "uuid",
3363
+ ipv4: "ip",
3364
+ ipv6: "ip",
3365
+ cidrv4: "cidr",
3366
+ cidrv6: "cidr"
3367
+ };
3368
+ var ZOD4_ONLY_FORMATS = /* @__PURE__ */ new Set(["lowercase", "uppercase", "e164", "ksuid", "xid", "mac", "hex", "hash"]);
3369
+ function invalidType(issue) {
3370
+ if (issue.input === void 0) return "Required";
3371
+ if (issue.expected === "date" && issue.input instanceof Date) return "Invalid date";
3372
+ const received = zod3ParsedType(issue.input);
3373
+ if (issue.expected === "int") {
3374
+ return typeof issue.input === "number" ? "Expected integer, received float" : `Expected number, received ${received}`;
3375
+ }
3376
+ const expected = ZOD3_EXPECTED[issue.expected ?? ""] ?? issue.expected;
3377
+ return `Expected ${expected}, received ${received}`;
3378
+ }
3379
+ function invalidValue(issue) {
3380
+ const values = issue.values ?? [];
3381
+ if (schemaType(issue) === "literal") {
3382
+ return `Invalid literal value, expected ${JSON.stringify(values.length === 1 ? values[0] : values, bigIntSafe)}`;
3383
+ }
3384
+ if (issue.input === void 0) return "Required";
3385
+ const stringEnum = values.every((value) => typeof value === "string");
3386
+ const input = issue.input;
3387
+ if (stringEnum && typeof input !== "string" || typeof input !== "string" && typeof input !== "number") {
3388
+ return `Expected ${joinValues(values)}, received ${zod3ParsedType(input)}`;
3389
+ }
3390
+ return `Invalid enum value. Expected ${joinValues(values)}, received '${String(input)}'`;
3391
+ }
3392
+ function invalidFormat(issue) {
3393
+ const format = issue.format ?? "";
3394
+ switch (format) {
3395
+ case "regex":
3396
+ return "Invalid";
3397
+ case "starts_with":
3398
+ return `Invalid input: must start with "${issue.prefix}"`;
3399
+ case "ends_with":
3400
+ return `Invalid input: must end with "${issue.suffix}"`;
3401
+ case "includes":
3402
+ return `Invalid input: must include "${issue.includes}"`;
3403
+ default:
3404
+ if (!format || ZOD4_ONLY_FORMATS.has(format)) return void 0;
3405
+ return `Invalid ${ZOD3_FORMAT[format] ?? format}`;
3406
+ }
3407
+ }
3408
+ function tooSmall(issue) {
3409
+ const { exact, inclusive, minimum } = issue;
3410
+ switch (issue.origin) {
3411
+ case "array":
3412
+ return `Array must contain ${exact ? "exactly" : inclusive ? "at least" : "more than"} ${minimum} element(s)`;
3413
+ case "string":
3414
+ return `String must contain ${exact ? "exactly" : inclusive ? "at least" : "over"} ${minimum} character(s)`;
3415
+ case "number":
3416
+ case "int":
3417
+ case "bigint":
3418
+ return `Number must be ${exact ? "exactly equal to " : inclusive ? "greater than or equal to " : "greater than "}${minimum}`;
3419
+ case "date":
3420
+ return `Date must be ${exact ? "exactly equal to " : inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(minimum))}`;
3421
+ default:
3422
+ return "Invalid input";
3423
+ }
3424
+ }
3425
+ function tooBig(issue) {
3426
+ const { exact, inclusive, maximum } = issue;
3427
+ switch (issue.origin) {
3428
+ case "array":
3429
+ return `Array must contain ${exact ? "exactly" : inclusive ? "at most" : "less than"} ${maximum} element(s)`;
3430
+ case "string":
3431
+ return `String must contain ${exact ? "exactly" : inclusive ? "at most" : "under"} ${maximum} character(s)`;
3432
+ case "number":
3433
+ case "int":
3434
+ return `Number must be ${exact ? "exactly" : inclusive ? "less than or equal to" : "less than"} ${maximum}`;
3435
+ case "bigint":
3436
+ return `BigInt must be ${exact ? "exactly" : inclusive ? "less than or equal to" : "less than"} ${maximum}`;
3437
+ case "date":
3438
+ return `Date must be ${exact ? "exactly" : inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(maximum))}`;
3439
+ default:
3440
+ return "Invalid input";
3441
+ }
3442
+ }
3443
+ function zod3ErrorMessage(issue) {
3444
+ switch (issue.code) {
3445
+ case "invalid_type":
3446
+ return invalidType(issue);
3447
+ case "invalid_value":
3448
+ return invalidValue(issue);
3449
+ case "unrecognized_keys":
3450
+ return `Unrecognized key(s) in object: ${joinValues(issue.keys ?? [], ", ")}`;
3451
+ case "invalid_union":
3452
+ if (issue.discriminator !== void 0 && issue.options) {
3453
+ return `Invalid discriminator value. Expected ${joinValues(issue.options)}`;
3454
+ }
3455
+ return "Invalid input";
3456
+ case "invalid_format":
3457
+ return invalidFormat(issue);
3458
+ case "too_small":
3459
+ return tooSmall(issue);
3460
+ case "too_big":
3461
+ return tooBig(issue);
3462
+ case "not_multiple_of":
3463
+ return `Number must be a multiple of ${issue.divisor}`;
3464
+ case "custom":
3465
+ return "Invalid input";
3466
+ case "invalid_key":
3467
+ return issue.issues?.[0]?.message;
3468
+ default:
3469
+ return void 0;
3470
+ }
3471
+ }
3472
+ var ZOD3_ERROR_MESSAGES = Object.freeze({ error: zod3ErrorMessage });
3252
3473
 
3253
3474
  // src/types.ts
3254
3475
  var ACTIVEPIECES_STEP_IDS = [
package/dist/index.js CHANGED
@@ -464,7 +464,11 @@ var TASK_RESERVED_LABELS = Object.freeze([
464
464
  "release:promotion",
465
465
  "release:revert"
466
466
  ]);
467
- var TASK_RESERVED_LABEL_PREFIXES = Object.freeze(["release:", "provision-attempt-", "fleet:"]);
467
+ var TASK_RESERVED_LABEL_PREFIXES = Object.freeze([
468
+ "release:",
469
+ "provision-attempt-",
470
+ "fleet:"
471
+ ]);
468
472
  var PLATFORM_DEFAULT_MERGE_POLICY = Object.freeze({
469
473
  allowAgentMerge: false,
470
474
  requireGreenGate: true,
@@ -1587,7 +1591,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1587
1591
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
1588
1592
  cli: "fleet desktop screenshot"
1589
1593
  }),
1590
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1594
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
1591
1595
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1592
1596
  cli: "fleet desktop displays"
1593
1597
  }),
@@ -1861,6 +1865,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1861
1865
  route: GET("/api/fleet/checkouts/{id}/changes"),
1862
1866
  cli: "fleet checkouts changes"
1863
1867
  }),
1868
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1869
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1870
+ }),
1864
1871
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1865
1872
  route: POST("/api/fleet/checkouts"),
1866
1873
  cli: "fleet checkouts create",
@@ -1989,13 +1996,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1989
1996
  }),
1990
1997
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1991
1998
  // stop, a restart and a remove asked by an Agent are held for the owner's approval
1992
- // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
1999
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1993
2000
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1994
2001
  phase: "P3",
1995
2002
  route: GET("/api/fleet/nodes/{id}/runners"),
1996
2003
  cli: "fleet runners list"
1997
2004
  }),
1998
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
2005
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1999
2006
  phase: "P3",
2000
2007
  route: GET("/api/fleet/runners/jobs"),
2001
2008
  cli: "fleet runners jobs"
@@ -2050,9 +2057,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2050
2057
  "machines",
2051
2058
  "FL-18",
2052
2059
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2053
- "planned",
2060
+ "live",
2054
2061
  confirm("machine.admin"),
2055
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
2062
+ {
2063
+ phase: "P3",
2064
+ route: POST("/api/fleet/runners/jobs/cancel"),
2065
+ cli: "fleet runners cancel-run",
2066
+ alwaysHeld: true
2067
+ }
2056
2068
  ),
2057
2069
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
2058
2070
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -2228,7 +2240,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
2228
2240
  approxDownloadGiB: 0.7
2229
2241
  }
2230
2242
  ];
2231
- var FLEET_VIRTUAL_SYSTEM_IDS = FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
2243
+ var FLEET_VIRTUAL_SYSTEM_IDS = FLEET_VIRTUAL_SYSTEMS.map(
2244
+ (system) => system.id
2245
+ );
2232
2246
  var FLEET_VIRTUAL_ENROLL_TIMEOUT_MS = 20 * 60 * 1e3;
2233
2247
  var FLEET_CLOUD_OPTIONS_CACHE_MS = 10 * 60 * 1e3;
2234
2248
  var HOUR_MS2 = 60 * 60 * 1e3;
@@ -2242,6 +2256,58 @@ var FLEET_USAGE_ZERO_TOKENS = Object.freeze({
2242
2256
  cacheWrite: 0
2243
2257
  });
2244
2258
  var FLEET_ACTIONS_RUNNERS_CLOSED_REFRESH_MS = 5 * 6e4;
2259
+ var FLEET_ACTIONS_RUNNER_DOWNLOADS_CACHE_MS = 60 * 6e4;
2260
+ var FLEET_DESKTOP_CONTROL_REASON_FIXES = Object.freeze({
2261
+ "control-not-allowed": { command: "ever-works-node helper control allow" },
2262
+ "permission-accessibility": { settingsPath: "System Settings \u2192 Privacy & Security \u2192 Accessibility" },
2263
+ "input-unavailable": {}
2264
+ });
2265
+ var FLEET_DESKTOP_REASONS = [
2266
+ "kind-unsupported",
2267
+ "wayland-unsupported",
2268
+ "helper-missing",
2269
+ "helper-unadmitted",
2270
+ "helper-untrusted",
2271
+ "no-display-session",
2272
+ "permission-screen-recording",
2273
+ "permission-accessibility"
2274
+ ];
2275
+ var FLEET_DESKTOP_WATCH_REASONS = FLEET_DESKTOP_REASONS.filter(
2276
+ (reason) => reason !== "permission-accessibility"
2277
+ );
2278
+ var FLEET_DESKTOP_MAX_REASONS = FLEET_DESKTOP_REASONS.length;
2279
+ var FLEET_DESKTOP_REASON_FIXES = Object.freeze({
2280
+ "kind-unsupported": Object.freeze({}),
2281
+ "wayland-unsupported": Object.freeze({}),
2282
+ "helper-missing": Object.freeze({ command: "ever-works-node helper install" }),
2283
+ "helper-unadmitted": Object.freeze({ command: "ever-works-node helper admit" }),
2284
+ "helper-untrusted": Object.freeze({ command: "ever-works-node helper status" }),
2285
+ "no-display-session": Object.freeze({}),
2286
+ "permission-screen-recording": Object.freeze({
2287
+ settingsPath: "System Settings \u2192 Privacy & Security \u2192 Screen Recording"
2288
+ }),
2289
+ "permission-accessibility": Object.freeze({ settingsPath: "System Settings \u2192 Privacy & Security \u2192 Accessibility" })
2290
+ });
2291
+ var FLEET_DESKTOP_BLOCKER_CODES = Object.freeze({
2292
+ "kill-switch": "kill_switch",
2293
+ "kind-unsupported": "unsupported_on_node",
2294
+ offline: "unreachable",
2295
+ "consent-missing": "consent_missing",
2296
+ "permission-denied": "permission_denied",
2297
+ "wayland-unsupported": "unsupported_on_node",
2298
+ "helper-missing": "unsupported_on_node",
2299
+ "helper-unadmitted": "unsupported_on_node",
2300
+ "helper-untrusted": "unsupported_on_node",
2301
+ "no-display-session": "unsupported_on_node",
2302
+ "permission-screen-recording": "unsupported_on_node",
2303
+ "link-unavailable": "unreachable"
2304
+ });
2305
+ var FLEET_DESKTOP_VIEW_CEILING_MS = 4 * 60 * 6e4;
2306
+ var FLEET_DESKTOP_MAX_PUBLISH_BYTES = 512 * 1024;
2307
+ var FLEET_DESKTOP_RECORDING_MAX_BYTES = 200 * 1024 * 1024;
2308
+ var FLEET_DESKTOP_RECORDING_MAX_MS = 4 * 60 * 6e4;
2309
+ var FLEET_DESKTOP_RECORDING_MAGIC = new Uint8Array([69, 87, 82, 49]);
2310
+ var FLEET_DESKTOP_RECORDING_MAX_CHUNK_BYTES = 64 * 1024 * 1024;
2245
2311
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
2246
2312
  var EMAIL_INBOX_BURST_SENDS = 10;
2247
2313
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -3222,6 +3288,161 @@ function buildErrorPipelineResult(error, base) {
3222
3288
  function buildCancelledPipelineResult(base) {
3223
3289
  return buildErrorPipelineResult("Pipeline cancelled", base);
3224
3290
  }
3291
+ function zod3ParsedType(data) {
3292
+ switch (typeof data) {
3293
+ case "undefined":
3294
+ return "undefined";
3295
+ case "string":
3296
+ return "string";
3297
+ case "number":
3298
+ return Number.isNaN(data) ? "nan" : "number";
3299
+ case "boolean":
3300
+ return "boolean";
3301
+ case "function":
3302
+ return "function";
3303
+ case "bigint":
3304
+ return "bigint";
3305
+ case "symbol":
3306
+ return "symbol";
3307
+ case "object": {
3308
+ if (Array.isArray(data)) return "array";
3309
+ if (data === null) return "null";
3310
+ const thenable = data;
3311
+ if (typeof thenable.then === "function" && typeof thenable.catch === "function") return "promise";
3312
+ if (data instanceof Map) return "map";
3313
+ if (data instanceof Set) return "set";
3314
+ if (data instanceof Date) return "date";
3315
+ return "object";
3316
+ }
3317
+ default:
3318
+ return "unknown";
3319
+ }
3320
+ }
3321
+ function joinValues(values, separator = " | ") {
3322
+ return values.map((value) => typeof value === "string" ? `'${value}'` : value).join(separator);
3323
+ }
3324
+ function bigIntSafe(_key, value) {
3325
+ return typeof value === "bigint" ? value.toString() : value;
3326
+ }
3327
+ function schemaType(issue) {
3328
+ return issue.inst?._zod?.def?.type;
3329
+ }
3330
+ var ZOD3_EXPECTED = {
3331
+ record: "object",
3332
+ tuple: "array"
3333
+ };
3334
+ var ZOD3_FORMAT = {
3335
+ guid: "uuid",
3336
+ ipv4: "ip",
3337
+ ipv6: "ip",
3338
+ cidrv4: "cidr",
3339
+ cidrv6: "cidr"
3340
+ };
3341
+ var ZOD4_ONLY_FORMATS = /* @__PURE__ */ new Set(["lowercase", "uppercase", "e164", "ksuid", "xid", "mac", "hex", "hash"]);
3342
+ function invalidType(issue) {
3343
+ if (issue.input === void 0) return "Required";
3344
+ if (issue.expected === "date" && issue.input instanceof Date) return "Invalid date";
3345
+ const received = zod3ParsedType(issue.input);
3346
+ if (issue.expected === "int") {
3347
+ return typeof issue.input === "number" ? "Expected integer, received float" : `Expected number, received ${received}`;
3348
+ }
3349
+ const expected = ZOD3_EXPECTED[issue.expected ?? ""] ?? issue.expected;
3350
+ return `Expected ${expected}, received ${received}`;
3351
+ }
3352
+ function invalidValue(issue) {
3353
+ const values = issue.values ?? [];
3354
+ if (schemaType(issue) === "literal") {
3355
+ return `Invalid literal value, expected ${JSON.stringify(values.length === 1 ? values[0] : values, bigIntSafe)}`;
3356
+ }
3357
+ if (issue.input === void 0) return "Required";
3358
+ const stringEnum = values.every((value) => typeof value === "string");
3359
+ const input = issue.input;
3360
+ if (stringEnum && typeof input !== "string" || typeof input !== "string" && typeof input !== "number") {
3361
+ return `Expected ${joinValues(values)}, received ${zod3ParsedType(input)}`;
3362
+ }
3363
+ return `Invalid enum value. Expected ${joinValues(values)}, received '${String(input)}'`;
3364
+ }
3365
+ function invalidFormat(issue) {
3366
+ const format = issue.format ?? "";
3367
+ switch (format) {
3368
+ case "regex":
3369
+ return "Invalid";
3370
+ case "starts_with":
3371
+ return `Invalid input: must start with "${issue.prefix}"`;
3372
+ case "ends_with":
3373
+ return `Invalid input: must end with "${issue.suffix}"`;
3374
+ case "includes":
3375
+ return `Invalid input: must include "${issue.includes}"`;
3376
+ default:
3377
+ if (!format || ZOD4_ONLY_FORMATS.has(format)) return void 0;
3378
+ return `Invalid ${ZOD3_FORMAT[format] ?? format}`;
3379
+ }
3380
+ }
3381
+ function tooSmall(issue) {
3382
+ const { exact, inclusive, minimum } = issue;
3383
+ switch (issue.origin) {
3384
+ case "array":
3385
+ return `Array must contain ${exact ? "exactly" : inclusive ? "at least" : "more than"} ${minimum} element(s)`;
3386
+ case "string":
3387
+ return `String must contain ${exact ? "exactly" : inclusive ? "at least" : "over"} ${minimum} character(s)`;
3388
+ case "number":
3389
+ case "int":
3390
+ case "bigint":
3391
+ return `Number must be ${exact ? "exactly equal to " : inclusive ? "greater than or equal to " : "greater than "}${minimum}`;
3392
+ case "date":
3393
+ return `Date must be ${exact ? "exactly equal to " : inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(minimum))}`;
3394
+ default:
3395
+ return "Invalid input";
3396
+ }
3397
+ }
3398
+ function tooBig(issue) {
3399
+ const { exact, inclusive, maximum } = issue;
3400
+ switch (issue.origin) {
3401
+ case "array":
3402
+ return `Array must contain ${exact ? "exactly" : inclusive ? "at most" : "less than"} ${maximum} element(s)`;
3403
+ case "string":
3404
+ return `String must contain ${exact ? "exactly" : inclusive ? "at most" : "under"} ${maximum} character(s)`;
3405
+ case "number":
3406
+ case "int":
3407
+ return `Number must be ${exact ? "exactly" : inclusive ? "less than or equal to" : "less than"} ${maximum}`;
3408
+ case "bigint":
3409
+ return `BigInt must be ${exact ? "exactly" : inclusive ? "less than or equal to" : "less than"} ${maximum}`;
3410
+ case "date":
3411
+ return `Date must be ${exact ? "exactly" : inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(maximum))}`;
3412
+ default:
3413
+ return "Invalid input";
3414
+ }
3415
+ }
3416
+ function zod3ErrorMessage(issue) {
3417
+ switch (issue.code) {
3418
+ case "invalid_type":
3419
+ return invalidType(issue);
3420
+ case "invalid_value":
3421
+ return invalidValue(issue);
3422
+ case "unrecognized_keys":
3423
+ return `Unrecognized key(s) in object: ${joinValues(issue.keys ?? [], ", ")}`;
3424
+ case "invalid_union":
3425
+ if (issue.discriminator !== void 0 && issue.options) {
3426
+ return `Invalid discriminator value. Expected ${joinValues(issue.options)}`;
3427
+ }
3428
+ return "Invalid input";
3429
+ case "invalid_format":
3430
+ return invalidFormat(issue);
3431
+ case "too_small":
3432
+ return tooSmall(issue);
3433
+ case "too_big":
3434
+ return tooBig(issue);
3435
+ case "not_multiple_of":
3436
+ return `Number must be a multiple of ${issue.divisor}`;
3437
+ case "custom":
3438
+ return "Invalid input";
3439
+ case "invalid_key":
3440
+ return issue.issues?.[0]?.message;
3441
+ default:
3442
+ return void 0;
3443
+ }
3444
+ }
3445
+ var ZOD3_ERROR_MESSAGES = Object.freeze({ error: zod3ErrorMessage });
3225
3446
 
3226
3447
  // src/types.ts
3227
3448
  var ACTIVEPIECES_STEP_IDS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/activepieces-plugin",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Activepieces Automation Pipeline Plugin - Delegates Work generation steps to Activepieces flows",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,10 +33,10 @@
33
33
  "test:coverage": "vitest run --coverage"
34
34
  },
35
35
  "peerDependencies": {
36
- "@ever-works/plugin": "^1.2.11"
36
+ "@ever-works/plugin": "^1.2.12"
37
37
  },
38
38
  "devDependencies": {
39
- "@ever-works/plugin": "^1.2.11",
39
+ "@ever-works/plugin": "^1.2.12",
40
40
  "@types/node": "^26.6.4",
41
41
  "tsup": "^8.0.0",
42
42
  "typescript": "^5.9.3",
@@ -76,8 +76,8 @@
76
76
  "url": "https://github.com/ever-works/ever-works/issues"
77
77
  },
78
78
  "everworksRelease": {
79
- "contentHash": "sha256:e1a04e82629b292cf6ed07c0f8bd8ac6dd5138569b5ad3f0f146a0bd077a8647",
80
- "commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
81
- "source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/activepieces"
79
+ "contentHash": "sha256:f5de9e2aca3e2ad0467b789a22ad06e6d8877f3491b5a5abcb7d8fa575227926",
80
+ "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
81
+ "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/activepieces"
82
82
  }
83
83
  }