spine-framework 0.2.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +213 -8
- package/README.md +327 -0
- package/package.json +107 -217
- package/src/cli/commands/init.ts +192 -0
- package/src/cli/commands/install.ts +25 -0
- package/src/cli/commands/list.ts +33 -0
- package/src/cli/commands/migrate.ts +24 -0
- package/src/cli/index.ts +46 -0
- package/src/components/AppLayout.tsx +21 -0
- package/src/components/AuthGuard.tsx +21 -0
- package/src/components/RoleGuard.tsx +23 -0
- package/src/components/index.ts +3 -0
- package/src/contexts/AppContext.tsx +122 -0
- package/src/contexts/AuthContext.tsx +87 -0
- package/src/contexts/SpineContext.tsx +46 -0
- package/src/contexts/index.ts +3 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useItems.ts +78 -0
- package/src/hooks/useThreads.ts +73 -0
- package/src/hooks/useWebSocket.ts +97 -0
- package/src/index.ts +22 -0
- package/src/types/index.ts +163 -0
- package/src/utils/api.ts +88 -0
- package/src/utils/client.ts +146 -0
- package/src/utils/config.ts +20 -0
- package/src/utils/index.ts +3 -0
- package/.framework/README.md +0 -129
- package/.framework/cli/bin.cjs +0 -14
- package/.framework/cli/commands/agents.ts +0 -153
- package/.framework/cli/commands/auth.ts +0 -94
- package/.framework/cli/commands/create-app.ts +0 -185
- package/.framework/cli/commands/dev.ts +0 -113
- package/.framework/cli/commands/doctor.ts +0 -442
- package/.framework/cli/commands/generate.ts +0 -332
- package/.framework/cli/commands/init.ts +0 -186
- package/.framework/cli/commands/install-app.ts +0 -565
- package/.framework/cli/commands/items.ts +0 -253
- package/.framework/cli/commands/migrate.ts +0 -139
- package/.framework/cli/commands/migrations.ts +0 -141
- package/.framework/cli/commands/pipelines.ts +0 -166
- package/.framework/cli/commands/status.ts +0 -197
- package/.framework/cli/commands/system.ts +0 -184
- package/.framework/cli/commands/test.ts +0 -227
- package/.framework/cli/commands/uninstall-app.ts +0 -166
- package/.framework/cli/context.ts +0 -268
- package/.framework/cli/env-loader.ts +0 -36
- package/.framework/cli/index.ts +0 -116
- package/.framework/cli/welcome.cjs +0 -45
- package/.framework/docs/API.md +0 -384
- package/.framework/docs/STABILITY.md +0 -52
- package/.framework/docs/admin-routes.md +0 -76
- package/.framework/docs/api-docs-progress.md +0 -38
- package/.framework/docs/api-governance.md +0 -146
- package/.framework/docs/api-testing-results.md +0 -212
- package/.framework/docs/apis/admin-configs.md +0 -567
- package/.framework/docs/apis/admin-data.md +0 -272
- package/.framework/docs/apis/index.md +0 -231
- package/.framework/docs/apis/internal.md +0 -295
- package/.framework/docs/apis/runtime.md +0 -537
- package/.framework/docs/assembly-launch-guide.md +0 -138
- package/.framework/docs/audit-results.md +0 -590
- package/.framework/docs/authorization-model.md +0 -170
- package/.framework/docs/db-api-inventory.md +0 -95
- package/.framework/docs/examples/custom-app/README.md +0 -77
- package/.framework/docs/examples/custom-function/README.md +0 -27
- package/.framework/docs/examples/custom-function/handler.ts +0 -48
- package/.framework/docs/examples/custom-webhook/README.md +0 -68
- package/.framework/docs/gap-remediation-backlog.md +0 -103
- package/.framework/docs/guides/cli-guide.md +0 -224
- package/.framework/docs/guides/getting-started.md +0 -103
- package/.framework/docs/guides/import-guide.md +0 -193
- package/.framework/docs/guides/testing-guide.md +0 -229
- package/.framework/docs/permission-examples.md +0 -326
- package/.framework/docs/ui-adoption-verification.md +0 -111
- package/.framework/docs/ui-api-coverage.md +0 -84
- package/.framework/docs/v2-compatibility-audit.md +0 -228
- package/.framework/functions/.gitkeep +0 -1
- package/.framework/functions/_shared/agent-runner.ts +0 -1097
- package/.framework/functions/_shared/app-manifest.ts +0 -184
- package/.framework/functions/_shared/audit.ts +0 -150
- package/.framework/functions/_shared/db.ts +0 -178
- package/.framework/functions/_shared/index.ts +0 -391
- package/.framework/functions/_shared/middleware.ts +0 -490
- package/.framework/functions/_shared/permissions.ts +0 -1325
- package/.framework/functions/_shared/pipeline-runner.ts +0 -731
- package/.framework/functions/_shared/principal.ts +0 -818
- package/.framework/functions/_shared/resolve-ids.ts +0 -106
- package/.framework/functions/_shared/schema-utils.ts +0 -967
- package/.framework/functions/_shared/testing.ts +0 -258
- package/.framework/functions/_shared/trigger-engine.ts +0 -425
- package/.framework/functions/_shared/webhook-registration.ts +0 -168
- package/.framework/functions/_shared/webhook-registry.ts +0 -129
- package/.framework/functions/account-nodes.ts +0 -111
- package/.framework/functions/admin-data.ts +0 -606
- package/.framework/functions/ai-agents.ts +0 -323
- package/.framework/functions/api-keys.ts +0 -376
- package/.framework/functions/apps.ts +0 -483
- package/.framework/functions/auth.ts +0 -196
- package/.framework/functions/debug-auth.ts +0 -107
- package/.framework/functions/embeddings.ts +0 -556
- package/.framework/functions/integration-routes.ts +0 -523
- package/.framework/functions/integrations.ts +0 -319
- package/.framework/functions/item-progress.ts +0 -272
- package/.framework/functions/logs.ts +0 -438
- package/.framework/functions/observability.ts +0 -275
- package/.framework/functions/pipeline-executions.ts +0 -494
- package/.framework/functions/pipelines.ts +0 -485
- package/.framework/functions/prompt-configs.ts +0 -339
- package/.framework/functions/roles.ts +0 -387
- package/.framework/functions/system-cron.ts +0 -742
- package/.framework/functions/system.ts +0 -323
- package/.framework/functions/tests.ts +0 -119
- package/.framework/functions/timers.ts +0 -357
- package/.framework/functions/triggers.ts +0 -563
- package/.framework/functions/types.ts +0 -604
- package/.framework/index.html +0 -16
- package/.framework/migrations/000_foundation.sql +0 -1266
- package/.framework/migrations/001_seed.sql +0 -163
- package/.framework/migrations/002_seed_constraints.sql +0 -19
- package/.framework/migrations/003_auth_user_trigger.sql +0 -67
- package/.framework/src/App.tsx +0 -133
- package/.framework/src/apps/admin/index.tsx +0 -173
- package/.framework/src/components/AppWrapper.tsx +0 -56
- package/.framework/src/components/CustomAppLoader.tsx +0 -116
- package/.framework/src/components/admin/AdminListPage.tsx +0 -151
- package/.framework/src/components/admin/AdminSidebar.tsx +0 -166
- package/.framework/src/components/admin/AdminStatsCard.tsx +0 -62
- package/.framework/src/components/admin/SortableTableHeader.tsx +0 -42
- package/.framework/src/components/app-shell/GenericAppShell.tsx +0 -181
- package/.framework/src/components/app-shell/GenericDetailPage.tsx +0 -200
- package/.framework/src/components/app-shell/GenericListPage.tsx +0 -116
- package/.framework/src/components/app-sidebar.tsx +0 -228
- package/.framework/src/components/auth/ProtectedRoute.tsx +0 -88
- package/.framework/src/components/layout/AppShell.tsx +0 -91
- package/.framework/src/components/layout/Header.tsx +0 -88
- package/.framework/src/components/layout/Layout.tsx +0 -95
- package/.framework/src/components/layout/Sidebar.tsx +0 -329
- package/.framework/src/components/runtime/DataDetailHeader.tsx +0 -77
- package/.framework/src/components/runtime/DataDetailPage.tsx +0 -171
- package/.framework/src/components/runtime/DataFilters.tsx +0 -91
- package/.framework/src/components/runtime/DataHeader.tsx +0 -68
- package/.framework/src/components/runtime/DataListPage.tsx +0 -124
- package/.framework/src/components/runtime/DataStats.tsx +0 -70
- package/.framework/src/components/runtime/DataTable.tsx +0 -174
- package/.framework/src/components/runtime/SchemaDetailForm.tsx +0 -134
- package/.framework/src/components/runtime/index.ts +0 -18
- package/.framework/src/components/search-form.tsx +0 -29
- package/.framework/src/components/shared/AgentView.tsx +0 -213
- package/.framework/src/components/shared/FieldRenderer.tsx +0 -478
- package/.framework/src/components/shared/SchemaFields.tsx +0 -226
- package/.framework/src/components/ui/DataTable.tsx +0 -343
- package/.framework/src/components/ui/Form.tsx +0 -281
- package/.framework/src/components/ui/ItemCard.tsx +0 -296
- package/.framework/src/components/ui/ItemListView.tsx +0 -308
- package/.framework/src/components/ui/LoadingSpinner.tsx +0 -52
- package/.framework/src/components/ui/Modal.tsx +0 -61
- package/.framework/src/components/ui/RichTextEditor.tsx +0 -210
- package/.framework/src/components/ui/accordion.tsx +0 -82
- package/.framework/src/components/ui/alert-dialog.tsx +0 -197
- package/.framework/src/components/ui/alert.tsx +0 -76
- package/.framework/src/components/ui/aspect-ratio.tsx +0 -11
- package/.framework/src/components/ui/avatar.tsx +0 -110
- package/.framework/src/components/ui/badge.tsx +0 -49
- package/.framework/src/components/ui/breadcrumb.tsx +0 -122
- package/.framework/src/components/ui/button-group.tsx +0 -83
- package/.framework/src/components/ui/button.tsx +0 -65
- package/.framework/src/components/ui/calendar.tsx +0 -222
- package/.framework/src/components/ui/card.tsx +0 -100
- package/.framework/src/components/ui/carousel.tsx +0 -240
- package/.framework/src/components/ui/chart.tsx +0 -368
- package/.framework/src/components/ui/checkbox.tsx +0 -31
- package/.framework/src/components/ui/collapsible.tsx +0 -33
- package/.framework/src/components/ui/combobox.tsx +0 -299
- package/.framework/src/components/ui/command.tsx +0 -193
- package/.framework/src/components/ui/context-menu.tsx +0 -261
- package/.framework/src/components/ui/dialog.tsx +0 -165
- package/.framework/src/components/ui/direction.tsx +0 -6
- package/.framework/src/components/ui/drawer.tsx +0 -132
- package/.framework/src/components/ui/dropdown-menu.tsx +0 -269
- package/.framework/src/components/ui/empty.tsx +0 -104
- package/.framework/src/components/ui/field.tsx +0 -238
- package/.framework/src/components/ui/hover-card.tsx +0 -42
- package/.framework/src/components/ui/input-group.tsx +0 -153
- package/.framework/src/components/ui/input-otp.tsx +0 -87
- package/.framework/src/components/ui/input.tsx +0 -19
- package/.framework/src/components/ui/item.tsx +0 -196
- package/.framework/src/components/ui/kbd.tsx +0 -26
- package/.framework/src/components/ui/label.tsx +0 -22
- package/.framework/src/components/ui/menubar.tsx +0 -277
- package/.framework/src/components/ui/native-select.tsx +0 -61
- package/.framework/src/components/ui/navigation-menu.tsx +0 -164
- package/.framework/src/components/ui/pagination.tsx +0 -129
- package/.framework/src/components/ui/popover.tsx +0 -87
- package/.framework/src/components/ui/progress.tsx +0 -31
- package/.framework/src/components/ui/radio-group.tsx +0 -42
- package/.framework/src/components/ui/resizable.tsx +0 -50
- package/.framework/src/components/ui/scroll-area.tsx +0 -53
- package/.framework/src/components/ui/select.tsx +0 -195
- package/.framework/src/components/ui/separator.tsx +0 -26
- package/.framework/src/components/ui/sheet.tsx +0 -145
- package/.framework/src/components/ui/sidebar.tsx +0 -706
- package/.framework/src/components/ui/skeleton.tsx +0 -13
- package/.framework/src/components/ui/slider.tsx +0 -59
- package/.framework/src/components/ui/sonner.tsx +0 -47
- package/.framework/src/components/ui/spinner.tsx +0 -10
- package/.framework/src/components/ui/switch.tsx +0 -33
- package/.framework/src/components/ui/table-primitives.tsx +0 -141
- package/.framework/src/components/ui/table.tsx +0 -114
- package/.framework/src/components/ui/tabs.tsx +0 -90
- package/.framework/src/components/ui/textarea.tsx +0 -18
- package/.framework/src/components/ui/toggle-group.tsx +0 -89
- package/.framework/src/components/ui/toggle.tsx +0 -45
- package/.framework/src/components/ui/tooltip.tsx +0 -57
- package/.framework/src/contexts/AppContext.tsx +0 -133
- package/.framework/src/contexts/AuthContext.tsx +0 -371
- package/.framework/src/hooks/use-mobile.ts +0 -19
- package/.framework/src/hooks/useApi.ts +0 -526
- package/.framework/src/hooks/useApps.ts +0 -114
- package/.framework/src/hooks/useEntityList.ts +0 -190
- package/.framework/src/hooks/useEntityRecord.ts +0 -308
- package/.framework/src/hooks/useForm.ts +0 -307
- package/.framework/src/hooks/useListSchema.ts +0 -264
- package/.framework/src/hooks/useSchemaRecord.ts +0 -223
- package/.framework/src/index.css +0 -128
- package/.framework/src/lib/api.ts +0 -156
- package/.framework/src/lib/supabase.ts +0 -94
- package/.framework/src/lib/utils.ts +0 -317
- package/.framework/src/main.tsx +0 -27
- package/.framework/src/pages/DashboardPage.tsx +0 -181
- package/.framework/src/pages/NotFoundPage.tsx +0 -39
- package/.framework/src/pages/admin/AIAgentDetailPage.tsx +0 -161
- package/.framework/src/pages/admin/AIAgentsPage.tsx +0 -318
- package/.framework/src/pages/admin/APIKeyDetailPage.tsx +0 -199
- package/.framework/src/pages/admin/APIKeysPage.tsx +0 -303
- package/.framework/src/pages/admin/AlertsConfigPage.tsx +0 -523
- package/.framework/src/pages/admin/AppDetailPage.tsx +0 -493
- package/.framework/src/pages/admin/AppsPage.tsx +0 -355
- package/.framework/src/pages/admin/DesignedPage.tsx +0 -491
- package/.framework/src/pages/admin/EmbeddingDetailPage.tsx +0 -534
- package/.framework/src/pages/admin/EmbeddingsPage.tsx +0 -424
- package/.framework/src/pages/admin/ExtendedShadcnTestPage.tsx +0 -176
- package/.framework/src/pages/admin/IncrementalShadcnTestPage.tsx +0 -109
- package/.framework/src/pages/admin/IntegratedDashboard.tsx +0 -402
- package/.framework/src/pages/admin/IntegrationDetailPage.tsx +0 -187
- package/.framework/src/pages/admin/IntegrationsPage.tsx +0 -301
- package/.framework/src/pages/admin/LogsPage.tsx +0 -283
- package/.framework/src/pages/admin/MinimalShadcnTestPage.tsx +0 -85
- package/.framework/src/pages/admin/ObservabilityDashboard.tsx +0 -470
- package/.framework/src/pages/admin/PipelineDetailPage.tsx +0 -183
- package/.framework/src/pages/admin/PipelineExecutionsPage.tsx +0 -279
- package/.framework/src/pages/admin/PipelinesPage.tsx +0 -390
- package/.framework/src/pages/admin/PromptConfigDetailPage.tsx +0 -299
- package/.framework/src/pages/admin/PromptConfigsPage.tsx +0 -292
- package/.framework/src/pages/admin/ProperlyDesignedPage.tsx +0 -434
- package/.framework/src/pages/admin/RoleDetailPage.tsx +0 -273
- package/.framework/src/pages/admin/RolesPage.tsx +0 -292
- package/.framework/src/pages/admin/SelectTestPage.tsx +0 -61
- package/.framework/src/pages/admin/ShadcnTestPage.tsx +0 -588
- package/.framework/src/pages/admin/SimpleDashboard.tsx +0 -387
- package/.framework/src/pages/admin/TestRunDetailPage.tsx +0 -172
- package/.framework/src/pages/admin/TestingDashboard.tsx +0 -257
- package/.framework/src/pages/admin/TimerDetailPage.tsx +0 -151
- package/.framework/src/pages/admin/TimersPage.tsx +0 -376
- package/.framework/src/pages/admin/TriggerDetailPage.tsx +0 -149
- package/.framework/src/pages/admin/TriggersPage.tsx +0 -381
- package/.framework/src/pages/admin/TypeDetailPage.tsx +0 -694
- package/.framework/src/pages/admin/TypesPage.tsx +0 -295
- package/.framework/src/pages/auth/LoginPage.tsx +0 -187
- package/.framework/src/pages/auth/RegisterPage.tsx +0 -163
- package/.framework/src/pages/spine-framework/APIPage.tsx +0 -17
- package/.framework/src/pages/spine-framework/CLIPage.tsx +0 -25
- package/.framework/src/types/auth.ts +0 -125
- package/.framework/src/types/types.ts +0 -407
- package/STRUCTURE.md +0 -150
- package/bin/spine-framework.cjs +0 -62
- package/bin/welcome.cjs +0 -45
- package/bin/ws-shim.cjs +0 -8
- package/bin/ws-shim.ts +0 -10
- package/config/components.json +0 -25
- package/config/deno.lock +0 -108
- package/config/package-lock.json +0 -17183
- package/config/postcss.config.cjs +0 -10
- package/config/tailwind.config.cjs +0 -78
- package/config/tsconfig.build.json +0 -32
- package/config/tsconfig.cli.json +0 -18
- package/config/tsconfig.json +0 -41
- package/config/tsconfig.node.json +0 -17
- package/config/tsconfig.node.tsbuildinfo +0 -1
- package/config/tsconfig.tsbuildinfo +0 -1
- package/config/typedoc.json +0 -16
- package/config/vite.config.d.ts +0 -2
- package/config/vite.config.ts +0 -71
- package/dist/cli/commands/agents.d.ts +0 -39
- package/dist/cli/commands/agents.d.ts.map +0 -1
- package/dist/cli/commands/auth.d.ts +0 -36
- package/dist/cli/commands/auth.d.ts.map +0 -1
- package/dist/cli/commands/create-app.d.ts +0 -23
- package/dist/cli/commands/create-app.d.ts.map +0 -1
- package/dist/cli/commands/dev.d.ts +0 -24
- package/dist/cli/commands/dev.d.ts.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -42
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/generate.d.ts +0 -36
- package/dist/cli/commands/generate.d.ts.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -20
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/install-app.d.ts +0 -30
- package/dist/cli/commands/install-app.d.ts.map +0 -1
- package/dist/cli/commands/items.d.ts +0 -45
- package/dist/cli/commands/items.d.ts.map +0 -1
- package/dist/cli/commands/migrate.d.ts +0 -21
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrations.d.ts +0 -41
- package/dist/cli/commands/migrations.d.ts.map +0 -1
- package/dist/cli/commands/pipelines.d.ts +0 -40
- package/dist/cli/commands/pipelines.d.ts.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -23
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/system.d.ts +0 -29
- package/dist/cli/commands/system.d.ts.map +0 -1
- package/dist/cli/commands/test.d.ts +0 -46
- package/dist/cli/commands/test.d.ts.map +0 -1
- package/dist/cli/commands/uninstall-app.d.ts +0 -23
- package/dist/cli/commands/uninstall-app.d.ts.map +0 -1
- package/dist/cli/context.d.ts +0 -88
- package/dist/cli/context.d.ts.map +0 -1
- package/dist/cli/env-loader.d.ts +0 -14
- package/dist/cli/env-loader.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -41
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/functions/_shared/agent-runner.d.ts +0 -156
- package/dist/functions/_shared/agent-runner.d.ts.map +0 -1
- package/dist/functions/_shared/app-manifest.d.ts +0 -68
- package/dist/functions/_shared/app-manifest.d.ts.map +0 -1
- package/dist/functions/_shared/audit.d.ts +0 -91
- package/dist/functions/_shared/audit.d.ts.map +0 -1
- package/dist/functions/_shared/db.d.ts +0 -125
- package/dist/functions/_shared/db.d.ts.map +0 -1
- package/dist/functions/_shared/index.d.ts +0 -299
- package/dist/functions/_shared/index.d.ts.map +0 -1
- package/dist/functions/_shared/middleware.d.ts +0 -315
- package/dist/functions/_shared/middleware.d.ts.map +0 -1
- package/dist/functions/_shared/permissions.d.ts +0 -626
- package/dist/functions/_shared/permissions.d.ts.map +0 -1
- package/dist/functions/_shared/pipeline-runner.d.ts +0 -124
- package/dist/functions/_shared/pipeline-runner.d.ts.map +0 -1
- package/dist/functions/_shared/principal.d.ts +0 -284
- package/dist/functions/_shared/principal.d.ts.map +0 -1
- package/dist/functions/_shared/resolve-ids.d.ts +0 -10
- package/dist/functions/_shared/resolve-ids.d.ts.map +0 -1
- package/dist/functions/_shared/schema-utils.d.ts +0 -181
- package/dist/functions/_shared/schema-utils.d.ts.map +0 -1
- package/dist/functions/_shared/testing.d.ts +0 -172
- package/dist/functions/_shared/testing.d.ts.map +0 -1
- package/dist/functions/_shared/trigger-engine.d.ts +0 -140
- package/dist/functions/_shared/trigger-engine.d.ts.map +0 -1
- package/dist/functions/_shared/webhook-registration.d.ts +0 -81
- package/dist/functions/_shared/webhook-registration.d.ts.map +0 -1
- package/dist/functions/_shared/webhook-registry.d.ts +0 -57
- package/dist/functions/_shared/webhook-registry.d.ts.map +0 -1
- package/dist/functions/account-nodes.d.ts +0 -48
- package/dist/functions/account-nodes.d.ts.map +0 -1
- package/dist/functions/admin-data.d.ts +0 -178
- package/dist/functions/admin-data.d.ts.map +0 -1
- package/dist/functions/ai-agents.d.ts +0 -125
- package/dist/functions/ai-agents.d.ts.map +0 -1
- package/dist/functions/api-keys.d.ts +0 -140
- package/dist/functions/api-keys.d.ts.map +0 -1
- package/dist/functions/apps.d.ts +0 -163
- package/dist/functions/apps.d.ts.map +0 -1
- package/dist/functions/auth.d.ts +0 -74
- package/dist/functions/auth.d.ts.map +0 -1
- package/dist/functions/debug-auth.d.ts +0 -33
- package/dist/functions/debug-auth.d.ts.map +0 -1
- package/dist/functions/embeddings.d.ts +0 -205
- package/dist/functions/embeddings.d.ts.map +0 -1
- package/dist/functions/integration-routes.d.ts +0 -45
- package/dist/functions/integration-routes.d.ts.map +0 -1
- package/dist/functions/integrations.d.ts +0 -124
- package/dist/functions/integrations.d.ts.map +0 -1
- package/dist/functions/item-progress.d.ts +0 -41
- package/dist/functions/item-progress.d.ts.map +0 -1
- package/dist/functions/logs.d.ts +0 -162
- package/dist/functions/logs.d.ts.map +0 -1
- package/dist/functions/observability.d.ts +0 -123
- package/dist/functions/observability.d.ts.map +0 -1
- package/dist/functions/pipeline-executions.d.ts +0 -190
- package/dist/functions/pipeline-executions.d.ts.map +0 -1
- package/dist/functions/pipelines.d.ts +0 -171
- package/dist/functions/pipelines.d.ts.map +0 -1
- package/dist/functions/prompt-configs.d.ts +0 -125
- package/dist/functions/prompt-configs.d.ts.map +0 -1
- package/dist/functions/roles.d.ts +0 -118
- package/dist/functions/roles.d.ts.map +0 -1
- package/dist/functions/system-cron.d.ts +0 -65
- package/dist/functions/system-cron.d.ts.map +0 -1
- package/dist/functions/system.d.ts +0 -29
- package/dist/functions/system.d.ts.map +0 -1
- package/dist/functions/tests.d.ts +0 -28
- package/dist/functions/tests.d.ts.map +0 -1
- package/dist/functions/timers.d.ts +0 -139
- package/dist/functions/timers.d.ts.map +0 -1
- package/dist/functions/triggers.d.ts +0 -203
- package/dist/functions/triggers.d.ts.map +0 -1
- package/dist/functions/types.d.ts +0 -151
- package/dist/functions/types.d.ts.map +0 -1
- package/dist/src/types/types.d.ts +0 -364
- package/dist/src/types/types.d.ts.map +0 -1
- package/index.html +0 -13
- package/netlify.toml +0 -36
- package/package-project.json +0 -71
- package/scripts/app-install-cli.ts +0 -286
- package/scripts/assemble-frontend.sh +0 -76
- package/scripts/assemble-functions.sh +0 -62
- package/scripts/assemble.sh +0 -41
- package/scripts/boundary-check.sh +0 -106
- package/scripts/build-manifest.sh +0 -80
- package/scripts/check-core-integrity.sh +0 -82
- package/scripts/ingest-chunks.cjs +0 -202
- package/scripts/kb-chunk-parser.cjs +0 -312
- package/scripts/kb-chunk-parser.ts +0 -330
- package/scripts/load-test-app-install.ts +0 -484
- package/scripts/netlify-dev-wrapper.sh +0 -22
- package/scripts/verify-integrity.sh +0 -69
- package/vitest.config.ts +0 -45
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module src/types/types
|
|
3
|
-
* @audience installer
|
|
4
|
-
* @layer frontend-hook
|
|
5
|
-
* @stability stable
|
|
6
|
-
*
|
|
7
|
-
* Core TypeScript type definitions for the Spine frontend. These types
|
|
8
|
-
* mirror the `design_schema` and API response shapes used across hooks,
|
|
9
|
-
* components, and pages.
|
|
10
|
-
*
|
|
11
|
-
* **Type hierarchy:**
|
|
12
|
-
* ```
|
|
13
|
-
* DesignSchema
|
|
14
|
-
* ├── fields: Record<string, FieldDefinition>
|
|
15
|
-
* ├── views: Record<string, View> ← ListView | DetailView
|
|
16
|
-
* ├── record_permissions
|
|
17
|
-
* └── functionality?: FunctionalityBindings
|
|
18
|
-
* ItemType ← row in v2.types table
|
|
19
|
-
* Item ← row in v2.items table
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* **`system` flag on `FieldDefinition`:** When `system: true`, the field
|
|
23
|
-
* maps to a real DB column (e.g. `title`, `status`). When absent or false,
|
|
24
|
-
* the field value lives in the `data` JSONB column.
|
|
25
|
-
*
|
|
26
|
-
* @seeAlso src/hooks/useSchemaRecord.ts (consumes FieldDefinition[])
|
|
27
|
-
* @seeAlso src/hooks/useForm.ts (consumes FieldDefinition[] for validation)
|
|
28
|
-
* @seeAlso src/hooks/useListSchema.ts (consumes DesignSchema + View)
|
|
29
|
-
* @seeAlso functions/_shared/schema-utils.ts (server-side schema generation)
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Definition of a single field in a `design_schema`. Drives both UI rendering
|
|
33
|
-
* and client-side validation in `useForm`.
|
|
34
|
-
*
|
|
35
|
-
* @prop data_type - Controls rendering widget and validation rules
|
|
36
|
-
* @prop label - Human-readable display label
|
|
37
|
-
* @prop required - Whether the field must be non-empty on save
|
|
38
|
-
* @prop system - If true, maps to a top-level DB column; false/absent → `data` JSONB
|
|
39
|
-
* @prop name - Injected at runtime by hooks; not stored in the schema itself
|
|
40
|
-
* @prop validation - Type-specific constraint overrides
|
|
41
|
-
* @prop options - Choice list for select/multiselect/radio fields
|
|
42
|
-
* @prop permissions - Role-based read/write access map; absent = all roles allowed
|
|
43
|
-
*/
|
|
44
|
-
export interface FieldDefinition {
|
|
45
|
-
data_type: 'text' | 'textarea' | 'rich_text' | 'email' | 'phone' | 'url' | 'number' | 'currency' | 'range' | 'date' | 'datetime' | 'boolean' | 'checkbox' | 'select' | 'multiselect' | 'radio' | 'color' | 'file' | 'image' | 'json' | 'reference' | 'address';
|
|
46
|
-
label: string;
|
|
47
|
-
required: boolean;
|
|
48
|
-
system?: boolean;
|
|
49
|
-
name?: string;
|
|
50
|
-
placeholder?: string;
|
|
51
|
-
description?: string;
|
|
52
|
-
rows?: number;
|
|
53
|
-
min?: number;
|
|
54
|
-
max?: number;
|
|
55
|
-
step?: number;
|
|
56
|
-
readonly?: boolean;
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
validation?: {
|
|
59
|
-
pattern?: string;
|
|
60
|
-
minLength?: number;
|
|
61
|
-
maxLength?: number;
|
|
62
|
-
min?: number;
|
|
63
|
-
max?: number;
|
|
64
|
-
step?: number;
|
|
65
|
-
integer?: boolean;
|
|
66
|
-
precision?: number;
|
|
67
|
-
maxSize?: number;
|
|
68
|
-
allowedTypes?: string[];
|
|
69
|
-
maxWidth?: number;
|
|
70
|
-
maxHeight?: number;
|
|
71
|
-
currency_code?: string;
|
|
72
|
-
reference_kind?: string;
|
|
73
|
-
reference_type?: string;
|
|
74
|
-
};
|
|
75
|
-
options?: (string | {
|
|
76
|
-
value: string;
|
|
77
|
-
label: string;
|
|
78
|
-
})[];
|
|
79
|
-
permissions?: {
|
|
80
|
-
[role: string]: string[];
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Per-field display/behaviour config within a view. Stored as
|
|
85
|
-
* `design_schema.views[viewSlug].fields[fieldName]`.
|
|
86
|
-
*
|
|
87
|
-
* @prop display_type - Override the default widget for this field in this view
|
|
88
|
-
* @prop sortable - Whether the column header shows a sort toggle in list views
|
|
89
|
-
* @prop searchable - Whether the field is included in free-text search
|
|
90
|
-
*/
|
|
91
|
-
export interface ViewFieldConfig {
|
|
92
|
-
display_type: 'input' | 'textarea' | 'rich_text' | 'select' | 'multiselect' | 'radio' | 'checkbox' | 'switch' | 'date_picker' | 'datetime_picker' | 'color_picker' | 'file_upload' | 'image_upload' | 'range_slider' | 'rating' | 'autocomplete' | 'address_form' | 'reference_picker' | 'text' | 'badge' | 'timestamp' | 'currency' | 'number';
|
|
93
|
-
sortable?: boolean;
|
|
94
|
-
searchable?: boolean;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* A list view definition. Rendered by `DataListPage` as a table, card grid,
|
|
98
|
-
* or Kanban board depending on `display`.
|
|
99
|
-
*
|
|
100
|
-
* @prop fields - Ordered map of field name → `ViewFieldConfig`
|
|
101
|
-
* @prop default_sort - Initial sort applied before user interaction
|
|
102
|
-
* @prop filters - Field names to expose as filter controls
|
|
103
|
-
* @prop stats - Summary stat cards shown above the list
|
|
104
|
-
* @prop group_by - Field to use as board column grouping (`display: 'board'` only)
|
|
105
|
-
*/
|
|
106
|
-
export interface ListView {
|
|
107
|
-
type: 'list';
|
|
108
|
-
display: 'table' | 'card' | 'board';
|
|
109
|
-
label: string;
|
|
110
|
-
fields: Record<string, ViewFieldConfig>;
|
|
111
|
-
default_sort?: {
|
|
112
|
-
field: string;
|
|
113
|
-
direction: 'asc' | 'desc';
|
|
114
|
-
};
|
|
115
|
-
filters?: string[];
|
|
116
|
-
stats?: Array<{
|
|
117
|
-
title: string;
|
|
118
|
-
type: 'count' | 'filter_count';
|
|
119
|
-
icon?: string;
|
|
120
|
-
color?: string;
|
|
121
|
-
filter?: Record<string, any>;
|
|
122
|
-
}>;
|
|
123
|
-
group_by?: string;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* A single section within a `DetailView`. Groups related fields under
|
|
127
|
-
* an optional title. Field permissions from the schema still apply —
|
|
128
|
-
* there are no section-level permission overrides.
|
|
129
|
-
*/
|
|
130
|
-
export interface DetailViewSection {
|
|
131
|
-
title: string;
|
|
132
|
-
fields: Record<string, ViewFieldConfig>;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* A detail view definition. Rendered by `DataDetailPage` as a sectioned
|
|
136
|
-
* record form.
|
|
137
|
-
*/
|
|
138
|
-
export interface DetailView {
|
|
139
|
-
type: 'detail';
|
|
140
|
-
label: string;
|
|
141
|
-
sections: DetailViewSection[];
|
|
142
|
-
}
|
|
143
|
-
/** Discriminated union of all supported view types. */
|
|
144
|
-
export type View = ListView | DetailView;
|
|
145
|
-
/**
|
|
146
|
-
* Optional automation and integration bindings attached to a `DesignSchema`.
|
|
147
|
-
* Each array entry describes a trigger condition and the target pipeline,
|
|
148
|
-
* agent, embedding, integration, or constraint.
|
|
149
|
-
*
|
|
150
|
-
* These bindings are evaluated by API handlers and the system cron — not
|
|
151
|
-
* by the frontend. They are included here as a type contract so the frontend
|
|
152
|
-
* can read and display binding metadata without making blind `any` casts.
|
|
153
|
-
*/
|
|
154
|
-
export interface FunctionalityBindings {
|
|
155
|
-
pipelines?: Array<{
|
|
156
|
-
pipeline_id: string;
|
|
157
|
-
trigger: 'manual' | 'on_create' | 'on_update' | 'on_field_change' | 'on_delete' | 'scheduled';
|
|
158
|
-
field?: string;
|
|
159
|
-
condition?: string;
|
|
160
|
-
roles: string[];
|
|
161
|
-
}>;
|
|
162
|
-
ai_agents?: Array<{
|
|
163
|
-
agent_id: string;
|
|
164
|
-
capabilities: ('read' | 'summarize' | 'suggest' | 'update')[];
|
|
165
|
-
trigger: 'manual' | 'on_create' | 'on_update' | 'on_field_change';
|
|
166
|
-
roles: string[];
|
|
167
|
-
}>;
|
|
168
|
-
embeddings?: Array<{
|
|
169
|
-
slug: string;
|
|
170
|
-
fields: string[];
|
|
171
|
-
model: string;
|
|
172
|
-
vector_column: string;
|
|
173
|
-
trigger: 'on_create' | 'on_update' | 'on_create_or_update';
|
|
174
|
-
}>;
|
|
175
|
-
integrations?: Array<{
|
|
176
|
-
integration_id: string;
|
|
177
|
-
sync: 'bidirectional' | 'inbound' | 'outbound';
|
|
178
|
-
field_map: Record<string, {
|
|
179
|
-
external_field: string;
|
|
180
|
-
direction: 'both' | 'inbound' | 'outbound' | 'none';
|
|
181
|
-
transform?: string;
|
|
182
|
-
}>;
|
|
183
|
-
trigger: 'on_create' | 'on_update' | 'on_create_or_update';
|
|
184
|
-
}>;
|
|
185
|
-
constraints?: Array<{
|
|
186
|
-
type: 'unique' | 'conditional_required' | 'immutable';
|
|
187
|
-
fields?: string[];
|
|
188
|
-
field?: string;
|
|
189
|
-
condition?: string;
|
|
190
|
-
message: string;
|
|
191
|
-
after?: 'create' | 'update';
|
|
192
|
-
}>;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* The complete design schema for a `types` record. Stored as a JSONB column
|
|
196
|
-
* (`design_schema`) and stamp-copied onto records at create time.
|
|
197
|
-
*
|
|
198
|
-
* @prop record_permissions - Role → allowed CRUD actions map for the entire record
|
|
199
|
-
* @prop fields - All field definitions keyed by field name
|
|
200
|
-
* @prop views - Named view definitions (`list`, `detail`, etc.)
|
|
201
|
-
* @prop functionality - Optional automation bindings (pipelines, agents, etc.)
|
|
202
|
-
*/
|
|
203
|
-
export interface DesignSchema {
|
|
204
|
-
record_permissions: {
|
|
205
|
-
[role: string]: string[];
|
|
206
|
-
};
|
|
207
|
-
fields: Record<string, FieldDefinition>;
|
|
208
|
-
views: Record<string, View>;
|
|
209
|
-
functionality?: FunctionalityBindings;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* A row from the `v2.types` table. Represents a type definition (item type,
|
|
213
|
-
* account type, person type, etc.) including its full `design_schema`.
|
|
214
|
-
*
|
|
215
|
-
* @prop kind - Discriminator: `'item'` | `'account'` | `'person'` | etc.
|
|
216
|
-
* @prop design_schema - Full schema defining fields, views, and functionality
|
|
217
|
-
* @prop validation_schema - Auto-generated JSON Schema used for server-side validation
|
|
218
|
-
* @prop ownership - `'pack'` | `'tenant'` (pack-ownership tracking)
|
|
219
|
-
*/
|
|
220
|
-
export interface ItemType {
|
|
221
|
-
id: string;
|
|
222
|
-
name: string;
|
|
223
|
-
slug: string;
|
|
224
|
-
kind: string;
|
|
225
|
-
description?: string;
|
|
226
|
-
icon?: string;
|
|
227
|
-
color?: string;
|
|
228
|
-
design_schema: DesignSchema;
|
|
229
|
-
validation_schema: {
|
|
230
|
-
fields: Record<string, {
|
|
231
|
-
data_type: string;
|
|
232
|
-
required?: boolean;
|
|
233
|
-
[key: string]: any;
|
|
234
|
-
}>;
|
|
235
|
-
};
|
|
236
|
-
ownership: string;
|
|
237
|
-
is_active: boolean;
|
|
238
|
-
app_id?: string;
|
|
239
|
-
app?: any;
|
|
240
|
-
created_at: string;
|
|
241
|
-
updated_at: string;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* A row from the `v2.items` table. The `data` JSONB column holds all
|
|
245
|
-
* custom field values; system fields (`title`, `status`, etc.) are top-level.
|
|
246
|
-
*
|
|
247
|
-
* @prop design_schema - Stamp of the type's schema at create time (for resilience
|
|
248
|
-
* to schema changes; may be stale relative to `types` table)
|
|
249
|
-
* @prop validation_schema - Stamp of the validation schema at create time
|
|
250
|
-
*/
|
|
251
|
-
export interface Item {
|
|
252
|
-
id: string;
|
|
253
|
-
item_type_id: string;
|
|
254
|
-
item_type_slug?: string;
|
|
255
|
-
title: string;
|
|
256
|
-
description?: string;
|
|
257
|
-
status: string;
|
|
258
|
-
is_active: boolean;
|
|
259
|
-
data: Record<string, any>;
|
|
260
|
-
created_at: string;
|
|
261
|
-
updated_at: string;
|
|
262
|
-
created_by?: string;
|
|
263
|
-
account_id: string;
|
|
264
|
-
app_id?: string;
|
|
265
|
-
design_schema?: Record<string, any>;
|
|
266
|
-
validation_schema?: Record<string, any>;
|
|
267
|
-
}
|
|
268
|
-
/** A field-level validation failure from `useForm` or server-side validation. */
|
|
269
|
-
export interface ValidationError {
|
|
270
|
-
field: string;
|
|
271
|
-
message: string;
|
|
272
|
-
}
|
|
273
|
-
/** Snapshot of form state — used as a shared type between `useForm` and form components. */
|
|
274
|
-
export interface FormState {
|
|
275
|
-
data: Record<string, any>;
|
|
276
|
-
errors: Record<string, string>;
|
|
277
|
-
touched: Record<string, boolean>;
|
|
278
|
-
isSubmitting: boolean;
|
|
279
|
-
isValid: boolean;
|
|
280
|
-
}
|
|
281
|
-
/** Pagination query parameters for list endpoints. */
|
|
282
|
-
export interface PaginationParams {
|
|
283
|
-
limit?: number;
|
|
284
|
-
offset?: number;
|
|
285
|
-
page?: number;
|
|
286
|
-
}
|
|
287
|
-
/** Sort order specification for list endpoints. */
|
|
288
|
-
export interface SortParams {
|
|
289
|
-
field: string;
|
|
290
|
-
direction: 'asc' | 'desc';
|
|
291
|
-
}
|
|
292
|
-
/** Arbitrary key→value filter map for list endpoints. */
|
|
293
|
-
export interface FilterParams {
|
|
294
|
-
[key: string]: any;
|
|
295
|
-
}
|
|
296
|
-
/** Combined search, sort, filter, and pagination params for list queries. */
|
|
297
|
-
export interface SearchParams extends PaginationParams {
|
|
298
|
-
search?: string;
|
|
299
|
-
sort?: SortParams;
|
|
300
|
-
filters?: FilterParams;
|
|
301
|
-
}
|
|
302
|
-
/** A rendered column descriptor for list/table UI components. */
|
|
303
|
-
export interface EntityColumn {
|
|
304
|
-
key: string;
|
|
305
|
-
label: string;
|
|
306
|
-
sortable?: boolean;
|
|
307
|
-
type?: string;
|
|
308
|
-
display_type?: string;
|
|
309
|
-
badgeColors?: Record<string, string>;
|
|
310
|
-
maxLength?: number;
|
|
311
|
-
}
|
|
312
|
-
/** A stat card shown above entity list pages (count or filtered count). */
|
|
313
|
-
export interface EntityStat {
|
|
314
|
-
title: string;
|
|
315
|
-
type: 'count' | 'filter_count';
|
|
316
|
-
icon: string;
|
|
317
|
-
color: string;
|
|
318
|
-
filter?: Record<string, any>;
|
|
319
|
-
}
|
|
320
|
-
/** A filter control definition for entity list pages. */
|
|
321
|
-
export interface EntityFilter {
|
|
322
|
-
key: string;
|
|
323
|
-
label: string;
|
|
324
|
-
type: 'search' | 'enum' | 'boolean';
|
|
325
|
-
options?: string[];
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* A per-person, per-item progress record. Tracks pipeline status, score, and
|
|
329
|
-
* arbitrary interaction data for courses, onboarding, tasks, and quizzes.
|
|
330
|
-
*
|
|
331
|
-
* `title` is auto-composed as "<item title> — <person name>".
|
|
332
|
-
* `description` is auto-composed as "Completed · score 85 · 2 attempts".
|
|
333
|
-
* `data` holds extensible fields: attempts, time_spent, last_position, etc.
|
|
334
|
-
*
|
|
335
|
-
* INVARIANT: (person_id, item_id) is unique — state, not a log.
|
|
336
|
-
*/
|
|
337
|
-
export interface ItemProgress {
|
|
338
|
-
id: string;
|
|
339
|
-
type_id: string;
|
|
340
|
-
account_id: string;
|
|
341
|
-
app_id: string | null;
|
|
342
|
-
person_id: string;
|
|
343
|
-
item_id: string;
|
|
344
|
-
title: string | null;
|
|
345
|
-
description: string | null;
|
|
346
|
-
status: 'not_started' | 'in_progress' | 'completed' | string;
|
|
347
|
-
score: number | null;
|
|
348
|
-
data: {
|
|
349
|
-
attempts?: number;
|
|
350
|
-
time_spent?: number;
|
|
351
|
-
last_position?: number;
|
|
352
|
-
started_at?: string;
|
|
353
|
-
completed_at?: string;
|
|
354
|
-
[key: string]: any;
|
|
355
|
-
};
|
|
356
|
-
is_active: boolean;
|
|
357
|
-
design_schema: Record<string, any>;
|
|
358
|
-
validation_schema: Record<string, any>;
|
|
359
|
-
created_by: string | null;
|
|
360
|
-
updated_by: string | null;
|
|
361
|
-
created_at: string;
|
|
362
|
-
updated_at: string;
|
|
363
|
-
}
|
|
364
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../.framework/src/types/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAIH;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAC7D,QAAQ,GAAG,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,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Spine</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/netlify.toml
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
[build]
|
|
2
|
-
command = "npm run build"
|
|
3
|
-
publish = "dist"
|
|
4
|
-
functions = ".assembled/netlify/functions"
|
|
5
|
-
|
|
6
|
-
[build.environment]
|
|
7
|
-
# Supabase VITE variables are meant to be public in the browser
|
|
8
|
-
SECRETS_SCAN_OMIT_KEYS = "VITE_SUPABASE_URL,VITE_SUPABASE_ANON_KEY,VITE_DB_SCHEMA,VITE_APP_NAME,SUPABASE_URL,DB_SCHEMA"
|
|
9
|
-
SECRETS_SCAN_OMIT_PATHS = ".framework/.xenv,.framework/.xenv.test"
|
|
10
|
-
|
|
11
|
-
# Spine functions configuration - assembled from .framework + custom
|
|
12
|
-
[functions]
|
|
13
|
-
directory = ".assembled/netlify/functions"
|
|
14
|
-
included_files = [".assembled/netlify/functions/**"]
|
|
15
|
-
node_bundler = "esbuild"
|
|
16
|
-
|
|
17
|
-
[dev]
|
|
18
|
-
command = "bash scripts/netlify-dev-wrapper.sh"
|
|
19
|
-
framework = "#custom"
|
|
20
|
-
port = 8888
|
|
21
|
-
targetPort = 3001
|
|
22
|
-
autoLaunch = false
|
|
23
|
-
startTimeout = 60
|
|
24
|
-
|
|
25
|
-
[functions."trigger-scheduler"]
|
|
26
|
-
schedule = "* * * * *"
|
|
27
|
-
|
|
28
|
-
[[headers]]
|
|
29
|
-
for = "/*"
|
|
30
|
-
[headers.values]
|
|
31
|
-
X-Frame-Options = "DENY"
|
|
32
|
-
X-Content-Type-Options = "nosniff"
|
|
33
|
-
Strict-Transport-Security = "max-age=31536000; includeSubDomains"
|
|
34
|
-
Referrer-Policy = "strict-origin-when-cross-origin"
|
|
35
|
-
Permissions-Policy = "camera=(), microphone=(), geolocation=()"
|
|
36
|
-
X-XSS-Protection = "1; mode=block"
|
package/package-project.json
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "spine-project",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"assemble": "bash node_modules/spine-framework/scripts/assemble.sh",
|
|
7
|
-
"dev": "netlify dev",
|
|
8
|
-
"build": "npm run assemble && vite build --config node_modules/spine-framework/config/vite.config.ts",
|
|
9
|
-
"preview": "netlify dev"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"spine-framework": "^0.2.0",
|
|
13
|
-
"@tanstack/react-query": "^5.0.0",
|
|
14
|
-
"react": "^18.3.0",
|
|
15
|
-
"react-dom": "^18.3.0",
|
|
16
|
-
"react-router-dom": "^6.28.0",
|
|
17
|
-
"@netlify/functions": "^2.0.0",
|
|
18
|
-
"react-is": "^18.3.0",
|
|
19
|
-
"lucide-react": "^0.400.0",
|
|
20
|
-
"clsx": "^2.0.0",
|
|
21
|
-
"tailwind-merge": "^2.0.0",
|
|
22
|
-
"class-variance-authority": "^0.7.0",
|
|
23
|
-
"recharts": "^3.0.0",
|
|
24
|
-
"@radix-ui/react-dialog": "^1.0.0",
|
|
25
|
-
"@radix-ui/react-slot": "^1.0.0",
|
|
26
|
-
"@radix-ui/react-tooltip": "^1.0.0",
|
|
27
|
-
"@radix-ui/react-separator": "^1.0.0",
|
|
28
|
-
"@radix-ui/react-avatar": "^1.0.0",
|
|
29
|
-
"@radix-ui/react-collapsible": "^1.0.0",
|
|
30
|
-
"@radix-ui/react-dropdown-menu": "^1.0.0",
|
|
31
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
32
|
-
"@radix-ui/react-switch": "^1.0.0",
|
|
33
|
-
"@radix-ui/react-tabs": "^1.0.0",
|
|
34
|
-
"@radix-ui/react-toast": "^1.0.0",
|
|
35
|
-
"@radix-ui/react-radio-group": "^1.0.0",
|
|
36
|
-
"@radix-ui/react-context-menu": "^1.0.0",
|
|
37
|
-
"@radix-ui/react-menubar": "^1.0.0",
|
|
38
|
-
"@radix-ui/react-toggle": "^1.0.0",
|
|
39
|
-
"@radix-ui/react-toggle-group": "^1.0.0",
|
|
40
|
-
"@radix-ui/react-accordion": "^1.0.0",
|
|
41
|
-
"@radix-ui/react-navigation-menu": "^1.0.0",
|
|
42
|
-
"@radix-ui/react-scroll-area": "^1.0.0",
|
|
43
|
-
"@radix-ui/react-hover-card": "^1.0.0",
|
|
44
|
-
"@radix-ui/react-progress": "^1.0.0",
|
|
45
|
-
"@radix-ui/react-alert-dialog": "^1.0.0",
|
|
46
|
-
"@radix-ui/react-aspect-ratio": "^1.0.0",
|
|
47
|
-
"@radix-ui/react-direction": "^1.0.0",
|
|
48
|
-
"@radix-ui/react-checkbox": "^1.0.0",
|
|
49
|
-
"@radix-ui/react-slider": "^1.0.0",
|
|
50
|
-
"@radix-ui/react-label": "^1.0.0",
|
|
51
|
-
"@radix-ui/react-popover": "^1.0.0",
|
|
52
|
-
"tailwindcss-animate": "^1.0.0",
|
|
53
|
-
"ws": "^8.0.0",
|
|
54
|
-
"@tiptap/react": "^3.24.0",
|
|
55
|
-
"@tiptap/starter-kit": "^3.24.0",
|
|
56
|
-
"@tiptap/extension-code-block-lowlight": "^3.24.0",
|
|
57
|
-
"@tiptap/extension-placeholder": "^3.24.0",
|
|
58
|
-
"lowlight": "^3.3.0",
|
|
59
|
-
"highlight.js": "^11.11.1"
|
|
60
|
-
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"@types/react": "^18.3.0",
|
|
63
|
-
"@types/react-dom": "^18.3.0",
|
|
64
|
-
"vite": "^6.4.3",
|
|
65
|
-
"@vitejs/plugin-react": "^4.0.0",
|
|
66
|
-
"tailwindcss": "^3.4.0",
|
|
67
|
-
"autoprefixer": "^10.4.0",
|
|
68
|
-
"postcss": "^8.5.15",
|
|
69
|
-
"netlify-cli": "^26.0.0"
|
|
70
|
-
}
|
|
71
|
-
}
|