@reopt-ai/opt-devtool 1.0.0 → 1.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.
- package/README.md +7 -0
- package/dist/brandapp/index.cjs +455 -364
- package/dist/brandapp/index.d.cts +70 -68
- package/dist/brandapp/index.d.ts +70 -68
- package/dist/brandapp/index.js +448 -361
- package/dist/datagrid/index.cjs +171 -181
- package/dist/datagrid/index.d.cts +10 -9
- package/dist/datagrid/index.d.ts +10 -9
- package/dist/datagrid/index.js +167 -179
- package/dist/editor/index.cjs +210 -229
- package/dist/editor/index.d.cts +10 -9
- package/dist/editor/index.d.ts +10 -9
- package/dist/editor/index.js +206 -227
- package/dist/harness/index.cjs +5 -12
- package/dist/harness/index.d.cts +14 -14
- package/dist/harness/index.d.ts +14 -14
- package/dist/harness/index.js +2 -11
- package/dist/harness-CoRqiJWO.cjs +584 -0
- package/dist/harness-DU8hP98g.js +536 -0
- package/dist/index.cjs +3687 -3816
- package/dist/index.d.cts +13 -15
- package/dist/index.d.ts +13 -15
- package/dist/index.js +3679 -3815
- package/dist/provider-Bn7CAE_Y.js +116 -0
- package/dist/provider-CLRiXjfD.cjs +168 -0
- package/dist/theme/index.cjs +296 -12
- package/dist/theme/index.d.cts +25 -24
- package/dist/theme/index.d.ts +25 -24
- package/dist/theme/index.js +292 -11
- package/dist/theme-isolate-DgSS935z.cjs +54 -0
- package/dist/theme-isolate-F-oX2d4W.js +43 -0
- package/dist/types-B_abMm2B.cjs +10 -0
- package/dist/types-DvhcaPXA.js +5 -0
- package/dist/types-oHbLkgEH.d.cts +95 -0
- package/dist/types-oHbLkgEH.d.ts +95 -0
- package/dist/ui/index.cjs +4 -8
- package/dist/ui/index.d.cts +3 -2
- package/dist/ui/index.d.ts +3 -2
- package/dist/ui/index.js +2 -7
- package/package.json +2 -2
- package/dist/chunk-4MJKIAXH.cjs +0 -65
- package/dist/chunk-5HRIQSVF.js +0 -32
- package/dist/chunk-6AGUYGVT.cjs +0 -77
- package/dist/chunk-EQPETYJJ.cjs +0 -32
- package/dist/chunk-H3F2WACS.cjs +0 -568
- package/dist/chunk-N7YO56TN.cjs +0 -25
- package/dist/chunk-SQ3E3QLA.cjs +0 -253
- package/dist/chunk-SW2FF6EV.js +0 -568
- package/dist/chunk-UJSIQF3A.js +0 -25
- package/dist/chunk-UQY5I3WS.js +0 -253
- package/dist/chunk-YCYIUFB4.js +0 -65
- package/dist/chunk-Z2KFRHSI.js +0 -77
- package/dist/index-Bakx4o8Z.d.cts +0 -91
- package/dist/index-Bakx4o8Z.d.ts +0 -91
|
@@ -1,95 +1,97 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/brandapp/index.d.ts
|
|
1
3
|
type BrandappDevtoolStatus = "connected" | "configured" | "missing" | "warning" | "error" | "unknown";
|
|
2
4
|
interface BrandappDevtoolEnvVar {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
name: string;
|
|
6
|
+
present: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
scope?: "server" | "client" | "both";
|
|
9
|
+
maskedValue?: string;
|
|
10
|
+
note?: string;
|
|
9
11
|
}
|
|
10
12
|
interface BrandappDevtoolFeature {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
status: BrandappDevtoolStatus;
|
|
16
|
+
detail?: string;
|
|
15
17
|
}
|
|
16
18
|
interface BrandappDevtoolRoute {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
path: string;
|
|
20
|
+
method?: string;
|
|
21
|
+
status?: BrandappDevtoolStatus;
|
|
22
|
+
statusCode?: number;
|
|
23
|
+
latencyMs?: number;
|
|
24
|
+
description?: string;
|
|
25
|
+
lastCheckedAt?: string | number;
|
|
24
26
|
}
|
|
25
27
|
interface BrandappDevtoolEavEntity {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
id: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
attributeCount?: number;
|
|
32
|
+
recordCount?: number;
|
|
33
|
+
synced?: boolean;
|
|
32
34
|
}
|
|
33
35
|
interface BrandappDevtoolEavState {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
status?: BrandappDevtoolStatus;
|
|
37
|
+
schemaHash?: string;
|
|
38
|
+
lockfileHash?: string;
|
|
39
|
+
lastSyncAt?: string | number;
|
|
40
|
+
entities?: BrandappDevtoolEavEntity[];
|
|
39
41
|
}
|
|
40
42
|
interface BrandappDevtoolAuthState {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
status?: BrandappDevtoolStatus;
|
|
44
|
+
provider?: string;
|
|
45
|
+
session?: "authenticated" | "anonymous" | "loading" | "unknown";
|
|
46
|
+
userId?: string;
|
|
47
|
+
organizationId?: string;
|
|
48
|
+
callbackPath?: string;
|
|
47
49
|
}
|
|
48
50
|
interface BrandappDevtoolAiState {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
status?: BrandappDevtoolStatus;
|
|
52
|
+
routePath?: string;
|
|
53
|
+
defaultModel?: string;
|
|
54
|
+
models?: string[];
|
|
55
|
+
creditBalance?: number;
|
|
54
56
|
}
|
|
55
57
|
interface BrandappDevtoolSnapshot {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
brandappId?: string | null;
|
|
59
|
+
clientId?: string | null;
|
|
60
|
+
sdkVersion?: string | null;
|
|
61
|
+
baseUrl?: string | null;
|
|
62
|
+
environment?: string | null;
|
|
63
|
+
updatedAt?: string | number;
|
|
64
|
+
auth?: BrandappDevtoolAuthState;
|
|
65
|
+
ai?: BrandappDevtoolAiState;
|
|
66
|
+
eav?: BrandappDevtoolEavState;
|
|
67
|
+
env?: BrandappDevtoolEnvVar[];
|
|
68
|
+
features?: BrandappDevtoolFeature[];
|
|
69
|
+
routes?: BrandappDevtoolRoute[];
|
|
70
|
+
notes?: string[];
|
|
69
71
|
}
|
|
70
72
|
interface UseBrandappDevtoolBridgeOptions {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
id: string;
|
|
74
|
+
label: string;
|
|
75
|
+
order?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Controlled snapshot. When provided, this prop is authoritative and
|
|
78
|
+
* returned `inspect` / `clear` callbacks do not mutate local bridge state.
|
|
79
|
+
*/
|
|
80
|
+
snapshot?: BrandappDevtoolSnapshot | null;
|
|
79
81
|
}
|
|
80
82
|
interface RegisteredBrandappDevtoolBridge {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
inspect: (snapshot: BrandappDevtoolSnapshot) => void;
|
|
84
|
+
clear: () => void;
|
|
83
85
|
}
|
|
84
86
|
/** Summarize required Brandapp env vars for status badges and diagnostics. */
|
|
85
87
|
declare function getBrandappRequiredEnvSummary(env: readonly BrandappDevtoolEnvVar[] | undefined): {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
total: number;
|
|
89
|
+
present: number;
|
|
90
|
+
missing: string[];
|
|
89
91
|
};
|
|
90
92
|
/** Resolve the top-level Brandapp snapshot status from all reported signals. */
|
|
91
93
|
declare function getBrandappSnapshotStatus(snapshot: BrandappDevtoolSnapshot): BrandappDevtoolStatus;
|
|
92
94
|
/** Register a Brandapp SDK integration panel in opt-devtool. */
|
|
93
|
-
declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot
|
|
94
|
-
|
|
95
|
-
export {
|
|
95
|
+
declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot }: UseBrandappDevtoolBridgeOptions): RegisteredBrandappDevtoolBridge;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { BrandappDevtoolAiState, BrandappDevtoolAuthState, BrandappDevtoolEavEntity, BrandappDevtoolEavState, BrandappDevtoolEnvVar, BrandappDevtoolFeature, BrandappDevtoolRoute, BrandappDevtoolSnapshot, BrandappDevtoolStatus, RegisteredBrandappDevtoolBridge, UseBrandappDevtoolBridgeOptions, getBrandappRequiredEnvSummary, getBrandappSnapshotStatus, useBrandappDevtoolBridge };
|
package/dist/brandapp/index.d.ts
CHANGED
|
@@ -1,95 +1,97 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/brandapp/index.d.ts
|
|
1
3
|
type BrandappDevtoolStatus = "connected" | "configured" | "missing" | "warning" | "error" | "unknown";
|
|
2
4
|
interface BrandappDevtoolEnvVar {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
name: string;
|
|
6
|
+
present: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
scope?: "server" | "client" | "both";
|
|
9
|
+
maskedValue?: string;
|
|
10
|
+
note?: string;
|
|
9
11
|
}
|
|
10
12
|
interface BrandappDevtoolFeature {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
status: BrandappDevtoolStatus;
|
|
16
|
+
detail?: string;
|
|
15
17
|
}
|
|
16
18
|
interface BrandappDevtoolRoute {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
path: string;
|
|
20
|
+
method?: string;
|
|
21
|
+
status?: BrandappDevtoolStatus;
|
|
22
|
+
statusCode?: number;
|
|
23
|
+
latencyMs?: number;
|
|
24
|
+
description?: string;
|
|
25
|
+
lastCheckedAt?: string | number;
|
|
24
26
|
}
|
|
25
27
|
interface BrandappDevtoolEavEntity {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
id: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
attributeCount?: number;
|
|
32
|
+
recordCount?: number;
|
|
33
|
+
synced?: boolean;
|
|
32
34
|
}
|
|
33
35
|
interface BrandappDevtoolEavState {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
status?: BrandappDevtoolStatus;
|
|
37
|
+
schemaHash?: string;
|
|
38
|
+
lockfileHash?: string;
|
|
39
|
+
lastSyncAt?: string | number;
|
|
40
|
+
entities?: BrandappDevtoolEavEntity[];
|
|
39
41
|
}
|
|
40
42
|
interface BrandappDevtoolAuthState {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
status?: BrandappDevtoolStatus;
|
|
44
|
+
provider?: string;
|
|
45
|
+
session?: "authenticated" | "anonymous" | "loading" | "unknown";
|
|
46
|
+
userId?: string;
|
|
47
|
+
organizationId?: string;
|
|
48
|
+
callbackPath?: string;
|
|
47
49
|
}
|
|
48
50
|
interface BrandappDevtoolAiState {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
status?: BrandappDevtoolStatus;
|
|
52
|
+
routePath?: string;
|
|
53
|
+
defaultModel?: string;
|
|
54
|
+
models?: string[];
|
|
55
|
+
creditBalance?: number;
|
|
54
56
|
}
|
|
55
57
|
interface BrandappDevtoolSnapshot {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
brandappId?: string | null;
|
|
59
|
+
clientId?: string | null;
|
|
60
|
+
sdkVersion?: string | null;
|
|
61
|
+
baseUrl?: string | null;
|
|
62
|
+
environment?: string | null;
|
|
63
|
+
updatedAt?: string | number;
|
|
64
|
+
auth?: BrandappDevtoolAuthState;
|
|
65
|
+
ai?: BrandappDevtoolAiState;
|
|
66
|
+
eav?: BrandappDevtoolEavState;
|
|
67
|
+
env?: BrandappDevtoolEnvVar[];
|
|
68
|
+
features?: BrandappDevtoolFeature[];
|
|
69
|
+
routes?: BrandappDevtoolRoute[];
|
|
70
|
+
notes?: string[];
|
|
69
71
|
}
|
|
70
72
|
interface UseBrandappDevtoolBridgeOptions {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
id: string;
|
|
74
|
+
label: string;
|
|
75
|
+
order?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Controlled snapshot. When provided, this prop is authoritative and
|
|
78
|
+
* returned `inspect` / `clear` callbacks do not mutate local bridge state.
|
|
79
|
+
*/
|
|
80
|
+
snapshot?: BrandappDevtoolSnapshot | null;
|
|
79
81
|
}
|
|
80
82
|
interface RegisteredBrandappDevtoolBridge {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
inspect: (snapshot: BrandappDevtoolSnapshot) => void;
|
|
84
|
+
clear: () => void;
|
|
83
85
|
}
|
|
84
86
|
/** Summarize required Brandapp env vars for status badges and diagnostics. */
|
|
85
87
|
declare function getBrandappRequiredEnvSummary(env: readonly BrandappDevtoolEnvVar[] | undefined): {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
total: number;
|
|
89
|
+
present: number;
|
|
90
|
+
missing: string[];
|
|
89
91
|
};
|
|
90
92
|
/** Resolve the top-level Brandapp snapshot status from all reported signals. */
|
|
91
93
|
declare function getBrandappSnapshotStatus(snapshot: BrandappDevtoolSnapshot): BrandappDevtoolStatus;
|
|
92
94
|
/** Register a Brandapp SDK integration panel in opt-devtool. */
|
|
93
|
-
declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot
|
|
94
|
-
|
|
95
|
-
export {
|
|
95
|
+
declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot }: UseBrandappDevtoolBridgeOptions): RegisteredBrandappDevtoolBridge;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { BrandappDevtoolAiState, BrandappDevtoolAuthState, BrandappDevtoolEavEntity, BrandappDevtoolEavState, BrandappDevtoolEnvVar, BrandappDevtoolFeature, BrandappDevtoolRoute, BrandappDevtoolSnapshot, BrandappDevtoolStatus, RegisteredBrandappDevtoolBridge, UseBrandappDevtoolBridgeOptions, getBrandappRequiredEnvSummary, getBrandappSnapshotStatus, useBrandappDevtoolBridge };
|