@bolt-foundry/gambit 0.8.6-rc.6 → 0.8.6-rc.7
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/CHANGELOG.md +5 -1
- package/esm/gambit/simulator-ui/dist/bundle.js +1304 -2405
- package/esm/gambit/simulator-ui/dist/bundle.js.map +4 -4
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/normalization_ast.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/normalization_ast.js +5 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/query_text.d.ts +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/query_text.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/query_text.js +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/raw_response_type.d.ts +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/raw_response_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/normalization_ast.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/normalization_ast.js +5 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/query_text.d.ts +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/query_text.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/query_text.js +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/raw_response_type.d.ts +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/raw_response_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/normalization_ast.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/normalization_ast.js +5 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/query_text.d.ts +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/query_text.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/query_text.js +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/raw_response_type.d.ts +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/raw_response_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/normalization_ast.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/normalization_ast.js +5 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/query_text.d.ts +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/query_text.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/query_text.js +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/raw_response_type.d.ts +1 -0
- package/esm/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/raw_response_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/GradeTab/param_type.d.ts +65 -0
- package/esm/simulator-ui/__generated__/__isograph/Workspace/GradeTab/param_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/GradeTab/resolver_reader.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/GradeTab/resolver_reader.js +8 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/TestTab/param_type.d.ts +82 -0
- package/esm/simulator-ui/__generated__/__isograph/Workspace/TestTab/param_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/TestTab/resolver_reader.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/TestTab/resolver_reader.js +8 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.d.ts +106 -0
- package/esm/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.js +8 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.d.ts +32 -0
- package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.d.ts.map +1 -1
- package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.js +8 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorGradePage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorGradePage.js +76 -2
- package/esm/simulator-ui/isograph/components/Query/SimulatorTestPage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorTestPage.js +80 -6
- package/esm/simulator-ui/isograph/components/Query/SimulatorVerifyPage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorVerifyPage.js +24 -1
- package/esm/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.js +16 -6
- package/esm/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts +4 -0
- package/esm/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.js +59 -24
- package/esm/simulator-ui/isograph/components/grade/GradeTabView.d.ts +14 -0
- package/esm/simulator-ui/isograph/components/grade/GradeTabView.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/grade/GradeTabView.js +1 -1
- package/esm/simulator-ui/src/AppShell.d.ts.map +1 -1
- package/esm/simulator-ui/src/AppShell.js +6 -6
- package/esm/simulator-ui/src/Chat.d.ts +6 -30
- package/esm/simulator-ui/src/Chat.d.ts.map +1 -1
- package/esm/simulator-ui/src/Chat.js +14 -109
- package/esm/simulator-ui/src/TestBotChatPanel.d.ts +2 -0
- package/esm/simulator-ui/src/TestBotChatPanel.d.ts.map +1 -1
- package/esm/simulator-ui/src/TestBotChatPanel.js +2 -2
- package/esm/simulator-ui/src/WorkbenchDrawerIso.d.ts +2 -0
- package/esm/simulator-ui/src/WorkbenchDrawerIso.d.ts.map +1 -1
- package/esm/simulator-ui/src/WorkbenchDrawerIso.js +3 -1
- package/esm/simulator-ui/src/gds/WorkbenchComposerChip.d.ts +2 -17
- package/esm/simulator-ui/src/gds/WorkbenchComposerChip.d.ts.map +1 -1
- package/esm/simulator-ui/src/grade/GradeResultsPanel.d.ts +10 -0
- package/esm/simulator-ui/src/grade/GradeResultsPanel.d.ts.map +1 -1
- package/esm/simulator-ui/src/grade/GradeResultsPanel.js +16 -1
- package/esm/simulator-ui/src/shared.d.ts +1 -0
- package/esm/simulator-ui/src/shared.d.ts.map +1 -1
- package/esm/simulator-ui/src/shared.js +4 -2
- package/esm/simulator-ui/src/workbenchChipStore.d.ts +12 -0
- package/esm/simulator-ui/src/workbenchChipStore.d.ts.map +1 -0
- package/esm/simulator-ui/src/workbenchChipStore.js +69 -0
- package/esm/simulator-ui/src/workbenchContext.d.ts +50 -0
- package/esm/simulator-ui/src/workbenchContext.d.ts.map +1 -0
- package/esm/simulator-ui/src/workbenchContext.js +159 -0
- package/esm/src/simulator_graphql.d.ts.map +1 -1
- package/esm/src/simulator_graphql.js +5 -0
- package/package.json +1 -1
- package/script/gambit/simulator-ui/dist/bundle.js +1304 -2405
- package/script/gambit/simulator-ui/dist/bundle.js.map +4 -4
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/normalization_ast.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/normalization_ast.js +5 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/query_text.d.ts +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/query_text.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/query_text.js +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/raw_response_type.d.ts +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorGradePage/raw_response_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/normalization_ast.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/normalization_ast.js +5 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/query_text.d.ts +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/query_text.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/query_text.js +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/raw_response_type.d.ts +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorTestPage/raw_response_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/normalization_ast.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/normalization_ast.js +5 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/query_text.d.ts +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/query_text.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/query_text.js +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/raw_response_type.d.ts +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorVerifyPage/raw_response_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/normalization_ast.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/normalization_ast.js +5 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/query_text.d.ts +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/query_text.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/query_text.js +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/raw_response_type.d.ts +1 -0
- package/script/simulator-ui/__generated__/__isograph/Query/EntrypointSimulatorWorkspaceShell/raw_response_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/GradeTab/param_type.d.ts +65 -0
- package/script/simulator-ui/__generated__/__isograph/Workspace/GradeTab/param_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/GradeTab/resolver_reader.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/GradeTab/resolver_reader.js +8 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/TestTab/param_type.d.ts +82 -0
- package/script/simulator-ui/__generated__/__isograph/Workspace/TestTab/param_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/TestTab/resolver_reader.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/TestTab/resolver_reader.js +8 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.d.ts +106 -0
- package/script/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.js +8 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.d.ts +32 -0
- package/script/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.d.ts.map +1 -1
- package/script/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.js +8 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorGradePage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorGradePage.js +109 -2
- package/script/simulator-ui/isograph/components/Query/SimulatorTestPage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorTestPage.js +113 -6
- package/script/simulator-ui/isograph/components/Query/SimulatorVerifyPage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorVerifyPage.js +24 -1
- package/script/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.js +16 -6
- package/script/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts +4 -0
- package/script/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.js +58 -23
- package/script/simulator-ui/isograph/components/grade/GradeTabView.d.ts +14 -0
- package/script/simulator-ui/isograph/components/grade/GradeTabView.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/grade/GradeTabView.js +1 -1
- package/script/simulator-ui/src/AppShell.d.ts.map +1 -1
- package/script/simulator-ui/src/AppShell.js +6 -6
- package/script/simulator-ui/src/Chat.d.ts +6 -30
- package/script/simulator-ui/src/Chat.d.ts.map +1 -1
- package/script/simulator-ui/src/Chat.js +14 -109
- package/script/simulator-ui/src/TestBotChatPanel.d.ts +2 -0
- package/script/simulator-ui/src/TestBotChatPanel.d.ts.map +1 -1
- package/script/simulator-ui/src/TestBotChatPanel.js +2 -2
- package/script/simulator-ui/src/WorkbenchDrawerIso.d.ts +2 -0
- package/script/simulator-ui/src/WorkbenchDrawerIso.d.ts.map +1 -1
- package/script/simulator-ui/src/WorkbenchDrawerIso.js +3 -1
- package/script/simulator-ui/src/gds/WorkbenchComposerChip.d.ts +2 -17
- package/script/simulator-ui/src/gds/WorkbenchComposerChip.d.ts.map +1 -1
- package/script/simulator-ui/src/grade/GradeResultsPanel.d.ts +10 -0
- package/script/simulator-ui/src/grade/GradeResultsPanel.d.ts.map +1 -1
- package/script/simulator-ui/src/grade/GradeResultsPanel.js +16 -1
- package/script/simulator-ui/src/shared.d.ts +1 -0
- package/script/simulator-ui/src/shared.d.ts.map +1 -1
- package/script/simulator-ui/src/shared.js +4 -2
- package/script/simulator-ui/src/workbenchChipStore.d.ts +12 -0
- package/script/simulator-ui/src/workbenchChipStore.d.ts.map +1 -0
- package/script/simulator-ui/src/workbenchChipStore.js +108 -0
- package/script/simulator-ui/src/workbenchContext.d.ts +50 -0
- package/script/simulator-ui/src/workbenchContext.d.ts.map +1 -0
- package/script/simulator-ui/src/workbenchContext.js +165 -0
- package/script/src/simulator_graphql.d.ts.map +1 -1
- package/script/src/simulator_graphql.js +5 -0
- package/esm/simulator-ui/src/ProviderLoginPanel.d.ts +0 -8
- package/esm/simulator-ui/src/ProviderLoginPanel.d.ts.map +0 -1
- package/esm/simulator-ui/src/ProviderLoginPanel.js +0 -156
- package/esm/simulator-ui/src/WorkbenchDrawer.d.ts +0 -38
- package/esm/simulator-ui/src/WorkbenchDrawer.d.ts.map +0 -1
- package/esm/simulator-ui/src/WorkbenchDrawer.js +0 -716
- package/esm/simulator-ui/src/gds/Accordion.d.ts +0 -19
- package/esm/simulator-ui/src/gds/Accordion.d.ts.map +0 -1
- package/esm/simulator-ui/src/gds/Accordion.js +0 -47
- package/script/simulator-ui/src/ProviderLoginPanel.d.ts +0 -8
- package/script/simulator-ui/src/ProviderLoginPanel.d.ts.map +0 -1
- package/script/simulator-ui/src/ProviderLoginPanel.js +0 -162
- package/script/simulator-ui/src/WorkbenchDrawer.d.ts +0 -38
- package/script/simulator-ui/src/WorkbenchDrawer.d.ts.map +0 -1
- package/script/simulator-ui/src/WorkbenchDrawer.js +0 -722
- package/script/simulator-ui/src/gds/Accordion.d.ts +0 -19
- package/script/simulator-ui/src/gds/Accordion.d.ts.map +0 -1
- package/script/simulator-ui/src/gds/Accordion.js +0 -86
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import type { StartUpdate } from '@isograph/react';
|
|
1
2
|
export type Workspace__VerifyTab__param = {
|
|
2
3
|
readonly data: {
|
|
3
4
|
readonly id: string;
|
|
5
|
+
/**
|
|
6
|
+
Client-exclusive ephemeral workbench chip selection. This field exists for Isograph-owned simulator state until durable persistence is needed.
|
|
7
|
+
*/
|
|
8
|
+
readonly workbenchSelectedContextChips: string;
|
|
4
9
|
readonly scenarioDecks: ReadonlyArray<{
|
|
5
10
|
readonly id: string;
|
|
6
11
|
readonly label: string;
|
|
@@ -97,5 +102,106 @@ export type Workspace__VerifyTab__param = {
|
|
|
97
102
|
};
|
|
98
103
|
};
|
|
99
104
|
readonly parameters: Record<PropertyKey, never>;
|
|
105
|
+
readonly startUpdate: StartUpdate<{
|
|
106
|
+
readonly id: string;
|
|
107
|
+
/**
|
|
108
|
+
Client-exclusive ephemeral workbench chip selection. This field exists for Isograph-owned simulator state until durable persistence is needed.
|
|
109
|
+
*/
|
|
110
|
+
workbenchSelectedContextChips: string;
|
|
111
|
+
readonly scenarioDecks: ReadonlyArray<{
|
|
112
|
+
readonly id: string;
|
|
113
|
+
readonly label: string;
|
|
114
|
+
readonly description: (string | null);
|
|
115
|
+
readonly path: string;
|
|
116
|
+
}>;
|
|
117
|
+
readonly verification: {
|
|
118
|
+
readonly graderDecks: {
|
|
119
|
+
readonly edges: ReadonlyArray<{
|
|
120
|
+
readonly node: {
|
|
121
|
+
readonly id: string;
|
|
122
|
+
readonly label: string;
|
|
123
|
+
readonly description: (string | null);
|
|
124
|
+
readonly path: string;
|
|
125
|
+
};
|
|
126
|
+
}>;
|
|
127
|
+
};
|
|
128
|
+
readonly batches: {
|
|
129
|
+
readonly edges: ReadonlyArray<{
|
|
130
|
+
readonly node: {
|
|
131
|
+
readonly id: string;
|
|
132
|
+
readonly workspaceId: string;
|
|
133
|
+
readonly scenarioDeckId: (string | null);
|
|
134
|
+
readonly graderId: string;
|
|
135
|
+
readonly scenarioRuns: number;
|
|
136
|
+
readonly graderRepeatsPerScenario: number;
|
|
137
|
+
readonly status: string;
|
|
138
|
+
readonly startedAt: (string | null);
|
|
139
|
+
readonly finishedAt: (string | null);
|
|
140
|
+
readonly requested: number;
|
|
141
|
+
readonly active: number;
|
|
142
|
+
readonly completed: number;
|
|
143
|
+
readonly failed: number;
|
|
144
|
+
readonly scenarioRunsCompleted: number;
|
|
145
|
+
readonly scenarioRunsFailed: number;
|
|
146
|
+
readonly requests: {
|
|
147
|
+
readonly edges: ReadonlyArray<{
|
|
148
|
+
readonly node: {
|
|
149
|
+
readonly id: string;
|
|
150
|
+
readonly scenarioRunId: (string | null);
|
|
151
|
+
readonly status: string;
|
|
152
|
+
readonly runId: (string | null);
|
|
153
|
+
readonly error: (string | null);
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
|
+
};
|
|
157
|
+
readonly metrics: ({
|
|
158
|
+
readonly scenarioRunCountRequested: number;
|
|
159
|
+
readonly scenarioRunCountCompleted: number;
|
|
160
|
+
readonly scenarioRunCountFailed: number;
|
|
161
|
+
readonly gradeSampleCountRequested: number;
|
|
162
|
+
readonly gradeSampleCountCompleted: number;
|
|
163
|
+
readonly gradeSampleCountFailed: number;
|
|
164
|
+
readonly executionFailureCount: number;
|
|
165
|
+
readonly gradingFailureCount: number;
|
|
166
|
+
readonly passRate: (number | null);
|
|
167
|
+
readonly scoreMin: (number | null);
|
|
168
|
+
readonly scoreMedian: (number | null);
|
|
169
|
+
readonly scoreMax: (number | null);
|
|
170
|
+
readonly scoreMean: (number | null);
|
|
171
|
+
readonly outlierScenarioRuns: {
|
|
172
|
+
readonly edges: ReadonlyArray<{
|
|
173
|
+
readonly node: {
|
|
174
|
+
readonly key: string;
|
|
175
|
+
readonly scenarioRunId: string;
|
|
176
|
+
readonly gradeSampleCount: number;
|
|
177
|
+
readonly completedSampleCount: number;
|
|
178
|
+
readonly executionFailureCount: number;
|
|
179
|
+
readonly gradingFailureCount: number;
|
|
180
|
+
readonly averageScore: (number | null);
|
|
181
|
+
readonly minScore: (number | null);
|
|
182
|
+
readonly maxScore: (number | null);
|
|
183
|
+
readonly failed: boolean;
|
|
184
|
+
readonly minRunId: (string | null);
|
|
185
|
+
readonly maxRunId: (string | null);
|
|
186
|
+
readonly messageRefId: (string | null);
|
|
187
|
+
};
|
|
188
|
+
}>;
|
|
189
|
+
};
|
|
190
|
+
readonly failureReasons: {
|
|
191
|
+
readonly edges: ReadonlyArray<{
|
|
192
|
+
readonly node: {
|
|
193
|
+
readonly key: string;
|
|
194
|
+
readonly kind: string;
|
|
195
|
+
readonly reason: string;
|
|
196
|
+
readonly count: number;
|
|
197
|
+
};
|
|
198
|
+
}>;
|
|
199
|
+
};
|
|
200
|
+
} | null);
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
}>;
|
|
100
206
|
};
|
|
101
207
|
//# sourceMappingURL=param_type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param_type.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"param_type.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB;;UAEE;QACF,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;QAC/C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;YACpC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;YACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;YACvB,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;YACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;SACvB,CAAC,CAAC;QACH,QAAQ,CAAC,YAAY,EAAE;YACrB,QAAQ,CAAC,WAAW,EAAE;gBACpB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;oBAC5B,QAAQ,CAAC,IAAI,EAAE;wBACb,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;wBACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;wBACvB,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;wBACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;qBACvB,CAAC;iBACH,CAAC,CAAC;aACJ,CAAC;YACF,QAAQ,CAAC,OAAO,EAAE;gBAChB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;oBAC5B,QAAQ,CAAC,I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,MAAM,CAAC;qCACxB,CAAC;iCACH,CAAC,CAAC;6BACJ,CAAC;yBACH,GAAG,IAAI,CAAC,CAAC;qBACX,CAAC;iBACH,CAAC,CAAC;aACJ,CAAC;SACH,CAAC;KACH,CAAC,CAAC;CACJ,CAAC"}
|
package/esm/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver_reader.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,IAAI,QAAQ,EAAE,MAAM,8DAA8D,CAAC;
|
|
1
|
+
{"version":3,"file":"resolver_reader.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/resolver_reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,IAAI,QAAQ,EAAE,MAAM,8DAA8D,CAAC;AAwoB/G,QAAA,MAAM,QAAQ,EAAE,uBAAuB,CACrC,2BAA2B,EAC3B,kBAAkB,CAAC,OAAO,QAAQ,CAAC,CAOpC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -7,6 +7,13 @@ const readerAst = [
|
|
|
7
7
|
arguments: null,
|
|
8
8
|
isUpdatable: false,
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
kind: "Scalar",
|
|
12
|
+
fieldName: "workbenchSelectedContextChips",
|
|
13
|
+
alias: null,
|
|
14
|
+
arguments: null,
|
|
15
|
+
isUpdatable: true,
|
|
16
|
+
},
|
|
10
17
|
{
|
|
11
18
|
kind: "Linked",
|
|
12
19
|
fieldName: "scenarioDecks",
|
|
@@ -642,6 +649,6 @@ const artifact = {
|
|
|
642
649
|
fieldName: "VerifyTab",
|
|
643
650
|
resolver,
|
|
644
651
|
readerAst,
|
|
645
|
-
hasUpdatable:
|
|
652
|
+
hasUpdatable: true,
|
|
646
653
|
};
|
|
647
654
|
export default artifact;
|
package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { type WorkspaceConversationRun__WorkbenchConversationRunChat__output_type } from '../../WorkspaceConversationRun/WorkbenchConversationRunChat/output_type.js';
|
|
2
|
+
import type { StartUpdate } from '@isograph/react';
|
|
2
3
|
export type Workspace__WorkbenchChatDrawer__param = {
|
|
3
4
|
readonly data: {
|
|
4
5
|
readonly id: string;
|
|
6
|
+
/**
|
|
7
|
+
Client-exclusive ephemeral workbench chip selection. This field exists for Isograph-owned simulator state until durable persistence is needed.
|
|
8
|
+
*/
|
|
9
|
+
readonly workbenchSelectedContextChips: string;
|
|
5
10
|
readonly models: {
|
|
6
11
|
readonly codex: {
|
|
7
12
|
readonly model: string;
|
|
@@ -24,5 +29,32 @@ export type Workspace__WorkbenchChatDrawer__param = {
|
|
|
24
29
|
};
|
|
25
30
|
};
|
|
26
31
|
readonly parameters: Record<PropertyKey, never>;
|
|
32
|
+
readonly startUpdate: StartUpdate<{
|
|
33
|
+
readonly id: string;
|
|
34
|
+
/**
|
|
35
|
+
Client-exclusive ephemeral workbench chip selection. This field exists for Isograph-owned simulator state until durable persistence is needed.
|
|
36
|
+
*/
|
|
37
|
+
workbenchSelectedContextChips: string;
|
|
38
|
+
readonly models: {
|
|
39
|
+
readonly codex: {
|
|
40
|
+
readonly model: string;
|
|
41
|
+
readonly workspaceId: string;
|
|
42
|
+
readonly available: boolean;
|
|
43
|
+
readonly requiresLogin: boolean;
|
|
44
|
+
readonly loggedIn: boolean;
|
|
45
|
+
readonly statusText: string;
|
|
46
|
+
readonly trustedPath: (string | null);
|
|
47
|
+
readonly writeEnabled: boolean;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly buildRuns: {
|
|
51
|
+
readonly edges: ReadonlyArray<{
|
|
52
|
+
readonly node: {
|
|
53
|
+
readonly id: string;
|
|
54
|
+
readonly WorkbenchConversationRunChat: WorkspaceConversationRun__WorkbenchConversationRunChat__output_type;
|
|
55
|
+
};
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
27
59
|
};
|
|
28
60
|
//# sourceMappingURL=param_type.d.ts.map
|
package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param_type.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mEAAmE,EAAE,MAAM,4EAA4E,CAAC;
|
|
1
|
+
{"version":3,"file":"param_type.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/param_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mEAAmE,EAAE,MAAM,4EAA4E,CAAC;AACtK,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB;;UAEE;QACF,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;QAC/C,QAAQ,CAAC,MAAM,EAAE;YACf,QAAQ,CAAC,KAAK,EAAE;gBACd,QAAQ,CAAC,KAAK,EA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,CAAC;gBACtC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;aAChC,CAAC;SACH,CAAC;QACF,QAAQ,CAAC,SAAS,EAAE;YAClB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;gBAC5B,QAAQ,CAAC,IAAI,EAAE;oBACb,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;oBACpB,QAAQ,CAAC,4BAA4B,EAAE,mEAAmE,CAAC;iBAC5G,CAAC;aACH,CAAC,CAAC;SACJ,CAAC;KACH,CAAC,CAAC;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver_reader.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,qCAAqC,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,mBAAmB,IAAI,QAAQ,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"resolver_reader.d.ts","sourceRoot":"","sources":["../../../../../../src/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,qCAAqC,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,mBAAmB,IAAI,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAsJnH,QAAA,MAAM,QAAQ,EAAE,uBAAuB,CACrC,qCAAqC,EACrC,kBAAkB,CAAC,OAAO,QAAQ,CAAC,CAOpC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/esm/simulator-ui/__generated__/__isograph/Workspace/WorkbenchChatDrawer/resolver_reader.js
CHANGED
|
@@ -8,6 +8,13 @@ const readerAst = [
|
|
|
8
8
|
arguments: null,
|
|
9
9
|
isUpdatable: false,
|
|
10
10
|
},
|
|
11
|
+
{
|
|
12
|
+
kind: "Scalar",
|
|
13
|
+
fieldName: "workbenchSelectedContextChips",
|
|
14
|
+
alias: null,
|
|
15
|
+
arguments: null,
|
|
16
|
+
isUpdatable: true,
|
|
17
|
+
},
|
|
11
18
|
{
|
|
12
19
|
kind: "Linked",
|
|
13
20
|
fieldName: "models",
|
|
@@ -144,6 +151,6 @@ const artifact = {
|
|
|
144
151
|
fieldName: "WorkbenchChatDrawer",
|
|
145
152
|
resolver,
|
|
146
153
|
readerAst,
|
|
147
|
-
hasUpdatable:
|
|
154
|
+
hasUpdatable: true,
|
|
148
155
|
};
|
|
149
156
|
export default artifact;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimulatorGradePage.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Query/SimulatorGradePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimulatorGradePage.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Query/SimulatorGradePage.tsx"],"names":[],"mappings":"AAkCA,eAAO,MAAM,kBAAkB,4LA2c7B,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as dntShim from "../../../../_dnt.shims.js";
|
|
1
2
|
import { iso } from "../../../__generated__/__isograph/iso.js";
|
|
2
3
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
4
|
import { buildWorkspacePath, parseWorkspaceRoute, } from "../../../../src/workspace_routes.js";
|
|
@@ -8,6 +9,7 @@ import gambitWorkspaceGradeLiveSubscription from "../../../subscriptions/GambitW
|
|
|
8
9
|
import { useGambitTypedMutation } from "../../../src/hooks/useGambitTypedMutation.js";
|
|
9
10
|
import { useGambitTypedSubscription } from "../../../src/hooks/useGambitTypedSubscription.js";
|
|
10
11
|
import { useRouter } from "../../../src/RouterContext.js";
|
|
12
|
+
import { mergeWorkbenchSelectedContextChip, replaceWorkbenchSelectedContextChips, resolveWorkbenchSelectedContextChips, } from "../../../src/workbenchChipStore.js";
|
|
11
13
|
import GradeTabView from "../grade/GradeTabView.js";
|
|
12
14
|
function formatRunStatus(status) {
|
|
13
15
|
const normalized = (status ?? "").trim().toUpperCase();
|
|
@@ -22,6 +24,7 @@ function formatRunStatus(status) {
|
|
|
22
24
|
export const SimulatorGradePage = iso(`
|
|
23
25
|
field Workspace.GradeTab @component {
|
|
24
26
|
id
|
|
27
|
+
workbenchSelectedContextChips @updatable
|
|
25
28
|
scenarioRuns(first: 50) {
|
|
26
29
|
edges {
|
|
27
30
|
node {
|
|
@@ -76,8 +79,44 @@ export const SimulatorGradePage = iso(`
|
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
|
-
`)(function SimulatorGradePage({ data }) {
|
|
82
|
+
`)(function SimulatorGradePage({ data, startUpdate }) {
|
|
83
|
+
function isBuildChatDebugEnabled() {
|
|
84
|
+
if (typeof dntShim.dntGlobalThis === "undefined")
|
|
85
|
+
return false;
|
|
86
|
+
const debugGlobal = dntShim.dntGlobalThis
|
|
87
|
+
.__GAMBIT_BUILD_CHAT_DEBUG__;
|
|
88
|
+
if (debugGlobal === true)
|
|
89
|
+
return true;
|
|
90
|
+
const search = typeof globalThis.location?.search === "string"
|
|
91
|
+
? globalThis.location.search
|
|
92
|
+
: "";
|
|
93
|
+
if (search.length > 0) {
|
|
94
|
+
const value = new URLSearchParams(search).get("gambitBuildChatDebug");
|
|
95
|
+
if (value === "1" || value === "true")
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
let stored = "";
|
|
99
|
+
try {
|
|
100
|
+
stored = (globalThis.localStorage?.getItem("gambit:build-chat-debug") ??
|
|
101
|
+
"")
|
|
102
|
+
.toLowerCase()
|
|
103
|
+
.trim();
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
return stored === "1" || stored === "true" || stored === "yes";
|
|
109
|
+
}
|
|
110
|
+
function logGradeChipDebug(event, payload) {
|
|
111
|
+
if (!isBuildChatDebugEnabled())
|
|
112
|
+
return;
|
|
113
|
+
console.info(`[grade-chip-debug] ${event}`, payload);
|
|
114
|
+
}
|
|
80
115
|
const workspaceId = data.id ?? "";
|
|
116
|
+
const composerChips = useMemo(() => resolveWorkbenchSelectedContextChips(workspaceId, data.workbenchSelectedContextChips), [data.workbenchSelectedContextChips, workspaceId]);
|
|
117
|
+
const updateComposerChips = useCallback((next) => {
|
|
118
|
+
replaceWorkbenchSelectedContextChips(startUpdate, next, workspaceId);
|
|
119
|
+
}, [startUpdate, workspaceId]);
|
|
81
120
|
const { currentRoutePath, navigate } = useRouter();
|
|
82
121
|
const workspaceRoutePath = currentRoutePath;
|
|
83
122
|
const route = useMemo(() => parseWorkspaceRoute(workspaceRoutePath), [
|
|
@@ -286,7 +325,42 @@ export const SimulatorGradePage = iso(`
|
|
|
286
325
|
if (routeGradeRunId) {
|
|
287
326
|
onSelectRun(null);
|
|
288
327
|
}
|
|
289
|
-
}, graders: graders, selectedGraderId: selectedGraderId, onSelectGrader: setSelectedGraderId, onRunGrader: onRunGrader, runInFlight: runGradeMutation.inFlight, canRunGrader: canRunGrader, filteredRuns: filteredRuns, routeGradeRunId: routeGradeRunId, routeRunMissing: routeRunMissing, missingRunHref: buildWorkspacePath("grade", workspaceId), onSelectRun: onSelectRun, flagByRefId: flagByRefId, reasonDrafts: reasonDrafts, onReasonDraftChange: onReasonDraftChange, onReasonBlur: onReasonBlur, onToggleFlag: onToggleFlag,
|
|
328
|
+
}, graders: graders, selectedGraderId: selectedGraderId, onSelectGrader: setSelectedGraderId, onRunGrader: onRunGrader, runInFlight: runGradeMutation.inFlight, canRunGrader: canRunGrader, filteredRuns: filteredRuns, routeGradeRunId: routeGradeRunId, routeRunMissing: routeRunMissing, missingRunHref: buildWorkspacePath("grade", workspaceId), onSelectRun: onSelectRun, flagByRefId: flagByRefId, reasonDrafts: reasonDrafts, onReasonDraftChange: onReasonDraftChange, onReasonBlur: onReasonBlur, onToggleFlag: onToggleFlag, onAddFlagToWorkbench: (args) => {
|
|
329
|
+
const flagReason = args.flagReason?.trim();
|
|
330
|
+
const graderReason = args.graderReason?.trim();
|
|
331
|
+
const gradedAssistant = args.gradedAssistant?.trim();
|
|
332
|
+
const message = [
|
|
333
|
+
flagReason ? `Flag reason: ${flagReason}` : null,
|
|
334
|
+
graderReason ? `Grader feedback: ${graderReason}` : null,
|
|
335
|
+
gradedAssistant ? `Assistant response: ${gradedAssistant}` : null,
|
|
336
|
+
].filter((part) => Boolean(part)).join("\n");
|
|
337
|
+
logGradeChipDebug("flag.add_to_workbench", {
|
|
338
|
+
workspaceId,
|
|
339
|
+
args,
|
|
340
|
+
chipMessage: message || "Flagged by grader",
|
|
341
|
+
});
|
|
342
|
+
updateComposerChips(mergeWorkbenchSelectedContextChip(composerChips, {
|
|
343
|
+
chipId: `flag:${args.refId}`,
|
|
344
|
+
source: "grading_flag",
|
|
345
|
+
workspaceId,
|
|
346
|
+
runId: args.runId,
|
|
347
|
+
capturedAt: new Date().toISOString(),
|
|
348
|
+
refId: args.refId,
|
|
349
|
+
score: args.score,
|
|
350
|
+
message: message || "Flagged by grader",
|
|
351
|
+
enabled: true,
|
|
352
|
+
}));
|
|
353
|
+
}, onAddErrorToWorkbench: ({ runId, error }) => {
|
|
354
|
+
updateComposerChips(mergeWorkbenchSelectedContextChip(composerChips, {
|
|
355
|
+
chipId: `grader_run_error:${runId ?? routeGradeRunId ?? workspaceId}`,
|
|
356
|
+
source: "grader_run_error",
|
|
357
|
+
workspaceId,
|
|
358
|
+
runId: runId ?? routeGradeRunId ?? undefined,
|
|
359
|
+
capturedAt: new Date().toISOString(),
|
|
360
|
+
error,
|
|
361
|
+
enabled: true,
|
|
362
|
+
}));
|
|
363
|
+
}, mutationError: mutationError, expandedResults: expandedResults, onToggleExpandedResult: (itemKey) => setExpandedResults((prev) => ({
|
|
290
364
|
...prev,
|
|
291
365
|
[itemKey]: !prev[itemKey],
|
|
292
366
|
})) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimulatorTestPage.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Query/SimulatorTestPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimulatorTestPage.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Query/SimulatorTestPage.tsx"],"names":[],"mappings":"AAkJA,eAAO,MAAM,iBAAiB,0LAq5B5B,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as dntShim from "../../../../_dnt.shims.js";
|
|
1
2
|
import { iso } from "../../../__generated__/__isograph/iso.js";
|
|
2
3
|
import { useCallback, useMemo, useState } from "react";
|
|
3
4
|
import { buildWorkspacePath, parseWorkspaceRoute, } from "../../../../src/workspace_routes.js";
|
|
@@ -18,6 +19,7 @@ import PageShell from "../../../src/gds/PageShell.js";
|
|
|
18
19
|
import PageGrid from "../../../src/gds/PageGrid.js";
|
|
19
20
|
import Callout from "../../../src/gds/Callout.js";
|
|
20
21
|
import TestBotChatPanel from "../../../src/TestBotChatPanel.js";
|
|
22
|
+
import { mergeWorkbenchSelectedContextChip, replaceWorkbenchSelectedContextChips, resolveWorkbenchSelectedContextChips, } from "../../../src/workbenchChipStore.js";
|
|
21
23
|
function toTestBotStatus(status) {
|
|
22
24
|
const normalized = status.trim().toUpperCase();
|
|
23
25
|
if (normalized === "RUNNING")
|
|
@@ -31,6 +33,35 @@ function toTestBotStatus(status) {
|
|
|
31
33
|
}
|
|
32
34
|
return "idle";
|
|
33
35
|
}
|
|
36
|
+
function isBuildChatDebugEnabled() {
|
|
37
|
+
if (typeof dntShim.dntGlobalThis === "undefined")
|
|
38
|
+
return false;
|
|
39
|
+
if ("location" in dntShim.dntGlobalThis && globalThis.location) {
|
|
40
|
+
const search = typeof globalThis.location.search === "string"
|
|
41
|
+
? globalThis.location.search
|
|
42
|
+
: "";
|
|
43
|
+
if (search.length > 0) {
|
|
44
|
+
const value = new URLSearchParams(search).get("gambitBuildChatDebug");
|
|
45
|
+
if (value === "1" || value === "true")
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
let stored = "";
|
|
50
|
+
try {
|
|
51
|
+
stored = (globalThis.localStorage?.getItem("gambit:build-chat-debug") ?? "")
|
|
52
|
+
.toLowerCase()
|
|
53
|
+
.trim();
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return stored === "1" || stored === "true" || stored === "yes";
|
|
59
|
+
}
|
|
60
|
+
function logTestChipDebug(event, payload) {
|
|
61
|
+
if (!isBuildChatDebugEnabled())
|
|
62
|
+
return;
|
|
63
|
+
console.info(`[test-chip-debug] ${event}`, payload);
|
|
64
|
+
}
|
|
34
65
|
function toOptimisticScenarioRunEdges(args) {
|
|
35
66
|
const edges = args.runs.map((run) => {
|
|
36
67
|
const isActive = run.id === args.runId;
|
|
@@ -67,6 +98,7 @@ function toOptimisticScenarioRunEdges(args) {
|
|
|
67
98
|
export const SimulatorTestPage = iso(`
|
|
68
99
|
field Workspace.TestTab @component {
|
|
69
100
|
id
|
|
101
|
+
workbenchSelectedContextChips @updatable
|
|
70
102
|
scenarioDecks {
|
|
71
103
|
id
|
|
72
104
|
label
|
|
@@ -129,7 +161,7 @@ export const SimulatorTestPage = iso(`
|
|
|
129
161
|
}
|
|
130
162
|
}
|
|
131
163
|
}
|
|
132
|
-
`)(function SimulatorTestPage({ data }) {
|
|
164
|
+
`)(function SimulatorTestPage({ data, startUpdate }) {
|
|
133
165
|
const parseJsonField = useCallback((value) => {
|
|
134
166
|
if (typeof value !== "string")
|
|
135
167
|
return value;
|
|
@@ -155,6 +187,10 @@ export const SimulatorTestPage = iso(`
|
|
|
155
187
|
}
|
|
156
188
|
}, []);
|
|
157
189
|
const workspaceId = data.id ?? "";
|
|
190
|
+
const composerChips = useMemo(() => resolveWorkbenchSelectedContextChips(workspaceId, data.workbenchSelectedContextChips), [data.workbenchSelectedContextChips, workspaceId]);
|
|
191
|
+
const updateComposerChips = useCallback((next) => {
|
|
192
|
+
replaceWorkbenchSelectedContextChips(startUpdate, next, workspaceId);
|
|
193
|
+
}, [startUpdate, workspaceId]);
|
|
158
194
|
const { currentRoutePath, navigate } = useRouter();
|
|
159
195
|
const workspaceRoutePath = currentRoutePath;
|
|
160
196
|
const scenarioDecks = useMemo(() => (data.scenarioDecks ?? []).flatMap((deck) => deck?.id && deck.label && deck.path
|
|
@@ -489,12 +525,13 @@ export const SimulatorTestPage = iso(`
|
|
|
489
525
|
const showStartOverlay = Boolean(assistantDeck?.startMode !== "user" &&
|
|
490
526
|
selectedRunNeedsAssistantStart);
|
|
491
527
|
const hasActiveScenarioTurn = selectedRunState.status === "running";
|
|
492
|
-
const handleStopRun = useCallback(
|
|
528
|
+
const handleStopRun = useCallback(() => {
|
|
493
529
|
if (!selectedRun?.id || !workspaceId)
|
|
494
|
-
return;
|
|
530
|
+
return Promise.resolve();
|
|
495
531
|
stopScenarioRun.commit({
|
|
496
532
|
input: { workspaceId, runId: selectedRun.id },
|
|
497
533
|
});
|
|
534
|
+
return Promise.resolve();
|
|
498
535
|
}, [selectedRun?.id, stopScenarioRun, workspaceId]);
|
|
499
536
|
const handleSendChat = useCallback(async () => {
|
|
500
537
|
const message = chatDraft.trim();
|
|
@@ -606,11 +643,12 @@ export const SimulatorTestPage = iso(`
|
|
|
606
643
|
selectedRunHistoryValue,
|
|
607
644
|
workspaceId,
|
|
608
645
|
]);
|
|
609
|
-
const handleNewChat = useCallback(
|
|
646
|
+
const handleNewChat = useCallback(() => {
|
|
610
647
|
if (!workspaceId)
|
|
611
|
-
return;
|
|
648
|
+
return Promise.resolve();
|
|
612
649
|
setChatDraft("");
|
|
613
650
|
navigate(buildWorkspacePath("test", workspaceId));
|
|
651
|
+
return Promise.resolve();
|
|
614
652
|
}, [navigate, workspaceId]);
|
|
615
653
|
const saveFeedback = useCallback(async (messageRefId, score, reason) => {
|
|
616
654
|
if (!workspaceId) {
|
|
@@ -747,6 +785,42 @@ export const SimulatorTestPage = iso(`
|
|
|
747
785
|
? formatJson(assistantDeck.modelParams)
|
|
748
786
|
: null }),
|
|
749
787
|
React.createElement(TestBotChatPanel, { run: selectedRunState, runWorkspaceId: workspaceId, runStatusLabel: runStatusLabel, testChatDisplay: testChatDisplay, transcriptMessageCount: transcriptMessageCount, transcriptUserMessageCount: transcriptUserMessageCount, activeWorkspaceId: workspaceId || null, requestedRunNotFound: hasMissingSelectedRun, canStart: canStartScenarioRun, canRunPersona: canRunPersona, hasPersonaSelection: hasPersonaSelection, botJsonErrorCount: parsedScenarioJson.error ? 1 : 0, deckJsonErrorCount: parsedAssistantInitJson.error ? 1 : 0, missingBotInput: missingScenarioFields, missingDeckInit: missingAssistantInitFields, lastInitFill: null, isUserStart: assistantDeck?.startMode === "user", showStartOverlay: showStartOverlay, canStartAssistant: canStartAssistantRun, canSendChat: chatDraft.trim().length > 0 && !showStartOverlay &&
|
|
750
|
-
!sendScenarioRun.inFlight && !hasActiveScenarioTurn, chatDraft: chatDraft, setChatDraft: setChatDraft, chatError: null, optimisticUser: null, streamingUser: null, streamingAssistant: null, startRun:
|
|
788
|
+
!sendScenarioRun.inFlight && !hasActiveScenarioTurn, chatDraft: chatDraft, setChatDraft: setChatDraft, chatError: null, optimisticUser: null, streamingUser: null, streamingAssistant: null, startRun: () => {
|
|
789
|
+
startNewScenarioRun();
|
|
790
|
+
return Promise.resolve();
|
|
791
|
+
}, stopRun: handleStopRun, handleNewChat: handleNewChat, handleSendChat: handleSendChat, handleStartAssistant: handleStartAssistant, onScore: saveFeedback, onReasonChange: saveFeedback, onAddFeedbackToWorkbench: (feedback) => {
|
|
792
|
+
const chip = {
|
|
793
|
+
chipId: `rating:${feedback.messageRefId}:${feedback.id}`,
|
|
794
|
+
source: "message_rating",
|
|
795
|
+
workspaceId,
|
|
796
|
+
runId: feedback.runId,
|
|
797
|
+
capturedAt: feedback.createdAt ?? new Date().toISOString(),
|
|
798
|
+
messageRefId: feedback.messageRefId,
|
|
799
|
+
score: feedback.score,
|
|
800
|
+
reason: feedback.reason,
|
|
801
|
+
enabled: true,
|
|
802
|
+
};
|
|
803
|
+
logTestChipDebug("feedback.add_to_workbench", {
|
|
804
|
+
messageRefId: feedback.messageRefId,
|
|
805
|
+
score: feedback.score,
|
|
806
|
+
reason: feedback.reason,
|
|
807
|
+
chip,
|
|
808
|
+
});
|
|
809
|
+
updateComposerChips(mergeWorkbenchSelectedContextChip(composerChips, chip));
|
|
810
|
+
}, onAddErrorToWorkbench: (payload) => {
|
|
811
|
+
if (!payload.error)
|
|
812
|
+
return;
|
|
813
|
+
updateComposerChips(mergeWorkbenchSelectedContextChip(composerChips, {
|
|
814
|
+
chipId: `scenario_run_error:${payload.runId ?? selectedRunState.id ?? workspaceId}`,
|
|
815
|
+
source: payload.source === "grader_run_error"
|
|
816
|
+
? "grader_run_error"
|
|
817
|
+
: "scenario_run_error",
|
|
818
|
+
workspaceId: payload.workspaceId ?? workspaceId,
|
|
819
|
+
runId: payload.runId ?? selectedRunState.id,
|
|
820
|
+
capturedAt: new Date().toISOString(),
|
|
821
|
+
error: payload.error,
|
|
822
|
+
enabled: true,
|
|
823
|
+
}));
|
|
824
|
+
} }))));
|
|
751
825
|
});
|
|
752
826
|
export default SimulatorTestPage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimulatorVerifyPage.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Query/SimulatorVerifyPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimulatorVerifyPage.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Query/SimulatorVerifyPage.tsx"],"names":[],"mappings":"AA+IA,eAAO,MAAM,mBAAmB,8LAo1B9B,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -14,6 +14,7 @@ import PageGrid from "../../../src/gds/PageGrid.js";
|
|
|
14
14
|
import PageShell from "../../../src/gds/PageShell.js";
|
|
15
15
|
import Panel from "../../../src/gds/Panel.js";
|
|
16
16
|
import { formatTimestampShort, scenarioNameFromValue, } from "../../../src/utils.js";
|
|
17
|
+
import { mergeWorkbenchSelectedContextChip, replaceWorkbenchSelectedContextChips, resolveWorkbenchSelectedContextChips, } from "../../../src/workbenchChipStore.js";
|
|
17
18
|
import { sortVerifyOutlierScenarioRuns, VERIFY_DEFAULTS, VERIFY_LIMITS, } from "../../../src/verify_unified.js";
|
|
18
19
|
const MAX_SCENARIO_RUNS = VERIFY_LIMITS.scenarioRunsMax;
|
|
19
20
|
const MAX_GRADER_REPEATS = VERIFY_LIMITS.graderRepeatsMax;
|
|
@@ -53,6 +54,7 @@ function formatPercent(value) {
|
|
|
53
54
|
export const SimulatorVerifyPage = iso(`
|
|
54
55
|
field Workspace.VerifyTab @component {
|
|
55
56
|
id
|
|
57
|
+
workbenchSelectedContextChips @updatable
|
|
56
58
|
scenarioDecks {
|
|
57
59
|
id
|
|
58
60
|
label
|
|
@@ -148,8 +150,12 @@ export const SimulatorVerifyPage = iso(`
|
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
|
-
`)(function SimulatorVerifyPage({ data }) {
|
|
153
|
+
`)(function SimulatorVerifyPage({ data, startUpdate }) {
|
|
152
154
|
const workspaceId = data.id ?? "";
|
|
155
|
+
const composerChips = useMemo(() => resolveWorkbenchSelectedContextChips(workspaceId, data.workbenchSelectedContextChips), [data.workbenchSelectedContextChips, workspaceId]);
|
|
156
|
+
const updateComposerChips = useCallback((next) => {
|
|
157
|
+
replaceWorkbenchSelectedContextChips(startUpdate, next, workspaceId);
|
|
158
|
+
}, [startUpdate, workspaceId]);
|
|
153
159
|
const { navigate } = useRouter();
|
|
154
160
|
const runBatchMutation = useGambitTypedMutation(gambitWorkspaceVerifyBatchRunCreateMutation);
|
|
155
161
|
useGambitTypedSubscription(gambitWorkspaceVerifyLiveSubscription, workspaceId ? { workspaceId } : null);
|
|
@@ -516,6 +522,23 @@ export const SimulatorVerifyPage = iso(`
|
|
|
516
522
|
outlier.messageRefId
|
|
517
523
|
? ` · ref ${outlier.messageRefId}`
|
|
518
524
|
: ""),
|
|
525
|
+
React.createElement("div", { className: "verify-outlier-links" },
|
|
526
|
+
React.createElement("button", { type: "button", className: "link-button", "data-testid": "verify-outlier-add-to-chat", onClick: () => updateComposerChips(mergeWorkbenchSelectedContextChip(composerChips, {
|
|
527
|
+
chipId: `verify:${outlier.key}`,
|
|
528
|
+
source: "verify_outlier",
|
|
529
|
+
workspaceId,
|
|
530
|
+
runId: outlier.maxRunId ?? outlier.minRunId,
|
|
531
|
+
capturedAt: new Date().toISOString(),
|
|
532
|
+
batchId: selectedBatch?.id,
|
|
533
|
+
scenarioRunId: outlier.scenarioRunId,
|
|
534
|
+
messageRefId: outlier.messageRefId,
|
|
535
|
+
score: outlier.averageScore ?? undefined,
|
|
536
|
+
instability: (outlier.maxScore ?? 0) -
|
|
537
|
+
(outlier.minScore ?? 0) >= 2,
|
|
538
|
+
message: `${scenarioNameFromValue(outlier.scenarioRunId) ??
|
|
539
|
+
outlier.scenarioRunId}: avg ${outlier.averageScore ?? "-"}, min/max ${outlier.minScore ?? "-"}/${outlier.maxScore ?? "-"}, samples ${outlier.completedSampleCount}/${outlier.gradeSampleCount}`,
|
|
540
|
+
enabled: true,
|
|
541
|
+
})) }, "Add to chat")),
|
|
519
542
|
uniqueRunLinks.length > 0 && (React.createElement("div", { className: "verify-outlier-links" }, uniqueRunLinks.map((runId) => (React.createElement("a", { key: runId, href: buildWorkspacePath("grade", workspaceId, {
|
|
520
543
|
runId,
|
|
521
544
|
}), onClick: (event) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkbenchChatDrawer.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkbenchChatDrawer.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.tsx"],"names":[],"mappings":"AAwEA,eAAO,MAAM,mBAAmB;UA4BJ,OAAO;iCAqdlC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|