spine-framework 0.3.124 → 0.3.126
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/.framework/cli/commands/agents.ts +35 -37
- package/.framework/cli/commands/auth.ts +35 -34
- package/.framework/cli/commands/create-app.ts +104 -40
- package/.framework/cli/commands/dev.ts +104 -69
- package/.framework/cli/commands/doctor.ts +179 -69
- package/.framework/cli/commands/generate.ts +83 -143
- package/.framework/cli/commands/init.ts +72 -34
- package/.framework/cli/commands/install-app.ts +260 -125
- package/.framework/cli/commands/items.ts +33 -44
- package/.framework/cli/commands/migrate.ts +122 -40
- package/.framework/cli/commands/migrations.ts +33 -40
- package/.framework/cli/commands/pipelines.ts +31 -39
- package/.framework/cli/commands/status.ts +47 -23
- package/.framework/cli/commands/system.ts +47 -37
- package/.framework/cli/commands/test.ts +112 -68
- package/.framework/cli/commands/validate-app.ts +215 -121
- package/.framework/cli/context.ts +112 -130
- package/.framework/cli/env-loader.ts +47 -18
- package/.framework/cli/index.ts +81 -42
- package/.framework/docs/runtime-types.md +1024 -0
- package/.framework/functions/_shared/agent-runner.ts +1296 -961
- package/.framework/functions/_shared/app-manifest.ts +82 -68
- package/.framework/functions/_shared/audit.ts +135 -83
- package/.framework/functions/_shared/{cil-state.ts → cil.ts} +158 -56
- package/.framework/functions/_shared/db.ts +80 -126
- package/.framework/functions/_shared/hash-api-key.ts +63 -0
- package/.framework/functions/_shared/index.ts +224 -335
- package/.framework/functions/_shared/kb.ts +319 -0
- package/.framework/functions/_shared/llm.ts +92 -0
- package/.framework/functions/_shared/logging.ts +288 -0
- package/.framework/functions/_shared/middleware.ts +329 -365
- package/.framework/functions/_shared/outcomes.ts +36 -0
- package/.framework/functions/_shared/permissions.ts +359 -643
- package/.framework/functions/_shared/pipeline-runner.ts +243 -316
- package/.framework/functions/_shared/principal.ts +376 -468
- package/.framework/functions/_shared/resolve-credentials.ts +102 -0
- package/.framework/functions/_shared/resolve-ids.ts +188 -16
- package/.framework/functions/_shared/retry-deliveries.ts +104 -0
- package/.framework/functions/_shared/schema-utils.ts +611 -373
- package/.framework/functions/_shared/testing.ts +207 -137
- package/.framework/functions/_shared/tracing.ts +276 -0
- package/.framework/functions/_shared/trigger-engine.ts +159 -211
- package/.framework/functions/_shared/webhook-registration.ts +95 -81
- package/.framework/functions/_shared/webhook-registry.ts +153 -75
- package/.framework/functions/account-nodes.ts +31 -53
- package/.framework/functions/adapters/generic-webhook-inbound.ts +56 -0
- package/.framework/functions/adapters/generic-webhook-outbound.ts +43 -0
- package/.framework/functions/adapters/openai-outbound.ts +40 -0
- package/.framework/functions/admin-data.ts +685 -537
- package/.framework/functions/admin-funnel.ts +31 -20
- package/.framework/functions/admin-install-funnel.ts +47 -28
- package/.framework/functions/admin-signals.ts +47 -29
- package/.framework/functions/ai-agents.ts +122 -147
- package/.framework/functions/ai-interactions.ts +180 -90
- package/.framework/functions/api-keys.ts +250 -192
- package/.framework/functions/apps.ts +203 -197
- package/.framework/functions/auth.ts +98 -91
- package/.framework/functions/cil-agent-ingest.ts +773 -0
- package/.framework/functions/cil-agent.ts +592 -0
- package/.framework/functions/cil-callmap.ts +1227 -0
- package/.framework/functions/cil-config.ts +583 -0
- package/.framework/functions/cil-context.ts +445 -0
- package/.framework/functions/cil-doc.ts +1752 -0
- package/.framework/functions/cil-embeddings.ts +1202 -0
- package/.framework/functions/cil-graph.ts +585 -0
- package/.framework/functions/cil-ingest.ts +2416 -0
- package/.framework/functions/cil-pipeline.ts +318 -0
- package/.framework/functions/cil-project.ts +499 -0
- package/.framework/functions/cil-validate.ts +469 -0
- package/.framework/functions/debug-auth.ts +73 -53
- package/.framework/functions/deliveries.ts +117 -0
- package/.framework/functions/embeddings.ts +528 -516
- package/.framework/functions/eval-harness.ts +158 -106
- package/.framework/functions/integration-outbound.ts +311 -0
- package/.framework/functions/integration-routes.ts +240 -466
- package/.framework/functions/integrations.ts +132 -140
- package/.framework/functions/invites.ts +401 -201
- package/.framework/functions/item-progress.ts +113 -53
- package/.framework/functions/kb.ts +28 -0
- package/.framework/functions/logs.ts +239 -222
- package/.framework/functions/observability.ts +308 -259
- package/.framework/functions/pipeline-executions.ts +179 -235
- package/.framework/functions/pipelines.ts +163 -205
- package/.framework/functions/prompt-configs.ts +109 -156
- package/.framework/functions/roles.ts +97 -147
- package/.framework/functions/system-cron.ts +132 -218
- package/.framework/functions/system.ts +112 -52
- package/.framework/functions/tests.ts +32 -28
- package/.framework/functions/timers.ts +162 -210
- package/.framework/functions/triggers.ts +282 -346
- package/.framework/functions/types.ts +283 -400
- package/.framework/migrations/001_core_schema.sql +630 -0
- package/.framework/migrations/002_core_rls_and_functions.sql +532 -0
- package/.framework/migrations/{003_system_data.sql → 003_core_system_data.sql} +26 -153
- package/.framework/migrations/004_core_rpc_and_broker.sql +421 -0
- package/.framework/migrations/005_core_observability.sql +598 -0
- package/.framework/migrations/006_security_hardening_rls.sql +97 -0
- package/.framework/migrations/007_kb_article_list.sql +237 -0
- package/.framework/migrations/008_items_target.sql +8 -0
- package/.framework/migrations/009_roles_slug_unique.sql +11 -0
- package/.framework/public/spine.config.json +91 -0
- package/.framework/scripts/app-install-cli.ts +112 -98
- package/.framework/src/App.tsx +67 -20
- package/.framework/src/apps/admin/index.tsx +97 -27
- package/.framework/src/components/AppWrapper.tsx +50 -11
- package/.framework/src/components/CustomAppLoader.tsx +131 -22
- package/.framework/src/components/admin/AdminListPage.tsx +75 -8
- package/.framework/src/components/admin/AdminSidebar.tsx +148 -36
- package/.framework/src/components/admin/AdminStatsCard.tsx +48 -29
- package/.framework/src/components/admin/PageInstructions.tsx +49 -0
- package/.framework/src/components/admin/SortableTableHeader.tsx +49 -2
- package/.framework/src/components/app-shell/GenericAppShell.tsx +69 -11
- package/.framework/src/components/app-shell/GenericDetailPage.tsx +55 -10
- package/.framework/src/components/app-shell/GenericListPage.tsx +76 -9
- package/.framework/src/components/app-sidebar.tsx +50 -3
- package/.framework/src/components/auth/ProtectedRoute.tsx +53 -45
- package/.framework/src/components/kb/KBArticleEditor.tsx +409 -0
- package/.framework/src/components/kb/KBArticleList.tsx +557 -0
- package/.framework/src/components/layout/AppShell.tsx +54 -16
- package/.framework/src/components/layout/Header.tsx +50 -38
- package/.framework/src/components/layout/Layout.tsx +48 -32
- package/.framework/src/components/layout/Sidebar.tsx +167 -16
- package/.framework/src/components/runtime/DataDetailHeader.tsx +33 -1
- package/.framework/src/components/runtime/DataDetailPage.tsx +289 -4
- package/.framework/src/components/runtime/DataFilters.tsx +78 -1
- package/.framework/src/components/runtime/DataHeader.tsx +32 -29
- package/.framework/src/components/runtime/DataListPage.tsx +161 -2
- package/.framework/src/components/runtime/DataStats.tsx +48 -1
- package/.framework/src/components/runtime/DataTable.tsx +153 -1
- package/.framework/src/components/runtime/SchemaDetailForm.tsx +77 -46
- package/.framework/src/components/runtime/index.ts +16 -9
- package/.framework/src/components/search-form.tsx +33 -1
- package/.framework/src/components/shared/AgentView.tsx +48 -51
- package/.framework/src/components/shared/FieldRenderer.tsx +84 -67
- package/.framework/src/components/shared/InviteManager.tsx +113 -52
- package/.framework/src/components/shared/MemberList.tsx +182 -0
- package/.framework/src/components/shared/SchemaFields.tsx +96 -78
- package/.framework/src/components/ui/DataTable.tsx +86 -56
- package/.framework/src/components/ui/Form.tsx +188 -109
- package/.framework/src/components/ui/ItemCard.tsx +86 -58
- package/.framework/src/components/ui/ItemListView.tsx +88 -61
- package/.framework/src/components/ui/LoadingSpinner.tsx +52 -27
- package/.framework/src/components/ui/Modal.tsx +81 -4
- package/.framework/src/components/ui/RichTextEditor.tsx +101 -9
- package/.framework/src/components/ui/accordion.tsx +97 -5
- package/.framework/src/components/ui/alert-dialog.tsx +225 -13
- package/.framework/src/components/ui/alert.tsx +113 -6
- package/.framework/src/components/ui/aspect-ratio.tsx +49 -2
- package/.framework/src/components/ui/avatar.tsx +129 -7
- package/.framework/src/components/ui/badge.tsx +65 -3
- package/.framework/src/components/ui/breadcrumb.tsx +145 -8
- package/.framework/src/components/ui/button-group.tsx +81 -4
- package/.framework/src/components/ui/button.tsx +49 -2
- package/.framework/src/components/ui/calendar.tsx +65 -3
- package/.framework/src/components/ui/card.tsx +145 -8
- package/.framework/src/components/ui/carousel.tsx +129 -7
- package/.framework/src/components/ui/chart.tsx +161 -10
- package/.framework/src/components/ui/checkbox.tsx +49 -2
- package/.framework/src/components/ui/collapsible.tsx +81 -5
- package/.framework/src/components/ui/combobox.tsx +305 -20
- package/.framework/src/components/ui/command.tsx +177 -11
- package/.framework/src/components/ui/context-menu.tsx +273 -17
- package/.framework/src/components/ui/dialog.tsx +209 -27
- package/.framework/src/components/ui/direction.tsx +64 -4
- package/.framework/src/components/ui/drawer.tsx +193 -12
- package/.framework/src/components/ui/dropdown-menu.tsx +273 -18
- package/.framework/src/components/ui/empty.tsx +145 -9
- package/.framework/src/components/ui/field.tsx +209 -14
- package/.framework/src/components/ui/hover-card.tsx +81 -4
- package/.framework/src/components/ui/input-group.tsx +162 -10
- package/.framework/src/components/ui/input-otp.tsx +98 -5
- package/.framework/src/components/ui/input.tsx +49 -2
- package/.framework/src/components/ui/item.tsx +225 -13
- package/.framework/src/components/ui/kbd.tsx +65 -3
- package/.framework/src/components/ui/label.tsx +49 -2
- package/.framework/src/components/ui/menubar.tsx +289 -17
- package/.framework/src/components/ui/native-select.tsx +97 -5
- package/.framework/src/components/ui/navigation-menu.tsx +177 -10
- package/.framework/src/components/ui/pagination.tsx +161 -9
- package/.framework/src/components/ui/popover.tsx +145 -8
- package/.framework/src/components/ui/progress.tsx +49 -2
- package/.framework/src/components/ui/radio-group.tsx +65 -3
- package/.framework/src/components/ui/resizable.tsx +82 -4
- package/.framework/src/components/ui/scroll-area.tsx +65 -3
- package/.framework/src/components/ui/select.tsx +193 -11
- package/.framework/src/components/ui/separator.tsx +49 -2
- package/.framework/src/components/ui/sheet.tsx +193 -11
- package/.framework/src/components/ui/sidebar.tsx +481 -38
- package/.framework/src/components/ui/skeleton.tsx +49 -2
- package/.framework/src/components/ui/slider.tsx +49 -2
- package/.framework/src/components/ui/sonner.tsx +49 -2
- package/.framework/src/components/ui/spinner.tsx +49 -2
- package/.framework/src/components/ui/switch.tsx +49 -2
- package/.framework/src/components/ui/table-primitives.tsx +160 -33
- package/.framework/src/components/ui/table.tsx +161 -9
- package/.framework/src/components/ui/tabs.tsx +113 -6
- package/.framework/src/components/ui/textarea.tsx +49 -2
- package/.framework/src/components/ui/toggle-group.tsx +81 -4
- package/.framework/src/components/ui/toggle.tsx +65 -3
- package/.framework/src/components/ui/tooltip.tsx +97 -5
- package/.framework/src/contexts/AppContext.tsx +129 -45
- package/.framework/src/contexts/AuthContext.tsx +187 -144
- package/.framework/src/hooks/use-mobile.ts +48 -2
- package/.framework/src/hooks/useApi.ts +208 -159
- package/.framework/src/hooks/useAppPath.ts +32 -23
- package/.framework/src/hooks/useApps.ts +51 -20
- package/.framework/src/hooks/useEntityList.ts +32 -78
- package/.framework/src/hooks/useEntityRecord.ts +35 -96
- package/.framework/src/hooks/useForm.ts +32 -92
- package/.framework/src/hooks/useListSchema.ts +49 -78
- package/.framework/src/hooks/useSchemaRecord.ts +114 -105
- package/.framework/src/lib/api.ts +195 -116
- package/.framework/src/lib/supabase.ts +98 -64
- package/.framework/src/lib/utils.ts +287 -151
- package/.framework/src/main.tsx +49 -3
- package/.framework/src/pages/DashboardPage.tsx +52 -29
- package/.framework/src/pages/NotFoundPage.tsx +32 -10
- package/.framework/src/pages/SetupPage.tsx +32 -12
- package/.framework/src/pages/admin/AIAgentDetailPage.tsx +119 -10
- package/.framework/src/pages/admin/AIAgentsPage.tsx +48 -19
- package/.framework/src/pages/admin/APIKeyDetailPage.tsx +187 -17
- package/.framework/src/pages/admin/APIKeysPage.tsx +98 -22
- package/.framework/src/pages/admin/AlertsConfigPage.tsx +113 -26
- package/.framework/src/pages/admin/AppDetailPage.tsx +125 -8
- package/.framework/src/pages/admin/AppsPage.tsx +49 -2
- package/.framework/src/pages/admin/DeliveriesPage.tsx +196 -0
- package/.framework/src/pages/admin/DesignedPage.tsx +32 -18
- package/.framework/src/pages/admin/EmbeddingDetailPage.tsx +215 -484
- package/.framework/src/pages/admin/EmbeddingsPage.tsx +116 -319
- package/.framework/src/pages/admin/ExtendedShadcnTestPage.tsx +34 -9
- package/.framework/src/pages/admin/IncrementalShadcnTestPage.tsx +34 -9
- package/.framework/src/pages/admin/IntegratedDashboard.tsx +32 -16
- package/.framework/src/pages/admin/IntegrationDetailPage.tsx +183 -26
- package/.framework/src/pages/admin/IntegrationsPage.tsx +48 -19
- package/.framework/src/pages/admin/InvitesPage.tsx +48 -14
- package/.framework/src/pages/admin/LogsPage.tsx +422 -75
- package/.framework/src/pages/admin/MinimalShadcnTestPage.tsx +34 -9
- package/.framework/src/pages/admin/ObservabilityDashboard.tsx +113 -24
- package/.framework/src/pages/admin/PipelineDetailPage.tsx +206 -34
- package/.framework/src/pages/admin/PipelineExecutionsPage.tsx +50 -17
- package/.framework/src/pages/admin/PipelinesPage.tsx +160 -21
- package/.framework/src/pages/admin/PromptConfigDetailPage.tsx +378 -88
- package/.framework/src/pages/admin/PromptConfigsPage.tsx +125 -16
- package/.framework/src/pages/admin/ProperlyDesignedPage.tsx +49 -10
- package/.framework/src/pages/admin/RoleDetailPage.tsx +130 -10
- package/.framework/src/pages/admin/RolesPage.tsx +171 -18
- package/.framework/src/pages/admin/SelectTestPage.tsx +34 -9
- package/.framework/src/pages/admin/ShadcnTestPage.tsx +49 -11
- package/.framework/src/pages/admin/SimpleDashboard.tsx +49 -10
- package/.framework/src/pages/admin/TestRunDetailPage.tsx +49 -4
- package/.framework/src/pages/admin/TestingDashboard.tsx +98 -28
- package/.framework/src/pages/admin/TimerDetailPage.tsx +143 -33
- package/.framework/src/pages/admin/TimersPage.tsx +48 -20
- package/.framework/src/pages/admin/TriggerDetailPage.tsx +118 -30
- package/.framework/src/pages/admin/TriggersPage.tsx +64 -19
- package/.framework/src/pages/admin/TypeDetailPage.tsx +138 -15
- package/.framework/src/pages/admin/TypesPage.tsx +48 -20
- package/.framework/src/pages/admin/cil/CILAgentPage.tsx +465 -0
- package/.framework/src/pages/admin/cil/CILChunkDetailPage.tsx +787 -0
- package/.framework/src/pages/admin/cil/CILDashboardPage.tsx +699 -0
- package/.framework/src/pages/admin/cil/CILFileListPage.tsx +647 -0
- package/.framework/src/pages/admin/cil/CILGraphPage.tsx +616 -0
- package/.framework/src/pages/admin/cil/CILIngestionPage.tsx +1402 -0
- package/.framework/src/pages/admin/cil/CILProjectsPage.tsx +614 -0
- package/.framework/src/pages/admin/cil/CILSearchPage.tsx +571 -0
- package/.framework/src/pages/admin/cil/FlexiblePipelinePage.tsx +731 -0
- package/.framework/src/pages/admin/kb/KBAdminPage.tsx +64 -0
- package/.framework/src/pages/auth/AuthConfirmPage.tsx +52 -51
- package/.framework/src/pages/auth/ForgotPasswordPage.tsx +31 -22
- package/.framework/src/pages/auth/LoginPage.tsx +50 -23
- package/.framework/src/pages/auth/PendingApprovalPage.tsx +31 -15
- package/.framework/src/pages/auth/RegisterPage.tsx +281 -317
- package/.framework/src/pages/spine-framework/APIPage.tsx +33 -0
- package/.framework/src/pages/spine-framework/CLIPage.tsx +33 -0
- package/.framework/src/types/auth.ts +128 -71
- package/.framework/src/types/types.ts +373 -157
- package/custom/.devin/skills/spine-workbench-discovery/SKILL.md +39 -0
- package/custom/.devin/skills/spine-workbench-idea/SKILL.md +36 -0
- package/custom/.devin/skills/spine-workbench-implement/SKILL.md +46 -0
- package/custom/.devin/skills/spine-workbench-initiative/SKILL.md +28 -0
- package/custom/.devin/skills/spine-workbench-plan/SKILL.md +38 -0
- package/docs/README.md +9 -130
- package/netlify.toml +5 -2
- package/package.json +13 -25
- package/scripts/kb-ingest-docs.ts +203 -0
- package/spine.config.json +65 -4
- package/.framework/migrations/001_schema.sql +0 -425
- package/.framework/migrations/002_rls_and_functions.sql +0 -763
- package/.framework/migrations/004_enhancements.sql +0 -43
- package/.framework/migrations/005_auth_user_trigger.sql +0 -105
- package/.framework/migrations/006_fix_current_actor_id.sql +0 -21
- package/.framework/migrations/016_invites.sql +0 -27
- package/.framework/migrations/017_fix_get_account_apps.sql +0 -78
- package/.framework/migrations/018_apps_required_roles.sql +0 -17
- package/.framework/migrations/019_triggers_unique_constraint.sql +0 -13
- package/.framework/migrations/020_get_account_apps_role_filter.sql +0 -117
- package/.framework/migrations/021_app_domains.sql +0 -112
- package/.framework/migrations/022_route_prefix_domain_unique.sql +0 -21
- package/.framework/migrations/023_match_embeddings_rpc.sql +0 -78
- package/.framework/migrations/024_messages_account_id.sql +0 -9
- package/.framework/migrations/025_retype_threads_messages.sql +0 -240
- package/.framework/migrations/026_fix_rls_policies.sql +0 -47
- package/.framework/migrations/027_embedding_lifecycle.sql +0 -176
- package/.framework/migrations/028_fix_message_data_permissions.sql +0 -49
- package/.framework/migrations/029_tighten_support_triage_prompt.sql +0 -41
- package/.framework/migrations/030_messages_updated_by.sql +0 -6
- package/.framework/migrations/031_seed_upsert_constraints.sql +0 -35
- package/docs/APPS.md +0 -232
- package/docs/ARCHITECTURE.md +0 -246
- package/docs/INSTALL.md +0 -155
- package/docs/design-schema-spec.md +0 -1837
- package/docs/dev-guides/01-create-an-app.md +0 -183
- package/docs/dev-guides/02-create-a-function.md +0 -178
- package/docs/dev-guides/03-create-a-component.md +0 -178
- package/docs/dev-guides/04-webhook-handlers.md +0 -129
- package/docs/dev-guides/05-testing.md +0 -168
- package/docs/dev-guides/README.md +0 -40
- package/docs/npm-packages-plan.md +0 -288
- package/docs/spine-core--api-reference.md +0 -822
|
@@ -0,0 +1,1024 @@
|
|
|
1
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_module_header_1784485482" type="module_header" identity="module_header" parent="none"] -->
|
|
2
|
+
<!-- CIL[DOC-MACRO purpose="Catalog every active runtime type in the Spine database with its design_schema contract and the code that stamps and consumes it"] -->
|
|
3
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Provide a single searchable reference for the design_schema fields, views, permissions, and special keys required by each runtime type"] -->
|
|
4
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
5
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="searchable markdown catalog of runtime types" errors="none" side_effects="none"] -->
|
|
6
|
+
<!-- CIL[DOC-MICRO logic_summary="One chunk per active type describing scope, fields, views, record_permissions, special keys, stamper, and consumers" notable_decisions="[]"] -->
|
|
7
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
8
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
9
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
10
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
11
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
12
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
13
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Content is derived from the live types table in Supabase project jyanuujwuuxhklpusssy. Seed files may contain additional inactive type definitions."] -->
|
|
14
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Generated manifest used as RAG source for design_schema troubleshooting."] -->
|
|
15
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps developers and AI agents answer questions like what fields does a support_ticket need or which code consumes design_schema.pipeline."] -->
|
|
16
|
+
|
|
17
|
+
# Runtime Type Catalog
|
|
18
|
+
|
|
19
|
+
This catalog documents the `design_schema` contract for every active type in the `spine-dev` (`jyanuujwuuxhklpusssy`) `types` table.
|
|
20
|
+
|
|
21
|
+
<!-- CIL[END chunk_id="runtime-types_module_header_1784485482"] -->
|
|
22
|
+
|
|
23
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_account_1784485482" type="runtime_type" identity="account" parent="none"] -->
|
|
24
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type account/account (account)"] -->
|
|
25
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for account/account"] -->
|
|
26
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
27
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for account/account" errors="none" side_effects="none"] -->
|
|
28
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for account/account" notable_decisions="[]"] -->
|
|
29
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
30
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
31
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
32
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
33
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
34
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
35
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
36
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
37
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions account/account requires."] -->
|
|
38
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:account/account" content="kind=account slug=account scope=account fields=[created_at(datetime,system label:Created); description(textarea,system label:Description); display_name(text,required,system label:Display Name); is_active(boolean,required,system label:Active); slug(text,required,system label:Slug); updated_at(datetime,system label:Updated)] views=[default_detail:detailAccount/sections=Overview(slug,display_name,description,is_active);Metadata(created_at,updated_at); default_list:listtable/Accounts/fields=display_name[text,sortable],is_active[badge,sortable],slug[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
39
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
40
|
+
|
|
41
|
+
## account/account — account
|
|
42
|
+
|
|
43
|
+
- **Scope:** account
|
|
44
|
+
- **Fields:** 6 fields
|
|
45
|
+
- **Views:** default_list, default_detail
|
|
46
|
+
- **Record permissions:** 5 roles
|
|
47
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
48
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
49
|
+
|
|
50
|
+
<!-- CIL[END chunk_id="runtime-types_account_1784485482"] -->
|
|
51
|
+
|
|
52
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_attachment_1784485482" type="runtime_type" identity="attachment" parent="none"] -->
|
|
53
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type attachment/attachment (attachment)"] -->
|
|
54
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for attachment/attachment"] -->
|
|
55
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
56
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for attachment/attachment" errors="none" side_effects="none"] -->
|
|
57
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for attachment/attachment" notable_decisions="[]"] -->
|
|
58
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
59
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
60
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
61
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
62
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
63
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
64
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
65
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
66
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions attachment/attachment requires."] -->
|
|
67
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:attachment/attachment" content="kind=attachment slug=attachment scope=account fields=[created_at(datetime,system label:Created); file_size(number,system label:File Size); filename(text,required,system label:Filename); mime_type(text,system label:MIME Type); storage_path(text,system label:Storage Path); storage_provider(text,required,system label:Storage Provider); updated_at(datetime,system label:Updated)] views=[default_detail:detailAttachment/sections=File(filename,file_size,mime_type,storage_provider);Storage(storage_path);Metadata(created_at,updated_at); default_list:listtable/Attachments/fields=created_at[datetime,sortable],file_size[number,sortable],filename[text,sortable],mime_type[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
68
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
69
|
+
|
|
70
|
+
## attachment/attachment — attachment
|
|
71
|
+
|
|
72
|
+
- **Scope:** account
|
|
73
|
+
- **Fields:** 7 fields
|
|
74
|
+
- **Views:** default_list, default_detail
|
|
75
|
+
- **Record permissions:** 5 roles
|
|
76
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
77
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
78
|
+
|
|
79
|
+
<!-- CIL[END chunk_id="runtime-types_attachment_1784485482"] -->
|
|
80
|
+
|
|
81
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_activity_log_1784485482" type="runtime_type" identity="activity_log" parent="none"] -->
|
|
82
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/activity_log (activity_log)"] -->
|
|
83
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/activity_log"] -->
|
|
84
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
85
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/activity_log" errors="none" side_effects="none"] -->
|
|
86
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/activity_log" notable_decisions="[]"] -->
|
|
87
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
88
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
89
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
90
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
91
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
92
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
93
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
94
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
95
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/activity_log requires."] -->
|
|
96
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/activity_log" content="kind=item slug=activity_log scope=account fields=[action(text,required label:Action); new_score(number label:New Score); new_stage(text label:New Stage); score_delta(number label:Score Change); signal_type(text label:Signal Type)] views=[default_detail:detailActivity Log/sections=Action(action,signal_type);Impact(score_delta,new_score,new_stage); default_list:listtable/Activity Logs/fields=action[badge,sortable],created_at[datetime,sortable],signal_type[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
97
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
98
|
+
|
|
99
|
+
## item/activity_log — activity_log
|
|
100
|
+
|
|
101
|
+
- **Scope:** account
|
|
102
|
+
- **Fields:** 5 fields
|
|
103
|
+
- **Views:** default_list, default_detail
|
|
104
|
+
- **Record permissions:** 5 roles
|
|
105
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
106
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
107
|
+
|
|
108
|
+
<!-- CIL[END chunk_id="runtime-types_activity_log_1784485482"] -->
|
|
109
|
+
|
|
110
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_ai_feedback_record_1784485482" type="runtime_type" identity="ai_feedback_record" parent="none"] -->
|
|
111
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/ai_feedback_record (ai_feedback_record)"] -->
|
|
112
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/ai_feedback_record"] -->
|
|
113
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
114
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/ai_feedback_record" errors="none" side_effects="none"] -->
|
|
115
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/ai_feedback_record" notable_decisions="[]"] -->
|
|
116
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
117
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
118
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
119
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
120
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
121
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
122
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
123
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
124
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/ai_feedback_record requires."] -->
|
|
125
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/ai_feedback_record" content="kind=item slug=ai_feedback_record scope=account fields=[ai_confidence(number label:AI Confidence); ai_message_id(text label:AI Message ID); customer_feedback(select options:Helpful/Not Helpful label:Customer Feedback); human_edits_made(boolean default:false label:Human Edits Made); human_message_id(text label:Human Message ID); kb_article_id(text label:KB Article ID); kb_candidate(boolean label:KB Candidate); retrieval_confidence(number label:Retrieval Confidence); retrieved_sources(json label:Retrieved Sources); reuse_count(number default:0 label:Reuse Count); thread_id(text label:Thread ID)] record_permissions=[support:read; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
126
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
127
|
+
|
|
128
|
+
## item/ai_feedback_record — ai_feedback_record
|
|
129
|
+
|
|
130
|
+
- **Scope:** account
|
|
131
|
+
- **Fields:** 11 fields
|
|
132
|
+
- **Record permissions:** 3 roles
|
|
133
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
134
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
135
|
+
|
|
136
|
+
<!-- CIL[END chunk_id="runtime-types_ai_feedback_record_1784485482"] -->
|
|
137
|
+
|
|
138
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_anonymous_session_1784485482" type="runtime_type" identity="anonymous_session" parent="none"] -->
|
|
139
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/anonymous_session (anonymous_session)"] -->
|
|
140
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/anonymous_session"] -->
|
|
141
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
142
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/anonymous_session" errors="none" side_effects="none"] -->
|
|
143
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/anonymous_session" notable_decisions="[]"] -->
|
|
144
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
145
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
146
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
147
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
148
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
149
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
150
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
151
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
152
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/anonymous_session requires."] -->
|
|
153
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/anonymous_session" content="kind=item slug=anonymous_session scope=system fields=[anonymous_id(text label:Anonymous ID); landing_page(text label:Landing Page); rating(number label:Rating); referrer_domain(text label:Referrer Domain); referrer_url(text label:Referrer URL); session_depth(number label:Session Depth); utm_campaign(text label:UTM Campaign); utm_medium(text label:UTM Medium); utm_source(text label:UTM Source)] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
154
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
155
|
+
|
|
156
|
+
## item/anonymous_session — anonymous_session
|
|
157
|
+
|
|
158
|
+
- **Scope:** system
|
|
159
|
+
- **Fields:** 9 fields
|
|
160
|
+
- **Record permissions:** 5 roles
|
|
161
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
162
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
163
|
+
|
|
164
|
+
<!-- CIL[END chunk_id="runtime-types_anonymous_session_1784485482"] -->
|
|
165
|
+
|
|
166
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_bug_ticket_1784485482" type="runtime_type" identity="bug_ticket" parent="none"] -->
|
|
167
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/bug_ticket (bug_ticket)"] -->
|
|
168
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/bug_ticket"] -->
|
|
169
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
170
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/bug_ticket" errors="none" side_effects="none"] -->
|
|
171
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/bug_ticket" notable_decisions="[]"] -->
|
|
172
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
173
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
174
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
175
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
176
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
177
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
178
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
179
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
180
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/bug_ticket requires."] -->
|
|
181
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/bug_ticket" content="kind=item slug=bug_ticket scope=account fields=[affected_components(json default:[] label:Affected UI Components); affected_fields(json default:[] label:Affected DB Fields); affected_files(json default:[] label:Affected Files); affected_functions(json default:[] label:Affected Functions); affected_tables(json default:[] label:Affected DB Tables); ai_confidence(number label:AI Attribution Confidence); assignee_id(text label:Assignee Person ID); description(textarea label:Description); error_signals(json default:[] label:Error Signals / Logs); external_ticket_id(text label:External Ticket ID (e.g. Jira)); external_ticket_url(text label:External Ticket URL); kb_article_id(text label:Related KB Article ID); proposed_fix_area(text label:Proposed Fix Area); reproduction_steps(textarea label:Reproduction Steps); severity(select,required options:Critical/High/Medium/Low label:Severity); status(select,required options:Open/In Review/Confirmed/In Progress/Resolved/Won't Fix label:Status); support_ticket_id(text label:Source Support Ticket ID); title(text,required label:Title)] views=[default_list:listtable/Bug Tickets/fields=severity[badge,sortable],status[badge,sortable],title[text,sortable]] record_permissions=[support:read; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
182
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="no default_detail view; GenericDetailPage may fail to render unless useSchemaRecord provides a fallback"] -->
|
|
183
|
+
|
|
184
|
+
## item/bug_ticket — bug_ticket
|
|
185
|
+
|
|
186
|
+
- **Scope:** account
|
|
187
|
+
- **Fields:** 18 fields
|
|
188
|
+
- **Views:** default_list
|
|
189
|
+
- **Record permissions:** 3 roles
|
|
190
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
191
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
192
|
+
|
|
193
|
+
<!-- CIL[END chunk_id="runtime-types_bug_ticket_1784485482"] -->
|
|
194
|
+
|
|
195
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_cil_chunk_1784485482" type="runtime_type" identity="cil_chunk" parent="none"] -->
|
|
196
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/cil_chunk (cil_chunk)"] -->
|
|
197
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/cil_chunk"] -->
|
|
198
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
199
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/cil_chunk" errors="none" side_effects="none"] -->
|
|
200
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/cil_chunk" notable_decisions="[]"] -->
|
|
201
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
202
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
203
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
204
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
205
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
206
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
207
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
208
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
209
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/cil_chunk requires."] -->
|
|
210
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/cil_chunk" content="kind=item slug=cil_chunk scope=account fields=[audience(select options:Internal/External/Both label:Audience); boundary_confidence(select options:High/Low/Human Verified label:Boundary Confidence); boundary_source(select options:AST Auto/AST Approved/Human Override label:Boundary Source); called_by(text label:Called By); calls(text label:Calls); chunk_name(text label:Chunk Name); chunk_type(select options:Function/Class/Interface/Type/Component/Hook/Route/Config label:Chunk Type); code_content(textarea label:Code Content); complexity(select options:Simple/Moderate/Complex label:Complexity); description(textarea label:Description); doc_confidence(select options:AI Generated/Human Verified/Unverified Legacy label:Doc Confidence); doc_validation_errors(text label:Doc Validation Errors); error_handling(text label:Error Handling); existing_marker_agreement(select options:None (no prior marker)/Agreed/Disagreed label:Existing Marker Agreement); file_id(text label:File ID); file_path(text label:File Path); hash_updated_at(text label:Hash Updated At); input_spec(textarea label:Input Spec); is_dead_code(boolean label:Dead Code); kb_type(text label:KB Type); layer(select options:Shared Core/App Specific/Infrastructure/Test label:Layer); line_end(number label:Line End); line_start(number label:Line Start); macro(text label:Macro (Purpose)); micro(text label:Micro (Detail)); module(text label:Module Name); output_spec(text label:Output Spec); project_id(text label:Project ID); review_status(select options:Pending Review/Approved/Rejected label:Review Status); see_also(textarea label:See Also); side_effects(text label:Side Effects); stability(select options:Stable/Internal/Experimental/Deprecated label:Stability); stored_hash(text label:Stored Hash); tags(text label:Tags); test_e2e_path(text label:E2E Test Path); test_unit_path(text label:Unit Test Path); throws(text label:Throws); token_count(number label:Token Count)] record_permissions=[support_admin:create/read/update; system_admin:create/read/update/delete] vector_types=[semantic,structural,contract]; embedding_fields={structural=chunk_type,file_path,stability,is_dead_code,boundary_confidence,doc_confidence,review_status} stamped_by=custom/apps/cortex/mcp/tools/pipeline.ts resolves type and stamps design_schema; also .framework/functions/admin-data.ts create consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback),.framework/functions/embeddings.ts (vector_types, embedding_fields)"] -->
|
|
211
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="vector_types controls which embedding builders run; unsupported vector type names cause embeddings.ts to log an error and skip"] -->
|
|
212
|
+
|
|
213
|
+
## item/cil_chunk — cil_chunk
|
|
214
|
+
|
|
215
|
+
- **Scope:** account
|
|
216
|
+
- **Fields:** 38 fields
|
|
217
|
+
- **Record permissions:** 2 roles
|
|
218
|
+
- **Special keys:** vector_types=[semantic,structural,contract]; embedding_fields={structural=chunk_type,file_path,stability,is_dead_code,boundary_confidence,doc_confidence,review_status}
|
|
219
|
+
- **Stamped by:** custom/apps/cortex/mcp/tools/pipeline.ts resolves type and stamps design_schema; also .framework/functions/admin-data.ts create
|
|
220
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback), .framework/functions/embeddings.ts (vector_types, embedding_fields)
|
|
221
|
+
|
|
222
|
+
<!-- CIL[END chunk_id="runtime-types_cil_chunk_1784485482"] -->
|
|
223
|
+
|
|
224
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_cil_chunk_proposal_1784485482" type="runtime_type" identity="cil_chunk_proposal" parent="none"] -->
|
|
225
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/cil_chunk_proposal (cil_chunk_proposal)"] -->
|
|
226
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/cil_chunk_proposal"] -->
|
|
227
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
228
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/cil_chunk_proposal" errors="none" side_effects="none"] -->
|
|
229
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/cil_chunk_proposal" notable_decisions="[]"] -->
|
|
230
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
231
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
232
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
233
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
234
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
235
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
236
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
237
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
238
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/cil_chunk_proposal requires."] -->
|
|
239
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/cil_chunk_proposal" content="kind=item slug=cil_chunk_proposal scope=account fields=[adjusted_line_end(number label:Adjusted Line End); adjusted_line_start(number label:Adjusted Line Start); chunk_type(text label:Chunk Type); code_preview(text label:Code Preview); confidence_reasons(text label:Confidence Reasons); confidence_score(number label:Confidence Score); existing_marker_match(boolean label:Matches Existing Marker); existing_marker_name(text label:Existing Marker Name); file_id(text label:File ID); file_path(text label:File Path); line_end(number label:Line End); line_start(number label:Line Start); project_id(text label:Project ID); proposed_name(text label:Proposed Chunk Name); review_status(select options:Pending Review/Approved/Rejected/Merged label:Review Status); reviewed_at(text label:Reviewed At); reviewed_by(text label:Reviewed By); token_count(number label:Token Count)] record_permissions=[support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
240
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
241
|
+
|
|
242
|
+
## item/cil_chunk_proposal — cil_chunk_proposal
|
|
243
|
+
|
|
244
|
+
- **Scope:** account
|
|
245
|
+
- **Fields:** 18 fields
|
|
246
|
+
- **Record permissions:** 2 roles
|
|
247
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
248
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
249
|
+
|
|
250
|
+
<!-- CIL[END chunk_id="runtime-types_cil_chunk_proposal_1784485482"] -->
|
|
251
|
+
|
|
252
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_cil_config_1784485482" type="runtime_type" identity="cil_config" parent="none"] -->
|
|
253
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/cil_config (cil_config)"] -->
|
|
254
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/cil_config"] -->
|
|
255
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
256
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/cil_config" errors="none" side_effects="none"] -->
|
|
257
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/cil_config" notable_decisions="[]"] -->
|
|
258
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
259
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
260
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
261
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
262
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
263
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
264
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
265
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
266
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/cil_config requires."] -->
|
|
267
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/cil_config" content="kind=item slug=cil_config scope=account fields=[allowed_range(text label:Allowed Range); code_edge_chunk_ids(text label:Code Edge Chunk IDs); config_table(text label:Config Table); current_value_query(text label:Current Value Query); current_value_query_type(select options:SQL/JSON Path/Env Var label:Query Type); default_value(text label:Default Value); description(text label:Description); field_name(text label:Field Name); field_type(text label:Field Type); project_id(text label:Project ID); record_slug(text label:Record Slug); settings(text label:Settings (JSON))] record_permissions=[support_admin:create/read/update; system_admin:create/read/update/delete] vector_types=[semantic] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback),.framework/functions/embeddings.ts (vector_types, embedding_fields)"] -->
|
|
268
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="vector_types controls which embedding builders run; unsupported vector type names cause embeddings.ts to log an error and skip"] -->
|
|
269
|
+
|
|
270
|
+
## item/cil_config — cil_config
|
|
271
|
+
|
|
272
|
+
- **Scope:** account
|
|
273
|
+
- **Fields:** 12 fields
|
|
274
|
+
- **Record permissions:** 2 roles
|
|
275
|
+
- **Special keys:** vector_types=[semantic]
|
|
276
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
277
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback), .framework/functions/embeddings.ts (vector_types, embedding_fields)
|
|
278
|
+
|
|
279
|
+
<!-- CIL[END chunk_id="runtime-types_cil_config_1784485482"] -->
|
|
280
|
+
|
|
281
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_cil_file_1784485482" type="runtime_type" identity="cil_file" parent="none"] -->
|
|
282
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/cil_file (cil_file)"] -->
|
|
283
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/cil_file"] -->
|
|
284
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
285
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/cil_file" errors="none" side_effects="none"] -->
|
|
286
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/cil_file" notable_decisions="[]"] -->
|
|
287
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
288
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
289
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
290
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
291
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
292
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
293
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
294
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
295
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/cil_file requires."] -->
|
|
296
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/cil_file" content="kind=item slug=cil_file scope=account fields=[chunk_count(number label:Chunk Count); existing_marker_agreement_count(number label:Marker Agreement Count); existing_marker_count(number label:Existing Marker Count); existing_marker_disagreement_count(number label:Marker Disagreement Count); existing_marker_names(text label:Existing Marker Names); file_path(text label:File Path); git_last_commit(text label:Git Last Commit); has_existing_markers(boolean label:Had Existing Markers); ingestion_pass(number label:Ingestion Pass); is_dead_code(boolean label:Dead Code); kb_type(text label:KB Type); language(text label:Language); line_count(number label:Line Count); project_id(text label:Project ID); stored_hash(text label:Stored Hash)] record_permissions=[support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=custom/apps/cortex/mcp/tools/pipeline.ts resolves type and stamps design_schema; also .framework/functions/admin-data.ts create consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
297
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
298
|
+
|
|
299
|
+
## item/cil_file — cil_file
|
|
300
|
+
|
|
301
|
+
- **Scope:** account
|
|
302
|
+
- **Fields:** 15 fields
|
|
303
|
+
- **Record permissions:** 2 roles
|
|
304
|
+
- **Stamped by:** custom/apps/cortex/mcp/tools/pipeline.ts resolves type and stamps design_schema; also .framework/functions/admin-data.ts create
|
|
305
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
306
|
+
|
|
307
|
+
<!-- CIL[END chunk_id="runtime-types_cil_file_1784485482"] -->
|
|
308
|
+
|
|
309
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_cil_project_1784485482" type="runtime_type" identity="cil_project" parent="none"] -->
|
|
310
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/cil_project (cil_project)"] -->
|
|
311
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/cil_project"] -->
|
|
312
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
313
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/cil_project" errors="none" side_effects="none"] -->
|
|
314
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/cil_project" notable_decisions="[]"] -->
|
|
315
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
316
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
317
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
318
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
319
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
320
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
321
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
322
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
323
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/cil_project requires."] -->
|
|
324
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/cil_project" content="kind=item slug=cil_project scope=account fields=[chunk_count(number label:Chunk Count); file_count(number label:File Count); ingestion_status(select options:Not Started/In Progress/Complete label:Ingestion Status); kb_type(text label:KB Type); language_mix(text label:Languages); last_ingested_at(text label:Last Ingested At); repo_path(text label:Repository Path); total_ingestion_cost_usd(number label:Total Ingestion Cost (USD))] record_permissions=[support_admin:create/read/update; system_admin:create/read/update/delete] vector_types=[semantic] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback),.framework/functions/embeddings.ts (vector_types, embedding_fields)"] -->
|
|
325
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="vector_types controls which embedding builders run; unsupported vector type names cause embeddings.ts to log an error and skip"] -->
|
|
326
|
+
|
|
327
|
+
## item/cil_project — cil_project
|
|
328
|
+
|
|
329
|
+
- **Scope:** account
|
|
330
|
+
- **Fields:** 8 fields
|
|
331
|
+
- **Record permissions:** 2 roles
|
|
332
|
+
- **Special keys:** vector_types=[semantic]
|
|
333
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
334
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback), .framework/functions/embeddings.ts (vector_types, embedding_fields)
|
|
335
|
+
|
|
336
|
+
<!-- CIL[END chunk_id="runtime-types_cil_project_1784485482"] -->
|
|
337
|
+
|
|
338
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_community_post_1784485482" type="runtime_type" identity="community_post" parent="none"] -->
|
|
339
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/community_post (community_post)"] -->
|
|
340
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/community_post"] -->
|
|
341
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
342
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/community_post" errors="none" side_effects="none"] -->
|
|
343
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/community_post" notable_decisions="[]"] -->
|
|
344
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
345
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
346
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
347
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
348
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
349
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
350
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
351
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
352
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/community_post requires."] -->
|
|
353
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/community_post" content="kind=item slug=community_post scope=platform fields=[accepted_answer_id(text label:Accepted Answer); channel(select,required options:General/Announcements/Help/Show and Tell label:Channel); content(textarea,required label:Content); context(select,required options:Support/Community label:Context); helpful_count(number default:0 label:Helpful Votes); moderation_status(select options:Pending/Approved/Flagged label:Moderation Status); not_helpful_count(number default:0 label:Not Helpful Votes); title(text,required label:Title)] views=[default_detail:detailCommunity Post/sections=Content(title,content,channel,context);Moderation(moderation_status,helpful_count,not_helpful_count,accepted_answer_id); default_list:listtable/Community Posts/fields=channel[badge,sortable],moderation_status[badge,sortable],title[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
354
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
355
|
+
|
|
356
|
+
## item/community_post — community_post
|
|
357
|
+
|
|
358
|
+
- **Scope:** platform
|
|
359
|
+
- **Fields:** 8 fields
|
|
360
|
+
- **Views:** default_list, default_detail
|
|
361
|
+
- **Record permissions:** 5 roles
|
|
362
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
363
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
364
|
+
|
|
365
|
+
<!-- CIL[END chunk_id="runtime-types_community_post_1784485482"] -->
|
|
366
|
+
|
|
367
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_course_lesson_1784485482" type="runtime_type" identity="course_lesson" parent="none"] -->
|
|
368
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/course_lesson (course_lesson)"] -->
|
|
369
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/course_lesson"] -->
|
|
370
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
371
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/course_lesson" errors="none" side_effects="none"] -->
|
|
372
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/course_lesson" notable_decisions="[]"] -->
|
|
373
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
374
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
375
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
376
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
377
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
378
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
379
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
380
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
381
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/course_lesson requires."] -->
|
|
382
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/course_lesson" content="kind=item slug=course_lesson scope=platform fields=[content(textarea label:Content); estimated_duration(number label:Estimated Duration (minutes)); prerequisites(json default:[] label:Prerequisite Lesson IDs); progress_required(boolean default:false label:Progress Required to Continue); sequence(number,required default:0 label:Sequence Order); title(text,required label:Title); video_url(text label:Video URL)] views=[default_detail:detailCourse Lesson/sections=Content(title,content,video_url,estimated_duration);Settings(sequence,progress_required,prerequisites); default_list:listtable/Course Lessons/fields=estimated_duration[number,sortable],sequence[number,sortable],title[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] vector_types=[semantic,structure,summary,intent,cause,procedure,outcome]; embedding_fields={structure=course_title,course_id,sequence,estimated_duration,prerequisites} stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback),.framework/functions/embeddings.ts (vector_types, embedding_fields)"] -->
|
|
383
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="vector_types controls which embedding builders run; unsupported vector type names cause embeddings.ts to log an error and skip"] -->
|
|
384
|
+
|
|
385
|
+
## item/course_lesson — course_lesson
|
|
386
|
+
|
|
387
|
+
- **Scope:** platform
|
|
388
|
+
- **Fields:** 7 fields
|
|
389
|
+
- **Views:** default_list, default_detail
|
|
390
|
+
- **Record permissions:** 5 roles
|
|
391
|
+
- **Special keys:** vector_types=[semantic,structure,summary,intent,cause,procedure,outcome]; embedding_fields={structure=course_title,course_id,sequence,estimated_duration,prerequisites}
|
|
392
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
393
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback), .framework/functions/embeddings.ts (vector_types, embedding_fields)
|
|
394
|
+
|
|
395
|
+
<!-- CIL[END chunk_id="runtime-types_course_lesson_1784485482"] -->
|
|
396
|
+
|
|
397
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_csm_health_1784485482" type="runtime_type" identity="csm_health" parent="none"] -->
|
|
398
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/csm_health (csm_health)"] -->
|
|
399
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/csm_health"] -->
|
|
400
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
401
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/csm_health" errors="none" side_effects="none"] -->
|
|
402
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/csm_health" notable_decisions="[]"] -->
|
|
403
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
404
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
405
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
406
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
407
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
408
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
409
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
410
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
411
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/csm_health requires."] -->
|
|
412
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/csm_health" content="kind=item slug=csm_health scope=account fields=[account_id(text,required label:Customer Account); adoption_score(number label:Adoption Score (0-100)); churn_risk_score(number label:Churn Risk Score (0-100)); notes(textarea label:CSM Notes); nps_score(number label:NPS Score (-100 to 100)); temperature(select,required options:Green/Yellow/Red label:Health Temperature)] views=[default_detail:detailHealth Record/sections=Health(temperature,churn_risk_score,adoption_score,nps_score);Account(account_id,notes); default_list:listtable/Health Records/fields=account_id[text,sortable],churn_risk_score[number,sortable],nps_score[number,sortable],temperature[badge,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
413
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
414
|
+
|
|
415
|
+
## item/csm_health — csm_health
|
|
416
|
+
|
|
417
|
+
- **Scope:** account
|
|
418
|
+
- **Fields:** 6 fields
|
|
419
|
+
- **Views:** default_list, default_detail
|
|
420
|
+
- **Record permissions:** 5 roles
|
|
421
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
422
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
423
|
+
|
|
424
|
+
<!-- CIL[END chunk_id="runtime-types_csm_health_1784485482"] -->
|
|
425
|
+
|
|
426
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_deal_1784485482" type="runtime_type" identity="deal" parent="none"] -->
|
|
427
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/deal (deal)"] -->
|
|
428
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/deal"] -->
|
|
429
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
430
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/deal" errors="none" side_effects="none"] -->
|
|
431
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/deal" notable_decisions="[]"] -->
|
|
432
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
433
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
434
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
435
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
436
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
437
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
438
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
439
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
440
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/deal requires."] -->
|
|
441
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/deal" content="kind=item slug=deal scope=account fields=[account_id(text label:Company); close_date(date label:Expected Close Date); owner_person_id(text label:Deal Owner); probability(number label:Probability %); source(select options:Inbound/Outbound/Referral/Event/Paid/Organic label:Lead Source); stage(select,required options:Prospecting/Qualification/Proposal/Negotiation/Closed Won/Closed Lost label:Stage); value(number label:Deal Value (USD))] views=[default_detail:detailDeal/sections=Deal Info(stage,value,close_date,probability,source);Ownership(owner_person_id,account_id); default_list:listtable/Deals/fields=close_date[date,sortable],probability[percentage,sortable],stage[badge,sortable],value[currency,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
442
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
443
|
+
|
|
444
|
+
## item/deal — deal
|
|
445
|
+
|
|
446
|
+
- **Scope:** account
|
|
447
|
+
- **Fields:** 7 fields
|
|
448
|
+
- **Views:** default_list, default_detail
|
|
449
|
+
- **Record permissions:** 5 roles
|
|
450
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
451
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
452
|
+
|
|
453
|
+
<!-- CIL[END chunk_id="runtime-types_deal_1784485482"] -->
|
|
454
|
+
|
|
455
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_eval_test_case_1784485482" type="runtime_type" identity="eval_test_case" parent="none"] -->
|
|
456
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/eval_test_case (eval_test_case)"] -->
|
|
457
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/eval_test_case"] -->
|
|
458
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
459
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/eval_test_case" errors="none" side_effects="none"] -->
|
|
460
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/eval_test_case" notable_decisions="[]"] -->
|
|
461
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
462
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
463
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
464
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
465
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
466
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
467
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
468
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
469
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/eval_test_case requires."] -->
|
|
470
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/eval_test_case" content="kind=item slug=eval_test_case scope=platform fields=[excluded_source_ids(json default:[] label:Must NOT Retrieve); expected_escalate(boolean default:false label:Should Escalate); expected_source_ids(json default:[] label:Expected Source IDs); expected_tier(select options:High/Medium/Low label:Expected Confidence Tier); question(text,required label:Test Question); test_type(select options:Easy/Medium/Hard/Security Boundary/Hallucination Trap/Stale Content/Account Gating label:Test Type)] record_permissions=[system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
471
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
472
|
+
|
|
473
|
+
## item/eval_test_case — eval_test_case
|
|
474
|
+
|
|
475
|
+
- **Scope:** platform
|
|
476
|
+
- **Fields:** 6 fields
|
|
477
|
+
- **Record permissions:** 1 roles
|
|
478
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
479
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
480
|
+
|
|
481
|
+
<!-- CIL[END chunk_id="runtime-types_eval_test_case_1784485482"] -->
|
|
482
|
+
|
|
483
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_funnel_aggregation_1784485482" type="runtime_type" identity="funnel_aggregation" parent="none"] -->
|
|
484
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/funnel_aggregation (funnel_aggregation)"] -->
|
|
485
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/funnel_aggregation"] -->
|
|
486
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
487
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/funnel_aggregation" errors="none" side_effects="none"] -->
|
|
488
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/funnel_aggregation" notable_decisions="[]"] -->
|
|
489
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
490
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
491
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
492
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
493
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
494
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
495
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
496
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
497
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/funnel_aggregation requires."] -->
|
|
498
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/funnel_aggregation" content="kind=item slug=funnel_aggregation scope=system fields=[aggregation_scope(select options:System/Account label:Scope); metrics(json label:Metrics); period_end(datetime label:Period End); period_start(datetime label:Period Start)] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
499
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
500
|
+
|
|
501
|
+
## item/funnel_aggregation — funnel_aggregation
|
|
502
|
+
|
|
503
|
+
- **Scope:** system
|
|
504
|
+
- **Fields:** 4 fields
|
|
505
|
+
- **Record permissions:** 5 roles
|
|
506
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
507
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
508
|
+
|
|
509
|
+
<!-- CIL[END chunk_id="runtime-types_funnel_aggregation_1784485482"] -->
|
|
510
|
+
|
|
511
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_funnel_signal_1784485482" type="runtime_type" identity="funnel_signal" parent="none"] -->
|
|
512
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/funnel_signal (funnel_signal)"] -->
|
|
513
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/funnel_signal"] -->
|
|
514
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
515
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/funnel_signal" errors="none" side_effects="none"] -->
|
|
516
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/funnel_signal" notable_decisions="[]"] -->
|
|
517
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
518
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
519
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
520
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
521
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
522
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
523
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
524
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
525
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/funnel_signal requires."] -->
|
|
526
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/funnel_signal" content="kind=item slug=funnel_signal scope=system fields=[account_id(text label:Account ID); action_type(text label:Action Type); action_value(number label:Action Value); anonymous_id(text label:Anonymous ID); engagement_score(number label:Engagement Score); person_id(text label:Person ID); session_id(text label:Session ID); source(select options:Marketing/Internal/User/Manual label:Source); stage(select options:Anonymous/Identified/Installed label:Stage); temperature(select options:Cold/Warm/Hot label:Temperature)] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
527
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
528
|
+
|
|
529
|
+
## item/funnel_signal — funnel_signal
|
|
530
|
+
|
|
531
|
+
- **Scope:** system
|
|
532
|
+
- **Fields:** 10 fields
|
|
533
|
+
- **Record permissions:** 5 roles
|
|
534
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
535
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
536
|
+
|
|
537
|
+
<!-- CIL[END chunk_id="runtime-types_funnel_signal_1784485482"] -->
|
|
538
|
+
|
|
539
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_item_1784485482" type="runtime_type" identity="item" parent="none"] -->
|
|
540
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/item (item)"] -->
|
|
541
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/item"] -->
|
|
542
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
543
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/item" errors="none" side_effects="none"] -->
|
|
544
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/item" notable_decisions="[]"] -->
|
|
545
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
546
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
547
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
548
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
549
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
550
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
551
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
552
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
553
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/item requires."] -->
|
|
554
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/item" content="kind=item slug=item scope=account fields=[created_at(datetime,system label:Created); description(textarea,system label:Description); is_active(boolean,required,system label:Active); status(text,required,system label:Status); title(text,required,system label:Title); updated_at(datetime,system label:Updated)] views=[default_detail:detailItem/sections=Overview(title,description,status,is_active);Metadata(created_at,updated_at); default_list:listtable/Items/fields=created_at[datetime,sortable],is_active[badge,sortable],status[badge,sortable],title[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
555
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
556
|
+
|
|
557
|
+
## item/item — item
|
|
558
|
+
|
|
559
|
+
- **Scope:** account
|
|
560
|
+
- **Fields:** 6 fields
|
|
561
|
+
- **Views:** default_list, default_detail
|
|
562
|
+
- **Record permissions:** 5 roles
|
|
563
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
564
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
565
|
+
|
|
566
|
+
<!-- CIL[END chunk_id="runtime-types_item_1784485482"] -->
|
|
567
|
+
|
|
568
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_kb_article_1784485482" type="runtime_type" identity="kb_article" parent="none"] -->
|
|
569
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/kb_article (kb_article)"] -->
|
|
570
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/kb_article"] -->
|
|
571
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
572
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/kb_article" errors="none" side_effects="none"] -->
|
|
573
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/kb_article" notable_decisions="[]"] -->
|
|
574
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
575
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
576
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
577
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
578
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
579
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
580
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
581
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
582
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/kb_article requires."] -->
|
|
583
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/kb_article" content="kind=item slug=kb_article scope=platform fields=[content_markdown(textarea label:Article Content (Markdown)); helpful_count(number default:0 label:Helpful Count); not_helpful_count(number default:0 label:Not Helpful Count); slug(text,required label:URL Slug); tags(json label:Tags); title(text,required label:Title)] views=[default_detail:detailKB Article/sections=Content(title,slug,tags,content_markdown);Feedback(helpful_count,not_helpful_count); default_list:listtable/KB Articles/fields=helpful_count[number,sortable],slug[text,sortable],tags[tags],title[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] vector_types={how_to=semantic,structure,summary,intent,procedure,outcome;article=semantic,structure,summary;default=semantic,structure,summary;use_case=semantic,structure,summary,intent,context,procedure,outcome;db_schema=semantic,structure,cause,context;code_chunk=semantic,structure;postmortem=semantic,structure,summary,intent,cause,procedure,context,error_signal}; embedding_fields={structure=kb_type,category,tags,audience,security_level,product_area} stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback),.framework/functions/embeddings.ts (vector_types, embedding_fields)"] -->
|
|
584
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="vector_types controls which embedding builders run; unsupported vector type names cause embeddings.ts to log an error and skip"] -->
|
|
585
|
+
|
|
586
|
+
## item/kb_article — kb_article
|
|
587
|
+
|
|
588
|
+
- **Scope:** platform
|
|
589
|
+
- **Fields:** 6 fields
|
|
590
|
+
- **Views:** default_list, default_detail
|
|
591
|
+
- **Record permissions:** 5 roles
|
|
592
|
+
- **Special keys:** vector_types={how_to=semantic,structure,summary,intent,procedure,outcome;article=semantic,structure,summary;default=semantic,structure,summary;use_case=semantic,structure,summary,intent,context,procedure,outcome;db_schema=semantic,structure,cause,context;code_chunk=semantic,structure;postmortem=semantic,structure,summary,intent,cause,procedure,context,error_signal}; embedding_fields={structure=kb_type,category,tags,audience,security_level,product_area}
|
|
593
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
594
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback), .framework/functions/embeddings.ts (vector_types, embedding_fields)
|
|
595
|
+
|
|
596
|
+
<!-- CIL[END chunk_id="runtime-types_kb_article_1784485482"] -->
|
|
597
|
+
|
|
598
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_marketing_touch_1784485482" type="runtime_type" identity="marketing_touch" parent="none"] -->
|
|
599
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/marketing_touch (marketing_touch)"] -->
|
|
600
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/marketing_touch"] -->
|
|
601
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
602
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/marketing_touch" errors="none" side_effects="none"] -->
|
|
603
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/marketing_touch" notable_decisions="[]"] -->
|
|
604
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
605
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
606
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
607
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
608
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
609
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
610
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
611
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
612
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/marketing_touch requires."] -->
|
|
613
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/marketing_touch" content="kind=item slug=marketing_touch scope=account fields=[campaign(text label:Campaign Name); channel(select,required options:Email/Social/Paid Search/Organic Search/Direct/Event/Referral label:Channel); content(text label:Content/Asset); converted(boolean label:Converted); deal_id(text label:Related Deal)] views=[default_detail:detailMarketing Touch/sections=Touch(channel,campaign,content,converted);Attribution(deal_id); default_list:listtable/Marketing Touches/fields=campaign[text,sortable],channel[badge,sortable],converted[boolean,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
614
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
615
|
+
|
|
616
|
+
## item/marketing_touch — marketing_touch
|
|
617
|
+
|
|
618
|
+
- **Scope:** account
|
|
619
|
+
- **Fields:** 5 fields
|
|
620
|
+
- **Views:** default_list, default_detail
|
|
621
|
+
- **Record permissions:** 5 roles
|
|
622
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
623
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
624
|
+
|
|
625
|
+
<!-- CIL[END chunk_id="runtime-types_marketing_touch_1784485482"] -->
|
|
626
|
+
|
|
627
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_opportunity_queue_1784485482" type="runtime_type" identity="opportunity_queue" parent="none"] -->
|
|
628
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/opportunity_queue (opportunity_queue)"] -->
|
|
629
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/opportunity_queue"] -->
|
|
630
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
631
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/opportunity_queue" errors="none" side_effects="none"] -->
|
|
632
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/opportunity_queue" notable_decisions="[]"] -->
|
|
633
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
634
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
635
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
636
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
637
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
638
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
639
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
640
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
641
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/opportunity_queue requires."] -->
|
|
642
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/opportunity_queue" content="kind=item slug=opportunity_queue scope=system fields=[account_id(text label:Account ID); confidence(select options:Low/Medium/High label:Confidence); opportunity_type(select options:Advanced Portal/Implementation/Support Plan/Managed Services/Expansion/Advocate label:Opportunity Type); person_id(text label:Person ID); reviewer_notes(textarea label:Reviewer Notes); source_signal_id(text label:Source Signal); status(select options:Pending/Accepted/Rejected/Converted label:Status)] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
643
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
644
|
+
|
|
645
|
+
## item/opportunity_queue — opportunity_queue
|
|
646
|
+
|
|
647
|
+
- **Scope:** system
|
|
648
|
+
- **Fields:** 7 fields
|
|
649
|
+
- **Record permissions:** 5 roles
|
|
650
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
651
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
652
|
+
|
|
653
|
+
<!-- CIL[END chunk_id="runtime-types_opportunity_queue_1784485482"] -->
|
|
654
|
+
|
|
655
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_site_visit_1784485482" type="runtime_type" identity="site_visit" parent="none"] -->
|
|
656
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/site_visit (site_visit)"] -->
|
|
657
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/site_visit"] -->
|
|
658
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
659
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/site_visit" errors="none" side_effects="none"] -->
|
|
660
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/site_visit" notable_decisions="[]"] -->
|
|
661
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
662
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
663
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
664
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
665
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
666
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
667
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
668
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
669
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/site_visit requires."] -->
|
|
670
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/site_visit" content="kind=item slug=site_visit scope=account fields=[duration_seconds(number label:Duration (seconds)); referrer(text label:Referrer URL); source(text label:Traffic Source); url(text,required label:Page URL); utm_campaign(text label:UTM Campaign); utm_medium(text label:UTM Medium); utm_source(text label:UTM Source)] views=[default_detail:detailSite Visit/sections=Visit(url,duration_seconds,source);Attribution(utm_campaign,utm_medium,utm_source,referrer); default_list:listtable/Site Visits/fields=duration_seconds[number,sortable],source[badge,sortable],url[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
671
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
672
|
+
|
|
673
|
+
## item/site_visit — site_visit
|
|
674
|
+
|
|
675
|
+
- **Scope:** account
|
|
676
|
+
- **Fields:** 7 fields
|
|
677
|
+
- **Views:** default_list, default_detail
|
|
678
|
+
- **Record permissions:** 5 roles
|
|
679
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
680
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
681
|
+
|
|
682
|
+
<!-- CIL[END chunk_id="runtime-types_site_visit_1784485482"] -->
|
|
683
|
+
|
|
684
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_support_queue_1784485482" type="runtime_type" identity="support_queue" parent="none"] -->
|
|
685
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/support_queue (support_queue)"] -->
|
|
686
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/support_queue"] -->
|
|
687
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
688
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/support_queue" errors="none" side_effects="none"] -->
|
|
689
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/support_queue" notable_decisions="[]"] -->
|
|
690
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
691
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
692
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
693
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
694
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
695
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
696
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
697
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
698
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/support_queue requires."] -->
|
|
699
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/support_queue" content="kind=item slug=support_queue scope=account fields=[assigned_to(text label:Assignee); escalation_reason(select options:Low Confidence/Thumbs Down/Customer Request label:Escalation Reason); priority_score(number label:Priority Score); sla_deadline(datetime label:SLA Deadline); ticket_id(text label:Source Ticket)] views=[default_detail:detailQueue Entry/sections=Ticket(ticket_id,escalation_reason,priority_score);Assignment(assigned_to,sla_deadline); default_list:listtable/Queue Entries/fields=assigned_to[text,sortable],escalation_reason[badge,sortable],priority_score[number,sortable],sla_deadline[timestamp,sortable],ticket_id[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
700
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
701
|
+
|
|
702
|
+
## item/support_queue — support_queue
|
|
703
|
+
|
|
704
|
+
- **Scope:** account
|
|
705
|
+
- **Fields:** 5 fields
|
|
706
|
+
- **Views:** default_list, default_detail
|
|
707
|
+
- **Record permissions:** 5 roles
|
|
708
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
709
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
710
|
+
|
|
711
|
+
<!-- CIL[END chunk_id="runtime-types_support_queue_1784485482"] -->
|
|
712
|
+
|
|
713
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_support_ticket_1784485482" type="runtime_type" identity="support_ticket" parent="none"] -->
|
|
714
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/support_ticket (support_ticket)"] -->
|
|
715
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/support_ticket"] -->
|
|
716
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
717
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/support_ticket" errors="none" side_effects="none"] -->
|
|
718
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/support_ticket" notable_decisions="[]"] -->
|
|
719
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
720
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
721
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
722
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
723
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
724
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
725
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
726
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
727
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/support_ticket requires."] -->
|
|
728
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/support_ticket" content="kind=item slug=support_ticket scope=platform fields=[aim_resolved_by_ai(boolean default:false label:Resolved by AI); aim_retrieval_confidence(number label:AI Retrieval Confidence); assigned_agent_id(text label:Assigned Agent); bug_confirmed(boolean default:false label:Bug Confirmed); description(textarea,required label:Description); integrity_status(select options:Clean/Modified/Unknown label:Integrity Status); priority(select,required options:Low/Medium/High/Urgent label:Priority); status(select,required options:Open/AI Responding/Community Escalated/Human Assigned/Resolved/Closed label:Status); tier(select options:Core/Custom/Enterprise label:Support Tier); title(text,required label:Title)] views=[default_detail:detailSupport Ticket/sections=Request(title,description,status,priority);Assignment(assigned_agent_id,tier,integrity_status); default_list:listtable/Support Tickets/fields=priority[badge,sortable],status[badge,sortable],tier[badge,sortable],title[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
729
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
730
|
+
|
|
731
|
+
## item/support_ticket — support_ticket
|
|
732
|
+
|
|
733
|
+
- **Scope:** platform
|
|
734
|
+
- **Fields:** 10 fields
|
|
735
|
+
- **Views:** default_list, default_detail
|
|
736
|
+
- **Record permissions:** 5 roles
|
|
737
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
738
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
739
|
+
|
|
740
|
+
<!-- CIL[END chunk_id="runtime-types_support_ticket_1784485482"] -->
|
|
741
|
+
|
|
742
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_task_1784485482" type="runtime_type" identity="task" parent="none"] -->
|
|
743
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type item/task (task)"] -->
|
|
744
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for item/task"] -->
|
|
745
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
746
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for item/task" errors="none" side_effects="none"] -->
|
|
747
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for item/task" notable_decisions="[]"] -->
|
|
748
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
749
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
750
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
751
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
752
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
753
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
754
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
755
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
756
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions item/task requires."] -->
|
|
757
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:item/task" content="kind=item slug=task scope=account fields=[account_id(text label:Account); description(textarea label:Description); due_date(datetime label:Due Date); person_id(text label:Assigned To); priority(select,required options:Low/Medium/High/Critical default:medium label:Priority); task_type(select,required options:Follow-up/Review/Research/Demo/Meeting label:Task Type); title(text,required label:Title)] views=[default_detail:detailTask/sections=Details(title,task_type,priority,description);Assignment(due_date,account_id,person_id); default_list:listtable/Tasks/fields=due_date[date,sortable],priority[badge,sortable],task_type[badge,sortable],title[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
758
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
759
|
+
|
|
760
|
+
## item/task — task
|
|
761
|
+
|
|
762
|
+
- **Scope:** account
|
|
763
|
+
- **Fields:** 7 fields
|
|
764
|
+
- **Views:** default_list, default_detail
|
|
765
|
+
- **Record permissions:** 5 roles
|
|
766
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
767
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
768
|
+
|
|
769
|
+
<!-- CIL[END chunk_id="runtime-types_task_1784485482"] -->
|
|
770
|
+
|
|
771
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_link_1784485482" type="runtime_type" identity="link" parent="none"] -->
|
|
772
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type link/link (link)"] -->
|
|
773
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for link/link"] -->
|
|
774
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
775
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for link/link" errors="none" side_effects="none"] -->
|
|
776
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for link/link" notable_decisions="[]"] -->
|
|
777
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
778
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
779
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
780
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
781
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
782
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
783
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
784
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
785
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions link/link requires."] -->
|
|
786
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:link/link" content="kind=link slug=link scope=account fields=[created_at(datetime,system label:Created); link_type(text,system label:Link Type); source_id(uuid,required,system label:Source ID); source_type(text,required,system label:Source Type); target_id(uuid,required,system label:Target ID); target_type(text,required,system label:Target Type); updated_at(datetime,system label:Updated)] views=[default_detail:detailLink/sections=Connection(source_type,source_id,target_type,target_id,link_type);Metadata(created_at,updated_at); default_list:listtable/Links/fields=created_at[datetime,sortable],link_type[text,sortable],source_type[text,sortable],target_type[text,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
787
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
788
|
+
|
|
789
|
+
## link/link — link
|
|
790
|
+
|
|
791
|
+
- **Scope:** account
|
|
792
|
+
- **Fields:** 7 fields
|
|
793
|
+
- **Views:** default_list, default_detail
|
|
794
|
+
- **Record permissions:** 5 roles
|
|
795
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
796
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
797
|
+
|
|
798
|
+
<!-- CIL[END chunk_id="runtime-types_link_1784485482"] -->
|
|
799
|
+
|
|
800
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_community_reply_1784485482" type="runtime_type" identity="community_reply" parent="none"] -->
|
|
801
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type message/community_reply (community_reply)"] -->
|
|
802
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for message/community_reply"] -->
|
|
803
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
804
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for message/community_reply" errors="none" side_effects="none"] -->
|
|
805
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for message/community_reply" notable_decisions="[]"] -->
|
|
806
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
807
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
808
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
809
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
810
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
811
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
812
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
813
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
814
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions message/community_reply requires."] -->
|
|
815
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:message/community_reply" content="kind=message slug=community_reply scope=platform fields=[agent_id(text,system label:Agent ID); confidence(number,system label:AI Confidence); escalated(boolean,system label:Escalated); feedback(text,system label:Feedback); feedback_at(datetime,system label:Feedback At); message_type(text,system label:Message Type); prompt_config_id(text,system label:Prompt Config ID); retrieval_confidence(number,system label:Retrieval Confidence); retrieved_sources(json,system label:Retrieved Sources); sender_type(text,system label:Sender Type); suggested_title(text,system label:Suggested Title); tool_calls(json,system label:Tool Calls)] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
816
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
817
|
+
|
|
818
|
+
## message/community_reply — community_reply
|
|
819
|
+
|
|
820
|
+
- **Scope:** platform
|
|
821
|
+
- **Fields:** 12 fields
|
|
822
|
+
- **Record permissions:** 5 roles
|
|
823
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
824
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
825
|
+
|
|
826
|
+
<!-- CIL[END chunk_id="runtime-types_community_reply_1784485482"] -->
|
|
827
|
+
|
|
828
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_message_1784485482" type="runtime_type" identity="message" parent="none"] -->
|
|
829
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type message/message (message)"] -->
|
|
830
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for message/message"] -->
|
|
831
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
832
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for message/message" errors="none" side_effects="none"] -->
|
|
833
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for message/message" notable_decisions="[]"] -->
|
|
834
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
835
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
836
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
837
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
838
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
839
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
840
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
841
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
842
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions message/message requires."] -->
|
|
843
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:message/message" content="kind=message slug=message scope=account fields=[content(textarea,required,system label:Content); created_at(datetime,system label:Created); direction(text,required,system label:Direction); is_active(boolean,required,system label:Active); sequence(number,required,system label:Sequence); updated_at(datetime,system label:Updated); visibility(text,required,system label:Visibility)] views=[default_detail:detailMessage/sections=Content(content,direction,visibility);Metadata(sequence,created_at,updated_at); default_list:listtable/Messages/fields=content[text],created_at[datetime,sortable],direction[badge,sortable],visibility[badge,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
844
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
845
|
+
|
|
846
|
+
## message/message — message
|
|
847
|
+
|
|
848
|
+
- **Scope:** account
|
|
849
|
+
- **Fields:** 7 fields
|
|
850
|
+
- **Views:** default_list, default_detail
|
|
851
|
+
- **Record permissions:** 5 roles
|
|
852
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
853
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
854
|
+
|
|
855
|
+
<!-- CIL[END chunk_id="runtime-types_message_1784485482"] -->
|
|
856
|
+
|
|
857
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_support_reply_1784485482" type="runtime_type" identity="support_reply" parent="none"] -->
|
|
858
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type message/support_reply (support_reply)"] -->
|
|
859
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for message/support_reply"] -->
|
|
860
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
861
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for message/support_reply" errors="none" side_effects="none"] -->
|
|
862
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for message/support_reply" notable_decisions="[]"] -->
|
|
863
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
864
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
865
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
866
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
867
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
868
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
869
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
870
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
871
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions message/support_reply requires."] -->
|
|
872
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:message/support_reply" content="kind=message slug=support_reply scope=account fields=[agent_id(text,system label:Agent ID); confidence(number,system label:AI Confidence); escalated(boolean,system label:Escalated); feedback(text,system label:Feedback); feedback_at(datetime,system label:Feedback At); message_type(text,system label:Message Type); prompt_config_id(text,system label:Prompt Config ID); retrieval_confidence(number,system label:Retrieval Confidence); retrieved_sources(json,system label:Retrieved Sources); sender_type(text,system label:Sender Type); suggested_title(text,system label:Suggested Title); tool_calls(json,system label:Tool Calls)] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
873
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
874
|
+
|
|
875
|
+
## message/support_reply — support_reply
|
|
876
|
+
|
|
877
|
+
- **Scope:** account
|
|
878
|
+
- **Fields:** 12 fields
|
|
879
|
+
- **Record permissions:** 5 roles
|
|
880
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
881
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
882
|
+
|
|
883
|
+
<!-- CIL[END chunk_id="runtime-types_support_reply_1784485482"] -->
|
|
884
|
+
|
|
885
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_person_1784485482" type="runtime_type" identity="person" parent="none"] -->
|
|
886
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type person/person (person)"] -->
|
|
887
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for person/person"] -->
|
|
888
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
889
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for person/person" errors="none" side_effects="none"] -->
|
|
890
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for person/person" notable_decisions="[]"] -->
|
|
891
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
892
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
893
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
894
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
895
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
896
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
897
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
898
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
899
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions person/person requires."] -->
|
|
900
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:person/person" content="kind=person slug=person scope=account fields=[avatar_url(url,system label:Avatar URL); created_at(datetime,system label:Created); email(email,required,system label:Email); full_name(text,required,system label:Full Name); is_active(boolean,required,system label:Active); phone(phone,system label:Phone); status(text,required,system label:Status); updated_at(datetime,system label:Updated)] views=[default_detail:detailPerson/sections=Profile(full_name,email,phone,avatar_url);Status(status,is_active);Metadata(created_at,updated_at); default_list:listtable/People/fields=email[text,sortable],full_name[text,sortable],is_active[badge,sortable],status[badge,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/invites.ts creates people and .framework/functions/admin-data.ts create consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
901
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
902
|
+
|
|
903
|
+
## person/person — person
|
|
904
|
+
|
|
905
|
+
- **Scope:** account
|
|
906
|
+
- **Fields:** 8 fields
|
|
907
|
+
- **Views:** default_list, default_detail
|
|
908
|
+
- **Record permissions:** 5 roles
|
|
909
|
+
- **Stamped by:** .framework/functions/invites.ts creates people and .framework/functions/admin-data.ts create
|
|
910
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
911
|
+
|
|
912
|
+
<!-- CIL[END chunk_id="runtime-types_person_1784485482"] -->
|
|
913
|
+
|
|
914
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_community_thread_1784485482" type="runtime_type" identity="community_thread" parent="none"] -->
|
|
915
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type thread/community_thread (community_thread)"] -->
|
|
916
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for thread/community_thread"] -->
|
|
917
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
918
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for thread/community_thread" errors="none" side_effects="none"] -->
|
|
919
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for thread/community_thread" notable_decisions="[]"] -->
|
|
920
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
921
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
922
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
923
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
924
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
925
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
926
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
927
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
928
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions thread/community_thread requires."] -->
|
|
929
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:thread/community_thread" content="kind=thread slug=community_thread scope=platform record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
930
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
931
|
+
|
|
932
|
+
## thread/community_thread — community_thread
|
|
933
|
+
|
|
934
|
+
- **Scope:** platform
|
|
935
|
+
- **Record permissions:** 5 roles
|
|
936
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
937
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
938
|
+
|
|
939
|
+
<!-- CIL[END chunk_id="runtime-types_community_thread_1784485482"] -->
|
|
940
|
+
|
|
941
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_support_thread_1784485482" type="runtime_type" identity="support_thread" parent="none"] -->
|
|
942
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type thread/support_thread (support_thread)"] -->
|
|
943
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for thread/support_thread"] -->
|
|
944
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
945
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for thread/support_thread" errors="none" side_effects="none"] -->
|
|
946
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for thread/support_thread" notable_decisions="[]"] -->
|
|
947
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
948
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
949
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
950
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
951
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
952
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
953
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
954
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
955
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions thread/support_thread requires."] -->
|
|
956
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:thread/support_thread" content="kind=thread slug=support_thread scope=account record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
957
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="validation_schema is generated from design_schema.fields by .framework/functions/_shared/schema-utils.ts; do not edit validation_schema directly"] -->
|
|
958
|
+
|
|
959
|
+
## thread/support_thread — support_thread
|
|
960
|
+
|
|
961
|
+
- **Scope:** account
|
|
962
|
+
- **Record permissions:** 5 roles
|
|
963
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
964
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
965
|
+
|
|
966
|
+
<!-- CIL[END chunk_id="runtime-types_support_thread_1784485482"] -->
|
|
967
|
+
|
|
968
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_thread_1784485482" type="runtime_type" identity="thread" parent="none"] -->
|
|
969
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type thread/thread (thread)"] -->
|
|
970
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for thread/thread"] -->
|
|
971
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
972
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for thread/thread" errors="none" side_effects="none"] -->
|
|
973
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for thread/thread" notable_decisions="[]"] -->
|
|
974
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
975
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
976
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
977
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
978
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
979
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
980
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
981
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
982
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions thread/thread requires."] -->
|
|
983
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:thread/thread" content="kind=thread slug=thread scope=account fields=[created_at(datetime,system label:Created); is_active(boolean,required,system label:Active); status(text,required,system label:Status); target_id(uuid,required,system label:Target ID); target_type(text,required,system label:Target Type); title(text,system label:Title); updated_at(datetime,system label:Updated); visibility(text,required,system label:Visibility)] views=[default_detail:detailThread/sections=Overview(title,target_type,target_id,visibility,status);Metadata(created_at,updated_at); default_list:listtable/Threads/fields=status[badge,sortable],target_type[text,sortable],title[text,sortable],visibility[badge,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
984
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
985
|
+
|
|
986
|
+
## thread/thread — thread
|
|
987
|
+
|
|
988
|
+
- **Scope:** account
|
|
989
|
+
- **Fields:** 8 fields
|
|
990
|
+
- **Views:** default_list, default_detail
|
|
991
|
+
- **Record permissions:** 5 roles
|
|
992
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
993
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
994
|
+
|
|
995
|
+
<!-- CIL[END chunk_id="runtime-types_thread_1784485482"] -->
|
|
996
|
+
|
|
997
|
+
<!-- CIL[BEGIN chunk_id="runtime-types_watcher_1784485482" type="runtime_type" identity="watcher" parent="none"] -->
|
|
998
|
+
<!-- CIL[DOC-MACRO purpose="Design schema contract for runtime type watcher/watcher (watcher)"] -->
|
|
999
|
+
<!-- CIL[DOC-RESPONSIBILITY responsibility="Describe the exact design_schema fields, views, permissions, and special keys required for watcher/watcher"] -->
|
|
1000
|
+
<!-- CIL[DOC-CONTEXT module="runtime-types" layer="documentation" related_files=".framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts"] -->
|
|
1001
|
+
<!-- CIL[DOC-CONTRACT inputs="none" outputs="design_schema contract summary for watcher/watcher" errors="none" side_effects="none"] -->
|
|
1002
|
+
<!-- CIL[DOC-MICRO logic_summary="Generated from the live types row; includes scope, fields, views, record_permissions, stamper code, and consumer code for watcher/watcher" notable_decisions="[]"] -->
|
|
1003
|
+
<!-- CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"] -->
|
|
1004
|
+
<!-- CIL[DOC-STABILITY stability="stable"] -->
|
|
1005
|
+
<!-- CIL[DOC-AUDIENCE audience="developer"] -->
|
|
1006
|
+
<!-- CIL[DOC-VECTOR type="context" content="Layer: documentation. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/admin-data.ts, .framework/functions/_shared/permissions.ts, .framework/src/components/app-shell/GenericDetailPage.tsx, .framework/src/components/app-shell/GenericListPage.tsx, .framework/src/components/shared/FieldRenderer.tsx, .framework/src/hooks/useEntityRecord.ts, .framework/src/hooks/useListSchema.ts, .framework/src/hooks/useSchemaRecord.ts, .framework/functions/item-progress.ts, .framework/functions/embeddings.ts, .framework/functions/_shared/agent-runner.ts, .framework/functions/types.ts, .framework/functions/_shared/schema-utils.ts."] -->
|
|
1007
|
+
<!-- CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."] -->
|
|
1008
|
+
<!-- CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."] -->
|
|
1009
|
+
<!-- CIL[DOC-VECTOR type="constraint" content="Derived from the types table in Supabase project jyanuujwuuxhklpusssy."] -->
|
|
1010
|
+
<!-- CIL[DOC-VECTOR type="implementation_pattern" content="Runtime type contract documentation."] -->
|
|
1011
|
+
<!-- CIL[DOC-VECTOR type="user_journey" content="Helps answer what fields, views, and permissions watcher/watcher requires."] -->
|
|
1012
|
+
<!-- CIL[DOC-LEARNING topic="runtime-type:watcher/watcher" content="kind=watcher slug=watcher scope=account fields=[created_at(datetime,system label:Created); notification_level(text,required,system label:Notification Level); person_id(uuid,required,system label:Person); target_id(uuid,required,system label:Target ID); target_type(text,required,system label:Target Type); updated_at(datetime,system label:Updated); watch_type(text,required,system label:Watch Type)] views=[default_detail:detailWatcher/sections=Target(target_type,target_id);Settings(person_id,watch_type,notification_level);Metadata(created_at,updated_at); default_list:listtable/Watchers/fields=created_at[datetime,sortable],notification_level[badge,sortable],target_type[text,sortable],watch_type[badge,sortable]] record_permissions=[member:create/read/update; member_admin:create/read/update; support:create/read/update; support_admin:create/read/update; system_admin:create/read/update/delete] stamped_by=.framework/functions/admin-data.ts create via resolveTypeRecord consumed_by=.framework/functions/_shared/permissions.ts (record_permissions, field.permissions),.framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail),.framework/src/components/app-shell/GenericListPage.tsx (views.default_list),.framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type),.framework/src/hooks/useEntityRecord.ts (fields.system split),.framework/src/hooks/useListSchema.ts (schema fallback)"] -->
|
|
1013
|
+
<!-- CIL[DOC-NOTE type="design_schema_caveat" content="fields marked system=true are stored on the record row; non-system fields live in record.data"] -->
|
|
1014
|
+
|
|
1015
|
+
## watcher/watcher — watcher
|
|
1016
|
+
|
|
1017
|
+
- **Scope:** account
|
|
1018
|
+
- **Fields:** 7 fields
|
|
1019
|
+
- **Views:** default_list, default_detail
|
|
1020
|
+
- **Record permissions:** 5 roles
|
|
1021
|
+
- **Stamped by:** .framework/functions/admin-data.ts create via resolveTypeRecord
|
|
1022
|
+
- **Consumed by:** .framework/functions/_shared/permissions.ts (record_permissions, field.permissions), .framework/src/components/app-shell/GenericDetailPage.tsx (views.default_detail), .framework/src/components/app-shell/GenericListPage.tsx (views.default_list), .framework/src/components/shared/FieldRenderer.tsx (fields.data_type/display_type), .framework/src/hooks/useEntityRecord.ts (fields.system split), .framework/src/hooks/useListSchema.ts (schema fallback)
|
|
1023
|
+
|
|
1024
|
+
<!-- CIL[END chunk_id="runtime-types_watcher_1784485482"] -->
|