@withbuddi/buddi 0.1.0-pre.20 → 0.1.0-pre.22
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/node_modules/@buddi/cli/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/cli/dist/args.d.ts +6 -0
- package/node_modules/@buddi/cli/dist/args.d.ts.map +1 -1
- package/node_modules/@buddi/cli/dist/args.js +15 -0
- package/node_modules/@buddi/cli/dist/args.js.map +1 -1
- package/node_modules/@buddi/cli/dist/commands.d.ts.map +1 -1
- package/node_modules/@buddi/cli/dist/commands.js +22 -2
- package/node_modules/@buddi/cli/dist/commands.js.map +1 -1
- package/node_modules/@buddi/cli/dist/main.d.ts.map +1 -1
- package/node_modules/@buddi/cli/dist/main.js +7 -0
- package/node_modules/@buddi/cli/dist/main.js.map +1 -1
- package/node_modules/@buddi/core/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/core/dist/actions/permissions.d.ts +14 -0
- package/node_modules/@buddi/core/dist/actions/permissions.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/actions/permissions.js +15 -0
- package/node_modules/@buddi/core/dist/actions/permissions.js.map +1 -1
- package/node_modules/@buddi/core/dist/agents/catalog.d.ts +12 -1
- package/node_modules/@buddi/core/dist/agents/catalog.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/agents/catalog.js +57 -6
- package/node_modules/@buddi/core/dist/agents/catalog.js.map +1 -1
- package/node_modules/@buddi/core/dist/agents/delegates.d.ts +54 -0
- package/node_modules/@buddi/core/dist/agents/delegates.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/agents/delegates.js +51 -0
- package/node_modules/@buddi/core/dist/agents/delegates.js.map +1 -0
- package/node_modules/@buddi/core/dist/agents/index.d.ts +1 -0
- package/node_modules/@buddi/core/dist/agents/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/agents/index.js +1 -0
- package/node_modules/@buddi/core/dist/agents/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/host/build.d.ts +26 -5
- package/node_modules/@buddi/core/dist/host/build.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/host/build.js +105 -16
- package/node_modules/@buddi/core/dist/host/build.js.map +1 -1
- package/node_modules/@buddi/core/dist/host/types.d.ts +84 -5
- package/node_modules/@buddi/core/dist/host/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/index.d.ts +1 -0
- package/node_modules/@buddi/core/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/index.js +1 -0
- package/node_modules/@buddi/core/dist/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/json-schema.d.ts +32 -0
- package/node_modules/@buddi/core/dist/json-schema.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/json-schema.js +147 -0
- package/node_modules/@buddi/core/dist/json-schema.js.map +1 -0
- package/node_modules/@buddi/core/dist/learning/sources.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/learning/sources.js +3 -0
- package/node_modules/@buddi/core/dist/learning/sources.js.map +1 -1
- package/node_modules/@buddi/core/dist/learning/types.d.ts +4 -3
- package/node_modules/@buddi/core/dist/learning/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/learning/types.js +1 -1
- package/node_modules/@buddi/core/dist/learning/types.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/index.d.ts +1 -0
- package/node_modules/@buddi/core/dist/notifications/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/index.js +1 -0
- package/node_modules/@buddi/core/dist/notifications/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/notify.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/notify.js +47 -5
- package/node_modules/@buddi/core/dist/notifications/notify.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/store.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/store.js +3 -1
- package/node_modules/@buddi/core/dist/notifications/store.js.map +1 -1
- package/node_modules/@buddi/core/dist/notifications/topic.d.ts +25 -0
- package/node_modules/@buddi/core/dist/notifications/topic.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/notifications/topic.js +116 -0
- package/node_modules/@buddi/core/dist/notifications/topic.js.map +1 -0
- package/node_modules/@buddi/core/dist/notifications/types.d.ts +4 -0
- package/node_modules/@buddi/core/dist/notifications/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/onboarding/language-tag.d.ts +12 -0
- package/node_modules/@buddi/core/dist/onboarding/language-tag.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/onboarding/language-tag.js +64 -0
- package/node_modules/@buddi/core/dist/onboarding/language-tag.js.map +1 -0
- package/node_modules/@buddi/core/dist/pages/__fixtures__/demo.d.ts +11 -0
- package/node_modules/@buddi/core/dist/pages/__fixtures__/demo.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/pages/__fixtures__/demo.js +24 -1
- package/node_modules/@buddi/core/dist/pages/__fixtures__/demo.js.map +1 -1
- package/node_modules/@buddi/core/dist/pages.d.ts +93 -0
- package/node_modules/@buddi/core/dist/pages.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/pages.js +40 -1
- package/node_modules/@buddi/core/dist/pages.js.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/index.d.ts +5 -4
- package/node_modules/@buddi/core/dist/plugin/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/version.d.ts +1 -1
- package/node_modules/@buddi/core/dist/plugin/version.js +1 -1
- package/node_modules/@buddi/core/dist/provider-accounts.d.ts +39 -0
- package/node_modules/@buddi/core/dist/provider-accounts.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/provider-accounts.js +8 -0
- package/node_modules/@buddi/core/dist/provider-accounts.js.map +1 -1
- package/node_modules/@buddi/core/dist/registry.d.ts +37 -1
- package/node_modules/@buddi/core/dist/registry.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/registry.js +187 -32
- package/node_modules/@buddi/core/dist/registry.js.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/scrub.d.ts +2 -0
- package/node_modules/@buddi/core/dist/secrets/scrub.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/scrub.js +29 -0
- package/node_modules/@buddi/core/dist/secrets/scrub.js.map +1 -1
- package/node_modules/@buddi/core/dist/surfaces.d.ts +11 -0
- package/node_modules/@buddi/core/dist/surfaces.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/surfaces.js +4 -0
- package/node_modules/@buddi/core/dist/surfaces.js.map +1 -1
- package/node_modules/@buddi/core/dist/tools.d.ts +36 -1
- package/node_modules/@buddi/core/dist/tools.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/tools.js.map +1 -1
- package/node_modules/@buddi/core/dist/views.d.ts +12 -12
- package/node_modules/@buddi/core/migrations/048_surface_chat_voice.sql +13 -0
- package/node_modules/@buddi/core/migrations/049_surface_chat_voice_form.sql +8 -0
- package/node_modules/@buddi/core/migrations/050_notification_topic.sql +8 -0
- package/node_modules/@buddi/core/package.json +2 -0
- package/node_modules/@buddi/gateway/assets/mascot/core-idle.tgs +0 -0
- package/node_modules/@buddi/gateway/assets/mascot/core-working.tgs +0 -0
- package/node_modules/@buddi/gateway/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/gateway/dist/agents/canvas.d.ts +2 -2
- package/node_modules/@buddi/gateway/dist/agents/canvas.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/canvas.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/catalog.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/catalog.js +15 -6
- package/node_modules/@buddi/gateway/dist/agents/catalog.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/delegation.d.ts +20 -3
- package/node_modules/@buddi/gateway/dist/agents/delegation.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/delegation.js +38 -12
- package/node_modules/@buddi/gateway/dist/agents/delegation.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/platform.d.ts +43 -13
- package/node_modules/@buddi/gateway/dist/agents/platform.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/platform.js +97 -3
- package/node_modules/@buddi/gateway/dist/agents/platform.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents/starter-team.d.ts +57 -0
- package/node_modules/@buddi/gateway/dist/agents/starter-team.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/agents/starter-team.js +151 -0
- package/node_modules/@buddi/gateway/dist/agents/starter-team.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/agents-cli.d.ts +2 -0
- package/node_modules/@buddi/gateway/dist/agents-cli.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/agents-cli.js +5 -3
- package/node_modules/@buddi/gateway/dist/agents-cli.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/anthropic-accounts.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/anthropic-accounts.js +9 -20
- package/node_modules/@buddi/gateway/dist/anthropic-accounts.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/bootstrap.d.ts +3 -0
- package/node_modules/@buddi/gateway/dist/bootstrap.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/bootstrap.js +58 -2
- package/node_modules/@buddi/gateway/dist/bootstrap.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/chat/session.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/chat/session.js +2 -2
- package/node_modules/@buddi/gateway/dist/chat/session.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/chat/usage.d.ts +16 -0
- package/node_modules/@buddi/gateway/dist/chat/usage.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/chat/usage.js +53 -11
- package/node_modules/@buddi/gateway/dist/chat/usage.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/codex-accounts.d.ts +7 -1
- package/node_modules/@buddi/gateway/dist/codex-accounts.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/codex-accounts.js +25 -26
- package/node_modules/@buddi/gateway/dist/codex-accounts.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/index.d.ts +1 -0
- package/node_modules/@buddi/gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/index.js +1 -0
- package/node_modules/@buddi/gateway/dist/index.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.d.ts +8 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.js +8 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/goals-page.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/goals-page.js +57 -0
- package/node_modules/@buddi/gateway/dist/missions/goals-page.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/approve.js +45 -9
- package/node_modules/@buddi/gateway/dist/plugins/approve.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/load.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/load.js +4 -0
- package/node_modules/@buddi/gateway/dist/plugins/load.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/npm.d.ts +5 -1
- package/node_modules/@buddi/gateway/dist/plugins/npm.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/npm.js +6 -0
- package/node_modules/@buddi/gateway/dist/plugins/npm.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/scaffold.d.ts +15 -4
- package/node_modules/@buddi/gateway/dist/plugins/scaffold.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/scaffold.js +86 -16
- package/node_modules/@buddi/gateway/dist/plugins/scaffold.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/stage.d.ts +35 -1
- package/node_modules/@buddi/gateway/dist/plugins/stage.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins/stage.js +134 -8
- package/node_modules/@buddi/gateway/dist/plugins/stage.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins-cli.d.ts +5 -1
- package/node_modules/@buddi/gateway/dist/plugins-cli.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/plugins-cli.js +26 -4
- package/node_modules/@buddi/gateway/dist/plugins-cli.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/provider-accounts.d.ts +4 -0
- package/node_modules/@buddi/gateway/dist/provider-accounts.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/provider-accounts.js +34 -4
- package/node_modules/@buddi/gateway/dist/provider-accounts.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/provider-diagnostics.d.ts +14 -2
- package/node_modules/@buddi/gateway/dist/provider-diagnostics.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/provider-diagnostics.js +25 -9
- package/node_modules/@buddi/gateway/dist/provider-diagnostics.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/speech-cli.d.ts +43 -0
- package/node_modules/@buddi/gateway/dist/speech-cli.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/speech-cli.js +105 -0
- package/node_modules/@buddi/gateway/dist/speech-cli.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/telegram/api.d.ts +59 -0
- package/node_modules/@buddi/gateway/dist/telegram/api.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/api.js +111 -0
- package/node_modules/@buddi/gateway/dist/telegram/api.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/browser-view.d.ts +2 -1
- package/node_modules/@buddi/gateway/dist/telegram/browser-view.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/browser-view.js +4 -2
- package/node_modules/@buddi/gateway/dist/telegram/browser-view.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/main.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/main.js +27 -2
- package/node_modules/@buddi/gateway/dist/telegram/main.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/outbound.d.ts +5 -0
- package/node_modules/@buddi/gateway/dist/telegram/outbound.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/outbound.js +10 -0
- package/node_modules/@buddi/gateway/dist/telegram/outbound.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/stickers.d.ts +30 -0
- package/node_modules/@buddi/gateway/dist/telegram/stickers.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/telegram/stickers.js +146 -0
- package/node_modules/@buddi/gateway/dist/telegram/stickers.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/telegram/surface.d.ts +31 -0
- package/node_modules/@buddi/gateway/dist/telegram/surface.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/surface.js +248 -13
- package/node_modules/@buddi/gateway/dist/telegram/surface.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/voice.d.ts +112 -0
- package/node_modules/@buddi/gateway/dist/telegram/voice.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/telegram/voice.js +220 -0
- package/node_modules/@buddi/gateway/dist/telegram/voice.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/engine.d.ts +75 -0
- package/node_modules/@buddi/gateway/dist/tips/engine.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/engine.js +135 -0
- package/node_modules/@buddi/gateway/dist/tips/engine.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/facts.d.ts +69 -0
- package/node_modules/@buddi/gateway/dist/tips/facts.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/facts.js +104 -0
- package/node_modules/@buddi/gateway/dist/tips/facts.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/route.d.ts +25 -0
- package/node_modules/@buddi/gateway/dist/tips/route.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/route.js +96 -0
- package/node_modules/@buddi/gateway/dist/tips/route.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/rules.d.ts +33 -0
- package/node_modules/@buddi/gateway/dist/tips/rules.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/tips/rules.js +54 -0
- package/node_modules/@buddi/gateway/dist/tips/rules.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/agent-offers.d.ts +30 -0
- package/node_modules/@buddi/gateway/dist/web/agent-offers.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/agent-offers.js +64 -1
- package/node_modules/@buddi/gateway/dist/web/agent-offers.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/chat.d.ts +31 -8
- package/node_modules/@buddi/gateway/dist/web/chat.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/chat.js +3 -2
- package/node_modules/@buddi/gateway/dist/web/chat.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/connections.d.ts +83 -0
- package/node_modules/@buddi/gateway/dist/web/connections.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/connections.js +270 -0
- package/node_modules/@buddi/gateway/dist/web/connections.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/onboarding.d.ts +14 -3
- package/node_modules/@buddi/gateway/dist/web/onboarding.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/onboarding.js +29 -7
- package/node_modules/@buddi/gateway/dist/web/onboarding.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/plugins.d.ts +12 -0
- package/node_modules/@buddi/gateway/dist/web/plugins.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/plugins.js +12 -2
- package/node_modules/@buddi/gateway/dist/web/plugins.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/profile.js +3 -2
- package/node_modules/@buddi/gateway/dist/web/profile.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/read.d.ts +21 -12
- package/node_modules/@buddi/gateway/dist/web/read.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/read.js +20 -14
- package/node_modules/@buddi/gateway/dist/web/read.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/server.d.ts +6 -0
- package/node_modules/@buddi/gateway/dist/web/server.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/server.js +84 -2
- package/node_modules/@buddi/gateway/dist/web/server.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/speech.d.ts +47 -0
- package/node_modules/@buddi/gateway/dist/web/speech.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/speech.js +83 -0
- package/node_modules/@buddi/gateway/dist/web/speech.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/static.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/static.js +1 -0
- package/node_modules/@buddi/gateway/dist/web/static.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/stream.d.ts +0 -24
- package/node_modules/@buddi/gateway/dist/web/stream.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/stream.js +26 -2
- package/node_modules/@buddi/gateway/dist/web/stream.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/usage-view.d.ts +15 -0
- package/node_modules/@buddi/gateway/dist/web/usage-view.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/usage-view.js +20 -0
- package/node_modules/@buddi/gateway/dist/web/usage-view.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/version.d.ts +2 -0
- package/node_modules/@buddi/gateway/dist/web/version.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/version.js +27 -0
- package/node_modules/@buddi/gateway/dist/web/version.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/write.d.ts +5 -0
- package/node_modules/@buddi/gateway/dist/web/write.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/write.js +20 -1
- package/node_modules/@buddi/gateway/dist/web/write.js.map +1 -1
- package/node_modules/@buddi/gateway/package.json +4 -1
- package/node_modules/@buddi/gateway/src/agents/starter/keeper/agent.md +31 -0
- package/node_modules/@buddi/gateway/src/agents/starter/keeper/skills/keeping-a-history.md +22 -0
- package/node_modules/@buddi/gateway/src/agents/starter/planner/agent.md +30 -0
- package/node_modules/@buddi/gateway/src/agents/starter/planner/skills/holding-a-follow-up.md +17 -0
- package/node_modules/@buddi/gateway/src/agents/starter/planner/skills/writing-the-morning-brief.md +25 -0
- package/node_modules/@buddi/gateway/src/agents/starter/scout/agent.md +33 -0
- package/node_modules/@buddi/gateway/src/agents/starter/scout/skills/answering-with-sources.md +23 -0
- package/node_modules/@buddi/gateway/src/agents/starter/scout/skills/the-web-is-evidence.md +25 -0
- package/node_modules/@buddi/install/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/runtime/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/runtime/dist/anthropic-oauth.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/anthropic-oauth.js +38 -73
- package/node_modules/@buddi/runtime/dist/anthropic-oauth.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/anthropic.d.ts +18 -0
- package/node_modules/@buddi/runtime/dist/anthropic.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/anthropic.js +65 -13
- package/node_modules/@buddi/runtime/dist/anthropic.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/codex-direct.d.ts +39 -0
- package/node_modules/@buddi/runtime/dist/codex-direct.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/codex-direct.js +133 -3
- package/node_modules/@buddi/runtime/dist/codex-direct.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/codex-oauth.d.ts +0 -12
- package/node_modules/@buddi/runtime/dist/codex-oauth.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/codex-oauth.js +32 -45
- package/node_modules/@buddi/runtime/dist/codex-oauth.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/context-window.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/context-window.js +13 -4
- package/node_modules/@buddi/runtime/dist/context-window.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/delegate.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/delegate.js +4 -2
- package/node_modules/@buddi/runtime/dist/delegate.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/index.d.ts +2 -0
- package/node_modules/@buddi/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/index.js +2 -0
- package/node_modules/@buddi/runtime/dist/index.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/loop.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/loop.js +6 -0
- package/node_modules/@buddi/runtime/dist/loop.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/oauth-port.d.ts +68 -0
- package/node_modules/@buddi/runtime/dist/oauth-port.d.ts.map +1 -0
- package/node_modules/@buddi/runtime/dist/oauth-port.js +51 -0
- package/node_modules/@buddi/runtime/dist/oauth-port.js.map +1 -0
- package/node_modules/@buddi/runtime/dist/oauth.d.ts +255 -0
- package/node_modules/@buddi/runtime/dist/oauth.d.ts.map +1 -0
- package/node_modules/@buddi/runtime/dist/oauth.js +535 -0
- package/node_modules/@buddi/runtime/dist/oauth.js.map +1 -0
- package/node_modules/@buddi/runtime/dist/openai.d.ts +16 -4
- package/node_modules/@buddi/runtime/dist/openai.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/openai.js +23 -4
- package/node_modules/@buddi/runtime/dist/openai.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/provider-models.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/provider-models.js +5 -1
- package/node_modules/@buddi/runtime/dist/provider-models.js.map +1 -1
- package/node_modules/@buddi/tool-artifacts/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-browser/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-browser/dist/computer.d.ts +53 -1
- package/node_modules/@buddi/tool-browser/dist/computer.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/computer.js +154 -5
- package/node_modules/@buddi/tool-browser/dist/computer.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/controller.d.ts +20 -3
- package/node_modules/@buddi/tool-browser/dist/controller.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/controller.js +170 -5
- package/node_modules/@buddi/tool-browser/dist/controller.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.js +9 -1
- package/node_modules/@buddi/tool-browser/dist/index.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/service.d.ts +14 -1
- package/node_modules/@buddi/tool-browser/dist/service.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/service.js +28 -5
- package/node_modules/@buddi/tool-browser/dist/service.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/types.d.ts +11 -0
- package/node_modules/@buddi/tool-browser/dist/types.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/types.js +16 -3
- package/node_modules/@buddi/tool-browser/dist/types.js.map +1 -1
- package/node_modules/@buddi/tool-browser/package.json +1 -1
- package/node_modules/@buddi/tool-email/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-email/dist/types.d.ts +2 -2
- package/node_modules/@buddi/tool-email/dist/types.d.ts.map +1 -1
- package/node_modules/@buddi/tool-host/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-mcp/dist/.tsbuildinfo +1 -0
- package/node_modules/@buddi/tool-mcp/dist/catalog.d.ts +26 -0
- package/node_modules/@buddi/tool-mcp/dist/catalog.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/catalog.js +17 -0
- package/node_modules/@buddi/tool-mcp/dist/catalog.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/fetch.d.ts +44 -0
- package/node_modules/@buddi/tool-mcp/dist/fetch.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/fetch.js +88 -0
- package/node_modules/@buddi/tool-mcp/dist/fetch.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/index.d.ts +27 -0
- package/node_modules/@buddi/tool-mcp/dist/index.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/index.js +74 -0
- package/node_modules/@buddi/tool-mcp/dist/index.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/output.d.ts +38 -0
- package/node_modules/@buddi/tool-mcp/dist/output.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/output.js +90 -0
- package/node_modules/@buddi/tool-mcp/dist/output.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/ports.d.ts +105 -0
- package/node_modules/@buddi/tool-mcp/dist/ports.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/ports.js +9 -0
- package/node_modules/@buddi/tool-mcp/dist/ports.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/service.d.ts +220 -0
- package/node_modules/@buddi/tool-mcp/dist/service.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/service.js +742 -0
- package/node_modules/@buddi/tool-mcp/dist/service.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/session.d.ts +50 -0
- package/node_modules/@buddi/tool-mcp/dist/session.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/session.js +108 -0
- package/node_modules/@buddi/tool-mcp/dist/session.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/store.d.ts +70 -0
- package/node_modules/@buddi/tool-mcp/dist/store.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/store.js +78 -0
- package/node_modules/@buddi/tool-mcp/dist/store.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/testing/fake.d.ts +51 -0
- package/node_modules/@buddi/tool-mcp/dist/testing/fake.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/testing/fake.js +147 -0
- package/node_modules/@buddi/tool-mcp/dist/testing/fake.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/tiers.d.ts +51 -0
- package/node_modules/@buddi/tool-mcp/dist/tiers.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/tiers.js +106 -0
- package/node_modules/@buddi/tool-mcp/dist/tiers.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/tokens.d.ts +35 -0
- package/node_modules/@buddi/tool-mcp/dist/tokens.d.ts.map +1 -0
- package/node_modules/@buddi/tool-mcp/dist/tokens.js +75 -0
- package/node_modules/@buddi/tool-mcp/dist/tokens.js.map +1 -0
- package/node_modules/@buddi/tool-mcp/migrations/001_connections.sql +49 -0
- package/node_modules/@buddi/tool-mcp/migrations/002_review_again.sql +15 -0
- package/node_modules/@buddi/tool-mcp/package.json +34 -0
- package/node_modules/@buddi/tool-memory/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-web/dist/.tsbuildinfo +1 -1
- package/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js +1 -5
- package/node_modules/@zone-eu/mailsplit/lib/headers.js +35 -25
- package/node_modules/@zone-eu/mailsplit/lib/message-splitter.js +126 -79
- package/node_modules/@zone-eu/mailsplit/lib/mime-node.js +27 -5
- package/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js +3 -2
- package/node_modules/@zone-eu/mailsplit/lib/types.d.ts +0 -3
- package/node_modules/@zone-eu/mailsplit/package.json +5 -5
- package/node_modules/hono/dist/_virtual/_rolldown/runtime.js +13 -0
- package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +42 -23
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +318 -344
- package/node_modules/hono/dist/adapter/aws-lambda/index.js +2 -8
- package/node_modules/hono/dist/adapter/aws-lambda/types.js +1 -0
- package/node_modules/hono/dist/adapter/bun/conninfo.js +20 -25
- package/node_modules/hono/dist/adapter/bun/index.js +3 -13
- package/node_modules/hono/dist/adapter/bun/serve-static.js +27 -27
- package/node_modules/hono/dist/adapter/bun/server.js +11 -5
- package/node_modules/hono/dist/adapter/bun/ssg.js +25 -15
- package/node_modules/hono/dist/adapter/bun/websocket.js +61 -68
- package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +24 -9
- package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +59 -62
- package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +2 -8
- package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +7 -9
- package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +3 -8
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +5 -6
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +26 -20
- package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +21 -34
- package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +31 -39
- package/node_modules/hono/dist/adapter/deno/conninfo.js +16 -13
- package/node_modules/hono/dist/adapter/deno/deno.d.js +1 -0
- package/node_modules/hono/dist/adapter/deno/index.js +3 -10
- package/node_modules/hono/dist/adapter/deno/serve-static.js +33 -38
- package/node_modules/hono/dist/adapter/deno/ssg.js +27 -16
- package/node_modules/hono/dist/adapter/deno/websocket.js +30 -30
- package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +7 -9
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +102 -101
- package/node_modules/hono/dist/adapter/lambda-edge/index.js +2 -6
- package/node_modules/hono/dist/adapter/netlify/conninfo.js +24 -9
- package/node_modules/hono/dist/adapter/netlify/handler.js +10 -8
- package/node_modules/hono/dist/adapter/netlify/index.js +3 -2
- package/node_modules/hono/dist/adapter/netlify/mod.js +2 -6
- package/node_modules/hono/dist/adapter/service-worker/handler.js +15 -19
- package/node_modules/hono/dist/adapter/service-worker/index.js +23 -7
- package/node_modules/hono/dist/adapter/service-worker/types.js +1 -0
- package/node_modules/hono/dist/adapter/vercel/conninfo.js +7 -10
- package/node_modules/hono/dist/adapter/vercel/handler.js +8 -6
- package/node_modules/hono/dist/adapter/vercel/index.js +2 -6
- package/node_modules/hono/dist/cjs/_virtual/_rolldown/runtime.js +33 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +42 -44
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +326 -373
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +7 -34
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -15
- package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +21 -47
- package/node_modules/hono/dist/cjs/adapter/bun/index.js +14 -45
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +29 -50
- package/node_modules/hono/dist/cjs/adapter/bun/server.js +11 -26
- package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +24 -35
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +63 -91
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +25 -31
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +61 -85
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +7 -34
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +8 -31
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +7 -33
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +7 -29
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +27 -42
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +21 -55
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +33 -62
- package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +16 -34
- package/node_modules/hono/dist/cjs/adapter/deno/index.js +10 -38
- package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +33 -59
- package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +27 -37
- package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +32 -53
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +8 -31
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +102 -130
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +5 -30
- package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +25 -31
- package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +10 -29
- package/node_modules/hono/dist/cjs/adapter/netlify/index.js +5 -21
- package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +5 -30
- package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +16 -41
- package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +25 -30
- package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -15
- package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +8 -32
- package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +8 -27
- package/node_modules/hono/dist/cjs/adapter/vercel/index.js +5 -30
- package/node_modules/hono/dist/cjs/client/client.js +139 -212
- package/node_modules/hono/dist/cjs/client/fetch-result-please.js +62 -80
- package/node_modules/hono/dist/cjs/client/index.js +7 -32
- package/node_modules/hono/dist/cjs/client/types.js +0 -15
- package/node_modules/hono/dist/cjs/client/utils.js +54 -92
- package/node_modules/hono/dist/cjs/compose.js +49 -66
- package/node_modules/hono/dist/cjs/context.js +379 -450
- package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +47 -72
- package/node_modules/hono/dist/cjs/helper/accepts/index.js +3 -27
- package/node_modules/hono/dist/cjs/helper/adapter/index.js +33 -73
- package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -15
- package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -15
- package/node_modules/hono/dist/cjs/helper/cookie/index.js +75 -116
- package/node_modules/hono/dist/cjs/helper/css/common.js +165 -244
- package/node_modules/hono/dist/cjs/helper/css/index.js +136 -151
- package/node_modules/hono/dist/cjs/helper/dev/index.js +45 -71
- package/node_modules/hono/dist/cjs/helper/factory/index.js +30 -51
- package/node_modules/hono/dist/cjs/helper/html/index.js +32 -62
- package/node_modules/hono/dist/cjs/helper/proxy/index.js +113 -106
- package/node_modules/hono/dist/cjs/helper/route/index.js +123 -66
- package/node_modules/hono/dist/cjs/helper/ssg/index.js +19 -43
- package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +56 -64
- package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +55 -57
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +196 -296
- package/node_modules/hono/dist/cjs/helper/ssg/utils.js +47 -90
- package/node_modules/hono/dist/cjs/helper/streaming/index.js +8 -35
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +53 -85
- package/node_modules/hono/dist/cjs/helper/streaming/stream.js +23 -53
- package/node_modules/hono/dist/cjs/helper/streaming/text.js +10 -32
- package/node_modules/hono/dist/cjs/helper/streaming/utils.js +13 -32
- package/node_modules/hono/dist/cjs/helper/testing/index.js +16 -31
- package/node_modules/hono/dist/cjs/helper/websocket/index.js +51 -76
- package/node_modules/hono/dist/cjs/hono-base.js +345 -403
- package/node_modules/hono/dist/cjs/hono.js +28 -42
- package/node_modules/hono/dist/cjs/http-exception.js +55 -56
- package/node_modules/hono/dist/cjs/index.js +22 -30
- package/node_modules/hono/dist/cjs/jsx/base.js +237 -366
- package/node_modules/hono/dist/cjs/jsx/children.js +16 -41
- package/node_modules/hono/dist/cjs/jsx/components.js +119 -192
- package/node_modules/hono/dist/cjs/jsx/constants.js +15 -42
- package/node_modules/hono/dist/cjs/jsx/context.js +144 -162
- package/node_modules/hono/dist/cjs/jsx/dom/client.js +49 -69
- package/node_modules/hono/dist/cjs/jsx/dom/components.js +23 -52
- package/node_modules/hono/dist/cjs/jsx/dom/context.js +39 -67
- package/node_modules/hono/dist/cjs/jsx/dom/css.js +143 -158
- package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +55 -64
- package/node_modules/hono/dist/cjs/jsx/dom/index.js +114 -173
- package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +282 -375
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +14 -49
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +5 -32
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +469 -623
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +37 -64
- package/node_modules/hono/dist/cjs/jsx/dom/utils.js +7 -30
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +225 -318
- package/node_modules/hono/dist/cjs/jsx/index.js +86 -135
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +20 -43
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +117 -168
- package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -15
- package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +14 -39
- package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +34 -68
- package/node_modules/hono/dist/cjs/jsx/streaming.js +123 -166
- package/node_modules/hono/dist/cjs/jsx/types.js +0 -15
- package/node_modules/hono/dist/cjs/jsx/utils.js +91 -175
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +98 -86
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +92 -109
- package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +66 -72
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +153 -199
- package/node_modules/hono/dist/cjs/middleware/combine/index.js +133 -95
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +73 -88
- package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +49 -41
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +107 -107
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +101 -72
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +58 -97
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +71 -91
- package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +161 -169
- package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +99 -77
- package/node_modules/hono/dist/cjs/middleware/jwk/index.js +3 -27
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +118 -135
- package/node_modules/hono/dist/cjs/middleware/jwt/index.js +9 -38
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +120 -141
- package/node_modules/hono/dist/cjs/middleware/language/index.js +7 -35
- package/node_modules/hono/dist/cjs/middleware/language/language.js +184 -182
- package/node_modules/hono/dist/cjs/middleware/logger/index.js +41 -62
- package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +82 -88
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +101 -102
- package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +23 -30
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +38 -42
- package/node_modules/hono/dist/cjs/middleware/request-id/index.js +3 -27
- package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +34 -42
- package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +4 -29
- package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -15
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +142 -174
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +55 -93
- package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +15 -38
- package/node_modules/hono/dist/cjs/middleware/timeout/index.js +40 -45
- package/node_modules/hono/dist/cjs/middleware/timing/index.js +7 -35
- package/node_modules/hono/dist/cjs/middleware/timing/timing.js +177 -118
- package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +85 -58
- package/node_modules/hono/dist/cjs/preset/quick.js +18 -37
- package/node_modules/hono/dist/cjs/preset/tiny.js +15 -33
- package/node_modules/hono/dist/cjs/request/constants.js +5 -27
- package/node_modules/hono/dist/cjs/request.js +334 -346
- package/node_modules/hono/dist/cjs/router/linear-router/index.js +3 -27
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +95 -143
- package/node_modules/hono/dist/cjs/router/pattern-router/index.js +3 -27
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +41 -63
- package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +7 -34
- package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +18 -45
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +91 -135
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +92 -161
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +98 -147
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +73 -89
- package/node_modules/hono/dist/cjs/router/smart-router/index.js +3 -27
- package/node_modules/hono/dist/cjs/router/smart-router/router.js +49 -79
- package/node_modules/hono/dist/cjs/router/trie-router/index.js +3 -27
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +134 -186
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +15 -39
- package/node_modules/hono/dist/cjs/router/utils.js +5 -27
- package/node_modules/hono/dist/cjs/router.js +37 -37
- package/node_modules/hono/dist/cjs/types.js +5 -28
- package/node_modules/hono/dist/cjs/utils/accept.js +177 -225
- package/node_modules/hono/dist/cjs/utils/basic-auth.js +16 -40
- package/node_modules/hono/dist/cjs/utils/body.js +84 -110
- package/node_modules/hono/dist/cjs/utils/buffer.js +43 -91
- package/node_modules/hono/dist/cjs/utils/color.js +35 -44
- package/node_modules/hono/dist/cjs/utils/compress.js +11 -26
- package/node_modules/hono/dist/cjs/utils/concurrent.js +29 -59
- package/node_modules/hono/dist/cjs/utils/constants.js +7 -26
- package/node_modules/hono/dist/cjs/utils/cookie.js +107 -177
- package/node_modules/hono/dist/cjs/utils/crypto.js +30 -61
- package/node_modules/hono/dist/cjs/utils/encode.js +31 -48
- package/node_modules/hono/dist/cjs/utils/filepath.js +23 -54
- package/node_modules/hono/dist/cjs/utils/handler.js +11 -33
- package/node_modules/hono/dist/cjs/utils/headers.js +0 -15
- package/node_modules/hono/dist/cjs/utils/html.js +96 -137
- package/node_modules/hono/dist/cjs/utils/http-status.js +0 -15
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +213 -286
- package/node_modules/hono/dist/cjs/utils/jwt/index.js +14 -27
- package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +25 -42
- package/node_modules/hono/dist/cjs/utils/jwt/jws.js +119 -199
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +122 -206
- package/node_modules/hono/dist/cjs/utils/jwt/types.js +122 -159
- package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +9 -28
- package/node_modules/hono/dist/cjs/utils/mime.js +75 -101
- package/node_modules/hono/dist/cjs/utils/stream.js +88 -111
- package/node_modules/hono/dist/cjs/utils/types.js +0 -15
- package/node_modules/hono/dist/cjs/utils/url.js +185 -234
- package/node_modules/hono/dist/cjs/validator/index.js +3 -27
- package/node_modules/hono/dist/cjs/validator/utils.js +0 -15
- package/node_modules/hono/dist/cjs/validator/validator.js +60 -103
- package/node_modules/hono/dist/client/client.js +138 -197
- package/node_modules/hono/dist/client/fetch-result-please.js +59 -56
- package/node_modules/hono/dist/client/index.js +3 -7
- package/node_modules/hono/dist/client/types.js +1 -0
- package/node_modules/hono/dist/client/utils.js +51 -68
- package/node_modules/hono/dist/compose.js +49 -45
- package/node_modules/hono/dist/context.js +376 -426
- package/node_modules/hono/dist/helper/accepts/accepts.js +47 -51
- package/node_modules/hono/dist/helper/accepts/index.js +1 -4
- package/node_modules/hono/dist/helper/adapter/index.js +33 -52
- package/node_modules/hono/dist/helper/conninfo/index.js +1 -0
- package/node_modules/hono/dist/helper/conninfo/types.js +1 -0
- package/node_modules/hono/dist/helper/cookie/index.js +74 -94
- package/node_modules/hono/dist/helper/css/common.js +167 -225
- package/node_modules/hono/dist/helper/css/index.js +132 -137
- package/node_modules/hono/dist/helper/dev/index.js +44 -49
- package/node_modules/hono/dist/helper/factory/index.js +27 -27
- package/node_modules/hono/dist/helper/html/index.js +30 -39
- package/node_modules/hono/dist/helper/proxy/index.js +116 -88
- package/node_modules/hono/dist/helper/route/index.js +121 -43
- package/node_modules/hono/dist/helper/ssg/index.js +3 -18
- package/node_modules/hono/dist/helper/ssg/middleware.js +53 -40
- package/node_modules/hono/dist/helper/ssg/plugins.js +55 -36
- package/node_modules/hono/dist/helper/ssg/ssg.js +198 -283
- package/node_modules/hono/dist/helper/ssg/utils.js +53 -75
- package/node_modules/hono/dist/helper/streaming/index.js +2 -8
- package/node_modules/hono/dist/helper/streaming/sse.js +50 -61
- package/node_modules/hono/dist/helper/streaming/stream.js +22 -31
- package/node_modules/hono/dist/helper/streaming/text.js +9 -10
- package/node_modules/hono/dist/helper/streaming/utils.js +9 -12
- package/node_modules/hono/dist/helper/testing/index.js +16 -10
- package/node_modules/hono/dist/helper/websocket/index.js +49 -53
- package/node_modules/hono/dist/hono-base.js +342 -379
- package/node_modules/hono/dist/hono.js +27 -20
- package/node_modules/hono/dist/http-exception.js +53 -33
- package/node_modules/hono/dist/index.js +19 -6
- package/node_modules/hono/dist/jsx/base.js +231 -340
- package/node_modules/hono/dist/jsx/children.js +16 -20
- package/node_modules/hono/dist/jsx/components.js +118 -170
- package/node_modules/hono/dist/jsx/constants.js +9 -15
- package/node_modules/hono/dist/jsx/context.js +153 -150
- package/node_modules/hono/dist/jsx/dom/client.js +45 -48
- package/node_modules/hono/dist/jsx/dom/components.js +21 -29
- package/node_modules/hono/dist/jsx/dom/context.js +37 -44
- package/node_modules/hono/dist/jsx/dom/css.js +142 -147
- package/node_modules/hono/dist/jsx/dom/hooks/index.js +52 -40
- package/node_modules/hono/dist/jsx/dom/index.js +71 -134
- package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +275 -359
- package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +14 -18
- package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +2 -8
- package/node_modules/hono/dist/jsx/dom/render.js +492 -631
- package/node_modules/hono/dist/jsx/dom/server.js +32 -32
- package/node_modules/hono/dist/jsx/dom/utils.js +6 -8
- package/node_modules/hono/dist/jsx/hooks/index.js +236 -308
- package/node_modules/hono/dist/jsx/index.js +45 -98
- package/node_modules/hono/dist/jsx/intrinsic-element/common.js +20 -22
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +113 -154
- package/node_modules/hono/dist/jsx/intrinsic-elements.js +1 -0
- package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +12 -16
- package/node_modules/hono/dist/jsx/jsx-runtime.js +29 -42
- package/node_modules/hono/dist/jsx/streaming.js +120 -142
- package/node_modules/hono/dist/jsx/types.js +1 -0
- package/node_modules/hono/dist/jsx/utils.js +105 -168
- package/node_modules/hono/dist/middleware/basic-auth/index.js +96 -63
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +93 -89
- package/node_modules/hono/dist/middleware/body-limit/index.js +66 -51
- package/node_modules/hono/dist/middleware/cache/index.js +165 -190
- package/node_modules/hono/dist/middleware/combine/index.js +132 -73
- package/node_modules/hono/dist/middleware/compress/index.js +75 -69
- package/node_modules/hono/dist/middleware/context-storage/index.js +49 -19
- package/node_modules/hono/dist/middleware/cors/index.js +107 -86
- package/node_modules/hono/dist/middleware/csrf/index.js +103 -53
- package/node_modules/hono/dist/middleware/etag/digest.js +59 -77
- package/node_modules/hono/dist/middleware/etag/index.js +71 -70
- package/node_modules/hono/dist/middleware/ip-restriction/index.js +163 -158
- package/node_modules/hono/dist/middleware/jsx-renderer/index.js +97 -54
- package/node_modules/hono/dist/middleware/jwk/index.js +1 -4
- package/node_modules/hono/dist/middleware/jwk/jwk.js +116 -112
- package/node_modules/hono/dist/middleware/jwt/index.js +2 -10
- package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -114
- package/node_modules/hono/dist/middleware/language/index.js +2 -15
- package/node_modules/hono/dist/middleware/language/language.js +180 -157
- package/node_modules/hono/dist/middleware/logger/index.js +43 -37
- package/node_modules/hono/dist/middleware/method-not-allowed/index.js +81 -66
- package/node_modules/hono/dist/middleware/method-override/index.js +101 -81
- package/node_modules/hono/dist/middleware/powered-by/index.js +23 -9
- package/node_modules/hono/dist/middleware/pretty-json/index.js +39 -22
- package/node_modules/hono/dist/middleware/request-id/index.js +1 -4
- package/node_modules/hono/dist/middleware/request-id/request-id.js +33 -20
- package/node_modules/hono/dist/middleware/secure-headers/index.js +1 -5
- package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +1 -0
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +144 -155
- package/node_modules/hono/dist/middleware/serve-static/index.js +55 -72
- package/node_modules/hono/dist/middleware/serve-static/path.js +15 -17
- package/node_modules/hono/dist/middleware/timeout/index.js +40 -23
- package/node_modules/hono/dist/middleware/timing/index.js +2 -9
- package/node_modules/hono/dist/middleware/timing/timing.js +177 -97
- package/node_modules/hono/dist/middleware/trailing-slash/index.js +85 -37
- package/node_modules/hono/dist/preset/quick.js +17 -15
- package/node_modules/hono/dist/preset/tiny.js +14 -11
- package/node_modules/hono/dist/request/constants.js +4 -5
- package/node_modules/hono/dist/request.js +328 -319
- package/node_modules/hono/dist/router/linear-router/index.js +1 -4
- package/node_modules/hono/dist/router/linear-router/router.js +93 -120
- package/node_modules/hono/dist/router/pattern-router/index.js +1 -4
- package/node_modules/hono/dist/router/pattern-router/router.js +39 -40
- package/node_modules/hono/dist/router/reg-exp-router/index.js +1 -7
- package/node_modules/hono/dist/router/reg-exp-router/matcher.js +17 -23
- package/node_modules/hono/dist/router/reg-exp-router/node.js +87 -110
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +89 -137
- package/node_modules/hono/dist/router/reg-exp-router/router.js +92 -129
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +69 -64
- package/node_modules/hono/dist/router/smart-router/index.js +1 -4
- package/node_modules/hono/dist/router/smart-router/router.js +46 -55
- package/node_modules/hono/dist/router/trie-router/index.js +1 -4
- package/node_modules/hono/dist/router/trie-router/node.js +131 -162
- package/node_modules/hono/dist/router/trie-router/router.js +11 -14
- package/node_modules/hono/dist/router/utils.js +4 -5
- package/node_modules/hono/dist/router.js +35 -14
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +4 -1
- package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +150 -105
- package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +4 -8
- package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +152 -123
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +4 -1
- package/node_modules/hono/dist/types/adapter/bun/index.d.ts +6 -10
- package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +7 -2
- package/node_modules/hono/dist/types/adapter/bun/server.d.ts +4 -5
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +5 -1
- package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +31 -17
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +4 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +29 -18
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +3 -7
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +4 -7
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +5 -3
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +10 -5
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +10 -2
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +4 -1
- package/node_modules/hono/dist/types/adapter/deno/deno.d.ts +1 -0
- package/node_modules/hono/dist/types/adapter/deno/index.d.ts +5 -8
- package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +7 -2
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +5 -1
- package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +83 -58
- package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +3 -7
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +4 -1
- package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +3 -5
- package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +3 -2
- package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +9 -8
- package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +6 -9
- package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -8
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +6 -1
- package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +3 -6
- package/node_modules/hono/dist/types/client/client.d.ts +5 -3
- package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +21 -19
- package/node_modules/hono/dist/types/client/index.d.ts +5 -7
- package/node_modules/hono/dist/types/client/types.d.ts +134 -160
- package/node_modules/hono/dist/types/client/utils.d.ts +6 -4
- package/node_modules/hono/dist/types/compose.d.ts +4 -2
- package/node_modules/hono/dist/types/context.d.ts +335 -336
- package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +11 -9
- package/node_modules/hono/dist/types/helper/accepts/index.d.ts +2 -5
- package/node_modules/hono/dist/types/helper/adapter/index.d.ts +4 -6
- package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +2 -5
- package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +25 -23
- package/node_modules/hono/dist/types/helper/cookie/index.d.ts +10 -13
- package/node_modules/hono/dist/types/helper/css/common.d.ts +11 -10
- package/node_modules/hono/dist/types/helper/css/index.d.ts +25 -28
- package/node_modules/hono/dist/types/helper/dev/index.d.ts +10 -13
- package/node_modules/hono/dist/types/helper/factory/index.d.ts +26 -74
- package/node_modules/hono/dist/types/helper/html/index.d.ts +4 -7
- package/node_modules/hono/dist/types/helper/proxy/index.d.ts +19 -22
- package/node_modules/hono/dist/types/helper/route/index.d.ts +4 -2
- package/node_modules/hono/dist/types/helper/ssg/index.d.ts +4 -7
- package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +8 -7
- package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +3 -1
- package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +38 -36
- package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +5 -4
- package/node_modules/hono/dist/types/helper/streaming/index.d.ts +4 -8
- package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +10 -8
- package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +4 -2
- package/node_modules/hono/dist/types/helper/streaming/text.d.ts +4 -2
- package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +2 -0
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +7 -10
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +30 -33
- package/node_modules/hono/dist/types/hono-base.d.ts +208 -211
- package/node_modules/hono/dist/types/hono.d.ts +11 -10
- package/node_modules/hono/dist/types/http-exception.d.ts +20 -23
- package/node_modules/hono/dist/types/index.d.ts +6 -37
- package/node_modules/hono/dist/types/jsx/base.d.ts +36 -35
- package/node_modules/hono/dist/types/jsx/children.d.ts +8 -6
- package/node_modules/hono/dist/types/jsx/components.d.ts +8 -5
- package/node_modules/hono/dist/types/jsx/constants.d.ts +2 -0
- package/node_modules/hono/dist/types/jsx/context.d.ts +9 -7
- package/node_modules/hono/dist/types/jsx/dom/client.d.ts +8 -10
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +9 -6
- package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -1
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +26 -30
- package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +11 -13
- package/node_modules/hono/dist/types/jsx/dom/index.d.ts +78 -83
- package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +9 -5
- package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +4 -6
- package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +3 -7
- package/node_modules/hono/dist/types/jsx/dom/render.d.ts +32 -51
- package/node_modules/hono/dist/types/jsx/dom/server.d.ts +86 -85
- package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +2 -0
- package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +16 -17
- package/node_modules/hono/dist/types/jsx/index.d.ts +70 -73
- package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +3 -1
- package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +7 -4
- package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +708 -708
- package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +4 -7
- package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +7 -10
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +9 -10
- package/node_modules/hono/dist/types/jsx/types.d.ts +11 -13
- package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +17 -20
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +46 -49
- package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +6 -9
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +13 -15
- package/node_modules/hono/dist/types/middleware/combine/index.d.ts +4 -7
- package/node_modules/hono/dist/types/middleware/compress/index.d.ts +8 -10
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +4 -6
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +10 -13
- package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +6 -9
- package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/etag/index.d.ts +6 -9
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +11 -13
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +11 -12
- package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +20 -23
- package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +6 -6
- package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +28 -30
- package/node_modules/hono/dist/types/middleware/language/index.d.ts +5 -5
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +42 -44
- package/node_modules/hono/dist/types/middleware/logger/index.d.ts +3 -6
- package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +7 -10
- package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +14 -17
- package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +8 -11
- package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +18 -21
- package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +5 -5
- package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +9 -11
- package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +5 -6
- package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +55 -58
- package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +22 -24
- package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +5 -7
- package/node_modules/hono/dist/types/middleware/timing/index.d.ts +5 -5
- package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +17 -21
- package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +35 -38
- package/node_modules/hono/dist/types/preset/quick.d.ts +6 -9
- package/node_modules/hono/dist/types/preset/tiny.d.ts +6 -9
- package/node_modules/hono/dist/types/request/constants.d.ts +2 -0
- package/node_modules/hono/dist/types/request.d.ts +288 -287
- package/node_modules/hono/dist/types/router/linear-router/index.d.ts +2 -5
- package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -5
- package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +2 -5
- package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -5
- package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +3 -6
- package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +3 -1
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +6 -4
- package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +11 -11
- package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +10 -9
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -5
- package/node_modules/hono/dist/types/router/smart-router/index.d.ts +2 -5
- package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -9
- package/node_modules/hono/dist/types/router/trie-router/index.d.ts +2 -5
- package/node_modules/hono/dist/types/router/trie-router/node.d.ts +6 -4
- package/node_modules/hono/dist/types/router/trie-router/router.d.ts +7 -5
- package/node_modules/hono/dist/types/router/utils.d.ts +2 -0
- package/node_modules/hono/dist/types/router.d.ts +23 -22
- package/node_modules/hono/dist/types/types.d.ts +146 -506
- package/node_modules/hono/dist/types/utils/accept.d.ts +5 -3
- package/node_modules/hono/dist/types/utils/basic-auth.d.ts +4 -2
- package/node_modules/hono/dist/types/utils/body.d.ts +46 -51
- package/node_modules/hono/dist/types/utils/buffer.d.ts +7 -6
- package/node_modules/hono/dist/types/utils/color.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/compress.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/concurrent.d.ts +6 -4
- package/node_modules/hono/dist/types/utils/constants.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/cookie.d.ts +20 -19
- package/node_modules/hono/dist/types/utils/crypto.d.ts +5 -8
- package/node_modules/hono/dist/types/utils/encode.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/filepath.d.ts +5 -4
- package/node_modules/hono/dist/types/utils/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/headers.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/html.d.ts +11 -10
- package/node_modules/hono/dist/types/utils/http-status.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +4 -6
- package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -12
- package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +15 -13
- package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +4 -7
- package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +26 -29
- package/node_modules/hono/dist/types/utils/jwt/types.d.ts +48 -45
- package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +2 -0
- package/node_modules/hono/dist/types/utils/mime.d.ts +59 -57
- package/node_modules/hono/dist/types/utils/stream.d.ts +27 -25
- package/node_modules/hono/dist/types/utils/types.d.ts +14 -27
- package/node_modules/hono/dist/types/utils/url.d.ts +2 -1
- package/node_modules/hono/dist/types/validator/index.d.ts +3 -7
- package/node_modules/hono/dist/types/validator/utils.d.ts +6 -9
- package/node_modules/hono/dist/types/validator/validator.d.ts +11 -10
- package/node_modules/hono/dist/types.js +4 -6
- package/node_modules/hono/dist/utils/accept.js +185 -212
- package/node_modules/hono/dist/utils/basic-auth.js +18 -21
- package/node_modules/hono/dist/utils/body.js +87 -92
- package/node_modules/hono/dist/utils/buffer.js +44 -71
- package/node_modules/hono/dist/utils/color.js +33 -21
- package/node_modules/hono/dist/utils/compress.js +11 -5
- package/node_modules/hono/dist/utils/concurrent.js +29 -38
- package/node_modules/hono/dist/utils/constants.js +7 -5
- package/node_modules/hono/dist/utils/cookie.js +114 -163
- package/node_modules/hono/dist/utils/crypto.js +30 -40
- package/node_modules/hono/dist/utils/encode.js +30 -26
- package/node_modules/hono/dist/utils/filepath.js +23 -33
- package/node_modules/hono/dist/utils/handler.js +10 -11
- package/node_modules/hono/dist/utils/headers.js +1 -0
- package/node_modules/hono/dist/utils/html.js +97 -117
- package/node_modules/hono/dist/utils/http-status.js +1 -0
- package/node_modules/hono/dist/utils/ipaddr.js +227 -279
- package/node_modules/hono/dist/utils/jwt/index.js +12 -4
- package/node_modules/hono/dist/utils/jwt/jwa.js +24 -20
- package/node_modules/hono/dist/utils/jwt/jws.js +115 -174
- package/node_modules/hono/dist/utils/jwt/jwt.js +120 -198
- package/node_modules/hono/dist/utils/jwt/types.js +79 -95
- package/node_modules/hono/dist/utils/jwt/utf8.js +9 -7
- package/node_modules/hono/dist/utils/mime.js +74 -79
- package/node_modules/hono/dist/utils/stream.js +86 -88
- package/node_modules/hono/dist/utils/types.js +1 -0
- package/node_modules/hono/dist/utils/url.js +187 -215
- package/node_modules/hono/dist/validator/index.js +1 -4
- package/node_modules/hono/dist/validator/utils.js +1 -0
- package/node_modules/hono/dist/validator/validator.js +61 -83
- package/node_modules/hono/package.json +27 -27
- package/node_modules/imapflow/CHANGELOG.md +43 -0
- package/node_modules/imapflow/README.md +2 -0
- package/node_modules/imapflow/dist/cjs/commands/append.js +12 -12
- package/node_modules/imapflow/dist/cjs/commands/authenticate.d.ts +3 -8
- package/node_modules/imapflow/dist/cjs/commands/close.js +2 -1
- package/node_modules/imapflow/dist/cjs/commands/copy.js +4 -4
- package/node_modules/imapflow/dist/cjs/commands/create.js +2 -3
- package/node_modules/imapflow/dist/cjs/commands/delete.js +4 -4
- package/node_modules/imapflow/dist/cjs/commands/expunge.js +8 -5
- package/node_modules/imapflow/dist/cjs/commands/fetch.js +12 -10
- package/node_modules/imapflow/dist/cjs/commands/idle.js +6 -2
- package/node_modules/imapflow/dist/cjs/commands/list.js +37 -21
- package/node_modules/imapflow/dist/cjs/commands/move.js +11 -6
- package/node_modules/imapflow/dist/cjs/commands/namespace.js +1 -1
- package/node_modules/imapflow/dist/cjs/commands/quota.js +10 -9
- package/node_modules/imapflow/dist/cjs/commands/rename.js +4 -4
- package/node_modules/imapflow/dist/cjs/commands/search.js +7 -8
- package/node_modules/imapflow/dist/cjs/commands/select.js +12 -9
- package/node_modules/imapflow/dist/cjs/commands/status.js +11 -11
- package/node_modules/imapflow/dist/cjs/commands/store.js +5 -5
- package/node_modules/imapflow/dist/cjs/commands/subscribe.js +2 -17
- package/node_modules/imapflow/dist/cjs/commands/subscription.d.ts +10 -0
- package/node_modules/imapflow/dist/cjs/commands/subscription.js +29 -0
- package/node_modules/imapflow/dist/cjs/commands/unsubscribe.js +2 -17
- package/node_modules/imapflow/dist/cjs/download.d.ts +22 -0
- package/node_modules/imapflow/dist/cjs/download.js +588 -0
- package/node_modules/imapflow/dist/cjs/errors.d.ts +52 -1
- package/node_modules/imapflow/dist/cjs/errors.js +56 -1
- package/node_modules/imapflow/dist/cjs/handler/imap-compiler.js +1 -1
- package/node_modules/imapflow/dist/cjs/handler/imap-stream.d.ts +13 -2
- package/node_modules/imapflow/dist/cjs/handler/imap-stream.js +58 -41
- package/node_modules/imapflow/dist/cjs/handler/parser-instance.js +2 -2
- package/node_modules/imapflow/dist/cjs/handler/token-parser.js +15 -9
- package/node_modules/imapflow/dist/cjs/imap-flow.d.ts +30 -84
- package/node_modules/imapflow/dist/cjs/imap-flow.js +335 -760
- package/node_modules/imapflow/dist/cjs/jp-decoder.js +1 -1
- package/node_modules/imapflow/dist/cjs/logger.d.ts +21 -3
- package/node_modules/imapflow/dist/cjs/logger.js +35 -5
- package/node_modules/imapflow/dist/cjs/package-info.d.ts +1 -1
- package/node_modules/imapflow/dist/cjs/package-info.js +3 -3
- package/node_modules/imapflow/dist/cjs/search-compiler.d.ts +1 -1
- package/node_modules/imapflow/dist/cjs/search-compiler.js +53 -47
- package/node_modules/imapflow/dist/cjs/tools.d.ts +52 -11
- package/node_modules/imapflow/dist/cjs/tools.js +95 -25
- package/node_modules/imapflow/dist/cjs/types.d.ts +30 -16
- package/node_modules/imapflow/dist/esm/commands/append.js +13 -13
- package/node_modules/imapflow/dist/esm/commands/authenticate.d.ts +3 -8
- package/node_modules/imapflow/dist/esm/commands/close.js +2 -1
- package/node_modules/imapflow/dist/esm/commands/copy.js +5 -5
- package/node_modules/imapflow/dist/esm/commands/create.js +3 -4
- package/node_modules/imapflow/dist/esm/commands/delete.js +5 -5
- package/node_modules/imapflow/dist/esm/commands/expunge.js +9 -6
- package/node_modules/imapflow/dist/esm/commands/fetch.js +13 -11
- package/node_modules/imapflow/dist/esm/commands/idle.js +7 -3
- package/node_modules/imapflow/dist/esm/commands/list.js +37 -21
- package/node_modules/imapflow/dist/esm/commands/move.js +12 -7
- package/node_modules/imapflow/dist/esm/commands/namespace.js +2 -2
- package/node_modules/imapflow/dist/esm/commands/quota.js +11 -10
- package/node_modules/imapflow/dist/esm/commands/rename.js +5 -5
- package/node_modules/imapflow/dist/esm/commands/search.js +8 -9
- package/node_modules/imapflow/dist/esm/commands/select.js +13 -10
- package/node_modules/imapflow/dist/esm/commands/status.js +12 -12
- package/node_modules/imapflow/dist/esm/commands/store.js +6 -6
- package/node_modules/imapflow/dist/esm/commands/subscribe.js +2 -17
- package/node_modules/imapflow/dist/esm/commands/subscription.d.ts +10 -0
- package/node_modules/imapflow/dist/esm/commands/subscription.js +26 -0
- package/node_modules/imapflow/dist/esm/commands/unsubscribe.js +2 -17
- package/node_modules/imapflow/dist/esm/download.d.ts +22 -0
- package/node_modules/imapflow/dist/esm/download.js +581 -0
- package/node_modules/imapflow/dist/esm/errors.d.ts +52 -1
- package/node_modules/imapflow/dist/esm/errors.js +55 -0
- package/node_modules/imapflow/dist/esm/handler/imap-compiler.js +1 -1
- package/node_modules/imapflow/dist/esm/handler/imap-stream.d.ts +13 -2
- package/node_modules/imapflow/dist/esm/handler/imap-stream.js +58 -38
- package/node_modules/imapflow/dist/esm/handler/parser-instance.js +2 -2
- package/node_modules/imapflow/dist/esm/handler/token-parser.js +15 -9
- package/node_modules/imapflow/dist/esm/imap-flow.d.ts +30 -84
- package/node_modules/imapflow/dist/esm/imap-flow.js +335 -761
- package/node_modules/imapflow/dist/esm/jp-decoder.js +1 -1
- package/node_modules/imapflow/dist/esm/logger.d.ts +21 -3
- package/node_modules/imapflow/dist/esm/logger.js +33 -3
- package/node_modules/imapflow/dist/esm/package-info.d.ts +1 -1
- package/node_modules/imapflow/dist/esm/package-info.js +3 -3
- package/node_modules/imapflow/dist/esm/search-compiler.d.ts +1 -1
- package/node_modules/imapflow/dist/esm/search-compiler.js +54 -48
- package/node_modules/imapflow/dist/esm/tools.d.ts +52 -11
- package/node_modules/imapflow/dist/esm/tools.js +88 -23
- package/node_modules/imapflow/dist/esm/types.d.ts +30 -16
- package/node_modules/imapflow/package.json +8 -8
- package/node_modules/libbase64/.github/workflows/release.yaml +12 -10
- package/node_modules/libbase64/.ncurc.js +7 -1
- package/node_modules/libbase64/CHANGELOG.md +7 -0
- package/node_modules/libbase64/lib/libbase64.js +27 -0
- package/node_modules/libbase64/package.json +4 -4
- package/node_modules/libmime/CHANGELOG.md +14 -0
- package/node_modules/libmime/lib/libmime.js +41 -21
- package/node_modules/libmime/package.json +3 -3
- package/node_modules/libqp/.github/workflows/release.yaml +12 -10
- package/node_modules/libqp/CHANGELOG.md +7 -0
- package/node_modules/libqp/lib/libqp.js +6 -4
- package/node_modules/libqp/package.json +2 -2
- package/node_modules/libqp/test/libqp-test.js +71 -14
- package/package.json +4 -2
- package/packages/cli/dist/.tsbuildinfo +1 -1
- package/packages/cli/dist/args.d.ts +6 -0
- package/packages/cli/dist/args.d.ts.map +1 -1
- package/packages/cli/dist/args.js +15 -0
- package/packages/cli/dist/args.js.map +1 -1
- package/packages/cli/dist/commands.d.ts.map +1 -1
- package/packages/cli/dist/commands.js +22 -2
- package/packages/cli/dist/commands.js.map +1 -1
- package/packages/cli/dist/main.d.ts.map +1 -1
- package/packages/cli/dist/main.js +7 -0
- package/packages/cli/dist/main.js.map +1 -1
- package/packages/core/dist/.tsbuildinfo +1 -1
- package/packages/core/dist/actions/permissions.d.ts +14 -0
- package/packages/core/dist/actions/permissions.d.ts.map +1 -1
- package/packages/core/dist/actions/permissions.js +15 -0
- package/packages/core/dist/actions/permissions.js.map +1 -1
- package/packages/core/dist/agents/catalog.d.ts +12 -1
- package/packages/core/dist/agents/catalog.d.ts.map +1 -1
- package/packages/core/dist/agents/catalog.js +57 -6
- package/packages/core/dist/agents/catalog.js.map +1 -1
- package/packages/core/dist/agents/delegates.d.ts +54 -0
- package/packages/core/dist/agents/delegates.d.ts.map +1 -0
- package/packages/core/dist/agents/delegates.js +51 -0
- package/packages/core/dist/agents/delegates.js.map +1 -0
- package/packages/core/dist/agents/index.d.ts +1 -0
- package/packages/core/dist/agents/index.d.ts.map +1 -1
- package/packages/core/dist/agents/index.js +1 -0
- package/packages/core/dist/agents/index.js.map +1 -1
- package/packages/core/dist/host/build.d.ts +26 -5
- package/packages/core/dist/host/build.d.ts.map +1 -1
- package/packages/core/dist/host/build.js +105 -16
- package/packages/core/dist/host/build.js.map +1 -1
- package/packages/core/dist/host/types.d.ts +84 -5
- package/packages/core/dist/host/types.d.ts.map +1 -1
- package/packages/core/dist/index.d.ts +1 -0
- package/packages/core/dist/index.d.ts.map +1 -1
- package/packages/core/dist/index.js +1 -0
- package/packages/core/dist/index.js.map +1 -1
- package/packages/core/dist/json-schema.d.ts +32 -0
- package/packages/core/dist/json-schema.d.ts.map +1 -0
- package/packages/core/dist/json-schema.js +147 -0
- package/packages/core/dist/json-schema.js.map +1 -0
- package/packages/core/dist/learning/sources.d.ts.map +1 -1
- package/packages/core/dist/learning/sources.js +3 -0
- package/packages/core/dist/learning/sources.js.map +1 -1
- package/packages/core/dist/learning/types.d.ts +4 -3
- package/packages/core/dist/learning/types.d.ts.map +1 -1
- package/packages/core/dist/learning/types.js +1 -1
- package/packages/core/dist/learning/types.js.map +1 -1
- package/packages/core/dist/notifications/index.d.ts +1 -0
- package/packages/core/dist/notifications/index.d.ts.map +1 -1
- package/packages/core/dist/notifications/index.js +1 -0
- package/packages/core/dist/notifications/index.js.map +1 -1
- package/packages/core/dist/notifications/notify.d.ts.map +1 -1
- package/packages/core/dist/notifications/notify.js +47 -5
- package/packages/core/dist/notifications/notify.js.map +1 -1
- package/packages/core/dist/notifications/store.d.ts.map +1 -1
- package/packages/core/dist/notifications/store.js +3 -1
- package/packages/core/dist/notifications/store.js.map +1 -1
- package/packages/core/dist/notifications/topic.d.ts +25 -0
- package/packages/core/dist/notifications/topic.d.ts.map +1 -0
- package/packages/core/dist/notifications/topic.js +116 -0
- package/packages/core/dist/notifications/topic.js.map +1 -0
- package/packages/core/dist/notifications/types.d.ts +4 -0
- package/packages/core/dist/notifications/types.d.ts.map +1 -1
- package/packages/core/dist/onboarding/language-tag.d.ts +12 -0
- package/packages/core/dist/onboarding/language-tag.d.ts.map +1 -0
- package/packages/core/dist/onboarding/language-tag.js +64 -0
- package/packages/core/dist/onboarding/language-tag.js.map +1 -0
- package/packages/core/dist/pages/__fixtures__/demo.d.ts +11 -0
- package/packages/core/dist/pages/__fixtures__/demo.d.ts.map +1 -1
- package/packages/core/dist/pages/__fixtures__/demo.js +24 -1
- package/packages/core/dist/pages/__fixtures__/demo.js.map +1 -1
- package/packages/core/dist/pages.d.ts +93 -0
- package/packages/core/dist/pages.d.ts.map +1 -1
- package/packages/core/dist/pages.js +40 -1
- package/packages/core/dist/pages.js.map +1 -1
- package/packages/core/dist/plugin/index.d.ts +5 -4
- package/packages/core/dist/plugin/index.d.ts.map +1 -1
- package/packages/core/dist/plugin/version.d.ts +1 -1
- package/packages/core/dist/plugin/version.js +1 -1
- package/packages/core/dist/provider-accounts.d.ts +39 -0
- package/packages/core/dist/provider-accounts.d.ts.map +1 -1
- package/packages/core/dist/provider-accounts.js +8 -0
- package/packages/core/dist/provider-accounts.js.map +1 -1
- package/packages/core/dist/registry.d.ts +37 -1
- package/packages/core/dist/registry.d.ts.map +1 -1
- package/packages/core/dist/registry.js +187 -32
- package/packages/core/dist/registry.js.map +1 -1
- package/packages/core/dist/secrets/scrub.d.ts +2 -0
- package/packages/core/dist/secrets/scrub.d.ts.map +1 -1
- package/packages/core/dist/secrets/scrub.js +29 -0
- package/packages/core/dist/secrets/scrub.js.map +1 -1
- package/packages/core/dist/surfaces.d.ts +11 -0
- package/packages/core/dist/surfaces.d.ts.map +1 -1
- package/packages/core/dist/surfaces.js +4 -0
- package/packages/core/dist/surfaces.js.map +1 -1
- package/packages/core/dist/tools.d.ts +36 -1
- package/packages/core/dist/tools.d.ts.map +1 -1
- package/packages/core/dist/tools.js.map +1 -1
- package/packages/core/dist/views.d.ts +12 -12
- package/packages/core/migrations/048_surface_chat_voice.sql +13 -0
- package/packages/core/migrations/049_surface_chat_voice_form.sql +8 -0
- package/packages/core/migrations/050_notification_topic.sql +8 -0
- package/packages/core/package.json +2 -0
- package/packages/gateway/assets/mascot/core-idle.tgs +0 -0
- package/packages/gateway/assets/mascot/core-working.tgs +0 -0
- package/packages/gateway/dist/.tsbuildinfo +1 -1
- package/packages/gateway/dist/agents/canvas.d.ts +2 -2
- package/packages/gateway/dist/agents/canvas.d.ts.map +1 -1
- package/packages/gateway/dist/agents/canvas.js.map +1 -1
- package/packages/gateway/dist/agents/catalog.d.ts.map +1 -1
- package/packages/gateway/dist/agents/catalog.js +15 -6
- package/packages/gateway/dist/agents/catalog.js.map +1 -1
- package/packages/gateway/dist/agents/delegation.d.ts +20 -3
- package/packages/gateway/dist/agents/delegation.d.ts.map +1 -1
- package/packages/gateway/dist/agents/delegation.js +38 -12
- package/packages/gateway/dist/agents/delegation.js.map +1 -1
- package/packages/gateway/dist/agents/platform.d.ts +43 -13
- package/packages/gateway/dist/agents/platform.d.ts.map +1 -1
- package/packages/gateway/dist/agents/platform.js +97 -3
- package/packages/gateway/dist/agents/platform.js.map +1 -1
- package/packages/gateway/dist/agents/starter-team.d.ts +57 -0
- package/packages/gateway/dist/agents/starter-team.d.ts.map +1 -0
- package/packages/gateway/dist/agents/starter-team.js +151 -0
- package/packages/gateway/dist/agents/starter-team.js.map +1 -0
- package/packages/gateway/dist/agents-cli.d.ts +2 -0
- package/packages/gateway/dist/agents-cli.d.ts.map +1 -1
- package/packages/gateway/dist/agents-cli.js +5 -3
- package/packages/gateway/dist/agents-cli.js.map +1 -1
- package/packages/gateway/dist/anthropic-accounts.d.ts.map +1 -1
- package/packages/gateway/dist/anthropic-accounts.js +9 -20
- package/packages/gateway/dist/anthropic-accounts.js.map +1 -1
- package/packages/gateway/dist/bootstrap.d.ts +3 -0
- package/packages/gateway/dist/bootstrap.d.ts.map +1 -1
- package/packages/gateway/dist/bootstrap.js +58 -2
- package/packages/gateway/dist/bootstrap.js.map +1 -1
- package/packages/gateway/dist/chat/session.d.ts.map +1 -1
- package/packages/gateway/dist/chat/session.js +2 -2
- package/packages/gateway/dist/chat/session.js.map +1 -1
- package/packages/gateway/dist/chat/usage.d.ts +16 -0
- package/packages/gateway/dist/chat/usage.d.ts.map +1 -1
- package/packages/gateway/dist/chat/usage.js +53 -11
- package/packages/gateway/dist/chat/usage.js.map +1 -1
- package/packages/gateway/dist/codex-accounts.d.ts +7 -1
- package/packages/gateway/dist/codex-accounts.d.ts.map +1 -1
- package/packages/gateway/dist/codex-accounts.js +25 -26
- package/packages/gateway/dist/codex-accounts.js.map +1 -1
- package/packages/gateway/dist/index.d.ts +1 -0
- package/packages/gateway/dist/index.d.ts.map +1 -1
- package/packages/gateway/dist/index.js +1 -0
- package/packages/gateway/dist/index.js.map +1 -1
- package/packages/gateway/dist/mcp/requests.d.ts +8 -1
- package/packages/gateway/dist/mcp/requests.d.ts.map +1 -1
- package/packages/gateway/dist/mcp/requests.js +8 -1
- package/packages/gateway/dist/mcp/requests.js.map +1 -1
- package/packages/gateway/dist/missions/goals-page.d.ts.map +1 -1
- package/packages/gateway/dist/missions/goals-page.js +57 -0
- package/packages/gateway/dist/missions/goals-page.js.map +1 -1
- package/packages/gateway/dist/plugins/approve.js +45 -9
- package/packages/gateway/dist/plugins/approve.js.map +1 -1
- package/packages/gateway/dist/plugins/load.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/load.js +4 -0
- package/packages/gateway/dist/plugins/load.js.map +1 -1
- package/packages/gateway/dist/plugins/npm.d.ts +5 -1
- package/packages/gateway/dist/plugins/npm.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/npm.js +6 -0
- package/packages/gateway/dist/plugins/npm.js.map +1 -1
- package/packages/gateway/dist/plugins/scaffold.d.ts +15 -4
- package/packages/gateway/dist/plugins/scaffold.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/scaffold.js +86 -16
- package/packages/gateway/dist/plugins/scaffold.js.map +1 -1
- package/packages/gateway/dist/plugins/stage.d.ts +35 -1
- package/packages/gateway/dist/plugins/stage.d.ts.map +1 -1
- package/packages/gateway/dist/plugins/stage.js +134 -8
- package/packages/gateway/dist/plugins/stage.js.map +1 -1
- package/packages/gateway/dist/plugins-cli.d.ts +5 -1
- package/packages/gateway/dist/plugins-cli.d.ts.map +1 -1
- package/packages/gateway/dist/plugins-cli.js +26 -4
- package/packages/gateway/dist/plugins-cli.js.map +1 -1
- package/packages/gateway/dist/provider-accounts.d.ts +4 -0
- package/packages/gateway/dist/provider-accounts.d.ts.map +1 -1
- package/packages/gateway/dist/provider-accounts.js +34 -4
- package/packages/gateway/dist/provider-accounts.js.map +1 -1
- package/packages/gateway/dist/provider-diagnostics.d.ts +14 -2
- package/packages/gateway/dist/provider-diagnostics.d.ts.map +1 -1
- package/packages/gateway/dist/provider-diagnostics.js +25 -9
- package/packages/gateway/dist/provider-diagnostics.js.map +1 -1
- package/packages/gateway/dist/speech-cli.d.ts +43 -0
- package/packages/gateway/dist/speech-cli.d.ts.map +1 -0
- package/packages/gateway/dist/speech-cli.js +105 -0
- package/packages/gateway/dist/speech-cli.js.map +1 -0
- package/packages/gateway/dist/telegram/api.d.ts +59 -0
- package/packages/gateway/dist/telegram/api.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/api.js +111 -0
- package/packages/gateway/dist/telegram/api.js.map +1 -1
- package/packages/gateway/dist/telegram/browser-view.d.ts +2 -1
- package/packages/gateway/dist/telegram/browser-view.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/browser-view.js +4 -2
- package/packages/gateway/dist/telegram/browser-view.js.map +1 -1
- package/packages/gateway/dist/telegram/main.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/main.js +27 -2
- package/packages/gateway/dist/telegram/main.js.map +1 -1
- package/packages/gateway/dist/telegram/outbound.d.ts +5 -0
- package/packages/gateway/dist/telegram/outbound.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/outbound.js +10 -0
- package/packages/gateway/dist/telegram/outbound.js.map +1 -1
- package/packages/gateway/dist/telegram/stickers.d.ts +30 -0
- package/packages/gateway/dist/telegram/stickers.d.ts.map +1 -0
- package/packages/gateway/dist/telegram/stickers.js +146 -0
- package/packages/gateway/dist/telegram/stickers.js.map +1 -0
- package/packages/gateway/dist/telegram/surface.d.ts +31 -0
- package/packages/gateway/dist/telegram/surface.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/surface.js +248 -13
- package/packages/gateway/dist/telegram/surface.js.map +1 -1
- package/packages/gateway/dist/telegram/voice.d.ts +112 -0
- package/packages/gateway/dist/telegram/voice.d.ts.map +1 -0
- package/packages/gateway/dist/telegram/voice.js +220 -0
- package/packages/gateway/dist/telegram/voice.js.map +1 -0
- package/packages/gateway/dist/tips/engine.d.ts +75 -0
- package/packages/gateway/dist/tips/engine.d.ts.map +1 -0
- package/packages/gateway/dist/tips/engine.js +135 -0
- package/packages/gateway/dist/tips/engine.js.map +1 -0
- package/packages/gateway/dist/tips/facts.d.ts +69 -0
- package/packages/gateway/dist/tips/facts.d.ts.map +1 -0
- package/packages/gateway/dist/tips/facts.js +104 -0
- package/packages/gateway/dist/tips/facts.js.map +1 -0
- package/packages/gateway/dist/tips/route.d.ts +25 -0
- package/packages/gateway/dist/tips/route.d.ts.map +1 -0
- package/packages/gateway/dist/tips/route.js +96 -0
- package/packages/gateway/dist/tips/route.js.map +1 -0
- package/packages/gateway/dist/tips/rules.d.ts +33 -0
- package/packages/gateway/dist/tips/rules.d.ts.map +1 -0
- package/packages/gateway/dist/tips/rules.js +54 -0
- package/packages/gateway/dist/tips/rules.js.map +1 -0
- package/packages/gateway/dist/web/agent-offers.d.ts +30 -0
- package/packages/gateway/dist/web/agent-offers.d.ts.map +1 -1
- package/packages/gateway/dist/web/agent-offers.js +64 -1
- package/packages/gateway/dist/web/agent-offers.js.map +1 -1
- package/packages/gateway/dist/web/chat.d.ts +31 -8
- package/packages/gateway/dist/web/chat.d.ts.map +1 -1
- package/packages/gateway/dist/web/chat.js +3 -2
- package/packages/gateway/dist/web/chat.js.map +1 -1
- package/packages/gateway/dist/web/connections.d.ts +83 -0
- package/packages/gateway/dist/web/connections.d.ts.map +1 -0
- package/packages/gateway/dist/web/connections.js +270 -0
- package/packages/gateway/dist/web/connections.js.map +1 -0
- package/packages/gateway/dist/web/onboarding.d.ts +14 -3
- package/packages/gateway/dist/web/onboarding.d.ts.map +1 -1
- package/packages/gateway/dist/web/onboarding.js +29 -7
- package/packages/gateway/dist/web/onboarding.js.map +1 -1
- package/packages/gateway/dist/web/plugins.d.ts +12 -0
- package/packages/gateway/dist/web/plugins.d.ts.map +1 -1
- package/packages/gateway/dist/web/plugins.js +12 -2
- package/packages/gateway/dist/web/plugins.js.map +1 -1
- package/packages/gateway/dist/web/profile.js +3 -2
- package/packages/gateway/dist/web/profile.js.map +1 -1
- package/packages/gateway/dist/web/read.d.ts +21 -12
- package/packages/gateway/dist/web/read.d.ts.map +1 -1
- package/packages/gateway/dist/web/read.js +20 -14
- package/packages/gateway/dist/web/read.js.map +1 -1
- package/packages/gateway/dist/web/server.d.ts +6 -0
- package/packages/gateway/dist/web/server.d.ts.map +1 -1
- package/packages/gateway/dist/web/server.js +84 -2
- package/packages/gateway/dist/web/server.js.map +1 -1
- package/packages/gateway/dist/web/speech.d.ts +47 -0
- package/packages/gateway/dist/web/speech.d.ts.map +1 -0
- package/packages/gateway/dist/web/speech.js +83 -0
- package/packages/gateway/dist/web/speech.js.map +1 -0
- package/packages/gateway/dist/web/static.d.ts.map +1 -1
- package/packages/gateway/dist/web/static.js +1 -0
- package/packages/gateway/dist/web/static.js.map +1 -1
- package/packages/gateway/dist/web/stream.d.ts +0 -24
- package/packages/gateway/dist/web/stream.d.ts.map +1 -1
- package/packages/gateway/dist/web/stream.js +26 -2
- package/packages/gateway/dist/web/stream.js.map +1 -1
- package/packages/gateway/dist/web/usage-view.d.ts +15 -0
- package/packages/gateway/dist/web/usage-view.d.ts.map +1 -0
- package/packages/gateway/dist/web/usage-view.js +20 -0
- package/packages/gateway/dist/web/usage-view.js.map +1 -0
- package/packages/gateway/dist/web/version.d.ts +2 -0
- package/packages/gateway/dist/web/version.d.ts.map +1 -1
- package/packages/gateway/dist/web/version.js +27 -0
- package/packages/gateway/dist/web/version.js.map +1 -1
- package/packages/gateway/dist/web/write.d.ts +5 -0
- package/packages/gateway/dist/web/write.d.ts.map +1 -1
- package/packages/gateway/dist/web/write.js +20 -1
- package/packages/gateway/dist/web/write.js.map +1 -1
- package/packages/gateway/package.json +4 -1
- package/packages/gateway/src/agents/starter/keeper/agent.md +31 -0
- package/packages/gateway/src/agents/starter/keeper/skills/keeping-a-history.md +22 -0
- package/packages/gateway/src/agents/starter/planner/agent.md +30 -0
- package/packages/gateway/src/agents/starter/planner/skills/holding-a-follow-up.md +17 -0
- package/packages/gateway/src/agents/starter/planner/skills/writing-the-morning-brief.md +25 -0
- package/packages/gateway/src/agents/starter/scout/agent.md +33 -0
- package/packages/gateway/src/agents/starter/scout/skills/answering-with-sources.md +23 -0
- package/packages/gateway/src/agents/starter/scout/skills/the-web-is-evidence.md +25 -0
- package/packages/install/dist/.tsbuildinfo +1 -1
- package/packages/runtime/dist/.tsbuildinfo +1 -1
- package/packages/runtime/dist/anthropic-oauth.d.ts.map +1 -1
- package/packages/runtime/dist/anthropic-oauth.js +38 -73
- package/packages/runtime/dist/anthropic-oauth.js.map +1 -1
- package/packages/runtime/dist/anthropic.d.ts +18 -0
- package/packages/runtime/dist/anthropic.d.ts.map +1 -1
- package/packages/runtime/dist/anthropic.js +65 -13
- package/packages/runtime/dist/anthropic.js.map +1 -1
- package/packages/runtime/dist/codex-direct.d.ts +39 -0
- package/packages/runtime/dist/codex-direct.d.ts.map +1 -1
- package/packages/runtime/dist/codex-direct.js +133 -3
- package/packages/runtime/dist/codex-direct.js.map +1 -1
- package/packages/runtime/dist/codex-oauth.d.ts +0 -12
- package/packages/runtime/dist/codex-oauth.d.ts.map +1 -1
- package/packages/runtime/dist/codex-oauth.js +32 -45
- package/packages/runtime/dist/codex-oauth.js.map +1 -1
- package/packages/runtime/dist/context-window.d.ts.map +1 -1
- package/packages/runtime/dist/context-window.js +13 -4
- package/packages/runtime/dist/context-window.js.map +1 -1
- package/packages/runtime/dist/delegate.d.ts.map +1 -1
- package/packages/runtime/dist/delegate.js +4 -2
- package/packages/runtime/dist/delegate.js.map +1 -1
- package/packages/runtime/dist/index.d.ts +2 -0
- package/packages/runtime/dist/index.d.ts.map +1 -1
- package/packages/runtime/dist/index.js +2 -0
- package/packages/runtime/dist/index.js.map +1 -1
- package/packages/runtime/dist/loop.d.ts.map +1 -1
- package/packages/runtime/dist/loop.js +6 -0
- package/packages/runtime/dist/loop.js.map +1 -1
- package/packages/runtime/dist/oauth-port.d.ts +68 -0
- package/packages/runtime/dist/oauth-port.d.ts.map +1 -0
- package/packages/runtime/dist/oauth-port.js +51 -0
- package/packages/runtime/dist/oauth-port.js.map +1 -0
- package/packages/runtime/dist/oauth.d.ts +255 -0
- package/packages/runtime/dist/oauth.d.ts.map +1 -0
- package/packages/runtime/dist/oauth.js +535 -0
- package/packages/runtime/dist/oauth.js.map +1 -0
- package/packages/runtime/dist/openai.d.ts +16 -4
- package/packages/runtime/dist/openai.d.ts.map +1 -1
- package/packages/runtime/dist/openai.js +23 -4
- package/packages/runtime/dist/openai.js.map +1 -1
- package/packages/runtime/dist/provider-models.d.ts.map +1 -1
- package/packages/runtime/dist/provider-models.js +5 -1
- package/packages/runtime/dist/provider-models.js.map +1 -1
- package/packages/tools/artifacts/dist/.tsbuildinfo +1 -1
- package/packages/tools/browser/dist/.tsbuildinfo +1 -1
- package/packages/tools/browser/dist/computer.d.ts +53 -1
- package/packages/tools/browser/dist/computer.d.ts.map +1 -1
- package/packages/tools/browser/dist/computer.js +154 -5
- package/packages/tools/browser/dist/computer.js.map +1 -1
- package/packages/tools/browser/dist/controller.d.ts +20 -3
- package/packages/tools/browser/dist/controller.d.ts.map +1 -1
- package/packages/tools/browser/dist/controller.js +170 -5
- package/packages/tools/browser/dist/controller.js.map +1 -1
- package/packages/tools/browser/dist/index.d.ts.map +1 -1
- package/packages/tools/browser/dist/index.js +9 -1
- package/packages/tools/browser/dist/index.js.map +1 -1
- package/packages/tools/browser/dist/service.d.ts +14 -1
- package/packages/tools/browser/dist/service.d.ts.map +1 -1
- package/packages/tools/browser/dist/service.js +28 -5
- package/packages/tools/browser/dist/service.js.map +1 -1
- package/packages/tools/browser/dist/types.d.ts +11 -0
- package/packages/tools/browser/dist/types.d.ts.map +1 -1
- package/packages/tools/browser/dist/types.js +16 -3
- package/packages/tools/browser/dist/types.js.map +1 -1
- package/packages/tools/browser/package.json +1 -1
- package/packages/tools/email/dist/.tsbuildinfo +1 -1
- package/packages/tools/email/dist/types.d.ts +2 -2
- package/packages/tools/email/dist/types.d.ts.map +1 -1
- package/packages/tools/host/dist/.tsbuildinfo +1 -1
- package/packages/tools/mcp/dist/.tsbuildinfo +1 -0
- package/packages/tools/mcp/dist/catalog.d.ts +26 -0
- package/packages/tools/mcp/dist/catalog.d.ts.map +1 -0
- package/packages/tools/mcp/dist/catalog.js +17 -0
- package/packages/tools/mcp/dist/catalog.js.map +1 -0
- package/packages/tools/mcp/dist/fetch.d.ts +44 -0
- package/packages/tools/mcp/dist/fetch.d.ts.map +1 -0
- package/packages/tools/mcp/dist/fetch.js +88 -0
- package/packages/tools/mcp/dist/fetch.js.map +1 -0
- package/packages/tools/mcp/dist/index.d.ts +27 -0
- package/packages/tools/mcp/dist/index.d.ts.map +1 -0
- package/packages/tools/mcp/dist/index.js +74 -0
- package/packages/tools/mcp/dist/index.js.map +1 -0
- package/packages/tools/mcp/dist/output.d.ts +38 -0
- package/packages/tools/mcp/dist/output.d.ts.map +1 -0
- package/packages/tools/mcp/dist/output.js +90 -0
- package/packages/tools/mcp/dist/output.js.map +1 -0
- package/packages/tools/mcp/dist/ports.d.ts +105 -0
- package/packages/tools/mcp/dist/ports.d.ts.map +1 -0
- package/packages/tools/mcp/dist/ports.js +9 -0
- package/packages/tools/mcp/dist/ports.js.map +1 -0
- package/packages/tools/mcp/dist/service.d.ts +220 -0
- package/packages/tools/mcp/dist/service.d.ts.map +1 -0
- package/packages/tools/mcp/dist/service.js +742 -0
- package/packages/tools/mcp/dist/service.js.map +1 -0
- package/packages/tools/mcp/dist/session.d.ts +50 -0
- package/packages/tools/mcp/dist/session.d.ts.map +1 -0
- package/packages/tools/mcp/dist/session.js +108 -0
- package/packages/tools/mcp/dist/session.js.map +1 -0
- package/packages/tools/mcp/dist/store.d.ts +70 -0
- package/packages/tools/mcp/dist/store.d.ts.map +1 -0
- package/packages/tools/mcp/dist/store.js +78 -0
- package/packages/tools/mcp/dist/store.js.map +1 -0
- package/packages/tools/mcp/dist/testing/fake.d.ts +51 -0
- package/packages/tools/mcp/dist/testing/fake.d.ts.map +1 -0
- package/packages/tools/mcp/dist/testing/fake.js +147 -0
- package/packages/tools/mcp/dist/testing/fake.js.map +1 -0
- package/packages/tools/mcp/dist/tiers.d.ts +51 -0
- package/packages/tools/mcp/dist/tiers.d.ts.map +1 -0
- package/packages/tools/mcp/dist/tiers.js +106 -0
- package/packages/tools/mcp/dist/tiers.js.map +1 -0
- package/packages/tools/mcp/dist/tokens.d.ts +35 -0
- package/packages/tools/mcp/dist/tokens.d.ts.map +1 -0
- package/packages/tools/mcp/dist/tokens.js +75 -0
- package/packages/tools/mcp/dist/tokens.js.map +1 -0
- package/packages/tools/mcp/migrations/001_connections.sql +49 -0
- package/packages/tools/mcp/migrations/002_review_again.sql +15 -0
- package/packages/tools/mcp/package.json +34 -0
- package/packages/tools/memory/dist/.tsbuildinfo +1 -1
- package/packages/tools/web/dist/.tsbuildinfo +1 -1
- package/packages/web/dist/apple-touch-icon.png +0 -0
- package/packages/web/dist/assets/index-CBEdA2dN.js +125 -0
- package/packages/web/dist/assets/index-Ddp9egOQ.css +1 -0
- package/packages/web/dist/assets/lottie_light-BCNsQpt8.js +9 -0
- package/packages/web/dist/build.json +1 -0
- package/packages/web/dist/icon-192.png +0 -0
- package/packages/web/dist/icon-512.png +0 -0
- package/packages/web/dist/icon-maskable-512.png +0 -0
- package/packages/web/dist/index.html +6 -3
- package/packages/web/dist/manifest.webmanifest +16 -0
- package/packages/web/dist/mascot/README.md +5 -0
- package/packages/web/dist/mascot/anim/core-idle.json +1 -0
- package/packages/web/dist/mascot/anim/core-working.json +1 -0
- package/packages/web/dist/precache.json +28 -0
- package/packages/web/dist/sw.js +99 -0
- package/packages/web/dist/assets/index-BRc5auXm.js +0 -123
- package/packages/web/dist/assets/index-DwUpotTR.css +0 -1
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthenticationFailure = void 0;
|
|
3
|
+
exports.AuthenticationFailure = exports.ImapFlowErrorCode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The `code` values ImapFlow sets on the errors it raises, so they can be matched without
|
|
6
|
+
* string literals: `if (err.code === ImapFlowErrorCode.NoConnection)`.
|
|
7
|
+
*
|
|
8
|
+
* Parser failures use `ParserError` followed by a number (`ParserError11`) and are not listed
|
|
9
|
+
* one by one, test them with `err.code?.startsWith('ParserError')`. Errors from the socket, TLS
|
|
10
|
+
* or DNS layer pass through with Node's own code (`ECONNREFUSED`, `ENOTFOUND`, ...).
|
|
11
|
+
*/
|
|
12
|
+
exports.ImapFlowErrorCode = {
|
|
13
|
+
// the connection is gone, the command was not (or can no longer be) completed
|
|
14
|
+
NoConnection: 'NoConnection',
|
|
15
|
+
EConnectionClosed: 'EConnectionClosed',
|
|
16
|
+
StateLogout: 'StateLogout',
|
|
17
|
+
ClosedAfterConnectText: 'ClosedAfterConnectText',
|
|
18
|
+
ClosedAfterConnectTLS: 'ClosedAfterConnectTLS',
|
|
19
|
+
// timeouts
|
|
20
|
+
CONNECT_TIMEOUT: 'CONNECT_TIMEOUT',
|
|
21
|
+
GREETING_TIMEOUT: 'GREETING_TIMEOUT',
|
|
22
|
+
UPGRADE_TIMEOUT: 'UPGRADE_TIMEOUT',
|
|
23
|
+
ETIMEOUT: 'ETIMEOUT',
|
|
24
|
+
LockTimeout: 'LockTimeout',
|
|
25
|
+
// the server
|
|
26
|
+
ETHROTTLE: 'ETHROTTLE',
|
|
27
|
+
UnexpectedTag: 'UnexpectedTag',
|
|
28
|
+
InvalidResponse: 'InvalidResponse',
|
|
29
|
+
ResponseProcessingFailed: 'ResponseProcessingFailed',
|
|
30
|
+
STARTTLS_INJECTION: 'STARTTLS_INJECTION',
|
|
31
|
+
COMPRESS_TRAILING_DATA: 'COMPRESS_TRAILING_DATA',
|
|
32
|
+
PollFailed: 'PollFailed',
|
|
33
|
+
NotFound: 'NotFound',
|
|
34
|
+
MissingServerExtension: 'MissingServerExtension',
|
|
35
|
+
// response parsing and size limits
|
|
36
|
+
ParserError: 'ParserError',
|
|
37
|
+
ParserErrorExchange: 'ParserErrorExchange',
|
|
38
|
+
MAX_IMAP_NESTING_REACHED: 'MAX_IMAP_NESTING_REACHED',
|
|
39
|
+
LineTooLarge: 'LineTooLarge',
|
|
40
|
+
LiteralTooLarge: 'LiteralTooLarge',
|
|
41
|
+
ResponseTooLarge: 'ResponseTooLarge',
|
|
42
|
+
// invalid values in a command
|
|
43
|
+
InvalidStringValue: 'InvalidStringValue',
|
|
44
|
+
InvalidTokenValue: 'InvalidTokenValue',
|
|
45
|
+
InvalidTextValue: 'InvalidTextValue',
|
|
46
|
+
InvalidSequenceSet: 'InvalidSequenceSet',
|
|
47
|
+
InvalidSearchQuery: 'InvalidSearchQuery',
|
|
48
|
+
// download()
|
|
49
|
+
DownloadOverflow: 'DownloadOverflow',
|
|
50
|
+
DownloadIncomplete: 'DownloadIncomplete',
|
|
51
|
+
// proxy connections
|
|
52
|
+
ProxyError: 'ProxyError',
|
|
53
|
+
EPROXY: 'EPROXY',
|
|
54
|
+
UnsupportedProxyAddress: 'UnsupportedProxyAddress',
|
|
55
|
+
ERR_INVALID_URL: 'ERR_INVALID_URL',
|
|
56
|
+
// API misuse
|
|
57
|
+
InstanceReused: 'InstanceReused'
|
|
58
|
+
};
|
|
4
59
|
/**
|
|
5
60
|
* Error subclass thrown when IMAP authentication fails.
|
|
6
61
|
*/
|
|
@@ -243,7 +243,7 @@ async function compiler(response, options) {
|
|
|
243
243
|
// Strip a leading backslash before checking (system flags like \Seen start with '\').
|
|
244
244
|
// If any character fails verification, fall back to an IMAP quoted string
|
|
245
245
|
// (JSON.stringify is used only for log output, where values are display-escaped).
|
|
246
|
-
if (node.value === '' || imap_formal_syntax_js_1.default.verify(val.charAt(0) === '\\' ? val.
|
|
246
|
+
if (node.value === '' || imap_formal_syntax_js_1.default.verify(val.charAt(0) === '\\' ? val.slice(1) : val, imap_formal_syntax_js_1.default['ATOM-CHAR']()) >= 0) {
|
|
247
247
|
val = isLogging ? JSON.stringify(val) : quoteString(val);
|
|
248
248
|
}
|
|
249
249
|
resp.push(emitEntry(val));
|
|
@@ -145,13 +145,24 @@ export declare class ImapStream extends Transform {
|
|
|
145
145
|
* pushed downstream as a readable object.
|
|
146
146
|
*
|
|
147
147
|
* @param chunk - The raw data chunk to process.
|
|
148
|
-
* @param startPos - The byte offset within the chunk to start processing from.
|
|
149
148
|
*/
|
|
150
|
-
processInputChunk(chunk: Buffer
|
|
149
|
+
processInputChunk(chunk: Buffer): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Processes the chunk from `startPos` until the parser state changes or the chunk ends.
|
|
152
|
+
*
|
|
153
|
+
* @returns The offset to continue from after a state switch, or `null` when done with the chunk.
|
|
154
|
+
*/
|
|
155
|
+
processChunkSegment(chunk: Buffer, startPos: number): Promise<number | null>;
|
|
151
156
|
/**
|
|
152
157
|
* Drains the input queue by processing each queued chunk sequentially.
|
|
153
158
|
* Yields to the event loop every 10 chunks to prevent CPU blocking on
|
|
154
159
|
* large bursts of incoming data.
|
|
160
|
+
*
|
|
161
|
+
* The `processingInput` guard is cleared in the same synchronous step that finds the queue
|
|
162
|
+
* empty. Clearing it later (in a promise handler) leaves a gap of a few microtasks where a
|
|
163
|
+
* chunk delivered by the writable side is queued but no loop is started for it, so its
|
|
164
|
+
* transform callback is never called and the socket is never read again. Workers deliver
|
|
165
|
+
* the next chunk inside that gap.
|
|
155
166
|
*/
|
|
156
167
|
processInput(): Promise<void>;
|
|
157
168
|
/**
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ImapStream = void 0;
|
|
7
4
|
const node_stream_1 = require("node:stream");
|
|
8
|
-
const logger_js_1 =
|
|
5
|
+
const logger_js_1 = require("../logger.js");
|
|
9
6
|
const limits_js_1 = require("./limits.js");
|
|
10
7
|
const LINE = 0x01;
|
|
11
8
|
const LITERAL = 0x02;
|
|
@@ -36,13 +33,12 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
36
33
|
});
|
|
37
34
|
this.options = options || {};
|
|
38
35
|
this.cid = this.options.cid;
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
36
|
+
if (this.options.logger && typeof this.options.logger === 'object') {
|
|
37
|
+
this.log = this.options.logger;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
this.log = (0, logger_js_1.createConnectionLogger)({ cid: this.cid, logRaw: this.options.logRaw });
|
|
41
|
+
}
|
|
46
42
|
this.readBytesCounter = 0;
|
|
47
43
|
// Maximum length of a single line (response without a literal). Bounds the line buffer
|
|
48
44
|
// so a server that never sends a line terminator cannot exhaust memory.
|
|
@@ -223,12 +219,23 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
223
219
|
* pushed downstream as a readable object.
|
|
224
220
|
*
|
|
225
221
|
* @param chunk - The raw data chunk to process.
|
|
226
|
-
* @param startPos - The byte offset within the chunk to start processing from.
|
|
227
222
|
*/
|
|
228
|
-
async processInputChunk(chunk
|
|
229
|
-
|
|
223
|
+
async processInputChunk(chunk) {
|
|
224
|
+
// Every state switch hands back the offset to resume from instead of recursing, so a
|
|
225
|
+
// chunk packed with thousands of small literals can not exhaust the call stack
|
|
226
|
+
let nextPos = 0;
|
|
227
|
+
while (nextPos !== null) {
|
|
228
|
+
nextPos = await this.processChunkSegment(chunk, nextPos);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Processes the chunk from `startPos` until the parser state changes or the chunk ends.
|
|
233
|
+
*
|
|
234
|
+
* @returns The offset to continue from after a state switch, or `null` when done with the chunk.
|
|
235
|
+
*/
|
|
236
|
+
async processChunkSegment(chunk, startPos) {
|
|
230
237
|
if (this.destroyed || startPos >= chunk.length) {
|
|
231
|
-
return;
|
|
238
|
+
return null;
|
|
232
239
|
}
|
|
233
240
|
switch (this.state) {
|
|
234
241
|
case LINE: {
|
|
@@ -238,9 +245,9 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
238
245
|
// line end found. Measure the completed line (terminator included) before
|
|
239
246
|
// concatenating or emitting anything, so the cap does not depend on where
|
|
240
247
|
// TCP chunk boundaries happen to fall.
|
|
241
|
-
let segment = chunk.
|
|
248
|
+
let segment = chunk.subarray(lineStart, i + 1);
|
|
242
249
|
if (!this.checkLineLength(this.lineBytes + segment.length)) {
|
|
243
|
-
return;
|
|
250
|
+
return null;
|
|
244
251
|
}
|
|
245
252
|
this.lineBuffer.push(segment);
|
|
246
253
|
lineStart = i + 1;
|
|
@@ -252,18 +259,18 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
252
259
|
// would otherwise be emitted as part of the rejected command.
|
|
253
260
|
let isLiteralMarker = this.checkLiteralMarker(line);
|
|
254
261
|
if (this.destroyed) {
|
|
255
|
-
return;
|
|
262
|
+
return null;
|
|
256
263
|
}
|
|
257
264
|
// Count the line itself and, for a literal marker, the declared
|
|
258
265
|
// literal bytes against the cumulative per-response budget, so a
|
|
259
266
|
// response assembled from many tokens stays bounded as a whole
|
|
260
267
|
if (!this.checkResponseSize(line.length + (isLiteralMarker ? this.literalWaiting : 0))) {
|
|
261
|
-
return;
|
|
268
|
+
return null;
|
|
262
269
|
}
|
|
263
270
|
this.inputBuffer.push(line);
|
|
264
271
|
if (isLiteralMarker) {
|
|
265
272
|
// switch into literal mode and start over
|
|
266
|
-
return
|
|
273
|
+
return lineStart;
|
|
267
274
|
}
|
|
268
275
|
// reached end of command input, emit it
|
|
269
276
|
let payload = this.inputBuffer.length === 1 ? this.inputBuffer[0] : Buffer.concat(this.inputBuffer);
|
|
@@ -278,7 +285,7 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
278
285
|
if (end > 0 && payload[end - 1] === CR) {
|
|
279
286
|
end--;
|
|
280
287
|
}
|
|
281
|
-
payload = payload.
|
|
288
|
+
payload = payload.subarray(0, end);
|
|
282
289
|
}
|
|
283
290
|
if (payload.length) {
|
|
284
291
|
// Whether more buffered input already followed this command on the
|
|
@@ -297,7 +304,7 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
297
304
|
});
|
|
298
305
|
this.pendingPush = null;
|
|
299
306
|
if (this.destroyed) {
|
|
300
|
-
return;
|
|
307
|
+
return null;
|
|
301
308
|
}
|
|
302
309
|
}
|
|
303
310
|
}
|
|
@@ -306,14 +313,14 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
306
313
|
if (lineStart < chunk.length) {
|
|
307
314
|
// No line terminator was found in the remaining bytes; carry the tail over to
|
|
308
315
|
// the next chunk after measuring the line it belongs to.
|
|
309
|
-
let tail = chunk.
|
|
316
|
+
let tail = chunk.subarray(lineStart);
|
|
310
317
|
// The response counter is only committed when a line completes, so an
|
|
311
318
|
// in-progress line is measured against the remaining budget separately.
|
|
312
319
|
// Without this a response cap lowered to bound parser memory buys nothing
|
|
313
320
|
// while a server streams a line that never terminates - only the much
|
|
314
321
|
// larger line cap would hold it back.
|
|
315
322
|
if (!this.checkLineLength(this.lineBytes + tail.length) || !this.checkResponseSize(this.lineBytes + tail.length, true)) {
|
|
316
|
-
return;
|
|
323
|
+
return null;
|
|
317
324
|
}
|
|
318
325
|
this.lineBytes += tail.length;
|
|
319
326
|
this.lineBuffer.push(tail);
|
|
@@ -323,7 +330,7 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
323
330
|
case LITERAL: {
|
|
324
331
|
const remainingInChunk = chunk.length - startPos;
|
|
325
332
|
const bytesToRead = Math.min(remainingInChunk, this.literalWaiting);
|
|
326
|
-
const partial = startPos === 0 && bytesToRead === chunk.length ? chunk : chunk.
|
|
333
|
+
const partial = startPos === 0 && bytesToRead === chunk.length ? chunk : chunk.subarray(startPos, startPos + bytesToRead);
|
|
327
334
|
this.literalBuffer.push(partial);
|
|
328
335
|
this.literalWaiting -= bytesToRead;
|
|
329
336
|
if (this.literalWaiting === 0) {
|
|
@@ -331,33 +338,45 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
331
338
|
this.literalBuffer = [];
|
|
332
339
|
this.state = LINE;
|
|
333
340
|
if (remainingInChunk > bytesToRead) {
|
|
334
|
-
return
|
|
341
|
+
return startPos + bytesToRead;
|
|
335
342
|
}
|
|
336
343
|
}
|
|
337
344
|
break;
|
|
338
345
|
}
|
|
339
346
|
}
|
|
347
|
+
return null;
|
|
340
348
|
}
|
|
341
349
|
/**
|
|
342
350
|
* Drains the input queue by processing each queued chunk sequentially.
|
|
343
351
|
* Yields to the event loop every 10 chunks to prevent CPU blocking on
|
|
344
352
|
* large bursts of incoming data.
|
|
353
|
+
*
|
|
354
|
+
* The `processingInput` guard is cleared in the same synchronous step that finds the queue
|
|
355
|
+
* empty. Clearing it later (in a promise handler) leaves a gap of a few microtasks where a
|
|
356
|
+
* chunk delivered by the writable side is queued but no loop is started for it, so its
|
|
357
|
+
* transform callback is never called and the socket is never read again. Workers deliver
|
|
358
|
+
* the next chunk inside that gap.
|
|
345
359
|
*/
|
|
346
360
|
async processInput() {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this.
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
361
|
+
try {
|
|
362
|
+
let data;
|
|
363
|
+
let processedCount = 0;
|
|
364
|
+
while (!this.destroyed && (data = this.inputQueue.shift())) {
|
|
365
|
+
this.activeInput = data;
|
|
366
|
+
await this.processInputChunk(data.chunk);
|
|
367
|
+
this.activeInput = null;
|
|
368
|
+
// mark chunk as processed
|
|
369
|
+
this.releaseInput(data);
|
|
370
|
+
// Yield to event loop every 10 chunks to prevent CPU blocking
|
|
371
|
+
processedCount++;
|
|
372
|
+
if (processedCount % 10 === 0) {
|
|
373
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
374
|
+
}
|
|
359
375
|
}
|
|
360
376
|
}
|
|
377
|
+
finally {
|
|
378
|
+
this.processingInput = false;
|
|
379
|
+
}
|
|
361
380
|
}
|
|
362
381
|
/**
|
|
363
382
|
* Transform stream implementation. Receives raw data chunks from the writable side,
|
|
@@ -397,9 +416,7 @@ class ImapStream extends node_stream_1.Transform {
|
|
|
397
416
|
this.inputQueue.push({ chunk, next });
|
|
398
417
|
if (!this.processingInput) {
|
|
399
418
|
this.processingInput = true;
|
|
400
|
-
this.processInput()
|
|
401
|
-
.catch(err => this.failStream(err))
|
|
402
|
-
.finally(() => (this.processingInput = false));
|
|
419
|
+
this.processInput().catch(err => this.failStream(err));
|
|
403
420
|
}
|
|
404
421
|
}
|
|
405
422
|
/**
|
|
@@ -166,7 +166,7 @@ class ParserInstance {
|
|
|
166
166
|
throw error;
|
|
167
167
|
}
|
|
168
168
|
this.pos += match[0].length;
|
|
169
|
-
this.remainder = this.remainder.
|
|
169
|
+
this.remainder = this.remainder.slice(match[0].length);
|
|
170
170
|
return element;
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
@@ -193,7 +193,7 @@ class ParserInstance {
|
|
|
193
193
|
throw error;
|
|
194
194
|
}
|
|
195
195
|
this.pos++;
|
|
196
|
-
this.remainder = this.remainder.
|
|
196
|
+
this.remainder = this.remainder.slice(1);
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
199
|
* Parses the remaining input as IMAP attributes using the TokenParser.
|
|
@@ -316,7 +316,7 @@ class TokenParser {
|
|
|
316
316
|
// IMAP URL (e.g., imap://user@host/mailbox) which contains characters
|
|
317
317
|
// that would break normal ATOM parsing (colons, slashes, etc.).
|
|
318
318
|
// We handle this by consuming everything up to ']' as a single ATOM value.
|
|
319
|
-
if (this.str.
|
|
319
|
+
if (this.str.substring(i + 1, i + 10).toUpperCase() === 'REFERRAL ') {
|
|
320
320
|
// create the REFERRAL atom
|
|
321
321
|
this.currentNode = this.createNode(this.currentNode, this.pos + i + 1);
|
|
322
322
|
this.currentNode.type = 'ATOM';
|
|
@@ -327,15 +327,21 @@ class TokenParser {
|
|
|
327
327
|
this.currentNode = this.createNode(this.currentNode, this.pos + i + 10);
|
|
328
328
|
// just call this an ATOM, even though IMAPURL might be more correct
|
|
329
329
|
this.currentNode.type = 'ATOM';
|
|
330
|
-
// jump i to the ']'
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
330
|
+
// jump i to the ']' that closes the section. The URL itself can
|
|
331
|
+
// hold a bracketed IPv6 host (imap://[::1]/INBOX), so brackets
|
|
332
|
+
// opened inside the URL are matched before the closing one.
|
|
333
|
+
let depth = 0;
|
|
334
|
+
for (i = i + 10; i < this.str.length; i++) {
|
|
335
|
+
let urlChr = this.str.charAt(i);
|
|
336
|
+
if (urlChr === '[') {
|
|
337
|
+
depth++;
|
|
338
|
+
}
|
|
339
|
+
else if (urlChr === ']' && depth-- === 0) {
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
338
342
|
}
|
|
343
|
+
// A malformed REFERRAL with no closing ']' leaves i at the end of
|
|
344
|
+
// the string, so the URL takes the rest of it.
|
|
339
345
|
this.currentNode.endPos = this.pos + i - 1;
|
|
340
346
|
this.currentNode.value = this.str.substring(this.currentNode.startPos - this.pos, this.currentNode.endPos - this.pos + 1);
|
|
341
347
|
this.currentNode = this.currentNode.parentNode;
|
|
@@ -6,10 +6,10 @@ import net from 'node:net';
|
|
|
6
6
|
import { EventEmitter } from 'node:events';
|
|
7
7
|
import { PassThrough, type Readable } from 'node:stream';
|
|
8
8
|
import { AuthenticationFailure } from './errors.js';
|
|
9
|
-
import type { AppendResponseObject, CopyResponseObject, DownloadManyOptions, DownloadManyResult, DownloadObject, DownloadOptions, ESearchResult, FetchMessageObject, FetchOptions, FetchQueryObject, IdInfoObject, ImapFlowEvents, ImapFlowOptions, InternalLogger, ListOptions, ListResponse, ListTreeResponse, MailboxCreateResponse, MailboxDeleteResponse, MailboxLockObject, MailboxLockOptions, MailboxObject, MailboxOpenOptions, MailboxRenameResponse, MessageRange, MessageRangeOptions, NamespaceObject, NamespacesObject, QuotaResponse, SearchObject, SearchOptions, SearchReturnOption, SequenceString, StatusObject, StatusQuery, StoreOptions, TlsInfo } from './types.js';
|
|
9
|
+
import type { AppendResponseObject, CopyResponseObject, DownloadManyOptions, DownloadManyResult, DownloadObject, DownloadNotFound, DownloadOptions, ESearchResult, FetchMessageObject, FetchOptions, FetchQueryObject, IdInfoObject, ImapFlowEvents, ImapFlowOptions, InternalLogger, ListOptions, ListResponse, ListTreeResponse, MailboxCreateResponse, MailboxDeleteResponse, MailboxLockObject, MailboxLockOptions, MailboxObject, MailboxOpenOptions, MailboxRenameResponse, MessageRange, MessageRangeOptions, NamespaceObject, NamespacesObject, QuotaResponse, SearchObject, SearchOptions, SearchReturnOption, SequenceString, StatusObject, StatusQuery, StoreOptions, TlsInfo } from './types.js';
|
|
10
10
|
export type * from './types.js';
|
|
11
11
|
export type { ImapFlowError } from './errors.js';
|
|
12
|
-
export { AuthenticationFailure } from './errors.js';
|
|
12
|
+
export { AuthenticationFailure, ImapFlowErrorCode } from './errors.js';
|
|
13
13
|
export type { ImapAttribute, ImapAttributeList, ImapAttributeNode, ImapResponse } from './handler/types.js';
|
|
14
14
|
declare const stateValues: {
|
|
15
15
|
readonly NOT_AUTHENTICATED: 1;
|
|
@@ -61,6 +61,17 @@ export interface ImapFlow {
|
|
|
61
61
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
62
62
|
emit<K extends keyof ImapFlowEvents>(event: K, ...args: ImapFlowEvents[K]): boolean;
|
|
63
63
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Logs out and closes the connection when the scope of an `await using` declaration ends.
|
|
66
|
+
* Never throws, the connection is closed whether LOGOUT succeeds or not. Only present on
|
|
67
|
+
* runtimes that define `Symbol.asyncDispose` (Node.js 20.4 and newer).
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await using client = new ImapFlow({...});
|
|
71
|
+
* await client.connect();
|
|
72
|
+
* // client.logout() runs automatically when the scope exits, even on a throw
|
|
73
|
+
*/
|
|
74
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
64
75
|
}
|
|
65
76
|
/**
|
|
66
77
|
* IMAP client class for accessing IMAP mailboxes
|
|
@@ -135,6 +146,9 @@ export declare class ImapFlow extends EventEmitter {
|
|
|
135
146
|
byeReason: string | undefined;
|
|
136
147
|
/** Negotiated TLS session details, `false` for a cleartext connection */
|
|
137
148
|
tls: TlsInfo | false | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Creates a client for one IMAP connection. Nothing is sent before `connect()` is called
|
|
151
|
+
*/
|
|
138
152
|
constructor(options?: ImapFlowOptions | undefined);
|
|
139
153
|
/**
|
|
140
154
|
* Returns byte counters for the current connection.
|
|
@@ -315,20 +329,20 @@ export declare class ImapFlow extends EventEmitter {
|
|
|
315
329
|
*
|
|
316
330
|
* @param path mailbox path to check for (unicode string). If value is an array then it is joined using current delimiter symbols. Namespace prefix is added automatically if required.
|
|
317
331
|
* @param query defines requested status items
|
|
318
|
-
* @returns status of the indicated mailbox
|
|
332
|
+
* @returns status of the indicated mailbox, or `false` if the server rejected the request
|
|
319
333
|
*
|
|
320
334
|
* @example
|
|
321
335
|
* let status = await client.status('INBOX', {unseen: true});
|
|
322
336
|
* console.log(status.unseen);
|
|
323
337
|
* // 123
|
|
324
338
|
*/
|
|
325
|
-
status(path: string | string[], query: StatusQuery): Promise<StatusObject>;
|
|
339
|
+
status(path: string | string[], query: StatusQuery): Promise<StatusObject | false>;
|
|
326
340
|
/**
|
|
327
341
|
* Starts listening for new or deleted messages from the currently opened mailbox. Only required if `disableAutoIdle` is set to `true`
|
|
328
342
|
* otherwise IDLE is started by default on connection inactivity. NB! If `idle()` is called manually then it does not
|
|
329
343
|
* return until IDLE is finished which means you would have to call some other command out of scope.
|
|
330
344
|
*
|
|
331
|
-
* @returns
|
|
345
|
+
* @returns `false` if IDLE failed, `undefined` otherwise
|
|
332
346
|
*
|
|
333
347
|
* @example
|
|
334
348
|
* let mailbox = await client.mailboxOpen('INBOX');
|
|
@@ -470,6 +484,10 @@ export declare class ImapFlow extends EventEmitter {
|
|
|
470
484
|
* ]});
|
|
471
485
|
*/
|
|
472
486
|
search(query: SearchObject, options?: MessageRangeOptions | undefined): Promise<number[] | false | undefined>;
|
|
487
|
+
/**
|
|
488
|
+
* Search with `returnOptions` set: an ESEARCH result object from a server that supports
|
|
489
|
+
* ESEARCH, the plain list of numbers otherwise
|
|
490
|
+
*/
|
|
473
491
|
search(query: SearchObject, options: SearchOptions & {
|
|
474
492
|
returnOptions: SearchReturnOption[];
|
|
475
493
|
}): Promise<ESearchResult | number[] | false | undefined>;
|
|
@@ -540,10 +558,12 @@ export declare class ImapFlow extends EventEmitter {
|
|
|
540
558
|
* @example
|
|
541
559
|
* let mailbox = await client.mailboxOpen('INBOX');
|
|
542
560
|
* // download body part nr '1.2' from latest message
|
|
543
|
-
* let
|
|
544
|
-
*
|
|
561
|
+
* let download = await client.download('*', '1.2');
|
|
562
|
+
* if (download.content) {
|
|
563
|
+
* download.content.pipe(fs.createWriteStream(download.meta.filename));
|
|
564
|
+
* }
|
|
545
565
|
*/
|
|
546
|
-
download(range: SequenceString, part?: string | undefined, options?: DownloadOptions | undefined): Promise<DownloadObject>;
|
|
566
|
+
download(range: SequenceString, part?: string | undefined, options?: DownloadOptions | undefined): Promise<DownloadObject | DownloadNotFound>;
|
|
547
567
|
/**
|
|
548
568
|
* Fetch multiple attachments as Buffer values
|
|
549
569
|
*
|
|
@@ -583,7 +603,8 @@ export declare class ImapFlow extends EventEmitter {
|
|
|
583
603
|
getMailboxLock(path: string | string[], options?: MailboxLockOptions | undefined): Promise<MailboxLockObject>;
|
|
584
604
|
/**
|
|
585
605
|
* Detaches sockets from the IMAP pipeline. Useful for upgrading the connection
|
|
586
|
-
* (e.g., STARTTLS) or transferring socket ownership.
|
|
606
|
+
* (e.g., STARTTLS) or transferring socket ownership. Call it while the connection is not
|
|
607
|
+
* idling: an IDLE in progress is not broken first, so the server still expects `DONE`.
|
|
587
608
|
*
|
|
588
609
|
* @returns Socket objects: `readSocket` is the read socket (inflated socket if compression is enabled, raw socket otherwise),
|
|
589
610
|
* `writeSocket` the write socket and `socket` the raw underlying socket (same as readSocket/writeSocket when compression is disabled)
|
|
@@ -594,81 +615,6 @@ export declare class ImapFlow extends EventEmitter {
|
|
|
594
615
|
socket: ImapSocket;
|
|
595
616
|
};
|
|
596
617
|
}
|
|
597
|
-
/**
|
|
598
|
-
* Connection close event. **NB!** ImapFlow does not handle reconnects automatically.
|
|
599
|
-
* So whenever a 'close' event occurs you must create a new connection yourself.
|
|
600
|
-
*
|
|
601
|
-
* @event ImapFlow#close
|
|
602
|
-
*/
|
|
603
|
-
/**
|
|
604
|
-
* Error event. In most cases getting an error event also means that connection is closed
|
|
605
|
-
* and pending operations should return with a failure.
|
|
606
|
-
*
|
|
607
|
-
* @event ImapFlow#error
|
|
608
|
-
* @example
|
|
609
|
-
* client.on('error', err=>{
|
|
610
|
-
* console.log(`Error occurred: ${err.message}`);
|
|
611
|
-
* });
|
|
612
|
-
*/
|
|
613
|
-
/**
|
|
614
|
-
* Message count in currently opened mailbox changed
|
|
615
|
-
*
|
|
616
|
-
* @event ImapFlow#exists
|
|
617
|
-
* @example
|
|
618
|
-
* client.on('exists', data=>{
|
|
619
|
-
* console.log(`Message count in "${data.path}" is ${data.count}`);
|
|
620
|
-
* });
|
|
621
|
-
*/
|
|
622
|
-
/**
|
|
623
|
-
* Deleted message sequence number in currently opened mailbox. One event is fired for every deleted email.
|
|
624
|
-
*
|
|
625
|
-
* @event ImapFlow#expunge
|
|
626
|
-
* @example
|
|
627
|
-
* client.on('expunge', data=>{
|
|
628
|
-
* console.log(`Message #${data.seq} was deleted from "${data.path}"`);
|
|
629
|
-
* });
|
|
630
|
-
*/
|
|
631
|
-
/**
|
|
632
|
-
* Flags were updated for a message. Not all servers fire this event.
|
|
633
|
-
*
|
|
634
|
-
* @event ImapFlow#flags
|
|
635
|
-
* @example
|
|
636
|
-
* client.on('flags', data=>{
|
|
637
|
-
* console.log(`Flag set for #${data.seq} is now "${Array.from(data.flags).join(', ')}"`);
|
|
638
|
-
* });
|
|
639
|
-
*/
|
|
640
|
-
/**
|
|
641
|
-
* Mailbox was opened
|
|
642
|
-
*
|
|
643
|
-
* @event ImapFlow#mailboxOpen
|
|
644
|
-
* @example
|
|
645
|
-
* client.on('mailboxOpen', mailbox => {
|
|
646
|
-
* console.log(`Mailbox ${mailbox.path} was opened`);
|
|
647
|
-
* });
|
|
648
|
-
*/
|
|
649
|
-
/**
|
|
650
|
-
* Mailbox was closed
|
|
651
|
-
*
|
|
652
|
-
* Emitted both when a selected mailbox is closed explicitly, by `mailboxClose()` or by
|
|
653
|
-
* selecting a different mailbox, and when the connection itself goes away while a mailbox
|
|
654
|
-
* was still selected, whether through a clean logout or a lost transport. The transition is
|
|
655
|
-
* reported once per selected mailbox, before the `close` event.
|
|
656
|
-
*
|
|
657
|
-
* @event ImapFlow#mailboxClose
|
|
658
|
-
* @example
|
|
659
|
-
* client.on('mailboxClose', mailbox => {
|
|
660
|
-
* console.log(`Mailbox ${mailbox.path} was closed`);
|
|
661
|
-
* });
|
|
662
|
-
*/
|
|
663
|
-
/**
|
|
664
|
-
* Log event if `emitLogs=true`
|
|
665
|
-
*
|
|
666
|
-
* @event ImapFlow#log
|
|
667
|
-
* @example
|
|
668
|
-
* client.on('log', entry => {
|
|
669
|
-
* console.log(`${entry.cid} ${entry.msg}`);
|
|
670
|
-
* });
|
|
671
|
-
*/
|
|
672
618
|
declare const imapflow: {
|
|
673
619
|
ImapFlow: typeof ImapFlow;
|
|
674
620
|
AuthenticationFailure: typeof AuthenticationFailure;
|