Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6b4e4b1
feat(document-api): return ref handle from superdoc_create
tupizz Mar 21, 2026
abfb545
fix(sdk): stronger create description — use ref, dont search, dont re…
tupizz Mar 21, 2026
fd5172a
fix(sdk): apply fontFamily AND color from neighbors, skip fontSize on…
tupizz Mar 21, 2026
33ecda1
fix(sdk): resolve system prompt conflicts with tool descriptions
tupizz Mar 21, 2026
c7b364a
feat(document-api): add color field to blocks.list with #000000 default
tupizz Mar 21, 2026
de3cf2f
feat(sdk): introduce browser SDK with initial tools and validation
tupizz Mar 21, 2026
cd67aeb
refactor(document-api): update operation parameters and documentation…
tupizz Mar 21, 2026
f9a1b9e
fix(super-editor): auto-format created blocks and suppress heading nu…
tupizz Mar 24, 2026
2ff4aa3
chore: update lockfile for browser SDK dependency
tupizz Mar 24, 2026
28523f8
refactor(super-editor): remove server-side auto-formatting, keep ref …
tupizz Mar 24, 2026
7587196
fix(sdk): improve tool descriptions for heading/paragraph formatting
tupizz Mar 24, 2026
a54a680
merge: resolve pnpm-lock.yaml conflicts from main
tupizz Mar 24, 2026
82d09c5
chore: remove browser SDK additions from PR scope
tupizz Mar 24, 2026
b483c3d
fix(document-api): fix extractBlockFormatting color and clean up PR
tupizz Mar 24, 2026
390a130
Merge remote-tracking branch 'origin/main' into tadeu/feat-browser-sd…
tupizz Mar 24, 2026
4c5632e
fix: sync pnpm-lock.yaml with package.json (remove stale prosemirror-…
tupizz Mar 24, 2026
69e3b53
fix(document-api): tolerate limit=0 and nodeTypes=[] in blocks.list
tupizz Mar 25, 2026
887ec68
fix(document-api): improve list guidance, restore replace docs, add e…
tupizz Mar 25, 2026
1bf76bb
fix(sdk): make list creation prompt safer with consecutive placement …
tupizz Mar 25, 2026
59bcdc1
feat(evals): add new workflow for creating exhibit pages with matchin…
tupizz Mar 25, 2026
2fd352e
feat(evals): implement dispatchWithRetry for improved error handling
tupizz Mar 25, 2026
8c52e15
feat(document-api): add intent group and action for table creation
tupizz Mar 25, 2026
bb074f6
feat(document-api): resolve blocks.list formatting via style-engine c…
tupizz Mar 25, 2026
6edf19e
Revert "feat(document-api): resolve blocks.list formatting via style-…
tupizz Mar 25, 2026
a91526f
feat(ai-node-sdk): add AI document editing example with real-time col…
tupizz Mar 26, 2026
caf4175
fix(document-api): address PR review feedback
tupizz Mar 27, 2026
7a7a33f
fix(ai-node-sdk): fix duplicated traces and quick actions UX
tupizz Mar 27, 2026
c9065a2
Merge remote-tracking branch 'origin/main' into tadeu/feat-browser-sd…
tupizz Mar 27, 2026
d96d3b2
fix(sdk): add offset to agentVisible hidden params allowlist
tupizz Mar 27, 2026
295d2e8
feat(document-api): add permission ranges and protection operations
tupizz Mar 27, 2026
c5fc785
fix(document-api): update operation definitions for document creation
tupizz Mar 27, 2026
27fd8db
fix(document-api, sdk): clarify formatting constraints in documentation
tupizz Mar 27, 2026
b5b6245
fix(document-api, sdk): refine formatting guidelines for body text an…
tupizz Mar 27, 2026
bc90702
Merge remote-tracking branch 'origin/main' into tadeu/feat-browser-sd…
tupizz Mar 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions apps/cli/src/cli/operation-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,16 +609,17 @@ const EXTRA_CLI_PARAMS: Partial<Record<string, CliOperationParamSpec[]>> = {
],
// Text-range operations: flat flags (--block-id, --start, --end) as shortcuts for --target-json
'doc.insert': [
...TEXT_TARGET_FLAT_PARAMS,
...TEXT_TARGET_FLAT_PARAMS_AGENT_HIDDEN,
{
name: 'offset',
kind: 'flag',
type: 'number',
description: 'Character offset for insertion (alias for --start/--end with same value).',
agentVisible: false as const,
},
],
'doc.replace': [...TEXT_TARGET_FLAT_PARAMS],
'doc.delete': [...TEXT_TARGET_FLAT_PARAMS],
'doc.replace': [...TEXT_TARGET_FLAT_PARAMS_AGENT_HIDDEN],
'doc.delete': [...TEXT_TARGET_FLAT_PARAMS_AGENT_HIDDEN],
'doc.styles.apply': [
{
name: 'target',
Expand Down
10 changes: 10 additions & 0 deletions apps/docs/document-api/available-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Use the tables below to see what operations are available and where each one is
| Mutations | 2 | 0 | 2 | [Reference](/document-api/reference/mutations/index) |
| Paragraph Formatting | 19 | 0 | 19 | [Reference](/document-api/reference/format/paragraph/index) |
| Paragraph Styles | 2 | 0 | 2 | [Reference](/document-api/reference/styles/paragraph/index) |
| Permission Ranges | 5 | 0 | 5 | [Reference](/document-api/reference/permission-ranges/index) |
| Protection | 3 | 0 | 3 | [Reference](/document-api/reference/protection/index) |
| Query | 1 | 0 | 1 | [Reference](/document-api/reference/query/index) |
| Ranges | 1 | 0 | 1 | [Reference](/document-api/reference/ranges/index) |
| Sections | 18 | 0 | 18 | [Reference](/document-api/reference/sections/index) |
Expand Down Expand Up @@ -335,6 +337,14 @@ Use the tables below to see what operations are available and where each one is
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.format.paragraph.clearDirection(...)</code></span> | [`format.paragraph.clearDirection`](/document-api/reference/format/paragraph/clear-direction) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.styles.paragraph.setStyle(...)</code></span> | [`styles.paragraph.setStyle`](/document-api/reference/styles/paragraph/set-style) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.styles.paragraph.clearStyle(...)</code></span> | [`styles.paragraph.clearStyle`](/document-api/reference/styles/paragraph/clear-style) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.permissionRanges.list(...)</code></span> | [`permissionRanges.list`](/document-api/reference/permission-ranges/list) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.permissionRanges.get(...)</code></span> | [`permissionRanges.get`](/document-api/reference/permission-ranges/get) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.permissionRanges.create(...)</code></span> | [`permissionRanges.create`](/document-api/reference/permission-ranges/create) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.permissionRanges.remove(...)</code></span> | [`permissionRanges.remove`](/document-api/reference/permission-ranges/remove) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.permissionRanges.updatePrincipal(...)</code></span> | [`permissionRanges.updatePrincipal`](/document-api/reference/permission-ranges/update-principal) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.protection.get(...)</code></span> | [`protection.get`](/document-api/reference/protection/get) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.protection.setEditingRestriction(...)</code></span> | [`protection.setEditingRestriction`](/document-api/reference/protection/set-editing-restriction) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.protection.clearEditingRestriction(...)</code></span> | [`protection.clearEditingRestriction`](/document-api/reference/protection/clear-editing-restriction) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.query.match(...)</code></span> | [`query.match`](/document-api/reference/query/match) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.ranges.resolve(...)</code></span> | [`ranges.resolve`](/document-api/reference/ranges/resolve) |
| <span style={{ whiteSpace: 'nowrap', wordBreak: 'normal', overflowWrap: 'normal' }}><code>editor.doc.sections.list(...)</code></span> | [`sections.list`](/document-api/reference/sections/list) |
Expand Down
32 changes: 31 additions & 1 deletion apps/docs/document-api/reference/_generated-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,16 @@
"apps/docs/document-api/reference/mutations/apply.mdx",
"apps/docs/document-api/reference/mutations/index.mdx",
"apps/docs/document-api/reference/mutations/preview.mdx",
"apps/docs/document-api/reference/permission-ranges/create.mdx",
"apps/docs/document-api/reference/permission-ranges/get.mdx",
"apps/docs/document-api/reference/permission-ranges/index.mdx",
"apps/docs/document-api/reference/permission-ranges/list.mdx",
"apps/docs/document-api/reference/permission-ranges/remove.mdx",
"apps/docs/document-api/reference/permission-ranges/update-principal.mdx",
"apps/docs/document-api/reference/protection/clear-editing-restriction.mdx",
"apps/docs/document-api/reference/protection/get.mdx",
"apps/docs/document-api/reference/protection/index.mdx",
"apps/docs/document-api/reference/protection/set-editing-restriction.mdx",
"apps/docs/document-api/reference/query/index.mdx",
"apps/docs/document-api/reference/query/match.mdx",
"apps/docs/document-api/reference/ranges/index.mdx",
Expand Down Expand Up @@ -983,8 +993,28 @@
"operationIds": ["diff.capture", "diff.compare", "diff.apply"],
"pagePath": "apps/docs/document-api/reference/diff/index.mdx",
"title": "Diff"
},
{
"aliasMemberPaths": [],
"key": "protection",
"operationIds": ["protection.get", "protection.setEditingRestriction", "protection.clearEditingRestriction"],
"pagePath": "apps/docs/document-api/reference/protection/index.mdx",
"title": "Protection"
},
{
"aliasMemberPaths": [],
"key": "permissionRanges",
"operationIds": [
"permissionRanges.list",
"permissionRanges.get",
"permissionRanges.create",
"permissionRanges.remove",
"permissionRanges.updatePrincipal"
],
"pagePath": "apps/docs/document-api/reference/permission-ranges/index.mdx",
"title": "Permission Ranges"
}
],
"marker": "{/* GENERATED FILE: DO NOT EDIT. Regenerate via `pnpm run docapi:sync`. */}",
"sourceHash": "d4231e3456244bc979f6e72db4da7ca682ec851ea2fefebb48689c299fbad039"
"sourceHash": "4a3601ee0f28a73c712fbe06e8b4913a9ae882a71152f9f6e892ea51137fc5e8"
}
8 changes: 8 additions & 0 deletions apps/docs/document-api/reference/blocks/list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ Returns a BlocksListResult with total block count, an ordered array of block ent
"description": "True if text is bold.",
"type": "boolean"
},
"color": {
"description": "Text color when explicitly set (e.g. '#000000').",
"type": "string"
},
"fontFamily": {
"description": "Font family from first text run.",
"type": "string"
Expand Down Expand Up @@ -165,6 +169,10 @@ Returns a BlocksListResult with total block count, an ordered array of block ent
"ordinal": {
"type": "number"
},
"ref": {
"description": "Ref handle for this block. Pass directly to superdoc_format or superdoc_edit ref param. Only present for non-empty blocks.",
"type": "string"
},
"styleId": {
"description": "Named paragraph style.",
"oneOf": [
Expand Down
Loading
Loading