auto-chrome-mcp-shared 1.6.0 → 1.7.0

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 hangye
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 hangye
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1885,6 +1885,28 @@ Tip: If the returned elements do not include the specific element you need, use
1885
1885
  }
1886
1886
  }
1887
1887
  ];
1888
+ var LANE_EXEMPT_TOOLS = /* @__PURE__ */ new Set([
1889
+ TOOL_NAMES.BROWSER.GET_WINDOWS_AND_TABS,
1890
+ TOOL_NAMES.BROWSER.SEARCH_TABS_CONTENT,
1891
+ TOOL_NAMES.BROWSER.HISTORY,
1892
+ TOOL_NAMES.BROWSER.BOOKMARK_SEARCH,
1893
+ TOOL_NAMES.BROWSER.BOOKMARK_ADD,
1894
+ TOOL_NAMES.BROWSER.BOOKMARK_DELETE,
1895
+ TOOL_NAMES.BROWSER.REQUEST_USER_CONSENT
1896
+ ]);
1897
+ var LANE_DESCRIPTION_SHORT = 'Parallel lane id. Concurrent agents share one MCP session \u2014 give each agent its own lane (e.g. "agent-1") and pass it on every call so they get isolated work tabs. Omit when not parallel.';
1898
+ var LANE_DESCRIPTION_LONG = 'Parallel lane id. Sub-agents of one Claude Code session share a single MCP session, so without a lane they overwrite each other\u2019s work tab. Give each concurrent agent a distinct lane (e.g. "agent-1") and pass the SAME lane on every subsequent call: the tab opened for a lane is never retargeted or closed by another lane. Omit when not running agents in parallel.';
1899
+ for (const tool of TOOL_SCHEMAS) {
1900
+ if (LANE_EXEMPT_TOOLS.has(tool.name)) continue;
1901
+ const schema = tool.inputSchema;
1902
+ if (!schema || typeof schema !== "object") continue;
1903
+ if (!schema.properties) schema.properties = {};
1904
+ if (schema.properties.lane !== void 0) continue;
1905
+ schema.properties.lane = {
1906
+ type: "string",
1907
+ description: tool.name === TOOL_NAMES.BROWSER.NAVIGATE || tool.name === TOOL_NAMES.BROWSER.SET_WORK_TAB ? LANE_DESCRIPTION_LONG : LANE_DESCRIPTION_SHORT
1908
+ };
1909
+ }
1888
1910
 
1889
1911
  // src/labels.ts
1890
1912
  var EDGE_LABELS = {
package/dist/index.mjs CHANGED
@@ -1840,6 +1840,28 @@ Tip: If the returned elements do not include the specific element you need, use
1840
1840
  }
1841
1841
  }
1842
1842
  ];
1843
+ var LANE_EXEMPT_TOOLS = /* @__PURE__ */ new Set([
1844
+ TOOL_NAMES.BROWSER.GET_WINDOWS_AND_TABS,
1845
+ TOOL_NAMES.BROWSER.SEARCH_TABS_CONTENT,
1846
+ TOOL_NAMES.BROWSER.HISTORY,
1847
+ TOOL_NAMES.BROWSER.BOOKMARK_SEARCH,
1848
+ TOOL_NAMES.BROWSER.BOOKMARK_ADD,
1849
+ TOOL_NAMES.BROWSER.BOOKMARK_DELETE,
1850
+ TOOL_NAMES.BROWSER.REQUEST_USER_CONSENT
1851
+ ]);
1852
+ var LANE_DESCRIPTION_SHORT = 'Parallel lane id. Concurrent agents share one MCP session \u2014 give each agent its own lane (e.g. "agent-1") and pass it on every call so they get isolated work tabs. Omit when not parallel.';
1853
+ var LANE_DESCRIPTION_LONG = 'Parallel lane id. Sub-agents of one Claude Code session share a single MCP session, so without a lane they overwrite each other\u2019s work tab. Give each concurrent agent a distinct lane (e.g. "agent-1") and pass the SAME lane on every subsequent call: the tab opened for a lane is never retargeted or closed by another lane. Omit when not running agents in parallel.';
1854
+ for (const tool of TOOL_SCHEMAS) {
1855
+ if (LANE_EXEMPT_TOOLS.has(tool.name)) continue;
1856
+ const schema = tool.inputSchema;
1857
+ if (!schema || typeof schema !== "object") continue;
1858
+ if (!schema.properties) schema.properties = {};
1859
+ if (schema.properties.lane !== void 0) continue;
1860
+ schema.properties.lane = {
1861
+ type: "string",
1862
+ description: tool.name === TOOL_NAMES.BROWSER.NAVIGATE || tool.name === TOOL_NAMES.BROWSER.SET_WORK_TAB ? LANE_DESCRIPTION_LONG : LANE_DESCRIPTION_SHORT
1863
+ };
1864
+ }
1843
1865
 
1844
1866
  // src/labels.ts
1845
1867
  var EDGE_LABELS = {
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "auto-chrome-mcp-shared",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "author": "hangye (upstream), scalemaker-ship-it (auto-chrome-mcp fork)",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/cw02326/auto-chrome-mcp.git",
8
+ "directory": "packages/shared"
9
+ },
5
10
  "main": "dist/index.js",
6
11
  "module": "./dist/index.mjs",
7
12
  "types": "dist/index.d.ts",