@ever-works/pty-local-plugin 1.0.9 → 1.0.11

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
@@ -23,6 +23,10 @@ var PROBLEM_CODES = [
23
23
  "not_connection_owner",
24
24
  "integration_disabled",
25
25
  "integration_revoked",
26
+ "subject_unknown",
27
+ "link_not_found",
28
+ "oidc_client_exists",
29
+ "redirect_uri_invalid",
26
30
  "denied_by_policy",
27
31
  "integration_not_available",
28
32
  "entitlement_required",
@@ -51,6 +55,8 @@ var PROBLEM_CODES = [
51
55
  "illegal_transition",
52
56
  "already_exists",
53
57
  "already_completed",
58
+ "legal_basis_required",
59
+ "receipt_final",
54
60
  "billing_active",
55
61
  "sso_required",
56
62
  "reauth_required",
@@ -997,7 +1003,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
997
1003
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
998
1004
  cli: "fleet desktop screenshot"
999
1005
  }),
1000
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1006
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
1001
1007
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
1002
1008
  cli: "fleet desktop displays"
1003
1009
  }),
@@ -1271,6 +1277,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1271
1277
  route: GET("/api/fleet/checkouts/{id}/changes"),
1272
1278
  cli: "fleet checkouts changes"
1273
1279
  }),
1280
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1281
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1282
+ }),
1274
1283
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1275
1284
  route: POST("/api/fleet/checkouts"),
1276
1285
  cli: "fleet checkouts create",
@@ -1399,13 +1408,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1399
1408
  }),
1400
1409
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1401
1410
  // 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.
1411
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1403
1412
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1404
1413
  phase: "P3",
1405
1414
  route: GET("/api/fleet/nodes/{id}/runners"),
1406
1415
  cli: "fleet runners list"
1407
1416
  }),
1408
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1417
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1409
1418
  phase: "P3",
1410
1419
  route: GET("/api/fleet/runners/jobs"),
1411
1420
  cli: "fleet runners jobs"
@@ -1460,9 +1469,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1460
1469
  "machines",
1461
1470
  "FL-18",
1462
1471
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1463
- "planned",
1472
+ "live",
1464
1473
  confirm("machine.admin"),
1465
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1474
+ {
1475
+ phase: "P3",
1476
+ route: POST("/api/fleet/runners/jobs/cancel"),
1477
+ cli: "fleet runners cancel-run",
1478
+ alwaysHeld: true
1479
+ }
1466
1480
  ),
1467
1481
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1468
1482
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -1585,7 +1599,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1585
1599
  approxDownloadGiB: 0.7
1586
1600
  }
1587
1601
  ];
1588
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1602
+ FLEET_VIRTUAL_SYSTEMS.map(
1603
+ (system) => system.id
1604
+ );
1589
1605
  var EMAIL_INBOX_CAP_FIELDS = [
1590
1606
  "inboxDailySends",
1591
1607
  "inboxBurstSends",
@@ -1814,6 +1830,9 @@ var DOMAIN_EVENT_CATALOG = [
1814
1830
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1815
1831
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1816
1832
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1833
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
1834
+ // answer to an integration item (stored on the item; no run is started).
1835
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1817
1836
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1818
1837
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1819
1838
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/dist/index.js CHANGED
@@ -19,6 +19,10 @@ var PROBLEM_CODES = [
19
19
  "not_connection_owner",
20
20
  "integration_disabled",
21
21
  "integration_revoked",
22
+ "subject_unknown",
23
+ "link_not_found",
24
+ "oidc_client_exists",
25
+ "redirect_uri_invalid",
22
26
  "denied_by_policy",
23
27
  "integration_not_available",
24
28
  "entitlement_required",
@@ -47,6 +51,8 @@ var PROBLEM_CODES = [
47
51
  "illegal_transition",
48
52
  "already_exists",
49
53
  "already_completed",
54
+ "legal_basis_required",
55
+ "receipt_final",
50
56
  "billing_active",
51
57
  "sso_required",
52
58
  "reauth_required",
@@ -993,7 +999,7 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
993
999
  route: GET("/api/fleet/nodes/{id}/desktop/screenshot"),
994
1000
  cli: "fleet desktop screenshot"
995
1001
  }),
996
- read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "planned", {
1002
+ read("fleet_desktop_displays", "desktop", "FL-07", "FLEET_DESKTOP_ENABLED", "live", {
997
1003
  route: GET("/api/fleet/nodes/{id}/desktop/displays"),
998
1004
  cli: "fleet desktop displays"
999
1005
  }),
@@ -1267,6 +1273,9 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1267
1273
  route: GET("/api/fleet/checkouts/{id}/changes"),
1268
1274
  cli: "fleet checkouts changes"
1269
1275
  }),
1276
+ read("fleet_checkouts_pull_request_get", "checkouts", "FL-06", "FLEET_CHECKOUTS_ENABLED", "planned", {
1277
+ route: GET("/api/fleet/checkouts/{id}/pull-request")
1278
+ }),
1270
1279
  act("fleet_checkouts_create", "checkouts", "FL-14", "FLEET_CHECKOUTS_ENABLED", "live", plain("machine.run"), {
1271
1280
  route: POST("/api/fleet/checkouts"),
1272
1281
  cli: "fleet checkouts create",
@@ -1395,13 +1404,13 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1395
1404
  }),
1396
1405
  // ── runners (FL-18) ── P1 shipped: list, install, start / stop / restart, remove. An install, a
1397
1406
  // 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.
1407
+ // (`agent-fleet-runners-tools.ts`). P2: the Actions jobs read and Cancel workflow run (always held for an Agent).
1399
1408
  read("fleet_runners_list", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1400
1409
  phase: "P3",
1401
1410
  route: GET("/api/fleet/nodes/{id}/runners"),
1402
1411
  cli: "fleet runners list"
1403
1412
  }),
1404
- read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "planned", {
1413
+ read("fleet_runners_jobs", "view", "FL-18", "FLEET_ACTIONS_RUNNERS_ENABLED", "live", {
1405
1414
  phase: "P3",
1406
1415
  route: GET("/api/fleet/runners/jobs"),
1407
1416
  cli: "fleet runners jobs"
@@ -1456,9 +1465,14 @@ var FLEET_TOOL_CATALOGUE = Object.freeze([
1456
1465
  "machines",
1457
1466
  "FL-18",
1458
1467
  "FLEET_ACTIONS_RUNNERS_ENABLED",
1459
- "planned",
1468
+ "live",
1460
1469
  confirm("machine.admin"),
1461
- { phase: "P3", route: POST("/api/fleet/runners/jobs/cancel"), cli: "fleet runners cancel-run" }
1470
+ {
1471
+ phase: "P3",
1472
+ route: POST("/api/fleet/runners/jobs/cancel"),
1473
+ cli: "fleet runners cancel-run",
1474
+ alwaysHeld: true
1475
+ }
1462
1476
  ),
1463
1477
  // ── usage (FL-20) ── P1 shipped: the Usage object (totals, by model, by computer, busiest
1464
1478
  // checkouts, sessions) every surface renders, read-only, with the payer sentence in `note`.
@@ -1581,7 +1595,9 @@ var FLEET_VIRTUAL_SYSTEMS = [
1581
1595
  approxDownloadGiB: 0.7
1582
1596
  }
1583
1597
  ];
1584
- FLEET_VIRTUAL_SYSTEMS.map((system) => system.id);
1598
+ FLEET_VIRTUAL_SYSTEMS.map(
1599
+ (system) => system.id
1600
+ );
1585
1601
  var EMAIL_INBOX_CAP_FIELDS = [
1586
1602
  "inboxDailySends",
1587
1603
  "inboxBurstSends",
@@ -1810,6 +1826,9 @@ var DOMAIN_EVENT_CATALOG = [
1810
1826
  { type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1811
1827
  { type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1812
1828
  { type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1829
+ // Integration inbox push: an integration's PATCH of its own item, and the member's
1830
+ // answer to an integration item (stored on the item; no run is started).
1831
+ { type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
1813
1832
  { type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1814
1833
  { type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
1815
1834
  { type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/pty-local-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
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.11"
35
+ "@ever-works/plugin": "^1.2.16"
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.15",
42
- "@ever-works/plugin": "^1.2.11",
41
+ "@ever-works/contracts": "^1.0.19",
42
+ "@ever-works/plugin": "^1.2.16",
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:b1853032682f2a7868213e27b7540957dbb364f9f46cb05a735b5adb316eb019",
74
- "commit": "67e286ed0d4c3dcc0d66d2f628215ab966cc26e1",
75
- "source": "https://github.com/ever-works/ever-works/tree/67e286ed0d4c3dcc0d66d2f628215ab966cc26e1/packages/plugins/pty-local"
73
+ "contentHash": "sha256:60754994058a5f2fee57652614294f8ec8ee242ad442e14fcacfeff7600ab777",
74
+ "commit": "89cee44a662034ea957b07ec5e1230ecf340b107",
75
+ "source": "https://github.com/ever-works/ever-works/tree/89cee44a662034ea957b07ec5e1230ecf340b107/packages/plugins/pty-local"
76
76
  }
77
77
  }