@sparkelf/dsh-patch-legacy-code-preset 0.2.0-rc.2 → 0.2.0-rc.21
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 +3 -3
- package/patches/legacy-code-preset.patch +11 -11
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
"formatVersion": 1,
|
|
5
5
|
"variants": [
|
|
6
6
|
{
|
|
7
|
-
"dsh": ">=0.1.
|
|
7
|
+
"dsh": ">=0.1.7-alpha.2",
|
|
8
8
|
"file": "./patches/legacy-code-preset.patch",
|
|
9
9
|
"id": "legacy-code-preset-ptc-compatibility",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "00102833dfaee1da9f48a3a8eae9d34005a75218",
|
|
12
12
|
"kind": "dsh-source",
|
|
13
13
|
"paths": [
|
|
14
14
|
"packages/api/session-controller/src/",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
|
|
35
35
|
},
|
|
36
36
|
"type": "module",
|
|
37
|
-
"version": "0.2.0-rc.
|
|
37
|
+
"version": "0.2.0-rc.21"
|
|
38
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/packages/api/session-controller/src/agent.ts b/packages/api/session-controller/src/agent.ts
|
|
2
|
-
index
|
|
2
|
+
index 3f0fa77944..f05a3169d5 100644
|
|
3
3
|
--- a/packages/api/session-controller/src/agent.ts
|
|
4
4
|
+++ b/packages/api/session-controller/src/agent.ts
|
|
5
5
|
@@ -12,10 +12,13 @@ import { ReasoningEffortId } from '@deepseek-ai/dsh-llm'
|
|
@@ -17,7 +17,7 @@ index dd41090c22..8c2cd5029b 100644
|
|
|
17
17
|
/** Cold Session identity absent from persistence. */
|
|
18
18
|
export class ApiSessionNotFound extends Error {}
|
|
19
19
|
|
|
20
|
-
@@ -
|
|
20
|
+
@@ -386,7 +389,15 @@ export class ApiSessionAgentController {
|
|
21
21
|
if (presets === undefined) {
|
|
22
22
|
return { setup: (_agentCtx, agent) => { this.installSelection(agent) } }
|
|
23
23
|
}
|
|
@@ -35,18 +35,18 @@ index dd41090c22..8c2cd5029b 100644
|
|
|
35
35
|
agentPreset: resolvedId,
|
|
36
36
|
setup: async (agentCtx, agent) => {
|
|
37
37
|
diff --git a/packages/api/session-controller/tests/agent.host.spec.ts b/packages/api/session-controller/tests/agent.host.spec.ts
|
|
38
|
-
index
|
|
38
|
+
index 4756ae45b0..a8612e6d14 100644
|
|
39
39
|
--- a/packages/api/session-controller/tests/agent.host.spec.ts
|
|
40
40
|
+++ b/packages/api/session-controller/tests/agent.host.spec.ts
|
|
41
|
-
@@ -
|
|
42
|
-
import SessionStore, { SESSION_FORMAT_VERSION, SessionLogOffset, SessionId } from '@deepseek-ai/dsh-session'
|
|
41
|
+
@@ -9,6 +9,7 @@ import SessionStore, { SESSION_FORMAT_VERSION, SessionLogOffset, SessionId } fro
|
|
43
42
|
import type { SessionEvent, SessionHeader } from '@deepseek-ai/dsh-session'
|
|
43
|
+
import { SessionAlreadyOwnedError } from '@deepseek-ai/dsh-session-persistence'
|
|
44
44
|
import type { SessionObservation } from '@deepseek-ai/dsh-session-query'
|
|
45
45
|
+import { RemoteError } from '@deepseek-ai/dsh-typert-protocol'
|
|
46
46
|
import TypertRegistry from '@deepseek-ai/dsh-typert-registry'
|
|
47
47
|
import { afterEach, describe, expect, it, vi } from 'vitest'
|
|
48
48
|
import {
|
|
49
|
-
@@ -
|
|
49
|
+
@@ -445,6 +446,38 @@ describe('ApiSession create or adoption', () => {
|
|
50
50
|
expect(resume).toHaveBeenCalledWith(expect.objectContaining({ resumeSessionId: meta.id }))
|
|
51
51
|
})
|
|
52
52
|
|
|
@@ -85,7 +85,7 @@ index 586d7b4e7b..8f3d42a404 100644
|
|
|
85
85
|
it('rejects an ownership race before resume and a persisted cwd conflict', async () => {
|
|
86
86
|
const child = await harness()
|
|
87
87
|
const childMeta = header('resume-child-race')
|
|
88
|
-
@@ -
|
|
88
|
+
@@ -484,4 +517,29 @@ describe('ApiSession create or adoption', () => {
|
|
89
89
|
await expect(agents.ensureSession(SessionId('mkdir-failure'), join(file, 'child'), false))
|
|
90
90
|
.rejects.toThrow('failed to ensure project directory')
|
|
91
91
|
})
|
|
@@ -116,7 +116,7 @@ index 586d7b4e7b..8f3d42a404 100644
|
|
|
116
116
|
+ })
|
|
117
117
|
})
|
|
118
118
|
diff --git a/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx b/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx
|
|
119
|
-
index
|
|
119
|
+
index 26fdcfcbf6..25dd5a95bc 100644
|
|
120
120
|
--- a/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx
|
|
121
121
|
+++ b/packages/client/ui-agent-preset/src/client/AgentPresetLabel.tsx
|
|
122
122
|
@@ -19,6 +19,8 @@ import type { AgentPresetSettingsState } from './settings-store.ts'
|
|
@@ -135,17 +135,17 @@ index b40453e94a..0f22c6d0fc 100644
|
|
|
135
135
|
+ const name = text?.name ?? (preset === LEGACY_PTC_PRESET ? t('presetPtcName') : preset)
|
|
136
136
|
return (
|
|
137
137
|
<span className={css.label} title={text?.description ?? t('headerHint')}>
|
|
138
|
-
<
|
|
138
|
+
<IconAgentPresetOutlineRegular size={14} className={css.icon} />
|
|
139
139
|
- {text?.name ?? preset}
|
|
140
140
|
+ {name}
|
|
141
141
|
</span>
|
|
142
142
|
)
|
|
143
143
|
}
|
|
144
144
|
diff --git a/packages/client/ui-agent-preset/tests/components.client.spec.tsx b/packages/client/ui-agent-preset/tests/components.client.spec.tsx
|
|
145
|
-
index
|
|
145
|
+
index a900483d4c..bb8eca6cae 100644
|
|
146
146
|
--- a/packages/client/ui-agent-preset/tests/components.client.spec.tsx
|
|
147
147
|
+++ b/packages/client/ui-agent-preset/tests/components.client.spec.tsx
|
|
148
|
-
@@ -
|
|
148
|
+
@@ -344,6 +344,12 @@ describe('the session-header label', () => {
|
|
149
149
|
expect(screen.getByTitle(en.headerHint).textContent).toBe('mine')
|
|
150
150
|
})
|
|
151
151
|
|