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.
- package/package.json +6 -6
- package/packages/selector/lib/client.d.ts +27 -19
- package/packages/selector/lib/client.js +5 -5
- package/packages/selector/lib/pruner.d.ts +7 -0
- package/packages/selector/lib/pruner.js +20 -33
- package/packages/selector/lib/tail-trim.js +3 -6
- package/packages/selector/package.json +1 -1
- package/packages/selector/src/client/CompressionProfileControls.tsx +2 -2
- package/packages/selector/src/client/CompressionProfileSelector.tsx +1 -1
- package/packages/selector/src/client/index.ts +7 -8
- package/packages/selector/src/client/scope-face.ts +21 -0
- package/packages/selector/src/pruner/content.ts +0 -3
- package/packages/selector/src/pruner/session.ts +4 -2
- package/packages/selector/src/pruner.ts +26 -15
- package/packages/selector/src/runtime/measurement.ts +3 -8
- package/packages/selector/src/runtime/retrieve.ts +3 -3
- package/packages/selector/src/runtime/tail-trim.ts +4 -5
- package/packages/selector/tests/code-skeleton.client.spec.ts +93 -93
- package/packages/selector/tests/custom-contract.client.spec.ts +222 -222
- package/packages/selector/tests/helpers/legacy-namespace.ts +31 -31
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +206 -206
- package/packages/selector/tests/preset-options-write.client.spec.ts +1 -1
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +206 -206
- package/packages/selector/tests/public/package-contract.client.spec.ts +78 -78
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +3 -3
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +20 -20
- package/packages/selector/tests/settings-seat.client.spec.ts +118 -118
- package/packages/selector/tests/standing-generation.host.spec.ts +704 -704
- package/packages/selector/tests/support/ui-primitives.tsx +34 -34
- package/pnpm-workspace.yaml +42 -42
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import type { ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
interface MenuItem {
|
|
4
|
-
id: string
|
|
5
|
-
label: ReactNode
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface MenuProps {
|
|
9
|
-
anchor: ReactNode
|
|
10
|
-
items: readonly MenuItem[]
|
|
11
|
-
onSelect: (id: string) => void
|
|
12
|
-
open: boolean
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function
|
|
16
|
-
return <span aria-hidden="true" className={className}>⌄</span>
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function Menu({ anchor, items, onSelect, open }: MenuProps) {
|
|
20
|
-
return (
|
|
21
|
-
<>
|
|
22
|
-
{anchor}
|
|
23
|
-
{open ? (
|
|
24
|
-
<div role="menu">
|
|
25
|
-
{items.map(item => (
|
|
26
|
-
<button key={item.id} role="menuitem" type="button" onClick={() => { onSelect(item.id) }}>
|
|
27
|
-
{item.label}
|
|
28
|
-
</button>
|
|
29
|
-
))}
|
|
30
|
-
</div>
|
|
31
|
-
) : null}
|
|
32
|
-
</>
|
|
33
|
-
)
|
|
34
|
-
}
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
interface MenuItem {
|
|
4
|
+
id: string
|
|
5
|
+
label: ReactNode
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface MenuProps {
|
|
9
|
+
anchor: ReactNode
|
|
10
|
+
items: readonly MenuItem[]
|
|
11
|
+
onSelect: (id: string) => void
|
|
12
|
+
open: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function IconChevronDownOutlineMedium({ className }: { className?: string }) {
|
|
16
|
+
return <span aria-hidden="true" className={className}>⌄</span>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function Menu({ anchor, items, onSelect, open }: MenuProps) {
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
{anchor}
|
|
23
|
+
{open ? (
|
|
24
|
+
<div role="menu">
|
|
25
|
+
{items.map(item => (
|
|
26
|
+
<button key={item.id} role="menuitem" type="button" onClick={() => { onSelect(item.id) }}>
|
|
27
|
+
{item.label}
|
|
28
|
+
</button>
|
|
29
|
+
))}
|
|
30
|
+
</div>
|
|
31
|
+
) : null}
|
|
32
|
+
</>
|
|
33
|
+
)
|
|
34
|
+
}
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -16,48 +16,48 @@ overrides:
|
|
|
16
16
|
'@deepseek-ai/cordis-plugin-group': '1.0.1'
|
|
17
17
|
'@deepseek-ai/cordis-plugin-include': '1.0.6'
|
|
18
18
|
'@deepseek-ai/cordis-plugin-loader': '1.0.2'
|
|
19
|
-
'@deepseek-ai/dsh-agent': '0.1.
|
|
20
|
-
'@deepseek-ai/dsh-agent-loop': '0.1.
|
|
21
|
-
'@deepseek-ai/dsh-agent-loop-testkit': '0.1.
|
|
22
|
-
'@deepseek-ai/dsh-agent-presets': '0.1.
|
|
23
|
-
'@deepseek-ai/dsh-client-locale': '0.1.
|
|
24
|
-
'@deepseek-ai/dsh-client-ui-primitives': '0.1.
|
|
25
|
-
'@deepseek-ai/dsh-client-ui-settings': '0.1.
|
|
26
|
-
'@deepseek-ai/dsh-client-ui-slots': '0.1.
|
|
27
|
-
'@deepseek-ai/dsh-client-store': '0.1.
|
|
28
|
-
'@deepseek-ai/dsh-client-ui-workspace': '0.1.
|
|
29
|
-
'@deepseek-ai/dsh-command-compact': '0.1.
|
|
30
|
-
'@deepseek-ai/dsh-commands': '0.1.
|
|
31
|
-
'@deepseek-ai/dsh-compaction': '0.1.
|
|
32
|
-
'@deepseek-ai/dsh-compaction-basic': '0.1.
|
|
33
|
-
'@deepseek-ai/dsh-invariants': '0.1.
|
|
34
|
-
'@deepseek-ai/dsh-llm': '0.1.
|
|
35
|
-
'@deepseek-ai/dsh-llm-deepseek': '0.1.
|
|
36
|
-
'@deepseek-ai/dsh-scope': '0.1.
|
|
37
|
-
'@deepseek-ai/dsh-session': '0.1.
|
|
38
|
-
'@deepseek-ai/dsh-settings': '0.1.
|
|
39
|
-
'@deepseek-ai/dsh-subagent': '0.1.
|
|
40
|
-
'@deepseek-ai/dsh-subagent-fork-in-process': '0.1.
|
|
41
|
-
'@deepseek-ai/dsh-subagent-spawn-in-process': '0.1.
|
|
42
|
-
'@deepseek-ai/dsh-system-prompt': '0.1.
|
|
43
|
-
'@deepseek-ai/dsh-token-meter': '0.1.
|
|
44
|
-
'@deepseek-ai/dsh-tools': '0.1.
|
|
45
|
-
'@deepseek-ai/dsh-anonymous-user-id': '0.1.
|
|
46
|
-
'@deepseek-ai/dsh-atomic-write': '0.1.
|
|
47
|
-
'@deepseek-ai/dsh-attachment': '0.1.
|
|
48
|
-
'@deepseek-ai/dsh-code-runtime': '0.1.5-rc.
|
|
49
|
-
'@deepseek-ai/dsh-credentials': '0.1.
|
|
50
|
-
'@deepseek-ai/dsh-home-paths': '0.1.
|
|
51
|
-
'@deepseek-ai/dsh-launch-environment': '0.1.
|
|
52
|
-
'@deepseek-ai/dsh-llm-retry': '0.1.
|
|
53
|
-
'@deepseek-ai/dsh-sandbox': '0.1.
|
|
54
|
-
'@deepseek-ai/dsh-session-persistence': '0.1.
|
|
55
|
-
'@deepseek-ai/dsh-session-projection': '0.1.
|
|
56
|
-
'@deepseek-ai/dsh-subagent-in-process-driver': '0.1.
|
|
57
|
-
'@deepseek-ai/dsh-user-approval': '0.1.
|
|
58
|
-
'@deepseek-ai/schemastery': '3.18.
|
|
59
|
-
'@deepseek-ai/dsh-client-ui-session': '0.1.
|
|
60
|
-
'@deepseek-ai/dsh-api-session-controller': '0.1.
|
|
19
|
+
'@deepseek-ai/dsh-agent': '0.1.7-rc.2'
|
|
20
|
+
'@deepseek-ai/dsh-agent-loop': '0.1.7-rc.2'
|
|
21
|
+
'@deepseek-ai/dsh-agent-loop-testkit': '0.1.7-rc.1'
|
|
22
|
+
'@deepseek-ai/dsh-agent-presets': '0.1.6-alpha.2'
|
|
23
|
+
'@deepseek-ai/dsh-client-locale': '0.1.7-rc.2'
|
|
24
|
+
'@deepseek-ai/dsh-client-ui-primitives': '0.1.7-rc.2'
|
|
25
|
+
'@deepseek-ai/dsh-client-ui-settings': '0.1.7-rc.2'
|
|
26
|
+
'@deepseek-ai/dsh-client-ui-slots': '0.1.7-rc.2'
|
|
27
|
+
'@deepseek-ai/dsh-client-store': '0.1.7-rc.2'
|
|
28
|
+
'@deepseek-ai/dsh-client-ui-workspace': '0.1.7-rc.2'
|
|
29
|
+
'@deepseek-ai/dsh-command-compact': '0.1.7-rc.2'
|
|
30
|
+
'@deepseek-ai/dsh-commands': '0.1.7-rc.2'
|
|
31
|
+
'@deepseek-ai/dsh-compaction': '0.1.7-rc.2'
|
|
32
|
+
'@deepseek-ai/dsh-compaction-basic': '0.1.7-rc.2'
|
|
33
|
+
'@deepseek-ai/dsh-invariants': '0.1.7-rc.2'
|
|
34
|
+
'@deepseek-ai/dsh-llm': '0.1.7-rc.2'
|
|
35
|
+
'@deepseek-ai/dsh-llm-deepseek': '0.1.7-rc.2'
|
|
36
|
+
'@deepseek-ai/dsh-scope': '0.1.7-rc.2'
|
|
37
|
+
'@deepseek-ai/dsh-session': '0.1.7-rc.2'
|
|
38
|
+
'@deepseek-ai/dsh-settings': '0.1.7-rc.2'
|
|
39
|
+
'@deepseek-ai/dsh-subagent': '0.1.7-rc.2'
|
|
40
|
+
'@deepseek-ai/dsh-subagent-fork-in-process': '0.1.7-rc.2'
|
|
41
|
+
'@deepseek-ai/dsh-subagent-spawn-in-process': '0.1.7-rc.2'
|
|
42
|
+
'@deepseek-ai/dsh-system-prompt': '0.1.7-rc.2'
|
|
43
|
+
'@deepseek-ai/dsh-token-meter': '0.1.7-rc.2'
|
|
44
|
+
'@deepseek-ai/dsh-tools': '0.1.7-rc.2'
|
|
45
|
+
'@deepseek-ai/dsh-anonymous-user-id': '0.1.7-rc.2'
|
|
46
|
+
'@deepseek-ai/dsh-atomic-write': '0.1.7-rc.2'
|
|
47
|
+
'@deepseek-ai/dsh-attachment': '0.1.7-rc.2'
|
|
48
|
+
'@deepseek-ai/dsh-code-runtime': '0.1.5-rc.3'
|
|
49
|
+
'@deepseek-ai/dsh-credentials': '0.1.7-rc.2'
|
|
50
|
+
'@deepseek-ai/dsh-home-paths': '0.1.7-rc.2'
|
|
51
|
+
'@deepseek-ai/dsh-launch-environment': '0.1.7-rc.2'
|
|
52
|
+
'@deepseek-ai/dsh-llm-retry': '0.1.7-rc.2'
|
|
53
|
+
'@deepseek-ai/dsh-sandbox': '0.1.7-rc.2'
|
|
54
|
+
'@deepseek-ai/dsh-session-persistence': '0.1.7-rc.2'
|
|
55
|
+
'@deepseek-ai/dsh-session-projection': '0.1.7-rc.2'
|
|
56
|
+
'@deepseek-ai/dsh-subagent-in-process-driver': '0.1.7-rc.2'
|
|
57
|
+
'@deepseek-ai/dsh-user-approval': '0.1.7-rc.2'
|
|
58
|
+
'@deepseek-ai/schemastery': '3.18.4'
|
|
59
|
+
'@deepseek-ai/dsh-client-ui-session': '0.1.7-rc.2'
|
|
60
|
+
'@deepseek-ai/dsh-api-session-controller': '0.1.7-rc.2'
|
|
61
61
|
# Scoped, not global: @deepseek-ai/cordis-plugin-include (^4.1.0) and
|
|
62
62
|
# @deepseek-ai/dsh-agent-presets resolve js-yaml 4.3.1 from ranges that already
|
|
63
63
|
# allow the patched release, so pin the vulnerable ones without waiting on their
|