@sparkelf/dsh-patch-legacy-code-preset 0.2.0-rc.1 → 0.2.0-rc.11
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 +2 -2
- package/patches/legacy-code-preset.patch +10 -10
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"file": "./patches/legacy-code-preset.patch",
|
|
9
9
|
"id": "legacy-code-preset-ptc-compatibility",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "ddefc45fbc7f8e46dd73185e68295696d1297887",
|
|
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.11"
|
|
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 8fd5255..d7748b0 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 75efa91..9e28732 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 b40453e..0f22c6d 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'
|
|
@@ -142,10 +142,10 @@ index b40453e94a..0f22c6d0fc 100644
|
|
|
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 6343836..67944a5 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
|
+
@@ -329,6 +329,12 @@ describe('the session-header label', () => {
|
|
149
149
|
expect(screen.getByTitle(en.headerHint).textContent).toBe('mine')
|
|
150
150
|
})
|
|
151
151
|
|