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.
- package/dist/index.js +15 -1
- 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
|
|
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";
|