@ever-works/pty-local-plugin 1.0.8 → 1.0.10

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
@@ -997,7 +997,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
997
997
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
998
998
  cli: "fleet desktop screenshot"
999
999
  }),
1000
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1000
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
1001
1001
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1002
1002
  cli: "fleet desktop displays"
1003
1003
  }),
@@ -1271,6 +1271,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1271
1271
  route: GET("/api/fleet/checkouts/{id}/changes"),
1272
1272
  cli: "fleet checkouts changes"
1273
1273
  }),
1274
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1275
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1276
+ }),
1274
1277
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1275
1278
  route: POST("/api/fleet/checkouts"),
1276
1279
  cli: "fleet checkouts create",
@@ -1351,9 +1354,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1351
1354
  waitable: true,
1352
1355
  alwaysHeld: true
1353
1356
  }),
1354
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1355
- // change and a destroy are held for the owner's approval by the Agent tools
1356
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1357
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1358
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1359
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1357
1360
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1358
1361
  phase: "P3",
1359
1362
  route: GET("/api/fleet/cloud"),
@@ -1392,18 +1395,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1392
1395
  waitable: true,
1393
1396
  alwaysHeld: true
1394
1397
  }),
1395
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1398
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1396
1399
  phase: "P3",
1397
1400
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1398
1401
  cli: "fleet cloud idle-policy"
1399
1402
  }),
1400
- // ── runners (FL-18) ──
1401
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1403
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1404
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1405
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1406
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1402
1407
  phase: "P3",
1403
1408
  route: GET("/api/fleet/nodes/{id}/runners"),
1404
1409
  cli: "fleet runners list"
1405
1410
  }),
1406
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1411
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1407
1412
  phase: "P3",
1408
1413
  route: GET("/api/fleet/runners/jobs"),
1409
1414
  cli: "fleet runners jobs"
@@ -1413,23 +1418,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1413
1418
  "machines",
1414
1419
  "FL-18",
1415
1420
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1416
- "planned",
1421
+ "live",
1417
1422
  confirm("machine.admin"),
1418
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1423
+ {
1424
+ phase: "P3",
1425
+ route: POST("/api/fleet/nodes/{id}/runners"),
1426
+ cli: "fleet runners install",
1427
+ waitable: true,
1428
+ alwaysHeld: true
1429
+ }
1419
1430
  ),
1420
1431
  act(
1421
1432
  "fleet_runners_action",
1422
1433
  "machines",
1423
1434
  "FL-18",
1424
1435
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1425
- "planned",
1436
+ "live",
1426
1437
  confirm("machine.admin"),
1427
1438
  {
1428
1439
  phase: "P3",
1429
1440
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1430
1441
  cli: "fleet runners action",
1431
1442
  waitable: true,
1432
- confirmationNote: "plain to start; confirm to stop and restart"
1443
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1433
1444
  }
1434
1445
  ),
1435
1446
  act(
@@ -1437,21 +1448,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1437
1448
  "machines",
1438
1449
  "FL-18",
1439
1450
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1440
- "planned",
1451
+ "live",
1441
1452
  typed("write.destructive"),
1442
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1453
+ {
1454
+ phase: "P3",
1455
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1456
+ cli: "fleet runners remove",
1457
+ waitable: true,
1458
+ alwaysHeld: true
1459
+ }
1443
1460
  ),
1444
1461
  act(
1445
1462
  "fleet_runners_cancel_run",
1446
1463
  "machines",
1447
1464
  "FL-18",
1448
1465
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1449
- "planned",
1466
+ "live",
1450
1467
  confirm("machine.admin"),
1451
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1468
+ {
1469
+ phase: "P3",
1470
+ route: POST("/api/fleet/runners/jobs/cancel"),
1471
+ cli: "fleet runners cancel-run",
1472
+ alwaysHeld: true
1473
+ }
1452
1474
  ),
1453
- // ── usage (FL-20) ──
1454
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1475
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1476
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1477
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1478
+ phase: "P3",
1455
1479
  route: GET("/api/fleet/usage"),
1456
1480
  cli: "fleet usage"
1457
1481
  }),
@@ -1569,7 +1593,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1569
1593
  approxDownloadGiB: 0.7
1570
1594
  }
1571
1595
  ];
1572
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1596
+ FLEET_VIRTUAL_SYSTEMS.map(
1597
+ (system) => system.id
1598
+ );
1573
1599
  var EMAIL_INBOX_CAP_FIELDS = [
1574
1600
  "inboxDailySends",
1575
1601
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -993,7 +993,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
993
993
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
994
994
  cli: "fleet desktop screenshot"
995
995
  }),
996
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
996
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
997
997
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
998
998
  cli: "fleet desktop displays"
999
999
  }),
@@ -1267,6 +1267,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1267
1267
  route: GET("/api/fleet/checkouts/{id}/changes"),
1268
1268
  cli: "fleet checkouts changes"
1269
1269
  }),
1270
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1271
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1272
+ }),
1270
1273
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1271
1274
  route: POST("/api/fleet/checkouts"),
1272
1275
  cli: "fleet checkouts create",
@@ -1347,9 +1350,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1347
1350
  waitable: true,
1348
1351
  alwaysHeld: true
1349
1352
  }),
1350
- // ── cloud (FL-17) ── P1 shipped: providers, create, power, destroy, usage. A create, a power
1351
- // change and a destroy are held for the owner's approval by the Agent tools
1352
- // (`agent-fleet-cloud-tools.ts`); the idle policy arrives with P2.
1353
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1354
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1355
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1353
1356
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1354
1357
  phase: "P3",
1355
1358
  route: GET("/api/fleet/cloud"),
@@ -1388,18 +1391,20 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1388
1391
  waitable: true,
1389
1392
  alwaysHeld: true
1390
1393
  }),
1391
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1394
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1392
1395
  phase: "P3",
1393
1396
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1394
1397
  cli: "fleet cloud idle-policy"
1395
1398
  }),
1396
- // ── runners (FL-18) ──
1397
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1399
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1400
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1401
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1402
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1398
1403
  phase: "P3",
1399
1404
  route: GET("/api/fleet/nodes/{id}/runners"),
1400
1405
  cli: "fleet runners list"
1401
1406
  }),
1402
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1407
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1403
1408
  phase: "P3",
1404
1409
  route: GET("/api/fleet/runners/jobs"),
1405
1410
  cli: "fleet runners jobs"
@@ -1409,23 +1414,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1409
1414
  "machines",
1410
1415
  "FL-18",
1411
1416
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1412
- "planned",
1417
+ "live",
1413
1418
  confirm("machine.admin"),
1414
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1419
+ {
1420
+ phase: "P3",
1421
+ route: POST("/api/fleet/nodes/{id}/runners"),
1422
+ cli: "fleet runners install",
1423
+ waitable: true,
1424
+ alwaysHeld: true
1425
+ }
1415
1426
  ),
1416
1427
  act(
1417
1428
  "fleet_runners_action",
1418
1429
  "machines",
1419
1430
  "FL-18",
1420
1431
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1421
- "planned",
1432
+ "live",
1422
1433
  confirm("machine.admin"),
1423
1434
  {
1424
1435
  phase: "P3",
1425
1436
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1426
1437
  cli: "fleet runners action",
1427
1438
  waitable: true,
1428
- confirmationNote: "plain to start; confirm to stop and restart"
1439
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1429
1440
  }
1430
1441
  ),
1431
1442
  act(
@@ -1433,21 +1444,34 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1433
1444
  "machines",
1434
1445
  "FL-18",
1435
1446
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1436
- "planned",
1447
+ "live",
1437
1448
  typed("write.destructive"),
1438
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1449
+ {
1450
+ phase: "P3",
1451
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1452
+ cli: "fleet runners remove",
1453
+ waitable: true,
1454
+ alwaysHeld: true
1455
+ }
1439
1456
  ),
1440
1457
  act(
1441
1458
  "fleet_runners_cancel_run",
1442
1459
  "machines",
1443
1460
  "FL-18",
1444
1461
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1445
- "planned",
1462
+ "live",
1446
1463
  confirm("machine.admin"),
1447
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1464
+ {
1465
+ phase: "P3",
1466
+ route: POST("/api/fleet/runners/jobs/cancel"),
1467
+ cli: "fleet runners cancel-run",
1468
+ alwaysHeld: true
1469
+ }
1448
1470
  ),
1449
- // ── usage (FL-20) ──
1450
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1471
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1472
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1473
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1474
+ phase: "P3",
1451
1475
  route: GET("/api/fleet/usage"),
1452
1476
  cli: "fleet usage"
1453
1477
  }),
@@ -1565,7 +1589,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1565
1589
  approxDownloadGiB: 0.7
1566
1590
  }
1567
1591
  ];
1568
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1592
+ FLEET_VIRTUAL_SYSTEMS.map(
1593
+ (system) => system.id
1594
+ );
1569
1595
  var EMAIL_INBOX_CAP_FIELDS = [
1570
1596
  "inboxDailySends",
1571
1597
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/pty-local-plugin",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Streaming-terminal session host for Ever Works — spawns the agent CLI under a real PTY inside the executing job-runtime worker (node-pty prebuilt), degrading to a child_process pipe floor when the native addon is unavailable.",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,14 +32,14 @@
32
32
  "test:coverage": "vitest run --coverage"
33
33
  },
34
34
  "peerDependencies": {
35
- "@ever-works/plugin": "^1.2.10"
35
+ "@ever-works/plugin": "^1.2.12"
36
36
  },
37
37
  "optionalDependencies": {
38
38
  "@homebridge/node-pty-prebuilt-multiarch": "^0.13.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@ever-works/contracts": "^1.0.14",
42
- "@ever-works/plugin": "^1.2.10",
41
+ "@ever-works/contracts": "^1.0.16",
42
+ "@ever-works/plugin": "^1.2.12",
43
43
  "@types/node": "^26.6.4",
44
44
  "tsup": "^8.4.0",
45
45
  "typescript": "^5.7.3",
@@ -70,8 +70,8 @@
70
70
  "url": "https://github.com/ever-works/ever-works/issues"
71
71
  },
72
72
  "everworksRelease": {
73
- "contentHash": "sha256:2ac252e3a92f83bb82554b6030f0c6d15700198a148d3441bfec3d234d464390",
74
- "commit": "f5cb0350637a564ce68449b6607a6f8f83ccce9c",
75
- "source": "https://github.com/ever-works/ever-works/tree/f5cb0350637a564ce68449b6607a6f8f83ccce9c/packages/plugins/pty-local"
73
+ "contentHash": "sha256:25c7024b8d54101da25188527a612aaa5eaa44541bad75c25ca463a70705d508",
74
+ "commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
75
+ "source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/pty-local"
76
76
  }
77
77
  }