@ramme-io/kernel 5.0.1 → 6.0.1

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 (46) hide show
  1. package/README.md +87 -53
  2. package/dist/AiGateway-DsVWU6ih.js +3619 -0
  3. package/dist/index.es.js +8018 -7407
  4. package/dist/kernel/src/apps/quantize.d.ts +50 -0
  5. package/dist/kernel/src/apps/quantize.d.ts.map +1 -0
  6. package/dist/kernel/src/apps/spriteGrid.d.ts +47 -0
  7. package/dist/kernel/src/apps/spriteGrid.d.ts.map +1 -0
  8. package/dist/kernel/src/auth/AuthContext.d.ts +1 -1
  9. package/dist/kernel/src/auth/AuthContext.d.ts.map +1 -1
  10. package/dist/kernel/src/components/RammeInspector.d.ts +7 -1
  11. package/dist/kernel/src/components/RammeInspector.d.ts.map +1 -1
  12. package/dist/kernel/src/components/ThemeStudio.d.ts +116 -0
  13. package/dist/kernel/src/components/ThemeStudio.d.ts.map +1 -0
  14. package/dist/kernel/src/components/settings/AiSettingsPanel.d.ts.map +1 -1
  15. package/dist/kernel/src/config/app.manifest.d.ts +1 -1
  16. package/dist/kernel/src/engine/runtime/ManifestContext.d.ts +94 -94
  17. package/dist/kernel/src/engine/runtime/useLiveBridge.d.ts +93 -93
  18. package/dist/kernel/src/events/mockEventSource.d.ts +28 -0
  19. package/dist/kernel/src/events/mockEventSource.d.ts.map +1 -0
  20. package/dist/kernel/src/hooks/useAIKeyOrchestrator.d.ts +2 -2
  21. package/dist/kernel/src/hooks/useDevice.d.ts +5 -5
  22. package/dist/kernel/src/hooks/useDevice.d.ts.map +1 -1
  23. package/dist/kernel/src/index.d.ts +5 -0
  24. package/dist/kernel/src/index.d.ts.map +1 -1
  25. package/dist/kernel/src/renderers/AppDocumentRenderer.d.ts +39 -0
  26. package/dist/kernel/src/renderers/AppDocumentRenderer.d.ts.map +1 -0
  27. package/dist/kernel/src/server.d.ts +2 -0
  28. package/dist/kernel/src/server.d.ts.map +1 -1
  29. package/dist/kernel/src/services/ai/ConfigResolver.d.ts.map +1 -1
  30. package/dist/kernel/src/services/ai/generateAppDocument.d.ts +61 -0
  31. package/dist/kernel/src/services/ai/generateAppDocument.d.ts.map +1 -0
  32. package/dist/kernel/src/services/ai/providers/AnthropicAdapter.d.ts +16 -1
  33. package/dist/kernel/src/services/ai/providers/AnthropicAdapter.d.ts.map +1 -1
  34. package/dist/kernel/src/services/ai/providers/DeepSeekAdapter.d.ts.map +1 -1
  35. package/dist/kernel/src/services/ai/providers/GeminiAdapter.d.ts.map +1 -1
  36. package/dist/kernel/src/services/ai/providers/GrokAdapter.d.ts.map +1 -1
  37. package/dist/kernel/src/services/ai/providers/OllamaAdapter.d.ts.map +1 -1
  38. package/dist/kernel/src/services/ai/providers/OpenAIAdapter.d.ts.map +1 -1
  39. package/dist/kernel/src/services/ai/providers/openAiCompatibleStreamChat.d.ts +1 -1
  40. package/dist/kernel/src/services/ai/providers/openAiCompatibleStreamChat.d.ts.map +1 -1
  41. package/dist/kernel/src/stores/useSettingsStore.d.ts +7 -1
  42. package/dist/kernel/src/stores/useSettingsStore.d.ts.map +1 -1
  43. package/dist/kernel/src/utils/validationUtils.d.ts +103 -103
  44. package/dist/server.es.js +103 -41
  45. package/package.json +10 -5
  46. package/dist/AiGateway-DflFS1JW.js +0 -2796
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Turning a picture into sixteen colours and a grid.
3
+ *
4
+ * WHY THIS ENDS AT A GRID
5
+ *
6
+ * It could pack nibbles directly and save a step. It does not, because
7
+ * `gridToSprite` already exists, is already tested, and is already what a model
8
+ * and a person write. Ending here means one packing path with three producers —
9
+ * somebody typing, a model answering, and a photograph — rather than three
10
+ * encoders that agree until one of them does not.
11
+ *
12
+ * WHY MEDIAN CUT
13
+ *
14
+ * The naive approach is to snap every pixel to the nearest colour in a fixed
15
+ * palette, and it is what makes converted images look like they have a disease:
16
+ * a photo of a yellow robot on a grey desk has no reason to contain the seven
17
+ * colours a dashboard uses, so every pixel lands on whichever of them is least
18
+ * wrong. Median cut instead reads the colours that are actually in the picture
19
+ * and splits the busiest part of that space until it has enough boxes. A
20
+ * drawing keeps looking like itself.
21
+ *
22
+ * It is also about fifty lines and entirely deterministic, which matters: the
23
+ * same image must always produce the same sprite, or nothing downstream can be
24
+ * compared, cached or tested.
25
+ *
26
+ * PURE ON PURPOSE
27
+ *
28
+ * No canvas, no DOM, no Image. It takes the RGBA bytes a caller already has and
29
+ * returns data, so it runs under vitest in Node. The browser half — a file
30
+ * input, a canvas, a downscale — is twenty lines in the component that needs
31
+ * it, and is the part that cannot be tested anyway.
32
+ */
33
+ /** A colour as the document writes it: three space-separated integers. */
34
+ export type RgbTriplet = string;
35
+ export interface QuantizeResult {
36
+ /** Up to `maxColors` entries, in the order the grid indexes them. */
37
+ palette: RgbTriplet[];
38
+ /** One hex character per pixel, one line per row — feed to gridToSprite. */
39
+ grid: string;
40
+ }
41
+ /**
42
+ * Reduce an RGBA buffer to a small palette and a grid of indices.
43
+ *
44
+ * `rgba` is width * height * 4 bytes, as `CanvasRenderingContext2D.getImageData`
45
+ * produces. Fully transparent pixels are mapped to palette entry 0 rather than
46
+ * dropped: a sprite has no alpha channel, so transparency has to become a
47
+ * colour, and entry 0 is the one a document is expected to use as its ground.
48
+ */
49
+ export declare const quantize: (rgba: Uint8ClampedArray | number[], width: number, height: number, maxColors?: number) => QuantizeResult;
50
+ //# sourceMappingURL=quantize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quantize.d.ts","sourceRoot":"","sources":["../../../../src/apps/quantize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,0EAA0E;AAC1E,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,cAAc;IAC7B,qEAAqE;IACrE,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAC;CACd;AAiCD;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GACnB,MAAM,iBAAiB,GAAG,MAAM,EAAE,EAClC,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,kBAAc,KACb,cAuFF,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { AppColor } from '../../../shared/index.ts';
2
+
3
+ /** A sprite block, minus the discriminator the caller adds. */
4
+ export interface SpritePixels {
5
+ width: number;
6
+ height: number;
7
+ palette: AppColor[];
8
+ pixels: string;
9
+ }
10
+ export type SpriteGridResult = {
11
+ ok: true;
12
+ sprite: SpritePixels;
13
+ } | {
14
+ ok: false;
15
+ error: string;
16
+ };
17
+ /**
18
+ * A grid of palette indices into a sprite's packed pixels.
19
+ *
20
+ * Every rejection names the row, because "invalid grid" sends whoever wrote it
21
+ * — a person, or a model in a repair loop — back to read the whole thing.
22
+ */
23
+ export declare const gridToSprite: (grid: string, palette: AppColor[]) => SpriteGridResult;
24
+ /** The inverse, so a drawing can be read back, edited and round-tripped. */
25
+ export declare const spriteToGrid: (sprite: SpritePixels) => string;
26
+ /** One problem found while normalising, in the shape a Zod issue takes. */
27
+ export interface SpriteGridIssue {
28
+ path: (string | number)[];
29
+ message: string;
30
+ }
31
+ /**
32
+ * Rewrite every `grid` in a candidate document into `pixels`, in place of it.
33
+ *
34
+ * Runs before validation, so the schema never has to know the authoring form
35
+ * exists and the device never receives one. Issues come back in the same
36
+ * `path`/`message` shape Zod produces, so the generator's repair loop can feed
37
+ * them to the model without caring which layer complained.
38
+ *
39
+ * Takes and returns `unknown`: this is a model's reply, not a document, and
40
+ * calling it one before it validates is how a repair loop ends up trusting
41
+ * something it just failed to parse.
42
+ */
43
+ export declare const normalizeSpriteGrids: (candidate: unknown) => {
44
+ value: unknown;
45
+ issues: SpriteGridIssue[];
46
+ };
47
+ //# sourceMappingURL=spriteGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spriteGrid.d.ts","sourceRoot":"","sources":["../../../../src/apps/spriteGrid.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,gBAAgB,GACxB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,GAClC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AA0BjC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,SAAS,QAAQ,EAAE,KAAG,gBAiEhE,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,YAAY,GAAI,QAAQ,YAAY,KAAG,MAanD,CAAC;AAEF,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,GAC/B,WAAW,OAAO,KACjB;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAkC7C,CAAC"}
@@ -15,7 +15,7 @@ export interface AuthContextType {
15
15
  isLoading: boolean;
16
16
  quickProfiles: QuickProfile[];
17
17
  }
18
- export declare const AuthContext: React.Context<AuthContextType>;
18
+ export declare const AuthContext: React.Context<AuthContextType | undefined>;
19
19
  export declare const AuthProvider: React.FC<{
20
20
  children: React.ReactNode;
21
21
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../src/auth/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA8B7C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,EAAE,YAAY,EAGxC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,gCAAwD,CAAC;AAEjF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAiFhE,CAAC;AAEF,eAAO,MAAM,OAAO,uBAMnB,CAAC"}
1
+ {"version":3,"file":"AuthContext.d.ts","sourceRoot":"","sources":["../../../../src/auth/AuthContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA8B7C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,EAAE,YAAY,EAGxC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,4CAAwD,CAAC;AAEjF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAiFhE,CAAC;AAEF,eAAO,MAAM,OAAO,uBAMnB,CAAC"}
@@ -1,4 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const RammeInspector: React.FC;
3
+ export interface RammeInspectorProps {
4
+ /** Which settings tab opens first. See SettingsContainer. */
5
+ defaultTab?: 'general' | 'ai-gateway' | 'theme-lab' | 'about';
6
+ /** Heading above the tabs; `null` when the host already provides one. */
7
+ title?: React.ReactNode;
8
+ }
9
+ export declare const RammeInspector: React.FC<RammeInspectorProps>;
4
10
  //# sourceMappingURL=RammeInspector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RammeInspector.d.ts","sourceRoot":"","sources":["../../../../src/components/RammeInspector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA6BhE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAuJlC,CAAC"}
1
+ {"version":3,"file":"RammeInspector.d.ts","sourceRoot":"","sources":["../../../../src/components/RammeInspector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2C,MAAM,OAAO,CAAC;AA8BhE,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,UAAU,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IAC9D,yEAAyE;IACzE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4JxD,CAAC"}
@@ -0,0 +1,116 @@
1
+ import { default as React } from 'react';
2
+
3
+ /**
4
+ * ThemeStudio — the theme creator as a self-contained drawer.
5
+ *
6
+ * WHY THIS EXISTS
7
+ *
8
+ * The studio itself (ThemeLab: aesthetic profiles, AI synthesis, live palette
9
+ * editing, fine-tuning, save/revert) was never missing. What was missing was a
10
+ * way to open it that did not run through the host application's architecture.
11
+ * Reaching it previously meant:
12
+ *
13
+ * - threading four props through `AppShell` (`inspectorSlot`,
14
+ * `isInspectorOpen`, `setInspectorOpen`, `inspectorWidth`), and
15
+ * - routing `SettingsLayout` + `settings.sitemap.ts`, which three of the four
16
+ * products in this repo never did, and
17
+ * - discovering either an undocumented keyboard shortcut or an easter egg
18
+ * that wanted five clicks on the logo — which is also a link to `/`, so the
19
+ * clicks navigate instead of counting.
20
+ *
21
+ * All of that is layout and routing that a new build has to reproduce before it
22
+ * can theme itself. This component removes the dependency: mount it anywhere
23
+ * inside the providers and the studio is available. Nothing is added to the
24
+ * app's route table, sitemap, or shell.
25
+ *
26
+ * @example Drop-in — no chrome of its own; Ctrl+Alt+S / Cmd+Shift+I opens it
27
+ * ```tsx
28
+ * <ThemeStudio />
29
+ * ```
30
+ *
31
+ * @example Triggered from the host's own account menu — the intended integration
32
+ * ```tsx
33
+ * const { open } = useThemeStudio();
34
+ * <ButtonItem icon="palette" label="Theme Studio" onClick={open} />
35
+ * // ...and once, anywhere inside the providers:
36
+ * <ThemeStudio showTrigger={false} />
37
+ * ```
38
+ *
39
+ * @example Fully controlled, when the host owns the state
40
+ * ```tsx
41
+ * <ThemeStudio open={open} onOpenChange={setOpen} showTrigger={false} />
42
+ * ```
43
+ *
44
+ * Composed, not built: `Drawer` from @ramme-io/ui already portals out of the
45
+ * layout, dismisses on Escape and overlay click, and locks background scroll
46
+ * without losing the reader's position (see `useBodyScrollLock`). `Drawer`
47
+ * rather than `DetailDrawer` on purpose — the studio should float above the app
48
+ * it is restyling, not push its layout around and change the very measurements
49
+ * you are trying to judge.
50
+ */
51
+ export interface ThemeStudioProps {
52
+ /**
53
+ * Open state. Omit to let the component manage it through the settings store,
54
+ * which is also what the Ctrl+Alt+S / Cmd+Shift+I shortcut drives.
55
+ */
56
+ open?: boolean;
57
+ /** Called with the next open state. Required only when `open` is passed. */
58
+ onOpenChange?: (open: boolean) => void;
59
+ /**
60
+ * Render the built-in floating trigger. **Off by default: the bottom-right
61
+ * corner is already spoken for.** Every product parks the AI assistant's FAB
62
+ * at `bottom-6 right-6`, its chat panel opens at `bottom-24 right-6`, and
63
+ * ToastProvider stacks at `bottom-4 right-4`. A component that plants a
64
+ * button there is fighting three things it cannot see.
65
+ *
66
+ * Prefer `useThemeStudio()` from wherever the host keeps admin controls. The
67
+ * keyboard shortcut works with no wiring at all, so a bare `<ThemeStudio />`
68
+ * is already usable before an app has any chrome.
69
+ */
70
+ showTrigger?: boolean;
71
+ /**
72
+ * Where the trigger sits when `showTrigger` is on. Defaults to the bottom
73
+ * *left* — the only free corner — rather than stacking above the assistant,
74
+ * because `bottom-24` is where its chat panel opens.
75
+ */
76
+ triggerClassName?: string;
77
+ /** Drawer width. Defaults to `xl` (80vw) — the palette canvas needs room. */
78
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'full' | string;
79
+ /** Bind the keyboard shortcut. On by default. */
80
+ enableShortcut?: boolean;
81
+ }
82
+ /**
83
+ * Open the studio from anywhere in the host's own chrome.
84
+ *
85
+ * Exists so a trigger does not have to reach into the settings store and know
86
+ * that the flag is called `isInspectorOpen`. Pair it with
87
+ * `<ThemeStudio showTrigger={false} />` mounted once.
88
+ */
89
+ export declare function useThemeStudio(): {
90
+ isOpen: boolean;
91
+ open: () => void;
92
+ close: () => void;
93
+ toggle: () => void;
94
+ };
95
+ /**
96
+ * Put the app back to the theme its creator shipped.
97
+ *
98
+ * Two systems paint the theme and neither knows about the other:
99
+ * `useSettingsStore` injects six CSS variables from ThemeLab's swatches, and
100
+ * `ThemeContext` injects roughly twenty-five from the theme mode and any
101
+ * `defaultCustomTheme` the app passed to `<ThemeProvider>`. Resetting one alone
102
+ * leaves the other winning, so the page ends up half-reset.
103
+ *
104
+ * Order matters: strip the store's overrides off the element first, then let
105
+ * ThemeContext re-apply the app's own theme over clean ground.
106
+ *
107
+ * This is the only layer that can do it. @ramme-io/ui holds the context and
108
+ * @ramme-io/kernel holds the store, and the dependency runs kernel → ui, so ui
109
+ * cannot reach back for the store.
110
+ *
111
+ * Scope: this is per-browser localStorage. It restores what the creator shipped
112
+ * *for this visitor*, and changes nothing about the deployed app.
113
+ */
114
+ export declare function useResetTheme(): () => void;
115
+ export declare const ThemeStudio: React.FC<ThemeStudioProps>;
116
+ //# sourceMappingURL=ThemeStudio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeStudio.d.ts","sourceRoot":"","sources":["../../../../src/components/ThemeStudio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiC,MAAM,OAAO,CAAC;AActD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IACnD,iDAAiD;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CASA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,IAAI,MAAM,IAAI,CAO1C;AAyCD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+FlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AiSettingsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/settings/AiSettingsPanel.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsQ1D,CAAC"}
1
+ {"version":3,"file":"AiSettingsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/settings/AiSettingsPanel.tsx"],"names":[],"mappings":"AACA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwQ1D,CAAC"}
@@ -2,6 +2,6 @@ export declare const appManifest: {
2
2
  name: string;
3
3
  version: string;
4
4
  capabilities: string[];
5
- navigation: any[];
5
+ navigation: never[];
6
6
  };
7
7
  //# sourceMappingURL=app.manifest.d.ts.map
@@ -7,115 +7,115 @@ interface ManifestProviderProps {
7
7
  }
8
8
  export declare const ManifestProvider: React.FC<ManifestProviderProps>;
9
9
  export declare const useManifest: () => {
10
- meta?: {
11
- description?: string;
12
- name?: string;
13
- version?: string;
14
- author?: string;
15
- createdAt?: string;
10
+ meta: {
11
+ name: string;
12
+ version: string;
13
+ description?: string | undefined;
14
+ author?: string | undefined;
15
+ createdAt?: string | undefined;
16
16
  };
17
- config?: {
18
- theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
19
- layout?: "dashboard" | "explorer" | "studio" | "focus";
20
- mockMode?: boolean;
21
- brokerUrl?: string;
17
+ config: {
18
+ theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
19
+ layout: "dashboard" | "explorer" | "studio" | "focus";
20
+ mockMode: boolean;
21
+ brokerUrl?: string | undefined;
22
22
  aiKeyManifest?: {
23
- status?: "VALID" | "KEY_EXPIRED" | "BYOK_REQUIRED" | "DEGRADED" | "UNKNOWN";
24
- strategy?: "ENVIRONMENT" | "SESSION_BYOK" | "VAULT";
25
- };
23
+ status: "VALID" | "KEY_EXPIRED" | "BYOK_REQUIRED" | "DEGRADED" | "UNKNOWN";
24
+ strategy: "ENVIRONMENT" | "SESSION_BYOK" | "VAULT";
25
+ } | undefined;
26
26
  };
27
- resources?: {
28
- id?: string;
29
- name?: string;
30
- fields?: {
31
- key?: string;
32
- label?: string;
33
- type?: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
34
- required?: boolean;
35
- description?: string;
36
- defaultValue?: any;
37
- }[];
38
- defaultView?: "table" | "grid" | "list";
39
- features?: {
40
- searchable?: boolean;
41
- creatable?: boolean;
42
- editable?: boolean;
43
- deletable?: boolean;
44
- exportable?: boolean;
45
- };
46
- }[];
47
- domain?: {
48
- signals?: {
49
- label?: string;
50
- description?: string;
27
+ domain: {
28
+ signals: {
29
+ label: string;
30
+ id: string;
31
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
32
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
33
+ refreshRate: number;
34
+ description?: string | undefined;
51
35
  defaultValue?: any;
52
- id?: string;
53
- kind?: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
54
- source?: "mock" | "mqtt" | "http" | "derived" | "local";
55
- topic?: string;
56
- endpoint?: string;
57
- jsonPath?: string;
58
- refreshRate?: number;
59
- unit?: string;
60
- min?: number;
61
- max?: number;
36
+ topic?: string | undefined;
37
+ endpoint?: string | undefined;
38
+ jsonPath?: string | undefined;
39
+ unit?: string | undefined;
40
+ min?: number | undefined;
41
+ max?: number | undefined;
62
42
  }[];
63
- entities?: {
64
- type?: string;
65
- description?: string;
66
- id?: string;
67
- name?: string;
68
- category?: string;
69
- signals?: string[];
43
+ entities: {
44
+ type: string;
45
+ id: string;
46
+ name: string;
47
+ category: string;
48
+ signals: string[];
49
+ description?: string | undefined;
70
50
  ui?: {
71
- icon?: string;
72
- color?: string;
73
- dashboardComponent?: string;
74
- };
51
+ icon?: string | undefined;
52
+ color?: string | undefined;
53
+ dashboardComponent?: string | undefined;
54
+ } | undefined;
75
55
  }[];
76
56
  workflows?: {
77
- id?: string;
78
- name?: string;
79
- active?: boolean;
80
- trigger?: {
81
- config?: Record<string, any>;
82
- type?: "signal_change" | "manual_action" | "schedule" | "webhook";
83
- id?: string;
57
+ id: string;
58
+ name: string;
59
+ active: boolean;
60
+ trigger: {
61
+ config: Record<string, any>;
62
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
63
+ id: string;
84
64
  };
85
- actions?: {
86
- config?: Record<string, any>;
87
- type?: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
88
- id?: string;
65
+ actions: {
66
+ config: Record<string, any>;
67
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
68
+ id: string;
89
69
  }[];
90
- }[];
70
+ }[] | undefined;
91
71
  };
72
+ resources?: {
73
+ id: string;
74
+ name: string;
75
+ fields: {
76
+ key: string;
77
+ label: string;
78
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
79
+ required?: boolean | undefined;
80
+ description?: string | undefined;
81
+ defaultValue?: any;
82
+ }[];
83
+ defaultView?: "table" | "grid" | "list" | undefined;
84
+ features?: {
85
+ searchable?: boolean | undefined;
86
+ creatable?: boolean | undefined;
87
+ editable?: boolean | undefined;
88
+ deletable?: boolean | undefined;
89
+ exportable?: boolean | undefined;
90
+ } | undefined;
91
+ }[] | undefined;
92
92
  pages?: {
93
- description?: string;
94
- id?: string;
95
- icon?: string;
96
- title?: string;
97
- slug?: string;
98
- sections?: {
99
- description?: string;
100
- id?: string;
101
- layout?: {
102
- columns?: number;
103
- variant?: "grid" | "stack" | "split";
104
- };
105
- title?: string;
106
- blocks?: {
107
- type?: string;
108
- id?: string;
109
- props?: Record<string, any>;
93
+ id: string;
94
+ title: string;
95
+ slug: string;
96
+ sections: {
97
+ id: string;
98
+ blocks: {
99
+ type: string;
100
+ id: string;
101
+ props: Record<string, any>;
110
102
  layout?: {
111
- colSpan?: number;
112
- rowSpan?: number;
113
- };
103
+ colSpan?: number | undefined;
104
+ rowSpan?: number | undefined;
105
+ } | undefined;
114
106
  }[];
107
+ description?: string | undefined;
108
+ layout?: {
109
+ columns?: number | undefined;
110
+ variant?: "grid" | "stack" | "split" | undefined;
111
+ } | undefined;
112
+ title?: string | undefined;
115
113
  }[];
116
- }[];
117
- modules?: string[];
114
+ description?: string | undefined;
115
+ icon?: string | undefined;
116
+ }[] | undefined;
117
+ modules?: string[] | undefined;
118
118
  };
119
- export declare const useBridgeStatus: () => "live" | "static";
119
+ export declare const useBridgeStatus: () => "static" | "live";
120
120
  export {};
121
121
  //# sourceMappingURL=ManifestContext.d.ts.map