revise 3.1.1 → 3.1.3

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,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.3
4
+
5
+ ### Changed
6
+
7
+ - **The package README** has a plain heading and tagline. No changes to the
8
+ CLI or the library.
9
+
10
+ ## 3.1.2
11
+
12
+ ### Changed
13
+
14
+ - **`revise skill install` installs where the agent running it reads
15
+ skills:** `.claude/skills` from Claude Code or in a project with a
16
+ `.claude` folder, otherwise `.agents/skills`, which Codex, Cursor, Copilot,
17
+ and others read. It used to fall back to `.claude/skills`, which other
18
+ agents don't read.
19
+ - **It ends by saying to read the installed SKILL.md now:** a running agent
20
+ session doesn't load a newly installed skill; new sessions do. The
21
+ quickest install for any agent with a terminal is
22
+ `npx -y revise@latest skill install`.
23
+
3
24
  ## 3.1.1
4
25
 
5
26
  ### Changed
package/LICENSE CHANGED
@@ -19,6 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
23
- This package depends on @reviseio/engine, which is distributed separately
24
- under its own license (free for any use, including commercial).
package/README.md CHANGED
@@ -1,19 +1,43 @@
1
- # revise
1
+ # reviseio
2
2
 
3
- Read, edit, and redline Word documents from the command line or TypeScript.
3
+ The swiss army knife for documents
4
+
5
+ [![](https://img.shields.io/npm/v/revise)](https://www.npmjs.com/package/revise) [![](https://img.shields.io/badge/read_the-docs-blue)](https://revise.io/developer/docs/revise/cli)
6
+
7
+ Read, edit, and redline Word documents. Available as CLI and TypeScript library.
4
8
 
5
9
  ```bash
6
- npm i -g revise # or: npx revise <command>
10
+ npx revise
7
11
  ```
8
12
 
9
- AI agents using `revise` can edit documents several times faster. Paste this into your agent:
13
+ ## For Agents
14
+
15
+ AI agents using `revise` can work with Word documents several times faster.
16
+
17
+ To get started, tell your agent:
10
18
 
11
19
  ```text
12
20
  Read https://revise.io/skills/cli.md and follow it.
13
21
  ```
14
22
 
23
+ Or install the skill directly from a terminal:
24
+
25
+ ```bash
26
+ npx -y revise@latest skill install
27
+ ```
28
+
29
+ ## Install
30
+
31
+ You can also just install the `revise` CLI by itself:
32
+
33
+ ```bash
34
+ npm i -g revise
35
+ ```
36
+
15
37
  ## CLI
16
38
 
39
+ The `revise` CLI lets you inspect, edit, and convert .docx files.
40
+
17
41
  ```bash
18
42
  revise outline contract.docx # headings with block ranges
19
43
  revise read contract.docx 0 # blocks as HTML, with ids
@@ -28,6 +52,8 @@ revise export contract.docx contract.pdf # .docx .pdf .md .html
28
52
  cat notes.md | revise convert - notes.docx
29
53
  ```
30
54
 
55
+ `revise` was designed primarily for AI agents, and has a whole suite of agent-ready tools for granular editing:
56
+
31
57
  ```bash
32
58
  revise tools # every editing tool
33
59
  revise call contract.docx set_header_footer '{"side":"footer","center":"Page {PAGE} of {PAGES}"}'
@@ -39,15 +65,34 @@ revise examples # more
39
65
 
40
66
  ## Agent skills
41
67
 
68
+ Quick install:
69
+
70
+ ```bash
71
+ revise skill install # anything else
72
+ ```
73
+
74
+ Claude:
75
+
42
76
  ```bash
43
77
  claude plugin marketplace add reviseio/skills && claude plugin install cli@revise # Claude Code
78
+ ```
79
+
80
+ Codex:
81
+
82
+ ```bash
44
83
  codex plugin marketplace add reviseio/skills && codex plugin add cli@revise # Codex
84
+ ```
85
+
86
+ Via `skills`:
87
+
88
+ ```bash
45
89
  npx skills add reviseio/skills --skill revise-cli # Cursor, Copilot, Windsurf…
46
- revise skill install # anything else
47
90
  ```
48
91
 
49
92
  ## Library
50
93
 
94
+ `revise` is also available as a [TypeScript library](https://revise.io/developer/docs/revise/library).
95
+
51
96
  ```ts
52
97
  import { ReviseDocument } from "revise";
53
98
 
@@ -92,13 +137,8 @@ await doc.replaceAll("draft", "final");
92
137
  const { bytes } = await doc.export({ format: "docx" });
93
138
  ```
94
139
 
95
- ## Links
96
-
97
- [Docs](https://revise.io/developer/docs/revise/introduction) ·
98
- [Changelog](https://revise.io/developer/docs/revise/changelog) ·
99
- [Browser editor (`@reviseio/editor`)](https://www.npmjs.com/package/@reviseio/editor)
100
-
101
140
  ## License
102
141
 
103
- MIT. Runs on [`@reviseio/engine`](https://www.npmjs.com/package/@reviseio/engine),
104
- free for any use under its own license.
142
+ `revise` is available under the MIT License.
143
+
144
+ [`@reviseio/engine`](https://www.npmjs.com/package/@reviseio/engine) is free for any use under its own license.
package/cli.js CHANGED
@@ -870,8 +870,8 @@ var ui = PLAIN;
870
870
  var uiErr = PLAIN;
871
871
  function producer() {
872
872
  return {
873
- version: true ? "3.1.1" : "dev",
874
- build: true ? "2953a6472" : null
873
+ version: true ? "3.1.3" : "dev",
874
+ build: true ? "8faaded78" : null
875
875
  };
876
876
  }
877
877
  var warnings = [];
@@ -2846,7 +2846,7 @@ async function cmdSkill(args, install) {
2846
2846
  text: () => markdown.replace(/\n$/, "")
2847
2847
  };
2848
2848
  }
2849
- const base = flagString(args, "dir") ?? (fs2.existsSync(".agents/skills") ? ".agents/skills" : ".claude/skills");
2849
+ const base = flagString(args, "dir") ?? skillsDirFor(io.env ?? {});
2850
2850
  const dir = path2.join(base, "revise-cli");
2851
2851
  const file = path2.join(dir, "SKILL.md");
2852
2852
  const older = path2.join(base, "revise");
@@ -2860,9 +2860,20 @@ async function cmdSkill(args, install) {
2860
2860
  }
2861
2861
  return {
2862
2862
  data: { output: path2.resolve(file), outputWritten: true },
2863
- text: () => `${ui.green("Installed")} ${dir}/ (SKILL.md and reference/)${replaced ? `, replacing the older ${older}/` : ""}`
2863
+ text: () => [
2864
+ `${ui.green("Installed")} ${dir}/ (SKILL.md and reference/)${replaced ? `, replacing the older ${older}/` : ""}.`,
2865
+ // An agent's running session doesn't load a skill installed during
2866
+ // it; new sessions do.
2867
+ `Agents: read ${file} now and follow it. New sessions load it automatically.`
2868
+ ].join("\n")
2864
2869
  };
2865
2870
  }
2871
+ function skillsDirFor(env) {
2872
+ if (env.CLAUDECODE) return ".claude/skills";
2873
+ if (fs2.existsSync(".agents/skills")) return ".agents/skills";
2874
+ if (fs2.existsSync(".claude")) return ".claude/skills";
2875
+ return ".agents/skills";
2876
+ }
2866
2877
  var RENAMED_COMMANDS = {
2867
2878
  "replace-text": "replace-all"
2868
2879
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "revise",
3
- "version": "3.1.1",
4
- "reviseBuild": "2953a6472",
3
+ "version": "3.1.3",
4
+ "reviseBuild": "8faaded78",
5
5
  "description": "Read, edit, and redline Word documents from the command line or TypeScript, with tracked changes, comments, and tools for AI agents.",
6
6
  "keywords": [
7
7
  "docx",
@@ -55,7 +55,7 @@
55
55
  ],
56
56
  "sideEffects": false,
57
57
  "dependencies": {
58
- "@reviseio/engine": "3.1.1",
58
+ "@reviseio/engine": "3.1.3",
59
59
  "jszip": "^3.10.1",
60
60
  "yjs": "^13.6.27"
61
61
  },