dsh-context-compression-improved 0.11.4 → 0.13.0
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/.agents/plans/improve/checklist.md +32 -0
- package/.agents/plans/improve/findings.md +102 -0
- package/.agents/plans/improve/spec.md +53 -0
- package/.agents/plans/improve/tasks.md +70 -0
- package/.gitattributes +2 -0
- package/.githooks/pre-push +37 -0
- package/.github/workflows/ci.yml +47 -0
- package/CHANGELOG.de.md +580 -0
- package/CHANGELOG.es.md +588 -0
- package/CHANGELOG.fr.md +576 -0
- package/CHANGELOG.it.md +577 -0
- package/CHANGELOG.ja.md +261 -0
- package/CHANGELOG.ko.md +254 -0
- package/CHANGELOG.md +582 -0
- package/CHANGELOG.pt.md +167 -0
- package/CHANGELOG.ru.md +554 -0
- package/CHANGELOG.zh.md +247 -0
- package/CONTRIBUTING.md +22 -0
- package/README.de.md +96 -0
- package/README.es.md +96 -0
- package/README.fr.md +96 -0
- package/README.it.md +96 -0
- package/README.ja.md +102 -0
- package/README.ko.md +102 -0
- package/README.md +121 -15
- package/README.pt.md +96 -0
- package/README.ru.md +96 -0
- package/README.zh.md +104 -14
- package/SECURITY.md +18 -0
- package/THIRD_PARTY_NOTICES.md +7 -25
- package/assets/board.png +0 -0
- package/assets/context.png +0 -0
- package/assets/dshfind-card.svg +33 -0
- package/docs/assets/context-compression-selector-profiles.jpg +0 -0
- package/docs/assets/context-compression-selector-settings.png +0 -0
- package/docs/compat-0.1.5-report.md +77 -0
- package/docs/installation.de.md +104 -0
- package/docs/installation.es.md +104 -0
- package/docs/installation.fr.md +104 -0
- package/docs/installation.it.md +104 -0
- package/docs/installation.ja.md +78 -0
- package/docs/installation.ko.md +78 -0
- package/docs/installation.md +103 -0
- package/docs/installation.ru.md +104 -0
- package/docs/installation.zh.md +100 -0
- package/docs/repair-log.md +657 -0
- package/docs/shallow-teaching-preset-template.md +46 -0
- package/eslint.config.js +30 -0
- package/package.json +112 -127
- package/packages/selector/LICENSE +21 -0
- package/packages/selector/README.md +26 -0
- package/packages/selector/README.zh.md +24 -0
- package/packages/selector/THIRD_PARTY_NOTICES.md +32 -0
- package/packages/selector/docs/history-tool-call-working-set-spec.md +112 -0
- package/packages/selector/docs/native-tool-result-selector-spec.md +34 -0
- package/packages/selector/docs/subagent-cache-reuse-spec.md +46 -0
- package/{dsh.plugin.json → packages/selector/dsh.plugin.json} +2 -2
- package/{lib → packages/selector/lib}/client.js +400 -0
- package/packages/selector/lib/style.css +350 -0
- package/packages/selector/package.json +180 -0
- package/packages/selector/screenshots.json +3 -0
- package/packages/selector/src/client/CompressionProfileControls.tsx +352 -0
- package/packages/selector/src/client/CompressionProfileSelector.module.css +199 -0
- package/packages/selector/src/client/CompressionProfileSelector.tsx +89 -0
- package/packages/selector/src/client/CustomPolicyEditor.tsx +216 -0
- package/packages/selector/src/client/EstimatorControls.tsx +277 -0
- package/packages/selector/src/client/bridge-scope.ts +125 -0
- package/packages/selector/src/client/decode.ts +68 -0
- package/packages/selector/src/client/fab-pos.ts +71 -0
- package/packages/selector/src/client/guide-steps.ts +50 -0
- package/packages/selector/src/client/guide.tsx +368 -0
- package/packages/selector/src/client/index.ts +456 -0
- package/packages/selector/src/client/locales/de.ts +167 -0
- package/packages/selector/src/client/locales/es.ts +167 -0
- package/packages/selector/src/client/locales/fr.ts +167 -0
- package/packages/selector/src/client/locales/it.ts +167 -0
- package/packages/selector/src/client/locales/ja.ts +167 -0
- package/packages/selector/src/client/locales/ko.ts +167 -0
- package/packages/selector/src/client/locales/pt.ts +167 -0
- package/packages/selector/src/client/locales/ru.ts +167 -0
- package/packages/selector/src/client/locales.ts +334 -0
- package/packages/selector/src/client/monitor-fab.ts +445 -0
- package/packages/selector/src/client/preset-options.ts +88 -0
- package/packages/selector/src/client/savings-card.tsx +269 -0
- package/packages/selector/src/client/scope-face.ts +24 -0
- package/packages/selector/src/client/settings-section.tsx +171 -0
- package/packages/selector/src/compat/host-generation.ts +96 -0
- package/packages/selector/src/compat/llm-messages.ts +50 -0
- package/packages/selector/src/compat/settings-lease.ts +108 -0
- package/packages/selector/src/compat/tool-result.ts +91 -0
- package/packages/selector/src/css-modules.d.ts +6 -0
- package/packages/selector/src/deepseek-v4-tokenizer.ts +205 -0
- package/packages/selector/src/estimator-catalog.ts +104 -0
- package/packages/selector/src/index.ts +909 -0
- package/packages/selector/src/invariant.ts +113 -0
- package/packages/selector/src/preset-overlay.ts +749 -0
- package/packages/selector/src/profiles.ts +554 -0
- package/packages/selector/src/pruner/content.ts +199 -0
- package/packages/selector/src/pruner/session.ts +97 -0
- package/packages/selector/src/pruner/state.ts +61 -0
- package/packages/selector/src/pruner/tuning.ts +23 -0
- package/packages/selector/src/pruner/types.ts +78 -0
- package/packages/selector/src/pruner.ts +3222 -0
- package/packages/selector/src/runtime/adaptive-cost.ts +205 -0
- package/packages/selector/src/runtime/audit.ts +321 -0
- package/packages/selector/src/runtime/config.ts +887 -0
- package/packages/selector/src/runtime/custom-policy.ts +300 -0
- package/packages/selector/src/runtime/deepseek-official-pricing.ts +298 -0
- package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +254 -0
- package/packages/selector/src/runtime/display-prefs.ts +98 -0
- package/packages/selector/src/runtime/fold-router.ts +143 -0
- package/packages/selector/src/runtime/measurement.ts +444 -0
- package/packages/selector/src/runtime/monitor.ts +341 -0
- package/packages/selector/src/runtime/panel-command.ts +213 -0
- package/packages/selector/src/runtime/reducers.ts +1755 -0
- package/packages/selector/src/runtime/retrieve.ts +505 -0
- package/packages/selector/src/runtime/savings-integral.ts +117 -0
- package/packages/selector/src/runtime/savings-projection.ts +229 -0
- package/packages/selector/src/runtime/savings-verify.ts +446 -0
- package/packages/selector/src/runtime/savings.ts +526 -0
- package/packages/selector/src/runtime/sediment-card.ts +126 -0
- package/packages/selector/src/runtime/sediment-clock.ts +87 -0
- package/packages/selector/src/runtime/sediment-guard.ts +136 -0
- package/packages/selector/src/runtime/sediment-publish.ts +144 -0
- package/packages/selector/src/runtime/sediment-span.ts +170 -0
- package/packages/selector/src/runtime/sediment.ts +209 -0
- package/packages/selector/src/runtime/session-events.ts +30 -0
- package/packages/selector/src/runtime/session-file-decode.ts +523 -0
- package/packages/selector/src/runtime/shallow-tools.ts +342 -0
- package/packages/selector/src/runtime/stats-backfill.ts +541 -0
- package/packages/selector/src/runtime/stats-db.ts +492 -0
- package/packages/selector/src/runtime/stats-schema.ts +123 -0
- package/packages/selector/src/runtime/stats-sync.ts +307 -0
- package/packages/selector/src/runtime/summary-command.ts +127 -0
- package/packages/selector/src/runtime/tail-trim.ts +177 -0
- package/packages/selector/src/runtime/token-count.ts +72 -0
- package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +233 -0
- package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +204 -0
- package/packages/selector/src/runtime/tokenpilot/advisor.ts +419 -0
- package/packages/selector/src/runtime/tokenpilot/benefit.ts +200 -0
- package/packages/selector/src/runtime/tokenpilot/dedup.ts +82 -0
- package/packages/selector/src/runtime/tokenpilot/estimator.ts +151 -0
- package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +53 -0
- package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +65 -0
- package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +125 -0
- package/packages/selector/src/runtime/tokenpilot/intent-range.ts +37 -0
- package/packages/selector/src/runtime/tokenpilot/locator.ts +129 -0
- package/packages/selector/src/runtime/tokenpilot/read-state.ts +98 -0
- package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +303 -0
- package/packages/selector/src/runtime/tool-names.ts +42 -0
- package/packages/selector/src/runtime/toolclass.ts +103 -0
- package/packages/selector/src/runtime/triage/masks.ts +128 -0
- package/packages/selector/src/runtime/triage/shallow.ts +132 -0
- package/packages/selector/src/runtime/triage/signals.ts +167 -0
- package/packages/selector/src/runtime/triage/types.ts +125 -0
- package/packages/selector/src/runtime/types.ts +396 -0
- package/packages/selector/src/runtime/value.ts +48 -0
- package/packages/selector/src/settings-bridge.ts +175 -0
- package/packages/selector/src/tui-command.ts +99 -0
- package/packages/selector/tests/advisor-report.host.spec.ts +223 -0
- package/packages/selector/tests/auto-compact.client.spec.tsx +214 -0
- package/packages/selector/tests/built/client-artifact.spec.ts +56 -0
- package/packages/selector/tests/cache-prefix-audit.spec.ts +123 -0
- package/packages/selector/tests/code-skeleton.client.spec.ts +98 -0
- package/packages/selector/tests/compat/compat-narrow-waist.spec.ts +150 -0
- package/packages/selector/tests/custom-contract.client.spec.ts +226 -0
- package/packages/selector/tests/estimator-catalog.spec.ts +70 -0
- package/packages/selector/tests/estimator-channel.client.spec.tsx +253 -0
- package/packages/selector/tests/estimator-route-registration.host.spec.ts +202 -0
- package/packages/selector/tests/fab-pos.client.spec.ts +47 -0
- package/packages/selector/tests/fixtures/sediment-pool/52adc205-cloud-5.orig.txt +231 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-25.orig.txt +236 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-38.orig.txt +220 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-42.orig.txt +140 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-cloud-53.orig.txt +117 -0
- package/packages/selector/tests/fixtures/sediment-pool/95fcba5d-local-10.orig.txt +67 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-45.orig.txt +119 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-49.orig.txt +119 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-63.orig.txt +131 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-75.orig.txt +196 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-76.orig.txt +71 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-85.orig.txt +126 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-86.orig.txt +86 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-87.orig.txt +50 -0
- package/packages/selector/tests/fixtures/sediment-pool/a7a767c0-cloud-96.orig.txt +102 -0
- package/packages/selector/tests/helpers/legacy-namespace.ts +35 -0
- package/packages/selector/tests/helpers/legacy-settings/index.ts +15 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +41 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +647 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +78 -0
- package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +234 -0
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +204 -0
- package/packages/selector/tests/monitor-fab.client.spec.ts +240 -0
- package/packages/selector/tests/preset-options-write.client.spec.ts +192 -0
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +200 -0
- package/packages/selector/tests/preset-overlay.host.spec.ts +246 -0
- package/packages/selector/tests/profiles.client.spec.tsx +436 -0
- package/packages/selector/tests/ptc-custom-write.client.spec.ts +86 -0
- package/packages/selector/tests/public/package-contract.client.spec.ts +91 -0
- package/packages/selector/tests/runtime/adaptive-cost.spec.ts +167 -0
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +230 -0
- package/packages/selector/tests/runtime/advisor-invariant.spec.ts +272 -0
- package/packages/selector/tests/runtime/advisor.spec.ts +226 -0
- package/packages/selector/tests/runtime/audit.spec.ts +275 -0
- package/packages/selector/tests/runtime/auto-compact-config.spec.ts +523 -0
- package/packages/selector/tests/runtime/behavior-lock-profiles.spec.ts +128 -0
- package/packages/selector/tests/runtime/char-basis.spec.ts +30 -0
- package/packages/selector/tests/runtime/code-skeleton.spec.ts +152 -0
- package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +186 -0
- package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +122 -0
- package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +122 -0
- package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +96 -0
- package/packages/selector/tests/runtime/fallback-diversity.spec.ts +75 -0
- package/packages/selector/tests/runtime/fixtures/profile-baseline.json +273 -0
- package/packages/selector/tests/runtime/fixtures/session-v4-dump.jsonl +46 -0
- package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +106 -0
- package/packages/selector/tests/runtime/fixtures/vision-golden.json +459 -0
- package/packages/selector/tests/runtime/fold-router.spec.ts +140 -0
- package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +74 -0
- package/packages/selector/tests/runtime/fresh-gate.spec.ts +43 -0
- package/packages/selector/tests/runtime/html-reducer.spec.ts +212 -0
- package/packages/selector/tests/runtime/intent-gate.spec.ts +62 -0
- package/packages/selector/tests/runtime/intent-summary.spec.ts +156 -0
- package/packages/selector/tests/runtime/jsonl-reducer.spec.ts +79 -0
- package/packages/selector/tests/runtime/line-mapping.spec.ts +153 -0
- package/packages/selector/tests/runtime/monitor.spec.ts +354 -0
- package/packages/selector/tests/runtime/panel-command.spec.ts +101 -0
- package/packages/selector/tests/runtime/prose-reducers.spec.ts +133 -0
- package/packages/selector/tests/runtime/ptc-profile.spec.ts +133 -0
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2795 -0
- package/packages/selector/tests/runtime/read-input-cap.spec.ts +33 -0
- package/packages/selector/tests/runtime/savings-accounting.spec.ts +291 -0
- package/packages/selector/tests/runtime/savings-integral.spec.ts +169 -0
- package/packages/selector/tests/runtime/savings-projection.spec.ts +89 -0
- package/packages/selector/tests/runtime/savings-verify.spec.ts +226 -0
- package/packages/selector/tests/runtime/savings.spec.ts +139 -0
- package/packages/selector/tests/runtime/search-reducer.spec.ts +110 -0
- package/packages/selector/tests/runtime/sediment-card.spec.ts +111 -0
- package/packages/selector/tests/runtime/sediment-config.spec.ts +56 -0
- package/packages/selector/tests/runtime/sediment-guard.spec.ts +71 -0
- package/packages/selector/tests/runtime/sediment-masks.spec.ts +95 -0
- package/packages/selector/tests/runtime/sediment-orchestrator.spec.ts +166 -0
- package/packages/selector/tests/runtime/sediment-pool-share.spec.ts +65 -0
- package/packages/selector/tests/runtime/sediment-publish.spec.ts +142 -0
- package/packages/selector/tests/runtime/sediment-real-shapes.spec.ts +158 -0
- package/packages/selector/tests/runtime/sediment-settings.spec.ts +73 -0
- package/packages/selector/tests/runtime/sediment-signals.spec.ts +124 -0
- package/packages/selector/tests/runtime/sediment-span.spec.ts +92 -0
- package/packages/selector/tests/runtime/session-events.spec.ts +27 -0
- package/packages/selector/tests/runtime/session-file-decode.spec.ts +281 -0
- package/packages/selector/tests/runtime/settings-unwrap.spec.ts +58 -0
- package/packages/selector/tests/runtime/shallow-primitives.spec.ts +135 -0
- package/packages/selector/tests/runtime/sidechannel.spec.ts +241 -0
- package/packages/selector/tests/runtime/source-kind-audit.spec.ts +79 -0
- package/packages/selector/tests/runtime/stats-backfill-scheduler.spec.ts +167 -0
- package/packages/selector/tests/runtime/stats-backfill.spec.ts +350 -0
- package/packages/selector/tests/runtime/stats-db.spec.ts +361 -0
- package/packages/selector/tests/runtime/stats-privacy.spec.ts +55 -0
- package/packages/selector/tests/runtime/stats-sync.spec.ts +278 -0
- package/packages/selector/tests/runtime/summary-command.spec.ts +154 -0
- package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +159 -0
- package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +53 -0
- package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +217 -0
- package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +52 -0
- package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +79 -0
- package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +76 -0
- package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +121 -0
- package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +82 -0
- package/packages/selector/tests/runtime/toolclass.spec.ts +156 -0
- package/packages/selector/tests/runtime/value.spec.ts +23 -0
- package/packages/selector/tests/savings-sessions.client.spec.tsx +140 -0
- package/packages/selector/tests/settings-seat.client.spec.ts +215 -0
- package/packages/selector/tests/standing-generation.host.spec.ts +729 -0
- package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +269 -0
- package/packages/selector/tests/support/cache-prefix-audit.ts +105 -0
- package/packages/selector/tests/support/mock-adapter.ts +37 -0
- package/packages/selector/tests/support/ui-primitives.tsx +34 -0
- package/packages/selector/tsconfig.json +11 -0
- package/packages/selector/tsdown.client.config.ts +102 -0
- package/packages/selector/tsdown.config.ts +20 -0
- package/pnpm-workspace.yaml +76 -0
- package/screenshots.json +6 -3
- package/scripts/capture-profile-baseline.mjs +42 -0
- package/scripts/cell-browser-e2e.mjs +354 -0
- package/scripts/generate-tokenizer-fixtures.py +81 -0
- package/scripts/generate-vision-fixtures.py +208 -0
- package/scripts/hosts.d.mts +3 -0
- package/scripts/hosts.mjs +81 -0
- package/scripts/packed-components-smoke.mjs +763 -0
- package/scripts/packed-install-e2e.mjs +1346 -0
- package/scripts/sediment-latency-report.mjs +63 -0
- package/scripts/sync-hosts.mjs +176 -0
- package/scripts/toolclass-corpus-replay.mjs +281 -0
- package/scripts/verify-release.mjs +342 -0
- package/tests/TEST_INVENTORY.md +41 -0
- package/tsconfig.base.json +18 -0
- package/tsconfig.json +7 -0
- package/tsconfig.tests.json +15 -0
- package/vitest.built.config.ts +9 -0
- package/vitest.config.ts +54 -0
- /package/{assets → packages/selector/assets}/deepseek-v4/LICENSE.DeepSeek-V4-Pro.txt +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4/manifest.json +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4/tokenizer.json +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4/tokenizer_config.json +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4-vision-exp/LICENSE.DeepSeek-V4-Flash-Vision-Exp.txt +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4-vision-exp/manifest.json +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4-vision-exp/tokenizer.json +0 -0
- /package/{assets → packages/selector/assets}/deepseek-v4-vision-exp/tokenizer_config.json +0 -0
- /package/{cordis.patch.yml → packages/selector/cordis.patch.yml} +0 -0
- /package/{lib → packages/selector/lib}/client.d.ts +0 -0
- /package/{lib → packages/selector/lib}/index.d.ts +0 -0
- /package/{lib → packages/selector/lib}/index.js +0 -0
- /package/{lib → packages/selector/lib}/invariant.d.ts +0 -0
- /package/{lib → packages/selector/lib}/invariant.js +0 -0
- /package/{lib → packages/selector/lib}/profiles.d.ts +0 -0
- /package/{lib → packages/selector/lib}/pruner.d.ts +0 -0
- /package/{lib → packages/selector/lib}/pruner.js +0 -0
- /package/{lib → packages/selector/lib}/savings-integral.js +0 -0
- /package/{lib → packages/selector/lib}/tail-trim.js +0 -0
- /package/{lib → packages/selector/lib}/tool-result.js +0 -0
- /package/{locale → packages/selector/locale}/de.json +0 -0
- /package/{locale → packages/selector/locale}/en.json +0 -0
- /package/{locale → packages/selector/locale}/es.json +0 -0
- /package/{locale → packages/selector/locale}/fr.json +0 -0
- /package/{locale → packages/selector/locale}/it.json +0 -0
- /package/{locale → packages/selector/locale}/ja.json +0 -0
- /package/{locale → packages/selector/locale}/ko.json +0 -0
- /package/{locale → packages/selector/locale}/pt.json +0 -0
- /package/{locale → packages/selector/locale}/ru.json +0 -0
- /package/{locale → packages/selector/locale}/zh.json +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[assistant] [tool-call pwsh "{\"command\":\"& \\\"C:\\\\Users\\\\joshua\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python313\\\\python.exe\\\" -c ]
|
|
2
|
+
===
|
|
3
|
+
[tool] dsh-prime-memory |npm=dsh-prime-memory |dl=28502
|
|
4
|
+
dsh-thinking-levels |npm=dsh-thinking-levels |dl=27215
|
|
5
|
+
dsh-browser-cdp |npm=dsh-browser-cdp |dl=26627
|
|
6
|
+
dsh-context-compression-improved |npm=dsh-context-compression-improved |dl=16563
|
|
7
|
+
dsh-perm-gate |npm=dsh-perm-gate |dl=15259
|
|
8
|
+
dsh-input-traffic |npm=dsh-input-traffic |dl=11322
|
|
9
|
+
dsh-session-guard |npm=dsh-session-guard |dl=11064
|
|
10
|
+
dsh-mcp-registry |npm=dsh-mcp-registry |dl=10901
|
|
11
|
+
dsh-search-index |npm=dsh-search-index |dl=10748
|
|
12
|
+
dsh-patch-edit-plus |npm=dsh-patch-edit-plus |dl=8776
|
|
13
|
+
dsh-brief-sidebar |npm=dsh-brief-sidebar |dl=8636
|
|
14
|
+
dsh-tidy-display |npm=dsh-tidy-display |dl=8361
|
|
15
|
+
dsh-bash-terminal-ts |npm=dsh-bash-terminal-ts |dl=7371
|
|
16
|
+
dsh-arrowkey-nav |npm=dsh-arrowkey-nav |dl=5993
|
|
17
|
+
dsh-canvas-tsx-sidebar |npm=dsh-canvas-tsx-sidebar |dl=5483
|
|
18
|
+
dsh-date-wrapper |npm=dsh-date-wrapper |dl=4728
|
|
19
|
+
dsh-paste-dock |npm=dsh-paste-dock |dl=3318
|
|
20
|
+
dsh-preset-doctor |npm=dsh-preset-doctor |dl=2511
|
|
21
|
+
dsh-llm-openai-completions |npm=dsh-llm-openai-completions |dl=2392
|
|
22
|
+
dsh-opensheet-sidebar |npm=dsh-opensheet-sidebar |dl=2078
|
|
23
|
+
dsh-reference-session-collector |npm=dsh-reference-session-collector |dl=2029
|
|
24
|
+
dsh-pptx-sidebar |npm=dsh-pptx-sidebar |dl=1929
|
|
25
|
+
dsh-docx-sidebar |npm=dsh-docx-sidebar |dl=1905
|
|
26
|
+
dsh-union-search |npm=dsh-union-search |dl=1862
|
|
27
|
+
dsh-im-union |npm=dsh-im-union |dl=1616
|
|
28
|
+
dsh-media-lens |npm=dsh-media-lens |dl=1536
|
|
29
|
+
dsh-sidebar-fold |npm=dsh-sidebar-fold |dl=870
|
|
30
|
+
dsh-manage-session |npm=dsh-manage-session |dl=427
|
|
31
|
+
|
|
32
|
+
===
|
|
33
|
+
[assistant] [tool-call validate_dsh_ui "{\"spec\":\"{\\\"title\\\":\\\"你的投稿登记总表(awesome-dsh-plugin 28 条 yml ↔ 目录 28 行,1:1 对上)\\\",\\\"gap\\\":10,\\\"items\\\":]
|
|
34
|
+
===
|
|
35
|
+
[tool] [genui-validation]
|
|
36
|
+
status=valid
|
|
37
|
+
rendered=2
|
|
38
|
+
next=emit_fence
|
|
39
|
+
reply_language=conversation
|
|
40
|
+
===
|
|
41
|
+
[assistant] 对——**投稿登记 28 条 yml,目录 28 行,1:1 全对上**(表外仅 steward 一条历史投稿已被改名提交删除)。逐条:
|
|
42
|
+
|
|
43
|
+
```dsh-ui
|
|
44
|
+
{"title":"你的投稿登记总表(awesome-dsh-plugin 28 条 yml ↔ 目录 28 行,1:1 对上)","gap":10,"items":[{"type":"table","columns":["#","登记条目 (yml)","目录行 npm 跟踪","下载","分类"],"rows":[["1","dsh-prime-memory","dsh-prime-memory","28,502","memory"],["2","dsh-thinking-levels","dsh-thinking-levels","27,215","reasoning"],["3","dsh-browser-cdp","dsh-browser-cdp","26,627","browser"],["4","dsh-context-compression-improved","同名","16,563","context"],["5","dsh-perm-gate","dsh-perm-gate","15,259","security"],["6","dsh-input-traffic","dsh-input-traffic","11,322","input"],["7","dsh-session-guard","dsh-session-guard","11,064","session"],["8","dsh-mcp-registry","dsh-mcp-registry","10,901","mcp"],["9","dsh-search-index","dsh-search-index","10,748","search"],["10","dsh-patch-edit-plus","同名","8,776","edit"],["11","dsh-brief-sidebar","dsh-brief-sidebar","8,636","office"],["12","dsh-tidy-display","dsh-tidy-display","8,361","display"],["13","dsh-bash-terminal-ts","同名","7,371","terminal"],["14","dsh-arrowkey-nav","dsh-arrowkey-nav","5,993","input"],["15","dsh-canvas-tsx-sidebar","同名","5,483","display"],["16","dsh-date-wrapper","dsh-date-wrapper","4,728","utility"],["17","dsh-paste-dock","dsh-paste-dock","3,318","input"],["18","dsh-preset-doctor","dsh-preset-doctor","2,511","config"],["19","dsh-llm-openai-completions","同名","2,392","provider"],["20","dsh-opensheet-sidebar","同名","2,078","office"],["21","dsh-reference-session-collector","同名","2,029","session"],["22","dsh-pptx-sidebar","dsh-pptx-sidebar","1,929","office"],["23","dsh-docx-sidebar","dsh-docx-sidebar","1,905","office"],["24","dsh-union-search","dsh-union-search (bare)","1,862","browser"],["25","dsh-im-union","dsh-im-union","1,616","integration"],["26","dsh-media-lens","dsh-media-lens","1,536","media"],["27","dsh-sidebar-fold","dsh-sidebar-fold","870","display"],["28","dsh-manage-session","dsh-manage-session(新包,从零起量)","427","session"]]},{"type":"callout","tone":"warning","title":"表外那条:dsh-session-steward","content":"投稿仓历史里有(#5191,2026-09-18 合入),10-26 改名提交 9662928b 把这条 yml 删除、换成 manage-session。目录已无行跟踪 npm 老包 dsh-session-steward,其窗口真实量 9,541 目前无主——你名义 230,022,认领回则 239,563。union-search 的 scoped 名 @drscrewdriver/dsh-union-search 只在 yml 描述里双名声明,目录不跟。"}]}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
两个表外要点:
|
|
48
|
+
|
|
49
|
+
- **登记完整**:`data/plugins/drscrewdriver__*.yml` 实数 28 条,与目录 28 行严丝合缝——你的"投稿了项目"在登记面上无缺口,昨天说的"steward 被剔"不是丢投稿,是**改名把那条 yml 合法替换**(同一 sha 里 added manage-session.yml + removed steward.yml,提交信息明写 Rename entry)。
|
|
50
|
+
- **唯一悬空**是 steward 老包 9,541 的归属:目录不跟踪无条目之包。要不要认领回(补投独立 yml),等你定 steward/manage-session 的产品终态。
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
[assistant] [tool-call pwsh "{\"command\":\"& \\\"C:\\\\Users\\\\joshua\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python313\\\\python.exe\\\" \\\]
|
|
2
|
+
===
|
|
3
|
+
[tool]
|
|
4
|
+
CN now : 2026-10-29 14:07:33
|
|
5
|
+
latest : 2026.1029.12068 -> 2026-10-29T04:31:21.568Z
|
|
6
|
+
latest : 2026.1029.12068 -> 2026-10-29T04:31:21.568Z
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
===
|
|
10
|
+
[assistant] 今天版 `2026.1029.12068` 北京 12:31 已落地。拉取 + 结算探针 + diff:
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
[tool-call pwsh "{\"command\":\"& \\\"C:\\\\Users\\\\joshua\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python313\\\\python.exe\\\" \\\]
|
|
14
|
+
===
|
|
15
|
+
[tool] version: 2026.1029.12068 | plugins: 7557 | window 2026-09-29~2026-10-28 | saved E:\test\rewrite-agently\.agents\skills\dsh-registry-track\snapshot\snapshot-npm-2026.1029.12068.json
|
|
16
|
+
react: [('2026-10-25', 22450923), ('2026-10-26', 39668639), ('2026-10-27', 39653909), ('2026-10-28', 0), ('2026-10-29', 0)]
|
|
17
|
+
steward old-pkg true sum 09-29~10-28 = 9694
|
|
18
|
+
window: 2026-09-29 ~ 2026-10-28
|
|
19
|
+
plugins 7406 -> 7557 (+151)
|
|
20
|
+
sum 13347285 -> 13963474 (+616189, 4.62%)
|
|
21
|
+
|
|
22
|
+
TOP 20
|
|
23
|
+
#1 ranxianglei pkgs=1 dl= 2179313 d= +78016 rank=+0
|
|
24
|
+
#2 zhu1090093659 pkgs=8 dl= 799697 d= +9924 rank=+0
|
|
25
|
+
#3 dsh-market pkgs=1 dl= 726352 d= +36732 rank=+0
|
|
26
|
+
#4 MichengAI pkgs=11 dl= 583206 d= +11834 rank=+0
|
|
27
|
+
#5 omdsh-dev pkgs=41 dl= 349678 d= +11980 rank=+0
|
|
28
|
+
#6 MeteorNOX pkgs=1 dl= 291932 d= +25716 rank=+0
|
|
29
|
+
#7 drscrewdriver pkgs=28 dl= 239973 d= +9951 rank=+0 <== ME
|
|
30
|
+
#8 PC2005-cloud pkgs=1 dl= 219155 d= +35508 rank=+2
|
|
31
|
+
#9 bowenliang123 pkgs=1 dl= 213855 d= +20326 rank=+0
|
|
32
|
+
#10 PerryLink pkgs=67 dl= 202590 d= +3345 rank=-2 <== Perry
|
|
33
|
+
#11 liustack pkgs=2 dl= 180386 d= +19732 rank=+0
|
|
34
|
+
#12 GooDAnDReaDY pkgs=29 dl= 145017 d= -5340 rank=+0
|
|
35
|
+
#13 Han-1413141 pkgs=10 dl= 119760 d= +1267 rank=+0
|
|
36
|
+
#14 STARDUSTLC666 pkgs=21 dl= 108971 d= +12910 rank=+0
|
|
37
|
+
#15 elysia395 pkgs=1 dl= 94514 d= +6236 rank=+0
|
|
38
|
+
#16 kenryu42 pkgs=1 dl= 78448 d= +7210 rank=+0
|
|
39
|
+
#17 xmanrui pkgs=3 dl= 75735 d= +5093 rank=+0
|
|
40
|
+
#18 T-Auto pkgs=1 dl= 73899 d= +9473 rank=+3
|
|
41
|
+
#19 Small-tailqwq pkgs=2 dl= 70847 d= +5202 rank=+1
|
|
42
|
+
#20 dingminhua pkgs=5 dl= 70566 d= +4211 rank=-2
|
|
43
|
+
drscrewdriver #7->#7 230022 -> 239973 (+9951)
|
|
44
|
+
bowenliang123 #9->#9 193529 -> 213855 (+20326)
|
|
45
|
+
liustack #11->#11 160654 -> 180386 (+19732)
|
|
46
|
+
PerryLink #8->#10 199245 -> 202590 (+3345)
|
|
47
|
+
GooDAnDReaDY #12->#12 150357 -> 145017 (-5340)
|
|
48
|
+
ranxianglei #1->#1 2101297 -> 2179313 (+78016)
|
|
49
|
+
MichengAI #4->#4 571372 -> 583206 (+11834)
|
|
50
|
+
MeteorNOX #6->#6 266216 -> 291932 (+25716)
|
|
51
|
+
|
|
52
|
+
shared=7400 up=2784 down=989 flat=3627
|
|
53
|
+
new=157 (sum=44564) gone=6
|
|
54
|
+
|
|
55
|
+
drscrewdriver per-pkg:
|
|
56
|
+
dsh-arrowkey-nav 5993 -> 6191 +198
|
|
57
|
+
dsh-brief-sidebar 8636 -> 8915 +279
|
|
58
|
+
dsh-canvas-tsx-sidebar 5483 -> 5672 +189
|
|
59
|
+
dsh-input-traffic 11322 -> 11652 +330
|
|
60
|
+
dsh-paste-dock 3318 -> 3442 +124
|
|
61
|
+
dsh-sidebar-fold 870 -> 966 +96
|
|
62
|
+
|
|
63
|
+
===
|
|
64
|
+
[assistant] [tool-call pwsh "{\"command\":\"Get-Content \\\"E:\\\\test\\\\rewrite-agently\\\\.agents\\\\skills\\\\dsh-registry-track\\\\_diff29_out.]
|
|
65
|
+
===
|
|
66
|
+
[tool]
|
|
67
|
+
> dsh-manage-session 427 -> 1495 +1068
|
|
68
|
+
dsh-reference-session-collector 2029 -> 2415 +386
|
|
69
|
+
> dsh-union-search 1862 -> 2017 +155
|
|
70
|
+
dsh-media-lens 1536 -> 1691 +155
|
|
71
|
+
> dsh-im-union 1616 -> 1920 +304
|
|
72
|
+
> sum delta: 9951
|
|
73
|
+
|
|
74
|
+
> EFF:
|
|
75
|
+
> >= 3 pkgs: pool=259 ME #13 avg=8570
|
|
76
|
+
> >= 5 pkgs: pool=90 ME #7 avg=8570
|
|
77
|
+
> >=10 pkgs: pool=21 ME #3 avg=8570
|
|
78
|
+
> CALIBER B: pool=2497 ME #32 best=29500 dsh-prime-memory
|
|
79
|
+
====catalog steward check====
|
|
80
|
+
pkgs= 28 sum= 239973
|
|
81
|
+
dsh-manage-session npm= dsh-manage-session dl= 1495
|
|
82
|
+
dsh-reference-session-collector npm= dsh-reference-session-collector dl= 2415
|
|
83
|
+
dsh-session-guard npm= dsh-session-guard dl= 11337
|
|
84
|
+
dsh-union-search npm= dsh-union-search dl= 2017
|
|
85
|
+
dsh-im-union npm= dsh-im-union dl= 1920
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
===
|
|
89
|
+
[assistant] **今日版** `2026.1029.12068`(北京 12:31,窗口 09-29~10-28)。连续第三个回补日:10-27 结算 39.7M 入袋,生态 **+4.62%**;仅 10-28 一个空日在右缘,挤出轻微。
|
|
90
|
+
|
|
91
|
+
```dsh-ui
|
|
92
|
+
{"title":"Top10(10-29 版 · 剔 ran 口径你看 #7 稳)","gap":10,"items":[{"type":"table","columns":["#","owner","pkgs","今日","Δ","备注"],"rows":[["1","ranxianglei [刷量]","1","2,179,313","+78,016",""],["2","zhu1090093659","8","799,697","+9,924",""],["3","dsh-market","1","726,352","+36,732",""],["4","MichengAI","11","583,206","+11,834","反弹持续"],["5","omdsh-dev","41","349,678","+11,980",""],["6","MeteorNOX","1","291,932","+25,716",""],["7","drscrewdriver ←你","28","239,973","+9,951","含 manage-session 1,495"],["8","PC2005-cloud","1","219,155","+35,508","↑2 逼近"],["9","bowenliang123","1","213,855","+20,326",""],["10","PerryLink","67","202,590","+3,345","↓2 跌出前9"]]}]}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- **对 PerryLink 名义领先扩到 +37,383**,且他自己掉到 #10——薄均匀盘在回补日只弹 +3,345(昨天预测兑现)。反超 #7 的威胁换人:**PC2005-cloud 两期弹 +63,671(83k→219k),距你 20,818**;bowen +20,326 距你 26,118。俩单包号回补弹性大,若明天 10-28 结算值高(前日 39.7M 量级)它们还会再弹。
|
|
96
|
+
- **修正口径**:steward 老包仍无条目跟踪(真实窗口 09-29~10-28 = **9,694**),修正后你 = **249,667**,对 PC2005 缓冲 30,512。
|
|
97
|
+
- **manage-session 开始接量**:427 → **1,495(+1,068,3.5x)**——改名后的新包爬坡启动,老包流量迁移初现。若这个斜率是真实迁移,steward 的 9.5k 会在 30 天窗口内自然转进新行,补投 yml 的紧迫性下降。
|
|
98
|
+
- **GooDAnDReaDY 连续三期负增长**(-388 → -5,340),Top12 唯一失血——纯日销盘无脉冲可回补,正被 liustack(+19,732) 拉开。
|
|
99
|
+
- 效率:avg **8,570**,≥10包池 **#3**、≥5包 #7、≥3包 #13;口径 B **prime-memory 29,500** 守单包王,榜位 **#32**(池 2,497)。
|
|
100
|
+
- 盘面:插件 7,406→**7,557**(+151),up=2,784 / down=989。
|
|
101
|
+
|
|
102
|
+
一句话:#7 坐稳且名义领先走阔,但防守对象从 PerryLink 换成 PC2005-cloud;manage-session 爬坡若持续,steward 漏计会自愈,先别补投——建议明天看斜率再定。
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test-host helper: registers the legacy `context-compression` settings
|
|
3
|
+
* namespace on a 0.1.5-shaped test settings service, so specs can drive the
|
|
4
|
+
* plugin through `settings.update(...)` exactly as they did before the 0.1.7
|
|
5
|
+
* declarative migration. Production code reads the volatile entry field first
|
|
6
|
+
* and falls back to this namespace; on a real 0.1.7 host neither the
|
|
7
|
+
* registration nor this helper exists.
|
|
8
|
+
*/
|
|
9
|
+
import type { Context } from '@deepseek-ai/cordis'
|
|
10
|
+
import {
|
|
11
|
+
CONTEXT_COMPRESSION_SETTINGS_NAMESPACE,
|
|
12
|
+
ContextCompressionSettingsSchema,
|
|
13
|
+
} from '../../src/runtime/config.ts'
|
|
14
|
+
|
|
15
|
+
export const LegacyNamespaceRegistrar = {
|
|
16
|
+
name: 'context-compression:test/legacy-namespace-registrar',
|
|
17
|
+
async apply(ctx: Context): Promise<void> {
|
|
18
|
+
await new Promise<void>((resolve) => {
|
|
19
|
+
ctx.inject(['settings'], (s) => {
|
|
20
|
+
try {
|
|
21
|
+
// The test host mounts a vendored 0.1.5-shaped provider whose
|
|
22
|
+
// static type is the 0.1.7 Context augmentation (`SettingsForms`);
|
|
23
|
+
// narrow to the legacy registry surface at the seam.
|
|
24
|
+
;(s.settings as unknown as {
|
|
25
|
+
register(ns: never, schema: unknown): unknown
|
|
26
|
+
}).register(
|
|
27
|
+
CONTEXT_COMPRESSION_SETTINGS_NAMESPACE as never,
|
|
28
|
+
ContextCompressionSettingsSchema,
|
|
29
|
+
)
|
|
30
|
+
} catch { /* already registered by an earlier row */ }
|
|
31
|
+
resolve()
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Legacy test-host settings seam.
|
|
3
|
+
*
|
|
4
|
+
* Vendored verbatim from `@deepseek-ai/dsh-settings@0.1.5-rc.2`
|
|
5
|
+
* (`lib/types/index.js` + `lib/types/redact.js`, with the
|
|
6
|
+
* `@deepseek-ai/dsh-util-values@0.1.5-rc.2` helpers inlined as
|
|
7
|
+
* `./legacy/util-values.js`): the 0.1.7 host replaced the
|
|
8
|
+
* namespace-registry provider with declarative `SettingsForms`, while the
|
|
9
|
+
* plugin keeps the legacy `ctx.settings.get(ns)` read as a host-shape
|
|
10
|
+
* fallback (see src/index.ts). The host specs mount a provider subclassing
|
|
11
|
+
* this base to exercise exactly that fallback against the real 0.1.7
|
|
12
|
+
* baseline. Type declarations: `./legacy/provider.d.ts`.
|
|
13
|
+
*/
|
|
14
|
+
export { SettingsProvider as LegacySettingsProvider } from './legacy/provider.js'
|
|
15
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Narrow type surface for the vendored 0.1.5 `SettingsProvider` (legacy test-host seam).
|
|
3
|
+
*
|
|
4
|
+
* The 0.1.7 `@deepseek-ai/dsh-settings` host replaced the namespace-registry
|
|
5
|
+
* provider with the declarative `SettingsForms` projector, but the plugin
|
|
6
|
+
* deliberately keeps the legacy `ctx.settings.get(ns)` read as a fallback
|
|
7
|
+
* "so a host that still serves the old service shape keeps working (test
|
|
8
|
+
* hosts do exactly that)" (src/index.ts). The host specs drive that fallback
|
|
9
|
+
* through this vendored base class — the verbatim 0.1.5-rc.2 implementation,
|
|
10
|
+
* not a behavioral re-implementation.
|
|
11
|
+
*
|
|
12
|
+
* Only the members the specs and the production fallback actually touch are
|
|
13
|
+
* declared; the full 0.1.5 surface exists at runtime in provider.js.
|
|
14
|
+
*/
|
|
15
|
+
import { Service } from '@deepseek-ai/cordis'
|
|
16
|
+
|
|
17
|
+
export declare abstract class SettingsProvider extends Service {
|
|
18
|
+
/** Register as the `settings` service of `ctx` (implementation: `super(ctx, 'settings')`). */
|
|
19
|
+
constructor(ctx: Context)
|
|
20
|
+
/** Whether {@linkcode LegacySettingsProvider.update} may persist through this provider. */
|
|
21
|
+
abstract readonly writable: boolean
|
|
22
|
+
/** Load the provider's raw document (namespace → raw section) once at init. */
|
|
23
|
+
protected abstract load(): Promise<Record<string, unknown>>
|
|
24
|
+
/** Durably store one namespace's merged user section. */
|
|
25
|
+
protected abstract persist(ns: string, section: Record<string, unknown>): Promise<void>
|
|
26
|
+
/** Register a namespace schema; duplicate registration fails loud. */
|
|
27
|
+
register(ns: string, schema: unknown, options?: unknown): unknown
|
|
28
|
+
/** Read one registered namespace's resolved value (undefined while unregistered). */
|
|
29
|
+
get(ns: string): unknown
|
|
30
|
+
/** Merge a patch into one registered namespace's user layer, validate, persist. */
|
|
31
|
+
update(ns: string, patch: object, expectedRevision?: number): Promise<void>
|
|
32
|
+
/** Replace one registered namespace's user section wholesale, validate, persist. */
|
|
33
|
+
replace(ns: string, section: object, expectedRevision?: number): Promise<void>
|
|
34
|
+
/** Apply path-addressed edits to one registered namespace's user section. */
|
|
35
|
+
mutate(ns: string, ops: readonly unknown[], expectedRevision?: number): Promise<void>
|
|
36
|
+
/** Describe every registered namespace for configuration surfaces. */
|
|
37
|
+
describe(options?: { redactSecrets?: boolean }): unknown[]
|
|
38
|
+
/** Non-file providers expose no open-document affordance. */
|
|
39
|
+
get documentPath(): string | undefined
|
|
40
|
+
prepareDocument(): Promise<string | undefined>
|
|
41
|
+
}
|