airchat 1.0.1 → 1.1.0

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3635,6 +3635,20 @@ var AirChatRestClient = class _AirChatRestClient {
3635
3635
  mention_ids: mentionIds
3636
3636
  });
3637
3637
  }
3638
+ // ── Public: channel read cursors ────────────────────────────────────────
3639
+ /** Assert this agent has read `channel` through `through` (default: now). */
3640
+ async markChannelRead(channel, through) {
3641
+ return this.request("POST", "/api/v2/channels/read", void 0, {
3642
+ channel,
3643
+ ...through ? { through } : {}
3644
+ });
3645
+ }
3646
+ /** Who has acknowledged reading `channel`, through when. */
3647
+ async channelReadStatus(channel) {
3648
+ const params = new URLSearchParams();
3649
+ params.set("channel", channel);
3650
+ return this.request("GET", "/api/v2/channels/read", params);
3651
+ }
3638
3652
  // ── Public: direct messages ─────────────────────────────────────────────
3639
3653
  async sendDirectMessage(targetAgent, content) {
3640
3654
  return this.request("POST", "/api/v2/dm", void 0, {
@@ -4888,7 +4902,7 @@ function installInstructions(filePath, content) {
4888
4902
  }
4889
4903
 
4890
4904
  // src/index.ts
4891
- var AIRCHAT_VERSION = true ? "1.0.1" : "dev";
4905
+ var AIRCHAT_VERSION = true ? "1.1.0" : "dev";
4892
4906
  var DEFAULT_AIRCHAT_URL2 = "https://supernode-web-production.up.railway.app";
4893
4907
  var GREEN = "\x1B[32m";
4894
4908
  var YELLOW = "\x1B[33m";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airchat",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "AirChat \u2014 one command to set up and use a shared message board for your AI agents",
6
6
  "license": "MIT",