@components-kit/open-workbook 0.1.0 → 0.1.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/assets/backend/dist/runtime-service.js +1 -1
- package/assets/excel-addin/dist/excel-executor.js +1 -1
- package/assets/excel-addin/manifest.xml +1 -1
- package/assets/excel-addin/scripts/dev-server.mjs +19 -4
- package/assets/instructions/open-workbook-excel/SKILL.md +1 -1
- package/assets/mcp-server/dist/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { chunkMatrixRows, createRangeFingerprint, createWorkbookFingerprint, formatA1Cell, hashStable, parseA1Address } from "@components-kit/open-workbook-excel-core";
|
|
2
2
|
import { runtimeError } from "@components-kit/open-workbook-protocol";
|
|
3
3
|
const ENGINE_NAME = "office-js-addin";
|
|
4
|
-
const ENGINE_VERSION = "0.1.
|
|
4
|
+
const ENGINE_VERSION = "0.1.1";
|
|
5
5
|
const CHUNK_CELL_LIMIT = 50_000;
|
|
6
6
|
const OPEN_WORKBOOK_CUSTOM_XML_NAMESPACE = "https://open-workbook.dev/schema/local-config/1";
|
|
7
7
|
const EXCEL_API_VERSIONS = ["1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "1.14", "1.15", "1.16", "1.17"];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
|
|
6
6
|
xsi:type="TaskPaneApp">
|
|
7
7
|
<Id>6f2d2ac1-69b0-4eb6-a256-0a1fcb000001</Id>
|
|
8
|
-
<Version>0.1.
|
|
8
|
+
<Version>0.1.1.0</Version>
|
|
9
9
|
<ProviderName>Open Workbook</ProviderName>
|
|
10
10
|
<DefaultLocale>en-US</DefaultLocale>
|
|
11
11
|
<DisplayName DefaultValue="Open Workbook" />
|
|
@@ -6,10 +6,21 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
|
|
7
7
|
const root = fileURLToPath(new URL("..", import.meta.url));
|
|
8
8
|
const repoRoot = join(root, "../..");
|
|
9
|
+
const packageScopeRoot = join(repoRoot, "..");
|
|
9
10
|
const publicDir = join(root, "public");
|
|
10
11
|
const workspaceModuleDirs = new Map([
|
|
11
|
-
["/workspace/excel-core/",
|
|
12
|
-
|
|
12
|
+
["/workspace/excel-core/", firstExistingPath([
|
|
13
|
+
join(repoRoot, "packages/excel-core/dist"),
|
|
14
|
+
join(repoRoot, "../excel-core/dist"),
|
|
15
|
+
join(repoRoot, "node_modules/@components-kit/open-workbook-excel-core/dist"),
|
|
16
|
+
join(packageScopeRoot, "open-workbook-excel-core/dist")
|
|
17
|
+
])],
|
|
18
|
+
["/workspace/protocol/", firstExistingPath([
|
|
19
|
+
join(repoRoot, "packages/protocol/dist"),
|
|
20
|
+
join(repoRoot, "../protocol/dist"),
|
|
21
|
+
join(repoRoot, "node_modules/@components-kit/open-workbook-protocol/dist"),
|
|
22
|
+
join(packageScopeRoot, "open-workbook-protocol/dist")
|
|
23
|
+
])]
|
|
13
24
|
]);
|
|
14
25
|
const port = Number(process.env.OPEN_WORKBOOK_ADDIN_PORT ?? 37846);
|
|
15
26
|
const host = process.env.OPEN_WORKBOOK_ADDIN_HOST ?? "127.0.0.1";
|
|
@@ -73,19 +84,23 @@ function isAllowedPath(filePath) {
|
|
|
73
84
|
return (
|
|
74
85
|
filePath.startsWith(publicDir) ||
|
|
75
86
|
filePath.startsWith(join(root, "dist")) ||
|
|
76
|
-
Array.from(workspaceModuleDirs.values()).some((moduleDir) => filePath.startsWith(moduleDir))
|
|
87
|
+
Array.from(workspaceModuleDirs.values()).some((moduleDir) => moduleDir && filePath.startsWith(moduleDir))
|
|
77
88
|
);
|
|
78
89
|
}
|
|
79
90
|
|
|
80
91
|
function resolveWorkspaceModule(pathname) {
|
|
81
92
|
for (const [prefix, moduleDir] of workspaceModuleDirs) {
|
|
82
|
-
if (pathname.startsWith(prefix)) {
|
|
93
|
+
if (moduleDir && pathname.startsWith(prefix)) {
|
|
83
94
|
return join(moduleDir, pathname.slice(prefix.length));
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
97
|
return undefined;
|
|
87
98
|
}
|
|
88
99
|
|
|
100
|
+
function firstExistingPath(paths) {
|
|
101
|
+
return paths.find((path) => existsSync(path));
|
|
102
|
+
}
|
|
103
|
+
|
|
89
104
|
function rewriteBrowserImports(source) {
|
|
90
105
|
return source
|
|
91
106
|
.replaceAll("\"@components-kit/open-workbook-excel-core\"", "\"/workspace/excel-core/index.js\"")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: open-workbook-excel
|
|
3
|
-
description: Use when an agent needs to automate live Microsoft Excel workbooks through Open Workbook MCP
|
|
3
|
+
description: "Use when an agent needs to automate live Microsoft Excel workbooks through Open Workbook MCP, including inspecting workbooks, reading or writing ranges, updating tables, preserving templates, repairing formulas/styles, creating pivots/charts, validating reports, saving/exporting files, coordinating multiple agents, or choosing the fastest reliable Excel MCP tool instead of slow manual spreadsheet automation."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Open Workbook Excel
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const dependencyPaths = {
|
|
|
35
35
|
instructions: bundledPaths.instructions
|
|
36
36
|
};
|
|
37
37
|
const program = new Command();
|
|
38
|
-
program.name("owb").description("Open Workbook local CLI").version("0.1.
|
|
38
|
+
program.name("owb").description("Open Workbook local CLI").version("0.1.1");
|
|
39
39
|
program
|
|
40
40
|
.command("mcp")
|
|
41
41
|
.description("Start the Open Workbook MCP adapter and local Excel add-in asset server")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@components-kit/open-workbook",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "CLI for installing, sideloading, and running Open Workbook locally.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.7.0",
|
|
38
38
|
"zod": "^3.24.1",
|
|
39
39
|
"commander": "^13.1.0",
|
|
40
|
-
"@components-kit/open-workbook-backend": "0.1.
|
|
41
|
-
"@components-kit/open-workbook-
|
|
42
|
-
"@components-kit/open-workbook-
|
|
43
|
-
"@components-kit/open-workbook-
|
|
44
|
-
"@components-kit/open-workbook-
|
|
40
|
+
"@components-kit/open-workbook-backend": "0.1.1",
|
|
41
|
+
"@components-kit/open-workbook-protocol": "0.1.1",
|
|
42
|
+
"@components-kit/open-workbook-office-js-engine": "0.1.1",
|
|
43
|
+
"@components-kit/open-workbook-mcp-server": "0.1.1",
|
|
44
|
+
"@components-kit/open-workbook-excel-core": "0.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "^22.10.7",
|