@agenticmail/enterprise 0.5.326 → 0.5.328
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/dist/dashboard/app.js +1 -1
- package/dist/dashboard/pages/cluster.js +1 -1
- package/logs/cloudflared-error.log +6 -0
- package/logs/enterprise-out.log +2 -0
- package/package.json +1 -1
- package/god_is_great.html +0 -35
- package/src/admin/page-registry.ts +0 -290
- package/src/admin/routes.ts +0 -2968
- package/src/agent-tools/common.ts +0 -260
- package/src/agent-tools/index.ts +0 -542
- package/src/agent-tools/merge.ts +0 -62
- package/src/agent-tools/middleware.ts +0 -436
- package/src/agent-tools/schema/typebox.ts +0 -25
- package/src/agent-tools/security.ts +0 -352
- package/src/agent-tools/tool-resolver.ts +0 -1018
- package/src/agent-tools/tools/agenticmail.ts +0 -1017
- package/src/agent-tools/tools/bash.ts +0 -179
- package/src/agent-tools/tools/browser-tool.schema.ts +0 -112
- package/src/agent-tools/tools/browser-tool.ts +0 -388
- package/src/agent-tools/tools/browser.ts +0 -764
- package/src/agent-tools/tools/edit.ts +0 -100
- package/src/agent-tools/tools/enterprise-code-sandbox.ts +0 -395
- package/src/agent-tools/tools/enterprise-database.ts +0 -377
- package/src/agent-tools/tools/enterprise-diff.ts +0 -580
- package/src/agent-tools/tools/enterprise-documents.ts +0 -896
- package/src/agent-tools/tools/enterprise-http.ts +0 -485
- package/src/agent-tools/tools/enterprise-security-scan.ts +0 -528
- package/src/agent-tools/tools/enterprise-spreadsheet.ts +0 -825
- package/src/agent-tools/tools/glob.ts +0 -129
- package/src/agent-tools/tools/google/calendar.ts +0 -230
- package/src/agent-tools/tools/google/chat.ts +0 -725
- package/src/agent-tools/tools/google/contacts.ts +0 -209
- package/src/agent-tools/tools/google/docs.ts +0 -162
- package/src/agent-tools/tools/google/drive.ts +0 -392
- package/src/agent-tools/tools/google/forms.ts +0 -367
- package/src/agent-tools/tools/google/gmail.ts +0 -897
- package/src/agent-tools/tools/google/index.ts +0 -86
- package/src/agent-tools/tools/google/maps.ts +0 -543
- package/src/agent-tools/tools/google/meeting-voice.ts +0 -885
- package/src/agent-tools/tools/google/meetings.ts +0 -1094
- package/src/agent-tools/tools/google/sheets.ts +0 -215
- package/src/agent-tools/tools/google/slides.ts +0 -559
- package/src/agent-tools/tools/google/tasks.ts +0 -200
- package/src/agent-tools/tools/grep.ts +0 -178
- package/src/agent-tools/tools/integrations/_factory.ts +0 -102
- package/src/agent-tools/tools/integrations/activecampaign.ts +0 -14
- package/src/agent-tools/tools/integrations/adobe-sign.ts +0 -14
- package/src/agent-tools/tools/integrations/adp.ts +0 -14
- package/src/agent-tools/tools/integrations/airtable.ts +0 -14
- package/src/agent-tools/tools/integrations/apollo.ts +0 -14
- package/src/agent-tools/tools/integrations/asana.ts +0 -14
- package/src/agent-tools/tools/integrations/auth0.ts +0 -14
- package/src/agent-tools/tools/integrations/aws.ts +0 -14
- package/src/agent-tools/tools/integrations/azure-devops.ts +0 -14
- package/src/agent-tools/tools/integrations/bamboohr.ts +0 -14
- package/src/agent-tools/tools/integrations/basecamp.ts +0 -14
- package/src/agent-tools/tools/integrations/bigcommerce.ts +0 -14
- package/src/agent-tools/tools/integrations/bitbucket.ts +0 -14
- package/src/agent-tools/tools/integrations/box.ts +0 -14
- package/src/agent-tools/tools/integrations/brex.ts +0 -14
- package/src/agent-tools/tools/integrations/buffer.ts +0 -14
- package/src/agent-tools/tools/integrations/calendly.ts +0 -14
- package/src/agent-tools/tools/integrations/canva.ts +0 -14
- package/src/agent-tools/tools/integrations/chargebee.ts +0 -14
- package/src/agent-tools/tools/integrations/circleci.ts +0 -14
- package/src/agent-tools/tools/integrations/clickup.ts +0 -14
- package/src/agent-tools/tools/integrations/close.ts +0 -14
- package/src/agent-tools/tools/integrations/cloudflare.ts +0 -14
- package/src/agent-tools/tools/integrations/confluence.ts +0 -14
- package/src/agent-tools/tools/integrations/contentful.ts +0 -14
- package/src/agent-tools/tools/integrations/copper.ts +0 -14
- package/src/agent-tools/tools/integrations/crisp.ts +0 -14
- package/src/agent-tools/tools/integrations/crowdstrike.ts +0 -14
- package/src/agent-tools/tools/integrations/datadog.ts +0 -14
- package/src/agent-tools/tools/integrations/digitalocean.ts +0 -14
- package/src/agent-tools/tools/integrations/discord.ts +0 -14
- package/src/agent-tools/tools/integrations/docker.ts +0 -14
- package/src/agent-tools/tools/integrations/docusign.ts +0 -14
- package/src/agent-tools/tools/integrations/drift.ts +0 -14
- package/src/agent-tools/tools/integrations/dropbox.ts +0 -14
- package/src/agent-tools/tools/integrations/figma.ts +0 -14
- package/src/agent-tools/tools/integrations/firebase.ts +0 -14
- package/src/agent-tools/tools/integrations/flyio.ts +0 -14
- package/src/agent-tools/tools/integrations/freshbooks.ts +0 -14
- package/src/agent-tools/tools/integrations/freshdesk.ts +0 -14
- package/src/agent-tools/tools/integrations/freshsales.ts +0 -14
- package/src/agent-tools/tools/integrations/freshservice.ts +0 -14
- package/src/agent-tools/tools/integrations/front.ts +0 -14
- package/src/agent-tools/tools/integrations/github-actions.ts +0 -14
- package/src/agent-tools/tools/integrations/github.ts +0 -14
- package/src/agent-tools/tools/integrations/gitlab.ts +0 -14
- package/src/agent-tools/tools/integrations/gong.ts +0 -14
- package/src/agent-tools/tools/integrations/google-ads.ts +0 -14
- package/src/agent-tools/tools/integrations/google-analytics.ts +0 -14
- package/src/agent-tools/tools/integrations/google-cloud.ts +0 -14
- package/src/agent-tools/tools/integrations/gotomeeting.ts +0 -14
- package/src/agent-tools/tools/integrations/grafana.ts +0 -14
- package/src/agent-tools/tools/integrations/greenhouse.ts +0 -14
- package/src/agent-tools/tools/integrations/gusto.ts +0 -14
- package/src/agent-tools/tools/integrations/hashicorp-vault.ts +0 -14
- package/src/agent-tools/tools/integrations/heroku.ts +0 -14
- package/src/agent-tools/tools/integrations/hibob.ts +0 -14
- package/src/agent-tools/tools/integrations/hootsuite.ts +0 -14
- package/src/agent-tools/tools/integrations/hubspot.ts +0 -14
- package/src/agent-tools/tools/integrations/huggingface.ts +0 -14
- package/src/agent-tools/tools/integrations/index.ts +0 -474
- package/src/agent-tools/tools/integrations/intercom.ts +0 -14
- package/src/agent-tools/tools/integrations/jira.ts +0 -14
- package/src/agent-tools/tools/integrations/klaviyo.ts +0 -14
- package/src/agent-tools/tools/integrations/kubernetes.ts +0 -14
- package/src/agent-tools/tools/integrations/lattice.ts +0 -14
- package/src/agent-tools/tools/integrations/launchdarkly.ts +0 -14
- package/src/agent-tools/tools/integrations/lever.ts +0 -14
- package/src/agent-tools/tools/integrations/linear.ts +0 -14
- package/src/agent-tools/tools/integrations/linkedin.ts +0 -14
- package/src/agent-tools/tools/integrations/livechat.ts +0 -14
- package/src/agent-tools/tools/integrations/loom.ts +0 -14
- package/src/agent-tools/tools/integrations/mailchimp.ts +0 -14
- package/src/agent-tools/tools/integrations/mailgun.ts +0 -14
- package/src/agent-tools/tools/integrations/miro.ts +0 -14
- package/src/agent-tools/tools/integrations/mixpanel.ts +0 -14
- package/src/agent-tools/tools/integrations/monday.ts +0 -14
- package/src/agent-tools/tools/integrations/mongodb-atlas.ts +0 -14
- package/src/agent-tools/tools/integrations/neon.ts +0 -14
- package/src/agent-tools/tools/integrations/netlify.ts +0 -14
- package/src/agent-tools/tools/integrations/netsuite.ts +0 -14
- package/src/agent-tools/tools/integrations/newrelic.ts +0 -14
- package/src/agent-tools/tools/integrations/notion.ts +0 -14
- package/src/agent-tools/tools/integrations/okta.ts +0 -14
- package/src/agent-tools/tools/integrations/openai.ts +0 -14
- package/src/agent-tools/tools/integrations/opsgenie.ts +0 -14
- package/src/agent-tools/tools/integrations/outreach.ts +0 -14
- package/src/agent-tools/tools/integrations/paddle.ts +0 -14
- package/src/agent-tools/tools/integrations/pagerduty.ts +0 -14
- package/src/agent-tools/tools/integrations/pandadoc.ts +0 -14
- package/src/agent-tools/tools/integrations/paypal.ts +0 -14
- package/src/agent-tools/tools/integrations/personio.ts +0 -14
- package/src/agent-tools/tools/integrations/pinecone.ts +0 -14
- package/src/agent-tools/tools/integrations/pipedrive.ts +0 -14
- package/src/agent-tools/tools/integrations/plaid.ts +0 -14
- package/src/agent-tools/tools/integrations/postmark.ts +0 -14
- package/src/agent-tools/tools/integrations/power-automate.ts +0 -14
- package/src/agent-tools/tools/integrations/quickbooks.ts +0 -14
- package/src/agent-tools/tools/integrations/recurly.ts +0 -14
- package/src/agent-tools/tools/integrations/reddit.ts +0 -14
- package/src/agent-tools/tools/integrations/render.ts +0 -14
- package/src/agent-tools/tools/integrations/ringcentral.ts +0 -14
- package/src/agent-tools/tools/integrations/rippling.ts +0 -14
- package/src/agent-tools/tools/integrations/salesforce.ts +0 -14
- package/src/agent-tools/tools/integrations/salesloft.ts +0 -14
- package/src/agent-tools/tools/integrations/sanity.ts +0 -14
- package/src/agent-tools/tools/integrations/sap.ts +0 -14
- package/src/agent-tools/tools/integrations/segment.ts +0 -14
- package/src/agent-tools/tools/integrations/sendgrid.ts +0 -14
- package/src/agent-tools/tools/integrations/sentry.ts +0 -14
- package/src/agent-tools/tools/integrations/servicenow.ts +0 -14
- package/src/agent-tools/tools/integrations/shopify.ts +0 -14
- package/src/agent-tools/tools/integrations/shortcut.ts +0 -14
- package/src/agent-tools/tools/integrations/slack.ts +0 -14
- package/src/agent-tools/tools/integrations/smartsheet.ts +0 -14
- package/src/agent-tools/tools/integrations/snowflake.ts +0 -14
- package/src/agent-tools/tools/integrations/snyk.ts +0 -14
- package/src/agent-tools/tools/integrations/splunk.ts +0 -14
- package/src/agent-tools/tools/integrations/square.ts +0 -14
- package/src/agent-tools/tools/integrations/statuspage.ts +0 -14
- package/src/agent-tools/tools/integrations/stripe.ts +0 -14
- package/src/agent-tools/tools/integrations/supabase.ts +0 -14
- package/src/agent-tools/tools/integrations/teamwork.ts +0 -14
- package/src/agent-tools/tools/integrations/telegram.ts +0 -14
- package/src/agent-tools/tools/integrations/terraform.ts +0 -14
- package/src/agent-tools/tools/integrations/todoist.ts +0 -14
- package/src/agent-tools/tools/integrations/trello.ts +0 -14
- package/src/agent-tools/tools/integrations/twilio.ts +0 -14
- package/src/agent-tools/tools/integrations/twitter.ts +0 -14
- package/src/agent-tools/tools/integrations/vercel.ts +0 -14
- package/src/agent-tools/tools/integrations/weaviate.ts +0 -14
- package/src/agent-tools/tools/integrations/webex.ts +0 -14
- package/src/agent-tools/tools/integrations/webflow.ts +0 -14
- package/src/agent-tools/tools/integrations/whatsapp.ts +0 -14
- package/src/agent-tools/tools/integrations/whereby.ts +0 -14
- package/src/agent-tools/tools/integrations/woocommerce.ts +0 -14
- package/src/agent-tools/tools/integrations/wordpress.ts +0 -14
- package/src/agent-tools/tools/integrations/workday.ts +0 -14
- package/src/agent-tools/tools/integrations/wrike.ts +0 -14
- package/src/agent-tools/tools/integrations/xero.ts +0 -14
- package/src/agent-tools/tools/integrations/youtube.ts +0 -14
- package/src/agent-tools/tools/integrations/zendesk.ts +0 -14
- package/src/agent-tools/tools/integrations/zoho-crm.ts +0 -14
- package/src/agent-tools/tools/integrations/zoom.ts +0 -14
- package/src/agent-tools/tools/integrations/zuora.ts +0 -14
- package/src/agent-tools/tools/knowledge-search.ts +0 -318
- package/src/agent-tools/tools/local/coding.ts +0 -626
- package/src/agent-tools/tools/local/dependency-manager.ts +0 -647
- package/src/agent-tools/tools/local/file-edit.ts +0 -31
- package/src/agent-tools/tools/local/file-list.ts +0 -39
- package/src/agent-tools/tools/local/file-ops.ts +0 -48
- package/src/agent-tools/tools/local/file-read.ts +0 -39
- package/src/agent-tools/tools/local/file-search.ts +0 -46
- package/src/agent-tools/tools/local/file-write.ts +0 -28
- package/src/agent-tools/tools/local/filesystem.ts +0 -5
- package/src/agent-tools/tools/local/index.ts +0 -55
- package/src/agent-tools/tools/local/resolve-path.ts +0 -18
- package/src/agent-tools/tools/local/shell.ts +0 -277
- package/src/agent-tools/tools/local/system-info.ts +0 -29
- package/src/agent-tools/tools/management.ts +0 -425
- package/src/agent-tools/tools/mcp-bridge.ts +0 -142
- package/src/agent-tools/tools/mcp-server-tools.ts +0 -91
- package/src/agent-tools/tools/meeting-lifecycle.ts +0 -438
- package/src/agent-tools/tools/memory.ts +0 -509
- package/src/agent-tools/tools/messaging/index.ts +0 -6
- package/src/agent-tools/tools/messaging/telegram.ts +0 -167
- package/src/agent-tools/tools/messaging/whatsapp.ts +0 -651
- package/src/agent-tools/tools/microsoft/contacts.ts +0 -176
- package/src/agent-tools/tools/microsoft/excel-vba.ts +0 -331
- package/src/agent-tools/tools/microsoft/excel.ts +0 -261
- package/src/agent-tools/tools/microsoft/graph-api.ts +0 -161
- package/src/agent-tools/tools/microsoft/index.ts +0 -95
- package/src/agent-tools/tools/microsoft/onedrive.ts +0 -429
- package/src/agent-tools/tools/microsoft/onenote.ts +0 -186
- package/src/agent-tools/tools/microsoft/outlook-calendar.ts +0 -286
- package/src/agent-tools/tools/microsoft/outlook-mail.ts +0 -723
- package/src/agent-tools/tools/microsoft/planner.ts +0 -200
- package/src/agent-tools/tools/microsoft/powerbi.ts +0 -266
- package/src/agent-tools/tools/microsoft/powerpoint.ts +0 -186
- package/src/agent-tools/tools/microsoft/sharepoint.ts +0 -328
- package/src/agent-tools/tools/microsoft/teams.ts +0 -463
- package/src/agent-tools/tools/microsoft/todo.ts +0 -181
- package/src/agent-tools/tools/oauth-token-provider.ts +0 -101
- package/src/agent-tools/tools/read.ts +0 -160
- package/src/agent-tools/tools/visual-memory/capture.ts +0 -217
- package/src/agent-tools/tools/visual-memory/diff.ts +0 -283
- package/src/agent-tools/tools/visual-memory/index.ts +0 -698
- package/src/agent-tools/tools/visual-memory/phash.ts +0 -120
- package/src/agent-tools/tools/visual-memory/similarity.ts +0 -354
- package/src/agent-tools/tools/visual-memory/storage.ts +0 -534
- package/src/agent-tools/tools/visual-memory/types.ts +0 -100
- package/src/agent-tools/tools/web-fetch-utils.ts +0 -202
- package/src/agent-tools/tools/web-fetch.ts +0 -464
- package/src/agent-tools/tools/web-search.ts +0 -480
- package/src/agent-tools/tools/web-shared.ts +0 -232
- package/src/agent-tools/tools/write.ts +0 -68
- package/src/agent-tools/types.ts +0 -214
- package/src/agenticmail/index.ts +0 -34
- package/src/agenticmail/manager.ts +0 -253
- package/src/agenticmail/providers/google.ts +0 -391
- package/src/agenticmail/providers/imap.ts +0 -454
- package/src/agenticmail/providers/index.ts +0 -28
- package/src/agenticmail/providers/microsoft.ts +0 -260
- package/src/agenticmail/types.ts +0 -173
- package/src/auth/routes.ts +0 -1589
- package/src/browser/bridge-auth-registry.ts +0 -34
- package/src/browser/bridge-server.ts +0 -93
- package/src/browser/cdp.helpers.ts +0 -180
- package/src/browser/cdp.ts +0 -466
- package/src/browser/chrome.executables.ts +0 -625
- package/src/browser/chrome.profile-decoration.ts +0 -198
- package/src/browser/chrome.ts +0 -349
- package/src/browser/client-actions-core.ts +0 -259
- package/src/browser/client-actions-observe.ts +0 -184
- package/src/browser/client-actions-state.ts +0 -284
- package/src/browser/client-actions-types.ts +0 -16
- package/src/browser/client-actions-url.ts +0 -11
- package/src/browser/client-actions.ts +0 -4
- package/src/browser/client-fetch.ts +0 -253
- package/src/browser/client.ts +0 -337
- package/src/browser/config.ts +0 -301
- package/src/browser/constants.ts +0 -8
- package/src/browser/control-auth.ts +0 -94
- package/src/browser/control-service.ts +0 -81
- package/src/browser/csrf.ts +0 -87
- package/src/browser/enterprise-compat.ts +0 -562
- package/src/browser/extension-relay.ts +0 -834
- package/src/browser/http-auth.ts +0 -63
- package/src/browser/navigation-guard.ts +0 -50
- package/src/browser/paths.ts +0 -49
- package/src/browser/playwright.d.ts +0 -12
- package/src/browser/profiles-service.ts +0 -187
- package/src/browser/profiles.ts +0 -114
- package/src/browser/proxy-files.ts +0 -41
- package/src/browser/pw-ai-module.ts +0 -52
- package/src/browser/pw-ai-state.ts +0 -9
- package/src/browser/pw-ai.ts +0 -65
- package/src/browser/pw-role-snapshot.ts +0 -434
- package/src/browser/pw-session.ts +0 -810
- package/src/browser/pw-tools-core.activity.ts +0 -68
- package/src/browser/pw-tools-core.downloads.ts +0 -281
- package/src/browser/pw-tools-core.interactions.ts +0 -646
- package/src/browser/pw-tools-core.responses.ts +0 -124
- package/src/browser/pw-tools-core.shared.ts +0 -70
- package/src/browser/pw-tools-core.snapshot.ts +0 -213
- package/src/browser/pw-tools-core.state.ts +0 -209
- package/src/browser/pw-tools-core.storage.ts +0 -128
- package/src/browser/pw-tools-core.trace.ts +0 -37
- package/src/browser/pw-tools-core.ts +0 -8
- package/src/browser/resolved-config-refresh.ts +0 -59
- package/src/browser/routes/agent.act.shared.ts +0 -52
- package/src/browser/routes/agent.act.ts +0 -575
- package/src/browser/routes/agent.debug.ts +0 -149
- package/src/browser/routes/agent.shared.ts +0 -143
- package/src/browser/routes/agent.snapshot.ts +0 -333
- package/src/browser/routes/agent.storage.ts +0 -451
- package/src/browser/routes/agent.ts +0 -13
- package/src/browser/routes/basic.ts +0 -202
- package/src/browser/routes/dispatcher.ts +0 -126
- package/src/browser/routes/index.ts +0 -11
- package/src/browser/routes/path-output.ts +0 -1
- package/src/browser/routes/tabs.ts +0 -217
- package/src/browser/routes/types.ts +0 -26
- package/src/browser/routes/utils.ts +0 -73
- package/src/browser/screenshot.ts +0 -54
- package/src/browser/server-context.ts +0 -688
- package/src/browser/server-context.types.ts +0 -65
- package/src/browser/server-lifecycle.ts +0 -48
- package/src/browser/server-middleware.ts +0 -37
- package/src/browser/server.ts +0 -110
- package/src/browser/target-id.ts +0 -30
- package/src/browser/trash.ts +0 -21
- package/src/cli-agent.ts +0 -2452
- package/src/cli-reset-password.ts +0 -138
- package/src/cli-serve.ts +0 -314
- package/src/cli.ts +0 -103
- package/src/dashboard/HELP-TOOLTIPS-GUIDE.md +0 -45
- package/src/dashboard/app.js +0 -579
- package/src/dashboard/assets/brand-logos.js +0 -350
- package/src/dashboard/assets/icons/emoji-icons.js +0 -893
- package/src/dashboard/assets/logo.png +0 -0
- package/src/dashboard/assets/provider-logos.js +0 -139
- package/src/dashboard/components/error-boundary.js +0 -21
- package/src/dashboard/components/help-button.js +0 -65
- package/src/dashboard/components/icons.js +0 -64
- package/src/dashboard/components/knowledge-link.js +0 -79
- package/src/dashboard/components/modal.js +0 -125
- package/src/dashboard/components/org-switcher.js +0 -156
- package/src/dashboard/components/persona-fields.js +0 -460
- package/src/dashboard/components/settings-help.js +0 -193
- package/src/dashboard/components/tag-input.js +0 -96
- package/src/dashboard/components/timezones.js +0 -352
- package/src/dashboard/components/transport-encryption.js +0 -288
- package/src/dashboard/components/utils.js +0 -205
- package/src/dashboard/data/countries.js +0 -255
- package/src/dashboard/docs/activity.html +0 -253
- package/src/dashboard/docs/agent-activity.html +0 -199
- package/src/dashboard/docs/agent-autonomy.html +0 -161
- package/src/dashboard/docs/agent-budget.html +0 -190
- package/src/dashboard/docs/agent-channels.html +0 -189
- package/src/dashboard/docs/agent-communication.html +0 -171
- package/src/dashboard/docs/agent-configuration.html +0 -194
- package/src/dashboard/docs/agent-deployment.html +0 -323
- package/src/dashboard/docs/agent-email.html +0 -184
- package/src/dashboard/docs/agent-guardrails.html +0 -206
- package/src/dashboard/docs/agent-manager.html +0 -226
- package/src/dashboard/docs/agent-memory.html +0 -215
- package/src/dashboard/docs/agent-overview.html +0 -226
- package/src/dashboard/docs/agent-permissions.html +0 -305
- package/src/dashboard/docs/agent-personal.html +0 -155
- package/src/dashboard/docs/agent-security.html +0 -188
- package/src/dashboard/docs/agent-skills.html +0 -224
- package/src/dashboard/docs/agent-tool-security.html +0 -205
- package/src/dashboard/docs/agent-tools.html +0 -238
- package/src/dashboard/docs/agent-whatsapp.html +0 -210
- package/src/dashboard/docs/agent-workforce.html +0 -199
- package/src/dashboard/docs/agents.html +0 -258
- package/src/dashboard/docs/approvals.html +0 -200
- package/src/dashboard/docs/audit.html +0 -206
- package/src/dashboard/docs/browser-providers.html +0 -313
- package/src/dashboard/docs/cluster.html +0 -285
- package/src/dashboard/docs/community-skills.html +0 -253
- package/src/dashboard/docs/compliance.html +0 -221
- package/src/dashboard/docs/dashboard.html +0 -84
- package/src/dashboard/docs/database-access.html +0 -322
- package/src/dashboard/docs/dlp.html +0 -268
- package/src/dashboard/docs/docs-style.css +0 -26
- package/src/dashboard/docs/domain-status.html +0 -294
- package/src/dashboard/docs/guardrails.html +0 -265
- package/src/dashboard/docs/journal.html +0 -197
- package/src/dashboard/docs/knowledge-contributions.html +0 -286
- package/src/dashboard/docs/knowledge.html +0 -268
- package/src/dashboard/docs/memory-transfer.html +0 -311
- package/src/dashboard/docs/messages.html +0 -217
- package/src/dashboard/docs/multi-tenant.html +0 -311
- package/src/dashboard/docs/org-chart.html +0 -239
- package/src/dashboard/docs/organizations.html +0 -182
- package/src/dashboard/docs/roles.html +0 -195
- package/src/dashboard/docs/settings-network.html +0 -321
- package/src/dashboard/docs/settings-security.html +0 -347
- package/src/dashboard/docs/settings-tool-security.html +0 -176
- package/src/dashboard/docs/settings.html +0 -280
- package/src/dashboard/docs/skill-connections.html +0 -270
- package/src/dashboard/docs/skills.html +0 -206
- package/src/dashboard/docs/task-pipeline.html +0 -261
- package/src/dashboard/docs/transport-encryption.html +0 -359
- package/src/dashboard/docs/users.html +0 -225
- package/src/dashboard/docs/vault.html +0 -260
- package/src/dashboard/docs/workforce.html +0 -245
- package/src/dashboard/index.html +0 -444
- package/src/dashboard/pages/activity.js +0 -379
- package/src/dashboard/pages/agent-detail/activity.js +0 -277
- package/src/dashboard/pages/agent-detail/autonomy.js +0 -244
- package/src/dashboard/pages/agent-detail/budget.js +0 -269
- package/src/dashboard/pages/agent-detail/channels.js +0 -494
- package/src/dashboard/pages/agent-detail/communication.js +0 -296
- package/src/dashboard/pages/agent-detail/configuration.js +0 -882
- package/src/dashboard/pages/agent-detail/deployment.js +0 -958
- package/src/dashboard/pages/agent-detail/email.js +0 -674
- package/src/dashboard/pages/agent-detail/guardrails.js +0 -521
- package/src/dashboard/pages/agent-detail/index.js +0 -261
- package/src/dashboard/pages/agent-detail/manager.js +0 -357
- package/src/dashboard/pages/agent-detail/meeting-browser.js +0 -933
- package/src/dashboard/pages/agent-detail/memory.js +0 -368
- package/src/dashboard/pages/agent-detail/overview.js +0 -844
- package/src/dashboard/pages/agent-detail/permissions.js +0 -1163
- package/src/dashboard/pages/agent-detail/personal-details.js +0 -404
- package/src/dashboard/pages/agent-detail/security.js +0 -409
- package/src/dashboard/pages/agent-detail/shared.js +0 -85
- package/src/dashboard/pages/agent-detail/skills-section.js +0 -183
- package/src/dashboard/pages/agent-detail/tool-security.js +0 -380
- package/src/dashboard/pages/agent-detail/tools.js +0 -322
- package/src/dashboard/pages/agent-detail/whatsapp.js +0 -824
- package/src/dashboard/pages/agent-detail/workforce.js +0 -683
- package/src/dashboard/pages/agents.js +0 -1242
- package/src/dashboard/pages/approvals.js +0 -100
- package/src/dashboard/pages/audit.js +0 -198
- package/src/dashboard/pages/cluster.js +0 -512
- package/src/dashboard/pages/community-skills.js +0 -1219
- package/src/dashboard/pages/compliance.js +0 -475
- package/src/dashboard/pages/dashboard.js +0 -180
- package/src/dashboard/pages/database-access.js +0 -812
- package/src/dashboard/pages/dlp.js +0 -293
- package/src/dashboard/pages/domain-status.js +0 -951
- package/src/dashboard/pages/guardrails.js +0 -1035
- package/src/dashboard/pages/journal.js +0 -172
- package/src/dashboard/pages/knowledge-contributions.js +0 -1682
- package/src/dashboard/pages/knowledge-import.js +0 -455
- package/src/dashboard/pages/knowledge.js +0 -582
- package/src/dashboard/pages/login.js +0 -1056
- package/src/dashboard/pages/memory-transfer.js +0 -631
- package/src/dashboard/pages/messages.js +0 -303
- package/src/dashboard/pages/org-chart.js +0 -349
- package/src/dashboard/pages/organizations.js +0 -1081
- package/src/dashboard/pages/roles.js +0 -780
- package/src/dashboard/pages/settings.js +0 -3790
- package/src/dashboard/pages/skill-connections.js +0 -982
- package/src/dashboard/pages/skills.js +0 -879
- package/src/dashboard/pages/task-pipeline.js +0 -684
- package/src/dashboard/pages/users.js +0 -867
- package/src/dashboard/pages/vault.js +0 -791
- package/src/dashboard/pages/workforce.js +0 -851
- package/src/dashboard/vendor/react-dom.development.js +0 -29924
- package/src/dashboard/vendor/react-dom.production.min.js +0 -267
- package/src/dashboard/vendor/react.development.js +0 -3343
- package/src/dashboard/vendor/react.production.min.js +0 -31
- package/src/database-access/agent-tools.ts +0 -193
- package/src/database-access/connection-manager.ts +0 -1341
- package/src/database-access/index.ts +0 -21
- package/src/database-access/query-sanitizer.ts +0 -220
- package/src/database-access/routes.ts +0 -226
- package/src/database-access/types.ts +0 -226
- package/src/db/adapter.ts +0 -510
- package/src/db/dynamodb.ts +0 -454
- package/src/db/factory.ts +0 -129
- package/src/db/mongodb.ts +0 -360
- package/src/db/mysql.ts +0 -531
- package/src/db/postgres.ts +0 -863
- package/src/db/proxy.ts +0 -39
- package/src/db/resolve-driver.ts +0 -29
- package/src/db/sql-schema.ts +0 -124
- package/src/db/sqlite.ts +0 -493
- package/src/db/turso.ts +0 -470
- package/src/deploy/fly.ts +0 -368
- package/src/deploy/managed.ts +0 -235
- package/src/domain-lock/cli-recover.ts +0 -591
- package/src/domain-lock/cli-verify.ts +0 -190
- package/src/domain-lock/index.ts +0 -220
- package/src/engine/activity-routes.ts +0 -154
- package/src/engine/activity.ts +0 -568
- package/src/engine/agent-autonomy.ts +0 -974
- package/src/engine/agent-config.ts +0 -646
- package/src/engine/agent-heartbeat.ts +0 -720
- package/src/engine/agent-hierarchy.ts +0 -1064
- package/src/engine/agent-memory.ts +0 -806
- package/src/engine/agent-notify.ts +0 -50
- package/src/engine/agent-routes.ts +0 -2583
- package/src/engine/agent-status.ts +0 -311
- package/src/engine/ambient-memory.ts +0 -401
- package/src/engine/approvals.ts +0 -615
- package/src/engine/assets/thinking-hum.mp3 +0 -0
- package/src/engine/catalog-routes.ts +0 -232
- package/src/engine/chat-poller.ts +0 -913
- package/src/engine/chat-webhook-routes.ts +0 -304
- package/src/engine/cli-build-skill.ts +0 -285
- package/src/engine/cli-submit-skill.ts +0 -200
- package/src/engine/cli-validate.ts +0 -188
- package/src/engine/cluster.ts +0 -278
- package/src/engine/communication-routes.ts +0 -139
- package/src/engine/communication.ts +0 -765
- package/src/engine/community-registry.ts +0 -1529
- package/src/engine/community-routes.ts +0 -260
- package/src/engine/compliance-routes.ts +0 -133
- package/src/engine/compliance.ts +0 -1679
- package/src/engine/config-bus.ts +0 -103
- package/src/engine/db-adapter.ts +0 -1156
- package/src/engine/db-schema.ts +0 -1945
- package/src/engine/deploy-schema-routes.ts +0 -176
- package/src/engine/deployer.ts +0 -957
- package/src/engine/dlp-routes.ts +0 -101
- package/src/engine/dlp.ts +0 -410
- package/src/engine/email-poller.ts +0 -855
- package/src/engine/emoji.ts +0 -106
- package/src/engine/guardrail-routes.ts +0 -125
- package/src/engine/guardrails.ts +0 -465
- package/src/engine/index.ts +0 -255
- package/src/engine/journal-routes.ts +0 -56
- package/src/engine/journal.ts +0 -249
- package/src/engine/knowledge-contribution-routes.ts +0 -633
- package/src/engine/knowledge-contribution.ts +0 -1386
- package/src/engine/knowledge-import/chunker.ts +0 -241
- package/src/engine/knowledge-import/import-manager.ts +0 -416
- package/src/engine/knowledge-import/index.ts +0 -27
- package/src/engine/knowledge-import/processors/clean.ts +0 -149
- package/src/engine/knowledge-import/processors/extract-gdrive.ts +0 -102
- package/src/engine/knowledge-import/processors/extract-github.ts +0 -74
- package/src/engine/knowledge-import/processors/extract-sharepoint.ts +0 -69
- package/src/engine/knowledge-import/processors/extract-web.ts +0 -275
- package/src/engine/knowledge-import/processors/index.ts +0 -18
- package/src/engine/knowledge-import/processors/pipeline.ts +0 -171
- package/src/engine/knowledge-import/processors/types.ts +0 -78
- package/src/engine/knowledge-import/processors/validate.ts +0 -150
- package/src/engine/knowledge-import/provider-file-upload.ts +0 -95
- package/src/engine/knowledge-import/provider-github.ts +0 -144
- package/src/engine/knowledge-import/provider-google-sites.ts +0 -323
- package/src/engine/knowledge-import/provider-sharepoint.ts +0 -276
- package/src/engine/knowledge-import/provider-url.ts +0 -218
- package/src/engine/knowledge-import/routes.ts +0 -94
- package/src/engine/knowledge-import/types.ts +0 -92
- package/src/engine/knowledge-routes.ts +0 -231
- package/src/engine/knowledge.ts +0 -587
- package/src/engine/lifecycle.ts +0 -1420
- package/src/engine/mcp-process-manager.ts +0 -573
- package/src/engine/meeting-monitor.ts +0 -483
- package/src/engine/meeting-voice-intelligence.ts +0 -340
- package/src/engine/memory-routes.ts +0 -142
- package/src/engine/memory-transfer-routes.ts +0 -339
- package/src/engine/messaging-history.ts +0 -177
- package/src/engine/messaging-poller.ts +0 -786
- package/src/engine/model-fallback.ts +0 -141
- package/src/engine/oauth-connect-routes.ts +0 -603
- package/src/engine/oauth-connect.ts +0 -304
- package/src/engine/onboarding-routes.ts +0 -148
- package/src/engine/onboarding.ts +0 -574
- package/src/engine/org-approval-routes.ts +0 -146
- package/src/engine/org-integration-routes.ts +0 -399
- package/src/engine/org-integrations.ts +0 -608
- package/src/engine/org-policies.ts +0 -502
- package/src/engine/policy-import-routes.ts +0 -125
- package/src/engine/policy-import.ts +0 -1186
- package/src/engine/policy-routes.ts +0 -163
- package/src/engine/routes.ts +0 -1236
- package/src/engine/screen-unlock.ts +0 -136
- package/src/engine/session-router.ts +0 -212
- package/src/engine/skill-updater-routes.ts +0 -132
- package/src/engine/skill-updater.ts +0 -480
- package/src/engine/skill-validator.ts +0 -331
- package/src/engine/skills/agent-management.ts +0 -119
- package/src/engine/skills/agent-memory.ts +0 -19
- package/src/engine/skills/agenticmail.ts +0 -116
- package/src/engine/skills/core-tools.ts +0 -25
- package/src/engine/skills/database-access.ts +0 -78
- package/src/engine/skills/enterprise-code-sandbox.ts +0 -113
- package/src/engine/skills/enterprise-database.ts +0 -123
- package/src/engine/skills/enterprise-diff.ts +0 -95
- package/src/engine/skills/enterprise-documents.ts +0 -162
- package/src/engine/skills/enterprise-http.ts +0 -99
- package/src/engine/skills/enterprise-security-scan.ts +0 -125
- package/src/engine/skills/enterprise-spreadsheet.ts +0 -171
- package/src/engine/skills/gws-admin.ts +0 -18
- package/src/engine/skills/gws-calendar.ts +0 -21
- package/src/engine/skills/gws-chat.ts +0 -29
- package/src/engine/skills/gws-contacts.ts +0 -20
- package/src/engine/skills/gws-docs.ts +0 -18
- package/src/engine/skills/gws-drive.ts +0 -23
- package/src/engine/skills/gws-forms.ts +0 -23
- package/src/engine/skills/gws-gmail.ts +0 -30
- package/src/engine/skills/gws-groups.ts +0 -17
- package/src/engine/skills/gws-keep.ts +0 -17
- package/src/engine/skills/gws-maps.ts +0 -25
- package/src/engine/skills/gws-meet.ts +0 -23
- package/src/engine/skills/gws-sheets.ts +0 -22
- package/src/engine/skills/gws-sites.ts +0 -16
- package/src/engine/skills/gws-slides.ts +0 -27
- package/src/engine/skills/gws-tasks.ts +0 -22
- package/src/engine/skills/gws-vault.ts +0 -17
- package/src/engine/skills/index.ts +0 -159
- package/src/engine/skills/knowledge-search.ts +0 -18
- package/src/engine/skills/local-system.ts +0 -61
- package/src/engine/skills/m365-admin.ts +0 -18
- package/src/engine/skills/m365-bookings.ts +0 -17
- package/src/engine/skills/m365-copilot.ts +0 -17
- package/src/engine/skills/m365-excel.ts +0 -60
- package/src/engine/skills/m365-forms.ts +0 -17
- package/src/engine/skills/m365-onedrive.ts +0 -60
- package/src/engine/skills/m365-onenote.ts +0 -17
- package/src/engine/skills/m365-outlook.ts +0 -27
- package/src/engine/skills/m365-planner.ts +0 -18
- package/src/engine/skills/m365-power-automate.ts +0 -18
- package/src/engine/skills/m365-power-bi.ts +0 -19
- package/src/engine/skills/m365-powerpoint.ts +0 -33
- package/src/engine/skills/m365-sharepoint.ts +0 -20
- package/src/engine/skills/m365-teams.ts +0 -21
- package/src/engine/skills/m365-todo.ts +0 -17
- package/src/engine/skills/m365-whiteboard.ts +0 -16
- package/src/engine/skills/m365-word.ts +0 -42
- package/src/engine/skills/mcp-bridge.ts +0 -45
- package/src/engine/skills/meeting-lifecycle.ts +0 -20
- package/src/engine/skills/messaging.ts +0 -46
- package/src/engine/skills/visual-memory.ts +0 -25
- package/src/engine/skills.ts +0 -688
- package/src/engine/soul-library.ts +0 -142
- package/src/engine/soul-templates.json +0 -1525
- package/src/engine/storage-manager.ts +0 -252
- package/src/engine/storage-routes.ts +0 -113
- package/src/engine/storage.ts +0 -528
- package/src/engine/task-poller.ts +0 -394
- package/src/engine/task-queue-after-spawn.ts +0 -66
- package/src/engine/task-queue-before-spawn.ts +0 -113
- package/src/engine/task-queue-routes.ts +0 -161
- package/src/engine/task-queue.ts +0 -664
- package/src/engine/tenant.ts +0 -409
- package/src/engine/tool-catalog.ts +0 -354
- package/src/engine/vault-routes.ts +0 -134
- package/src/engine/vault.ts +0 -601
- package/src/engine/workforce-routes.ts +0 -331
- package/src/engine/workforce.ts +0 -1161
- package/src/index.ts +0 -77
- package/src/lib/cidr.ts +0 -122
- package/src/lib/config-store.ts +0 -86
- package/src/lib/resilience.ts +0 -326
- package/src/lib/text-search.ts +0 -358
- package/src/mcp/adapters/activecampaign.adapter.ts +0 -391
- package/src/mcp/adapters/adobe-sign.adapter.ts +0 -469
- package/src/mcp/adapters/adp.adapter.ts +0 -358
- package/src/mcp/adapters/airtable.adapter.ts +0 -273
- package/src/mcp/adapters/apollo.adapter.ts +0 -420
- package/src/mcp/adapters/asana.adapter.ts +0 -315
- package/src/mcp/adapters/auth0.adapter.ts +0 -386
- package/src/mcp/adapters/aws.adapter.ts +0 -345
- package/src/mcp/adapters/azure-devops.adapter.ts +0 -389
- package/src/mcp/adapters/bamboohr.adapter.ts +0 -376
- package/src/mcp/adapters/basecamp.adapter.ts +0 -366
- package/src/mcp/adapters/bigcommerce.adapter.ts +0 -429
- package/src/mcp/adapters/bitbucket.adapter.ts +0 -260
- package/src/mcp/adapters/box.adapter.ts +0 -350
- package/src/mcp/adapters/brex.adapter.ts +0 -367
- package/src/mcp/adapters/buffer.adapter.ts +0 -303
- package/src/mcp/adapters/calendly.adapter.ts +0 -262
- package/src/mcp/adapters/canva.adapter.ts +0 -256
- package/src/mcp/adapters/chargebee.adapter.ts +0 -448
- package/src/mcp/adapters/circleci.adapter.ts +0 -216
- package/src/mcp/adapters/clickup.adapter.ts +0 -335
- package/src/mcp/adapters/close.adapter.ts +0 -390
- package/src/mcp/adapters/cloudflare.adapter.ts +0 -378
- package/src/mcp/adapters/confluence.adapter.ts +0 -301
- package/src/mcp/adapters/contentful.adapter.ts +0 -355
- package/src/mcp/adapters/copper.adapter.ts +0 -468
- package/src/mcp/adapters/crisp.adapter.ts +0 -415
- package/src/mcp/adapters/crowdstrike.adapter.ts +0 -413
- package/src/mcp/adapters/datadog.adapter.ts +0 -373
- package/src/mcp/adapters/digitalocean.adapter.ts +0 -336
- package/src/mcp/adapters/discord.adapter.ts +0 -248
- package/src/mcp/adapters/docker.adapter.ts +0 -238
- package/src/mcp/adapters/docusign.adapter.ts +0 -431
- package/src/mcp/adapters/drift.adapter.ts +0 -386
- package/src/mcp/adapters/dropbox.adapter.ts +0 -315
- package/src/mcp/adapters/figma.adapter.ts +0 -302
- package/src/mcp/adapters/firebase.adapter.ts +0 -446
- package/src/mcp/adapters/flyio.adapter.ts +0 -302
- package/src/mcp/adapters/freshbooks.adapter.ts +0 -474
- package/src/mcp/adapters/freshdesk.adapter.ts +0 -441
- package/src/mcp/adapters/freshsales.adapter.ts +0 -457
- package/src/mcp/adapters/freshservice.adapter.ts +0 -481
- package/src/mcp/adapters/front.adapter.ts +0 -357
- package/src/mcp/adapters/github-actions.adapter.ts +0 -329
- package/src/mcp/adapters/github.adapter.ts +0 -387
- package/src/mcp/adapters/gitlab.adapter.ts +0 -368
- package/src/mcp/adapters/gong.adapter.ts +0 -386
- package/src/mcp/adapters/google-ads.adapter.ts +0 -363
- package/src/mcp/adapters/google-analytics.adapter.ts +0 -316
- package/src/mcp/adapters/google-cloud.adapter.ts +0 -312
- package/src/mcp/adapters/gotomeeting.adapter.ts +0 -255
- package/src/mcp/adapters/grafana.adapter.ts +0 -361
- package/src/mcp/adapters/greenhouse.adapter.ts +0 -354
- package/src/mcp/adapters/gusto.adapter.ts +0 -329
- package/src/mcp/adapters/hashicorp-vault.adapter.ts +0 -355
- package/src/mcp/adapters/heroku.adapter.ts +0 -291
- package/src/mcp/adapters/hibob.adapter.ts +0 -334
- package/src/mcp/adapters/hootsuite.adapter.ts +0 -322
- package/src/mcp/adapters/hubspot.adapter.ts +0 -400
- package/src/mcp/adapters/huggingface.adapter.ts +0 -349
- package/src/mcp/adapters/index.ts +0 -524
- package/src/mcp/adapters/intercom.adapter.ts +0 -269
- package/src/mcp/adapters/jira.adapter.ts +0 -482
- package/src/mcp/adapters/klaviyo.adapter.ts +0 -353
- package/src/mcp/adapters/kubernetes.adapter.ts +0 -431
- package/src/mcp/adapters/lattice.adapter.ts +0 -339
- package/src/mcp/adapters/launchdarkly.adapter.ts +0 -368
- package/src/mcp/adapters/lever.adapter.ts +0 -347
- package/src/mcp/adapters/linear.adapter.ts +0 -300
- package/src/mcp/adapters/linkedin.adapter.ts +0 -331
- package/src/mcp/adapters/livechat.adapter.ts +0 -259
- package/src/mcp/adapters/loom.adapter.ts +0 -230
- package/src/mcp/adapters/mailchimp.adapter.ts +0 -394
- package/src/mcp/adapters/mailgun.adapter.ts +0 -425
- package/src/mcp/adapters/miro.adapter.ts +0 -274
- package/src/mcp/adapters/mixpanel.adapter.ts +0 -324
- package/src/mcp/adapters/monday.adapter.ts +0 -308
- package/src/mcp/adapters/mongodb-atlas.adapter.ts +0 -345
- package/src/mcp/adapters/neon.adapter.ts +0 -312
- package/src/mcp/adapters/netlify.adapter.ts +0 -324
- package/src/mcp/adapters/netsuite.adapter.ts +0 -411
- package/src/mcp/adapters/newrelic.adapter.ts +0 -339
- package/src/mcp/adapters/notion.adapter.ts +0 -338
- package/src/mcp/adapters/okta.adapter.ts +0 -394
- package/src/mcp/adapters/openai.adapter.ts +0 -315
- package/src/mcp/adapters/opsgenie.adapter.ts +0 -375
- package/src/mcp/adapters/outreach.adapter.ts +0 -372
- package/src/mcp/adapters/paddle.adapter.ts +0 -467
- package/src/mcp/adapters/pagerduty.adapter.ts +0 -412
- package/src/mcp/adapters/pandadoc.adapter.ts +0 -389
- package/src/mcp/adapters/paypal.adapter.ts +0 -465
- package/src/mcp/adapters/personio.adapter.ts +0 -401
- package/src/mcp/adapters/pinecone.adapter.ts +0 -340
- package/src/mcp/adapters/pipedrive.adapter.ts +0 -324
- package/src/mcp/adapters/plaid.adapter.ts +0 -444
- package/src/mcp/adapters/postmark.adapter.ts +0 -387
- package/src/mcp/adapters/power-automate.adapter.ts +0 -388
- package/src/mcp/adapters/quickbooks.adapter.ts +0 -431
- package/src/mcp/adapters/recurly.adapter.ts +0 -433
- package/src/mcp/adapters/reddit.adapter.ts +0 -371
- package/src/mcp/adapters/render.adapter.ts +0 -332
- package/src/mcp/adapters/ringcentral.adapter.ts +0 -281
- package/src/mcp/adapters/rippling.adapter.ts +0 -287
- package/src/mcp/adapters/salesforce.adapter.ts +0 -321
- package/src/mcp/adapters/salesloft.adapter.ts +0 -413
- package/src/mcp/adapters/sanity.adapter.ts +0 -363
- package/src/mcp/adapters/sap.adapter.ts +0 -483
- package/src/mcp/adapters/segment.adapter.ts +0 -260
- package/src/mcp/adapters/sendgrid.adapter.ts +0 -265
- package/src/mcp/adapters/sentry.adapter.ts +0 -331
- package/src/mcp/adapters/servicenow.adapter.ts +0 -468
- package/src/mcp/adapters/shopify.adapter.ts +0 -451
- package/src/mcp/adapters/shortcut.adapter.ts +0 -290
- package/src/mcp/adapters/slack.adapter.ts +0 -380
- package/src/mcp/adapters/smartsheet.adapter.ts +0 -326
- package/src/mcp/adapters/snowflake.adapter.ts +0 -347
- package/src/mcp/adapters/snyk.adapter.ts +0 -394
- package/src/mcp/adapters/splunk.adapter.ts +0 -403
- package/src/mcp/adapters/square.adapter.ts +0 -467
- package/src/mcp/adapters/statuspage.adapter.ts +0 -401
- package/src/mcp/adapters/stripe.adapter.ts +0 -380
- package/src/mcp/adapters/supabase.adapter.ts +0 -334
- package/src/mcp/adapters/teamwork.adapter.ts +0 -404
- package/src/mcp/adapters/telegram.adapter.ts +0 -299
- package/src/mcp/adapters/terraform.adapter.ts +0 -300
- package/src/mcp/adapters/todoist.adapter.ts +0 -239
- package/src/mcp/adapters/trello.adapter.ts +0 -316
- package/src/mcp/adapters/twilio.adapter.ts +0 -233
- package/src/mcp/adapters/twitter.adapter.ts +0 -348
- package/src/mcp/adapters/vercel.adapter.ts +0 -219
- package/src/mcp/adapters/weaviate.adapter.ts +0 -371
- package/src/mcp/adapters/webex.adapter.ts +0 -237
- package/src/mcp/adapters/webflow.adapter.ts +0 -287
- package/src/mcp/adapters/whatsapp.adapter.ts +0 -273
- package/src/mcp/adapters/whereby.adapter.ts +0 -240
- package/src/mcp/adapters/woocommerce.adapter.ts +0 -454
- package/src/mcp/adapters/wordpress.adapter.ts +0 -455
- package/src/mcp/adapters/workday.adapter.ts +0 -354
- package/src/mcp/adapters/wrike.adapter.ts +0 -349
- package/src/mcp/adapters/xero.adapter.ts +0 -472
- package/src/mcp/adapters/youtube.adapter.ts +0 -401
- package/src/mcp/adapters/zendesk.adapter.ts +0 -399
- package/src/mcp/adapters/zoho-crm.adapter.ts +0 -410
- package/src/mcp/adapters/zoom.adapter.ts +0 -241
- package/src/mcp/adapters/zuora.adapter.ts +0 -476
- package/src/mcp/framework/api-executor.ts +0 -192
- package/src/mcp/framework/aws-sigv4.ts +0 -216
- package/src/mcp/framework/credential-resolver.ts +0 -128
- package/src/mcp/framework/oauth-token-manager.ts +0 -22
- package/src/mcp/framework/skill-mcp-framework.ts +0 -226
- package/src/mcp/framework/types.ts +0 -130
- package/src/mcp/index.ts +0 -124
- package/src/mcp/integration-catalog.ts +0 -178
- package/src/middleware/dns-rebinding.ts +0 -44
- package/src/middleware/egress-filter.ts +0 -104
- package/src/middleware/firewall.ts +0 -192
- package/src/middleware/geo-ip.ts +0 -156
- package/src/middleware/index.ts +0 -390
- package/src/middleware/network-config.ts +0 -90
- package/src/middleware/proxy-config.ts +0 -71
- package/src/middleware/request-limits.ts +0 -59
- package/src/middleware/transport-encryption.ts +0 -398
- package/src/registry/cli.ts +0 -63
- package/src/registry/server.ts +0 -504
- package/src/runtime/agent-loop.ts +0 -779
- package/src/runtime/compaction.ts +0 -638
- package/src/runtime/email-channel.ts +0 -120
- package/src/runtime/environment.ts +0 -300
- package/src/runtime/followup.ts +0 -211
- package/src/runtime/gateway.ts +0 -260
- package/src/runtime/hooks.ts +0 -564
- package/src/runtime/index.ts +0 -1110
- package/src/runtime/llm-client.ts +0 -1056
- package/src/runtime/model-router.ts +0 -97
- package/src/runtime/providers.ts +0 -228
- package/src/runtime/session-manager.ts +0 -345
- package/src/runtime/subagent.ts +0 -153
- package/src/runtime/tool-executor.ts +0 -208
- package/src/runtime/types.ts +0 -255
- package/src/security/brute-force.ts +0 -423
- package/src/security/config.ts +0 -159
- package/src/security/csp.ts +0 -407
- package/src/security/external-content.ts +0 -299
- package/src/security/index.ts +0 -557
- package/src/security/input-sanitizer.ts +0 -452
- package/src/security/output-filter.ts +0 -575
- package/src/security/port-scanner.ts +0 -342
- package/src/security/prompt-guard.ts +0 -387
- package/src/security/sql-guard.ts +0 -338
- package/src/security/threat-logger.ts +0 -484
- package/src/server.ts +0 -828
- package/src/setup/company.ts +0 -183
- package/src/setup/database.ts +0 -153
- package/src/setup/deployment.ts +0 -561
- package/src/setup/domain.ts +0 -112
- package/src/setup/index.ts +0 -171
- package/src/setup/provision.ts +0 -532
- package/src/setup/registration.ts +0 -302
- package/src/system-prompts/catchup.ts +0 -48
- package/src/system-prompts/google/calendar.ts +0 -37
- package/src/system-prompts/google/chat.ts +0 -92
- package/src/system-prompts/google/contacts.ts +0 -25
- package/src/system-prompts/google/docs.ts +0 -29
- package/src/system-prompts/google/drive.ts +0 -34
- package/src/system-prompts/google/forms.ts +0 -25
- package/src/system-prompts/google/gmail.ts +0 -50
- package/src/system-prompts/google/index.ts +0 -23
- package/src/system-prompts/google/maps.ts +0 -20
- package/src/system-prompts/google/meet.ts +0 -130
- package/src/system-prompts/google/sheets.ts +0 -32
- package/src/system-prompts/google/slides.ts +0 -26
- package/src/system-prompts/google/tasks.ts +0 -27
- package/src/system-prompts/index.ts +0 -88
- package/src/system-prompts/microsoft/contacts.ts +0 -34
- package/src/system-prompts/microsoft/excel.ts +0 -52
- package/src/system-prompts/microsoft/index.ts +0 -31
- package/src/system-prompts/microsoft/onedrive.ts +0 -41
- package/src/system-prompts/microsoft/onenote.ts +0 -36
- package/src/system-prompts/microsoft/outlook-calendar.ts +0 -37
- package/src/system-prompts/microsoft/outlook-mail.ts +0 -46
- package/src/system-prompts/microsoft/planner.ts +0 -37
- package/src/system-prompts/microsoft/powerbi.ts +0 -38
- package/src/system-prompts/microsoft/powerpoint.ts +0 -35
- package/src/system-prompts/microsoft/sharepoint.ts +0 -44
- package/src/system-prompts/microsoft/teams.ts +0 -49
- package/src/system-prompts/microsoft/todo.ts +0 -37
- package/src/system-prompts/shared-blocks.ts +0 -87
- package/src/system-prompts/task.ts +0 -21
- package/src/system-prompts/triage.ts +0 -34
- package/src/types/hono-env.ts +0 -18
- package/src/types/optional-deps.d.ts +0 -10
|
@@ -1,494 +0,0 @@
|
|
|
1
|
-
import { h, useState, useEffect, useCallback, Fragment, useApp, apiCall, engineCall, getOrgId } from '../../components/utils.js';
|
|
2
|
-
import { I } from '../../components/icons.js';
|
|
3
|
-
import { E } from '../../assets/icons/emoji-icons.js';
|
|
4
|
-
import { HelpButton } from '../../components/help-button.js';
|
|
5
|
-
|
|
6
|
-
// ─── Styles ───
|
|
7
|
-
|
|
8
|
-
var cardStyle = { background: 'var(--bg-secondary)', borderRadius: '12px', padding: '24px', marginBottom: '16px', border: '1px solid var(--border)' };
|
|
9
|
-
var headerStyle = { display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '16px' };
|
|
10
|
-
var fieldStyle = { marginBottom: '12px' };
|
|
11
|
-
var labelStyle = { display: 'block', fontSize: '12px', color: 'var(--text-secondary)', marginBottom: '4px', fontWeight: '600', textTransform: 'uppercase', letterSpacing: '0.5px' };
|
|
12
|
-
var inputStyle = { width: '100%', padding: '8px 12px', borderRadius: '8px', border: '1px solid var(--border)', background: 'var(--bg-primary)', color: 'var(--text-primary)', fontSize: '14px', boxSizing: 'border-box' };
|
|
13
|
-
var btnStyle = { padding: '8px 16px', borderRadius: '8px', border: 'none', cursor: 'pointer', fontSize: '13px', fontWeight: '600' };
|
|
14
|
-
var btnPrimary = Object.assign({}, btnStyle, { background: 'var(--accent)', color: 'white' });
|
|
15
|
-
var btnSecondary = Object.assign({}, btnStyle, { background: 'var(--bg-tertiary)', color: 'var(--text-primary)' });
|
|
16
|
-
var btnDanger = Object.assign({}, btnStyle, { background: '#dc3545', color: 'white' });
|
|
17
|
-
var statusDot = function(on) { return { display: 'inline-block', width: '8px', height: '8px', borderRadius: '50%', background: on ? '#28a745' : '#6c757d', marginRight: '6px' }; };
|
|
18
|
-
var tagStyle = { display: 'inline-block', padding: '2px 8px', borderRadius: '12px', fontSize: '11px', fontWeight: '600', marginRight: '4px' };
|
|
19
|
-
var helpStyle = { fontSize: '12px', color: 'var(--text-tertiary)', marginTop: '4px' };
|
|
20
|
-
var stepStyle = { display: 'flex', gap: '12px', marginBottom: '12px', fontSize: '13px' };
|
|
21
|
-
var stepNumStyle = { width: '24px', height: '24px', borderRadius: '50%', background: 'var(--accent)', color: 'white', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '12px', fontWeight: '700', flexShrink: 0 };
|
|
22
|
-
var stepDoneStyle = Object.assign({}, stepNumStyle, { background: '#28a745' });
|
|
23
|
-
var stepTextStyle = { flex: 1, paddingTop: '2px' };
|
|
24
|
-
var guideBox = { padding: '16px', background: 'var(--bg-tertiary)', borderRadius: '10px', marginBottom: '16px', border: '1px solid var(--border)' };
|
|
25
|
-
var guideTitle = { fontSize: '14px', fontWeight: '700', marginBottom: '12px', display: 'flex', alignItems: 'center', gap: '6px' };
|
|
26
|
-
|
|
27
|
-
function StepItem(props) {
|
|
28
|
-
return h('div', { style: stepStyle },
|
|
29
|
-
h('div', { style: props.done ? stepDoneStyle : stepNumStyle }, props.done ? '\u2713' : props.num),
|
|
30
|
-
h('div', { style: stepTextStyle },
|
|
31
|
-
h('div', { style: { fontWeight: '600', marginBottom: '2px' } }, props.title),
|
|
32
|
-
props.desc && h('div', { style: { color: 'var(--text-secondary)', fontSize: '12px' } }, props.desc)
|
|
33
|
-
)
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function TrustedContactsList(props) {
|
|
38
|
-
var contacts = props.contacts;
|
|
39
|
-
var onAdd = props.onAdd;
|
|
40
|
-
var onRemove = props.onRemove;
|
|
41
|
-
var placeholder = props.placeholder || '+1234567890';
|
|
42
|
-
|
|
43
|
-
var _val = useState('');
|
|
44
|
-
var val = _val[0]; var setVal = _val[1];
|
|
45
|
-
var add = function() { if (val.trim()) { onAdd(val.trim()); setVal(''); } };
|
|
46
|
-
|
|
47
|
-
return h('div', { style: fieldStyle },
|
|
48
|
-
h('label', { style: labelStyle }, 'Trusted Contacts'),
|
|
49
|
-
h('div', { style: helpStyle }, props.help || 'Only these contacts can reach the agent. Messages from unknown senders are ignored.'),
|
|
50
|
-
h('div', { style: { display: 'flex', gap: '8px', marginTop: '8px' } },
|
|
51
|
-
h('input', { style: Object.assign({}, inputStyle, { flex: 1 }), placeholder: placeholder, value: val, onInput: function(e) { setVal(e.target.value); }, onKeyDown: function(e) { if (e.key === 'Enter') add(); } }),
|
|
52
|
-
h('button', { style: btnSecondary, onClick: add }, 'Add')
|
|
53
|
-
),
|
|
54
|
-
contacts.length > 0 && h('div', { style: { marginTop: '8px', display: 'flex', flexWrap: 'wrap', gap: '4px' } },
|
|
55
|
-
contacts.map(function(c, i) {
|
|
56
|
-
return h('span', { key: i, style: Object.assign({}, tagStyle, { background: 'var(--bg-tertiary)', cursor: 'pointer' }), onClick: function() { onRemove(i); }, title: 'Click to remove' }, c, ' \u00d7');
|
|
57
|
-
})
|
|
58
|
-
)
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function AccessModeSelect(props) {
|
|
63
|
-
return h('div', { style: fieldStyle },
|
|
64
|
-
h('label', { style: labelStyle }, 'Access Mode'),
|
|
65
|
-
h('select', { style: inputStyle, value: props.value || 'trusted_only', onChange: function(e) { props.onChange(e.target.value); } },
|
|
66
|
-
h('option', { value: 'trusted_only' }, 'Trusted contacts only'),
|
|
67
|
-
h('option', { value: 'open' }, 'Anyone can message (use with caution)'),
|
|
68
|
-
h('option', { value: 'manager_only' }, 'Manager only')
|
|
69
|
-
)
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// ════════════════════════════════════════
|
|
74
|
-
// WhatsApp Card
|
|
75
|
-
// ════════════════════════════════════════
|
|
76
|
-
|
|
77
|
-
function WhatsAppCard(props) {
|
|
78
|
-
var agentId = props.agentId;
|
|
79
|
-
var config = props.config || {};
|
|
80
|
-
var onSave = props.onSave;
|
|
81
|
-
var toast = useApp().toast;
|
|
82
|
-
|
|
83
|
-
var _qr = useState(null);
|
|
84
|
-
var qr = _qr[0]; var setQr = _qr[1];
|
|
85
|
-
var _status = useState(null);
|
|
86
|
-
var status = _status[0]; var setStatus = _status[1];
|
|
87
|
-
var _contacts = useState(config.trustedContacts || []);
|
|
88
|
-
var contacts = _contacts[0]; var setContacts = _contacts[1];
|
|
89
|
-
|
|
90
|
-
useEffect(function() {
|
|
91
|
-
engineCall('/bridge/agents/' + agentId + '/whatsapp/status').then(setStatus).catch(function() {});
|
|
92
|
-
}, [agentId]);
|
|
93
|
-
|
|
94
|
-
// Poll status while QR is shown (detect scan completion + send intro)
|
|
95
|
-
useEffect(function() {
|
|
96
|
-
if (!qr) return;
|
|
97
|
-
var iv = setInterval(function() {
|
|
98
|
-
engineCall('/bridge/agents/' + agentId + '/whatsapp/status').then(function(s) {
|
|
99
|
-
if (s.connected) {
|
|
100
|
-
setQr(null); setStatus(s); toast('WhatsApp connected!', 'success'); clearInterval(iv);
|
|
101
|
-
// Auto-send intro message to validate connection
|
|
102
|
-
var phone = s.phone || s.selfJid;
|
|
103
|
-
if (phone) {
|
|
104
|
-
engineCall('/bridge/agents/' + agentId + '/whatsapp/test', {
|
|
105
|
-
method: 'POST', body: JSON.stringify({ to: phone })
|
|
106
|
-
}).then(function(r) {
|
|
107
|
-
if (r.ok) toast('Intro message sent to your WhatsApp!', 'success');
|
|
108
|
-
}).catch(function() {});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}).catch(function() {});
|
|
112
|
-
}, 3000);
|
|
113
|
-
return function() { clearInterval(iv); };
|
|
114
|
-
}, [qr, agentId]);
|
|
115
|
-
|
|
116
|
-
var connectWhatsApp = function() {
|
|
117
|
-
toast('Connecting to WhatsApp...', 'info');
|
|
118
|
-
engineCall('/bridge/agents/' + agentId + '/whatsapp/connect', { method: 'POST' }).then(function(r) {
|
|
119
|
-
if (r.qr) { setQr(r.qr); toast('QR code ready — scan it with WhatsApp', 'info'); }
|
|
120
|
-
else if (r.status === 'connected') { toast('Already connected!', 'success'); setStatus({ connected: true, phone: r.phone, name: r.name }); }
|
|
121
|
-
else { toast('Connection started — waiting for QR...', 'info'); }
|
|
122
|
-
}).catch(function(e) { toast('Failed: ' + e.message, 'error'); });
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var disconnect = function() {
|
|
126
|
-
engineCall('/bridge/agents/' + agentId + '/whatsapp/disconnect', { method: 'POST', body: JSON.stringify({ logout: true }) })
|
|
127
|
-
.then(function() { toast('Disconnected', 'info'); setStatus(null); setQr(null); })
|
|
128
|
-
.catch(function(e) { toast('Failed: ' + e.message, 'error'); });
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
var connected = status?.connected;
|
|
132
|
-
var step1Done = connected;
|
|
133
|
-
var step2Done = contacts.length > 0;
|
|
134
|
-
|
|
135
|
-
return h('div', { style: cardStyle },
|
|
136
|
-
h('div', { style: headerStyle },
|
|
137
|
-
h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px' } },
|
|
138
|
-
E.whatsapp(24),
|
|
139
|
-
h('div', null,
|
|
140
|
-
h('h3', { style: { margin: 0, fontSize: '16px' } }, 'WhatsApp'),
|
|
141
|
-
h('span', { style: { fontSize: '12px', color: 'var(--text-secondary)' } }, 'Your personal line \u2014 chat with your AI from your own number')
|
|
142
|
-
)
|
|
143
|
-
),
|
|
144
|
-
connected
|
|
145
|
-
? h('span', { style: Object.assign({}, tagStyle, { background: '#28a74520', color: '#28a745' }) }, h('span', { style: statusDot(true) }), 'Connected')
|
|
146
|
-
: h('span', { style: Object.assign({}, tagStyle, { background: '#6c757d20', color: '#6c757d' }) }, 'Not connected')
|
|
147
|
-
),
|
|
148
|
-
|
|
149
|
-
// Setup Guide
|
|
150
|
-
h('div', { style: guideBox },
|
|
151
|
-
h('div', { style: guideTitle }, E.bolt(16), ' Setup Guide'),
|
|
152
|
-
h(StepItem, { num: '1', done: step1Done, title: 'Scan QR code to link this agent',
|
|
153
|
-
desc: connected ? 'Connected as ' + (status.phone || status.name || 'linked device') : 'Click the button below to generate a QR code. Then open WhatsApp on your phone > Settings > Linked Devices > Link a Device > Scan the QR code.' }),
|
|
154
|
-
h(StepItem, { num: '2', done: step2Done, title: 'Add trusted contacts',
|
|
155
|
-
desc: 'Add phone numbers the agent should respond to. Your number should be first so the agent recognizes you as the manager.' }),
|
|
156
|
-
h(StepItem, { num: '3', done: false, title: 'Send a message to test',
|
|
157
|
-
desc: 'Open WhatsApp on your phone and send a message to yourself (or from another number). The agent will see it and respond.' })
|
|
158
|
-
),
|
|
159
|
-
|
|
160
|
-
// Separation notice
|
|
161
|
-
h('div', { style: { padding: '12px', background: 'var(--bg-tertiary)', borderRadius: '8px', marginBottom: '16px', fontSize: '12px', color: 'var(--text-secondary)', border: '1px solid var(--border)', lineHeight: '1.5' } },
|
|
162
|
-
h('strong', null, 'This is your personal WhatsApp connection.'), ' Use this to chat with your AI agent from your own phone number. ',
|
|
163
|
-
'If you want customers or clients to reach the agent on a separate business number, set that up in the ',
|
|
164
|
-
h('strong', null, 'WhatsApp Business'), ' tab instead \u2014 it uses its own dedicated phone number and has customer management, security, and pairing built in.'
|
|
165
|
-
),
|
|
166
|
-
|
|
167
|
-
// Connection controls
|
|
168
|
-
!connected && h('div', { style: { marginBottom: '16px' } },
|
|
169
|
-
!qr && h('button', { style: btnPrimary, onClick: connectWhatsApp }, 'Connect WhatsApp'),
|
|
170
|
-
qr && h('div', { style: { textAlign: 'center', padding: '20px', background: 'white', borderRadius: '8px', display: 'inline-block' } },
|
|
171
|
-
h('p', { style: { margin: '0 0 8px', color: '#333', fontSize: '13px', fontWeight: '600' } }, 'Scan with WhatsApp on your phone:'),
|
|
172
|
-
h('p', { style: { margin: '0 0 12px', color: '#666', fontSize: '12px' } }, 'WhatsApp > Settings > Linked Devices > Link a Device'),
|
|
173
|
-
h('img', { src: 'https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=' + encodeURIComponent(qr), alt: 'QR', style: { width: '200px', height: '200px' } })
|
|
174
|
-
)
|
|
175
|
-
),
|
|
176
|
-
connected && h('div', { style: { marginBottom: '16px', padding: '12px', background: '#28a74510', borderRadius: '8px', border: '1px solid #28a74530' } },
|
|
177
|
-
h('div', { style: { fontSize: '14px' } }, '\u2713 Connected as ', h('strong', null, status.phone || 'linked device')),
|
|
178
|
-
status.name && h('div', { style: { fontSize: '13px', color: 'var(--text-secondary)' } }, status.name),
|
|
179
|
-
status.lastMessageAt && h('div', { style: { fontSize: '12px', color: 'var(--text-secondary)', marginTop: '4px' } }, 'Last message: ' + new Date(status.lastMessageAt).toLocaleString()),
|
|
180
|
-
h('div', { style: { display: 'flex', gap: '8px', marginTop: '8px' } },
|
|
181
|
-
h('button', { style: Object.assign({}, btnPrimary, { fontSize: '12px', padding: '4px 12px' }), onClick: function() {
|
|
182
|
-
var to = prompt('Send test message to (phone number, e.g. +13362763915):');
|
|
183
|
-
if (!to) return;
|
|
184
|
-
engineCall('/bridge/agents/' + agentId + '/whatsapp/test', { method: 'POST', body: JSON.stringify({ to: to }) })
|
|
185
|
-
.then(function(r) { if (r.ok) toast('Test message sent!', 'success'); else toast('Failed: ' + (r.error || 'Unknown'), 'error'); })
|
|
186
|
-
.catch(function(e) { toast('Failed: ' + e.message, 'error'); });
|
|
187
|
-
} }, 'Send Test Message'),
|
|
188
|
-
h('button', { style: Object.assign({}, btnDanger, { fontSize: '12px', padding: '4px 12px' }), onClick: disconnect }, 'Disconnect & Unlink')
|
|
189
|
-
)
|
|
190
|
-
),
|
|
191
|
-
|
|
192
|
-
// Trusted contacts
|
|
193
|
-
h(TrustedContactsList, {
|
|
194
|
-
contacts: contacts, placeholder: '+13362763915',
|
|
195
|
-
help: 'Phone numbers (with country code) the agent will respond to. Add your own number first.',
|
|
196
|
-
onAdd: function(v) { var u = contacts.concat([v]); setContacts(u); onSave({ whatsapp: Object.assign({}, config, { trustedContacts: u }) }); },
|
|
197
|
-
onRemove: function(i) { var u = contacts.filter(function(_, idx) { return idx !== i; }); setContacts(u); onSave({ whatsapp: Object.assign({}, config, { trustedContacts: u }) }); }
|
|
198
|
-
}),
|
|
199
|
-
|
|
200
|
-
h(AccessModeSelect, { value: config.accessMode, onChange: function(v) { onSave({ whatsapp: Object.assign({}, config, { accessMode: v }) }); } }),
|
|
201
|
-
|
|
202
|
-
// Auto-reply for untrusted senders
|
|
203
|
-
h('div', { style: { marginTop: '16px' } },
|
|
204
|
-
h('label', { style: { display: 'block', fontWeight: '600', marginBottom: '6px', fontSize: '13px', color: 'var(--text-secondary)' } }, 'Auto-Reply to Unknown Senders'),
|
|
205
|
-
h('textarea', {
|
|
206
|
-
rows: 3,
|
|
207
|
-
style: { width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: '8px', background: 'var(--bg-secondary)', color: 'var(--text-primary)', fontSize: '13px', resize: 'vertical', fontFamily: 'inherit', boxSizing: 'border-box' },
|
|
208
|
-
placeholder: 'Leave empty for default message. Example: Hi! I\'m not set up to chat with you yet. Please contact my manager directly.',
|
|
209
|
-
value: config.untrustedAutoReply || '',
|
|
210
|
-
onBlur: function(e) { onSave({ whatsapp: Object.assign({}, config, { untrustedAutoReply: e.target.value }) }); }
|
|
211
|
-
}),
|
|
212
|
-
h('p', { style: { margin: '4px 0 0', fontSize: '11px', color: 'var(--text-tertiary)' } }, 'Sent once per hour to people not on the trusted contacts list.')
|
|
213
|
-
)
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// ════════════════════════════════════════
|
|
218
|
-
// Telegram Card
|
|
219
|
-
// ════════════════════════════════════════
|
|
220
|
-
|
|
221
|
-
function TelegramCard(props) {
|
|
222
|
-
var agentId = props.agentId;
|
|
223
|
-
var config = props.config || {};
|
|
224
|
-
var onSave = props.onSave;
|
|
225
|
-
var toast = useApp().toast;
|
|
226
|
-
|
|
227
|
-
var _editing = useState(false);
|
|
228
|
-
var editing = _editing[0]; var setEditing = _editing[1];
|
|
229
|
-
var _token = useState(config.botToken ? '\u2022\u2022\u2022\u2022\u2022\u2022' + (config.botToken || '').slice(-6) : '');
|
|
230
|
-
var token = _token[0]; var setToken = _token[1];
|
|
231
|
-
var _contacts = useState(config.trustedChatIds || []);
|
|
232
|
-
var contacts = _contacts[0]; var setContacts = _contacts[1];
|
|
233
|
-
var _botInfo = useState(config._botInfo || null);
|
|
234
|
-
var botInfo = _botInfo[0]; var setBotInfo = _botInfo[1];
|
|
235
|
-
var _validating = useState(false);
|
|
236
|
-
var validating = _validating[0]; var setValidating = _validating[1];
|
|
237
|
-
|
|
238
|
-
var hasToken = !!config.botToken;
|
|
239
|
-
var step1Done = hasToken;
|
|
240
|
-
var step2Done = contacts.length > 0;
|
|
241
|
-
|
|
242
|
-
var saveToken = function() {
|
|
243
|
-
if (token.startsWith('\u2022')) return;
|
|
244
|
-
// Auto-validate before saving
|
|
245
|
-
setValidating(true);
|
|
246
|
-
engineCall('/bridge/agents/' + agentId + '/telegram/validate', {
|
|
247
|
-
method: 'POST', body: JSON.stringify({ botToken: token })
|
|
248
|
-
}).then(function(r) {
|
|
249
|
-
setValidating(false);
|
|
250
|
-
if (r.ok) {
|
|
251
|
-
setBotInfo(r.bot);
|
|
252
|
-
onSave({ telegram: Object.assign({}, config, { botToken: token, _botInfo: r.bot }) });
|
|
253
|
-
setEditing(false);
|
|
254
|
-
toast('Bot validated: @' + r.bot.username, 'success');
|
|
255
|
-
} else {
|
|
256
|
-
toast('Invalid token: ' + (r.error || 'Check and try again'), 'error');
|
|
257
|
-
}
|
|
258
|
-
}).catch(function(e) {
|
|
259
|
-
setValidating(false);
|
|
260
|
-
toast('Validation failed: ' + e.message, 'error');
|
|
261
|
-
});
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
var sendTest = function() {
|
|
265
|
-
if (contacts.length === 0) {
|
|
266
|
-
toast('Add your Telegram user ID first', 'error');
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
var chatId = contacts[0];
|
|
270
|
-
toast('Sending test message...', 'info');
|
|
271
|
-
engineCall('/bridge/agents/' + agentId + '/telegram/test', {
|
|
272
|
-
method: 'POST', body: JSON.stringify({ chatId: chatId })
|
|
273
|
-
}).then(function(r) {
|
|
274
|
-
toast(r.ok ? 'Test message sent! Check Telegram.' : ('Failed: ' + (r.error || 'Unknown')), r.ok ? 'success' : 'error');
|
|
275
|
-
}).catch(function(e) { toast('Failed: ' + e.message, 'error'); });
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
return h('div', { style: cardStyle },
|
|
279
|
-
h('div', { style: headerStyle },
|
|
280
|
-
h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px' } },
|
|
281
|
-
E.telegram(24),
|
|
282
|
-
h('div', null,
|
|
283
|
-
h('h3', { style: { margin: 0, fontSize: '16px' } }, 'Telegram'),
|
|
284
|
-
h('span', { style: { fontSize: '12px', color: 'var(--text-secondary)' } }, 'Bot API — webhook or long-polling')
|
|
285
|
-
)
|
|
286
|
-
),
|
|
287
|
-
hasToken
|
|
288
|
-
? h('span', { style: Object.assign({}, tagStyle, { background: '#28a74520', color: '#28a745' }) },
|
|
289
|
-
h('span', { style: statusDot(true) }), botInfo ? '@' + botInfo.username : 'Configured')
|
|
290
|
-
: h('span', { style: Object.assign({}, tagStyle, { background: '#ffc10720', color: '#ffc107' }) }, 'Needs setup')
|
|
291
|
-
),
|
|
292
|
-
|
|
293
|
-
// Info box
|
|
294
|
-
h('div', { style: { padding: '12px', background: 'var(--bg-tertiary)', borderRadius: '8px', marginBottom: '16px', fontSize: '12px', color: 'var(--text-secondary)', border: '1px solid var(--border)', lineHeight: '1.5' } },
|
|
295
|
-
h('strong', null, 'This is your personal Telegram bot.'), ' Use this to chat with your AI agent via Telegram. ',
|
|
296
|
-
'Create a bot through @BotFather, paste the token below, and start messaging your bot directly.'
|
|
297
|
-
),
|
|
298
|
-
|
|
299
|
-
// Setup Guide
|
|
300
|
-
h('div', { style: guideBox },
|
|
301
|
-
h('div', { style: guideTitle }, E.bolt(16), ' Setup Guide'),
|
|
302
|
-
h(StepItem, { num: '1', done: step1Done, title: 'Create a Telegram bot',
|
|
303
|
-
desc: h(Fragment, null,
|
|
304
|
-
'Open Telegram and search for ', h('strong', null, '@BotFather'), '. Send ', h('code', { style: { background: 'var(--bg-primary)', padding: '1px 4px', borderRadius: '3px' } }, '/newbot'), '. Follow the prompts to choose a name and username. BotFather will give you a bot token — paste it below.'
|
|
305
|
-
) }),
|
|
306
|
-
h(StepItem, { num: '2', done: step2Done, title: 'Add your Telegram user ID',
|
|
307
|
-
desc: h(Fragment, null,
|
|
308
|
-
'Open Telegram and message ', h('strong', null, '@userinfobot'), ' — it will reply with your numeric user ID. Add it below so the agent knows to respond to you.'
|
|
309
|
-
) }),
|
|
310
|
-
h(StepItem, { num: '3', done: false, title: 'Message your bot to test',
|
|
311
|
-
desc: 'Find your bot by its username in Telegram and send it a message. The agent will receive it and respond.' })
|
|
312
|
-
),
|
|
313
|
-
|
|
314
|
-
// Bot Token
|
|
315
|
-
h('div', { style: fieldStyle },
|
|
316
|
-
h('label', { style: labelStyle }, 'Bot Token'),
|
|
317
|
-
editing
|
|
318
|
-
? h('div', { style: { display: 'flex', gap: '8px' } },
|
|
319
|
-
h('input', { style: Object.assign({}, inputStyle, { flex: 1, fontFamily: 'monospace' }), placeholder: '123456789:ABCdefGHIjklMNOpqrsTUVwxyz', value: token.startsWith('\u2022') ? '' : token, onInput: function(e) { setToken(e.target.value); },
|
|
320
|
-
onKeyDown: function(e) { if (e.key === 'Enter') saveToken(); }
|
|
321
|
-
}),
|
|
322
|
-
h('button', { style: Object.assign({}, btnPrimary, { opacity: validating ? 0.7 : 1 }), onClick: saveToken, disabled: validating }, validating ? 'Validating...' : 'Save & Validate'),
|
|
323
|
-
h('button', { style: btnSecondary, onClick: function() { setEditing(false); } }, 'Cancel')
|
|
324
|
-
)
|
|
325
|
-
: h('div', { style: { display: 'flex', gap: '8px', alignItems: 'center' } },
|
|
326
|
-
h('code', { style: { fontSize: '13px', color: 'var(--text-secondary)' } }, token || 'Not set'),
|
|
327
|
-
h('button', { style: Object.assign({}, btnSecondary, { fontSize: '12px', padding: '4px 10px' }), onClick: function() { setEditing(true); setToken(''); } }, hasToken ? 'Change' : 'Add Token'),
|
|
328
|
-
hasToken && contacts.length > 0 && h('button', { style: Object.assign({}, btnPrimary, { fontSize: '12px', padding: '4px 10px' }), onClick: sendTest }, 'Send Test Message')
|
|
329
|
-
)
|
|
330
|
-
),
|
|
331
|
-
|
|
332
|
-
// Trusted Chat IDs
|
|
333
|
-
h(TrustedContactsList, {
|
|
334
|
-
contacts: contacts, placeholder: '123456789',
|
|
335
|
-
help: 'Telegram user IDs or group chat IDs. Get yours by messaging @userinfobot on Telegram.',
|
|
336
|
-
onAdd: function(v) { var u = contacts.concat([v]); setContacts(u); onSave({ telegram: Object.assign({}, config, { trustedChatIds: u }) }); },
|
|
337
|
-
onRemove: function(i) { var u = contacts.filter(function(_, idx) { return idx !== i; }); setContacts(u); onSave({ telegram: Object.assign({}, config, { trustedChatIds: u }) }); }
|
|
338
|
-
}),
|
|
339
|
-
|
|
340
|
-
h(AccessModeSelect, { value: config.accessMode, onChange: function(v) { onSave({ telegram: Object.assign({}, config, { accessMode: v }) }); } }),
|
|
341
|
-
|
|
342
|
-
// Auto-reply for untrusted senders
|
|
343
|
-
h('div', { style: { marginTop: '16px' } },
|
|
344
|
-
h('label', { style: { display: 'block', fontWeight: '600', marginBottom: '6px', fontSize: '13px', color: 'var(--text-secondary)' } }, 'Auto-Reply to Unknown Senders'),
|
|
345
|
-
h('textarea', {
|
|
346
|
-
rows: 3,
|
|
347
|
-
style: { width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: '8px', background: 'var(--bg-secondary)', color: 'var(--text-primary)', fontSize: '13px', resize: 'vertical', fontFamily: 'inherit', boxSizing: 'border-box' },
|
|
348
|
-
placeholder: 'Leave empty for default message.',
|
|
349
|
-
value: config.untrustedAutoReply || '',
|
|
350
|
-
onBlur: function(e) { onSave({ telegram: Object.assign({}, config, { untrustedAutoReply: e.target.value }) }); }
|
|
351
|
-
}),
|
|
352
|
-
h('p', { style: { margin: '4px 0 0', fontSize: '11px', color: 'var(--text-tertiary)' } }, 'Sent once per hour to people not on the trusted contacts list.')
|
|
353
|
-
),
|
|
354
|
-
|
|
355
|
-
// Delivery mode
|
|
356
|
-
h('div', { style: fieldStyle },
|
|
357
|
-
h('label', { style: labelStyle }, 'Delivery Mode'),
|
|
358
|
-
h('select', { style: inputStyle, value: config.deliveryMode || 'auto',
|
|
359
|
-
onChange: function(e) { onSave({ telegram: Object.assign({}, config, { deliveryMode: e.target.value }) }); }
|
|
360
|
-
},
|
|
361
|
-
h('option', { value: 'auto' }, 'Auto (webhook if public URL available, otherwise polling)'),
|
|
362
|
-
h('option', { value: 'webhook' }, 'Webhook only (requires public URL like fly.io, VPS)'),
|
|
363
|
-
h('option', { value: 'polling' }, 'Long-polling only (works everywhere)')
|
|
364
|
-
),
|
|
365
|
-
h('div', { style: helpStyle }, 'Webhook is faster and more efficient. Polling works without a public URL (local machines, behind NAT).')
|
|
366
|
-
)
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// ════════════════════════════════════════
|
|
371
|
-
// Manager Identity Card
|
|
372
|
-
// ════════════════════════════════════════
|
|
373
|
-
|
|
374
|
-
function ManagerIdentityCard(props) {
|
|
375
|
-
var config = props.config || {};
|
|
376
|
-
var onSave = props.onSave;
|
|
377
|
-
|
|
378
|
-
var _wa = useState(config.whatsappNumber || '');
|
|
379
|
-
var wa = _wa[0]; var setWa = _wa[1];
|
|
380
|
-
var _tg = useState(config.telegramId || '');
|
|
381
|
-
var tg = _tg[0]; var setTg = _tg[1];
|
|
382
|
-
var save = function() {
|
|
383
|
-
onSave({ managerIdentity: { whatsappNumber: wa.trim(), telegramId: tg.trim() } });
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
var hasAny = wa || tg;
|
|
387
|
-
|
|
388
|
-
return h('div', { style: Object.assign({}, cardStyle, { border: '1px solid var(--accent)' }) },
|
|
389
|
-
h('div', { style: headerStyle },
|
|
390
|
-
h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px' } },
|
|
391
|
-
E.shield(24),
|
|
392
|
-
h('div', null,
|
|
393
|
-
h('h3', { style: { margin: 0, fontSize: '16px' } }, 'Manager Identity'),
|
|
394
|
-
h('span', { style: { fontSize: '12px', color: 'var(--text-secondary)' } }, 'How the agent recognizes you across platforms')
|
|
395
|
-
)
|
|
396
|
-
),
|
|
397
|
-
hasAny
|
|
398
|
-
? h('span', { style: Object.assign({}, tagStyle, { background: '#28a74520', color: '#28a745' }) }, 'Configured')
|
|
399
|
-
: h('span', { style: Object.assign({}, tagStyle, { background: '#ffc10720', color: '#ffc107' }) }, 'Not set')
|
|
400
|
-
),
|
|
401
|
-
|
|
402
|
-
h('div', { style: { padding: '12px', background: 'var(--bg-tertiary)', borderRadius: '8px', marginBottom: '16px', fontSize: '13px', border: '1px solid var(--border)', lineHeight: '1.5' } },
|
|
403
|
-
'Enter your phone number / user ID for each platform you use. The agent will recognize messages from these identities as coming from the boss — full trust, bypasses all access restrictions.'
|
|
404
|
-
),
|
|
405
|
-
|
|
406
|
-
h('div', { style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '12px' } },
|
|
407
|
-
h('div', null,
|
|
408
|
-
h('label', { style: Object.assign({}, labelStyle, { display: 'flex', alignItems: 'center', gap: '4px' }) }, E.whatsapp(14), ' WhatsApp'),
|
|
409
|
-
h('input', { style: inputStyle, placeholder: '+13362763915', value: wa, onInput: function(e) { setWa(e.target.value); } })
|
|
410
|
-
),
|
|
411
|
-
h('div', null,
|
|
412
|
-
h('label', { style: Object.assign({}, labelStyle, { display: 'flex', alignItems: 'center', gap: '4px' }) }, E.telegram(14), ' Telegram'),
|
|
413
|
-
h('input', { style: inputStyle, placeholder: 'User ID from @userinfobot', value: tg, onInput: function(e) { setTg(e.target.value); } })
|
|
414
|
-
)
|
|
415
|
-
),
|
|
416
|
-
h('button', { style: Object.assign({}, btnPrimary, { marginTop: '12px' }), onClick: save }, 'Save Identity')
|
|
417
|
-
);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
// ════════════════════════════════════════
|
|
421
|
-
// Main Export
|
|
422
|
-
// ════════════════════════════════════════
|
|
423
|
-
|
|
424
|
-
export function ChannelsSection(props) {
|
|
425
|
-
var agentId = props.agentId;
|
|
426
|
-
var engineAgent = props.engineAgent;
|
|
427
|
-
var reload = props.reload;
|
|
428
|
-
var toast = useApp().toast;
|
|
429
|
-
|
|
430
|
-
var agentConfig = engineAgent?.config || {};
|
|
431
|
-
var channels = agentConfig.messagingChannels || {};
|
|
432
|
-
var _caps = useState(null);
|
|
433
|
-
var caps = _caps[0]; var setCaps = _caps[1];
|
|
434
|
-
var _orgInfo = useState(null);
|
|
435
|
-
var orgInfo = _orgInfo[0]; var setOrgInfo = _orgInfo[1];
|
|
436
|
-
|
|
437
|
-
useEffect(function() {
|
|
438
|
-
apiCall('/platform-capabilities').then(function(r) { setCaps(r.capabilities || r || {}); }).catch(function() {});
|
|
439
|
-
}, []);
|
|
440
|
-
|
|
441
|
-
useEffect(function() {
|
|
442
|
-
if (engineAgent?.client_org_id) {
|
|
443
|
-
apiCall('/organizations/' + engineAgent.client_org_id)
|
|
444
|
-
.then(function(org) { setOrgInfo(org); })
|
|
445
|
-
.catch(function() {});
|
|
446
|
-
}
|
|
447
|
-
}, [engineAgent?.client_org_id]);
|
|
448
|
-
|
|
449
|
-
var orgName = orgInfo ? (orgInfo.name || orgInfo.display_name || 'Organization') : null;
|
|
450
|
-
|
|
451
|
-
var saveChannelConfig = function(patch) {
|
|
452
|
-
var updated = Object.assign({}, channels, patch);
|
|
453
|
-
engineCall('/bridge/agents/' + agentId + '/config', {
|
|
454
|
-
method: 'PUT',
|
|
455
|
-
body: JSON.stringify({ messagingChannels: updated }),
|
|
456
|
-
}).then(function() {
|
|
457
|
-
toast('Saved', 'success');
|
|
458
|
-
reload();
|
|
459
|
-
}).catch(function(e) { toast('Save failed: ' + e.message, 'error'); });
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
var noChannels = !caps?.whatsapp && !caps?.telegram;
|
|
463
|
-
|
|
464
|
-
return h('div', null,
|
|
465
|
-
h('h2', { style: { fontSize: '20px', marginBottom: '16px', display: 'flex', alignItems: 'center' } }, 'Manager Messaging Channels', h(HelpButton, { label: 'Manager Messaging Channels' },
|
|
466
|
-
h('p', null, 'Connect personal messaging platforms so you can chat with your AI agent directly from WhatsApp or Telegram. These are your private channels — for customer-facing messaging, use the WhatsApp Business tab.'),
|
|
467
|
-
h('ul', { style: { paddingLeft: 20, margin: '4px 0 8px' } },
|
|
468
|
-
h('li', null, h('strong', null, 'Manager Identity'), ' — Set your phone number/user ID so the agent recognizes you across platforms.'),
|
|
469
|
-
h('li', null, h('strong', null, 'WhatsApp'), ' — Link via QR code. Uses your personal WhatsApp as a linked device.'),
|
|
470
|
-
h('li', null, h('strong', null, 'Telegram'), ' — Create a bot via @BotFather and paste the token.')
|
|
471
|
-
),
|
|
472
|
-
h('div', { style: { marginTop: 12, padding: 12, background: 'var(--bg-secondary, #1e293b)', borderRadius: 'var(--radius, 8px)', fontSize: 13 } }, h('strong', null, 'Tip: '), 'Add trusted contacts to control who can message the agent. Only trusted contacts get responses — everyone else gets an auto-reply.')
|
|
473
|
-
)),
|
|
474
|
-
|
|
475
|
-
engineAgent?.client_org_id && orgName && h('div', { style: { padding: '12px 16px', background: 'var(--info-soft)', borderRadius: '8px', marginBottom: 16, display: 'flex', alignItems: 'center', gap: 10, border: '1px solid var(--border)' } },
|
|
476
|
-
I.building(),
|
|
477
|
-
h('div', null,
|
|
478
|
-
h('div', { style: { fontSize: 13, fontWeight: 600 } }, 'This agent belongs to ', h('strong', null, orgName), '.'),
|
|
479
|
-
h('div', { style: { fontSize: 12, color: 'var(--text-muted)', marginTop: 2 } }, 'Channel configurations are scoped to this organization. Messaging connections and trusted contacts apply within the organization context.')
|
|
480
|
-
)
|
|
481
|
-
),
|
|
482
|
-
|
|
483
|
-
noChannels && h('div', { style: Object.assign({}, cardStyle, { textAlign: 'center', padding: '40px' }) },
|
|
484
|
-
h('div', { style: { marginBottom: '12px' } }, E.chat(40)),
|
|
485
|
-
h('h3', { style: { margin: '0 0 8px' } }, 'No Manager Messaging Channels Enabled'),
|
|
486
|
-
h('p', { style: { color: 'var(--text-secondary)', margin: '0 0 16px', maxWidth: '400px', marginLeft: 'auto', marginRight: 'auto' } }, 'Enable WhatsApp or Telegram in Settings > Platform to let this agent communicate on messaging platforms.'),
|
|
487
|
-
h('a', { href: '#settings', style: { color: 'var(--accent)', textDecoration: 'none', fontWeight: '600' } }, 'Go to Settings > Platform')
|
|
488
|
-
),
|
|
489
|
-
|
|
490
|
-
!noChannels && h(ManagerIdentityCard, { config: channels.managerIdentity || {}, onSave: saveChannelConfig }),
|
|
491
|
-
caps?.whatsapp && h(WhatsAppCard, { agentId: agentId, config: channels.whatsapp || {}, onSave: saveChannelConfig }),
|
|
492
|
-
caps?.telegram && h(TelegramCard, { agentId: agentId, config: channels.telegram || {}, onSave: saveChannelConfig })
|
|
493
|
-
);
|
|
494
|
-
}
|