@ever-works/pty-local-plugin 1.0.4 → 1.0.6
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 +49 -0
- package/dist/index.js +49 -0
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -63,6 +63,7 @@ var PROBLEM_CODES = [
|
|
|
63
63
|
"already_connected",
|
|
64
64
|
"already_linked",
|
|
65
65
|
"already_claimed",
|
|
66
|
+
"claim_locked",
|
|
66
67
|
"invalid_client",
|
|
67
68
|
"public_jwk_invalid",
|
|
68
69
|
"identifier_claimed",
|
|
@@ -88,6 +89,11 @@ var PROBLEM_CODES = [
|
|
|
88
89
|
"database_absent",
|
|
89
90
|
"database_unreachable",
|
|
90
91
|
"topic_private",
|
|
92
|
+
"realtime_disabled",
|
|
93
|
+
"topic_forbidden",
|
|
94
|
+
"topic_invalid",
|
|
95
|
+
"realtime_busy",
|
|
96
|
+
"too_many_streams",
|
|
91
97
|
"keys_unavailable",
|
|
92
98
|
"internal_error"
|
|
93
99
|
];
|
|
@@ -674,6 +680,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
|
|
|
674
680
|
FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
|
|
675
681
|
(family) => family.envNames
|
|
676
682
|
);
|
|
683
|
+
var FLEET_LINK_FRAME_KINDS = {
|
|
684
|
+
/** Raw bytes: terminal output/input, log lines, file chunks. */
|
|
685
|
+
DATA: 1,
|
|
686
|
+
/** `[cols u16][rows u16]`. */
|
|
687
|
+
RESIZE: 2,
|
|
688
|
+
/** `[code i32]`. */
|
|
689
|
+
EXIT: 3,
|
|
690
|
+
/** UTF-8 JSON control message. */
|
|
691
|
+
JSON: 10,
|
|
692
|
+
/** UTF-8 reason code. */
|
|
693
|
+
CLOSE: 11,
|
|
694
|
+
/** A full picture (the existing computer-frame encoding). */
|
|
695
|
+
FRAME: 20,
|
|
696
|
+
/** A pointer / key / text event (the existing computer input encoding). */
|
|
697
|
+
INPUT: 21,
|
|
698
|
+
/** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
|
|
699
|
+
TILES: 23,
|
|
700
|
+
/** `[bytes u32]` credit. */
|
|
701
|
+
ACK: 30,
|
|
702
|
+
/** End of a stream. */
|
|
703
|
+
END: 31,
|
|
704
|
+
/** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
|
|
705
|
+
CLIP: 40
|
|
706
|
+
};
|
|
707
|
+
new Set(Object.values(FLEET_LINK_FRAME_KINDS));
|
|
708
|
+
var FLEET_LINK_CONTROL_TYPES = [
|
|
709
|
+
"link.hello",
|
|
710
|
+
"link.ready",
|
|
711
|
+
"link.ping",
|
|
712
|
+
"link.pong",
|
|
713
|
+
"link.pause",
|
|
714
|
+
"link.resume",
|
|
715
|
+
"link.drain",
|
|
716
|
+
"channel.open",
|
|
717
|
+
"channel.ready",
|
|
718
|
+
"channel.refused",
|
|
719
|
+
"channel.close",
|
|
720
|
+
"operation.progress",
|
|
721
|
+
"operation.done",
|
|
722
|
+
"operation.cancel"
|
|
723
|
+
];
|
|
724
|
+
new Set(FLEET_LINK_CONTROL_TYPES);
|
|
725
|
+
new TextEncoder();
|
|
677
726
|
var EMAIL_INBOX_CAP_FIELDS = [
|
|
678
727
|
"inboxDailySends",
|
|
679
728
|
"inboxBurstSends",
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,7 @@ var PROBLEM_CODES = [
|
|
|
59
59
|
"already_connected",
|
|
60
60
|
"already_linked",
|
|
61
61
|
"already_claimed",
|
|
62
|
+
"claim_locked",
|
|
62
63
|
"invalid_client",
|
|
63
64
|
"public_jwk_invalid",
|
|
64
65
|
"identifier_claimed",
|
|
@@ -84,6 +85,11 @@ var PROBLEM_CODES = [
|
|
|
84
85
|
"database_absent",
|
|
85
86
|
"database_unreachable",
|
|
86
87
|
"topic_private",
|
|
88
|
+
"realtime_disabled",
|
|
89
|
+
"topic_forbidden",
|
|
90
|
+
"topic_invalid",
|
|
91
|
+
"realtime_busy",
|
|
92
|
+
"too_many_streams",
|
|
87
93
|
"keys_unavailable",
|
|
88
94
|
"internal_error"
|
|
89
95
|
];
|
|
@@ -670,6 +676,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
|
|
|
670
676
|
FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
|
|
671
677
|
(family) => family.envNames
|
|
672
678
|
);
|
|
679
|
+
var FLEET_LINK_FRAME_KINDS = {
|
|
680
|
+
/** Raw bytes: terminal output/input, log lines, file chunks. */
|
|
681
|
+
DATA: 1,
|
|
682
|
+
/** `[cols u16][rows u16]`. */
|
|
683
|
+
RESIZE: 2,
|
|
684
|
+
/** `[code i32]`. */
|
|
685
|
+
EXIT: 3,
|
|
686
|
+
/** UTF-8 JSON control message. */
|
|
687
|
+
JSON: 10,
|
|
688
|
+
/** UTF-8 reason code. */
|
|
689
|
+
CLOSE: 11,
|
|
690
|
+
/** A full picture (the existing computer-frame encoding). */
|
|
691
|
+
FRAME: 20,
|
|
692
|
+
/** A pointer / key / text event (the existing computer input encoding). */
|
|
693
|
+
INPUT: 21,
|
|
694
|
+
/** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
|
|
695
|
+
TILES: 23,
|
|
696
|
+
/** `[bytes u32]` credit. */
|
|
697
|
+
ACK: 30,
|
|
698
|
+
/** End of a stream. */
|
|
699
|
+
END: 31,
|
|
700
|
+
/** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
|
|
701
|
+
CLIP: 40
|
|
702
|
+
};
|
|
703
|
+
new Set(Object.values(FLEET_LINK_FRAME_KINDS));
|
|
704
|
+
var FLEET_LINK_CONTROL_TYPES = [
|
|
705
|
+
"link.hello",
|
|
706
|
+
"link.ready",
|
|
707
|
+
"link.ping",
|
|
708
|
+
"link.pong",
|
|
709
|
+
"link.pause",
|
|
710
|
+
"link.resume",
|
|
711
|
+
"link.drain",
|
|
712
|
+
"channel.open",
|
|
713
|
+
"channel.ready",
|
|
714
|
+
"channel.refused",
|
|
715
|
+
"channel.close",
|
|
716
|
+
"operation.progress",
|
|
717
|
+
"operation.done",
|
|
718
|
+
"operation.cancel"
|
|
719
|
+
];
|
|
720
|
+
new Set(FLEET_LINK_CONTROL_TYPES);
|
|
721
|
+
new TextEncoder();
|
|
673
722
|
var EMAIL_INBOX_CAP_FIELDS = [
|
|
674
723
|
"inboxDailySends",
|
|
675
724
|
"inboxBurstSends",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/pty-local-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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.
|
|
35
|
+
"@ever-works/plugin": "^1.2.6"
|
|
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.
|
|
42
|
-
"@ever-works/plugin": "^1.2.
|
|
41
|
+
"@ever-works/contracts": "^1.0.11",
|
|
42
|
+
"@ever-works/plugin": "^1.2.6",
|
|
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:
|
|
74
|
-
"commit": "
|
|
75
|
-
"source": "https://github.com/ever-works/ever-works/tree/
|
|
73
|
+
"contentHash": "sha256:63e79d8b9a08faa7b6f768b548ea9abe5b24865d3a8e66a4d5a455bc1538cc24",
|
|
74
|
+
"commit": "eff002871bfd7f9f8e0f984907f45265ae8b01e0",
|
|
75
|
+
"source": "https://github.com/ever-works/ever-works/tree/eff002871bfd7f9f8e0f984907f45265ae8b01e0/packages/plugins/pty-local"
|
|
76
76
|
}
|
|
77
77
|
}
|