@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/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: agentArgsSchema(schema, {}),
62
+ argsSchema: agentTool === FOLIO_AGENT_TOOL_NAMES.suggestChanges ? withBatchOperations(argsSchema) : argsSchema,
61
63
  commands
62
64
  };
63
65
  };
package/dist/save.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { FolioCliIo } from "./cli.js";
2
1
  import { FolioCliError } from "./errors.js";
2
+ import { FolioCliIo } from "./cli.js";
3
3
  import { WriteDestination } from "./transaction.js";
4
4
  import "./execute-write.js";
5
5
  import { Result } from "better-result";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/folio-cli",
3
- "version": "0.3.4",
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/folio-agents": "^0.15.1",
74
- "@stll/folio-core": "^0.54.1",
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"