dsh-context-compression-improved 0.2.1 → 0.2.3

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.
@@ -1,38 +1,38 @@
1
- import z from "@deepseek-ai/schemastery";
2
- import { Context } from "@deepseek-ai/cordis";
3
- //#region src/index.d.ts
4
- /** Standalone Bundle behavior; the settings/UI owner remains safe when false. */
5
- interface Config {
6
- /** Add the canonical compression stack to every non-Minimal preset. */
7
- presetOverlay?: boolean;
8
- /**
9
- * Own the estimator catalog HTTP route. Set on the Loader row that declares
10
- * `inject: [webServer]`.
11
- *
12
- * **Measured, and it contradicts the note this field was introduced with.**
13
- * The original justification — "registering a route authorizes against the
14
- * calling fiber, and a fiber that has not declared `webServer` cannot reach
15
- * it, not even through `ctx.inject` or `ctx.get`" — is wrong on both halves:
16
- * the host's `register` performs no authorization at all (it reads
17
- * `this.exact` / `this.prefixes` and throws only on a duplicate
18
- * `(kind, path)`), and `ctx.get(name, strict)` checks only that the providing
19
- * fiber is active (`state === 2`), never the caller's `inject` list. The one
20
- * inject-gated path is the `ctx.webServer` **property** access, which this
21
- * plugin never uses: `registerEstimatorCatalogRoute` uses `ctx.get` plus its
22
- * own `ctx.inject(['webServer'], …)`.
23
- *
24
- * So the row-level `inject` is **not load-bearing**; it is kept as
25
- * belt-and-braces so the route row stays inactive until `webServer` exists,
26
- * and the flag keeps the route off standalone Bundle rows on profiles that
27
- * have no web server. The internal two-channel registration is what actually
28
- * covers both arrival orders. Do not cite this comment as a rule to the
29
- * 0.1.5 replay — cite the host source.
30
- */
31
- estimatorCatalogRoute?: boolean;
32
- }
33
- /** Loader validation for the standalone Bundle opt-in. */
34
- declare const Config: z<Config>;
35
- /** Register the persisted default read by the currently mounted root pruner. */
36
- declare function apply(ctx: Context, config?: Config): void;
37
- //#endregion
1
+ import z from "@deepseek-ai/schemastery";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+ //#region src/index.d.ts
4
+ /** Standalone Bundle behavior; the settings/UI owner remains safe when false. */
5
+ interface Config {
6
+ /** Add the canonical compression stack to every non-Minimal preset. */
7
+ presetOverlay?: boolean;
8
+ /**
9
+ * Own the estimator catalog HTTP route. Set on the Loader row that declares
10
+ * `inject: [webServer]`.
11
+ *
12
+ * **Measured, and it contradicts the note this field was introduced with.**
13
+ * The original justification — "registering a route authorizes against the
14
+ * calling fiber, and a fiber that has not declared `webServer` cannot reach
15
+ * it, not even through `ctx.inject` or `ctx.get`" — is wrong on both halves:
16
+ * the host's `register` performs no authorization at all (it reads
17
+ * `this.exact` / `this.prefixes` and throws only on a duplicate
18
+ * `(kind, path)`), and `ctx.get(name, strict)` checks only that the providing
19
+ * fiber is active (`state === 2`), never the caller's `inject` list. The one
20
+ * inject-gated path is the `ctx.webServer` **property** access, which this
21
+ * plugin never uses: `registerEstimatorCatalogRoute` uses `ctx.get` plus its
22
+ * own `ctx.inject(['webServer'], …)`.
23
+ *
24
+ * So the row-level `inject` is **not load-bearing**; it is kept as
25
+ * belt-and-braces so the route row stays inactive until `webServer` exists,
26
+ * and the flag keeps the route off standalone Bundle rows on profiles that
27
+ * have no web server. The internal two-channel registration is what actually
28
+ * covers both arrival orders. Do not cite this comment as a rule to the
29
+ * 0.1.5 replay — cite the host source.
30
+ */
31
+ estimatorCatalogRoute?: boolean;
32
+ }
33
+ /** Loader validation for the standalone Bundle opt-in. */
34
+ declare const Config: z<Config>;
35
+ /** Register the persisted default read by the currently mounted root pruner. */
36
+ declare function apply(ctx: Context, config?: Config): void;
37
+ //#endregion
38
38
  export { Config, apply };