@wenathlan/saddle 1.8.17 → 2.0.2
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/Dockerfile +1339 -0
- package/README.md +68 -22
- package/alternatives.ts +1218 -0
- package/biome.json +153 -0
- package/boards.json +1517 -0
- package/compute.ts +3144 -0
- package/cores.json +1801 -0
- package/dist/acquisition.d.ts +359 -0
- package/dist/acquisition.d.ts.map +1 -0
- package/dist/acquisition.js +629 -0
- package/dist/acquisition.js.map +1 -0
- package/dist/alternatives.d.ts +509 -0
- package/dist/alternatives.d.ts.map +1 -0
- package/dist/alternatives.js +951 -0
- package/dist/alternatives.js.map +1 -0
- package/dist/automation.d.ts +426 -0
- package/dist/automation.d.ts.map +1 -0
- package/dist/automation.js +561 -0
- package/dist/automation.js.map +1 -0
- package/dist/browser.d.ts +562 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +1057 -0
- package/dist/browser.js.map +1 -0
- package/dist/capacitor.config.d.ts +13 -0
- package/dist/capacitor.config.d.ts.map +1 -0
- package/dist/capacitor.config.js +26 -0
- package/dist/capacitor.config.js.map +1 -0
- package/dist/cli.d.ts +17 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +111 -0
- package/dist/cli.js.map +1 -0
- package/dist/communication.d.ts +192 -0
- package/dist/communication.d.ts.map +1 -0
- package/dist/communication.js +418 -0
- package/dist/communication.js.map +1 -0
- package/dist/compute.d.ts +1161 -0
- package/dist/compute.d.ts.map +1 -0
- package/dist/compute.js +2273 -0
- package/dist/compute.js.map +1 -0
- package/dist/distribution.d.ts +529 -0
- package/dist/distribution.d.ts.map +1 -0
- package/dist/distribution.js +811 -0
- package/dist/distribution.js.map +1 -0
- package/dist/execution.d.ts +530 -0
- package/dist/execution.d.ts.map +1 -0
- package/dist/execution.js +761 -0
- package/dist/execution.js.map +1 -0
- package/dist/format.d.ts +19 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +60 -0
- package/dist/format.js.map +1 -0
- package/dist/foundation.d.ts +176 -0
- package/dist/foundation.d.ts.map +1 -0
- package/dist/foundation.js +309 -0
- package/dist/foundation.js.map +1 -0
- package/dist/index.d.ts +733 -122
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1018 -122
- package/dist/index.js.map +1 -1
- package/dist/integration.d.ts +236 -0
- package/dist/integration.d.ts.map +1 -0
- package/dist/integration.js +236 -0
- package/dist/integration.js.map +1 -0
- package/dist/intelligence.d.ts +94 -0
- package/dist/intelligence.d.ts.map +1 -0
- package/dist/intelligence.js +145 -0
- package/dist/intelligence.js.map +1 -0
- package/dist/isolation.d.ts +129 -0
- package/dist/isolation.d.ts.map +1 -0
- package/dist/isolation.js +96 -0
- package/dist/isolation.js.map +1 -0
- package/dist/media.d.ts +344 -0
- package/dist/media.d.ts.map +1 -0
- package/dist/media.js +986 -0
- package/dist/media.js.map +1 -0
- package/dist/modes.d.ts +359 -0
- package/dist/modes.d.ts.map +1 -0
- package/dist/modes.js +134 -0
- package/dist/modes.js.map +1 -0
- package/dist/{library/public.d.ts → operations.d.ts} +15 -1
- package/dist/operations.d.ts.map +1 -0
- package/dist/{library/public.js → operations.js} +18 -7
- package/dist/operations.js.map +1 -0
- package/dist/orchestrator.d.ts +1339 -0
- package/dist/orchestrator.d.ts.map +1 -0
- package/dist/orchestrator.js +4308 -0
- package/dist/orchestrator.js.map +1 -0
- package/dist/performance.d.ts +416 -0
- package/dist/performance.d.ts.map +1 -0
- package/dist/performance.js +827 -0
- package/dist/performance.js.map +1 -0
- package/dist/quantum.d.ts +810 -0
- package/dist/quantum.d.ts.map +1 -0
- package/dist/quantum.js +2073 -0
- package/dist/quantum.js.map +1 -0
- package/dist/render.d.ts +381 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +1073 -0
- package/dist/render.js.map +1 -0
- package/dist/scheduler.d.ts +596 -0
- package/dist/scheduler.d.ts.map +1 -0
- package/dist/scheduler.js +1259 -0
- package/dist/scheduler.js.map +1 -0
- package/dist/security.d.ts +501 -0
- package/dist/security.d.ts.map +1 -0
- package/dist/security.js +1170 -0
- package/dist/security.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/{server/node.js → server.js} +16 -2
- package/dist/server.js.map +1 -0
- package/dist/tiers.d.ts +1002 -0
- package/dist/tiers.d.ts.map +1 -0
- package/dist/tiers.js +2165 -0
- package/dist/tiers.js.map +1 -0
- package/dist/virtual.d.ts +641 -0
- package/dist/virtual.d.ts.map +1 -0
- package/dist/virtual.js +1285 -0
- package/dist/virtual.js.map +1 -0
- package/dist/virtualcpu.d.ts +316 -0
- package/dist/virtualcpu.d.ts.map +1 -0
- package/dist/virtualcpu.js +1180 -0
- package/dist/virtualcpu.js.map +1 -0
- package/dist/virtualgpu.d.ts +345 -0
- package/dist/virtualgpu.d.ts.map +1 -0
- package/dist/virtualgpu.js +1000 -0
- package/dist/virtualgpu.js.map +1 -0
- package/dist/virtualization.d.ts +607 -0
- package/dist/virtualization.d.ts.map +1 -0
- package/dist/virtualization.js +1187 -0
- package/dist/virtualization.js.map +1 -0
- package/dist/virtualmemory.d.ts +818 -0
- package/dist/virtualmemory.d.ts.map +1 -0
- package/dist/virtualmemory.js +1796 -0
- package/dist/virtualmemory.js.map +1 -0
- package/dist/webscrape.d.ts +720 -0
- package/dist/webscrape.d.ts.map +1 -0
- package/dist/webscrape.js +2697 -0
- package/dist/webscrape.js.map +1 -0
- package/docker.config +769 -0
- package/docs/CONVERSA.txt +1523 -0
- package/docs/alternatives.md +499 -0
- package/docs/architecture-1.8.19.md +76 -0
- package/docs/architecture-1.8.19.mmd +33 -0
- package/docs/architecture-1.8.19.png +0 -0
- package/docs/architecture.md +355 -0
- package/docs/artifactavailability.md +6 -0
- package/docs/brancharchive-2026-08-18.md +18 -0
- package/docs/browser.md +7 -0
- package/docs/consolidation.md +70 -0
- package/docs/e2ugh-engine.md +528 -0
- package/{dist/examples/localjob.js → docs/example-localjob.ts} +3 -3
- package/{dist/examples/publicapi.js → docs/example-publicapi.ts} +2 -2
- package/docs/hardware.md +342 -0
- package/docs/optimization.md +126 -0
- package/docs/performance.md +499 -0
- package/docs/planning.1.8.18.md +94 -0
- package/docs/planning.1.8.19.md +49 -0
- package/docs/releasenotes-1.8.17.md +6 -0
- package/docs/releasenotes-1.8.18.md +32 -0
- package/docs/releasenotes-1.8.19.md +35 -0
- package/docs/research-1.8.18-isolation.md +43 -0
- package/docs/research-1.8.19-virtual-browser.md +27 -0
- package/docs/saddle.archive.1.8.17.tar.gz.gpg +0 -0
- package/docs/security.md +454 -0
- package/docs/todo-1.8.16.md +56 -1
- package/docs/todo-1.8.18.md +164 -0
- package/docs/todo-1.8.19.md +241 -0
- package/docs/viability.md +777 -0
- package/docs/virtualization.md +335 -0
- package/docs/web-duplicatecleanup.md +9 -0
- package/docs/web-ideas.md +106 -0
- package/docs/workflowimprovements-2026-08-19.md +70 -0
- package/gpumonitor.cpp +1543 -0
- package/gpus.json +2408 -0
- package/index.ts +1478 -0
- package/media.ts +1337 -0
- package/mttg.config +1549 -0
- package/orchestrator.ts +5462 -0
- package/package.json +304 -55
- package/passage.config +1331 -0
- package/performance.ts +1049 -0
- package/processors.json +2217 -0
- package/qemu.config +1062 -0
- package/qemubridge.py +1340 -0
- package/quantum.ts +2393 -0
- package/render.ts +1325 -0
- package/scheduler.ts +1600 -0
- package/security.ts +1449 -0
- package/tiers.ts +2871 -0
- package/tsconfig.json +29 -0
- package/virtualcpu.ts +1273 -0
- package/virtualgpu.ts +1181 -0
- package/virtualhardware.c +1011 -0
- package/virtualhardware.json +739 -0
- package/virtualization.ts +1628 -0
- package/virtualizationcore.cpp +4635 -0
- package/virtualmemory.ts +2303 -0
- package/vm.config.json +1910 -0
- package/{extension → web/extension}/manifest.json +1 -1
- package/web/readme.md +382 -0
- package/web/tsconfig.json +25 -0
- package/dist/adapters/forge.d.ts +0 -17
- package/dist/adapters/forge.d.ts.map +0 -1
- package/dist/adapters/forge.js +0 -19
- package/dist/adapters/forge.js.map +0 -1
- package/dist/adapters/forgejo.d.ts +0 -49
- package/dist/adapters/forgejo.d.ts.map +0 -1
- package/dist/adapters/forgejo.js +0 -8
- package/dist/adapters/forgejo.js.map +0 -1
- package/dist/adapters/github.d.ts +0 -12
- package/dist/adapters/github.d.ts.map +0 -1
- package/dist/adapters/github.js +0 -20
- package/dist/adapters/github.js.map +0 -1
- package/dist/adapters/gitlab.d.ts +0 -17
- package/dist/adapters/gitlab.d.ts.map +0 -1
- package/dist/adapters/gitlab.js +0 -10
- package/dist/adapters/gitlab.js.map +0 -1
- package/dist/adapters/huggingface.d.ts +0 -17
- package/dist/adapters/huggingface.d.ts.map +0 -1
- package/dist/adapters/huggingface.js +0 -6
- package/dist/adapters/huggingface.js.map +0 -1
- package/dist/adapters/socket.d.ts +0 -11
- package/dist/adapters/socket.d.ts.map +0 -1
- package/dist/adapters/socket.js +0 -17
- package/dist/adapters/socket.js.map +0 -1
- package/dist/adapters/transport.d.ts +0 -7
- package/dist/adapters/transport.d.ts.map +0 -1
- package/dist/adapters/transport.js +0 -36
- package/dist/adapters/transport.js.map +0 -1
- package/dist/ai/chunk.d.ts +0 -2
- package/dist/ai/chunk.d.ts.map +0 -1
- package/dist/ai/chunk.js +0 -36
- package/dist/ai/chunk.js.map +0 -1
- package/dist/ai/llmstxt.d.ts +0 -6
- package/dist/ai/llmstxt.d.ts.map +0 -1
- package/dist/ai/llmstxt.js +0 -12
- package/dist/ai/llmstxt.js.map +0 -1
- package/dist/ai/provenance.d.ts +0 -22
- package/dist/ai/provenance.d.ts.map +0 -1
- package/dist/ai/provenance.js +0 -25
- package/dist/ai/provenance.js.map +0 -1
- package/dist/ai/rag.d.ts +0 -26
- package/dist/ai/rag.d.ts.map +0 -1
- package/dist/ai/rag.js +0 -22
- package/dist/ai/rag.js.map +0 -1
- package/dist/ai/tokens.d.ts +0 -15
- package/dist/ai/tokens.d.ts.map +0 -1
- package/dist/ai/tokens.js +0 -9
- package/dist/ai/tokens.js.map +0 -1
- package/dist/api/auth.d.ts +0 -16
- package/dist/api/auth.d.ts.map +0 -1
- package/dist/api/auth.js +0 -19
- package/dist/api/auth.js.map +0 -1
- package/dist/api/contracts.d.ts +0 -28
- package/dist/api/contracts.d.ts.map +0 -1
- package/dist/api/contracts.js +0 -14
- package/dist/api/contracts.js.map +0 -1
- package/dist/api/control.d.ts +0 -10
- package/dist/api/control.d.ts.map +0 -1
- package/dist/api/control.js +0 -35
- package/dist/api/control.js.map +0 -1
- package/dist/api/http.d.ts +0 -7
- package/dist/api/http.d.ts.map +0 -1
- package/dist/api/http.js +0 -12
- package/dist/api/http.js.map +0 -1
- package/dist/api/rate.d.ts +0 -28
- package/dist/api/rate.d.ts.map +0 -1
- package/dist/api/rate.js +0 -36
- package/dist/api/rate.js.map +0 -1
- package/dist/api/security.d.ts +0 -12
- package/dist/api/security.d.ts.map +0 -1
- package/dist/api/security.js +0 -56
- package/dist/api/security.js.map +0 -1
- package/dist/api/service.d.ts +0 -5
- package/dist/api/service.d.ts.map +0 -1
- package/dist/api/service.js +0 -70
- package/dist/api/service.js.map +0 -1
- package/dist/apps/registry.d.ts +0 -33
- package/dist/apps/registry.d.ts.map +0 -1
- package/dist/apps/registry.js +0 -24
- package/dist/apps/registry.js.map +0 -1
- package/dist/binary/archive.d.ts +0 -27
- package/dist/binary/archive.d.ts.map +0 -1
- package/dist/binary/archive.js +0 -46
- package/dist/binary/archive.js.map +0 -1
- package/dist/binary/build.d.ts +0 -29
- package/dist/binary/build.d.ts.map +0 -1
- package/dist/binary/build.js +0 -17
- package/dist/binary/build.js.map +0 -1
- package/dist/binary/transform.d.ts +0 -70
- package/dist/binary/transform.d.ts.map +0 -1
- package/dist/binary/transform.js +0 -105
- package/dist/binary/transform.js.map +0 -1
- package/dist/bot/adapter.d.ts +0 -5
- package/dist/bot/adapter.d.ts.map +0 -1
- package/dist/bot/adapter.js +0 -11
- package/dist/bot/adapter.js.map +0 -1
- package/dist/bot/bot.d.ts +0 -28
- package/dist/bot/bot.d.ts.map +0 -1
- package/dist/bot/bot.js +0 -52
- package/dist/bot/bot.js.map +0 -1
- package/dist/bot/commands.d.ts +0 -8
- package/dist/bot/commands.d.ts.map +0 -1
- package/dist/bot/commands.js +0 -19
- package/dist/bot/commands.js.map +0 -1
- package/dist/bot/permissions.d.ts +0 -13
- package/dist/bot/permissions.d.ts.map +0 -1
- package/dist/bot/permissions.js +0 -16
- package/dist/bot/permissions.js.map +0 -1
- package/dist/browser/actions.d.ts +0 -33
- package/dist/browser/actions.d.ts.map +0 -1
- package/dist/browser/actions.js +0 -44
- package/dist/browser/actions.js.map +0 -1
- package/dist/browser/agent.d.ts +0 -21
- package/dist/browser/agent.d.ts.map +0 -1
- package/dist/browser/agent.js +0 -13
- package/dist/browser/agent.js.map +0 -1
- package/dist/browser/context.d.ts +0 -43
- package/dist/browser/context.d.ts.map +0 -1
- package/dist/browser/context.js +0 -54
- package/dist/browser/context.js.map +0 -1
- package/dist/browser/fingerprint.d.ts +0 -4
- package/dist/browser/fingerprint.d.ts.map +0 -1
- package/dist/browser/fingerprint.js +0 -12
- package/dist/browser/fingerprint.js.map +0 -1
- package/dist/browser/index.d.ts +0 -11
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.js +0 -11
- package/dist/browser/index.js.map +0 -1
- package/dist/browser/playwright.d.ts +0 -11
- package/dist/browser/playwright.d.ts.map +0 -1
- package/dist/browser/playwright.js +0 -24
- package/dist/browser/playwright.js.map +0 -1
- package/dist/browser/recorder.d.ts +0 -21
- package/dist/browser/recorder.d.ts.map +0 -1
- package/dist/browser/recorder.js +0 -58
- package/dist/browser/recorder.js.map +0 -1
- package/dist/browser/session.d.ts +0 -14
- package/dist/browser/session.d.ts.map +0 -1
- package/dist/browser/session.js +0 -21
- package/dist/browser/session.js.map +0 -1
- package/dist/browser/snapshot.d.ts +0 -69
- package/dist/browser/snapshot.d.ts.map +0 -1
- package/dist/browser/snapshot.js +0 -133
- package/dist/browser/snapshot.js.map +0 -1
- package/dist/captcha/contract.d.ts +0 -35
- package/dist/captcha/contract.d.ts.map +0 -1
- package/dist/captcha/contract.js +0 -17
- package/dist/captcha/contract.js.map +0 -1
- package/dist/captcha/evidence.d.ts +0 -10
- package/dist/captcha/evidence.d.ts.map +0 -1
- package/dist/captcha/evidence.js +0 -9
- package/dist/captcha/evidence.js.map +0 -1
- package/dist/captcha/guard.d.ts +0 -23
- package/dist/captcha/guard.d.ts.map +0 -1
- package/dist/captcha/guard.js +0 -12
- package/dist/captcha/guard.js.map +0 -1
- package/dist/cli/main.d.ts +0 -4
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -46
- package/dist/cli/main.js.map +0 -1
- package/dist/core/errors.d.ts +0 -84
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js +0 -54
- package/dist/core/errors.js.map +0 -1
- package/dist/core/events.d.ts +0 -9
- package/dist/core/events.d.ts.map +0 -1
- package/dist/core/events.js +0 -21
- package/dist/core/events.js.map +0 -1
- package/dist/core/hash.d.ts +0 -10
- package/dist/core/hash.d.ts.map +0 -1
- package/dist/core/hash.js +0 -82
- package/dist/core/hash.js.map +0 -1
- package/dist/core/ids.d.ts +0 -10
- package/dist/core/ids.d.ts.map +0 -1
- package/dist/core/ids.js +0 -15
- package/dist/core/ids.js.map +0 -1
- package/dist/delivery/manifest.d.ts +0 -35
- package/dist/delivery/manifest.d.ts.map +0 -1
- package/dist/delivery/manifest.js +0 -68
- package/dist/delivery/manifest.js.map +0 -1
- package/dist/deploy/index.d.ts +0 -6
- package/dist/deploy/index.d.ts.map +0 -1
- package/dist/deploy/index.js +0 -6
- package/dist/deploy/index.js.map +0 -1
- package/dist/dispatch/resumable.d.ts +0 -102
- package/dist/dispatch/resumable.d.ts.map +0 -1
- package/dist/dispatch/resumable.js +0 -64
- package/dist/dispatch/resumable.js.map +0 -1
- package/dist/dispatch/workflow.d.ts +0 -6
- package/dist/dispatch/workflow.d.ts.map +0 -1
- package/dist/dispatch/workflow.js +0 -37
- package/dist/dispatch/workflow.js.map +0 -1
- package/dist/domain/artifacts.d.ts +0 -12
- package/dist/domain/artifacts.d.ts.map +0 -1
- package/dist/domain/artifacts.js +0 -14
- package/dist/domain/artifacts.js.map +0 -1
- package/dist/domain/jobs.d.ts +0 -12
- package/dist/domain/jobs.d.ts.map +0 -1
- package/dist/domain/jobs.js +0 -20
- package/dist/domain/jobs.js.map +0 -1
- package/dist/domain/providers.d.ts +0 -10
- package/dist/domain/providers.d.ts.map +0 -1
- package/dist/domain/providers.js +0 -8
- package/dist/domain/providers.js.map +0 -1
- package/dist/domain/runtime.d.ts +0 -14
- package/dist/domain/runtime.d.ts.map +0 -1
- package/dist/domain/runtime.js +0 -10
- package/dist/domain/runtime.js.map +0 -1
- package/dist/domain/sessions.d.ts +0 -12
- package/dist/domain/sessions.d.ts.map +0 -1
- package/dist/domain/sessions.js +0 -57
- package/dist/domain/sessions.js.map +0 -1
- package/dist/examples/localjob.d.ts +0 -2
- package/dist/examples/localjob.d.ts.map +0 -1
- package/dist/examples/localjob.js.map +0 -1
- package/dist/examples/publicapi.d.ts +0 -2
- package/dist/examples/publicapi.d.ts.map +0 -1
- package/dist/examples/publicapi.js.map +0 -1
- package/dist/extension/build.d.ts +0 -9
- package/dist/extension/build.d.ts.map +0 -1
- package/dist/extension/build.js +0 -85
- package/dist/extension/build.js.map +0 -1
- package/dist/extension/content.d.ts +0 -6
- package/dist/extension/content.d.ts.map +0 -1
- package/dist/extension/content.js +0 -135
- package/dist/extension/content.js.map +0 -1
- package/dist/extension/index.d.ts +0 -7
- package/dist/extension/index.d.ts.map +0 -1
- package/dist/extension/index.js +0 -7
- package/dist/extension/index.js.map +0 -1
- package/dist/extension/pagebridge.d.ts +0 -6
- package/dist/extension/pagebridge.d.ts.map +0 -1
- package/dist/extension/pagebridge.js +0 -42
- package/dist/extension/pagebridge.js.map +0 -1
- package/dist/extension/permissions.d.ts +0 -26
- package/dist/extension/permissions.d.ts.map +0 -1
- package/dist/extension/permissions.js +0 -28
- package/dist/extension/permissions.js.map +0 -1
- package/dist/extension/popup.d.ts +0 -5
- package/dist/extension/popup.d.ts.map +0 -1
- package/dist/extension/popup.js +0 -26
- package/dist/extension/popup.js.map +0 -1
- package/dist/extension/protocol.d.ts +0 -58
- package/dist/extension/protocol.d.ts.map +0 -1
- package/dist/extension/protocol.js +0 -101
- package/dist/extension/protocol.js.map +0 -1
- package/dist/extension/serviceworker.d.ts +0 -25
- package/dist/extension/serviceworker.d.ts.map +0 -1
- package/dist/extension/serviceworker.js +0 -102
- package/dist/extension/serviceworker.js.map +0 -1
- package/dist/extension/worker.d.ts +0 -28
- package/dist/extension/worker.d.ts.map +0 -1
- package/dist/extension/worker.js +0 -22
- package/dist/extension/worker.js.map +0 -1
- package/dist/format/check.d.ts +0 -8
- package/dist/format/check.d.ts.map +0 -1
- package/dist/format/check.js +0 -38
- package/dist/format/check.js.map +0 -1
- package/dist/library/public.d.ts.map +0 -1
- package/dist/library/public.js.map +0 -1
- package/dist/mcp/browser.d.ts +0 -9
- package/dist/mcp/browser.d.ts.map +0 -1
- package/dist/mcp/browser.js +0 -13
- package/dist/mcp/browser.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -35
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -40
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/transport.d.ts +0 -7
- package/dist/mcp/transport.d.ts.map +0 -1
- package/dist/mcp/transport.js +0 -17
- package/dist/mcp/transport.js.map +0 -1
- package/dist/memory/bridge.d.ts +0 -14
- package/dist/memory/bridge.d.ts.map +0 -1
- package/dist/memory/bridge.js +0 -16
- package/dist/memory/bridge.js.map +0 -1
- package/dist/memory/engine.d.ts +0 -38
- package/dist/memory/engine.d.ts.map +0 -1
- package/dist/memory/engine.js +0 -109
- package/dist/memory/engine.js.map +0 -1
- package/dist/memory/modes.d.ts +0 -43
- package/dist/memory/modes.d.ts.map +0 -1
- package/dist/memory/modes.js +0 -66
- package/dist/memory/modes.js.map +0 -1
- package/dist/memory/objects.d.ts +0 -21
- package/dist/memory/objects.d.ts.map +0 -1
- package/dist/memory/objects.js +0 -20
- package/dist/memory/objects.js.map +0 -1
- package/dist/memory/planner.d.ts +0 -66
- package/dist/memory/planner.d.ts.map +0 -1
- package/dist/memory/planner.js +0 -108
- package/dist/memory/planner.js.map +0 -1
- package/dist/memory/targets.d.ts +0 -78
- package/dist/memory/targets.d.ts.map +0 -1
- package/dist/memory/targets.js +0 -29
- package/dist/memory/targets.js.map +0 -1
- package/dist/memory/transforms.d.ts +0 -19
- package/dist/memory/transforms.d.ts.map +0 -1
- package/dist/memory/transforms.js +0 -14
- package/dist/memory/transforms.js.map +0 -1
- package/dist/modes/matrix.d.ts +0 -23
- package/dist/modes/matrix.d.ts.map +0 -1
- package/dist/modes/matrix.js +0 -18
- package/dist/modes/matrix.js.map +0 -1
- package/dist/modes/modes.d.ts +0 -33
- package/dist/modes/modes.d.ts.map +0 -1
- package/dist/modes/modes.js +0 -15
- package/dist/modes/modes.js.map +0 -1
- package/dist/modes/resolve.d.ts +0 -96
- package/dist/modes/resolve.d.ts.map +0 -1
- package/dist/modes/resolve.js +0 -48
- package/dist/modes/resolve.js.map +0 -1
- package/dist/observability/metrics.d.ts +0 -14
- package/dist/observability/metrics.d.ts.map +0 -1
- package/dist/observability/metrics.js +0 -18
- package/dist/observability/metrics.js.map +0 -1
- package/dist/packager/manifest.d.ts +0 -66
- package/dist/packager/manifest.d.ts.map +0 -1
- package/dist/packager/manifest.js +0 -94
- package/dist/packager/manifest.js.map +0 -1
- package/dist/packager/publish.d.ts +0 -51
- package/dist/packager/publish.d.ts.map +0 -1
- package/dist/packager/publish.js +0 -18
- package/dist/packager/publish.js.map +0 -1
- package/dist/packager/targetcli.d.ts +0 -7
- package/dist/packager/targetcli.d.ts.map +0 -1
- package/dist/packager/targetcli.js +0 -22
- package/dist/packager/targetcli.js.map +0 -1
- package/dist/persistence/adapter.d.ts +0 -5
- package/dist/persistence/adapter.d.ts.map +0 -1
- package/dist/persistence/adapter.js +0 -11
- package/dist/persistence/adapter.js.map +0 -1
- package/dist/persistence/drizzle.d.ts +0 -2
- package/dist/persistence/drizzle.d.ts.map +0 -1
- package/dist/persistence/drizzle.js +0 -12
- package/dist/persistence/drizzle.js.map +0 -1
- package/dist/persistence/memory.d.ts +0 -2
- package/dist/persistence/memory.d.ts.map +0 -1
- package/dist/persistence/memory.js +0 -27
- package/dist/persistence/memory.js.map +0 -1
- package/dist/persistence/migrations.d.ts +0 -19
- package/dist/persistence/migrations.d.ts.map +0 -1
- package/dist/persistence/migrations.js +0 -13
- package/dist/persistence/migrations.js.map +0 -1
- package/dist/persistence/prisma.d.ts +0 -2
- package/dist/persistence/prisma.d.ts.map +0 -1
- package/dist/persistence/prisma.js +0 -25
- package/dist/persistence/prisma.js.map +0 -1
- package/dist/persistence/schema.d.ts +0 -63
- package/dist/persistence/schema.d.ts.map +0 -1
- package/dist/persistence/schema.js +0 -28
- package/dist/persistence/schema.js.map +0 -1
- package/dist/persistence/sql.d.ts +0 -3
- package/dist/persistence/sql.d.ts.map +0 -1
- package/dist/persistence/sql.js +0 -37
- package/dist/persistence/sql.js.map +0 -1
- package/dist/protocol/blocks.d.ts +0 -10
- package/dist/protocol/blocks.d.ts.map +0 -1
- package/dist/protocol/blocks.js +0 -26
- package/dist/protocol/blocks.js.map +0 -1
- package/dist/protocol/json.d.ts +0 -6
- package/dist/protocol/json.d.ts.map +0 -1
- package/dist/protocol/json.js +0 -6
- package/dist/protocol/json.js.map +0 -1
- package/dist/protocol/ndjson.d.ts +0 -3
- package/dist/protocol/ndjson.d.ts.map +0 -1
- package/dist/protocol/ndjson.js +0 -20
- package/dist/protocol/ndjson.js.map +0 -1
- package/dist/protocol/sse.d.ts +0 -7
- package/dist/protocol/sse.d.ts.map +0 -1
- package/dist/protocol/sse.js +0 -25
- package/dist/protocol/sse.js.map +0 -1
- package/dist/proxy/pool.d.ts +0 -9
- package/dist/proxy/pool.d.ts.map +0 -1
- package/dist/proxy/pool.js +0 -27
- package/dist/proxy/pool.js.map +0 -1
- package/dist/queue/idempotency.d.ts +0 -10
- package/dist/queue/idempotency.d.ts.map +0 -1
- package/dist/queue/idempotency.js +0 -13
- package/dist/queue/idempotency.js.map +0 -1
- package/dist/queue/persistent.d.ts +0 -14
- package/dist/queue/persistent.d.ts.map +0 -1
- package/dist/queue/persistent.js +0 -66
- package/dist/queue/persistent.js.map +0 -1
- package/dist/queue/queue.d.ts +0 -7
- package/dist/queue/queue.d.ts.map +0 -1
- package/dist/queue/queue.js +0 -55
- package/dist/queue/queue.js.map +0 -1
- package/dist/queue/saga.d.ts +0 -5
- package/dist/queue/saga.d.ts.map +0 -1
- package/dist/queue/saga.js +0 -20
- package/dist/queue/saga.js.map +0 -1
- package/dist/release/assets.d.ts +0 -144
- package/dist/release/assets.d.ts.map +0 -1
- package/dist/release/assets.js +0 -157
- package/dist/release/assets.js.map +0 -1
- package/dist/release/evidence.d.ts +0 -92
- package/dist/release/evidence.d.ts.map +0 -1
- package/dist/release/evidence.js +0 -148
- package/dist/release/evidence.js.map +0 -1
- package/dist/release/verify.d.ts +0 -12
- package/dist/release/verify.d.ts.map +0 -1
- package/dist/release/verify.js +0 -112
- package/dist/release/verify.js.map +0 -1
- package/dist/runners/chain.d.ts +0 -125
- package/dist/runners/chain.d.ts.map +0 -1
- package/dist/runners/chain.js +0 -95
- package/dist/runners/chain.js.map +0 -1
- package/dist/runners/health.d.ts +0 -36
- package/dist/runners/health.d.ts.map +0 -1
- package/dist/runners/health.js +0 -26
- package/dist/runners/health.js.map +0 -1
- package/dist/runners/heartbeat.d.ts +0 -23
- package/dist/runners/heartbeat.d.ts.map +0 -1
- package/dist/runners/heartbeat.js +0 -29
- package/dist/runners/heartbeat.js.map +0 -1
- package/dist/runners/inprocess.d.ts +0 -17
- package/dist/runners/inprocess.d.ts.map +0 -1
- package/dist/runners/inprocess.js +0 -20
- package/dist/runners/inprocess.js.map +0 -1
- package/dist/runners/scheduler.d.ts +0 -5
- package/dist/runners/scheduler.d.ts.map +0 -1
- package/dist/runners/scheduler.js +0 -19
- package/dist/runners/scheduler.js.map +0 -1
- package/dist/runtime/abort.d.ts +0 -8
- package/dist/runtime/abort.d.ts.map +0 -1
- package/dist/runtime/abort.js +0 -13
- package/dist/runtime/abort.js.map +0 -1
- package/dist/runtime/compatibility.d.ts +0 -37
- package/dist/runtime/compatibility.d.ts.map +0 -1
- package/dist/runtime/compatibility.js +0 -10
- package/dist/runtime/compatibility.js.map +0 -1
- package/dist/runtime/detect.d.ts +0 -13
- package/dist/runtime/detect.d.ts.map +0 -1
- package/dist/runtime/detect.js +0 -18
- package/dist/runtime/detect.js.map +0 -1
- package/dist/runtime/engine.d.ts +0 -20
- package/dist/runtime/engine.d.ts.map +0 -1
- package/dist/runtime/engine.js +0 -61
- package/dist/runtime/engine.js.map +0 -1
- package/dist/runtime/retry.d.ts +0 -19
- package/dist/runtime/retry.d.ts.map +0 -1
- package/dist/runtime/retry.js +0 -54
- package/dist/runtime/retry.js.map +0 -1
- package/dist/runtime/worker.d.ts +0 -10
- package/dist/runtime/worker.d.ts.map +0 -1
- package/dist/runtime/worker.js +0 -25
- package/dist/runtime/worker.js.map +0 -1
- package/dist/scrape/cache.d.ts +0 -45
- package/dist/scrape/cache.d.ts.map +0 -1
- package/dist/scrape/cache.js +0 -45
- package/dist/scrape/cache.js.map +0 -1
- package/dist/scrape/crawl.d.ts +0 -47
- package/dist/scrape/crawl.d.ts.map +0 -1
- package/dist/scrape/crawl.js +0 -114
- package/dist/scrape/crawl.js.map +0 -1
- package/dist/scrape/extract.d.ts +0 -63
- package/dist/scrape/extract.d.ts.map +0 -1
- package/dist/scrape/extract.js +0 -47
- package/dist/scrape/extract.js.map +0 -1
- package/dist/scrape/normalize.d.ts +0 -52
- package/dist/scrape/normalize.d.ts.map +0 -1
- package/dist/scrape/normalize.js +0 -102
- package/dist/scrape/normalize.js.map +0 -1
- package/dist/scrape/robots.d.ts +0 -37
- package/dist/scrape/robots.d.ts.map +0 -1
- package/dist/scrape/robots.js +0 -71
- package/dist/scrape/robots.js.map +0 -1
- package/dist/scrape/schema.d.ts +0 -23
- package/dist/scrape/schema.d.ts.map +0 -1
- package/dist/scrape/schema.js +0 -92
- package/dist/scrape/schema.js.map +0 -1
- package/dist/scrape/scraper.d.ts +0 -6
- package/dist/scrape/scraper.d.ts.map +0 -1
- package/dist/scrape/scraper.js +0 -46
- package/dist/scrape/scraper.js.map +0 -1
- package/dist/scrape/semantic.d.ts +0 -25
- package/dist/scrape/semantic.d.ts.map +0 -1
- package/dist/scrape/semantic.js +0 -27
- package/dist/scrape/semantic.js.map +0 -1
- package/dist/server/node.d.ts +0 -7
- package/dist/server/node.d.ts.map +0 -1
- package/dist/server/node.js.map +0 -1
- package/dist/sessions/file.d.ts +0 -25
- package/dist/sessions/file.d.ts.map +0 -1
- package/dist/sessions/file.js +0 -13
- package/dist/sessions/file.js.map +0 -1
- package/dist/sessions/replay.d.ts +0 -9
- package/dist/sessions/replay.d.ts.map +0 -1
- package/dist/sessions/replay.js +0 -70
- package/dist/sessions/replay.js.map +0 -1
- package/dist/sessions/store.d.ts +0 -25
- package/dist/sessions/store.d.ts.map +0 -1
- package/dist/sessions/store.js +0 -13
- package/dist/sessions/store.js.map +0 -1
- package/dist/storage/adapter.d.ts +0 -5
- package/dist/storage/adapter.d.ts.map +0 -1
- package/dist/storage/adapter.js +0 -11
- package/dist/storage/adapter.js.map +0 -1
- package/dist/storage/cache.d.ts +0 -23
- package/dist/storage/cache.d.ts.map +0 -1
- package/dist/storage/cache.js +0 -79
- package/dist/storage/cache.js.map +0 -1
- package/dist/storage/checksum.d.ts +0 -3
- package/dist/storage/checksum.d.ts.map +0 -1
- package/dist/storage/checksum.js +0 -19
- package/dist/storage/checksum.js.map +0 -1
- package/dist/storage/chunked.d.ts +0 -21
- package/dist/storage/chunked.d.ts.map +0 -1
- package/dist/storage/chunked.js +0 -67
- package/dist/storage/chunked.js.map +0 -1
- package/dist/storage/content.d.ts +0 -24
- package/dist/storage/content.d.ts.map +0 -1
- package/dist/storage/content.js +0 -44
- package/dist/storage/content.js.map +0 -1
- package/dist/storage/filehosting.d.ts +0 -2
- package/dist/storage/filehosting.d.ts.map +0 -1
- package/dist/storage/filehosting.js +0 -24
- package/dist/storage/filehosting.js.map +0 -1
- package/dist/storage/githubcontents.d.ts +0 -2
- package/dist/storage/githubcontents.d.ts.map +0 -1
- package/dist/storage/githubcontents.js +0 -29
- package/dist/storage/githubcontents.js.map +0 -1
- package/dist/storage/index.d.ts +0 -12
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js +0 -12
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/local.d.ts +0 -2
- package/dist/storage/local.d.ts.map +0 -1
- package/dist/storage/local.js +0 -72
- package/dist/storage/local.js.map +0 -1
- package/dist/storage/memory.d.ts +0 -6
- package/dist/storage/memory.d.ts.map +0 -1
- package/dist/storage/memory.js +0 -36
- package/dist/storage/memory.js.map +0 -1
- package/dist/storage/pool.d.ts +0 -95
- package/dist/storage/pool.d.ts.map +0 -1
- package/dist/storage/pool.js +0 -202
- package/dist/storage/pool.js.map +0 -1
- package/dist/storage/s3compatible.d.ts +0 -3
- package/dist/storage/s3compatible.d.ts.map +0 -1
- package/dist/storage/s3compatible.js +0 -70
- package/dist/storage/s3compatible.js.map +0 -1
- package/dist/storage/sync.d.ts +0 -47
- package/dist/storage/sync.d.ts.map +0 -1
- package/dist/storage/sync.js +0 -75
- package/dist/storage/sync.js.map +0 -1
- package/dist/surfaces/adapters.d.ts +0 -97
- package/dist/surfaces/adapters.d.ts.map +0 -1
- package/dist/surfaces/adapters.js +0 -50
- package/dist/surfaces/adapters.js.map +0 -1
- package/dist/surfaces/controls.d.ts +0 -18
- package/dist/surfaces/controls.d.ts.map +0 -1
- package/dist/surfaces/controls.js +0 -45
- package/dist/surfaces/controls.js.map +0 -1
- package/dist/surfaces/manifest.d.ts +0 -68
- package/dist/surfaces/manifest.d.ts.map +0 -1
- package/dist/surfaces/manifest.js +0 -42
- package/dist/surfaces/manifest.js.map +0 -1
- package/dist/surfaces/n8n.d.ts +0 -25
- package/dist/surfaces/n8n.d.ts.map +0 -1
- package/dist/surfaces/n8n.js +0 -31
- package/dist/surfaces/n8n.js.map +0 -1
- package/dist/surfaces/operations.d.ts +0 -32
- package/dist/surfaces/operations.d.ts.map +0 -1
- package/dist/surfaces/operations.js +0 -53
- package/dist/surfaces/operations.js.map +0 -1
- package/dist/surfaces/requirements.d.ts +0 -29
- package/dist/surfaces/requirements.d.ts.map +0 -1
- package/dist/surfaces/requirements.js +0 -50
- package/dist/surfaces/requirements.js.map +0 -1
- package/dist/surfaces/targets.d.ts +0 -196
- package/dist/surfaces/targets.d.ts.map +0 -1
- package/dist/surfaces/targets.js +0 -27
- package/dist/surfaces/targets.js.map +0 -1
- package/dist/webhook/delivery.d.ts +0 -18
- package/dist/webhook/delivery.d.ts.map +0 -1
- package/dist/webhook/delivery.js +0 -36
- package/dist/webhook/delivery.js.map +0 -1
- package/dist/webhook/receiver.d.ts +0 -26
- package/dist/webhook/receiver.d.ts.map +0 -1
- package/dist/webhook/receiver.js +0 -24
- package/dist/webhook/receiver.js.map +0 -1
- package/dist/webhook/signature.d.ts +0 -3
- package/dist/webhook/signature.d.ts.map +0 -1
- package/dist/webhook/signature.js +0 -7
- package/dist/webhook/signature.js.map +0 -1
- package/dist/workflow/manifest.d.ts +0 -22
- package/dist/workflow/manifest.d.ts.map +0 -1
- package/dist/workflow/manifest.js +0 -21
- package/dist/workflow/manifest.js.map +0 -1
- package/dist/workflow/registry.d.ts +0 -7
- package/dist/workflow/registry.d.ts.map +0 -1
- package/dist/workflow/registry.js +0 -18
- package/dist/workflow/registry.js.map +0 -1
- package/dist/workflow/templates.d.ts +0 -6
- package/dist/workflow/templates.d.ts.map +0 -1
- package/dist/workflow/templates.js +0 -18
- package/dist/workflow/templates.js.map +0 -1
- package/dist/workflow/triggers.d.ts +0 -64
- package/dist/workflow/triggers.d.ts.map +0 -1
- package/dist/workflow/triggers.js +0 -99
- package/dist/workflow/triggers.js.map +0 -1
- package/docs/logs/.gitkeep +0 -0
- package/docs/plans/00.index.md +0 -50
- package/docs/plans/01.architecture.md +0 -86
- package/docs/plans/02.research.computer.use.md +0 -58
- package/docs/plans/03.research.captcha.bypass.md +0 -68
- package/docs/plans/04.research.sandbox.ai.md +0 -52
- package/docs/plans/05.capture.platform.md +0 -57
- package/docs/plans/06.dependencies.md +0 -97
- package/docs/plans/07.captcha.test.page.md +0 -41
- package/docs/plans/08.production.infra.md +0 -70
- package/docs/plans/09.database.schema.md +0 -121
- package/docs/plans/10.cloudinary.storage.md +0 -57
- package/docs/plans/11.movement.logs.json.md +0 -72
- package/docs/plans/12.research.atlas.agent.browser.md +0 -79
- package/docs/plans/13.research.anti.detection.md +0 -898
- package/docs/plans/14.research.proxy.md +0 -1495
- package/docs/plans/15.research.retry.rate.limit.md +0 -1958
- package/docs/plans/16.research.crawling.md +0 -1417
- package/docs/plans/17.research.caching.md +0 -1610
- package/docs/plans/18.research.content.extraction.md +0 -1952
- package/docs/plans/19.research.errors.events.md +0 -1523
- package/docs/plans/20.research.zod.validation.md +0 -1350
- package/docs/plans/21.research.batch.concurrency.md +0 -1888
- package/docs/plans/22.research.universal.runtime.md +0 -944
- package/docs/plans/23.research.ai.integration.md +0 -1465
- package/docs/plans/24.research.memory.persistence.md +0 -1979
- package/docs/plans/25.research.server.api.md +0 -342
- package/docs/plans/26.research.compilation.md +0 -249
- package/docs/plans/27.research.html.parsing.md +0 -251
- package/docs/plans/28.action.plan.md +0 -50
- package/docs/plans/29.api.reference.md +0 -174
- package/docs/plans/30.architecture.plan.md +0 -94
- package/docs/plans/31.auditoria.dados.md +0 -163
- package/docs/plans/32.bots.automacao.computacional.md +0 -214
- package/docs/plans/33.bots.codigo.revisao.md +0 -220
- package/docs/plans/34.bots.seguranca.cicd.md +0 -366
- package/docs/plans/35.comparativo.concorrencia.md +0 -464
- package/docs/plans/36.computational.memory.md +0 -340
- package/docs/plans/37.deploystrategy.md +0 -394
- package/docs/plans/38.flow.md +0 -155
- package/docs/plans/39.multi.platform.bot.md +0 -252
- package/docs/plans/40.npm.publish.md +0 -250
- package/docs/plans/41.o.que.falta.md +0 -407
- package/docs/plans/42.pesquisa.concorrencia.md +0 -721
- package/docs/plans/43.plan.universal.architecture.md +0 -496
- package/docs/plans/44.reference.md +0 -100
- package/docs/plans/45.robotarchitecture.md +0 -237
- package/docs/plans/46.scdnintegration.md +0 -284
- package/docs/plans/47.multiforge.readme.md +0 -129
- package/docs/plans/48.theory.v4.repo.os.md +0 -152
- package/docs/plans/49.third.party.infra.md +0 -12
- package/docs/plans/50.file.as.compute.md +0 -39
- package/docs/plans/51.architecture.virtual.processor.md +0 -80
- package/docs/plans/52.manifesto.v8.md +0 -11
- package/docs/plans/58.cdn.list.md +0 -23
- package/docs/plans/59.sql.frameworks.md +0 -33
- package/docs/plans/60.sql.thirdparty.md +0 -26
- package/docs/plans/61.objective.multiforge.md +0 -63
- package/docs/plans/62.huggingface.upload.md +0 -26
- package/docs/plans/63.kaggle.upload.md +0 -24
- package/docs/plans/64.npm.storage.md +0 -30
- package/docs/plans/65.rclone.terabox.md +0 -32
- package/docs/plans/66.buckets.and.models.todo.md +0 -14
- package/docs/plans/67.database.todo.md +0 -13
- package/docs/plans/68.deploy.packages.todo.md +0 -12
- package/docs/plans/69.report.human.operator.md +0 -133
- package/docs/plans/70.report.brain2qwerty.ems.md +0 -135
- package/docs/plans/71.report.hd.infinito.vram.md +0 -155
- package/docs/plans/72.plan.hd.infinito.node.md +0 -146
- package/docs/plans/73.plan.scifi.repos.md +0 -125
- package/docs/plans/74.000.manifesto.v8.flat.2..md +0 -11
- package/docs/plans/README.md +0 -489
- package/docs/plans/aggregate_platforms.mjs +0 -146
- package/docs/plans/examplesession.json +0 -36
- package/docs/plans/missing-facts.md +0 -192
- package/docs/plans/models.md +0 -64
- package/docs/plans/organize.cjs +0 -270
- package/docs/plans/platforms.md +0 -2887
- package/docs/plans/sites.md +0 -31322
- package/docs/sources/farm.py +0 -117
- package/docs/sources/html/saddle1.html +0 -132
- package/docs/sources/html/saddle2.html +0 -157
- package/docs/sources/html/saddle3.html +0 -119
- package/docs/sources/html/saddle4.html +0 -144
- package/docs/sources/html/saddle5.html +0 -72
- package/docs/sources/html/saddle6.html +0 -171
- package/docs/sources/html/saddle7.html +0 -236
- package/docs/sources/saddle.ts +0 -74
- package/docs/sources/schema.prisma +0 -88
- package/docs/sources/script.sh +0 -64
- package/docs/sources/workflows.yml +0 -458
- package/docs/talks1/_body.txt +0 -14
- package/docs/talks1/_index.md +0 -15
- package/docs/talks1/_screenshot.png +0 -0
- package/docs/talks1/assistant-01.md +0 -5
- package/docs/talks1/assistant-02.md +0 -5
- package/docs/talks1/assistant-03.md +0 -531
- package/docs/talks1/assistant-04.md +0 -26
- package/docs/talks1/assistant-05.md +0 -774
- package/docs/talks1/assistant-06.md +0 -1718
- package/docs/talks1/scrape-share.cjs +0 -185
- package/docs/talks1/scrape-share.ts +0 -183
- package/docs/talks1/user-01.md +0 -3
- package/docs/talks1/user-02.md +0 -3
- package/docs/talks1/user-03.md +0 -88
- package/docs/talks1/user-04.md +0 -3
- package/docs/talks1/user-05.md +0 -3
- package/docs/talks1/user-06.md +0 -88
- package/docs/talks1/user-07.md +0 -88
- package/docs/talks2/_body.txt +0 -14
- package/docs/talks2/_index.md +0 -16
- package/docs/talks2/_screenshot.png +0 -0
- package/docs/talks2/assistant-01.md +0 -5
- package/docs/talks2/assistant-02.md +0 -5
- package/docs/talks2/assistant-03.md +0 -424
- package/docs/talks2/assistant-04.md +0 -598
- package/docs/talks2/assistant-05.md +0 -1280
- package/docs/talks2/assistant-06.md +0 -1227
- package/docs/talks2/assistant-07.md +0 -1252
- package/docs/talks2/user-01.md +0 -3
- package/docs/talks2/user-02.md +0 -3
- package/docs/talks2/user-03.md +0 -88
- package/docs/talks2/user-04.md +0 -88
- package/docs/talks2/user-05.md +0 -88
- package/docs/talks2/user-06.md +0 -88
- package/docs/talks2/user-07.md +0 -3
- package/docs/talks3/_body.txt +0 -467
- package/docs/talks3/_index.md +0 -10
- package/docs/talks3/_screenshot.png +0 -0
- package/docs/talks3/assistant-01.md +0 -417
- package/docs/talks3/assistant-02.md +0 -417
- package/docs/talks3/assistant-03.md +0 -29
- package/docs/talks3/assistant-04.md +0 -727
- package/docs/talks3/user-01.md +0 -88
- package/docs/talks3/user-02.md +0 -88
- package/docs/talks3/user-03.md +0 -3
- package/docs/talks3/user-04.md +0 -3
- package/docs/talks4/_body.txt +0 -14
- package/docs/talks4/_index.md +0 -12
- package/docs/talks4/_screenshot.png +0 -0
- package/docs/talks4/assistant-01.md +0 -5
- package/docs/talks4/assistant-02.md +0 -5
- package/docs/talks4/assistant-03.md +0 -35
- package/docs/talks4/assistant-04.md +0 -512
- package/docs/talks4/assistant-05.md +0 -599
- package/docs/talks4/user-01.md +0 -3
- package/docs/talks4/user-02.md +0 -3
- package/docs/talks4/user-03.md +0 -88
- package/docs/talks4/user-04.md +0 -88
- package/docs/talks4/user-05.md +0 -7
- package/docs/talks5/_body.txt +0 -14
- package/docs/talks5/_index.md +0 -13
- package/docs/talks5/_screenshot.png +0 -0
- package/docs/talks5/assistant-01.md +0 -5
- package/docs/talks5/assistant-02.md +0 -5
- package/docs/talks5/assistant-03.md +0 -690
- package/docs/talks5/assistant-04.md +0 -758
- package/docs/talks5/assistant-05.md +0 -974
- package/docs/talks5/user-01.md +0 -3
- package/docs/talks5/user-02.md +0 -3
- package/docs/talks5/user-03.md +0 -105
- package/docs/talks5/user-04.md +0 -105
- package/docs/talks5/user-05.md +0 -63
- package/docs/talks5/user-06.md +0 -105
- package/docs/talks6/_body.txt +0 -14
- package/docs/talks6/_index.md +0 -9
- package/docs/talks6/_screenshot.png +0 -0
- package/docs/talks6/assistant-01.md +0 -5
- package/docs/talks6/assistant-02.md +0 -5
- package/docs/talks6/assistant-03.md +0 -1499
- package/docs/talks6/user-01.md +0 -3
- package/docs/talks6/user-02.md +0 -3
- package/docs/talks6/user-03.md +0 -88
- package/docs/talks6/user-04.md +0 -88
- package/docs/talks7/_body.txt +0 -14
- package/docs/talks7/_index.md +0 -10
- package/docs/talks7/_screenshot.png +0 -0
- package/docs/talks7/assistant-01.md +0 -5
- package/docs/talks7/assistant-02.md +0 -5
- package/docs/talks7/assistant-03.md +0 -523
- package/docs/talks7/assistant-04.md +0 -617
- package/docs/talks7/user-01.md +0 -3
- package/docs/talks7/user-02.md +0 -3
- package/docs/talks7/user-03.md +0 -105
- package/docs/talks7/user-04.md +0 -67
- package/docs/talks8/conversa1.txt +0 -1322
- package/docs/talks8/conversa2.txt +0 -237
- package/docs/talks9/Beyond the Obvious_ 50 Plataformas Auto-Hospedadas de Forja de C/303/263digo para Al/303/251m de Gitea e GitLab.md" +0 -174
- package/docs/talks9/De NPM a Multi-Linguagem_ Uma Arquitetura T/303/251cnica para a Execu/303/247/303/243o Integrada de C/303/263digo no Ecossistema Node.js.md" +0 -59
- package/docs/talks9/De NPM a VMs Virtuais_ Uma An/303/241lise Arquitet/303/264nica para a Realiza/303/247/303/243o do Ciclo de Vida do Projeto SADDLE.md" +0 -91
- package/docs/talks9/Mapeamento da Engrenagem Computacional_ Uma Arquitetura para Execu/303/247/303/243o Isolada e Persist/303/252ncia em Ambientes Distribu/303/255dos.md" +0 -116
- package/docs/talks9/O Cen/303/241rio Pr/303/241tico do SADDLE_ Uma An/303/241lise de Viabilidade e Modelo de Ciclo de Vida Integrado.md" +0 -128
- package/docs/talks9/README (2).md +0 -489
- package/docs/talks9/README.md +0 -198
- package/docs/talks9/Viabilidade do Saddle_ Uma An/303/241lise T/303/251cnica da Transforma/303/247/303/243o de Armazenamento Remoto em Mem/303/263ria Computacional.md" +0 -80
- package/docs/talks9/conversa.txt +0 -544
- package/docs/talks9/other (2).md +0 -39
- package/docs/talks9/other.md +0 -57
- package/docs/talks9/outro.txt +0 -24
- /package/{extension/README.md → docs/extension.md} +0 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* webscrape.ts — the legacy WebScrape toolkit generation.
|
|
3
|
+
*
|
|
4
|
+
* This file carries the complete legacy scrape sub-project of the former
|
|
5
|
+
* repository (thirty sections: types, errors, utils, port, tokens,
|
|
6
|
+
* chunking, formats, serialize, headers, session, pool, proxy, proxypool,
|
|
7
|
+
* rate-limiter, retry, middleware, events, renderer, sitemap, agent,
|
|
8
|
+
* llms-txt, fetch, batch, browser, scrape, crawler, server, cli and
|
|
9
|
+
* dev-server) consolidated into the single root-level file of the grand
|
|
10
|
+
* merge. The optional npm runtimes of the toolkit (emittery, p-limit,
|
|
11
|
+
* p-retry, cheerio, playwright, hono, commander) load lazily so nothing is
|
|
12
|
+
* required at module load that the package does not ship; the CLI,
|
|
13
|
+
* dev-server and hono API bootstraps are exported factories.
|
|
14
|
+
*/
|
|
15
|
+
import { z } from "zod";
|
|
16
|
+
import type Emittery from "emittery";
|
|
17
|
+
export declare const ScrapeFormatSchema: z.ZodEnum<{
|
|
18
|
+
html: "html";
|
|
19
|
+
json: "json";
|
|
20
|
+
markdown: "markdown";
|
|
21
|
+
redis: "redis";
|
|
22
|
+
text: "text";
|
|
23
|
+
xml: "xml";
|
|
24
|
+
}>;
|
|
25
|
+
export type ScrapeFormat = z.infer<typeof ScrapeFormatSchema>;
|
|
26
|
+
export declare const SerializeTargetSchema: z.ZodEnum<{
|
|
27
|
+
json: "json";
|
|
28
|
+
markdown: "markdown";
|
|
29
|
+
redis: "redis";
|
|
30
|
+
text: "text";
|
|
31
|
+
xml: "xml";
|
|
32
|
+
}>;
|
|
33
|
+
export type SerializeTarget = z.infer<typeof SerializeTargetSchema>;
|
|
34
|
+
export declare const ScrapeOptionsSchema: z.ZodObject<{
|
|
35
|
+
url: z.ZodOptional<z.ZodString>;
|
|
36
|
+
html: z.ZodOptional<z.ZodString>;
|
|
37
|
+
mode: z.ZodOptional<z.ZodPrefault<z.ZodEnum<{
|
|
38
|
+
auto: "auto";
|
|
39
|
+
browser: "browser";
|
|
40
|
+
fetch: "fetch";
|
|
41
|
+
}>>>;
|
|
42
|
+
waitUntil: z.ZodOptional<z.ZodPrefault<z.ZodEnum<{
|
|
43
|
+
commit: "commit";
|
|
44
|
+
domcontentloaded: "domcontentloaded";
|
|
45
|
+
load: "load";
|
|
46
|
+
networkidle: "networkidle";
|
|
47
|
+
}>>>;
|
|
48
|
+
timeout: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
49
|
+
scroll: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
50
|
+
scrollDelay: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
51
|
+
maxScrolls: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
52
|
+
removeSelectors: z.ZodOptional<z.ZodPrefault<z.ZodArray<z.ZodString>>>;
|
|
53
|
+
extractImages: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
54
|
+
extractLinks: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
55
|
+
extractTables: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
56
|
+
maxContentLength: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
format: z.ZodOptional<z.ZodPrefault<z.ZodEnum<{
|
|
58
|
+
html: "html";
|
|
59
|
+
json: "json";
|
|
60
|
+
markdown: "markdown";
|
|
61
|
+
redis: "redis";
|
|
62
|
+
text: "text";
|
|
63
|
+
xml: "xml";
|
|
64
|
+
}>>>;
|
|
65
|
+
language: z.ZodOptional<z.ZodString>;
|
|
66
|
+
proxy: z.ZodOptional<z.ZodString>;
|
|
67
|
+
retries: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
68
|
+
retryDelay: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
69
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
70
|
+
headers: z.ZodOptional<z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
71
|
+
cache: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
72
|
+
cacheTtlMs: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
73
|
+
readable: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export type ScrapeOptions = z.infer<typeof ScrapeOptionsSchema>;
|
|
76
|
+
export interface ScrapeResult {
|
|
77
|
+
url: string;
|
|
78
|
+
title: string;
|
|
79
|
+
content: string;
|
|
80
|
+
format: ScrapeFormat;
|
|
81
|
+
text: string;
|
|
82
|
+
links: LegacyLinkInfo[];
|
|
83
|
+
images: LegacyImageInfo[];
|
|
84
|
+
tables: LegacyTableInfo[];
|
|
85
|
+
metadata: LegacyPageMetadata;
|
|
86
|
+
extractedAt: string;
|
|
87
|
+
duration: number;
|
|
88
|
+
size: number;
|
|
89
|
+
}
|
|
90
|
+
export interface LegacyPageMetadata {
|
|
91
|
+
title: string;
|
|
92
|
+
description?: string;
|
|
93
|
+
favicon?: string;
|
|
94
|
+
charset?: string;
|
|
95
|
+
language?: string;
|
|
96
|
+
author?: string;
|
|
97
|
+
publishedDate?: string;
|
|
98
|
+
ogImage?: string;
|
|
99
|
+
ogType?: string;
|
|
100
|
+
keywords?: string[];
|
|
101
|
+
}
|
|
102
|
+
export interface LegacyLinkInfo {
|
|
103
|
+
href: string;
|
|
104
|
+
text: string;
|
|
105
|
+
isInternal: boolean;
|
|
106
|
+
isExternal: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface LegacyImageInfo {
|
|
109
|
+
src: string;
|
|
110
|
+
alt: string;
|
|
111
|
+
width?: number;
|
|
112
|
+
height?: number;
|
|
113
|
+
}
|
|
114
|
+
export interface LegacyTableInfo {
|
|
115
|
+
headers: string[];
|
|
116
|
+
rows: string[][];
|
|
117
|
+
caption?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare const BrowserAgentConfigSchema: z.ZodObject<{
|
|
120
|
+
headless: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
121
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
122
|
+
viewport: z.ZodOptional<z.ZodPrefault<z.ZodObject<{
|
|
123
|
+
width: z.ZodPrefault<z.ZodNumber>;
|
|
124
|
+
height: z.ZodPrefault<z.ZodNumber>;
|
|
125
|
+
}, z.core.$strict>>>;
|
|
126
|
+
locale: z.ZodOptional<z.ZodPrefault<z.ZodString>>;
|
|
127
|
+
geolocation: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
latitude: z.ZodNumber;
|
|
129
|
+
longitude: z.ZodNumber;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
timeout: z.ZodOptional<z.ZodPrefault<z.ZodNumber>>;
|
|
132
|
+
recordVideo: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
133
|
+
proxy: z.ZodOptional<z.ZodPrefault<z.ZodString>>;
|
|
134
|
+
storageState: z.ZodOptional<z.ZodPrefault<z.ZodString>>;
|
|
135
|
+
blockAds: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
136
|
+
stealth: z.ZodOptional<z.ZodPrefault<z.ZodBoolean>>;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export type BrowserAgentConfig = z.infer<typeof BrowserAgentConfigSchema>;
|
|
139
|
+
export interface LegacyExtractOptions {
|
|
140
|
+
readable?: boolean;
|
|
141
|
+
stripTags?: string[];
|
|
142
|
+
preserveLinks?: boolean;
|
|
143
|
+
preserveImages?: boolean;
|
|
144
|
+
preserveTables?: boolean;
|
|
145
|
+
maxLength?: number;
|
|
146
|
+
removeSelectors?: string[];
|
|
147
|
+
baseUrl?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface SerializeOptions {
|
|
150
|
+
format: SerializeTarget;
|
|
151
|
+
pretty?: boolean;
|
|
152
|
+
maxChunkSize?: number;
|
|
153
|
+
includeMetadata?: boolean;
|
|
154
|
+
redisKey?: string;
|
|
155
|
+
xmlRoot?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface SerializedOutput {
|
|
158
|
+
format: SerializeTarget;
|
|
159
|
+
content: string;
|
|
160
|
+
chunks?: string[];
|
|
161
|
+
size: number;
|
|
162
|
+
metadata?: Record<string, unknown>;
|
|
163
|
+
}
|
|
164
|
+
export interface AgentOutput {
|
|
165
|
+
summary: string;
|
|
166
|
+
content: string;
|
|
167
|
+
keyPoints: string[];
|
|
168
|
+
relevantUrls: string[];
|
|
169
|
+
structured?: Record<string, unknown>;
|
|
170
|
+
tokens: number;
|
|
171
|
+
}
|
|
172
|
+
export interface RenderOptions {
|
|
173
|
+
width?: number;
|
|
174
|
+
height?: number;
|
|
175
|
+
fullPage?: boolean;
|
|
176
|
+
type?: 'png' | 'jpeg';
|
|
177
|
+
quality?: number;
|
|
178
|
+
output?: string;
|
|
179
|
+
}
|
|
180
|
+
export interface ChromeCommand {
|
|
181
|
+
action: 'goto' | 'click' | 'type' | 'screenshot' | 'evaluate' | 'wait' | 'scroll' | 'extract';
|
|
182
|
+
args?: Record<string, unknown>;
|
|
183
|
+
}
|
|
184
|
+
export interface CliOptions {
|
|
185
|
+
url?: string;
|
|
186
|
+
file?: string;
|
|
187
|
+
format?: ScrapeFormat;
|
|
188
|
+
output?: string;
|
|
189
|
+
'no-headless'?: boolean;
|
|
190
|
+
timeout?: number;
|
|
191
|
+
scroll?: boolean;
|
|
192
|
+
readable?: boolean;
|
|
193
|
+
agent?: boolean;
|
|
194
|
+
pretty?: boolean;
|
|
195
|
+
proxy?: string;
|
|
196
|
+
retries?: number;
|
|
197
|
+
mode?: 'auto' | 'fetch' | 'browser';
|
|
198
|
+
}
|
|
199
|
+
export interface RetryConfig {
|
|
200
|
+
retries: number;
|
|
201
|
+
delay: number;
|
|
202
|
+
backoff: 'exponential' | 'linear' | 'constant';
|
|
203
|
+
maxDelay?: number;
|
|
204
|
+
statusCodes?: number[];
|
|
205
|
+
}
|
|
206
|
+
export interface ProxyConfig {
|
|
207
|
+
url: string;
|
|
208
|
+
username?: string;
|
|
209
|
+
password?: string;
|
|
210
|
+
}
|
|
211
|
+
export interface LegacyCacheConfig {
|
|
212
|
+
enabled: boolean;
|
|
213
|
+
ttlMs?: number;
|
|
214
|
+
maxEntries?: number;
|
|
215
|
+
storage?: 'memory' | 'redis' | 'sqlite' | 'indexeddb';
|
|
216
|
+
}
|
|
217
|
+
export interface CrawlStats {
|
|
218
|
+
totalUrls: number;
|
|
219
|
+
successful: number;
|
|
220
|
+
failed: number;
|
|
221
|
+
skipped: number;
|
|
222
|
+
duration: number;
|
|
223
|
+
avgResponseTime: number;
|
|
224
|
+
}
|
|
225
|
+
export interface BatchOptions {
|
|
226
|
+
urls: string[];
|
|
227
|
+
concurrency?: number;
|
|
228
|
+
mode?: 'auto' | 'fetch' | 'browser';
|
|
229
|
+
format?: ScrapeFormat;
|
|
230
|
+
onProgress?: (completed: number, total: number, currentUrl: string) => void;
|
|
231
|
+
onError?: (url: string, error: Error) => void;
|
|
232
|
+
}
|
|
233
|
+
export declare const ErrorCode: {
|
|
234
|
+
readonly VALIDATION_FAILED: 'VALIDATION_FAILED';
|
|
235
|
+
readonly INVALID_URL: 'INVALID_URL';
|
|
236
|
+
readonly TIMEOUT: 'TIMEOUT';
|
|
237
|
+
readonly BLOCKED: 'BLOCKED';
|
|
238
|
+
readonly RATE_LIMITED: 'RATE_LIMITED';
|
|
239
|
+
readonly PROXY_ERROR: 'PROXY_ERROR';
|
|
240
|
+
readonly PARSE_ERROR: 'PARSE_ERROR';
|
|
241
|
+
readonly AUTH_REQUIRED: 'AUTH_REQUIRED';
|
|
242
|
+
readonly NETWORK_ERROR: 'NETWORK_ERROR';
|
|
243
|
+
readonly BROWSER_NOT_AVAILABLE: 'BROWSER_NOT_AVAILABLE';
|
|
244
|
+
readonly CRAWL_DEPTH_EXCEEDED: 'CRAWL_DEPTH_EXCEEDED';
|
|
245
|
+
readonly MAX_RETRIES_EXCEEDED: 'MAX_RETRIES_EXCEEDED';
|
|
246
|
+
};
|
|
247
|
+
export type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
|
|
248
|
+
export declare class WebScrapeError extends Error {
|
|
249
|
+
readonly code: ErrorCode;
|
|
250
|
+
readonly statusCode: number;
|
|
251
|
+
readonly isRetryable: boolean;
|
|
252
|
+
readonly timestamp: string;
|
|
253
|
+
readonly details?: Record<string, unknown>;
|
|
254
|
+
readonly cause?: Error;
|
|
255
|
+
constructor(message: string, code: ErrorCode, statusCode: number, isRetryable: boolean, details?: Record<string, unknown>, cause?: Error);
|
|
256
|
+
toJSON(): {
|
|
257
|
+
error: {
|
|
258
|
+
name: string;
|
|
259
|
+
code: ErrorCode;
|
|
260
|
+
message: string;
|
|
261
|
+
statusCode: number;
|
|
262
|
+
isRetryable: boolean;
|
|
263
|
+
timestamp: string;
|
|
264
|
+
details: Record<string, unknown>;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
export declare class ValidationError extends WebScrapeError {
|
|
269
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
270
|
+
}
|
|
271
|
+
export declare class TimeoutError extends WebScrapeError {
|
|
272
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
273
|
+
}
|
|
274
|
+
export declare class BlockedError extends WebScrapeError {
|
|
275
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
276
|
+
}
|
|
277
|
+
export declare class RateLimitError extends WebScrapeError {
|
|
278
|
+
readonly retryAfterMs?: number;
|
|
279
|
+
constructor(message: string, retryAfterMs?: number, details?: Record<string, unknown>, cause?: Error);
|
|
280
|
+
}
|
|
281
|
+
export declare class ProxyError extends WebScrapeError {
|
|
282
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
283
|
+
}
|
|
284
|
+
export declare class ParseError extends WebScrapeError {
|
|
285
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
286
|
+
}
|
|
287
|
+
export declare class AuthError extends WebScrapeError {
|
|
288
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
289
|
+
}
|
|
290
|
+
export declare class NetworkError extends WebScrapeError {
|
|
291
|
+
constructor(message: string, details?: Record<string, unknown>, cause?: Error);
|
|
292
|
+
}
|
|
293
|
+
export declare class BrowserNotAvailableError extends WebScrapeError {
|
|
294
|
+
constructor(message?: string, details?: Record<string, unknown>);
|
|
295
|
+
}
|
|
296
|
+
export declare function ensureDir(path: string): void;
|
|
297
|
+
export declare function writeOutput(path: string, content: string): void;
|
|
298
|
+
export declare function slugify(text: string): string;
|
|
299
|
+
export declare function truncate(text: string, max: number, suffix?: string): string;
|
|
300
|
+
export declare function legacyestimatetokens(text: string): number;
|
|
301
|
+
export declare function legacychunktext(text: string, chunkSize: number): string[];
|
|
302
|
+
export declare function delay(ms: number): Promise<void>;
|
|
303
|
+
export declare function isValidUrl(url: string): boolean;
|
|
304
|
+
export declare function normalizeUrl(url: string, base?: string): string;
|
|
305
|
+
export declare function isInternalUrl(href: string, base: string): boolean;
|
|
306
|
+
export declare function randomPort(): number;
|
|
307
|
+
/**
|
|
308
|
+
* Reset the cached port (for testing).
|
|
309
|
+
*/
|
|
310
|
+
export declare function resetPort(): void;
|
|
311
|
+
export type ModelType = 'gpt-4o' | 'gpt-4' | 'gpt-3.5-turbo' | 'claude' | 'gemini' | 'default';
|
|
312
|
+
export declare function estimateTokens(text: string, model?: ModelType): number;
|
|
313
|
+
export declare function countTokens(text: string, model?: ModelType): number;
|
|
314
|
+
export declare function fitsInContext(text: string, maxTokens: number, model?: ModelType): boolean;
|
|
315
|
+
export declare function truncateToTokens(text: string, maxTokens: number, model?: ModelType): string;
|
|
316
|
+
export declare function tokenCost(text: string, model: ModelType, pricePer1kTokens: number): number;
|
|
317
|
+
export declare const MODEL_PRICES: Record<string, {
|
|
318
|
+
input: number;
|
|
319
|
+
output: number;
|
|
320
|
+
}>;
|
|
321
|
+
export interface ChunkOptions {
|
|
322
|
+
maxTokens?: number;
|
|
323
|
+
overlapTokens?: number;
|
|
324
|
+
preserveCodeBlocks?: boolean;
|
|
325
|
+
includeHeadingPath?: boolean;
|
|
326
|
+
}
|
|
327
|
+
export interface Chunk {
|
|
328
|
+
content: string;
|
|
329
|
+
headingPath: string[];
|
|
330
|
+
tokenCount: number;
|
|
331
|
+
index: number;
|
|
332
|
+
}
|
|
333
|
+
export declare function chunkMarkdown(markdown: string, options?: ChunkOptions): Chunk[];
|
|
334
|
+
export declare function chunkText(text: string, options?: ChunkOptions): Chunk[];
|
|
335
|
+
export declare function formatChunksForRAG(chunks: Chunk[]): string;
|
|
336
|
+
export declare function resolveFormat(format: string): ScrapeFormat;
|
|
337
|
+
export declare function formatFromExtension(ext: string): ScrapeFormat | null;
|
|
338
|
+
export declare function extensionForFormat(format: ScrapeFormat): string;
|
|
339
|
+
export declare function detectContentType(html: string): 'article' | 'list' | 'page' | 'other';
|
|
340
|
+
export declare function buildSerializeOptions(format: ScrapeFormat, pretty?: boolean): SerializeOptions;
|
|
341
|
+
export declare function convertResult(result: ScrapeResult, targetFormat: ScrapeFormat): Promise<ScrapeResult>;
|
|
342
|
+
export declare function serializeResult(result: ScrapeResult, options: SerializeOptions): SerializedOutput;
|
|
343
|
+
export declare function serializeHtml(html: string, options: SerializeOptions): SerializedOutput;
|
|
344
|
+
export interface HeaderProfile {
|
|
345
|
+
userAgent: string;
|
|
346
|
+
accept: string;
|
|
347
|
+
acceptLanguage: string;
|
|
348
|
+
secChUa: string;
|
|
349
|
+
secChUaPlatform: string;
|
|
350
|
+
}
|
|
351
|
+
export declare function getRandomProfile(): HeaderProfile;
|
|
352
|
+
export declare function getHeaders(profile?: HeaderProfile): Record<string, string>;
|
|
353
|
+
export declare function mergeHeaders(base: Record<string, string>, override: Record<string, string>): Record<string, string>;
|
|
354
|
+
export interface Cookie {
|
|
355
|
+
name: string;
|
|
356
|
+
value: string;
|
|
357
|
+
domain?: string;
|
|
358
|
+
path?: string;
|
|
359
|
+
expires?: number;
|
|
360
|
+
httpOnly?: boolean;
|
|
361
|
+
secure?: boolean;
|
|
362
|
+
}
|
|
363
|
+
export declare class CookieJar {
|
|
364
|
+
private cookies;
|
|
365
|
+
set(cookie: Cookie): void;
|
|
366
|
+
get(name: string, domain?: string, _path?: string): Cookie | undefined;
|
|
367
|
+
getAll(domain?: string): Cookie[];
|
|
368
|
+
toString(domain?: string): string;
|
|
369
|
+
parseSetCookie(header: string, defaultDomain?: string): void;
|
|
370
|
+
clear(): void;
|
|
371
|
+
}
|
|
372
|
+
export declare class ScrapingSession {
|
|
373
|
+
readonly cookieJar: CookieJar;
|
|
374
|
+
readonly id: string;
|
|
375
|
+
private data;
|
|
376
|
+
constructor(id?: string);
|
|
377
|
+
get<T = unknown>(key: string): T | undefined;
|
|
378
|
+
set(key: string, value: unknown): void;
|
|
379
|
+
clear(): void;
|
|
380
|
+
}
|
|
381
|
+
export declare function createSession(id?: string): ScrapingSession;
|
|
382
|
+
export interface PoolConfig {
|
|
383
|
+
maxSize?: number;
|
|
384
|
+
acquireTimeoutMs?: number;
|
|
385
|
+
}
|
|
386
|
+
export declare class BrowserPool {
|
|
387
|
+
private pool;
|
|
388
|
+
private waitQueue;
|
|
389
|
+
private config;
|
|
390
|
+
private browserConfig;
|
|
391
|
+
constructor(config?: PoolConfig, browserConfig?: BrowserAgentConfig);
|
|
392
|
+
acquire(): Promise<AgentBrowser>;
|
|
393
|
+
release(browser: AgentBrowser): void;
|
|
394
|
+
destroy(): Promise<void>;
|
|
395
|
+
getStatus(): {
|
|
396
|
+
total: number;
|
|
397
|
+
idle: number;
|
|
398
|
+
inUse: number;
|
|
399
|
+
waiting: number;
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
export declare function createPool(config?: PoolConfig, browserConfig?: BrowserAgentConfig): BrowserPool;
|
|
403
|
+
export type ProxyRotationStrategy = 'round-robin' | 'random';
|
|
404
|
+
export interface ProxyPoolConfig {
|
|
405
|
+
maxFailures?: number;
|
|
406
|
+
reviveAfterMs?: number;
|
|
407
|
+
strategy?: ProxyRotationStrategy;
|
|
408
|
+
}
|
|
409
|
+
export declare class ProxyPool {
|
|
410
|
+
private proxies;
|
|
411
|
+
private stats;
|
|
412
|
+
private currentIndex;
|
|
413
|
+
private config;
|
|
414
|
+
constructor(proxies: ProxyConfig[], config?: Partial<ProxyPoolConfig>);
|
|
415
|
+
private getActiveProxies;
|
|
416
|
+
next(): ProxyConfig | null;
|
|
417
|
+
reportSuccess(proxy: ProxyConfig): void;
|
|
418
|
+
reportFailure(proxy: ProxyConfig): void;
|
|
419
|
+
getStatus(): {
|
|
420
|
+
total: number;
|
|
421
|
+
active: number;
|
|
422
|
+
disabled: number;
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
export declare function createProxyPool(proxies: ProxyConfig[], config?: Partial<ProxyPoolConfig>): ProxyPool;
|
|
426
|
+
/**
|
|
427
|
+
* proxy pool chooses healthy least used entries and never rotates blindly.
|
|
428
|
+
*/
|
|
429
|
+
export declare function proxypool(options?: {}): {
|
|
430
|
+
choose: () => any;
|
|
431
|
+
report: (id: any, result?: {}) => any;
|
|
432
|
+
list(): any;
|
|
433
|
+
};
|
|
434
|
+
export interface RateLimiterConfig {
|
|
435
|
+
maxTokensPerInterval: number;
|
|
436
|
+
intervalMs: number;
|
|
437
|
+
maxConcurrent?: number;
|
|
438
|
+
}
|
|
439
|
+
export declare class RateLimiter {
|
|
440
|
+
private buckets;
|
|
441
|
+
private active;
|
|
442
|
+
private config;
|
|
443
|
+
constructor(config?: Partial<RateLimiterConfig>);
|
|
444
|
+
private getBucket;
|
|
445
|
+
private refill;
|
|
446
|
+
acquire(key: string): Promise<void>;
|
|
447
|
+
release(key: string): void;
|
|
448
|
+
getStats(key: string): {
|
|
449
|
+
tokens: number;
|
|
450
|
+
active: number;
|
|
451
|
+
};
|
|
452
|
+
clear(): void;
|
|
453
|
+
}
|
|
454
|
+
export declare function createRateLimiter(config?: Partial<RateLimiterConfig>): RateLimiter;
|
|
455
|
+
export declare const DEFAULT_RETRY_CONFIG: Required<RetryConfig>;
|
|
456
|
+
export declare function isRetryableError(error: Error): boolean;
|
|
457
|
+
export declare function withRetry<T>(fn: (attemptNumber: number) => Promise<T>, config?: Partial<RetryConfig>, onRetry?: (error: Error, attempt: number) => void): Promise<T>;
|
|
458
|
+
/**
|
|
459
|
+
* Loads the p-retry AbortError class lazily (the class was a value re-export
|
|
460
|
+
* of the former scrape/retry.ts module; the grand merge keeps it reachable
|
|
461
|
+
* without requiring p-retry at module load time).
|
|
462
|
+
*/
|
|
463
|
+
export declare function loadaborterror(): Promise<any>;
|
|
464
|
+
export interface MiddlewareContext<T = Record<string, unknown>> {
|
|
465
|
+
data: T;
|
|
466
|
+
state: Record<string, unknown>;
|
|
467
|
+
startTime: number;
|
|
468
|
+
aborted: boolean;
|
|
469
|
+
abort(): void;
|
|
470
|
+
}
|
|
471
|
+
export type MiddlewareNext = () => Promise<void>;
|
|
472
|
+
export type Middleware<T = Record<string, unknown>> = (ctx: MiddlewareContext<T>, next: MiddlewareNext) => Promise<void>;
|
|
473
|
+
export declare class MiddlewarePipeline<T = Record<string, unknown>> {
|
|
474
|
+
private middlewares;
|
|
475
|
+
use(middleware: Middleware<T>): this;
|
|
476
|
+
execute(initialData: T): Promise<MiddlewareContext<T>>;
|
|
477
|
+
clear(): void;
|
|
478
|
+
}
|
|
479
|
+
export declare function loggingMiddleware(logger?: {
|
|
480
|
+
info: (msg: string) => void;
|
|
481
|
+
}): Middleware;
|
|
482
|
+
export declare function timeoutMiddleware(timeoutMs: number): Middleware;
|
|
483
|
+
export declare function retryMiddleware(maxRetries: number, delayMs: number): Middleware;
|
|
484
|
+
export declare function createPipeline<T = Record<string, unknown>>(): MiddlewarePipeline<T>;
|
|
485
|
+
export interface WebScrapeEvents {
|
|
486
|
+
'request:start': {
|
|
487
|
+
url: string;
|
|
488
|
+
options: ScrapeOptions;
|
|
489
|
+
timestamp: number;
|
|
490
|
+
};
|
|
491
|
+
'request:response': {
|
|
492
|
+
url: string;
|
|
493
|
+
status: number;
|
|
494
|
+
attempt: number;
|
|
495
|
+
duration: number;
|
|
496
|
+
};
|
|
497
|
+
'request:error': {
|
|
498
|
+
url: string;
|
|
499
|
+
error: Error;
|
|
500
|
+
attempt: number;
|
|
501
|
+
};
|
|
502
|
+
'request:retry': {
|
|
503
|
+
url: string;
|
|
504
|
+
attempt: number;
|
|
505
|
+
maxRetries: number;
|
|
506
|
+
delayMs: number;
|
|
507
|
+
};
|
|
508
|
+
'request:complete': {
|
|
509
|
+
url: string;
|
|
510
|
+
duration: number;
|
|
511
|
+
success: boolean;
|
|
512
|
+
};
|
|
513
|
+
'cache:hit': {
|
|
514
|
+
key: string;
|
|
515
|
+
};
|
|
516
|
+
'cache:miss': {
|
|
517
|
+
key: string;
|
|
518
|
+
};
|
|
519
|
+
'cache:set': {
|
|
520
|
+
key: string;
|
|
521
|
+
ttlMs?: number;
|
|
522
|
+
};
|
|
523
|
+
'proxy:rotate': {
|
|
524
|
+
proxy: string;
|
|
525
|
+
reason: string;
|
|
526
|
+
};
|
|
527
|
+
'proxy:error': {
|
|
528
|
+
proxy: string;
|
|
529
|
+
error: Error;
|
|
530
|
+
};
|
|
531
|
+
'proxy:disabled': {
|
|
532
|
+
proxy: string;
|
|
533
|
+
reason: string;
|
|
534
|
+
};
|
|
535
|
+
'crawl:discover': {
|
|
536
|
+
url: string;
|
|
537
|
+
depth: number;
|
|
538
|
+
parentUrl?: string;
|
|
539
|
+
};
|
|
540
|
+
'crawl:complete': {
|
|
541
|
+
totalUrls: number;
|
|
542
|
+
successful: number;
|
|
543
|
+
failed: number;
|
|
544
|
+
duration: number;
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
export type EventEmitter = Emittery<WebScrapeEvents>;
|
|
548
|
+
/**
|
|
549
|
+
* Creates a fresh emittery event bus. Emittery joined the lazy-loading
|
|
550
|
+
* contract of the grand merge: the optional runtime dependency is imported
|
|
551
|
+
* on first use, so loading this module never requires it to be installed.
|
|
552
|
+
*/
|
|
553
|
+
export declare function createEventEmitter(): Promise<EventEmitter>;
|
|
554
|
+
export declare function globalEmitter(): any;
|
|
555
|
+
interface PygameConfig {
|
|
556
|
+
pythonPath?: string;
|
|
557
|
+
width?: number;
|
|
558
|
+
height?: number;
|
|
559
|
+
fps?: number;
|
|
560
|
+
fullscreen?: boolean;
|
|
561
|
+
}
|
|
562
|
+
export declare class PygameRenderer {
|
|
563
|
+
private config;
|
|
564
|
+
private process;
|
|
565
|
+
private tempDir;
|
|
566
|
+
private screenDir;
|
|
567
|
+
constructor(config?: PygameConfig);
|
|
568
|
+
renderScreenshot(imageBuffer: Buffer): Promise<void>;
|
|
569
|
+
renderDoom(): Promise<void>;
|
|
570
|
+
private runScript;
|
|
571
|
+
close(): void;
|
|
572
|
+
}
|
|
573
|
+
export declare function createRenderer(config?: PygameConfig): PygameRenderer;
|
|
574
|
+
export interface SitemapUrl {
|
|
575
|
+
loc: string;
|
|
576
|
+
lastmod?: string;
|
|
577
|
+
changefreq?: string;
|
|
578
|
+
priority?: number;
|
|
579
|
+
}
|
|
580
|
+
export interface SitemapResult {
|
|
581
|
+
urls: SitemapUrl[];
|
|
582
|
+
sitemaps: string[];
|
|
583
|
+
duration: number;
|
|
584
|
+
}
|
|
585
|
+
export declare function fetchSitemap(url: string, options?: {
|
|
586
|
+
timeout?: number;
|
|
587
|
+
headers?: Record<string, string>;
|
|
588
|
+
fetcher?: typeof fetch;
|
|
589
|
+
}): Promise<SitemapResult>;
|
|
590
|
+
export declare function discoverSitemaps(siteUrl: string): Promise<string[]>;
|
|
591
|
+
export declare function parseSitemap(url: string, options?: {
|
|
592
|
+
timeout?: number;
|
|
593
|
+
headers?: Record<string, string>;
|
|
594
|
+
fetcher?: typeof fetch;
|
|
595
|
+
followIndexes?: boolean;
|
|
596
|
+
maxUrls?: number;
|
|
597
|
+
maxDepth?: number;
|
|
598
|
+
}): Promise<SitemapUrl[]>;
|
|
599
|
+
export interface AgentFormatOptions {
|
|
600
|
+
includeSummary?: boolean;
|
|
601
|
+
includeKeyPoints?: boolean;
|
|
602
|
+
includeUrls?: boolean;
|
|
603
|
+
includeRaw?: boolean;
|
|
604
|
+
maxTokens?: number;
|
|
605
|
+
chunkSize?: number;
|
|
606
|
+
model?: 'gpt-4o' | 'gpt-4' | 'gpt-3.5-turbo' | 'claude' | 'gemini' | 'default';
|
|
607
|
+
}
|
|
608
|
+
export declare function formatForAgent(result: ScrapeResult, options?: AgentFormatOptions): AgentOutput;
|
|
609
|
+
export declare function buildContext(result: ScrapeResult): string;
|
|
610
|
+
export interface LlmsTxtOptions {
|
|
611
|
+
siteName?: string;
|
|
612
|
+
description?: string;
|
|
613
|
+
includeOptional?: boolean;
|
|
614
|
+
}
|
|
615
|
+
export declare function generateLlmsTxt(results: ScrapeResult[], options?: LlmsTxtOptions): string;
|
|
616
|
+
export declare function generateLlmsFullTxt(results: ScrapeResult[]): string;
|
|
617
|
+
export interface FetchResult {
|
|
618
|
+
html: string;
|
|
619
|
+
url: string;
|
|
620
|
+
status: number;
|
|
621
|
+
headers: Record<string, string>;
|
|
622
|
+
duration: number;
|
|
623
|
+
}
|
|
624
|
+
export declare function fetchHtml(url: string, options?: {
|
|
625
|
+
timeout?: number;
|
|
626
|
+
headers?: Record<string, string>;
|
|
627
|
+
userAgent?: string;
|
|
628
|
+
proxy?: string;
|
|
629
|
+
signal?: AbortSignal;
|
|
630
|
+
}): Promise<FetchResult>;
|
|
631
|
+
export declare function fetchAndParse(url: string, options?: Partial<ScrapeOptions>): Promise<FetchResult>;
|
|
632
|
+
export declare function detectRenderingMode(html: string): Promise<'static' | 'spa' | 'hydrated'>;
|
|
633
|
+
export interface BatchResult {
|
|
634
|
+
results: ScrapeResult[];
|
|
635
|
+
errors: {
|
|
636
|
+
url: string;
|
|
637
|
+
error: Error;
|
|
638
|
+
}[];
|
|
639
|
+
successful: number;
|
|
640
|
+
failed: number;
|
|
641
|
+
duration: number;
|
|
642
|
+
}
|
|
643
|
+
export declare function batchScrape(options: BatchOptions, scrapeOpts?: ScrapeOptions): Promise<BatchResult>;
|
|
644
|
+
export declare function batchScrapeSequential(urls: string[], options?: ScrapeOptions, callbacks?: {
|
|
645
|
+
onResult?: (result: ScrapeResult, index: number) => void;
|
|
646
|
+
onError?: (url: string, error: Error, index: number) => void;
|
|
647
|
+
delayMs?: number;
|
|
648
|
+
}): Promise<BatchResult>;
|
|
649
|
+
export declare class AgentBrowser {
|
|
650
|
+
private browser;
|
|
651
|
+
private context;
|
|
652
|
+
private page;
|
|
653
|
+
private config;
|
|
654
|
+
private static DEFAULTS;
|
|
655
|
+
constructor(config?: Partial<BrowserAgentConfig>);
|
|
656
|
+
launch(browserType?: 'chromium' | 'firefox' | 'webkit'): Promise<void>;
|
|
657
|
+
navigate(url: string, waitUntil?: 'load' | 'domcontentloaded' | 'networkidle'): Promise<void>;
|
|
658
|
+
screenshot(opts?: RenderOptions): Promise<Buffer>;
|
|
659
|
+
evaluate<T = unknown>(fn: string | (() => T), args?: unknown[]): Promise<T>;
|
|
660
|
+
click(selector: string): Promise<void>;
|
|
661
|
+
type(selector: string, text: string, delayMs?: number): Promise<void>;
|
|
662
|
+
scrollToBottom(step?: number, delayMs?: number, maxScrolls?: number): Promise<number>;
|
|
663
|
+
scrollTo(x: number, y: number): Promise<void>;
|
|
664
|
+
waitFor(selector: string, timeout?: number): Promise<void>;
|
|
665
|
+
waitForLoad(): Promise<void>;
|
|
666
|
+
html(): Promise<string>;
|
|
667
|
+
text(): Promise<string>;
|
|
668
|
+
title(): Promise<string>;
|
|
669
|
+
url(): Promise<string>;
|
|
670
|
+
executeCommands(commands: ChromeCommand[]): Promise<unknown[]>;
|
|
671
|
+
close(): Promise<void>;
|
|
672
|
+
isConnected(): boolean;
|
|
673
|
+
}
|
|
674
|
+
export declare function createBrowser(config?: BrowserAgentConfig): AgentBrowser;
|
|
675
|
+
export declare function scrapeUrl(url: string, options?: ScrapeOptions): Promise<ScrapeResult>;
|
|
676
|
+
export declare function scrapeHtml(html: string, options?: ScrapeOptions): Promise<ScrapeResult>;
|
|
677
|
+
export declare function scrapeWithBrowser(browser: AgentBrowser, url: string, options?: ScrapeOptions): Promise<ScrapeResult>;
|
|
678
|
+
export interface CrawlOptions extends ScrapeOptions {
|
|
679
|
+
maxDepth?: number;
|
|
680
|
+
maxPages?: number;
|
|
681
|
+
maxConcurrent?: number;
|
|
682
|
+
sameDomain?: boolean;
|
|
683
|
+
delayMs?: number;
|
|
684
|
+
onDiscover?: (url: string, depth: number) => void;
|
|
685
|
+
onResult?: (result: ScrapeResult) => void;
|
|
686
|
+
onError?: (url: string, error: Error) => void;
|
|
687
|
+
}
|
|
688
|
+
export declare function legacycrawl(startUrl: string, options?: CrawlOptions): Promise<{
|
|
689
|
+
results: ScrapeResult[];
|
|
690
|
+
stats: CrawlStats;
|
|
691
|
+
}>;
|
|
692
|
+
export interface ServerConfig {
|
|
693
|
+
port?: number;
|
|
694
|
+
host?: string;
|
|
695
|
+
apiKey?: string;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Creates the self-hosted scrape API surface. The factory became async with
|
|
699
|
+
* the grand merge: the hono application is built on first call and the port
|
|
700
|
+
* draw keeps using the process-wide random port helper.
|
|
701
|
+
*/
|
|
702
|
+
export declare function createServer(config?: ServerConfig): Promise<{
|
|
703
|
+
fetch: any;
|
|
704
|
+
port: number;
|
|
705
|
+
host: string;
|
|
706
|
+
}>;
|
|
707
|
+
/**
|
|
708
|
+
* Runs the webscrape CLI. The former top-level commander construction of
|
|
709
|
+
* scrape/cli.ts became this exported factory in the grand merge: commander
|
|
710
|
+
* is imported on first call and loading the module never requires it.
|
|
711
|
+
*/
|
|
712
|
+
export declare function runscrapecli(): Promise<void>;
|
|
713
|
+
/**
|
|
714
|
+
* Starts the local scrape API dev server. The former top-level bootstrap
|
|
715
|
+
* of scrape/dev-server.ts became this exported factory in the grand merge
|
|
716
|
+
* (a merged module must never bind a port as an import side effect).
|
|
717
|
+
*/
|
|
718
|
+
export declare function startdevserver(): import("node:http").Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse>;
|
|
719
|
+
export {};
|
|
720
|
+
//# sourceMappingURL=webscrape.d.ts.map
|