oc-browser-relay 1.0.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/bundled-relay/index.js +25483 -0
- package/bundled-relay/node_modules/playwright-core/LICENSE +202 -0
- package/bundled-relay/node_modules/playwright-core/NOTICE +5 -0
- package/bundled-relay/node_modules/playwright-core/README.md +3 -0
- package/bundled-relay/node_modules/playwright-core/ThirdPartyNotices.txt +4076 -0
- package/bundled-relay/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/bundled-relay/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/bundled-relay/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/bundled-relay/node_modules/playwright-core/browsers.json +79 -0
- package/bundled-relay/node_modules/playwright-core/cli.js +18 -0
- package/bundled-relay/node_modules/playwright-core/index.d.ts +17 -0
- package/bundled-relay/node_modules/playwright-core/index.js +32 -0
- package/bundled-relay/node_modules/playwright-core/index.mjs +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/androidServerImpl.js +65 -0
- package/bundled-relay/node_modules/playwright-core/lib/browserServerImpl.js +120 -0
- package/bundled-relay/node_modules/playwright-core/lib/cli/driver.js +97 -0
- package/bundled-relay/node_modules/playwright-core/lib/cli/program.js +589 -0
- package/bundled-relay/node_modules/playwright-core/lib/cli/programWithTestStub.js +74 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/android.js +361 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/api.js +137 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/artifact.js +79 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/browser.js +161 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/browserContext.js +582 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/browserType.js +185 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/cdpSession.js +51 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/channelOwner.js +194 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/clientHelper.js +64 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/clientInstrumentation.js +55 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/clientStackTrace.js +69 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/clock.js +68 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/connection.js +318 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/consoleMessage.js +58 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/coverage.js +44 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/dialog.js +56 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/download.js +62 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/electron.js +138 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/elementHandle.js +284 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/errors.js +77 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/eventEmitter.js +314 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/events.js +103 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/fetch.js +368 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/fileChooser.js +46 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/fileUtils.js +34 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/frame.js +409 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/harRouter.js +87 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/input.js +84 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/jsHandle.js +109 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/jsonPipe.js +39 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/localUtils.js +60 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/locator.js +369 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/network.js +747 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/page.js +745 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/pageAgent.js +64 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/platform.js +77 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/playwright.js +71 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/selectors.js +55 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/stream.js +39 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/timeoutSettings.js +79 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/tracing.js +119 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/types.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/video.js +59 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/waiter.js +142 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/webError.js +39 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/webSocket.js +93 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/worker.js +85 -0
- package/bundled-relay/node_modules/playwright-core/lib/client/writableStream.js +39 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/clockSource.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/injectedScriptSource.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/storageScriptSource.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/utilityScriptSource.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/generated/webSocketMockSource.js +336 -0
- package/bundled-relay/node_modules/playwright-core/lib/inProcessFactory.js +60 -0
- package/bundled-relay/node_modules/playwright-core/lib/inprocess.js +3 -0
- package/bundled-relay/node_modules/playwright-core/lib/mcpBundle.js +84 -0
- package/bundled-relay/node_modules/playwright-core/lib/mcpBundleImpl/index.js +147 -0
- package/bundled-relay/node_modules/playwright-core/lib/outofprocess.js +76 -0
- package/bundled-relay/node_modules/playwright-core/lib/protocol/serializers.js +197 -0
- package/bundled-relay/node_modules/playwright-core/lib/protocol/validator.js +2969 -0
- package/bundled-relay/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +193 -0
- package/bundled-relay/node_modules/playwright-core/lib/remote/playwrightConnection.js +129 -0
- package/bundled-relay/node_modules/playwright-core/lib/remote/playwrightServer.js +334 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/actionRunner.js +335 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/actions.js +128 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/codegen.js +111 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/context.js +150 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/expectTools.js +156 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/pageAgent.js +204 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/performTools.js +262 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/agent/tool.js +109 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/android/android.js +465 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/android/backendAdb.js +177 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/artifact.js +127 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +549 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +149 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +213 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +116 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +267 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +128 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiInput.js +146 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +383 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +102 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiPage.js +583 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +106 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +24 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +148 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +259 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/browser.js +149 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/browserContext.js +702 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/browserType.js +336 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/callLog.js +82 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/chromium.js +397 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +104 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crBrowser.js +520 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crConnection.js +197 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crCoverage.js +235 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crDevTools.js +111 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +131 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +146 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crInput.js +187 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +707 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crPage.js +1001 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crPdf.js +121 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +145 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +136 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +162 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/chromium/protocol.d.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/clock.js +149 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/csharp.js +327 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/java.js +274 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/javascript.js +247 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/jsonl.js +52 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/language.js +132 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/languages.js +68 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/python.js +279 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/codegen/types.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/console.js +57 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/cookieStore.js +206 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/debugController.js +191 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/debugger.js +119 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/deviceDescriptors.js +39 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +1779 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dialog.js +116 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +325 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +118 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +384 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +118 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +64 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +47 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +364 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +89 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +227 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +213 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/pageAgentDispatcher.js +96 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +393 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +108 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +67 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +68 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +165 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/dom.js +815 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/download.js +70 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/electron/electron.js +273 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/electron/loader.js +29 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/errors.js +69 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/fetch.js +621 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/fileChooser.js +43 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/fileUploadUtils.js +84 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +418 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/ffConnection.js +142 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +150 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/ffInput.js +159 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +256 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/ffPage.js +497 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/firefox.js +114 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/firefox/protocol.d.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/formData.js +147 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/frameSelectors.js +160 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/frames.js +1471 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/har/harRecorder.js +147 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/har/harTracer.js +607 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/harBackend.js +157 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/helper.js +96 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/index.js +58 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/input.js +277 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/instrumentation.js +72 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/javascript.js +291 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/launchApp.js +128 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/localUtils.js +214 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/macEditingCommands.js +143 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/network.js +667 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/page.js +830 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/pipeTransport.js +89 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/playwright.js +69 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/progress.js +132 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/protocolError.js +52 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder/chat.js +161 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder/recorderApp.js +366 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +138 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +83 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +157 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder/throttledFile.js +57 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/recorder.js +499 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/registry/browserFetcher.js +177 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/registry/dependencies.js +371 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/registry/index.js +1422 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/registry/nativeDeps.js +1280 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +127 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/screencast.js +190 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/screenshotter.js +333 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/selectors.js +112 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +383 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/socksInterceptor.js +95 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +147 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +561 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +604 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/trace/viewer/traceParser.js +72 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +245 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/transport.js +181 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/types.js +28 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/usKeyboardLayout.js +145 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/ascii.js +44 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/comparators.js +139 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/crypto.js +216 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/debug.js +42 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/debugLogger.js +122 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/env.js +73 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/eventsHelper.js +39 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/expectUtils.js +123 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/fileUtils.js +191 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +207 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/hostPlatform.js +138 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/httpServer.js +203 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/imageUtils.js +141 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +89 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +109 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +78 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +102 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/linuxUtils.js +71 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/network.js +242 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/nodePlatform.js +154 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/pipeTransport.js +84 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/processLauncher.js +241 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/profiler.js +65 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/socksProxy.js +511 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/spawnAsync.js +41 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/task.js +51 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/userAgent.js +98 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/wsServer.js +121 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/zipFile.js +74 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/utils/zones.js +57 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/videoRecorder.js +124 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/protocol.d.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/webkit.js +108 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +335 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkConnection.js +144 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +154 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkInput.js +181 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +197 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkPage.js +1159 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +83 -0
- package/bundled-relay/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +105 -0
- package/bundled-relay/node_modules/playwright-core/lib/third_party/pixelmatch.js +255 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +455 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/assert.js +31 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/colors.js +72 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +245 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +1051 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/headers.js +53 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +689 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +176 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +81 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +51 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +114 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +459 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +80 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +81 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +330 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +43 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +386 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +54 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +158 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +204 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/time.js +49 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +66 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +499 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +131 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +365 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +400 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +58 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/types.js +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +190 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +251 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +84 -0
- package/bundled-relay/node_modules/playwright-core/lib/utils.js +111 -0
- package/bundled-relay/node_modules/playwright-core/lib/utilsBundle.js +109 -0
- package/bundled-relay/node_modules/playwright-core/lib/utilsBundleImpl/index.js +218 -0
- package/bundled-relay/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +1066 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/htmlReport/index.html +84 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js +32 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css +1 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js +193 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-a5XoALAZ.js +32 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CJSZINFr.js +266 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.7ch9cixO.css +1 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/index.BDwrLSGN.js +2 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/index.BVu7tZDe.css +1 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/index.html +43 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +21 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +5 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CQJ9SCIQ.js +5 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +17 -0
- package/bundled-relay/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- package/bundled-relay/node_modules/playwright-core/lib/zipBundle.js +34 -0
- package/bundled-relay/node_modules/playwright-core/lib/zipBundleImpl.js +5 -0
- package/bundled-relay/node_modules/playwright-core/package.json +43 -0
- package/bundled-relay/node_modules/playwright-core/types/protocol.d.ts +23824 -0
- package/bundled-relay/node_modules/playwright-core/types/structs.d.ts +45 -0
- package/bundled-relay/node_modules/playwright-core/types/types.d.ts +22843 -0
- package/bundled-relay/package.json +10 -0
- package/bundled-relay/public/configs/debugger-ui.json +8 -0
- package/bundled-relay/public/configs/pages/index.json +8 -0
- package/bundled-relay/public/configs/pages/taobao-item-detail.json +256 -0
- package/bundled-relay/public/configs/pages/xiaohongshu-creator-publish.json +316 -0
- package/bundled-relay/public/configs/pages/xiaohongshu-web-explore.json +177 -0
- package/bundled-relay/public/configs/pages/xiaohongshu-web-search-result.json +557 -0
- package/bundled-relay/public/configs/sites/index.json +7 -0
- package/bundled-relay/public/configs/sites/taobao-web.json +16 -0
- package/bundled-relay/public/configs/sites/xiaohongshu-creator.json +45 -0
- package/bundled-relay/public/configs/sites/xiaohongshu-web.json +12 -0
- package/bundled-relay/public/configs/task-templates/index.json +9 -0
- package/bundled-relay/public/configs/task-templates/taobao-item-detail-comments.json +76 -0
- package/bundled-relay/public/configs/task-templates/xiaohongshu-creator-publish.json +83 -0
- package/bundled-relay/public/configs/task-templates/xiaohongshu-creator-save-draft.json +83 -0
- package/bundled-relay/public/configs/task-templates/xiaohongshu-web-search-notes.json +152 -0
- package/bundled-relay/public/configs/task-templates/xiaohongshu_open_website.json +24 -0
- package/index.js +1 -0
- package/install.mjs +45 -0
- package/openclaw.plugin.json +79 -0
- package/package.json +41 -0
- package/skills/dabi-relay-taobao/SKILL.md +217 -0
- package/skills/dabi-relay-xiaohongshu/SKILL.md +280 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteId": "taobao_web",
|
|
3
|
+
"taskType": "collect_product_data",
|
|
4
|
+
"platform": "taobao",
|
|
5
|
+
"name": "采集淘宝商品详情与评论",
|
|
6
|
+
"description": "打开淘宝商品详情页,提取商品结构化数据,并打开评论面板采集评论接口。",
|
|
7
|
+
"requiredFields": [
|
|
8
|
+
{
|
|
9
|
+
"name": "url",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "淘宝或天猫商品详情页链接"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optionalFields": [],
|
|
15
|
+
"workflow": [
|
|
16
|
+
{
|
|
17
|
+
"stepId": "s1",
|
|
18
|
+
"name": "open_product_detail",
|
|
19
|
+
"goal": "打开淘宝商品详情页",
|
|
20
|
+
"tool": "open_tab",
|
|
21
|
+
"args": {
|
|
22
|
+
"url": "{{data.url}}"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"stepId": "s2",
|
|
27
|
+
"name": "validate_product_detail_page",
|
|
28
|
+
"goal": "校验当前页面已进入淘宝商品详情页",
|
|
29
|
+
"tool": "validate_page",
|
|
30
|
+
"args": {}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"stepId": "s3",
|
|
34
|
+
"name": "collect_product_detail",
|
|
35
|
+
"goal": "提取商品详情结构化数据",
|
|
36
|
+
"tool": "collect_structured_data",
|
|
37
|
+
"args": {
|
|
38
|
+
"extractor": "product_detail"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"stepId": "s4",
|
|
43
|
+
"name": "open_product_comments",
|
|
44
|
+
"goal": "打开评价并截取评论接口",
|
|
45
|
+
"tool": "trigger_action",
|
|
46
|
+
"args": {
|
|
47
|
+
"action": "open_comments",
|
|
48
|
+
"captureNetwork": {
|
|
49
|
+
"urlPattern": "/h5/mtop.taobao.rate.detaillist.get/",
|
|
50
|
+
"method": "GET",
|
|
51
|
+
"timeoutMs": 15000,
|
|
52
|
+
"capability": "hybrid",
|
|
53
|
+
"operation": "capture_response",
|
|
54
|
+
"persistent": true,
|
|
55
|
+
"startPhase": "before_action",
|
|
56
|
+
"actionScope": "step",
|
|
57
|
+
"artifactType": "hybrid",
|
|
58
|
+
"includeBody": true,
|
|
59
|
+
"locationSuffix": "taobao_comments_page_1",
|
|
60
|
+
"hint": "capture taobao product comments"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"stepId": "s5",
|
|
66
|
+
"name": "collect_product_comments",
|
|
67
|
+
"goal": "投影评论接口为结构化评论数据",
|
|
68
|
+
"tool": "collect_structured_data",
|
|
69
|
+
"args": {
|
|
70
|
+
"extractor": "product_comments",
|
|
71
|
+
"sourceStepId": "s4",
|
|
72
|
+
"targetCommentCount": 50
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteId": "xiaohongshu_creator",
|
|
3
|
+
"taskType": "publish_note",
|
|
4
|
+
"platform": "xiaohongshu",
|
|
5
|
+
"name": "发布小红书图文笔记",
|
|
6
|
+
"description": "在小红书创作平台发布图文笔记",
|
|
7
|
+
"requiredFields": [
|
|
8
|
+
{
|
|
9
|
+
"name": "title",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "笔记标题",
|
|
12
|
+
"validation": "length:1-20"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "content",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "笔记正文",
|
|
18
|
+
"validation": "length:1-1000"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "images",
|
|
22
|
+
"type": "array",
|
|
23
|
+
"description": "图片文件路径数组",
|
|
24
|
+
"validation": "minLength:1,maxLength:9"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"optionalFields": [
|
|
28
|
+
{
|
|
29
|
+
"name": "topics",
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "要添加的话题标签数组,例如 [\"通勤穿搭\", \"春季搭配\"]"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"workflow": [
|
|
35
|
+
{
|
|
36
|
+
"stepId": "s1",
|
|
37
|
+
"name": "ensure_publish_ready",
|
|
38
|
+
"tool": "ensure_publish_ready",
|
|
39
|
+
"args": {}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"stepId": "s2",
|
|
43
|
+
"name": "upload_images",
|
|
44
|
+
"tool": "upload_assets",
|
|
45
|
+
"args": {
|
|
46
|
+
"field": "images",
|
|
47
|
+
"assets": "{{data.images}}"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"stepId": "s3",
|
|
52
|
+
"name": "fill_title",
|
|
53
|
+
"tool": "fill_field",
|
|
54
|
+
"args": {
|
|
55
|
+
"field": "title",
|
|
56
|
+
"value": "{{data.title}}"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"stepId": "s4",
|
|
61
|
+
"name": "fill_content",
|
|
62
|
+
"tool": "fill_field",
|
|
63
|
+
"args": {
|
|
64
|
+
"field": "content",
|
|
65
|
+
"value": "{{data.content}}"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"stepId": "s5",
|
|
70
|
+
"name": "publish",
|
|
71
|
+
"tool": "trigger_action",
|
|
72
|
+
"args": {
|
|
73
|
+
"action": "publish"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"validation": [
|
|
78
|
+
{
|
|
79
|
+
"rule": "images.length >= 1",
|
|
80
|
+
"message": "至少需要上传一张图片"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteId": "xiaohongshu_creator",
|
|
3
|
+
"taskType": "save_note_draft",
|
|
4
|
+
"platform": "xiaohongshu",
|
|
5
|
+
"name": "保存小红书图文草稿",
|
|
6
|
+
"description": "在小红书创作平台保存图文笔记为草稿",
|
|
7
|
+
"requiredFields": [
|
|
8
|
+
{
|
|
9
|
+
"name": "title",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "笔记标题",
|
|
12
|
+
"validation": "length:1-20"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "content",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "笔记正文",
|
|
18
|
+
"validation": "length:1-1000"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "images",
|
|
22
|
+
"type": "array",
|
|
23
|
+
"description": "图片文件路径数组",
|
|
24
|
+
"validation": "minLength:1,maxLength:9"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"optionalFields": [
|
|
28
|
+
{
|
|
29
|
+
"name": "topics",
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "要添加的话题标签数组,例如 [\"通勤穿搭\", \"春季搭配\"]"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"workflow": [
|
|
35
|
+
{
|
|
36
|
+
"stepId": "s1",
|
|
37
|
+
"name": "ensure_publish_ready",
|
|
38
|
+
"tool": "ensure_publish_ready",
|
|
39
|
+
"args": {}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"stepId": "s2",
|
|
43
|
+
"name": "upload_images",
|
|
44
|
+
"tool": "upload_assets",
|
|
45
|
+
"args": {
|
|
46
|
+
"field": "images",
|
|
47
|
+
"assets": "{{data.images}}"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"stepId": "s3",
|
|
52
|
+
"name": "fill_title",
|
|
53
|
+
"tool": "fill_field",
|
|
54
|
+
"args": {
|
|
55
|
+
"field": "title",
|
|
56
|
+
"value": "{{data.title}}"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"stepId": "s4",
|
|
61
|
+
"name": "fill_content",
|
|
62
|
+
"tool": "fill_field",
|
|
63
|
+
"args": {
|
|
64
|
+
"field": "content",
|
|
65
|
+
"value": "{{data.content}}"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"stepId": "s5",
|
|
70
|
+
"name": "save_draft",
|
|
71
|
+
"tool": "trigger_action",
|
|
72
|
+
"args": {
|
|
73
|
+
"action": "saveDraft"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"validation": [
|
|
78
|
+
{
|
|
79
|
+
"rule": "images.length >= 1",
|
|
80
|
+
"message": "至少需要上传一张图片"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"siteId": "xiaohongshu_web",
|
|
3
|
+
"taskType": "search_notes",
|
|
4
|
+
"platform": "xiaohongshu",
|
|
5
|
+
"name": "搜索小红书笔记",
|
|
6
|
+
"description": "打开小红书首页,输入关键词并进入搜索结果页。首阶段仅负责搜索入口,后续滚动与接口采集由搜索工作流接管。",
|
|
7
|
+
"requiredFields": [
|
|
8
|
+
{
|
|
9
|
+
"name": "keyword",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "搜索关键词"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optionalFields": [
|
|
15
|
+
{
|
|
16
|
+
"name": "targetCount",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"description": "目标采集笔记数量,当前仅保存到任务 payload,默认 25",
|
|
19
|
+
"default": 25
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "filters",
|
|
23
|
+
"type": "array",
|
|
24
|
+
"description": "可选筛选条件数组,元素格式为 { group, option }"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "detailTargetCount",
|
|
28
|
+
"type": "number",
|
|
29
|
+
"description": "可选详情采集数量,若提供则在列表采集后继续按 noteId 打开并采集前 N 条详情"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "randomizeOrder",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "详情采集时是否打乱访问顺序以模拟真实浏览行为",
|
|
35
|
+
"default": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"workflow": [
|
|
39
|
+
{
|
|
40
|
+
"stepId": "s1",
|
|
41
|
+
"name": "open_search_home",
|
|
42
|
+
"goal": "打开小红书首页搜索入口",
|
|
43
|
+
"tool": "open_tab",
|
|
44
|
+
"args": {
|
|
45
|
+
"url": "https://www.xiaohongshu.com/explore"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"stepId": "s2",
|
|
50
|
+
"name": "fill_search_keyword",
|
|
51
|
+
"goal": "填写搜索关键词",
|
|
52
|
+
"tool": "fill_field",
|
|
53
|
+
"args": {
|
|
54
|
+
"field": "keyword",
|
|
55
|
+
"value": "{{data.keyword}}"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"stepId": "s3",
|
|
60
|
+
"name": "submit_search",
|
|
61
|
+
"goal": "提交搜索并进入搜索结果页",
|
|
62
|
+
"tool": "trigger_action",
|
|
63
|
+
"args": {
|
|
64
|
+
"action": "search",
|
|
65
|
+
"captureNetwork": {
|
|
66
|
+
"urlPattern": "https://edith.xiaohongshu.com/api/sns/web/v1/search/notes",
|
|
67
|
+
"method": "POST",
|
|
68
|
+
"timeoutMs": 12000,
|
|
69
|
+
"capability": "hybrid",
|
|
70
|
+
"operation": "capture_response",
|
|
71
|
+
"persistent": true,
|
|
72
|
+
"activationCondition": "no_filters",
|
|
73
|
+
"startPhase": "before_action",
|
|
74
|
+
"actionScope": "step",
|
|
75
|
+
"artifactType": "hybrid",
|
|
76
|
+
"locationSuffix": "search_notes_page_1",
|
|
77
|
+
"hint": "listening search notes responses"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"expectedObservation": {
|
|
81
|
+
"type": "logical_or",
|
|
82
|
+
"conditions": [
|
|
83
|
+
{
|
|
84
|
+
"type": "url_contains",
|
|
85
|
+
"value": "/search_result"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "element_visible",
|
|
89
|
+
"selector": "#channel-container"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"stepId": "s4",
|
|
96
|
+
"name": "apply_search_filters",
|
|
97
|
+
"goal": "按需应用搜索筛选条件",
|
|
98
|
+
"tool": "apply_search_filters",
|
|
99
|
+
"args": {
|
|
100
|
+
"captureNetwork": {
|
|
101
|
+
"urlPattern": "https://edith.xiaohongshu.com/api/sns/web/v1/search/notes",
|
|
102
|
+
"method": "POST",
|
|
103
|
+
"timeoutMs": 12000,
|
|
104
|
+
"capability": "hybrid",
|
|
105
|
+
"operation": "capture_response",
|
|
106
|
+
"persistent": true,
|
|
107
|
+
"activationCondition": "with_filters",
|
|
108
|
+
"startPhase": "before_action",
|
|
109
|
+
"actionScope": "last_action",
|
|
110
|
+
"artifactType": "hybrid",
|
|
111
|
+
"locationSuffix": "search_notes_page_1",
|
|
112
|
+
"hint": "listening search notes responses"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"stepId": "s5",
|
|
118
|
+
"name": "collect_search_notes",
|
|
119
|
+
"goal": "滚动搜索结果页并累计采集笔记结果",
|
|
120
|
+
"tool": "collect_search_notes",
|
|
121
|
+
"args": {
|
|
122
|
+
"targetCount": "{{data.targetCount}}",
|
|
123
|
+
"captureNetwork": {
|
|
124
|
+
"urlPattern": "https://edith.xiaohongshu.com/api/sns/web/v1/search/notes",
|
|
125
|
+
"method": "POST",
|
|
126
|
+
"timeoutMs": 12000,
|
|
127
|
+
"capability": "hybrid",
|
|
128
|
+
"operation": "capture_response",
|
|
129
|
+
"persistent": true,
|
|
130
|
+
"activationCondition": "always",
|
|
131
|
+
"startPhase": "before_step",
|
|
132
|
+
"actionScope": "step",
|
|
133
|
+
"artifactType": "hybrid",
|
|
134
|
+
"locationSuffix": "search_notes_page_1",
|
|
135
|
+
"hint": "listening search notes responses"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"stepId": "s6",
|
|
141
|
+
"name": "collect_note_details",
|
|
142
|
+
"goal": "按搜索结果前 N 条 noteId 在页面中逐条打开并采集详情",
|
|
143
|
+
"tool": "collect_note_details",
|
|
144
|
+
"condition": "detailTargetCount",
|
|
145
|
+
"args": {
|
|
146
|
+
"targetCount": "{{data.detailTargetCount}}",
|
|
147
|
+
"sourceStepId": "s5",
|
|
148
|
+
"randomizeOrder": "{{data.randomizeOrder}}"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"taskType": "open_website",
|
|
3
|
+
"platform": "xiaohongshu",
|
|
4
|
+
"name": "打开小红书网站",
|
|
5
|
+
"description": "打开小红书网站首页或创作平台",
|
|
6
|
+
"requiredFields": [],
|
|
7
|
+
"optionalFields": [
|
|
8
|
+
{
|
|
9
|
+
"name": "page",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "要打开的页面:home(首页) 或 creator(创作平台)",
|
|
12
|
+
"default": "home"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"workflow": [
|
|
16
|
+
{
|
|
17
|
+
"stepId": "s1",
|
|
18
|
+
"tool": "open_tab",
|
|
19
|
+
"args": {
|
|
20
|
+
"url": "https://www.xiaohongshu.com"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2d4ce2,_0x274b4d){const _0x2e00f4=_0x5e0c,_0x23c11=_0x2d4ce2();while(!![]){try{const _0x327177=-parseInt(_0x2e00f4(0x135))/0x1*(parseInt(_0x2e00f4(0x182))/0x2)+parseInt(_0x2e00f4(0x1cb))/0x3+-parseInt(_0x2e00f4(0x177))/0x4+parseInt(_0x2e00f4(0x1ba))/0x5+parseInt(_0x2e00f4(0x1aa))/0x6+-parseInt(_0x2e00f4(0x14c))/0x7+parseInt(_0x2e00f4(0x191))/0x8;if(_0x327177===_0x274b4d)break;else _0x23c11['push'](_0x23c11['shift']());}catch(_0x4ac9c7){_0x23c11['push'](_0x23c11['shift']());}}}(_0x38ff,0xcd45c));function i(_0x396448){const _0x459cdb=_0x5e0c;return{'content':[{'type':_0x459cdb(0x1e8),'text':JSON[_0x459cdb(0x1b6)](_0x396448,null,0x2)}]};}function E(_0x5d87db){const _0x1add90=_0x5e0c;return(_0x5d87db||_0x1add90(0x126))['replace'](/\/$/,'');}function U(_0xfe2aeb,_0x334b3b){const _0x2f635d=_0x5e0c;if(!Array[_0x2f635d(0x1dd)](_0xfe2aeb))return _0x334b3b;let _0x43ef20=_0xfe2aeb['map'](_0x5244d9=>String(_0x5244d9));return _0x43ef20[_0x2f635d(0x156)]>0x0?_0x43ef20:_0x334b3b;}function J(_0xa4a10d){const _0x5896fe=_0x5e0c,_0x26d97e={'iCrog':function(_0x58e936,_0xd4651d){return _0x58e936(_0xd4651d);}};try{let _0x59fc30=new URL(_0xa4a10d);return _0x26d97e['iCrog'](Number,_0x59fc30['port']||(_0x59fc30[_0x5896fe(0x171)]===_0x5896fe(0x1b5)?0x1bb:0x50));}catch{return 0xc822;}}function g(_0x3ba6c5){const _0x4ba2af=_0x5e0c,_0x5101e7={'exjJa':function(_0xc6d5df,_0x37f7b3){return _0xc6d5df(_0x37f7b3);},'oeyGM':function(_0x4bcbe6,_0x40a875){return _0x4bcbe6==_0x40a875;},'ScjDl':_0x4ba2af(0x118)};let _0x2257ed=_0x3ba6c5[_0x4ba2af(0x130)]||{},_0x270698=E(_0x2257ed[_0x4ba2af(0x1b3)]);return{'baseUrl':_0x270698,'defaultPollIntervalMs':_0x5101e7[_0x4ba2af(0x151)](Number,_0x2257ed[_0x4ba2af(0x1f4)]||0x3e8),'defaultTimeoutMs':Number(_0x2257ed[_0x4ba2af(0x1b2)]||0x7530),'autoStart':_0x2257ed[_0x4ba2af(0x1da)]!==!0x1,'relayCommand':_0x2257ed[_0x4ba2af(0x1c9)]?String(_0x2257ed[_0x4ba2af(0x1c9)]):void 0x0,'relayArgs':Array['isArray'](_0x2257ed[_0x4ba2af(0x1c8)])?U(_0x2257ed[_0x4ba2af(0x1c8)],[]):void 0x0,'relayCwd':_0x2257ed['relayCwd']?String(_0x2257ed['relayCwd']):void 0x0,'relayEnv':_0x2257ed[_0x4ba2af(0x1cf)]&&_0x5101e7['oeyGM'](typeof _0x2257ed[_0x4ba2af(0x1cf)],_0x5101e7[_0x4ba2af(0x193)])?_0x2257ed['relayEnv']:void 0x0,'startupTimeoutMs':Number(_0x2257ed[_0x4ba2af(0x10f)]||0x3a98),'startupPollIntervalMs':Number(_0x2257ed[_0x4ba2af(0x1ea)]||0x1f4),'preferBundledRelay':_0x2257ed[_0x4ba2af(0x164)]!==!0x1,'relayPort':Number(_0x2257ed[_0x4ba2af(0x1ab)]||J(_0x270698)||0xc822),'runtimeReadyTimeoutMs':Number(_0x2257ed[_0x4ba2af(0x189)]||0x7530),'runtimeReadyPollIntervalMs':Number(_0x2257ed[_0x4ba2af(0x153)]||0x3e8)};}async function R(_0x15abf3){await new Promise(_0x13d95a=>setTimeout(_0x13d95a,_0x15abf3));}async function P(_0xf0d51e,_0x3830a2){const _0x19455e=_0x5e0c;let _0x416301=await fetch(_0xf0d51e,{..._0x3830a2,'headers':{'content-type':_0x19455e(0x10c),..._0x3830a2?.['headers']||{}}}),_0x4871a1=await _0x416301[_0x19455e(0x1e8)](),_0x226d6a=null;try{_0x226d6a=_0x4871a1?JSON[_0x19455e(0xfb)](_0x4871a1):null;}catch{_0x226d6a={'raw':_0x4871a1};}if(!_0x416301['ok'])throw new Error('HTTP\x20'+_0x416301[_0x19455e(0x1f2)]+':\x20'+JSON[_0x19455e(0x1b6)](_0x226d6a));return _0x226d6a;}function _0x38ff(){const _0x44964e=['v2HLDgHLCIb0BYb3ywL0igzVCIb0zxjTAw5HBcb0yxnRihn0yxr1CW','DxrMltG','Ce16CuW','56Yu6k6Wsuq','5PYa5AsA6k+e6k66','56Yu6k6W57g75z6l','Bwfcvgy','uMvSyxKGDg9VBcbLEgvJDxrPB24GzMfPBgvK','sxfLCfO','5O6s5BQp5l6D5O2U','ue9tva','CgfYC2u','BM90zv9JyxjKlNr5Cgu','uwH2rMe','AxnbyNnVBhv0zq','BMfTzq','v25OzuO','vfPIAfe','EgLHB2HVBMDZAhvFEgLHB2HVBMDZAhvFy3jLyxrVCL9ZyxzLx25VDgvFzhjHzNq','sgT5tg4','AM9PBG','sMfoCfK','B25SAw5L','EgLHB2HVBMDZAhvFEgLHB2HVBMDZAhvFy3jLyxrVCL9WDwjSAxnOx25VDgu','B3DssvG','DgLTzw91De1Z','EgHZx3b1yMXPC2HFBM90zq','u2f2zsbHifHPyw9OB25NC2H1ig5VDguGzhjHzNqGDMLHihrOzsbdAhjVBwvbz2vUDcbszwXHEs4G','yxbWBgLJyxrPB24VANnVBG','q1Hyvem','BgLZDf90ywjZ','C3rHCNr1CfrPBwvVDxrnCW','BwfW','t3b0Aw9UywWGDgLTzw91DcbMB3iGD2fPDgLUzYbVBIbHy3rPB24GDgfZA3m','sgD1sMG','rgHpzwq','C2zXuLy','zxHWB3j0x3rVx2nZDG','l2fWAs90yxnRCY8','BNvTyMvY','B2jQzwn0','z2fQuKu','y29SBgvJDf9WCM9KDwn0x2nVBw1LBNrZ','txjovM8','yM9VBgvHBG','C3rLChm','ANvztfu','EgLHB2HVBMDZAhvFy3jLyxrVCL9ZyxzLx25VDgvFzhjHzNq','B2jZzxj2yxrPB24','qwjZB2X1DguGAw1Hz2uGzMLSzsbWyxrOCW','BM90zv9JyxjKlMnVCM5LCL90ywDFAw5MBY4WlNrLEhq','qwjZB2X1DguGCgf0AcbMB3iGDgHLig91Dhb1Dcbdu1yGzMLSzsWGzs5NlIaVvxnLCNmVBwuVrgvZA3rVCc9Yzxn1BhrZlMnZDG','CeHTzfu','y29SDw1UCW','Ahr0CdOVl2XVy2fSAg9ZDdO1mtiZna','uNrQBgW','rMv0y2GGywXSihrVB2WGC2nOzw1HCYbLEhbVC2vKigj5ihrOzsbSB2nHBcbdAhjVBwvbz2vUDcbszwXHEs4GvxnLihrOAxmGyMvMB3jLignHBgXPBMCGzhLUyw1PyYb0zw1WBgf0zsb0B29SCY4','A3PnrLm','sxvMrvm','q29UDgvUDcb0B28GBg9UzZOGBwf4Aw11Bsa5mdaGy2HHCMfJDgvYCW','q29SBgvJDcbuyw9Iyw8Vvg1HBgWGChjVzhvJDcbKzxrHAwWGyw5KignVBw1LBNrZlIbpCgvUCYb0AguGChjVzhvJDcbKzxrHAwWGCgfNzsWGzxH0CMfJDhmGC3rYDwn0DxjLzcbWCM9KDwn0igrHDgeGkhrPDgXLlcbWCMLJzsWGC3bLy3mSigv0yY4Plcb0AgvUig9Wzw5ZihrOzsbJB21Tzw50CYbWyw5LBcbHBMqGy2fWDhvYzxmGy29TBwvUDcbbueKGCMvZCg9UC2vZlGPtDxbWB3j0CYbuyw9Iyw8GkgL0zw0UDgfVyMfVlMnVBsKGyw5KifrTywXSicHKzxrHAwWUDg1HBgWUy29TksbWCM9KDwn0ifvsthmU','l2fWAs90B29SCW','ENbouMu','BM90zv9JyxjK','y29UzMLN','BM90zv9JyxjKlMrPC3bSyxLFDgL0Bgu','BwvZC2fNzq','y3DK','AffmEMi','m3b2rMLctG','EgHZx3nLyxjJAf9UB3rLCW','zgv0ywLSvgfYz2v0q291BNq','A3bTwgG','rxHLy3v0zsbHienOCM9TzufNzw50ifjLBgf5ihrVB2WGyNKGBMfTzs4GrM9Yihf1zxj5ihrVB2XZlcbYzxr1CM5ZihrOzsbYzxn1BhqGAw1TzwrPyxrLBhKUiezVCIbHy3rPB24GDg9VBhmSig9WDgLVBMfSBhKGD2fPDhmGDw50AwWGDgHLihrHC2SGCMvHy2HLCYbHihrLCM1PBMfSihn0yxr1CY4','tMDJtem','EgLHB2HVBMDZAhvFD2vIx3nLyxjJAf9UB3rLCW','zeLcEve','t3b0Aw9UywWGDg9WAwmGDgfNCYaOBwf4Aw11BsaXmcbPDgvTCYK','D0zcCxe','A2v5D29Yza','Ee1dvw0','zMLSzvbHDgG','y05lrfa','BM90zv9JyxjKlMLUDgvYywn0x2LUzM8Uy29TBwvUDf9JB3vUDa','uKDgwgi','t3b0Aw9UywWGDgLTzw91DcbMB3iGD2fPDgLUzYbVBIb0AguGChvIBgLZAcb0yxnR','CMfUzg9TAxPLt3jKzxi','B0TVv1m','Aw5JBhvKzxm','BgLZDf9YDw50Aw1LCW','vgL0BguGDg9VigXVBMC6ig1HEgLTDw0GmJaGy2HHCMfJDgvYCW','EgHZx3nHDMvFBM90zv9KCMfMDa','mtK2mti5nurRrK5TrG','vgfYz2v0ig51BwjLCIbVzIbUB3rLCYb0BYbJB2XSzwn0icHKzwzHDwX0oIaYnsKUifrOzsbJCMf3BgvYihnJCM9SBhmGDw50AwWGDgHPCYbJB3vUDcbPCYbYzwfJAgvKig9Yig5Vig1VCMuGCMvZDwX0CY4','DxjS','yxjYyxK','t3b0Aw9UywWGCNvUDgLTzsbJBgLLBNrjzc4GswyGB21PDhrLzcWGyxv0BY1ZzwXLy3rZihrOzsbMAxjZDcbVBMXPBMuGCNvUDgLTzs4','zxHQsMe','54k56lwE5PwW','CNvUDgLTzvjLywr5ug9SBeLUDgvYDMfStxm','qxjYyxKGB2yGB2jQzwn0CYb0BYbLEhbVCNqUievHy2GGB2jQzwn0igjLy29TzxmGB25LientvIbYB3CU','tLvHCgG','BgvUz3rO','BhfTwLe','EgLHB2HVBMDZAhvFEgLHB2HVBMDZAhvFD2vIx3nLyxjJAf9UB3rLCW','CMvZB2X2zq','q2HLy2SGD2HLDgHLCIb0AguGBg9JywWGq2HYB21LqwDLBNqGuMvSyxKGC2vYDMLJzsbPCYbOzwfSDgH5lIbjzIbHDxrVu3rHCNqGAxmGzw5HyMXLzcWGDgHLihbSDwDPBIb3AwXSihrYEsb0BYbZDgfYDcbPDcbMAxjZDc4','5PYa5AsA54k56lwE','AgvHzgvY','EgHZx2XPC3rFCNvUDgLTzxm','uhvIBgLZAcbHifHPyw9OB25NC2H1ig5VDguGDMLHihrOzsbdAhjVBwvbz2vUDcbszwXHEs4G','y2XPzw50swq','ufv2tgm','D2fPDa','tKzsthe','u2vHCMnOigTLExDVCMqGDg8GCxvLCNKGB24GwgLHB2HVBMDZAhu','ChjLzMvYqNvUzgXLzfjLBgf5','C3bSAxq','zgLYBMfTzq','BM90zxm','tgLZDcbVBMXPBMuGyNjVD3nLCIbYDw50Aw1LCYbMCM9TihrOzsbdAhjVBwvbz2vUDcbszwXHEs4','we92yNm','Ew5vDwS','EgfvzMi','swyGDhj1zsbHBMqGDgHLihjLBgf5ihjLDhvYBNmGyw4Gywn0Aw9UihrHC2TjzcWGCg9SBcb1BNrPBcb0zxjTAw5HBcbZDgf0Dxm','zNjVBq','rNj0qve','Cg9SBeLUDgvYDMfStxm','t3b0Aw9UywWGCNvUDgLTzsbJBgLLBNrjza','ChjVDg9JB2W','zMLLBgq','D0zcwfq','ywn0Aw9U','v2HLDgHLCIb0BYb3ywL0igzVCIb0AguGDgfZAYb0BYbJB21WBgv0zsaOzgvMyxvSDdOGDhj1zsK','uw1JtKy','ntCXndK0mePnqxP6zW','u2vHCMnOifHPyw9OB25NC2H1ig5VDgvZigj5igTLExDVCMqUie9Wzw5ZihHPyw9OB25NC2H1lMnVBsWGCgvYzM9YBxmGysbODw1HBI1SAwTLihnLyxjJAcb3AxrOig9WDgLVBMfSigzPBhrLCNmGkhnVCNqSig5VDguGDhLWzsWGChvIBgLZAcb0Aw1LlcbLDgmUksWGC2nYB2XSCYb0BYbJB2XSzwn0ihjLC3vSDhmSigfUzcbJyxb0DxjLCYb0AguGC2vHCMnOiefqssbYzxnWB25ZzxmUcLn1ChbVCNrZihjPy2GGzMLSDgvYignVBMrPDgLVBNmGDMLHihrOzsaNzMLSDgvYCYCGyxjYyxKSiguUzY4Gw3SIz3jVDxaIoIlMJPlLUO/KVP3MJA4IlcjVChrPB24IoIlMNidMLRaIFsX7iMDYB3vWiJOI56Yu6k6W57g75z6liIWIB3b0Aw9UiJOI5zU+5PAhiN1DlGPbDMfPBgfIBguGzMLSDgvYigDYB3vWCYbHBMqGB3b0Aw9UCZOkicdMJPlLUO/KVP3MJA46ioE7VowqIcWG5PYa5PAWlcdMNidLPjRNGRNOTz4SioACGowKMUIVHoIUUIWG5PYa5AsA5Ps26jEpcIaG56Yu6k6W57g75z6loIdKUi3PMzaSioINHUMIKsWG5zU+5PAhcIaG5y+r5BId5PE26zE0oIdKUi3PMzaSios4GowKQEwgHsWG5lIa5zgO5yAflcdLJyRLUBtLHOukicdMKjZNTklOJipLM7q6ios4JEMzKcWG5BEY55Yl6l+hlcdMNkRNNiVOV4CSiow3SUwfS+AZQaOGios9JEE9RUI3NEEMUZOG5lIn6zMqlcdLKiZLN44SioMzHoI/Kq','vLbsswW','tfvyqxi','Cfj3v0G','CMvWBgfJzq','y2fUy2vSBgvK','y29SBgvJDf9WCM9KDwn0x2rLDgfPBa','DgvZDa','vMz4Cuu','Aw5WDxq','mtaWnZi4nKTMvhnyyG','zhbrAxq','BM90zv9JyxjKlNvZzxiUBMLJA25HBwu','z2vUzxjHBa','DNrWugy','v2HLDgHLCIb0BYbYyw5KB21PEMuGDgHLig9YzgvYig9Mig5VDgvZihDOzw4Gy29SBgvJDgLUzYbKzxrHAwXZicHKzwzHDwX0oIb0CNvLks4Gt25SEsbLzMzLy3rPDMuGD2HLBIbKzxrHAwXuyxjNzxrdB3vUDcbPCYbWCM92AwrLzc4','rhLLB2q','CNvUDgLTzvjLywr5vgLTzw91De1Z','vNb0zNK','t3b0Aw9UywWGCg9SBgLUzYbPBNrLCNzHBcbPBIbTAwXSAxnLy29Uzhm','CMzcC2C','C3rYAw5N','qvrNzw8','t3b0Aw9UywWGDgLTzw91DcbMB3iGD2fPDgLUzYbVBIb0AguGzhjHzNqGDgfZAW','DgfZAW','mtq5odaWmtzXCLb4rLy','A2v5CW','u2nQrgW','vg9Vig1HBNKGAw1Hz2vZoIbTyxHPBxvTide4','BfjNC1e','6k+e6k665PwW','Dg9VBe5HBwvZ','t3b0Aw9UywWGDgLTzw91DcbMB3iGD2fPDgLUzYbVBIb0AguGDgfZAYaOzgvMyxvSDdOGmtGWmdaWBxmP','DgfZA0LK','rMLSDgvYignVBMrPDgLVBNmGyxjYyxKUievHy2GGzwXLBwvUDdOGEYaIz3jVDxaIoIaIpgDYB3vWigXHyMvSpIiSicjVChrPB24IoIaIpg9WDgLVBIbSywjLBd4Iih0UieuUzY4Gw3SIz3jVDxaIoIlMJPlLUO/KVP3MJA4IlcjVChrPB24IoIlMNidMLRaIFsX7iMDYB3vWiJOI56Yu6k6W57g75z6liIWIB3b0Aw9UiJOI5zU+5PAhiN1D','vMLqq1C','vxj4BxG','BM93','DgfYz2v0q29TBwvUDenVDw50','CMvZDwX0','C2f2zvrVrMLSzq','zKDvseu','C3rLCeLK','zgf0yq','BM90zv9JyxjKlMLUDgvYywn0x2LUzM8UC2HHCMvKx2nVDw50','EvD1A3i','zMfPBgvK','zfjyENy','Cgf1C2vK','EgLHB2HVBMDZAhvFAg9Tzv9ZzwfYy2HFBM90zxm','ntm5nJGXnhzPq2T3Aq','CMvSyxLqB3j0','AxL5wNa','yKfQqNa','r0vu','vg9Vig1HBNKGDg9WAwnZoIbTyxHPBxvTideW','u2Dryxq','y2HYB21LywDLBNrFCMvSyxLFD2fPDf90yxnR','zgvMyxvSDfrPBwvVDxrnCW','yMfZzvvYBa','Buf5sNO','Ahr0Chm6','C3rYAw5NAwz5','EgHZx2XPC3rFDgfICW','y2HYB21LywDLBNrFCMvSyxLFAgvHBhrO','t3b0Aw9UywWGBgLZDcbVzIbJB2X1Bw4GzgvMAw5PDgLVBNmUievHy2GGAxrLBsbJyw4GyMuGysbZDhjPBMCGkgzPzwXKig5HBwuGDxnLzcbHCYbOzwfKzxiPig9YigfUig9IAMvJDcb7igzPzwXKoIaIBMvZDgvKlNbHDgGIlcbOzwfKzxi6icjeAxnWBgf5ie5HBwuIih0UieLMig9TAxr0zwqSigfSBcb0B3aTBgv2zwWGA2v5CYbVzIb0AguGzMLYC3qGzgf0ysbPDgvTigfYzsb1C2vKlG','mJu0nJaXnuznBNrWCG','tM5kB1G','Dg9VBe5HBwu','rxHWB3j0igfUigfYCMf5ig9Mig9IAMvJDhmGkguUzY4GwgLHB2HVBMDZAhuGC2vHCMnOihjLC3vSDhmPihrVigeGBg9JywWGq1nwigzPBguUifbHC3mGDgHLigrHDgeGyxjYyxKGyw5KigfUig91Dhb1DcbMAwXLihbHDgGUifrOzsb0B29Sigf1Dg8Tzgv0zwn0CYbJB2X1Bw5ZigzYB20GDgHLigzPCNn0igL0zw0Sig9YihLVDsbJyw4GC3bLy2LMEsb3AgLJAcbJB2X1Bw5ZihrVigLUy2X1zguU','zgf0ysbHCNjHEsbPCYbLBxb0Eq','vKLHsKC','AMnhzeG','DhjPBq','y29UDgvUDa','l2HLywX0Aa','BM90zvr5Cgu','Aw1Hz2vZ','Dg9WAwnZ','svfkEvy','CMvSyxLbCMDZ','CMvSyxLdB21Tyw5K','uwPxy3u','mJmZodqXm3DkrLPwvW','wgv4tu4','rMLSDgvYig9WDgLVBIbSywjLBcaOzs5NlIdMNidMLRaSiowBVUAwHYK','tM90zsb0AxrSzsaOBwf4Aw11BsaYmcbJAgfYywn0zxjZkq','CMvSyxLfBNy','y2HYB21LywDLBNrFCMvSyxLFzxHLy3v0zv90B29S','DgL0Bgu','CNvUDgLTzuLK','vw5RBM93BIb0B29S','5yIg5lQR5PwW','ChvZAa','DgfVyMfVx3DLyL9JB2XSzwn0x3bYB2r1y3rFzgf0yq','y2HYB21LywDLBNrFCMvSyxLFBgLZDf90B29SCW','A3rJuLi','CMvNAxn0zxjuB29S','yxv0B1n0yxj0','tM90zsbIB2r5ignVBNrLBNq','zMLSDgvYCW','AxnbCNjHEq','B3b0Aw9U','vgnfC2y','s2rWExG','rK1gvg8','EgLHB2HVBMDZAhvFy3jLyxrVCL9WDwjSAxnOx25VDgu','wgnjBuO','ChjVzhvJDf9KyxrH','zMLUza','uwLnvKC','l2fWAs90B29SCY9SAxn0x3j1BNrPBwvZl2v4zwn1Dgu','Dgv4Da','tgLZDcbVCgvUigjYB3DZzxiGDgfICYbMCM9TihrOzsbdAhjVBwvbz2vUDcbszwXHEs4','C3rHCNr1CfbVBgXjBNrLCNzHBe1Z','CxfktuO','yxv0B1nLBgvJDfj1BNrPBwu','l2v4zwn1Dgu','BeD5Ee4','r2PSAxG','EeHnCLq','5y+r5BId5PE26zE0','C3rHDhvZ','l3jLC3vSDa','zgvMyxvSDfbVBgXjBNrLCNzHBe1Z'];_0x38ff=function(){return _0x44964e;};return _0x38ff();}function b(_0x182250,_0x3ace0c){const _0xa07dd5=_0x5e0c,_0x130e22={'ciNRN':function(_0x358795,_0x140986){return _0x358795||_0x140986;},'ATgeo':_0xa07dd5(0x14a)};if(_0x130e22['ciNRN'](_0x182250,'')[_0xa07dd5(0x156)]>0x14)throw new Error(_0x130e22[_0xa07dd5(0x18e)]);if((_0x3ace0c||'')['length']>0x384)throw new Error(_0xa07dd5(0x12b));}function w(_0x5616c2){const _0x53e65b=_0x5e0c;let _0x51469c=Array[_0x53e65b(0x16d)](new Set((_0x5616c2||[])[_0x53e65b(0x110)](_0x598caa=>String(_0x598caa||'')[_0x53e65b(0x1c1)]())['filter'](Boolean)));if(_0x51469c[_0x53e65b(0x156)]>0xa)throw new Error(_0x53e65b(0x1af));return _0x51469c;}function _(_0x46428b){const _0x3357c7=_0x5e0c;if(Array[_0x3357c7(0x1dd)](_0x46428b)&&_0x46428b[_0x3357c7(0x156)]>0x12)throw new Error(_0x3357c7(0x194));}async function f(_0x490116,_0x540170,_0x9fddae){const _0x1acfab=_0x5e0c,_0x30086a={'zpNRe':function(_0xaea8ec,_0x16ba5d,_0x4f3ffe){return _0xaea8ec(_0x16ba5d,_0x4f3ffe);}};return _0x30086a[_0x1acfab(0x12e)](P,_0x540170,_0x9fddae);}async function x(_0x7f3c8,_0x32ff0c,_0x240ee1,_0xdea0ed,_0xacd764){const _0x216205=_0x5e0c,_0x468b18={'lwyzv':function(_0x51360e,_0xf73675,_0xc3f568){return _0x51360e(_0xf73675,_0xc3f568);},'xaUfb':'completed'};let _0x23cd24=Date['now']()+_0xdea0ed,_0x2392b7=null;for(;Date[_0x216205(0x19d)]()<_0x23cd24;){_0x2392b7=await _0x468b18['lwyzv'](f,_0x7f3c8,_0x32ff0c+_0x216205(0x116)+encodeURIComponent(_0x240ee1));let _0x4107fb=_0x2392b7?.['task']?.[_0x216205(0x1f2)];if([_0x468b18[_0x216205(0x16b)],_0x216205(0x1a6),_0x216205(0x17d),_0x216205(0x1a8)][_0x216205(0x148)](_0x4107fb))try{return await f(_0x7f3c8,_0x32ff0c+'/api/tasks/'+encodeURIComponent(_0x240ee1)+_0x216205(0x1f3));}catch{return _0x2392b7;}await R(_0xacd764);}return{'success':!0x1,'timeout':!0x0,'taskId':_0x240ee1,'last':_0x2392b7};}async function $(_0x4ea53c,_0x117fad){const _0x5019db=_0x5e0c,_0x437d8b={'pMzqL':function(_0x37fcb9,_0xa5949,_0x4679fe,_0x4eb0c6){return _0x37fcb9(_0xa5949,_0x4679fe,_0x4eb0c6);}};if(_0x117fad)return _0x117fad;let _0x310ca7=g(_0x4ea53c),_0xb199d4=(await _0x437d8b[_0x5019db(0xf2)](f,_0x4ea53c,_0x310ca7[_0x5019db(0x1b3)]+_0x5019db(0x1e7),{'method':_0x5019db(0xfa),'body':JSON[_0x5019db(0x1b6)]({'input':{}})}))?.[_0x5019db(0x19f)]?.['runtimes'];if(!Array[_0x5019db(0x1dd)](_0xb199d4)||_0xb199d4[_0x5019db(0x156)]===0x0)throw new Error('No\x20online\x20runtime\x20available');return _0xb199d4[_0x5019db(0x1e5)](_0x50da4f=>_0x50da4f?.[_0x5019db(0x106)]!==!0x1)?.['clientId']||_0xb199d4[0x0]?.[_0x5019db(0x15f)];}async function d(_0x4829bf,_0x3af810){const _0x2f8c18=_0x5e0c,_0x53c398={'pHxNq':function(_0xd8bf3e,_0x9aca07){return _0xd8bf3e!==_0x9aca07;},'mAyJz':function(_0x31a577,_0x48625e,_0x2d2578){return _0x31a577(_0x48625e,_0x2d2578);},'TZbhQ':_0x2f8c18(0xfa),'NnJoX':_0x2f8c18(0xf7),'QiMVG':function(_0x4330c8,_0x5cc500){return _0x4330c8===_0x5cc500;},'umLEB':function(_0x4baf9d,_0x17eeec){return _0x4baf9d(_0x17eeec);}};let _0x2bd52b=g(_0x4829bf),_0x3e88a2={'input':_0x3af810[_0x2f8c18(0x181)]||{}};if(_0x53c398['pHxNq'](_0x3af810[_0x2f8c18(0x1ec)],!0x1)){let _0x44bbe0=await _0x53c398[_0x2f8c18(0x1b4)]($,_0x4829bf,_0x3af810[_0x2f8c18(0x1d2)]);_0x44bbe0&&(_0x3e88a2[_0x2f8c18(0x1d2)]=_0x44bbe0);}else _0x3af810[_0x2f8c18(0x1d2)]&&(_0x3e88a2['runtimeId']=_0x3af810[_0x2f8c18(0x1d2)]);let _0x147972=Array[_0x2f8c18(0x1dd)](_0x3af810[_0x2f8c18(0x197)])&&_0x3af810['toolNames'][_0x2f8c18(0x156)]?_0x3af810[_0x2f8c18(0x197)]:[_0x3af810[_0x2f8c18(0x1bc)]],_0x14a823=null,_0x157f02=null;for(let _0x551b69 of _0x147972)try{_0x14a823=await f(_0x4829bf,_0x2bd52b[_0x2f8c18(0x1b3)]+'/api/tools/'+encodeURIComponent(_0x551b69)+_0x2f8c18(0x1ed),{'method':_0x53c398[_0x2f8c18(0x101)],'body':JSON[_0x2f8c18(0x1b6)](_0x3e88a2)});break;}catch(_0xd53614){if(_0x157f02=_0xd53614,!String(_0xd53614?.[_0x2f8c18(0x132)]||_0xd53614)['includes'](_0x2f8c18(0x1d3)))throw _0xd53614;}if(!_0x14a823)throw _0x157f02||new Error(_0x53c398[_0x2f8c18(0x1bb)]);if(_0x14a823?.['type']!==_0x2f8c18(0x174)||_0x53c398[_0x2f8c18(0x1e6)](_0x3af810['wait'],!0x1))return _0x14a823;let _0x1b2115=await x(_0x4829bf,_0x2bd52b[_0x2f8c18(0x1b3)],_0x14a823[_0x2f8c18(0x199)],Number(_0x3af810[_0x2f8c18(0x109)]||_0x2bd52b[_0x2f8c18(0x1b2)]),_0x53c398['umLEB'](Number,_0x3af810['pollIntervalMs']||_0x2bd52b['defaultPollIntervalMs']));return{'execute':_0x14a823,'task':_0x1b2115};}function C(_0x5a9aaf){const _0x440735=_0x5e0c,_0x161f4d={'xHMrT':function(_0x45c8b6,_0x3ff355){return _0x45c8b6(_0x3ff355);},'xMCUm':function(_0x3ec344,_0x55641f,_0x5ed696){return _0x3ec344(_0x55641f,_0x5ed696);},'fGUHE':function(_0x5803f8,_0x469f36,_0x4c3663,_0x5d6988,_0x5492a5,_0x291810){return _0x5803f8(_0x469f36,_0x4c3663,_0x5d6988,_0x5492a5,_0x291810);},'sfqRV':function(_0x255a6e,_0x52042f){return _0x255a6e(_0x52042f);},'wFBXT':_0x440735(0x118),'RGFXb':_0x440735(0x1d7),'lqmZQ':_0x440735(0x18d),'Vptfy':_0x440735(0x11c),'gajRE':_0x440735(0x111),'MrNVo':_0x440735(0x117),'KvLpL':_0x440735(0x18b),'dpQit':'Poll\x20a\x20ChromeAgent\x20Relay\x20task\x20until\x20it\x20finishes,\x20fails,\x20pauses,\x20is\x20cancelled,\x20or\x20times\x20out.','Gjlix':'Optional\x20timeout\x20in\x20milliseconds'};_0x5a9aaf[_0x440735(0x1d9)]({'name':_0x440735(0x1b8),'description':_0x440735(0x15a),'parameters':{'type':_0x161f4d[_0x440735(0x173)],'properties':{},'additionalProperties':!0x1},async 'execute'(){const _0x244a56=_0x440735;try{let _0xaa6ab5=g(_0x5a9aaf),_0x5cabc0=await f(_0x5a9aaf,_0xaa6ab5[_0x244a56(0x1b3)]+_0x244a56(0x1c3),{'method':_0x244a56(0x1ae)});return _0x161f4d['xHMrT'](i,_0x5cabc0);}catch(_0x315f7b){return i({'success':!0x1,'error':_0x161f4d[_0x244a56(0x1f0)](String,_0x315f7b?.[_0x244a56(0x132)]||_0x315f7b)});}}}),_0x5a9aaf[_0x440735(0x1d9)]({'name':_0x161f4d[_0x440735(0x144)],'description':_0x440735(0x128),'parameters':{'type':'object','properties':{},'additionalProperties':!0x1},async 'execute'(){const _0x2eaa67=_0x440735;try{let _0x149b10=g(_0x5a9aaf),_0x461726=await f(_0x5a9aaf,_0x149b10['baseUrl']+_0x2eaa67(0x12d),{'method':_0x2eaa67(0x1ae)});return i(_0x461726);}catch(_0x36ea19){return _0x161f4d[_0x2eaa67(0x1f0)](i,{'success':!0x1,'error':String(_0x36ea19?.[_0x2eaa67(0x132)]||_0x36ea19)});}}}),_0x5a9aaf['registerTool']({'name':_0x440735(0x1d0),'description':_0x440735(0x139),'parameters':{'type':_0x161f4d[_0x440735(0x173)],'properties':{'toolName':{'type':_0x161f4d[_0x440735(0x157)],'description':'Tool\x20name\x20from\x20GET\x20/api/tools,\x20e.g.\x20list_tabs\x20or\x20xiaohongshu_creator_publish_note'},'input':{'type':'object','description':'JSON\x20input\x20payload\x20for\x20the\x20relay\x20tool','additionalProperties':!0x0},'runtimeId':{'type':'string','description':_0x440735(0x170)},'wait':{'type':_0x161f4d[_0x440735(0x18a)],'description':_0x440735(0x16c),'default':!0x0},'timeoutMs':{'type':'number','description':_0x161f4d[_0x440735(0x119)]},'pollIntervalMs':{'type':_0x161f4d[_0x440735(0x11b)],'description':_0x161f4d['KvLpL']}},'required':[_0x440735(0x1bc)],'additionalProperties':!0x1},async 'execute'(_0x5af818,_0x2d57f1){const _0x45627a=_0x440735;try{return i(await _0x161f4d[_0x45627a(0x140)](d,_0x5a9aaf,_0x2d57f1));}catch(_0x24dfa7){return i({'success':!0x1,'error':String(_0x24dfa7?.[_0x45627a(0x132)]||_0x24dfa7)});}}}),_0x5a9aaf[_0x440735(0x1d9)]({'name':_0x440735(0x1b1),'description':_0x161f4d[_0x440735(0x183)],'parameters':{'type':_0x440735(0x118),'properties':{'taskId':{'type':_0x161f4d['lqmZQ'],'description':'Task\x20id\x20returned\x20by\x20an\x20action\x20tool'},'timeoutMs':{'type':_0x161f4d['MrNVo'],'description':_0x161f4d[_0x440735(0x1ef)]},'pollIntervalMs':{'type':_0x161f4d[_0x440735(0x11b)],'description':_0x161f4d['KvLpL']}},'required':['taskId'],'additionalProperties':!0x1},async 'execute'(_0x1b2283,_0x11255a){const _0x332091=_0x440735;try{let _0x38c36c=g(_0x5a9aaf),_0x11f659=await _0x161f4d[_0x332091(0x1a1)](x,_0x5a9aaf,_0x38c36c['baseUrl'],_0x11255a['taskId'],_0x161f4d[_0x332091(0x1f0)](Number,_0x11255a[_0x332091(0x109)]||_0x38c36c[_0x332091(0x1b2)]),Number(_0x11255a[_0x332091(0x16f)]||_0x38c36c['defaultPollIntervalMs']));return _0x161f4d[_0x332091(0x114)](i,_0x11f659);}catch(_0x382a36){return i({'success':!0x1,'error':String(_0x382a36?.['message']||_0x382a36)});}}});}function S(_0x1f46a0){const _0x418ca7=_0x5e0c,_0x5cc2d9={'juYLU':function(_0x30d987,_0x44cb3d,_0x4572d2){return _0x30d987(_0x44cb3d,_0x4572d2);},'Kdpyx':function(_0x52ba09,_0x271927){return _0x52ba09(_0x271927);},'QmcNF':'object','ViPCW':_0x418ca7(0x1b7),'NFRLq':_0x418ca7(0x1e9),'IQJyV':_0x418ca7(0x170)};_0x1f46a0['registerTool']({'name':_0x418ca7(0x15d),'description':_0x418ca7(0x168),'parameters':{'type':_0x5cc2d9['QmcNF'],'properties':{'runtimeId':{'type':'string','description':_0x418ca7(0x170)}},'additionalProperties':!0x1},async 'execute'(_0x10caad,_0x315b28){const _0x64c34d=_0x418ca7;try{return i(await _0x5cc2d9[_0x64c34d(0x11e)](d,_0x1f46a0,{'toolName':_0x64c34d(0x149),'input':{},'runtimeId':_0x315b28[_0x64c34d(0x1d2)],'wait':!0x1,'autoSelectRuntime':!0x1}));}catch(_0x5b0166){return i({'success':!0x1,'error':String(_0x5b0166?.[_0x64c34d(0x132)]||_0x5b0166)});}}}),_0x1f46a0['registerTool']({'name':_0x5cc2d9[_0x418ca7(0x19b)],'description':_0x5cc2d9[_0x418ca7(0x162)],'parameters':{'type':_0x5cc2d9[_0x418ca7(0x176)],'properties':{'runtimeId':{'type':_0x418ca7(0x18d),'description':_0x5cc2d9[_0x418ca7(0x1c7)]}},'additionalProperties':!0x1},async 'execute'(_0x76d16b,_0x43f081){const _0x53788b=_0x418ca7;try{return _0x5cc2d9[_0x53788b(0x1e0)](i,await d(_0x1f46a0,{'toolName':_0x53788b(0x10e),'input':{},'runtimeId':_0x43f081[_0x53788b(0x1d2)],'wait':!0x1}));}catch(_0x354bd8){return i({'success':!0x1,'error':_0x5cc2d9['Kdpyx'](String,_0x354bd8?.['message']||_0x354bd8)});}}});}var T='Generation\x20constraints:\x20title\x20must\x20be\x20<=\x2020\x20characters,\x20topics\x20must\x20be\x20<=\x2010\x20items.';function M(_0x525e05){const _0x25320e=_0x5e0c,_0x2a650d={'jcGdH':function(_0x3b4472,_0x3ac029){return _0x3b4472(_0x3ac029);},'CXXTC':function(_0x479d6b,_0x211e7a,_0x25b4a2){return _0x479d6b(_0x211e7a,_0x25b4a2);},'VPRIl':_0x25320e(0x107),'HkyLn':_0x25320e(0x1e2),'dIByQ':function(_0x27a0e4,_0x23b6ed,_0xdd59b6){return _0x27a0e4(_0x23b6ed,_0xdd59b6);},'lGyxN':function(_0x2bc830,_0x52c9d1){return _0x2bc830(_0x52c9d1);},'YHntu':function(_0x4064b2,_0x25beb1,_0x6442c8){return _0x4064b2(_0x25beb1,_0x6442c8);},'FrtAQ':_0x25320e(0x10a),'iyyZp':'array','IqepZ':_0x25320e(0x18d),'lLCED':_0x25320e(0x145),'rfBsg':_0x25320e(0x18b),'XOvbs':_0x25320e(0x1d1),'Rtjll':_0x25320e(0x1db),'Apvqb':'Whether\x20to\x20wait\x20for\x20terminal\x20task\x20status','wFBqq':_0x25320e(0x117),'JaNpY':_0x25320e(0x1c5)};_0x525e05[_0x25320e(0x1d9)]({'name':_0x2a650d[_0x25320e(0x16e)],'description':_0x25320e(0x15e)+T,'parameters':{'type':'object','properties':{'title':{'type':'string','description':_0x25320e(0x1ce)},'content':{'type':_0x25320e(0x18d),'description':_0x25320e(0x1db)},'images':{'type':_0x2a650d[_0x25320e(0x1ac)],'items':{'type':'string'},'description':_0x25320e(0x121)},'topics':{'type':_0x2a650d[_0x25320e(0x1ac)],'items':{'type':'string'},'description':_0x25320e(0x13d)},'runtimeId':{'type':_0x2a650d['IqepZ'],'description':_0x25320e(0x170)},'wait':{'type':'boolean','description':_0x25320e(0x1f5),'default':!0x0},'timeoutMs':{'type':_0x25320e(0x117),'description':_0x2a650d['lLCED']},'pollIntervalMs':{'type':_0x25320e(0x117),'description':_0x2a650d[_0x25320e(0x18c)]}},'required':[_0x2a650d[_0x25320e(0x169)],_0x25320e(0x1c2),'images'],'additionalProperties':!0x1},async 'execute'(_0x508587,_0x2c835a){const _0x4a9f51=_0x25320e;try{b(_0x2c835a[_0x4a9f51(0x1d1)],_0x2c835a['content']),_0x2a650d[_0x4a9f51(0x1c0)](_,_0x2c835a[_0x4a9f51(0x1c5)]);let _0x3d08d3=w(_0x2c835a['topics']);return i(await _0x2a650d[_0x4a9f51(0x10d)](d,_0x525e05,{'toolNames':[_0x2a650d[_0x4a9f51(0x179)],_0x2a650d[_0x4a9f51(0x103)]],'input':{'title':_0x2c835a[_0x4a9f51(0x1d1)],'content':_0x2c835a['content'],'images':_0x2c835a[_0x4a9f51(0x1c5)],'topics':_0x3d08d3},'runtimeId':_0x2c835a[_0x4a9f51(0x1d2)],'wait':_0x2c835a[_0x4a9f51(0x161)],'timeoutMs':_0x2c835a[_0x4a9f51(0x109)],'pollIntervalMs':_0x2c835a[_0x4a9f51(0x16f)]}));}catch(_0x368702){return i({'success':!0x1,'error':String(_0x368702?.[_0x4a9f51(0x132)]||_0x368702)});}}}),_0x525e05[_0x25320e(0x1d9)]({'name':_0x25320e(0x14b),'description':_0x25320e(0x10b)+T,'parameters':{'type':_0x25320e(0x118),'properties':{'title':{'type':_0x2a650d[_0x25320e(0xf8)],'description':_0x25320e(0x1ce)},'content':{'type':_0x25320e(0x18d),'description':_0x2a650d[_0x25320e(0x127)]},'images':{'type':_0x25320e(0x14f),'items':{'type':_0x2a650d['IqepZ']},'description':'Absolute\x20image\x20file\x20paths'},'topics':{'type':_0x25320e(0x14f),'items':{'type':_0x2a650d['IqepZ']},'description':_0x25320e(0x13d)},'runtimeId':{'type':'string','description':_0x25320e(0x170)},'wait':{'type':_0x25320e(0x11c),'description':_0x2a650d['Apvqb'],'default':!0x0},'timeoutMs':{'type':_0x25320e(0x117),'description':_0x25320e(0x18f)},'pollIntervalMs':{'type':_0x2a650d[_0x25320e(0x13e)],'description':_0x25320e(0x18b)}},'required':[_0x25320e(0x1d1),'content',_0x2a650d[_0x25320e(0x105)]],'additionalProperties':!0x1},async 'execute'(_0x4a96ea,_0x418023){const _0x12026d=_0x25320e;try{_0x2a650d[_0x12026d(0x13c)](b,_0x418023[_0x12026d(0x1d1)],_0x418023[_0x12026d(0x1c2)]),_(_0x418023['images']);let _0x2f22af=_0x2a650d[_0x12026d(0x1ee)](w,_0x418023[_0x12026d(0x1c6)]);return i(await _0x2a650d['YHntu'](d,_0x525e05,{'toolNames':[_0x12026d(0x102),_0x12026d(0x11f)],'input':{'title':_0x418023[_0x12026d(0x1d1)],'content':_0x418023[_0x12026d(0x1c2)],'images':_0x418023['images'],'topics':_0x2f22af},'runtimeId':_0x418023[_0x12026d(0x1d2)],'wait':_0x418023[_0x12026d(0x161)],'timeoutMs':_0x418023[_0x12026d(0x109)],'pollIntervalMs':_0x418023['pollIntervalMs']}));}catch(_0x501301){return i({'success':!0x1,'error':String(_0x501301?.[_0x12026d(0x132)]||_0x501301)});}}});}import{writeFile as _0x5c515b,mkdir as _0x36cf41}from'fs/promises';import _0x581792 from'path';function _0x5e0c(_0x24ed87,_0x3dae7a){_0x24ed87=_0x24ed87-0xf1;const _0x38ff79=_0x38ff();let _0x5e0c80=_0x38ff79[_0x24ed87];if(_0x5e0c['cqqBfR']===undefined){var _0x5f57be=function(_0x534375){const _0x42b38a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3049b9='',_0x4d8b01='';for(let _0x272485=0x0,_0x44dee7,_0x342b00,_0x22df39=0x0;_0x342b00=_0x534375['charAt'](_0x22df39++);~_0x342b00&&(_0x44dee7=_0x272485%0x4?_0x44dee7*0x40+_0x342b00:_0x342b00,_0x272485++%0x4)?_0x3049b9+=String['fromCharCode'](0xff&_0x44dee7>>(-0x2*_0x272485&0x6)):0x0){_0x342b00=_0x42b38a['indexOf'](_0x342b00);}for(let _0x1ff9eb=0x0,_0x5cb869=_0x3049b9['length'];_0x1ff9eb<_0x5cb869;_0x1ff9eb++){_0x4d8b01+='%'+('00'+_0x3049b9['charCodeAt'](_0x1ff9eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d8b01);};_0x5e0c['TNbmop']=_0x5f57be,_0x5e0c['bgaASZ']={},_0x5e0c['cqqBfR']=!![];}const _0x359f0a=_0x38ff79[0x0],_0x4cff8c=_0x24ed87+_0x359f0a,_0x1c5337=_0x5e0c['bgaASZ'][_0x4cff8c];return!_0x1c5337?(_0x5e0c80=_0x5e0c['TNbmop'](_0x5e0c80),_0x5e0c['bgaASZ'][_0x4cff8c]=_0x5e0c80):_0x5e0c80=_0x1c5337,_0x5e0c80;}function z(_0x266de8){const _0x3d7ef3=_0x5e0c;let _0x665831=(Array[_0x3d7ef3(0x1dd)](_0x266de8?.['task']?.[_0x3d7ef3(0x19f)]?.['steps'])?_0x266de8['task']['result'][_0x3d7ef3(0x11d)]:Array[_0x3d7ef3(0x1dd)](_0x266de8?.[_0x3d7ef3(0x11d)])?_0x266de8[_0x3d7ef3(0x11d)]:[])[_0x3d7ef3(0x1e5)](_0x283133=>_0x283133?.[_0x3d7ef3(0x1a2)]==='s6'||_0x283133?.['name']==='collect_note_details');return Array[_0x3d7ef3(0x1dd)](_0x665831?.[_0x3d7ef3(0x19f)]?.['observation']?.[_0x3d7ef3(0x167)])?_0x665831[_0x3d7ef3(0x19f)][_0x3d7ef3(0x120)][_0x3d7ef3(0x167)]:Array[_0x3d7ef3(0x1dd)](_0x266de8?.[_0x3d7ef3(0x190)]?.['result']?.[_0x3d7ef3(0x167)])?_0x266de8[_0x3d7ef3(0x190)][_0x3d7ef3(0x19f)][_0x3d7ef3(0x167)]:Array[_0x3d7ef3(0x1dd)](_0x266de8?.[_0x3d7ef3(0x19f)]?.['notes'])?_0x266de8[_0x3d7ef3(0x19f)][_0x3d7ef3(0x167)]:[];}function O(_0x46c165){const _0x2c69a5=_0x5e0c,_0x48cdb9={'cNKDP':_0x2c69a5(0xf4),'DhOed':function(_0x3bea44,_0x3349f0){return _0x3bea44!==_0x3349f0;},'rXpJx':_0x2c69a5(0x185),'BpkUq':_0x2c69a5(0xf9),'QjWcu':function(_0x54d602,_0x1bb69a){return _0x54d602!=_0x1bb69a;},'bAjBp':_0x2c69a5(0x13b),'BcHNo':function(_0x490820,_0x5d3e29,_0x57af97){return _0x490820(_0x5d3e29,_0x57af97);},'hQLzb':_0x2c69a5(0xf1),'PUvLc':function(_0x2208ef,_0x2b7b4a){return _0x2208ef(_0x2b7b4a);},'lRgsQ':_0x2c69a5(0x163),'VfxqE':_0x2c69a5(0x117),'pRwWH':_0x2c69a5(0x14d),'owRIX':_0x2c69a5(0x18d),'maBTf':_0x2c69a5(0x1de),'IufES':'Shorthand\x20sort\x20order\x20(deprecated,\x20prefer\x20filters):\x20general\x20(default),\x20time_descending,\x20popularity_descending,\x20comment_descending,\x20collect_descending','TbFqb':'Optional\x20timeout\x20for\x20waiting\x20on\x20the\x20search\x20task\x20(default:\x20120000ms)','NgcLC':_0x2c69a5(0x18b),'XexMN':'Optional\x20number\x20of\x20note\x20details\x20to\x20collect.\x20When\x20provided,\x20after\x20collecting\x20the\x20search\x20list,\x20the\x20crawler\x20will\x20open\x20each\x20note\x20and\x20capture\x20detailed\x20information\x20(title,\x20content,\x20comments,\x20interactions,\x20etc.).','Urxmx':_0x2c69a5(0x13f)};_0x46c165[_0x2c69a5(0x1d9)]({'name':_0x2c69a5(0x136),'description':_0x2c69a5(0x178),'parameters':{'type':_0x2c69a5(0x118),'properties':{'keyword':{'type':_0x2c69a5(0x18d),'description':_0x48cdb9[_0x2c69a5(0x195)]},'targetCount':{'type':_0x48cdb9[_0x2c69a5(0x180)],'description':_0x48cdb9[_0x2c69a5(0x17b)],'default':0x19},'filters':{'type':_0x2c69a5(0x14f),'description':_0x2c69a5(0x19a),'items':{'type':_0x2c69a5(0x118),'properties':{'group':{'type':'string','description':'Filter\x20group\x20label\x20(e.g.\x20排序依据,\x20笔记类型)'},'option':{'type':_0x48cdb9['owRIX'],'description':_0x2c69a5(0x1cd)}},'required':['group',_0x48cdb9[_0x2c69a5(0xf6)]]}},'sort':{'type':_0x2c69a5(0x18d),'description':_0x48cdb9[_0x2c69a5(0x12a)],'default':_0x2c69a5(0x185)},'noteType':{'type':_0x48cdb9[_0x2c69a5(0x108)],'description':'Shorthand\x20note\x20type\x20filter\x20(deprecated,\x20prefer\x20filters):\x200\x20(all),\x201\x20(video),\x202\x20(image/text)','default':'0'},'runtimeId':{'type':_0x48cdb9['owRIX'],'description':_0x2c69a5(0x170)},'wait':{'type':_0x2c69a5(0x11c),'description':_0x2c69a5(0x1f5),'default':!0x0},'timeoutMs':{'type':'number','description':_0x48cdb9['TbFqb']},'pollIntervalMs':{'type':_0x2c69a5(0x117),'description':_0x48cdb9[_0x2c69a5(0x13a)]},'detailTargetCount':{'type':_0x2c69a5(0x117),'description':_0x48cdb9[_0x2c69a5(0x1cc)]},'randomizeOrder':{'type':_0x2c69a5(0x11c),'description':_0x2c69a5(0x187),'default':!0x0},'saveToFile':{'type':_0x2c69a5(0x18d),'description':'Optional\x20file\x20path\x20to\x20save\x20search\x20results\x20as\x20JSON\x20(e.g.,\x20./results.json\x20or\x20/absolute/path/results.json)'}},'required':[_0x48cdb9[_0x2c69a5(0x19c)]],'additionalProperties':!0x1},async 'execute'(_0x256a2e,_0x363919){const _0x2c25a1=_0x2c69a5;try{let _0x62f33c=Array[_0x2c25a1(0x1dd)](_0x363919[_0x2c25a1(0x1dc)])?_0x363919['filters']:[];if(_0x62f33c[_0x2c25a1(0x156)]===0x0){let _0x45e520={'general':'综合','time_descending':'最新','popularity_descending':_0x2c25a1(0x15b),'comment_descending':_0x48cdb9[_0x2c25a1(0x142)],'collect_descending':'最多收藏'},_0x124a68={0x0:'不限',0x1:'视频',0x2:'图文'},_0x1f7c38=_0x363919['sort']||_0x2c25a1(0x185),_0x166e0d=_0x363919[_0x2c25a1(0x1c4)]||'0';_0x1f7c38&&_0x48cdb9[_0x2c25a1(0x113)](_0x1f7c38,_0x48cdb9['rXpJx'])&&_0x62f33c[_0x2c25a1(0x1d5)]({'group':_0x48cdb9['BpkUq'],'option':_0x45e520[_0x1f7c38]||_0x1f7c38}),_0x166e0d&&_0x48cdb9[_0x2c25a1(0x113)](_0x166e0d,'0')&&_0x62f33c['push']({'group':_0x2c25a1(0xf5),'option':_0x124a68[_0x166e0d]||_0x166e0d});}let _0x37b6c8={'keyword':_0x363919['keyword'],'targetCount':_0x363919['targetCount']||0x19};_0x62f33c[_0x2c25a1(0x156)]>0x0&&(_0x37b6c8[_0x2c25a1(0x1dc)]=_0x62f33c),_0x48cdb9[_0x2c25a1(0x1ca)](_0x363919['detailTargetCount'],null)&&(_0x37b6c8[_0x2c25a1(0x137)]=_0x363919[_0x2c25a1(0x137)]),_0x48cdb9[_0x2c25a1(0x1ca)](_0x363919['randomizeOrder'],null)&&(_0x37b6c8['randomizeOrder']=_0x363919[_0x2c25a1(0x146)]);let _0x2384d4=await d(_0x46c165,{'toolNames':[_0x2c25a1(0x158),_0x48cdb9[_0x2c25a1(0x1ad)],'xiaohongshu_xiaohongshu_home_search_notes',_0x2c25a1(0x1a9)],'input':_0x37b6c8,'runtimeId':_0x363919[_0x2c25a1(0x1d2)],'wait':_0x363919['wait']!==!0x1,'timeoutMs':_0x363919[_0x2c25a1(0x109)]||0x1d4c0,'pollIntervalMs':_0x363919['pollIntervalMs']});if(_0x363919[_0x2c25a1(0x1a0)]){let _0x372059=_0x581792[_0x2c25a1(0xfe)](_0x363919[_0x2c25a1(0x1a0)])?_0x363919[_0x2c25a1(0x1a0)]:_0x581792[_0x2c25a1(0x159)](process[_0x2c25a1(0x133)](),_0x363919[_0x2c25a1(0x1a0)]),_0x55b677=_0x581792[_0x2c25a1(0x166)](_0x372059);await _0x48cdb9['BcHNo'](_0x36cf41,_0x55b677,{'recursive':!0x0});let _0x45fb76=z(_0x2384d4);return await _0x5c515b(_0x372059,JSON[_0x2c25a1(0x1b6)](_0x45fb76,null,0x2),_0x48cdb9[_0x2c25a1(0x134)]),i({..._0x2384d4,'savedToFile':_0x372059,'savedFormat':'notes_only','savedCount':_0x45fb76[_0x2c25a1(0x156)]});}return i(_0x2384d4);}catch(_0x922745){return i({'success':!0x1,'error':_0x48cdb9[_0x2c25a1(0x160)](String,_0x922745?.[_0x2c25a1(0x132)]||_0x922745)});}}});}import{writeFile as _0x163b54,mkdir as _0x4332bd}from'fs/promises';import _0x3cd407 from'path';function k(_0x3a5a5c){const _0x648c92=_0x5e0c,_0x31852d={'WnheJ':function(_0x5b8129,_0x3a636d){return _0x5b8129===_0x3a636d;},'uQwYM':function(_0x4b6597,_0x1c5247){return _0x4b6597==_0x1c5247;},'dRXzv':_0x648c92(0x118),'uIWXr':function(_0x1d83b0,_0x3db8a3){return _0x1d83b0 in _0x3db8a3;},'pkcEk':_0x648c92(0x12f),'mcrIM':_0x648c92(0xf3),'qqJMJ':_0x648c92(0x152),'XcImJ':'note_card.interact_info.collected_count','qfXZd':'收藏数','kpmXh':_0x648c92(0x122),'nqTVQ':function(_0x245692,_0x374c3c,_0x42f763,_0x201f0f){return _0x245692(_0x374c3c,_0x42f763,_0x201f0f);},'TcEsf':function(_0x1ddfdb,_0xe18228){return _0x1ddfdb(_0xe18228);},'atnQW':_0x648c92(0x1bd),'FMFTo':_0x648c92(0x14f),'SgQat':_0x648c92(0x18d),'LUXAr':_0x648c92(0x123),'HguJh':_0x648c92(0x1a3),'kzMFS':_0x648c92(0x141)};_0x3a5a5c[_0x648c92(0x1d9)]({'name':_0x648c92(0x115),'description':_0x31852d['atnQW'],'parameters':{'type':_0x648c92(0x118),'properties':{'data':{'type':_0x31852d[_0x648c92(0x1e1)],'description':_0x648c92(0x154),'items':{'type':_0x31852d[_0x648c92(0x1a7)]}},'filePath':{'type':_0x31852d[_0x648c92(0x1b0)],'description':_0x31852d[_0x648c92(0x17a)]},'columns':{'type':_0x31852d['FMFTo'],'description':_0x648c92(0x1b9),'items':{'oneOf':[{'type':'string'},{'type':_0x648c92(0x118),'properties':{'field':{'type':_0x31852d['SgQat']},'header':{'type':_0x648c92(0x18d)}},'required':[_0x648c92(0x172)]}]}}},'required':[_0x31852d[_0x648c92(0x112)],_0x31852d[_0x648c92(0x129)]],'additionalProperties':!0x1},async 'execute'(_0x410ef2,_0x8977af){const _0x3cbef9=_0x648c92,_0xb351={'VIaJG':function(_0xd4d459,_0x51a33b){return _0xd4d459+_0x51a33b;}};try{let _0x4d5c48=function(_0x2dc950,_0x5335b9){const _0x2da1e6=_0x5e0c;let _0x3fba1a=_0x2dc950;for(let _0x15a469 of _0x5335b9[_0x2da1e6(0x165)]('.')){if(_0x3fba1a==null)return'';Array['isArray'](_0x3fba1a)&&/^\d+$/[_0x2da1e6(0x17f)](_0x15a469)?_0x3fba1a=_0x3fba1a[Number(_0x15a469)]:_0x3fba1a=_0x3fba1a[_0x15a469];}return _0x3fba1a;},_0x14b77f=function(_0x64c0fb){const _0x4c4d5d=_0x5e0c;if(_0x64c0fb==null)return'';let _0xa0a458=typeof _0x64c0fb==_0x4c4d5d(0x118)?JSON[_0x4c4d5d(0x1b6)](_0x64c0fb):String(_0x64c0fb);return _0xa0a458[_0x4c4d5d(0x148)](',')||_0xa0a458[_0x4c4d5d(0x148)]('\x22')||_0xa0a458[_0x4c4d5d(0x148)]('\x0a')||_0xa0a458[_0x4c4d5d(0x148)]('\x0d')?_0xb351[_0x4c4d5d(0x1bf)]('\x22'+_0xa0a458[_0x4c4d5d(0x17c)](/"/g,'\x22\x22'),'\x22'):_0xa0a458;};var _0x4582f4=_0x4d5c48,_0x35456f=_0x14b77f;let _0x4c58cd=_0x8977af['data'];if(!Array[_0x3cbef9(0x1dd)](_0x4c58cd)||_0x31852d[_0x3cbef9(0x100)](_0x4c58cd[_0x3cbef9(0x156)],0x0))return i({'success':!0x1,'error':_0x3cbef9(0x1be)});let _0x5bcc71=[];if(Array[_0x3cbef9(0x1dd)](_0x8977af[_0x3cbef9(0x125)])&&_0x8977af[_0x3cbef9(0x125)][_0x3cbef9(0x156)]>0x0){for(let _0x5b8b98 of _0x8977af[_0x3cbef9(0x125)])typeof _0x5b8b98=='string'?_0x5bcc71[_0x3cbef9(0x1d5)]({'field':_0x5b8b98,'header':_0x5b8b98}):_0x5b8b98&&_0x31852d['uQwYM'](typeof _0x5b8b98,_0x31852d['dRXzv'])&&_0x5b8b98[_0x3cbef9(0x172)]&&_0x5bcc71[_0x3cbef9(0x1d5)]({'field':_0x5b8b98[_0x3cbef9(0x172)],'header':_0x5b8b98[_0x3cbef9(0x15c)]||_0x5b8b98[_0x3cbef9(0x172)]});}else{if(_0x4c58cd[0x0]&&_0x31852d['uIWXr'](_0x31852d['pkcEk'],_0x4c58cd[0x0]))_0x5bcc71[_0x3cbef9(0x1d5)]({'field':'id','header':_0x31852d['mcrIM']},{'field':_0x3cbef9(0x131),'header':'标题'},{'field':_0x3cbef9(0x184),'header':'作者'},{'field':'note_card.interact_info.liked_count','header':_0x31852d[_0x3cbef9(0x1eb)]},{'field':_0x31852d[_0x3cbef9(0x1e3)],'header':_0x31852d['qfXZd']},{'field':_0x3cbef9(0x143),'header':_0x3cbef9(0x196)},{'field':_0x3cbef9(0x1a4),'header':_0x3cbef9(0x1d4)},{'field':_0x31852d[_0x3cbef9(0x138)],'header':_0x3cbef9(0x1f1)},{'field':_0x3cbef9(0xfc),'header':_0x3cbef9(0xf5)});else{for(let _0x3a9b3d of Object[_0x3cbef9(0x192)](_0x4c58cd[0x0]))_0x5bcc71[_0x3cbef9(0x1d5)]({'field':_0x3a9b3d,'header':_0x3a9b3d});}}let _0x38e437=_0x5bcc71[_0x3cbef9(0x110)](_0x17f10f=>_0x14b77f(_0x17f10f[_0x3cbef9(0x15c)]))[_0x3cbef9(0x104)](','),_0x2d6e41=_0x4c58cd[_0x3cbef9(0x110)](_0x34637f=>_0x5bcc71[_0x3cbef9(0x110)](_0x26cd18=>_0x14b77f(_0x4d5c48(_0x34637f,_0x26cd18[_0x3cbef9(0x172)])))[_0x3cbef9(0x104)](',')),_0x1178de='\ufeff'+[_0x38e437,..._0x2d6e41]['join']('\x0a'),_0x5ef656=_0x3cd407[_0x3cbef9(0x166)](_0x8977af[_0x3cbef9(0x141)]);return await _0x4332bd(_0x5ef656,{'recursive':!0x0}),await _0x31852d['nqTVQ'](_0x163b54,_0x8977af['filePath'],_0x1178de,'utf-8'),_0x31852d[_0x3cbef9(0x1df)](i,{'success':!0x0,'filePath':_0x8977af[_0x3cbef9(0x141)],'rowCount':_0x4c58cd[_0x3cbef9(0x156)],'columnCount':_0x5bcc71[_0x3cbef9(0x156)],'columns':_0x5bcc71[_0x3cbef9(0x110)](_0x352f89=>_0x352f89[_0x3cbef9(0x15c)])});}catch(_0x2a2e46){return i({'success':!0x1,'error':String(_0x2a2e46?.['message']||_0x2a2e46)});}}});}import{writeFile as _0x2ae868,mkdir as _0x58e021}from'fs/promises';import _0xfae3d from'path';function H(_0x25aa28){const _0x3c2de4=_0x5e0c;let _0x3056bd=Array[_0x3c2de4(0x1dd)](_0x25aa28?.[_0x3c2de4(0x190)]?.[_0x3c2de4(0x19f)]?.[_0x3c2de4(0x11d)])?_0x25aa28[_0x3c2de4(0x190)][_0x3c2de4(0x19f)]['steps']:Array[_0x3c2de4(0x1dd)](_0x25aa28?.[_0x3c2de4(0x11d)])?_0x25aa28[_0x3c2de4(0x11d)]:[],_0x1d5b4f=_0x3056bd[_0x3c2de4(0x1e5)](_0x1b37e6=>_0x1b37e6?.[_0x3c2de4(0x1a2)]==='s3'||_0x1b37e6?.[_0x3c2de4(0xff)]===_0x3c2de4(0x17e)),_0x1fa619=_0x3056bd[_0x3c2de4(0x1e5)](_0x262fb4=>_0x262fb4?.[_0x3c2de4(0x1a2)]==='s5'||_0x262fb4?.[_0x3c2de4(0xff)]===_0x3c2de4(0x11a));return{'detail':_0x1d5b4f?.[_0x3c2de4(0x19f)]?.[_0x3c2de4(0x120)]?.[_0x3c2de4(0x1a3)]??null,'comments':_0x1fa619?.[_0x3c2de4(0x19f)]?.[_0x3c2de4(0x120)]?.[_0x3c2de4(0x1a3)]??null};}function N(_0x2c3d93){const _0x54f1b0=_0x5e0c,_0x54bc1c={'Dyeod':function(_0x76e9b,_0xae3279){return _0x76e9b!=_0xae3279;},'ynUuk':function(_0x10339f,_0x316478,_0x5a0363){return _0x10339f(_0x316478,_0x5a0363);},'rsftX':function(_0x13a4f4,_0x55358a,_0x244ab7,_0x25d67c){return _0x13a4f4(_0x55358a,_0x244ab7,_0x25d67c);},'NUaph':function(_0x5153ea,_0x339d77){return _0x5153ea(_0x339d77);},'QhvFa':function(_0x3342b2,_0x264ed0){return _0x3342b2(_0x264ed0);},'vtpPf':'taobao_collect_product','ccPXR':_0x54f1b0(0x18d),'yWukr':_0x54f1b0(0x11c),'ckbPA':_0x54f1b0(0x175),'ktcRR':_0x54f1b0(0x198),'VfwVr':'Target\x20number\x20of\x20comments\x20to\x20collect\x20(default:\x2050)','uYknH':'Optional\x20file\x20path\x20to\x20save\x20the\x20collected\x20product\x20data\x20as\x20JSON','pHmdU':_0x54f1b0(0x14e)};_0x2c3d93[_0x54f1b0(0x1d9)]({'name':_0x54bc1c[_0x54f1b0(0x186)],'description':_0x54f1b0(0x12c),'parameters':{'type':_0x54f1b0(0x118),'properties':{'url':{'type':_0x54bc1c['ccPXR'],'description':'Taobao\x20or\x20Tmall\x20product\x20detail\x20page\x20URL\x20(e.g.\x20https://detail.tmall.com/item.htm?id=xxx\x20or\x20https://item.taobao.com/item.htm?id=xxx)'},'runtimeId':{'type':_0x54f1b0(0x18d),'description':_0x54f1b0(0x150)},'wait':{'type':_0x54bc1c[_0x54f1b0(0x1a5)],'description':_0x54bc1c['ckbPA'],'default':!0x0},'timeoutMs':{'type':_0x54f1b0(0x117),'description':_0x54bc1c[_0x54f1b0(0x1d8)]},'pollIntervalMs':{'type':'number','description':'Optional\x20polling\x20interval\x20in\x20milliseconds'},'targetCommentCount':{'type':'number','description':_0x54bc1c['VfwVr'],'default':0x32},'saveToFile':{'type':_0x54f1b0(0x18d),'description':_0x54bc1c['uYknH']}},'required':[_0x54bc1c[_0x54f1b0(0x124)]],'additionalProperties':!0x1},async 'execute'(_0x35815b,_0x72b8a){const _0x3aa20e=_0x54f1b0;try{let _0x5d3cf1={'url':_0x72b8a[_0x3aa20e(0x14e)],..._0x54bc1c[_0x3aa20e(0x188)](_0x72b8a[_0x3aa20e(0x19e)],null)&&{'targetCommentCount':_0x72b8a[_0x3aa20e(0x19e)]}},_0x3f5151=await _0x54bc1c[_0x3aa20e(0x16a)](d,_0x2c3d93,{'toolNames':['taobao_taobao_web_collect_product_data',_0x3aa20e(0x1d6)],'input':_0x5d3cf1,'runtimeId':_0x72b8a[_0x3aa20e(0x1d2)],'wait':_0x72b8a[_0x3aa20e(0x161)]!==!0x1,'timeoutMs':_0x72b8a['timeoutMs']||0x2bf20,'pollIntervalMs':_0x72b8a[_0x3aa20e(0x16f)]});if(_0x72b8a[_0x3aa20e(0x1a0)]){let _0x55fa70=_0xfae3d[_0x3aa20e(0xfe)](_0x72b8a['saveToFile'])?_0x72b8a['saveToFile']:_0xfae3d[_0x3aa20e(0x159)](process['cwd'](),_0x72b8a[_0x3aa20e(0x1a0)]),_0x1ab2c7=_0xfae3d[_0x3aa20e(0x166)](_0x55fa70);await _0x58e021(_0x1ab2c7,{'recursive':!0x0});let _0x29a7c9=H(_0x3f5151);return await _0x54bc1c['rsftX'](_0x2ae868,_0x55fa70,JSON[_0x3aa20e(0x1b6)](_0x29a7c9,null,0x2),_0x3aa20e(0xf1)),i({..._0x3f5151,'savedToFile':_0x55fa70,'savedFormat':_0x3aa20e(0x1e4)});}return _0x54bc1c[_0x3aa20e(0x155)](i,_0x3f5151);}catch(_0x58d319){return _0x54bc1c[_0x3aa20e(0xfd)](i,{'success':!0x1,'error':String(_0x58d319?.[_0x3aa20e(0x132)]||_0x58d319)});}}});}function V(_0x4c5d50){const _0x32d2fb=_0x5e0c,_0x5575b1={'oKoWS':function(_0xcf9d47,_0x3e7249){return _0xcf9d47(_0x3e7249);}};C(_0x4c5d50),_0x5575b1[_0x32d2fb(0x147)](S,_0x4c5d50),M(_0x4c5d50),O(_0x4c5d50),k(_0x4c5d50),N(_0x4c5d50);}export{V as default};
|
package/install.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from "fs";
|
|
2
|
+
import { spawnSync } from "child_process";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
|
+
|
|
6
|
+
const THIS_FILE = fileURLToPath(import.meta.url);
|
|
7
|
+
const PLUGIN_ROOT = path.dirname(THIS_FILE);
|
|
8
|
+
const BUNDLED_RELAY_ROOT = path.join(PLUGIN_ROOT, "bundled-relay");
|
|
9
|
+
const BUNDLED_RELAY_PACKAGE_JSON = path.join(BUNDLED_RELAY_ROOT, "package.json");
|
|
10
|
+
const PLAYWRIGHT_CORE_PACKAGE_JSON = path.join(BUNDLED_RELAY_ROOT, "node_modules", "playwright-core", "package.json");
|
|
11
|
+
|
|
12
|
+
function fail(message) {
|
|
13
|
+
console.error(`[dabi-relay] ${message}`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (!existsSync(BUNDLED_RELAY_PACKAGE_JSON)) {
|
|
18
|
+
fail(`Missing ${BUNDLED_RELAY_PACKAGE_JSON}. Make sure you run this helper from the plugin dist directory.`);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (existsSync(PLAYWRIGHT_CORE_PACKAGE_JSON)) {
|
|
22
|
+
const installed = JSON.parse(readFileSync(PLAYWRIGHT_CORE_PACKAGE_JSON, "utf-8"));
|
|
23
|
+
console.log(`[dabi-relay] Bundled relay runtime already installed: playwright-core@${installed.version}`);
|
|
24
|
+
process.exit(0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const bundledPkg = JSON.parse(readFileSync(BUNDLED_RELAY_PACKAGE_JSON, "utf-8"));
|
|
28
|
+
const expectedVersion = bundledPkg.dependencies?.["playwright-core"];
|
|
29
|
+
console.log(`[dabi-relay] Installing bundled relay runtime dependencies${expectedVersion ? ` (playwright-core@${expectedVersion})` : ""}...`);
|
|
30
|
+
|
|
31
|
+
const npmCommand = process.platform === "win32" ? "npm.cmd" : "npm";
|
|
32
|
+
const result = spawnSync(npmCommand, ["install", "--omit=dev"], {
|
|
33
|
+
cwd: BUNDLED_RELAY_ROOT,
|
|
34
|
+
stdio: "inherit",
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
if (result.status !== 0) {
|
|
38
|
+
fail("Runtime dependency install failed. Ensure npm can reach the registry, then rerun `node install.mjs`.");
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (!existsSync(PLAYWRIGHT_CORE_PACKAGE_JSON)) {
|
|
42
|
+
fail("Runtime dependency install finished without playwright-core. Check npm output and retry.");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
console.log("[dabi-relay] Bundled relay runtime dependencies installed successfully.");
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "oc-browser-relay",
|
|
3
|
+
"name": "oc browser relay",
|
|
4
|
+
"description": "Expose a local ChromeAgent/Relay Tool API to OpenClaw as agent tools.",
|
|
5
|
+
"skills": ["./skills"],
|
|
6
|
+
"configSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"baseUrl": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"default": "http://localhost:51234",
|
|
13
|
+
"description": "Base URL for the local ChromeAgent Relay service"
|
|
14
|
+
},
|
|
15
|
+
"relayPort": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"default": 51234,
|
|
18
|
+
"minimum": 1,
|
|
19
|
+
"description": "Port used when auto-starting the relay process"
|
|
20
|
+
},
|
|
21
|
+
"defaultPollIntervalMs": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"default": 1000,
|
|
24
|
+
"minimum": 200,
|
|
25
|
+
"description": "Polling interval for action tasks"
|
|
26
|
+
},
|
|
27
|
+
"defaultTimeoutMs": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"default": 30000,
|
|
30
|
+
"minimum": 1000,
|
|
31
|
+
"description": "Default timeout when waiting for action tasks"
|
|
32
|
+
},
|
|
33
|
+
"autoStart": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": true,
|
|
36
|
+
"description": "Automatically start the local relay process when the plugin is called and the relay is not healthy"
|
|
37
|
+
},
|
|
38
|
+
"preferBundledRelay": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": true,
|
|
41
|
+
"description": "Prefer the relay bundled inside the OpenClaw plugin package"
|
|
42
|
+
},
|
|
43
|
+
"relayCommand": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Optional external command used to start the relay process. When omitted and preferBundledRelay=true, the bundled relay is used"
|
|
46
|
+
},
|
|
47
|
+
"relayArgs": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"description": "Optional arguments passed to the external relay start command"
|
|
53
|
+
},
|
|
54
|
+
"relayCwd": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Working directory where the external relay start command is executed"
|
|
57
|
+
},
|
|
58
|
+
"relayEnv": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"description": "Optional environment variables for the relay process"
|
|
64
|
+
},
|
|
65
|
+
"startupTimeoutMs": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"default": 15000,
|
|
68
|
+
"minimum": 1000,
|
|
69
|
+
"description": "Maximum time to wait for the relay health check to pass after auto-start"
|
|
70
|
+
},
|
|
71
|
+
"startupPollIntervalMs": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"default": 500,
|
|
74
|
+
"minimum": 100,
|
|
75
|
+
"description": "Polling interval while waiting for the relay to become healthy after auto-start"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|