@stll/folio-cli 0.4.1 → 0.4.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/dist/cli.js +13 -1
- package/dist/package.js +1 -1
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -167,6 +167,17 @@ const rootHelp = () => {
|
|
|
167
167
|
""
|
|
168
168
|
].join("\n");
|
|
169
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* A worked call for commands whose JSON flags the flag list cannot show: the
|
|
172
|
+
* operation shape and where its ids come from.
|
|
173
|
+
*/
|
|
174
|
+
const COMMAND_EXAMPLES = { suggest: [
|
|
175
|
+
"Example (find the text, then replace it as a tracked change):",
|
|
176
|
+
" folio find contract.docx --query \"the Supplier\"",
|
|
177
|
+
" folio suggest contract.docx --in-place --expect-version <fileVersion> --operations \\",
|
|
178
|
+
" '[{\"type\":\"replaceInBlock\",\"blockId\":\"<blockId>\",\"find\":\"the Supplier\",\"replace\":\"each party\"}]'",
|
|
179
|
+
"Copy fileVersion and blockId from the find result; every operation names its `type`."
|
|
180
|
+
] };
|
|
170
181
|
const commandHelp = (resolved) => {
|
|
171
182
|
const flags = [...generatedFlags(resolved).map(({ flag, description, valueType }) => ({
|
|
172
183
|
name: valueType === "boolean" ? `--${flag}` : `--${flag} <${valueType}>`,
|
|
@@ -184,7 +195,8 @@ const commandHelp = (resolved) => {
|
|
|
184
195
|
"",
|
|
185
196
|
"Flags:",
|
|
186
197
|
...flags.map(({ name, description }) => ` ${name}\n ${wrapText(description, " ")}`),
|
|
187
|
-
""
|
|
198
|
+
"",
|
|
199
|
+
...(COMMAND_EXAMPLES[resolved.command.name] ?? []).flatMap((line, index, lines) => index === lines.length - 1 ? [line, ""] : [line])
|
|
188
200
|
].join("\n");
|
|
189
201
|
};
|
|
190
202
|
const stringValue = (value) => typeof value === "string" ? value : void 0;
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Command line and stdio MCP server for reading, reviewing, and redlining .docx files with folio: tracked-change edits, comments, and comparisons written atomically with version preconditions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"@fontsource/tinos": "^5.2.7",
|
|
72
72
|
"@modelcontextprotocol/server": "2.0.0",
|
|
73
73
|
"@stll/agent-input": "0.1.0",
|
|
74
|
-
"@stll/folio-agents": "^0.15.
|
|
75
|
-
"@stll/folio-core": "^0.
|
|
74
|
+
"@stll/folio-agents": "^0.15.4",
|
|
75
|
+
"@stll/folio-core": "^0.57.0",
|
|
76
76
|
"better-result": "3.0.1",
|
|
77
77
|
"fast-xml-parser": "^5.10.1",
|
|
78
78
|
"jszip": "3.10.2"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@modelcontextprotocol/client": "2.
|
|
81
|
+
"@modelcontextprotocol/client": "2.2.0",
|
|
82
82
|
"playwright-core": "1.61.1"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|