@ever-works/pty-local-plugin 1.0.8 → 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
@@ -1351,9 +1351,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1351
1351
  waitable: true,
1352
1352
  alwaysHeld: true
1353
1353
  }),
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.
1354
+ // ── cloud (FL-17) ── P1 shipped providers, create, power, destroy, usage; P2 the idle policy
1355
+ // (`PUT` answers the same as `PATCH`). A create, a power change and a destroy are held for the
1356
+ // owner's approval by the Agent tools (`agent-fleet-cloud-tools.ts`).
1357
1357
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1358
1358
  phase: "P3",
1359
1359
  route: GET("/api/fleet/cloud"),
@@ -1392,13 +1392,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1392
1392
  waitable: true,
1393
1393
  alwaysHeld: true
1394
1394
  }),
1395
- act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "planned", plain("machine.admin"), {
1395
+ act("fleet_cloud_idle_policy", "machines", "FL-17", "FLEET_CLOUD_ENABLED", "live", plain("machine.admin"), {
1396
1396
  phase: "P3",
1397
1397
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1398
1398
  cli: "fleet cloud idle-policy"
1399
1399
  }),
1400
- // ── runners (FL-18) ──
1401
- read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1400
+ // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1401
+ // stop, a restart and a remove asked by an Agent are held for the owner's approval
1402
+ // (`agent-fleet-runners-tools.ts`). The Actions jobs read and Cancel workflow run arrive with P2.
1403
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1402
1404
  phase: "P3",
1403
1405
  route: GET("/api/fleet/nodes/{id}/runners"),
1404
1406
  cli: "fleet runners list"
@@ -1413,23 +1415,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1413
1415
  "machines",
1414
1416
  "FL-18",
1415
1417
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1416
- "planned",
1418
+ "live",
1417
1419
  confirm("machine.admin"),
1418
- { phase: "P3", route: POST("/api/fleet/nodes/{id}/runners"), cli: "fleet runners install", waitable: true }
1420
+ {
1421
+ phase: "P3",
1422
+ route: POST("/api/fleet/nodes/{id}/runners"),
1423
+ cli: "fleet runners install",
1424
+ waitable: true,
1425
+ alwaysHeld: true
1426
+ }
1419
1427
  ),
1420
1428
  act(
1421
1429
  "fleet_runners_action",
1422
1430
  "machines",
1423
1431
  "FL-18",
1424
1432
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1425
- "planned",
1433
+ "live",
1426
1434
  confirm("machine.admin"),
1427
1435
  {
1428
1436
  phase: "P3",
1429
1437
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1430
1438
  cli: "fleet runners action",
1431
1439
  waitable: true,
1432
- confirmationNote: "plain to start; confirm to stop and restart"
1440
+ confirmationNote: "plain to start; confirm to stop and restart (an Agent's stop or restart is held for the owner)"
1433
1441
  }
1434
1442
  ),
1435
1443
  act(
@@ -1437,9 +1445,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1437
1445
  "machines",
1438
1446
  "FL-18",
1439
1447
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1440
- "planned",
1448
+ "live",
1441
1449
  typed("write.destructive"),
1442
- { phase: "P3", route: DELETE("/api/fleet/nodes/{id}/runners/{runnerId}"), cli: "fleet runners remove" }
1450
+ {
1451
+ phase: "P3",
1452
+ route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/remove"),
1453
+ cli: "fleet runners remove",
1454
+ waitable: true,
1455
+ alwaysHeld: true
1456
+ }
1443
1457
  ),
1444
1458
  act(
1445
1459
  "fleet_runners_cancel_run",
@@ -1448,10 +1462,12 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1448
1462
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1449
1463
  "planned",
1450
1464
  confirm("machine.admin"),
1451
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1465
+ { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1452
1466
  ),
1453
- // ── usage (FL-20) ──
1454
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1467
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1468
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1469
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1470
+ phase: "P3",
1455
1471
  route: GET("/api/fleet/usage"),
1456
1472
  cli: "fleet usage"
1457
1473
  }),
package/dist/index.js CHANGED
@@ -1347,9 +1347,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1347
1347
  waitable: true,
1348
1348
  alwaysHeld: true
1349
1349
  }),
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.
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`).
1353
1353
  read("fleet_cloud_list", "view", "FL-17", "FLEET_CLOUD_ENABLED", "live", {
1354
1354
  phase: "P3",
1355
1355
  route: GET("/api/fleet/cloud"),
@@ -1388,13 +1388,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1388
1388
  waitable: true,
1389
1389
  alwaysHeld: true
1390
1390
  }),
1391
- 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"), {
1392
1392
  phase: "P3",
1393
1393
  route: PATCH("/api/fleet/cloud/{id}/idle-policy"),
1394
1394
  cli: "fleet cloud idle-policy"
1395
1395
  }),
1396
- // ── runners (FL-18) ──
1397
- 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`). The Actions jobs read and Cancel workflow run arrive with P2.
1399
+ read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1398
1400
  phase: "P3",
1399
1401
  route: GET("/api/fleet/nodes/{id}/runners"),
1400
1402
  cli: "fleet runners list"
@@ -1409,23 +1411,29 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1409
1411
  "machines",
1410
1412
  "FL-18",
1411
1413
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1412
- "planned",
1414
+ "live",
1413
1415
  confirm("machine.admin"),
1414
- { 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
+ }
1415
1423
  ),
1416
1424
  act(
1417
1425
  "fleet_runners_action",
1418
1426
  "machines",
1419
1427
  "FL-18",
1420
1428
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1421
- "planned",
1429
+ "live",
1422
1430
  confirm("machine.admin"),
1423
1431
  {
1424
1432
  phase: "P3",
1425
1433
  route: POST("/api/fleet/nodes/{id}/runners/{runnerId}/{action}"),
1426
1434
  cli: "fleet runners action",
1427
1435
  waitable: true,
1428
- 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)"
1429
1437
  }
1430
1438
  ),
1431
1439
  act(
@@ -1433,9 +1441,15 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1433
1441
  "machines",
1434
1442
  "FL-18",
1435
1443
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1436
- "planned",
1444
+ "live",
1437
1445
  typed("write.destructive"),
1438
- { 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
+ }
1439
1453
  ),
1440
1454
  act(
1441
1455
  "fleet_runners_cancel_run",
@@ -1444,10 +1458,12 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1444
1458
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1445
1459
  "planned",
1446
1460
  confirm("machine.admin"),
1447
- { phase: "P3", route: POST("/api/fleet/runners/jobs/{jobId}/cancel"), cli: "fleet runners cancel-run" }
1461
+ { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1448
1462
  ),
1449
- // ── usage (FL-20) ──
1450
- read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "planned", {
1463
+ // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1464
+ // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
1465
+ read("fleet_usage_get", "view", "FL-20", "FLEET_USAGE_SCAN_ENABLED", "live", {
1466
+ phase: "P3",
1451
1467
  route: GET("/api/fleet/usage"),
1452
1468
  cli: "fleet usage"
1453
1469
  }),
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.9",
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.11"
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.15",
42
+ "@ever-works/plugin": "^1.2.11",
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:b1853032682f2a7868213e27b7540957dbb364f9f46cb05a735b5adb316eb019",
74
+ "commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
75
+ "source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/pty-local"
76
76
  }
77
77
  }