@k2b/cloud 0.6.0-rc.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/README.md +98 -0
- package/package.json +128 -0
- package/public/logo.svg +1 -0
- package/scripts/app-favicon.test.ts +49 -0
- package/scripts/app-favicon.ts +51 -0
- package/scripts/build.ts +205 -0
- package/scripts/preload.ts +164 -0
- package/scripts/sync-recovery-smoke.ts +200 -0
- package/src/_internal/app-favicon.ts +2 -0
- package/src/_internal/app-presentation.ts +61 -0
- package/src/_internal/app-workspace-state.ts +24 -0
- package/src/_internal/bounded-json.ts +47 -0
- package/src/_internal/build-metadata.ts +9 -0
- package/src/_internal/capabilities.ts +1118 -0
- package/src/_internal/define-app.ts +801 -0
- package/src/_internal/heartbeat.ts +167 -0
- package/src/_internal/help-catalog.ts +241 -0
- package/src/_internal/help.ts +95 -0
- package/src/_internal/nats-connection.ts +34 -0
- package/src/_internal/page-responses.ts +40 -0
- package/src/_internal/process-sync.ts +117 -0
- package/src/_internal/readiness.ts +3 -0
- package/src/_internal/registry-validation.ts +136 -0
- package/src/_internal/registry-watch.ts +52 -0
- package/src/_internal/registry.ts +338 -0
- package/src/_internal/runtime-compatibility.ts +64 -0
- package/src/_internal/runtime-context.ts +84 -0
- package/src/_internal/runtime-watcher.ts +78 -0
- package/src/_internal/static-assets.ts +86 -0
- package/src/_internal/status-preserving-ssr.ts +49 -0
- package/src/access/PermissionEditor.tsx +486 -0
- package/src/access/ResourceApiKeys.tsx +271 -0
- package/src/access/messages.ts +121 -0
- package/src/access/ui.ts +16 -0
- package/src/account/Avatar.tsx +28 -0
- package/src/account/EntitySearch.tsx +363 -0
- package/src/account/avatar-upload-dialog.tsx +197 -0
- package/src/account/avatar-upload.ts +149 -0
- package/src/account/ui.ts +3 -0
- package/src/ai/admin.ts +47 -0
- package/src/ai/approval-routes.ts +130 -0
- package/src/ai/approvals.ts +139 -0
- package/src/ai/assistant-models.ts +61 -0
- package/src/ai/attachments.ts +40 -0
- package/src/ai/browser.ts +92 -0
- package/src/ai/capabilities.ts +714 -0
- package/src/ai/capability-execution.ts +151 -0
- package/src/ai/chat/blocks.render.test.tsx +1108 -0
- package/src/ai/chat/blocks.tsx +730 -0
- package/src/ai/chat/builtin-tools.tsx +428 -0
- package/src/ai/chat/capability-table.tsx +87 -0
- package/src/ai/chat/composer-adapter.ts +169 -0
- package/src/ai/chat/file-tools.tsx +81 -0
- package/src/ai/chat/message-actions.tsx +370 -0
- package/src/ai/chat/message-utils.ts +479 -0
- package/src/ai/chat/messages.ts +43 -0
- package/src/ai/chat/presentation.tsx +395 -0
- package/src/ai/chat/primitives.tsx +3 -0
- package/src/ai/chat/tool-disclosure.tsx +41 -0
- package/src/ai/chat/turn-navigator-utils.ts +28 -0
- package/src/ai/chat/turn-navigator.tsx +164 -0
- package/src/ai/chat/user-message.tsx +149 -0
- package/src/ai/chat/visual-tools.tsx +435 -0
- package/src/ai/chat/web-tools.tsx +202 -0
- package/src/ai/chat-task-contracts.ts +113 -0
- package/src/ai/chat-tasks.ts +952 -0
- package/src/ai/client/controller.ts +1211 -0
- package/src/ai/client/file-source.ts +95 -0
- package/src/ai/client/live-connection.ts +140 -0
- package/src/ai/client/projection.ts +178 -0
- package/src/ai/client/transport.ts +111 -0
- package/src/ai/compaction.ts +182 -0
- package/src/ai/credentials.ts +124 -0
- package/src/ai/default-tool-contracts.ts +108 -0
- package/src/ai/default-tools.ts +127 -0
- package/src/ai/enrich.ts +280 -0
- package/src/ai/executor.ts +1624 -0
- package/src/ai/fetch-file-tool.ts +313 -0
- package/src/ai/file-context.ts +92 -0
- package/src/ai/file-media-type.ts +28 -0
- package/src/ai/file-mount.ts +16 -0
- package/src/ai/file-tools.ts +566 -0
- package/src/ai/files-store.ts +390 -0
- package/src/ai/firecrawl-tools.ts +305 -0
- package/src/ai/grids-skill.ts +126 -0
- package/src/ai/http.ts +265 -0
- package/src/ai/index.ts +337 -0
- package/src/ai/kit-skill.ts +22 -0
- package/src/ai/limits.ts +5 -0
- package/src/ai/live-events.ts +289 -0
- package/src/ai/live-messages.ts +45 -0
- package/src/ai/live-outbox.ts +102 -0
- package/src/ai/live-routes.ts +412 -0
- package/src/ai/live.ts +2 -0
- package/src/ai/maintenance.ts +302 -0
- package/src/ai/markdown-pdf-tool.ts +95 -0
- package/src/ai/memories.ts +605 -0
- package/src/ai/memory-learning-runs.ts +222 -0
- package/src/ai/memory-learning.ts +619 -0
- package/src/ai/memory-tool.ts +120 -0
- package/src/ai/memory-workflow-evidence.ts +158 -0
- package/src/ai/migrate.ts +2082 -0
- package/src/ai/model-access-migrate.ts +30 -0
- package/src/ai/model-access.ts +191 -0
- package/src/ai/personal-agent.ts +6 -0
- package/src/ai/prefs.ts +72 -0
- package/src/ai/project-tool.ts +94 -0
- package/src/ai/projects-routes.ts +277 -0
- package/src/ai/projects.ts +902 -0
- package/src/ai/protocol.ts +279 -0
- package/src/ai/provider.ts +73 -0
- package/src/ai/public-projection.ts +25 -0
- package/src/ai/resource-markers.ts +31 -0
- package/src/ai/resource-refs.ts +70 -0
- package/src/ai/routes.ts +1131 -0
- package/src/ai/runtime-tools.ts +39 -0
- package/src/ai/runtime.ts +544 -0
- package/src/ai/settings.ts +529 -0
- package/src/ai/short-id.ts +45 -0
- package/src/ai/skill-catalog.ts +73 -0
- package/src/ai/skill-format.ts +145 -0
- package/src/ai/skill-seeds.ts +430 -0
- package/src/ai/skill-tool.ts +81 -0
- package/src/ai/skills-routes.ts +143 -0
- package/src/ai/skills.ts +934 -0
- package/src/ai/solid.ts +27 -0
- package/src/ai/store.ts +3113 -0
- package/src/ai/stream.ts +308 -0
- package/src/ai/structured-runs.ts +66 -0
- package/src/ai/structured.ts +186 -0
- package/src/ai/system-prompt.ts +170 -0
- package/src/ai/task-prompt.ts +22 -0
- package/src/ai/timeline.ts +148 -0
- package/src/ai/tool-audit.ts +177 -0
- package/src/ai/tool-result-budget.ts +16 -0
- package/src/ai/tools.ts +155 -0
- package/src/ai/types.ts +967 -0
- package/src/ai/ui.tsx +39 -0
- package/src/ai/usage-migrate.ts +81 -0
- package/src/ai/usage.ts +315 -0
- package/src/ai/validate.ts +54 -0
- package/src/ai/vision-tool.ts +79 -0
- package/src/api/accounts-entities.ts +174 -0
- package/src/api/admin-ai-projects.ts +74 -0
- package/src/api/admin-ai-skills.ts +76 -0
- package/src/api/admin-ai-usage.ts +42 -0
- package/src/api/admin-core-settings.ts +508 -0
- package/src/api/admin-identity.ts +148 -0
- package/src/api/admin-lifecycle.ts +206 -0
- package/src/api/admin-linux-identities.ts +66 -0
- package/src/api/announcements.ts +131 -0
- package/src/api/app-approval.ts +129 -0
- package/src/api/apps.ts +51 -0
- package/src/api/auth/schemas.ts +54 -0
- package/src/api/auth.ts +370 -0
- package/src/api/capabilities.ts +658 -0
- package/src/api/help-messages.ts +19 -0
- package/src/api/help.ts +78 -0
- package/src/api/index.ts +108 -0
- package/src/api/mcp.ts +744 -0
- package/src/api/me-rail.ts +45 -0
- package/src/api/me.ts +753 -0
- package/src/api/search/schemas.ts +79 -0
- package/src/api/search.bench.ts +185 -0
- package/src/api/search.ts +407 -0
- package/src/api/sync-ops.ts +79 -0
- package/src/api/widgets.ts +143 -0
- package/src/browser/CloudResourceSearch.behavior.test.tsx +74 -0
- package/src/browser/CloudResourceSearch.tsx +791 -0
- package/src/browser/app-approval-vault.ts +305 -0
- package/src/browser/app-approval.ts +234 -0
- package/src/browser/live-websocket.ts +268 -0
- package/src/browser/locale-preference.ts +25 -0
- package/src/browser/notification-target.ts +27 -0
- package/src/browser/notification-timeout.ts +14 -0
- package/src/browser/notifications.ts +181 -0
- package/src/browser/resource-clipboard.ts +70 -0
- package/src/browser/resource-picker.tsx +39 -0
- package/src/browser/resource-search-messages.ts +55 -0
- package/src/browser/resource-search.ts +27 -0
- package/src/capabilities/client.ts +149 -0
- package/src/capabilities/response.ts +39 -0
- package/src/capabilities/server.ts +215 -0
- package/src/capabilities/signals.ts +4 -0
- package/src/capabilities/testing.ts +12 -0
- package/src/capabilities/types.ts +32 -0
- package/src/cli/access.ts +499 -0
- package/src/cli/account.ts +382 -0
- package/src/cli/admin/account-administration.ts +45 -0
- package/src/cli/admin/account-categories.ts +49 -0
- package/src/cli/admin/ai-usage.ts +118 -0
- package/src/cli/admin/app-sign-in.ts +49 -0
- package/src/cli/admin/data.ts +343 -0
- package/src/cli/admin/documentation.ts +34 -0
- package/src/cli/admin/gateway.ts +155 -0
- package/src/cli/admin/index.ts +61 -0
- package/src/cli/admin/instance.ts +250 -0
- package/src/cli/admin/jobs.ts +223 -0
- package/src/cli/admin/legal.ts +122 -0
- package/src/cli/admin/linux.ts +53 -0
- package/src/cli/admin/logs.ts +324 -0
- package/src/cli/admin/metrics.ts +142 -0
- package/src/cli/admin/nats.ts +167 -0
- package/src/cli/admin/notifications.ts +516 -0
- package/src/cli/admin/shared.ts +113 -0
- package/src/cli/admin/sync.ts +188 -0
- package/src/cli/admin/telemetry.ts +314 -0
- package/src/cli/admin/webhooks.ts +222 -0
- package/src/cli/admin/workflows.ts +367 -0
- package/src/cli/apps.ts +40 -0
- package/src/cli/capabilities.ts +239 -0
- package/src/cli/commands.ts +604 -0
- package/src/cli/index.ts +61 -0
- package/src/cli/locale.ts +31 -0
- package/src/cli/output.ts +58 -0
- package/src/clients/core.ts +20 -0
- package/src/config/env.ts +54 -0
- package/src/config/index.ts +6 -0
- package/src/contracts/account-categories.ts +62 -0
- package/src/contracts/announcements.ts +121 -0
- package/src/contracts/app-approval.ts +197 -0
- package/src/contracts/app.ts +162 -0
- package/src/contracts/capabilities.ts +484 -0
- package/src/contracts/index.ts +14 -0
- package/src/contracts/notification-live.ts +66 -0
- package/src/contracts/notification-types.ts +235 -0
- package/src/contracts/posix.ts +69 -0
- package/src/contracts/profile.ts +85 -0
- package/src/contracts/rail-preferences.ts +53 -0
- package/src/contracts/registry.ts +110 -0
- package/src/contracts/resource-clipboard.ts +33 -0
- package/src/contracts/settings-types.ts +98 -0
- package/src/contracts/shared.ts +408 -0
- package/src/contracts/user-notifications.ts +101 -0
- package/src/contracts/widgets.ts +183 -0
- package/src/desktop/index.ts +704 -0
- package/src/desktop/solid.tsx +938 -0
- package/src/index.ts +58 -0
- package/src/server/actor.ts +41 -0
- package/src/server/api/index.ts +2 -0
- package/src/server/api/respond.ts +96 -0
- package/src/server/api-client.ts +54 -0
- package/src/server/app-context.ts +39 -0
- package/src/server/help.ts +187 -0
- package/src/server/index.ts +89 -0
- package/src/server/locale.ts +55 -0
- package/src/server/middleware/auth.ts +386 -0
- package/src/server/middleware/index.ts +28 -0
- package/src/server/middleware/invocation.ts +55 -0
- package/src/server/middleware/middleware.ts +65 -0
- package/src/server/middleware/openapi.ts +126 -0
- package/src/server/middleware/rate-limit.ts +125 -0
- package/src/server/middleware/request-logger.ts +41 -0
- package/src/server/middleware/route-template.ts +46 -0
- package/src/server/middleware/runtime.ts +22 -0
- package/src/server/middleware/settings.ts +55 -0
- package/src/server/middleware/validator.ts +49 -0
- package/src/server/middleware/workload.ts +22 -0
- package/src/server/ratelimit.ts +151 -0
- package/src/server/request-cookies.ts +18 -0
- package/src/server/services/access.ts +644 -0
- package/src/server/services/freeipa/client.ts +137 -0
- package/src/server/services/freeipa/index.ts +9 -0
- package/src/server/services/freeipa/session.ts +123 -0
- package/src/server/services/freeipa/test-certificates.ts +44 -0
- package/src/server/services/freeipa/tls.ts +44 -0
- package/src/server/services/freeipa/transport.ts +116 -0
- package/src/server/services/freeipa/util.ts +59 -0
- package/src/server/services/geo.ts +198 -0
- package/src/server/services/index.ts +48 -0
- package/src/server/services/pagination.ts +22 -0
- package/src/server/services/services.ts +13 -0
- package/src/server/time.ts +33 -0
- package/src/services/account-category-policy.ts +51 -0
- package/src/services/account-lifecycle/audit.ts +41 -0
- package/src/services/account-lifecycle/index.ts +940 -0
- package/src/services/account-lifecycle/ipa-backfill.ts +152 -0
- package/src/services/account-lifecycle/notification-sender.ts +13 -0
- package/src/services/account-lifecycle/scheduler.ts +506 -0
- package/src/services/account-model.ts +22 -0
- package/src/services/accounts/app.ts +1671 -0
- package/src/services/accounts/authz.ts +44 -0
- package/src/services/accounts/avatar.ts +120 -0
- package/src/services/accounts/base-group.ts +11 -0
- package/src/services/accounts/base-user.ts +46 -0
- package/src/services/accounts/duplicate-emails.ts +82 -0
- package/src/services/accounts/entities.ts +622 -0
- package/src/services/accounts/group-sql.ts +106 -0
- package/src/services/accounts/groups.ts +272 -0
- package/src/services/accounts/index.ts +14 -0
- package/src/services/accounts/ipa-data.ts +66 -0
- package/src/services/accounts/lifecycle.ts +2 -0
- package/src/services/accounts/local-groups.ts +499 -0
- package/src/services/accounts/model.ts +129 -0
- package/src/services/accounts/notification-sender.ts +31 -0
- package/src/services/accounts/posix.ts +386 -0
- package/src/services/accounts/request-policy.ts +11 -0
- package/src/services/accounts/switching.ts +126 -0
- package/src/services/accounts/users.ts +745 -0
- package/src/services/announcements/index.ts +224 -0
- package/src/services/app-approval.ts +498 -0
- package/src/services/audit/index.ts +438 -0
- package/src/services/auth-flows/index.ts +15 -0
- package/src/services/auth-flows/ipa.ts +197 -0
- package/src/services/auth-flows/magic-link.ts +185 -0
- package/src/services/auth-flows/notification-sender.ts +10 -0
- package/src/services/auth-flows/password-reset.ts +268 -0
- package/src/services/auth-flows/proxy-return.ts +49 -0
- package/src/services/document-extraction.ts +148 -0
- package/src/services/freeipa-config.ts +179 -0
- package/src/services/gateway.ts +186 -0
- package/src/services/identity/constants.ts +18 -0
- package/src/services/identity/index.ts +52 -0
- package/src/services/identity/invocation-actor.ts +120 -0
- package/src/services/identity/invocation-authority.ts +53 -0
- package/src/services/identity/invocation-operations.ts +15 -0
- package/src/services/identity/invocation-token.ts +276 -0
- package/src/services/identity/key-config.ts +41 -0
- package/src/services/identity/key-ring.ts +530 -0
- package/src/services/identity/metrics.ts +29 -0
- package/src/services/identity/routes.ts +18 -0
- package/src/services/identity/runtime-config.ts +88 -0
- package/src/services/identity/session-token.ts +152 -0
- package/src/services/identity/signer-refresh.ts +44 -0
- package/src/services/identity/workload-auth.ts +64 -0
- package/src/services/index.ts +187 -0
- package/src/services/ipa/auth.ts +216 -0
- package/src/services/ipa/connection.ts +57 -0
- package/src/services/ipa/effective-groups.ts +70 -0
- package/src/services/ipa/groups.ts +722 -0
- package/src/services/ipa/guard.ts +17 -0
- package/src/services/ipa/index.ts +17 -0
- package/src/services/ipa/posix.ts +19 -0
- package/src/services/ipa/profile.ts +132 -0
- package/src/services/ipa/runtime.ts +28 -0
- package/src/services/ipa/search.ts +154 -0
- package/src/services/ipa/service-account.ts +15 -0
- package/src/services/ipa/sync-planning.ts +100 -0
- package/src/services/ipa/sync.ts +862 -0
- package/src/services/ipa/users.ts +806 -0
- package/src/services/legal-consent.ts +76 -0
- package/src/services/logging/index.ts +477 -0
- package/src/services/logging/redaction.ts +20 -0
- package/src/services/logging/trace.ts +1231 -0
- package/src/services/mandates/index.ts +855 -0
- package/src/services/mandates/policy.ts +85 -0
- package/src/services/network-security.ts +31 -0
- package/src/services/notifications/batches.ts +722 -0
- package/src/services/notifications/browser.ts +252 -0
- package/src/services/notifications/catalog.ts +113 -0
- package/src/services/notifications/channels.ts +104 -0
- package/src/services/notifications/dispatcher.ts +139 -0
- package/src/services/notifications/email.ts +118 -0
- package/src/services/notifications/index.ts +633 -0
- package/src/services/notifications/live.ts +50 -0
- package/src/services/notifications/observability.ts +407 -0
- package/src/services/notifications/platform.ts +421 -0
- package/src/services/notifications/runtime.ts +120 -0
- package/src/services/notifications/user.ts +248 -0
- package/src/services/notifications/web-push-transport.ts +135 -0
- package/src/services/oauth-tokens.ts +209 -0
- package/src/services/outbox.ts +187 -0
- package/src/services/pdf/gotenberg.ts +290 -0
- package/src/services/pdf/index.ts +43 -0
- package/src/services/pdf/markdown.ts +209 -0
- package/src/services/pdf/template-preview.ts +122 -0
- package/src/services/postgres.ts +76 -0
- package/src/services/providers/index.ts +27 -0
- package/src/services/providers/local/auth.ts +51 -0
- package/src/services/providers/local/index.ts +4 -0
- package/src/services/providers/local/users.ts +263 -0
- package/src/services/rail-preferences.ts +27 -0
- package/src/services/runtime-lifecycle.ts +191 -0
- package/src/services/secrets.ts +10 -0
- package/src/services/service-account-credentials.ts +891 -0
- package/src/services/service-accounts.ts +184 -0
- package/src/services/session/index.ts +236 -0
- package/src/services/session/test-fixture.ts +18 -0
- package/src/services/session/user.ts +144 -0
- package/src/services/settings/api.ts +61 -0
- package/src/services/settings/app.ts +86 -0
- package/src/services/settings/core-settings.ts +796 -0
- package/src/services/settings/crypto.ts +69 -0
- package/src/services/settings/defaults.ts +374 -0
- package/src/services/settings/index.ts +215 -0
- package/src/services/settings/namespace.ts +9 -0
- package/src/services/settings/snapshot.ts +49 -0
- package/src/services/settings/store.ts +241 -0
- package/src/services/settings/templates.ts +4 -0
- package/src/services/sync-ops.ts +403 -0
- package/src/services/topic-cursor.ts +22 -0
- package/src/services/weather/forecast.ts +323 -0
- package/src/services/weather/geo.ts +119 -0
- package/src/services/weather/index.ts +67 -0
- package/src/services/weather/location.ts +24 -0
- package/src/services/weather/locations.ts +133 -0
- package/src/services/weather/migrate.ts +45 -0
- package/src/services/weather/settings.ts +66 -0
- package/src/services/weather/short-id.ts +57 -0
- package/src/services/weather/types.ts +61 -0
- package/src/services/weather/ui.ts +50 -0
- package/src/services/webauthn.ts +385 -0
- package/src/shared/account-action-notice.ts +70 -0
- package/src/shared/account-display.ts +15 -0
- package/src/shared/account-session.ts +15 -0
- package/src/shared/ai-platform-prompt.ts +134 -0
- package/src/shared/ai-usage.ts +49 -0
- package/src/shared/app-presentation.ts +48 -0
- package/src/shared/app-url.ts +12 -0
- package/src/shared/branding.ts +14 -0
- package/src/shared/capability-messages.ts +70 -0
- package/src/shared/email-html.ts +54 -0
- package/src/shared/format.ts +91 -0
- package/src/shared/help.ts +68 -0
- package/src/shared/icons.ts +400 -0
- package/src/shared/index.ts +54 -0
- package/src/shared/locale.ts +48 -0
- package/src/shared/login-method.ts +44 -0
- package/src/shared/markdown/client.ts +130 -0
- package/src/shared/markdown/extensions/code.ts +105 -0
- package/src/shared/markdown/extensions/guided-help.ts +100 -0
- package/src/shared/markdown/extensions/images.ts +79 -0
- package/src/shared/markdown/extensions/info-blocks.ts +97 -0
- package/src/shared/markdown/extensions/katex.ts +120 -0
- package/src/shared/markdown/extensions/links.ts +43 -0
- package/src/shared/markdown/extensions/mark.ts +48 -0
- package/src/shared/markdown/extensions/sub-sup.ts +60 -0
- package/src/shared/markdown/extensions/tables.ts +109 -0
- package/src/shared/markdown/extensions/task-list.ts +53 -0
- package/src/shared/markdown/formula.ts +1187 -0
- package/src/shared/markdown/index.ts +193 -0
- package/src/shared/markdown/shared.ts +36 -0
- package/src/shared/mock-cover.ts +130 -0
- package/src/shared/network-address.ts +106 -0
- package/src/shared/redirect.ts +56 -0
- package/src/shared/template-rendering.ts +140 -0
- package/src/shared/theme.ts +68 -0
- package/src/shared/time.ts +13 -0
- package/src/ssr/AdminLayout.tsx +53 -0
- package/src/ssr/AdminSidebar.tsx +50 -0
- package/src/ssr/AppLaunchpad.island.tsx +236 -0
- package/src/ssr/AppWorkspaceController.island.tsx +21 -0
- package/src/ssr/BrowserNotifications.island.tsx +135 -0
- package/src/ssr/GlobalAnnouncements.island.tsx +142 -0
- package/src/ssr/GlobalSearchDialog.behavior.test.tsx +96 -0
- package/src/ssr/GlobalSearchDialog.tsx +35 -0
- package/src/ssr/GlobalSearchHelpDialog.tsx +104 -0
- package/src/ssr/GlobalSearchTrigger.island.tsx +55 -0
- package/src/ssr/HotkeysHelpRail.island.tsx +55 -0
- package/src/ssr/Layout.render.test.tsx +148 -0
- package/src/ssr/Layout.tsx +292 -0
- package/src/ssr/LayoutBreadcrumbs.island.tsx +44 -0
- package/src/ssr/LayoutFooter.tsx +22 -0
- package/src/ssr/LayoutHeader.tsx +81 -0
- package/src/ssr/LayoutHelp.tsx +869 -0
- package/src/ssr/LayoutPreferences.island.tsx +36 -0
- package/src/ssr/LayoutRail.tsx +58 -0
- package/src/ssr/MinimalLayout.tsx +46 -0
- package/src/ssr/PageError.tsx +29 -0
- package/src/ssr/ProfilePreferences.island.tsx +92 -0
- package/src/ssr/RailApps.island.tsx +61 -0
- package/src/ssr/RailEditor.tsx +293 -0
- package/src/ssr/RegisteredHelpDocuments.island.tsx +3 -0
- package/src/ssr/TimezoneCookie.island.tsx +23 -0
- package/src/ssr/admin-active-link.ts +47 -0
- package/src/ssr/admin-navigation.ts +78 -0
- package/src/ssr/app-appearance.ts +23 -0
- package/src/ssr/app-navigation.ts +41 -0
- package/src/ssr/help-messages.ts +104 -0
- package/src/ssr/index.ts +14 -0
- package/src/ssr/islands/SearchBar.island.tsx +80 -0
- package/src/ssr/islands/index.ts +16 -0
- package/src/ssr/layout-context.ts +17 -0
- package/src/ssr/layout-help-markdown.ts +9 -0
- package/src/ssr/layout-help-navigation.ts +24 -0
- package/src/ssr/layout-help-url.ts +5 -0
- package/src/ssr/layout-runtime.ts +22 -0
- package/src/ssr/page-error-messages.ts +25 -0
- package/src/ssr/platform-messages.ts +135 -0
- package/src/ssr/preference-controller.ts +44 -0
- package/src/ssr/profile-preferences-messages.ts +29 -0
- package/src/ssr/rail-context.ts +21 -0
- package/src/ssr/rail-messages.ts +66 -0
- package/src/ssr/rail-navigation.ts +60 -0
- package/src/ssr/runtime.ts +31 -0
- package/src/ssr/url-filter.ts +127 -0
- package/src/styles/base-popover.css +36 -0
- package/src/styles/effects.css +851 -0
- package/src/styles/global.css +268 -0
- package/src/styles/input.css +58 -0
- package/src/styles/tokens.css +230 -0
- package/src/styles/utilities-buttons.css +405 -0
- package/src/styles/utilities-data.css +33 -0
- package/src/styles/utilities-feedback.css +232 -0
- package/src/styles/utilities-layout.css +603 -0
- package/src/styles/utilities-markdown-editor.css +525 -0
- package/src/styles/utilities-markdown-table.css +234 -0
- package/src/styles/utilities-navigation.css +1054 -0
- package/src/types/ambient.d.ts +24 -0
- package/src/workflows/ai/index.ts +17 -0
- package/src/workflows/ai/runtime.ts +286 -0
- package/src/workflows/ai/store.ts +314 -0
- package/src/workflows/ai/types.ts +111 -0
- package/src/workflows/ai-actions.ts +269 -0
- package/src/workflows/authoring.ts +88 -0
- package/src/workflows/builtins.ts +193 -0
- package/src/workflows/contracts.ts +280 -0
- package/src/workflows/definition.ts +334 -0
- package/src/workflows/editor.ts +113 -0
- package/src/workflows/index.ts +71 -0
- package/src/workflows/language/binder.ts +45 -0
- package/src/workflows/language/canonical.ts +29 -0
- package/src/workflows/language/compiler.ts +396 -0
- package/src/workflows/language/expressions.ts +34 -0
- package/src/workflows/language/index.ts +20 -0
- package/src/workflows/language/references.ts +55 -0
- package/src/workflows/language/schema.ts +134 -0
- package/src/workflows/language/strict-yaml.ts +131 -0
- package/src/workflows/manifest.ts +24 -0
- package/src/workflows/module.ts +12 -0
- package/src/workflows/runtime/coordinator.ts +115 -0
- package/src/workflows/runtime/executor.ts +1003 -0
- package/src/workflows/runtime/index.ts +60 -0
- package/src/workflows/runtime/instant.ts +8 -0
- package/src/workflows/runtime/ports.ts +213 -0
- package/src/workflows/runtime/schedule.ts +203 -0
- package/src/workflows/runtime/trigger.ts +37 -0
- package/src/workflows/runtime/wake.ts +13 -0
- package/src/workflows/store/actions.ts +438 -0
- package/src/workflows/store/budget.ts +145 -0
- package/src/workflows/store/definitions.ts +345 -0
- package/src/workflows/store/events.ts +383 -0
- package/src/workflows/store/index.ts +107 -0
- package/src/workflows/store/observability.ts +594 -0
- package/src/workflows/store/runs.ts +975 -0
- package/src/workflows/store/transaction.ts +23 -0
- package/src/workflows/store/worker.ts +439 -0
- package/src/workflows/testing/conformance.ts +72 -0
- package/src/workflows/testing/index.ts +11 -0
- package/src/workflows/testing/process-fixtures.ts +275 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Curated Tabler-icon catalogue for use in icon pickers.
|
|
3
|
+
*
|
|
4
|
+
* Each entry holds:
|
|
5
|
+
* - `id` — the full Tabler class string ("ti ti-foo"). Used as the
|
|
6
|
+
* stored value in DB / config so consumers can render
|
|
7
|
+
* directly via `<i class={value}>` without having to
|
|
8
|
+
* prepend the family class. Render sites that DO prepend
|
|
9
|
+
* `ti ` produce a duplicate-token (`ti ti ti-foo`) which
|
|
10
|
+
* the browser's classList tolerates as a no-op.
|
|
11
|
+
* - `label` — primary display name shown in the picker.
|
|
12
|
+
* - `icon` — same string as `id`. Kept as a separate field so the
|
|
13
|
+
* generic `SelectInput` can pick it up via its
|
|
14
|
+
* `option.icon` slot for the dropdown glyph.
|
|
15
|
+
* - `keywords`— synonym list used by the fuzzy-search picker. Includes
|
|
16
|
+
* the bare icon name, common alternative names, symbol
|
|
17
|
+
* forms ("€", "$"), and adjacent concepts ("money",
|
|
18
|
+
* "cash" for currency icons). English only — KISS.
|
|
19
|
+
*
|
|
20
|
+
* Categories below are sorted top-down by the order common dashboards
|
|
21
|
+
* tend to reach for; within each category entries are alphabetical.
|
|
22
|
+
*
|
|
23
|
+
* Size budget: ~250 entries, ~15-20 KB of inlined JSON. Bigger lists
|
|
24
|
+
* would warrant a lazy-load strategy or generated data, but at this
|
|
25
|
+
* size the convenience of a bundled-in module beats both.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
export type IconOption = {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
keywords: string[];
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const E = (id: string, label: string, keywords: string[]): IconOption => ({
|
|
36
|
+
id: `ti ti-${id}`,
|
|
37
|
+
label,
|
|
38
|
+
icon: `ti ti-${id}`,
|
|
39
|
+
keywords: [id, ...keywords],
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export const ICON_OPTIONS: IconOption[] = [
|
|
43
|
+
// ── Finance & Money ──────────────────────────────────────────────
|
|
44
|
+
E("currency-euro", "Euro", ["euro", "currency", "money", "cash", "€", "eur"]),
|
|
45
|
+
E("currency-dollar", "Dollar", ["dollar", "currency", "money", "cash", "$", "usd"]),
|
|
46
|
+
E("currency-pound", "Pound", ["pound", "currency", "money", "£", "gbp"]),
|
|
47
|
+
E("currency-yen", "Yen", ["yen", "currency", "money", "¥", "jpy"]),
|
|
48
|
+
E("currency-bitcoin", "Bitcoin", ["bitcoin", "btc", "crypto", "currency"]),
|
|
49
|
+
E("coin", "Coin", ["coin", "money", "cash", "currency"]),
|
|
50
|
+
E("coins", "Coins", ["coins", "money", "cash", "currency", "stack"]),
|
|
51
|
+
E("cash", "Cash", ["cash", "money", "bill", "banknote"]),
|
|
52
|
+
E("wallet", "Wallet", ["wallet", "money", "cash", "purse", "billfold"]),
|
|
53
|
+
E("credit-card", "Credit Card", ["card", "credit", "debit", "payment", "money"]),
|
|
54
|
+
E("receipt", "Receipt", ["receipt", "bill", "invoice", "purchase"]),
|
|
55
|
+
E("percentage", "Percent", ["percent", "percentage", "%", "discount", "rate"]),
|
|
56
|
+
E("calculator", "Calculator", ["calculator", "math", "calc", "compute"]),
|
|
57
|
+
E("pig-money", "Piggy Bank", ["piggy", "savings", "bank", "money"]),
|
|
58
|
+
E("building-bank", "Bank", ["bank", "money", "finance", "institution"]),
|
|
59
|
+
E("shopping-cart", "Shopping Cart", ["cart", "shop", "shopping", "buy", "purchase"]),
|
|
60
|
+
E("shopping-bag", "Shopping Bag", ["bag", "shop", "shopping", "buy"]),
|
|
61
|
+
E("trending-up", "Trending Up", ["trending", "up", "growth", "increase", "rise"]),
|
|
62
|
+
E("trending-down", "Trending Down", ["trending", "down", "decrease", "fall", "drop"]),
|
|
63
|
+
|
|
64
|
+
// ── Charts & Analytics ───────────────────────────────────────────
|
|
65
|
+
E("chart-bar", "Bar Chart", ["chart", "bar", "graph", "analytics", "stats"]),
|
|
66
|
+
E("chart-line", "Line Chart", ["chart", "line", "graph", "analytics", "trend"]),
|
|
67
|
+
E("chart-pie", "Pie Chart", ["chart", "pie", "donut", "graph", "analytics"]),
|
|
68
|
+
E("chart-donut", "Donut Chart", ["chart", "donut", "pie", "ring"]),
|
|
69
|
+
E("chart-area", "Area Chart", ["chart", "area", "graph", "filled"]),
|
|
70
|
+
E("chart-dots", "Scatter Chart", ["chart", "scatter", "dots", "points"]),
|
|
71
|
+
E("chart-histogram", "Histogram", ["chart", "histogram", "distribution"]),
|
|
72
|
+
E("chart-arcs", "Gauge", ["chart", "gauge", "arc", "meter"]),
|
|
73
|
+
E("activity", "Activity", ["activity", "pulse", "heartbeat", "monitor"]),
|
|
74
|
+
|
|
75
|
+
// ── Communication ────────────────────────────────────────────────
|
|
76
|
+
E("mail", "Mail", ["mail", "email", "message", "letter", "envelope"]),
|
|
77
|
+
E("mail-opened", "Mail Opened", ["mail", "email", "opened", "read"]),
|
|
78
|
+
E("message", "Message", ["message", "chat", "speech", "bubble"]),
|
|
79
|
+
E("message-circle", "Message Circle", ["message", "chat", "comment", "talk"]),
|
|
80
|
+
E("messages", "Messages", ["messages", "chat", "conversation"]),
|
|
81
|
+
E("phone", "Phone", ["phone", "call", "telephone", "mobile"]),
|
|
82
|
+
E("phone-call", "Phone Call", ["phone", "call", "ringing"]),
|
|
83
|
+
E("video", "Video", ["video", "camera", "film", "movie"]),
|
|
84
|
+
E("microphone", "Microphone", ["microphone", "mic", "voice", "audio", "record"]),
|
|
85
|
+
E("send", "Send", ["send", "submit", "deliver", "post"]),
|
|
86
|
+
E("share", "Share", ["share", "send", "distribute", "social"]),
|
|
87
|
+
E("rss", "RSS", ["rss", "feed", "subscribe"]),
|
|
88
|
+
E("at", "At", ["at", "mention", "@", "email"]),
|
|
89
|
+
|
|
90
|
+
// ── Notifications & Status ───────────────────────────────────────
|
|
91
|
+
E("bell", "Bell", ["bell", "notification", "alert", "alarm"]),
|
|
92
|
+
E("bell-ringing", "Bell Ringing", ["bell", "notification", "ringing", "alert"]),
|
|
93
|
+
E("alarm", "Alarm", ["alarm", "alert", "warning", "siren"]),
|
|
94
|
+
E("alert-triangle", "Warning", ["alert", "warning", "caution", "danger"]),
|
|
95
|
+
E("alert-circle", "Alert", ["alert", "warning", "info", "exclamation"]),
|
|
96
|
+
E("info-circle", "Info", ["info", "information", "help", "tip"]),
|
|
97
|
+
E("circle-check", "Check Circle", ["check", "ok", "done", "success", "approved"]),
|
|
98
|
+
E("circle-x", "Cancel", ["cancel", "close", "x", "remove", "rejected"]),
|
|
99
|
+
E("check", "Check", ["check", "tick", "ok", "done", "yes"]),
|
|
100
|
+
E("x", "Close", ["close", "x", "cancel", "dismiss", "remove"]),
|
|
101
|
+
|
|
102
|
+
// ── Documents & Writing ──────────────────────────────────────────
|
|
103
|
+
E("notebook", "Notebook", ["notebook", "journal", "diary", "writing"]),
|
|
104
|
+
E("book", "Book", ["book", "read", "library", "novel"]),
|
|
105
|
+
E("note", "Note", ["note", "memo", "annotation"]),
|
|
106
|
+
E("notes", "Notes", ["notes", "memo", "list", "writing"]),
|
|
107
|
+
E("file-text", "Document", ["document", "file", "text", "doc"]),
|
|
108
|
+
E("file-code", "Code File", ["file", "code", "source", "script"]),
|
|
109
|
+
E("file-spreadsheet", "Spreadsheet", ["spreadsheet", "excel", "sheet", "csv", "table"]),
|
|
110
|
+
E("file", "File", ["file", "document"]),
|
|
111
|
+
E("files", "Files", ["files", "documents", "multiple"]),
|
|
112
|
+
E("clipboard", "Clipboard", ["clipboard", "paste", "copy"]),
|
|
113
|
+
E("clipboard-list", "Clipboard List", ["clipboard", "list", "todo", "checklist"]),
|
|
114
|
+
E("list-check", "Checklist", ["checklist", "todo", "tasks", "list"]),
|
|
115
|
+
E("bookmark", "Bookmark", ["bookmark", "save", "favorite", "marker"]),
|
|
116
|
+
E("pencil", "Pencil", ["pencil", "edit", "write", "compose"]),
|
|
117
|
+
E("edit", "Edit", ["edit", "modify", "change", "pencil"]),
|
|
118
|
+
E("quote", "Quote", ["quote", "citation", "blockquote"]),
|
|
119
|
+
E("tag", "Tag", ["tag", "label", "category", "marker"]),
|
|
120
|
+
E("tags", "Tags", ["tags", "labels", "categories"]),
|
|
121
|
+
|
|
122
|
+
// ── Office & Work ────────────────────────────────────────────────
|
|
123
|
+
E("briefcase", "Briefcase", ["briefcase", "work", "business", "job"]),
|
|
124
|
+
E("building", "Building", ["building", "office", "company", "enterprise"]),
|
|
125
|
+
E("building-store", "Store", ["store", "shop", "retail", "market"]),
|
|
126
|
+
E("building-skyscraper", "Skyscraper", ["skyscraper", "building", "tower", "city"]),
|
|
127
|
+
E("folder", "Folder", ["folder", "directory", "files"]),
|
|
128
|
+
E("folder-open", "Folder Open", ["folder", "open", "directory"]),
|
|
129
|
+
E("archive", "Archive", ["archive", "storage", "box"]),
|
|
130
|
+
E("paperclip", "Paperclip", ["paperclip", "attach", "attachment"]),
|
|
131
|
+
E("scissors", "Scissors", ["scissors", "cut", "trim"]),
|
|
132
|
+
E("stamp", "Stamp", ["stamp", "approved", "seal"]),
|
|
133
|
+
E("printer", "Printer", ["printer", "print"]),
|
|
134
|
+
E("presentation", "Presentation", ["presentation", "slides", "deck"]),
|
|
135
|
+
E("calendar", "Calendar", ["calendar", "date", "schedule", "agenda"]),
|
|
136
|
+
E("calendar-event", "Event", ["event", "calendar", "meeting", "appointment"]),
|
|
137
|
+
E("calendar-stats", "Calendar Stats", ["calendar", "stats", "schedule"]),
|
|
138
|
+
|
|
139
|
+
// ── Time ────────────────────────────────────────────────────────
|
|
140
|
+
E("clock", "Clock", ["clock", "time", "hour", "minute"]),
|
|
141
|
+
E("clock-hour-3", "Clock 3", ["clock", "time", "afternoon"]),
|
|
142
|
+
E("hourglass", "Hourglass", ["hourglass", "time", "wait", "duration"]),
|
|
143
|
+
E("alarm-clock", "Alarm Clock", ["alarm", "clock", "wake", "time"]),
|
|
144
|
+
E("history", "History", ["history", "past", "log", "back"]),
|
|
145
|
+
E("watch", "Watch", ["watch", "time", "wristwatch"]),
|
|
146
|
+
E("stopwatch", "Stopwatch", ["stopwatch", "timer", "time", "race"]),
|
|
147
|
+
|
|
148
|
+
// ── Places & Travel ──────────────────────────────────────────────
|
|
149
|
+
E("home", "Home", ["home", "house", "main"]),
|
|
150
|
+
E("home-2", "Home 2", ["home", "house"]),
|
|
151
|
+
E("map-pin", "Map Pin", ["pin", "map", "location", "place", "marker"]),
|
|
152
|
+
E("map", "Map", ["map", "location", "geography"]),
|
|
153
|
+
E("map-2", "Map 2", ["map", "location"]),
|
|
154
|
+
E("world", "World", ["world", "earth", "global", "international"]),
|
|
155
|
+
E("globe", "Globe", ["globe", "world", "earth", "global"]),
|
|
156
|
+
E("compass", "Compass", ["compass", "direction", "navigation"]),
|
|
157
|
+
E("car", "Car", ["car", "auto", "vehicle", "drive"]),
|
|
158
|
+
E("truck", "Truck", ["truck", "delivery", "shipping", "lorry"]),
|
|
159
|
+
E("bus", "Bus", ["bus", "transport", "public"]),
|
|
160
|
+
E("train", "Train", ["train", "rail", "transport"]),
|
|
161
|
+
E("plane", "Plane", ["plane", "flight", "airplane", "aviation"]),
|
|
162
|
+
E("rocket", "Rocket", ["rocket", "launch", "space", "fast", "boost"]),
|
|
163
|
+
E("ship", "Ship", ["ship", "boat", "vessel", "sea"]),
|
|
164
|
+
E("sailboat", "Sailboat", ["sailboat", "boat", "sail"]),
|
|
165
|
+
E("bike", "Bike", ["bike", "bicycle", "cycle"]),
|
|
166
|
+
E("walk", "Walk", ["walk", "person", "pedestrian"]),
|
|
167
|
+
E("tent", "Tent", ["tent", "camping", "outdoors"]),
|
|
168
|
+
E("plant", "Plant", ["plant", "nature", "green"]),
|
|
169
|
+
|
|
170
|
+
// ── Action Verbs ─────────────────────────────────────────────────
|
|
171
|
+
E("plus", "Plus", ["plus", "add", "new", "create", "+"]),
|
|
172
|
+
E("minus", "Minus", ["minus", "subtract", "remove", "-"]),
|
|
173
|
+
E("trash", "Trash", ["trash", "delete", "remove", "bin", "garbage"]),
|
|
174
|
+
E("copy", "Copy", ["copy", "duplicate", "clone"]),
|
|
175
|
+
E("device-floppy", "Save", ["save", "floppy", "disk", "store"]),
|
|
176
|
+
E("refresh", "Refresh", ["refresh", "reload", "sync", "update"]),
|
|
177
|
+
E("rotate", "Rotate", ["rotate", "spin", "turn"]),
|
|
178
|
+
E("download", "Download", ["download", "save", "import"]),
|
|
179
|
+
E("upload", "Upload", ["upload", "import", "send"]),
|
|
180
|
+
E("search", "Search", ["search", "find", "magnify", "look"]),
|
|
181
|
+
E("filter", "Filter", ["filter", "narrow", "refine"]),
|
|
182
|
+
E("settings", "Settings", ["settings", "preferences", "config", "gear", "cog"]),
|
|
183
|
+
E("adjustments", "Adjustments", ["adjustments", "settings", "tune", "sliders"]),
|
|
184
|
+
E("link", "Link", ["link", "url", "chain", "hyperlink"]),
|
|
185
|
+
E("external-link", "External Link", ["external", "link", "open", "new"]),
|
|
186
|
+
E("login", "Login", ["login", "signin", "enter"]),
|
|
187
|
+
E("logout", "Logout", ["logout", "signout", "exit"]),
|
|
188
|
+
E("dots", "Dots", ["dots", "more", "menu", "ellipsis"]),
|
|
189
|
+
E("dots-vertical", "Dots Vertical", ["dots", "vertical", "more", "menu"]),
|
|
190
|
+
E("menu-2", "Menu", ["menu", "hamburger", "nav"]),
|
|
191
|
+
|
|
192
|
+
// ── Arrows & Navigation ──────────────────────────────────────────
|
|
193
|
+
E("arrow-up", "Arrow Up", ["arrow", "up"]),
|
|
194
|
+
E("arrow-down", "Arrow Down", ["arrow", "down"]),
|
|
195
|
+
E("arrow-left", "Arrow Left", ["arrow", "left", "back"]),
|
|
196
|
+
E("arrow-right", "Arrow Right", ["arrow", "right", "forward", "next"]),
|
|
197
|
+
E("chevron-up", "Chevron Up", ["chevron", "up", "collapse"]),
|
|
198
|
+
E("chevron-down", "Chevron Down", ["chevron", "down", "expand", "dropdown"]),
|
|
199
|
+
E("chevron-left", "Chevron Left", ["chevron", "left", "back"]),
|
|
200
|
+
E("chevron-right", "Chevron Right", ["chevron", "right", "forward"]),
|
|
201
|
+
E("arrow-up-right", "Arrow Up Right", ["arrow", "diagonal", "external"]),
|
|
202
|
+
E("arrows-shuffle", "Shuffle", ["shuffle", "random", "arrows"]),
|
|
203
|
+
E("arrows-sort", "Sort", ["sort", "arrange", "order"]),
|
|
204
|
+
E("arrows-up-down", "Up Down", ["arrows", "vertical", "swap"]),
|
|
205
|
+
|
|
206
|
+
// ── Security ─────────────────────────────────────────────────────
|
|
207
|
+
E("lock", "Lock", ["lock", "secure", "private", "locked"]),
|
|
208
|
+
E("lock-open", "Unlock", ["unlock", "open", "unlocked"]),
|
|
209
|
+
E("shield", "Shield", ["shield", "protect", "guard", "secure"]),
|
|
210
|
+
E("shield-check", "Shield Check", ["shield", "secure", "verified"]),
|
|
211
|
+
E("eye", "Eye", ["eye", "see", "view", "show", "visible"]),
|
|
212
|
+
E("eye-off", "Eye Off", ["hide", "invisible", "hidden", "private"]),
|
|
213
|
+
E("key", "Key", ["key", "password", "secret", "auth"]),
|
|
214
|
+
E("ban", "Ban", ["ban", "forbidden", "block", "no", "denied"]),
|
|
215
|
+
E("fingerprint", "Fingerprint", ["fingerprint", "biometric", "security", "id"]),
|
|
216
|
+
|
|
217
|
+
// ── Layout & UI ──────────────────────────────────────────────────
|
|
218
|
+
E("layout", "Layout", ["layout", "design", "arrangement"]),
|
|
219
|
+
E("layout-grid", "Grid", ["grid", "layout", "tiles"]),
|
|
220
|
+
E("layout-dashboard", "Dashboard", ["dashboard", "layout", "panels", "tiles"]),
|
|
221
|
+
E("layout-rows", "Rows", ["rows", "layout", "horizontal"]),
|
|
222
|
+
E("layout-columns", "Columns", ["columns", "layout", "vertical"]),
|
|
223
|
+
E("layout-list", "List Layout", ["list", "layout"]),
|
|
224
|
+
E("list", "List", ["list", "items"]),
|
|
225
|
+
E("list-numbers", "Ordered List", ["list", "ordered", "numbers", "1234"]),
|
|
226
|
+
E("table", "Table", ["table", "rows", "columns", "grid", "spreadsheet"]),
|
|
227
|
+
E("columns", "Columns", ["columns", "vertical"]),
|
|
228
|
+
E("pin", "Pin", ["pin", "fix", "stick"]),
|
|
229
|
+
E("pinned", "Pinned", ["pinned", "fixed", "saved"]),
|
|
230
|
+
E("focus-2", "Focus", ["focus", "target", "center"]),
|
|
231
|
+
|
|
232
|
+
// ── People & Users ───────────────────────────────────────────────
|
|
233
|
+
E("user", "User", ["user", "person", "profile", "account"]),
|
|
234
|
+
E("users", "Users", ["users", "people", "group", "team"]),
|
|
235
|
+
E("user-plus", "Add User", ["user", "add", "invite", "join"]),
|
|
236
|
+
E("user-minus", "Remove User", ["user", "remove", "leave"]),
|
|
237
|
+
E("user-check", "User Verified", ["user", "verified", "approved"]),
|
|
238
|
+
E("user-circle", "User Circle", ["user", "profile", "avatar"]),
|
|
239
|
+
E("friends", "Friends", ["friends", "people", "social"]),
|
|
240
|
+
E("id", "ID", ["id", "card", "identification"]),
|
|
241
|
+
E("id-badge", "ID Badge", ["badge", "id", "lanyard", "pass"]),
|
|
242
|
+
E("mood-smile", "Smile", ["smile", "happy", "mood", "emoji"]),
|
|
243
|
+
E("mood-happy", "Happy", ["happy", "mood", "smile", "emoji"]),
|
|
244
|
+
|
|
245
|
+
// ── Media ────────────────────────────────────────────────────────
|
|
246
|
+
E("photo", "Photo", ["photo", "image", "picture"]),
|
|
247
|
+
E("camera", "Camera", ["camera", "photo", "capture", "snap"]),
|
|
248
|
+
E("video", "Video", ["video", "movie", "film"]),
|
|
249
|
+
E("music", "Music", ["music", "song", "audio", "tune"]),
|
|
250
|
+
E("headphones", "Headphones", ["headphones", "audio", "music", "listen"]),
|
|
251
|
+
E("player-play", "Play", ["play", "start", "media"]),
|
|
252
|
+
E("player-pause", "Pause", ["pause", "stop", "media"]),
|
|
253
|
+
E("player-stop", "Stop", ["stop", "halt", "media"]),
|
|
254
|
+
E("volume", "Volume", ["volume", "sound", "audio"]),
|
|
255
|
+
E("volume-off", "Mute", ["mute", "silent", "volume", "off"]),
|
|
256
|
+
E("device-tv", "TV", ["tv", "television", "screen"]),
|
|
257
|
+
E("podcast", "Podcast", ["podcast", "audio", "show"]),
|
|
258
|
+
|
|
259
|
+
// ── Tech & Dev ───────────────────────────────────────────────────
|
|
260
|
+
E("code", "Code", ["code", "programming", "source", "dev"]),
|
|
261
|
+
E("braces", "Braces", ["braces", "code", "json", "{}"]),
|
|
262
|
+
E("brackets", "Brackets", ["brackets", "code", "[]"]),
|
|
263
|
+
E("terminal", "Terminal", ["terminal", "console", "shell", "cli"]),
|
|
264
|
+
E("command", "Command", ["command", "key", "cmd"]),
|
|
265
|
+
E("git-branch", "Git Branch", ["git", "branch", "fork"]),
|
|
266
|
+
E("git-commit", "Git Commit", ["git", "commit"]),
|
|
267
|
+
E("git-merge", "Git Merge", ["git", "merge", "combine"]),
|
|
268
|
+
E("git-pull-request", "Pull Request", ["git", "pr", "pull", "merge"]),
|
|
269
|
+
E("brand-github", "GitHub", ["github", "git", "code", "repo"]),
|
|
270
|
+
E("brand-gitlab", "GitLab", ["gitlab", "git", "code", "repo"]),
|
|
271
|
+
E("bug", "Bug", ["bug", "error", "issue", "defect"]),
|
|
272
|
+
E("database", "Database", ["database", "db", "storage", "data"]),
|
|
273
|
+
E("server", "Server", ["server", "host", "machine"]),
|
|
274
|
+
E("cloud", "Cloud", ["cloud", "storage", "online", "sync"]),
|
|
275
|
+
E("cloud-upload", "Cloud Upload", ["cloud", "upload", "sync"]),
|
|
276
|
+
E("cloud-download", "Cloud Download", ["cloud", "download", "sync"]),
|
|
277
|
+
E("api", "API", ["api", "endpoint", "service"]),
|
|
278
|
+
E("cpu", "CPU", ["cpu", "processor", "chip", "compute"]),
|
|
279
|
+
E("device-laptop", "Laptop", ["laptop", "computer", "device"]),
|
|
280
|
+
E("device-desktop", "Desktop", ["desktop", "computer", "monitor"]),
|
|
281
|
+
E("device-mobile", "Mobile", ["mobile", "phone", "device"]),
|
|
282
|
+
E("device-tablet", "Tablet", ["tablet", "ipad", "device"]),
|
|
283
|
+
E("plug", "Plug", ["plug", "connect", "power", "outlet"]),
|
|
284
|
+
E("robot", "Robot", ["robot", "bot", "ai", "automation"]),
|
|
285
|
+
E("browser", "Browser", ["browser", "web", "www"]),
|
|
286
|
+
E("www", "WWW", ["www", "web", "internet", "url"]),
|
|
287
|
+
E("network", "Network", ["network", "connection", "graph"]),
|
|
288
|
+
E("wifi", "WiFi", ["wifi", "wireless", "internet"]),
|
|
289
|
+
E("bluetooth", "Bluetooth", ["bluetooth", "wireless"]),
|
|
290
|
+
|
|
291
|
+
// ── Symbols & Awards ─────────────────────────────────────────────
|
|
292
|
+
E("star", "Star", ["star", "favorite", "rating"]),
|
|
293
|
+
E("star-filled", "Star Filled", ["star", "filled", "favorite"]),
|
|
294
|
+
E("heart", "Heart", ["heart", "love", "favorite", "like"]),
|
|
295
|
+
E("heart-filled", "Heart Filled", ["heart", "filled", "love"]),
|
|
296
|
+
E("diamond", "Diamond", ["diamond", "gem", "premium"]),
|
|
297
|
+
E("crown", "Crown", ["crown", "king", "vip", "premium"]),
|
|
298
|
+
E("trophy", "Trophy", ["trophy", "award", "winner", "champion"]),
|
|
299
|
+
E("award", "Award", ["award", "medal", "achievement"]),
|
|
300
|
+
E("medal", "Medal", ["medal", "award", "achievement"]),
|
|
301
|
+
E("ribbon", "Ribbon", ["ribbon", "badge", "award"]),
|
|
302
|
+
E("flag", "Flag", ["flag", "marker", "country", "milestone"]),
|
|
303
|
+
E("target", "Target", ["target", "goal", "aim", "bullseye"]),
|
|
304
|
+
E("sparkles", "Sparkles", ["sparkles", "magic", "shiny", "new"]),
|
|
305
|
+
E("flame", "Flame", ["flame", "fire", "hot", "trending"]),
|
|
306
|
+
E("bolt", "Bolt", ["bolt", "lightning", "electric", "fast", "energy"]),
|
|
307
|
+
E("infinity", "Infinity", ["infinity", "endless", "∞"]),
|
|
308
|
+
E("circle", "Circle", ["circle", "round", "dot"]),
|
|
309
|
+
E("square", "Square", ["square", "box"]),
|
|
310
|
+
E("triangle", "Triangle", ["triangle"]),
|
|
311
|
+
|
|
312
|
+
// ── Tools & Crafts ───────────────────────────────────────────────
|
|
313
|
+
E("tool", "Tool", ["tool", "wrench", "fix", "repair"]),
|
|
314
|
+
E("tools", "Tools", ["tools", "build", "fix"]),
|
|
315
|
+
E("hammer", "Hammer", ["hammer", "build", "tool"]),
|
|
316
|
+
E("ruler", "Ruler", ["ruler", "measure"]),
|
|
317
|
+
E("magnet", "Magnet", ["magnet", "attract"]),
|
|
318
|
+
E("paint", "Paint", ["paint", "color", "art", "brush"]),
|
|
319
|
+
E("palette", "Palette", ["palette", "color", "art"]),
|
|
320
|
+
E("brush", "Brush", ["brush", "paint", "art"]),
|
|
321
|
+
E("droplet", "Droplet", ["droplet", "drop", "water", "color"]),
|
|
322
|
+
E("typography", "Typography", ["typography", "text", "font"]),
|
|
323
|
+
E("color-swatch", "Color Swatch", ["color", "swatch", "palette"]),
|
|
324
|
+
E("photo-edit", "Photo Edit", ["photo", "edit", "image", "filter"]),
|
|
325
|
+
|
|
326
|
+
// ── Nature & Weather ─────────────────────────────────────────────
|
|
327
|
+
E("sun", "Sun", ["sun", "light", "day", "bright"]),
|
|
328
|
+
E("moon", "Moon", ["moon", "night", "dark"]),
|
|
329
|
+
E("cloud-rain", "Rain", ["rain", "weather", "cloud", "wet"]),
|
|
330
|
+
E("snowflake", "Snow", ["snow", "snowflake", "winter", "cold"]),
|
|
331
|
+
E("flame-2", "Fire", ["fire", "flame", "hot"]),
|
|
332
|
+
E("rainbow", "Rainbow", ["rainbow", "colors"]),
|
|
333
|
+
E("tornado", "Tornado", ["tornado", "storm", "wind"]),
|
|
334
|
+
E("mountain", "Mountain", ["mountain", "peak", "alps"]),
|
|
335
|
+
E("flower", "Flower", ["flower", "bloom", "rose"]),
|
|
336
|
+
E("leaf", "Leaf", ["leaf", "nature", "green", "eco"]),
|
|
337
|
+
E("tree", "Tree", ["tree", "nature", "forest"]),
|
|
338
|
+
E("seeding", "Seedling", ["seedling", "plant", "grow", "sprout"]),
|
|
339
|
+
E("mushroom", "Mushroom", ["mushroom", "fungi"]),
|
|
340
|
+
E("cactus", "Cactus", ["cactus", "desert", "plant"]),
|
|
341
|
+
E("wind", "Wind", ["wind", "breeze"]),
|
|
342
|
+
E("temperature", "Temperature", ["temperature", "thermometer", "heat", "weather"]),
|
|
343
|
+
|
|
344
|
+
// ── Animals ──────────────────────────────────────────────────────
|
|
345
|
+
E("cat", "Cat", ["cat", "kitty", "pet", "animal"]),
|
|
346
|
+
E("dog", "Dog", ["dog", "puppy", "pet", "animal"]),
|
|
347
|
+
E("fish", "Fish", ["fish", "animal", "aquarium"]),
|
|
348
|
+
E("bug", "Bug", ["bug", "insect", "issue"]),
|
|
349
|
+
E("butterfly", "Butterfly", ["butterfly", "insect"]),
|
|
350
|
+
E("feather", "Feather", ["feather", "bird", "light"]),
|
|
351
|
+
E("paw", "Paw", ["paw", "animal", "pet"]),
|
|
352
|
+
E("deer", "Deer", ["deer", "animal", "wildlife"]),
|
|
353
|
+
E("horse", "Horse", ["horse", "animal"]),
|
|
354
|
+
E("pig", "Pig", ["pig", "animal", "farm"]),
|
|
355
|
+
E("spider", "Spider", ["spider", "arachnid", "halloween"]),
|
|
356
|
+
E("bat", "Bat", ["bat", "animal", "halloween"]),
|
|
357
|
+
|
|
358
|
+
// ── Food & Drink ─────────────────────────────────────────────────
|
|
359
|
+
E("apple", "Apple", ["apple", "fruit", "food"]),
|
|
360
|
+
E("cherry", "Cherry", ["cherry", "fruit", "food"]),
|
|
361
|
+
E("lemon", "Lemon", ["lemon", "fruit", "citrus"]),
|
|
362
|
+
E("pizza", "Pizza", ["pizza", "food"]),
|
|
363
|
+
E("cake", "Cake", ["cake", "dessert", "birthday"]),
|
|
364
|
+
E("cookie", "Cookie", ["cookie", "dessert", "snack"]),
|
|
365
|
+
E("candy", "Candy", ["candy", "sweet", "treat"]),
|
|
366
|
+
E("ice-cream", "Ice Cream", ["icecream", "dessert", "frozen"]),
|
|
367
|
+
E("coffee", "Coffee", ["coffee", "cup", "drink", "caffeine"]),
|
|
368
|
+
E("mug", "Mug", ["mug", "cup", "drink", "beverage"]),
|
|
369
|
+
E("glass", "Glass", ["glass", "drink", "wine"]),
|
|
370
|
+
E("bottle", "Bottle", ["bottle", "drink"]),
|
|
371
|
+
|
|
372
|
+
// ── Misc & Fun ───────────────────────────────────────────────────
|
|
373
|
+
E("puzzle", "Puzzle", ["puzzle", "piece", "jigsaw"]),
|
|
374
|
+
E("dice", "Dice", ["dice", "random", "game"]),
|
|
375
|
+
E("ghost", "Ghost", ["ghost", "halloween", "spooky"]),
|
|
376
|
+
E("alien", "Alien", ["alien", "ufo", "space"]),
|
|
377
|
+
E("atom", "Atom", ["atom", "science", "physics"]),
|
|
378
|
+
E("dna", "DNA", ["dna", "biology", "genetics"]),
|
|
379
|
+
E("microscope", "Microscope", ["microscope", "science", "lab"]),
|
|
380
|
+
E("telescope", "Telescope", ["telescope", "astronomy", "space"]),
|
|
381
|
+
E("planet", "Planet", ["planet", "space", "world"]),
|
|
382
|
+
E("meteor", "Meteor", ["meteor", "space", "comet"]),
|
|
383
|
+
E("gift", "Gift", ["gift", "present", "box"]),
|
|
384
|
+
E("balloon", "Balloon", ["balloon", "party", "celebration"]),
|
|
385
|
+
E("confetti", "Confetti", ["confetti", "party", "celebration"]),
|
|
386
|
+
E("lamp", "Lamp", ["lamp", "light", "lighting"]),
|
|
387
|
+
E("bulb", "Idea", ["bulb", "idea", "light", "innovation", "lightbulb"]),
|
|
388
|
+
E("brain", "Brain", ["brain", "mind", "think"]),
|
|
389
|
+
E("anchor", "Anchor", ["anchor", "ship", "stable"]),
|
|
390
|
+
E("wand", "Wand", ["wand", "magic", "spell"]),
|
|
391
|
+
E("sword", "Sword", ["sword", "weapon", "fight"]),
|
|
392
|
+
E("shopping-cart-off", "Empty Cart", ["cart", "empty", "off"]),
|
|
393
|
+
];
|
|
394
|
+
|
|
395
|
+
export type IconOptionLegacy = IconOption;
|
|
396
|
+
|
|
397
|
+
export const icons = {
|
|
398
|
+
ICON_OPTIONS,
|
|
399
|
+
options: ICON_OPTIONS,
|
|
400
|
+
} as const;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Cloud-specific shared utils (NOT in stdlib)
|
|
2
|
+
|
|
3
|
+
// Re-export from stdlib for backward compatibility
|
|
4
|
+
// Prefer importing directly from @k2b/stdlib
|
|
5
|
+
export { dates, dates as calendar, encoding, fileIcons, gradients } from "@k2b/stdlib";
|
|
6
|
+
export {
|
|
7
|
+
ACCOUNT_ACTION_NOTICE_SAMPLE,
|
|
8
|
+
type AccountActionNoticeInput,
|
|
9
|
+
AccountActionNoticeSchema,
|
|
10
|
+
renderAccountActionNotice,
|
|
11
|
+
} from "./account-action-notice";
|
|
12
|
+
export * from "./account-display";
|
|
13
|
+
export * from "./account-session";
|
|
14
|
+
export type { AiPromptContextInput, AiToolPromptHint } from "./ai-platform-prompt";
|
|
15
|
+
export { AI_PLATFORM_PROMPT_TEMPLATE, aiPromptContext, renderAiPlatformPrompt } from "./ai-platform-prompt";
|
|
16
|
+
export {
|
|
17
|
+
AI_USAGE_RANGES,
|
|
18
|
+
AI_USAGE_REASONS,
|
|
19
|
+
AI_USAGE_VIEWS,
|
|
20
|
+
type AiUsageQuery,
|
|
21
|
+
AiUsageQuerySchema,
|
|
22
|
+
type AiUsageRange,
|
|
23
|
+
type AiUsageView,
|
|
24
|
+
aiUsageHref,
|
|
25
|
+
aiUsageSearchParams,
|
|
26
|
+
} from "./ai-usage";
|
|
27
|
+
export * from "./app-presentation";
|
|
28
|
+
export * from "./app-url";
|
|
29
|
+
export * from "./branding";
|
|
30
|
+
export * from "./email-html";
|
|
31
|
+
export * from "./format";
|
|
32
|
+
export * from "./help";
|
|
33
|
+
export type * from "./icons";
|
|
34
|
+
export { icons } from "./icons";
|
|
35
|
+
export * from "./locale";
|
|
36
|
+
export * from "./login-method";
|
|
37
|
+
export { markdown } from "./markdown";
|
|
38
|
+
export type { ErrorCode, EvalContext, EvalError, EvalResult, EvalValue, ProgressValue } from "./markdown/formula";
|
|
39
|
+
export { createProgressValue, evaluateFormula, formatValue, isFormula, isTotalRow, parseProgressValue } from "./markdown/formula";
|
|
40
|
+
export type { MockCover, MockCoverIcon, MockCoverOptions, MockCoverTheme } from "./mock-cover";
|
|
41
|
+
export { createMockCover, createMockCoverSvg, parseDataUrl } from "./mock-cover";
|
|
42
|
+
export * from "./network-address";
|
|
43
|
+
export * from "./redirect";
|
|
44
|
+
export type { LiquidTemplateErrorReason, LiquidTemplateFilter, LiquidTemplateOptions } from "./template-rendering";
|
|
45
|
+
export {
|
|
46
|
+
escapeTemplateOutput,
|
|
47
|
+
LiquidTemplateError,
|
|
48
|
+
liquidTemplateVariables,
|
|
49
|
+
migrateLegacyMustacheTemplate,
|
|
50
|
+
renderLiquidTemplate,
|
|
51
|
+
validateLiquidTemplate,
|
|
52
|
+
} from "./template-rendering";
|
|
53
|
+
export * from "./theme";
|
|
54
|
+
export * from "./time";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Explicit per-browser locale preference, readable on every Cloud host. */
|
|
2
|
+
export const LOCALE_COOKIE = "cloud.locale";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Transport metadata header carrying the caller's resolved locale preference
|
|
6
|
+
* on Cloud-internal requests such as capability invocations. Metadata only:
|
|
7
|
+
* the locale never appears in capability input schemas or auth tokens.
|
|
8
|
+
*/
|
|
9
|
+
export const LOCALE_HEADER = "x-cloud-locale";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Deterministic server fallback when no request, operator, or cookie locale
|
|
13
|
+
* applies. Matches the `@k2b/ui` default so SSR and islands agree.
|
|
14
|
+
*/
|
|
15
|
+
export const DEFAULT_LOCALE = "en";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The canonical BCP 47 form of one locale tag, or `undefined` when the value
|
|
19
|
+
* is empty or not a structurally valid tag. Canonicalization fixes casing
|
|
20
|
+
* (`DE-ch` → `de-CH`) and keeps regional subtags such as `de-CH` intact.
|
|
21
|
+
*/
|
|
22
|
+
export const canonicalLocale = (value: string | null | undefined): string | undefined => {
|
|
23
|
+
const candidate = typeof value === "string" ? value.trim() : "";
|
|
24
|
+
if (!candidate) return undefined;
|
|
25
|
+
try {
|
|
26
|
+
return Intl.getCanonicalLocales(candidate)[0];
|
|
27
|
+
} catch {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** Canonicalize one locale tag, falling back when the value is invalid. */
|
|
33
|
+
export const normalizeLocale = (value: string | null | undefined, fallback = DEFAULT_LOCALE): string => canonicalLocale(value) ?? fallback;
|
|
34
|
+
|
|
35
|
+
/** Exact requested locale, then its BCP 47 ancestors, then the canonical base locale. */
|
|
36
|
+
export const localeFallbackChain = (requestedLocale: string | null | undefined, baseLocale = DEFAULT_LOCALE): string[] => {
|
|
37
|
+
const requested = canonicalLocale(requestedLocale);
|
|
38
|
+
const base = normalizeLocale(baseLocale);
|
|
39
|
+
const chain: string[] = [];
|
|
40
|
+
let candidate = requested;
|
|
41
|
+
while (candidate) {
|
|
42
|
+
chain.push(candidate);
|
|
43
|
+
const separator = candidate.lastIndexOf("-");
|
|
44
|
+
candidate = separator > 0 ? candidate.slice(0, separator) : undefined;
|
|
45
|
+
}
|
|
46
|
+
if (!chain.includes(base)) chain.push(base);
|
|
47
|
+
return chain;
|
|
48
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type LoginMethodPreference = "email" | "ipa" | "passkey" | "guest" | "login";
|
|
2
|
+
export type LoginFallbackMethod = "email" | "ipa";
|
|
3
|
+
|
|
4
|
+
const LOGIN_METHOD_COOKIE = "login_method";
|
|
5
|
+
|
|
6
|
+
const decodeCookieValue = (value: string): string => {
|
|
7
|
+
try {
|
|
8
|
+
return decodeURIComponent(value);
|
|
9
|
+
} catch {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const isLoginMethodPreference = (value: string): value is LoginMethodPreference =>
|
|
15
|
+
value === "email" || value === "ipa" || value === "passkey" || value === "guest" || value === "login";
|
|
16
|
+
|
|
17
|
+
export const readLoginMethodFromCookieHeader = (cookieHeader: string | null | undefined): LoginMethodPreference | null => {
|
|
18
|
+
let resolved: LoginMethodPreference | null = null;
|
|
19
|
+
for (const part of (cookieHeader ?? "").split(";")) {
|
|
20
|
+
const trimmed = part.trim();
|
|
21
|
+
const separatorIndex = trimmed.indexOf("=");
|
|
22
|
+
if (separatorIndex <= 0) continue;
|
|
23
|
+
if (trimmed.slice(0, separatorIndex) !== LOGIN_METHOD_COOKIE) continue;
|
|
24
|
+
|
|
25
|
+
const value = decodeCookieValue(trimmed.slice(separatorIndex + 1));
|
|
26
|
+
if (isLoginMethodPreference(value)) resolved = value;
|
|
27
|
+
}
|
|
28
|
+
return resolved;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const resolveLoginFallbackMethod = (params: {
|
|
32
|
+
freeIpaEnabled: boolean;
|
|
33
|
+
hasToken: boolean;
|
|
34
|
+
isGuestHidden: boolean;
|
|
35
|
+
queryMethod: string | undefined;
|
|
36
|
+
persistedMethod: LoginMethodPreference | null;
|
|
37
|
+
}): LoginFallbackMethod => {
|
|
38
|
+
if (!params.freeIpaEnabled) return "email";
|
|
39
|
+
if (params.hasToken) return "email";
|
|
40
|
+
if (params.isGuestHidden) return "ipa";
|
|
41
|
+
if (params.queryMethod === "ipa" || params.queryMethod === "email") return params.queryMethod;
|
|
42
|
+
if (params.persistedMethod === "ipa") return "ipa";
|
|
43
|
+
return "email";
|
|
44
|
+
};
|