dsh-context-compression-improved 0.7.0-beta.1 → 0.8.0-beta.1

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.
Files changed (65) hide show
  1. package/CHANGELOG.ja.md +226 -220
  2. package/CHANGELOG.ko.md +220 -214
  3. package/CHANGELOG.md +366 -376
  4. package/CHANGELOG.zh.md +204 -199
  5. package/README.ja.md +85 -85
  6. package/README.ko.md +85 -85
  7. package/README.md +98 -97
  8. package/README.zh.md +85 -86
  9. package/eslint.config.js +30 -76
  10. package/package.json +53 -55
  11. package/packages/selector/dsh.plugin.json +2 -2
  12. package/packages/selector/lib/{intent-gate.js → advisor-state.js} +3 -91
  13. package/packages/selector/lib/client.js +3 -14
  14. package/packages/selector/lib/index.js +1 -92
  15. package/packages/selector/lib/profiles.d.ts +0 -9
  16. package/packages/selector/lib/pruner.d.ts +0 -59
  17. package/packages/selector/lib/pruner.js +7 -410
  18. package/packages/selector/lib/style.css +46 -46
  19. package/packages/selector/package.json +114 -114
  20. package/packages/selector/src/client/decode.ts +2 -6
  21. package/packages/selector/src/deepseek-v4-tokenizer.ts +1 -1
  22. package/packages/selector/src/index.ts +411 -418
  23. package/packages/selector/src/preset-overlay.ts +0 -3
  24. package/packages/selector/src/profiles.ts +10 -30
  25. package/packages/selector/src/pruner/content.ts +1 -1
  26. package/packages/selector/src/pruner/state.ts +0 -7
  27. package/packages/selector/src/pruner.ts +9 -253
  28. package/packages/selector/src/runtime/audit.ts +0 -17
  29. package/packages/selector/src/runtime/config.ts +11 -36
  30. package/packages/selector/src/runtime/reducers.ts +1 -1
  31. package/packages/selector/src/runtime/tokenpilot/advisor-prompt.ts +1 -46
  32. package/packages/selector/src/runtime/tokenpilot/advisor-state.ts +0 -55
  33. package/packages/selector/src/runtime/tokenpilot/locator.ts +2 -2
  34. package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +1 -4
  35. package/packages/selector/src/runtime/types.ts +0 -12
  36. package/packages/selector/tests/auto-compact.client.spec.tsx +213 -214
  37. package/packages/selector/tests/built/client-artifact.spec.ts +59 -61
  38. package/packages/selector/tests/code-skeleton.client.spec.ts +93 -94
  39. package/packages/selector/tests/custom-contract.client.spec.ts +222 -223
  40. package/packages/selector/tests/estimator-channel.client.spec.tsx +252 -252
  41. package/packages/selector/tests/host-preset-overlay.host.spec.ts +204 -204
  42. package/packages/selector/tests/preset-options-write.client.spec.ts +187 -188
  43. package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +200 -200
  44. package/packages/selector/tests/profiles.client.spec.tsx +434 -436
  45. package/packages/selector/tests/public/package-contract.client.spec.ts +78 -78
  46. package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +230 -230
  47. package/packages/selector/tests/runtime/audit.spec.ts +274 -275
  48. package/packages/selector/tests/runtime/auto-compact-config.spec.ts +3 -3
  49. package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +4 -4
  50. package/packages/selector/tests/runtime/public/public-runtime.spec.ts +2731 -2736
  51. package/packages/selector/tests/standing-generation.host.spec.ts +724 -704
  52. package/pnpm-workspace.yaml +66 -66
  53. package/scripts/packed-components-smoke.mjs +0 -2
  54. package/scripts/packed-install-e2e.mjs +5 -7
  55. package/scripts/verify-release.mjs +2 -3
  56. package/tsconfig.tests.json +1 -3
  57. package/vitest.config.ts +0 -14
  58. package/packages/selector/src/runtime/summary-command.ts +0 -133
  59. package/packages/selector/src/runtime/tokenpilot/intent-fold.ts +0 -53
  60. package/packages/selector/src/runtime/tokenpilot/intent-gate.ts +0 -65
  61. package/packages/selector/src/runtime/tokenpilot/intent-input-mask.ts +0 -125
  62. package/packages/selector/src/runtime/tokenpilot/intent-range.ts +0 -37
  63. package/packages/selector/tests/runtime/intent-gate.spec.ts +0 -62
  64. package/packages/selector/tests/runtime/intent-summary.spec.ts +0 -156
  65. package/packages/selector/tests/runtime/summary-command.spec.ts +0 -154
@@ -1,200 +1,200 @@
1
- import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'
2
- import { tmpdir } from 'node:os'
3
- import { join } from 'node:path'
4
- import { pathToFileURL } from 'node:url'
5
- import { Context } from '@deepseek-ai/cordis'
6
- import Group from '@deepseek-ai/cordis-plugin-group'
7
- import Include from '@deepseek-ai/cordis-plugin-include'
8
- import { Config } from '../src/index.ts'
9
- import Loader from '@deepseek-ai/cordis-plugin-loader'
10
- import AgentRegistry, { type Agent } from '@deepseek-ai/dsh-agent'
11
- import AgentLoop from '@deepseek-ai/dsh-agent-loop'
12
- import AgentPresets, { COMPOSITION_FILE } from '@deepseek-ai/dsh-agent-presets'
13
- import CommandRuntime from '@deepseek-ai/dsh-commands'
14
- import LlmRuntime from '@deepseek-ai/dsh-llm'
15
- import SessionStore, { SessionId } from '@deepseek-ai/dsh-session'
16
- import { scopeOf } from '@deepseek-ai/dsh-scope'
17
- import { type SettingsNamespace } from '@deepseek-ai/dsh-settings'
18
- import { LegacySettingsProvider } from './helpers/legacy-settings/index.ts'
19
- import SystemPrompt from '@deepseek-ai/dsh-system-prompt'
20
- import SessionProjectionRegistry from '@deepseek-ai/dsh-session-projection'
21
- import TokenMeter from '@deepseek-ai/dsh-token-meter'
22
- import ToolRuntime from '@deepseek-ai/dsh-tools'
23
- import { afterEach, describe, expect, it } from 'vitest'
24
- import { apply } from '../src/index.ts'
25
-
26
- const CORDIS_ORIGINAL = Symbol.for('cordis.original')
27
- type Traceable = { [CORDIS_ORIGINAL]?: unknown }
28
-
29
- let ctx: Context | undefined
30
- let root: string | undefined
31
-
32
- afterEach(async () => {
33
- await ctx?.fiber.dispose()
34
- ctx = undefined
35
- if (root !== undefined) await rm(root, { recursive: true, force: true })
36
- root = undefined
37
- })
38
-
39
- class MemorySettings extends LegacySettingsProvider {
40
- readonly writable = true
41
-
42
- protected load(): Promise<Record<string, unknown>> {
43
- return Promise.resolve({})
44
- }
45
-
46
- protected persist(_ns: SettingsNamespace, _section: Record<string, unknown>): Promise<void> {
47
- return Promise.resolve()
48
- }
49
- }
50
-
51
- interface CustomSettings {
52
- profile: string
53
- custom: {
54
- history: { trigger: number }
55
- tailTrim: { enabled: boolean; trigger: number }
56
- }
57
- }
58
-
59
- async function createPresetRoot(): Promise<string> {
60
- root = await mkdtemp(join(tmpdir(), 'dsh-selector-loader-e2e-'))
61
- const marker = join(root, 'marker.mjs')
62
- await writeFile(marker, 'export function apply() {}\n')
63
- const source = `- id: source-marker\n name: ${JSON.stringify(marker)}\n`
64
- for (const id of ['standard', 'custom', 'minimal']) {
65
- const directory = join(root, id)
66
- await mkdir(directory)
67
- await writeFile(join(directory, COMPOSITION_FILE), source)
68
- }
69
- return root
70
- }
71
-
72
- async function harness(): Promise<Context> {
73
- const presets = await createPresetRoot()
74
- const runtime = new Context()
75
- runtime.baseUrl = `${pathToFileURL(presets).href}/`
76
- await runtime.plugin(Loader).await()
77
- runtime.loader.builtins.include = Include
78
- runtime.loader.builtins.group = Group
79
- await runtime.plugin(LlmRuntime).await()
80
- await runtime.plugin(SessionStore).await()
81
- await runtime.plugin(SystemPrompt).await()
82
- await runtime.plugin(ToolRuntime).await()
83
- await runtime.plugin(AgentRegistry).await()
84
- await runtime.plugin(AgentLoop).await()
85
- await runtime.plugin(CommandRuntime).await()
86
- await runtime.plugin(SessionProjectionRegistry).await()
87
- await runtime.plugin(TokenMeter).await()
88
- await runtime.plugin(MemorySettings).await()
89
- await runtime.plugin(AgentPresets, {
90
- default: 'standard',
91
- roots: [{ path: presets, trust: 'system' }],
92
- includeShippedRoot: false,
93
- includeUserRoot: false,
94
- })
95
- await runtime.plugin({
96
- apply: (selectorCtx) => {
97
- apply(selectorCtx, { presetOverlay: true })
98
- },
99
- }).await()
100
- ctx = runtime
101
- return runtime
102
- }
103
-
104
- async function agentOn(runtime: Context, sessionId: string, preset: string): Promise<Agent> {
105
- const handle = await runtime.agents.create({
106
- sessionId: SessionId(sessionId),
107
- setup: async agentCtx => void await runtime.agentPresets.mount(agentCtx, preset),
108
- })
109
- return handle.agent
110
- }
111
-
112
- function hasCompressionRetrieve(runtime: Context, agent: Agent): boolean {
113
- return runtime.tools.get('context_compression_retrieve', scopeOf(agent.ctx)) !== undefined
114
- }
115
-
116
- function hasCompactCommand(runtime: Context, agent: Agent): boolean {
117
- return runtime.commands.list(agent).some(command => command.name === 'compact')
118
- }
119
-
120
- function expectCompleteCompressionStack(runtime: Context, agent: Agent): void {
121
- expect(runtime.agentPresets.serviceFor(agent, 'toolResultPruner')).toBeDefined()
122
- expect(runtime.agentPresets.serviceFor(agent, 'compaction')).toBeDefined()
123
- expect(hasCompressionRetrieve(runtime, agent)).toBe(true)
124
- expect(hasCompactCommand(runtime, agent)).toBe(true)
125
- }
126
-
127
- function expectNoCompressionStack(runtime: Context, agent: Agent): void {
128
- expect(runtime.agentPresets.serviceFor(agent, 'toolResultPruner')).toBeUndefined()
129
- expect(runtime.agentPresets.serviceFor(agent, 'compaction')).toBeUndefined()
130
- expect(hasCompressionRetrieve(runtime, agent)).toBe(false)
131
- expect(hasCompactCommand(runtime, agent)).toBe(false)
132
- }
133
-
134
- describe('standalone selector Bundle through the real preset Loader', () => {
135
- it('mounts the complete stack without changing source preset authoring', async () => {
136
- const runtime = await harness()
137
- const source = await runtime.agentPresets.resolve('standard')
138
- const sourceText = await runtime.agentPresets.read('standard')
139
-
140
- const agent = await agentOn(runtime, 'selector-loader-standard', 'standard')
141
-
142
- expectCompleteCompressionStack(runtime, agent)
143
- expect((await runtime.agentPresets.resolve('standard')).path).toBe(source.path)
144
- expect(await runtime.agentPresets.read('standard')).toBe(sourceText)
145
- expect(sourceText).not.toContain('tool-result-pruner')
146
- })
147
-
148
- it('keeps compression across preset changes and excludes only exact Minimal', async () => {
149
- const runtime = await harness()
150
- const agent = await agentOn(runtime, 'selector-loader-switch', 'standard')
151
- expectCompleteCompressionStack(runtime, agent)
152
-
153
- await runtime.agentPresets.recompose(agent.ctx, 'minimal')
154
- expectNoCompressionStack(runtime, agent)
155
-
156
- // `custom` deliberately contains the same source rows as Minimal. Its id,
157
- // not its copied contents, decides the one documented exception.
158
- await runtime.agentPresets.recompose(agent.ctx, 'custom')
159
- expectCompleteCompressionStack(runtime, agent)
160
- })
161
-
162
- it('gives a child the parent\'s exact compression service instances', async () => {
163
- const runtime = await harness()
164
- const parent = await agentOn(runtime, 'selector-loader-parent', 'standard')
165
- const childHandle = await runtime.agents.create({
166
- sessionId: SessionId('selector-loader-child'),
167
- setup: childCtx => void runtime.agentPresets.composeFrom(childCtx, parent.ctx),
168
- })
169
- const child = childHandle.agent
170
-
171
- const parentPruner = runtime.agentPresets.serviceFor(parent, 'toolResultPruner')
172
- const childPruner = runtime.agentPresets.serviceFor(child, 'toolResultPruner')
173
- const parentCompaction = runtime.agentPresets.serviceFor(parent, 'compaction')
174
- const childCompaction = runtime.agentPresets.serviceFor(child, 'compaction')
175
- expect(parentPruner).toBeDefined()
176
- expect(parentCompaction).toBeDefined()
177
- expect(Object.is(
178
- (childPruner as Traceable)[CORDIS_ORIGINAL],
179
- (parentPruner as Traceable)[CORDIS_ORIGINAL],
180
- )).toBe(true)
181
- expect(Object.is(
182
- (childCompaction as Traceable)[CORDIS_ORIGINAL],
183
- (parentCompaction as Traceable)[CORDIS_ORIGINAL],
184
- )).toBe(true)
185
- expect(hasCompressionRetrieve(runtime, child)).toBe(true)
186
- expect(hasCompactCommand(runtime, child)).toBe(true)
187
- })
188
-
189
- it('carries the daily Custom defaults on the bundle entry config schema', async () => {
190
- // 0.1.7: there is no plugin-owned settings row publishing defaults — the
191
- // volatile `settings` field's schema defaults ARE the daily Custom doc the
192
- // loader resolves into every composition.
193
- const settings = (Config({ presetOverlay: true }).settings as unknown as {
194
- get(): CustomSettings
195
- }).get()
196
-
197
- expect(settings.custom.history.trigger).toBe(500_000)
198
- expect(settings.custom.tailTrim).toEqual({ enabled: false, trigger: 700_000 })
199
- })
200
- })
1
+ import { mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises'
2
+ import { tmpdir } from 'node:os'
3
+ import { join } from 'node:path'
4
+ import { pathToFileURL } from 'node:url'
5
+ import { Context } from '@deepseek-ai/cordis'
6
+ import Group from '@deepseek-ai/cordis-plugin-group'
7
+ import Include from '@deepseek-ai/cordis-plugin-include'
8
+ import { Config } from '../src/index.ts'
9
+ import Loader from '@deepseek-ai/cordis-plugin-loader'
10
+ import AgentRegistry, { type Agent } from '@deepseek-ai/dsh-agent'
11
+ import AgentLoop from '@deepseek-ai/dsh-agent-loop'
12
+ import AgentPresets, { COMPOSITION_FILE } from '@deepseek-ai/dsh-agent-presets'
13
+ import CommandRuntime from '@deepseek-ai/dsh-commands'
14
+ import LlmRuntime from '@deepseek-ai/dsh-llm'
15
+ import SessionStore, { SessionId } from '@deepseek-ai/dsh-session'
16
+ import { scopeOf } from '@deepseek-ai/dsh-scope'
17
+ import { type SettingsNamespace } from '@deepseek-ai/dsh-settings'
18
+ import { LegacySettingsProvider } from './helpers/legacy-settings/index.ts'
19
+ import SystemPrompt from '@deepseek-ai/dsh-system-prompt'
20
+ import SessionProjectionRegistry from '@deepseek-ai/dsh-session-projection'
21
+ import TokenMeter from '@deepseek-ai/dsh-token-meter'
22
+ import ToolRuntime from '@deepseek-ai/dsh-tools'
23
+ import { afterEach, describe, expect, it } from 'vitest'
24
+ import { apply } from '../src/index.ts'
25
+
26
+ const CORDIS_ORIGINAL = Symbol.for('cordis.original')
27
+ type Traceable = { [CORDIS_ORIGINAL]?: unknown }
28
+
29
+ let ctx: Context | undefined
30
+ let root: string | undefined
31
+
32
+ afterEach(async () => {
33
+ await ctx?.fiber.dispose()
34
+ ctx = undefined
35
+ if (root !== undefined) await rm(root, { recursive: true, force: true })
36
+ root = undefined
37
+ })
38
+
39
+ class MemorySettings extends LegacySettingsProvider {
40
+ readonly writable = true
41
+
42
+ protected load(): Promise<Record<string, unknown>> {
43
+ return Promise.resolve({})
44
+ }
45
+
46
+ protected persist(_ns: SettingsNamespace, _section: Record<string, unknown>): Promise<void> {
47
+ return Promise.resolve()
48
+ }
49
+ }
50
+
51
+ interface CustomSettings {
52
+ profile: string
53
+ custom: {
54
+ history: { trigger: number }
55
+ tailTrim: { enabled: boolean; trigger: number }
56
+ }
57
+ }
58
+
59
+ async function createPresetRoot(): Promise<string> {
60
+ root = await mkdtemp(join(tmpdir(), 'dsh-selector-loader-e2e-'))
61
+ const marker = join(root, 'marker.mjs')
62
+ await writeFile(marker, 'export function apply() {}\n')
63
+ const source = `- id: source-marker\n name: ${JSON.stringify(marker)}\n`
64
+ for (const id of ['standard', 'custom', 'minimal']) {
65
+ const directory = join(root, id)
66
+ await mkdir(directory)
67
+ await writeFile(join(directory, COMPOSITION_FILE), source)
68
+ }
69
+ return root
70
+ }
71
+
72
+ async function harness(): Promise<Context> {
73
+ const presets = await createPresetRoot()
74
+ const runtime = new Context()
75
+ runtime.baseUrl = `${pathToFileURL(presets).href}/`
76
+ await runtime.plugin(Loader).await()
77
+ runtime.loader.builtins.include = Include
78
+ runtime.loader.builtins.group = Group
79
+ await runtime.plugin(LlmRuntime).await()
80
+ await runtime.plugin(SessionStore).await()
81
+ await runtime.plugin(SystemPrompt).await()
82
+ await runtime.plugin(ToolRuntime).await()
83
+ await runtime.plugin(AgentRegistry).await()
84
+ await runtime.plugin(AgentLoop).await()
85
+ await runtime.plugin(CommandRuntime).await()
86
+ await runtime.plugin(SessionProjectionRegistry).await()
87
+ await runtime.plugin(TokenMeter).await()
88
+ await runtime.plugin(MemorySettings).await()
89
+ await runtime.plugin(AgentPresets, {
90
+ default: 'standard',
91
+ roots: [{ path: presets, trust: 'system' }],
92
+ includeShippedRoot: false,
93
+ includeUserRoot: false,
94
+ })
95
+ await runtime.plugin({
96
+ apply: (selectorCtx) => {
97
+ apply(selectorCtx, { presetOverlay: true })
98
+ },
99
+ }).await()
100
+ ctx = runtime
101
+ return runtime
102
+ }
103
+
104
+ async function agentOn(runtime: Context, sessionId: string, preset: string): Promise<Agent> {
105
+ const handle = await runtime.agents.create({
106
+ sessionId: SessionId(sessionId),
107
+ setup: async agentCtx => void await runtime.agentPresets.mount(agentCtx, preset),
108
+ })
109
+ return handle.agent
110
+ }
111
+
112
+ function hasCompressionRetrieve(runtime: Context, agent: Agent): boolean {
113
+ return runtime.tools.get('context_compression_retrieve', scopeOf(agent.ctx)) !== undefined
114
+ }
115
+
116
+ function hasCompactCommand(runtime: Context, agent: Agent): boolean {
117
+ return runtime.commands.list(agent).some(command => command.name === 'compact')
118
+ }
119
+
120
+ function expectCompleteCompressionStack(runtime: Context, agent: Agent): void {
121
+ expect(runtime.agentPresets.serviceFor(agent, 'toolResultPruner')).toBeDefined()
122
+ expect(runtime.agentPresets.serviceFor(agent, 'compaction')).toBeDefined()
123
+ expect(hasCompressionRetrieve(runtime, agent)).toBe(true)
124
+ expect(hasCompactCommand(runtime, agent)).toBe(true)
125
+ }
126
+
127
+ function expectNoCompressionStack(runtime: Context, agent: Agent): void {
128
+ expect(runtime.agentPresets.serviceFor(agent, 'toolResultPruner')).toBeUndefined()
129
+ expect(runtime.agentPresets.serviceFor(agent, 'compaction')).toBeUndefined()
130
+ expect(hasCompressionRetrieve(runtime, agent)).toBe(false)
131
+ expect(hasCompactCommand(runtime, agent)).toBe(false)
132
+ }
133
+
134
+ describe('standalone selector Bundle through the real preset Loader', () => {
135
+ it('mounts the complete stack without changing source preset authoring', async () => {
136
+ const runtime = await harness()
137
+ const source = await runtime.agentPresets.resolve('standard')
138
+ const sourceText = await runtime.agentPresets.read('standard')
139
+
140
+ const agent = await agentOn(runtime, 'selector-loader-standard', 'standard')
141
+
142
+ expectCompleteCompressionStack(runtime, agent)
143
+ expect((await runtime.agentPresets.resolve('standard')).path).toBe(source.path)
144
+ expect(await runtime.agentPresets.read('standard')).toBe(sourceText)
145
+ expect(sourceText).not.toContain('tool-result-pruner')
146
+ })
147
+
148
+ it('keeps compression across preset changes and excludes only exact Minimal', async () => {
149
+ const runtime = await harness()
150
+ const agent = await agentOn(runtime, 'selector-loader-switch', 'standard')
151
+ expectCompleteCompressionStack(runtime, agent)
152
+
153
+ await runtime.agentPresets.recompose(agent.ctx, 'minimal')
154
+ expectNoCompressionStack(runtime, agent)
155
+
156
+ // `custom` deliberately contains the same source rows as Minimal. Its id,
157
+ // not its copied contents, decides the one documented exception.
158
+ await runtime.agentPresets.recompose(agent.ctx, 'custom')
159
+ expectCompleteCompressionStack(runtime, agent)
160
+ })
161
+
162
+ it('gives a child the parent\'s exact compression service instances', async () => {
163
+ const runtime = await harness()
164
+ const parent = await agentOn(runtime, 'selector-loader-parent', 'standard')
165
+ const childHandle = await runtime.agents.create({
166
+ sessionId: SessionId('selector-loader-child'),
167
+ setup: childCtx => void runtime.agentPresets.composeFrom(childCtx, parent.ctx),
168
+ })
169
+ const child = childHandle.agent
170
+
171
+ const parentPruner = runtime.agentPresets.serviceFor(parent, 'toolResultPruner')
172
+ const childPruner = runtime.agentPresets.serviceFor(child, 'toolResultPruner')
173
+ const parentCompaction = runtime.agentPresets.serviceFor(parent, 'compaction')
174
+ const childCompaction = runtime.agentPresets.serviceFor(child, 'compaction')
175
+ expect(parentPruner).toBeDefined()
176
+ expect(parentCompaction).toBeDefined()
177
+ expect(Object.is(
178
+ (childPruner as Traceable)[CORDIS_ORIGINAL],
179
+ (parentPruner as Traceable)[CORDIS_ORIGINAL],
180
+ )).toBe(true)
181
+ expect(Object.is(
182
+ (childCompaction as Traceable)[CORDIS_ORIGINAL],
183
+ (parentCompaction as Traceable)[CORDIS_ORIGINAL],
184
+ )).toBe(true)
185
+ expect(hasCompressionRetrieve(runtime, child)).toBe(true)
186
+ expect(hasCompactCommand(runtime, child)).toBe(true)
187
+ })
188
+
189
+ it('carries the daily Custom defaults on the bundle entry config schema', async () => {
190
+ // 0.1.7: there is no plugin-owned settings row publishing defaults — the
191
+ // volatile `settings` field's schema defaults ARE the daily Custom doc the
192
+ // loader resolves into every composition.
193
+ const settings = (Config({ presetOverlay: true }).settings as unknown as {
194
+ get(): CustomSettings
195
+ }).get()
196
+
197
+ expect(settings.custom.history.trigger).toBe(500_000)
198
+ expect(settings.custom.tailTrim).toEqual({ enabled: false, trigger: 700_000 })
199
+ })
200
+ })