dsh-context-compression-improved 0.6.0 → 0.6.2

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 (30) hide show
  1. package/package.json +6 -6
  2. package/packages/selector/lib/client.d.ts +27 -19
  3. package/packages/selector/lib/client.js +5 -5
  4. package/packages/selector/lib/pruner.d.ts +7 -0
  5. package/packages/selector/lib/pruner.js +20 -33
  6. package/packages/selector/lib/tail-trim.js +3 -6
  7. package/packages/selector/package.json +1 -1
  8. package/packages/selector/src/client/CompressionProfileControls.tsx +2 -2
  9. package/packages/selector/src/client/CompressionProfileSelector.tsx +1 -1
  10. package/packages/selector/src/client/index.ts +7 -8
  11. package/packages/selector/src/client/scope-face.ts +21 -0
  12. package/packages/selector/src/pruner/content.ts +0 -3
  13. package/packages/selector/src/pruner/session.ts +4 -2
  14. package/packages/selector/src/pruner.ts +26 -15
  15. package/packages/selector/src/runtime/measurement.ts +3 -8
  16. package/packages/selector/src/runtime/retrieve.ts +3 -3
  17. package/packages/selector/src/runtime/tail-trim.ts +4 -5
  18. package/packages/selector/tests/code-skeleton.client.spec.ts +93 -93
  19. package/packages/selector/tests/custom-contract.client.spec.ts +222 -222
  20. package/packages/selector/tests/helpers/legacy-namespace.ts +31 -31
  21. package/packages/selector/tests/host-preset-overlay.host.spec.ts +206 -206
  22. package/packages/selector/tests/preset-options-write.client.spec.ts +1 -1
  23. package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +206 -206
  24. package/packages/selector/tests/public/package-contract.client.spec.ts +78 -78
  25. package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +3 -3
  26. package/packages/selector/tests/runtime/public/public-runtime.spec.ts +20 -20
  27. package/packages/selector/tests/settings-seat.client.spec.ts +118 -118
  28. package/packages/selector/tests/standing-generation.host.spec.ts +704 -704
  29. package/packages/selector/tests/support/ui-primitives.tsx +34 -34
  30. package/pnpm-workspace.yaml +42 -42
@@ -14,6 +14,15 @@ import z from '@deepseek-ai/schemastery'
14
14
  import { createUserMessage, freezeMessage } from '@deepseek-ai/dsh-llm'
15
15
  import type { ContentBlock, UserMessage } from '@deepseek-ai/dsh-llm'
16
16
  import { SessionSeq } from '@deepseek-ai/dsh-session'
17
+
18
+ // 0.1.7-rc.2 removed the shared 'plugin' source kind — each producer declares
19
+ // its own kind in its own module (official pattern: compaction's
20
+ // 'compact-checkpoint' in compaction/src/index.ts).
21
+ declare module '@deepseek-ai/dsh-llm' {
22
+ interface MessageSourceMap {
23
+ 'dsh-context-compression': { readonly kind: 'dsh-context-compression' }
24
+ }
25
+ }
17
26
  import type { Session, SessionEvent, ToolResultMessage } from '@deepseek-ai/dsh-session'
18
27
  import type {} from '@deepseek-ai/dsh-agent'
19
28
  import type {} from '@deepseek-ai/dsh-compaction'
@@ -535,7 +544,7 @@ export class ToolResultPruner extends Service {
535
544
  // carrying the marker would fail the host's closed-transaction validation.
536
545
  const replacement = createUserMessage({
537
546
  content,
538
- source: { kind: 'plugin', plugin: 'dsh-context-compression-improved-runtime' },
547
+ source: { kind: 'dsh-context-compression' },
539
548
  })
540
549
  session.append('user/message', replacement, {
541
550
  surfaceOp: { op: 'replace', startSeq: SessionSeq(checkpointSeq), endSeq: SessionSeq(checkpointSeq) },
@@ -1325,11 +1334,11 @@ export class ToolResultPruner extends Service {
1325
1334
  if (shadowedHeuristicTokenCount === undefined) {
1326
1335
  throw new Error(`surface node ${String(seq)} is absent from the atomic legacy projection`)
1327
1336
  }
1328
- const content = event.data.message.content[0].content
1337
+ const content = event.data.message.content
1329
1338
  candidates.push({
1330
1339
  seq,
1331
1340
  event,
1332
- call: calls.get(event.data.message.source.callId) ?? { name: 'unknown', arguments: '{}' },
1341
+ call: calls.get(event.data.message.toolCallId) ?? { name: 'unknown', arguments: '{}' },
1333
1342
  count: onlyTextBlocks(content) === null
1334
1343
  ? unavailableCount(`surface node ${String(seq)} contains unsupported rich tool-result content`)
1335
1344
  : measured.get(seq) ?? unavailableCount(`surface node ${String(seq)} is absent from the atomic token view`),
@@ -1349,7 +1358,7 @@ export class ToolResultPruner extends Service {
1349
1358
  ): PlannedReplacement | null {
1350
1359
  if (this.isRecoveryExempt(session, candidate)) return null
1351
1360
  if (candidate.characterPressure <= charsForTokens(policy.nativeTriggerTokens)) return null
1352
- const result = candidate.event.data.message.content[0]
1361
+ const result = candidate.event.data.message as ToolResultMessage
1353
1362
  if (onlyTextBlocks(result.content) === null) return null
1354
1363
  const sourceSeq = rootToolResultSeq(session, candidate.seq)
1355
1364
  // R9b site: the marker's retrieve hint starts at the event line right
@@ -1401,7 +1410,7 @@ export class ToolResultPruner extends Service {
1401
1410
  view: CompactionTokenView,
1402
1411
  ): PlannedReplacement | null {
1403
1412
  if (typeof candidate.event.surfaceOp === 'object') return null
1404
- const result = candidate.event.data.message.content[0]
1413
+ const result = candidate.event.data.message as ToolResultMessage
1405
1414
  const text = flattenPlainText(result.content)
1406
1415
  if (text === undefined) return null
1407
1416
  if (candidate.characterPressure <= charsForTokens(policy.freshTriggerTokens)) return null
@@ -1449,7 +1458,7 @@ export class ToolResultPruner extends Service {
1449
1458
  // pre-step coordinate filter prevents previously-kept originals from ever
1450
1459
  // being reconsidered after their first request.
1451
1460
  if (typeof candidate.event.surfaceOp === 'object') return null
1452
- const result = candidate.event.data.message.content[0]
1461
+ const result = candidate.event.data.message as ToolResultMessage
1453
1462
  if (candidate.characterPressure <= charsForTokens(policy.freshTriggerTokens)) return null
1454
1463
  const sourceSeq = candidate.seq
1455
1464
  const sourceRef = sourceRefFn(session, sourceSeq)
@@ -1527,7 +1536,7 @@ export class ToolResultPruner extends Service {
1527
1536
  // example one carrying an image) must never reach it. The character basis
1528
1537
  // no longer inherits the exact-tokenizer precondition that used to reject
1529
1538
  // this path implicitly, so the guard has to be explicit.
1530
- const redacted = candidate.event.data.message.content[0]
1539
+ const redacted = candidate.event.data.message as ToolResultMessage
1531
1540
  if (onlyTextBlocks(redacted.content) === null) return null
1532
1541
  const text = [
1533
1542
  '[Tool result reduced to satisfy the completed-step aggregate budget]',
@@ -1561,7 +1570,7 @@ export class ToolResultPruner extends Service {
1561
1570
  historyMode?: HistoryMode,
1562
1571
  ): PlannedReplacement | null {
1563
1572
  if (!isError(candidate)) return null
1564
- const result = candidate.event.data.message.content[0]
1573
+ const result = candidate.event.data.message as ToolResultMessage
1565
1574
  const blocks = onlyTextBlocks(result.content)
1566
1575
  if (blocks === null) return null
1567
1576
  const text = blocks.map(block => block.text).join('\n')
@@ -1619,7 +1628,7 @@ export class ToolResultPruner extends Service {
1619
1628
  const protectedSeqs = this.protectedHistoryCandidateSeqs(candidates, policy)
1620
1629
  const isUnsafe = (candidate: SnapshotCandidate): boolean => {
1621
1630
  if (this.isRecoveryExempt(session, candidate)) return true
1622
- const result = candidate.event.data.message.content[0]
1631
+ const result = candidate.event.data.message as ToolResultMessage
1623
1632
  const block = onlyTextBlock(result.content)
1624
1633
  return block?.text.includes('[Old tool result content cleared from active context]') === true
1625
1634
  }
@@ -1649,7 +1658,7 @@ export class ToolResultPruner extends Service {
1649
1658
  ? minReclaimChars
1650
1659
  : required
1651
1660
  for (const candidate of eligible) {
1652
- const result = candidate.event.data.message.content[0]
1661
+ const result = candidate.event.data.message as ToolResultMessage
1653
1662
  const block = onlyTextBlock(result.content)
1654
1663
  // TokenPilot-inspired R2: a read output whose file was later mutated is
1655
1664
  // superseded — its text can no longer match the file — so it takes the
@@ -1858,11 +1867,11 @@ export class ToolResultPruner extends Service {
1858
1867
  if (event?.type !== 'tool/result'
1859
1868
  || event.data.turn !== assistant.data.turn || event.data.step !== assistant.data.step
1860
1869
  || event.data.error !== undefined) return true
1861
- const block = event.data.message.content[0]
1870
+ const block = event.data.message as ToolResultMessage
1862
1871
  if (block.isError === true) return true
1863
1872
  // Images and other rich inner blocks stay fail-open: a TailTrim stub
1864
1873
  // would silently delete them from the active context.
1865
- return block.content.some(contentBlock => contentBlock.type !== 'text')
1874
+ return block.content.some((contentBlock: ContentBlock) => contentBlock.type !== 'text')
1866
1875
  })) continue
1867
1876
  const next = events[nodes[index + 1 + calls.length] ?? -1]
1868
1877
  if (next?.type === 'tool/result'
@@ -2049,7 +2058,7 @@ export class ToolResultPruner extends Service {
2049
2058
  // noise without reclaiming context. Text-level because the placeholder
2050
2059
  // guidance lines (source refs, retrieval hints) must pay for themselves.
2051
2060
  if (options.noNetSavingsGuard === true) {
2052
- const originalBlocks = onlyTextBlocks(candidate.event.data.message.content[0].content)
2061
+ const originalBlocks = onlyTextBlocks(candidate.event.data.message.content)
2053
2062
  const replacementBlocks = onlyTextBlocks(content)
2054
2063
  if (originalBlocks !== null && replacementBlocks !== null) {
2055
2064
  const originalChars = originalBlocks.reduce((sum, block) => sum + codePointLength(block.text), 0)
@@ -2078,10 +2087,12 @@ export class ToolResultPruner extends Service {
2078
2087
 
2079
2088
  private land(session: Session, plan: PlannedReplacement): PrunedEntry | null {
2080
2089
  const { candidate } = plan
2081
- const result = candidate.event.data.message.content[0]
2090
+ const result = candidate.event.data.message as ToolResultMessage
2091
+ // 0.1.7-rc.2: the tool message's own `content` is the result block set —
2092
+ // no wrapping result block anymore.
2082
2093
  const message = freezeMessage<ToolResultMessage>({
2083
2094
  ...candidate.event.data.message,
2084
- content: [{ ...result, content: plan.content }] as [typeof result],
2095
+ content: plan.content,
2085
2096
  })
2086
2097
  const manifest = session.append('compaction/prune', {
2087
2098
  shadowedRange: { start: SessionSeq(candidate.seq), end: SessionSeq(candidate.seq) },
@@ -35,8 +35,9 @@ export type { TokenCount } from './token-count.ts'
35
35
  * @returns character pressure in Unicode code points, plus rich-block costs.
36
36
  */
37
37
  function nodeCharacterPressure(content: readonly ContentBlock[]): number {
38
- const only = content.length === 1 ? content[0] : undefined
39
- return pressureCost(only?.type === 'tool-result' ? only.content : content)
38
+ // 0.1.7-rc.2: tool results are tool-role messages, so a node's content
39
+ // array can no longer wrap them — the blocks are measured as-is.
40
+ return pressureCost(content)
40
41
  }
41
42
 
42
43
  /** Request identity retained only when every dimension is publicly known. */
@@ -252,10 +253,6 @@ function countCanonicalContent(
252
253
  if (!absorb(counter.countText(block.arguments))) return false
253
254
  break
254
255
  }
255
- case 'tool-result': {
256
- if (!walk(block.content)) return false
257
- break
258
- }
259
256
  case 'image': {
260
257
  if (!absorb(counter.countImage(block.attachment))) return false
261
258
  break
@@ -377,8 +374,6 @@ function intrinsicImageDiagnostic(
377
374
  paddingMinimumTokens += estimate.paddingMinimumTokens
378
375
  paddingMaximumTokens += estimate.paddingMaximumTokens
379
376
  seen = true
380
- } else if (block.type === 'tool-result') {
381
- walk(block.content)
382
377
  }
383
378
  }
384
379
  }
@@ -110,7 +110,7 @@ export function installContextCompressionRetrieve(ctx: Context, config: Config =
110
110
  throw new Error(`context_compression_retrieve: event ${String(seq)} is not a tool/result in the current session`)
111
111
  }
112
112
  const maxLines = resolveMaxLines(args.max_lines)
113
- const scan = scanBlocks(event.data.message.content[0].content, maxScanChars)
113
+ const scan = scanBlocks(event.data.message.content, maxScanChars)
114
114
  const scannedLines = splitScannedLines(scan)
115
115
  const lines = scannedLines.lines
116
116
  const query = args.query
@@ -125,8 +125,8 @@ export function installContextCompressionRetrieve(ctx: Context, config: Config =
125
125
  const total = scan.complete ? String(lines.length) : `at least ${String(lines.length)}`
126
126
  const header = [
127
127
  `source: ${args.ref}`,
128
- `tool_call_id: ${event.data.message.source.callId}`,
129
- `status: ${event.data.message.content[0].isError === true ? 'error' : 'completed'}`,
128
+ `tool_call_id: ${event.data.message.toolCallId}`,
129
+ `status: ${(event.data.message as { isError?: boolean }).isError === true ? 'error' : 'completed'}`,
130
130
  `lines: ${String(selected.start)}-${String(selected.end)} of ${total}`,
131
131
  scan.complete ? '' : 'note: source scan limit reached; later lines were not inspected',
132
132
  selected.partialLine === undefined
@@ -55,7 +55,7 @@ export function tailTrimStub(
55
55
  export function tailTrimMessage(stub: string): UserMessage {
56
56
  return createUserMessage({
57
57
  content: [{ type: 'text', text: stub }],
58
- source: { kind: 'plugin', plugin: 'dsh-context-compression-improved-runtime' },
58
+ source: { kind: 'dsh-context-compression' },
59
59
  })
60
60
  }
61
61
 
@@ -75,8 +75,7 @@ export function validatePublishedTailTrim(
75
75
  const replacement = events[manifestSeq + 1]
76
76
  if (replacement?.type !== 'user/message'
77
77
  || replacement.seq !== manifest.seq + 1
78
- || replacement.data.source.kind !== 'plugin'
79
- || replacement.data.source.plugin !== 'dsh-context-compression-improved-runtime'
78
+ || replacement.data.source.kind !== 'dsh-context-compression'
80
79
  || replacement.surfaceOp === undefined
81
80
  || replacement.surfaceOp === 'append'
82
81
  || replacement.surfaceOp.startSeq !== manifest.data.shadowedRange.start
@@ -150,12 +149,12 @@ function validRootGroup(roots: readonly SessionEvent[], manifestSeq: number): bo
150
149
  if (new Set(callIds).size !== callIds.length || roots.length !== callIds.length + 1) return false
151
150
  for (const [index, root] of roots.slice(1).entries()) {
152
151
  if (root.type !== 'tool/result' || root.seq >= manifestSeq || root.surfaceOp !== 'append') return false
153
- const result = root.data.message.content[0]
152
+ const result = root.data.message as { isError?: boolean }
154
153
  if (result.isError === true
155
154
  || root.data.error !== undefined
156
155
  || root.data.turn !== assistant.data.turn
157
156
  || root.data.step !== assistant.data.step
158
- || String(root.data.message.source.callId) !== String(callIds[index])) return false
157
+ || String((root.data.message as { toolCallId?: unknown }).toolCallId) !== String(callIds[index])) return false
159
158
  }
160
159
  return true
161
160
  }
@@ -1,93 +1,93 @@
1
- // @vitest-environment jsdom
2
-
3
- import { describe, expect, it, vi } from 'vitest'
4
- import { DEFAULT_CUSTOM_COMPRESSION_POLICY } from '../src/profiles.ts'
5
- import { apply } from '../src/client/index.ts'
6
- import type { CompressionSelectorInjected } from '../src/client/CompressionProfileSelector.tsx'
7
- import type { ContextCompressionSettings } from '../src/profiles.ts'
8
-
9
- /**
10
- * 0.1.7 contract: `codeSkeleton` rides the entry config as part of the volatile
11
- * `settings` whole-object field. Every write commits the full doc through
12
- * `configForms.set('settings', doc)`; the confirm-on-write semantics are
13
- * unchanged — a host that silently drops (or flips) the section fails the
14
- * acceptance check on the post-commit snapshot.
15
- */
16
-
17
- describe('codeSkeleton confirm-on-write client contract', () => {
18
- it('resolves only when the host confirms the toggled value and rejects silent drops', async () => {
19
- let revision = 3
20
- let commit = false
21
- let flipEnabled = false
22
- let value: ContextCompressionSettings = {
23
- profile: 'balanced',
24
- custom: structuredClone(DEFAULT_CUSTOM_COMPRESSION_POLICY),
25
- autoCompact: { thresholdPercent: 80 },
26
- codeSkeleton: { enabled: false },
27
- }
28
- const form = {
29
- getSnapshot: vi.fn(() => ({
30
- status: 'ready' as const,
31
- value: { settings: value },
32
- base: undefined,
33
- user: undefined,
34
- revision,
35
- writable: true,
36
- mode: 'host' as const,
37
- })),
38
- subscribe: vi.fn(() => () => {}),
39
- set: vi.fn(async (_field: string, next: unknown) => {
40
- if (!commit) return false
41
- revision += 1
42
- const doc = structuredClone(next) as ContextCompressionSettings
43
- if (flipEnabled) {
44
- const accepted = structuredClone(doc.codeSkeleton)
45
- accepted.enabled = !accepted.enabled
46
- value = { ...doc, codeSkeleton: accepted }
47
- return true
48
- }
49
- value = doc
50
- return true
51
- }),
52
- unset: vi.fn(async () => false),
53
- }
54
- let injected: (() => CompressionSelectorInjected) | undefined
55
- const ctx = {
56
- effect: (install: () => unknown) => { install() },
57
- locale: { register: vi.fn(() => () => {}) },
58
- configForms: { get: vi.fn(() => form) },
59
- slots: {
60
- inject: (_slot: string, install: () => unknown) => { install() },
61
- register: (registration: { inject?: () => CompressionSelectorInjected }) => {
62
- // The R4 overlay registration carries no inject face; keep the card's.
63
- if (typeof registration.inject === 'function') injected = registration.inject
64
- return () => {}
65
- },
66
- },
67
- } as unknown as Parameters<typeof apply>[0]
68
-
69
- apply(ctx)
70
- const actions = injected?.()
71
- expect(actions).toBeDefined()
72
- if (actions === undefined) throw new Error('selector injection was not registered')
73
-
74
- // A silent host drop leaves the revision untouched: the write must reject.
75
- await expect(actions.saveCodeSkeleton(true)).rejects.toThrow('were not saved')
76
-
77
- // A committed write resolves and persists the exact section payload under
78
- // the volatile `settings` field.
79
- commit = true
80
- await expect(actions.saveCodeSkeleton(true)).resolves.toBeUndefined()
81
- expect(form.set).toHaveBeenLastCalledWith('settings', expect.objectContaining({ codeSkeleton: { enabled: true } }))
82
- expect(value.codeSkeleton).toEqual({ enabled: true })
83
-
84
- // A host that flips the toggled bit fails the acceptance check.
85
- flipEnabled = true
86
- await expect(actions.saveCodeSkeleton(false)).rejects.toThrow('were not saved')
87
-
88
- flipEnabled = false
89
- await expect(actions.saveCodeSkeleton(false)).resolves.toBeUndefined()
90
- expect(form.set).toHaveBeenLastCalledWith('settings', expect.objectContaining({ codeSkeleton: { enabled: false } }))
91
- expect(value.codeSkeleton).toEqual({ enabled: false })
92
- })
93
- })
1
+ // @vitest-environment jsdom
2
+
3
+ import { describe, expect, it, vi } from 'vitest'
4
+ import { DEFAULT_CUSTOM_COMPRESSION_POLICY } from '../src/profiles.ts'
5
+ import { apply } from '../src/client/index.ts'
6
+ import type { CompressionSelectorInjected } from '../src/client/CompressionProfileSelector.tsx'
7
+ import type { ContextCompressionSettings } from '../src/profiles.ts'
8
+
9
+ /**
10
+ * 0.1.7 contract: `codeSkeleton` rides the entry config as part of the volatile
11
+ * `settings` whole-object field. Every write commits the full doc through
12
+ * `configForms.set('settings', doc)`; the confirm-on-write semantics are
13
+ * unchanged — a host that silently drops (or flips) the section fails the
14
+ * acceptance check on the post-commit snapshot.
15
+ */
16
+
17
+ describe('codeSkeleton confirm-on-write client contract', () => {
18
+ it('resolves only when the host confirms the toggled value and rejects silent drops', async () => {
19
+ let revision = 3
20
+ let commit = false
21
+ let flipEnabled = false
22
+ let value: ContextCompressionSettings = {
23
+ profile: 'balanced',
24
+ custom: structuredClone(DEFAULT_CUSTOM_COMPRESSION_POLICY),
25
+ autoCompact: { thresholdPercent: 80 },
26
+ codeSkeleton: { enabled: false },
27
+ }
28
+ const form = {
29
+ getSnapshot: vi.fn(() => ({
30
+ status: 'ready' as const,
31
+ value: { settings: value },
32
+ base: undefined,
33
+ user: undefined,
34
+ revision,
35
+ writable: true,
36
+ mode: 'host' as const,
37
+ })),
38
+ subscribe: vi.fn(() => () => {}),
39
+ set: vi.fn(async (_field: string, next: unknown) => {
40
+ if (!commit) return false
41
+ revision += 1
42
+ const doc = structuredClone(next) as ContextCompressionSettings
43
+ if (flipEnabled) {
44
+ const accepted = structuredClone(doc.codeSkeleton)
45
+ accepted.enabled = !accepted.enabled
46
+ value = { ...doc, codeSkeleton: accepted }
47
+ return true
48
+ }
49
+ value = doc
50
+ return true
51
+ }),
52
+ unset: vi.fn(async () => false),
53
+ }
54
+ let injected: (() => CompressionSelectorInjected) | undefined
55
+ const ctx = {
56
+ effect: (install: () => unknown) => { install() },
57
+ locale: { register: vi.fn(() => () => {}) },
58
+ configForms: { get: vi.fn(() => form) },
59
+ slots: {
60
+ inject: (_slot: string, install: () => unknown) => { install() },
61
+ register: (registration: { inject?: () => CompressionSelectorInjected }) => {
62
+ // The R4 overlay registration carries no inject face; keep the card's.
63
+ if (typeof registration.inject === 'function') injected = registration.inject
64
+ return () => {}
65
+ },
66
+ },
67
+ } as unknown as Parameters<typeof apply>[0]
68
+
69
+ apply(ctx)
70
+ const actions = injected?.()
71
+ expect(actions).toBeDefined()
72
+ if (actions === undefined) throw new Error('selector injection was not registered')
73
+
74
+ // A silent host drop leaves the revision untouched: the write must reject.
75
+ await expect(actions.saveCodeSkeleton(true)).rejects.toThrow('were not saved')
76
+
77
+ // A committed write resolves and persists the exact section payload under
78
+ // the volatile `settings` field.
79
+ commit = true
80
+ await expect(actions.saveCodeSkeleton(true)).resolves.toBeUndefined()
81
+ expect(form.set).toHaveBeenLastCalledWith('settings', expect.objectContaining({ codeSkeleton: { enabled: true } }))
82
+ expect(value.codeSkeleton).toEqual({ enabled: true })
83
+
84
+ // A host that flips the toggled bit fails the acceptance check.
85
+ flipEnabled = true
86
+ await expect(actions.saveCodeSkeleton(false)).rejects.toThrow('were not saved')
87
+
88
+ flipEnabled = false
89
+ await expect(actions.saveCodeSkeleton(false)).resolves.toBeUndefined()
90
+ expect(form.set).toHaveBeenLastCalledWith('settings', expect.objectContaining({ codeSkeleton: { enabled: false } }))
91
+ expect(value.codeSkeleton).toEqual({ enabled: false })
92
+ })
93
+ })