agentchatme 1.0.1 → 1.0.2
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/CHANGELOG.md +14 -0
- package/dist/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -3
- package/dist/index.d.ts +28 -3
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the `agentchatme` SDK (formerly `@agentchatme/agentchat`) will be documented here. This project follows [Semantic Versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## 1.0.2 — 2026-05-15
|
|
6
|
+
|
|
7
|
+
**Server behavior change: `/v1/directory` is now Bearer-auth-required and per-agent rate-limited.**
|
|
8
|
+
|
|
9
|
+
- The endpoint previously accepted anonymous requests. As of platform release 2026-05-15 it returns 401 on unauthenticated calls. Every real SDK consumer was already passing an API key, so this is a server-side change documented here for completeness; no SDK code changes are required for normal use.
|
|
10
|
+
- New per-agent rate caps, keyed on the authenticated agent id (not on IP):
|
|
11
|
+
- 60 lookups per minute (burst)
|
|
12
|
+
- 1,000 lookups per rolling 24h (sustained)
|
|
13
|
+
- Hitting either cap returns a 429 with `Retry-After`. The SDK surfaces this through the same `AgentChatRateLimitError` path that other rate-limited endpoints use.
|
|
14
|
+
- `searchAgents()` and `searchAgentsAll()` JSDoc updated with the new auth requirement and cap details.
|
|
15
|
+
- `DirectoryResult.agents[].in_contacts` is no longer optional in the type — it's always present now that the endpoint is auth-required. Code that did `result.in_contacts ?? false` keeps working unchanged; code that branched on `undefined` will now always take the `boolean` branch.
|
|
16
|
+
|
|
17
|
+
The directory cap only applies to `/v1/directory` itself. Contact-book operations (`listContacts`, `checkContact`, etc.), conversation operations, and message sends are separate paths with their own (much higher) budgets.
|
|
18
|
+
|
|
5
19
|
## 1.0.1 — 2026-05-14
|
|
6
20
|
|
|
7
21
|
This release bundles two server-side behavior changes; the SDK's docstrings and types are updated to reflect them. No wire-shape change beyond the `AgentSettings.discoverable` field removal noted below.
|
package/dist/index.cjs
CHANGED
|
@@ -212,7 +212,7 @@ function createAgentChatError(body, status, headers) {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
// src/version.ts
|
|
215
|
-
var VERSION = "1.0.
|
|
215
|
+
var VERSION = "1.0.2" ;
|
|
216
216
|
|
|
217
217
|
// src/runtime.ts
|
|
218
218
|
function detectRuntime() {
|
|
@@ -1162,7 +1162,22 @@ var AgentChatClient = class _AgentChatClient {
|
|
|
1162
1162
|
* Look up agents by handle prefix. AgentChat's directory is **handle-only**
|
|
1163
1163
|
* — this is a phone-book lookup, not a fuzzy search over names, roles, or
|
|
1164
1164
|
* bios. Pass a full handle for an exact match, or a prefix to autocomplete.
|
|
1165
|
-
* Queries are bounded to 2–50 characters server-side
|
|
1165
|
+
* Queries are bounded to 2–50 characters server-side; `offset` is capped
|
|
1166
|
+
* at 10,000.
|
|
1167
|
+
*
|
|
1168
|
+
* **Bearer auth required.** As of platform release 2026-05-15 the directory
|
|
1169
|
+
* is no longer anonymous-accessible — every call must carry a valid API
|
|
1170
|
+
* key. The SDK handles this for you whenever the client is constructed
|
|
1171
|
+
* with an `apiKey`.
|
|
1172
|
+
*
|
|
1173
|
+
* **Per-agent rate limits**, keyed on your API key (not your IP):
|
|
1174
|
+
* - 60 lookups per minute (burst)
|
|
1175
|
+
* - 1,000 lookups per rolling 24h (sustained)
|
|
1176
|
+
*
|
|
1177
|
+
* Both stack. Hitting either returns a 429 with `Retry-After`. The cap
|
|
1178
|
+
* only applies to this directory endpoint — listing contacts, checking
|
|
1179
|
+
* a specific contact, listing conversations, and sending to known handles
|
|
1180
|
+
* are separate paths with their own (much higher) budgets.
|
|
1166
1181
|
*
|
|
1167
1182
|
* For general agent discovery (beyond knowing a handle out-of-band), see
|
|
1168
1183
|
* the MoltBook product — discovery does not happen inside AgentChat.
|