@tiwater/office-mcp 0.15.4 → 0.15.5

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.
@@ -2,7 +2,7 @@
2
2
  "schema": "tiwater.office-provider-contract-manifest/v1",
3
3
  "provider": {
4
4
  "id": "@tiwater/office-mcp",
5
- "version": "0.15.4"
5
+ "version": "0.15.5"
6
6
  },
7
7
  "tools": [
8
8
  {
package/office/index.mjs CHANGED
@@ -460,6 +460,10 @@ async function fixedEdit(tool, args) {
460
460
  : pptxCandidates;
461
461
  return withTempJsonFile(args, async requestPath => {
462
462
  const result = await runJsonCandidateChain(candidates, [tool, requestPath], { allowedExitCodes: [0, 1] });
463
+ if (result.code !== 0) {
464
+ const detail = result.stderr.trim() || result.stdout.trim() || `${tool} failed with exit code ${result.code}`;
465
+ throw new Error(detail);
466
+ }
463
467
  if (result.json?.tool !== tool) throw new Error(`${tool} returned a mismatched tool identity`);
464
468
  await requireReturnedArtifact(result.json.receipt, receiptOutput, 'receipt');
465
469
  if (result.json.output === null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiwater/office-mcp",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
4
4
  "description": "Published MCP server for Tiwater Office document capabilities",
5
5
  "type": "module",
6
6
  "license": "MIT",