From 63ae67c533a96544deadafb4f5d6f7b86b768977 Mon Sep 17 00:00:00 2001 From: ppppp2005-p <360128433+ppppp2005-p@users.noreply.github.com> Date: Wed, 25 Nov 2026 15:13:02 -0400 Subject: [PATCH 01/13] feat(ui-plugins): add Web Task Extension (web-task-extension) --- marketplace.json | 50 ++++++++++++++++++++++++++ pnpm-lock.yaml | 94 ++++++++++++++++++++++++------------------------ 2 files changed, 96 insertions(+), 48 deletions(-) diff --git a/marketplace.json b/marketplace.json index 32e8c8ef..711052d8 100644 --- a/marketplace.json +++ b/marketplace.json @@ -1673,6 +1673,56 @@ "把上一个 Hi3D 任务生成的模型按角色拆分成部件" ] } + }, + { + "name": "web-task-extension", + "componentTypes": [ + "ui" + ], + "source": "./external_plugins/web-task-extension", + "displayName": "Web Task Extension", + "displayName_i18n": { + "en": "Web Task Extension", + "zh-CN": "网页操作转浏览器扩展" + }, + "description": "Turn a browser chore you repeat into a Chrome / Edge extension. Describe it; it becomes steps (open, click, fill, wait, extract rows with fields across pages, download CSV / JSON or linked files) with user settings, and a Manifest V3 extension with a Run button popup, an options page, minimal permissions explained in plain words, and a store-ready zip. The manifest and code are validated (references, icons, permissions vs. steps, MV3 CSP, scripts, locales). No login automation.", + "description_i18n": { + "en": "Turn a browser chore you repeat into a Chrome / Edge extension. Describe it; it becomes steps (open, click, fill, wait, extract rows with fields across pages, download CSV / JSON or linked files) with user settings, and a Manifest V3 extension with a Run button popup, an options page, minimal permissions explained in plain words, and a store-ready zip. The manifest and code are validated (references, icons, permissions vs. steps, MV3 CSP, scripts, locales). No login automation.", + "zh-CN": "把你在浏览器里反复做的操作变成 Chrome / Edge 扩展。描述一下流程,就会整理成步骤(打开、点击、填写、等待、跨页提取带字段的数据、下载 CSV / JSON 或链接文件)和设置项,并生成 Manifest V3 扩展:带“运行任务”按钮的弹窗、设置页、最小权限及通俗的权限说明,以及可上传商店的 zip。自动校验 manifest 和代码(引用文件、图标、权限与步骤是否一致、MV3 CSP、脚本、多语言)。不做自动登录。" + }, + "version": "0.1.0", + "author": { + "name": "Penova", + "url": "https://github.com/ppppp2005-p" + }, + "license": "MIT", + "category": "productivity", + "keywords": [ + "chrome extension", + "browser extension", + "manifest v3", + "automation", + "web scraping", + "rpa", + "edge", + "浏览器扩展", + "自动化", + "网页操作", + "数据提取", + "插件" + ], + "examplePrompts": [ + "Every morning I search our supplier portal for brake parts and copy the in-stock ones into a spreadsheet; make that an extension", + "Make an extension that saves this table as CSV", + "Add a step that also downloads the spec sheets" + ], + "examplePrompts_i18n": { + "zh-CN": [ + "我每天早上在供应商门户搜刹车配件,把有货的抄进表格,帮我做成扩展", + "做一个把这个页面表格存成 CSV 的扩展", + "再加一步,把规格单也下载下来" + ] + } } ] } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 14b35f76..2e0a3b45 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -265,6 +265,40 @@ importers: ui-plugins/vectorcraft: {} + ui-plugins/web-task-extension: + dependencies: + '@modelcontextprotocol/sdk': + specifier: 1.29.0 + version: 1.29.0(zod@4.6.5) + fflate: + specifier: 0.8.2 + version: 0.8.2 + zod: + specifier: ^4.6.5 + version: 4.6.5 + devDependencies: + '@modelcontextprotocol/core': + specifier: 2.0.0 + version: 2.0.0 + '@modelcontextprotocol/ext-apps': + specifier: 2.0.0 + version: 2.0.0(@modelcontextprotocol/client@2.2.0)(@modelcontextprotocol/core@2.0.0)(@modelcontextprotocol/server@2.0.0)(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(zod@4.6.5) + '@types/node': + specifier: 25.5.0 + version: 25.5.0 + esbuild: + specifier: ^0.25.12 + version: 0.25.12 + playwright-core: + specifier: 1.59.1 + version: 1.59.1 + typescript: + specifier: 6.0.2 + version: 6.0.2 + vitest: + specifier: 4.1.4 + version: 4.1.4(@opentelemetry/api@1.9.1)(@types/node@25.5.0)(msw@2.13.3(@types/node@25.5.0)(typescript@6.0.2))(vite@8.3.1(@types/node@25.5.0)(esbuild@0.25.12)(jiti@2.6.1)(tsx@4.21.0)(yaml@2.9.0)) + ui-plugins/wordcraft: {} ui-plugins/zotero: @@ -2475,10 +2509,6 @@ packages: resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} engines: {node: '>= 0.6'} - eventsource-parser@3.1.0: - resolution: {integrity: sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg==} - engines: {node: '>=18.0.0'} - eventsource-parser@3.1.1: resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==} engines: {node: '>=18.0.0'} @@ -2522,8 +2552,8 @@ packages: picomatch: optional: true - fflate@0.8.3: - resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==} + fflate@0.8.2: + resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} @@ -2714,9 +2744,6 @@ packages: jose@6.2.12: resolution: {integrity: sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==} - jose@6.2.2: - resolution: {integrity: sha512-d7kPDd34KO/YnzaDOlikGpOurfF0ByC2sEV4cANCtdqLlTfBlw2p14O/5d/zv40gJPbIQxfES3nSx1/oYNyuZQ==} - jotai-scope@0.7.2: resolution: {integrity: sha512-Gwed97f3dDObrO43++2lRcgOqw4O2sdr4JCjP/7eHK1oPACDJ7xKHGScpJX9XaflU+KBHXF+VhwECnzcaQiShg==} peerDependencies: @@ -3068,10 +3095,6 @@ packages: resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} engines: {node: '>=8.6'} - picomatch@4.0.4: - resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} - engines: {node: '>=12'} - picomatch@4.0.7: resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} @@ -3383,18 +3406,10 @@ packages: tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@1.1.1: - resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==} - engines: {node: '>=18'} - tinyexec@1.3.1: resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} engines: {node: '>=18'} - tinyglobby@0.2.16: - resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==} - engines: {node: '>=12.0.0'} - tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} @@ -3742,7 +3757,7 @@ snapshots: '@antfu/install-pkg@1.1.0': dependencies: package-manager-detector: 1.6.0 - tinyexec: 1.1.1 + tinyexec: 1.3.1 '@atlaskit/pragmatic-drag-and-drop-hitbox@1.2.0': dependencies: @@ -4285,11 +4300,11 @@ snapshots: cors: 2.8.6 cross-spawn: 7.0.6 eventsource: 3.0.7 - eventsource-parser: 3.1.0 + eventsource-parser: 3.1.1 express: 5.2.1 express-rate-limit: 8.3.2(express@5.2.1) hono: 4.12.12 - jose: 6.2.2 + jose: 6.2.12 json-schema-typed: 8.0.2 pkce-challenge: 5.0.1 raw-body: 3.0.2 @@ -4400,7 +4415,7 @@ snapshots: diff: 8.0.4 es-toolkit: 1.46.1 expr-eval: 2.0.2 - fflate: 0.8.3 + fflate: 0.8.2 fontoxpath: 3.34.0 fzstd: 0.1.1 js-base64: 3.9.4 @@ -4421,11 +4436,11 @@ snapshots: '@open-pencil/kiwi': 0.14.0 '@open-pencil/scene-graph': 0.14.0 es-toolkit: 1.46.1 - fflate: 0.8.3 + fflate: 0.8.2 '@open-pencil/kiwi@0.14.0': dependencies: - fflate: 0.8.3 + fflate: 0.8.2 fzstd: 0.1.1 '@open-pencil/mcp@0.14.0': @@ -5809,13 +5824,11 @@ snapshots: etag@1.8.1: {} - eventsource-parser@3.1.0: {} - eventsource-parser@3.1.1: {} eventsource@3.0.7: dependencies: - eventsource-parser: 3.1.0 + eventsource-parser: 3.1.1 expect-type@1.4.0: {} @@ -5869,15 +5882,11 @@ snapshots: fast-uri@3.1.0: {} - fdir@6.5.0(picomatch@4.0.4): - optionalDependencies: - picomatch: 4.0.4 - fdir@6.5.0(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 - fflate@0.8.3: {} + fflate@0.8.2: {} fill-range@7.1.1: dependencies: @@ -6048,8 +6057,6 @@ snapshots: jose@6.2.12: {} - jose@6.2.2: {} - jotai-scope@0.7.2(jotai@2.11.0(@types/react@19.2.14)(react@19.2.7))(react@19.2.7): dependencies: jotai: 2.11.0(@types/react@19.2.14)(react@19.2.7) @@ -6070,7 +6077,7 @@ snapshots: dependencies: '@babel/runtime': 7.29.7 fast-png: 6.4.0 - fflate: 0.8.3 + fflate: 0.8.2 optionalDependencies: canvg: 3.0.11 core-js: 3.50.0 @@ -6406,8 +6413,6 @@ snapshots: picomatch@2.3.2: {} - picomatch@4.0.4: {} - picomatch@4.0.7: {} pirates@4.0.7: {} @@ -6745,7 +6750,7 @@ snapshots: lines-and-columns: 1.2.4 mz: 2.7.0 pirates: 4.0.7 - tinyglobby: 0.2.16 + tinyglobby: 0.2.17 ts-interface-checker: 0.1.13 svg-pathdata@6.0.3: @@ -6779,15 +6784,8 @@ snapshots: tinybench@2.9.0: {} - tinyexec@1.1.1: {} - tinyexec@1.3.1: {} - tinyglobby@0.2.16: - dependencies: - fdir: 6.5.0(picomatch@4.0.4) - picomatch: 4.0.4 - tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.7) From 1dacf18813883cef48e6cf26d1a1831a4faf3c7b Mon Sep 17 00:00:00 2001 From: ppppp2005-p <360128433+ppppp2005-p@users.noreply.github.com> Date: Wed, 25 Nov 2026 15:13:36 -0400 Subject: [PATCH 02/13] feat(ui-plugins): add Web Task Extension (web-task-extension) --- external_plugins/web-task-extension/LICENSE | 21 +++++++ external_plugins/web-task-extension/README.md | 63 +++++++++++++++++++ .../web-task-extension/README_CN.md | 63 +++++++++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 external_plugins/web-task-extension/LICENSE create mode 100644 external_plugins/web-task-extension/README.md create mode 100644 external_plugins/web-task-extension/README_CN.md diff --git a/external_plugins/web-task-extension/LICENSE b/external_plugins/web-task-extension/LICENSE new file mode 100644 index 00000000..67e98093 --- /dev/null +++ b/external_plugins/web-task-extension/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Penova + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/external_plugins/web-task-extension/README.md b/external_plugins/web-task-extension/README.md new file mode 100644 index 00000000..eb6bdfd6 --- /dev/null +++ b/external_plugins/web-task-extension/README.md @@ -0,0 +1,63 @@ +# Web Task Extension + +Turn a chore you repeat in the browser into a **Chrome / Edge extension** you run with one click. Describe the routine; the agent writes it as steps and this plugin generates, validates and zips a **Manifest V3** extension with **minimal, explained permissions**. + +## What it does + +- **Steps**: + - `open` a URL, `click` (by selector, optionally by text), `fill` text / `