@keemakr/agent-sdk 0.13.0 → 0.13.1-dev-20260829024924

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/client.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -157,6 +157,17 @@ export interface KeeRecords {
157
157
  * record (idempotent). Pass `id` to address a specific record (PUT), and
158
158
  * `ifVersion` (from a prior get/list) for compare-and-swap: throws
159
159
  * RecordConflictError when another agent wrote it in between.
160
+ *
161
+ * APPEND-ONLY COLLECTIONS. A collection declared `appendOnly: true` is
162
+ * insert-only: a write whose record id already exists is REFUSED (409
163
+ * `append_only`) rather than replacing the row, and an `ifVersion` write is
164
+ * refused too, since a compare-and-swap is a replacement by definition. This
165
+ * is what makes an audit-log collection immutable in storage rather than by
166
+ * convention — records are tenant-shared, so without it any installed agent
167
+ * holding the write scope could overwrite another's stored event.
168
+ *
169
+ * Do NOT retry an `append_only` refusal: unlike a version conflict there is no
170
+ * state to re-read that would make the same write succeed. Write a new event.
160
171
  */
161
172
  upsert(collection: string, data: Record<string, unknown>, opts?: {
162
173
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keemakr/agent-sdk",
3
- "version": "0.13.0",
3
+ "version": "0.13.1-dev-20260829024924",
4
4
  "description": "The floor for keemakr marketplace agents: verify the capability grant and reach tenant connections, memory, and shared platform tools through keemakr-core — without holding raw secrets or resolving the tenant yourself.",
5
5
  "license": "MIT",
6
6
  "type": "module",