@ever-works/discord-connector-plugin 1.0.4 → 1.0.5

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
@@ -667,6 +667,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
667
667
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
668
668
  (family) => family.envNames
669
669
  );
670
+ var FLEET_LINK_FRAME_KINDS = {
671
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
672
+ DATA: 1,
673
+ /** `[cols u16][rows u16]`. */
674
+ RESIZE: 2,
675
+ /** `[code i32]`. */
676
+ EXIT: 3,
677
+ /** UTF-8 JSON control message. */
678
+ JSON: 10,
679
+ /** UTF-8 reason code. */
680
+ CLOSE: 11,
681
+ /** A full picture (the existing computer-frame encoding). */
682
+ FRAME: 20,
683
+ /** A pointer / key / text event (the existing computer input encoding). */
684
+ INPUT: 21,
685
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
686
+ TILES: 23,
687
+ /** `[bytes u32]` credit. */
688
+ ACK: 30,
689
+ /** End of a stream. */
690
+ END: 31,
691
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
692
+ CLIP: 40
693
+ };
694
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
695
+ var FLEET_LINK_CONTROL_TYPES = [
696
+ "link.hello",
697
+ "link.ready",
698
+ "link.ping",
699
+ "link.pong",
700
+ "link.pause",
701
+ "link.resume",
702
+ "link.drain",
703
+ "channel.open",
704
+ "channel.ready",
705
+ "channel.refused",
706
+ "channel.close",
707
+ "operation.progress",
708
+ "operation.done",
709
+ "operation.cancel"
710
+ ];
711
+ new Set(FLEET_LINK_CONTROL_TYPES);
712
+ new TextEncoder();
670
713
  var EMAIL_INBOX_CAP_FIELDS = [
671
714
  "inboxDailySends",
672
715
  "inboxBurstSends",
package/dist/index.js CHANGED
@@ -665,6 +665,49 @@ var FLEET_AGENT_CREDENTIAL_FAMILIES = [
665
665
  FLEET_AGENT_CREDENTIAL_FAMILIES.flatMap(
666
666
  (family) => family.envNames
667
667
  );
668
+ var FLEET_LINK_FRAME_KINDS = {
669
+ /** Raw bytes: terminal output/input, log lines, file chunks. */
670
+ DATA: 1,
671
+ /** `[cols u16][rows u16]`. */
672
+ RESIZE: 2,
673
+ /** `[code i32]`. */
674
+ EXIT: 3,
675
+ /** UTF-8 JSON control message. */
676
+ JSON: 10,
677
+ /** UTF-8 reason code. */
678
+ CLOSE: 11,
679
+ /** A full picture (the existing computer-frame encoding). */
680
+ FRAME: 20,
681
+ /** A pointer / key / text event (the existing computer input encoding). */
682
+ INPUT: 21,
683
+ /** Changed tiles `[w][h][count]{x,y,w,h,len,jpeg}`. */
684
+ TILES: 23,
685
+ /** `[bytes u32]` credit. */
686
+ ACK: 30,
687
+ /** End of a stream. */
688
+ END: 31,
689
+ /** UTF-8 text ≤ 256 KiB, pasted into a desktop. */
690
+ CLIP: 40
691
+ };
692
+ new Set(Object.values(FLEET_LINK_FRAME_KINDS));
693
+ var FLEET_LINK_CONTROL_TYPES = [
694
+ "link.hello",
695
+ "link.ready",
696
+ "link.ping",
697
+ "link.pong",
698
+ "link.pause",
699
+ "link.resume",
700
+ "link.drain",
701
+ "channel.open",
702
+ "channel.ready",
703
+ "channel.refused",
704
+ "channel.close",
705
+ "operation.progress",
706
+ "operation.done",
707
+ "operation.cancel"
708
+ ];
709
+ new Set(FLEET_LINK_CONTROL_TYPES);
710
+ new TextEncoder();
668
711
  var EMAIL_INBOX_CAP_FIELDS = [
669
712
  "inboxDailySends",
670
713
  "inboxBurstSends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ever-works/discord-connector-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Discord connector plugin for Ever Works platform (bidirectional; outbound channel-message posting via discord.js REST)",
5
5
  "author": {
6
6
  "name": "Ever Co. LTD",
@@ -32,7 +32,7 @@
32
32
  "test:watch": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@ever-works/plugin": "^1.2.5",
35
+ "@ever-works/plugin": "^1.2.6",
36
36
  "discord.js": "^14.16.0"
37
37
  },
38
38
  "devDependencies": {
@@ -101,8 +101,8 @@
101
101
  "url": "https://github.com/ever-works/ever-works/issues"
102
102
  },
103
103
  "everworksRelease": {
104
- "contentHash": "sha256:83900d5e37c8a30d21e7992df07d10a4f39a6581408b835aa1294471fdbb8c24",
105
- "commit": "19905c70cf05be3bc523db030597046067cd322a",
106
- "source": "https://github.com/ever-works/ever-works/tree/19905c70cf05be3bc523db030597046067cd322a/packages/plugins/discord-connector"
104
+ "contentHash": "sha256:08dd411ebc4cfc7f10cc8b4e61fd045ac16dfcc3dda92a2abf91d6b96d9a4cf1",
105
+ "commit": "54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c",
106
+ "source": "https://github.com/ever-works/ever-works/tree/54552a4d2dcb0e2d5213b0a47fd3ffcbd432f73c/packages/plugins/discord-connector"
107
107
  }
108
108
  }