@ever-works/everworks-playbooks-plugin 1.0.7 → 1.0.9

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
@@ -990,7 +990,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
990
990
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
991
991
  cli: "fleet desktop screenshot"
992
992
  }),
993
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
993
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
994
994
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
995
995
  cli: "fleet desktop displays"
996
996
  }),
@@ -1264,6 +1264,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1264
1264
  route: GET("/api/fleet/checkouts/{id}/changes"),
1265
1265
  cli: "fleet checkouts changes"
1266
1266
  }),
1267
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1268
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1269
+ }),
1267
1270
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1268
1271
  route: POST("/api/fleet/checkouts"),
1269
1272
  cli: "fleet checkouts create",
@@ -1344,9 +1347,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1344
1347
  waitable: true,
1345
1348
  alwaysHeld: true
1346
1349
  }),
1347
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1348
- // change and a destroy are held for the owner's approval by the Agent tools
1349
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1350
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1351
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1352
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1350
1353
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1351
1354
  phase: "P3",
1352
1355
  route: GET("/api/fleet/cloud"),
@@ -1385,18 +1388,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1385
1388
  waitable: true,
1386
1389
  alwaysHeld: true
1387
1390
  }),
1388
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1391
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1389
1392
  phase: "P3",
1390
1393
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1391
1394
  cli: "fleet cloud idle-policy"
1392
1395
  }),
1393
- // ── runners (FL-18) ──
1394
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1396
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1397
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1398
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1399
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1395
1400
  phase: "P3",
1396
1401
  route: GET("/api/fleet/nodes/{id}/runners"),
1397
1402
  cli: "fleet runners list"
1398
1403
  }),
1399
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1404
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1400
1405
  phase: "P3",
1401
1406
  route: GET("/api/fleet/runners/jobs"),
1402
1407
  cli: "fleet runners jobs"
@@ -1406,23 +1411,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1406
1411
  "machines",
1407
1412
  "FL-18",
1408
1413
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1409
- "planned",
1414
+ "live",
1410
1415
  confirm("machine.admin"),
1411
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1416
+ {
1417
+ phase: "P3",
1418
+ route: POST("/api/fleet/nodes/{id}/runners"),
1419
+ cli: "fleet runners install",
1420
+ waitable: true,
1421
+ alwaysHeld: true
1422
+ }
1412
1423
  ),
1413
1424
  act(
1414
1425
  "fleet_runners_action",
1415
1426
  "machines",
1416
1427
  "FL-18",
1417
1428
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1418
- "planned",
1429
+ "live",
1419
1430
  confirm("machine.admin"),
1420
1431
  {
1421
1432
  phase: "P3",
1422
1433
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1423
1434
  cli: "fleet runners action",
1424
1435
  waitable: true,
1425
- confirmationNote: "plain to start; confirm to stop and restart"
1436
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1426
1437
  }
1427
1438
  ),
1428
1439
  act(
@@ -1430,21 +1441,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1430
1441
  "machines",
1431
1442
  "FL-18",
1432
1443
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1433
- "planned",
1444
+ "live",
1434
1445
  typed("write.destructive"),
1435
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1446
+ {
1447
+ phase: "P3",
1448
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1449
+ cli: "fleet runners remove",
1450
+ waitable: true,
1451
+ alwaysHeld: true
1452
+ }
1436
1453
  ),
1437
1454
  act(
1438
1455
  "fleet_runners_cancel_run",
1439
1456
  "machines",
1440
1457
  "FL-18",
1441
1458
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1442
- "planned",
1459
+ "live",
1443
1460
  confirm("machine.admin"),
1444
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1461
+ {
1462
+ phase: "P3",
1463
+ route: POST("/api/fleet/runners/jobs/cancel"),
1464
+ cli: "fleet runners cancel-run",
1465
+ alwaysHeld: true
1466
+ }
1445
1467
  ),
1446
- // ── usage (FL-20) ──
1447
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1468
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1469
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1470
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1471
+ phase: "P3",
1448
1472
  route: GET("/api/fleet/usage"),
1449
1473
  cli: "fleet usage"
1450
1474
  }),
@@ -1562,7 +1586,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1562
1586
  approxDownloadGiB: 0.7
1563
1587
  }
1564
1588
  ];
1565
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1589
+ FLEET_VIRTUAL_SYSTEMS.map(
1590
+ (system) => system.id
1591
+ );
1566
1592
  var WORKFLOW_EDGE_KINDS = [
1567
1593
  "sequential",
1568
1594
  "on_failure",
@@ -1620,9 +1646,9 @@ function validateWorkflowGraph(graph) {
1620
1646
  if (!nodeIds.has(edge.from)) errors.push(`edge "${edge.id}" leaves unknown node "${edge.from}"`);
1621
1647
  if (!nodeIds.has(edge.to)) errors.push(`edge "${edge.id}" points at unknown node "${edge.to}"`);
1622
1648
  if (edge.kind === "sequential") {
1623
- const count4 = (sequentialBySource.get(edge.from) ?? 0) + 1;
1624
- sequentialBySource.set(edge.from, count4);
1625
- if (count4 === 2) {
1649
+ const count5 = (sequentialBySource.get(edge.from) ?? 0) + 1;
1650
+ sequentialBySource.set(edge.from, count5);
1651
+ if (count5 === 2) {
1626
1652
  errors.push(
1627
1653
  `node "${edge.from}" has more than one sequential edge \u2014 use conditional or llm_decide to branch`
1628
1654
  );
@@ -1645,9 +1671,9 @@ function validateWorkflowGraph(graph) {
1645
1671
  choicesBySource.set(edge.from, choices);
1646
1672
  }
1647
1673
  if (edge.fallback) {
1648
- const count4 = (fallbacksBySource.get(edge.from) ?? 0) + 1;
1649
- fallbacksBySource.set(edge.from, count4);
1650
- if (count4 === 2) {
1674
+ const count5 = (fallbacksBySource.get(edge.from) ?? 0) + 1;
1675
+ fallbacksBySource.set(edge.from, count5);
1676
+ if (count5 === 2) {
1651
1677
  errors.push(`node "${edge.from}" has more than one llm_decide fallback arm`);
1652
1678
  }
1653
1679
  }
package/dist/index.js CHANGED
@@ -986,7 +986,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
986
986
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
987
987
  cli: "fleet desktop screenshot"
988
988
  }),
989
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
989
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
990
990
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
991
991
  cli: "fleet desktop displays"
992
992
  }),
@@ -1260,6 +1260,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1260
1260
  route: GET("/api/fleet/checkouts/{id}/changes"),
1261
1261
  cli: "fleet checkouts changes"
1262
1262
  }),
1263
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1264
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1265
+ }),
1263
1266
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1264
1267
  route: POST("/api/fleet/checkouts"),
1265
1268
  cli: "fleet checkouts create",
@@ -1340,9 +1343,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1340
1343
  waitable: true,
1341
1344
  alwaysHeld: true
1342
1345
  }),
1343
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1344
- // change and a destroy are held for the owner's approval by the Agent tools
1345
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1346
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1347
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1348
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1346
1349
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1347
1350
  phase: "P3",
1348
1351
  route: GET("/api/fleet/cloud"),
@@ -1381,18 +1384,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1381
1384
  waitable: true,
1382
1385
  alwaysHeld: true
1383
1386
  }),
1384
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1387
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1385
1388
  phase: "P3",
1386
1389
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1387
1390
  cli: "fleet cloud idle-policy"
1388
1391
  }),
1389
- // ── runners (FL-18) ──
1390
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1392
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1393
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1394
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1395
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1391
1396
  phase: "P3",
1392
1397
  route: GET("/api/fleet/nodes/{id}/runners"),
1393
1398
  cli: "fleet runners list"
1394
1399
  }),
1395
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1400
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1396
1401
  phase: "P3",
1397
1402
  route: GET("/api/fleet/runners/jobs"),
1398
1403
  cli: "fleet runners jobs"
@@ -1402,23 +1407,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1402
1407
  "machines",
1403
1408
  "FL-18",
1404
1409
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1405
- "planned",
1410
+ "live",
1406
1411
  confirm("machine.admin"),
1407
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1412
+ {
1413
+ phase: "P3",
1414
+ route: POST("/api/fleet/nodes/{id}/runners"),
1415
+ cli: "fleet runners install",
1416
+ waitable: true,
1417
+ alwaysHeld: true
1418
+ }
1408
1419
  ),
1409
1420
  act(
1410
1421
  "fleet_runners_action",
1411
1422
  "machines",
1412
1423
  "FL-18",
1413
1424
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1414
- "planned",
1425
+ "live",
1415
1426
  confirm("machine.admin"),
1416
1427
  {
1417
1428
  phase: "P3",
1418
1429
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1419
1430
  cli: "fleet runners action",
1420
1431
  waitable: true,
1421
- confirmationNote: "plain to start; confirm to stop and restart"
1432
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1422
1433
  }
1423
1434
  ),
1424
1435
  act(
@@ -1426,21 +1437,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1426
1437
  "machines",
1427
1438
  "FL-18",
1428
1439
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1429
- "planned",
1440
+ "live",
1430
1441
  typed("write.destructive"),
1431
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1442
+ {
1443
+ phase: "P3",
1444
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1445
+ cli: "fleet runners remove",
1446
+ waitable: true,
1447
+ alwaysHeld: true
1448
+ }
1432
1449
  ),
1433
1450
  act(
1434
1451
  "fleet_runners_cancel_run",
1435
1452
  "machines",
1436
1453
  "FL-18",
1437
1454
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1438
- "planned",
1455
+ "live",
1439
1456
  confirm("machine.admin"),
1440
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1457
+ {
1458
+ phase: "P3",
1459
+ route: POST("/api/fleet/runners/jobs/cancel"),
1460
+ cli: "fleet runners cancel-run",
1461
+ alwaysHeld: true
1462
+ }
1441
1463
  ),
1442
- // ── usage (FL-20) ──
1443
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1464
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1465
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1466
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1467
+ phase: "P3",
1444
1468
  route: GET("/api/fleet/usage"),
1445
1469
  cli: "fleet usage"
1446
1470
  }),
@@ -1558,7 +1582,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1558
1582
  approxDownloadGiB: 0.7
1559
1583
  }
1560
1584
  ];
1561
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1585
+ FLEET_VIRTUAL_SYSTEMS.map(
1586
+ (system) => system.id
1587
+ );
1562
1588
  var WORKFLOW_EDGE_KINDS = [
1563
1589
  "sequential",
1564
1590
  "on_failure",
@@ -1616,9 +1642,9 @@ function validateWorkflowGraph(graph) {
1616
1642
  if (!nodeIds.has(edge.from)) errors.push(`edge "${edge.id}" leaves unknown node "${edge.from}"`);
1617
1643
  if (!nodeIds.has(edge.to)) errors.push(`edge "${edge.id}" points at unknown node "${edge.to}"`);
1618
1644
  if (edge.kind === "sequential") {
1619
- const count4 = (sequentialBySource.get(edge.from) ?? 0) + 1;
1620
- sequentialBySource.set(edge.from, count4);
1621
- if (count4 === 2) {
1645
+ const count5 = (sequentialBySource.get(edge.from) ?? 0) + 1;
1646
+ sequentialBySource.set(edge.from, count5);
1647
+ if (count5 === 2) {
1622
1648
  errors.push(
1623
1649
  `node "${edge.from}" has more than one sequential edge \u2014 use conditional or llm_decide to branch`
1624
1650
  );
@@ -1641,9 +1667,9 @@ function validateWorkflowGraph(graph) {
1641
1667
  choicesBySource.set(edge.from, choices);
1642
1668
  }
1643
1669
  if (edge.fallback) {
1644
- const count4 = (fallbacksBySource.get(edge.from) ?? 0) + 1;
1645
- fallbacksBySource.set(edge.from, count4);
1646
- if (count4 === 2) {
1670
+ const count5 = (fallbacksBySource.get(edge.from) ?? 0) + 1;
1671
+ fallbacksBySource.set(edge.from, count5);
1672
+ if (count5 === 2) {
1647
1673
  errors.push(`node "${edge.from}" has more than one llm_decide fallback arm`);
1648
1674
  }
1649
1675
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/everworks-playbooks-plugin",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Ever Works Playbooks — first-party playbook-provider plugin supplying the built-in Playbook catalogue: packaged outcomes with their trigger, steps, required capabilities, artefacts and escalation points.",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -33,8 +33,8 @@
33
33
  "test:coverage": "vitest run --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@ever-works/contracts": "^1.0.14",
37
- "@ever-works/plugin": "^1.2.10"
36
+ "@ever-works/contracts": "^1.0.16",
37
+ "@ever-works/plugin": "^1.2.12"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsup": "^8.3.0",
@@ -67,8 +67,8 @@
67
67
  "url": "https://github.com/ever-works/ever-works/issues"
68
68
  },
69
69
  "everworksRelease": {
70
- "contentHash": "sha256:f80eaaec8b36951d32085556e9a75f72c28f5cfe0daf2cb3592e595a06e36575",
71
- "commit": "f5cb0350637a564ce68449b6607a6f8f83ccce9c",
72
- "source": "https://github.com/ever-works/ever-works/tree/f5cb0350637a564ce68449b6607a6f8f83ccce9c/packages/plugins/everworks-playbooks"
70
+ "contentHash": "sha256:849dafa14aa23dca8a4a23f889bae5fd553dfce146ff6ddbcddcd2aac3d25dcd",
71
+ "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
72
+ "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/everworks-playbooks"
73
73
  }
74
74
  }