@ever-works/activepieces-plugin 1.0.14 → 1.0.15

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
@@ -1261,7 +1261,18 @@ var FLEET_JOB_DEFAULT_QUEUED_MAX_AGE_SEC = Object.freeze({
1261
1261
  // fails closed to), so an older reader's "unknown kind" answer is unchanged.
1262
1262
  // A control the owner no longer wants is cancelled with its child's row.
1263
1263
  "vm-create": 2 * 60 * 60,
1264
- "vm-control": 2 * 60 * 60
1264
+ "vm-control": 2 * 60 * 60,
1265
+ // Usage scan (FL-20). The plan proposed 15 minutes (one scan interval); like
1266
+ // the kinds above it does NOT undercut the shortest existing default (the
1267
+ // fallback an unknown kind fails closed to). A scan nobody leased is simply
1268
+ // superseded: the dispatcher never enqueues a second while one is queued.
1269
+ "usage-scan": 2 * 60 * 60,
1270
+ // Actions runners on computers (FL-18). The plan proposed an hour for an
1271
+ // install and ten minutes for a control; like FL-16's kinds they do NOT
1272
+ // undercut the shortest existing default (the fallback an unknown kind fails
1273
+ // closed to), so an older reader's answer for an unknown kind is unchanged.
1274
+ "runner-install": 2 * 60 * 60,
1275
+ "runner-control": 2 * 60 * 60
1265
1276
  });
1266
1277
  var FLEET_JOB_MAX_QUEUED_MAX_AGE_SEC = 7 * 24 * 60 * 60;
1267
1278
  var FLEET_AGENT_EXECUTION_MAX_INSTRUCTIONS_BYTES = 160 * 1024;
@@ -1957,9 +1968,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1957
1968
  waitable: true,
1958
1969
  alwaysHeld: true
1959
1970
  }),
1960
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1961
- // change and a destroy are held for the owner's approval by the Agent tools
1962
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1971
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1972
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1973
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1963
1974
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1964
1975
  phase: "P3",
1965
1976
  route: GET("/api/fleet/cloud"),
@@ -1998,13 +2009,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1998
2009
  waitable: true,
1999
2010
  alwaysHeld: true
2000
2011
  }),
2001
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
2012
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
2002
2013
  phase: "P3",
2003
2014
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
2004
2015
  cli: "fleet cloud idle-policy"
2005
2016
  }),
2006
- // ── runners (FL-18) ──
2007
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
2017
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
2018
+ // 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.
2020
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
2008
2021
  phase: "P3",
2009
2022
  route: GET("/api/fleet/nodes/{id}/runners"),
2010
2023
  cli: "fleet runners list"
@@ -2019,23 +2032,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2019
2032
  "machines",
2020
2033
  "FL-18",
2021
2034
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2022
- "planned",
2035
+ "live",
2023
2036
  confirm("machine.admin"),
2024
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
2037
+ {
2038
+ phase: "P3",
2039
+ route: POST("/api/fleet/nodes/{id}/runners"),
2040
+ cli: "fleet runners install",
2041
+ waitable: true,
2042
+ alwaysHeld: true
2043
+ }
2025
2044
  ),
2026
2045
  act(
2027
2046
  "fleet_runners_action",
2028
2047
  "machines",
2029
2048
  "FL-18",
2030
2049
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2031
- "planned",
2050
+ "live",
2032
2051
  confirm("machine.admin"),
2033
2052
  {
2034
2053
  phase: "P3",
2035
2054
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
2036
2055
  cli: "fleet runners action",
2037
2056
  waitable: true,
2038
- confirmationNote: "plain to start; confirm to stop and restart"
2057
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
2039
2058
  }
2040
2059
  ),
2041
2060
  act(
@@ -2043,9 +2062,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2043
2062
  "machines",
2044
2063
  "FL-18",
2045
2064
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2046
- "planned",
2065
+ "live",
2047
2066
  typed("write.destructive"),
2048
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
2067
+ {
2068
+ phase: "P3",
2069
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
2070
+ cli: "fleet runners remove",
2071
+ waitable: true,
2072
+ alwaysHeld: true
2073
+ }
2049
2074
  ),
2050
2075
  act(
2051
2076
  "fleet_runners_cancel_run",
@@ -2054,10 +2079,12 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2054
2079
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2055
2080
  "planned",
2056
2081
  confirm("machine.admin"),
2057
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
2082
+ { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
2058
2083
  ),
2059
- // ── usage (FL-20) ──
2060
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
2084
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
2085
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
2086
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
2087
+ phase: "P3",
2061
2088
  route: GET("/api/fleet/usage"),
2062
2089
  cli: "fleet usage"
2063
2090
  }),
@@ -2232,6 +2259,16 @@ var FLEET_VIRTUAL_SYSTEM_IDS = FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
2232
2259
  var FLEET_VIRTUAL_ENROLL_TIMEOUT_MS = 20 * 60 * 1e3;
2233
2260
  var FLEET_CLOUD_OPTIONS_CACHE_MS = 10 * 60 * 1e3;
2234
2261
  var HOUR_MS2 = 60 * 60 * 1e3;
2262
+ var FLEET_CLOUD_USAGE_FRESH_MS = 5 * 60 * 1e3;
2263
+ var FLEET_USAGE_SCAN_INTERVAL_MS = 15 * 60 * 1e3;
2264
+ var FLEET_USAGE_REPORT_MAX_BYTES = 192 * 1024;
2265
+ var FLEET_USAGE_ZERO_TOKENS = Object.freeze({
2266
+ in: 0,
2267
+ out: 0,
2268
+ cacheRead: 0,
2269
+ cacheWrite: 0
2270
+ });
2271
+ var FLEET_ACTIONS_RUNNERS_CLOSED_REFRESH_MS = 5 * 6e4;
2235
2272
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
2236
2273
  var EMAIL_INBOX_BURST_SENDS = 10;
2237
2274
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -2950,7 +2987,14 @@ var PLUGIN_CAPABILITIES = {
2950
2987
  // `capabilities/machine-provider.interface.ts`. Appended **last**, so every
2951
2988
  // existing constant keeps its value and its position, and landed in the same
2952
2989
  // change as the `machine-provider` category in `plugin-manifest.types.ts`.
2953
- MACHINE_PROVIDER: "machine-provider"
2990
+ MACHINE_PROVIDER: "machine-provider",
2991
+ // Actions runners on computers (FL-18, CONTRACTS R-14) — GitHub's self-hosted
2992
+ // runner API through the Ever Works GitHub App (`github-actions-runners`),
2993
+ // consumed only through `ActionsRunnersFacadeService`; see
2994
+ // `capabilities/actions-runners.interface.ts`. Appended last, so every
2995
+ // existing constant keeps its value and its position; no category is added
2996
+ // (the plugin is an `integration`, which exists).
2997
+ ACTIONS_RUNNERS: "actions-runners"
2954
2998
  };
2955
2999
  var ALL_PLUGIN_CAPABILITIES = Object.values(PLUGIN_CAPABILITIES);
2956
3000
  function initializePipelineState(stepDefinitions) {
package/dist/index.js CHANGED
@@ -1234,7 +1234,18 @@ var FLEET_JOB_DEFAULT_QUEUED_MAX_AGE_SEC = Object.freeze({
1234
1234
  // fails closed to), so an older reader's "unknown kind" answer is unchanged.
1235
1235
  // A control the owner no longer wants is cancelled with its child's row.
1236
1236
  "vm-create": 2 * 60 * 60,
1237
- "vm-control": 2 * 60 * 60
1237
+ "vm-control": 2 * 60 * 60,
1238
+ // Usage scan (FL-20). The plan proposed 15 minutes (one scan interval); like
1239
+ // the kinds above it does NOT undercut the shortest existing default (the
1240
+ // fallback an unknown kind fails closed to). A scan nobody leased is simply
1241
+ // superseded: the dispatcher never enqueues a second while one is queued.
1242
+ "usage-scan": 2 * 60 * 60,
1243
+ // Actions runners on computers (FL-18). The plan proposed an hour for an
1244
+ // install and ten minutes for a control; like FL-16's kinds they do NOT
1245
+ // undercut the shortest existing default (the fallback an unknown kind fails
1246
+ // closed to), so an older reader's answer for an unknown kind is unchanged.
1247
+ "runner-install": 2 * 60 * 60,
1248
+ "runner-control": 2 * 60 * 60
1238
1249
  });
1239
1250
  var FLEET_JOB_MAX_QUEUED_MAX_AGE_SEC = 7 * 24 * 60 * 60;
1240
1251
  var FLEET_AGENT_EXECUTION_MAX_INSTRUCTIONS_BYTES = 160 * 1024;
@@ -1930,9 +1941,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1930
1941
  waitable: true,
1931
1942
  alwaysHeld: true
1932
1943
  }),
1933
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1934
- // change and a destroy are held for the owner's approval by the Agent tools
1935
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1944
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1945
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1946
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1936
1947
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1937
1948
  phase: "P3",
1938
1949
  route: GET("/api/fleet/cloud"),
@@ -1971,13 +1982,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1971
1982
  waitable: true,
1972
1983
  alwaysHeld: true
1973
1984
  }),
1974
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1985
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1975
1986
  phase: "P3",
1976
1987
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1977
1988
  cli: "fleet cloud idle-policy"
1978
1989
  }),
1979
- // ── runners (FL-18) ──
1980
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1990
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1991
+ // 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.
1993
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1981
1994
  phase: "P3",
1982
1995
  route: GET("/api/fleet/nodes/{id}/runners"),
1983
1996
  cli: "fleet runners list"
@@ -1992,23 +2005,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1992
2005
  "machines",
1993
2006
  "FL-18",
1994
2007
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1995
- "planned",
2008
+ "live",
1996
2009
  confirm("machine.admin"),
1997
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
2010
+ {
2011
+ phase: "P3",
2012
+ route: POST("/api/fleet/nodes/{id}/runners"),
2013
+ cli: "fleet runners install",
2014
+ waitable: true,
2015
+ alwaysHeld: true
2016
+ }
1998
2017
  ),
1999
2018
  act(
2000
2019
  "fleet_runners_action",
2001
2020
  "machines",
2002
2021
  "FL-18",
2003
2022
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2004
- "planned",
2023
+ "live",
2005
2024
  confirm("machine.admin"),
2006
2025
  {
2007
2026
  phase: "P3",
2008
2027
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
2009
2028
  cli: "fleet runners action",
2010
2029
  waitable: true,
2011
- confirmationNote: "plain to start; confirm to stop and restart"
2030
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
2012
2031
  }
2013
2032
  ),
2014
2033
  act(
@@ -2016,9 +2035,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2016
2035
  "machines",
2017
2036
  "FL-18",
2018
2037
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2019
- "planned",
2038
+ "live",
2020
2039
  typed("write.destructive"),
2021
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
2040
+ {
2041
+ phase: "P3",
2042
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
2043
+ cli: "fleet runners remove",
2044
+ waitable: true,
2045
+ alwaysHeld: true
2046
+ }
2022
2047
  ),
2023
2048
  act(
2024
2049
  "fleet_runners_cancel_run",
@@ -2027,10 +2052,12 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
2027
2052
  "FLEET_ACTIONS_RUNNERS_ENABLED",
2028
2053
  "planned",
2029
2054
  confirm("machine.admin"),
2030
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
2055
+ { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
2031
2056
  ),
2032
- // ── usage (FL-20) ──
2033
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
2057
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
2058
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
2059
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
2060
+ phase: "P3",
2034
2061
  route: GET("/api/fleet/usage"),
2035
2062
  cli: "fleet usage"
2036
2063
  }),
@@ -2205,6 +2232,16 @@ var FLEET_VIRTUAL_SYSTEM_IDS = FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
2205
2232
  var FLEET_VIRTUAL_ENROLL_TIMEOUT_MS = 20 * 60 * 1e3;
2206
2233
  var FLEET_CLOUD_OPTIONS_CACHE_MS = 10 * 60 * 1e3;
2207
2234
  var HOUR_MS2 = 60 * 60 * 1e3;
2235
+ var FLEET_CLOUD_USAGE_FRESH_MS = 5 * 60 * 1e3;
2236
+ var FLEET_USAGE_SCAN_INTERVAL_MS = 15 * 60 * 1e3;
2237
+ var FLEET_USAGE_REPORT_MAX_BYTES = 192 * 1024;
2238
+ var FLEET_USAGE_ZERO_TOKENS = Object.freeze({
2239
+ in: 0,
2240
+ out: 0,
2241
+ cacheRead: 0,
2242
+ cacheWrite: 0
2243
+ });
2244
+ var FLEET_ACTIONS_RUNNERS_CLOSED_REFRESH_MS = 5 * 6e4;
2208
2245
  var EMAIL_INBOX_DEFAULT_DAILY_CAP = 100;
2209
2246
  var EMAIL_INBOX_BURST_SENDS = 10;
2210
2247
  var EMAIL_INBOX_BURST_RECIPIENTS = 20;
@@ -2923,7 +2960,14 @@ var PLUGIN_CAPABILITIES = {
2923
2960
  // `capabilities/machine-provider.interface.ts`. Appended **last**, so every
2924
2961
  // existing constant keeps its value and its position, and landed in the same
2925
2962
  // change as the `machine-provider` category in `plugin-manifest.types.ts`.
2926
- MACHINE_PROVIDER: "machine-provider"
2963
+ MACHINE_PROVIDER: "machine-provider",
2964
+ // Actions runners on computers (FL-18, CONTRACTS R-14) — GitHub's self-hosted
2965
+ // runner API through the Ever Works GitHub App (`github-actions-runners`),
2966
+ // consumed only through `ActionsRunnersFacadeService`; see
2967
+ // `capabilities/actions-runners.interface.ts`. Appended last, so every
2968
+ // existing constant keeps its value and its position; no category is added
2969
+ // (the plugin is an `integration`, which exists).
2970
+ ACTIONS_RUNNERS: "actions-runners"
2927
2971
  };
2928
2972
  var ALL_PLUGIN_CAPABILITIES = Object.values(PLUGIN_CAPABILITIES);
2929
2973
  function initializePipelineState(stepDefinitions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/activepieces-plugin",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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.10"
36
+ "@ever-works/plugin": "^1.2.11"
37
37
  },
38
38
  "devDependencies": {
39
- "@ever-works/plugin": "^1.2.10",
39
+ "@ever-works/plugin": "^1.2.11",
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:cf23bfd74244f03c0c2005928420855623bd57934e6bd5a0f1430db827b3f8fe",
80
- "commit": "f5cb0350637a564ce68449b6607a6f8f83ccce9c",
81
- "source": "https://github.com/ever-works/ever-works/tree/f5cb0350637a564ce68449b6607a6f8f83ccce9c/packages/plugins/activepieces"
79
+ "contentHash": "sha256:e1a04e82629b292cf6ed07c0f8bd8ac6dd5138569b5ad3f0f146a0bd077a8647",
80
+ "commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
81
+ "source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/activepieces"
82
82
  }
83
83
  }