@bolt-foundry/gambit 0.8.6-rc.5 → 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 +9 -1
- package/esm/gambit/simulator-ui/dist/bundle.js +14226 -23324
- 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/SimulatorBuildPage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorBuildPage.js +4 -11
- package/esm/simulator-ui/isograph/components/Query/SimulatorGradePage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorGradePage.js +79 -20
- package/esm/simulator-ui/isograph/components/Query/SimulatorTestPage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorTestPage.js +88 -27
- package/esm/simulator-ui/isograph/components/Query/SimulatorVerifyPage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorVerifyPage.js +31 -17
- package/esm/simulator-ui/isograph/components/Query/SimulatorWorkspacesPage.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Query/SimulatorWorkspacesPage.js +2 -6
- package/esm/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.js +27 -23
- package/esm/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts +3 -0
- package/esm/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.js +76 -50
- 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/isograph/entrypoints/EntrypointSimulatorRedirect.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/entrypoints/EntrypointSimulatorRedirect.js +3 -16
- package/esm/simulator-ui/isograph/entrypoints/EntrypointSimulatorWorkspaceShell.d.ts.map +1 -1
- package/esm/simulator-ui/isograph/entrypoints/EntrypointSimulatorWorkspaceShell.js +1 -9
- package/esm/simulator-ui/src/AppShell.d.ts.map +1 -1
- package/esm/simulator-ui/src/AppShell.js +21 -31
- 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/MinimalRouterRoot.d.ts.map +1 -1
- package/esm/simulator-ui/src/MinimalRouterRoot.js +1 -16
- 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/WorkbenchChatIntro.d.ts +10 -0
- package/esm/simulator-ui/src/WorkbenchChatIntro.d.ts.map +1 -0
- package/esm/simulator-ui/src/WorkbenchChatIntro.js +24 -0
- package/esm/simulator-ui/src/WorkbenchDrawerIso.d.ts +1 -0
- package/esm/simulator-ui/src/WorkbenchDrawerIso.d.ts.map +1 -1
- package/esm/simulator-ui/src/WorkbenchDrawerIso.js +3 -15
- 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/routing.d.ts.map +1 -1
- package/esm/simulator-ui/src/routing.js +0 -31
- 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/styles.d.ts +1 -1
- package/esm/simulator-ui/src/styles.d.ts.map +1 -1
- package/esm/simulator-ui/src/styles.js +65 -0
- package/esm/simulator-ui/src/utils.d.ts +1 -0
- package/esm/simulator-ui/src/utils.d.ts.map +1 -1
- package/esm/simulator-ui/src/utils.js +2 -0
- 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/server/request_handler.d.ts.map +1 -1
- package/esm/src/server/request_handler.js +0 -40
- package/esm/src/server.js +1 -1
- package/esm/src/server_legacy_api_routes.d.ts +2 -122
- package/esm/src/server_legacy_api_routes.d.ts.map +1 -1
- package/esm/src/server_legacy_api_routes.js +0 -591
- package/esm/src/server_simulator_ui.d.ts.map +1 -1
- package/esm/src/server_simulator_ui.js +34 -0
- package/esm/src/server_ui_routes.d.ts.map +1 -1
- package/esm/src/server_ui_routes.js +0 -2
- package/esm/src/server_workspace_graphql.d.ts +1 -1
- package/esm/src/server_workspace_graphql.d.ts.map +1 -1
- package/esm/src/server_workspace_graphql.js +66 -46
- 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 +14226 -23324
- 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/SimulatorBuildPage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorBuildPage.js +4 -11
- package/script/simulator-ui/isograph/components/Query/SimulatorGradePage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorGradePage.js +112 -20
- package/script/simulator-ui/isograph/components/Query/SimulatorTestPage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorTestPage.js +121 -27
- package/script/simulator-ui/isograph/components/Query/SimulatorVerifyPage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorVerifyPage.js +31 -17
- package/script/simulator-ui/isograph/components/Query/SimulatorWorkspacesPage.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Query/SimulatorWorkspacesPage.js +2 -6
- package/script/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/Workspace/WorkbenchChatDrawer.js +26 -22
- package/script/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts +3 -0
- package/script/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.d.ts.map +1 -1
- package/script/simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.js +75 -49
- 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/isograph/entrypoints/EntrypointSimulatorRedirect.d.ts.map +1 -1
- package/script/simulator-ui/isograph/entrypoints/EntrypointSimulatorRedirect.js +3 -16
- package/script/simulator-ui/isograph/entrypoints/EntrypointSimulatorWorkspaceShell.d.ts.map +1 -1
- package/script/simulator-ui/isograph/entrypoints/EntrypointSimulatorWorkspaceShell.js +1 -9
- package/script/simulator-ui/src/AppShell.d.ts.map +1 -1
- package/script/simulator-ui/src/AppShell.js +21 -31
- 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/MinimalRouterRoot.d.ts.map +1 -1
- package/script/simulator-ui/src/MinimalRouterRoot.js +1 -16
- 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/WorkbenchChatIntro.d.ts +10 -0
- package/script/simulator-ui/src/WorkbenchChatIntro.d.ts.map +1 -0
- package/script/simulator-ui/src/WorkbenchChatIntro.js +30 -0
- package/script/simulator-ui/src/WorkbenchDrawerIso.d.ts +1 -0
- package/script/simulator-ui/src/WorkbenchDrawerIso.d.ts.map +1 -1
- package/script/simulator-ui/src/WorkbenchDrawerIso.js +3 -15
- 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/routing.d.ts.map +1 -1
- package/script/simulator-ui/src/routing.js +0 -31
- 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/styles.d.ts +1 -1
- package/script/simulator-ui/src/styles.d.ts.map +1 -1
- package/script/simulator-ui/src/styles.js +65 -0
- package/script/simulator-ui/src/utils.d.ts +1 -0
- package/script/simulator-ui/src/utils.d.ts.map +1 -1
- package/script/simulator-ui/src/utils.js +3 -1
- 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/server/request_handler.d.ts.map +1 -1
- package/script/src/server/request_handler.js +0 -40
- package/script/src/server.js +1 -1
- package/script/src/server_legacy_api_routes.d.ts +2 -122
- package/script/src/server_legacy_api_routes.d.ts.map +1 -1
- package/script/src/server_legacy_api_routes.js +0 -624
- package/script/src/server_simulator_ui.d.ts.map +1 -1
- package/script/src/server_simulator_ui.js +34 -0
- package/script/src/server_ui_routes.d.ts.map +1 -1
- package/script/src/server_ui_routes.js +0 -2
- package/script/src/server_workspace_graphql.d.ts +1 -1
- package/script/src/server_workspace_graphql.d.ts.map +1 -1
- package/script/src/server_workspace_graphql.js +66 -46
- 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
|
@@ -44,8 +44,13 @@ const Chat_js_1 = require("../../../src/Chat.js");
|
|
|
44
44
|
const Button_js_1 = __importDefault(require("../../../src/gds/Button.js"));
|
|
45
45
|
const Callout_js_1 = __importDefault(require("../../../src/gds/Callout.js"));
|
|
46
46
|
const CodexLoginRequiredOverlay_js_1 = __importDefault(require("../../../src/CodexLoginRequiredOverlay.js"));
|
|
47
|
+
const WorkbenchChatIntro_js_1 = __importDefault(require("../../../src/WorkbenchChatIntro.js"));
|
|
48
|
+
const WorkbenchComposerChip_js_1 = __importDefault(require("../../../src/gds/WorkbenchComposerChip.js"));
|
|
47
49
|
const transcriptEntries_js_1 = require("../../../src/transcriptEntries.js");
|
|
48
50
|
const WorkbenchDrawerIso_js_1 = __importDefault(require("../../../src/WorkbenchDrawerIso.js"));
|
|
51
|
+
const utils_js_1 = require("../../../src/utils.js");
|
|
52
|
+
const workbenchContext_js_1 = require("../../../src/workbenchContext.js");
|
|
53
|
+
const workbenchChipStore_js_1 = require("../../../src/workbenchChipStore.js");
|
|
49
54
|
const RUN_STATUS_VALUES = new Set([
|
|
50
55
|
"IDLE",
|
|
51
56
|
"RUNNING",
|
|
@@ -79,12 +84,10 @@ function isBuildChatDebugEnabled() {
|
|
|
79
84
|
}
|
|
80
85
|
return stored === "1" || stored === "true" || stored === "yes";
|
|
81
86
|
}
|
|
82
|
-
const BUILD_CHAT_DEBUG = isBuildChatDebugEnabled();
|
|
83
87
|
function logBuildChatDebug(event, payload) {
|
|
84
|
-
if (!
|
|
88
|
+
if (!isBuildChatDebugEnabled())
|
|
85
89
|
return;
|
|
86
|
-
|
|
87
|
-
void payload;
|
|
90
|
+
console.info(`[build-chat-debug] ${event}`, payload);
|
|
88
91
|
}
|
|
89
92
|
function toRunStatus(value) {
|
|
90
93
|
if (typeof value !== "string")
|
|
@@ -208,7 +211,6 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
208
211
|
const testIdPrefix = (componentProps.testIdPrefix ?? "build").trim() ||
|
|
209
212
|
"build";
|
|
210
213
|
const chatInputTestId = `${testIdPrefix}-chat-input`;
|
|
211
|
-
const startButtonTestId = `${testIdPrefix}-start`;
|
|
212
214
|
const sendButtonTestId = `${testIdPrefix}-send`;
|
|
213
215
|
const stopButtonTestId = `${testIdPrefix}-stop`;
|
|
214
216
|
const activityIndicatorTestId = `${testIdPrefix}-chat-activity-indicator`;
|
|
@@ -261,6 +263,9 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
261
263
|
const wasActiveRef = (0, react_1.useRef)(false);
|
|
262
264
|
const [chatDraft, setChatDraft] = (0, react_1.useState)("");
|
|
263
265
|
const [localError, setLocalError] = (0, react_1.useState)(null);
|
|
266
|
+
const composerChips = componentProps.composerChips ?? [];
|
|
267
|
+
const updateComposerChips = componentProps.onComposerChipsChange ??
|
|
268
|
+
(() => { });
|
|
264
269
|
const onSendMessage = (0, react_1.useCallback)((message, options) => {
|
|
265
270
|
if (codexLoginRequired) {
|
|
266
271
|
setChatError("Codex login is required for this workspace.");
|
|
@@ -343,11 +348,13 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
343
348
|
]);
|
|
344
349
|
const isRunning = runStatus === "RUNNING";
|
|
345
350
|
const isBusy = componentProps.isSending || componentProps.isStopping;
|
|
351
|
+
const hasEnabledComposerChip = composerChips.some((chip) => chip.enabled);
|
|
346
352
|
const canStartAssistant = !isRunning && !componentProps.isSending &&
|
|
347
353
|
transcriptMessageCount === 0;
|
|
348
354
|
const canSubmitMessage = !componentProps.isSending && !isRunning &&
|
|
349
|
-
chatDraft.trim().length > 0;
|
|
350
|
-
const
|
|
355
|
+
(chatDraft.trim().length > 0 || hasEnabledComposerChip);
|
|
356
|
+
const showStartOverlay = canStartAssistant && !hasEnabledComposerChip &&
|
|
357
|
+
chatDraft.trim().length === 0;
|
|
351
358
|
const resolvedError = chatError ?? localError;
|
|
352
359
|
const handleCopyCodexLoginCommand = (0, react_1.useCallback)(() => {
|
|
353
360
|
globalThis.navigator?.clipboard?.writeText(codexLoginCommand);
|
|
@@ -400,26 +407,37 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
400
407
|
const trimmed = chatDraft.trim();
|
|
401
408
|
if (!canSubmitMessage || isBusy)
|
|
402
409
|
return;
|
|
410
|
+
const activeChips = composerChips.filter((chip) => chip.enabled);
|
|
411
|
+
const activeChipIds = new Set(activeChips.map((chip) => chip.chipId));
|
|
412
|
+
const outboundMessage = activeChips.length > 0
|
|
413
|
+
? (0, Chat_js_1.encodeWorkbenchMessageWithContext)(trimmed, activeChips.map((chip) => (0, workbenchContext_js_1.toWorkbenchMessageContext)(chip)))
|
|
414
|
+
: trimmed;
|
|
415
|
+
logBuildChatDebug("send.outbound", {
|
|
416
|
+
runId,
|
|
417
|
+
workspaceId,
|
|
418
|
+
trimmed,
|
|
419
|
+
activeChips,
|
|
420
|
+
outboundMessage,
|
|
421
|
+
});
|
|
403
422
|
setLocalError(null);
|
|
404
423
|
try {
|
|
405
|
-
await onSendMessage(
|
|
424
|
+
await onSendMessage(outboundMessage);
|
|
406
425
|
setChatDraft("");
|
|
426
|
+
if (activeChipIds.size > 0) {
|
|
427
|
+
updateComposerChips(composerChips.map((chip) => activeChipIds.has(chip.chipId) ? { ...chip, enabled: false } : chip));
|
|
428
|
+
}
|
|
407
429
|
}
|
|
408
430
|
catch (error) {
|
|
409
431
|
setLocalError(toErrorMessage(error));
|
|
410
432
|
}
|
|
411
|
-
}, [
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
catch (error) {
|
|
420
|
-
setLocalError(toErrorMessage(error));
|
|
421
|
-
}
|
|
422
|
-
}, [isBusy, onSendMessage, showStartButton]);
|
|
433
|
+
}, [
|
|
434
|
+
canSubmitMessage,
|
|
435
|
+
chatDraft,
|
|
436
|
+
composerChips,
|
|
437
|
+
isBusy,
|
|
438
|
+
onSendMessage,
|
|
439
|
+
updateComposerChips,
|
|
440
|
+
]);
|
|
423
441
|
const stopMessage = (0, react_1.useCallback)(async () => {
|
|
424
442
|
if (isBusy || !isRunning)
|
|
425
443
|
return;
|
|
@@ -434,17 +452,23 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
434
452
|
const addScenarioErrorToChat = (0, react_1.useCallback)(() => {
|
|
435
453
|
if (!scenarioRunError)
|
|
436
454
|
return;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
455
|
+
updateComposerChips((0, workbenchChipStore_js_1.mergeWorkbenchSelectedContextChip)(composerChips, {
|
|
456
|
+
chipId: `scenario_run_error:${runId ?? workspaceId ?? "workspace"}`,
|
|
457
|
+
source: "scenario_run_error",
|
|
458
|
+
workspaceId: workspaceId ?? undefined,
|
|
459
|
+
runId: runId ?? undefined,
|
|
460
|
+
capturedAt: new Date().toISOString(),
|
|
461
|
+
error: scenarioRunError,
|
|
462
|
+
enabled: true,
|
|
463
|
+
}));
|
|
445
464
|
composerInputRef.current?.focus();
|
|
446
|
-
}, [
|
|
447
|
-
|
|
465
|
+
}, [
|
|
466
|
+
composerChips,
|
|
467
|
+
runId,
|
|
468
|
+
scenarioRunError,
|
|
469
|
+
updateComposerChips,
|
|
470
|
+
workspaceId,
|
|
471
|
+
]);
|
|
448
472
|
const errorCalloutTestId = `${testIdPrefix}-error-callout`;
|
|
449
473
|
const addErrorToChatTestId = `${testIdPrefix}-add-error-to-chat`;
|
|
450
474
|
const chatBody = (React.createElement("div", { className: "test-bot-sidebar flex-column gap-8 flex-1 build-chat-panel" },
|
|
@@ -454,19 +478,23 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
454
478
|
React.createElement("div", { className: "test-bot-thread" },
|
|
455
479
|
React.createElement("div", { className: "imessage-thread", ref: transcriptRef, onScroll: (event) => {
|
|
456
480
|
shouldAutoScrollRef.current = isNearBottom(event.currentTarget);
|
|
457
|
-
} },
|
|
458
|
-
|
|
459
|
-
|
|
481
|
+
} },
|
|
482
|
+
!showCodexLoginOverlay && showStartOverlay && React.createElement(WorkbenchChatIntro_js_1.default, null),
|
|
483
|
+
effectiveTranscriptDisplay.length === 0
|
|
484
|
+
? (showStartOverlay && !showCodexLoginOverlay
|
|
485
|
+
? null
|
|
486
|
+
: React.createElement(Callout_js_1.default, null, emptyStateText))
|
|
487
|
+
: React.createElement(Chat_js_1.BuildChatRows, { display: effectiveTranscriptDisplay }))),
|
|
460
488
|
React.createElement("div", { className: "composer" },
|
|
461
489
|
React.createElement("div", { className: "composer-inputs" },
|
|
462
490
|
React.createElement("div", { className: "build-chat-activity-sticky" },
|
|
463
491
|
React.createElement(BuildChatActivityIndicator, { state: activityState, startedAtMs: resolvedStartedAtMs, testId: activityIndicatorTestId, timerTestId: activityTimerTestId })),
|
|
492
|
+
composerChips.length > 0 && (React.createElement("div", { className: "workbench-composer-chip-row", "data-testid": `${testIdPrefix}-composer-chip-row` }, composerChips.map((chip) => (React.createElement(WorkbenchComposerChip_js_1.default, { key: chip.chipId, context: chip, enabled: chip.enabled, onEnabledChange: (enabled) => updateComposerChips(composerChips.map((entry) => entry.chipId === chip.chipId
|
|
493
|
+
? { ...entry, enabled }
|
|
494
|
+
: entry)), onRemove: () => updateComposerChips(composerChips.filter((entry) => entry.chipId !== chip.chipId)) }))))),
|
|
464
495
|
scenarioRunError && (React.createElement(Callout_js_1.default, { variant: "danger", title: "Scenario run failed", actions: React.createElement(Button_js_1.default, { variant: "secondary", size: "small", "data-testid": addErrorToChatTestId, onClick: addScenarioErrorToChat }, "Add to chat"), "data-testid": errorCalloutTestId }, scenarioRunError)),
|
|
465
|
-
showStartButton && (React.createElement(Callout_js_1.default, { variant: "emphasis" }, "Start the assistant to begin editing.")),
|
|
466
496
|
React.createElement("div", { className: "flex-row gap-4 mb-2" },
|
|
467
|
-
React.createElement("textarea", { ref: composerInputRef, className: "message-input flex-1", rows: 1, placeholder:
|
|
468
|
-
? "Start the assistant to begin..."
|
|
469
|
-
: "Message Gambit Bot...", value: chatDraft, onChange: (event) => setChatDraft(event.target.value), "data-testid": chatInputTestId, disabled: isBusy, onKeyDown: (event) => {
|
|
497
|
+
React.createElement("textarea", { ref: composerInputRef, className: "message-input flex-1", rows: 1, placeholder: "Message Gambit Bot...", value: chatDraft, onChange: (event) => setChatDraft(event.target.value), "data-testid": chatInputTestId, disabled: isBusy, onKeyDown: (event) => {
|
|
470
498
|
if (event.key === "Enter" && !event.shiftKey) {
|
|
471
499
|
event.preventDefault();
|
|
472
500
|
if (canSubmitMessage) {
|
|
@@ -475,19 +503,17 @@ exports.WorkbenchConversationRunChat = (0, iso_js_1.iso)(`
|
|
|
475
503
|
}
|
|
476
504
|
} }),
|
|
477
505
|
React.createElement("div", { className: "composer-actions" },
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
? (React.createElement(Button_js_1.default, { variant: "primary", disabled: !showStartButton || isBusy || codexLoginRequired, "data-testid": startButtonTestId, onClick: () => {
|
|
485
|
-
void startAssistant();
|
|
486
|
-
} }, componentProps.isSending ? "Starting..." : "Start"))
|
|
487
|
-
: (React.createElement(Button_js_1.default, { variant: "primary", disabled: !canSubmitMessage || isBusy || codexLoginRequired, "data-testid": sendButtonTestId, onClick: () => {
|
|
506
|
+
React.createElement("div", { className: "composer-action-slot composer-action-slot-primary" }, isRunning
|
|
507
|
+
? (React.createElement(Button_js_1.default, { variant: "secondary", className: "composer-action-button", disabled: isBusy, "data-testid": stopButtonTestId, onClick: () => {
|
|
508
|
+
void stopMessage();
|
|
509
|
+
} }, componentProps.isStopping ? "Stopping..." : "Stop"))
|
|
510
|
+
: (React.createElement(Button_js_1.default, { variant: "primary", className: "composer-action-button", disabled: !canSubmitMessage || isBusy ||
|
|
511
|
+
codexLoginRequired, "data-testid": sendButtonTestId, onClick: () => {
|
|
488
512
|
void sendMessage();
|
|
489
|
-
} }, componentProps.isSending ? "Sending..." : "Send")))),
|
|
513
|
+
} }, componentProps.isSending ? "Sending..." : "Send"))))),
|
|
490
514
|
resolvedError && React.createElement("div", { className: "error" }, resolvedError)))));
|
|
491
|
-
return (React.createElement(WorkbenchDrawerIso_js_1.default, { open: componentProps.open, runStatus: runStatus, chatHeaderActions: componentProps.chatHeaderActions, chatHistoryOpen:
|
|
515
|
+
return (React.createElement(WorkbenchDrawerIso_js_1.default, { open: componentProps.open, runStatus: runStatus, chatHeaderActions: componentProps.chatHeaderActions, chatHistoryOpen: utils_js_1.workbenchChatTopActionsEnabled
|
|
516
|
+
? componentProps.chatHistoryOpen
|
|
517
|
+
: false, chatHistoryContent: componentProps.chatHistoryContent, chatBody: chatBody }));
|
|
492
518
|
});
|
|
493
519
|
exports.default = exports.WorkbenchConversationRunChat;
|
|
@@ -65,6 +65,20 @@ export declare function GradeTabView(props: {
|
|
|
65
65
|
runId: string;
|
|
66
66
|
turnIndex?: number;
|
|
67
67
|
}) => void;
|
|
68
|
+
onAddFlagToWorkbench?: (args: {
|
|
69
|
+
refId: string;
|
|
70
|
+
runId: string;
|
|
71
|
+
turnIndex?: number;
|
|
72
|
+
score?: number;
|
|
73
|
+
graderReason?: string;
|
|
74
|
+
flagReason?: string;
|
|
75
|
+
priorUser?: string;
|
|
76
|
+
gradedAssistant?: string;
|
|
77
|
+
}) => void;
|
|
78
|
+
onAddErrorToWorkbench?: (args: {
|
|
79
|
+
runId?: string;
|
|
80
|
+
error: string;
|
|
81
|
+
}) => void;
|
|
68
82
|
mutationError: string | null;
|
|
69
83
|
expandedResults: Record<string, boolean>;
|
|
70
84
|
onToggleExpandedResult: (itemKey: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradeTabView.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/grade/GradeTabView.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,E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BAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,YAAY,EAAE,CAAC,IAAI,EAAE;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,KAAK,IAAI,CAAC;IACX,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,+
|
|
1
|
+
{"version":3,"file":"GradeTabView.d.ts","sourceRoot":"","sources":["../../../../../src/simulator-ui/isograph/components/grade/GradeTabView.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IAC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oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,KAAK,IAAI,CAAC;IACX,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1E,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,+BA+IA;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -92,6 +92,6 @@ function GradeTabView(props) {
|
|
|
92
92
|
meta: [run.status, run.finishedAt ?? run.startedAt].filter(Boolean)
|
|
93
93
|
.join(" · "),
|
|
94
94
|
})), [props.scenarioRuns]);
|
|
95
|
-
return (React.createElement(GradeTabShell_js_1.default, { runner: React.createElement(GradeRunnerPanel_js_1.default, { testRunOptions: testRunOptions, selectedTestRunId: props.selectedScenarioRunId, onSelectTestRun: (runId) => props.onSelectScenarioRun(runId || null), graders: graderOptions, selectedGraderId: props.selectedGraderId, onSelectGrader: props.onSelectGrader, selectedGraderDescription: selectedGrader?.description ?? null, sessionsCount: props.scenarioRuns.length, onRunGrader: props.onRunGrader, canRun: props.canRunGrader, running: props.runInFlight, runButtonTestId: "grade-run-grader" }), results: React.createElement(GradeResultsPanel_js_1.default, { error: props.mutationError, loading: false, runCount: runSections.length, runItemsCount: runSections.flatMap((section) => section.items).length, emptyMessage: "No grader runs for this selected test run yet.", routeRunNotFound: props.routeRunMissing, missingRunHref: props.missingRunHref, runSections: runSections, expandedRunId: props.routeGradeRunId, onToggleRun: (runId) => props.onSelectRun(props.routeGradeRunId === runId ? null : runId), expandedResults: props.expandedResults, onToggleExpandedResult: props.onToggleExpandedResult, flaggedRefSet: flaggedRefSet, flagReasonDrafts: props.reasonDrafts, flagReasonByRefId: props.flagByRefId, onToggleFlag: props.onToggleFlag, onFlagReasonChange: props.onReasonDraftChange, onFlagReasonBlur: props.onReasonBlur, topErrorRunId: props.routeGradeRunId }) }));
|
|
95
|
+
return (React.createElement(GradeTabShell_js_1.default, { runner: React.createElement(GradeRunnerPanel_js_1.default, { testRunOptions: testRunOptions, selectedTestRunId: props.selectedScenarioRunId, onSelectTestRun: (runId) => props.onSelectScenarioRun(runId || null), graders: graderOptions, selectedGraderId: props.selectedGraderId, onSelectGrader: props.onSelectGrader, selectedGraderDescription: selectedGrader?.description ?? null, sessionsCount: props.scenarioRuns.length, onRunGrader: props.onRunGrader, canRun: props.canRunGrader, running: props.runInFlight, runButtonTestId: "grade-run-grader" }), results: React.createElement(GradeResultsPanel_js_1.default, { error: props.mutationError, loading: false, runCount: runSections.length, runItemsCount: runSections.flatMap((section) => section.items).length, emptyMessage: "No grader runs for this selected test run yet.", routeRunNotFound: props.routeRunMissing, missingRunHref: props.missingRunHref, runSections: runSections, expandedRunId: props.routeGradeRunId, onToggleRun: (runId) => props.onSelectRun(props.routeGradeRunId === runId ? null : runId), expandedResults: props.expandedResults, onToggleExpandedResult: props.onToggleExpandedResult, flaggedRefSet: flaggedRefSet, flagReasonDrafts: props.reasonDrafts, flagReasonByRefId: props.flagByRefId, onToggleFlag: props.onToggleFlag, onFlagReasonChange: props.onReasonDraftChange, onFlagReasonBlur: props.onReasonBlur, onAddFlagToWorkbench: props.onAddFlagToWorkbench, onAddErrorToWorkbench: props.onAddErrorToWorkbench, topErrorRunId: props.routeGradeRunId }) }));
|
|
96
96
|
}
|
|
97
97
|
exports.default = GradeTabView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntrypointSimulatorRedirect.d.ts","sourceRoot":"","sources":["../../../../src/simulator-ui/isograph/entrypoints/EntrypointSimulatorRedirect.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B;;;;;;;
|
|
1
|
+
{"version":3,"file":"EntrypointSimulatorRedirect.d.ts","sourceRoot":"","sources":["../../../../src/simulator-ui/isograph/entrypoints/EntrypointSimulatorRedirect.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B;;;;;;;CAuDtC,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|
|
@@ -51,10 +51,6 @@ exports.EntrypointSimulatorRedirect = (0, iso_js_1.iso)(`
|
|
|
51
51
|
? globals.__GAMBIT_CURRENT_PATH__
|
|
52
52
|
: "/";
|
|
53
53
|
})();
|
|
54
|
-
const isIsographPrefixed = currentPath === "/isograph" ||
|
|
55
|
-
currentPath.startsWith("/isograph/");
|
|
56
|
-
const routePrefix = isIsographPrefixed ? "/isograph" : "";
|
|
57
|
-
const withPrefix = (path) => `${routePrefix}${path}`;
|
|
58
54
|
if (currentPath === "/" || currentPath === "/build" ||
|
|
59
55
|
currentPath === "/debug" || currentPath === "/simulate") {
|
|
60
56
|
return {
|
|
@@ -64,16 +60,7 @@ exports.EntrypointSimulatorRedirect = (0, iso_js_1.iso)(`
|
|
|
64
60
|
headers: { Location: "/workspaces" },
|
|
65
61
|
};
|
|
66
62
|
}
|
|
67
|
-
|
|
68
|
-
currentPath === "/isograph/debug" || currentPath === "/isograph/simulate") {
|
|
69
|
-
return {
|
|
70
|
-
Body: null,
|
|
71
|
-
title: "Gambit Simulator",
|
|
72
|
-
status: 302,
|
|
73
|
-
headers: { Location: "/isograph/workspaces" },
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
const bareWorkspaceMatch = currentPath.match(/^(?:\/isograph)?\/workspaces\/([^/]+)$/);
|
|
63
|
+
const bareWorkspaceMatch = currentPath.match(/^\/workspaces\/([^/]+)$/);
|
|
77
64
|
if (bareWorkspaceMatch && bareWorkspaceMatch[1] !== "new") {
|
|
78
65
|
const workspaceId = (() => {
|
|
79
66
|
try {
|
|
@@ -87,14 +74,14 @@ exports.EntrypointSimulatorRedirect = (0, iso_js_1.iso)(`
|
|
|
87
74
|
Body: null,
|
|
88
75
|
title: "Gambit Simulator",
|
|
89
76
|
status: 302,
|
|
90
|
-
headers: { Location:
|
|
77
|
+
headers: { Location: `/workspaces/${workspaceId}/build` },
|
|
91
78
|
};
|
|
92
79
|
}
|
|
93
80
|
return {
|
|
94
81
|
Body: null,
|
|
95
82
|
title: "Gambit Simulator",
|
|
96
83
|
status: 302,
|
|
97
|
-
headers: { Location:
|
|
84
|
+
headers: { Location: "/workspaces" },
|
|
98
85
|
};
|
|
99
86
|
});
|
|
100
87
|
exports.default = exports.EntrypointSimulatorRedirect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntrypointSimulatorWorkspaceShell.d.ts","sourceRoot":"","sources":["../../../../src/simulator-ui/isograph/entrypoints/EntrypointSimulatorWorkspaceShell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntrypointSimulatorWorkspaceShell.d.ts","sourceRoot":"","sources":["../../../../src/simulator-ui/isograph/entrypoints/EntrypointSimulatorWorkspaceShell.tsx"],"names":[],"mappings":"AA6CA,eAAO,MAAM,iCAAiC;;;;;;;;CAkC5C,CAAC;AAEH,eAAe,iCAAiC,CAAC"}
|
|
@@ -18,17 +18,9 @@ function isThenable(value) {
|
|
|
18
18
|
(typeof value === "object" || typeof value === "function") &&
|
|
19
19
|
typeof value.then === "function";
|
|
20
20
|
}
|
|
21
|
-
function toWorkspaceRoutePath(path) {
|
|
22
|
-
if (path === "/isograph" || path.startsWith("/isograph/")) {
|
|
23
|
-
const stripped = path.slice("/isograph".length);
|
|
24
|
-
return stripped.length > 0 ? stripped : "/";
|
|
25
|
-
}
|
|
26
|
-
return path;
|
|
27
|
-
}
|
|
28
21
|
function WorkspaceMainPane(props) {
|
|
29
22
|
const { currentRoutePath } = (0, RouterContext_js_1.useRouter)();
|
|
30
|
-
const
|
|
31
|
-
const route = (0, workspace_routes_js_1.parseWorkspaceRoute)(workspaceRoutePath);
|
|
23
|
+
const route = (0, workspace_routes_js_1.parseWorkspaceRoute)(currentRoutePath);
|
|
32
24
|
const tab = route?.tab === "test" || route?.tab === "grade" ||
|
|
33
25
|
route?.tab === "verify"
|
|
34
26
|
? route.tab
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/simulator-ui/src/AppShell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/simulator-ui/src/AppShell.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC;QAC1B,IAAI,EAAE,OAAO,CAAC;QACd,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;QACxC,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QACjD,WAAW,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;QAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACpC,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;QACxC,kBAAkB,EAAE,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAC;KACvE,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,OAAO,CAAC;KACf,CAAC,CAAC;CACJ,+BAsTA"}
|
|
@@ -44,7 +44,6 @@ const utils_js_1 = require("./utils.js");
|
|
|
44
44
|
const RouterContext_js_1 = require("./RouterContext.js");
|
|
45
45
|
const Button_js_1 = __importDefault(require("./gds/Button.js"));
|
|
46
46
|
const Icon_js_1 = __importDefault(require("./gds/Icon.js"));
|
|
47
|
-
const WorkbenchDrawer_js_1 = __importDefault(require("./WorkbenchDrawer.js"));
|
|
48
47
|
const utils_js_2 = require("./utils.js");
|
|
49
48
|
const useGambitTypedMutation_js_1 = require("./hooks/useGambitTypedMutation.js");
|
|
50
49
|
const GambitWorkspaceCreateMutation_js_1 = __importDefault(require("../mutations/GambitWorkspaceCreateMutation.js"));
|
|
@@ -69,17 +68,7 @@ function AppShell(props) {
|
|
|
69
68
|
const THEME_STORAGE_KEY = "gambit-simulator-theme";
|
|
70
69
|
const { Drawer } = props;
|
|
71
70
|
const { currentRoutePath, navigate } = (0, RouterContext_js_1.useRouter)();
|
|
72
|
-
const
|
|
73
|
-
currentRoutePath.startsWith("/isograph/")
|
|
74
|
-
? "/isograph"
|
|
75
|
-
: "", [currentRoutePath]);
|
|
76
|
-
const toPrefixedPath = (0, react_1.useCallback)((path) => `${routePrefix}${path}`, [routePrefix]);
|
|
77
|
-
const workspaceRoutePath = (0, react_1.useMemo)(() => {
|
|
78
|
-
if (!routePrefix)
|
|
79
|
-
return currentRoutePath;
|
|
80
|
-
const stripped = currentRoutePath.slice(routePrefix.length);
|
|
81
|
-
return stripped.length > 0 ? stripped : "/";
|
|
82
|
-
}, [currentRoutePath, routePrefix]);
|
|
71
|
+
const workspaceRoutePath = currentRoutePath;
|
|
83
72
|
const deckLabel = getDeckLabelForShell();
|
|
84
73
|
const [drawerOpen, setDrawerOpen] = (0, react_1.useState)(false);
|
|
85
74
|
const [workbenchOpen, setWorkbenchOpen] = (0, react_1.useState)(true);
|
|
@@ -100,7 +89,7 @@ function AppShell(props) {
|
|
|
100
89
|
});
|
|
101
90
|
const createWorkspaceMutation = (0, useGambitTypedMutation_js_1.useGambitTypedMutation)(GambitWorkspaceCreateMutation_js_1.default);
|
|
102
91
|
const deleteWorkspaceMutation = (0, useGambitTypedMutation_js_1.useGambitTypedMutation)(GambitWorkspaceDeleteMutation_js_1.default);
|
|
103
|
-
const Workbench = props.Workbench
|
|
92
|
+
const Workbench = props.Workbench;
|
|
104
93
|
const activeWorkspaceId = (0, react_1.useMemo)(() => {
|
|
105
94
|
const route = (0, workspace_routes_js_1.parseWorkspaceRoute)(workspaceRoutePath);
|
|
106
95
|
return route?.workspaceId ?? null;
|
|
@@ -109,26 +98,27 @@ function AppShell(props) {
|
|
|
109
98
|
const route = (0, workspace_routes_js_1.parseWorkspaceRoute)(workspaceRoutePath);
|
|
110
99
|
return route?.tab ?? null;
|
|
111
100
|
}, [workspaceRoutePath]);
|
|
112
|
-
const buildTabLabel =
|
|
101
|
+
const buildTabLabel = "Build";
|
|
113
102
|
const isWorkspacesPath = (0, react_1.useMemo)(() => workspaceRoutePath === "/workspaces" ||
|
|
114
103
|
workspaceRoutePath === "/workspaces/new", [workspaceRoutePath]);
|
|
115
104
|
const isDocsPath = workspaceRoutePath === "/docs";
|
|
116
105
|
const canOpenWorkbench = Boolean(activeWorkspaceId);
|
|
117
|
-
const workbenchVisible = workbenchOpen && canOpenWorkbench
|
|
106
|
+
const workbenchVisible = workbenchOpen && canOpenWorkbench &&
|
|
107
|
+
Boolean(Workbench);
|
|
118
108
|
const handleSelectWorkspace = (0, react_1.useCallback)((workspaceId) => {
|
|
119
|
-
navigate(
|
|
109
|
+
navigate((0, workspace_routes_js_1.buildWorkspacePath)("build", workspaceId));
|
|
120
110
|
setDrawerOpen(false);
|
|
121
|
-
}, [navigate
|
|
111
|
+
}, [navigate]);
|
|
122
112
|
const createWorkspace = (0, react_1.useCallback)(() => {
|
|
123
113
|
createWorkspaceMutation.commit({}, {
|
|
124
114
|
onComplete: (result) => {
|
|
125
115
|
const workspaceId = result?.workspace?.id;
|
|
126
116
|
if (!workspaceId)
|
|
127
117
|
return;
|
|
128
|
-
navigate(
|
|
118
|
+
navigate((0, workspace_routes_js_1.buildWorkspacePath)("build", workspaceId));
|
|
129
119
|
},
|
|
130
120
|
});
|
|
131
|
-
}, [createWorkspaceMutation, navigate
|
|
121
|
+
}, [createWorkspaceMutation, navigate]);
|
|
132
122
|
const persistAppearance = (0, react_1.useCallback)((nextAppearance) => {
|
|
133
123
|
try {
|
|
134
124
|
globalThis.localStorage.setItem(THEME_STORAGE_KEY, nextAppearance);
|
|
@@ -158,13 +148,13 @@ function AppShell(props) {
|
|
|
158
148
|
try {
|
|
159
149
|
await runDeleteWorkspaceMutation(workspaceId);
|
|
160
150
|
if (workspaceId === activeWorkspaceId) {
|
|
161
|
-
navigate(
|
|
151
|
+
navigate("/workspaces");
|
|
162
152
|
}
|
|
163
153
|
}
|
|
164
154
|
finally {
|
|
165
155
|
setDeletingWorkspaceId(null);
|
|
166
156
|
}
|
|
167
|
-
}, [activeWorkspaceId, navigate, runDeleteWorkspaceMutation
|
|
157
|
+
}, [activeWorkspaceId, navigate, runDeleteWorkspaceMutation]);
|
|
168
158
|
const deleteAllWorkspaces = (0, react_1.useCallback)(async (workspaceIds) => {
|
|
169
159
|
const uniqueWorkspaceIds = Array.from(new Set(workspaceIds.filter((id) => id.trim().length > 0)));
|
|
170
160
|
if (uniqueWorkspaceIds.length === 0) {
|
|
@@ -173,12 +163,12 @@ function AppShell(props) {
|
|
|
173
163
|
setDeletingAll(true);
|
|
174
164
|
try {
|
|
175
165
|
await Promise.allSettled(uniqueWorkspaceIds.map((workspaceId) => runDeleteWorkspaceMutation(workspaceId)));
|
|
176
|
-
navigate(
|
|
166
|
+
navigate("/workspaces");
|
|
177
167
|
}
|
|
178
168
|
finally {
|
|
179
169
|
setDeletingAll(false);
|
|
180
170
|
}
|
|
181
|
-
}, [navigate, runDeleteWorkspaceMutation
|
|
171
|
+
}, [navigate, runDeleteWorkspaceMutation]);
|
|
182
172
|
return (React.createElement("div", { className: "app-root" },
|
|
183
173
|
React.createElement("header", { className: "top-nav" },
|
|
184
174
|
React.createElement("div", { className: "top-nav-left" },
|
|
@@ -186,42 +176,42 @@ function AppShell(props) {
|
|
|
186
176
|
React.createElement(Icon_js_1.default, { name: "hamburgerMenu", size: 17, style: { color: "var(--color-text)" } }))),
|
|
187
177
|
React.createElement("div", { className: "top-nav-buttons tab-anchor-group" },
|
|
188
178
|
React.createElement("span", { className: "tab-anchor-indicator", "aria-hidden": "true" }),
|
|
189
|
-
React.createElement(Button_js_1.default, { "data-testid": "nav-docs", tab: true, variant: isDocsPath ? "primary" : "secondary", className: (0, utils_js_2.classNames)("tab-anchor", isDocsPath && "tab-anchor--active"), onClick: () => navigate(
|
|
179
|
+
React.createElement(Button_js_1.default, { "data-testid": "nav-docs", tab: true, variant: isDocsPath ? "primary" : "secondary", className: (0, utils_js_2.classNames)("tab-anchor", isDocsPath && "tab-anchor--active"), onClick: () => navigate(utils_js_2.DOCS_PATH) }, "Docs"),
|
|
190
180
|
React.createElement(Button_js_1.default, { "data-testid": "nav-build", tab: true, variant: activeWorkspaceTab === "build" ? "primary" : "secondary", className: (0, utils_js_2.classNames)("tab-anchor", activeWorkspaceTab === "build" && "tab-anchor--active"), onClick: () => {
|
|
191
181
|
if (!activeWorkspaceId)
|
|
192
182
|
return;
|
|
193
|
-
navigate(
|
|
183
|
+
navigate((0, workspace_routes_js_1.buildWorkspacePath)("build", activeWorkspaceId));
|
|
194
184
|
}, disabled: !activeWorkspaceId }, buildTabLabel),
|
|
195
185
|
React.createElement(Button_js_1.default, { "data-testid": "nav-test", tab: true, variant: activeWorkspaceTab === "test" ? "primary" : "secondary", className: (0, utils_js_2.classNames)("tab-anchor", activeWorkspaceTab === "test" && "tab-anchor--active"), onClick: () => {
|
|
196
186
|
if (!activeWorkspaceId)
|
|
197
187
|
return;
|
|
198
|
-
navigate(
|
|
188
|
+
navigate((0, workspace_routes_js_1.buildWorkspacePath)("test", activeWorkspaceId));
|
|
199
189
|
}, disabled: !activeWorkspaceId }, "Test"),
|
|
200
190
|
React.createElement(Button_js_1.default, { "data-testid": "nav-grade", tab: true, variant: activeWorkspaceTab === "grade" ? "primary" : "secondary", className: (0, utils_js_2.classNames)("tab-anchor", activeWorkspaceTab === "grade" && "tab-anchor--active"), onClick: () => {
|
|
201
191
|
if (!activeWorkspaceId)
|
|
202
192
|
return;
|
|
203
|
-
navigate(
|
|
193
|
+
navigate((0, workspace_routes_js_1.buildWorkspacePath)("grade", activeWorkspaceId));
|
|
204
194
|
}, disabled: !activeWorkspaceId }, "Grade"),
|
|
205
195
|
utils_js_1.verifyTabEnabled && (React.createElement(Button_js_1.default, { "data-testid": "nav-verify", tab: true, variant: activeWorkspaceTab === "verify"
|
|
206
196
|
? "primary"
|
|
207
197
|
: "secondary", className: (0, utils_js_2.classNames)("tab-anchor", activeWorkspaceTab === "verify" && "tab-anchor--active"), onClick: () => {
|
|
208
198
|
if (!activeWorkspaceId)
|
|
209
199
|
return;
|
|
210
|
-
navigate(
|
|
200
|
+
navigate((0, workspace_routes_js_1.buildWorkspacePath)("verify", activeWorkspaceId));
|
|
211
201
|
}, disabled: !activeWorkspaceId }, "Verify"))),
|
|
212
202
|
React.createElement("div", { className: "top-nav-center" },
|
|
213
203
|
React.createElement("span", { className: "top-nav-deck" }, deckLabel)),
|
|
214
204
|
React.createElement("div", { className: "top-nav-right" },
|
|
215
205
|
React.createElement("div", { className: "top-nav-actions" }),
|
|
216
|
-
React.createElement(Button_js_1.default, { "data-testid": "nav-workbench", className: (0, utils_js_2.classNames)("workbench-toggle", workbenchVisible && "active"), variant: "secondary", onClick: () => setWorkbenchOpen((prev) => !prev), disabled: !canOpenWorkbench, "aria-label": workbenchVisible
|
|
206
|
+
Workbench && (React.createElement(Button_js_1.default, { "data-testid": "nav-workbench", className: (0, utils_js_2.classNames)("workbench-toggle", workbenchVisible && "active"), variant: "secondary", onClick: () => setWorkbenchOpen((prev) => !prev), disabled: !canOpenWorkbench, "aria-label": workbenchVisible
|
|
217
207
|
? "Close workbench drawer"
|
|
218
208
|
: "Open workbench drawer" },
|
|
219
|
-
React.createElement(Icon_js_1.default, { name: "chat", size: 16, style: { color: "currentColor" } })))),
|
|
209
|
+
React.createElement(Icon_js_1.default, { name: "chat", size: 16, style: { color: "currentColor" } }))))),
|
|
220
210
|
React.createElement("div", { className: "app-content-frame" },
|
|
221
211
|
React.createElement("main", { className: "page-shell" },
|
|
222
212
|
isWorkspacesPath && (React.createElement("div", { style: { padding: "12px 16px 0 16px" } },
|
|
223
213
|
React.createElement(Button_js_1.default, { "data-testid": "workspace-create-cta", variant: "primary", size: "small", onClick: createWorkspace, disabled: createWorkspaceMutation.inFlight }, "New workspace"))),
|
|
224
214
|
isDocsPath ? React.createElement(DocsPage_js_1.default, null) : props.children),
|
|
225
|
-
React.createElement(Workbench, { open: workbenchVisible })),
|
|
215
|
+
Workbench ? React.createElement(Workbench, { open: workbenchVisible }) : null),
|
|
226
216
|
React.createElement(Drawer, { open: drawerOpen, onCreateWorkspace: createWorkspace, onSelect: handleSelectWorkspace, onDelete: deleteWorkspace, onDeleteAll: deleteAllWorkspaces, onClose: () => setDrawerOpen(false), activeWorkspaceId: activeWorkspaceId, bundleStamp: null, creatingWorkspace: createWorkspaceMutation.inFlight, deletingWorkspaceId: deletingWorkspaceId, deletingAll: deletingAll, appearance: appearance, onAppearanceChange: persistAppearance })));
|
|
227
217
|
}
|
|
@@ -1,43 +1,19 @@
|
|
|
1
1
|
import { type BuildDisplayMessage } from "./utils.js";
|
|
2
2
|
import { bucketBuildChatDisplay } from "./ActivityTranscriptRows.js";
|
|
3
3
|
import { useBuildChat } from "./BuildChatContext.js";
|
|
4
|
+
import { type WorkbenchErrorContext, type WorkbenchFlagContext, type WorkbenchMessageContext, type WorkbenchRatingContext, type WorkbenchSelectedContextChip, type WorkbenchVerifyOutlierContext } from "./workbenchContext.js";
|
|
4
5
|
export { bucketBuildChatDisplay };
|
|
5
|
-
export type WorkbenchScenarioErrorContext = {
|
|
6
|
+
export type WorkbenchScenarioErrorContext = WorkbenchErrorContext & {
|
|
6
7
|
source: "scenario_run_error";
|
|
7
|
-
workspaceId?: string;
|
|
8
|
-
runId?: string;
|
|
9
|
-
capturedAt: string;
|
|
10
|
-
error: string;
|
|
11
8
|
};
|
|
12
|
-
export type
|
|
13
|
-
source: "
|
|
14
|
-
workspaceId?: string;
|
|
15
|
-
runId?: string;
|
|
16
|
-
capturedAt: string;
|
|
17
|
-
messageRefId: string;
|
|
18
|
-
statePath?: string;
|
|
19
|
-
statePointer?: string;
|
|
20
|
-
score: number;
|
|
21
|
-
reason?: string;
|
|
9
|
+
export type WorkbenchGraderErrorContext = WorkbenchErrorContext & {
|
|
10
|
+
source: "grader_run_error";
|
|
22
11
|
};
|
|
23
|
-
export type WorkbenchFlagContext = {
|
|
24
|
-
source: "grading_flag";
|
|
25
|
-
workspaceId?: string;
|
|
26
|
-
runId?: string;
|
|
27
|
-
capturedAt: string;
|
|
28
|
-
flagId?: string;
|
|
29
|
-
refId: string;
|
|
30
|
-
score?: number;
|
|
31
|
-
message: string;
|
|
32
|
-
};
|
|
33
|
-
export type WorkbenchMessageContext = WorkbenchScenarioErrorContext | WorkbenchRatingContext | WorkbenchFlagContext;
|
|
34
12
|
export type WorkbenchScenarioErrorChip = WorkbenchScenarioErrorContext & {
|
|
35
13
|
enabled: boolean;
|
|
36
14
|
};
|
|
37
|
-
export type WorkbenchComposerChip =
|
|
38
|
-
|
|
39
|
-
enabled: boolean;
|
|
40
|
-
};
|
|
15
|
+
export type WorkbenchComposerChip = WorkbenchSelectedContextChip;
|
|
16
|
+
export type { WorkbenchFlagContext, WorkbenchRatingContext, WorkbenchVerifyOutlierContext, };
|
|
41
17
|
export declare function encodeWorkbenchMessageWithErrorContext(message: string, context: WorkbenchScenarioErrorContext): string;
|
|
42
18
|
export declare function encodeWorkbenchMessageWithContext(message: string, contexts: Array<WorkbenchMessageContext>): string;
|
|
43
19
|
export declare function decodeWorkbenchMessageWithErrorContext(content: string): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/simulator-ui/src/Chat.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,YAAY,CAAC;AAIpB,OAAO,EAEL,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/simulator-ui/src/Chat.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,YAAY,CAAC;AAIpB,OAAO,EAEL,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG;IAClE,MAAM,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,GAAG;IAChE,MAAM,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,0BAA0B,G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