@lunora/studio 1.0.0-alpha.94 → 1.0.0-alpha.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FunctionDescriptor } from "./packem_shared/app.d-
|
|
2
|
-
export { type a as FunctionKind, type R as RunStatus, b as ScheduledJobs, type c as ScheduledJobsProps, d as Studio, e as StudioApp, type S as StudioAppProps, type f as StudioProps } from "./packem_shared/app.d-
|
|
1
|
+
import { F as FunctionDescriptor } from "./packem_shared/app.d-D1bPR8FO.js";
|
|
2
|
+
export { type a as FunctionKind, type R as RunStatus, b as ScheduledJobs, type c as ScheduledJobsProps, d as Studio, e as StudioApp, type S as StudioAppProps, type f as StudioProps } from "./packem_shared/app.d-D1bPR8FO.js";
|
|
3
3
|
import { ReactElement, ReactNode, ErrorInfo, Component, ChangeEvent } from 'react';
|
|
4
4
|
import '@lunora/advisor';
|
|
5
5
|
import { CapturedMail } from '@lunora/mail';
|
|
@@ -106,7 +106,7 @@ interface ShardInputProps {
|
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* Shard-key text field shared by every shard-scoped panel. Backed by a
|
|
109
|
-
*
|
|
109
|
+
* `<datalist>` of recently-used shard keys (see {@link loadRecentShards}) so an
|
|
110
110
|
* operator can pick a shard they've visited instead of retyping it — the closest
|
|
111
111
|
* to a shard picker possible without server-side shard enumeration, which
|
|
112
112
|
* Durable Objects don't support. Panels remain responsible for recording a shard
|
|
@@ -332,7 +332,7 @@ type LogLevel = "debug" | "error" | "fatal" | "info" | "log" | "trace" | "warn";
|
|
|
332
332
|
*/
|
|
333
333
|
interface LogEntry {
|
|
334
334
|
exitCode?: number;
|
|
335
|
-
/** Structured fields from a `ctx.log
|
|
335
|
+
/** Structured fields from a `ctx.log.<level>(message, fields)` / `ctx.log.with(fields)` call, when present. */
|
|
336
336
|
fields?: Record<string, unknown>;
|
|
337
337
|
functionPath?: string;
|
|
338
338
|
instance?: string;
|
|
@@ -1236,7 +1236,7 @@ interface SchemaViewerProps {
|
|
|
1236
1236
|
readonly initialShardKey?: string;
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Table to auto-expand once the shard's tables load. Set by the Insights
|
|
1239
|
-
* "add the index" deep-link (`/schema?table
|
|
1239
|
+
* "add the index" deep-link (`/schema?table=<name>`) so the operator lands
|
|
1240
1240
|
* directly on the scanned table's index list instead of hunting for it.
|
|
1241
1241
|
* Re-applied whenever the value changes, so following the link a second time
|
|
1242
1242
|
* (same tab already open) re-expands the target.
|
package/dist/mount.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Root } from 'react-dom/client';
|
|
2
|
-
import { S as StudioAppProps } from "./packem_shared/app.d-
|
|
2
|
+
import { S as StudioAppProps } from "./packem_shared/app.d-D1bPR8FO.js";
|
|
3
3
|
import '@lunora/client';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@lingui/core';
|
|
@@ -15,7 +15,7 @@ interface MountStudioOptions extends StudioAppProps {
|
|
|
15
15
|
* Mount the batteries-included {@link StudioApp} into the DOM and return the
|
|
16
16
|
* React root (call `.unmount()` to tear it down). This is the entry the
|
|
17
17
|
* standalone app's `main.tsx` and the `@lunora/vite` dev route both call — it
|
|
18
|
-
* keeps the host HTML to a single
|
|
18
|
+
* keeps the host HTML to a single `<div id="root">` plus one script.
|
|
19
19
|
*/
|
|
20
20
|
declare const mountStudio: (options?: MountStudioOptions) => Root;
|
|
21
21
|
export { MountStudioOptions, mountStudio };
|
|
@@ -5,7 +5,7 @@ interface CronTriggersPanelProps {
|
|
|
5
5
|
/**
|
|
6
6
|
* Load the code-defined cron triggers. Defaults to `client.getCronJobs`,
|
|
7
7
|
* which hits the worker's admin-gated `/_lunora/admin/cron-jobs` endpoint —
|
|
8
|
-
* so the panel works out of the box under
|
|
8
|
+
* so the panel works out of the box under `<LunoraProvider>`, provided the
|
|
9
9
|
* worker is built with a `cronJobs` map and `adminToken`. Override it to
|
|
10
10
|
* source triggers from elsewhere (e.g. tests).
|
|
11
11
|
*/
|
|
@@ -35,7 +35,7 @@ interface ScheduledJobsProps {
|
|
|
35
35
|
/**
|
|
36
36
|
* Load the pending scheduled jobs. Defaults to `client.listScheduledJobs`,
|
|
37
37
|
* which hits the worker's admin-gated `/_lunora/admin/scheduled` endpoint —
|
|
38
|
-
* so the panel works out of the box under
|
|
38
|
+
* so the panel works out of the box under `<LunoraProvider>`, provided the
|
|
39
39
|
* worker is built with a `schedulerDO` namespace and `adminToken`. Override
|
|
40
40
|
* it to source jobs from elsewhere.
|
|
41
41
|
*/
|
|
@@ -46,7 +46,7 @@ interface ScheduledJobsProps {
|
|
|
46
46
|
* scheduler. Cron *triggers* are static wrangler config and don't appear here;
|
|
47
47
|
* this lists the dynamic, in-flight schedule only.
|
|
48
48
|
*
|
|
49
|
-
* Works out of the box under
|
|
49
|
+
* Works out of the box under `<LunoraProvider>` via the client's scheduler
|
|
50
50
|
* admin methods; pass {@link ScheduledJobsProps.loadJobs} /
|
|
51
51
|
* {@link ScheduledJobsProps.cancelJob} to override the transport.
|
|
52
52
|
*/
|
|
@@ -86,7 +86,7 @@ interface FunctionArgumentDescriptor {
|
|
|
86
86
|
interface FunctionDescriptor {
|
|
87
87
|
args?: FunctionArgumentDescriptor[];
|
|
88
88
|
kind: FunctionKind;
|
|
89
|
-
/** The
|
|
89
|
+
/** The `<file>:<function>` identifier, e.g. `messages:list`. */
|
|
90
90
|
path: string;
|
|
91
91
|
}
|
|
92
92
|
/** Outcome of a single `FunctionRunner` invocation. */
|
|
@@ -103,7 +103,7 @@ interface StudioProps {
|
|
|
103
103
|
/**
|
|
104
104
|
* App-owned top-bar + sidebar-footer chrome (theme toggle, admin-token
|
|
105
105
|
* popover, rules banner). The batteries-included `StudioApp` supplies
|
|
106
|
-
* this; composing
|
|
106
|
+
* this; composing `<Studio>` bare omits those affordances. See {@link StudioChrome}.
|
|
107
107
|
*/
|
|
108
108
|
readonly chrome?: StudioChrome;
|
|
109
109
|
/**
|
|
@@ -178,7 +178,7 @@ interface StudioProps {
|
|
|
178
178
|
* token state, the rules banner) but which renders *inside* the router-owned
|
|
179
179
|
* {@link StudioLayout} (the header and sidebar footer). The layout is a route
|
|
180
180
|
* component with no props, so it reads this from context rather than threading
|
|
181
|
-
* it through the router. Absent (composing
|
|
181
|
+
* it through the router. Absent (composing `<Studio>` bare) the layout simply
|
|
182
182
|
* omits those affordances.
|
|
183
183
|
*/
|
|
184
184
|
interface StudioChrome {
|
|
@@ -238,7 +238,7 @@ interface StudioAppProps {
|
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
240
|
* A fully self-contained studio page: it constructs a {@link LunoraClient}
|
|
241
|
-
* pointed at the worker, wires it through a
|
|
241
|
+
* pointed at the worker, wires it through a `<LunoraProvider>`, manages the
|
|
242
242
|
* admin token + theme, and renders the composed {@link Studio} — handing it the
|
|
243
243
|
* top-bar/sidebar {@link StudioChrome} (theme toggle, admin-token popover, rules
|
|
244
244
|
* banner) so those affordances render inside the sidebar shell.
|
|
@@ -246,7 +246,7 @@ interface StudioAppProps {
|
|
|
246
246
|
* Mount this directly (the standalone app and the `@lunora/vite` dev route both
|
|
247
247
|
* do) when you want the batteries-included page rather than composing panels
|
|
248
248
|
* yourself. For embedding into an existing admin UI, use the individual panels
|
|
249
|
-
* or
|
|
249
|
+
* or `<Studio>` under your own provider instead.
|
|
250
250
|
*/
|
|
251
251
|
declare const StudioApp: ({ adminToken, basePath, baseUrl, client: injectedClient, rulesInstalled, studio, locale }?: StudioAppProps) => ReactElement;
|
|
252
252
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/studio",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.95",
|
|
4
4
|
"description": "The Lunora Studio: a local admin UI for your schema, data, logs, and advisors",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"admin-ui",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"@hugeicons/react": "^1.1.9",
|
|
59
59
|
"@lingui/core": "^6.6.0",
|
|
60
60
|
"@lingui/message-utils": "^6.6.0",
|
|
61
|
-
"@lunora/advisor": "1.0.0-alpha.
|
|
62
|
-
"@lunora/bindings": "1.0.0-alpha.
|
|
63
|
-
"@lunora/client": "1.0.0-alpha.
|
|
64
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
65
|
-
"@lunora/react": "1.0.0-alpha.
|
|
61
|
+
"@lunora/advisor": "1.0.0-alpha.67",
|
|
62
|
+
"@lunora/bindings": "1.0.0-alpha.20",
|
|
63
|
+
"@lunora/client": "1.0.0-alpha.40",
|
|
64
|
+
"@lunora/errors": "1.0.0-alpha.14",
|
|
65
|
+
"@lunora/react": "1.0.0-alpha.44",
|
|
66
66
|
"@tanstack/react-query": "^5.101.4",
|
|
67
67
|
"@tanstack/react-router": "^1.170.18",
|
|
68
68
|
"@tanstack/react-table": "^8.21.3",
|