agentic-documents 0.2.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Breaking changes
6
+
7
+ The API of this package does not change. The change is in the dependency.
8
+
9
+ - **Dependencies.** `agentic-identity` moves from `^0.3.0` to `^0.4.0`. In 0.4 a grant is keyed on the
10
+ principal kind and the id, so a person and an agent with the same id hold separate roles. Grants
11
+ written by 0.3 are not honored until you run `migrateGrants`. A host that shares documents through
12
+ `createSharing` must pass `{ kind, id }` to `grant` and `revokeGrant`.
13
+
14
+ ### Added
15
+
16
+ - Tests that a person and an agent with the same id get separate roles, and that `deleteResource`
17
+ removes the grants.
18
+ - This package has no grant call and no command that deletes a whole document or erases a person. A
19
+ host that deletes a document must call `deleteResource` for it, and must delete the document and its
20
+ catalog entry itself. If `deleteResource` fails, run it again. If it throws `EraseRefusedError`,
21
+ remove the child resources or the extra owners first. Do not reuse the document id until it
22
+ succeeds. The `agentic-identity` person erase does not remove document content, and author names
23
+ stay in the edit log, the threads, and the suggestions.
24
+
3
25
  ## 0.2.0
4
26
 
5
27
  ### Breaking changes
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Write documents with people and agents in real time.
9
9
 
10
- > Status: early, version 0.2.0. The document model, the text operations, the CLI, the MCP server,
10
+ > Status: early, version 0.3.0. The document model, the text operations, the CLI, the MCP server,
11
11
  > the Worker API, and live editing in a room work. The web UI is not built yet.
12
12
 
13
13
  ## Install
@@ -195,6 +195,13 @@ Limits of live editing:
195
195
  ## Limits
196
196
 
197
197
  - No web UI yet.
198
+ - A document holds no roles of its own. The token table gives `editor` or `viewer`. To share a document
199
+ by person, use `createSharing` from `agentic-identity` 0.4. A grant names its subject by kind
200
+ (`human` or `agent`) and id, so a person and an agent with the same id hold separate roles. When you
201
+ delete a document, call `deleteResource` on its resource so its grants do not outlive it. If
202
+ `deleteResource` fails, treat the delete as failed and run it again. If it throws
203
+ `EraseRefusedError`, remove the child resources or the extra owners first. Do not reuse the id
204
+ until it succeeds. This package has no command that deletes a whole document.
198
205
  - The Worker keeps each document in R2 and a catalog (who made it, and when) in D1. Both come from the
199
206
  shared `agentic-identity` ports. A save is conditional on the version it read, so two writers cannot
200
207
  overwrite each other. The CLI and MCP server keep the same data in local files.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-documents",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Write documents with people and agents in real time.",
5
5
  "keywords": [
6
6
  "documents",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@modelcontextprotocol/sdk": "^1.12.0",
72
- "agentic-identity": "^0.3.0",
72
+ "agentic-identity": "^0.4.0",
73
73
  "agentic-realtime": "^0.1.0",
74
74
  "fflate": "^0.8.3",
75
75
  "hono": "^4.13.14",