@ever-works/everworks-playbooks-plugin 1.0.7 → 1.0.8
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 +37 -21
- package/dist/index.js +37 -21
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1344,9 +1344,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1344
1344
|
waitable: true,
|
|
1345
1345
|
alwaysHeld: true
|
|
1346
1346
|
}),
|
|
1347
|
-
// ── cloud (FL-17) ── P1 shipped
|
|
1348
|
-
// change and a destroy are held for the
|
|
1349
|
-
// (`agent-fleet-cloud-tools.ts`)
|
|
1347
|
+
// ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
|
|
1348
|
+
// (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
|
|
1349
|
+
// owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
|
|
1350
1350
|
read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
|
|
1351
1351
|
phase: "P3",
|
|
1352
1352
|
route: GET("/api/fleet/cloud"),
|
|
@@ -1385,13 +1385,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1385
1385
|
waitable: true,
|
|
1386
1386
|
alwaysHeld: true
|
|
1387
1387
|
}),
|
|
1388
|
-
act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "
|
|
1388
|
+
act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
|
|
1389
1389
|
phase: "P3",
|
|
1390
1390
|
route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
|
|
1391
1391
|
cli: "fleet cloud idle-policy"
|
|
1392
1392
|
}),
|
|
1393
|
-
// ── runners (FL-18) ──
|
|
1394
|
-
|
|
1393
|
+
// ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
|
|
1394
|
+
// stop, a restart and a remove asked by an Agent are held for the owner's approval
|
|
1395
|
+
// (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
|
|
1396
|
+
read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
|
|
1395
1397
|
phase: "P3",
|
|
1396
1398
|
route: GET("/api/fleet/nodes/{id}/runners"),
|
|
1397
1399
|
cli: "fleet runners list"
|
|
@@ -1406,23 +1408,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1406
1408
|
"machines",
|
|
1407
1409
|
"FL-18",
|
|
1408
1410
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1409
|
-
"
|
|
1411
|
+
"live",
|
|
1410
1412
|
confirm("machine.admin"),
|
|
1411
|
-
{
|
|
1413
|
+
{
|
|
1414
|
+
phase: "P3",
|
|
1415
|
+
route: POST("/api/fleet/nodes/{id}/runners"),
|
|
1416
|
+
cli: "fleet runners install",
|
|
1417
|
+
waitable: true,
|
|
1418
|
+
alwaysHeld: true
|
|
1419
|
+
}
|
|
1412
1420
|
),
|
|
1413
1421
|
act(
|
|
1414
1422
|
"fleet_runners_action",
|
|
1415
1423
|
"machines",
|
|
1416
1424
|
"FL-18",
|
|
1417
1425
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1418
|
-
"
|
|
1426
|
+
"live",
|
|
1419
1427
|
confirm("machine.admin"),
|
|
1420
1428
|
{
|
|
1421
1429
|
phase: "P3",
|
|
1422
1430
|
route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
|
|
1423
1431
|
cli: "fleet runners action",
|
|
1424
1432
|
waitable: true,
|
|
1425
|
-
confirmationNote: "plain to start; confirm to stop and restart"
|
|
1433
|
+
confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
|
|
1426
1434
|
}
|
|
1427
1435
|
),
|
|
1428
1436
|
act(
|
|
@@ -1430,9 +1438,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1430
1438
|
"machines",
|
|
1431
1439
|
"FL-18",
|
|
1432
1440
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1433
|
-
"
|
|
1441
|
+
"live",
|
|
1434
1442
|
typed("write.destructive"),
|
|
1435
|
-
{
|
|
1443
|
+
{
|
|
1444
|
+
phase: "P3",
|
|
1445
|
+
route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
|
|
1446
|
+
cli: "fleet runners remove",
|
|
1447
|
+
waitable: true,
|
|
1448
|
+
alwaysHeld: true
|
|
1449
|
+
}
|
|
1436
1450
|
),
|
|
1437
1451
|
act(
|
|
1438
1452
|
"fleet_runners_cancel_run",
|
|
@@ -1441,10 +1455,12 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1441
1455
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1442
1456
|
"planned",
|
|
1443
1457
|
confirm("machine.admin"),
|
|
1444
|
-
{ phase: "P3", route: POST("/api/fleet/runners/jobs/
|
|
1458
|
+
{ phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
|
|
1445
1459
|
),
|
|
1446
|
-
// ── usage (FL-20) ──
|
|
1447
|
-
|
|
1460
|
+
// ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
|
|
1461
|
+
// checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
|
|
1462
|
+
read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
|
|
1463
|
+
phase: "P3",
|
|
1448
1464
|
route: GET("/api/fleet/usage"),
|
|
1449
1465
|
cli: "fleet usage"
|
|
1450
1466
|
}),
|
|
@@ -1620,9 +1636,9 @@ function validateWorkflowGraph(graph) {
|
|
|
1620
1636
|
if (!nodeIds.has(edge.from)) errors.push(`edge "${edge.id}" leaves unknown node "${edge.from}"`);
|
|
1621
1637
|
if (!nodeIds.has(edge.to)) errors.push(`edge "${edge.id}" points at unknown node "${edge.to}"`);
|
|
1622
1638
|
if (edge.kind === "sequential") {
|
|
1623
|
-
const
|
|
1624
|
-
sequentialBySource.set(edge.from,
|
|
1625
|
-
if (
|
|
1639
|
+
const count5 = (sequentialBySource.get(edge.from) ?? 0) + 1;
|
|
1640
|
+
sequentialBySource.set(edge.from, count5);
|
|
1641
|
+
if (count5 === 2) {
|
|
1626
1642
|
errors.push(
|
|
1627
1643
|
`node "${edge.from}" has more than one sequential edge \u2014 use conditional or llm_decide to branch`
|
|
1628
1644
|
);
|
|
@@ -1645,9 +1661,9 @@ function validateWorkflowGraph(graph) {
|
|
|
1645
1661
|
choicesBySource.set(edge.from, choices);
|
|
1646
1662
|
}
|
|
1647
1663
|
if (edge.fallback) {
|
|
1648
|
-
const
|
|
1649
|
-
fallbacksBySource.set(edge.from,
|
|
1650
|
-
if (
|
|
1664
|
+
const count5 = (fallbacksBySource.get(edge.from) ?? 0) + 1;
|
|
1665
|
+
fallbacksBySource.set(edge.from, count5);
|
|
1666
|
+
if (count5 === 2) {
|
|
1651
1667
|
errors.push(`node "${edge.from}" has more than one llm_decide fallback arm`);
|
|
1652
1668
|
}
|
|
1653
1669
|
}
|
package/dist/index.js
CHANGED
|
@@ -1340,9 +1340,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1340
1340
|
waitable: true,
|
|
1341
1341
|
alwaysHeld: true
|
|
1342
1342
|
}),
|
|
1343
|
-
// ── cloud (FL-17) ── P1 shipped
|
|
1344
|
-
// change and a destroy are held for the
|
|
1345
|
-
// (`agent-fleet-cloud-tools.ts`)
|
|
1343
|
+
// ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
|
|
1344
|
+
// (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
|
|
1345
|
+
// owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
|
|
1346
1346
|
read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
|
|
1347
1347
|
phase: "P3",
|
|
1348
1348
|
route: GET("/api/fleet/cloud"),
|
|
@@ -1381,13 +1381,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1381
1381
|
waitable: true,
|
|
1382
1382
|
alwaysHeld: true
|
|
1383
1383
|
}),
|
|
1384
|
-
act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "
|
|
1384
|
+
act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
|
|
1385
1385
|
phase: "P3",
|
|
1386
1386
|
route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
|
|
1387
1387
|
cli: "fleet cloud idle-policy"
|
|
1388
1388
|
}),
|
|
1389
|
-
// ── runners (FL-18) ──
|
|
1390
|
-
|
|
1389
|
+
// ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
|
|
1390
|
+
// stop, a restart and a remove asked by an Agent are held for the owner's approval
|
|
1391
|
+
// (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
|
|
1392
|
+
read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
|
|
1391
1393
|
phase: "P3",
|
|
1392
1394
|
route: GET("/api/fleet/nodes/{id}/runners"),
|
|
1393
1395
|
cli: "fleet runners list"
|
|
@@ -1402,23 +1404,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1402
1404
|
"machines",
|
|
1403
1405
|
"FL-18",
|
|
1404
1406
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1405
|
-
"
|
|
1407
|
+
"live",
|
|
1406
1408
|
confirm("machine.admin"),
|
|
1407
|
-
{
|
|
1409
|
+
{
|
|
1410
|
+
phase: "P3",
|
|
1411
|
+
route: POST("/api/fleet/nodes/{id}/runners"),
|
|
1412
|
+
cli: "fleet runners install",
|
|
1413
|
+
waitable: true,
|
|
1414
|
+
alwaysHeld: true
|
|
1415
|
+
}
|
|
1408
1416
|
),
|
|
1409
1417
|
act(
|
|
1410
1418
|
"fleet_runners_action",
|
|
1411
1419
|
"machines",
|
|
1412
1420
|
"FL-18",
|
|
1413
1421
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1414
|
-
"
|
|
1422
|
+
"live",
|
|
1415
1423
|
confirm("machine.admin"),
|
|
1416
1424
|
{
|
|
1417
1425
|
phase: "P3",
|
|
1418
1426
|
route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
|
|
1419
1427
|
cli: "fleet runners action",
|
|
1420
1428
|
waitable: true,
|
|
1421
|
-
confirmationNote: "plain to start; confirm to stop and restart"
|
|
1429
|
+
confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
|
|
1422
1430
|
}
|
|
1423
1431
|
),
|
|
1424
1432
|
act(
|
|
@@ -1426,9 +1434,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1426
1434
|
"machines",
|
|
1427
1435
|
"FL-18",
|
|
1428
1436
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1429
|
-
"
|
|
1437
|
+
"live",
|
|
1430
1438
|
typed("write.destructive"),
|
|
1431
|
-
{
|
|
1439
|
+
{
|
|
1440
|
+
phase: "P3",
|
|
1441
|
+
route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
|
|
1442
|
+
cli: "fleet runners remove",
|
|
1443
|
+
waitable: true,
|
|
1444
|
+
alwaysHeld: true
|
|
1445
|
+
}
|
|
1432
1446
|
),
|
|
1433
1447
|
act(
|
|
1434
1448
|
"fleet_runners_cancel_run",
|
|
@@ -1437,10 +1451,12 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
|
|
|
1437
1451
|
"FLEET_ACTIONS_RUNNERS_ENABLED",
|
|
1438
1452
|
"planned",
|
|
1439
1453
|
confirm("machine.admin"),
|
|
1440
|
-
{ phase: "P3", route: POST("/api/fleet/runners/jobs/
|
|
1454
|
+
{ phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
|
|
1441
1455
|
),
|
|
1442
|
-
// ── usage (FL-20) ──
|
|
1443
|
-
|
|
1456
|
+
// ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
|
|
1457
|
+
// checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
|
|
1458
|
+
read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
|
|
1459
|
+
phase: "P3",
|
|
1444
1460
|
route: GET("/api/fleet/usage"),
|
|
1445
1461
|
cli: "fleet usage"
|
|
1446
1462
|
}),
|
|
@@ -1616,9 +1632,9 @@ function validateWorkflowGraph(graph) {
|
|
|
1616
1632
|
if (!nodeIds.has(edge.from)) errors.push(`edge "${edge.id}" leaves unknown node "${edge.from}"`);
|
|
1617
1633
|
if (!nodeIds.has(edge.to)) errors.push(`edge "${edge.id}" points at unknown node "${edge.to}"`);
|
|
1618
1634
|
if (edge.kind === "sequential") {
|
|
1619
|
-
const
|
|
1620
|
-
sequentialBySource.set(edge.from,
|
|
1621
|
-
if (
|
|
1635
|
+
const count5 = (sequentialBySource.get(edge.from) ?? 0) + 1;
|
|
1636
|
+
sequentialBySource.set(edge.from, count5);
|
|
1637
|
+
if (count5 === 2) {
|
|
1622
1638
|
errors.push(
|
|
1623
1639
|
`node "${edge.from}" has more than one sequential edge \u2014 use conditional or llm_decide to branch`
|
|
1624
1640
|
);
|
|
@@ -1641,9 +1657,9 @@ function validateWorkflowGraph(graph) {
|
|
|
1641
1657
|
choicesBySource.set(edge.from, choices);
|
|
1642
1658
|
}
|
|
1643
1659
|
if (edge.fallback) {
|
|
1644
|
-
const
|
|
1645
|
-
fallbacksBySource.set(edge.from,
|
|
1646
|
-
if (
|
|
1660
|
+
const count5 = (fallbacksBySource.get(edge.from) ?? 0) + 1;
|
|
1661
|
+
fallbacksBySource.set(edge.from, count5);
|
|
1662
|
+
if (count5 === 2) {
|
|
1647
1663
|
errors.push(`node "${edge.from}" has more than one llm_decide fallback arm`);
|
|
1648
1664
|
}
|
|
1649
1665
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/everworks-playbooks-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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.
|
|
37
|
-
"@ever-works/plugin": "^1.2.
|
|
36
|
+
"@ever-works/contracts": "^1.0.15",
|
|
37
|
+
"@ever-works/plugin": "^1.2.11"
|
|
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:
|
|
71
|
-
"commit": "
|
|
72
|
-
"source": "https://github.com/ever-works/ever-works/tree/
|
|
70
|
+
"contentHash": "sha256:5e796c91139307b41162ee7c47ea6e098c8e52588afb3c4ebbf219dea13ad185",
|
|
71
|
+
"commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
|
|
72
|
+
"source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/everworks-playbooks"
|
|
73
73
|
}
|
|
74
74
|
}
|