All of the mid-session and step-up auth work
This commit is contained in:
parent
1f31e0f1f8
commit
562bdd00f1
1 changed files with 11437 additions and 1212 deletions
24
clients/web/src/utils/inspectorTabs.ts
Normal file
24
clients/web/src/utils/inspectorTabs.ts
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* Inspector main-view tab identifiers. Match labels used in ViewHeader /
|
||||
* InspectorView (`"Tools"`, `"Resources"`, …).
|
||||
*/
|
||||
|
||||
export const INSPECTOR_SERVERS_TAB = "Servers";
|
||||
|
||||
/** Tabs with liftable `*UiState` in App.tsx (Servers has no ui snapshot). */
|
||||
export const INSPECTOR_TAB_IDS = [
|
||||
"Apps",
|
||||
"Tools",
|
||||
"Prompts",
|
||||
"Resources",
|
||||
"Tasks",
|
||||
"Logs",
|
||||
"History",
|
||||
"Network",
|
||||
] as const;
|
||||
|
||||
export type InspectorTabId = (typeof INSPECTOR_TAB_IDS)[number];
|
||||
|
||||
export function isInspectorTabId(value: string): value is InspectorTabId {
|
||||
return (INSPECTOR_TAB_IDS as readonly string[]).includes(value);
|
||||
}
|
||||
Loading…
Reference in a new issue