claude-flow-novice 2.0.3 → 2.0.5
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/dist/src/cli/commands/swarm.js +1 -1
- package/dist/src/cli/main.js +1 -1
- package/dist/src/coordination/byzantine-memory-channels.js +25 -1
- package/dist/src/index.js +384 -35
- package/dist/src/utils/error-handler.js +2 -36
- package/dist/src/web/api/apm-routes.js +353 -0
- package/dist/src/web/api/config/api-config.js +184 -0
- package/dist/src/web/api/middleware/auth.js +203 -0
- package/dist/src/web/api/middleware/cache.js +273 -0
- package/dist/src/web/api/middleware/error-handler.js +257 -0
- package/dist/src/web/api/middleware/request-logger.js +215 -0
- package/dist/src/web/api/middleware/validation.js +323 -0
- package/dist/src/web/api/routes/events.js +463 -0
- package/dist/src/web/api/routes/hierarchy.js +300 -0
- package/dist/src/web/api/routes/index.js +12 -0
- package/dist/src/web/api/routes/metrics.js +559 -0
- package/dist/src/web/api/routes/parallel-status.js +359 -0
- package/dist/src/web/api/routes/status.js +448 -0
- package/dist/src/web/api/server.js +462 -0
- package/dist/src/web/dashboard/hooks/useWebSocket.js +383 -0
- package/dist/src/web/dashboard/index.js +85 -0
- package/dist/src/web/dashboard/realtime/CustomSyncManager.js +439 -0
- package/dist/src/web/dashboard/realtime/NativeWebSocketManager.js +323 -0
- package/dist/src/web/dashboard/realtime/PerformanceBenchmark.js +527 -0
- package/dist/src/web/dashboard/realtime/RealtimeCommunicationManager.js +474 -0
- package/dist/src/web/dashboard/realtime/RealtimeServer.js +666 -0
- package/dist/src/web/dashboard/realtime/SSEManager.js +426 -0
- package/dist/src/web/dashboard/types.js +4 -0
- package/dist/src/web/messaging/agent-status-tracker.js +453 -0
- package/dist/src/web/messaging/human-intervention-system.js +305 -0
- package/dist/src/web/messaging/message-filter.js +302 -0
- package/dist/src/web/messaging/swarm-message-router.js +324 -0
- package/dist/src/web/messaging/transparency-logger.js +421 -0
- package/dist/src/web/portal-server.js +460 -0
- package/dist/src/web/server.js +322 -0
- package/dist/src/web/websocket/apm-websocket-handler.js +453 -0
- package/dist/src/web/websocket/websocket-manager.js +780 -0
- package/package.json +6 -4
- package/dist/src/cli/minimal-main.js +0 -22
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js +0 -23
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +0 -57
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +0 -401
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +0 -181
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +0 -44
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +0 -157
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js +0 -71
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/editorState/browser/editorState.js +0 -112
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findController.js +0 -990
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findDecorations.js +0 -296
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findModel.js +0 -488
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findOptionsWidget.js +0 -138
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findState.js +0 -243
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/find/browser/findWidget.js +0 -1177
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/folding.js +0 -1093
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +0 -133
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/foldingModel.js +0 -538
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/folding/browser/foldingRanges.js +0 -351
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +0 -49
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/format/browser/format.js +0 -360
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/format/browser/formatActions.js +0 -263
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/format/browser/formattingEdit.js +0 -54
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +0 -149
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/hover/browser/contentHover.js +0 -874
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/inlineCompletions/browser/commandIds.js +0 -7
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/inlineCompletions/browser/commands.js +0 -199
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/linesOperations/browser/copyLinesCommand.js +0 -70
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +0 -26
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +0 -153
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +0 -33
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +0 -354
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.js +0 -146
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/suggest/browser/completionModel.js +0 -224
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +0 -119
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/edcore.main.js +0 -14
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.all.js +0 -63
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.api.js +0 -55
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.main.js +0 -7
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/editor.worker.js +0 -25
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/editor/standalone/browser/colorizer.js +0 -118
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/language/css/css.worker.js +0 -36869
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/language/css/cssMode.js +0 -2035
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/browser/accessibilityService.js +0 -88
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/accessibility/common/accessibility.js +0 -9
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/action.js +0 -7
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/action/common/actionCommonCategories.js +0 -13
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionList.js +0 -276
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/browser/actionWidget.js +0 -248
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actionWidget/common/actionWidget.js +0 -5
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/actions/common/actions.js +0 -409
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/audioCues/browser/audioCueService.js +0 -176
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/browser/clipboardService.js +0 -141
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/clipboard/common/clipboardService.js +0 -6
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/commands/common/commands.js +0 -80
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configuration.js +0 -86
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationModels.js +0 -554
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurationRegistry.js +0 -317
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/configuration/common/configurations.js +0 -41
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/browser/contextKeyService.js +0 -432
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkey.js +0 -1547
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextkey/common/contextkeys.js +0 -18
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuHandler.js +0 -124
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextMenuService.js +0 -101
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextView.js +0 -7
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/contextview/browser/contextViewService.js +0 -72
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dialogs/common/dialogs.js +0 -2
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/dnd/browser/dnd.js +0 -36
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/editor/common/editor.js +0 -17
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/environment/common/environment.js +0 -2
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/extensions/common/extensions.js +0 -47
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/files/common/files.js +0 -9
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +0 -105
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/descriptors.js +0 -11
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/instantiation/common/extensions.js +0 -15
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/abstractKeybindingService.js +0 -277
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/keybinding/common/baseResolvedKeybinding.js +0 -53
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +0 -354
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/browser/defaultStyles.js +0 -162
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/esm/vs/platform/theme/common/colorRegistry.js +0 -482
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/abap/abap.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/apex/apex.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/azcli/azcli.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bat/bat.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/bicep/bicep.js +0 -11
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/cameligo/cameligo.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/clojure/clojure.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/coffee/coffee.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/cpp/cpp.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/csharp/csharp.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/csp/csp.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/css/css.js +0 -12
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/cypher/cypher.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/dart/dart.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/dockerfile/dockerfile.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/ecl/ecl.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/elixir/elixir.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/basic-languages/flow9/flow9.js +0 -10
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.js +0 -745
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.de.js +0 -31
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.es.js +0 -31
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.fr.js +0 -29
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.it.js +0 -29
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.ja.js +0 -31
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.js +0 -29
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.ko.js +0 -29
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.ru.js +0 -31
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.zh-cn.js +0 -31
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/editor/editor.main.nls.zh-tw.js +0 -29
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/language/css/cssMode.js +0 -13
- package/dist/src/web/frontend/node_modules/.monaco-editor-MndU045b/min/vs/language/css/cssWorker.js +0 -81
- package/dist/src/web/frontend/node_modules/.multicast-dns-iKseM9bB/cli.js +0 -64
- package/dist/src/web/frontend/node_modules/.multicast-dns-iKseM9bB/example.js +0 -36
- package/dist/src/web/frontend/node_modules/.multicast-dns-iKseM9bB/index.js +0 -205
- package/dist/src/web/frontend/node_modules/.multicast-dns-iKseM9bB/test.js +0 -260
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/async/index.browser.js +0 -34
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/async/index.js +0 -35
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/async/index.native.js +0 -26
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/index.browser.js +0 -34
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/index.js +0 -45
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/nanoid.js +0 -1
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/non-secure/index.js +0 -21
- package/dist/src/web/frontend/node_modules/.nanoid-PAMEV9Hd/url-alphabet/index.js +0 -3
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/bin/nodemon.js +0 -16
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/cli/index.js +0 -49
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/cli/parse.js +0 -230
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/config/command.js +0 -43
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/config/defaults.js +0 -34
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/config/exec.js +0 -234
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/config/index.js +0 -93
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/config/load.js +0 -225
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/help/index.js +0 -27
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/index.js +0 -1
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/monitor/index.js +0 -4
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/monitor/match.js +0 -287
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/monitor/run.js +0 -562
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/monitor/signals.js +0 -34
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/monitor/watch.js +0 -244
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/nodemon.js +0 -317
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/rules/add.js +0 -89
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/rules/index.js +0 -53
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/rules/parse.js +0 -43
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/spawn.js +0 -74
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/utils/bus.js +0 -44
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/utils/clone.js +0 -40
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/utils/colour.js +0 -26
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/utils/index.js +0 -103
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/utils/log.js +0 -82
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/utils/merge.js +0 -47
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/lib/version.js +0 -100
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/node_modules/brace-expansion/index.js +0 -201
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/node_modules/has-flag/index.js +0 -8
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/node_modules/minimatch/minimatch.js +0 -947
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/node_modules/supports-color/browser.js +0 -5
- package/dist/src/web/frontend/node_modules/.nodemon-QcvNKhKT/node_modules/supports-color/index.js +0 -131
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/bin/pidtree.js +0 -128
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/index.js +0 -49
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/lib/bin.js +0 -61
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/lib/get.js +0 -45
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/lib/pidtree.js +0 -104
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/lib/ps.js +0 -47
- package/dist/src/web/frontend/node_modules/.pidtree-icfat3SQ/lib/wmic.js +0 -49
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/doc.js +0 -1270
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/acorn.js +0 -15
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/angular.js +0 -2
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/babel.js +0 -15
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/estree.js +0 -36
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/flow.js +0 -19
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/glimmer.js +0 -29
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/graphql.js +0 -29
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/html.js +0 -22
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/markdown.js +0 -63
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/meriyah.js +0 -4
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/postcss.js +0 -54
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/typescript.js +0 -20
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/plugins/yaml.js +0 -160
- package/dist/src/web/frontend/node_modules/.prettier-ApZm3b7s/standalone.js +0 -34
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/bin/react-scripts.js +0 -58
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/env.js +0 -112
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/getHttpsConfig.js +0 -74
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/jest/babelTransform.js +0 -37
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/jest/cssTransform.js +0 -22
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/jest/fileTransform.js +0 -40
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/modules.js +0 -142
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/paths.js +0 -153
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/webpack/persistentCache/createEnvironmentHash.js +0 -9
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/webpack.config.js +0 -796
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/config/webpackDevServer.config.js +0 -135
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/scripts/build.js +0 -225
- package/dist/src/web/frontend/node_modules/.react-scripts-OTANyoRb/scripts/eject.js +0 -340
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var AbstractCommandsQuickAccessProvider_1, CommandsHistory_1;
|
|
15
|
-
import { toErrorMessage } from '../../../base/common/errorMessage.js';
|
|
16
|
-
import { isCancellationError } from '../../../base/common/errors.js';
|
|
17
|
-
import { matchesContiguousSubString, matchesPrefix, matchesWords, or } from '../../../base/common/filters.js';
|
|
18
|
-
import { createSingleCallFunction } from '../../../base/common/functional.js';
|
|
19
|
-
import { Disposable } from '../../../base/common/lifecycle.js';
|
|
20
|
-
import { LRUCache } from '../../../base/common/map.js';
|
|
21
|
-
import { TfIdfCalculator, normalizeTfIdfScores } from '../../../base/common/tfIdf.js';
|
|
22
|
-
import { localize } from '../../../nls.js';
|
|
23
|
-
import { ICommandService } from '../../commands/common/commands.js';
|
|
24
|
-
import { IConfigurationService } from '../../configuration/common/configuration.js';
|
|
25
|
-
import { IDialogService } from '../../dialogs/common/dialogs.js';
|
|
26
|
-
import { IInstantiationService } from '../../instantiation/common/instantiation.js';
|
|
27
|
-
import { IKeybindingService } from '../../keybinding/common/keybinding.js';
|
|
28
|
-
import { PickerQuickAccessProvider } from './pickerQuickAccess.js';
|
|
29
|
-
import { IStorageService, WillSaveStateReason } from '../../storage/common/storage.js';
|
|
30
|
-
import { ITelemetryService } from '../../telemetry/common/telemetry.js';
|
|
31
|
-
let AbstractCommandsQuickAccessProvider = AbstractCommandsQuickAccessProvider_1 = class AbstractCommandsQuickAccessProvider extends PickerQuickAccessProvider {
|
|
32
|
-
constructor(options, instantiationService, keybindingService, commandService, telemetryService, dialogService) {
|
|
33
|
-
super(AbstractCommandsQuickAccessProvider_1.PREFIX, options);
|
|
34
|
-
this.instantiationService = instantiationService;
|
|
35
|
-
this.keybindingService = keybindingService;
|
|
36
|
-
this.commandService = commandService;
|
|
37
|
-
this.telemetryService = telemetryService;
|
|
38
|
-
this.dialogService = dialogService;
|
|
39
|
-
this.commandsHistory = this._register(this.instantiationService.createInstance(CommandsHistory));
|
|
40
|
-
this.options = options;
|
|
41
|
-
}
|
|
42
|
-
async _getPicks(filter, _disposables, token, runOptions) {
|
|
43
|
-
var _a, _b, _c, _d;
|
|
44
|
-
// Ask subclass for all command picks
|
|
45
|
-
const allCommandPicks = await this.getCommandPicks(token);
|
|
46
|
-
if (token.isCancellationRequested) {
|
|
47
|
-
return [];
|
|
48
|
-
}
|
|
49
|
-
const runTfidf = createSingleCallFunction(() => {
|
|
50
|
-
const tfidf = new TfIdfCalculator();
|
|
51
|
-
tfidf.updateDocuments(allCommandPicks.map(commandPick => ({
|
|
52
|
-
key: commandPick.commandId,
|
|
53
|
-
textChunks: [this.getTfIdfChunk(commandPick)]
|
|
54
|
-
})));
|
|
55
|
-
const result = tfidf.calculateScores(filter, token);
|
|
56
|
-
return normalizeTfIdfScores(result)
|
|
57
|
-
.filter(score => score.score > AbstractCommandsQuickAccessProvider_1.TFIDF_THRESHOLD)
|
|
58
|
-
.slice(0, AbstractCommandsQuickAccessProvider_1.TFIDF_MAX_RESULTS);
|
|
59
|
-
});
|
|
60
|
-
// Filter
|
|
61
|
-
const filteredCommandPicks = [];
|
|
62
|
-
for (const commandPick of allCommandPicks) {
|
|
63
|
-
const labelHighlights = (_a = AbstractCommandsQuickAccessProvider_1.WORD_FILTER(filter, commandPick.label)) !== null && _a !== void 0 ? _a : undefined;
|
|
64
|
-
const aliasHighlights = commandPick.commandAlias ? (_b = AbstractCommandsQuickAccessProvider_1.WORD_FILTER(filter, commandPick.commandAlias)) !== null && _b !== void 0 ? _b : undefined : undefined;
|
|
65
|
-
// Add if matching in label or alias
|
|
66
|
-
if (labelHighlights || aliasHighlights) {
|
|
67
|
-
commandPick.highlights = {
|
|
68
|
-
label: labelHighlights,
|
|
69
|
-
detail: this.options.showAlias ? aliasHighlights : undefined
|
|
70
|
-
};
|
|
71
|
-
filteredCommandPicks.push(commandPick);
|
|
72
|
-
}
|
|
73
|
-
// Also add if we have a 100% command ID match
|
|
74
|
-
else if (filter === commandPick.commandId) {
|
|
75
|
-
filteredCommandPicks.push(commandPick);
|
|
76
|
-
}
|
|
77
|
-
// Handle tf-idf scoring for the rest if there's a filter
|
|
78
|
-
else if (filter.length >= 3) {
|
|
79
|
-
const tfidf = runTfidf();
|
|
80
|
-
if (token.isCancellationRequested) {
|
|
81
|
-
return [];
|
|
82
|
-
}
|
|
83
|
-
// Add if we have a tf-idf score
|
|
84
|
-
const tfidfScore = tfidf.find(score => score.key === commandPick.commandId);
|
|
85
|
-
if (tfidfScore) {
|
|
86
|
-
commandPick.tfIdfScore = tfidfScore.score;
|
|
87
|
-
filteredCommandPicks.push(commandPick);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
// Add description to commands that have duplicate labels
|
|
92
|
-
const mapLabelToCommand = new Map();
|
|
93
|
-
for (const commandPick of filteredCommandPicks) {
|
|
94
|
-
const existingCommandForLabel = mapLabelToCommand.get(commandPick.label);
|
|
95
|
-
if (existingCommandForLabel) {
|
|
96
|
-
commandPick.description = commandPick.commandId;
|
|
97
|
-
existingCommandForLabel.description = existingCommandForLabel.commandId;
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
mapLabelToCommand.set(commandPick.label, commandPick);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
// Sort by MRU order and fallback to name otherwise
|
|
104
|
-
filteredCommandPicks.sort((commandPickA, commandPickB) => {
|
|
105
|
-
// If a result came from tf-idf, we want to put that towards the bottom
|
|
106
|
-
if (commandPickA.tfIdfScore && commandPickB.tfIdfScore) {
|
|
107
|
-
if (commandPickA.tfIdfScore === commandPickB.tfIdfScore) {
|
|
108
|
-
return commandPickA.label.localeCompare(commandPickB.label); // prefer lexicographically smaller command
|
|
109
|
-
}
|
|
110
|
-
return commandPickB.tfIdfScore - commandPickA.tfIdfScore; // prefer higher tf-idf score
|
|
111
|
-
}
|
|
112
|
-
else if (commandPickA.tfIdfScore) {
|
|
113
|
-
return 1; // first command has a score but other doesn't so other wins
|
|
114
|
-
}
|
|
115
|
-
else if (commandPickB.tfIdfScore) {
|
|
116
|
-
return -1; // other command has a score but first doesn't so first wins
|
|
117
|
-
}
|
|
118
|
-
const commandACounter = this.commandsHistory.peek(commandPickA.commandId);
|
|
119
|
-
const commandBCounter = this.commandsHistory.peek(commandPickB.commandId);
|
|
120
|
-
if (commandACounter && commandBCounter) {
|
|
121
|
-
return commandACounter > commandBCounter ? -1 : 1; // use more recently used command before older
|
|
122
|
-
}
|
|
123
|
-
if (commandACounter) {
|
|
124
|
-
return -1; // first command was used, so it wins over the non used one
|
|
125
|
-
}
|
|
126
|
-
if (commandBCounter) {
|
|
127
|
-
return 1; // other command was used so it wins over the command
|
|
128
|
-
}
|
|
129
|
-
if (this.options.suggestedCommandIds) {
|
|
130
|
-
const commandASuggestion = this.options.suggestedCommandIds.has(commandPickA.commandId);
|
|
131
|
-
const commandBSuggestion = this.options.suggestedCommandIds.has(commandPickB.commandId);
|
|
132
|
-
if (commandASuggestion && commandBSuggestion) {
|
|
133
|
-
return 0; // honor the order of the array
|
|
134
|
-
}
|
|
135
|
-
if (commandASuggestion) {
|
|
136
|
-
return -1; // first command was suggested, so it wins over the non suggested one
|
|
137
|
-
}
|
|
138
|
-
if (commandBSuggestion) {
|
|
139
|
-
return 1; // other command was suggested so it wins over the command
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
// both commands were never used, so we sort by name
|
|
143
|
-
return commandPickA.label.localeCompare(commandPickB.label);
|
|
144
|
-
});
|
|
145
|
-
const commandPicks = [];
|
|
146
|
-
let addOtherSeparator = false;
|
|
147
|
-
let addSuggestedSeparator = true;
|
|
148
|
-
let addCommonlyUsedSeparator = !!this.options.suggestedCommandIds;
|
|
149
|
-
for (let i = 0; i < filteredCommandPicks.length; i++) {
|
|
150
|
-
const commandPick = filteredCommandPicks[i];
|
|
151
|
-
// Separator: recently used
|
|
152
|
-
if (i === 0 && this.commandsHistory.peek(commandPick.commandId)) {
|
|
153
|
-
commandPicks.push({ type: 'separator', label: localize('recentlyUsed', "recently used") });
|
|
154
|
-
addOtherSeparator = true;
|
|
155
|
-
}
|
|
156
|
-
if (addSuggestedSeparator && commandPick.tfIdfScore !== undefined) {
|
|
157
|
-
commandPicks.push({ type: 'separator', label: localize('suggested', "similar commands") });
|
|
158
|
-
addSuggestedSeparator = false;
|
|
159
|
-
}
|
|
160
|
-
// Separator: commonly used
|
|
161
|
-
if (addCommonlyUsedSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && ((_c = this.options.suggestedCommandIds) === null || _c === void 0 ? void 0 : _c.has(commandPick.commandId))) {
|
|
162
|
-
commandPicks.push({ type: 'separator', label: localize('commonlyUsed', "commonly used") });
|
|
163
|
-
addOtherSeparator = true;
|
|
164
|
-
addCommonlyUsedSeparator = false;
|
|
165
|
-
}
|
|
166
|
-
// Separator: other commands
|
|
167
|
-
if (addOtherSeparator && commandPick.tfIdfScore === undefined && !this.commandsHistory.peek(commandPick.commandId) && !((_d = this.options.suggestedCommandIds) === null || _d === void 0 ? void 0 : _d.has(commandPick.commandId))) {
|
|
168
|
-
commandPicks.push({ type: 'separator', label: localize('morecCommands', "other commands") });
|
|
169
|
-
addOtherSeparator = false;
|
|
170
|
-
}
|
|
171
|
-
// Command
|
|
172
|
-
commandPicks.push(this.toCommandPick(commandPick, runOptions));
|
|
173
|
-
}
|
|
174
|
-
if (!this.hasAdditionalCommandPicks(filter, token)) {
|
|
175
|
-
return commandPicks;
|
|
176
|
-
}
|
|
177
|
-
return {
|
|
178
|
-
picks: commandPicks,
|
|
179
|
-
additionalPicks: (async () => {
|
|
180
|
-
var _a;
|
|
181
|
-
const additionalCommandPicks = await this.getAdditionalCommandPicks(allCommandPicks, filteredCommandPicks, filter, token);
|
|
182
|
-
if (token.isCancellationRequested) {
|
|
183
|
-
return [];
|
|
184
|
-
}
|
|
185
|
-
const commandPicks = additionalCommandPicks.map(commandPick => this.toCommandPick(commandPick, runOptions));
|
|
186
|
-
// Basically, if we haven't already added a separator, we add one before the additional picks so long
|
|
187
|
-
// as one hasn't been added to the start of the array.
|
|
188
|
-
if (addSuggestedSeparator && ((_a = commandPicks[0]) === null || _a === void 0 ? void 0 : _a.type) !== 'separator') {
|
|
189
|
-
commandPicks.unshift({ type: 'separator', label: localize('suggested', "similar commands") });
|
|
190
|
-
}
|
|
191
|
-
return commandPicks;
|
|
192
|
-
})()
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
toCommandPick(commandPick, runOptions) {
|
|
196
|
-
if (commandPick.type === 'separator') {
|
|
197
|
-
return commandPick;
|
|
198
|
-
}
|
|
199
|
-
const keybinding = this.keybindingService.lookupKeybinding(commandPick.commandId);
|
|
200
|
-
const ariaLabel = keybinding ?
|
|
201
|
-
localize('commandPickAriaLabelWithKeybinding', "{0}, {1}", commandPick.label, keybinding.getAriaLabel()) :
|
|
202
|
-
commandPick.label;
|
|
203
|
-
return {
|
|
204
|
-
...commandPick,
|
|
205
|
-
ariaLabel,
|
|
206
|
-
detail: this.options.showAlias && commandPick.commandAlias !== commandPick.label ? commandPick.commandAlias : undefined,
|
|
207
|
-
keybinding,
|
|
208
|
-
accept: async () => {
|
|
209
|
-
var _a, _b;
|
|
210
|
-
// Add to history
|
|
211
|
-
this.commandsHistory.push(commandPick.commandId);
|
|
212
|
-
// Telementry
|
|
213
|
-
this.telemetryService.publicLog2('workbenchActionExecuted', {
|
|
214
|
-
id: commandPick.commandId,
|
|
215
|
-
from: (_a = runOptions === null || runOptions === void 0 ? void 0 : runOptions.from) !== null && _a !== void 0 ? _a : 'quick open'
|
|
216
|
-
});
|
|
217
|
-
// Run
|
|
218
|
-
try {
|
|
219
|
-
((_b = commandPick.args) === null || _b === void 0 ? void 0 : _b.length)
|
|
220
|
-
? await this.commandService.executeCommand(commandPick.commandId, ...commandPick.args)
|
|
221
|
-
: await this.commandService.executeCommand(commandPick.commandId);
|
|
222
|
-
}
|
|
223
|
-
catch (error) {
|
|
224
|
-
if (!isCancellationError(error)) {
|
|
225
|
-
this.dialogService.error(localize('canNotRun', "Command '{0}' resulted in an error", commandPick.label), toErrorMessage(error));
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
// TF-IDF string to be indexed
|
|
232
|
-
getTfIdfChunk({ label, commandAlias, commandDescription }) {
|
|
233
|
-
let chunk = label;
|
|
234
|
-
if (commandAlias && commandAlias !== label) {
|
|
235
|
-
chunk += ` - ${commandAlias}`;
|
|
236
|
-
}
|
|
237
|
-
if (commandDescription && commandDescription.value !== label) {
|
|
238
|
-
// If the original is the same as the value, don't add it
|
|
239
|
-
chunk += ` - ${commandDescription.value === commandDescription.original ? commandDescription.value : `${commandDescription.value} (${commandDescription.original})`}`;
|
|
240
|
-
}
|
|
241
|
-
return chunk;
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
AbstractCommandsQuickAccessProvider.PREFIX = '>';
|
|
245
|
-
AbstractCommandsQuickAccessProvider.TFIDF_THRESHOLD = 0.5;
|
|
246
|
-
AbstractCommandsQuickAccessProvider.TFIDF_MAX_RESULTS = 5;
|
|
247
|
-
AbstractCommandsQuickAccessProvider.WORD_FILTER = or(matchesPrefix, matchesWords, matchesContiguousSubString);
|
|
248
|
-
AbstractCommandsQuickAccessProvider = AbstractCommandsQuickAccessProvider_1 = __decorate([
|
|
249
|
-
__param(1, IInstantiationService),
|
|
250
|
-
__param(2, IKeybindingService),
|
|
251
|
-
__param(3, ICommandService),
|
|
252
|
-
__param(4, ITelemetryService),
|
|
253
|
-
__param(5, IDialogService)
|
|
254
|
-
], AbstractCommandsQuickAccessProvider);
|
|
255
|
-
export { AbstractCommandsQuickAccessProvider };
|
|
256
|
-
let CommandsHistory = CommandsHistory_1 = class CommandsHistory extends Disposable {
|
|
257
|
-
constructor(storageService, configurationService) {
|
|
258
|
-
super();
|
|
259
|
-
this.storageService = storageService;
|
|
260
|
-
this.configurationService = configurationService;
|
|
261
|
-
this.configuredCommandsHistoryLength = 0;
|
|
262
|
-
this.updateConfiguration();
|
|
263
|
-
this.load();
|
|
264
|
-
this.registerListeners();
|
|
265
|
-
}
|
|
266
|
-
registerListeners() {
|
|
267
|
-
this._register(this.configurationService.onDidChangeConfiguration(e => this.updateConfiguration(e)));
|
|
268
|
-
this._register(this.storageService.onWillSaveState(e => {
|
|
269
|
-
if (e.reason === WillSaveStateReason.SHUTDOWN) {
|
|
270
|
-
// Commands history is very dynamic and so we limit impact
|
|
271
|
-
// on storage to only save on shutdown. This helps reduce
|
|
272
|
-
// the overhead of syncing this data across machines.
|
|
273
|
-
this.saveState();
|
|
274
|
-
}
|
|
275
|
-
}));
|
|
276
|
-
}
|
|
277
|
-
updateConfiguration(e) {
|
|
278
|
-
if (e && !e.affectsConfiguration('workbench.commandPalette.history')) {
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
this.configuredCommandsHistoryLength = CommandsHistory_1.getConfiguredCommandHistoryLength(this.configurationService);
|
|
282
|
-
if (CommandsHistory_1.cache && CommandsHistory_1.cache.limit !== this.configuredCommandsHistoryLength) {
|
|
283
|
-
CommandsHistory_1.cache.limit = this.configuredCommandsHistoryLength;
|
|
284
|
-
CommandsHistory_1.hasChanges = true;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
load() {
|
|
288
|
-
const raw = this.storageService.get(CommandsHistory_1.PREF_KEY_CACHE, 0 /* StorageScope.PROFILE */);
|
|
289
|
-
let serializedCache;
|
|
290
|
-
if (raw) {
|
|
291
|
-
try {
|
|
292
|
-
serializedCache = JSON.parse(raw);
|
|
293
|
-
}
|
|
294
|
-
catch (error) {
|
|
295
|
-
// invalid data
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
const cache = CommandsHistory_1.cache = new LRUCache(this.configuredCommandsHistoryLength, 1);
|
|
299
|
-
if (serializedCache) {
|
|
300
|
-
let entries;
|
|
301
|
-
if (serializedCache.usesLRU) {
|
|
302
|
-
entries = serializedCache.entries;
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
entries = serializedCache.entries.sort((a, b) => a.value - b.value);
|
|
306
|
-
}
|
|
307
|
-
entries.forEach(entry => cache.set(entry.key, entry.value));
|
|
308
|
-
}
|
|
309
|
-
CommandsHistory_1.counter = this.storageService.getNumber(CommandsHistory_1.PREF_KEY_COUNTER, 0 /* StorageScope.PROFILE */, CommandsHistory_1.counter);
|
|
310
|
-
}
|
|
311
|
-
push(commandId) {
|
|
312
|
-
if (!CommandsHistory_1.cache) {
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
CommandsHistory_1.cache.set(commandId, CommandsHistory_1.counter++); // set counter to command
|
|
316
|
-
CommandsHistory_1.hasChanges = true;
|
|
317
|
-
}
|
|
318
|
-
peek(commandId) {
|
|
319
|
-
var _a;
|
|
320
|
-
return (_a = CommandsHistory_1.cache) === null || _a === void 0 ? void 0 : _a.peek(commandId);
|
|
321
|
-
}
|
|
322
|
-
saveState() {
|
|
323
|
-
if (!CommandsHistory_1.cache) {
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
if (!CommandsHistory_1.hasChanges) {
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
const serializedCache = { usesLRU: true, entries: [] };
|
|
330
|
-
CommandsHistory_1.cache.forEach((value, key) => serializedCache.entries.push({ key, value }));
|
|
331
|
-
this.storageService.store(CommandsHistory_1.PREF_KEY_CACHE, JSON.stringify(serializedCache), 0 /* StorageScope.PROFILE */, 0 /* StorageTarget.USER */);
|
|
332
|
-
this.storageService.store(CommandsHistory_1.PREF_KEY_COUNTER, CommandsHistory_1.counter, 0 /* StorageScope.PROFILE */, 0 /* StorageTarget.USER */);
|
|
333
|
-
CommandsHistory_1.hasChanges = false;
|
|
334
|
-
}
|
|
335
|
-
static getConfiguredCommandHistoryLength(configurationService) {
|
|
336
|
-
var _a, _b;
|
|
337
|
-
const config = configurationService.getValue();
|
|
338
|
-
const configuredCommandHistoryLength = (_b = (_a = config.workbench) === null || _a === void 0 ? void 0 : _a.commandPalette) === null || _b === void 0 ? void 0 : _b.history;
|
|
339
|
-
if (typeof configuredCommandHistoryLength === 'number') {
|
|
340
|
-
return configuredCommandHistoryLength;
|
|
341
|
-
}
|
|
342
|
-
return CommandsHistory_1.DEFAULT_COMMANDS_HISTORY_LENGTH;
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
CommandsHistory.DEFAULT_COMMANDS_HISTORY_LENGTH = 50;
|
|
346
|
-
CommandsHistory.PREF_KEY_CACHE = 'commandPalette.mru.cache';
|
|
347
|
-
CommandsHistory.PREF_KEY_COUNTER = 'commandPalette.mru.counter';
|
|
348
|
-
CommandsHistory.counter = 1;
|
|
349
|
-
CommandsHistory.hasChanges = false;
|
|
350
|
-
CommandsHistory = CommandsHistory_1 = __decorate([
|
|
351
|
-
__param(0, IStorageService),
|
|
352
|
-
__param(1, IConfigurationService)
|
|
353
|
-
], CommandsHistory);
|
|
354
|
-
export { CommandsHistory };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { keybindingLabelBackground, keybindingLabelBorder, keybindingLabelBottomBorder, keybindingLabelForeground, asCssVariable, widgetShadow, buttonForeground, buttonSeparator, buttonBackground, buttonHoverBackground, buttonSecondaryForeground, buttonSecondaryBackground, buttonSecondaryHoverBackground, buttonBorder, progressBarBackground, inputActiveOptionBorder, inputActiveOptionForeground, inputActiveOptionBackground, editorWidgetBackground, editorWidgetForeground, contrastBorder, checkboxBorder, checkboxBackground, checkboxForeground, problemsErrorIconForeground, problemsWarningIconForeground, problemsInfoIconForeground, inputBackground, inputForeground, inputBorder, textLinkForeground, inputValidationInfoBorder, inputValidationInfoBackground, inputValidationInfoForeground, inputValidationWarningBorder, inputValidationWarningBackground, inputValidationWarningForeground, inputValidationErrorBorder, inputValidationErrorBackground, inputValidationErrorForeground, listFilterWidgetBackground, listFilterWidgetNoMatchesOutline, listFilterWidgetOutline, listFilterWidgetShadow, badgeBackground, badgeForeground, breadcrumbsBackground, breadcrumbsForeground, breadcrumbsFocusForeground, breadcrumbsActiveSelectionForeground, activeContrastBorder, listActiveSelectionBackground, listActiveSelectionForeground, listActiveSelectionIconForeground, listDropBackground, listFocusAndSelectionOutline, listFocusBackground, listFocusForeground, listFocusOutline, listHoverBackground, listHoverForeground, listInactiveFocusBackground, listInactiveFocusOutline, listInactiveSelectionBackground, listInactiveSelectionForeground, listInactiveSelectionIconForeground, tableColumnsBorder, tableOddRowsBackgroundColor, treeIndentGuidesStroke, asCssVariableWithDefault, editorWidgetBorder, focusBorder, pickerGroupForeground, quickInputListFocusBackground, quickInputListFocusForeground, quickInputListFocusIconForeground, selectBackground, selectBorder, selectForeground, selectListBackground, treeInactiveIndentGuidesStroke, menuBorder, menuForeground, menuBackground, menuSelectionForeground, menuSelectionBackground, menuSelectionBorder, menuSeparatorBackground, scrollbarShadow, scrollbarSliderActiveBackground, scrollbarSliderBackground, scrollbarSliderHoverBackground } from '../common/colorRegistry.js';
|
|
2
|
-
import { Color } from '../../../base/common/color.js';
|
|
3
|
-
function overrideStyles(override, styles) {
|
|
4
|
-
const result = { ...styles };
|
|
5
|
-
for (const key in override) {
|
|
6
|
-
const val = override[key];
|
|
7
|
-
result[key] = val !== undefined ? asCssVariable(val) : undefined;
|
|
8
|
-
}
|
|
9
|
-
return result;
|
|
10
|
-
}
|
|
11
|
-
export const defaultKeybindingLabelStyles = {
|
|
12
|
-
keybindingLabelBackground: asCssVariable(keybindingLabelBackground),
|
|
13
|
-
keybindingLabelForeground: asCssVariable(keybindingLabelForeground),
|
|
14
|
-
keybindingLabelBorder: asCssVariable(keybindingLabelBorder),
|
|
15
|
-
keybindingLabelBottomBorder: asCssVariable(keybindingLabelBottomBorder),
|
|
16
|
-
keybindingLabelShadow: asCssVariable(widgetShadow)
|
|
17
|
-
};
|
|
18
|
-
export const defaultButtonStyles = {
|
|
19
|
-
buttonForeground: asCssVariable(buttonForeground),
|
|
20
|
-
buttonSeparator: asCssVariable(buttonSeparator),
|
|
21
|
-
buttonBackground: asCssVariable(buttonBackground),
|
|
22
|
-
buttonHoverBackground: asCssVariable(buttonHoverBackground),
|
|
23
|
-
buttonSecondaryForeground: asCssVariable(buttonSecondaryForeground),
|
|
24
|
-
buttonSecondaryBackground: asCssVariable(buttonSecondaryBackground),
|
|
25
|
-
buttonSecondaryHoverBackground: asCssVariable(buttonSecondaryHoverBackground),
|
|
26
|
-
buttonBorder: asCssVariable(buttonBorder),
|
|
27
|
-
};
|
|
28
|
-
export const defaultProgressBarStyles = {
|
|
29
|
-
progressBarBackground: asCssVariable(progressBarBackground)
|
|
30
|
-
};
|
|
31
|
-
export const defaultToggleStyles = {
|
|
32
|
-
inputActiveOptionBorder: asCssVariable(inputActiveOptionBorder),
|
|
33
|
-
inputActiveOptionForeground: asCssVariable(inputActiveOptionForeground),
|
|
34
|
-
inputActiveOptionBackground: asCssVariable(inputActiveOptionBackground)
|
|
35
|
-
};
|
|
36
|
-
export const defaultCheckboxStyles = {
|
|
37
|
-
checkboxBackground: asCssVariable(checkboxBackground),
|
|
38
|
-
checkboxBorder: asCssVariable(checkboxBorder),
|
|
39
|
-
checkboxForeground: asCssVariable(checkboxForeground)
|
|
40
|
-
};
|
|
41
|
-
export const defaultDialogStyles = {
|
|
42
|
-
dialogBackground: asCssVariable(editorWidgetBackground),
|
|
43
|
-
dialogForeground: asCssVariable(editorWidgetForeground),
|
|
44
|
-
dialogShadow: asCssVariable(widgetShadow),
|
|
45
|
-
dialogBorder: asCssVariable(contrastBorder),
|
|
46
|
-
errorIconForeground: asCssVariable(problemsErrorIconForeground),
|
|
47
|
-
warningIconForeground: asCssVariable(problemsWarningIconForeground),
|
|
48
|
-
infoIconForeground: asCssVariable(problemsInfoIconForeground),
|
|
49
|
-
textLinkForeground: asCssVariable(textLinkForeground)
|
|
50
|
-
};
|
|
51
|
-
export const defaultInputBoxStyles = {
|
|
52
|
-
inputBackground: asCssVariable(inputBackground),
|
|
53
|
-
inputForeground: asCssVariable(inputForeground),
|
|
54
|
-
inputBorder: asCssVariable(inputBorder),
|
|
55
|
-
inputValidationInfoBorder: asCssVariable(inputValidationInfoBorder),
|
|
56
|
-
inputValidationInfoBackground: asCssVariable(inputValidationInfoBackground),
|
|
57
|
-
inputValidationInfoForeground: asCssVariable(inputValidationInfoForeground),
|
|
58
|
-
inputValidationWarningBorder: asCssVariable(inputValidationWarningBorder),
|
|
59
|
-
inputValidationWarningBackground: asCssVariable(inputValidationWarningBackground),
|
|
60
|
-
inputValidationWarningForeground: asCssVariable(inputValidationWarningForeground),
|
|
61
|
-
inputValidationErrorBorder: asCssVariable(inputValidationErrorBorder),
|
|
62
|
-
inputValidationErrorBackground: asCssVariable(inputValidationErrorBackground),
|
|
63
|
-
inputValidationErrorForeground: asCssVariable(inputValidationErrorForeground)
|
|
64
|
-
};
|
|
65
|
-
export const defaultFindWidgetStyles = {
|
|
66
|
-
listFilterWidgetBackground: asCssVariable(listFilterWidgetBackground),
|
|
67
|
-
listFilterWidgetOutline: asCssVariable(listFilterWidgetOutline),
|
|
68
|
-
listFilterWidgetNoMatchesOutline: asCssVariable(listFilterWidgetNoMatchesOutline),
|
|
69
|
-
listFilterWidgetShadow: asCssVariable(listFilterWidgetShadow),
|
|
70
|
-
inputBoxStyles: defaultInputBoxStyles,
|
|
71
|
-
toggleStyles: defaultToggleStyles
|
|
72
|
-
};
|
|
73
|
-
export const defaultCountBadgeStyles = {
|
|
74
|
-
badgeBackground: asCssVariable(badgeBackground),
|
|
75
|
-
badgeForeground: asCssVariable(badgeForeground),
|
|
76
|
-
badgeBorder: asCssVariable(contrastBorder)
|
|
77
|
-
};
|
|
78
|
-
export const defaultBreadcrumbsWidgetStyles = {
|
|
79
|
-
breadcrumbsBackground: asCssVariable(breadcrumbsBackground),
|
|
80
|
-
breadcrumbsForeground: asCssVariable(breadcrumbsForeground),
|
|
81
|
-
breadcrumbsHoverForeground: asCssVariable(breadcrumbsFocusForeground),
|
|
82
|
-
breadcrumbsFocusForeground: asCssVariable(breadcrumbsFocusForeground),
|
|
83
|
-
breadcrumbsFocusAndSelectionForeground: asCssVariable(breadcrumbsActiveSelectionForeground)
|
|
84
|
-
};
|
|
85
|
-
export const defaultListStyles = {
|
|
86
|
-
listBackground: undefined,
|
|
87
|
-
listInactiveFocusForeground: undefined,
|
|
88
|
-
listFocusBackground: asCssVariable(listFocusBackground),
|
|
89
|
-
listFocusForeground: asCssVariable(listFocusForeground),
|
|
90
|
-
listFocusOutline: asCssVariable(listFocusOutline),
|
|
91
|
-
listActiveSelectionBackground: asCssVariable(listActiveSelectionBackground),
|
|
92
|
-
listActiveSelectionForeground: asCssVariable(listActiveSelectionForeground),
|
|
93
|
-
listActiveSelectionIconForeground: asCssVariable(listActiveSelectionIconForeground),
|
|
94
|
-
listFocusAndSelectionOutline: asCssVariable(listFocusAndSelectionOutline),
|
|
95
|
-
listFocusAndSelectionBackground: asCssVariable(listActiveSelectionBackground),
|
|
96
|
-
listFocusAndSelectionForeground: asCssVariable(listActiveSelectionForeground),
|
|
97
|
-
listInactiveSelectionBackground: asCssVariable(listInactiveSelectionBackground),
|
|
98
|
-
listInactiveSelectionIconForeground: asCssVariable(listInactiveSelectionIconForeground),
|
|
99
|
-
listInactiveSelectionForeground: asCssVariable(listInactiveSelectionForeground),
|
|
100
|
-
listInactiveFocusBackground: asCssVariable(listInactiveFocusBackground),
|
|
101
|
-
listInactiveFocusOutline: asCssVariable(listInactiveFocusOutline),
|
|
102
|
-
listHoverBackground: asCssVariable(listHoverBackground),
|
|
103
|
-
listHoverForeground: asCssVariable(listHoverForeground),
|
|
104
|
-
listDropBackground: asCssVariable(listDropBackground),
|
|
105
|
-
listSelectionOutline: asCssVariable(activeContrastBorder),
|
|
106
|
-
listHoverOutline: asCssVariable(activeContrastBorder),
|
|
107
|
-
treeIndentGuidesStroke: asCssVariable(treeIndentGuidesStroke),
|
|
108
|
-
treeInactiveIndentGuidesStroke: asCssVariable(treeInactiveIndentGuidesStroke),
|
|
109
|
-
tableColumnsBorder: asCssVariable(tableColumnsBorder),
|
|
110
|
-
tableOddRowsBackgroundColor: asCssVariable(tableOddRowsBackgroundColor),
|
|
111
|
-
};
|
|
112
|
-
export function getListStyles(override) {
|
|
113
|
-
return overrideStyles(override, defaultListStyles);
|
|
114
|
-
}
|
|
115
|
-
export const defaultSelectBoxStyles = {
|
|
116
|
-
selectBackground: asCssVariable(selectBackground),
|
|
117
|
-
selectListBackground: asCssVariable(selectListBackground),
|
|
118
|
-
selectForeground: asCssVariable(selectForeground),
|
|
119
|
-
decoratorRightForeground: asCssVariable(pickerGroupForeground),
|
|
120
|
-
selectBorder: asCssVariable(selectBorder),
|
|
121
|
-
focusBorder: asCssVariable(focusBorder),
|
|
122
|
-
listFocusBackground: asCssVariable(quickInputListFocusBackground),
|
|
123
|
-
listInactiveSelectionIconForeground: asCssVariable(quickInputListFocusIconForeground),
|
|
124
|
-
listFocusForeground: asCssVariable(quickInputListFocusForeground),
|
|
125
|
-
listFocusOutline: asCssVariableWithDefault(activeContrastBorder, Color.transparent.toString()),
|
|
126
|
-
listHoverBackground: asCssVariable(listHoverBackground),
|
|
127
|
-
listHoverForeground: asCssVariable(listHoverForeground),
|
|
128
|
-
listHoverOutline: asCssVariable(activeContrastBorder),
|
|
129
|
-
selectListBorder: asCssVariable(editorWidgetBorder),
|
|
130
|
-
listBackground: undefined,
|
|
131
|
-
listActiveSelectionBackground: undefined,
|
|
132
|
-
listActiveSelectionForeground: undefined,
|
|
133
|
-
listActiveSelectionIconForeground: undefined,
|
|
134
|
-
listFocusAndSelectionBackground: undefined,
|
|
135
|
-
listDropBackground: undefined,
|
|
136
|
-
listInactiveSelectionBackground: undefined,
|
|
137
|
-
listInactiveSelectionForeground: undefined,
|
|
138
|
-
listInactiveFocusBackground: undefined,
|
|
139
|
-
listInactiveFocusOutline: undefined,
|
|
140
|
-
listSelectionOutline: undefined,
|
|
141
|
-
listFocusAndSelectionForeground: undefined,
|
|
142
|
-
listFocusAndSelectionOutline: undefined,
|
|
143
|
-
listInactiveFocusForeground: undefined,
|
|
144
|
-
tableColumnsBorder: undefined,
|
|
145
|
-
tableOddRowsBackgroundColor: undefined,
|
|
146
|
-
treeIndentGuidesStroke: undefined,
|
|
147
|
-
treeInactiveIndentGuidesStroke: undefined,
|
|
148
|
-
};
|
|
149
|
-
export const defaultMenuStyles = {
|
|
150
|
-
shadowColor: asCssVariable(widgetShadow),
|
|
151
|
-
borderColor: asCssVariable(menuBorder),
|
|
152
|
-
foregroundColor: asCssVariable(menuForeground),
|
|
153
|
-
backgroundColor: asCssVariable(menuBackground),
|
|
154
|
-
selectionForegroundColor: asCssVariable(menuSelectionForeground),
|
|
155
|
-
selectionBackgroundColor: asCssVariable(menuSelectionBackground),
|
|
156
|
-
selectionBorderColor: asCssVariable(menuSelectionBorder),
|
|
157
|
-
separatorColor: asCssVariable(menuSeparatorBackground),
|
|
158
|
-
scrollbarShadow: asCssVariable(scrollbarShadow),
|
|
159
|
-
scrollbarSliderBackground: asCssVariable(scrollbarSliderBackground),
|
|
160
|
-
scrollbarSliderHoverBackground: asCssVariable(scrollbarSliderHoverBackground),
|
|
161
|
-
scrollbarSliderActiveBackground: asCssVariable(scrollbarSliderActiveBackground)
|
|
162
|
-
};
|