claude-flow-novice 2.3.4 → 2.3.6
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/booster/performance-benchmark.js +1 -1
- package/dist/src/booster/wasm-demo.js +1 -1
- package/dist/src/cli/command-registry.js +2 -2
- package/dist/src/cli/help-formatter.js +137 -109
- package/dist/src/cli/simple-cli.js +2528 -2121
- package/dist/src/cli/simple-commands/sparc/refinement.js +3 -3
- package/dist/src/cli/validation-helper.js +98 -49
- package/dist/src/commands/suggest-templates.js +4 -4
- package/dist/src/core/version.js +23 -15
- package/dist/src/memory/swarm-memory.js +603 -470
- package/dist/src/slash-commands/fullstack.js +2 -2
- package/dist/src/slash-commands/parse-epic.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +41 -31
- package/dist/scripts/.claude-flow/metrics/agent-metrics.json +0 -1
- package/dist/scripts/.claude-flow/metrics/performance.json +0 -9
- package/dist/scripts/.claude-flow/metrics/task-metrics.json +0 -10
- package/dist/scripts/CLEANUP_OPTIMIZATION_REPORT.json +0 -312
- package/dist/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +0 -387
- package/dist/scripts/CLEANUP_QUICK_START.md +0 -268
- package/dist/scripts/CLEANUP_TEST_RESULTS.md +0 -205
- package/dist/scripts/README.md +0 -339
- package/dist/scripts/ace-query.sh +0 -384
- package/dist/scripts/agent-token-analysis.js +0 -430
- package/dist/scripts/auto-setup.js +0 -332
- package/dist/scripts/build/README.md +0 -167
- package/dist/scripts/build/build-config.js +0 -27
- package/dist/scripts/build/build-prompt-copier.sh +0 -30
- package/dist/scripts/build/performance-monitor.js +0 -869
- package/dist/scripts/build/prepare-publish.js +0 -150
- package/dist/scripts/build/typescript-fixer.js +0 -621
- package/dist/scripts/build/unified-builder.sh +0 -428
- package/dist/scripts/build/update-bin-version.js +0 -32
- package/dist/scripts/build/validate-agents.js +0 -238
- package/dist/scripts/build-index.js +0 -43
- package/dist/scripts/build-orchestrator.js +0 -320
- package/dist/scripts/check-routing-stats.cjs +0 -122
- package/dist/scripts/ci-validation.js +0 -375
- package/dist/scripts/cleanup-blocking-coordination.sh +0 -420
- package/dist/scripts/cleanup-idle-sessions.sh +0 -118
- package/dist/scripts/collect-build-metrics.js +0 -65
- package/dist/scripts/demo/README.md +0 -79
- package/dist/scripts/demo/autoscaling-demo-simplified.js +0 -963
- package/dist/scripts/demo/comprehensive-dashboard-test.js +0 -693
- package/dist/scripts/demo/confidence-log.js +0 -87
- package/dist/scripts/demo/confidence-report.js +0 -82
- package/dist/scripts/demo/demo-multi-swarm-coordination.js +0 -325
- package/dist/scripts/demo/demo-production-deployment.js +0 -399
- package/dist/scripts/demo/demo-visualization-system.js +0 -149
- package/dist/scripts/demo/performance-analysis.cjs +0 -71
- package/dist/scripts/demo/performance-analysis.js +0 -71
- package/dist/scripts/demo/test-autoscaling-demo.js +0 -314
- package/dist/scripts/dependency-optimizer.js +0 -349
- package/dist/scripts/dependency-security-assessment.js +0 -331
- package/dist/scripts/deploy-sdk.sh +0 -176
- package/dist/scripts/deployment-readiness-report.json +0 -179
- package/dist/scripts/dev/README.md +0 -264
- package/dist/scripts/dev/claude-flow-wrapper.sh +0 -35
- package/dist/scripts/dev/claude-monitor.py +0 -419
- package/dist/scripts/dev/claude-sparc.sh +0 -562
- package/dist/scripts/dev/claude-wrapper.sh +0 -17
- package/dist/scripts/dev/demo-phase3-compliance.js +0 -172
- package/dist/scripts/dev/demo-task-system.ts +0 -224
- package/dist/scripts/dev/deployment-validator.js +0 -315
- package/dist/scripts/dev/spawn-claude-terminal.sh +0 -32
- package/dist/scripts/dev/start-portal.sh +0 -506
- package/dist/scripts/dev/start-web-ui.js +0 -15
- package/dist/scripts/dev/stop-portal.sh +0 -311
- package/dist/scripts/dev/validate-examples.ts +0 -288
- package/dist/scripts/dev/validate-phase2.cjs +0 -451
- package/dist/scripts/dev/validate-phase2.js +0 -785
- package/dist/scripts/dev/validate-phase3.cjs +0 -208
- package/dist/scripts/dev/validate-security-remediation.js +0 -1
- package/dist/scripts/ecosystem.config.cjs +0 -90
- package/dist/scripts/enhanced-memory-spiral-killer.sh +0 -221
- package/dist/scripts/fix-js-extensions.js +0 -167
- package/dist/scripts/generate-basic-types.js +0 -73
- package/dist/scripts/generate-changelog.js +0 -318
- package/dist/scripts/git-hooks/pre-commit.sh +0 -143
- package/dist/scripts/health-checks.js +0 -634
- package/dist/scripts/hook-wrapper.sh +0 -54
- package/dist/scripts/install/README.md +0 -375
- package/dist/scripts/install/REDIS_SETUP_VALIDATION.json +0 -245
- package/dist/scripts/install/check-prerequisites.js +0 -303
- package/dist/scripts/install/config-wizard.js +0 -606
- package/dist/scripts/install/dependency-checker.js +0 -385
- package/dist/scripts/install/health-check.js +0 -765
- package/dist/scripts/install/install.js +0 -256
- package/dist/scripts/install/installation-benchmark.js +0 -461
- package/dist/scripts/install/quick-install.js +0 -720
- package/dist/scripts/install/quick-start-wizard.js +0 -295
- package/dist/scripts/install/redis-cli.js +0 -289
- package/dist/scripts/install/redis-install-guides.md +0 -407
- package/dist/scripts/install/redis-setup.js +0 -559
- package/dist/scripts/install/redis-test.js +0 -278
- package/dist/scripts/install/service-manager.js +0 -672
- package/dist/scripts/install/setup.js +0 -832
- package/dist/scripts/install/uninstall.js +0 -526
- package/dist/scripts/install/update.js +0 -461
- package/dist/scripts/install-pre-commit-hook.sh +0 -127
- package/dist/scripts/legacy/README.md +0 -272
- package/dist/scripts/legacy/batch-fix-ts.sh +0 -54
- package/dist/scripts/legacy/build-migration.sh +0 -105
- package/dist/scripts/legacy/build-monitor.js +0 -209
- package/dist/scripts/legacy/build-with-filter.sh +0 -84
- package/dist/scripts/legacy/build-workaround.sh +0 -71
- package/dist/scripts/legacy/fix-ts-advanced.js +0 -358
- package/dist/scripts/legacy/fix-ts-final.sh +0 -50
- package/dist/scripts/legacy/fix-ts-targeted.sh +0 -49
- package/dist/scripts/legacy/fix-typescript-errors.js +0 -305
- package/dist/scripts/legacy/force-build.sh +0 -63
- package/dist/scripts/legacy/optimize-performance.js +0 -400
- package/dist/scripts/legacy/performance-monitor.js +0 -263
- package/dist/scripts/legacy/performance-monitoring.js +0 -532
- package/dist/scripts/legacy/performance-test-runner.js +0 -645
- package/dist/scripts/legacy/quick-fix-ts.js +0 -281
- package/dist/scripts/legacy/safe-build.sh +0 -63
- package/dist/scripts/memory-monitor-coordinator.js +0 -451
- package/dist/scripts/migrate-to-sdk.sh +0 -520
- package/dist/scripts/migration/QUICK-START.md +0 -189
- package/dist/scripts/migration/QUICK-START.md.backup-1760135091363 +0 -189
- package/dist/scripts/migration/README.md +0 -464
- package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +0 -500
- package/dist/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +0 -500
- package/dist/scripts/migration/UPDATE-PATHS-README.md +0 -464
- package/dist/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +0 -464
- package/dist/scripts/migration/example-patterns.json +0 -19
- package/dist/scripts/migration/install-arm64.js +0 -78
- package/dist/scripts/migration/install.js +0 -83
- package/dist/scripts/migration/migrate-hooks.js +0 -173
- package/dist/scripts/migration/migration-examples.ts +0 -318
- package/dist/scripts/migration/reorganize-workspace.js +0 -504
- package/dist/scripts/migration/test-update-paths.js +0 -359
- package/dist/scripts/migration/update-paths.js +0 -664
- package/dist/scripts/migration/validate-migration.js +0 -647
- package/dist/scripts/monitor-loop.sh +0 -65
- package/dist/scripts/monitor-memory.sh +0 -47
- package/dist/scripts/monitor-migration.js +0 -339
- package/dist/scripts/monitor.py +0 -43
- package/dist/scripts/monitoring/README.md +0 -178
- package/dist/scripts/monitoring/alert-monitor.sh +0 -220
- package/dist/scripts/monitoring/analyze-resources.sh +0 -199
- package/dist/scripts/monitoring/dashboards/rate-limiting-dashboard.json +0 -211
- package/dist/scripts/monitoring/dynamic-monitor.sh +0 -85
- package/dist/scripts/monitoring/launch-stability-test.sh +0 -184
- package/dist/scripts/monitoring/monitor-test.sh +0 -93
- package/dist/scripts/monitoring/pre-test-validation.sh +0 -208
- package/dist/scripts/monitoring/quick-test-alerting.sh +0 -118
- package/dist/scripts/monitoring/quick-test-rate-limiting.sh +0 -206
- package/dist/scripts/monitoring/rate-limiting-monitor.sh +0 -380
- package/dist/scripts/monitoring/resource-monitor.sh +0 -126
- package/dist/scripts/monitoring/stability-monitor.js +0 -429
- package/dist/scripts/monitoring/test-monitor-quick.sh +0 -54
- package/dist/scripts/monitoring/view-alerts.sh +0 -307
- package/dist/scripts/npm-metrics-collector.js +0 -482
- package/dist/scripts/npm-package-validation.cjs +0 -299
- package/dist/scripts/optimization/build-optimizer.js +0 -438
- package/dist/scripts/optimization/config-validator.js +0 -761
- package/dist/scripts/optimization/test-optimization.js +0 -432
- package/dist/scripts/optimization/unified-activation.js +0 -839
- package/dist/scripts/optimize-package-swarm.js +0 -54
- package/dist/scripts/performance/ACTIVATION_COMMANDS.md +0 -292
- package/dist/scripts/performance/sqlite-enhanced-activation.sh +0 -583
- package/dist/scripts/performance/test-enhanced-backend.sh +0 -504
- package/dist/scripts/performance-monitor.js +0 -644
- package/dist/scripts/performance-test-runner.js +0 -698
- package/dist/scripts/post-deployment-monitoring.js +0 -350
- package/dist/scripts/post-edit-pipeline.js +0 -2091
- package/dist/scripts/post-install-claude-md.js +0 -78
- package/dist/scripts/postinstall.js +0 -84
- package/dist/scripts/pre-publish-validation.cjs +0 -212
- package/dist/scripts/pre-publish-validation.js +0 -429
- package/dist/scripts/redis-lua/cleanup-blocking-coordination.lua +0 -198
- package/dist/scripts/release-announcement.js +0 -425
- package/dist/scripts/release-notification.js +0 -248
- package/dist/scripts/release-rollback.js +0 -376
- package/dist/scripts/release-validation.js +0 -460
- package/dist/scripts/rollback-sdk.sh +0 -66
- package/dist/scripts/run-production-validation.ts +0 -590
- package/dist/scripts/run-stability-validation.sh +0 -687
- package/dist/scripts/security/README.md +0 -339
- package/dist/scripts/security/deployment-validation.cjs +0 -279
- package/dist/scripts/security/envelope-encryption-confidence-report.cjs +0 -422
- package/dist/scripts/security/install-git-hooks.sh +0 -132
- package/dist/scripts/security/install-git-secrets.sh +0 -295
- package/dist/scripts/security/rotate-api-keys.js +0 -469
- package/dist/scripts/security/ruv-swarm-safe.js +0 -74
- package/dist/scripts/security/security-audit.cjs +0 -538
- package/dist/scripts/security/setup-redis-auth.sh +0 -397
- package/dist/scripts/security/validate-envelope-encryption.cjs +0 -340
- package/dist/scripts/security-scan.js +0 -492
- package/dist/scripts/src/web/frontend/.claude-flow/metrics/agent-metrics.json +0 -1
- package/dist/scripts/src/web/frontend/.claude-flow/metrics/performance.json +0 -9
- package/dist/scripts/src/web/frontend/.claude-flow/metrics/task-metrics.json +0 -10
- package/dist/scripts/switch-api.sh +0 -159
- package/dist/scripts/sync-agents.js +0 -290
- package/dist/scripts/test/50-agent-test.js +0 -625
- package/dist/scripts/test/NEW_STABILITY_TEST_GUIDE.md +0 -407
- package/dist/scripts/test/README.md +0 -236
- package/dist/scripts/test/STABILITY_TEST_EXAMPLE.md +0 -347
- package/dist/scripts/test/STABILITY_TEST_README.md +0 -480
- package/dist/scripts/test/agent-worker.js +0 -309
- package/dist/scripts/test/ai-coordination-test.js +0 -650
- package/dist/scripts/test/ai-mesh-coordination-test.js +0 -416
- package/dist/scripts/test/check-links.ts +0 -274
- package/dist/scripts/test/check-performance-regression.ts +0 -168
- package/dist/scripts/test/cli-agent-coordination-test.js +0 -313
- package/dist/scripts/test/coordinator-multilingual-test.js +0 -396
- package/dist/scripts/test/coordinator-transparency-demo.js +0 -585
- package/dist/scripts/test/coverage-report.ts +0 -692
- package/dist/scripts/test/generate-swarm-tests.js +0 -633
- package/dist/scripts/test/integration-test-validation.cjs +0 -253
- package/dist/scripts/test/load-test-swarm.js +0 -576
- package/dist/scripts/test/mesh-coordination-zero-overlap-test.js +0 -740
- package/dist/scripts/test/multilingual-hello-world-test.js +0 -390
- package/dist/scripts/test/quick-multilingual-demo.js +0 -464
- package/dist/scripts/test/real-agent-test.js +0 -312
- package/dist/scripts/test/run-phase3-compliance-tests.js +0 -427
- package/dist/scripts/test/run-stability-test-examples.sh +0 -292
- package/dist/scripts/test/stability-results/stability-metrics.jsonl +0 -83
- package/dist/scripts/test/stability-results/stability-test-report.json +0 -128
- package/dist/scripts/test/stability-results/stability-test.log +0 -1827
- package/dist/scripts/test/stability-test-50-agents.js +0 -734
- package/dist/scripts/test/test-batch-tasks.ts +0 -29
- package/dist/scripts/test/test-byzantine-resolution.js +0 -246
- package/dist/scripts/test/test-claude-spawn-options.sh +0 -63
- package/dist/scripts/test/test-cli-wizard.js +0 -331
- package/dist/scripts/test/test-comprehensive.js +0 -401
- package/dist/scripts/test/test-coordination-features.ts +0 -238
- package/dist/scripts/test/test-fallback-systems.js +0 -276
- package/dist/scripts/test/test-init-command.ts +0 -302
- package/dist/scripts/test/test-mcp.ts +0 -251
- package/dist/scripts/test/test-runner.ts +0 -568
- package/dist/scripts/test/test-swarm-integration.sh +0 -92
- package/dist/scripts/test/test-swarm.ts +0 -142
- package/dist/scripts/test/validation-summary.ts +0 -408
- package/dist/scripts/test-cleanup-performance.sh +0 -416
- package/dist/scripts/test-dashboard-auth.cjs +0 -203
- package/dist/scripts/test-docker-deployment.sh +0 -207
- package/dist/scripts/test-npm-package.cjs +0 -167
- package/dist/scripts/test-provider-routing.cjs +0 -226
- package/dist/scripts/test-routing-telemetry.cjs +0 -147
- package/dist/scripts/test-runner.cjs +0 -154
- package/dist/scripts/test-zai-10k.cjs +0 -81
- package/dist/scripts/test-zai-api.cjs +0 -191
- package/dist/scripts/test-zai-diagnostic.cjs +0 -151
- package/dist/scripts/test-zai-final.cjs +0 -128
- package/dist/scripts/test-zai-with-env.cjs +0 -85
- package/dist/scripts/toggle-cost-savings.cjs +0 -302
- package/dist/scripts/unified-memory-monitor.js +0 -526
- package/dist/scripts/utils/README.md +0 -261
- package/dist/scripts/utils/clean-build-artifacts.sh +0 -94
- package/dist/scripts/utils/cleanup-root.sh +0 -69
- package/dist/scripts/utils/fix-cliffy-imports.js +0 -307
- package/dist/scripts/utils/fix-duplicate-imports.js +0 -114
- package/dist/scripts/utils/fix-error-handling.cjs +0 -70
- package/dist/scripts/utils/fix-import-paths.js +0 -104
- package/dist/scripts/utils/fix-imports.js +0 -116
- package/dist/scripts/utils/fix-shebang.js +0 -78
- package/dist/scripts/utils/fix-test-modules.js +0 -27
- package/dist/scripts/utils/fix-timezone-issue-246.js +0 -200
- package/dist/scripts/utils/fix-ts-comprehensive.py +0 -182
- package/dist/scripts/utils/fix-ts-targeted-batch.js +0 -250
- package/dist/scripts/utils/remove-benchmark-conflicts.sh +0 -140
- package/dist/scripts/utils/simple-test-fixer.js +0 -190
- package/dist/scripts/utils/validate-metrics-structure.cjs +0 -144
- package/dist/scripts/validate-agent-hooks.js +0 -506
- package/dist/scripts/validate-changelog.js +0 -241
- package/dist/scripts/validate-coordination-cli.js +0 -69
- package/dist/scripts/validate-coordination-toggle-integration.cjs +0 -501
- package/dist/scripts/validate-docker-infrastructure.sh +0 -502
- package/dist/scripts/validate-entry-points.js +0 -300
- package/dist/scripts/validate-memory-monitoring.sh +0 -225
- package/dist/scripts/validate-stage3-performance.ts +0 -377
- package/dist/scripts/validate-template-bundling.js +0 -180
- package/dist/scripts/validation/README.md +0 -33
- package/dist/scripts/validation/acl-security-validation.cjs +0 -214
- package/dist/scripts/validation/acl-security-validation.js +0 -402
- package/dist/scripts/validation/byzantine-verification.js +0 -407
- package/dist/scripts/validation/final-phase-2-consensus.cjs +0 -219
- package/dist/scripts/validation/final-security-validation.js +0 -791
- package/dist/scripts/validation/final-wasm-validation.cjs +0 -840
- package/dist/scripts/validation/integration-test-analysis.js +0 -105
- package/dist/scripts/validation/phase-0-comprehensive-validation.js +0 -474
- package/dist/scripts/validation/phase-0-consensus-report.js +0 -139
- package/dist/scripts/validation/phase-0-final-report.js +0 -112
- package/dist/scripts/validation/phase-0-redis-consensus-report.js +0 -129
- package/dist/scripts/validation/phase-0-validation-improved.js +0 -490
- package/dist/scripts/validation/phase-0-validation-test.js +0 -65
- package/dist/scripts/validation/phase-1-consensus-report.cjs +0 -342
- package/dist/scripts/validation/phase-1-consensus-validation.cjs +0 -551
- package/dist/scripts/validation/phase-1-consensus-validation.js +0 -551
- package/dist/scripts/validation/phase-2-consensus-report.cjs +0 -186
- package/dist/scripts/validation/phase-2-validation.cjs +0 -171
- package/dist/scripts/validation/phase-2-validation.js +0 -171
- package/dist/scripts/validation/phase-4-consensus-report.js +0 -181
- package/dist/scripts/validation/phase-4-final-validation.js +0 -351
- package/dist/scripts/validation/phase-5-consensus-report.cjs +0 -113
- package/dist/scripts/validation/phase-5-consensus-report.js +0 -113
- package/dist/scripts/validation/security-analysis.js +0 -49
- package/dist/scripts/validation/security-validation.js +0 -492
- package/dist/scripts/validation/simple-security-validation.js +0 -464
- package/dist/scripts/verify-installation.js +0 -112
- package/dist/scripts/verify-mcp-server.js +0 -86
- package/dist/scripts/verify-sdk-phase1.cjs +0 -293
- 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
|
@@ -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
|
-
};
|