aimeat 1.2.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/dist/.env.example +300 -0
- package/dist/bin/aimeat.d.ts +3 -0
- package/dist/bin/aimeat.d.ts.map +1 -0
- package/dist/bin/aimeat.js +22 -0
- package/dist/bin/aimeat.js.map +1 -0
- package/dist/locales/en.json +4566 -0
- package/dist/locales/fi.json +4566 -0
- package/dist/public/BingSiteAuth.xml +4 -0
- package/dist/public/agent-consent.html +521 -0
- package/dist/public/aimeat-developers.html +679 -0
- package/dist/public/assets/mcp_1_add_custom_connector.png +0 -0
- package/dist/public/assets/mcp_2_connect_disconnect_connector.png +0 -0
- package/dist/public/components/Alert.js +18 -0
- package/dist/public/components/Card.js +19 -0
- package/dist/public/components/CopyButton.js +24 -0
- package/dist/public/components/FormField.js +16 -0
- package/dist/public/components/Modal.js +121 -0
- package/dist/public/components/Spinner.js +11 -0
- package/dist/public/components/Toast.js +26 -0
- package/dist/public/components/index.js +8 -0
- package/dist/public/components/useViewCSS.js +12 -0
- package/dist/public/cortex-bundled/aimeat-canvas.js +1408 -0
- package/dist/public/cortex-bundled/aimeat-canvas.yaml +241 -0
- package/dist/public/cortex-bundled/aimeat-charts.js +455 -0
- package/dist/public/cortex-bundled/aimeat-charts.yaml +178 -0
- package/dist/public/cortex-bundled/aimeat-ui-dialogs.js +667 -0
- package/dist/public/cortex-bundled/aimeat-ui-dialogs.yaml +66 -0
- package/dist/public/cortex-bundled/aimeat-ui-forms.js +1106 -0
- package/dist/public/cortex-bundled/aimeat-ui-forms.yaml +90 -0
- package/dist/public/cortex-bundled/aimeat-ui-layout.js +436 -0
- package/dist/public/cortex-bundled/aimeat-ui-layout.yaml +87 -0
- package/dist/public/cortex-bundled/aimeat-ui-nav.js +722 -0
- package/dist/public/cortex-bundled/aimeat-ui-nav.yaml +73 -0
- package/dist/public/cortex-bundled/aimeat-ui-viewers.js +602 -0
- package/dist/public/cortex-bundled/aimeat-ui-viewers.yaml +73 -0
- package/dist/public/css/components/tags.css +67 -0
- package/dist/public/css/theme.css +716 -0
- package/dist/public/css/views/admin.css +576 -0
- package/dist/public/css/views/aimeat-os.css +153 -0
- package/dist/public/css/views/calibrator.css +480 -0
- package/dist/public/css/views/foundry.css +1334 -0
- package/dist/public/css/views/help.css +136 -0
- package/dist/public/css/views/hobbies.css +73 -0
- package/dist/public/css/views/marketplace.css +134 -0
- package/dist/public/css/views/openclaw.css +33 -0
- package/dist/public/css/views/portal-classic.css +484 -0
- package/dist/public/css/views/portal-dev.css +139 -0
- package/dist/public/css/views/portal.css +365 -0
- package/dist/public/css/views/portfolio.css +322 -0
- package/dist/public/css/views/profile.css +1799 -0
- package/dist/public/echat.html +442 -0
- package/dist/public/img/genesis-001-badge.png +0 -0
- package/dist/public/img/platforms/chatgpt.png +0 -0
- package/dist/public/img/platforms/claude.png +0 -0
- package/dist/public/img/platforms/copilot.png +0 -0
- package/dist/public/img/platforms/deepseek.png +0 -0
- package/dist/public/img/platforms/gemini.png +0 -0
- package/dist/public/img/platforms/grok.png +0 -0
- package/dist/public/img/platforms/lmstudio.png +0 -0
- package/dist/public/img/platforms/m365copilot.png +0 -0
- package/dist/public/img/platforms/openclaw.png +0 -0
- package/dist/public/img/platforms/other.png +0 -0
- package/dist/public/js/api.js +123 -0
- package/dist/public/js/components/auth-image.js +59 -0
- package/dist/public/js/components/tag-cloud.js +31 -0
- package/dist/public/js/components/tag-editor.js +46 -0
- package/dist/public/js/hooks.js +63 -0
- package/dist/public/js/i18n.js +76 -0
- package/dist/public/js/services/admin.js +239 -0
- package/dist/public/js/services/agents.js +57 -0
- package/dist/public/js/services/apps.js +35 -0
- package/dist/public/js/services/auth.js +40 -0
- package/dist/public/js/services/boards.js +79 -0
- package/dist/public/js/services/calibrator.js +97 -0
- package/dist/public/js/services/catalogue.js +39 -0
- package/dist/public/js/services/consent.js +57 -0
- package/dist/public/js/services/cortex.js +95 -0
- package/dist/public/js/services/extensions.js +61 -0
- package/dist/public/js/services/federation.js +11 -0
- package/dist/public/js/services/foundry-context-bundle.js +128 -0
- package/dist/public/js/services/foundry-contract.js +117 -0
- package/dist/public/js/services/foundry-packaging.js +762 -0
- package/dist/public/js/services/foundry-probe-reconcile.js +52 -0
- package/dist/public/js/services/foundry-prompts-base.js +1886 -0
- package/dist/public/js/services/foundry-prompts-build.js +2187 -0
- package/dist/public/js/services/foundry-prompts-cortex-app.js +154 -0
- package/dist/public/js/services/foundry-prompts-cortex-data.js +241 -0
- package/dist/public/js/services/foundry-prompts-cortex-feature.js +281 -0
- package/dist/public/js/services/foundry-prompts-fix.js +408 -0
- package/dist/public/js/services/foundry-prompts-test.js +520 -0
- package/dist/public/js/services/foundry-prompts.js +31 -0
- package/dist/public/js/services/foundry-smoke.js +65 -0
- package/dist/public/js/services/foundry-testing.js +64 -0
- package/dist/public/js/services/foundry-validate.js +1082 -0
- package/dist/public/js/services/foundry.js +1194 -0
- package/dist/public/js/services/generator-context-bundle.js +134 -0
- package/dist/public/js/services/generator-contract.js +117 -0
- package/dist/public/js/services/generator-packaging.js +762 -0
- package/dist/public/js/services/generator-probe-reconcile.js +52 -0
- package/dist/public/js/services/generator-prompts-base.js +1890 -0
- package/dist/public/js/services/generator-prompts-build.js +1126 -0
- package/dist/public/js/services/generator-prompts-cortex-app.js +155 -0
- package/dist/public/js/services/generator-prompts-cortex-data.js +199 -0
- package/dist/public/js/services/generator-prompts-cortex-feature.js +276 -0
- package/dist/public/js/services/generator-prompts-fix.js +316 -0
- package/dist/public/js/services/generator-prompts-test.js +402 -0
- package/dist/public/js/services/generator-prompts.js +31 -0
- package/dist/public/js/services/generator-smoke.js +65 -0
- package/dist/public/js/services/generator-spec-tests.js +280 -0
- package/dist/public/js/services/generator-spec-validate.js +192 -0
- package/dist/public/js/services/generator-specs.js +369 -0
- package/dist/public/js/services/generator-testing.js +64 -0
- package/dist/public/js/services/generator-validate.js +916 -0
- package/dist/public/js/services/generator.js +952 -0
- package/dist/public/js/services/knowledge.js +120 -0
- package/dist/public/js/services/memory.js +112 -0
- package/dist/public/js/services/nodes.js +55 -0
- package/dist/public/js/services/organisms.js +74 -0
- package/dist/public/js/services/packages.js +97 -0
- package/dist/public/js/services/security.js +67 -0
- package/dist/public/js/services/stats.js +11 -0
- package/dist/public/js/services/wallet.js +24 -0
- package/dist/public/js/services/work.js +51 -0
- package/dist/public/js/utils.js +184 -0
- package/dist/public/lib/htm.mjs +4 -0
- package/dist/public/lib/live-updates.js +89 -0
- package/dist/public/lib/minidenticons.min.js +1 -0
- package/dist/public/lib/preact-hooks.mjs +3 -0
- package/dist/public/lib/preact.mjs +3 -0
- package/dist/public/lib/realtime.js +549 -0
- package/dist/public/lib/three.min.js +6 -0
- package/dist/public/lib/yaml.mjs +141 -0
- package/dist/public/llms-template.txt +1043 -0
- package/dist/public/oauth-consent.html +388 -0
- package/dist/public/og-image.png +0 -0
- package/dist/public/robots.txt +52 -0
- package/dist/public/spa.html +533 -0
- package/dist/public/sw.js +34 -0
- package/dist/public/tmp-paste.txt +223 -0
- package/dist/public/views/_template.js +85 -0
- package/dist/public/views/admin/actions-tab.js +41 -0
- package/dist/public/views/admin/agents-tab.js +84 -0
- package/dist/public/views/admin/boards-tab.js +154 -0
- package/dist/public/views/admin/chat-instances-tab.js +207 -0
- package/dist/public/views/admin/config-tab.js +151 -0
- package/dist/public/views/admin/consul-tab.js +77 -0
- package/dist/public/views/admin/cors-tab.js +240 -0
- package/dist/public/views/admin/cortex-tab.js +171 -0
- package/dist/public/views/admin/csm-tab.js +261 -0
- package/dist/public/views/admin/directory-tab.js +44 -0
- package/dist/public/views/admin/economy-tab.js +80 -0
- package/dist/public/views/admin/email-tab.js +460 -0
- package/dist/public/views/admin/federation-tab.js +412 -0
- package/dist/public/views/admin/generator-debug-tab.js +238 -0
- package/dist/public/views/admin/genesis-tab.js +70 -0
- package/dist/public/views/admin/ghii-tab.js +101 -0
- package/dist/public/views/admin/hooks-tab.js +69 -0
- package/dist/public/views/admin/knowledge-tab.js +297 -0
- package/dist/public/views/admin/maintenance-tab.js +98 -0
- package/dist/public/views/admin/matching-tab.js +44 -0
- package/dist/public/views/admin/memory-tab.js +222 -0
- package/dist/public/views/admin/msm-tab.js +342 -0
- package/dist/public/views/admin/overview-tab.js +90 -0
- package/dist/public/views/admin/owners-tab.js +55 -0
- package/dist/public/views/admin/packages-tab.js +510 -0
- package/dist/public/views/admin/portal-tab.js +211 -0
- package/dist/public/views/admin/prompts-tab.js +287 -0
- package/dist/public/views/admin/push-tab.js +291 -0
- package/dist/public/views/admin/realtime-tab.js +68 -0
- package/dist/public/views/admin/scheduler-tab.js +156 -0
- package/dist/public/views/admin/services-tab.js +981 -0
- package/dist/public/views/admin/shared.js +148 -0
- package/dist/public/views/admin/stats-tab.js +187 -0
- package/dist/public/views/admin/work-tab.js +45 -0
- package/dist/public/views/admin.js +400 -0
- package/dist/public/views/aimeat-os.js +259 -0
- package/dist/public/views/guides.js +402 -0
- package/dist/public/views/help.js +79 -0
- package/dist/public/views/hobbies.js +697 -0
- package/dist/public/views/marketplace.js +647 -0
- package/dist/public/views/openclaw.js +223 -0
- package/dist/public/views/portal-classic.js +519 -0
- package/dist/public/views/portal-dev.js +816 -0
- package/dist/public/views/portal.js +1354 -0
- package/dist/public/views/portfolio.js +795 -0
- package/dist/public/views/profile/access-tab.js +58 -0
- package/dist/public/views/profile/agents-tab.js +689 -0
- package/dist/public/views/profile/apps-tab.js +197 -0
- package/dist/public/views/profile/boards-tab.js +323 -0
- package/dist/public/views/profile/calibrator-batch.js +926 -0
- package/dist/public/views/profile/calibrator-chart.js +135 -0
- package/dist/public/views/profile/calibrator-llm-editor.js +205 -0
- package/dist/public/views/profile/calibrator-tab.js +535 -0
- package/dist/public/views/profile/chat-sessions-tab.js +184 -0
- package/dist/public/views/profile/data-wallet-tab.js +313 -0
- package/dist/public/views/profile/email-tab.js +157 -0
- package/dist/public/views/profile/extensions-tab.js +711 -0
- package/dist/public/views/profile/federation-tab.js +63 -0
- package/dist/public/views/profile/foundry-dashboard/DebugPanel.js +193 -0
- package/dist/public/views/profile/foundry-dashboard/DiagnosticsPanel.js +69 -0
- package/dist/public/views/profile/foundry-dashboard/EditModePanel.js +141 -0
- package/dist/public/views/profile/foundry-dashboard/PackageDialog.js +96 -0
- package/dist/public/views/profile/foundry-dashboard/RemovePanel.js +53 -0
- package/dist/public/views/profile/foundry-dashboard/use-autopilot-state.js +53 -0
- package/dist/public/views/profile/foundry-dashboard/use-autopilot.js +1016 -0
- package/dist/public/views/profile/foundry-dashboard/use-dashboard-core.js +154 -0
- package/dist/public/views/profile/foundry-dashboard/use-edit-mode.js +294 -0
- package/dist/public/views/profile/foundry-dashboard/use-lifecycle.js +101 -0
- package/dist/public/views/profile/foundry-dashboard/use-packaging.js +97 -0
- package/dist/public/views/profile/foundry-dashboard/use-test-execution.js +275 -0
- package/dist/public/views/profile/foundry-dashboard.js +395 -0
- package/dist/public/views/profile/foundry-detail.js +1178 -0
- package/dist/public/views/profile/foundry-settings.js +377 -0
- package/dist/public/views/profile/foundry-tab.js +546 -0
- package/dist/public/views/profile/generator-dashboard/DebugPanel.js +193 -0
- package/dist/public/views/profile/generator-dashboard/DiagnosticsPanel.js +69 -0
- package/dist/public/views/profile/generator-dashboard/EditModePanel.js +141 -0
- package/dist/public/views/profile/generator-dashboard/PackageDialog.js +96 -0
- package/dist/public/views/profile/generator-dashboard/RemovePanel.js +53 -0
- package/dist/public/views/profile/generator-dashboard/use-autopilot-state.js +53 -0
- package/dist/public/views/profile/generator-dashboard/use-autopilot.js +136 -0
- package/dist/public/views/profile/generator-dashboard/use-dashboard-core.js +143 -0
- package/dist/public/views/profile/generator-dashboard/use-edit-mode.js +296 -0
- package/dist/public/views/profile/generator-dashboard/use-lifecycle.js +101 -0
- package/dist/public/views/profile/generator-dashboard/use-packaging.js +97 -0
- package/dist/public/views/profile/generator-dashboard/use-test-execution.js +275 -0
- package/dist/public/views/profile/generator-dashboard.js +377 -0
- package/dist/public/views/profile/generator-detail.js +1007 -0
- package/dist/public/views/profile/generator-settings.js +417 -0
- package/dist/public/views/profile/generator-tab.js +544 -0
- package/dist/public/views/profile/inline-panels.js +277 -0
- package/dist/public/views/profile/knowledge-tab.js +735 -0
- package/dist/public/views/profile/landing-page.js +539 -0
- package/dist/public/views/profile/mcp-tab.js +140 -0
- package/dist/public/views/profile/memory-tab.js +599 -0
- package/dist/public/views/profile/node-stats-tab.js +132 -0
- package/dist/public/views/profile/nodes-tab.js +195 -0
- package/dist/public/views/profile/notifications-tab.js +274 -0
- package/dist/public/views/profile/organisms-tab.js +402 -0
- package/dist/public/views/profile/packages-tab.js +393 -0
- package/dist/public/views/profile/portfolio-tab.js +31 -0
- package/dist/public/views/profile/security-tab.js +219 -0
- package/dist/public/views/profile/services-tab.js +281 -0
- package/dist/public/views/profile/shared.js +58 -0
- package/dist/public/views/profile/wallet-tab.js +272 -0
- package/dist/public/views/profile/work-tab.js +220 -0
- package/dist/public/views/profile.js +271 -0
- package/dist/public/wizard.html +1320 -0
- package/dist/scripts/db-init.d.ts +19 -0
- package/dist/scripts/db-init.d.ts.map +1 -0
- package/dist/scripts/db-init.js +168 -0
- package/dist/scripts/db-init.js.map +1 -0
- package/dist/scripts/db-reset.d.ts +15 -0
- package/dist/scripts/db-reset.d.ts.map +1 -0
- package/dist/scripts/db-reset.js +162 -0
- package/dist/scripts/db-reset.js.map +1 -0
- package/dist/scripts/indexnow.d.ts +18 -0
- package/dist/scripts/indexnow.d.ts.map +1 -0
- package/dist/scripts/indexnow.js +104 -0
- package/dist/scripts/indexnow.js.map +1 -0
- package/dist/scripts/kill-port.d.ts +3 -0
- package/dist/scripts/kill-port.d.ts.map +1 -0
- package/dist/scripts/kill-port.js +89 -0
- package/dist/scripts/kill-port.js.map +1 -0
- package/dist/scripts/seed-digital-signage.d.ts +13 -0
- package/dist/scripts/seed-digital-signage.d.ts.map +1 -0
- package/dist/scripts/seed-digital-signage.js +85 -0
- package/dist/scripts/seed-digital-signage.js.map +1 -0
- package/dist/src/auth/jwt.d.ts +40 -0
- package/dist/src/auth/jwt.d.ts.map +1 -0
- package/dist/src/auth/jwt.js +139 -0
- package/dist/src/auth/jwt.js.map +1 -0
- package/dist/src/auth/keypair.d.ts +8 -0
- package/dist/src/auth/keypair.d.ts.map +1 -0
- package/dist/src/auth/keypair.js +35 -0
- package/dist/src/auth/keypair.js.map +1 -0
- package/dist/src/auth/middleware.d.ts +50 -0
- package/dist/src/auth/middleware.d.ts.map +1 -0
- package/dist/src/auth/middleware.js +241 -0
- package/dist/src/auth/middleware.js.map +1 -0
- package/dist/src/auth/node-keys.d.ts +7 -0
- package/dist/src/auth/node-keys.d.ts.map +1 -0
- package/dist/src/auth/node-keys.js +116 -0
- package/dist/src/auth/node-keys.js.map +1 -0
- package/dist/src/cli/config-export.d.ts +9 -0
- package/dist/src/cli/config-export.d.ts.map +1 -0
- package/dist/src/cli/config-export.js +90 -0
- package/dist/src/cli/config-export.js.map +1 -0
- package/dist/src/cli/config-import.d.ts +10 -0
- package/dist/src/cli/config-import.d.ts.map +1 -0
- package/dist/src/cli/config-import.js +124 -0
- package/dist/src/cli/config-import.js.map +1 -0
- package/dist/src/cli/federation-join.d.ts +13 -0
- package/dist/src/cli/federation-join.d.ts.map +1 -0
- package/dist/src/cli/federation-join.js +395 -0
- package/dist/src/cli/federation-join.js.map +1 -0
- package/dist/src/cli/init-wizard.d.ts +8 -0
- package/dist/src/cli/init-wizard.d.ts.map +1 -0
- package/dist/src/cli/init-wizard.js +1489 -0
- package/dist/src/cli/init-wizard.js.map +1 -0
- package/dist/src/cli/scaffold.d.ts +33 -0
- package/dist/src/cli/scaffold.d.ts.map +1 -0
- package/dist/src/cli/scaffold.js +142 -0
- package/dist/src/cli/scaffold.js.map +1 -0
- package/dist/src/config.d.ts +272 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +362 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/data/example-packages.d.ts +49 -0
- package/dist/src/data/example-packages.d.ts.map +1 -0
- package/dist/src/data/example-packages.js +814 -0
- package/dist/src/data/example-packages.js.map +1 -0
- package/dist/src/i18n.d.ts +19 -0
- package/dist/src/i18n.d.ts.map +1 -0
- package/dist/src/i18n.js +126 -0
- package/dist/src/i18n.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +608 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/boards.d.ts +18 -0
- package/dist/src/mcp/boards.d.ts.map +1 -0
- package/dist/src/mcp/boards.js +279 -0
- package/dist/src/mcp/boards.js.map +1 -0
- package/dist/src/mcp/catalogue.d.ts +17 -0
- package/dist/src/mcp/catalogue.d.ts.map +1 -0
- package/dist/src/mcp/catalogue.js +114 -0
- package/dist/src/mcp/catalogue.js.map +1 -0
- package/dist/src/mcp/chat-instances.d.ts +18 -0
- package/dist/src/mcp/chat-instances.d.ts.map +1 -0
- package/dist/src/mcp/chat-instances.js +161 -0
- package/dist/src/mcp/chat-instances.js.map +1 -0
- package/dist/src/mcp/consent.d.ts +18 -0
- package/dist/src/mcp/consent.d.ts.map +1 -0
- package/dist/src/mcp/consent.js +158 -0
- package/dist/src/mcp/consent.js.map +1 -0
- package/dist/src/mcp/core.d.ts +18 -0
- package/dist/src/mcp/core.d.ts.map +1 -0
- package/dist/src/mcp/core.js +489 -0
- package/dist/src/mcp/core.js.map +1 -0
- package/dist/src/mcp/extensions.d.ts +18 -0
- package/dist/src/mcp/extensions.d.ts.map +1 -0
- package/dist/src/mcp/extensions.js +299 -0
- package/dist/src/mcp/extensions.js.map +1 -0
- package/dist/src/mcp/flags.d.ts +18 -0
- package/dist/src/mcp/flags.d.ts.map +1 -0
- package/dist/src/mcp/flags.js +59 -0
- package/dist/src/mcp/flags.js.map +1 -0
- package/dist/src/mcp/index.d.ts +31 -0
- package/dist/src/mcp/index.d.ts.map +1 -0
- package/dist/src/mcp/index.js +694 -0
- package/dist/src/mcp/index.js.map +1 -0
- package/dist/src/mcp/knowledge.d.ts +18 -0
- package/dist/src/mcp/knowledge.d.ts.map +1 -0
- package/dist/src/mcp/knowledge.js +214 -0
- package/dist/src/mcp/knowledge.js.map +1 -0
- package/dist/src/mcp/memory-extended.d.ts +18 -0
- package/dist/src/mcp/memory-extended.d.ts.map +1 -0
- package/dist/src/mcp/memory-extended.js +73 -0
- package/dist/src/mcp/memory-extended.js.map +1 -0
- package/dist/src/mcp/organisms.d.ts +18 -0
- package/dist/src/mcp/organisms.d.ts.map +1 -0
- package/dist/src/mcp/organisms.js +291 -0
- package/dist/src/mcp/organisms.js.map +1 -0
- package/dist/src/mcp/prompts.d.ts +17 -0
- package/dist/src/mcp/prompts.d.ts.map +1 -0
- package/dist/src/mcp/prompts.js +65 -0
- package/dist/src/mcp/prompts.js.map +1 -0
- package/dist/src/mcp/wallet-extended.d.ts +17 -0
- package/dist/src/mcp/wallet-extended.d.ts.map +1 -0
- package/dist/src/mcp/wallet-extended.js +42 -0
- package/dist/src/mcp/wallet-extended.js.map +1 -0
- package/dist/src/middleware/__tests__/cookie-consent.test.d.ts +2 -0
- package/dist/src/middleware/__tests__/cookie-consent.test.d.ts.map +1 -0
- package/dist/src/middleware/__tests__/cookie-consent.test.js +432 -0
- package/dist/src/middleware/__tests__/cookie-consent.test.js.map +1 -0
- package/dist/src/middleware/cookie-consent.d.ts +19 -0
- package/dist/src/middleware/cookie-consent.d.ts.map +1 -0
- package/dist/src/middleware/cookie-consent.js +127 -0
- package/dist/src/middleware/cookie-consent.js.map +1 -0
- package/dist/src/middleware/cors.d.ts +12 -0
- package/dist/src/middleware/cors.d.ts.map +1 -0
- package/dist/src/middleware/cors.js +112 -0
- package/dist/src/middleware/cors.js.map +1 -0
- package/dist/src/middleware/envelope.d.ts +33 -0
- package/dist/src/middleware/envelope.d.ts.map +1 -0
- package/dist/src/middleware/envelope.js +32 -0
- package/dist/src/middleware/envelope.js.map +1 -0
- package/dist/src/middleware/idempotency.d.ts +3 -0
- package/dist/src/middleware/idempotency.d.ts.map +1 -0
- package/dist/src/middleware/idempotency.js +64 -0
- package/dist/src/middleware/idempotency.js.map +1 -0
- package/dist/src/middleware/metrics.d.ts +8 -0
- package/dist/src/middleware/metrics.d.ts.map +1 -0
- package/dist/src/middleware/metrics.js +25 -0
- package/dist/src/middleware/metrics.js.map +1 -0
- package/dist/src/middleware/rate-limit.d.ts +4 -0
- package/dist/src/middleware/rate-limit.d.ts.map +1 -0
- package/dist/src/middleware/rate-limit.js +73 -0
- package/dist/src/middleware/rate-limit.js.map +1 -0
- package/dist/src/middleware/request-id.d.ts +18 -0
- package/dist/src/middleware/request-id.d.ts.map +1 -0
- package/dist/src/middleware/request-id.js +23 -0
- package/dist/src/middleware/request-id.js.map +1 -0
- package/dist/src/middleware/stats.d.ts +4 -0
- package/dist/src/middleware/stats.d.ts.map +1 -0
- package/dist/src/middleware/stats.js +11 -0
- package/dist/src/middleware/stats.js.map +1 -0
- package/dist/src/middleware/workspace-access.d.ts +16 -0
- package/dist/src/middleware/workspace-access.d.ts.map +1 -0
- package/dist/src/middleware/workspace-access.js +115 -0
- package/dist/src/middleware/workspace-access.js.map +1 -0
- package/dist/src/models/schemas.d.ts +311 -0
- package/dist/src/models/schemas.d.ts.map +1 -0
- package/dist/src/models/schemas.js +281 -0
- package/dist/src/models/schemas.js.map +1 -0
- package/dist/src/routes/actions.d.ts +5 -0
- package/dist/src/routes/actions.d.ts.map +1 -0
- package/dist/src/routes/actions.js +199 -0
- package/dist/src/routes/actions.js.map +1 -0
- package/dist/src/routes/admin-agents.d.ts +5 -0
- package/dist/src/routes/admin-agents.d.ts.map +1 -0
- package/dist/src/routes/admin-agents.js +60 -0
- package/dist/src/routes/admin-agents.js.map +1 -0
- package/dist/src/routes/admin-config.d.ts +7 -0
- package/dist/src/routes/admin-config.d.ts.map +1 -0
- package/dist/src/routes/admin-config.js +209 -0
- package/dist/src/routes/admin-config.js.map +1 -0
- package/dist/src/routes/admin-economy.d.ts +5 -0
- package/dist/src/routes/admin-economy.d.ts.map +1 -0
- package/dist/src/routes/admin-economy.js +57 -0
- package/dist/src/routes/admin-economy.js.map +1 -0
- package/dist/src/routes/admin-extensions.d.ts +6 -0
- package/dist/src/routes/admin-extensions.d.ts.map +1 -0
- package/dist/src/routes/admin-extensions.js +619 -0
- package/dist/src/routes/admin-extensions.js.map +1 -0
- package/dist/src/routes/admin-features.d.ts +16 -0
- package/dist/src/routes/admin-features.d.ts.map +1 -0
- package/dist/src/routes/admin-features.js +672 -0
- package/dist/src/routes/admin-features.js.map +1 -0
- package/dist/src/routes/admin-maintenance.d.ts +8 -0
- package/dist/src/routes/admin-maintenance.d.ts.map +1 -0
- package/dist/src/routes/admin-maintenance.js +86 -0
- package/dist/src/routes/admin-maintenance.js.map +1 -0
- package/dist/src/routes/admin-memory.d.ts +12 -0
- package/dist/src/routes/admin-memory.d.ts.map +1 -0
- package/dist/src/routes/admin-memory.js +64 -0
- package/dist/src/routes/admin-memory.js.map +1 -0
- package/dist/src/routes/admin-monitoring.d.ts +5 -0
- package/dist/src/routes/admin-monitoring.d.ts.map +1 -0
- package/dist/src/routes/admin-monitoring.js +343 -0
- package/dist/src/routes/admin-monitoring.js.map +1 -0
- package/dist/src/routes/admin-prompts.d.ts +5 -0
- package/dist/src/routes/admin-prompts.d.ts.map +1 -0
- package/dist/src/routes/admin-prompts.js +198 -0
- package/dist/src/routes/admin-prompts.js.map +1 -0
- package/dist/src/routes/admin-scheduler.d.ts +6 -0
- package/dist/src/routes/admin-scheduler.d.ts.map +1 -0
- package/dist/src/routes/admin-scheduler.js +153 -0
- package/dist/src/routes/admin-scheduler.js.map +1 -0
- package/dist/src/routes/admin.d.ts +10 -0
- package/dist/src/routes/admin.d.ts.map +1 -0
- package/dist/src/routes/admin.js +847 -0
- package/dist/src/routes/admin.js.map +1 -0
- package/dist/src/routes/agents.d.ts +5 -0
- package/dist/src/routes/agents.d.ts.map +1 -0
- package/dist/src/routes/agents.js +946 -0
- package/dist/src/routes/agents.js.map +1 -0
- package/dist/src/routes/app-store.d.ts +25 -0
- package/dist/src/routes/app-store.d.ts.map +1 -0
- package/dist/src/routes/app-store.js +269 -0
- package/dist/src/routes/app-store.js.map +1 -0
- package/dist/src/routes/appeals.d.ts +5 -0
- package/dist/src/routes/appeals.d.ts.map +1 -0
- package/dist/src/routes/appeals.js +241 -0
- package/dist/src/routes/appeals.js.map +1 -0
- package/dist/src/routes/apps.d.ts +14 -0
- package/dist/src/routes/apps.d.ts.map +1 -0
- package/dist/src/routes/apps.js +395 -0
- package/dist/src/routes/apps.js.map +1 -0
- package/dist/src/routes/auth.d.ts +13 -0
- package/dist/src/routes/auth.d.ts.map +1 -0
- package/dist/src/routes/auth.js +517 -0
- package/dist/src/routes/auth.js.map +1 -0
- package/dist/src/routes/boards.d.ts +5 -0
- package/dist/src/routes/boards.d.ts.map +1 -0
- package/dist/src/routes/boards.js +614 -0
- package/dist/src/routes/boards.js.map +1 -0
- package/dist/src/routes/bootstrap.d.ts +6 -0
- package/dist/src/routes/bootstrap.d.ts.map +1 -0
- package/dist/src/routes/bootstrap.js +360 -0
- package/dist/src/routes/bootstrap.js.map +1 -0
- package/dist/src/routes/calibrator.d.ts +28 -0
- package/dist/src/routes/calibrator.d.ts.map +1 -0
- package/dist/src/routes/calibrator.js +556 -0
- package/dist/src/routes/calibrator.js.map +1 -0
- package/dist/src/routes/catalogue.d.ts +7 -0
- package/dist/src/routes/catalogue.d.ts.map +1 -0
- package/dist/src/routes/catalogue.js +377 -0
- package/dist/src/routes/catalogue.js.map +1 -0
- package/dist/src/routes/chat-instances.d.ts +5 -0
- package/dist/src/routes/chat-instances.d.ts.map +1 -0
- package/dist/src/routes/chat-instances.js +131 -0
- package/dist/src/routes/chat-instances.js.map +1 -0
- package/dist/src/routes/consent.d.ts +6 -0
- package/dist/src/routes/consent.d.ts.map +1 -0
- package/dist/src/routes/consent.js +188 -0
- package/dist/src/routes/consent.js.map +1 -0
- package/dist/src/routes/cortex.d.ts +5 -0
- package/dist/src/routes/cortex.d.ts.map +1 -0
- package/dist/src/routes/cortex.js +617 -0
- package/dist/src/routes/cortex.js.map +1 -0
- package/dist/src/routes/csm.d.ts +5 -0
- package/dist/src/routes/csm.d.ts.map +1 -0
- package/dist/src/routes/csm.js +258 -0
- package/dist/src/routes/csm.js.map +1 -0
- package/dist/src/routes/disputes.d.ts +5 -0
- package/dist/src/routes/disputes.d.ts.map +1 -0
- package/dist/src/routes/disputes.js +528 -0
- package/dist/src/routes/disputes.js.map +1 -0
- package/dist/src/routes/extensions.d.ts +6 -0
- package/dist/src/routes/extensions.d.ts.map +1 -0
- package/dist/src/routes/extensions.js +1149 -0
- package/dist/src/routes/extensions.js.map +1 -0
- package/dist/src/routes/federation-genesis.d.ts +11 -0
- package/dist/src/routes/federation-genesis.d.ts.map +1 -0
- package/dist/src/routes/federation-genesis.js +638 -0
- package/dist/src/routes/federation-genesis.js.map +1 -0
- package/dist/src/routes/federation-peer.d.ts +10 -0
- package/dist/src/routes/federation-peer.d.ts.map +1 -0
- package/dist/src/routes/federation-peer.js +613 -0
- package/dist/src/routes/federation-peer.js.map +1 -0
- package/dist/src/routes/federation-settlements.d.ts +10 -0
- package/dist/src/routes/federation-settlements.d.ts.map +1 -0
- package/dist/src/routes/federation-settlements.js +231 -0
- package/dist/src/routes/federation-settlements.js.map +1 -0
- package/dist/src/routes/federation-sync.d.ts +15 -0
- package/dist/src/routes/federation-sync.d.ts.map +1 -0
- package/dist/src/routes/federation-sync.js +629 -0
- package/dist/src/routes/federation-sync.js.map +1 -0
- package/dist/src/routes/federation.d.ts +15 -0
- package/dist/src/routes/federation.d.ts.map +1 -0
- package/dist/src/routes/federation.js +23 -0
- package/dist/src/routes/federation.js.map +1 -0
- package/dist/src/routes/flags.d.ts +5 -0
- package/dist/src/routes/flags.d.ts.map +1 -0
- package/dist/src/routes/flags.js +194 -0
- package/dist/src/routes/flags.js.map +1 -0
- package/dist/src/routes/foundry.d.ts +5 -0
- package/dist/src/routes/foundry.d.ts.map +1 -0
- package/dist/src/routes/foundry.js +955 -0
- package/dist/src/routes/foundry.js.map +1 -0
- package/dist/src/routes/generator-autopilot.d.ts +12 -0
- package/dist/src/routes/generator-autopilot.d.ts.map +1 -0
- package/dist/src/routes/generator-autopilot.js +71 -0
- package/dist/src/routes/generator-autopilot.js.map +1 -0
- package/dist/src/routes/generator.d.ts +5 -0
- package/dist/src/routes/generator.d.ts.map +1 -0
- package/dist/src/routes/generator.js +1313 -0
- package/dist/src/routes/generator.js.map +1 -0
- package/dist/src/routes/ghii.d.ts +16 -0
- package/dist/src/routes/ghii.d.ts.map +1 -0
- package/dist/src/routes/ghii.js +1115 -0
- package/dist/src/routes/ghii.js.map +1 -0
- package/dist/src/routes/instances.d.ts +31 -0
- package/dist/src/routes/instances.d.ts.map +1 -0
- package/dist/src/routes/instances.js +722 -0
- package/dist/src/routes/instances.js.map +1 -0
- package/dist/src/routes/knowledge.d.ts +33 -0
- package/dist/src/routes/knowledge.d.ts.map +1 -0
- package/dist/src/routes/knowledge.js +1108 -0
- package/dist/src/routes/knowledge.js.map +1 -0
- package/dist/src/routes/lib-data.d.ts +7 -0
- package/dist/src/routes/lib-data.d.ts.map +1 -0
- package/dist/src/routes/lib-data.js +189 -0
- package/dist/src/routes/lib-data.js.map +1 -0
- package/dist/src/routes/lib-social.d.ts +7 -0
- package/dist/src/routes/lib-social.d.ts.map +1 -0
- package/dist/src/routes/lib-social.js +159 -0
- package/dist/src/routes/lib-social.js.map +1 -0
- package/dist/src/routes/lib-storage.d.ts +7 -0
- package/dist/src/routes/lib-storage.d.ts.map +1 -0
- package/dist/src/routes/lib-storage.js +202 -0
- package/dist/src/routes/lib-storage.js.map +1 -0
- package/dist/src/routes/lib-tunnel.d.ts +8 -0
- package/dist/src/routes/lib-tunnel.d.ts.map +1 -0
- package/dist/src/routes/lib-tunnel.js +442 -0
- package/dist/src/routes/lib-tunnel.js.map +1 -0
- package/dist/src/routes/lib-wallet.d.ts +7 -0
- package/dist/src/routes/lib-wallet.d.ts.map +1 -0
- package/dist/src/routes/lib-wallet.js +129 -0
- package/dist/src/routes/lib-wallet.js.map +1 -0
- package/dist/src/routes/lib-work.d.ts +7 -0
- package/dist/src/routes/lib-work.d.ts.map +1 -0
- package/dist/src/routes/lib-work.js +210 -0
- package/dist/src/routes/lib-work.js.map +1 -0
- package/dist/src/routes/libs.d.ts +10 -0
- package/dist/src/routes/libs.d.ts.map +1 -0
- package/dist/src/routes/libs.js +989 -0
- package/dist/src/routes/libs.js.map +1 -0
- package/dist/src/routes/matches.d.ts +10 -0
- package/dist/src/routes/matches.d.ts.map +1 -0
- package/dist/src/routes/matches.js +218 -0
- package/dist/src/routes/matches.js.map +1 -0
- package/dist/src/routes/memory.d.ts +6 -0
- package/dist/src/routes/memory.d.ts.map +1 -0
- package/dist/src/routes/memory.js +796 -0
- package/dist/src/routes/memory.js.map +1 -0
- package/dist/src/routes/micro-memory.d.ts +5 -0
- package/dist/src/routes/micro-memory.d.ts.map +1 -0
- package/dist/src/routes/micro-memory.js +488 -0
- package/dist/src/routes/micro-memory.js.map +1 -0
- package/dist/src/routes/msm.d.ts +5 -0
- package/dist/src/routes/msm.d.ts.map +1 -0
- package/dist/src/routes/msm.js +242 -0
- package/dist/src/routes/msm.js.map +1 -0
- package/dist/src/routes/openrouter.d.ts +23 -0
- package/dist/src/routes/openrouter.d.ts.map +1 -0
- package/dist/src/routes/openrouter.js +337 -0
- package/dist/src/routes/openrouter.js.map +1 -0
- package/dist/src/routes/organisms.d.ts +5 -0
- package/dist/src/routes/organisms.d.ts.map +1 -0
- package/dist/src/routes/organisms.js +415 -0
- package/dist/src/routes/organisms.js.map +1 -0
- package/dist/src/routes/owners.d.ts +5 -0
- package/dist/src/routes/owners.d.ts.map +1 -0
- package/dist/src/routes/owners.js +637 -0
- package/dist/src/routes/owners.js.map +1 -0
- package/dist/src/routes/packages.d.ts +35 -0
- package/dist/src/routes/packages.d.ts.map +1 -0
- package/dist/src/routes/packages.js +600 -0
- package/dist/src/routes/packages.js.map +1 -0
- package/dist/src/routes/permissions.d.ts +5 -0
- package/dist/src/routes/permissions.d.ts.map +1 -0
- package/dist/src/routes/permissions.js +85 -0
- package/dist/src/routes/permissions.js.map +1 -0
- package/dist/src/routes/personal.d.ts +7 -0
- package/dist/src/routes/personal.d.ts.map +1 -0
- package/dist/src/routes/personal.js +594 -0
- package/dist/src/routes/personal.js.map +1 -0
- package/dist/src/routes/portal-api.d.ts +9 -0
- package/dist/src/routes/portal-api.d.ts.map +1 -0
- package/dist/src/routes/portal-api.js +49 -0
- package/dist/src/routes/portal-api.js.map +1 -0
- package/dist/src/routes/portal-human.d.ts +12 -0
- package/dist/src/routes/portal-human.d.ts.map +1 -0
- package/dist/src/routes/portal-human.js +2652 -0
- package/dist/src/routes/portal-human.js.map +1 -0
- package/dist/src/routes/portal.d.ts +24 -0
- package/dist/src/routes/portal.d.ts.map +1 -0
- package/dist/src/routes/portal.js +372 -0
- package/dist/src/routes/portal.js.map +1 -0
- package/dist/src/routes/portfolio.d.ts +5 -0
- package/dist/src/routes/portfolio.d.ts.map +1 -0
- package/dist/src/routes/portfolio.js +231 -0
- package/dist/src/routes/portfolio.js.map +1 -0
- package/dist/src/routes/profile.d.ts +5 -0
- package/dist/src/routes/profile.d.ts.map +1 -0
- package/dist/src/routes/profile.js +2042 -0
- package/dist/src/routes/profile.js.map +1 -0
- package/dist/src/routes/prompts.d.ts +5 -0
- package/dist/src/routes/prompts.d.ts.map +1 -0
- package/dist/src/routes/prompts.js +318 -0
- package/dist/src/routes/prompts.js.map +1 -0
- package/dist/src/routes/push.d.ts +6 -0
- package/dist/src/routes/push.d.ts.map +1 -0
- package/dist/src/routes/push.js +75 -0
- package/dist/src/routes/push.js.map +1 -0
- package/dist/src/routes/realtime.d.ts +7 -0
- package/dist/src/routes/realtime.d.ts.map +1 -0
- package/dist/src/routes/realtime.js +289 -0
- package/dist/src/routes/realtime.js.map +1 -0
- package/dist/src/routes/schemas.d.ts +5 -0
- package/dist/src/routes/schemas.d.ts.map +1 -0
- package/dist/src/routes/schemas.js +130 -0
- package/dist/src/routes/schemas.js.map +1 -0
- package/dist/src/routes/setup.d.ts +7 -0
- package/dist/src/routes/setup.d.ts.map +1 -0
- package/dist/src/routes/setup.js +243 -0
- package/dist/src/routes/setup.js.map +1 -0
- package/dist/src/routes/site.d.ts +6 -0
- package/dist/src/routes/site.d.ts.map +1 -0
- package/dist/src/routes/site.js +201 -0
- package/dist/src/routes/site.js.map +1 -0
- package/dist/src/routes/spec.d.ts +3 -0
- package/dist/src/routes/spec.d.ts.map +1 -0
- package/dist/src/routes/spec.js +47 -0
- package/dist/src/routes/spec.js.map +1 -0
- package/dist/src/routes/sse.d.ts +5 -0
- package/dist/src/routes/sse.d.ts.map +1 -0
- package/dist/src/routes/sse.js +66 -0
- package/dist/src/routes/sse.js.map +1 -0
- package/dist/src/routes/stats.d.ts +7 -0
- package/dist/src/routes/stats.d.ts.map +1 -0
- package/dist/src/routes/stats.js +98 -0
- package/dist/src/routes/stats.js.map +1 -0
- package/dist/src/routes/storage-files.d.ts +5 -0
- package/dist/src/routes/storage-files.d.ts.map +1 -0
- package/dist/src/routes/storage-files.js +460 -0
- package/dist/src/routes/storage-files.js.map +1 -0
- package/dist/src/routes/templates.d.ts +30 -0
- package/dist/src/routes/templates.d.ts.map +1 -0
- package/dist/src/routes/templates.js +511 -0
- package/dist/src/routes/templates.js.map +1 -0
- package/dist/src/routes/totp.d.ts +5 -0
- package/dist/src/routes/totp.d.ts.map +1 -0
- package/dist/src/routes/totp.js +166 -0
- package/dist/src/routes/totp.js.map +1 -0
- package/dist/src/routes/validate.d.ts +4 -0
- package/dist/src/routes/validate.d.ts.map +1 -0
- package/dist/src/routes/validate.js +71 -0
- package/dist/src/routes/validate.js.map +1 -0
- package/dist/src/routes/verification.d.ts +8 -0
- package/dist/src/routes/verification.d.ts.map +1 -0
- package/dist/src/routes/verification.js +259 -0
- package/dist/src/routes/verification.js.map +1 -0
- package/dist/src/routes/wallet.d.ts +18 -0
- package/dist/src/routes/wallet.d.ts.map +1 -0
- package/dist/src/routes/wallet.js +164 -0
- package/dist/src/routes/wallet.js.map +1 -0
- package/dist/src/routes/wellknown.d.ts +5 -0
- package/dist/src/routes/wellknown.d.ts.map +1 -0
- package/dist/src/routes/wellknown.js +57 -0
- package/dist/src/routes/wellknown.js.map +1 -0
- package/dist/src/routes/work.d.ts +21 -0
- package/dist/src/routes/work.d.ts.map +1 -0
- package/dist/src/routes/work.js +654 -0
- package/dist/src/routes/work.js.map +1 -0
- package/dist/src/schemas/knowledge-package.d.ts +203 -0
- package/dist/src/schemas/knowledge-package.d.ts.map +1 -0
- package/dist/src/schemas/knowledge-package.js +233 -0
- package/dist/src/schemas/knowledge-package.js.map +1 -0
- package/dist/src/server-bootstrap/config-init.d.ts +16 -0
- package/dist/src/server-bootstrap/config-init.d.ts.map +1 -0
- package/dist/src/server-bootstrap/config-init.js +113 -0
- package/dist/src/server-bootstrap/config-init.js.map +1 -0
- package/dist/src/server-bootstrap/middleware-guards.d.ts +15 -0
- package/dist/src/server-bootstrap/middleware-guards.d.ts.map +1 -0
- package/dist/src/server-bootstrap/middleware-guards.js +244 -0
- package/dist/src/server-bootstrap/middleware-guards.js.map +1 -0
- package/dist/src/server-bootstrap/routes-loader.d.ts +35 -0
- package/dist/src/server-bootstrap/routes-loader.d.ts.map +1 -0
- package/dist/src/server-bootstrap/routes-loader.js +290 -0
- package/dist/src/server-bootstrap/routes-loader.js.map +1 -0
- package/dist/src/server-bootstrap/service-init.d.ts +24 -0
- package/dist/src/server-bootstrap/service-init.d.ts.map +1 -0
- package/dist/src/server-bootstrap/service-init.js +195 -0
- package/dist/src/server-bootstrap/service-init.js.map +1 -0
- package/dist/src/server-bootstrap/static-files.d.ts +7 -0
- package/dist/src/server-bootstrap/static-files.d.ts.map +1 -0
- package/dist/src/server-bootstrap/static-files.js +119 -0
- package/dist/src/server-bootstrap/static-files.js.map +1 -0
- package/dist/src/server.d.ts +22 -0
- package/dist/src/server.d.ts.map +1 -0
- package/dist/src/server.js +133 -0
- package/dist/src/server.js.map +1 -0
- package/dist/src/services/cache-cleanup.d.ts +31 -0
- package/dist/src/services/cache-cleanup.d.ts.map +1 -0
- package/dist/src/services/cache-cleanup.js +123 -0
- package/dist/src/services/cache-cleanup.js.map +1 -0
- package/dist/src/services/catalogue-sync.d.ts +45 -0
- package/dist/src/services/catalogue-sync.d.ts.map +1 -0
- package/dist/src/services/catalogue-sync.js +196 -0
- package/dist/src/services/catalogue-sync.js.map +1 -0
- package/dist/src/services/component-registrar.d.ts +46 -0
- package/dist/src/services/component-registrar.d.ts.map +1 -0
- package/dist/src/services/component-registrar.js +389 -0
- package/dist/src/services/component-registrar.js.map +1 -0
- package/dist/src/services/config-loader.d.ts +42 -0
- package/dist/src/services/config-loader.d.ts.map +1 -0
- package/dist/src/services/config-loader.js +187 -0
- package/dist/src/services/config-loader.js.map +1 -0
- package/dist/src/services/config-provenance.d.ts +32 -0
- package/dist/src/services/config-provenance.d.ts.map +1 -0
- package/dist/src/services/config-provenance.js +59 -0
- package/dist/src/services/config-provenance.js.map +1 -0
- package/dist/src/services/config-schema.d.ts +52 -0
- package/dist/src/services/config-schema.d.ts.map +1 -0
- package/dist/src/services/config-schema.js +288 -0
- package/dist/src/services/config-schema.js.map +1 -0
- package/dist/src/services/consent.d.ts +43 -0
- package/dist/src/services/consent.d.ts.map +1 -0
- package/dist/src/services/consent.js +137 -0
- package/dist/src/services/consent.js.map +1 -0
- package/dist/src/services/consul-config.d.ts +30 -0
- package/dist/src/services/consul-config.d.ts.map +1 -0
- package/dist/src/services/consul-config.js +110 -0
- package/dist/src/services/consul-config.js.map +1 -0
- package/dist/src/services/core-jobs.d.ts +8 -0
- package/dist/src/services/core-jobs.d.ts.map +1 -0
- package/dist/src/services/core-jobs.js +161 -0
- package/dist/src/services/core-jobs.js.map +1 -0
- package/dist/src/services/cortex-manifest.d.ts +17 -0
- package/dist/src/services/cortex-manifest.d.ts.map +1 -0
- package/dist/src/services/cortex-manifest.js +343 -0
- package/dist/src/services/cortex-manifest.js.map +1 -0
- package/dist/src/services/cortex-seeder.d.ts +18 -0
- package/dist/src/services/cortex-seeder.d.ts.map +1 -0
- package/dist/src/services/cortex-seeder.js +86 -0
- package/dist/src/services/cortex-seeder.js.map +1 -0
- package/dist/src/services/cross-node-matching.d.ts +23 -0
- package/dist/src/services/cross-node-matching.d.ts.map +1 -0
- package/dist/src/services/cross-node-matching.js +62 -0
- package/dist/src/services/cross-node-matching.js.map +1 -0
- package/dist/src/services/csm-parser.d.ts +57 -0
- package/dist/src/services/csm-parser.d.ts.map +1 -0
- package/dist/src/services/csm-parser.js +161 -0
- package/dist/src/services/csm-parser.js.map +1 -0
- package/dist/src/services/csm-seed.d.ts +15 -0
- package/dist/src/services/csm-seed.d.ts.map +1 -0
- package/dist/src/services/csm-seed.js +89 -0
- package/dist/src/services/csm-seed.js.map +1 -0
- package/dist/src/services/directory.d.ts +86 -0
- package/dist/src/services/directory.d.ts.map +1 -0
- package/dist/src/services/directory.js +307 -0
- package/dist/src/services/directory.js.map +1 -0
- package/dist/src/services/email-templates.d.ts +29 -0
- package/dist/src/services/email-templates.d.ts.map +1 -0
- package/dist/src/services/email-templates.js +204 -0
- package/dist/src/services/email-templates.js.map +1 -0
- package/dist/src/services/email.d.ts +18 -0
- package/dist/src/services/email.d.ts.map +1 -0
- package/dist/src/services/email.js +102 -0
- package/dist/src/services/email.js.map +1 -0
- package/dist/src/services/encryption.d.ts +31 -0
- package/dist/src/services/encryption.d.ts.map +1 -0
- package/dist/src/services/encryption.js +51 -0
- package/dist/src/services/encryption.js.map +1 -0
- package/dist/src/services/eudiw.d.ts +15 -0
- package/dist/src/services/eudiw.d.ts.map +1 -0
- package/dist/src/services/eudiw.js +89 -0
- package/dist/src/services/eudiw.js.map +1 -0
- package/dist/src/services/event-bus.d.ts +8 -0
- package/dist/src/services/event-bus.d.ts.map +1 -0
- package/dist/src/services/event-bus.js +13 -0
- package/dist/src/services/event-bus.js.map +1 -0
- package/dist/src/services/extension-runtime.d.ts +72 -0
- package/dist/src/services/extension-runtime.d.ts.map +1 -0
- package/dist/src/services/extension-runtime.js +282 -0
- package/dist/src/services/extension-runtime.js.map +1 -0
- package/dist/src/services/federation-helpers.d.ts +37 -0
- package/dist/src/services/federation-helpers.d.ts.map +1 -0
- package/dist/src/services/federation-helpers.js +100 -0
- package/dist/src/services/federation-helpers.js.map +1 -0
- package/dist/src/services/federation.d.ts +32 -0
- package/dist/src/services/federation.d.ts.map +1 -0
- package/dist/src/services/federation.js +201 -0
- package/dist/src/services/federation.js.map +1 -0
- package/dist/src/services/foundry-debug.d.ts +77 -0
- package/dist/src/services/foundry-debug.d.ts.map +1 -0
- package/dist/src/services/foundry-debug.js +214 -0
- package/dist/src/services/foundry-debug.js.map +1 -0
- package/dist/src/services/foundry-registration.d.ts +42 -0
- package/dist/src/services/foundry-registration.d.ts.map +1 -0
- package/dist/src/services/foundry-registration.js +330 -0
- package/dist/src/services/foundry-registration.js.map +1 -0
- package/dist/src/services/foundry-testing.d.ts +90 -0
- package/dist/src/services/foundry-testing.d.ts.map +1 -0
- package/dist/src/services/foundry-testing.js +253 -0
- package/dist/src/services/foundry-testing.js.map +1 -0
- package/dist/src/services/foundry-validate.d.ts +115 -0
- package/dist/src/services/foundry-validate.d.ts.map +1 -0
- package/dist/src/services/foundry-validate.js +781 -0
- package/dist/src/services/foundry-validate.js.map +1 -0
- package/dist/src/services/generator-autopilot.d.ts +37 -0
- package/dist/src/services/generator-autopilot.d.ts.map +1 -0
- package/dist/src/services/generator-autopilot.js +1076 -0
- package/dist/src/services/generator-autopilot.js.map +1 -0
- package/dist/src/services/generator-debug.d.ts +79 -0
- package/dist/src/services/generator-debug.d.ts.map +1 -0
- package/dist/src/services/generator-debug.js +218 -0
- package/dist/src/services/generator-debug.js.map +1 -0
- package/dist/src/services/generator-prompt-seeds.d.ts +13 -0
- package/dist/src/services/generator-prompt-seeds.d.ts.map +1 -0
- package/dist/src/services/generator-prompt-seeds.js +2694 -0
- package/dist/src/services/generator-prompt-seeds.js.map +1 -0
- package/dist/src/services/generator-prompts/bundle.d.ts +17 -0
- package/dist/src/services/generator-prompts/bundle.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/bundle.js +95 -0
- package/dist/src/services/generator-prompts/bundle.js.map +1 -0
- package/dist/src/services/generator-prompts/index.d.ts +48 -0
- package/dist/src/services/generator-prompts/index.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/index.js +97 -0
- package/dist/src/services/generator-prompts/index.js.map +1 -0
- package/dist/src/services/generator-prompts/resolvers.d.ts +21 -0
- package/dist/src/services/generator-prompts/resolvers.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/resolvers.js +1553 -0
- package/dist/src/services/generator-prompts/resolvers.js.map +1 -0
- package/dist/src/services/generator-prompts/spec-validate.d.ts +29 -0
- package/dist/src/services/generator-prompts/spec-validate.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/spec-validate.js +190 -0
- package/dist/src/services/generator-prompts/spec-validate.js.map +1 -0
- package/dist/src/services/generator-prompts/strip.d.ts +13 -0
- package/dist/src/services/generator-prompts/strip.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/strip.js +60 -0
- package/dist/src/services/generator-prompts/strip.js.map +1 -0
- package/dist/src/services/generator-prompts/types.d.ts +229 -0
- package/dist/src/services/generator-prompts/types.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/types.js +8 -0
- package/dist/src/services/generator-prompts/types.js.map +1 -0
- package/dist/src/services/generator-prompts/validate.d.ts +48 -0
- package/dist/src/services/generator-prompts/validate.d.ts.map +1 -0
- package/dist/src/services/generator-prompts/validate.js +927 -0
- package/dist/src/services/generator-prompts/validate.js.map +1 -0
- package/dist/src/services/generator-registration.d.ts +43 -0
- package/dist/src/services/generator-registration.d.ts.map +1 -0
- package/dist/src/services/generator-registration.js +343 -0
- package/dist/src/services/generator-registration.js.map +1 -0
- package/dist/src/services/generator-testing.d.ts +93 -0
- package/dist/src/services/generator-testing.d.ts.map +1 -0
- package/dist/src/services/generator-testing.js +300 -0
- package/dist/src/services/generator-testing.js.map +1 -0
- package/dist/src/services/generator-validate.d.ts +117 -0
- package/dist/src/services/generator-validate.d.ts.map +1 -0
- package/dist/src/services/generator-validate.js +790 -0
- package/dist/src/services/generator-validate.js.map +1 -0
- package/dist/src/services/genesis-peering.d.ts +12 -0
- package/dist/src/services/genesis-peering.d.ts.map +1 -0
- package/dist/src/services/genesis-peering.js +91 -0
- package/dist/src/services/genesis-peering.js.map +1 -0
- package/dist/src/services/genesis-sync.d.ts +29 -0
- package/dist/src/services/genesis-sync.d.ts.map +1 -0
- package/dist/src/services/genesis-sync.js +370 -0
- package/dist/src/services/genesis-sync.js.map +1 -0
- package/dist/src/services/hooks.d.ts +21 -0
- package/dist/src/services/hooks.d.ts.map +1 -0
- package/dist/src/services/hooks.js +85 -0
- package/dist/src/services/hooks.js.map +1 -0
- package/dist/src/services/job-seeding.d.ts +7 -0
- package/dist/src/services/job-seeding.d.ts.map +1 -0
- package/dist/src/services/job-seeding.js +39 -0
- package/dist/src/services/job-seeding.js.map +1 -0
- package/dist/src/services/knowledge.d.ts +13 -0
- package/dist/src/services/knowledge.d.ts.map +1 -0
- package/dist/src/services/knowledge.js +15 -0
- package/dist/src/services/knowledge.js.map +1 -0
- package/dist/src/services/mailbox-notification.d.ts +37 -0
- package/dist/src/services/mailbox-notification.d.ts.map +1 -0
- package/dist/src/services/mailbox-notification.js +249 -0
- package/dist/src/services/mailbox-notification.js.map +1 -0
- package/dist/src/services/mailbox.d.ts +16 -0
- package/dist/src/services/mailbox.d.ts.map +1 -0
- package/dist/src/services/mailbox.js +77 -0
- package/dist/src/services/mailbox.js.map +1 -0
- package/dist/src/services/match-notification.d.ts +12 -0
- package/dist/src/services/match-notification.d.ts.map +1 -0
- package/dist/src/services/match-notification.js +121 -0
- package/dist/src/services/match-notification.js.map +1 -0
- package/dist/src/services/matching.d.ts +54 -0
- package/dist/src/services/matching.d.ts.map +1 -0
- package/dist/src/services/matching.js +293 -0
- package/dist/src/services/matching.js.map +1 -0
- package/dist/src/services/memory-replication.d.ts +43 -0
- package/dist/src/services/memory-replication.d.ts.map +1 -0
- package/dist/src/services/memory-replication.js +213 -0
- package/dist/src/services/memory-replication.js.map +1 -0
- package/dist/src/services/morsel.d.ts +49 -0
- package/dist/src/services/morsel.d.ts.map +1 -0
- package/dist/src/services/morsel.js +174 -0
- package/dist/src/services/morsel.js.map +1 -0
- package/dist/src/services/msm-parser.d.ts +55 -0
- package/dist/src/services/msm-parser.d.ts.map +1 -0
- package/dist/src/services/msm-parser.js +186 -0
- package/dist/src/services/msm-parser.js.map +1 -0
- package/dist/src/services/mydata-receipt.d.ts +29 -0
- package/dist/src/services/mydata-receipt.d.ts.map +1 -0
- package/dist/src/services/mydata-receipt.js +31 -0
- package/dist/src/services/mydata-receipt.js.map +1 -0
- package/dist/src/services/notification-templates.d.ts +40 -0
- package/dist/src/services/notification-templates.d.ts.map +1 -0
- package/dist/src/services/notification-templates.js +109 -0
- package/dist/src/services/notification-templates.js.map +1 -0
- package/dist/src/services/openrouter.d.ts +30 -0
- package/dist/src/services/openrouter.d.ts.map +1 -0
- package/dist/src/services/openrouter.js +95 -0
- package/dist/src/services/openrouter.js.map +1 -0
- package/dist/src/services/organism-reputation.d.ts +7 -0
- package/dist/src/services/organism-reputation.d.ts.map +1 -0
- package/dist/src/services/organism-reputation.js +107 -0
- package/dist/src/services/organism-reputation.js.map +1 -0
- package/dist/src/services/package-hash.d.ts +19 -0
- package/dist/src/services/package-hash.d.ts.map +1 -0
- package/dist/src/services/package-hash.js +22 -0
- package/dist/src/services/package-hash.js.map +1 -0
- package/dist/src/services/package-zip.d.ts +60 -0
- package/dist/src/services/package-zip.d.ts.map +1 -0
- package/dist/src/services/package-zip.js +267 -0
- package/dist/src/services/package-zip.js.map +1 -0
- package/dist/src/services/password.d.ts +9 -0
- package/dist/src/services/password.d.ts.map +1 -0
- package/dist/src/services/password.js +32 -0
- package/dist/src/services/password.js.map +1 -0
- package/dist/src/services/personal-routing.d.ts +21 -0
- package/dist/src/services/personal-routing.d.ts.map +1 -0
- package/dist/src/services/personal-routing.js +77 -0
- package/dist/src/services/personal-routing.js.map +1 -0
- package/dist/src/services/personal-tunnel.d.ts +39 -0
- package/dist/src/services/personal-tunnel.d.ts.map +1 -0
- package/dist/src/services/personal-tunnel.js +371 -0
- package/dist/src/services/personal-tunnel.js.map +1 -0
- package/dist/src/services/profile-schemas.d.ts +12 -0
- package/dist/src/services/profile-schemas.d.ts.map +1 -0
- package/dist/src/services/profile-schemas.js +100 -0
- package/dist/src/services/profile-schemas.js.map +1 -0
- package/dist/src/services/prometheus.d.ts +32 -0
- package/dist/src/services/prometheus.d.ts.map +1 -0
- package/dist/src/services/prometheus.js +162 -0
- package/dist/src/services/prometheus.js.map +1 -0
- package/dist/src/services/prompt-defaults.d.ts +33 -0
- package/dist/src/services/prompt-defaults.d.ts.map +1 -0
- package/dist/src/services/prompt-defaults.js +1675 -0
- package/dist/src/services/prompt-defaults.js.map +1 -0
- package/dist/src/services/prompt-seeder.d.ts +8 -0
- package/dist/src/services/prompt-seeder.d.ts.map +1 -0
- package/dist/src/services/prompt-seeder.js +65 -0
- package/dist/src/services/prompt-seeder.js.map +1 -0
- package/dist/src/services/prompt-variables.d.ts +15 -0
- package/dist/src/services/prompt-variables.d.ts.map +1 -0
- package/dist/src/services/prompt-variables.js +34 -0
- package/dist/src/services/prompt-variables.js.map +1 -0
- package/dist/src/services/push.d.ts +26 -0
- package/dist/src/services/push.d.ts.map +1 -0
- package/dist/src/services/push.js +70 -0
- package/dist/src/services/push.js.map +1 -0
- package/dist/src/services/quota.d.ts +45 -0
- package/dist/src/services/quota.d.ts.map +1 -0
- package/dist/src/services/quota.js +129 -0
- package/dist/src/services/quota.js.map +1 -0
- package/dist/src/services/realtime-manager.d.ts +144 -0
- package/dist/src/services/realtime-manager.d.ts.map +1 -0
- package/dist/src/services/realtime-manager.js +640 -0
- package/dist/src/services/realtime-manager.js.map +1 -0
- package/dist/src/services/scheduler.d.ts +55 -0
- package/dist/src/services/scheduler.d.ts.map +1 -0
- package/dist/src/services/scheduler.js +420 -0
- package/dist/src/services/scheduler.js.map +1 -0
- package/dist/src/services/schema-validator.d.ts +20 -0
- package/dist/src/services/schema-validator.d.ts.map +1 -0
- package/dist/src/services/schema-validator.js +68 -0
- package/dist/src/services/schema-validator.js.map +1 -0
- package/dist/src/services/site-sync.d.ts +15 -0
- package/dist/src/services/site-sync.d.ts.map +1 -0
- package/dist/src/services/site-sync.js +99 -0
- package/dist/src/services/site-sync.js.map +1 -0
- package/dist/src/services/site.d.ts +65 -0
- package/dist/src/services/site.d.ts.map +1 -0
- package/dist/src/services/site.js +378 -0
- package/dist/src/services/site.js.map +1 -0
- package/dist/src/services/stats.d.ts +75 -0
- package/dist/src/services/stats.d.ts.map +1 -0
- package/dist/src/services/stats.js +124 -0
- package/dist/src/services/stats.js.map +1 -0
- package/dist/src/services/sync-health.d.ts +53 -0
- package/dist/src/services/sync-health.d.ts.map +1 -0
- package/dist/src/services/sync-health.js +122 -0
- package/dist/src/services/sync-health.js.map +1 -0
- package/dist/src/services/sync-scheduler.d.ts +25 -0
- package/dist/src/services/sync-scheduler.d.ts.map +1 -0
- package/dist/src/services/sync-scheduler.js +211 -0
- package/dist/src/services/sync-scheduler.js.map +1 -0
- package/dist/src/services/totp.d.ts +31 -0
- package/dist/src/services/totp.d.ts.map +1 -0
- package/dist/src/services/totp.js +96 -0
- package/dist/src/services/totp.js.map +1 -0
- package/dist/src/services/trust-broadcast.d.ts +37 -0
- package/dist/src/services/trust-broadcast.d.ts.map +1 -0
- package/dist/src/services/trust-broadcast.js +107 -0
- package/dist/src/services/trust-broadcast.js.map +1 -0
- package/dist/src/services/trust.d.ts +16 -0
- package/dist/src/services/trust.d.ts.map +1 -0
- package/dist/src/services/trust.js +109 -0
- package/dist/src/services/trust.js.map +1 -0
- package/dist/src/services/vc-issuer.d.ts +14 -0
- package/dist/src/services/vc-issuer.d.ts.map +1 -0
- package/dist/src/services/vc-issuer.js +24 -0
- package/dist/src/services/vc-issuer.js.map +1 -0
- package/dist/src/storage/interface.d.ts +1161 -0
- package/dist/src/storage/interface.d.ts.map +1 -0
- package/dist/src/storage/interface.js +2 -0
- package/dist/src/storage/interface.js.map +1 -0
- package/dist/src/storage/pattern-utils.d.ts +20 -0
- package/dist/src/storage/pattern-utils.d.ts.map +1 -0
- package/dist/src/storage/pattern-utils.js +57 -0
- package/dist/src/storage/pattern-utils.js.map +1 -0
- package/dist/src/storage/providers/mongodb/index.d.ts +608 -0
- package/dist/src/storage/providers/mongodb/index.d.ts.map +1 -0
- package/dist/src/storage/providers/mongodb/index.js +4931 -0
- package/dist/src/storage/providers/mongodb/index.js.map +1 -0
- package/dist/src/storage/providers/sqlite/index.d.ts +602 -0
- package/dist/src/storage/providers/sqlite/index.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/index.js +4156 -0
- package/dist/src/storage/providers/sqlite/index.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/action.d.ts +13 -0
- package/dist/src/storage/providers/sqlite/repos/action.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/action.js +79 -0
- package/dist/src/storage/providers/sqlite/repos/action.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/agent.d.ts +13 -0
- package/dist/src/storage/providers/sqlite/repos/agent.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/agent.js +103 -0
- package/dist/src/storage/providers/sqlite/repos/agent.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/auth.d.ts +56 -0
- package/dist/src/storage/providers/sqlite/repos/auth.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/auth.js +282 -0
- package/dist/src/storage/providers/sqlite/repos/auth.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/board.d.ts +24 -0
- package/dist/src/storage/providers/sqlite/repos/board.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/board.js +154 -0
- package/dist/src/storage/providers/sqlite/repos/board.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/community.d.ts +33 -0
- package/dist/src/storage/providers/sqlite/repos/community.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/community.js +202 -0
- package/dist/src/storage/providers/sqlite/repos/community.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/consent.d.ts +23 -0
- package/dist/src/storage/providers/sqlite/repos/consent.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/consent.js +187 -0
- package/dist/src/storage/providers/sqlite/repos/consent.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/dispute.d.ts +20 -0
- package/dist/src/storage/providers/sqlite/repos/dispute.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/dispute.js +118 -0
- package/dist/src/storage/providers/sqlite/repos/dispute.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/flag.d.ts +26 -0
- package/dist/src/storage/providers/sqlite/repos/flag.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/flag.js +147 -0
- package/dist/src/storage/providers/sqlite/repos/flag.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/identity.d.ts +36 -0
- package/dist/src/storage/providers/sqlite/repos/identity.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/identity.js +297 -0
- package/dist/src/storage/providers/sqlite/repos/identity.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/mailbox.d.ts +18 -0
- package/dist/src/storage/providers/sqlite/repos/mailbox.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/mailbox.js +91 -0
- package/dist/src/storage/providers/sqlite/repos/mailbox.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/memory.d.ts +28 -0
- package/dist/src/storage/providers/sqlite/repos/memory.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/memory.js +152 -0
- package/dist/src/storage/providers/sqlite/repos/memory.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/owner.d.ts +14 -0
- package/dist/src/storage/providers/sqlite/repos/owner.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/owner.js +124 -0
- package/dist/src/storage/providers/sqlite/repos/owner.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/service-manifest.d.ts +17 -0
- package/dist/src/storage/providers/sqlite/repos/service-manifest.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/service-manifest.js +114 -0
- package/dist/src/storage/providers/sqlite/repos/service-manifest.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/storage-file.d.ts +19 -0
- package/dist/src/storage/providers/sqlite/repos/storage-file.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/storage-file.js +128 -0
- package/dist/src/storage/providers/sqlite/repos/storage-file.js.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/work.d.ts +13 -0
- package/dist/src/storage/providers/sqlite/repos/work.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/repos/work.js +86 -0
- package/dist/src/storage/providers/sqlite/repos/work.js.map +1 -0
- package/dist/src/storage/providers/sqlite/schema.d.ts +7 -0
- package/dist/src/storage/providers/sqlite/schema.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/schema.js +1090 -0
- package/dist/src/storage/providers/sqlite/schema.js.map +1 -0
- package/dist/src/storage/repositories/action.repository.d.ts +14 -0
- package/dist/src/storage/repositories/action.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/action.repository.js +2 -0
- package/dist/src/storage/repositories/action.repository.js.map +1 -0
- package/dist/src/storage/repositories/agent.repository.d.ts +18 -0
- package/dist/src/storage/repositories/agent.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/agent.repository.js +2 -0
- package/dist/src/storage/repositories/agent.repository.js.map +1 -0
- package/dist/src/storage/repositories/app-marketplace.repository.d.ts +9 -0
- package/dist/src/storage/repositories/app-marketplace.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/app-marketplace.repository.js +2 -0
- package/dist/src/storage/repositories/app-marketplace.repository.js.map +1 -0
- package/dist/src/storage/repositories/app.repository.d.ts +17 -0
- package/dist/src/storage/repositories/app.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/app.repository.js +2 -0
- package/dist/src/storage/repositories/app.repository.js.map +1 -0
- package/dist/src/storage/repositories/auth.repository.d.ts +6 -0
- package/dist/src/storage/repositories/auth.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/auth.repository.js +2 -0
- package/dist/src/storage/repositories/auth.repository.js.map +1 -0
- package/dist/src/storage/repositories/board.repository.d.ts +27 -0
- package/dist/src/storage/repositories/board.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/board.repository.js +2 -0
- package/dist/src/storage/repositories/board.repository.js.map +1 -0
- package/dist/src/storage/repositories/catalogue.repository.d.ts +18 -0
- package/dist/src/storage/repositories/catalogue.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/catalogue.repository.js +2 -0
- package/dist/src/storage/repositories/catalogue.repository.js.map +1 -0
- package/dist/src/storage/repositories/config.repository.d.ts +17 -0
- package/dist/src/storage/repositories/config.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/config.repository.js +2 -0
- package/dist/src/storage/repositories/config.repository.js.map +1 -0
- package/dist/src/storage/repositories/consent.repository.d.ts +19 -0
- package/dist/src/storage/repositories/consent.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/consent.repository.js +2 -0
- package/dist/src/storage/repositories/consent.repository.js.map +1 -0
- package/dist/src/storage/repositories/device-auth.repository.d.ts +11 -0
- package/dist/src/storage/repositories/device-auth.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/device-auth.repository.js +2 -0
- package/dist/src/storage/repositories/device-auth.repository.js.map +1 -0
- package/dist/src/storage/repositories/dispute.repository.d.ts +12 -0
- package/dist/src/storage/repositories/dispute.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/dispute.repository.js +2 -0
- package/dist/src/storage/repositories/dispute.repository.js.map +1 -0
- package/dist/src/storage/repositories/extension-instance.repository.d.ts +9 -0
- package/dist/src/storage/repositories/extension-instance.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/extension-instance.repository.js +2 -0
- package/dist/src/storage/repositories/extension-instance.repository.js.map +1 -0
- package/dist/src/storage/repositories/federation.repository.d.ts +37 -0
- package/dist/src/storage/repositories/federation.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/federation.repository.js +2 -0
- package/dist/src/storage/repositories/federation.repository.js.map +1 -0
- package/dist/src/storage/repositories/file.repository.d.ts +14 -0
- package/dist/src/storage/repositories/file.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/file.repository.js +2 -0
- package/dist/src/storage/repositories/file.repository.js.map +1 -0
- package/dist/src/storage/repositories/identity.repository.d.ts +29 -0
- package/dist/src/storage/repositories/identity.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/identity.repository.js +2 -0
- package/dist/src/storage/repositories/identity.repository.js.map +1 -0
- package/dist/src/storage/repositories/index.d.ts +34 -0
- package/dist/src/storage/repositories/index.d.ts.map +1 -0
- package/dist/src/storage/repositories/index.js +2 -0
- package/dist/src/storage/repositories/index.js.map +1 -0
- package/dist/src/storage/repositories/knowledge.repository.d.ts +18 -0
- package/dist/src/storage/repositories/knowledge.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/knowledge.repository.js +2 -0
- package/dist/src/storage/repositories/knowledge.repository.js.map +1 -0
- package/dist/src/storage/repositories/marketplace.repository.d.ts +23 -0
- package/dist/src/storage/repositories/marketplace.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/marketplace.repository.js +2 -0
- package/dist/src/storage/repositories/marketplace.repository.js.map +1 -0
- package/dist/src/storage/repositories/memory.repository.d.ts +32 -0
- package/dist/src/storage/repositories/memory.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/memory.repository.js +2 -0
- package/dist/src/storage/repositories/memory.repository.js.map +1 -0
- package/dist/src/storage/repositories/micro-memory.repository.d.ts +10 -0
- package/dist/src/storage/repositories/micro-memory.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/micro-memory.repository.js +2 -0
- package/dist/src/storage/repositories/micro-memory.repository.js.map +1 -0
- package/dist/src/storage/repositories/moderation.repository.d.ts +36 -0
- package/dist/src/storage/repositories/moderation.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/moderation.repository.js +2 -0
- package/dist/src/storage/repositories/moderation.repository.js.map +1 -0
- package/dist/src/storage/repositories/node.repository.d.ts +59 -0
- package/dist/src/storage/repositories/node.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/node.repository.js +2 -0
- package/dist/src/storage/repositories/node.repository.js.map +1 -0
- package/dist/src/storage/repositories/notification-template.repository.d.ts +8 -0
- package/dist/src/storage/repositories/notification-template.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/notification-template.repository.js +2 -0
- package/dist/src/storage/repositories/notification-template.repository.js.map +1 -0
- package/dist/src/storage/repositories/notification.repository.d.ts +14 -0
- package/dist/src/storage/repositories/notification.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/notification.repository.js +2 -0
- package/dist/src/storage/repositories/notification.repository.js.map +1 -0
- package/dist/src/storage/repositories/oauth.repository.d.ts +19 -0
- package/dist/src/storage/repositories/oauth.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/oauth.repository.js +2 -0
- package/dist/src/storage/repositories/oauth.repository.js.map +1 -0
- package/dist/src/storage/repositories/organism.repository.d.ts +34 -0
- package/dist/src/storage/repositories/organism.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/organism.repository.js +2 -0
- package/dist/src/storage/repositories/organism.repository.js.map +1 -0
- package/dist/src/storage/repositories/otk.repository.d.ts +9 -0
- package/dist/src/storage/repositories/otk.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/otk.repository.js +2 -0
- package/dist/src/storage/repositories/otk.repository.js.map +1 -0
- package/dist/src/storage/repositories/owner.repository.d.ts +9 -0
- package/dist/src/storage/repositories/owner.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/owner.repository.js +2 -0
- package/dist/src/storage/repositories/owner.repository.js.map +1 -0
- package/dist/src/storage/repositories/package-instance.repository.d.ts +26 -0
- package/dist/src/storage/repositories/package-instance.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/package-instance.repository.js +12 -0
- package/dist/src/storage/repositories/package-instance.repository.js.map +1 -0
- package/dist/src/storage/repositories/package.repository.d.ts +28 -0
- package/dist/src/storage/repositories/package.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/package.repository.js +12 -0
- package/dist/src/storage/repositories/package.repository.js.map +1 -0
- package/dist/src/storage/repositories/replication-queue.repository.d.ts +10 -0
- package/dist/src/storage/repositories/replication-queue.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/replication-queue.repository.js +2 -0
- package/dist/src/storage/repositories/replication-queue.repository.js.map +1 -0
- package/dist/src/storage/repositories/scheduler.repository.d.ts +30 -0
- package/dist/src/storage/repositories/scheduler.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/scheduler.repository.js +2 -0
- package/dist/src/storage/repositories/scheduler.repository.js.map +1 -0
- package/dist/src/storage/repositories/schema.repository.d.ts +9 -0
- package/dist/src/storage/repositories/schema.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/schema.repository.js +2 -0
- package/dist/src/storage/repositories/schema.repository.js.map +1 -0
- package/dist/src/storage/repositories/session.repository.d.ts +22 -0
- package/dist/src/storage/repositories/session.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/session.repository.js +2 -0
- package/dist/src/storage/repositories/session.repository.js.map +1 -0
- package/dist/src/storage/repositories/system-prompt.repository.d.ts +14 -0
- package/dist/src/storage/repositories/system-prompt.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/system-prompt.repository.js +2 -0
- package/dist/src/storage/repositories/system-prompt.repository.js.map +1 -0
- package/dist/src/storage/repositories/template-listing.repository.d.ts +44 -0
- package/dist/src/storage/repositories/template-listing.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/template-listing.repository.js +13 -0
- package/dist/src/storage/repositories/template-listing.repository.js.map +1 -0
- package/dist/src/storage/repositories/wallet.repository.d.ts +8 -0
- package/dist/src/storage/repositories/wallet.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/wallet.repository.js +2 -0
- package/dist/src/storage/repositories/wallet.repository.js.map +1 -0
- package/dist/src/storage/repositories/work.repository.d.ts +10 -0
- package/dist/src/storage/repositories/work.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/work.repository.js +2 -0
- package/dist/src/storage/repositories/work.repository.js.map +1 -0
- package/dist/src/storage/storage-factory.d.ts +9 -0
- package/dist/src/storage/storage-factory.d.ts.map +1 -0
- package/dist/src/storage/storage-factory.js +20 -0
- package/dist/src/storage/storage-factory.js.map +1 -0
- package/dist/src/types/route-manifest.d.ts +53 -0
- package/dist/src/types/route-manifest.d.ts.map +1 -0
- package/dist/src/types/route-manifest.js +44 -0
- package/dist/src/types/route-manifest.js.map +1 -0
- package/dist/src/utils/catalogue-hash.d.ts +10 -0
- package/dist/src/utils/catalogue-hash.d.ts.map +1 -0
- package/dist/src/utils/catalogue-hash.js +23 -0
- package/dist/src/utils/catalogue-hash.js.map +1 -0
- package/dist/src/utils/env-config.d.ts +8 -0
- package/dist/src/utils/env-config.d.ts.map +1 -0
- package/dist/src/utils/env-config.js +1264 -0
- package/dist/src/utils/env-config.js.map +1 -0
- package/dist/src/utils/env-validator.d.ts +14 -0
- package/dist/src/utils/env-validator.d.ts.map +1 -0
- package/dist/src/utils/env-validator.js +338 -0
- package/dist/src/utils/env-validator.js.map +1 -0
- package/dist/src/utils/fire-hook.d.ts +9 -0
- package/dist/src/utils/fire-hook.d.ts.map +1 -0
- package/dist/src/utils/fire-hook.js +12 -0
- package/dist/src/utils/fire-hook.js.map +1 -0
- package/dist/src/utils/gaii.d.ts +57 -0
- package/dist/src/utils/gaii.d.ts.map +1 -0
- package/dist/src/utils/gaii.js +148 -0
- package/dist/src/utils/gaii.js.map +1 -0
- package/dist/src/utils/ghii-resolver.d.ts +14 -0
- package/dist/src/utils/ghii-resolver.d.ts.map +1 -0
- package/dist/src/utils/ghii-resolver.js +21 -0
- package/dist/src/utils/ghii-resolver.js.map +1 -0
- package/dist/src/utils/logger.d.ts +9 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +36 -0
- package/dist/src/utils/logger.js.map +1 -0
- package/dist/src/utils/otk.d.ts +2 -0
- package/dist/src/utils/otk.d.ts.map +1 -0
- package/dist/src/utils/otk.js +5 -0
- package/dist/src/utils/otk.js.map +1 -0
- package/dist/src/utils/tracking-code.d.ts +9 -0
- package/dist/src/utils/tracking-code.d.ts.map +1 -0
- package/dist/src/utils/tracking-code.js +16 -0
- package/dist/src/utils/tracking-code.js.map +1 -0
- package/dist/src/utils/url-validator.d.ts +5 -0
- package/dist/src/utils/url-validator.d.ts.map +1 -0
- package/dist/src/utils/url-validator.js +56 -0
- package/dist/src/utils/url-validator.js.map +1 -0
- package/dist/static/app-catalog.html +4401 -0
- package/dist/static/cookieconsent.css +1 -0
- package/dist/static/cookieconsent.umd.js +7 -0
- package/dist/static/icons/icon-maskable.svg +27 -0
- package/dist/static/icons/icon.svg +27 -0
- package/dist/static/manifest.json +17 -0
- package/dist/static/offline.html +167 -0
- package/dist/static/sw.js +260 -0
- package/package.json +182 -0
- package/prisma/schema.prisma +1086 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin Dashboard — SPA View
|
|
3
|
+
* Sidebar layout with data preloading and tab components.
|
|
4
|
+
*/
|
|
5
|
+
import { h } from 'preact';
|
|
6
|
+
import { useState, useEffect, useCallback, useRef } from 'preact/hooks';
|
|
7
|
+
import htm from 'htm';
|
|
8
|
+
const html = htm.bind(h);
|
|
9
|
+
import { t } from '/js/i18n.js';
|
|
10
|
+
import { escHtml } from '/js/utils.js';
|
|
11
|
+
import { useViewCSS } from '/components/useViewCSS.js';
|
|
12
|
+
import { getSession, onAuthChange } from '/js/services/auth.js';
|
|
13
|
+
import * as api from '/js/services/admin.js';
|
|
14
|
+
import { connect, disconnect, onUpdate, offUpdate } from '/lib/live-updates.js';
|
|
15
|
+
|
|
16
|
+
// ── Tab components (loaded eagerly — admin pages are lightweight) ──
|
|
17
|
+
import OverviewTab from './admin/overview-tab.js';
|
|
18
|
+
import EconomyTab from './admin/economy-tab.js';
|
|
19
|
+
import ConfigTab from './admin/config-tab.js';
|
|
20
|
+
import CorsTab from './admin/cors-tab.js';
|
|
21
|
+
import MaintenanceTab from './admin/maintenance-tab.js';
|
|
22
|
+
import HooksTab from './admin/hooks-tab.js';
|
|
23
|
+
import PortalTab from './admin/portal-tab.js';
|
|
24
|
+
import StatsTab from './admin/stats-tab.js';
|
|
25
|
+
import OwnersTab from './admin/owners-tab.js';
|
|
26
|
+
import AgentsTab from './admin/agents-tab.js';
|
|
27
|
+
import GhiiTab from './admin/ghii-tab.js';
|
|
28
|
+
import ActionsTab from './admin/actions-tab.js';
|
|
29
|
+
import BoardsTab from './admin/boards-tab.js';
|
|
30
|
+
import ChatInstancesTab from './admin/chat-instances-tab.js';
|
|
31
|
+
import RealtimeTab from './admin/realtime-tab.js';
|
|
32
|
+
import WorkTab from './admin/work-tab.js';
|
|
33
|
+
import EmailTab from './admin/email-tab.js';
|
|
34
|
+
import PushTab from './admin/push-tab.js';
|
|
35
|
+
import DirectoryTab from './admin/directory-tab.js';
|
|
36
|
+
import MatchingTab from './admin/matching-tab.js';
|
|
37
|
+
import ServicesTab from './admin/services-tab.js';
|
|
38
|
+
import CortexTab from './admin/cortex-tab.js';
|
|
39
|
+
import CsmTab from './admin/csm-tab.js';
|
|
40
|
+
import MsmTab from './admin/msm-tab.js';
|
|
41
|
+
import FederationTab from './admin/federation-tab.js';
|
|
42
|
+
import GenesisTab from './admin/genesis-tab.js';
|
|
43
|
+
import ConsulTab from './admin/consul-tab.js';
|
|
44
|
+
import SchedulerTab from './admin/scheduler-tab.js';
|
|
45
|
+
import KnowledgeAdminTab from './admin/knowledge-tab.js';
|
|
46
|
+
import PromptsTab from './admin/prompts-tab.js';
|
|
47
|
+
import PackagesAdminTab from './admin/packages-tab.js';
|
|
48
|
+
import MemoryAdminTab from './admin/memory-tab.js';
|
|
49
|
+
import GeneratorDebugTab from './admin/generator-debug-tab.js';
|
|
50
|
+
|
|
51
|
+
// ── Sidebar nav structure ──
|
|
52
|
+
const NAV_GROUPS = [
|
|
53
|
+
{ key: 'dashboard.navNode', items: [
|
|
54
|
+
{ id: 'overview', icon: '\u{1F4CA}', key: 'dashboard.overview', component: OverviewTab },
|
|
55
|
+
{ id: 'economy', icon: '\u{1FA99}', key: 'dashboard.economy', component: EconomyTab },
|
|
56
|
+
{ id: 'config', icon: '\u2699', key: 'dashboard.config', component: ConfigTab },
|
|
57
|
+
{ id: 'cors', icon: '\u{1F512}', key: 'dashboard.cors', component: CorsTab },
|
|
58
|
+
{ id: 'maintenance', icon: '\u{1F6A7}', key: 'dashboard.maintenance',component: MaintenanceTab },
|
|
59
|
+
{ id: 'hooks', icon: '\u{1F517}', key: 'dashboard.hooks', component: HooksTab },
|
|
60
|
+
{ id: 'portal', icon: '\u{1F310}', key: 'dashboard.portal', component: PortalTab },
|
|
61
|
+
{ id: 'stats', icon: '\u{1F4C8}', key: 'dashboard.stats', component: StatsTab },
|
|
62
|
+
{ id: 'prompts', icon: '\u{1F4DD}', key: 'dashboard.promptsTab', component: PromptsTab },
|
|
63
|
+
]},
|
|
64
|
+
{ key: 'dashboard.navIdentity', items: [
|
|
65
|
+
{ id: 'owners', icon: '\u{1F464}', key: 'dashboard.owners', component: OwnersTab, count: 'owners' },
|
|
66
|
+
{ id: 'agents', icon: '\u{1F916}', key: 'dashboard.agents', component: AgentsTab, count: 'agents' },
|
|
67
|
+
{ id: 'ghii', icon: '\u{1F511}', key: 'dashboard.ghii', component: GhiiTab, count: 'ghii' },
|
|
68
|
+
]},
|
|
69
|
+
{ key: 'dashboard.navData', items: [
|
|
70
|
+
{ id: 'actions', icon: '\u26A1', key: 'dashboard.actions', component: ActionsTab, count: 'actions' },
|
|
71
|
+
{ id: 'boards', icon: '\u{1F4CB}', key: 'dashboard.boards', component: BoardsTab, count: 'boards' },
|
|
72
|
+
{ id: 'chatInstances', icon: '\u{1F4AC}', key: 'dashboard.chatInstances', component: ChatInstancesTab, count: 'chatInstances' },
|
|
73
|
+
{ id: 'realtime', icon: '\u{1F4E1}', key: 'dashboard.realtime', component: RealtimeTab, count: 'rooms' },
|
|
74
|
+
{ id: 'work', icon: '\u{1F4E6}', key: 'dashboard.work', component: WorkTab, count: 'work' },
|
|
75
|
+
{ id: 'memory-admin', icon: '\u{1F5C4}', key: 'dashboard.memoryAdmin', component: MemoryAdminTab },
|
|
76
|
+
]},
|
|
77
|
+
{ key: 'dashboard.navInfrastructure', items: [
|
|
78
|
+
{ id: 'email', icon: '\u2709', key: 'dashboard.email', component: EmailTab },
|
|
79
|
+
{ id: 'push', icon: '\u{1F514}', key: 'dashboard.push', component: PushTab },
|
|
80
|
+
{ id: 'consul', icon: '\u{1F5C4}', key: 'dashboard.consul', component: ConsulTab },
|
|
81
|
+
{ id: 'scheduler', icon: '\u{23F0}', key: 'dashboard.scheduler', component: SchedulerTab },
|
|
82
|
+
{ id: 'generator-debug', icon: '\u{1F41E}', key: 'dashboard.generatorDebug', component: GeneratorDebugTab },
|
|
83
|
+
]},
|
|
84
|
+
{ key: 'dashboard.navServices', items: [
|
|
85
|
+
{ id: 'directory', icon: '\u{1F4D6}', key: 'dashboard.directory', component: DirectoryTab },
|
|
86
|
+
{ id: 'matching', icon: '\u{1F91D}', key: 'dashboard.matching', component: MatchingTab },
|
|
87
|
+
{ id: 'services', icon: '\u{1F9E9}', key: 'dashboard.services', component: ServicesTab },
|
|
88
|
+
{ id: 'cortex', icon: '\u{1F4E6}', key: 'dashboard.cortexTab', component: CortexTab },
|
|
89
|
+
{ id: 'csm', icon: '\u{1F4E6}', key: 'dashboard.csmManagement', component: CsmTab },
|
|
90
|
+
{ id: 'knowledge', icon: '\u{1F9E0}', key: 'knowledge.operator.tabLabel', component: KnowledgeAdminTab },
|
|
91
|
+
{ id: 'packages', icon: '\u{1F9F0}', key: 'dashboard.packagesTab', component: PackagesAdminTab },
|
|
92
|
+
]},
|
|
93
|
+
{ key: 'dashboard.navIntegrations', items: [
|
|
94
|
+
{ id: 'msm', icon: '\u{1F50C}', key: 'dashboard.msmManagement', component: MsmTab, count: 'msm' },
|
|
95
|
+
]},
|
|
96
|
+
{ key: 'dashboard.navFederation', items: [
|
|
97
|
+
{ id: 'federation', icon: '\u{1F310}', key: 'dashboard.federation', component: FederationTab, count: 'peers' },
|
|
98
|
+
{ id: 'genesis', icon: '\u{1F30D}', key: 'dashboard.genesis', component: GenesisTab, count: 'genesis' },
|
|
99
|
+
]},
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
// Page icon+title lookup
|
|
103
|
+
const PAGE_TITLES = {};
|
|
104
|
+
NAV_GROUPS.forEach(g => g.items.forEach(i => {
|
|
105
|
+
PAGE_TITLES[i.id] = { icon: i.icon, key: i.key };
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
export default function Admin({ navigate, locale }) {
|
|
109
|
+
useViewCSS('/css/views/admin.css');
|
|
110
|
+
|
|
111
|
+
const [session, setSession] = useState(null);
|
|
112
|
+
const [activePage, setActivePage] = useState('overview');
|
|
113
|
+
const [data, setData] = useState(null);
|
|
114
|
+
const [counts, setCounts] = useState({});
|
|
115
|
+
const [loading, setLoading] = useState(false);
|
|
116
|
+
const [error, setError] = useState(null);
|
|
117
|
+
const [accessDenied, setAccessDenied] = useState(false);
|
|
118
|
+
const [lastUpdate, setLastUpdate] = useState(null);
|
|
119
|
+
const mountRef = useRef(true);
|
|
120
|
+
const retriedRef = useRef(false);
|
|
121
|
+
|
|
122
|
+
// Auth listener
|
|
123
|
+
useEffect(() => {
|
|
124
|
+
const s = getSession();
|
|
125
|
+
if (s) setSession(s);
|
|
126
|
+
return onAuthChange(() => {
|
|
127
|
+
const fresh = getSession();
|
|
128
|
+
setSession(fresh);
|
|
129
|
+
// Reset retry flag so loadAll can attempt token refresh again
|
|
130
|
+
retriedRef.current = false;
|
|
131
|
+
});
|
|
132
|
+
}, []);
|
|
133
|
+
|
|
134
|
+
// URL tab param
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
const params = new URLSearchParams(window.location.search);
|
|
137
|
+
const tab = params.get('tab');
|
|
138
|
+
if (tab) {
|
|
139
|
+
const flat = NAV_GROUPS.flatMap(g => g.items);
|
|
140
|
+
if (flat.some(i => i.id === tab)) setActivePage(tab);
|
|
141
|
+
}
|
|
142
|
+
}, []);
|
|
143
|
+
|
|
144
|
+
// Cleanup
|
|
145
|
+
useEffect(() => { mountRef.current = true; return () => { mountRef.current = false; }; }, []);
|
|
146
|
+
|
|
147
|
+
// Load all data — server-side auth is the source of truth
|
|
148
|
+
const loadAll = useCallback(async () => {
|
|
149
|
+
setLoading(true);
|
|
150
|
+
setError(null);
|
|
151
|
+
setAccessDenied(false);
|
|
152
|
+
try {
|
|
153
|
+
// Phase 1: critical data — getDashboard is the auth gate
|
|
154
|
+
const [dash, agents, actions, boards] = await Promise.all([
|
|
155
|
+
api.getDashboard(), api.getAdminAgents(), api.getActions(), api.getBoards(),
|
|
156
|
+
]);
|
|
157
|
+
if (!mountRef.current) return;
|
|
158
|
+
|
|
159
|
+
// If the dashboard call failed (403/auth), show access denied
|
|
160
|
+
if (!dash.ok) {
|
|
161
|
+
const code = dash.error?.code || '';
|
|
162
|
+
if (code === 'FORBIDDEN' || code === 'AUTH_REQUIRED' || code === 'OPERATOR_REQUIRED' || code === 'ACCESS_DENIED') {
|
|
163
|
+
// Try token refresh once — the stored JWT may be stale (missing operator role)
|
|
164
|
+
const auth = window.AIMEAT?.auth;
|
|
165
|
+
const s = auth?.getSession();
|
|
166
|
+
if (s?.refresh && !retriedRef.current) {
|
|
167
|
+
retriedRef.current = true;
|
|
168
|
+
try {
|
|
169
|
+
await s.refresh();
|
|
170
|
+
// Retry dashboard call with refreshed token (don't dispatch event to avoid loop)
|
|
171
|
+
const dashRetry = await api.getDashboard();
|
|
172
|
+
if (dashRetry.ok) {
|
|
173
|
+
// Refresh worked — restart loadAll with fresh session
|
|
174
|
+
setSession(getSession());
|
|
175
|
+
setLoading(false);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
} catch {
|
|
179
|
+
// Refresh failed
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
setAccessDenied(true);
|
|
183
|
+
} else {
|
|
184
|
+
setError(dash.error?.message || 'Failed to load dashboard');
|
|
185
|
+
}
|
|
186
|
+
setLoading(false);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const d = {
|
|
191
|
+
dash: dash.data, agents: agents.data, actions: actions.data, boards: boards.data,
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// Update counts from dash
|
|
195
|
+
const c = dash.data?.counts || {};
|
|
196
|
+
const newCounts = {
|
|
197
|
+
owners: c.owners || 0, agents: c.agents || 0,
|
|
198
|
+
actions: c.actions || 0, boards: c.boards || 0,
|
|
199
|
+
chatInstances: c.chat_instances || 0,
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
// Phase 2: extras
|
|
203
|
+
const extras = await Promise.allSettled([
|
|
204
|
+
api.getMaintenance(), api.getAdminWork(), api.getFederation(),
|
|
205
|
+
api.getHooks(), api.getChatInstances(), api.getRealtime(),
|
|
206
|
+
api.getFederationPeers(),
|
|
207
|
+
]);
|
|
208
|
+
if (!mountRef.current) return;
|
|
209
|
+
|
|
210
|
+
d.maintenance = extras[0].status === 'fulfilled' ? extras[0].value.data : null;
|
|
211
|
+
d.workItems = extras[1].status === 'fulfilled' ? (extras[1].value.data.work || []) : [];
|
|
212
|
+
d.federation = extras[2].status === 'fulfilled' ? (extras[2].value.data.peers || []) : [];
|
|
213
|
+
d.hooks = extras[3].status === 'fulfilled' ? (extras[3].value.data.extension_hooks || {}) : {};
|
|
214
|
+
d.chatInstances = extras[4].status === 'fulfilled' ? (extras[4].value.data.chat_instances || []) : [];
|
|
215
|
+
d.realtime = extras[5].status === 'fulfilled' ? extras[5].value.data : null;
|
|
216
|
+
d.livePeers = extras[6].status === 'fulfilled' ? (extras[6].value.data?.peers || []) : [];
|
|
217
|
+
|
|
218
|
+
// Phase 3: features
|
|
219
|
+
const features = await Promise.allSettled([
|
|
220
|
+
api.getGhiiUsers(), api.getEmailStatus(), api.getDirectoryStats(),
|
|
221
|
+
api.getMatchingStats(), api.getMarketplaceStats(), api.getPushStats(),
|
|
222
|
+
api.getCsmTemplates(), api.getMsmIntegrations(), api.getGenesisPeers(),
|
|
223
|
+
api.getConfig(),
|
|
224
|
+
api.getConsulStatus().catch(() => ({ data: null })),
|
|
225
|
+
api.getSchedulerJobs().catch(() => ({ data: null })),
|
|
226
|
+
api.getExtensions().catch(() => ({ data: null })),
|
|
227
|
+
api.getSystemPrompts().catch(() => ({ data: null })),
|
|
228
|
+
]);
|
|
229
|
+
if (!mountRef.current) return;
|
|
230
|
+
|
|
231
|
+
d.ghiiUsers = features[0].status === 'fulfilled' ? (features[0].value.data.ghii_users || []) : [];
|
|
232
|
+
d.email = features[1].status === 'fulfilled' ? features[1].value.data : null;
|
|
233
|
+
d.directoryStats = features[2].status === 'fulfilled' ? features[2].value.data : null;
|
|
234
|
+
d.matchingStats = features[3].status === 'fulfilled' ? features[3].value.data : null;
|
|
235
|
+
d.marketplaceStats = features[4].status === 'fulfilled' ? features[4].value.data : null;
|
|
236
|
+
d.push = features[5].status === 'fulfilled' ? features[5].value.data : null;
|
|
237
|
+
d.csmTemplates = features[6].status === 'fulfilled' ? features[6].value.data : null;
|
|
238
|
+
d.msmIntegrations = features[7].status === 'fulfilled' ? features[7].value.data : null;
|
|
239
|
+
d.genesis = features[8].status === 'fulfilled' ? features[8].value.data : null;
|
|
240
|
+
d.configSchema = features[9].status === 'fulfilled' ? features[9].value.data : null;
|
|
241
|
+
d.consul = features[10].status === 'fulfilled' ? features[10].value.data : null;
|
|
242
|
+
d.schedulerJobs = features[11].status === 'fulfilled' ? features[11].value.data : null;
|
|
243
|
+
d.extensions = features[12].status === 'fulfilled' ? features[12].value.data : null;
|
|
244
|
+
d.systemPrompts = features[13].status === 'fulfilled' ? features[13].value?.data : null;
|
|
245
|
+
|
|
246
|
+
// Scheduler execution log (non-blocking)
|
|
247
|
+
d.schedulerLog = await api.fetchSchedulerExecutionLog({ limit: 50 }).catch(() => ({ entries: [], total: 0 }));
|
|
248
|
+
|
|
249
|
+
// Phase 4: portal + stats + owners
|
|
250
|
+
try {
|
|
251
|
+
const [portalMeta, portalTemplate, portalChangelog] = await Promise.all([
|
|
252
|
+
api.getSiteMeta().catch(() => ({ data: null })),
|
|
253
|
+
api.getSiteTemplate().catch(() => ({ data: null })),
|
|
254
|
+
api.getSiteChangelog().catch(() => ({ data: null })),
|
|
255
|
+
]);
|
|
256
|
+
d.portal = { meta: portalMeta.data, template: portalTemplate.data, changelog: portalChangelog.data };
|
|
257
|
+
} catch { d.portal = null; }
|
|
258
|
+
|
|
259
|
+
try { const sr = await api.getStats(); if (sr.data) d.stats = sr.data; } catch { d.stats = null; }
|
|
260
|
+
|
|
261
|
+
// Load owners from agent owner names
|
|
262
|
+
try {
|
|
263
|
+
const ownerNames = d.agents?.agents
|
|
264
|
+
? [...new Set(d.agents.agents.map(a => a.owner))]
|
|
265
|
+
: [];
|
|
266
|
+
d.owners = [];
|
|
267
|
+
for (const name of ownerNames) {
|
|
268
|
+
try { const o = await api.getOwnerDetail(name); d.owners.push(o.data); } catch {}
|
|
269
|
+
}
|
|
270
|
+
} catch { d.owners = []; }
|
|
271
|
+
|
|
272
|
+
// Final counts
|
|
273
|
+
newCounts.work = d.workItems.length;
|
|
274
|
+
newCounts.peers = d.livePeers.length || d.federation.length;
|
|
275
|
+
newCounts.rooms = d.realtime?.stats?.rooms || 0;
|
|
276
|
+
newCounts.ghii = d.ghiiUsers.length;
|
|
277
|
+
newCounts.genesis = d.genesis?.peers?.length || 0;
|
|
278
|
+
newCounts.msm = d.msmIntegrations?.total || 0;
|
|
279
|
+
|
|
280
|
+
if (mountRef.current) {
|
|
281
|
+
setData(d);
|
|
282
|
+
setCounts(newCounts);
|
|
283
|
+
setLastUpdate(new Date().toLocaleTimeString());
|
|
284
|
+
}
|
|
285
|
+
} catch (e) {
|
|
286
|
+
if (!mountRef.current) return;
|
|
287
|
+
// 403 = not operator, show access denied
|
|
288
|
+
if (e.message?.includes('403') || e.message?.includes('FORBIDDEN') || e.message?.includes('operator')) {
|
|
289
|
+
setAccessDenied(true);
|
|
290
|
+
} else {
|
|
291
|
+
setError(e.message);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (mountRef.current) setLoading(false);
|
|
295
|
+
}, []);
|
|
296
|
+
|
|
297
|
+
// Load on mount when session is ready — server decides if user is authorized
|
|
298
|
+
useEffect(() => {
|
|
299
|
+
if (session) loadAll();
|
|
300
|
+
}, [session, loadAll]);
|
|
301
|
+
|
|
302
|
+
// SSE live updates — auto-reload on server-side data changes
|
|
303
|
+
useEffect(() => {
|
|
304
|
+
if (!session) return;
|
|
305
|
+
connect(() => getSession()?.jwt);
|
|
306
|
+
onUpdate(loadAll);
|
|
307
|
+
return () => {
|
|
308
|
+
offUpdate(loadAll);
|
|
309
|
+
disconnect();
|
|
310
|
+
};
|
|
311
|
+
}, [session, loadAll]);
|
|
312
|
+
|
|
313
|
+
// Switch page
|
|
314
|
+
function switchPage(id) {
|
|
315
|
+
setActivePage(id);
|
|
316
|
+
// Update URL without reload
|
|
317
|
+
const url = new URL(window.location);
|
|
318
|
+
url.searchParams.set('tab', id);
|
|
319
|
+
history.replaceState(null, '', url);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// ── Not logged in ──
|
|
323
|
+
if (!session) {
|
|
324
|
+
return html`<div class="adm">
|
|
325
|
+
<div class="adm-login">
|
|
326
|
+
<div class="adm-card" style="text-align:center">
|
|
327
|
+
<h2>\u{1F512} ${t('dashboard.loginTitle')}</h2>
|
|
328
|
+
<p>${t('dashboard.loginDesc')}</p>
|
|
329
|
+
<p style="color:var(--text-dim);font-size:.85rem">${t('dashboard.loginNeedOperator') || 'You need to sign in with an operator account from the header.'}</p>
|
|
330
|
+
</div>
|
|
331
|
+
</div>
|
|
332
|
+
</div>`;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// ── Access denied (server returned 403) ──
|
|
336
|
+
if (accessDenied) {
|
|
337
|
+
return html`<div class="adm">
|
|
338
|
+
<div class="adm-login">
|
|
339
|
+
<div class="adm-card" style="text-align:center">
|
|
340
|
+
<h2>\u{1F6AB} ${t('dashboard.accessDenied') || 'Access Denied'}</h2>
|
|
341
|
+
<p>${t('dashboard.operatorRequired') || 'You need the operator role to access the admin dashboard.'}</p>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
</div>`;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// Find active component
|
|
348
|
+
const allItems = NAV_GROUPS.flatMap(g => g.items);
|
|
349
|
+
const activeItem = allItems.find(i => i.id === activePage) || allItems[0];
|
|
350
|
+
const ActiveComponent = activeItem.component;
|
|
351
|
+
const pageInfo = PAGE_TITLES[activePage] || { icon: '', key: '' };
|
|
352
|
+
|
|
353
|
+
const tabProps = { data, reload: loadAll, session, navigate, locale, switchPage };
|
|
354
|
+
|
|
355
|
+
return html`
|
|
356
|
+
<div class="adm">
|
|
357
|
+
<!-- Sidebar -->
|
|
358
|
+
<nav class="adm-sidebar">
|
|
359
|
+
<div class="node-id">${data?.dash?.node_id || ''}</div>
|
|
360
|
+
|
|
361
|
+
${NAV_GROUPS.map(group => html`
|
|
362
|
+
<div class="adm-nav-group">${t(group.key)}</div>
|
|
363
|
+
${group.items.map(item => html`
|
|
364
|
+
<button
|
|
365
|
+
class="adm-nav-item ${activePage === item.id ? 'active' : ''}"
|
|
366
|
+
onClick=${() => switchPage(item.id)}
|
|
367
|
+
>
|
|
368
|
+
<span class="icon">${item.icon}</span>
|
|
369
|
+
<span class="label">${t(item.key)}</span>
|
|
370
|
+
${item.count != null && counts[item.count] != null
|
|
371
|
+
? html`<span class="cnt">${counts[item.count]}</span>`
|
|
372
|
+
: null}
|
|
373
|
+
</button>
|
|
374
|
+
`)}
|
|
375
|
+
`)}
|
|
376
|
+
</nav>
|
|
377
|
+
|
|
378
|
+
<!-- Main content -->
|
|
379
|
+
<div class="adm-main">
|
|
380
|
+
<div class="adm-topbar">
|
|
381
|
+
<div class="adm-page-title">
|
|
382
|
+
<span class="icon">${pageInfo.icon}</span> ${t(pageInfo.key)}
|
|
383
|
+
</div>
|
|
384
|
+
<div class="adm-topbar-right">
|
|
385
|
+
<button class="adm-btn" onClick=${loadAll} disabled=${loading}>
|
|
386
|
+
${loading ? t('dashboard.loading') : t('dashboard.refresh')}
|
|
387
|
+
</button>
|
|
388
|
+
${lastUpdate && html`<span style="color:var(--text-dim);font-size:.7rem">${lastUpdate}</span>`}
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
|
|
392
|
+
${error && html`<div class="error-box"><strong>${t('dashboard.failedToLoad')}</strong><br/>${escHtml(error)}</div>`}
|
|
393
|
+
|
|
394
|
+
${!data && !error && html`<div class="empty"><div class="spinner"></div> ${t('dashboard.loading')}</div>`}
|
|
395
|
+
|
|
396
|
+
${data && html`<${ActiveComponent} ...${tabProps} />`}
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
`;
|
|
400
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file aimeat-os.js
|
|
3
|
+
* @description AIMEAT-OS landing page — guides users to build their own app
|
|
4
|
+
* with any AI chat. Shows a 3-step flow: download guide, give to AI, upload app.
|
|
5
|
+
* @structure
|
|
6
|
+
* - generateMarkdown(nodeUrl) — builds the .md prompt file content
|
|
7
|
+
* - AimeatOsView — main Preact component (hero + steps + CTAs)
|
|
8
|
+
* @usage import AimeatOsView from '/views/aimeat-os.js'
|
|
9
|
+
* @version-history
|
|
10
|
+
* v1.0.0 — 2026-03-17 — Initial reference documentation page
|
|
11
|
+
* v2.0.0 — 2026-03-17 — Rewrite: landing page with i18n
|
|
12
|
+
* v3.0.0 — 2026-03-18 — Full redesign: clean landing page, proper CSS, i18n
|
|
13
|
+
*/
|
|
14
|
+
import { h } from 'preact';
|
|
15
|
+
import { useEffect } from 'preact/hooks';
|
|
16
|
+
import htm from 'htm';
|
|
17
|
+
import { t } from '/js/i18n.js';
|
|
18
|
+
import { useViewCSS } from '/components/useViewCSS.js';
|
|
19
|
+
|
|
20
|
+
const html = htm.bind(h);
|
|
21
|
+
|
|
22
|
+
/* ── Data for markdown generator ──────────────── */
|
|
23
|
+
|
|
24
|
+
const LIBRARIES = [
|
|
25
|
+
['aimeat-auth', '/v1/libs/aimeat-auth.js', '—', 'Identity, registration, login, JWT, session management'],
|
|
26
|
+
['aimeat-data', '/v1/libs/aimeat-data.js', 'aimeat-auth', 'Memory key-value storage, search, micro-memory'],
|
|
27
|
+
['aimeat-storage', '/v1/libs/aimeat-storage.js', 'aimeat-auth', 'Binary file upload/download, drag & drop'],
|
|
28
|
+
['aimeat-social', '/v1/libs/aimeat-social.js', 'aimeat-auth', 'Boards, posts, reactions, replies'],
|
|
29
|
+
['aimeat-wallet', '/v1/libs/aimeat-wallet.js', 'aimeat-auth', 'Balance, transactions, morsel economy'],
|
|
30
|
+
['aimeat-work', '/v1/libs/aimeat-work.js', 'aimeat-auth', 'Action catalogue, work requests, deliveries'],
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const API_SECTIONS = [
|
|
34
|
+
{ title: 'Authentication', rows: [
|
|
35
|
+
['POST','/v1/ghii','—','Register human identity'],
|
|
36
|
+
['POST','/v1/ghii/login','—','Login with username + password'],
|
|
37
|
+
['POST','/v1/owners','—','Register owner'],
|
|
38
|
+
['POST','/v1/agents','Owner','Register agent'],
|
|
39
|
+
['POST','/v1/auth/token','—','Get JWT (body: gaii, timestamp, signature)'],
|
|
40
|
+
['POST','/v1/auth/refresh','Bearer','Refresh JWT'],
|
|
41
|
+
]},
|
|
42
|
+
{ title: 'Memory', rows: [
|
|
43
|
+
['POST','/v1/memory','Agent','Write entry (body: key, value, visibility?, tags?)'],
|
|
44
|
+
['GET','/v1/memory','Agent','List entries (query: prefix?, visibility?, tags?)'],
|
|
45
|
+
['GET','/v1/memory/search','Agent','Search (query: q, visibility?)'],
|
|
46
|
+
['GET','/v1/memory/:key','Agent','Read entry'],
|
|
47
|
+
['PUT','/v1/memory/:key','Agent','Update entry (body: value, version)'],
|
|
48
|
+
['DELETE','/v1/memory/:key','Agent','Delete entry'],
|
|
49
|
+
]},
|
|
50
|
+
{ title: 'Storage (Files)', rows: [
|
|
51
|
+
['POST','/v1/storage','Agent','Upload file (JSON: key, data (base64), mime_type, visibility)'],
|
|
52
|
+
['GET','/v1/storage','Agent','List files'],
|
|
53
|
+
['GET','/v1/storage/:key','Agent','Download file (supports Range header)'],
|
|
54
|
+
['HEAD','/v1/storage/:key','Agent','File metadata'],
|
|
55
|
+
['DELETE','/v1/storage/:key','Agent','Delete file'],
|
|
56
|
+
]},
|
|
57
|
+
{ title: 'Actions (Services)', rows: [
|
|
58
|
+
['POST','/v1/actions','Agent','Publish action'],
|
|
59
|
+
['GET','/v1/actions','Public','Discover actions (query: q?, category?)'],
|
|
60
|
+
['GET','/v1/actions/:gaii/:id','Public','Action detail'],
|
|
61
|
+
['PUT','/v1/actions/:id','Agent','Update action'],
|
|
62
|
+
['DELETE','/v1/actions/:id','Agent','Unpublish action'],
|
|
63
|
+
]},
|
|
64
|
+
{ title: 'Work Queue', rows: [
|
|
65
|
+
['POST','/v1/work/request','Agent','Request work (body: action_id, provider_gaii, input)'],
|
|
66
|
+
['GET','/v1/work/inbox','Agent','Provider inbox'],
|
|
67
|
+
['POST','/v1/work/:tc/accept','Agent','Accept work'],
|
|
68
|
+
['POST','/v1/work/:tc/reject','Agent','Reject work'],
|
|
69
|
+
['POST','/v1/work/:tc/deliver','Agent','Deliver result (body: output)'],
|
|
70
|
+
['POST','/v1/work/:tc/rate','Agent','Rate delivery (body: rating 1-5, comment?)'],
|
|
71
|
+
['GET','/v1/work/:tc','Agent','Work item status'],
|
|
72
|
+
]},
|
|
73
|
+
{ title: 'Boards', rows: [
|
|
74
|
+
['POST','/v1/boards','Agent','Create board (body: name, visibility?, description?)'],
|
|
75
|
+
['GET','/v1/boards','Public','List boards'],
|
|
76
|
+
['GET','/v1/boards/:id/posts','Public*','List posts (*private boards need auth)'],
|
|
77
|
+
['POST','/v1/boards/:id/posts','Agent','Create post (body: content, tags?)'],
|
|
78
|
+
['POST','/v1/boards/:id/posts/:pid/react','Agent','React (body: emoji)'],
|
|
79
|
+
['POST','/v1/boards/:id/posts/:pid/replies','Agent','Reply (body: content)'],
|
|
80
|
+
['POST','/v1/boards/:id/subscribe','Agent','Subscribe to board'],
|
|
81
|
+
]},
|
|
82
|
+
{ title: 'Wallet', rows: [
|
|
83
|
+
['GET','/v1/wallet','Agent','Balance'],
|
|
84
|
+
['GET','/v1/wallet/transactions','Agent','Transaction history'],
|
|
85
|
+
]},
|
|
86
|
+
{ title: 'Catalogue & Discovery', rows: [
|
|
87
|
+
['GET','/v1/catalogue','Public','Full catalogue'],
|
|
88
|
+
['GET','/v1/catalogue/actions','Public','Browse actions'],
|
|
89
|
+
['GET','/v1/catalogue/agents','Public','Agent directory'],
|
|
90
|
+
['GET','/v1/catalogue/boards','Public','Public boards'],
|
|
91
|
+
['GET','/v1/stats','Public','Node statistics'],
|
|
92
|
+
]},
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
const LIMITS = [
|
|
96
|
+
['Memory entries','1000 per agent'],
|
|
97
|
+
['Memory value size','64KB per entry'],
|
|
98
|
+
['Total memory','10MB per agent (default)'],
|
|
99
|
+
['File upload (single)','10MB per file'],
|
|
100
|
+
['File upload (chunked)','5GB per file'],
|
|
101
|
+
['Total storage','100MB per agent (default)'],
|
|
102
|
+
['Published actions','20 per agent'],
|
|
103
|
+
['Board post size','Configurable'],
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
const EXAMPLE_PROMPTS = [
|
|
107
|
+
['Personal Dashboard', 'Build me a personal AIMEAT dashboard that shows my agent\'s memory entries, wallet balance, and recent work history. Include a search bar for memory and a transaction chart.'],
|
|
108
|
+
['Note-Taking App', 'Create a note-taking app that stores notes in AIMEAT memory. Each note should have a title, content, and tags. I want to search notes, edit them, and set their visibility (private/public).'],
|
|
109
|
+
['File Manager', 'Build a file manager for AIMEAT storage. Show all my files in a grid with thumbnails for images. Let me upload, download, and delete files. Show file sizes and types.'],
|
|
110
|
+
['Discussion Board', 'Create a discussion board app using AIMEAT boards. Show a list of boards I can browse, let me create new boards, post messages, reply to posts, and react with emojis.'],
|
|
111
|
+
['Service Marketplace', 'Build a marketplace interface for AIMEAT actions. Show available services in a browsable catalogue with categories. Let me request work from providers and track my requests.'],
|
|
112
|
+
['Chat/Messaging App', 'Create a messaging app using AIMEAT boards as chat channels. Show a sidebar with channels, the main area with messages, and a text input. Support reactions and replies.'],
|
|
113
|
+
['Portfolio/CV App', 'Build a portfolio app that reads my AIMEAT memory for project data and displays it beautifully. Include sections for skills, projects, and a contact form that uses the work queue.'],
|
|
114
|
+
['Data Visualization', 'Create a data dashboard that reads structured data from AIMEAT memory keys and displays it as charts and graphs. Support bar charts, line charts, and pie charts.'],
|
|
115
|
+
];
|
|
116
|
+
|
|
117
|
+
/* ── Markdown generator ──────────────────────── */
|
|
118
|
+
|
|
119
|
+
function generateMarkdown(nodeUrl) {
|
|
120
|
+
let md = `# AIMEAT App Builder\n\n`;
|
|
121
|
+
md += `You are an AIMEAT app builder. Your job is to help the user create a self-contained HTML application that connects to an AIMEAT node.\n\n`;
|
|
122
|
+
md += `## Your Process\n\n`;
|
|
123
|
+
md += `1. Ask the user what they want to build (free-form description)\n`;
|
|
124
|
+
md += `2. Ask what data/features the app needs (memory, files, boards, wallet, etc.)\n`;
|
|
125
|
+
md += `3. Ask about the look & feel (or offer sensible defaults)\n`;
|
|
126
|
+
md += `4. Build a single HTML+CSS+JS file that works\n\n`;
|
|
127
|
+
md += `Keep the interview light — 3-4 questions max. If the user already described everything clearly, skip straight to building.\n\n`;
|
|
128
|
+
md += `## Node Details\n\n`;
|
|
129
|
+
md += `- **Node URL:** \`${nodeUrl}\`\n- **Protocol Version:** 1.2\n- **Generated:** ${new Date().toISOString().split('T')[0]}\n\n---\n\n`;
|
|
130
|
+
|
|
131
|
+
md += `## Available Client Libraries\n\nLoad via \`<script>\` tags — served from the node, zero CORS issues.\n\n`;
|
|
132
|
+
md += `| Library | URL | Depends On | Purpose |\n|---------|-----|-----------|--------|\n`;
|
|
133
|
+
for (const [name, url, dep, desc] of LIBRARIES) {
|
|
134
|
+
md += `| **${name}** | \`${nodeUrl}${url}\` | ${dep} | ${desc} |\n`;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
md += `\n## Quick Start Template\n\n\`\`\`html\n<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>My AIMEAT App</title>\n <script src="${nodeUrl}/v1/libs/aimeat-auth.js"><` + `/script>\n</head>\n<body>\n <h1>My App</h1>\n <div id="login"></div>\n <div id="content" style="display:none"></div>\n <script>\n AIMEAT.auth.mountLoginButton('#login', {\n onLogin: function(session) {\n document.getElementById('content').style.display = 'block';\n startApp(session);\n },\n onLogout: function() {\n document.getElementById('content').style.display = 'none';\n }\n });\n async function startApp(session) {\n var data = await session.fetch('/v1/memory');\n console.log('My memories:', data);\n }\n <` + `/script>\n</body>\n</html>\n\`\`\`\n\n`;
|
|
138
|
+
|
|
139
|
+
md += `## REST API Endpoints\n\n`;
|
|
140
|
+
for (const sec of API_SECTIONS) {
|
|
141
|
+
md += `### ${sec.title}\n\n| Method | Path | Auth | Description |\n|--------|------|------|-------------|\n`;
|
|
142
|
+
for (const [m, p, a, d] of sec.rows) md += `| ${m} | ${p} | ${a} | ${d} |\n`;
|
|
143
|
+
md += '\n';
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
md += `## Key Concepts\n\n`;
|
|
147
|
+
md += `- **Owner** — A registered human or organization with a master key pair\n`;
|
|
148
|
+
md += `- **Agent** — An AI identity under an owner with its own key pair and memory\n`;
|
|
149
|
+
md += `- **GAII** — Global Agent Instance Identifier: \`agent-name#owner@node-id\`\n`;
|
|
150
|
+
md += `- **Morsels** — Simple tokens that flow between agents when they help each other\n`;
|
|
151
|
+
md += `- **Visibility** — private (only you), shared (your agents), public (everyone)\n\n`;
|
|
152
|
+
|
|
153
|
+
md += `## Design Guidelines\n\n`;
|
|
154
|
+
md += `\`\`\`css\n:root {\n --bg: #0f0a14;\n --card: rgba(30, 20, 40, 0.85);\n --text: #f0e6f6;\n --muted: #c4a6d0;\n --accent: #E8564A;\n --border: rgba(232, 86, 74, 0.15);\n --success: #22c55e;\n --radius: 12px;\n}\nbody {\n font-family: system-ui, -apple-system, sans-serif;\n background: var(--bg);\n color: var(--text);\n margin: 0;\n min-height: 100vh;\n}\n\`\`\`\n\n`;
|
|
155
|
+
|
|
156
|
+
md += `## Self-Download Pattern\n\n\`\`\`javascript\nfunction downloadSelf() {\n var html = document.documentElement.outerHTML;\n var blob = new Blob(['<!DOCTYPE html>' + html], { type: 'text/html' });\n var a = document.createElement('a');\n a.href = URL.createObjectURL(blob);\n a.download = 'my-app.html';\n a.click();\n}\n\`\`\`\n\n`;
|
|
157
|
+
|
|
158
|
+
md += `## Limitations\n\n| Resource | Limit |\n|----------|-------|\n`;
|
|
159
|
+
for (const [r, l] of LIMITS) md += `| ${r} | ${l} |\n`;
|
|
160
|
+
|
|
161
|
+
md += `\n## Example Prompts\n\n`;
|
|
162
|
+
for (const [title, prompt] of EXAMPLE_PROMPTS) {
|
|
163
|
+
md += `### ${title}\n> "${prompt}"\n\n`;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
md += `## Output Requirements\n\n`;
|
|
167
|
+
md += `Produce a SINGLE HTML file containing:\n`;
|
|
168
|
+
md += `- All CSS in a \`<style>\` tag\n`;
|
|
169
|
+
md += `- All JavaScript in \`<script>\` tags\n`;
|
|
170
|
+
md += `- The aimeat-auth library loaded via \`<script src="${nodeUrl}/v1/libs/aimeat-auth.js">\`\n`;
|
|
171
|
+
md += `- Additional libraries as needed\n`;
|
|
172
|
+
md += `- Login/logout UI via \`AIMEAT.auth.mountLoginButton()\`\n`;
|
|
173
|
+
md += `- Responsive design (mobile-first)\n`;
|
|
174
|
+
md += `- The self-download button pattern\n`;
|
|
175
|
+
|
|
176
|
+
return md;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* ── Download helper ─────────────────────────── */
|
|
180
|
+
|
|
181
|
+
function downloadFile(content, filename) {
|
|
182
|
+
const blob = new Blob([content], { type: 'text/markdown;charset=utf-8' });
|
|
183
|
+
const url = URL.createObjectURL(blob);
|
|
184
|
+
const a = document.createElement('a');
|
|
185
|
+
a.href = url;
|
|
186
|
+
a.download = filename;
|
|
187
|
+
a.click();
|
|
188
|
+
URL.revokeObjectURL(url);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* ── Main view ───────────────────────────────── */
|
|
192
|
+
|
|
193
|
+
function AimeatOsView({ navigate }) {
|
|
194
|
+
const nodeUrl = window.location.origin;
|
|
195
|
+
|
|
196
|
+
useViewCSS('/css/views/aimeat-os.css');
|
|
197
|
+
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
document.title = t('aimeatOs.title') + ' | AIMEAT';
|
|
200
|
+
}, []);
|
|
201
|
+
|
|
202
|
+
const onDownload = () => {
|
|
203
|
+
const md = generateMarkdown(nodeUrl);
|
|
204
|
+
downloadFile(md, 'AIMEAT-OS.md');
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const onAddApp = () => {
|
|
208
|
+
navigate('/v1/profile?tab=apps');
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const onGenerator = (e) => {
|
|
212
|
+
e.preventDefault();
|
|
213
|
+
navigate('/v1/profile?tab=generator');
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
return html`
|
|
217
|
+
<div class="os-wrap">
|
|
218
|
+
<section class="os-hero">
|
|
219
|
+
<h1>${t('aimeatOs.title')}</h1>
|
|
220
|
+
<p>${t('aimeatOs.subtitle')}</p>
|
|
221
|
+
</section>
|
|
222
|
+
|
|
223
|
+
<div class="os-steps">
|
|
224
|
+
<div class="os-step">
|
|
225
|
+
<div class="os-step-num">1</div>
|
|
226
|
+
<h3>${t('aimeatOs.step1Title').replace(/^\d+\.\s*/, '')}</h3>
|
|
227
|
+
<p>${t('aimeatOs.step1Desc')}</p>
|
|
228
|
+
</div>
|
|
229
|
+
<div class="os-step">
|
|
230
|
+
<div class="os-step-num">2</div>
|
|
231
|
+
<h3>${t('aimeatOs.step2Title').replace(/^\d+\.\s*/, '')}</h3>
|
|
232
|
+
<p>${t('aimeatOs.step2Desc')}</p>
|
|
233
|
+
</div>
|
|
234
|
+
<div class="os-step">
|
|
235
|
+
<div class="os-step-num">3</div>
|
|
236
|
+
<h3>${t('aimeatOs.step3Title').replace(/^\d+\.\s*/, '')}</h3>
|
|
237
|
+
<p>${t('aimeatOs.step3Desc')}</p>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
<div class="os-actions">
|
|
242
|
+
<button class="btn-primary os-download-btn" onClick=${onDownload}>
|
|
243
|
+
${t('aimeatOs.downloadBtn')}
|
|
244
|
+
</button>
|
|
245
|
+
<p class="os-download-hint">${t('aimeatOs.downloadHint')}</p>
|
|
246
|
+
<button class="btn-outline os-add-btn" onClick=${onAddApp}>
|
|
247
|
+
${t('aimeatOs.addAppBtn')}
|
|
248
|
+
</button>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
<div class="os-generator-hint">
|
|
252
|
+
<span>${t('aimeatOs.generatorHint')} </span>
|
|
253
|
+
<a href="/v1/profile?tab=generator" onClick=${onGenerator}>${t('aimeatOs.generatorLink')}</a>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
`;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export default AimeatOsView;
|