@lunora/studio 1.0.0-alpha.53 → 1.0.0-alpha.55

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.
Files changed (135) hide show
  1. package/dist/index.d.ts +680 -780
  2. package/dist/index.js +8 -8
  3. package/dist/mount.d.ts +10 -10
  4. package/dist/mount.js +1 -1
  5. package/dist/packem_chunks/ApiTab.js +1 -1
  6. package/dist/packem_chunks/AuditPanel.js +2 -2
  7. package/dist/packem_chunks/ExportImportPanel.js +2 -2
  8. package/dist/packem_chunks/FileBrowser.js +3 -3
  9. package/dist/packem_chunks/FunctionRunner.js +1 -1
  10. package/dist/packem_chunks/FunctionStatsPanel.js +2 -2
  11. package/dist/packem_chunks/HealthPanel.js +2 -2
  12. package/dist/packem_chunks/InsightsPanel.js +2 -2
  13. package/dist/packem_chunks/LogsPanel.js +81 -53
  14. package/dist/packem_chunks/MailPanel.js +1 -1
  15. package/dist/packem_chunks/MetricsPanel.js +392 -7
  16. package/dist/packem_chunks/MigrationsPanel.js +2 -2
  17. package/dist/packem_chunks/PitrPanel.js +1 -1
  18. package/dist/packem_chunks/SchemaViewer.js +2 -2
  19. package/dist/packem_chunks/SecurityAdvisorPanel.js +2 -2
  20. package/dist/packem_chunks/SettingsPanel.js +3 -3
  21. package/dist/packem_chunks/SqlEditorPanel.js +1 -1
  22. package/dist/packem_chunks/TableEditor.js +2 -2
  23. package/dist/packem_chunks/agents-panel.js +2 -2
  24. package/dist/packem_chunks/analytics-panel.js +1 -1
  25. package/dist/packem_chunks/auth-config-panel.js +1 -1
  26. package/dist/packem_chunks/auth-sessions-panel.js +1 -1
  27. package/dist/packem_chunks/containers-panel.js +2 -2
  28. package/dist/packem_chunks/dashboards-panel.js +2 -2
  29. package/dist/packem_chunks/fanout-panel.js +2 -2
  30. package/dist/packem_chunks/flags-panel.js +2 -2
  31. package/dist/packem_chunks/issues-panel.js +2 -2
  32. package/dist/packem_chunks/kv-browser.js +2 -2
  33. package/dist/packem_chunks/log-drains-panel.js +2 -2
  34. package/dist/packem_chunks/organizations-panel.js +1 -1
  35. package/dist/packem_chunks/payments-panel.js +2 -2
  36. package/dist/packem_chunks/permissions-panel.js +2 -2
  37. package/dist/packem_chunks/queues-panel.js +2 -2
  38. package/dist/packem_chunks/rls-panel.js +2 -2
  39. package/dist/packem_chunks/schedule-panel.js +2 -2
  40. package/dist/packem_chunks/storage-rules-panel.js +2 -2
  41. package/dist/packem_chunks/subscriptions-panel.js +2 -2
  42. package/dist/packem_chunks/traces-panel.js +734 -0
  43. package/dist/packem_chunks/users-panel.js +1 -1
  44. package/dist/packem_chunks/vector-browser.js +1 -1
  45. package/dist/packem_chunks/workflows-panel.js +2 -2
  46. package/dist/packem_shared/{ADMIN_FUNCTIONS-DNeyYtUN.js → ADMIN_FUNCTIONS-C6TEeUiJ.js} +2 -0
  47. package/dist/packem_shared/{ApiDocsPanel-_aEZxAMX.js → ApiDocsPanel-CcC6ucbp.js} +1 -1
  48. package/dist/packem_shared/{DataBrowser-C8hejnub.js → DataBrowser-BuFEPTiv.js} +1 -1
  49. package/dist/packem_shared/{GlobalDataBrowser-f5Ll2AQK.js → GlobalDataBrowser-D8h1fTL1.js} +1 -1
  50. package/dist/packem_shared/{HomePanel-Ye8PaqQL.js → HomePanel-2I1YZm0A.js} +3 -3
  51. package/dist/packem_shared/{ScheduledJobs-dHMgnJbx.js → ScheduledJobs-Cz5Tr-M6.js} +1 -1
  52. package/dist/packem_shared/{Studio-BNGjxLVo.js → Studio-CCJBI2wP.js} +2 -2
  53. package/dist/packem_shared/{StudioApp-K9dn1Q9d.js → StudioApp-Daeqxw2h.js} +1 -1
  54. package/dist/packem_shared/{advisor-view-Cx21PS_T.js → advisor-view-1RaDWED7.js} +1 -1
  55. package/dist/packem_shared/app.d-C-kxb-1T.d.ts +254 -0
  56. package/dist/packem_shared/{card-DURq3ElK.js → card-F2vH_aj2.js} +1 -1
  57. package/dist/packem_shared/{cf-links-BZfRdxSE.js → cf-links-SIbyi4Y1.js} +1 -1
  58. package/dist/packem_shared/{home-panel-D62G8108.js → home-panel-DHHUtnKU.js} +2 -2
  59. package/dist/packem_shared/log-fields-jEH83H2G.js +18 -0
  60. package/dist/packem_shared/{studio-Cd21fp4v.js → studio-0479nrrm.js} +551 -524
  61. package/dist/standalone/{chunk-SDQE2IUJ.js → chunk-3W4CSGDO.js} +1 -1
  62. package/dist/standalone/{chunk-FFVSSWU2.js → chunk-4AZYW2PI.js} +1 -1
  63. package/dist/standalone/{chunk-ZQQ3MFEQ.js → chunk-4F72YCTU.js} +1 -1
  64. package/dist/standalone/{chunk-IZN4TYMN.js → chunk-5IGHDPEP.js} +1 -1
  65. package/dist/standalone/{chunk-T7FHIJ2T.js → chunk-6LLFTVEI.js} +1 -1
  66. package/dist/standalone/{chunk-JPILGFXT.js → chunk-7YGTGBP7.js} +1 -1
  67. package/dist/standalone/{chunk-OETK333R.js → chunk-AE3AKGOW.js} +1 -1
  68. package/dist/standalone/{chunk-TO6D2PJC.js → chunk-CHNXZYAC.js} +1 -1
  69. package/dist/standalone/{chunk-R2MAZ2OH.js → chunk-CW7LZ4SR.js} +1 -1
  70. package/dist/standalone/{chunk-WUFVFVHJ.js → chunk-D73WYMRU.js} +1 -1
  71. package/dist/standalone/{chunk-YFZ27MEC.js → chunk-DVBY6YQK.js} +1 -1
  72. package/dist/standalone/chunk-EBTLTGG3.js +1 -0
  73. package/dist/standalone/chunk-EIZG4GOM.js +1 -0
  74. package/dist/standalone/{chunk-DMFVDMUJ.js → chunk-EPDC422O.js} +1 -1
  75. package/dist/standalone/{chunk-ISOUWAPB.js → chunk-FBGC3RSU.js} +1 -1
  76. package/dist/standalone/{chunk-LUP4YTBS.js → chunk-FDWXYXOM.js} +1 -1
  77. package/dist/standalone/{chunk-XXAW7V4T.js → chunk-FPKTXKPE.js} +1 -1
  78. package/dist/standalone/{chunk-AITOCPML.js → chunk-FQUNSQLG.js} +1 -1
  79. package/dist/standalone/{chunk-HRHG4HOZ.js → chunk-FXNS5NBY.js} +1 -1
  80. package/dist/standalone/{chunk-3GVA2ROQ.js → chunk-G4GGGHEV.js} +1 -1
  81. package/dist/standalone/{chunk-C4QK2DJN.js → chunk-G5CMK5GY.js} +1 -1
  82. package/dist/standalone/{chunk-GPQX3AEO.js → chunk-G5RC7USY.js} +1 -1
  83. package/dist/standalone/{chunk-PWKD5FTM.js → chunk-GVFODXW2.js} +1 -1
  84. package/dist/standalone/{chunk-MDTNVR3G.js → chunk-HNIDN3RX.js} +1 -1
  85. package/dist/standalone/{chunk-XXXNY3DK.js → chunk-IKVZUVHJ.js} +1 -1
  86. package/dist/standalone/{chunk-3C3CU2DS.js → chunk-JGCRBFFO.js} +1 -1
  87. package/dist/standalone/chunk-JHR3HKT5.js +3 -0
  88. package/dist/standalone/{chunk-WXUUGXDV.js → chunk-JQPHZL2A.js} +1 -1
  89. package/dist/standalone/{chunk-CRY26DNY.js → chunk-LJE6PGHD.js} +1 -1
  90. package/dist/standalone/{chunk-5JB7FDCA.js → chunk-LTCX3QOE.js} +1 -1
  91. package/dist/standalone/{chunk-ALL4U2C5.js → chunk-MWH5LBNF.js} +1 -1
  92. package/dist/standalone/{chunk-CZGILAZI.js → chunk-N5FMEYSL.js} +1 -1
  93. package/dist/standalone/chunk-N7SVJOHN.js +1 -0
  94. package/dist/standalone/{chunk-7KSXHCUD.js → chunk-NAFKYFBZ.js} +1 -1
  95. package/dist/standalone/{chunk-3XBP6RRG.js → chunk-OVSBLTAA.js} +1 -1
  96. package/dist/standalone/chunk-OXHHSUXO.js +1 -0
  97. package/dist/standalone/chunk-PIB7VUVM.js +1 -0
  98. package/dist/standalone/{chunk-IC7XYSER.js → chunk-Q3X7IMLF.js} +1 -1
  99. package/dist/standalone/{chunk-LAK5VSPI.js → chunk-QVIPA6UJ.js} +1 -1
  100. package/dist/standalone/{chunk-NXAKNU3L.js → chunk-RCSULEDU.js} +1 -1
  101. package/dist/standalone/{chunk-6TMEOFZC.js → chunk-RDA4VTHI.js} +1 -1
  102. package/dist/standalone/{chunk-VY6AI3RI.js → chunk-RG4HLPM2.js} +1 -1
  103. package/dist/standalone/{chunk-LOYE7OU2.js → chunk-S2G7OH5T.js} +1 -1
  104. package/dist/standalone/{chunk-7N5KFSSB.js → chunk-SP7GSPKX.js} +1 -1
  105. package/dist/standalone/{chunk-W6JKUZKD.js → chunk-SPACAIAR.js} +1 -1
  106. package/dist/standalone/{chunk-X4QFAAZ5.js → chunk-SWMBBYJU.js} +1 -1
  107. package/dist/standalone/{chunk-HZKFL2M7.js → chunk-TTEEPVCN.js} +1 -1
  108. package/dist/standalone/{chunk-SXAFEREK.js → chunk-VC2VDAUO.js} +1 -1
  109. package/dist/standalone/{chunk-USYCKPUK.js → chunk-VQ3YOUZB.js} +1 -1
  110. package/dist/standalone/chunk-VXM5H542.js +4 -0
  111. package/dist/standalone/{chunk-3MAQAOUA.js → chunk-W7ND56KZ.js} +1 -1
  112. package/dist/standalone/{chunk-43F677PE.js → chunk-WA3DGSC2.js} +1 -1
  113. package/dist/standalone/{chunk-75LPCQ77.js → chunk-WCLFE2ZB.js} +1 -1
  114. package/dist/standalone/{chunk-EEWKIQUE.js → chunk-WOYQG5AM.js} +1 -1
  115. package/dist/standalone/{chunk-JM7XBQVK.js → chunk-XCNYUUD6.js} +1 -1
  116. package/dist/standalone/{chunk-ZVT4GJEI.js → chunk-XG4TZSP4.js} +1 -1
  117. package/dist/standalone/{chunk-A3ZJACVT.js → chunk-XZWFP2GI.js} +1 -1
  118. package/dist/standalone/chunk-YNSFQKMM.js +1 -0
  119. package/dist/standalone/{chunk-CODD62OJ.js → chunk-YRE6TGXH.js} +1 -1
  120. package/dist/standalone/{chunk-S7RKDQPS.js → chunk-YS7NUMAN.js} +1 -1
  121. package/dist/standalone/{chunk-IEKK5GO6.js → chunk-ZUTFDG76.js} +1 -1
  122. package/dist/standalone/{chunk-22C6COGE.js → chunk-ZXLEXF4X.js} +2 -2
  123. package/dist/standalone/studio.js +1 -1
  124. package/dist/styles.css +2 -2
  125. package/package.json +8 -8
  126. package/dist/packem_shared/app.d-CGdOmLTm.d.ts +0 -300
  127. package/dist/standalone/chunk-G7ZBM54M.js +0 -1
  128. package/dist/standalone/chunk-I7Y7ST5Y.js +0 -1
  129. package/dist/standalone/chunk-KJJ3WM6H.js +0 -4
  130. package/dist/standalone/chunk-LT7IG26L.js +0 -1
  131. package/dist/standalone/chunk-TC4KPQJ7.js +0 -3
  132. package/dist/standalone/chunk-WI7GWFEG.js +0 -1
  133. /package/dist/standalone/{chunk-ITQKVEP7.js → chunk-5XO36X4C.js} +0 -0
  134. /package/dist/standalone/{chunk-TQ36RWOP.js → chunk-IYHPYY4A.js} +0 -0
  135. /package/dist/standalone/{chunk-SEU5V7I6.js → chunk-Y572GMZE.js} +0 -0
@@ -2,7 +2,7 @@ import { useLunora } from '@lunora/react';
2
2
  import { useState, useEffect } from 'react';
3
3
  import { B as Badge } from '../packem_shared/badge-B2PKA1-5.js';
4
4
  import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
5
- import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
5
+ import { C as Card, a as CardContent } from '../packem_shared/card-F2vH_aj2.js';
6
6
  import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
7
7
  import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
8
8
  import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
@@ -2,7 +2,7 @@ import { c } from 'react/compiler-runtime';
2
2
  import { useLunora } from '@lunora/react';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
5
- import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
5
+ import { C as Card, a as CardContent } from '../packem_shared/card-F2vH_aj2.js';
6
6
  import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
7
7
  import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
8
8
  import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
@@ -1,14 +1,14 @@
1
1
  import { useLunora } from '@lunora/react';
2
2
  import { useState, useEffect, useMemo } from 'react';
3
3
  import { B as Button } from '../packem_shared/button-BhsN2uZH.js';
4
- import { C as Card, a as CardContent } from '../packem_shared/card-DURq3ElK.js';
4
+ import { C as Card, a as CardContent } from '../packem_shared/card-F2vH_aj2.js';
5
5
  import { E as EmptyState } from '../packem_shared/empty-state-DY_oe0k6.js';
6
6
  import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
7
7
  import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from '../packem_shared/table-DsCa9Qp9.js';
8
8
  import { T as Textarea } from '../packem_shared/textarea-D3gaCU_-.js';
9
9
  import { u as useAdminQuery } from '../packem_shared/use-admin-query-BGJ010yZ.js';
10
10
  import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
11
- import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-DNeyYtUN.js';
11
+ import { ADMIN_FUNCTIONS } from '../packem_shared/ADMIN_FUNCTIONS-C6TEeUiJ.js';
12
12
  import { f as fireAndForget, e as errorMessage, c as callOptions, a as adminRef } from '../packem_shared/internal-zwBoOv24.js';
13
13
  import { jsxDEV } from 'react/jsx-dev-runtime';
14
14
 
@@ -22,12 +22,14 @@ const ADMIN_FUNCTIONS = {
22
22
  listTableIndexes: "__lunora_admin__:listTableIndexes",
23
23
  listWorkflows: "__lunora_admin__:listWorkflows",
24
24
  getLogs: "__lunora_admin__:getLogs",
25
+ getMetricSeries: "__lunora_admin__:getMetricSeries",
25
26
  getMetrics: "__lunora_admin__:getMetrics",
26
27
  getPitrBookmark: "__lunora_admin__:getPitrBookmark",
27
28
  getQueueMessages: "__lunora_admin__:getQueueMessages",
28
29
  getRequestLog: "__lunora_admin__:getRequestLog",
29
30
  getSecurityAudit: "__lunora_admin__:getSecurityAudit",
30
31
  getSettings: "__lunora_admin__:getSettings",
32
+ getTraces: "__lunora_admin__:getTraces",
31
33
  // eslint-disable-next-line no-secrets/no-secrets -- reserved admin RPC path constant, not a credential
32
34
  getWorkflowInstanceStatus: "__lunora_admin__:getWorkflowInstanceStatus",
33
35
  importShard: "__lunora_admin__:importShard",
@@ -4,7 +4,7 @@ import { useState, useEffect } from 'react';
4
4
  import { B as Button } from './button-BhsN2uZH.js';
5
5
  import { E as EmptyState } from './empty-state-DY_oe0k6.js';
6
6
  import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
7
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DNeyYtUN.js';
7
+ import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-C6TEeUiJ.js';
8
8
  import { c as callOptions, a as adminRef, g as copyToClipboard } from './internal-zwBoOv24.js';
9
9
  import { jsxDEV } from 'react/jsx-dev-runtime';
10
10
 
@@ -5,7 +5,7 @@ import { ConfirmButton } from './ConfirmButton-C2eVi2Qv.js';
5
5
  import { ShardInput } from './ShardInput-CZnpHILL.js';
6
6
  import { E as EmptyState } from './empty-state-DY_oe0k6.js';
7
7
  import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
8
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DNeyYtUN.js';
8
+ import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-C6TEeUiJ.js';
9
9
  import { h as formatCell, f as fireAndForget, c as callOptions, a as adminRef, i as formatTimestamp } from './internal-zwBoOv24.js';
10
10
  import { useReactTable, getSortedRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
11
11
  import { useVirtualizer } from '@tanstack/react-virtual';
@@ -5,7 +5,7 @@ import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as Table
5
5
  import { a as useClientQuery } from './use-admin-query-BGJ010yZ.js';
6
6
  import { useAutoRefresh } from './DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
7
7
  import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
8
- import { C as CLOUDFLARE_D1_URL } from './cf-links-BZfRdxSE.js';
8
+ import { C as CLOUDFLARE_D1_URL } from './cf-links-SIbyi4Y1.js';
9
9
  import { u as useFacets, T as TableListSidebar, G as GridPagination, D as DataFacets } from './table-list-sidebar-huX4VmgI.js';
10
10
  import { G as GridContainer, C as CellValue } from './data-grid-C9I16KWr.js';
11
11
  import { jsxDEV } from 'react/jsx-dev-runtime';
@@ -2,13 +2,13 @@ import 'react/compiler-runtime';
2
2
  import '@tanstack/react-router';
3
3
  import 'react';
4
4
  import './badge-B2PKA1-5.js';
5
- import './card-DURq3ElK.js';
5
+ import './card-F2vH_aj2.js';
6
6
  import './empty-state-DY_oe0k6.js';
7
7
  import './use-admin-query-BGJ010yZ.js';
8
8
  import './DEFAULT_LOCALE-CiX4W7Kr.js';
9
- import './ADMIN_FUNCTIONS-DNeyYtUN.js';
9
+ import './ADMIN_FUNCTIONS-C6TEeUiJ.js';
10
10
  import './internal-zwBoOv24.js';
11
11
  import './utils-B05Dmz_H.js';
12
12
  import './DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js';
13
- export { H as HomePanel } from './home-panel-D62G8108.js';
13
+ export { H as HomePanel } from './home-panel-DHHUtnKU.js';
14
14
  import 'react/jsx-dev-runtime';
@@ -2,7 +2,7 @@ import { c } from 'react/compiler-runtime';
2
2
  import { useLunora } from '@lunora/react';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { ConfirmButton } from './ConfirmButton-C2eVi2Qv.js';
5
- import { C as Card, a as CardContent } from './card-DURq3ElK.js';
5
+ import { C as Card, a as CardContent } from './card-F2vH_aj2.js';
6
6
  import { E as EmptyState } from './empty-state-DY_oe0k6.js';
7
7
  import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-DsCa9Qp9.js';
8
8
  import { a as useClientQuery } from './use-admin-query-BGJ010yZ.js';
@@ -1,12 +1,12 @@
1
1
  import 'react/compiler-runtime';
2
2
  import '@tanstack/react-router';
3
3
  import 'react';
4
- export { S as Studio } from './studio-Cd21fp4v.js';
4
+ export { S as Studio } from './studio-0479nrrm.js';
5
5
  import './ErrorBoundary-BzAApI7J.js';
6
6
  import './badge-B2PKA1-5.js';
7
7
  import './input-XH4r1Pt1.js';
8
8
  import './skeleton-CGhL0p20.js';
9
- import './home-panel-D62G8108.js';
9
+ import './home-panel-DHHUtnKU.js';
10
10
  import './DEFAULT_LOCALE-CiX4W7Kr.js';
11
11
  import './StudioI18nProvider-B-tDCZIi.js';
12
12
  import './data-view-params-Cd6yRVbv.js';
@@ -3,7 +3,7 @@ import { LunoraClient } from '@lunora/client';
3
3
  import { LunoraProvider } from '@lunora/react';
4
4
  import { useState, useEffect } from 'react';
5
5
  import { ErrorBoundary } from './ErrorBoundary-BzAApI7J.js';
6
- import { u as useTheme, B as BrandMark, T as ThemeProvider, a as TooltipProvider, S as Studio } from './studio-Cd21fp4v.js';
6
+ import { u as useTheme, B as BrandMark, T as ThemeProvider, a as TooltipProvider, S as Studio } from './studio-0479nrrm.js';
7
7
  import useDebounced from './useDebounced-Dxncpg6z.js';
8
8
  import { useT, createStudioI18n } from './DEFAULT_LOCALE-CiX4W7Kr.js';
9
9
  import { StudioI18nProvider } from './StudioI18nProvider-B-tDCZIi.js';
@@ -1,6 +1,6 @@
1
1
  import { useState, useMemo } from 'react';
2
2
  import { E as ErrorAlert } from './error-alert-vIPQoN3Y.js';
3
- import { C as Card, a as CardContent } from './card-DURq3ElK.js';
3
+ import { C as Card, a as CardContent } from './card-F2vH_aj2.js';
4
4
  import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-DsCa9Qp9.js';
5
5
  import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
6
6
  import { c as cn } from './utils-B05Dmz_H.js';
@@ -0,0 +1,254 @@
1
+ import { CronJobInfo, ScheduleRecord, LunoraClient } from '@lunora/client';
2
+ import { ReactElement } from 'react';
3
+ import { I18n } from '@lingui/core';
4
+ interface CronTriggersPanelProps {
5
+ /**
6
+ * Load the code-defined cron triggers. Defaults to `client.getCronJobs`,
7
+ * which hits the worker's admin-gated `/_lunora/admin/cron-jobs` endpoint —
8
+ * so the panel works out of the box under `<LunoraProvider>`, provided the
9
+ * worker is built with a `cronJobs` map and `adminToken`. Override it to
10
+ * source triggers from elsewhere (e.g. tests).
11
+ */
12
+ readonly loadCronJobs?: () => Promise<CronJobInfo[]>;
13
+ /**
14
+ * Manually fire one cron job by name. Defaults to `client.runCronJob`, which
15
+ * hits the admin-gated `POST /_lunora/admin/cron-jobs/run` endpoint (the same
16
+ * dispatch the scheduled trigger runs). When a custom {@link CronTriggersPanelProps.loadCronJobs}
17
+ * is supplied without a `runCronJob`, the "Run now" control is hidden — useful
18
+ * for a read-only view.
19
+ */
20
+ readonly runCronJob?: (name: string) => Promise<{
21
+ name: string;
22
+ ran: boolean;
23
+ }>;
24
+ }
25
+ interface ScheduledJobsProps {
26
+ /**
27
+ * Cancel a pending job by id. Defaults to `client.cancelScheduledJob` when
28
+ * {@link ScheduledJobsProps.loadJobs} is also left to the client. When a
29
+ * custom `loadJobs` is supplied without a `cancelJob`, the cancel control is
30
+ * hidden — useful for a read-only view.
31
+ */
32
+ readonly cancelJob?: (id: string) => Promise<{
33
+ cancelled: boolean;
34
+ }>;
35
+ /**
36
+ * Load the pending scheduled jobs. Defaults to `client.listScheduledJobs`,
37
+ * which hits the worker's admin-gated `/_lunora/admin/scheduled` endpoint —
38
+ * so the panel works out of the box under `&lt;LunoraProvider>`, provided the
39
+ * worker is built with a `schedulerDO` namespace and `adminToken`. Override
40
+ * it to source jobs from elsewhere.
41
+ */
42
+ readonly loadJobs?: () => Promise<ScheduleRecord[]>;
43
+ }
44
+ /**
45
+ * View — and cancel — the functions queued via `runAfter` / `runAt` on the
46
+ * scheduler. Cron *triggers* are static wrangler config and don't appear here;
47
+ * this lists the dynamic, in-flight schedule only.
48
+ *
49
+ * Works out of the box under `&lt;LunoraProvider>` via the client's scheduler
50
+ * admin methods; pass {@link ScheduledJobsProps.loadJobs} /
51
+ * {@link ScheduledJobsProps.cancelJob} to override the transport.
52
+ */
53
+ declare const ScheduledJobs: ({ cancelJob, loadJobs }?: ScheduledJobsProps) => ReactElement;
54
+ interface SchedulePanelProps {
55
+ /** Override how the Cron triggers sub-view loads triggers; see {@link CronTriggersPanel}. */
56
+ readonly loadCronJobs?: CronTriggersPanelProps["loadCronJobs"];
57
+ /** Override how the Scheduled jobs sub-view cancels a job; see {@link ScheduledJobs}. */
58
+ readonly scheduledCancel?: ScheduledJobsProps["cancelJob"];
59
+ /** Override how the Scheduled jobs sub-view loads jobs; see {@link ScheduledJobs}. */
60
+ readonly scheduledLoad?: ScheduledJobsProps["loadJobs"];
61
+ }
62
+ /** Which client method a {@link FunctionDescriptor} is invoked through. */
63
+ type FunctionKind = "action" | "mutation" | "query";
64
+ /**
65
+ * One argument of a registered function, derived from its `v.*` validator by the
66
+ * worker's `/_lunora/admin/functions` endpoint. A compact signature shape.
67
+ */
68
+ interface FunctionArgumentDescriptor {
69
+ /** Element validator kind for an `array` arg (one level), e.g. `string`. */
70
+ element?: string;
71
+ /** The (optional-unwrapped) validator kind, e.g. `string`, `id`, `object`. */
72
+ kind: string;
73
+ /** The argument name. */
74
+ name: string;
75
+ /** True when the arg is wrapped in `v.optional(...)`. */
76
+ optional: boolean;
77
+ /** Target table for an `id` arg (`v.id("table")`). */
78
+ table?: string;
79
+ }
80
+ /**
81
+ * Runtime descriptor for a registered Lunora function. The function's `kind` is
82
+ * a compile-time-only phantom on `FunctionReference`, so the runner needs it
83
+ * spelled out here to know which client method to call. `args` carries the
84
+ * function's argument signature (absent on responses from an older worker).
85
+ */
86
+ interface FunctionDescriptor {
87
+ args?: FunctionArgumentDescriptor[];
88
+ kind: FunctionKind;
89
+ /** The `&lt;file>:&lt;function>` identifier, e.g. `messages:list`. */
90
+ path: string;
91
+ }
92
+ /** Outcome of a single `FunctionRunner` invocation. */
93
+ type RunStatus = "error" | "idle" | "running" | "success";
94
+ /** Identifier for each built-in studio tab. */
95
+ type StudioTab = "agents" | "analytics" | "api" | "audit" | "authConfig" | "authSessions" | "containers" | "dashboards" | "data" | "drains" | "export" | "fanout" | "files" | "flags" | "functions" | "health" | "home" | "insights" | "issues" | "kv" | "logs" | "mail" | "metrics" | "migrations" | "organizations" | "payments" | "permissions" | "pitr" | "queues" | "realtime" | "rls" | "schedule" | "schema" | "security" | "settings" | "sql" | "storageRules" | "traces" | "users" | "vectors" | "workflows";
96
+ interface StudioProps {
97
+ /**
98
+ * URL path prefix the studio is mounted under, passed to the router as its
99
+ * `basepath`. Defaults to `/` (mounted at the origin root). The `@lunora/vite`
100
+ * dev route serves the studio under `/__lunora`, so it sets this — without
101
+ * it the router treats `/__lunora` as unknown and bounces to `/data`, escaping
102
+ * the mount.
103
+ */
104
+ readonly basePath?: string;
105
+ /**
106
+ * App-owned top-bar + sidebar-footer chrome (theme toggle, admin-token
107
+ * popover, rules banner). The batteries-included `StudioApp` supplies
108
+ * this; composing `&lt;Studio>` bare omits those affordances. See {@link StudioChrome}.
109
+ */
110
+ readonly chrome?: StudioChrome;
111
+ /**
112
+ * Make the data tab editable (insert/edit/delete rows). Off by default so
113
+ * the studio is read-only unless the host opts in; see {@link TableEditor}.
114
+ */
115
+ readonly dataEditable?: boolean;
116
+ /**
117
+ * Functions exposed in the runner tab. The runner tab only appears when at
118
+ * least one descriptor is supplied (a query/mutation/action's `kind` is
119
+ * compile-time-only, so it must be named here).
120
+ */
121
+ readonly functions?: FunctionDescriptor[];
122
+ /** Reuse an existing Lingui instance (wins over `locale`). */
123
+ readonly i18n?: I18n;
124
+ /** Shard key every shard-scoped panel targets on first load. */
125
+ readonly initialShardKey?: string;
126
+ /** Active locale for the studio's own UI strings. Defaults to `en`. */
127
+ readonly locale?: string;
128
+ /**
129
+ * Inline OpenAPI 3.1 document rendered by the API tab's reference sub-view.
130
+ * Thread the generated `_generated/openapi.json` here to render it
131
+ * without a round-trip. When omitted the reference fetches the worker's
132
+ * admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
133
+ */
134
+ readonly openApiSpec?: unknown;
135
+ /**
136
+ * Inline OpenRPC 1.x document rendered by the API tab's reference sub-view
137
+ * when the OpenRPC format is selected. Thread the generated
138
+ * `_generated/openrpc.json` here to render it without a round-trip. When
139
+ * omitted the OpenRPC view fetches the worker's admin-gated
140
+ * `GET /_lunora/admin/openrpc` endpoint via the client.
141
+ */
142
+ readonly openRpcSpec?: unknown;
143
+ /**
144
+ * Allow the function runner to execute a function AS a chosen authenticated
145
+ * identity (the "Run as identity" tool), so an operator can test auth + RLS
146
+ * behavior. Security-sensitive: it forges identity on an admin-gated RPC, so
147
+ * the host MUST set this only on a trusted loopback-dev gate (the same gate
148
+ * as `dataEditable`) — never in a production/static deploy. Off by default;
149
+ * see {@link FunctionRunner}.
150
+ */
151
+ readonly runAsIdentity?: boolean;
152
+ /**
153
+ * Override how the schedule tab cancels a job. Defaults to the client's
154
+ * scheduler admin endpoint; see {@link SchedulePanel}.
155
+ */
156
+ readonly scheduledCancel?: SchedulePanelProps["scheduledCancel"];
157
+ /**
158
+ * Override how the schedule tab's Cron triggers sub-view loads triggers.
159
+ * Defaults to the client's `/_lunora/admin/cron-jobs` endpoint; see
160
+ * {@link SchedulePanel}.
161
+ */
162
+ readonly scheduledCron?: SchedulePanelProps["loadCronJobs"];
163
+ /**
164
+ * Override how the schedule tab loads jobs. Defaults to the client's
165
+ * scheduler admin endpoint, so the tab works without extra wiring.
166
+ */
167
+ readonly scheduledLoad?: SchedulePanelProps["scheduledLoad"];
168
+ /**
169
+ * Enable the visual schema editor overlay on the schema diagram (add table /
170
+ * column / index, written back to `lunora/schema.ts` + codegen). Off by default
171
+ * so the diagram stays read-only unless a host opts in. Like {@link
172
+ * StudioProps.dataEditable}, only the loopback-only dev hosts set this — the
173
+ * write path needs the project's filesystem + toolchain, so a static deploy
174
+ * leaves it off.
175
+ */
176
+ readonly schemaEditable?: boolean;
177
+ }
178
+ /**
179
+ * Top-bar + sidebar-footer chrome the `StudioApp` owns (theme + admin
180
+ * token state, the rules banner) but which renders *inside* the router-owned
181
+ * {@link StudioLayout} (the header and sidebar footer). The layout is a route
182
+ * component with no props, so it reads this from context rather than threading
183
+ * it through the router. Absent (composing `&lt;Studio>` bare) the layout simply
184
+ * omits those affordances.
185
+ */
186
+ interface StudioChrome {
187
+ readonly clearToken: () => void;
188
+ readonly onTokenChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
189
+ readonly rulesInstalled?: boolean;
190
+ readonly token: string;
191
+ }
192
+ /**
193
+ * The composable studio. {@link StudioShell} reads its strings from `useT`,
194
+ * which needs a `StudioI18nProvider` above it.
195
+ *
196
+ * When an `i18n` instance or a `locale` is supplied, this owns a provider so the
197
+ * studio localises itself standalone. When neither is given it renders the
198
+ * shell bare and inherits whatever provider is already in scope — the host app's
199
+ * (`StudioApp` owns one for the top bar too) or the shared default — instead
200
+ * of nesting a second, redundant provider.
201
+ */
202
+ declare const Studio: ({ basePath, chrome, dataEditable, functions, i18n, initialShardKey, locale, openApiSpec, openRpcSpec, runAsIdentity, schemaEditable, scheduledCancel, scheduledCron, scheduledLoad }: StudioProps) => ReactElement;
203
+ interface StudioAppProps {
204
+ /**
205
+ * Admin bearer token to send with every admin request. When omitted the app
206
+ * renders a small prompt so an operator can paste it at runtime — handy in
207
+ * dev where you don't want to bake the token into a bundle.
208
+ */
209
+ readonly adminToken?: string;
210
+ /**
211
+ * URL path prefix the studio is mounted under (router `basepath`). Defaults
212
+ * to `/`. The `@lunora/vite` dev route sets `/__lunora`. Forwarded to the
213
+ * composed {@link Studio}.
214
+ */
215
+ readonly basePath?: string;
216
+ /**
217
+ * Base URL of the Lunora worker the studio talks to. Defaults to the
218
+ * current origin, which is correct when the studio is served from the
219
+ * same worker (the `@lunora/vite` dev route) or proxied to it.
220
+ */
221
+ readonly baseUrl?: string;
222
+ /**
223
+ * Inject a pre-built client instead of constructing one from `baseUrl` +
224
+ * the admin token. Used by the dev mock harness (and embeddings that own
225
+ * the client) so the chrome renders against a supplied client; when set,
226
+ * `baseUrl`/`adminToken` are ignored and this client is never closed here.
227
+ */
228
+ readonly client?: LunoraClient;
229
+ /** UI language for the studio's own strings. Defaults to `en`. */
230
+ readonly locale?: string;
231
+ /**
232
+ * Whether the project's Lunora agent skills ("rules") are installed. When
233
+ * explicitly `false`, the studio shows a one-line banner pointing at
234
+ * `lunora rules install`. The loopback dev hosts inject this; a static deploy
235
+ * leaves it unset (no banner).
236
+ */
237
+ readonly rulesInstalled?: boolean;
238
+ /** Forwarded to the composed {@link Studio} (functions, initialShardKey, scheduled overrides). */
239
+ readonly studio?: Omit<StudioProps, "children" | "chrome" | "i18n" | "locale">;
240
+ }
241
+ /**
242
+ * A fully self-contained studio page: it constructs a {@link LunoraClient}
243
+ * pointed at the worker, wires it through a `&lt;LunoraProvider>`, manages the
244
+ * admin token + theme, and renders the composed {@link Studio} — handing it the
245
+ * top-bar/sidebar {@link StudioChrome} (theme toggle, admin-token popover, rules
246
+ * banner) so those affordances render inside the sidebar shell.
247
+ *
248
+ * Mount this directly (the standalone app and the `@lunora/vite` dev route both
249
+ * do) when you want the batteries-included page rather than composing panels
250
+ * yourself. For embedding into an existing admin UI, use the individual panels
251
+ * or `&lt;Studio>` under your own provider instead.
252
+ */
253
+ declare const StudioApp: ({ adminToken, basePath, baseUrl, client: injectedClient, rulesInstalled, studio, locale }?: StudioAppProps) => ReactElement;
254
+ export { FunctionDescriptor as F, RunStatus as R, StudioAppProps as S, FunctionKind as a, ScheduledJobs as b, ScheduledJobsProps as c, Studio as d, StudioApp as e, StudioProps as f, StudioTab as g };
@@ -172,4 +172,4 @@ function CardContent(t0) {
172
172
  return t2;
173
173
  }
174
174
 
175
- export { Card as C, CardContent as a, CardHeader as b, CardTitle as c, CardDescription as d };
175
+ export { Card as C, CardContent as a, CardTitle as b, CardHeader as c, CardDescription as d };
@@ -5,4 +5,4 @@ const CLOUDFLARE_R2_URL = `${CLOUDFLARE_DASH}/r2`;
5
5
  const CLOUDFLARE_D1_URL = `${CLOUDFLARE_DASH}/workers/d1`;
6
6
  const CLOUDFLARE_DURABLE_OBJECTS_URL = `${CLOUDFLARE_DASH}/workers/durable-objects`;
7
7
 
8
- export { CLOUDFLARE_D1_URL as C, CLOUDFLARE_OBSERVABILITY_URL as a, CLOUDFLARE_WORKERS_URL as b, CLOUDFLARE_DURABLE_OBJECTS_URL as c, CLOUDFLARE_R2_URL as d };
8
+ export { CLOUDFLARE_D1_URL as C, CLOUDFLARE_WORKERS_URL as a, CLOUDFLARE_OBSERVABILITY_URL as b, CLOUDFLARE_DURABLE_OBJECTS_URL as c, CLOUDFLARE_R2_URL as d };
@@ -2,11 +2,11 @@ import { c } from 'react/compiler-runtime';
2
2
  import { useNavigate } from '@tanstack/react-router';
3
3
  import { useState, useEffect, Suspense, lazy } from 'react';
4
4
  import { B as Badge } from './badge-B2PKA1-5.js';
5
- import { a as CardContent, C as Card } from './card-DURq3ElK.js';
5
+ import { a as CardContent, C as Card } from './card-F2vH_aj2.js';
6
6
  import { E as EmptyState } from './empty-state-DY_oe0k6.js';
7
7
  import { u as useAdminQuery } from './use-admin-query-BGJ010yZ.js';
8
8
  import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
9
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DNeyYtUN.js';
9
+ import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-C6TEeUiJ.js';
10
10
  import { f as fireAndForget, c as callOptions, a as adminRef, r as resolveOrigin, g as copyToClipboard, k as formatBytes } from './internal-zwBoOv24.js';
11
11
  import { c as cn } from './utils-B05Dmz_H.js';
12
12
  import { deriveInsights } from './DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js';
@@ -0,0 +1,18 @@
1
+ const stringifyFieldValue = (value) => {
2
+ if (typeof value === "string") {
3
+ return value;
4
+ }
5
+ try {
6
+ return JSON.stringify(value) ?? String(value);
7
+ } catch {
8
+ return String(value);
9
+ }
10
+ };
11
+ const formatLogFields = (fields) => {
12
+ if (typeof fields !== "object" || fields === null || Array.isArray(fields)) {
13
+ return "";
14
+ }
15
+ return Object.entries(fields).map(([key, value]) => `${key}=${stringifyFieldValue(value)}`).join(" ");
16
+ };
17
+
18
+ export { formatLogFields as f };