@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
|
package/script/simulator-ui/__generated__/__isograph/Workspace/VerifyTab/param_type.d.ts.map
CHANGED
|
@@ -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,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AAC,MAAM,EAAE,MAAM,CAAC;wCACxB,QAAQ,CAAC,KAAK,EAAE,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/script/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"}
|
|
@@ -9,6 +9,13 @@ const readerAst = [
|
|
|
9
9
|
arguments: null,
|
|
10
10
|
isUpdatable: false,
|
|
11
11
|
},
|
|
12
|
+
{
|
|
13
|
+
kind: "Scalar",
|
|
14
|
+
fieldName: "workbenchSelectedContextChips",
|
|
15
|
+
alias: null,
|
|
16
|
+
arguments: null,
|
|
17
|
+
isUpdatable: true,
|
|
18
|
+
},
|
|
12
19
|
{
|
|
13
20
|
kind: "Linked",
|
|
14
21
|
fieldName: "scenarioDecks",
|
|
@@ -644,6 +651,6 @@ const artifact = {
|
|
|
644
651
|
fieldName: "VerifyTab",
|
|
645
652
|
resolver: SimulatorVerifyPage_js_1.SimulatorVerifyPage,
|
|
646
653
|
readerAst,
|
|
647
|
-
hasUpdatable:
|
|
654
|
+
hasUpdatable: true,
|
|
648
655
|
};
|
|
649
656
|
exports.default = artifact;
|
package/script/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
|
|
@@ -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;g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AC,MAAM,GAAG,IAAI,CAAC,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"}
|
|
@@ -13,6 +13,13 @@ const readerAst = [
|
|
|
13
13
|
arguments: null,
|
|
14
14
|
isUpdatable: false,
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
kind: "Scalar",
|
|
18
|
+
fieldName: "workbenchSelectedContextChips",
|
|
19
|
+
alias: null,
|
|
20
|
+
arguments: null,
|
|
21
|
+
isUpdatable: true,
|
|
22
|
+
},
|
|
16
23
|
{
|
|
17
24
|
kind: "Linked",
|
|
18
25
|
fieldName: "models",
|
|
@@ -149,6 +156,6 @@ const artifact = {
|
|
|
149
156
|
fieldName: "WorkbenchChatDrawer",
|
|
150
157
|
resolver: WorkbenchChatDrawer_js_1.WorkbenchChatDrawer,
|
|
151
158
|
readerAst,
|
|
152
|
-
hasUpdatable:
|
|
159
|
+
hasUpdatable: true,
|
|
153
160
|
};
|
|
154
161
|
exports.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,9 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.SimulatorGradePage = void 0;
|
|
40
|
+
const dntShim = __importStar(require("../../../../_dnt.shims.js"));
|
|
7
41
|
const iso_js_1 = require("../../../__generated__/__isograph/iso.js");
|
|
8
42
|
const react_1 = require("react");
|
|
9
43
|
const workspace_routes_js_1 = require("../../../../src/workspace_routes.js");
|
|
@@ -14,6 +48,7 @@ const GambitWorkspaceGradeLiveSubscription_js_1 = __importDefault(require("../..
|
|
|
14
48
|
const useGambitTypedMutation_js_1 = require("../../../src/hooks/useGambitTypedMutation.js");
|
|
15
49
|
const useGambitTypedSubscription_js_1 = require("../../../src/hooks/useGambitTypedSubscription.js");
|
|
16
50
|
const RouterContext_js_1 = require("../../../src/RouterContext.js");
|
|
51
|
+
const workbenchChipStore_js_1 = require("../../../src/workbenchChipStore.js");
|
|
17
52
|
const GradeTabView_js_1 = __importDefault(require("../grade/GradeTabView.js"));
|
|
18
53
|
function formatRunStatus(status) {
|
|
19
54
|
const normalized = (status ?? "").trim().toUpperCase();
|
|
@@ -28,6 +63,7 @@ function formatRunStatus(status) {
|
|
|
28
63
|
exports.SimulatorGradePage = (0, iso_js_1.iso)(`
|
|
29
64
|
field Workspace.GradeTab @component {
|
|
30
65
|
id
|
|
66
|
+
workbenchSelectedContextChips @updatable
|
|
31
67
|
scenarioRuns(first: 50) {
|
|
32
68
|
edges {
|
|
33
69
|
node {
|
|
@@ -82,8 +118,44 @@ exports.SimulatorGradePage = (0, iso_js_1.iso)(`
|
|
|
82
118
|
}
|
|
83
119
|
}
|
|
84
120
|
}
|
|
85
|
-
`)(function SimulatorGradePage({ data }) {
|
|
121
|
+
`)(function SimulatorGradePage({ data, startUpdate }) {
|
|
122
|
+
function isBuildChatDebugEnabled() {
|
|
123
|
+
if (typeof dntShim.dntGlobalThis === "undefined")
|
|
124
|
+
return false;
|
|
125
|
+
const debugGlobal = dntShim.dntGlobalThis
|
|
126
|
+
.__GAMBIT_BUILD_CHAT_DEBUG__;
|
|
127
|
+
if (debugGlobal === true)
|
|
128
|
+
return true;
|
|
129
|
+
const search = typeof globalThis.location?.search === "string"
|
|
130
|
+
? globalThis.location.search
|
|
131
|
+
: "";
|
|
132
|
+
if (search.length > 0) {
|
|
133
|
+
const value = new URLSearchParams(search).get("gambitBuildChatDebug");
|
|
134
|
+
if (value === "1" || value === "true")
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
let stored = "";
|
|
138
|
+
try {
|
|
139
|
+
stored = (globalThis.localStorage?.getItem("gambit:build-chat-debug") ??
|
|
140
|
+
"")
|
|
141
|
+
.toLowerCase()
|
|
142
|
+
.trim();
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
return stored === "1" || stored === "true" || stored === "yes";
|
|
148
|
+
}
|
|
149
|
+
function logGradeChipDebug(event, payload) {
|
|
150
|
+
if (!isBuildChatDebugEnabled())
|
|
151
|
+
return;
|
|
152
|
+
console.info(`[grade-chip-debug] ${event}`, payload);
|
|
153
|
+
}
|
|
86
154
|
const workspaceId = data.id ?? "";
|
|
155
|
+
const composerChips = (0, react_1.useMemo)(() => (0, workbenchChipStore_js_1.resolveWorkbenchSelectedContextChips)(workspaceId, data.workbenchSelectedContextChips), [data.workbenchSelectedContextChips, workspaceId]);
|
|
156
|
+
const updateComposerChips = (0, react_1.useCallback)((next) => {
|
|
157
|
+
(0, workbenchChipStore_js_1.replaceWorkbenchSelectedContextChips)(startUpdate, next, workspaceId);
|
|
158
|
+
}, [startUpdate, workspaceId]);
|
|
87
159
|
const { currentRoutePath, navigate } = (0, RouterContext_js_1.useRouter)();
|
|
88
160
|
const workspaceRoutePath = currentRoutePath;
|
|
89
161
|
const route = (0, react_1.useMemo)(() => (0, workspace_routes_js_1.parseWorkspaceRoute)(workspaceRoutePath), [
|
|
@@ -292,7 +364,42 @@ exports.SimulatorGradePage = (0, iso_js_1.iso)(`
|
|
|
292
364
|
if (routeGradeRunId) {
|
|
293
365
|
onSelectRun(null);
|
|
294
366
|
}
|
|
295
|
-
}, graders: graders, selectedGraderId: selectedGraderId, onSelectGrader: setSelectedGraderId, onRunGrader: onRunGrader, runInFlight: runGradeMutation.inFlight, canRunGrader: canRunGrader, filteredRuns: filteredRuns, routeGradeRunId: routeGradeRunId, routeRunMissing: routeRunMissing, missingRunHref: (0, workspace_routes_js_1.buildWorkspacePath)("grade", workspaceId), onSelectRun: onSelectRun, flagByRefId: flagByRefId, reasonDrafts: reasonDrafts, onReasonDraftChange: onReasonDraftChange, onReasonBlur: onReasonBlur, onToggleFlag: onToggleFlag,
|
|
367
|
+
}, graders: graders, selectedGraderId: selectedGraderId, onSelectGrader: setSelectedGraderId, onRunGrader: onRunGrader, runInFlight: runGradeMutation.inFlight, canRunGrader: canRunGrader, filteredRuns: filteredRuns, routeGradeRunId: routeGradeRunId, routeRunMissing: routeRunMissing, missingRunHref: (0, workspace_routes_js_1.buildWorkspacePath)("grade", workspaceId), onSelectRun: onSelectRun, flagByRefId: flagByRefId, reasonDrafts: reasonDrafts, onReasonDraftChange: onReasonDraftChange, onReasonBlur: onReasonBlur, onToggleFlag: onToggleFlag, onAddFlagToWorkbench: (args) => {
|
|
368
|
+
const flagReason = args.flagReason?.trim();
|
|
369
|
+
const graderReason = args.graderReason?.trim();
|
|
370
|
+
const gradedAssistant = args.gradedAssistant?.trim();
|
|
371
|
+
const message = [
|
|
372
|
+
flagReason ? `Flag reason: ${flagReason}` : null,
|
|
373
|
+
graderReason ? `Grader feedback: ${graderReason}` : null,
|
|
374
|
+
gradedAssistant ? `Assistant response: ${gradedAssistant}` : null,
|
|
375
|
+
].filter((part) => Boolean(part)).join("\n");
|
|
376
|
+
logGradeChipDebug("flag.add_to_workbench", {
|
|
377
|
+
workspaceId,
|
|
378
|
+
args,
|
|
379
|
+
chipMessage: message || "Flagged by grader",
|
|
380
|
+
});
|
|
381
|
+
updateComposerChips((0, workbenchChipStore_js_1.mergeWorkbenchSelectedContextChip)(composerChips, {
|
|
382
|
+
chipId: `flag:${args.refId}`,
|
|
383
|
+
source: "grading_flag",
|
|
384
|
+
workspaceId,
|
|
385
|
+
runId: args.runId,
|
|
386
|
+
capturedAt: new Date().toISOString(),
|
|
387
|
+
refId: args.refId,
|
|
388
|
+
score: args.score,
|
|
389
|
+
message: message || "Flagged by grader",
|
|
390
|
+
enabled: true,
|
|
391
|
+
}));
|
|
392
|
+
}, onAddErrorToWorkbench: ({ runId, error }) => {
|
|
393
|
+
updateComposerChips((0, workbenchChipStore_js_1.mergeWorkbenchSelectedContextChip)(composerChips, {
|
|
394
|
+
chipId: `grader_run_error:${runId ?? routeGradeRunId ?? workspaceId}`,
|
|
395
|
+
source: "grader_run_error",
|
|
396
|
+
workspaceId,
|
|
397
|
+
runId: runId ?? routeGradeRunId ?? undefined,
|
|
398
|
+
capturedAt: new Date().toISOString(),
|
|
399
|
+
error,
|
|
400
|
+
enabled: true,
|
|
401
|
+
}));
|
|
402
|
+
}, mutationError: mutationError, expandedResults: expandedResults, onToggleExpandedResult: (itemKey) => setExpandedResults((prev) => ({
|
|
296
403
|
...prev,
|
|
297
404
|
[itemKey]: !prev[itemKey],
|
|
298
405
|
})) }));
|
|
@@ -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,9 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.SimulatorTestPage = void 0;
|
|
40
|
+
const dntShim = __importStar(require("../../../../_dnt.shims.js"));
|
|
7
41
|
const iso_js_1 = require("../../../__generated__/__isograph/iso.js");
|
|
8
42
|
const react_1 = require("react");
|
|
9
43
|
const workspace_routes_js_1 = require("../../../../src/workspace_routes.js");
|
|
@@ -24,6 +58,7 @@ const PageShell_js_1 = __importDefault(require("../../../src/gds/PageShell.js"))
|
|
|
24
58
|
const PageGrid_js_1 = __importDefault(require("../../../src/gds/PageGrid.js"));
|
|
25
59
|
const Callout_js_1 = __importDefault(require("../../../src/gds/Callout.js"));
|
|
26
60
|
const TestBotChatPanel_js_1 = __importDefault(require("../../../src/TestBotChatPanel.js"));
|
|
61
|
+
const workbenchChipStore_js_1 = require("../../../src/workbenchChipStore.js");
|
|
27
62
|
function toTestBotStatus(status) {
|
|
28
63
|
const normalized = status.trim().toUpperCase();
|
|
29
64
|
if (normalized === "RUNNING")
|
|
@@ -37,6 +72,35 @@ function toTestBotStatus(status) {
|
|
|
37
72
|
}
|
|
38
73
|
return "idle";
|
|
39
74
|
}
|
|
75
|
+
function isBuildChatDebugEnabled() {
|
|
76
|
+
if (typeof dntShim.dntGlobalThis === "undefined")
|
|
77
|
+
return false;
|
|
78
|
+
if ("location" in dntShim.dntGlobalThis && globalThis.location) {
|
|
79
|
+
const search = typeof globalThis.location.search === "string"
|
|
80
|
+
? globalThis.location.search
|
|
81
|
+
: "";
|
|
82
|
+
if (search.length > 0) {
|
|
83
|
+
const value = new URLSearchParams(search).get("gambitBuildChatDebug");
|
|
84
|
+
if (value === "1" || value === "true")
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
let stored = "";
|
|
89
|
+
try {
|
|
90
|
+
stored = (globalThis.localStorage?.getItem("gambit:build-chat-debug") ?? "")
|
|
91
|
+
.toLowerCase()
|
|
92
|
+
.trim();
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
return stored === "1" || stored === "true" || stored === "yes";
|
|
98
|
+
}
|
|
99
|
+
function logTestChipDebug(event, payload) {
|
|
100
|
+
if (!isBuildChatDebugEnabled())
|
|
101
|
+
return;
|
|
102
|
+
console.info(`[test-chip-debug] ${event}`, payload);
|
|
103
|
+
}
|
|
40
104
|
function toOptimisticScenarioRunEdges(args) {
|
|
41
105
|
const edges = args.runs.map((run) => {
|
|
42
106
|
const isActive = run.id === args.runId;
|
|
@@ -73,6 +137,7 @@ function toOptimisticScenarioRunEdges(args) {
|
|
|
73
137
|
exports.SimulatorTestPage = (0, iso_js_1.iso)(`
|
|
74
138
|
field Workspace.TestTab @component {
|
|
75
139
|
id
|
|
140
|
+
workbenchSelectedContextChips @updatable
|
|
76
141
|
scenarioDecks {
|
|
77
142
|
id
|
|
78
143
|
label
|
|
@@ -135,7 +200,7 @@ exports.SimulatorTestPage = (0, iso_js_1.iso)(`
|
|
|
135
200
|
}
|
|
136
201
|
}
|
|
137
202
|
}
|
|
138
|
-
`)(function SimulatorTestPage({ data }) {
|
|
203
|
+
`)(function SimulatorTestPage({ data, startUpdate }) {
|
|
139
204
|
const parseJsonField = (0, react_1.useCallback)((value) => {
|
|
140
205
|
if (typeof value !== "string")
|
|
141
206
|
return value;
|
|
@@ -161,6 +226,10 @@ exports.SimulatorTestPage = (0, iso_js_1.iso)(`
|
|
|
161
226
|
}
|
|
162
227
|
}, []);
|
|
163
228
|
const workspaceId = data.id ?? "";
|
|
229
|
+
const composerChips = (0, react_1.useMemo)(() => (0, workbenchChipStore_js_1.resolveWorkbenchSelectedContextChips)(workspaceId, data.workbenchSelectedContextChips), [data.workbenchSelectedContextChips, workspaceId]);
|
|
230
|
+
const updateComposerChips = (0, react_1.useCallback)((next) => {
|
|
231
|
+
(0, workbenchChipStore_js_1.replaceWorkbenchSelectedContextChips)(startUpdate, next, workspaceId);
|
|
232
|
+
}, [startUpdate, workspaceId]);
|
|
164
233
|
const { currentRoutePath, navigate } = (0, RouterContext_js_1.useRouter)();
|
|
165
234
|
const workspaceRoutePath = currentRoutePath;
|
|
166
235
|
const scenarioDecks = (0, react_1.useMemo)(() => (data.scenarioDecks ?? []).flatMap((deck) => deck?.id && deck.label && deck.path
|
|
@@ -495,12 +564,13 @@ exports.SimulatorTestPage = (0, iso_js_1.iso)(`
|
|
|
495
564
|
const showStartOverlay = Boolean(assistantDeck?.startMode !== "user" &&
|
|
496
565
|
selectedRunNeedsAssistantStart);
|
|
497
566
|
const hasActiveScenarioTurn = selectedRunState.status === "running";
|
|
498
|
-
const handleStopRun = (0, react_1.useCallback)(
|
|
567
|
+
const handleStopRun = (0, react_1.useCallback)(() => {
|
|
499
568
|
if (!selectedRun?.id || !workspaceId)
|
|
500
|
-
return;
|
|
569
|
+
return Promise.resolve();
|
|
501
570
|
stopScenarioRun.commit({
|
|
502
571
|
input: { workspaceId, runId: selectedRun.id },
|
|
503
572
|
});
|
|
573
|
+
return Promise.resolve();
|
|
504
574
|
}, [selectedRun?.id, stopScenarioRun, workspaceId]);
|
|
505
575
|
const handleSendChat = (0, react_1.useCallback)(async () => {
|
|
506
576
|
const message = chatDraft.trim();
|
|
@@ -612,11 +682,12 @@ exports.SimulatorTestPage = (0, iso_js_1.iso)(`
|
|
|
612
682
|
selectedRunHistoryValue,
|
|
613
683
|
workspaceId,
|
|
614
684
|
]);
|
|
615
|
-
const handleNewChat = (0, react_1.useCallback)(
|
|
685
|
+
const handleNewChat = (0, react_1.useCallback)(() => {
|
|
616
686
|
if (!workspaceId)
|
|
617
|
-
return;
|
|
687
|
+
return Promise.resolve();
|
|
618
688
|
setChatDraft("");
|
|
619
689
|
navigate((0, workspace_routes_js_1.buildWorkspacePath)("test", workspaceId));
|
|
690
|
+
return Promise.resolve();
|
|
620
691
|
}, [navigate, workspaceId]);
|
|
621
692
|
const saveFeedback = (0, react_1.useCallback)(async (messageRefId, score, reason) => {
|
|
622
693
|
if (!workspaceId) {
|
|
@@ -753,6 +824,42 @@ exports.SimulatorTestPage = (0, iso_js_1.iso)(`
|
|
|
753
824
|
? (0, utils_js_1.formatJson)(assistantDeck.modelParams)
|
|
754
825
|
: null }),
|
|
755
826
|
React.createElement(TestBotChatPanel_js_1.default, { 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 &&
|
|
756
|
-
!sendScenarioRun.inFlight && !hasActiveScenarioTurn, chatDraft: chatDraft, setChatDraft: setChatDraft, chatError: null, optimisticUser: null, streamingUser: null, streamingAssistant: null, startRun:
|
|
827
|
+
!sendScenarioRun.inFlight && !hasActiveScenarioTurn, chatDraft: chatDraft, setChatDraft: setChatDraft, chatError: null, optimisticUser: null, streamingUser: null, streamingAssistant: null, startRun: () => {
|
|
828
|
+
startNewScenarioRun();
|
|
829
|
+
return Promise.resolve();
|
|
830
|
+
}, stopRun: handleStopRun, handleNewChat: handleNewChat, handleSendChat: handleSendChat, handleStartAssistant: handleStartAssistant, onScore: saveFeedback, onReasonChange: saveFeedback, onAddFeedbackToWorkbench: (feedback) => {
|
|
831
|
+
const chip = {
|
|
832
|
+
chipId: `rating:${feedback.messageRefId}:${feedback.id}`,
|
|
833
|
+
source: "message_rating",
|
|
834
|
+
workspaceId,
|
|
835
|
+
runId: feedback.runId,
|
|
836
|
+
capturedAt: feedback.createdAt ?? new Date().toISOString(),
|
|
837
|
+
messageRefId: feedback.messageRefId,
|
|
838
|
+
score: feedback.score,
|
|
839
|
+
reason: feedback.reason,
|
|
840
|
+
enabled: true,
|
|
841
|
+
};
|
|
842
|
+
logTestChipDebug("feedback.add_to_workbench", {
|
|
843
|
+
messageRefId: feedback.messageRefId,
|
|
844
|
+
score: feedback.score,
|
|
845
|
+
reason: feedback.reason,
|
|
846
|
+
chip,
|
|
847
|
+
});
|
|
848
|
+
updateComposerChips((0, workbenchChipStore_js_1.mergeWorkbenchSelectedContextChip)(composerChips, chip));
|
|
849
|
+
}, onAddErrorToWorkbench: (payload) => {
|
|
850
|
+
if (!payload.error)
|
|
851
|
+
return;
|
|
852
|
+
updateComposerChips((0, workbenchChipStore_js_1.mergeWorkbenchSelectedContextChip)(composerChips, {
|
|
853
|
+
chipId: `scenario_run_error:${payload.runId ?? selectedRunState.id ?? workspaceId}`,
|
|
854
|
+
source: payload.source === "grader_run_error"
|
|
855
|
+
? "grader_run_error"
|
|
856
|
+
: "scenario_run_error",
|
|
857
|
+
workspaceId: payload.workspaceId ?? workspaceId,
|
|
858
|
+
runId: payload.runId ?? selectedRunState.id,
|
|
859
|
+
capturedAt: new Date().toISOString(),
|
|
860
|
+
error: payload.error,
|
|
861
|
+
enabled: true,
|
|
862
|
+
}));
|
|
863
|
+
} }))));
|
|
757
864
|
});
|
|
758
865
|
exports.default = exports.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"}
|