@ramme-io/kernel 6.0.0 → 6.0.2
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/AiGateway-DsVWU6ih.js +3619 -0
- package/dist/index.es.js +5075 -4786
- package/dist/kernel/src/apps/quantize.d.ts +50 -0
- package/dist/kernel/src/apps/quantize.d.ts.map +1 -0
- package/dist/kernel/src/apps/spriteGrid.d.ts +47 -0
- package/dist/kernel/src/apps/spriteGrid.d.ts.map +1 -0
- package/dist/kernel/src/auth/AuthContext.d.ts +1 -1
- package/dist/kernel/src/auth/AuthContext.d.ts.map +1 -1
- package/dist/kernel/src/components/ThemeStudio.d.ts.map +1 -1
- package/dist/kernel/src/components/settings/AiSettingsPanel.d.ts.map +1 -1
- package/dist/kernel/src/config/app.manifest.d.ts +1 -1
- package/dist/kernel/src/engine/runtime/ManifestContext.d.ts +94 -94
- package/dist/kernel/src/engine/runtime/useLiveBridge.d.ts +93 -93
- package/dist/kernel/src/hooks/useAIKeyOrchestrator.d.ts +2 -2
- package/dist/kernel/src/hooks/useDevice.d.ts +5 -5
- package/dist/kernel/src/hooks/useDevice.d.ts.map +1 -1
- package/dist/kernel/src/index.d.ts +3 -0
- package/dist/kernel/src/index.d.ts.map +1 -1
- package/dist/kernel/src/renderers/AppDocumentRenderer.d.ts +39 -0
- package/dist/kernel/src/renderers/AppDocumentRenderer.d.ts.map +1 -0
- package/dist/kernel/src/server.d.ts +2 -0
- package/dist/kernel/src/server.d.ts.map +1 -1
- package/dist/kernel/src/services/NeuralGateway.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/ConfigResolver.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/generateAppDocument.d.ts +61 -0
- package/dist/kernel/src/services/ai/generateAppDocument.d.ts.map +1 -0
- package/dist/kernel/src/services/ai/models.test.d.ts +2 -0
- package/dist/kernel/src/services/ai/models.test.d.ts.map +1 -0
- package/dist/kernel/src/services/ai/providers/AnthropicAdapter.d.ts +17 -2
- package/dist/kernel/src/services/ai/providers/AnthropicAdapter.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/providers/DeepSeekAdapter.d.ts +2 -2
- package/dist/kernel/src/services/ai/providers/DeepSeekAdapter.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/providers/GeminiAdapter.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/providers/GrokAdapter.d.ts +2 -2
- package/dist/kernel/src/services/ai/providers/GrokAdapter.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/providers/OllamaAdapter.d.ts +1 -1
- package/dist/kernel/src/services/ai/providers/OllamaAdapter.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/providers/OpenAIAdapter.d.ts +1 -1
- package/dist/kernel/src/services/ai/providers/OpenAIAdapter.d.ts.map +1 -1
- package/dist/kernel/src/services/ai/providers/openAiCompatibleStreamChat.d.ts +1 -1
- package/dist/kernel/src/services/ai/providers/openAiCompatibleStreamChat.d.ts.map +1 -1
- package/dist/kernel/src/setupTests.d.ts +2 -0
- package/dist/kernel/src/setupTests.d.ts.map +1 -0
- package/dist/kernel/src/stores/useSettingsStore.d.ts +1 -1
- package/dist/kernel/src/stores/useSettingsStore.d.ts.map +1 -1
- package/dist/kernel/src/stores/useSettingsStore.test.d.ts +2 -0
- package/dist/kernel/src/stores/useSettingsStore.test.d.ts.map +1 -0
- package/dist/kernel/src/utils/validationUtils.d.ts +103 -103
- package/dist/server.es.js +105 -42
- package/package.json +12 -4
- package/dist/AiGateway-DLGiTtyR.js +0 -3001
|
@@ -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,E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sources":["../../../../src/components/ThemeStudio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiC,MAAM,OAAO,CAAC;
|
|
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,
|
|
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"}
|
|
@@ -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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
19
|
-
layout
|
|
20
|
-
mockMode
|
|
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
|
|
24
|
-
strategy
|
|
25
|
-
};
|
|
23
|
+
status: "VALID" | "KEY_EXPIRED" | "BYOK_REQUIRED" | "DEGRADED" | "UNKNOWN";
|
|
24
|
+
strategy: "ENVIRONMENT" | "SESSION_BYOK" | "VAULT";
|
|
25
|
+
} | undefined;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
78
|
-
name
|
|
79
|
-
active
|
|
80
|
-
trigger
|
|
81
|
-
config
|
|
82
|
-
type
|
|
83
|
-
id
|
|
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
|
|
87
|
-
type
|
|
88
|
-
id
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
icon?: string | undefined;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
modules?: string[] | undefined;
|
|
118
118
|
};
|
|
119
|
-
export declare const useBridgeStatus: () => "
|
|
119
|
+
export declare const useBridgeStatus: () => "static" | "live";
|
|
120
120
|
export {};
|
|
121
121
|
//# sourceMappingURL=ManifestContext.d.ts.map
|
|
@@ -1,113 +1,113 @@
|
|
|
1
1
|
export declare function useLiveBridge(): {
|
|
2
2
|
manifest: {
|
|
3
|
-
meta
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
author?: string;
|
|
8
|
-
createdAt?: string;
|
|
3
|
+
meta: {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
author?: string | undefined;
|
|
8
|
+
createdAt?: string | undefined;
|
|
9
9
|
};
|
|
10
|
-
config
|
|
11
|
-
theme
|
|
12
|
-
layout
|
|
13
|
-
mockMode
|
|
14
|
-
brokerUrl?: string;
|
|
10
|
+
config: {
|
|
11
|
+
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
|
|
12
|
+
layout: "dashboard" | "explorer" | "studio" | "focus";
|
|
13
|
+
mockMode: boolean;
|
|
14
|
+
brokerUrl?: string | undefined;
|
|
15
15
|
aiKeyManifest?: {
|
|
16
|
-
status
|
|
17
|
-
strategy
|
|
18
|
-
};
|
|
16
|
+
status: "VALID" | "KEY_EXPIRED" | "BYOK_REQUIRED" | "DEGRADED" | "UNKNOWN";
|
|
17
|
+
strategy: "ENVIRONMENT" | "SESSION_BYOK" | "VAULT";
|
|
18
|
+
} | undefined;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
description?: string;
|
|
29
|
-
defaultValue?: any;
|
|
30
|
-
}[];
|
|
31
|
-
defaultView?: "table" | "grid" | "list";
|
|
32
|
-
features?: {
|
|
33
|
-
searchable?: boolean;
|
|
34
|
-
creatable?: boolean;
|
|
35
|
-
editable?: boolean;
|
|
36
|
-
deletable?: boolean;
|
|
37
|
-
exportable?: boolean;
|
|
38
|
-
};
|
|
39
|
-
}[];
|
|
40
|
-
domain?: {
|
|
41
|
-
signals?: {
|
|
42
|
-
label?: string;
|
|
43
|
-
description?: string;
|
|
20
|
+
domain: {
|
|
21
|
+
signals: {
|
|
22
|
+
label: string;
|
|
23
|
+
id: string;
|
|
24
|
+
kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
|
|
25
|
+
source: "mock" | "mqtt" | "http" | "derived" | "local";
|
|
26
|
+
refreshRate: number;
|
|
27
|
+
description?: string | undefined;
|
|
44
28
|
defaultValue?: any;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
refreshRate?: number;
|
|
52
|
-
unit?: string;
|
|
53
|
-
min?: number;
|
|
54
|
-
max?: number;
|
|
29
|
+
topic?: string | undefined;
|
|
30
|
+
endpoint?: string | undefined;
|
|
31
|
+
jsonPath?: string | undefined;
|
|
32
|
+
unit?: string | undefined;
|
|
33
|
+
min?: number | undefined;
|
|
34
|
+
max?: number | undefined;
|
|
55
35
|
}[];
|
|
56
|
-
entities
|
|
57
|
-
type
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
36
|
+
entities: {
|
|
37
|
+
type: string;
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
category: string;
|
|
41
|
+
signals: string[];
|
|
42
|
+
description?: string | undefined;
|
|
63
43
|
ui?: {
|
|
64
|
-
icon?: string;
|
|
65
|
-
color?: string;
|
|
66
|
-
dashboardComponent?: string;
|
|
67
|
-
};
|
|
44
|
+
icon?: string | undefined;
|
|
45
|
+
color?: string | undefined;
|
|
46
|
+
dashboardComponent?: string | undefined;
|
|
47
|
+
} | undefined;
|
|
68
48
|
}[];
|
|
69
49
|
workflows?: {
|
|
70
|
-
id
|
|
71
|
-
name
|
|
72
|
-
active
|
|
73
|
-
trigger
|
|
74
|
-
config
|
|
75
|
-
type
|
|
76
|
-
id
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
active: boolean;
|
|
53
|
+
trigger: {
|
|
54
|
+
config: Record<string, any>;
|
|
55
|
+
type: "signal_change" | "manual_action" | "schedule" | "webhook";
|
|
56
|
+
id: string;
|
|
77
57
|
};
|
|
78
|
-
actions
|
|
79
|
-
config
|
|
80
|
-
type
|
|
81
|
-
id
|
|
58
|
+
actions: {
|
|
59
|
+
config: Record<string, any>;
|
|
60
|
+
type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
|
|
61
|
+
id: string;
|
|
82
62
|
}[];
|
|
83
|
-
}[];
|
|
63
|
+
}[] | undefined;
|
|
84
64
|
};
|
|
65
|
+
resources?: {
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
fields: {
|
|
69
|
+
key: string;
|
|
70
|
+
label: string;
|
|
71
|
+
type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
|
|
72
|
+
required?: boolean | undefined;
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
defaultValue?: any;
|
|
75
|
+
}[];
|
|
76
|
+
defaultView?: "table" | "grid" | "list" | undefined;
|
|
77
|
+
features?: {
|
|
78
|
+
searchable?: boolean | undefined;
|
|
79
|
+
creatable?: boolean | undefined;
|
|
80
|
+
editable?: boolean | undefined;
|
|
81
|
+
deletable?: boolean | undefined;
|
|
82
|
+
exportable?: boolean | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
}[] | undefined;
|
|
85
85
|
pages?: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
columns?: number;
|
|
96
|
-
variant?: "grid" | "stack" | "split";
|
|
97
|
-
};
|
|
98
|
-
title?: string;
|
|
99
|
-
blocks?: {
|
|
100
|
-
type?: string;
|
|
101
|
-
id?: string;
|
|
102
|
-
props?: Record<string, any>;
|
|
86
|
+
id: string;
|
|
87
|
+
title: string;
|
|
88
|
+
slug: string;
|
|
89
|
+
sections: {
|
|
90
|
+
id: string;
|
|
91
|
+
blocks: {
|
|
92
|
+
type: string;
|
|
93
|
+
id: string;
|
|
94
|
+
props: Record<string, any>;
|
|
103
95
|
layout?: {
|
|
104
|
-
colSpan?: number;
|
|
105
|
-
rowSpan?: number;
|
|
106
|
-
};
|
|
96
|
+
colSpan?: number | undefined;
|
|
97
|
+
rowSpan?: number | undefined;
|
|
98
|
+
} | undefined;
|
|
107
99
|
}[];
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
layout?: {
|
|
102
|
+
columns?: number | undefined;
|
|
103
|
+
variant?: "grid" | "stack" | "split" | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
title?: string | undefined;
|
|
108
106
|
}[];
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
description?: string | undefined;
|
|
108
|
+
icon?: string | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
modules?: string[] | undefined;
|
|
111
111
|
};
|
|
112
112
|
isLive: boolean;
|
|
113
113
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare function useAIKeyOrchestrator(): {
|
|
2
|
-
key: string;
|
|
2
|
+
key: string | null;
|
|
3
3
|
strategy: "ENVIRONMENT" | "SESSION_BYOK" | "VAULT";
|
|
4
4
|
status: "VALID" | "KEY_EXPIRED" | "BYOK_REQUIRED" | "DEGRADED" | "UNKNOWN";
|
|
5
|
-
preferredModel: string;
|
|
5
|
+
preferredModel: string | null;
|
|
6
6
|
setSessionKey: (newKey: string) => void;
|
|
7
7
|
clearSessionKey: () => void;
|
|
8
8
|
setExpired: () => void;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Adheres strictly to the Zero Jank Mandate.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useDevice(): {
|
|
7
|
-
timestamp
|
|
8
|
-
soilMoisture
|
|
9
|
-
ambientLight
|
|
10
|
-
temperature
|
|
11
|
-
};
|
|
7
|
+
timestamp: number;
|
|
8
|
+
soilMoisture: number;
|
|
9
|
+
ambientLight: number;
|
|
10
|
+
temperature: number;
|
|
11
|
+
} | null;
|
|
12
12
|
//# sourceMappingURL=useDevice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDevice.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDevice.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,wBAAgB,SAAS;;;;;
|
|
1
|
+
{"version":3,"file":"useDevice.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDevice.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,wBAAgB,SAAS;;;;;SAqCxB"}
|
|
@@ -14,6 +14,9 @@ export * from './engine/runtime/useSignalStore';
|
|
|
14
14
|
export * from './engine/runtime/data-seeder';
|
|
15
15
|
export * from './engine/runtime/WorkflowEngine';
|
|
16
16
|
export * from './engine/runtime/useRammeAI';
|
|
17
|
+
export * from './renderers/AppDocumentRenderer';
|
|
18
|
+
export * from './apps/spriteGrid';
|
|
19
|
+
export * from './apps/quantize';
|
|
17
20
|
export * from './stores/useAppStore';
|
|
18
21
|
export * from './stores/useSettingsStore';
|
|
19
22
|
export * from './stores/spatialStore';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,iBAAiB,CAAC;AAOhC,cAAc,wBAAwB,CAAC;AAKvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cA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