@ansonlai/docx-redline-js 0.5.3 → 0.6.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/AGENTS.md +82 -667
- package/ARCHITECTURE.md +51 -4
- package/CHANGELOG.md +11 -0
- package/README.md +176 -39
- package/core/paragraph-revision-safety.js +10 -8
- package/core/paragraph-targeting.js +14 -2
- package/core/redline-validation.js +7 -4
- package/core/revision-cloning.js +21 -0
- package/core/validation-delta.js +23 -0
- package/dist/docx-redline-js.esm.js +275 -45
- package/dist/docx-redline-js.esm.js.map +3 -3
- package/dist/docx-redline-js.esm.min.js +82 -82
- package/dist/docx-redline-js.esm.min.js.map +4 -4
- package/docs/AGENT_FAST_START.md +59 -0
- package/docs/AGENT_KNOWLEDGE_BASE.md +868 -0
- package/docs/TESTING.md +20 -1
- package/docs/schemas/document-operations.schema.json +16 -2
- package/docs/validation-reports/2026-09-12-agent-protocol-rollout.md +82 -0
- package/engine/oxml-engine.js +80 -13
- package/engine/run-builders.js +5 -15
- package/engine/surgical-mode.js +148 -3
- package/engine/surgical-run-splitting.js +19 -7
- package/engine/surgical-spans.js +2 -1
- package/index.d.ts +17 -1
- package/node/cli.js +235 -36
- package/node/docx-document.js +137 -83
- package/node/index.d.ts +6 -2
- package/package.json +10 -3
- package/pipeline/diff-engine.js +15 -0
- package/scripts/generate-cross-author-slicing-fixtures.ps1 +25 -25
- package/services/batch-operation-orchestrator.js +215 -120
- package/services/document-inspection.js +5 -3
- package/services/document-operation-applier.js +99 -36
- package/services/document-operation-contract.js +50 -6
- package/services/document-operation-mutations.js +404 -41
- package/services/document-operation-session.js +4 -0
- package/services/error-recovery.js +174 -0
- package/services/operation-batch-compiler.js +394 -0
- package/services/operation-preflight.js +91 -72
- package/services/standalone-operation-runner.d.ts +35 -1
- package/docs/plans/2026-09-05-structural-revisions-and-fidelity-oracles.md +0 -1669
- package/docs/plans/2026-09-08-cross-author-revision-slicing.md +0 -856
- package/docs/plans/completed/2026-03-01-release-0.1.4-design.md +0 -33
- package/docs/plans/completed/2026-03-01-release-0.1.4.md +0 -110
- package/docs/plans/completed/2026-05-31-architectural changes.md +0 -593
- package/docs/plans/completed/2026-08-02-reliability-improvements.md +0 -1155
- package/docs/plans/completed/2026-08-30-reliability-testing-improvements.md +0 -488
- package/docs/plans/completed/2026-09-01-performance-and-complexity-reduction.md +0 -669
- package/docs/plans/completed/2026-09-03-agent-friendly-document-workflows.md +0 -427
- package/docs/plans/completed/2026-09-04-comment-anchor-and-cli-reliability.md +0 -519
- package/docs/plans/completed/PERFORMANCE-CONSOLIDATION.md +0 -69
- package/docs/plans/completed/structural-revision-capability-matrix.md +0 -115
- package/docs/test-comparison-dashboard.html +0 -4338
- package/docs/validation-reports/2026-08-30-phase-1-word-visual-preflight.md +0 -22
- package/docs/validation-reports/2026-08-30-phase-2-word-visual-preflight.md +0 -24
- package/docs/validation-reports/2026-08-30-phase-3-coverage.md +0 -73
- package/docs/validation-reports/2026-09-02-multilevel-bullets-visual-review.md +0 -82
- package/docs/validation-reports/2026-09-02-multimodal-visual-samples.md +0 -114
- package/docs/validation-reports/2026-09-02-visual-failures-preflight.md +0 -79
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# 0.1.4 Release Prep Design
|
|
2
|
-
|
|
3
|
-
**Status:** Completed
|
|
4
|
-
|
|
5
|
-
**Objective:** Prepare the repository for a `0.1.4` patch release without publishing from this session.
|
|
6
|
-
|
|
7
|
-
## Scope
|
|
8
|
-
|
|
9
|
-
- Bump the package version from `0.1.3` to `0.1.4` in release metadata.
|
|
10
|
-
- Update local release-note examples that are pinned to the prior version.
|
|
11
|
-
- Run release preflight verification locally after the version bump.
|
|
12
|
-
- Hand off the exact npm commands for the manual publish step.
|
|
13
|
-
|
|
14
|
-
## Approach
|
|
15
|
-
|
|
16
|
-
Use minimal, explicit edits so the release prep is easy to review. Keep the release workflow local and manual, consistent with the existing policy in `.anson/release-ci-cd-notes.md`.
|
|
17
|
-
|
|
18
|
-
## Verification
|
|
19
|
-
|
|
20
|
-
Run the same preflight commands documented in the local release notes:
|
|
21
|
-
|
|
22
|
-
- `npm test:isolation`
|
|
23
|
-
- `npm test`
|
|
24
|
-
- `npm run build`
|
|
25
|
-
- `npm pack --dry-run`
|
|
26
|
-
|
|
27
|
-
## Manual Handoff
|
|
28
|
-
|
|
29
|
-
After verification, provide the exact commands for:
|
|
30
|
-
|
|
31
|
-
- `npm whoami`
|
|
32
|
-
- `npm publish --access public`
|
|
33
|
-
- `npm view @ansonlai/docx-redline-js version`
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
# 0.1.4 Release Prep Implementation Plan
|
|
2
|
-
|
|
3
|
-
**Status:** Completed
|
|
4
|
-
|
|
5
|
-
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
|
|
6
|
-
|
|
7
|
-
**Goal:** Prepare the repository for a local/manual `0.1.4` release and verify it is ready to publish.
|
|
8
|
-
|
|
9
|
-
**Architecture:** Keep the release prep narrowly scoped to version metadata, local release instructions, and preflight verification. Do not publish from the implementation step; instead, leave the workspace in a verified, reviewable state and hand off the final npm commands.
|
|
10
|
-
|
|
11
|
-
**Tech Stack:** Node.js, npm, PowerShell, package metadata files
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
### Task 1: Update Release Metadata (Completed)
|
|
16
|
-
|
|
17
|
-
**Files:**
|
|
18
|
-
- Create: `docs/plans/2026-03-01-release-0.1.4-design.md`
|
|
19
|
-
- Create: `docs/plans/2026-03-01-release-0.1.4.md`
|
|
20
|
-
- Modify: `package.json`
|
|
21
|
-
- Modify: `package-lock.json`
|
|
22
|
-
- Modify: `.anson/release-ci-cd-notes.md`
|
|
23
|
-
|
|
24
|
-
**Step 1: Write the failing test**
|
|
25
|
-
|
|
26
|
-
Inspect the current version references and confirm they still show `0.1.3`.
|
|
27
|
-
|
|
28
|
-
**Step 2: Run test to verify it fails**
|
|
29
|
-
|
|
30
|
-
Run: `rg -uu -n "0\\.1\\.3|0\\.1\\.4" .`
|
|
31
|
-
Expected: package metadata and local release-note examples still point to `0.1.3`.
|
|
32
|
-
|
|
33
|
-
**Step 3: Write minimal implementation**
|
|
34
|
-
|
|
35
|
-
- Change package version fields to `0.1.4`.
|
|
36
|
-
- Update local release-note example commands and CDN URLs to `0.1.4`.
|
|
37
|
-
- Save the release design and implementation plan docs.
|
|
38
|
-
|
|
39
|
-
**Step 4: Run test to verify it passes**
|
|
40
|
-
|
|
41
|
-
Run: `rg -uu -n "0\\.1\\.3|0\\.1\\.4" package.json package-lock.json .anson/release-ci-cd-notes.md`
|
|
42
|
-
Expected: only `0.1.4` appears in those release-facing files.
|
|
43
|
-
|
|
44
|
-
**Step 5: Commit**
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
git add docs/plans/2026-03-01-release-0.1.4-design.md docs/plans/2026-03-01-release-0.1.4.md package.json package-lock.json .anson/release-ci-cd-notes.md
|
|
48
|
-
git commit -m "release: prep v0.1.4"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Task 2: Run Release Preflight (Completed)
|
|
52
|
-
|
|
53
|
-
**Files:**
|
|
54
|
-
- Modify: `dist/docx-redline-js.esm.js`
|
|
55
|
-
|
|
56
|
-
**Step 1: Write the failing test**
|
|
57
|
-
|
|
58
|
-
Assume the built artifact banner still reflects the previous version until the build runs.
|
|
59
|
-
|
|
60
|
-
**Step 2: Run test to verify it fails**
|
|
61
|
-
|
|
62
|
-
Run: `rg -n "v0\\.1\\.3|v0\\.1\\.4" dist/docx-redline-js.esm.js`
|
|
63
|
-
Expected: the banner still shows `v0.1.3` before rebuilding.
|
|
64
|
-
|
|
65
|
-
**Step 3: Write minimal implementation**
|
|
66
|
-
|
|
67
|
-
Run the documented preflight:
|
|
68
|
-
|
|
69
|
-
- `npm test:isolation`
|
|
70
|
-
- `npm test`
|
|
71
|
-
- `npm run build`
|
|
72
|
-
- `npm pack --dry-run`
|
|
73
|
-
|
|
74
|
-
**Step 4: Run test to verify it passes**
|
|
75
|
-
|
|
76
|
-
Run: `rg -n "v0\\.1\\.3|v0\\.1\\.4" dist/docx-redline-js.esm.js`
|
|
77
|
-
Expected: the banner shows `v0.1.4`, and the preflight commands complete successfully.
|
|
78
|
-
|
|
79
|
-
**Step 5: Commit**
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
git add dist/docx-redline-js.esm.js
|
|
83
|
-
git commit -m "build: refresh dist for v0.1.4"
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Task 3: Publish Handoff (Completed)
|
|
87
|
-
|
|
88
|
-
**Files:**
|
|
89
|
-
- No file changes
|
|
90
|
-
|
|
91
|
-
**Step 1: Write the failing test**
|
|
92
|
-
|
|
93
|
-
Confirm the package is not yet published from this session.
|
|
94
|
-
|
|
95
|
-
**Step 2: Run test to verify it fails**
|
|
96
|
-
|
|
97
|
-
Run: `npm view @ansonlai/docx-redline-js version`
|
|
98
|
-
Expected: the registry version may still report the prior published release until you publish manually.
|
|
99
|
-
|
|
100
|
-
**Step 3: Write minimal implementation**
|
|
101
|
-
|
|
102
|
-
Provide the exact local commands for npm auth check, publish, optional tag push, and post-publish verification.
|
|
103
|
-
|
|
104
|
-
**Step 4: Run test to verify it passes**
|
|
105
|
-
|
|
106
|
-
User runs the publish commands locally and confirms `npm view @ansonlai/docx-redline-js version` returns `0.1.4`.
|
|
107
|
-
|
|
108
|
-
**Step 5: Commit**
|
|
109
|
-
|
|
110
|
-
No additional commit required.
|