@capyclaw/browser-suite 0.2.37 → 0.2.39
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/composition.lock.json +23 -23
- package/contract/browser-contract.json +45 -19
- package/dsh-suite.json +26 -16
- package/node_modules/@capyclaw/asset-service/dsh-suite.json +1 -1
- package/node_modules/@capyclaw/asset-service/package.json +1 -1
- package/node_modules/@capyclaw/asset-service/src/index.mjs +10 -4
- package/node_modules/@capyclaw/browser-skill-api/contract/browser-contract.json +45 -19
- package/node_modules/@capyclaw/browser-skill-api/package.json +1 -1
- package/node_modules/@capyclaw/browser-skill-api/skills/browser-api/references/tool-contract.md +1 -1
- package/node_modules/@capyclaw/browser-skill-browser/contract/browser-contract.json +45 -19
- package/node_modules/@capyclaw/browser-skill-browser/package.json +1 -1
- package/node_modules/@capyclaw/browser-skill-ops/contract/browser-contract.json +45 -19
- package/node_modules/@capyclaw/browser-skill-ops/package.json +1 -1
- package/node_modules/@capyclaw/browser-workbench/contract/browser-contract.json +45 -19
- package/node_modules/@capyclaw/browser-workbench/package.json +7 -7
- package/node_modules/@capyclaw/browser-workbench/plugin.mjs +13 -1
- package/node_modules/@capyclaw/browser-workbench/server/activate-log.mjs +66 -0
- package/node_modules/@capyclaw/browser-workbench/server/contract.mjs +1 -1
- package/node_modules/@capyclaw/browser-workbench/server/embedded-host.mjs +23 -2
- package/node_modules/@capyclaw/browser-workbench/server/engine.mjs +11 -4
- package/node_modules/@capyclaw/browser-workbench/server/routes/api.mjs +2 -2
- package/node_modules/@capyclaw/browser-workbench/server/shared/SHARED_MANIFEST.json +4 -4
- package/node_modules/@capyclaw/browser-workbench/server/workbench-framework.mjs +34 -0
- package/node_modules/@capyclaw/browser-workbench/ui/app.js +87 -10
- package/node_modules/@capyclaw/document-workbench/package.json +6 -3
- package/node_modules/@capyclaw/document-workbench/src/client/index.mjs +56 -3
- package/node_modules/@capyclaw/document-workbench/src/client/visibility.mjs +112 -0
- package/node_modules/@capyclaw/document-workbench/src/model/manifest.mjs +6 -4
- package/node_modules/@capyclaw/document-workbench/src/model/ops.mjs +7 -2
- package/node_modules/@capyclaw/document-workbench/src/session/index.mjs +8 -0
- package/node_modules/@capyclaw/document-workbench/src/store/file-backend.mjs +17 -10
- package/node_modules/@capyclaw/document-workbench/src/store/projection.mjs +39 -0
- package/node_modules/@capyclaw/document-workbench/src/testing/index.mjs +14 -11
- package/node_modules/@capyclaw/foundation/abi/assets.mjs +26 -0
- package/node_modules/@capyclaw/foundation/abi/bridge.mjs +3 -1
- package/node_modules/@capyclaw/foundation/abi/index.mjs +15 -0
- package/node_modules/@capyclaw/foundation/abi/loader.mjs +8 -1
- package/node_modules/@capyclaw/foundation/abi/spec.mjs +5 -2
- package/node_modules/@capyclaw/foundation/abi/version.mjs +63 -5
- package/node_modules/@capyclaw/foundation/abi/visibility.mjs +90 -0
- package/node_modules/@capyclaw/foundation/lib/adapters/lifecycle-hook.mjs +21 -4
- package/node_modules/@capyclaw/foundation/lib/host/caps.mjs +5 -1
- package/node_modules/@capyclaw/foundation/lib/host/contract.mjs +5 -2
- package/node_modules/@capyclaw/foundation/lib/host/dsh.mjs +4 -0
- package/node_modules/@capyclaw/foundation/lib/host/memory.mjs +29 -2
- package/node_modules/@capyclaw/foundation/lib/kernel.mjs +13 -3
- package/node_modules/@capyclaw/foundation/lib/subsystems/net.mjs +12 -2
- package/node_modules/@capyclaw/foundation/package.json +1 -1
- package/node_modules/@capyclaw/plugin-kit/package.json +3 -1
- package/node_modules/@capyclaw/plugin-kit/src/editor/heartbeat-worker.js +5 -2
- package/node_modules/@capyclaw/plugin-kit/src/editor/heartbeat.mjs +26 -0
- package/node_modules/@capyclaw/plugin-kit/src/editor/lease.mjs +3 -82
- package/node_modules/@capyclaw/plugin-kit/src/service/static.mjs +79 -0
- package/node_modules/@capyclaw/plugin-kit/src/workspace/manager.mjs +13 -5
- package/node_modules/@capyclaw/portal/package.json +1 -1
- package/node_modules/@capyclaw/service-broker/README.md +1 -1
- package/node_modules/@capyclaw/service-broker/lib/control.mjs +23 -7
- package/node_modules/@capyclaw/service-broker/lib/engine.mjs +60 -6
- package/node_modules/@capyclaw/service-broker/lib/host.mjs +11 -6
- package/node_modules/@capyclaw/service-broker/lib/manifest.mjs +15 -2
- package/node_modules/@capyclaw/service-broker/lib/recovery.mjs +0 -50
- package/node_modules/@capyclaw/service-broker/lib/skills-client.mjs +30 -10
- package/node_modules/@capyclaw/service-broker/package.json +1 -1
- package/node_modules/@capyclaw/service-host/dsh-suite.json +1 -1
- package/node_modules/@capyclaw/service-host/package.json +1 -1
- package/node_modules/@capyclaw/service-host/src/index.mjs +18 -19
- package/node_modules/@capyclaw/tool-host/dsh-suite.json +2 -2
- package/node_modules/@capyclaw/tool-host/lib/host.mjs +34 -4
- package/node_modules/@capyclaw/tool-host/package.json +1 -1
- package/node_modules/@capyclaw/tool-host/src/admit-images.mjs +80 -0
- package/node_modules/@capyclaw/tool-host/src/caller-session.mjs +25 -0
- package/node_modules/@capyclaw/tool-host/src/index.mjs +59 -14
- package/node_modules/@capyclaw/tool-host/src/mode-gate.mjs +272 -0
- package/node_modules/playwright/LICENSE +202 -0
- package/node_modules/playwright/NOTICE +5 -0
- package/node_modules/playwright/README.md +318 -0
- package/node_modules/playwright/ThirdPartyNotices.txt +14 -0
- package/node_modules/playwright/cli.js +19 -0
- package/node_modules/playwright/index.d.ts +17 -0
- package/node_modules/playwright/index.js +17 -0
- package/node_modules/playwright/index.mjs +18 -0
- package/node_modules/playwright/lib/agents/agentParser.js +89 -0
- package/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
- package/node_modules/playwright/lib/agents/generateAgents.js +395 -0
- package/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
- package/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
- package/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
- package/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
- package/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +56 -0
- package/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
- package/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +74 -0
- package/node_modules/playwright/lib/cli/reportActions.js +78 -0
- package/node_modules/playwright/lib/cli/testActions.js +217 -0
- package/node_modules/playwright/lib/common/index.js +2937 -0
- package/node_modules/playwright/lib/common/index.js.txt +33 -0
- package/node_modules/playwright/lib/errorContext.js +129 -0
- package/node_modules/playwright/lib/globals.js +58 -0
- package/node_modules/playwright/lib/index.js +827 -0
- package/node_modules/playwright/lib/isomorphic.js +260 -0
- package/node_modules/playwright/lib/isomorphic.js.txt +9 -0
- package/node_modules/playwright/lib/loader/loaderProcessEntry.js +34 -0
- package/node_modules/playwright/lib/loader/loaderProcessEntry.js.txt +9 -0
- package/node_modules/playwright/lib/matchers/expect.js +13496 -0
- package/node_modules/playwright/lib/matchers/expect.js.LICENSE +640 -0
- package/node_modules/playwright/lib/matchers/expect.js.txt +67 -0
- package/node_modules/playwright/lib/package.js +47 -0
- package/node_modules/playwright/lib/program.js +242 -0
- package/node_modules/playwright/lib/runner/index.js +8721 -0
- package/node_modules/playwright/lib/runner/index.js.txt +62 -0
- package/node_modules/playwright/lib/transform/babelBundle.js +72490 -0
- package/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +2384 -0
- package/node_modules/playwright/lib/transform/babelBundle.js.txt +328 -0
- package/node_modules/playwright/lib/transform/esmLoader.js +8066 -0
- package/node_modules/playwright/lib/transform/esmLoader.js.LICENSE +355 -0
- package/node_modules/playwright/lib/transform/esmLoader.js.txt +60 -0
- package/node_modules/playwright/lib/util.js +373 -0
- package/node_modules/playwright/lib/worker/workerProcessEntry.js +1860 -0
- package/node_modules/playwright/lib/worker/workerProcessEntry.js.txt +19 -0
- package/node_modules/playwright/package.json +50 -0
- package/node_modules/playwright/test.d.ts +18 -0
- package/node_modules/playwright/test.js +24 -0
- package/node_modules/playwright/test.mjs +35 -0
- package/node_modules/playwright/types/test.d.ts +11191 -0
- package/node_modules/playwright/types/testReporter.d.ts +950 -0
- package/node_modules/playwright-core/LICENSE +202 -0
- package/node_modules/playwright-core/NOTICE +5 -0
- package/node_modules/playwright-core/README.md +3 -0
- package/node_modules/playwright-core/ThirdPartyNotices.txt +13 -0
- package/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/node_modules/playwright-core/browsers.json +52 -0
- package/node_modules/playwright-core/cli.js +22 -0
- package/node_modules/playwright-core/index.d.ts +17 -0
- package/node_modules/playwright-core/index.js +17 -0
- package/node_modules/playwright-core/index.mjs +28 -0
- package/node_modules/playwright-core/lib/bootstrap.js +149 -0
- package/node_modules/playwright-core/lib/coreBundle.js +78041 -0
- package/node_modules/playwright-core/lib/entry/cliDaemon.js +5 -0
- package/node_modules/playwright-core/lib/entry/dashboardApp.js +3 -0
- package/node_modules/playwright-core/lib/entry/mcp.js +10 -0
- package/node_modules/playwright-core/lib/entry/oopBrowserDownload.js +3 -0
- package/node_modules/playwright-core/lib/package.js +50 -0
- package/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/server/electron/loader.js +123 -0
- package/node_modules/playwright-core/lib/serverRegistry.js +1939 -0
- package/node_modules/playwright-core/lib/serverRegistry.js.LICENSE +65 -0
- package/node_modules/playwright-core/lib/tools/cli-client/channelSessions.js +141 -0
- package/node_modules/playwright-core/lib/tools/cli-client/cli.js +7 -0
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +808 -0
- package/node_modules/playwright-core/lib/tools/cli-client/minimist.js +128 -0
- package/node_modules/playwright-core/lib/tools/cli-client/output.js +352 -0
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +422 -0
- package/node_modules/playwright-core/lib/tools/cli-client/registry.js +180 -0
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +261 -0
- package/node_modules/playwright-core/lib/tools/dashboard/appIcon.png +0 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +493 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/pr-attachments.md +60 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +245 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +227 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +216 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
- package/node_modules/playwright-core/lib/tools/utils/extension.js +112 -0
- package/node_modules/playwright-core/lib/tools/utils/socketConnection.js +108 -0
- package/node_modules/playwright-core/lib/utilsBundle.js +86078 -0
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +1890 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/index.html +16 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -0
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DK72OMRi.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-Cn0mmDuv.js +129 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-BEB2e8M3.js +32 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-D-g2vrvf.js +184 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-B794rD2Z.js +7 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.C8BeHuxd.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +44 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.oNry3Hjv.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +10 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CYwC_gH1.js +5 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +18 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/playwright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/playwright-core/lib/xdg-open +1267 -0
- package/node_modules/playwright-core/package.json +34 -0
- package/node_modules/playwright-core/types/protocol.d.ts +24776 -0
- package/node_modules/playwright-core/types/structs.d.ts +52 -0
- package/node_modules/playwright-core/types/types.d.ts +27167 -0
- package/package.json +15 -14
package/composition.lock.json
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"suite": "capyclaw-browser-suite",
|
|
3
|
-
"suiteVersion": "0.2.
|
|
3
|
+
"suiteVersion": "0.2.39",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@capyclaw/asset-service": {
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.6",
|
|
7
7
|
"apiVersion": "1.0.0",
|
|
8
8
|
"path": "..\\..\\..\\..\\..\\..\\C\\packages\\capyclaw-asset-service",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "f776c6f40bb3ffb8511e7c471d53779e81efb29a4aa40c14172ea153d4071a9f"
|
|
10
10
|
},
|
|
11
11
|
"@capyclaw/browser-skill-api": {
|
|
12
|
-
"version": "0.2.
|
|
12
|
+
"version": "0.2.5",
|
|
13
13
|
"apiVersion": null,
|
|
14
14
|
"path": "../capyclaw-browser-skill-api",
|
|
15
|
-
"sha256": "
|
|
15
|
+
"sha256": "e783cb5867dd377dde1042972cb42256e8274b7e3f198a98d1a3afe3328314ec"
|
|
16
16
|
},
|
|
17
17
|
"@capyclaw/browser-skill-browser": {
|
|
18
|
-
"version": "0.2.
|
|
18
|
+
"version": "0.2.5",
|
|
19
19
|
"apiVersion": null,
|
|
20
20
|
"path": "../capyclaw-browser-skill-browser",
|
|
21
|
-
"sha256": "
|
|
21
|
+
"sha256": "7bebc9b7b8efbffd00f3ecbcf35f014893312113dad9c9a4b9c871b0aa42d260"
|
|
22
22
|
},
|
|
23
23
|
"@capyclaw/browser-skill-ops": {
|
|
24
|
-
"version": "0.2.
|
|
24
|
+
"version": "0.2.5",
|
|
25
25
|
"apiVersion": null,
|
|
26
26
|
"path": "../capyclaw-browser-skill-ops",
|
|
27
|
-
"sha256": "
|
|
27
|
+
"sha256": "d89b5bfb79eb039bc684e45e502634da189e4f80371f50d16d63b9adce39135a"
|
|
28
28
|
},
|
|
29
29
|
"@capyclaw/browser-workbench": {
|
|
30
|
-
"version": "0.1.
|
|
30
|
+
"version": "0.1.21",
|
|
31
31
|
"apiVersion": null,
|
|
32
32
|
"path": "../capyclaw-browser-workbench",
|
|
33
|
-
"sha256": "
|
|
33
|
+
"sha256": "b71c58349535f3b5b1c10f0e5ec826fdabec73eec111ad80bc0c74ac16fc0317"
|
|
34
34
|
},
|
|
35
35
|
"@capyclaw/document-workbench": {
|
|
36
|
-
"version": "0.2.
|
|
36
|
+
"version": "0.2.4",
|
|
37
37
|
"apiVersion": null,
|
|
38
38
|
"path": "../../../../../../C/packages/capyclaw-document-workbench",
|
|
39
|
-
"sha256": "
|
|
39
|
+
"sha256": "260d66c48617b64dbb7e82b3fb4105695e5d7108464e99b01361c3360180cc30"
|
|
40
40
|
},
|
|
41
41
|
"@capyclaw/foundation": {
|
|
42
|
-
"version": "0.1.
|
|
42
|
+
"version": "0.1.11",
|
|
43
43
|
"apiVersion": "1.0.0",
|
|
44
44
|
"path": "../../../../../../C/packages/capyclaw-foundation",
|
|
45
|
-
"sha256": "
|
|
45
|
+
"sha256": "2b1860bd9081f8ebeade500255bf908fe5d62740d2394c7d0b0f65149a2c82b5"
|
|
46
46
|
},
|
|
47
47
|
"@capyclaw/plugin-kit": {
|
|
48
|
-
"version": "0.2.
|
|
48
|
+
"version": "0.2.8",
|
|
49
49
|
"apiVersion": null,
|
|
50
50
|
"path": "../../../../../../C/packages/capyclaw-plugin-kit",
|
|
51
|
-
"sha256": "
|
|
51
|
+
"sha256": "5b9dd6bdadee6ecb32efcb59b59e7d6bbcd770fdb7762fc8f5aa90eedfee6186"
|
|
52
52
|
},
|
|
53
53
|
"@capyclaw/service-broker": {
|
|
54
|
-
"version": "0.2.
|
|
54
|
+
"version": "0.2.27",
|
|
55
55
|
"apiVersion": "1.0.0",
|
|
56
56
|
"path": "../../../../../../C/packages/capyclaw-service-broker",
|
|
57
|
-
"sha256": "
|
|
57
|
+
"sha256": "75df80d0e2f8df30138937fb601607a2ddade449c64f12e08a45e48cff1712e1"
|
|
58
58
|
},
|
|
59
59
|
"@capyclaw/service-host": {
|
|
60
|
-
"version": "0.1.
|
|
60
|
+
"version": "0.1.7",
|
|
61
61
|
"apiVersion": "1.0.0",
|
|
62
62
|
"path": "..\\..\\..\\..\\..\\..\\C\\packages\\capyclaw-service-host",
|
|
63
|
-
"sha256": "
|
|
63
|
+
"sha256": "be173a38c0087fa6fdb06a10e57356a02afe836ac9994b905eb00abe6516ce45"
|
|
64
64
|
},
|
|
65
65
|
"@capyclaw/tool-host": {
|
|
66
|
-
"version": "0.2
|
|
66
|
+
"version": "0.3.2",
|
|
67
67
|
"apiVersion": "1.1.0",
|
|
68
68
|
"path": "..\\..\\..\\..\\..\\..\\C\\packages\\capyclaw-tool-host",
|
|
69
|
-
"sha256": "
|
|
69
|
+
"sha256": "2e4927e7281457602a57eadff33ae25ea4b5d60539d319d9819d86c0db92aadd"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contractVersion": "1.3.0",
|
|
3
|
-
"packageVersion": "0.1.
|
|
3
|
+
"packageVersion": "0.1.21",
|
|
4
4
|
"toolCount": 18,
|
|
5
5
|
"tools": [
|
|
6
6
|
{
|
|
@@ -632,6 +632,7 @@
|
|
|
632
632
|
"features": [
|
|
633
633
|
"browser.contract"
|
|
634
634
|
],
|
|
635
|
+
"domain": "",
|
|
635
636
|
"tools": [
|
|
636
637
|
{
|
|
637
638
|
"name": "browser_capabilities",
|
|
@@ -651,7 +652,8 @@
|
|
|
651
652
|
"additionalProperties": false
|
|
652
653
|
},
|
|
653
654
|
"kind": "read",
|
|
654
|
-
"since": "1.0.0"
|
|
655
|
+
"since": "1.0.0",
|
|
656
|
+
"domain": ""
|
|
655
657
|
}
|
|
656
658
|
]
|
|
657
659
|
},
|
|
@@ -670,6 +672,7 @@
|
|
|
670
672
|
"features": [
|
|
671
673
|
"browser.navigation"
|
|
672
674
|
],
|
|
675
|
+
"domain": "",
|
|
673
676
|
"tools": [
|
|
674
677
|
{
|
|
675
678
|
"name": "browser_navigate",
|
|
@@ -694,7 +697,8 @@
|
|
|
694
697
|
"additionalProperties": false
|
|
695
698
|
},
|
|
696
699
|
"kind": "write",
|
|
697
|
-
"since": "1.0.0"
|
|
700
|
+
"since": "1.0.0",
|
|
701
|
+
"domain": ""
|
|
698
702
|
}
|
|
699
703
|
]
|
|
700
704
|
},
|
|
@@ -713,6 +717,7 @@
|
|
|
713
717
|
"features": [
|
|
714
718
|
"browser.snapshot"
|
|
715
719
|
],
|
|
720
|
+
"domain": "",
|
|
716
721
|
"tools": [
|
|
717
722
|
{
|
|
718
723
|
"name": "browser_snapshot",
|
|
@@ -729,7 +734,8 @@
|
|
|
729
734
|
"additionalProperties": false
|
|
730
735
|
},
|
|
731
736
|
"kind": "read",
|
|
732
|
-
"since": "1.0.0"
|
|
737
|
+
"since": "1.0.0",
|
|
738
|
+
"domain": ""
|
|
733
739
|
}
|
|
734
740
|
]
|
|
735
741
|
},
|
|
@@ -748,6 +754,7 @@
|
|
|
748
754
|
"features": [
|
|
749
755
|
"browser.interaction"
|
|
750
756
|
],
|
|
757
|
+
"domain": "",
|
|
751
758
|
"tools": [
|
|
752
759
|
{
|
|
753
760
|
"name": "browser_click",
|
|
@@ -779,7 +786,8 @@
|
|
|
779
786
|
"additionalProperties": false
|
|
780
787
|
},
|
|
781
788
|
"kind": "write",
|
|
782
|
-
"since": "1.0.0"
|
|
789
|
+
"since": "1.0.0",
|
|
790
|
+
"domain": ""
|
|
783
791
|
},
|
|
784
792
|
{
|
|
785
793
|
"name": "browser_drag",
|
|
@@ -838,7 +846,8 @@
|
|
|
838
846
|
"additionalProperties": false
|
|
839
847
|
},
|
|
840
848
|
"kind": "write",
|
|
841
|
-
"since": "1.2.0"
|
|
849
|
+
"since": "1.2.0",
|
|
850
|
+
"domain": ""
|
|
842
851
|
},
|
|
843
852
|
{
|
|
844
853
|
"name": "browser_fill",
|
|
@@ -873,7 +882,8 @@
|
|
|
873
882
|
"additionalProperties": false
|
|
874
883
|
},
|
|
875
884
|
"kind": "write",
|
|
876
|
-
"since": "1.0.0"
|
|
885
|
+
"since": "1.0.0",
|
|
886
|
+
"domain": ""
|
|
877
887
|
},
|
|
878
888
|
{
|
|
879
889
|
"name": "browser_press",
|
|
@@ -903,7 +913,8 @@
|
|
|
903
913
|
"additionalProperties": false
|
|
904
914
|
},
|
|
905
915
|
"kind": "write",
|
|
906
|
-
"since": "1.0.0"
|
|
916
|
+
"since": "1.0.0",
|
|
917
|
+
"domain": ""
|
|
907
918
|
},
|
|
908
919
|
{
|
|
909
920
|
"name": "browser_select",
|
|
@@ -934,7 +945,8 @@
|
|
|
934
945
|
"additionalProperties": false
|
|
935
946
|
},
|
|
936
947
|
"kind": "write",
|
|
937
|
-
"since": "1.0.0"
|
|
948
|
+
"since": "1.0.0",
|
|
949
|
+
"domain": ""
|
|
938
950
|
},
|
|
939
951
|
{
|
|
940
952
|
"name": "browser_upload",
|
|
@@ -973,7 +985,8 @@
|
|
|
973
985
|
"additionalProperties": false
|
|
974
986
|
},
|
|
975
987
|
"kind": "write",
|
|
976
|
-
"since": "1.3.0"
|
|
988
|
+
"since": "1.3.0",
|
|
989
|
+
"domain": ""
|
|
977
990
|
},
|
|
978
991
|
{
|
|
979
992
|
"name": "browser_scroll",
|
|
@@ -1002,7 +1015,8 @@
|
|
|
1002
1015
|
"additionalProperties": false
|
|
1003
1016
|
},
|
|
1004
1017
|
"kind": "write",
|
|
1005
|
-
"since": "1.0.0"
|
|
1018
|
+
"since": "1.0.0",
|
|
1019
|
+
"domain": ""
|
|
1006
1020
|
},
|
|
1007
1021
|
{
|
|
1008
1022
|
"name": "browser_act",
|
|
@@ -1116,7 +1130,8 @@
|
|
|
1116
1130
|
"additionalProperties": false
|
|
1117
1131
|
},
|
|
1118
1132
|
"kind": "write",
|
|
1119
|
-
"since": "1.1.0"
|
|
1133
|
+
"since": "1.1.0",
|
|
1134
|
+
"domain": ""
|
|
1120
1135
|
}
|
|
1121
1136
|
]
|
|
1122
1137
|
},
|
|
@@ -1135,6 +1150,7 @@
|
|
|
1135
1150
|
"features": [
|
|
1136
1151
|
"browser.tabs"
|
|
1137
1152
|
],
|
|
1153
|
+
"domain": "",
|
|
1138
1154
|
"tools": [
|
|
1139
1155
|
{
|
|
1140
1156
|
"name": "browser_tabs",
|
|
@@ -1166,7 +1182,8 @@
|
|
|
1166
1182
|
"additionalProperties": false
|
|
1167
1183
|
},
|
|
1168
1184
|
"kind": "control",
|
|
1169
|
-
"since": "1.0.0"
|
|
1185
|
+
"since": "1.0.0",
|
|
1186
|
+
"domain": ""
|
|
1170
1187
|
}
|
|
1171
1188
|
]
|
|
1172
1189
|
},
|
|
@@ -1186,6 +1203,7 @@
|
|
|
1186
1203
|
"features": [
|
|
1187
1204
|
"browser.screenshot"
|
|
1188
1205
|
],
|
|
1206
|
+
"domain": "",
|
|
1189
1207
|
"tools": [
|
|
1190
1208
|
{
|
|
1191
1209
|
"name": "browser_screenshot",
|
|
@@ -1206,7 +1224,8 @@
|
|
|
1206
1224
|
"additionalProperties": false
|
|
1207
1225
|
},
|
|
1208
1226
|
"kind": "read",
|
|
1209
|
-
"since": "1.0.0"
|
|
1227
|
+
"since": "1.0.0",
|
|
1228
|
+
"domain": ""
|
|
1210
1229
|
}
|
|
1211
1230
|
]
|
|
1212
1231
|
},
|
|
@@ -1225,6 +1244,7 @@
|
|
|
1225
1244
|
"features": [
|
|
1226
1245
|
"browser.session"
|
|
1227
1246
|
],
|
|
1247
|
+
"domain": "",
|
|
1228
1248
|
"tools": [
|
|
1229
1249
|
{
|
|
1230
1250
|
"name": "browser_status",
|
|
@@ -1235,7 +1255,8 @@
|
|
|
1235
1255
|
"additionalProperties": false
|
|
1236
1256
|
},
|
|
1237
1257
|
"kind": "read",
|
|
1238
|
-
"since": "1.0.0"
|
|
1258
|
+
"since": "1.0.0",
|
|
1259
|
+
"domain": ""
|
|
1239
1260
|
},
|
|
1240
1261
|
{
|
|
1241
1262
|
"name": "browser_wait",
|
|
@@ -1261,7 +1282,8 @@
|
|
|
1261
1282
|
"additionalProperties": false
|
|
1262
1283
|
},
|
|
1263
1284
|
"kind": "control",
|
|
1264
|
-
"since": "1.0.0"
|
|
1285
|
+
"since": "1.0.0",
|
|
1286
|
+
"domain": ""
|
|
1265
1287
|
},
|
|
1266
1288
|
{
|
|
1267
1289
|
"name": "browser_history",
|
|
@@ -1287,7 +1309,8 @@
|
|
|
1287
1309
|
"additionalProperties": false
|
|
1288
1310
|
},
|
|
1289
1311
|
"kind": "control",
|
|
1290
|
-
"since": "1.0.0"
|
|
1312
|
+
"since": "1.0.0",
|
|
1313
|
+
"domain": ""
|
|
1291
1314
|
},
|
|
1292
1315
|
{
|
|
1293
1316
|
"name": "browser_close",
|
|
@@ -1298,7 +1321,8 @@
|
|
|
1298
1321
|
"additionalProperties": false
|
|
1299
1322
|
},
|
|
1300
1323
|
"kind": "control",
|
|
1301
|
-
"since": "1.0.0"
|
|
1324
|
+
"since": "1.0.0",
|
|
1325
|
+
"domain": ""
|
|
1302
1326
|
}
|
|
1303
1327
|
]
|
|
1304
1328
|
},
|
|
@@ -1317,6 +1341,7 @@
|
|
|
1317
1341
|
"features": [
|
|
1318
1342
|
"browser.evaluate"
|
|
1319
1343
|
],
|
|
1344
|
+
"domain": "",
|
|
1320
1345
|
"tools": [
|
|
1321
1346
|
{
|
|
1322
1347
|
"name": "browser_evaluate",
|
|
@@ -1341,7 +1366,8 @@
|
|
|
1341
1366
|
"additionalProperties": false
|
|
1342
1367
|
},
|
|
1343
1368
|
"kind": "write",
|
|
1344
|
-
"since": "1.0.0"
|
|
1369
|
+
"since": "1.0.0",
|
|
1370
|
+
"domain": ""
|
|
1345
1371
|
}
|
|
1346
1372
|
]
|
|
1347
1373
|
}
|
package/dsh-suite.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../../../../../../C/packages/capyclaw-suite-kit/suite.schema.json",
|
|
3
3
|
"name": "capyclaw-browser-suite",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.39",
|
|
5
5
|
"title": "浏览器操控工作台套件",
|
|
6
6
|
"description": "浏览器操控宿主内嵌工作台(挂在 dsh 的 /capyclaw/browser,路由与端口由基建决定;Playwright 引擎、有头可见、登录态持久化)+ 3 个独立 skill 包 + 服务中间件(broker);公共基建(os / toolHost / serviceHost / assets / serviceBroker)由 @capyclaw/core 统一提供,需同一 profile 启用它。",
|
|
7
7
|
"packages": {
|
|
8
8
|
"@capyclaw/browser-skill-api": {
|
|
9
9
|
"role": "skills",
|
|
10
|
-
"version": "^0.2.
|
|
10
|
+
"version": "^0.2.5",
|
|
11
11
|
"path": "./node_modules/@capyclaw/browser-skill-api",
|
|
12
12
|
"requires": {
|
|
13
|
-
"@capyclaw/browser-workbench": "^0.1.
|
|
13
|
+
"@capyclaw/browser-workbench": "^0.1.21",
|
|
14
14
|
"capabilities": {
|
|
15
15
|
"browser.runtime": "^1.3.0"
|
|
16
16
|
}
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"@capyclaw/browser-skill-browser": {
|
|
28
28
|
"role": "skills",
|
|
29
|
-
"version": "^0.2.
|
|
29
|
+
"version": "^0.2.5",
|
|
30
30
|
"path": "./node_modules/@capyclaw/browser-skill-browser",
|
|
31
31
|
"requires": {
|
|
32
|
-
"@capyclaw/browser-workbench": "^0.1.
|
|
32
|
+
"@capyclaw/browser-workbench": "^0.1.21",
|
|
33
33
|
"capabilities": {
|
|
34
34
|
"browser.runtime": "^1.3.0"
|
|
35
35
|
}
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"@capyclaw/browser-skill-ops": {
|
|
47
47
|
"role": "skills",
|
|
48
|
-
"version": "^0.2.
|
|
48
|
+
"version": "^0.2.5",
|
|
49
49
|
"path": "./node_modules/@capyclaw/browser-skill-ops",
|
|
50
50
|
"requires": {
|
|
51
|
-
"@capyclaw/browser-workbench": "^0.1.
|
|
51
|
+
"@capyclaw/browser-workbench": "^0.1.21",
|
|
52
52
|
"capabilities": {
|
|
53
53
|
"browser.runtime": "^1.3.0"
|
|
54
54
|
}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"@capyclaw/browser-workbench": {
|
|
66
66
|
"role": "runtime",
|
|
67
|
-
"version": "^0.1.
|
|
67
|
+
"version": "^0.1.21",
|
|
68
68
|
"path": "./node_modules/@capyclaw/browser-workbench",
|
|
69
69
|
"requires": {
|
|
70
70
|
"capabilities": {
|
|
@@ -80,28 +80,38 @@
|
|
|
80
80
|
"capabilities": {
|
|
81
81
|
"editor.bridge": "1.0.0",
|
|
82
82
|
"browser.runtime": "1.3.0",
|
|
83
|
-
"browser.tools": "1.3.0"
|
|
83
|
+
"browser.tools": "1.3.0",
|
|
84
|
+
"browser.surfaceLifecycle": "1.0.0"
|
|
84
85
|
}
|
|
86
|
+
},
|
|
87
|
+
"surfaceLifecycle": {
|
|
88
|
+
"hooks": [
|
|
89
|
+
"onVisibility",
|
|
90
|
+
"suspendRender",
|
|
91
|
+
"resumeRender",
|
|
92
|
+
"rehydrate"
|
|
93
|
+
],
|
|
94
|
+
"headlessObservation": true
|
|
85
95
|
}
|
|
86
96
|
},
|
|
87
97
|
"@capyclaw/document-workbench": {
|
|
88
98
|
"role": "support",
|
|
89
|
-
"version": "^0.2.
|
|
99
|
+
"version": "^0.2.4",
|
|
90
100
|
"path": "./node_modules/@capyclaw/document-workbench"
|
|
91
101
|
},
|
|
92
102
|
"@capyclaw/foundation": {
|
|
93
103
|
"role": "runtime",
|
|
94
|
-
"version": "^0.1.
|
|
104
|
+
"version": "^0.1.11",
|
|
95
105
|
"path": "./node_modules/@capyclaw/foundation"
|
|
96
106
|
},
|
|
97
107
|
"@capyclaw/plugin-kit": {
|
|
98
108
|
"role": "support",
|
|
99
|
-
"version": "^0.2.
|
|
109
|
+
"version": "^0.2.8",
|
|
100
110
|
"path": "./node_modules/@capyclaw/plugin-kit"
|
|
101
111
|
},
|
|
102
112
|
"@capyclaw/service-broker": {
|
|
103
113
|
"role": "runtime",
|
|
104
|
-
"version": "^0.2.
|
|
114
|
+
"version": "^0.2.27",
|
|
105
115
|
"path": "./node_modules/@capyclaw/service-broker",
|
|
106
116
|
"provides": {
|
|
107
117
|
"services": [
|
|
@@ -115,7 +125,7 @@
|
|
|
115
125
|
},
|
|
116
126
|
"@capyclaw/service-host": {
|
|
117
127
|
"role": "provider",
|
|
118
|
-
"version": "^0.1.
|
|
128
|
+
"version": "^0.1.7",
|
|
119
129
|
"path": "./node_modules/@capyclaw/service-host",
|
|
120
130
|
"provides": {
|
|
121
131
|
"services": [
|
|
@@ -128,7 +138,7 @@
|
|
|
128
138
|
},
|
|
129
139
|
"@capyclaw/tool-host": {
|
|
130
140
|
"role": "provider",
|
|
131
|
-
"version": "^0.2
|
|
141
|
+
"version": "^0.3.2",
|
|
132
142
|
"path": "./node_modules/@capyclaw/tool-host",
|
|
133
143
|
"provides": {
|
|
134
144
|
"services": [
|
|
@@ -142,7 +152,7 @@
|
|
|
142
152
|
},
|
|
143
153
|
"@capyclaw/asset-service": {
|
|
144
154
|
"role": "provider",
|
|
145
|
-
"version": "^0.1.
|
|
155
|
+
"version": "^0.1.6",
|
|
146
156
|
"path": "./node_modules/@capyclaw/asset-service",
|
|
147
157
|
"provides": {
|
|
148
158
|
"services": [
|
|
@@ -13,6 +13,7 @@ import fs from 'node:fs'
|
|
|
13
13
|
import path from 'node:path'
|
|
14
14
|
import { send, readBody } from '@capyclaw/plugin-kit/service/http'
|
|
15
15
|
import { createServiceApi } from '@capyclaw/plugin-kit/service/api'
|
|
16
|
+
import { ASSET_URL_PREFIX } from '@capyclaw/foundation/abi'
|
|
16
17
|
|
|
17
18
|
function sha256(buffer) {
|
|
18
19
|
return crypto.createHash('sha256').update(buffer).digest('hex')
|
|
@@ -40,7 +41,7 @@ export function createWorkspaceAssetStore({ storeClient, workId = 'main' } = {})
|
|
|
40
41
|
const id = sha256(buffer)
|
|
41
42
|
const key = `assets/${id}`
|
|
42
43
|
storeClient.put(workId, key, buffer, { contentType })
|
|
43
|
-
return { id, key, url:
|
|
44
|
+
return { id, key, url: `${ASSET_URL_PREFIX}${id}`, size: buffer.length, contentType }
|
|
44
45
|
},
|
|
45
46
|
get(id) {
|
|
46
47
|
if (!validId(id)) return null
|
|
@@ -84,7 +85,7 @@ export function createFileAssetStore({ dir } = {}) {
|
|
|
84
85
|
const metaTmp = `${metaFile}.tmp-${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`
|
|
85
86
|
fs.writeFileSync(metaTmp, JSON.stringify({ contentType, size: buffer.length }))
|
|
86
87
|
fs.renameSync(metaTmp, metaFile)
|
|
87
|
-
return { id, key: id, url:
|
|
88
|
+
return { id, key: id, url: `${ASSET_URL_PREFIX}${id}`, size: buffer.length, contentType }
|
|
88
89
|
},
|
|
89
90
|
get(id) {
|
|
90
91
|
if (!validId(id)) return null
|
|
@@ -192,7 +193,7 @@ function safeContentType(type) {
|
|
|
192
193
|
*/
|
|
193
194
|
export function createAssetRoutes({ assetStore, basePath = '', maxUploadBytes = 10 * 1024 * 1024 } = {}) {
|
|
194
195
|
const prefix = basePath === '/' ? '' : String(basePath || '').replace(/\/+$/, '')
|
|
195
|
-
const getPrefixes = [
|
|
196
|
+
const getPrefixes = [ASSET_URL_PREFIX, prefix ? `${prefix}${ASSET_URL_PREFIX}` : null].filter(Boolean)
|
|
196
197
|
const postPaths = new Set(['/assets', prefix ? `${prefix}/assets` : null].filter(Boolean))
|
|
197
198
|
return async function assetRoutes(req, res, u) {
|
|
198
199
|
const p = u.pathname
|
|
@@ -200,7 +201,12 @@ export function createAssetRoutes({ assetStore, basePath = '', maxUploadBytes =
|
|
|
200
201
|
const getPrefix = getPrefixes.find((candidate) => p.startsWith(candidate))
|
|
201
202
|
if (getPrefix) {
|
|
202
203
|
if (!assetStore) { send(req, res, 404, { error: 'asset store unavailable' }); return true }
|
|
203
|
-
|
|
204
|
+
let id
|
|
205
|
+
try { id = decodeURIComponent(p.slice(getPrefix.length)) } catch {
|
|
206
|
+
/* 畸形百分号编码(如 /assets/%zz):decodeURIComponent 抛 URIError,
|
|
207
|
+
* 不包会一路冒成 500。这是客户端错误,回 400。 */
|
|
208
|
+
send(req, res, 400, { error: 'malformed asset id encoding' }); return true
|
|
209
|
+
}
|
|
204
210
|
if (!validId(id)) { send(req, res, 404, { error: 'asset not found' }); return true }
|
|
205
211
|
const asset = assetStore.get(id)
|
|
206
212
|
if (!asset) { send(req, res, 404, { error: 'asset not found' }); return true }
|