@stll/folio-cli 0.3.4 → 0.4.1
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/README.md +37 -9
- package/dist/batch-operations.d.ts +29 -0
- package/dist/batch-operations.js +226 -0
- package/dist/document.d.ts +16 -2
- package/dist/document.js +32 -8
- package/dist/execute-read.d.ts +14 -10
- package/dist/execute-read.js +27 -15
- package/dist/execute-write.d.ts +1 -1
- package/dist/execute-write.js +36 -16
- package/dist/mcp-kit/envelope.d.ts +27 -0
- package/dist/mcp-kit/envelope.js +80 -0
- package/dist/mcp-kit/index.d.ts +6 -0
- package/dist/mcp-kit/index.js +5 -0
- package/dist/mcp-kit/input.d.ts +23 -0
- package/dist/mcp-kit/input.js +76 -0
- package/dist/mcp-kit/schema.d.ts +20 -0
- package/dist/mcp-kit/schema.js +97 -0
- package/dist/mcp-kit/surface.d.ts +19 -0
- package/dist/mcp-kit/surface.js +312 -0
- package/dist/mcp-kit/types.d.ts +98 -0
- package/dist/mcp-kit/types.js +1 -0
- package/dist/mcp.d.ts +8 -2
- package/dist/mcp.js +486 -72
- package/dist/package.js +1 -1
- package/dist/registry.js +4 -2
- package/dist/save.d.ts +1 -1
- package/package.json +4 -3
package/dist/registry.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { withBatchOperations } from "./batch-operations.js";
|
|
1
2
|
import { panic } from "better-result";
|
|
2
|
-
import { FOLIO_AGENT_TOOL_NAMES } from "@stll/folio-agents/types";
|
|
3
3
|
import { getFolioToolDefinitions } from "@stll/folio-agents/tools";
|
|
4
|
+
import { FOLIO_AGENT_TOOL_NAMES } from "@stll/folio-agents/types";
|
|
4
5
|
//#region src/registry.ts
|
|
5
6
|
/**
|
|
6
7
|
* The one tool vocabulary behind both surfaces. Every entry is an MCP tool
|
|
@@ -51,13 +52,14 @@ const agentRead = ({ agentTool, commands, extraProperties = {} }) => {
|
|
|
51
52
|
};
|
|
52
53
|
const agentWrite = ({ agentTool, commands, editMode }) => {
|
|
53
54
|
const { description, schema } = agentDefinition(agentTool);
|
|
55
|
+
const argsSchema = agentArgsSchema(schema, {});
|
|
54
56
|
return {
|
|
55
57
|
type: "agentWrite",
|
|
56
58
|
name: agentTool,
|
|
57
59
|
agentTool,
|
|
58
60
|
editMode,
|
|
59
61
|
description,
|
|
60
|
-
argsSchema:
|
|
62
|
+
argsSchema: agentTool === FOLIO_AGENT_TOOL_NAMES.suggestChanges ? withBatchOperations(argsSchema) : argsSchema,
|
|
61
63
|
commands
|
|
62
64
|
};
|
|
63
65
|
};
|
package/dist/save.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/folio-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|
|
@@ -70,8 +70,9 @@
|
|
|
70
70
|
"@fontsource/source-sans-3": "^5.2.9",
|
|
71
71
|
"@fontsource/tinos": "^5.2.7",
|
|
72
72
|
"@modelcontextprotocol/server": "2.0.0",
|
|
73
|
-
"@stll/
|
|
74
|
-
"@stll/folio-
|
|
73
|
+
"@stll/agent-input": "0.1.0",
|
|
74
|
+
"@stll/folio-agents": "^0.15.2",
|
|
75
|
+
"@stll/folio-core": "^0.55.0",
|
|
75
76
|
"better-result": "3.0.1",
|
|
76
77
|
"fast-xml-parser": "^5.10.1",
|
|
77
78
|
"jszip": "3.10.2"
|