@agenticmail/enterprise 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/CODEOWNERS +23 -0
- package/.github/workflows/publish-community-skills.yml +121 -0
- package/.github/workflows/validate-community-skills.yml +172 -0
- package/ARCHITECTURE.md +184 -167
- package/CLAUDE.md +40 -0
- package/CONTRIBUTING.md +254 -0
- package/DEPLOYMENT.md +1031 -0
- package/README.md +355 -174
- package/community-skills/_template/README.md +31 -0
- package/community-skills/_template/agenticmail-skill.json +48 -0
- package/community-skills/activecampaign/README.md +21 -0
- package/community-skills/activecampaign/agenticmail-skill.json +56 -0
- package/community-skills/adobe-sign/README.md +21 -0
- package/community-skills/adobe-sign/agenticmail-skill.json +72 -0
- package/community-skills/adp/README.md +21 -0
- package/community-skills/adp/agenticmail-skill.json +65 -0
- package/community-skills/airtable-bases/README.md +29 -0
- package/community-skills/airtable-bases/agenticmail-skill.json +69 -0
- package/community-skills/apollo-io/README.md +21 -0
- package/community-skills/apollo-io/agenticmail-skill.json +50 -0
- package/community-skills/asana-tasks/README.md +30 -0
- package/community-skills/asana-tasks/agenticmail-skill.json +70 -0
- package/community-skills/auth0/README.md +21 -0
- package/community-skills/auth0/agenticmail-skill.json +56 -0
- package/community-skills/aws-services/README.md +38 -0
- package/community-skills/aws-services/agenticmail-skill.json +70 -0
- package/community-skills/azure-devops/README.md +21 -0
- package/community-skills/azure-devops/agenticmail-skill.json +57 -0
- package/community-skills/bamboohr/README.md +21 -0
- package/community-skills/bamboohr/agenticmail-skill.json +56 -0
- package/community-skills/basecamp/README.md +21 -0
- package/community-skills/basecamp/agenticmail-skill.json +56 -0
- package/community-skills/bigcommerce/README.md +21 -0
- package/community-skills/bigcommerce/agenticmail-skill.json +55 -0
- package/community-skills/bitbucket-repos/README.md +29 -0
- package/community-skills/bitbucket-repos/agenticmail-skill.json +70 -0
- package/community-skills/box/README.md +21 -0
- package/community-skills/box/agenticmail-skill.json +48 -0
- package/community-skills/brex/README.md +21 -0
- package/community-skills/brex/agenticmail-skill.json +48 -0
- package/community-skills/buffer/README.md +21 -0
- package/community-skills/buffer/agenticmail-skill.json +50 -0
- package/community-skills/calendly/README.md +20 -0
- package/community-skills/calendly/agenticmail-skill.json +43 -0
- package/community-skills/canva-design/README.md +33 -0
- package/community-skills/canva-design/agenticmail-skill.json +60 -0
- package/community-skills/chargebee/README.md +21 -0
- package/community-skills/chargebee/agenticmail-skill.json +55 -0
- package/community-skills/circleci-pipelines/README.md +28 -0
- package/community-skills/circleci-pipelines/agenticmail-skill.json +66 -0
- package/community-skills/clickup/README.md +21 -0
- package/community-skills/clickup/agenticmail-skill.json +48 -0
- package/community-skills/close-crm/README.md +21 -0
- package/community-skills/close-crm/agenticmail-skill.json +49 -0
- package/community-skills/cloudflare-cdn/README.md +37 -0
- package/community-skills/cloudflare-cdn/agenticmail-skill.json +67 -0
- package/community-skills/confluence-wiki/README.md +31 -0
- package/community-skills/confluence-wiki/agenticmail-skill.json +74 -0
- package/community-skills/contentful/README.md +21 -0
- package/community-skills/contentful/agenticmail-skill.json +62 -0
- package/community-skills/copper-crm/README.md +21 -0
- package/community-skills/copper-crm/agenticmail-skill.json +56 -0
- package/community-skills/crisp/README.md +21 -0
- package/community-skills/crisp/agenticmail-skill.json +56 -0
- package/community-skills/crowdstrike/README.md +21 -0
- package/community-skills/crowdstrike/agenticmail-skill.json +69 -0
- package/community-skills/datadog-monitoring/README.md +37 -0
- package/community-skills/datadog-monitoring/agenticmail-skill.json +73 -0
- package/community-skills/digitalocean/README.md +21 -0
- package/community-skills/digitalocean/agenticmail-skill.json +48 -0
- package/community-skills/discord/README.md +45 -0
- package/community-skills/discord/agenticmail-skill.json +65 -0
- package/community-skills/docker-containers/README.md +38 -0
- package/community-skills/docker-containers/agenticmail-skill.json +70 -0
- package/community-skills/docusign-esign/README.md +35 -0
- package/community-skills/docusign-esign/agenticmail-skill.json +66 -0
- package/community-skills/drift/README.md +21 -0
- package/community-skills/drift/agenticmail-skill.json +50 -0
- package/community-skills/dropbox-storage/README.md +36 -0
- package/community-skills/dropbox-storage/agenticmail-skill.json +67 -0
- package/community-skills/figma-design/README.md +36 -0
- package/community-skills/figma-design/agenticmail-skill.json +66 -0
- package/community-skills/firebase/README.md +21 -0
- package/community-skills/firebase/agenticmail-skill.json +56 -0
- package/community-skills/flyio/README.md +21 -0
- package/community-skills/flyio/agenticmail-skill.json +56 -0
- package/community-skills/freshbooks/README.md +21 -0
- package/community-skills/freshbooks/agenticmail-skill.json +55 -0
- package/community-skills/freshdesk/README.md +21 -0
- package/community-skills/freshdesk/agenticmail-skill.json +57 -0
- package/community-skills/freshsales/README.md +21 -0
- package/community-skills/freshsales/agenticmail-skill.json +55 -0
- package/community-skills/freshservice/README.md +21 -0
- package/community-skills/freshservice/agenticmail-skill.json +56 -0
- package/community-skills/front/README.md +21 -0
- package/community-skills/front/agenticmail-skill.json +48 -0
- package/community-skills/github/README.md +49 -0
- package/community-skills/github/agenticmail-skill.json +73 -0
- package/community-skills/github-actions/README.md +29 -0
- package/community-skills/github-actions/agenticmail-skill.json +72 -0
- package/community-skills/gitlab-ci/README.md +51 -0
- package/community-skills/gitlab-ci/agenticmail-skill.json +66 -0
- package/community-skills/gong/README.md +21 -0
- package/community-skills/gong/agenticmail-skill.json +50 -0
- package/community-skills/google-ads/README.md +36 -0
- package/community-skills/google-ads/agenticmail-skill.json +58 -0
- package/community-skills/google-analytics/README.md +28 -0
- package/community-skills/google-analytics/agenticmail-skill.json +69 -0
- package/community-skills/google-cloud/README.md +33 -0
- package/community-skills/google-cloud/agenticmail-skill.json +59 -0
- package/community-skills/google-drive/README.md +36 -0
- package/community-skills/google-drive/agenticmail-skill.json +65 -0
- package/community-skills/gotomeeting/README.md +20 -0
- package/community-skills/gotomeeting/agenticmail-skill.json +45 -0
- package/community-skills/grafana/README.md +21 -0
- package/community-skills/grafana/agenticmail-skill.json +56 -0
- package/community-skills/greenhouse/README.md +21 -0
- package/community-skills/greenhouse/agenticmail-skill.json +49 -0
- package/community-skills/gusto/README.md +21 -0
- package/community-skills/gusto/agenticmail-skill.json +49 -0
- package/community-skills/hashicorp-vault/README.md +21 -0
- package/community-skills/hashicorp-vault/agenticmail-skill.json +58 -0
- package/community-skills/heroku/README.md +21 -0
- package/community-skills/heroku/agenticmail-skill.json +48 -0
- package/community-skills/hibob/README.md +21 -0
- package/community-skills/hibob/agenticmail-skill.json +48 -0
- package/community-skills/hootsuite/README.md +21 -0
- package/community-skills/hootsuite/agenticmail-skill.json +48 -0
- package/community-skills/hubspot-crm/README.md +36 -0
- package/community-skills/hubspot-crm/agenticmail-skill.json +70 -0
- package/community-skills/huggingface/README.md +21 -0
- package/community-skills/huggingface/agenticmail-skill.json +48 -0
- package/community-skills/index.json +1320 -0
- package/community-skills/intercom-support/README.md +36 -0
- package/community-skills/intercom-support/agenticmail-skill.json +64 -0
- package/community-skills/jira/README.md +53 -0
- package/community-skills/jira/agenticmail-skill.json +72 -0
- package/community-skills/klaviyo/README.md +21 -0
- package/community-skills/klaviyo/agenticmail-skill.json +48 -0
- package/community-skills/kubernetes-cluster/README.md +36 -0
- package/community-skills/kubernetes-cluster/agenticmail-skill.json +72 -0
- package/community-skills/lattice/README.md +21 -0
- package/community-skills/lattice/agenticmail-skill.json +49 -0
- package/community-skills/launchdarkly/README.md +21 -0
- package/community-skills/launchdarkly/agenticmail-skill.json +48 -0
- package/community-skills/lever/README.md +21 -0
- package/community-skills/lever/agenticmail-skill.json +49 -0
- package/community-skills/linear/README.md +29 -0
- package/community-skills/linear/agenticmail-skill.json +81 -0
- package/community-skills/linkedin/README.md +21 -0
- package/community-skills/linkedin/agenticmail-skill.json +48 -0
- package/community-skills/livechat/README.md +20 -0
- package/community-skills/livechat/agenticmail-skill.json +43 -0
- package/community-skills/loom-video/README.md +20 -0
- package/community-skills/loom-video/agenticmail-skill.json +44 -0
- package/community-skills/mailchimp-campaigns/README.md +37 -0
- package/community-skills/mailchimp-campaigns/agenticmail-skill.json +69 -0
- package/community-skills/mailgun/README.md +21 -0
- package/community-skills/mailgun/agenticmail-skill.json +71 -0
- package/community-skills/microsoft-teams/README.md +51 -0
- package/community-skills/microsoft-teams/agenticmail-skill.json +66 -0
- package/community-skills/miro-boards/README.md +20 -0
- package/community-skills/miro-boards/agenticmail-skill.json +44 -0
- package/community-skills/mixpanel-analytics/README.md +34 -0
- package/community-skills/mixpanel-analytics/agenticmail-skill.json +64 -0
- package/community-skills/monday-boards/README.md +28 -0
- package/community-skills/monday-boards/agenticmail-skill.json +68 -0
- package/community-skills/mongodb-atlas/README.md +21 -0
- package/community-skills/mongodb-atlas/agenticmail-skill.json +58 -0
- package/community-skills/neon/README.md +21 -0
- package/community-skills/neon/agenticmail-skill.json +50 -0
- package/community-skills/netlify/README.md +21 -0
- package/community-skills/netlify/agenticmail-skill.json +48 -0
- package/community-skills/netsuite/README.md +21 -0
- package/community-skills/netsuite/agenticmail-skill.json +57 -0
- package/community-skills/newrelic/README.md +21 -0
- package/community-skills/newrelic/agenticmail-skill.json +58 -0
- package/community-skills/notion/README.md +49 -0
- package/community-skills/notion/agenticmail-skill.json +72 -0
- package/community-skills/okta/README.md +21 -0
- package/community-skills/okta/agenticmail-skill.json +57 -0
- package/community-skills/openai/README.md +21 -0
- package/community-skills/openai/agenticmail-skill.json +48 -0
- package/community-skills/opsgenie/README.md +21 -0
- package/community-skills/opsgenie/agenticmail-skill.json +48 -0
- package/community-skills/outreach/README.md +21 -0
- package/community-skills/outreach/agenticmail-skill.json +50 -0
- package/community-skills/paddle/README.md +21 -0
- package/community-skills/paddle/agenticmail-skill.json +55 -0
- package/community-skills/pagerduty/README.md +21 -0
- package/community-skills/pagerduty/agenticmail-skill.json +48 -0
- package/community-skills/pandadoc/README.md +21 -0
- package/community-skills/pandadoc/agenticmail-skill.json +48 -0
- package/community-skills/paypal/README.md +21 -0
- package/community-skills/paypal/agenticmail-skill.json +55 -0
- package/community-skills/personio/README.md +21 -0
- package/community-skills/personio/agenticmail-skill.json +48 -0
- package/community-skills/pinecone/README.md +21 -0
- package/community-skills/pinecone/agenticmail-skill.json +48 -0
- package/community-skills/pipedrive-deals/README.md +33 -0
- package/community-skills/pipedrive-deals/agenticmail-skill.json +60 -0
- package/community-skills/plaid/README.md +21 -0
- package/community-skills/plaid/agenticmail-skill.json +65 -0
- package/community-skills/postmark/README.md +21 -0
- package/community-skills/postmark/agenticmail-skill.json +48 -0
- package/community-skills/power-automate/README.md +21 -0
- package/community-skills/power-automate/agenticmail-skill.json +59 -0
- package/community-skills/quickbooks-accounting/README.md +38 -0
- package/community-skills/quickbooks-accounting/agenticmail-skill.json +70 -0
- package/community-skills/recurly/README.md +21 -0
- package/community-skills/recurly/agenticmail-skill.json +48 -0
- package/community-skills/reddit/README.md +21 -0
- package/community-skills/reddit/agenticmail-skill.json +48 -0
- package/community-skills/render/README.md +21 -0
- package/community-skills/render/agenticmail-skill.json +48 -0
- package/community-skills/ringcentral/README.md +20 -0
- package/community-skills/ringcentral/agenticmail-skill.json +43 -0
- package/community-skills/rippling/README.md +21 -0
- package/community-skills/rippling/agenticmail-skill.json +48 -0
- package/community-skills/salesforce/README.md +53 -0
- package/community-skills/salesforce/agenticmail-skill.json +73 -0
- package/community-skills/salesloft/README.md +21 -0
- package/community-skills/salesloft/agenticmail-skill.json +48 -0
- package/community-skills/sanity/README.md +21 -0
- package/community-skills/sanity/agenticmail-skill.json +62 -0
- package/community-skills/sap/README.md +21 -0
- package/community-skills/sap/agenticmail-skill.json +63 -0
- package/community-skills/segment-cdp/README.md +37 -0
- package/community-skills/segment-cdp/agenticmail-skill.json +66 -0
- package/community-skills/sendgrid-email/README.md +51 -0
- package/community-skills/sendgrid-email/agenticmail-skill.json +71 -0
- package/community-skills/sentry/README.md +21 -0
- package/community-skills/sentry/agenticmail-skill.json +58 -0
- package/community-skills/servicenow/README.md +21 -0
- package/community-skills/servicenow/agenticmail-skill.json +56 -0
- package/community-skills/shopify/README.md +21 -0
- package/community-skills/shopify/agenticmail-skill.json +56 -0
- package/community-skills/shortcut/README.md +21 -0
- package/community-skills/shortcut/agenticmail-skill.json +48 -0
- package/community-skills/slack/README.md +45 -0
- package/community-skills/slack/agenticmail-skill.json +73 -0
- package/community-skills/smartsheet/README.md +21 -0
- package/community-skills/smartsheet/agenticmail-skill.json +48 -0
- package/community-skills/snowflake-warehouse/README.md +37 -0
- package/community-skills/snowflake-warehouse/agenticmail-skill.json +71 -0
- package/community-skills/snyk/README.md +21 -0
- package/community-skills/snyk/agenticmail-skill.json +48 -0
- package/community-skills/splunk/README.md +21 -0
- package/community-skills/splunk/agenticmail-skill.json +56 -0
- package/community-skills/square/README.md +21 -0
- package/community-skills/square/agenticmail-skill.json +55 -0
- package/community-skills/statuspage/README.md +21 -0
- package/community-skills/statuspage/agenticmail-skill.json +56 -0
- package/community-skills/stripe/README.md +45 -0
- package/community-skills/stripe/agenticmail-skill.json +66 -0
- package/community-skills/supabase/README.md +21 -0
- package/community-skills/supabase/agenticmail-skill.json +56 -0
- package/community-skills/teamwork/README.md +21 -0
- package/community-skills/teamwork/agenticmail-skill.json +56 -0
- package/community-skills/telegram-bot/README.md +20 -0
- package/community-skills/telegram-bot/agenticmail-skill.json +52 -0
- package/community-skills/terraform-iac/README.md +34 -0
- package/community-skills/terraform-iac/agenticmail-skill.json +66 -0
- package/community-skills/todoist-tasks/README.md +29 -0
- package/community-skills/todoist-tasks/agenticmail-skill.json +72 -0
- package/community-skills/trello-cards/README.md +30 -0
- package/community-skills/trello-cards/agenticmail-skill.json +72 -0
- package/community-skills/twilio-sms/README.md +47 -0
- package/community-skills/twilio-sms/agenticmail-skill.json +63 -0
- package/community-skills/twitter/README.md +21 -0
- package/community-skills/twitter/agenticmail-skill.json +48 -0
- package/community-skills/vercel-deployments/README.md +29 -0
- package/community-skills/vercel-deployments/agenticmail-skill.json +70 -0
- package/community-skills/weaviate/README.md +21 -0
- package/community-skills/weaviate/agenticmail-skill.json +56 -0
- package/community-skills/webex/README.md +20 -0
- package/community-skills/webex/agenticmail-skill.json +43 -0
- package/community-skills/webflow/README.md +21 -0
- package/community-skills/webflow/agenticmail-skill.json +48 -0
- package/community-skills/whatsapp-business/README.md +20 -0
- package/community-skills/whatsapp-business/agenticmail-skill.json +52 -0
- package/community-skills/whereby/README.md +20 -0
- package/community-skills/whereby/agenticmail-skill.json +43 -0
- package/community-skills/woocommerce/README.md +21 -0
- package/community-skills/woocommerce/agenticmail-skill.json +55 -0
- package/community-skills/wordpress/README.md +21 -0
- package/community-skills/wordpress/agenticmail-skill.json +56 -0
- package/community-skills/workday/README.md +21 -0
- package/community-skills/workday/agenticmail-skill.json +56 -0
- package/community-skills/wrike/README.md +21 -0
- package/community-skills/wrike/agenticmail-skill.json +48 -0
- package/community-skills/xero/README.md +21 -0
- package/community-skills/xero/agenticmail-skill.json +56 -0
- package/community-skills/youtube/README.md +21 -0
- package/community-skills/youtube/agenticmail-skill.json +52 -0
- package/community-skills/zendesk-tickets/README.md +37 -0
- package/community-skills/zendesk-tickets/agenticmail-skill.json +65 -0
- package/community-skills/zoho-crm/README.md +21 -0
- package/community-skills/zoho-crm/agenticmail-skill.json +74 -0
- package/community-skills/zoom-meetings/README.md +51 -0
- package/community-skills/zoom-meetings/agenticmail-skill.json +66 -0
- package/community-skills/zuora/README.md +21 -0
- package/community-skills/zuora/agenticmail-skill.json +55 -0
- package/dashboards/README.md +81 -70
- package/dashboards/django/app.py +117 -0
- package/dashboards/django/static/styles.css +284 -0
- package/dashboards/django/templates/agent_detail.html +501 -0
- package/dashboards/django/templates/agents.html +217 -0
- package/dashboards/django/templates/api_keys.html +41 -0
- package/dashboards/django/templates/audit.html +26 -0
- package/dashboards/django/templates/compliance.html +33 -0
- package/dashboards/django/templates/components/modal.html +6 -0
- package/dashboards/django/templates/components/pagination.html +9 -0
- package/dashboards/django/templates/components/stats.html +8 -0
- package/dashboards/django/templates/dashboard.html +24 -0
- package/dashboards/django/templates/dlp.html +70 -0
- package/dashboards/django/templates/guardrails.html +78 -0
- package/dashboards/django/templates/journal.html +39 -0
- package/dashboards/django/templates/layout.html +52 -0
- package/dashboards/django/templates/login.html +30 -0
- package/dashboards/django/templates/messages.html +38 -0
- package/dashboards/django/templates/settings.html +472 -0
- package/dashboards/django/templates/skills.html +66 -0
- package/dashboards/django/templates/users.html +34 -0
- package/dashboards/django/templates/vault.html +46 -0
- package/dashboards/django/utils/__init__.py +0 -0
- package/dashboards/django/utils/api.py +20 -0
- package/dashboards/django/utils/helpers.py +39 -0
- package/dashboards/django/views/__init__.py +38 -0
- package/dashboards/django/views/agents.py +343 -0
- package/dashboards/django/views/api_keys.py +47 -0
- package/dashboards/django/views/audit.py +35 -0
- package/dashboards/django/views/auth.py +34 -0
- package/dashboards/django/views/compliance.py +37 -0
- package/dashboards/django/views/dashboard.py +27 -0
- package/dashboards/django/views/dlp.py +53 -0
- package/dashboards/django/views/guardrails.py +61 -0
- package/dashboards/django/views/journal.py +41 -0
- package/dashboards/django/views/messages.py +65 -0
- package/dashboards/django/views/settings_view.py +335 -0
- package/dashboards/django/views/skills.py +50 -0
- package/dashboards/django/views/users.py +42 -0
- package/dashboards/django/views/vault.py +50 -0
- package/dashboards/dotnet/AgenticMailDashboard.csproj +10 -0
- package/dashboards/dotnet/Program.cs +53 -233
- package/dashboards/dotnet/Routes/AgentRoutes.cs +771 -0
- package/dashboards/dotnet/Routes/ApiKeyRoutes.cs +185 -0
- package/dashboards/dotnet/Routes/AuditRoutes.cs +86 -0
- package/dashboards/dotnet/Routes/AuthRoutes.cs +50 -0
- package/dashboards/dotnet/Routes/ComplianceRoutes.cs +143 -0
- package/dashboards/dotnet/Routes/DashboardRoutes.cs +81 -0
- package/dashboards/dotnet/Routes/DlpRoutes.cs +230 -0
- package/dashboards/dotnet/Routes/GuardrailRoutes.cs +285 -0
- package/dashboards/dotnet/Routes/JournalRoutes.cs +118 -0
- package/dashboards/dotnet/Routes/MessageRoutes.cs +167 -0
- package/dashboards/dotnet/Routes/SettingRoutes.cs +907 -0
- package/dashboards/dotnet/Routes/SkillRoutes.cs +198 -0
- package/dashboards/dotnet/Routes/UserRoutes.cs +111 -0
- package/dashboards/dotnet/Routes/VaultRoutes.cs +162 -0
- package/dashboards/dotnet/Services/ApiClient.cs +103 -0
- package/dashboards/dotnet/Services/HtmlBuilder.cs +249 -0
- package/dashboards/dotnet/wwwroot/styles.css +284 -0
- package/dashboards/express/app.js +37 -126
- package/dashboards/express/middleware/auth.js +10 -0
- package/dashboards/express/package-lock.json +922 -0
- package/dashboards/express/package.json +17 -0
- package/dashboards/express/public/styles.css +284 -0
- package/dashboards/express/routes/agents.js +771 -0
- package/dashboards/express/routes/apiKeys.js +107 -0
- package/dashboards/express/routes/audit.js +75 -0
- package/dashboards/express/routes/auth.js +38 -0
- package/dashboards/express/routes/compliance.js +93 -0
- package/dashboards/express/routes/dashboard.js +65 -0
- package/dashboards/express/routes/dlp.js +165 -0
- package/dashboards/express/routes/guardrails.js +195 -0
- package/dashboards/express/routes/journal.js +95 -0
- package/dashboards/express/routes/messages.js +97 -0
- package/dashboards/express/routes/settings.js +830 -0
- package/dashboards/express/routes/skills.js +141 -0
- package/dashboards/express/routes/users.js +69 -0
- package/dashboards/express/routes/vault.js +141 -0
- package/dashboards/express/utils/api.js +44 -0
- package/dashboards/express/utils/helpers.js +46 -0
- package/dashboards/express/views/components/modal.js +255 -0
- package/dashboards/express/views/components/stats.js +22 -0
- package/dashboards/express/views/components/table.js +31 -0
- package/dashboards/express/views/layout.js +73 -0
- package/dashboards/express/views/login.js +45 -0
- package/dashboards/go/go.mod +3 -0
- package/dashboards/go/handlers/agents.go +790 -0
- package/dashboards/go/handlers/apikeys.go +38 -0
- package/dashboards/go/handlers/audit.go +52 -0
- package/dashboards/go/handlers/auth.go +39 -0
- package/dashboards/go/handlers/compliance.go +58 -0
- package/dashboards/go/handlers/dashboard.go +43 -0
- package/dashboards/go/handlers/dlp.go +78 -0
- package/dashboards/go/handlers/guardrails.go +89 -0
- package/dashboards/go/handlers/journal.go +60 -0
- package/dashboards/go/handlers/messages.go +59 -0
- package/dashboards/go/handlers/settings.go +951 -0
- package/dashboards/go/handlers/skills.go +129 -0
- package/dashboards/go/handlers/users.go +54 -0
- package/dashboards/go/handlers/vault.go +85 -0
- package/dashboards/go/main.go +35 -485
- package/dashboards/go/middleware/auth.go +17 -0
- package/dashboards/go/services/api.go +38 -0
- package/dashboards/go/services/session.go +52 -0
- package/dashboards/go/static/styles.css +284 -0
- package/dashboards/go/templates/components.go +45 -0
- package/dashboards/go/templates/helpers.go +35 -0
- package/dashboards/go/templates/layout.go +59 -0
- package/dashboards/html/index.html +203 -450
- package/dashboards/html/package.json +11 -0
- package/dashboards/html/public/styles.css +149 -0
- package/dashboards/html/src/api.js +36 -0
- package/dashboards/html/src/components/badge.js +13 -0
- package/dashboards/html/src/components/layout.js +11 -0
- package/dashboards/html/src/components/modal.js +9 -0
- package/dashboards/html/src/components/pagination.js +12 -0
- package/dashboards/html/src/components/stat-card.js +14 -0
- package/dashboards/html/src/components/table.js +6 -0
- package/dashboards/html/src/main.js +83 -0
- package/dashboards/html/src/pages/agents.js +831 -0
- package/dashboards/html/src/pages/api-keys.js +80 -0
- package/dashboards/html/src/pages/audit.js +50 -0
- package/dashboards/html/src/pages/compliance.js +69 -0
- package/dashboards/html/src/pages/dashboard.js +25 -0
- package/dashboards/html/src/pages/dlp.js +112 -0
- package/dashboards/html/src/pages/guardrails.js +127 -0
- package/dashboards/html/src/pages/journal.js +54 -0
- package/dashboards/html/src/pages/login.js +84 -0
- package/dashboards/html/src/pages/messages.js +90 -0
- package/dashboards/html/src/pages/settings.js +656 -0
- package/dashboards/html/src/pages/skills.js +114 -0
- package/dashboards/html/src/pages/users.js +62 -0
- package/dashboards/html/src/pages/vault.js +105 -0
- package/dashboards/html/src/router.js +40 -0
- package/dashboards/html/src/utils/escape.js +7 -0
- package/dashboards/html/src/utils/time.js +16 -0
- package/dashboards/html/src/utils/toast.js +10 -0
- package/dashboards/java/AgenticMailDashboard.java +123 -346
- package/dashboards/java/handlers/AgentsHandler.java +807 -0
- package/dashboards/java/handlers/ApiKeysHandler.java +201 -0
- package/dashboards/java/handlers/AuditHandler.java +95 -0
- package/dashboards/java/handlers/AuthHandler.java +71 -0
- package/dashboards/java/handlers/ComplianceHandler.java +192 -0
- package/dashboards/java/handlers/DashboardHandler.java +98 -0
- package/dashboards/java/handlers/DlpHandler.java +230 -0
- package/dashboards/java/handlers/GuardrailsHandler.java +272 -0
- package/dashboards/java/handlers/JournalHandler.java +130 -0
- package/dashboards/java/handlers/MessagesHandler.java +168 -0
- package/dashboards/java/handlers/SettingsHandler.java +1017 -0
- package/dashboards/java/handlers/SkillsHandler.java +198 -0
- package/dashboards/java/handlers/UsersHandler.java +118 -0
- package/dashboards/java/handlers/VaultHandler.java +168 -0
- package/dashboards/java/services/ApiClient.java +233 -0
- package/dashboards/java/services/SessionManager.java +138 -0
- package/dashboards/java/static/styles.css +288 -0
- package/dashboards/java/templates/Components.java +142 -0
- package/dashboards/java/templates/Helpers.java +106 -0
- package/dashboards/java/templates/Layout.java +98 -0
- package/dashboards/laravel/controllers/AgentController.php +250 -0
- package/dashboards/laravel/controllers/ApiKeyController.php +73 -0
- package/dashboards/laravel/controllers/AuditController.php +31 -0
- package/dashboards/laravel/controllers/AuthController.php +44 -0
- package/dashboards/laravel/controllers/ComplianceController.php +55 -0
- package/dashboards/laravel/controllers/DashboardController.php +28 -0
- package/dashboards/laravel/controllers/DlpController.php +88 -0
- package/dashboards/laravel/controllers/GuardrailController.php +110 -0
- package/dashboards/laravel/controllers/JournalController.php +44 -0
- package/dashboards/laravel/controllers/MessageController.php +47 -0
- package/dashboards/laravel/controllers/SettingController.php +258 -0
- package/dashboards/laravel/controllers/SkillController.php +74 -0
- package/dashboards/laravel/controllers/UserController.php +47 -0
- package/dashboards/laravel/controllers/VaultController.php +94 -0
- package/dashboards/laravel/index.php +319 -0
- package/dashboards/laravel/lib/Api.php +73 -0
- package/dashboards/laravel/lib/Helpers.php +123 -0
- package/dashboards/laravel/public/styles.css +291 -0
- package/dashboards/laravel/views/agent-detail.php +534 -0
- package/dashboards/laravel/views/agents.php +204 -0
- package/dashboards/laravel/views/api-keys.php +55 -0
- package/dashboards/laravel/views/audit.php +30 -0
- package/dashboards/laravel/views/compliance.php +48 -0
- package/dashboards/laravel/views/components/modal.php +59 -0
- package/dashboards/laravel/views/components/stats.php +21 -0
- package/dashboards/laravel/views/components/table.php +35 -0
- package/dashboards/laravel/views/dashboard.php +31 -0
- package/dashboards/laravel/views/dlp.php +87 -0
- package/dashboards/laravel/views/guardrails.php +95 -0
- package/dashboards/laravel/views/journal.php +50 -0
- package/dashboards/laravel/views/layout.php +82 -0
- package/dashboards/laravel/views/login.php +45 -0
- package/dashboards/laravel/views/messages.php +60 -0
- package/dashboards/laravel/views/settings.php +622 -0
- package/dashboards/laravel/views/skills.php +74 -0
- package/dashboards/laravel/views/users.php +42 -0
- package/dashboards/laravel/views/vault.php +80 -0
- package/dashboards/php/components/layout.php +80 -0
- package/dashboards/php/components/modal.php +22 -0
- package/dashboards/php/components/stats.php +20 -0
- package/dashboards/php/components/table.php +33 -0
- package/dashboards/php/index.php +663 -381
- package/dashboards/php/lib/api.php +37 -0
- package/dashboards/php/lib/auth.php +47 -0
- package/dashboards/php/lib/helpers.php +69 -0
- package/dashboards/php/pages/agent-detail.php +552 -0
- package/dashboards/php/pages/agents.php +185 -0
- package/dashboards/php/pages/api-keys.php +34 -0
- package/dashboards/php/pages/audit.php +31 -0
- package/dashboards/php/pages/compliance.php +38 -0
- package/dashboards/php/pages/dashboard.php +29 -0
- package/dashboards/php/pages/dlp.php +65 -0
- package/dashboards/php/pages/guardrails.php +70 -0
- package/dashboards/php/pages/journal.php +53 -0
- package/dashboards/php/pages/login.php +34 -0
- package/dashboards/php/pages/messages.php +53 -0
- package/dashboards/php/pages/settings.php +687 -0
- package/dashboards/php/pages/skills.php +70 -0
- package/dashboards/php/pages/users.php +37 -0
- package/dashboards/php/pages/vault.php +70 -0
- package/dashboards/php/public/styles.css +81 -0
- package/dashboards/python/app.py +61 -259
- package/dashboards/python/routes/__init__.py +0 -0
- package/dashboards/python/routes/agents.py +296 -0
- package/dashboards/python/routes/api_keys.py +49 -0
- package/dashboards/python/routes/audit.py +33 -0
- package/dashboards/python/routes/auth.py +30 -0
- package/dashboards/python/routes/compliance.py +50 -0
- package/dashboards/python/routes/dashboard.py +32 -0
- package/dashboards/python/routes/dlp.py +64 -0
- package/dashboards/python/routes/guardrails.py +79 -0
- package/dashboards/python/routes/journal.py +40 -0
- package/dashboards/python/routes/messages.py +46 -0
- package/dashboards/python/routes/settings.py +260 -0
- package/dashboards/python/routes/skills.py +59 -0
- package/dashboards/python/routes/users.py +43 -0
- package/dashboards/python/routes/vault.py +59 -0
- package/dashboards/python/static/styles.css +288 -0
- package/dashboards/python/templates/agent_detail.html +552 -0
- package/dashboards/python/templates/agents.html +246 -0
- package/dashboards/python/templates/api_keys.html +64 -0
- package/dashboards/python/templates/audit.html +50 -0
- package/dashboards/python/templates/compliance.html +74 -0
- package/dashboards/python/templates/components/modal.html +43 -0
- package/dashboards/python/templates/components/stats.html +26 -0
- package/dashboards/python/templates/components/table.html +43 -0
- package/dashboards/python/templates/dashboard.html +34 -0
- package/dashboards/python/templates/dlp.html +159 -0
- package/dashboards/python/templates/guardrails.html +131 -0
- package/dashboards/python/templates/journal.html +66 -0
- package/dashboards/python/templates/layout.html +86 -0
- package/dashboards/python/templates/login.html +36 -0
- package/dashboards/python/templates/messages.html +90 -0
- package/dashboards/python/templates/settings.html +624 -0
- package/dashboards/python/templates/skills.html +89 -0
- package/dashboards/python/templates/users.html +70 -0
- package/dashboards/python/templates/vault.html +73 -0
- package/dashboards/python/utils/__init__.py +0 -0
- package/dashboards/python/utils/api.py +35 -0
- package/dashboards/python/utils/helpers.py +90 -0
- package/dashboards/rails/app.rb +56 -0
- package/dashboards/rails/helpers/api.rb +39 -0
- package/dashboards/rails/helpers/auth.rb +11 -0
- package/dashboards/rails/helpers/view.rb +95 -0
- package/dashboards/rails/public/styles.css +299 -0
- package/dashboards/rails/routes/agents.rb +173 -0
- package/dashboards/rails/routes/api_keys.rb +30 -0
- package/dashboards/rails/routes/audit.rb +15 -0
- package/dashboards/rails/routes/auth.rb +29 -0
- package/dashboards/rails/routes/compliance.rb +25 -0
- package/dashboards/rails/routes/dashboard.rb +13 -0
- package/dashboards/rails/routes/dlp.rb +40 -0
- package/dashboards/rails/routes/guardrails.rb +51 -0
- package/dashboards/rails/routes/journal.rb +24 -0
- package/dashboards/rails/routes/messages.rb +22 -0
- package/dashboards/rails/routes/settings.rb +196 -0
- package/dashboards/rails/routes/skills.rb +38 -0
- package/dashboards/rails/routes/users.rb +18 -0
- package/dashboards/rails/routes/vault.rb +37 -0
- package/dashboards/rails/views/agent_detail.erb +550 -0
- package/dashboards/rails/views/agents.erb +214 -0
- package/dashboards/rails/views/api_keys.erb +52 -0
- package/dashboards/rails/views/audit.erb +38 -0
- package/dashboards/rails/views/compliance.erb +69 -0
- package/dashboards/rails/views/dashboard.erb +46 -0
- package/dashboards/rails/views/dlp.erb +104 -0
- package/dashboards/rails/views/guardrails.erb +107 -0
- package/dashboards/rails/views/journal.erb +65 -0
- package/dashboards/rails/views/layout.erb +53 -0
- package/dashboards/rails/views/login.erb +47 -0
- package/dashboards/rails/views/messages.erb +62 -0
- package/dashboards/rails/views/settings.erb +578 -0
- package/dashboards/rails/views/skills.erb +66 -0
- package/dashboards/rails/views/users.erb +53 -0
- package/dashboards/rails/views/vault.erb +66 -0
- package/dashboards/ruby/app.rb +53 -182
- package/dashboards/ruby/helpers/api.rb +63 -0
- package/dashboards/ruby/helpers/auth.rb +20 -0
- package/dashboards/ruby/helpers/view.rb +91 -0
- package/dashboards/ruby/public/styles.css +294 -0
- package/dashboards/ruby/routes/agents.rb +197 -0
- package/dashboards/ruby/routes/api_keys.rb +43 -0
- package/dashboards/ruby/routes/audit.rb +15 -0
- package/dashboards/ruby/routes/auth.rb +29 -0
- package/dashboards/ruby/routes/compliance.rb +28 -0
- package/dashboards/ruby/routes/dashboard.rb +13 -0
- package/dashboards/ruby/routes/dlp.rb +55 -0
- package/dashboards/ruby/routes/guardrails.rb +77 -0
- package/dashboards/ruby/routes/journal.rb +24 -0
- package/dashboards/ruby/routes/messages.rb +27 -0
- package/dashboards/ruby/routes/settings.rb +214 -0
- package/dashboards/ruby/routes/skills.rb +50 -0
- package/dashboards/ruby/routes/users.rb +26 -0
- package/dashboards/ruby/routes/vault.rb +49 -0
- package/dashboards/ruby/views/agent_detail.erb +550 -0
- package/dashboards/ruby/views/agents.erb +214 -0
- package/dashboards/ruby/views/api_keys.erb +59 -0
- package/dashboards/ruby/views/audit.erb +38 -0
- package/dashboards/ruby/views/compliance.erb +45 -0
- package/dashboards/ruby/views/dashboard.erb +46 -0
- package/dashboards/ruby/views/dlp.erb +88 -0
- package/dashboards/ruby/views/guardrails.erb +103 -0
- package/dashboards/ruby/views/journal.erb +53 -0
- package/dashboards/ruby/views/layout.erb +52 -0
- package/dashboards/ruby/views/login.erb +31 -0
- package/dashboards/ruby/views/messages.erb +51 -0
- package/dashboards/ruby/views/settings.erb +579 -0
- package/dashboards/ruby/views/skills.erb +66 -0
- package/dashboards/ruby/views/users.erb +53 -0
- package/dashboards/ruby/views/vault.erb +66 -0
- package/dashboards/shared/styles.css +322 -0
- package/dist/{chunk-TVF23PUW.js → chunk-7FVRYOP4.js} +22 -7
- package/dist/chunk-DRXMYYKN.js +79 -0
- package/dist/chunk-E23VJ3QX.js +9427 -0
- package/dist/chunk-EOBN6RCA.js +12652 -0
- package/dist/chunk-FLRYMSKY.js +23 -0
- package/dist/chunk-HAUHDCUB.js +764 -0
- package/dist/chunk-HSF6OJ5Z.js +154 -0
- package/dist/{chunk-PNKVD2UK.js → chunk-KFQGP6VL.js} +7 -0
- package/dist/chunk-LKAFZ343.js +591 -0
- package/dist/{chunk-GXIEEA2T.js → chunk-NTVN3JHS.js} +10 -10
- package/dist/chunk-RO537U6H.js +70 -0
- package/dist/chunk-SGBTJHEF.js +2287 -0
- package/dist/chunk-SMUXH6FM.js +1943 -0
- package/dist/chunk-TY7NVD4U.js +275 -0
- package/dist/chunk-X6UVWFHW.js +3455 -0
- package/dist/{chunk-7RGCCHIT.js → chunk-XMDE2NGH.js} +2 -1
- package/dist/chunk-ZNR5DDTA.js +239 -0
- package/dist/cidr-LISVZSM2.js +17 -0
- package/dist/cli-build-skill-XOYECCLE.js +235 -0
- package/dist/cli-recover-SSGGSKZJ.js +97 -0
- package/dist/cli-submit-skill-RSBLF5XN.js +162 -0
- package/dist/cli-validate-WJBUOEGW.js +148 -0
- package/dist/cli-verify-V3GPFMWU.js +98 -0
- package/dist/cli.js +50 -376
- package/dist/config-store-CRMKWBON.js +58 -0
- package/dist/dashboard/app.js +246 -0
- package/dist/dashboard/assets/logo.png +0 -0
- package/dist/dashboard/components/error-boundary.js +21 -0
- package/dist/dashboard/components/help-button.js +34 -0
- package/dist/dashboard/components/icons.js +53 -0
- package/dist/dashboard/components/modal.js +124 -0
- package/dist/dashboard/components/persona-fields.js +271 -0
- package/dist/dashboard/components/settings-help.js +191 -0
- package/dist/dashboard/components/tag-input.js +96 -0
- package/dist/dashboard/components/utils.js +148 -0
- package/dist/dashboard/index.html +407 -874
- package/dist/dashboard/pages/activity.js +62 -0
- package/dist/dashboard/pages/agent-detail.js +3577 -0
- package/dist/dashboard/pages/agents.js +1072 -0
- package/dist/dashboard/pages/approvals.js +81 -0
- package/dist/dashboard/pages/audit.js +133 -0
- package/dist/dashboard/pages/community-skills.js +665 -0
- package/dist/dashboard/pages/compliance.js +81 -0
- package/dist/dashboard/pages/dashboard.js +150 -0
- package/dist/dashboard/pages/dlp.js +107 -0
- package/dist/dashboard/pages/domain-status.js +123 -0
- package/dist/dashboard/pages/guardrails.js +995 -0
- package/dist/dashboard/pages/journal.js +51 -0
- package/dist/dashboard/pages/knowledge-contributions.js +763 -0
- package/dist/dashboard/pages/knowledge.js +46 -0
- package/dist/dashboard/pages/login.js +491 -0
- package/dist/dashboard/pages/messages.js +274 -0
- package/dist/dashboard/pages/settings.js +1554 -0
- package/dist/dashboard/pages/skill-connections.js +452 -0
- package/dist/dashboard/pages/skills.js +433 -0
- package/dist/dashboard/pages/users.js +49 -0
- package/dist/dashboard/pages/vault.js +538 -0
- package/dist/dashboard/pages/workforce.js +569 -0
- package/dist/dashboard/vendor/react-dom.production.min.js +267 -0
- package/dist/dashboard/vendor/react.production.min.js +31 -0
- package/dist/db-adapter-5PWMLY67.js +7 -0
- package/dist/domain-lock-URIFILHB.js +7 -0
- package/dist/{dynamodb-CCGL2E77.js → dynamodb-CD3LREWD.js} +4 -4
- package/dist/{factory-HINWFYZ3.js → factory-FVJH5RRY.js} +2 -2
- package/dist/firewall-AHIRE6UB.js +10 -0
- package/dist/index.js +133 -448
- package/dist/{managed-RZITNPXG.js → managed-QVTONZ7E.js} +4 -2
- package/dist/{mongodb-ODTXIVPV.js → mongodb-73MGW7LD.js} +4 -4
- package/dist/{mysql-RM3S2FV5.js → mysql-A2RYNBQG.js} +59 -6
- package/dist/{postgres-LN7A6MGQ.js → postgres-OE23X46P.js} +63 -6
- package/dist/registry/cli.js +411 -0
- package/dist/routes-NJK5OI5N.js +5673 -0
- package/dist/runtime-SMA6JUMP.js +46 -0
- package/dist/server-ZT5NWHT4.js +11 -0
- package/dist/setup-RCYNX5NA.js +20 -0
- package/dist/skills-QNR3CCHA.js +14 -0
- package/dist/soul-templates.json +1525 -0
- package/dist/{sqlite-VLKVAJA4.js → sqlite-SFVNZPHX.js} +56 -8
- package/dist/{turso-LDWODSDI.js → turso-L6WQAY7U.js} +59 -6
- package/live-test.mjs +1 -1
- package/package.json +11 -10
- package/schemas/agenticmail-skill.v1.schema.json +180 -0
- package/serve.mjs +12 -2
- package/src/admin/routes.ts +536 -5
- package/src/agent-tools/common.ts +232 -0
- package/src/agent-tools/index.ts +246 -0
- package/src/agent-tools/merge.ts +62 -0
- package/src/agent-tools/middleware.ts +436 -0
- package/src/agent-tools/security.ts +352 -0
- package/src/agent-tools/tools/bash.ts +154 -0
- package/src/agent-tools/tools/browser.ts +236 -0
- package/src/agent-tools/tools/edit.ts +100 -0
- package/src/agent-tools/tools/enterprise-calendar.ts +561 -0
- package/src/agent-tools/tools/enterprise-code-sandbox.ts +395 -0
- package/src/agent-tools/tools/enterprise-database.ts +377 -0
- package/src/agent-tools/tools/enterprise-diff.ts +580 -0
- package/src/agent-tools/tools/enterprise-documents.ts +896 -0
- package/src/agent-tools/tools/enterprise-finance.ts +484 -0
- package/src/agent-tools/tools/enterprise-http.ts +477 -0
- package/src/agent-tools/tools/enterprise-knowledge-search.ts +369 -0
- package/src/agent-tools/tools/enterprise-logs.ts +479 -0
- package/src/agent-tools/tools/enterprise-notifications.ts +532 -0
- package/src/agent-tools/tools/enterprise-security-scan.ts +528 -0
- package/src/agent-tools/tools/enterprise-spreadsheet.ts +825 -0
- package/src/agent-tools/tools/enterprise-translation.ts +530 -0
- package/src/agent-tools/tools/enterprise-vision.ts +348 -0
- package/src/agent-tools/tools/enterprise-web-research.ts +422 -0
- package/src/agent-tools/tools/enterprise-workflow.ts +308 -0
- package/src/agent-tools/tools/glob.ts +129 -0
- package/src/agent-tools/tools/grep.ts +178 -0
- package/src/agent-tools/tools/memory.ts +194 -0
- package/src/agent-tools/tools/read.ts +160 -0
- package/src/agent-tools/tools/web-fetch-utils.ts +202 -0
- package/src/agent-tools/tools/web-fetch.ts +456 -0
- package/src/agent-tools/tools/web-search.ts +480 -0
- package/src/agent-tools/tools/web-shared.ts +232 -0
- package/src/agent-tools/tools/write.ts +68 -0
- package/src/agent-tools/types.ts +193 -0
- package/src/auth/routes.ts +916 -51
- package/src/cli.ts +74 -14
- package/src/dashboard/app.js +246 -0
- package/src/dashboard/assets/logo.png +0 -0
- package/src/dashboard/components/error-boundary.js +21 -0
- package/src/dashboard/components/help-button.js +34 -0
- package/src/dashboard/components/icons.js +53 -0
- package/src/dashboard/components/modal.js +124 -0
- package/src/dashboard/components/persona-fields.js +271 -0
- package/src/dashboard/components/settings-help.js +191 -0
- package/src/dashboard/components/tag-input.js +96 -0
- package/src/dashboard/components/utils.js +148 -0
- package/src/dashboard/index.html +407 -874
- package/src/dashboard/pages/activity.js +62 -0
- package/src/dashboard/pages/agent-detail.js +3577 -0
- package/src/dashboard/pages/agents.js +1072 -0
- package/src/dashboard/pages/approvals.js +81 -0
- package/src/dashboard/pages/audit.js +133 -0
- package/src/dashboard/pages/community-skills.js +665 -0
- package/src/dashboard/pages/compliance.js +81 -0
- package/src/dashboard/pages/dashboard.js +150 -0
- package/src/dashboard/pages/dlp.js +107 -0
- package/src/dashboard/pages/domain-status.js +123 -0
- package/src/dashboard/pages/guardrails.js +995 -0
- package/src/dashboard/pages/journal.js +51 -0
- package/src/dashboard/pages/knowledge-contributions.js +763 -0
- package/src/dashboard/pages/knowledge.js +46 -0
- package/src/dashboard/pages/login.js +491 -0
- package/src/dashboard/pages/messages.js +274 -0
- package/src/dashboard/pages/settings.js +1554 -0
- package/src/dashboard/pages/skill-connections.js +452 -0
- package/src/dashboard/pages/skills.js +433 -0
- package/src/dashboard/pages/users.js +49 -0
- package/src/dashboard/pages/vault.js +538 -0
- package/src/dashboard/pages/workforce.js +569 -0
- package/src/dashboard/vendor/react-dom.production.min.js +267 -0
- package/src/dashboard/vendor/react.production.min.js +31 -0
- package/src/db/adapter.ts +134 -1
- package/src/db/dynamodb.ts +2 -2
- package/src/db/mongodb.ts +2 -2
- package/src/db/mysql.ts +55 -1
- package/src/db/postgres.ts +59 -1
- package/src/db/proxy.ts +39 -0
- package/src/db/sql-schema.ts +2 -1
- package/src/db/sqlite.ts +51 -3
- package/src/db/turso.ts +55 -1
- package/src/deploy/fly.ts +2 -2
- package/src/deploy/managed.ts +32 -11
- package/src/domain-lock/cli-recover.ts +124 -0
- package/src/domain-lock/cli-verify.ts +122 -0
- package/src/domain-lock/index.ts +220 -0
- package/src/engine/activity-routes.ts +116 -0
- package/src/engine/activity.ts +62 -2
- package/src/engine/agent-config.ts +190 -24
- package/src/engine/agent-memory.ts +1062 -0
- package/src/engine/agent-routes.ts +379 -0
- package/src/engine/approvals.ts +309 -2
- package/src/engine/catalog-routes.ts +155 -0
- package/src/engine/cli-build-skill.ts +285 -0
- package/src/engine/cli-submit-skill.ts +200 -0
- package/src/engine/cli-validate.ts +188 -0
- package/src/engine/communication-routes.ts +139 -0
- package/src/engine/communication.ts +759 -0
- package/src/engine/community-registry.ts +1509 -0
- package/src/engine/community-routes.ts +233 -0
- package/src/engine/compliance-routes.ts +93 -0
- package/src/engine/compliance.ts +325 -0
- package/src/engine/db-adapter.ts +349 -1
- package/src/engine/db-schema.ts +971 -23
- package/src/engine/deploy-schema-routes.ts +176 -0
- package/src/engine/deployer.ts +6 -6
- package/src/engine/dlp-routes.ts +59 -0
- package/src/engine/dlp.ts +231 -0
- package/src/engine/guardrail-routes.ts +125 -0
- package/src/engine/guardrails.ts +403 -0
- package/src/engine/index.ts +131 -10
- package/src/engine/journal-routes.ts +56 -0
- package/src/engine/journal.ts +249 -0
- package/src/engine/knowledge-contribution-routes.ts +385 -0
- package/src/engine/knowledge-contribution.ts +1319 -0
- package/src/engine/knowledge-routes.ts +68 -0
- package/src/engine/knowledge.ts +73 -1
- package/src/engine/lifecycle.ts +487 -31
- package/src/engine/memory-routes.ts +142 -0
- package/src/engine/oauth-connect-routes.ts +366 -0
- package/src/engine/oauth-connect.ts +304 -0
- package/src/engine/onboarding-routes.ts +140 -0
- package/src/engine/onboarding.ts +574 -0
- package/src/engine/org-approval-routes.ts +146 -0
- package/src/engine/org-policies.ts +497 -0
- package/src/engine/policy-import-routes.ts +125 -0
- package/src/engine/policy-import.ts +1186 -0
- package/src/engine/policy-routes.ts +163 -0
- package/src/engine/routes.ts +239 -482
- package/src/engine/skill-updater-routes.ts +132 -0
- package/src/engine/skill-updater.ts +480 -0
- package/src/engine/skill-validator.ts +331 -0
- package/src/engine/skills/enterprise-calendar.ts +142 -0
- package/src/engine/skills/enterprise-code-sandbox.ts +112 -0
- package/src/engine/skills/enterprise-database.ts +122 -0
- package/src/engine/skills/enterprise-diff.ts +94 -0
- package/src/engine/skills/enterprise-documents.ts +161 -0
- package/src/engine/skills/enterprise-finance.ts +109 -0
- package/src/engine/skills/enterprise-http.ts +98 -0
- package/src/engine/skills/enterprise-knowledge-search.ts +106 -0
- package/src/engine/skills/enterprise-logs.ts +115 -0
- package/src/engine/skills/enterprise-notifications.ts +119 -0
- package/src/engine/skills/enterprise-security-scan.ts +124 -0
- package/src/engine/skills/enterprise-spreadsheet.ts +170 -0
- package/src/engine/skills/enterprise-translation.ts +111 -0
- package/src/engine/skills/enterprise-vision.ts +107 -0
- package/src/engine/skills/enterprise-web-research.ts +114 -0
- package/src/engine/skills/enterprise-workflow.ts +109 -0
- package/src/engine/skills/gws-admin.ts +17 -0
- package/src/engine/skills/gws-calendar.ts +19 -0
- package/src/engine/skills/gws-chat.ts +16 -0
- package/src/engine/skills/gws-docs.ts +17 -0
- package/src/engine/skills/gws-drive.ts +20 -0
- package/src/engine/skills/gws-forms.ts +16 -0
- package/src/engine/skills/gws-gmail.ts +20 -0
- package/src/engine/skills/gws-groups.ts +16 -0
- package/src/engine/skills/gws-keep.ts +16 -0
- package/src/engine/skills/gws-meet.ts +16 -0
- package/src/engine/skills/gws-sheets.ts +18 -0
- package/src/engine/skills/gws-sites.ts +15 -0
- package/src/engine/skills/gws-slides.ts +16 -0
- package/src/engine/skills/gws-vault.ts +16 -0
- package/src/engine/skills/index.ts +121 -0
- package/src/engine/skills/m365-admin.ts +17 -0
- package/src/engine/skills/m365-bookings.ts +16 -0
- package/src/engine/skills/m365-copilot.ts +16 -0
- package/src/engine/skills/m365-excel.ts +59 -0
- package/src/engine/skills/m365-forms.ts +16 -0
- package/src/engine/skills/m365-onedrive.ts +59 -0
- package/src/engine/skills/m365-onenote.ts +16 -0
- package/src/engine/skills/m365-outlook.ts +26 -0
- package/src/engine/skills/m365-planner.ts +17 -0
- package/src/engine/skills/m365-power-automate.ts +17 -0
- package/src/engine/skills/m365-power-bi.ts +18 -0
- package/src/engine/skills/m365-powerpoint.ts +32 -0
- package/src/engine/skills/m365-sharepoint.ts +19 -0
- package/src/engine/skills/m365-teams.ts +20 -0
- package/src/engine/skills/m365-todo.ts +16 -0
- package/src/engine/skills/m365-whiteboard.ts +15 -0
- package/src/engine/skills/m365-word.ts +41 -0
- package/src/engine/skills.ts +353 -17
- package/src/engine/soul-library.ts +142 -0
- package/src/engine/soul-templates.json +1525 -0
- package/src/engine/storage-manager.ts +252 -0
- package/src/engine/storage-routes.ts +113 -0
- package/src/engine/storage.ts +528 -0
- package/src/engine/tenant.ts +69 -5
- package/src/engine/tool-catalog.ts +177 -13
- package/src/engine/vault-routes.ts +130 -0
- package/src/engine/vault.ts +544 -0
- package/src/engine/workforce-routes.ts +282 -0
- package/src/engine/workforce.ts +957 -0
- package/src/index.ts +9 -1
- package/src/lib/cidr.ts +122 -0
- package/src/lib/config-store.ts +86 -0
- package/src/mcp/adapters/activecampaign.adapter.ts +391 -0
- package/src/mcp/adapters/adobe-sign.adapter.ts +469 -0
- package/src/mcp/adapters/adp.adapter.ts +358 -0
- package/src/mcp/adapters/airtable.adapter.ts +273 -0
- package/src/mcp/adapters/apollo.adapter.ts +420 -0
- package/src/mcp/adapters/asana.adapter.ts +315 -0
- package/src/mcp/adapters/auth0.adapter.ts +386 -0
- package/src/mcp/adapters/aws.adapter.ts +345 -0
- package/src/mcp/adapters/azure-devops.adapter.ts +389 -0
- package/src/mcp/adapters/bamboohr.adapter.ts +376 -0
- package/src/mcp/adapters/basecamp.adapter.ts +366 -0
- package/src/mcp/adapters/bigcommerce.adapter.ts +429 -0
- package/src/mcp/adapters/bitbucket.adapter.ts +260 -0
- package/src/mcp/adapters/box.adapter.ts +350 -0
- package/src/mcp/adapters/brex.adapter.ts +367 -0
- package/src/mcp/adapters/buffer.adapter.ts +303 -0
- package/src/mcp/adapters/calendly.adapter.ts +262 -0
- package/src/mcp/adapters/canva.adapter.ts +256 -0
- package/src/mcp/adapters/chargebee.adapter.ts +448 -0
- package/src/mcp/adapters/circleci.adapter.ts +216 -0
- package/src/mcp/adapters/clickup.adapter.ts +335 -0
- package/src/mcp/adapters/close.adapter.ts +390 -0
- package/src/mcp/adapters/cloudflare.adapter.ts +377 -0
- package/src/mcp/adapters/confluence.adapter.ts +301 -0
- package/src/mcp/adapters/contentful.adapter.ts +355 -0
- package/src/mcp/adapters/copper.adapter.ts +468 -0
- package/src/mcp/adapters/crisp.adapter.ts +415 -0
- package/src/mcp/adapters/crowdstrike.adapter.ts +413 -0
- package/src/mcp/adapters/datadog.adapter.ts +373 -0
- package/src/mcp/adapters/digitalocean.adapter.ts +336 -0
- package/src/mcp/adapters/discord.adapter.ts +248 -0
- package/src/mcp/adapters/docker.adapter.ts +238 -0
- package/src/mcp/adapters/docusign.adapter.ts +431 -0
- package/src/mcp/adapters/drift.adapter.ts +386 -0
- package/src/mcp/adapters/dropbox.adapter.ts +315 -0
- package/src/mcp/adapters/figma.adapter.ts +302 -0
- package/src/mcp/adapters/firebase.adapter.ts +446 -0
- package/src/mcp/adapters/flyio.adapter.ts +302 -0
- package/src/mcp/adapters/freshbooks.adapter.ts +474 -0
- package/src/mcp/adapters/freshdesk.adapter.ts +441 -0
- package/src/mcp/adapters/freshsales.adapter.ts +457 -0
- package/src/mcp/adapters/freshservice.adapter.ts +481 -0
- package/src/mcp/adapters/front.adapter.ts +357 -0
- package/src/mcp/adapters/github-actions.adapter.ts +329 -0
- package/src/mcp/adapters/github.adapter.ts +387 -0
- package/src/mcp/adapters/gitlab.adapter.ts +368 -0
- package/src/mcp/adapters/gong.adapter.ts +386 -0
- package/src/mcp/adapters/google-ads.adapter.ts +363 -0
- package/src/mcp/adapters/google-analytics.adapter.ts +316 -0
- package/src/mcp/adapters/google-cloud.adapter.ts +312 -0
- package/src/mcp/adapters/google-drive.adapter.ts +387 -0
- package/src/mcp/adapters/gotomeeting.adapter.ts +255 -0
- package/src/mcp/adapters/grafana.adapter.ts +361 -0
- package/src/mcp/adapters/greenhouse.adapter.ts +354 -0
- package/src/mcp/adapters/gusto.adapter.ts +329 -0
- package/src/mcp/adapters/hashicorp-vault.adapter.ts +355 -0
- package/src/mcp/adapters/heroku.adapter.ts +291 -0
- package/src/mcp/adapters/hibob.adapter.ts +334 -0
- package/src/mcp/adapters/hootsuite.adapter.ts +322 -0
- package/src/mcp/adapters/hubspot.adapter.ts +400 -0
- package/src/mcp/adapters/huggingface.adapter.ts +349 -0
- package/src/mcp/adapters/index.ts +530 -0
- package/src/mcp/adapters/intercom.adapter.ts +269 -0
- package/src/mcp/adapters/jira.adapter.ts +482 -0
- package/src/mcp/adapters/klaviyo.adapter.ts +353 -0
- package/src/mcp/adapters/kubernetes.adapter.ts +431 -0
- package/src/mcp/adapters/lattice.adapter.ts +339 -0
- package/src/mcp/adapters/launchdarkly.adapter.ts +368 -0
- package/src/mcp/adapters/lever.adapter.ts +347 -0
- package/src/mcp/adapters/linear.adapter.ts +300 -0
- package/src/mcp/adapters/linkedin.adapter.ts +331 -0
- package/src/mcp/adapters/livechat.adapter.ts +259 -0
- package/src/mcp/adapters/loom.adapter.ts +230 -0
- package/src/mcp/adapters/mailchimp.adapter.ts +394 -0
- package/src/mcp/adapters/mailgun.adapter.ts +425 -0
- package/src/mcp/adapters/microsoft-teams.adapter.ts +251 -0
- package/src/mcp/adapters/miro.adapter.ts +274 -0
- package/src/mcp/adapters/mixpanel.adapter.ts +324 -0
- package/src/mcp/adapters/monday.adapter.ts +308 -0
- package/src/mcp/adapters/mongodb-atlas.adapter.ts +345 -0
- package/src/mcp/adapters/neon.adapter.ts +312 -0
- package/src/mcp/adapters/netlify.adapter.ts +324 -0
- package/src/mcp/adapters/netsuite.adapter.ts +411 -0
- package/src/mcp/adapters/newrelic.adapter.ts +339 -0
- package/src/mcp/adapters/notion.adapter.ts +338 -0
- package/src/mcp/adapters/okta.adapter.ts +394 -0
- package/src/mcp/adapters/openai.adapter.ts +315 -0
- package/src/mcp/adapters/opsgenie.adapter.ts +375 -0
- package/src/mcp/adapters/outreach.adapter.ts +372 -0
- package/src/mcp/adapters/paddle.adapter.ts +467 -0
- package/src/mcp/adapters/pagerduty.adapter.ts +412 -0
- package/src/mcp/adapters/pandadoc.adapter.ts +389 -0
- package/src/mcp/adapters/paypal.adapter.ts +465 -0
- package/src/mcp/adapters/personio.adapter.ts +401 -0
- package/src/mcp/adapters/pinecone.adapter.ts +340 -0
- package/src/mcp/adapters/pipedrive.adapter.ts +324 -0
- package/src/mcp/adapters/plaid.adapter.ts +444 -0
- package/src/mcp/adapters/postmark.adapter.ts +387 -0
- package/src/mcp/adapters/power-automate.adapter.ts +388 -0
- package/src/mcp/adapters/quickbooks.adapter.ts +431 -0
- package/src/mcp/adapters/recurly.adapter.ts +433 -0
- package/src/mcp/adapters/reddit.adapter.ts +371 -0
- package/src/mcp/adapters/render.adapter.ts +332 -0
- package/src/mcp/adapters/ringcentral.adapter.ts +281 -0
- package/src/mcp/adapters/rippling.adapter.ts +287 -0
- package/src/mcp/adapters/salesforce.adapter.ts +321 -0
- package/src/mcp/adapters/salesloft.adapter.ts +413 -0
- package/src/mcp/adapters/sanity.adapter.ts +363 -0
- package/src/mcp/adapters/sap.adapter.ts +483 -0
- package/src/mcp/adapters/segment.adapter.ts +260 -0
- package/src/mcp/adapters/sendgrid.adapter.ts +265 -0
- package/src/mcp/adapters/sentry.adapter.ts +331 -0
- package/src/mcp/adapters/servicenow.adapter.ts +468 -0
- package/src/mcp/adapters/shopify.adapter.ts +451 -0
- package/src/mcp/adapters/shortcut.adapter.ts +290 -0
- package/src/mcp/adapters/slack.adapter.ts +380 -0
- package/src/mcp/adapters/smartsheet.adapter.ts +326 -0
- package/src/mcp/adapters/snowflake.adapter.ts +347 -0
- package/src/mcp/adapters/snyk.adapter.ts +394 -0
- package/src/mcp/adapters/splunk.adapter.ts +403 -0
- package/src/mcp/adapters/square.adapter.ts +467 -0
- package/src/mcp/adapters/statuspage.adapter.ts +401 -0
- package/src/mcp/adapters/stripe.adapter.ts +380 -0
- package/src/mcp/adapters/supabase.adapter.ts +334 -0
- package/src/mcp/adapters/teamwork.adapter.ts +404 -0
- package/src/mcp/adapters/telegram.adapter.ts +299 -0
- package/src/mcp/adapters/terraform.adapter.ts +300 -0
- package/src/mcp/adapters/todoist.adapter.ts +239 -0
- package/src/mcp/adapters/trello.adapter.ts +316 -0
- package/src/mcp/adapters/twilio.adapter.ts +233 -0
- package/src/mcp/adapters/twitter.adapter.ts +348 -0
- package/src/mcp/adapters/vercel.adapter.ts +219 -0
- package/src/mcp/adapters/weaviate.adapter.ts +371 -0
- package/src/mcp/adapters/webex.adapter.ts +237 -0
- package/src/mcp/adapters/webflow.adapter.ts +287 -0
- package/src/mcp/adapters/whatsapp.adapter.ts +273 -0
- package/src/mcp/adapters/whereby.adapter.ts +240 -0
- package/src/mcp/adapters/woocommerce.adapter.ts +454 -0
- package/src/mcp/adapters/wordpress.adapter.ts +455 -0
- package/src/mcp/adapters/workday.adapter.ts +354 -0
- package/src/mcp/adapters/wrike.adapter.ts +349 -0
- package/src/mcp/adapters/xero.adapter.ts +472 -0
- package/src/mcp/adapters/youtube.adapter.ts +401 -0
- package/src/mcp/adapters/zendesk.adapter.ts +399 -0
- package/src/mcp/adapters/zoho-crm.adapter.ts +410 -0
- package/src/mcp/adapters/zoom.adapter.ts +241 -0
- package/src/mcp/adapters/zuora.adapter.ts +476 -0
- package/src/mcp/framework/api-executor.ts +192 -0
- package/src/mcp/framework/aws-sigv4.ts +216 -0
- package/src/mcp/framework/credential-resolver.ts +128 -0
- package/src/mcp/framework/skill-mcp-framework.ts +226 -0
- package/src/mcp/framework/types.ts +130 -0
- package/src/mcp/index.ts +124 -0
- package/src/middleware/egress-filter.ts +81 -0
- package/src/middleware/firewall.ts +121 -0
- package/src/middleware/index.ts +33 -0
- package/src/registry/cli.ts +63 -0
- package/src/registry/server.ts +504 -0
- package/src/runtime/agent-loop.ts +504 -0
- package/src/runtime/email-channel.ts +120 -0
- package/src/runtime/followup.ts +211 -0
- package/src/runtime/gateway.ts +260 -0
- package/src/runtime/hooks.ts +472 -0
- package/src/runtime/index.ts +679 -0
- package/src/runtime/llm-client.ts +1019 -0
- package/src/runtime/providers.ts +231 -0
- package/src/runtime/session-manager.ts +340 -0
- package/src/runtime/subagent.ts +154 -0
- package/src/runtime/tool-executor.ts +202 -0
- package/src/runtime/types.ts +215 -0
- package/src/server.ts +157 -45
- package/src/setup/company.ts +127 -8
- package/src/setup/database.ts +2 -1
- package/src/setup/domain.ts +33 -4
- package/src/setup/index.ts +19 -7
- package/src/setup/provision.ts +128 -8
- package/src/setup/registration.ts +227 -0
- package/src/types/hono-env.ts +14 -0
- package/src/types/optional-deps.d.ts +10 -0
- package/start-live.mjs +12 -3
- package/test-integration.mjs +628 -257
- package/dist/chunk-77IDQJL3.js +0 -7
- package/dist/chunk-BE7MXVLA.js +0 -757
- package/dist/chunk-BS2WCSHO.js +0 -48
- package/dist/chunk-FL3VQBGL.js +0 -757
- package/dist/chunk-IQWA44WT.js +0 -970
- package/dist/chunk-N2JVTNNJ.js +0 -2553
- package/dist/chunk-YFDSE4BW.js +0 -1355
- package/dist/db-adapter-DEWEFNIV.js +0 -7
- package/dist/factory-V37IG5AT.js +0 -9
- package/dist/routes-2JEPIIKC.js +0 -441
- package/dist/server-32YYCI3A.js +0 -8
- package/dist/server-H3C6WUOS.js +0 -8
- package/dist/sqlite-3K5YOZ4K.js +0 -439
- package/src/engine/agenticmail-bridge.ts +0 -296
- package/src/engine/openclaw-hook.ts +0 -371
|
@@ -1,881 +1,414 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
+
<title>AgenticMail Enterprise</title>
|
|
7
|
+
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>📧</text></svg>"/>
|
|
8
|
+
<script src="/dashboard/vendor/react.production.min.js"></script>
|
|
9
|
+
<script src="/dashboard/vendor/react-dom.production.min.js"></script>
|
|
10
|
+
<style>
|
|
11
|
+
/* ═══════════════════════════════════════════════════════════
|
|
12
|
+
THEME SYSTEM — CSS Custom Properties
|
|
13
|
+
═══════════════════════════════════════════════════════════ */
|
|
14
|
+
:root {
|
|
15
|
+
--bg-primary: #0f1117;
|
|
16
|
+
--bg-secondary: #161822;
|
|
17
|
+
--bg-tertiary: #1c1f2e;
|
|
18
|
+
--bg-hover: #232738;
|
|
19
|
+
--bg-active: #2a2f45;
|
|
20
|
+
--bg-card: #181b28;
|
|
21
|
+
--bg-input: #1c1f2e;
|
|
22
|
+
--bg-modal: rgba(0,0,0,0.7);
|
|
23
|
+
--border: #2a2f45;
|
|
24
|
+
--border-light: #353a52;
|
|
25
|
+
--text-primary: #e8eaf0;
|
|
26
|
+
--text-secondary: #9ca3b8;
|
|
27
|
+
--text-muted: #6b7394;
|
|
28
|
+
--text-inverse: #0f1117;
|
|
29
|
+
--accent: var(--brand-color, #6366f1);
|
|
30
|
+
--accent-hover: var(--brand-hover, #4f46e5);
|
|
31
|
+
--accent-soft: var(--brand-soft, rgba(99,102,241,0.12));
|
|
32
|
+
--accent-text: var(--brand-text, #818cf8);
|
|
33
|
+
--success: #22c55e;
|
|
34
|
+
--success-soft: rgba(34,197,94,0.12);
|
|
35
|
+
--warning: #f59e0b;
|
|
36
|
+
--warning-soft: rgba(245,158,11,0.12);
|
|
37
|
+
--danger: #ef4444;
|
|
38
|
+
--danger-soft: rgba(239,68,68,0.12);
|
|
39
|
+
--danger-hover: #dc2626;
|
|
40
|
+
--info: #06b6d4;
|
|
41
|
+
--info-soft: rgba(6,182,212,0.12);
|
|
42
|
+
--radius: 8px;
|
|
43
|
+
--radius-lg: 12px;
|
|
44
|
+
--radius-xl: 16px;
|
|
45
|
+
--shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
46
|
+
--shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
|
|
47
|
+
--shadow-xl: 0 8px 24px rgba(0,0,0,0.5);
|
|
48
|
+
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
49
|
+
--font-mono: 'SF Mono', 'Fira Code', monospace;
|
|
50
|
+
--sidebar-w: 260px;
|
|
51
|
+
--sidebar-collapsed-w: 64px;
|
|
52
|
+
--sidebar-transition: width 200ms ease, box-shadow 200ms ease;
|
|
53
|
+
--header-h: 56px;
|
|
54
|
+
--transition: 150ms ease;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-theme="light"] {
|
|
58
|
+
--bg-primary: #f8f9fb;
|
|
59
|
+
--bg-secondary: #ffffff;
|
|
60
|
+
--bg-tertiary: #f1f3f8;
|
|
61
|
+
--bg-hover: #e8ebf0;
|
|
62
|
+
--bg-active: #dde1ea;
|
|
63
|
+
--bg-card: #ffffff;
|
|
64
|
+
--bg-input: #f1f3f8;
|
|
65
|
+
--bg-modal: rgba(0,0,0,0.4);
|
|
66
|
+
--border: #e2e5ed;
|
|
67
|
+
--border-light: #eceef4;
|
|
68
|
+
--text-primary: #111827;
|
|
69
|
+
--text-secondary: #4b5563;
|
|
70
|
+
--text-muted: #9ca3af;
|
|
71
|
+
--text-inverse: #ffffff;
|
|
72
|
+
--shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
73
|
+
--shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
|
|
74
|
+
--shadow-xl: 0 8px 24px rgba(0,0,0,0.12);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ═══════════════════════════════════════════════════════════
|
|
78
|
+
RESET & BASE
|
|
79
|
+
═══════════════════════════════════════════════════════════ */
|
|
80
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
81
|
+
html { font-size: 14px; }
|
|
82
|
+
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }
|
|
83
|
+
a { color: var(--accent-text); text-decoration: none; }
|
|
84
|
+
a:hover { text-decoration: underline; }
|
|
85
|
+
|
|
86
|
+
/* ═══════════════════════════════════════════════════════════
|
|
87
|
+
LOGIN PAGE
|
|
88
|
+
═══════════════════════════════════════════════════════════ */
|
|
89
|
+
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); }
|
|
90
|
+
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; width: 400px; box-shadow: var(--shadow-xl); }
|
|
91
|
+
.login-logo { text-align: center; margin-bottom: 32px; }
|
|
92
|
+
.login-logo h1 { font-size: 22px; font-weight: 700; margin-top: 12px; }
|
|
93
|
+
.login-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
|
|
94
|
+
|
|
95
|
+
/* ═══════════════════════════════════════════════════════════
|
|
96
|
+
LAYOUT — Collapsible Sidebar
|
|
97
|
+
═══════════════════════════════════════════════════════════ */
|
|
98
|
+
.app-layout { display: flex; min-height: 100vh; }
|
|
99
|
+
|
|
100
|
+
/* Sidebar: collapsed by default (64px), expandable */
|
|
101
|
+
.sidebar { width: var(--sidebar-collapsed-w); background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; transition: var(--sidebar-transition); overflow: hidden; }
|
|
102
|
+
.sidebar.expanded { width: var(--sidebar-w); }
|
|
103
|
+
.sidebar.hover-expanded { width: var(--sidebar-w); z-index: 60; box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
|
|
104
|
+
[data-theme="light"] .sidebar.hover-expanded { box-shadow: 4px 0 24px rgba(0,0,0,0.1); }
|
|
105
|
+
|
|
106
|
+
/* Brand */
|
|
107
|
+
.sidebar-brand { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; min-height: 57px; position: relative; overflow: hidden; white-space: nowrap; }
|
|
108
|
+
.sidebar-brand img { flex-shrink: 0; }
|
|
109
|
+
.sidebar-brand h2 { font-size: 15px; font-weight: 700; opacity: 0; transition: opacity 200ms ease; white-space: nowrap; }
|
|
110
|
+
.sidebar-brand span { font-size: 11px; color: var(--text-muted); background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px; opacity: 0; transition: opacity 200ms ease; white-space: nowrap; }
|
|
111
|
+
.sidebar.expanded .sidebar-brand h2, .sidebar.expanded .sidebar-brand span,
|
|
112
|
+
.sidebar.hover-expanded .sidebar-brand h2, .sidebar.hover-expanded .sidebar-brand span { opacity: 1; }
|
|
113
|
+
.sidebar:not(.expanded):not(.hover-expanded) .sidebar-brand { justify-content: center; padding: 16px 0; }
|
|
114
|
+
.sidebar:not(.expanded):not(.hover-expanded) .sidebar-brand .sidebar-brand-text { display: none; }
|
|
115
|
+
|
|
116
|
+
/* Sidebar toggle button */
|
|
117
|
+
.sidebar-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); opacity: 0; pointer-events: none; padding: 0; }
|
|
118
|
+
.sidebar-toggle svg { width: 16px; height: 16px; }
|
|
119
|
+
.sidebar-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
120
|
+
.sidebar.expanded .sidebar-toggle, .sidebar.hover-expanded .sidebar-toggle { opacity: 1; pointer-events: auto; }
|
|
121
|
+
.sidebar-toggle.pinned { color: var(--accent-text); }
|
|
122
|
+
.sidebar-toggle.pinned:hover { background: var(--accent-soft); }
|
|
123
|
+
|
|
124
|
+
/* Nav sections */
|
|
125
|
+
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px; }
|
|
126
|
+
.sidebar-section { margin-top: 8px; }
|
|
127
|
+
.sidebar-section-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 4px 12px 8px; white-space: nowrap; overflow: hidden; opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transition: opacity 200ms ease, max-height 200ms ease, padding 200ms ease; }
|
|
128
|
+
.sidebar.expanded .sidebar-section-title, .sidebar.hover-expanded .sidebar-section-title { opacity: 1; max-height: 30px; padding: 4px 12px 8px; }
|
|
129
|
+
.sidebar:not(.expanded):not(.hover-expanded) .sidebar-section + .sidebar-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
|
|
130
|
+
|
|
131
|
+
/* Nav items */
|
|
132
|
+
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); color: var(--text-secondary); cursor: pointer; transition: all var(--transition); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; position: relative; }
|
|
133
|
+
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
134
|
+
.nav-item.active { background: var(--accent-soft); color: var(--accent-text); }
|
|
135
|
+
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
|
|
136
|
+
.nav-item .nav-label { opacity: 0; transition: opacity 200ms ease; }
|
|
137
|
+
.sidebar.expanded .nav-item .nav-label, .sidebar.hover-expanded .nav-item .nav-label { opacity: 1; }
|
|
138
|
+
.nav-item .badge { margin-left: auto; background: var(--danger); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 600; transition: all 200ms ease; }
|
|
139
|
+
|
|
140
|
+
/* Collapsed nav items: centered icons */
|
|
141
|
+
.sidebar:not(.expanded):not(.hover-expanded) .nav-item { justify-content: center; padding: 10px 0; margin: 2px 8px; }
|
|
142
|
+
.sidebar:not(.expanded):not(.hover-expanded) .nav-item .badge { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; min-width: 8px; padding: 0; font-size: 0; border-radius: 50%; margin: 0; }
|
|
143
|
+
|
|
144
|
+
/* CSS tooltips for collapsed sidebar */
|
|
145
|
+
.sidebar:not(.expanded):not(.hover-expanded) .nav-item[data-tooltip]::after { content: attr(data-tooltip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 150ms ease; z-index: 100; box-shadow: var(--shadow-lg); }
|
|
146
|
+
.sidebar:not(.expanded):not(.hover-expanded) .nav-item[data-tooltip]:hover::after { opacity: 1; }
|
|
147
|
+
|
|
148
|
+
/* Sidebar footer */
|
|
149
|
+
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
|
|
150
|
+
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); overflow: hidden; }
|
|
151
|
+
.sidebar-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
|
|
152
|
+
.sidebar-user .user-info { flex: 1; min-width: 0; opacity: 0; transition: opacity 200ms ease; }
|
|
153
|
+
.sidebar.expanded .sidebar-user .user-info, .sidebar.hover-expanded .sidebar-user .user-info { opacity: 1; }
|
|
154
|
+
.sidebar-user .user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
155
|
+
.sidebar-user .user-role { font-size: 11px; color: var(--text-muted); }
|
|
156
|
+
.sidebar:not(.expanded):not(.hover-expanded) .sidebar-user { justify-content: center; padding: 8px 0; }
|
|
157
|
+
.sidebar:not(.expanded):not(.hover-expanded) .sidebar-user .user-info { display: none; }
|
|
158
|
+
|
|
159
|
+
/* Main content area */
|
|
160
|
+
.main-content { margin-left: var(--sidebar-collapsed-w); width: calc(100% - var(--sidebar-collapsed-w)); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left 200ms ease, width 200ms ease; }
|
|
161
|
+
.sidebar.expanded ~ .main-content { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); }
|
|
162
|
+
|
|
163
|
+
/* Topbar */
|
|
164
|
+
.topbar { height: var(--header-h); border-bottom: 1px solid var(--border); background: var(--bg-secondary); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
|
|
165
|
+
.topbar-left { display: flex; align-items: center; gap: 16px; }
|
|
166
|
+
.topbar-title { font-size: 16px; font-weight: 600; }
|
|
167
|
+
.topbar-right { display: flex; align-items: center; gap: 8px; }
|
|
168
|
+
.page-content { flex: 1; padding: 24px; width: 100%; }
|
|
169
|
+
|
|
170
|
+
/* ═══════════════════════════════════════════════════════════
|
|
171
|
+
COMPONENTS
|
|
172
|
+
═══════════════════════════════════════════════════════════ */
|
|
173
|
+
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--radius); font-size: 12px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all var(--transition); font-family: var(--font); line-height: 1.4; }
|
|
174
|
+
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
175
|
+
.btn-primary { background: var(--accent); color: white; }
|
|
176
|
+
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
|
|
177
|
+
.btn-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border); }
|
|
178
|
+
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }
|
|
179
|
+
.btn-danger { background: var(--danger); color: white; }
|
|
180
|
+
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }
|
|
181
|
+
.btn-ghost { background: transparent; color: var(--text-secondary); }
|
|
182
|
+
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
|
|
183
|
+
.btn-sm { padding: 3px 8px; font-size: 11px; }
|
|
184
|
+
.btn-lg { padding: 8px 16px; font-size: 13px; }
|
|
185
|
+
.btn-icon { padding: 4px; width: 28px; height: 28px; justify-content: center; }
|
|
186
|
+
.btn-icon svg { width: 14px; height: 14px; }
|
|
187
|
+
|
|
188
|
+
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
|
|
189
|
+
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
|
|
190
|
+
.card-header h3 { font-size: 14px; font-weight: 600; }
|
|
191
|
+
.card-body { padding: 20px; }
|
|
192
|
+
.card-body-flush { padding: 0; }
|
|
193
|
+
|
|
194
|
+
.input { width: 100%; padding: 8px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 13px; font-family: var(--font); transition: border-color var(--transition); outline: none; }
|
|
195
|
+
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
|
|
196
|
+
.input::placeholder { color: var(--text-muted); }
|
|
197
|
+
textarea.input { min-height: 80px; resize: vertical; }
|
|
198
|
+
select.input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239ca3b8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
|
|
199
|
+
|
|
200
|
+
.form-group { margin-bottom: 16px; }
|
|
201
|
+
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
|
|
202
|
+
.form-help { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
|
|
203
|
+
|
|
204
|
+
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
|
|
205
|
+
.badge-primary { background: var(--accent-soft); color: var(--accent-text); }
|
|
206
|
+
.badge-success { background: var(--success-soft); color: var(--success); }
|
|
207
|
+
.badge-warning { background: var(--warning-soft); color: var(--warning); }
|
|
208
|
+
.badge-danger { background: var(--danger-soft); color: var(--danger); }
|
|
209
|
+
.badge-info { background: var(--info-soft); color: var(--info); }
|
|
210
|
+
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }
|
|
211
|
+
|
|
212
|
+
table { width: 100%; border-collapse: collapse; }
|
|
213
|
+
thead th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg-tertiary); }
|
|
214
|
+
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
|
|
215
|
+
tbody tr:last-child td { border-bottom: none; }
|
|
216
|
+
tbody tr:hover { background: var(--bg-hover); }
|
|
217
|
+
|
|
218
|
+
.empty-state { text-align: center; padding: 48px 24px; }
|
|
219
|
+
.empty-state svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 16px; }
|
|
220
|
+
.empty-state h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
|
|
221
|
+
.empty-state p { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
|
|
222
|
+
|
|
223
|
+
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
|
|
224
|
+
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
|
|
225
|
+
.stat-card .stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
|
|
226
|
+
.stat-card .stat-change { font-size: 12px; margin-top: 4px; }
|
|
227
|
+
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
|
|
228
|
+
|
|
229
|
+
.modal-overlay { position: fixed; inset: 0; background: var(--bg-modal); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 150ms ease; }
|
|
230
|
+
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: slideUp 200ms ease; }
|
|
231
|
+
.modal-lg { width: 720px; }
|
|
232
|
+
.modal-xl { width: 80vw; max-width: 1200px; display: flex; flex-direction: column; }
|
|
233
|
+
.modal-xl .modal-body { flex: 1; overflow-y: auto; }
|
|
234
|
+
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
|
|
235
|
+
.modal-header h2 { font-size: 16px; font-weight: 600; }
|
|
236
|
+
.modal-body { padding: 24px; }
|
|
237
|
+
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
|
|
238
|
+
|
|
239
|
+
/* Wizard layout — sidebar stepper + content */
|
|
240
|
+
.wizard-layout { display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: 520px; }
|
|
241
|
+
.wizard-sidebar { border-right: 1px solid var(--border); padding: 4px 0; }
|
|
242
|
+
.wizard-sidebar-step { display: flex; align-items: center; gap: 10px; padding: 10px 20px; cursor: pointer; font-size: 13px; color: var(--text-muted); transition: all 150ms ease; position: relative; }
|
|
243
|
+
.wizard-sidebar-step:hover { color: var(--text-primary); background: var(--bg-hover); }
|
|
244
|
+
.wizard-sidebar-step.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
|
|
245
|
+
.wizard-sidebar-step.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
|
|
246
|
+
.wizard-sidebar-step.done { color: var(--success); }
|
|
247
|
+
.wizard-sidebar-num { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
|
|
248
|
+
.wizard-sidebar-num svg { width: 12px; height: 12px; flex-shrink: 0; }
|
|
249
|
+
.wizard-sidebar-step.active .wizard-sidebar-num { border-color: var(--accent); background: var(--accent); color: #fff; }
|
|
250
|
+
.wizard-sidebar-step.done .wizard-sidebar-num { border-color: var(--success); background: var(--success); color: #fff; }
|
|
251
|
+
.wizard-content { padding: 24px 28px; overflow-y: auto; max-height: 520px; }
|
|
252
|
+
|
|
253
|
+
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
254
|
+
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
|
255
|
+
|
|
256
|
+
/* Wizard steps */
|
|
257
|
+
.wizard-steps { display: flex; gap: 4px; margin-bottom: 24px; }
|
|
258
|
+
.wizard-step { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background var(--transition); }
|
|
259
|
+
.wizard-step.active { background: var(--accent); }
|
|
260
|
+
.wizard-step.done { background: var(--success); }
|
|
261
|
+
.wizard-step-labels { display: flex; justify-content: space-between; margin-bottom: 8px; }
|
|
262
|
+
.wizard-step-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
|
|
263
|
+
.wizard-step-label.active { color: var(--accent-text); }
|
|
264
|
+
.wizard-step-label.done { color: var(--success); }
|
|
265
|
+
|
|
266
|
+
/* Suite selector grid */
|
|
267
|
+
.suite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
|
|
268
|
+
.suite-card { padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); text-align: center; }
|
|
269
|
+
.suite-card:hover { border-color: var(--accent); background: var(--accent-soft); }
|
|
270
|
+
.suite-card.selected { border-color: var(--accent); background: var(--accent-soft); }
|
|
271
|
+
.suite-card.partial { border-color: var(--warning); background: var(--warning-bg); }
|
|
272
|
+
.suite-card .suite-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
|
|
273
|
+
.suite-card .suite-desc { font-size: 11px; color: var(--text-muted); }
|
|
274
|
+
|
|
275
|
+
/* Skill selector grid */
|
|
276
|
+
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
|
|
277
|
+
.skill-card { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
|
|
278
|
+
.skill-card:hover { border-color: var(--accent); background: var(--accent-soft); }
|
|
279
|
+
.skill-card.selected { border-color: var(--accent); background: var(--accent-soft); }
|
|
280
|
+
.skill-card .skill-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
|
|
281
|
+
.skill-card .skill-desc { font-size: 11px; color: var(--text-muted); }
|
|
282
|
+
.skill-card .skill-cat { font-size: 10px; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
283
|
+
|
|
284
|
+
/* Permission preset cards */
|
|
285
|
+
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
|
|
286
|
+
.preset-card { padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); }
|
|
287
|
+
.preset-card:hover { border-color: var(--accent); }
|
|
288
|
+
.preset-card.selected { border-color: var(--accent); background: var(--accent-soft); }
|
|
289
|
+
.preset-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
|
|
290
|
+
.preset-card p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
|
|
291
|
+
.preset-card svg, .skill-card svg { width: 14px; height: 14px; flex-shrink: 0; }
|
|
292
|
+
|
|
293
|
+
/* Avatar upload */
|
|
294
|
+
.avatar-upload { width: 100px; height: 100px; border-radius: 50%; border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; background: var(--bg-tertiary); flex-shrink: 0; }
|
|
295
|
+
.avatar-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
|
|
296
|
+
.avatar-upload.dragging { border-color: var(--accent); background: var(--accent-soft); border-style: solid; }
|
|
297
|
+
.avatar-upload img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
|
|
298
|
+
.avatar-upload-hint { text-align: center; font-size: 11px; color: var(--text-muted); line-height: 1.3; pointer-events: none; }
|
|
299
|
+
.avatar-upload input[type="file"] { display: none; }
|
|
300
|
+
|
|
301
|
+
/* Persona card grid */
|
|
302
|
+
.persona-cards { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
303
|
+
.persona-card { padding: 8px 16px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); font-size: 13px; text-align: center; }
|
|
304
|
+
.persona-card:hover { border-color: var(--accent); }
|
|
305
|
+
.persona-card.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
|
|
306
|
+
|
|
307
|
+
/* Culture grid */
|
|
308
|
+
.culture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
|
|
309
|
+
.culture-card { padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); }
|
|
310
|
+
.culture-card:hover { border-color: var(--accent); }
|
|
311
|
+
.culture-card.selected { border-color: var(--accent); background: var(--accent-soft); }
|
|
312
|
+
.culture-card h4 { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
|
|
313
|
+
.culture-card p { font-size: 11px; color: var(--text-muted); margin: 0; line-height: 1.4; }
|
|
314
|
+
|
|
315
|
+
/* Trait toggle */
|
|
316
|
+
.trait-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
|
|
317
|
+
.trait-label { font-size: 12px; color: var(--text-muted); width: 100px; flex-shrink: 0; font-weight: 600; }
|
|
318
|
+
.trait-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex: 1; }
|
|
319
|
+
.trait-option { flex: 1; padding: 7px 12px; font-size: 12px; text-align: center; cursor: pointer; transition: all var(--transition); color: var(--text-secondary); background: var(--bg-primary); }
|
|
320
|
+
.trait-option:first-child { border-right: 1px solid var(--border); }
|
|
321
|
+
.trait-option:hover { background: var(--bg-hover); }
|
|
322
|
+
.trait-option.active { background: var(--accent); color: #fff; font-weight: 600; }
|
|
323
|
+
|
|
324
|
+
/* Toggle switch */
|
|
325
|
+
.toggle { position: relative; width: 36px; height: 20px; background: var(--border); border-radius: 10px; cursor: pointer; transition: background var(--transition); }
|
|
326
|
+
.toggle.on { background: var(--accent); }
|
|
327
|
+
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: transform var(--transition); }
|
|
328
|
+
.toggle.on::after { transform: translateX(16px); }
|
|
329
|
+
|
|
330
|
+
/* Tabs */
|
|
331
|
+
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
|
|
332
|
+
.tab { padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); }
|
|
333
|
+
.tab:hover { color: var(--text-primary); }
|
|
334
|
+
.tab.active { color: var(--accent-text); border-bottom-color: var(--accent); }
|
|
335
|
+
|
|
336
|
+
/* Toast notifications */
|
|
337
|
+
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
|
|
338
|
+
.toast { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideUp 200ms ease; display: flex; align-items: center; gap: 8px; }
|
|
339
|
+
.toast-success { background: var(--success); color: white; }
|
|
340
|
+
.toast-error { background: var(--danger); color: white; }
|
|
341
|
+
.toast-info { background: var(--accent); color: white; }
|
|
342
|
+
|
|
343
|
+
/* Scrollbar */
|
|
344
|
+
::-webkit-scrollbar { width: 6px; }
|
|
345
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
346
|
+
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
|
347
|
+
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
|
|
348
|
+
|
|
349
|
+
/* Responsive */
|
|
350
|
+
@media (max-width: 768px) {
|
|
351
|
+
.sidebar { transform: translateX(-100%); width: var(--sidebar-w); }
|
|
352
|
+
.sidebar.open { transform: translateX(0); }
|
|
353
|
+
.main-content { margin-left: 0 !important; }
|
|
354
|
+
.stat-grid { grid-template-columns: 1fr 1fr; }
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* Onboarding Wizard */
|
|
358
|
+
.onboarding-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); }
|
|
359
|
+
.onboarding-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px; width: 560px; max-width: 95vw; box-shadow: var(--shadow-xl); }
|
|
360
|
+
.onboarding-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
|
|
361
|
+
.onboarding-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; line-height: 1.5; }
|
|
362
|
+
.onboarding-card .step-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
|
|
363
|
+
.onboarding-card .step-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
|
|
364
|
+
.onboarding-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
|
|
365
|
+
.onboarding-skip { font-size: 13px; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: var(--font); }
|
|
366
|
+
.onboarding-skip:hover { color: var(--text-secondary); }
|
|
367
|
+
.onboarding-steps-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
|
|
368
|
+
.onboarding-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all var(--transition); }
|
|
369
|
+
.onboarding-step-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
|
|
370
|
+
.onboarding-step-dot.done { background: var(--success); }
|
|
371
|
+
.setup-checklist { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
|
|
372
|
+
.setup-checklist h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
|
|
373
|
+
.setup-checklist .dismiss { font-size: 12px; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: var(--font); }
|
|
374
|
+
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
|
|
375
|
+
.checklist-item .check-circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
|
376
|
+
.checklist-item .check-circle.done { background: var(--success); border-color: var(--success); color: white; }
|
|
377
|
+
.checklist-item .check-action { margin-left: auto; font-size: 12px; color: var(--accent-text); cursor: pointer; }
|
|
378
|
+
.checklist-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
|
|
379
|
+
.checklist-progress-bar { height: 100%; background: var(--success); border-radius: 2px; transition: width 300ms ease; }
|
|
380
|
+
|
|
381
|
+
/* Deployment UI */
|
|
382
|
+
.deploy-timeline { display: flex; flex-direction: column; gap: 0; }
|
|
383
|
+
.deploy-phase { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; position: relative; }
|
|
384
|
+
.deploy-phase:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 32px; bottom: -8px; width: 2px; background: var(--border); }
|
|
385
|
+
.deploy-phase.completed:not(:last-child)::before { background: var(--success); }
|
|
386
|
+
.deploy-phase.active:not(:last-child)::before { background: var(--accent); }
|
|
387
|
+
.deploy-phase-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; border: 2px solid var(--border); background: var(--bg-secondary); z-index: 1; }
|
|
388
|
+
.deploy-phase.completed .deploy-phase-icon { border-color: var(--success); background: var(--success-soft, rgba(34,197,94,0.1)); color: var(--success); }
|
|
389
|
+
.deploy-phase.active .deploy-phase-icon { border-color: var(--accent); background: var(--accent-soft, rgba(99,102,241,0.1)); }
|
|
390
|
+
.deploy-phase.failed .deploy-phase-icon { border-color: var(--danger); background: rgba(239,68,68,0.1); color: var(--danger); }
|
|
391
|
+
.deploy-phase-content { flex: 1; min-width: 0; }
|
|
392
|
+
.deploy-phase-title { font-size: 13px; font-weight: 600; }
|
|
393
|
+
.deploy-phase-msg { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
|
|
394
|
+
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
|
|
395
|
+
.deploy-phase.active .deploy-phase-icon { animation: pulse-dot 1.5s ease-in-out infinite; }
|
|
396
|
+
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
|
|
397
|
+
.status-dot.running { background: var(--success); box-shadow: 0 0 6px var(--success); }
|
|
398
|
+
.status-dot.stopped { background: var(--text-muted); }
|
|
399
|
+
.status-dot.error { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
|
|
400
|
+
.status-dot.deploying, .status-dot.provisioning, .status-dot.starting { background: var(--accent); animation: pulse-dot 1.5s ease-in-out infinite; }
|
|
401
|
+
.status-dot.degraded { background: var(--warning, #f59e0b); }
|
|
402
|
+
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
|
403
|
+
.target-card { padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); }
|
|
404
|
+
.target-card:hover { border-color: var(--accent); }
|
|
405
|
+
.target-card.selected { border-color: var(--accent); background: var(--accent-soft, rgba(99,102,241,0.1)); }
|
|
406
|
+
.target-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
|
|
407
|
+
.target-card p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
|
|
408
|
+
</style>
|
|
222
409
|
</head>
|
|
223
410
|
<body>
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
<!-- API Documentation: All endpoints return JSON. Companies can build their own frontend. -->
|
|
227
|
-
<!-- See /health for server status, /auth/login for JWT tokens, /api/* for all CRUD operations. -->
|
|
228
|
-
<!-- Full API reference: https://github.com/agenticmail/agenticmail/tree/main/packages/enterprise -->
|
|
229
|
-
|
|
230
|
-
<script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
|
|
231
|
-
<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
|
|
232
|
-
<script>
|
|
233
|
-
const { useState, useEffect, useCallback, useMemo, useRef, createElement: h, Fragment } = React;
|
|
234
|
-
|
|
235
|
-
// ════════════════════════════════════════════════════════
|
|
236
|
-
// API CLIENT
|
|
237
|
-
// ════════════════════════════════════════════════════════
|
|
238
|
-
|
|
239
|
-
const API = '/api';
|
|
240
|
-
let token = localStorage.getItem('am_token');
|
|
241
|
-
|
|
242
|
-
async function api(path, opts = {}) {
|
|
243
|
-
const headers = { 'Content-Type': 'application/json', ...(token ? { Authorization: `Bearer ${token}` } : {}), ...opts.headers };
|
|
244
|
-
const res = await fetch(`${API}${path}`, { ...opts, headers });
|
|
245
|
-
if (res.status === 401) { token = null; localStorage.removeItem('am_token'); location.reload(); }
|
|
246
|
-
const data = await res.json();
|
|
247
|
-
if (!res.ok) throw new Error(data.error || `HTTP ${res.status}`);
|
|
248
|
-
return data;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
// ════════════════════════════════════════════════════════
|
|
252
|
-
// ICONS (inline SVG, no external deps)
|
|
253
|
-
// ════════════════════════════════════════════════════════
|
|
254
|
-
|
|
255
|
-
const Icon = (d, size = 16) => h('svg', { width: size, height: size, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: 2, strokeLinecap: 'round', strokeLinejoin: 'round' }, ...d.map(p => h('path', { d: p })));
|
|
256
|
-
const Icons = {
|
|
257
|
-
dashboard: () => Icon(['M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z', 'M9 22V12h6v10']),
|
|
258
|
-
agents: () => Icon(['M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4-4v2', 'M23 21v-2a4 4 0 00-3-3.87', 'M16 3.13a4 4 0 010 7.75']),
|
|
259
|
-
skills: () => Icon(['M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z']),
|
|
260
|
-
kb: () => Icon(['M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2z', 'M22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7z']),
|
|
261
|
-
activity: () => Icon(['M22 12h-4l-3 9L9 3l-3 9H2']),
|
|
262
|
-
approvals: () => Icon(['M9 11l3 3L22 4', 'M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11']),
|
|
263
|
-
settings: () => Icon(['M12.22 2h-.44a2 2 0 00-2 2v.18a2 2 0 01-1 1.73l-.43.25a2 2 0 01-2 0l-.15-.08a2 2 0 00-2.73.73l-.22.38a2 2 0 00.73 2.73l.15.1a2 2 0 011 1.72v.51a2 2 0 01-1 1.74l-.15.09a2 2 0 00-.73 2.73l.22.38a2 2 0 002.73.73l.15-.08a2 2 0 012 0l.43.25a2 2 0 011 1.73V20a2 2 0 002 2h.44a2 2 0 002-2v-.18a2 2 0 011-1.73l.43-.25a2 2 0 012 0l.15.08a2 2 0 002.73-.73l.22-.39a2 2 0 00-.73-2.73l-.15-.08a2 2 0 01-1-1.74v-.5a2 2 0 011-1.74l.15-.09a2 2 0 00.73-2.73l-.22-.38a2 2 0 00-2.73-.73l-.15.08a2 2 0 01-2 0l-.43-.25a2 2 0 01-1-1.73V4a2 2 0 00-2-2z']),
|
|
264
|
-
sun: () => Icon(['M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42', 'M12 17a5 5 0 110-10 5 5 0 010 10z']),
|
|
265
|
-
moon: () => Icon(['M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z']),
|
|
266
|
-
logout: () => Icon(['M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4', 'M16 17l5-5-5-5', 'M21 12H9']),
|
|
267
|
-
plus: () => Icon(['M12 5v14M5 12h14']),
|
|
268
|
-
search: () => Icon(['M11 19a8 8 0 100-16 8 8 0 000 16z', 'M21 21l-4.35-4.35']),
|
|
269
|
-
refresh: () => Icon(['M1 4v6h6', 'M23 20v-6h-6', 'M20.49 9A9 9 0 005.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 013.51 15']),
|
|
270
|
-
check: () => Icon(['M20 6L9 17l-5-5']),
|
|
271
|
-
x: () => Icon(['M18 6L6 18', 'M6 6l12 12']),
|
|
272
|
-
api: () => Icon(['M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71', 'M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71']),
|
|
273
|
-
db: () => Icon(['M12 2C6.48 2 2 4.02 2 6.5v11C2 19.98 6.48 22 12 22s10-2.02 10-4.5v-11C22 4.02 17.52 2 12 2z', 'M2 6.5C2 8.98 6.48 11 12 11s10-2.02 10-4.5', 'M2 12c0 2.48 4.48 4.5 10 4.5s10-2.02 10-4.5']),
|
|
274
|
-
org: () => Icon(['M3 21h18', 'M3 7v1a3 3 0 006 0V7m0 1a3 3 0 006 0V7m0 1a3 3 0 006 0V7', 'M5 21V10.9', 'M19 21V10.9', 'M12 21V10.9', 'M5 7l7-4 7 4']),
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
// ════════════════════════════════════════════════════════
|
|
278
|
-
// THEME
|
|
279
|
-
// ════════════════════════════════════════════════════════
|
|
280
|
-
|
|
281
|
-
function useTheme() {
|
|
282
|
-
const [theme, setTheme] = useState(() => localStorage.getItem('am_theme') || 'system');
|
|
283
|
-
useEffect(() => {
|
|
284
|
-
const effective = theme === 'system' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme;
|
|
285
|
-
document.documentElement.setAttribute('data-theme', effective);
|
|
286
|
-
localStorage.setItem('am_theme', theme);
|
|
287
|
-
}, [theme]);
|
|
288
|
-
const toggle = () => setTheme(t => t === 'dark' ? 'light' : t === 'light' ? 'system' : 'dark');
|
|
289
|
-
const isDark = theme === 'dark' || (theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
290
|
-
return { theme, toggle, isDark };
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
// ════════════════════════════════════════════════════════
|
|
294
|
-
// SHARED COMPONENTS
|
|
295
|
-
// ════════════════════════════════════════════════════════
|
|
296
|
-
|
|
297
|
-
function Toast({ message, type = 'info', onDone }) {
|
|
298
|
-
useEffect(() => { const t = setTimeout(onDone, 3500); return () => clearTimeout(t); }, []);
|
|
299
|
-
return h('div', { className: `toast toast-${type}` }, message);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function Modal({ title, children, onClose, footer }) {
|
|
303
|
-
return h('div', { className: 'modal-overlay', onClick: e => e.target === e.currentTarget && onClose() },
|
|
304
|
-
h('div', { className: 'modal' },
|
|
305
|
-
h('div', { className: 'modal-header' },
|
|
306
|
-
h('div', { className: 'flex items-center justify-between' },
|
|
307
|
-
h('h2', null, title),
|
|
308
|
-
h('button', { className: 'btn-ghost btn-icon', onClick: onClose }, Icons.x())
|
|
309
|
-
)
|
|
310
|
-
),
|
|
311
|
-
h('div', { className: 'modal-body' }, children),
|
|
312
|
-
footer && h('div', { className: 'modal-footer' }, footer)
|
|
313
|
-
)
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
function Stat({ label, value, color, sub }) {
|
|
318
|
-
return h('div', { className: 'stat' },
|
|
319
|
-
h('div', { className: 'stat-label' }, label),
|
|
320
|
-
h('div', { className: `stat-value ${color || ''}` }, value),
|
|
321
|
-
sub && h('div', { className: 'stat-sub' }, sub)
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function Badge({ type, label, dot }) {
|
|
326
|
-
if (dot) return h('span', { className: `badge badge-${type}` }, h('span', { className: `badge-dot ${dot}` }), label);
|
|
327
|
-
return h('span', { className: `badge badge-${type}` }, label);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function EmptyState({ title, desc }) {
|
|
331
|
-
return h('div', { className: 'empty' }, h('div', { className: 'empty-title' }, title), h('div', { className: 'empty-desc' }, desc));
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
// ════════════════════════════════════════════════════════
|
|
335
|
-
// LOGIN PAGE
|
|
336
|
-
// ════════════════════════════════════════════════════════
|
|
337
|
-
|
|
338
|
-
function LoginPage({ onLogin }) {
|
|
339
|
-
const [email, setEmail] = useState('');
|
|
340
|
-
const [password, setPassword] = useState('');
|
|
341
|
-
const [error, setError] = useState('');
|
|
342
|
-
const [loading, setLoading] = useState(false);
|
|
343
|
-
|
|
344
|
-
async function submit(e) {
|
|
345
|
-
e.preventDefault(); setLoading(true); setError('');
|
|
346
|
-
try {
|
|
347
|
-
const data = await fetch('/auth/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email, password }) }).then(r => r.json());
|
|
348
|
-
if (data.error) throw new Error(data.error);
|
|
349
|
-
token = data.token; localStorage.setItem('am_token', token); onLogin(data);
|
|
350
|
-
} catch (err) { setError(err.message); } finally { setLoading(false); }
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
return h('div', { style: { display: 'flex', minHeight: '100vh', alignItems: 'center', justifyContent: 'center', background: 'var(--bg-0)' } },
|
|
354
|
-
h('div', { style: { width: 360, padding: 32 } },
|
|
355
|
-
h('div', { style: { textAlign: 'center', marginBottom: 28 } },
|
|
356
|
-
h('h1', { style: { fontSize: 20, fontWeight: 700, marginBottom: 4 } }, '🎀 AgenticMail Enterprise'),
|
|
357
|
-
h('p', { className: 'text-muted text-sm' }, 'Sign in to manage your AI agents')
|
|
358
|
-
),
|
|
359
|
-
h('form', { onSubmit: submit },
|
|
360
|
-
h('div', { className: 'field' },
|
|
361
|
-
h('label', { className: 'field-label' }, 'Email'),
|
|
362
|
-
h('input', { className: 'input', type: 'email', value: email, onChange: e => setEmail(e.target.value), placeholder: 'admin@company.com', required: true, autoFocus: true })
|
|
363
|
-
),
|
|
364
|
-
h('div', { className: 'field' },
|
|
365
|
-
h('label', { className: 'field-label' }, 'Password'),
|
|
366
|
-
h('input', { className: 'input', type: 'password', value: password, onChange: e => setPassword(e.target.value), placeholder: '••••••••', required: true })
|
|
367
|
-
),
|
|
368
|
-
error && h('div', { style: { color: 'var(--danger)', fontSize: 13, marginBottom: 12 } }, error),
|
|
369
|
-
h('button', { className: 'btn btn-primary w-full', type: 'submit', disabled: loading, style: { marginTop: 8, justifyContent: 'center' } }, loading ? 'Signing in...' : 'Sign In')
|
|
370
|
-
),
|
|
371
|
-
h('div', { style: { marginTop: 24, padding: 12, background: 'var(--bg-2)', borderRadius: 'var(--radius)', fontSize: 12, color: 'var(--text-2)' } },
|
|
372
|
-
h('strong', null, 'Build your own UI? '),
|
|
373
|
-
'All data is available via REST API. ',
|
|
374
|
-
h('span', { className: 'inline-code' }, 'GET /api/agents'), ', ',
|
|
375
|
-
h('span', { className: 'inline-code' }, 'GET /api/stats'), ', etc. ',
|
|
376
|
-
'See docs at ', h('a', { href: 'https://github.com/agenticmail/agenticmail', target: '_blank', style: { color: 'var(--accent)' } }, 'GitHub'), '.'
|
|
377
|
-
)
|
|
378
|
-
)
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
// ════════════════════════════════════════════════════════
|
|
383
|
-
// DASHBOARD PAGE
|
|
384
|
-
// ════════════════════════════════════════════════════════
|
|
385
|
-
|
|
386
|
-
function DashboardPage() {
|
|
387
|
-
const [stats, setStats] = useState(null);
|
|
388
|
-
const [recent, setRecent] = useState([]);
|
|
389
|
-
const [loading, setLoading] = useState(true);
|
|
390
|
-
|
|
391
|
-
useEffect(() => {
|
|
392
|
-
Promise.all([
|
|
393
|
-
api('/stats').catch(() => ({ agents: 0, users: 0, emails: 0, events: 0 })),
|
|
394
|
-
api('/audit?limit=10').catch(() => ({ events: [] })),
|
|
395
|
-
]).then(([s, a]) => { setStats(s); setRecent(a.events || []); setLoading(false); });
|
|
396
|
-
}, []);
|
|
397
|
-
|
|
398
|
-
if (loading) return h('div', { className: 'text-muted', style: { padding: 40 } }, 'Loading...');
|
|
399
|
-
|
|
400
|
-
return h(Fragment, null,
|
|
401
|
-
h('div', { className: 'page-header' }, h('h1', { className: 'page-title' }, 'Dashboard'), h('p', { className: 'page-desc' }, 'System overview and recent activity')),
|
|
402
|
-
h('div', { className: 'stats-row' },
|
|
403
|
-
h(Stat, { label: 'Agents', value: stats?.totalAgents ?? stats?.agents ?? 0, color: 'accent', sub: (stats?.activeAgents ?? 0) + ' active' }),
|
|
404
|
-
h(Stat, { label: 'Users', value: stats?.totalUsers ?? stats?.users ?? 0 }),
|
|
405
|
-
h(Stat, { label: 'Emails', value: stats?.totalEmails ?? stats?.emails ?? 0, color: 'success' }),
|
|
406
|
-
h(Stat, { label: 'Events', value: stats?.totalAuditEvents ?? stats?.events ?? 0 }),
|
|
407
|
-
),
|
|
408
|
-
h('div', { className: 'card' },
|
|
409
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Recent Activity')),
|
|
410
|
-
h('div', { className: 'card-body-flush' },
|
|
411
|
-
recent.length === 0
|
|
412
|
-
? h(EmptyState, { title: 'No recent activity', desc: 'Activity will appear here as agents operate' })
|
|
413
|
-
: recent.map((e, i) => h('div', { key: i, className: 'activity-item' },
|
|
414
|
-
h('div', { className: 'activity-dot' }),
|
|
415
|
-
h('div', { className: 'activity-text' },
|
|
416
|
-
h('strong', null, e.action || e.type || 'Event'), ' ',
|
|
417
|
-
typeof e.details === 'string' ? e.details : e.description || JSON.stringify(e.details || e).slice(0, 80)
|
|
418
|
-
),
|
|
419
|
-
h('div', { className: 'activity-time' }, e.timestamp ? new Date(e.timestamp).toLocaleString() : '')
|
|
420
|
-
))
|
|
421
|
-
)
|
|
422
|
-
),
|
|
423
|
-
h('div', { className: 'card mt-3' },
|
|
424
|
-
h('div', { className: 'card-header' }, h('h3', null, 'API Endpoints')),
|
|
425
|
-
h('div', { className: 'card-body' },
|
|
426
|
-
h('p', { className: 'text-sm text-muted mb-2' }, 'Build your own dashboard or integrate with your existing tools:'),
|
|
427
|
-
h('div', { className: 'code-block' },
|
|
428
|
-
'GET /health # Server health\n' +
|
|
429
|
-
'POST /auth/login # Get JWT token\n' +
|
|
430
|
-
'GET /api/stats # Dashboard stats\n' +
|
|
431
|
-
'GET /api/agents # List all agents\n' +
|
|
432
|
-
'POST /api/agents # Create agent\n' +
|
|
433
|
-
'GET /api/agents/:id # Agent details\n' +
|
|
434
|
-
'GET /api/audit # Audit log\n' +
|
|
435
|
-
'GET /api/api-keys # API key management\n' +
|
|
436
|
-
'GET /api/engine/skills # Available skills\n' +
|
|
437
|
-
'GET /api/engine/profiles/presets # Permission presets\n' +
|
|
438
|
-
'POST /api/engine/config/workspace # Generate agent config\n' +
|
|
439
|
-
'POST /api/engine/agents # Deploy managed agent\n' +
|
|
440
|
-
'GET /api/engine/stats/:orgId # Org stats\n'
|
|
441
|
-
)
|
|
442
|
-
)
|
|
443
|
-
)
|
|
444
|
-
);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
// ════════════════════════════════════════════════════════
|
|
448
|
-
// AGENTS PAGE
|
|
449
|
-
// ════════════════════════════════════════════════════════
|
|
450
|
-
|
|
451
|
-
function AgentsPage({ showToast }) {
|
|
452
|
-
const [agents, setAgents] = useState([]);
|
|
453
|
-
const [loading, setLoading] = useState(true);
|
|
454
|
-
const [search, setSearch] = useState('');
|
|
455
|
-
const [showCreate, setShowCreate] = useState(false);
|
|
456
|
-
|
|
457
|
-
const load = () => { setLoading(true); api('/agents').then(d => setAgents(d.agents || d || [])).catch(() => setAgents([])).finally(() => setLoading(false)); };
|
|
458
|
-
useEffect(load, []);
|
|
459
|
-
|
|
460
|
-
const filtered = agents.filter(a => !search || a.name?.toLowerCase().includes(search.toLowerCase()) || a.email?.toLowerCase().includes(search.toLowerCase()));
|
|
461
|
-
|
|
462
|
-
return h(Fragment, null,
|
|
463
|
-
h('div', { className: 'page-header flex items-center justify-between' },
|
|
464
|
-
h('div', null, h('h1', { className: 'page-title' }, 'Agents'), h('p', { className: 'page-desc' }, `${agents.length} agent${agents.length !== 1 ? 's' : ''} registered`)),
|
|
465
|
-
h('button', { className: 'btn btn-primary', onClick: () => setShowCreate(true) }, Icons.plus(), ' New Agent')
|
|
466
|
-
),
|
|
467
|
-
h('div', { className: 'mb-3' }, h('input', { className: 'input search-input', placeholder: 'Search agents...', value: search, onChange: e => setSearch(e.target.value) })),
|
|
468
|
-
h('div', { className: 'card' },
|
|
469
|
-
h('div', { className: 'card-body-flush' },
|
|
470
|
-
loading ? h('div', { className: 'table-empty' }, 'Loading...') :
|
|
471
|
-
filtered.length === 0 ? h(EmptyState, { title: 'No agents', desc: search ? 'No agents match your search' : 'Create your first agent to get started' }) :
|
|
472
|
-
h('div', { style: { overflowX: 'auto' } },
|
|
473
|
-
h('table', null,
|
|
474
|
-
h('thead', null, h('tr', null, h('th', null, 'Name'), h('th', null, 'Email'), h('th', null, 'Role'), h('th', null, 'Status'), h('th', null, 'Created'))),
|
|
475
|
-
h('tbody', null, filtered.map(a =>
|
|
476
|
-
h('tr', { key: a.id || a.name },
|
|
477
|
-
h('td', null, h('strong', null, a.name || a.displayName)),
|
|
478
|
-
h('td', null, h('span', { className: 'font-mono text-sm' }, a.email)),
|
|
479
|
-
h('td', null, a.role || '-'),
|
|
480
|
-
h('td', null, h(Badge, { type: a.status === 'active' ? 'success' : 'neutral', dot: a.status === 'active' ? 'green' : '', label: a.status || 'active' })),
|
|
481
|
-
h('td', { className: 'text-muted text-sm' }, a.createdAt ? new Date(a.createdAt).toLocaleDateString() : '-')
|
|
482
|
-
)
|
|
483
|
-
))
|
|
484
|
-
)
|
|
485
|
-
)
|
|
486
|
-
)
|
|
487
|
-
),
|
|
488
|
-
showCreate && h(CreateAgentModal, { onClose: () => setShowCreate(false), onCreated: () => { setShowCreate(false); load(); showToast('Agent created', 'success'); } })
|
|
489
|
-
);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
function CreateAgentModal({ onClose, onCreated }) {
|
|
493
|
-
const [name, setName] = useState('');
|
|
494
|
-
const [role, setRole] = useState('assistant');
|
|
495
|
-
const [loading, setLoading] = useState(false);
|
|
496
|
-
const [error, setError] = useState('');
|
|
497
|
-
|
|
498
|
-
async function submit(e) {
|
|
499
|
-
e.preventDefault(); setLoading(true); setError('');
|
|
500
|
-
try { await api('/agents', { method: 'POST', body: JSON.stringify({ name, role }) }); onCreated(); }
|
|
501
|
-
catch (err) { setError(err.message); } finally { setLoading(false); }
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
return h(Modal, { title: 'Create Agent', onClose, footer: h(Fragment, null,
|
|
505
|
-
h('button', { className: 'btn', onClick: onClose }, 'Cancel'),
|
|
506
|
-
h('button', { className: 'btn btn-primary', onClick: submit, disabled: loading || !name }, loading ? 'Creating...' : 'Create Agent')
|
|
507
|
-
) },
|
|
508
|
-
h('form', { onSubmit: submit },
|
|
509
|
-
h('div', { className: 'field' }, h('label', { className: 'field-label' }, 'Agent Name'), h('input', { className: 'input', value: name, onChange: e => setName(e.target.value), placeholder: 'researcher', autoFocus: true })),
|
|
510
|
-
h('div', { className: 'field' }, h('label', { className: 'field-label' }, 'Role'), h('select', { className: 'input', value: role, onChange: e => setRole(e.target.value) },
|
|
511
|
-
h('option', { value: 'secretary' }, 'Secretary'), h('option', { value: 'assistant' }, 'Assistant'),
|
|
512
|
-
h('option', { value: 'researcher' }, 'Researcher'), h('option', { value: 'writer' }, 'Writer'), h('option', { value: 'custom' }, 'Custom')
|
|
513
|
-
)),
|
|
514
|
-
error && h('div', { style: { color: 'var(--danger)', fontSize: 13, marginTop: 8 } }, error)
|
|
515
|
-
)
|
|
516
|
-
);
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
// ════════════════════════════════════════════════════════
|
|
520
|
-
// SKILLS PAGE
|
|
521
|
-
// ════════════════════════════════════════════════════════
|
|
522
|
-
|
|
523
|
-
function SkillsPage() {
|
|
524
|
-
const [skills, setSkills] = useState([]);
|
|
525
|
-
const [presets, setPresets] = useState([]);
|
|
526
|
-
const [tab, setTab] = useState('skills');
|
|
527
|
-
const [search, setSearch] = useState('');
|
|
528
|
-
|
|
529
|
-
useEffect(() => {
|
|
530
|
-
api('/engine/skills').then(d => setSkills(d.skills || Object.values(d) || [])).catch(() => {});
|
|
531
|
-
api('/engine/profiles/presets').then(d => setPresets(d.presets || Object.values(d) || [])).catch(() => {});
|
|
532
|
-
}, []);
|
|
533
|
-
|
|
534
|
-
const filtered = skills.filter(s => !search || (s.name || s.id || '').toLowerCase().includes(search.toLowerCase()) || (s.category || '').toLowerCase().includes(search.toLowerCase()));
|
|
535
|
-
const byCategory = {};
|
|
536
|
-
filtered.forEach(s => { const cat = s.category || 'Other'; (byCategory[cat] = byCategory[cat] || []).push(s); });
|
|
537
|
-
|
|
538
|
-
return h(Fragment, null,
|
|
539
|
-
h('div', { className: 'page-header' }, h('h1', { className: 'page-title' }, 'Skills & Permissions'), h('p', { className: 'page-desc' }, 'Configure what tools each agent can access')),
|
|
540
|
-
h('div', { className: 'tabs' },
|
|
541
|
-
h('button', { className: `tab ${tab === 'skills' ? 'active' : ''}`, onClick: () => setTab('skills') }, `Skills (${skills.length})`),
|
|
542
|
-
h('button', { className: `tab ${tab === 'presets' ? 'active' : ''}`, onClick: () => setTab('presets') }, `Presets (${presets.length})`),
|
|
543
|
-
h('button', { className: `tab ${tab === 'api' ? 'active' : ''}`, onClick: () => setTab('api') }, 'API Reference'),
|
|
544
|
-
),
|
|
545
|
-
tab === 'skills' && h(Fragment, null,
|
|
546
|
-
h('div', { className: 'mb-3' }, h('input', { className: 'input search-input', placeholder: 'Search skills...', value: search, onChange: e => setSearch(e.target.value) })),
|
|
547
|
-
Object.entries(byCategory).map(([cat, items]) =>
|
|
548
|
-
h('div', { key: cat, className: 'card mb-3' },
|
|
549
|
-
h('div', { className: 'card-header' }, h('h3', null, cat, h('span', { className: 'text-muted text-sm', style: { marginLeft: 8, fontWeight: 400 } }, `${items.length} skill${items.length !== 1 ? 's' : ''}`))),
|
|
550
|
-
h('div', { className: 'card-body-flush' },
|
|
551
|
-
h('table', null,
|
|
552
|
-
h('thead', null, h('tr', null, h('th', null, 'Skill'), h('th', null, 'Risk'), h('th', null, 'Tools'), h('th', null, 'Status'))),
|
|
553
|
-
h('tbody', null, items.map(s =>
|
|
554
|
-
h('tr', { key: s.id || s.name },
|
|
555
|
-
h('td', null, h('strong', null, s.name || s.id), s.description && h('div', { className: 'text-xs text-muted', style: { maxWidth: 300 } }, s.description.slice(0, 80))),
|
|
556
|
-
h('td', null, h(Badge, { type: s.risk === 'high' ? 'danger' : s.risk === 'medium' ? 'warning' : 'success', label: s.risk || 'low' })),
|
|
557
|
-
h('td', { className: 'text-muted text-sm' }, s.tools?.length || 0),
|
|
558
|
-
h('td', null, h(Badge, { type: 'success', dot: 'green', label: 'Available' }))
|
|
559
|
-
)
|
|
560
|
-
))
|
|
561
|
-
)
|
|
562
|
-
)
|
|
563
|
-
)
|
|
564
|
-
)
|
|
565
|
-
),
|
|
566
|
-
tab === 'presets' && h('div', { className: 'card' },
|
|
567
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Permission Presets')),
|
|
568
|
-
h('div', { className: 'card-body-flush' },
|
|
569
|
-
presets.length === 0 ? h(EmptyState, { title: 'No presets loaded', desc: 'Engine may not be initialized' }) :
|
|
570
|
-
h('table', null,
|
|
571
|
-
h('thead', null, h('tr', null, h('th', null, 'Name'), h('th', null, 'Description'), h('th', null, 'Allowed Skills'))),
|
|
572
|
-
h('tbody', null, presets.map((p, i) =>
|
|
573
|
-
h('tr', { key: i },
|
|
574
|
-
h('td', null, h('strong', null, p.name || p.id)),
|
|
575
|
-
h('td', { className: 'text-muted text-sm' }, p.description || '-'),
|
|
576
|
-
h('td', { className: 'text-sm' }, p.allowedSkills?.length || p.skills?.length || '-')
|
|
577
|
-
)
|
|
578
|
-
))
|
|
579
|
-
)
|
|
580
|
-
)
|
|
581
|
-
),
|
|
582
|
-
tab === 'api' && h('div', { className: 'card' },
|
|
583
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Skills & Permissions API')),
|
|
584
|
-
h('div', { className: 'card-body' },
|
|
585
|
-
h('div', { className: 'code-block' },
|
|
586
|
-
'# List all available skills\n' +
|
|
587
|
-
'GET /api/engine/skills\n' +
|
|
588
|
-
'→ { skills: [{ id, name, category, description, risk, tools: [...] }] }\n\n' +
|
|
589
|
-
'# List permission presets\n' +
|
|
590
|
-
'GET /api/engine/profiles/presets\n' +
|
|
591
|
-
'→ { presets: [{ name, description, allowedSkills, riskThreshold }] }\n\n' +
|
|
592
|
-
'# Check if agent has permission for a tool\n' +
|
|
593
|
-
'POST /api/engine/permissions/check\n' +
|
|
594
|
-
'→ { allowed: boolean, reason: string }\n\n' +
|
|
595
|
-
'# Get agent\'s effective tool policy\n' +
|
|
596
|
-
'GET /api/engine/permissions/:agentId/policy\n' +
|
|
597
|
-
'→ { allowedTools: [...], blockedTools: [...] }'
|
|
598
|
-
)
|
|
599
|
-
)
|
|
600
|
-
)
|
|
601
|
-
);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
// ════════════════════════════════════════════════════════
|
|
605
|
-
// KNOWLEDGE BASE PAGE
|
|
606
|
-
// ════════════════════════════════════════════════════════
|
|
607
|
-
|
|
608
|
-
function KnowledgeBasePage() {
|
|
609
|
-
const [kbs, setKbs] = useState([]);
|
|
610
|
-
useEffect(() => { api('/engine/knowledge').then(d => setKbs(d.bases || [])).catch(() => {}); }, []);
|
|
611
|
-
|
|
612
|
-
return h(Fragment, null,
|
|
613
|
-
h('div', { className: 'page-header flex items-center justify-between' },
|
|
614
|
-
h('div', null, h('h1', { className: 'page-title' }, 'Knowledge Bases'), h('p', { className: 'page-desc' }, 'Document ingestion and RAG retrieval for agents')),
|
|
615
|
-
h('button', { className: 'btn btn-primary' }, Icons.plus(), ' New Knowledge Base')
|
|
616
|
-
),
|
|
617
|
-
kbs.length === 0
|
|
618
|
-
? h('div', { className: 'card' }, h('div', { className: 'card-body' }, h(EmptyState, { title: 'No knowledge bases', desc: 'Create a knowledge base to give agents access to your documents' })))
|
|
619
|
-
: h('div', { className: 'card' },
|
|
620
|
-
h('div', { className: 'card-body-flush' },
|
|
621
|
-
h('table', null,
|
|
622
|
-
h('thead', null, h('tr', null, h('th', null, 'Name'), h('th', null, 'Documents'), h('th', null, 'Chunks'), h('th', null, 'Agents'), h('th', null, 'Created'))),
|
|
623
|
-
h('tbody', null, kbs.map(kb =>
|
|
624
|
-
h('tr', { key: kb.id },
|
|
625
|
-
h('td', null, h('strong', null, kb.name)),
|
|
626
|
-
h('td', null, kb.documentCount || 0),
|
|
627
|
-
h('td', null, kb.chunkCount || 0),
|
|
628
|
-
h('td', null, kb.agentIds?.length || 0),
|
|
629
|
-
h('td', { className: 'text-muted text-sm' }, kb.createdAt ? new Date(kb.createdAt).toLocaleDateString() : '-')
|
|
630
|
-
)
|
|
631
|
-
))
|
|
632
|
-
)
|
|
633
|
-
)
|
|
634
|
-
)
|
|
635
|
-
);
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
// ════════════════════════════════════════════════════════
|
|
639
|
-
// ACTIVITY PAGE
|
|
640
|
-
// ════════════════════════════════════════════════════════
|
|
641
|
-
|
|
642
|
-
function ActivityPage() {
|
|
643
|
-
const [events, setEvents] = useState([]);
|
|
644
|
-
const [tab, setTab] = useState('events');
|
|
645
|
-
|
|
646
|
-
useEffect(() => { api('/audit?limit=50').then(d => setEvents(d.events || [])).catch(() => {}); }, []);
|
|
647
|
-
|
|
648
|
-
return h(Fragment, null,
|
|
649
|
-
h('div', { className: 'page-header' }, h('h1', { className: 'page-title' }, 'Activity & Audit'), h('p', { className: 'page-desc' }, 'Real-time monitoring and audit trail')),
|
|
650
|
-
h('div', { className: 'tabs' },
|
|
651
|
-
h('button', { className: `tab ${tab === 'events' ? 'active' : ''}`, onClick: () => setTab('events') }, 'Events'),
|
|
652
|
-
h('button', { className: `tab ${tab === 'api' ? 'active' : ''}`, onClick: () => setTab('api') }, 'API Reference'),
|
|
653
|
-
),
|
|
654
|
-
tab === 'events' && h('div', { className: 'card' },
|
|
655
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Audit Log'), h('button', { className: 'btn btn-sm btn-ghost', onClick: () => api('/audit?limit=50').then(d => setEvents(d.events || [])) }, Icons.refresh(), ' Refresh')),
|
|
656
|
-
h('div', { className: 'card-body-flush' },
|
|
657
|
-
events.length === 0 ? h(EmptyState, { title: 'No events yet', desc: 'Activity will appear here as the system operates' }) :
|
|
658
|
-
events.map((e, i) => h('div', { key: i, className: 'activity-item' },
|
|
659
|
-
h('div', { className: 'activity-dot', style: { background: e.action?.includes('delete') ? 'var(--danger)' : e.action?.includes('create') ? 'var(--success)' : 'var(--accent)' } }),
|
|
660
|
-
h('div', { style: { flex: 1 } },
|
|
661
|
-
h('div', null, h('strong', null, e.action || e.type), ' ', h('span', { className: 'text-muted' }, e.resource || '')),
|
|
662
|
-
e.userId && h('div', { className: 'text-xs text-muted' }, 'by ', e.userId)
|
|
663
|
-
),
|
|
664
|
-
h('div', { className: 'activity-time' }, e.timestamp ? new Date(e.timestamp).toLocaleString() : '')
|
|
665
|
-
))
|
|
666
|
-
)
|
|
667
|
-
),
|
|
668
|
-
tab === 'api' && h('div', { className: 'card' },
|
|
669
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Activity & Monitoring API')),
|
|
670
|
-
h('div', { className: 'card-body' },
|
|
671
|
-
h('div', { className: 'code-block' },
|
|
672
|
-
'# Audit log\n' +
|
|
673
|
-
'GET /api/audit?limit=50\n' +
|
|
674
|
-
'→ { events: [{ action, resource, userId, timestamp, details }] }\n\n' +
|
|
675
|
-
'# Engine activity events\n' +
|
|
676
|
-
'GET /api/engine/activity/:orgId/events?limit=100\n' +
|
|
677
|
-
'→ { events: [{ agentId, type, data, createdAt }] }\n\n' +
|
|
678
|
-
'# Tool call records\n' +
|
|
679
|
-
'GET /api/engine/activity/:orgId/tools?agentId=&limit=50\n' +
|
|
680
|
-
'→ { calls: [{ toolName, timing, cost, permission }] }\n\n' +
|
|
681
|
-
'# Real-time SSE stream\n' +
|
|
682
|
-
'GET /api/engine/activity/:orgId/stream\n' +
|
|
683
|
-
'→ Server-Sent Events (text/event-stream)\n\n' +
|
|
684
|
-
'# Agent timeline\n' +
|
|
685
|
-
'GET /api/engine/activity/:orgId/timeline/:agentId?date=YYYY-MM-DD\n' +
|
|
686
|
-
'→ { entries: [{ time, type, summary }] }'
|
|
687
|
-
)
|
|
688
|
-
)
|
|
689
|
-
)
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
// ════════════════════════════════════════════════════════
|
|
694
|
-
// APPROVALS PAGE
|
|
695
|
-
// ════════════════════════════════════════════════════════
|
|
696
|
-
|
|
697
|
-
function ApprovalsPage({ showToast }) {
|
|
698
|
-
const [pending, setPending] = useState([]);
|
|
699
|
-
useEffect(() => { api('/engine/approvals/pending').then(d => setPending(d.requests || [])).catch(() => {}); }, []);
|
|
700
|
-
|
|
701
|
-
return h(Fragment, null,
|
|
702
|
-
h('div', { className: 'page-header' }, h('h1', { className: 'page-title' }, 'Approvals'), h('p', { className: 'page-desc' }, 'Review and approve sensitive agent actions')),
|
|
703
|
-
h('div', { className: 'card' },
|
|
704
|
-
h('div', { className: 'card-header' }, h('h3', null, `Pending (${pending.length})`)),
|
|
705
|
-
h('div', { className: 'card-body-flush' },
|
|
706
|
-
pending.length === 0 ? h(EmptyState, { title: 'No pending approvals', desc: 'When agents attempt sensitive operations, they\'ll appear here for review' }) :
|
|
707
|
-
pending.map(r => h('div', { key: r.id, style: { padding: 16, borderBottom: '1px solid var(--border-subtle)' } },
|
|
708
|
-
h('div', { className: 'flex items-center justify-between' },
|
|
709
|
-
h('div', null,
|
|
710
|
-
h('strong', null, r.toolName || r.tool_name), ' — ',
|
|
711
|
-
h('span', { className: 'text-muted' }, r.agentName || r.agent_name),
|
|
712
|
-
h('div', { className: 'text-xs text-muted mt-2' }, r.reason)
|
|
713
|
-
),
|
|
714
|
-
h('div', { className: 'btn-group' },
|
|
715
|
-
h('button', { className: 'btn btn-sm btn-primary', onClick: () => api(`/engine/approvals/${r.id}/decide`, { method: 'POST', body: JSON.stringify({ decision: 'approved' }) }).then(() => { setPending(p => p.filter(x => x.id !== r.id)); showToast('Approved', 'success'); }) }, Icons.check(), ' Approve'),
|
|
716
|
-
h('button', { className: 'btn btn-sm btn-danger', onClick: () => api(`/engine/approvals/${r.id}/decide`, { method: 'POST', body: JSON.stringify({ decision: 'denied' }) }).then(() => { setPending(p => p.filter(x => x.id !== r.id)); showToast('Denied', 'info'); }) }, Icons.x(), ' Deny')
|
|
717
|
-
)
|
|
718
|
-
)
|
|
719
|
-
))
|
|
720
|
-
)
|
|
721
|
-
)
|
|
722
|
-
);
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
// ════════════════════════════════════════════════════════
|
|
726
|
-
// SETTINGS PAGE
|
|
727
|
-
// ════════════════════════════════════════════════════════
|
|
728
|
-
|
|
729
|
-
function SettingsPage() {
|
|
730
|
-
const [apiKeys, setApiKeys] = useState([]);
|
|
731
|
-
const [tab, setTab] = useState('general');
|
|
732
|
-
useEffect(() => { api('/api-keys').then(d => setApiKeys(d.keys || d || [])).catch(() => {}); }, []);
|
|
733
|
-
|
|
734
|
-
return h(Fragment, null,
|
|
735
|
-
h('div', { className: 'page-header' }, h('h1', { className: 'page-title' }, 'Settings')),
|
|
736
|
-
h('div', { className: 'tabs' },
|
|
737
|
-
h('button', { className: `tab ${tab === 'general' ? 'active' : ''}`, onClick: () => setTab('general') }, 'General'),
|
|
738
|
-
h('button', { className: `tab ${tab === 'keys' ? 'active' : ''}`, onClick: () => setTab('keys') }, 'API Keys'),
|
|
739
|
-
h('button', { className: `tab ${tab === 'api' ? 'active' : ''}`, onClick: () => setTab('api') }, 'Integration Guide'),
|
|
740
|
-
),
|
|
741
|
-
tab === 'general' && h('div', { className: 'card' },
|
|
742
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Server Info')),
|
|
743
|
-
h('div', { className: 'card-body' },
|
|
744
|
-
h('div', { className: 'detail-grid' },
|
|
745
|
-
h('div', { className: 'detail-item' }, h('div', { className: 'detail-label' }, 'Version'), h('div', { className: 'detail-value' }, '0.2.2')),
|
|
746
|
-
h('div', { className: 'detail-item' }, h('div', { className: 'detail-label' }, 'API Base'), h('div', { className: 'detail-value font-mono' }, window.location.origin + '/api')),
|
|
747
|
-
h('div', { className: 'detail-item' }, h('div', { className: 'detail-label' }, 'Health'), h('div', { className: 'detail-value font-mono' }, window.location.origin + '/health')),
|
|
748
|
-
h('div', { className: 'detail-item' }, h('div', { className: 'detail-label' }, 'Engine'), h('div', { className: 'detail-value font-mono' }, window.location.origin + '/api/engine')),
|
|
749
|
-
)
|
|
750
|
-
)
|
|
751
|
-
),
|
|
752
|
-
tab === 'keys' && h('div', { className: 'card' },
|
|
753
|
-
h('div', { className: 'card-header' }, h('h3', null, 'API Keys'), h('button', { className: 'btn btn-sm btn-primary' }, Icons.plus(), ' Create Key')),
|
|
754
|
-
h('div', { className: 'card-body-flush' },
|
|
755
|
-
apiKeys.length === 0 ? h(EmptyState, { title: 'No API keys', desc: 'Create an API key to access the REST API programmatically' }) :
|
|
756
|
-
h('table', null,
|
|
757
|
-
h('thead', null, h('tr', null, h('th', null, 'Name'), h('th', null, 'Key'), h('th', null, 'Scopes'), h('th', null, 'Created'))),
|
|
758
|
-
h('tbody', null, apiKeys.map(k =>
|
|
759
|
-
h('tr', { key: k.id },
|
|
760
|
-
h('td', null, h('strong', null, k.name)),
|
|
761
|
-
h('td', null, h('span', { className: 'font-mono text-sm' }, k.key?.slice(0, 12) + '...')),
|
|
762
|
-
h('td', null, (k.scopes || []).join(', ') || 'all'),
|
|
763
|
-
h('td', { className: 'text-muted text-sm' }, k.createdAt ? new Date(k.createdAt).toLocaleDateString() : '-')
|
|
764
|
-
)
|
|
765
|
-
))
|
|
766
|
-
)
|
|
767
|
-
)
|
|
768
|
-
),
|
|
769
|
-
tab === 'api' && h('div', { className: 'card' },
|
|
770
|
-
h('div', { className: 'card-header' }, h('h3', null, 'Build Your Own Frontend')),
|
|
771
|
-
h('div', { className: 'card-body' },
|
|
772
|
-
h('p', { className: 'text-sm mb-3' }, 'AgenticMail Enterprise exposes a complete REST API. You can build your own dashboard in any language or framework.'),
|
|
773
|
-
h('div', { className: 'code-block mb-3' },
|
|
774
|
-
'// Example: Fetch agents from your React/Vue/Svelte app\n' +
|
|
775
|
-
'const response = await fetch("' + window.location.origin + '/api/agents", {\n' +
|
|
776
|
-
' headers: {\n' +
|
|
777
|
-
' "Authorization": "Bearer " + token,\n' +
|
|
778
|
-
' "Content-Type": "application/json"\n' +
|
|
779
|
-
' }\n' +
|
|
780
|
-
'});\n' +
|
|
781
|
-
'const { agents } = await response.json();\n' +
|
|
782
|
-
'// → [{ id, name, email, role, status, createdAt }]'
|
|
783
|
-
),
|
|
784
|
-
h('p', { className: 'text-sm mb-2', style: { fontWeight: 600 } }, 'Authentication'),
|
|
785
|
-
h('div', { className: 'code-block mb-3' },
|
|
786
|
-
'// Option 1: JWT token (from /auth/login)\n' +
|
|
787
|
-
'headers: { "Authorization": "Bearer eyJhbGci..." }\n\n' +
|
|
788
|
-
'// Option 2: API key (from Settings > API Keys)\n' +
|
|
789
|
-
'headers: { "X-API-Key": "ak_your_key_here" }'
|
|
790
|
-
),
|
|
791
|
-
h('p', { className: 'text-sm mb-2', style: { fontWeight: 600 } }, 'Response Format'),
|
|
792
|
-
h('p', { className: 'text-sm text-muted mb-2' }, 'All endpoints return JSON. Errors include an "error" field with a human-readable message. Successful responses return the data directly.'),
|
|
793
|
-
h('p', { className: 'text-sm' }, 'Full API reference and example implementations in 8 languages at ', h('a', { href: 'https://github.com/agenticmail/agenticmail/tree/main/packages/enterprise/dashboards', target: '_blank', style: { color: 'var(--accent)' } }, 'GitHub'))
|
|
794
|
-
)
|
|
795
|
-
)
|
|
796
|
-
);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
// ════════════════════════════════════════════════════════
|
|
800
|
-
// APP SHELL
|
|
801
|
-
// ════════════════════════════════════════════════════════
|
|
802
|
-
|
|
803
|
-
function App() {
|
|
804
|
-
const [authed, setAuthed] = useState(!!token);
|
|
805
|
-
const [page, setPage] = useState('dashboard');
|
|
806
|
-
const [toast, setToast] = useState(null);
|
|
807
|
-
const { theme, toggle, isDark } = useTheme();
|
|
808
|
-
|
|
809
|
-
const showToast = (message, type = 'info') => setToast({ message, type });
|
|
810
|
-
|
|
811
|
-
if (!authed) return h(LoginPage, { onLogin: () => setAuthed(true) });
|
|
812
|
-
|
|
813
|
-
const nav = [
|
|
814
|
-
{ section: 'Overview' },
|
|
815
|
-
{ id: 'dashboard', label: 'Dashboard', icon: Icons.dashboard },
|
|
816
|
-
{ id: 'agents', label: 'Agents', icon: Icons.agents },
|
|
817
|
-
{ section: 'Configuration' },
|
|
818
|
-
{ id: 'skills', label: 'Skills & Permissions', icon: Icons.skills },
|
|
819
|
-
{ id: 'knowledge', label: 'Knowledge Bases', icon: Icons.kb },
|
|
820
|
-
{ section: 'Operations' },
|
|
821
|
-
{ id: 'activity', label: 'Activity & Audit', icon: Icons.activity },
|
|
822
|
-
{ id: 'approvals', label: 'Approvals', icon: Icons.approvals },
|
|
823
|
-
{ section: 'System' },
|
|
824
|
-
{ id: 'settings', label: 'Settings', icon: Icons.settings },
|
|
825
|
-
];
|
|
826
|
-
|
|
827
|
-
const pages = {
|
|
828
|
-
dashboard: h(DashboardPage),
|
|
829
|
-
agents: h(AgentsPage, { showToast }),
|
|
830
|
-
skills: h(SkillsPage),
|
|
831
|
-
knowledge: h(KnowledgeBasePage),
|
|
832
|
-
activity: h(ActivityPage),
|
|
833
|
-
approvals: h(ApprovalsPage, { showToast }),
|
|
834
|
-
settings: h(SettingsPage),
|
|
835
|
-
};
|
|
836
|
-
|
|
837
|
-
return h(Fragment, null,
|
|
838
|
-
// Sidebar
|
|
839
|
-
h('nav', { className: 'sidebar' },
|
|
840
|
-
h('div', { className: 'sidebar-header' },
|
|
841
|
-
h('h1', null, '🎀 AgenticMail ', h('span', { className: 'text-muted', style: { fontWeight: 400 } }, 'Enterprise')),
|
|
842
|
-
h('p', null, 'AI Agent Management')
|
|
843
|
-
),
|
|
844
|
-
h('div', { className: 'sidebar-nav' },
|
|
845
|
-
nav.map((item, i) =>
|
|
846
|
-
item.section ? h('div', { key: i, className: 'nav-group' }, item.section) :
|
|
847
|
-
h('button', { key: item.id, className: `nav-item ${page === item.id ? 'active' : ''}`, onClick: () => setPage(item.id) },
|
|
848
|
-
item.icon(), h('span', null, item.label)
|
|
849
|
-
)
|
|
850
|
-
)
|
|
851
|
-
),
|
|
852
|
-
h('div', { className: 'sidebar-footer' },
|
|
853
|
-
h('button', { className: 'nav-item', onClick: toggle, title: `Theme: ${theme}` }, isDark ? Icons.sun() : Icons.moon(), h('span', null, isDark ? 'Light Mode' : 'Dark Mode')),
|
|
854
|
-
h('button', { className: 'nav-item', onClick: () => { token = null; localStorage.removeItem('am_token'); setAuthed(false); } }, Icons.logout(), h('span', null, 'Sign Out'))
|
|
855
|
-
)
|
|
856
|
-
),
|
|
857
|
-
// Main
|
|
858
|
-
h('div', { className: 'main' },
|
|
859
|
-
h('div', { className: 'topbar' },
|
|
860
|
-
h('div', { className: 'topbar-left' },
|
|
861
|
-
h('span', { className: 'text-sm text-muted' }, nav.find(n => n.id === page)?.label || 'Dashboard')
|
|
862
|
-
),
|
|
863
|
-
h('div', { className: 'topbar-right' },
|
|
864
|
-
h('a', { href: 'https://github.com/agenticmail/agenticmail', target: '_blank', className: 'btn btn-ghost btn-sm', title: 'Documentation' }, Icons.api(), h('span', { className: 'text-sm' }, 'API Docs'))
|
|
865
|
-
)
|
|
866
|
-
),
|
|
867
|
-
h('div', { className: 'content' }, pages[page] || h('div', null, 'Page not found'))
|
|
868
|
-
),
|
|
869
|
-
// Toast
|
|
870
|
-
toast && h(Toast, { ...toast, onDone: () => setToast(null) })
|
|
871
|
-
);
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
// ════════════════════════════════════════════════════════
|
|
875
|
-
// MOUNT
|
|
876
|
-
// ════════════════════════════════════════════════════════
|
|
877
|
-
|
|
878
|
-
ReactDOM.createRoot(document.getElementById('root')).render(h(App));
|
|
879
|
-
</script>
|
|
411
|
+
<div id="root"></div>
|
|
412
|
+
<script type="module" src="/dashboard/app.js"></script>
|
|
880
413
|
</body>
|
|
881
414
|
</html>
|