agentic-documents 0.4.0 → 0.5.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 +35 -0
- package/README.md +112 -5
- package/dist/{chunk-YBBQNCMC.js → chunk-6QOYS63L.js} +14 -189
- package/dist/{chunk-TFCRPEEM.js → chunk-7R7ZPPRF.js} +1 -1
- package/dist/{chunk-R5XUTBC3.js → chunk-E7B6T5WN.js} +29 -8
- package/dist/{chunk-IU3YIQ4Y.js → chunk-FX755I7V.js} +30 -8
- package/dist/{chunk-GYQFTF2E.js → chunk-L6W2AQUF.js} +15 -146
- package/dist/chunk-S6MQDWFK.js +150 -0
- package/dist/chunk-UPEGODUV.js +195 -0
- package/dist/{chunk-FZA5LQV3.js → chunk-YNHZCIGO.js} +86 -11
- package/dist/cli.js +8 -6
- package/dist/client.d.ts +23 -6
- package/dist/client.js +9 -2
- package/dist/{doc-C_8kCsl7.d.ts → doc-mJPajXEQ.d.ts} +5 -1
- package/dist/export-Cwx276UP.d.ts +17 -0
- package/dist/formats.d.ts +49 -0
- package/dist/formats.js +234 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +11 -7
- package/dist/live-worker.d.ts +2 -2
- package/dist/live-worker.js +6 -4
- package/dist/live.d.ts +6 -2
- package/dist/live.js +4 -3
- package/dist/{mcp-P2C75IIG.js → mcp-ESSEG46C.js} +4 -2
- package/dist/{review-BQW2Ci2h.d.ts → review-Hgq8OgvD.d.ts} +2 -16
- package/dist/{service-Do2Jwb5U.d.ts → service-CqKE9DKz.d.ts} +38 -5
- package/dist/ui/_headers +4 -0
- package/dist/ui/app.css +1 -0
- package/dist/ui/app.js +270 -0
- package/dist/ui/assets/inter-latin-ext-wght-normal-HA22NDSG.woff2 +0 -0
- package/dist/ui/assets/inter-latin-wght-normal-NRMW37G5.woff2 +0 -0
- package/dist/ui/assets/jetbrains-mono-latin-ext-wght-normal-TSLVDSQR.woff2 +0 -0
- package/dist/ui/assets/jetbrains-mono-latin-wght-normal-VBS632QH.woff2 +0 -0
- package/dist/ui/index.html +13 -0
- package/dist/worker.d.ts +2 -2
- package/dist/worker.js +6 -4
- package/llms.txt +1 -0
- package/package.json +19 -3
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Documents</title>
|
|
7
|
+
<link rel="stylesheet" href="/app.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/app.js"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/dist/worker.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { Hono } from 'hono';
|
|
|
2
2
|
import { Region } from 'agentic-identity';
|
|
3
3
|
import { D1Like, R2Like } from 'agentic-identity/cloudflare';
|
|
4
4
|
import { Realtime, Role } from 'agentic-realtime';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { c as Principal } from './doc-mJPajXEQ.js';
|
|
6
|
+
import { d as DocsService } from './service-CqKE9DKz.js';
|
|
7
7
|
import 'yjs';
|
|
8
8
|
|
|
9
9
|
interface WorkerEnv {
|
package/dist/worker.js
CHANGED
|
@@ -3,10 +3,12 @@ import {
|
|
|
3
3
|
regionOf,
|
|
4
4
|
serviceFor,
|
|
5
5
|
worker_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-FX755I7V.js";
|
|
7
|
+
import "./chunk-YNHZCIGO.js";
|
|
8
|
+
import "./chunk-S6MQDWFK.js";
|
|
9
|
+
import "./chunk-L6W2AQUF.js";
|
|
10
|
+
import "./chunk-UPEGODUV.js";
|
|
11
|
+
import "./chunk-6QOYS63L.js";
|
|
10
12
|
export {
|
|
11
13
|
createApp,
|
|
12
14
|
worker_default as default,
|
package/llms.txt
CHANGED
|
@@ -7,6 +7,7 @@ Keywords: documents, editor, rich-text, tiptap, yjs, collaboration, agents.
|
|
|
7
7
|
- SDK: import { AgenticDoc } from "agentic-documents".
|
|
8
8
|
- Read as Markdown, read an outline, edit by section id or exact text.
|
|
9
9
|
- Remote client: import { createClient } from "agentic-documents/client"; createClient({ baseUrl, token, fetch? }). It has one method per HTTP route. An error is a DocsApiError with a code and a status. Every call takes { signal }. The client never retries.
|
|
10
|
+
- Web UI: the Worker serves it from dist/ui (a document list, a rich-text editor on the live room, rename, delete, share, presence, a mark on agent text). It ships in the npm package. Run npm run build in a clone, or point the assets directory of your wrangler config at node_modules/agentic-documents/dist/ui.
|
|
10
11
|
- CLI: npx agentic-documents <command> <id>. MCP: npx agentic-documents mcp --as <kind>:<name>.
|
|
11
12
|
- Every edit carries an author kind and name.
|
|
12
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-documents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Write documents with people and agents in real time.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documents",
|
|
@@ -58,21 +58,27 @@
|
|
|
58
58
|
"types": "./dist/client.d.ts",
|
|
59
59
|
"import": "./dist/client.js"
|
|
60
60
|
},
|
|
61
|
+
"./formats": {
|
|
62
|
+
"types": "./dist/formats.d.ts",
|
|
63
|
+
"import": "./dist/formats.js"
|
|
64
|
+
},
|
|
61
65
|
"./live-worker": {
|
|
62
66
|
"types": "./dist/live-worker.d.ts",
|
|
63
67
|
"import": "./dist/live-worker.js"
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
70
|
"scripts": {
|
|
67
|
-
"build": "tsup",
|
|
71
|
+
"build": "tsup && node ui/build.mjs",
|
|
68
72
|
"prepack": "npm run build",
|
|
69
73
|
"typecheck": "tsc --noEmit",
|
|
70
74
|
"test": "vitest run",
|
|
71
75
|
"clean": "rm -rf dist",
|
|
72
|
-
"ci:local": "npm run build && npm run typecheck && npm test"
|
|
76
|
+
"ci:local": "npm run build && npm run typecheck && npm test && playwright test",
|
|
77
|
+
"e2e": "npm run build && playwright test"
|
|
73
78
|
},
|
|
74
79
|
"dependencies": {
|
|
75
80
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
81
|
+
"agentic-formats": "^0.2.0",
|
|
76
82
|
"agentic-identity": "^0.4.0",
|
|
77
83
|
"agentic-realtime": "^0.1.0",
|
|
78
84
|
"fflate": "^0.8.3",
|
|
@@ -91,14 +97,24 @@
|
|
|
91
97
|
"zod": "^3.25.0"
|
|
92
98
|
},
|
|
93
99
|
"devDependencies": {
|
|
100
|
+
"@axe-core/playwright": "^4.14.0",
|
|
101
|
+
"@playwright/test": "^1.64.1",
|
|
94
102
|
"@tiptap/core": "^3.32.1",
|
|
103
|
+
"@tiptap/extension-collaboration": "^3.32.1",
|
|
95
104
|
"@tiptap/extension-image": "^3.32.1",
|
|
96
105
|
"@tiptap/extension-list": "^3.32.1",
|
|
97
106
|
"@tiptap/extension-table": "^3.32.1",
|
|
98
107
|
"@tiptap/pm": "^3.32.1",
|
|
99
108
|
"@tiptap/starter-kit": "^3.32.1",
|
|
109
|
+
"@tiptap/y-tiptap": "^3.0.11",
|
|
100
110
|
"@types/mdast": "^4.0.4",
|
|
101
111
|
"@types/node": "^22.0.0",
|
|
112
|
+
"@types/react": "^19.3.0",
|
|
113
|
+
"@types/react-dom": "^19.3.0",
|
|
114
|
+
"agentic-design": "^0.1.0",
|
|
115
|
+
"esbuild": "^0.28.2",
|
|
116
|
+
"react": "^19.3.1",
|
|
117
|
+
"react-dom": "^19.3.1",
|
|
102
118
|
"tsup": "^8.0.0",
|
|
103
119
|
"typescript": "^5.6.0",
|
|
104
120
|
"vitest": "^3.0.0",
|