@sparkelf/dsh-patch-legacy-code-preset 0.1.0-rc.13 → 0.1.0-rc.22
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +3 -3
- package/patches/legacy-code-preset.patch +9 -9
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write patches/npm/legacy-code-preset/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 6712a45e235c81b0c47cbd060bf2951ca75e5d43
|
|
6
|
+
README.zh.md: 6b217f80df7e2c349ff0a43649b108049c5041b1
|
package/README.md
CHANGED
|
@@ -4,6 +4,6 @@ English | [中文](README.zh.md)
|
|
|
4
4
|
|
|
5
5
|
This data-only package preserves sessions created before the official `code` agent preset was renamed to `ptc`. Resume first resolves a real `code` preset, then falls back to `ptc` only when `code` is absent; the browser labels that persisted legacy id as the localized PTC preset. Session logs remain unchanged.
|
|
6
6
|
|
|
7
|
-
The target is exact official source revision `
|
|
7
|
+
The target is exact official source revision `d347e703908d0406b7a7ef80e3a0e594d86b2215`. The payload is applied before that source tree is built. The package has no JavaScript entry, lifecycle script, Cordis plugin, accepted-fork fallback, or alternate variant.
|
|
8
8
|
|
|
9
9
|
Retire this package when official DSH provides equivalent legacy preset resolution and display behavior.
|
package/README.zh.md
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
该data-only package让official `code` agent preset改名为`ptc`之前创建的会话仍可恢复。恢复时先解析真实存在的`code` preset;只有`code`不存在时才回退到`ptc`。浏览器把该持久化旧id显示为本地化PTC preset,Session日志保持原样。
|
|
6
6
|
|
|
7
|
-
target是exact official source revision `
|
|
7
|
+
target是exact official source revision `d347e703908d0406b7a7ef80e3a0e594d86b2215`,payload在该source tree build前应用。本package没有JavaScript entry、lifecycle script、Cordis plugin、accepted-fork fallback或alternate variant。
|
|
8
8
|
|
|
9
9
|
official DSH提供同等legacy preset解析与显示行为后,retire本package。
|
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.3-alpha.1",
|
|
8
8
|
"file": "./patches/legacy-code-preset.patch",
|
|
9
9
|
"id": "legacy-code-preset-ptc-compatibility",
|
|
10
10
|
"target": {
|
|
11
|
-
"baseRevision": "
|
|
11
|
+
"baseRevision": "d347e703908d0406b7a7ef80e3a0e594d86b2215",
|
|
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.1.0-rc.
|
|
37
|
+
"version": "0.1.0-rc.22"
|
|
38
38
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
diff --git a/packages/api/session-controller/src/agent.ts b/packages/api/session-controller/src/agent.ts
|
|
2
|
-
index
|
|
2
|
+
index b1f1872662..0dbc14092a 100644
|
|
3
3
|
--- a/packages/api/session-controller/src/agent.ts
|
|
4
4
|
+++ b/packages/api/session-controller/src/agent.ts
|
|
5
|
-
@@ -
|
|
6
|
-
import {
|
|
7
|
-
import type {
|
|
5
|
+
@@ -12,10 +12,13 @@ import { ReasoningEffortId } from '@deepseek-ai/dsh-llm'
|
|
6
|
+
import type { Session, SessionId } from '@deepseek-ai/dsh-session'
|
|
7
|
+
import type { SessionInspection } from '@deepseek-ai/dsh-session-persistence'
|
|
8
8
|
import { SessionQueryError, type SessionObservation } from '@deepseek-ai/dsh-session-query'
|
|
9
9
|
-import { RemoteError } from '@deepseek-ai/dsh-typert-protocol'
|
|
10
10
|
+import { RemoteError, remoteErrorOf } from '@deepseek-ai/dsh-typert-protocol'
|
|
@@ -17,7 +17,7 @@ index c17929af5c..8fd0e9e590 100644
|
|
|
17
17
|
/** Cold Session identity absent from persistence. */
|
|
18
18
|
export class ApiSessionNotFound extends Error {}
|
|
19
19
|
|
|
20
|
-
@@ -
|
|
20
|
+
@@ -377,7 +380,15 @@ export class ApiSessionAgentController {
|
|
21
21
|
}> {
|
|
22
22
|
const presets = this.ctx.get('agentPresets')
|
|
23
23
|
if (presets === undefined) return { setup: (agentCtx) => { this.installSelection(agentCtx) } }
|
|
@@ -35,18 +35,18 @@ index c17929af5c..8fd0e9e590 100644
|
|
|
35
35
|
agentPreset: resolvedId,
|
|
36
36
|
setup: async (agentCtx) => {
|
|
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 d5b569aa49..7ddb1a931f 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
41
|
@@ -8,6 +8,7 @@ import { agentPresetProjectionDefinition } from '@deepseek-ai/dsh-agent-presets'
|
|
42
|
-
import SessionStore, { SessionId } from '@deepseek-ai/dsh-session'
|
|
42
|
+
import SessionStore, { SESSION_FORMAT_VERSION, SessionLogOffset, SessionId } from '@deepseek-ai/dsh-session'
|
|
43
43
|
import type { SessionEvent, SessionHeader } from '@deepseek-ai/dsh-session'
|
|
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
|
+
@@ -413,6 +414,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 6bfea1609d..62bdef2405 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
|
+
@@ -455,4 +488,29 @@ describe('ApiSession create or adoption', () => {
|
|
89
89
|
const composition = await agents.composeAgent(undefined)
|
|
90
90
|
expect(() => composition.setup(new Context())).toThrow('Agent setup has no scoped Agent')
|
|
91
91
|
})
|