@sparkelf/dsh-patch-workspace-storage-restore 0.1.0-rc.9 → 0.2.0-rc.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/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/workspace-storage-restore/README.md
5
- README.md: 403dd3aa3673d0c7f896e395464688e51c3bf690
6
- README.zh.md: 69e2d7935a48f955943fce129492a16b05f84522
5
+ README.md: f534c2af44255bd2a26bd4f92b6d558835952694
6
+ README.zh.md: 403f76b2378ee7b9bab0c357e416c07f79934214
package/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  English | [中文](README.zh.md)
4
4
 
5
- Data-only temporary patch for the official DSH source revision `cd5ef8148158c3a752a658978873241fdf8e2bbc`. It adds `WorkspaceRegistry.withStorageRestore`, which closes the Workspace durable domain around an external file replacement and reopens through normal initialization before returning.
5
+ Data-only temporary patch for the official DSH source revision `fb2c4b9e698e30edb738bca4cf0618587db7d203`. It adds `WorkspaceRegistry.withStorageRestore`, which closes the Workspace durable domain around an external file replacement and reopens through normal initialization before returning.
6
6
 
7
- The target source revision identifies `dsh-v0.1.2-alpha.1`. That tag has no matching published `@deepseek-ai/dsh-workspace` npm artifact, so this variant cannot truthfully target an npm package version. The Plus distribution declares this exact official base revision; the materializer verifies that base is an ancestor of the Plus checkout, verifies the repository-root payload with `git apply --check`, and then builds DSH from that official source base plus the selected Plus artifacts. There is no alternate revision, fuzzy application, or runtime code in this package.
7
+ The target source revision identifies `dsh-v0.1.3-alpha.1`. That tag has no matching published `@deepseek-ai/dsh-workspace` npm artifact, so this variant cannot truthfully target an npm package version. The Plus distribution declares this exact official base revision; the materializer verifies that base is an ancestor of the Plus checkout, verifies the repository-root payload with `git apply --check`, and then builds DSH from that official source base plus the selected Plus artifacts. There is no alternate revision, fuzzy application, or runtime code in this package.
8
8
 
9
9
  Retire this package when an official DSH release exposes an equivalent Workspace storage restore operation and `@sparkelf/dsh-plugin-backup` can consume it without a local payload.
package/README.zh.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [English](README.md) | 中文
4
4
 
5
- 针对official DSH source revision `cd5ef8148158c3a752a658978873241fdf8e2bbc`的data-only temporary patch。它增加`WorkspaceRegistry.withStorageRestore`,在external file replacement期间关闭Workspace durable domain,并在return前通过正常initialization重开。
5
+ 针对official DSH source revision `fb2c4b9e698e30edb738bca4cf0618587db7d203`的data-only temporary patch。它增加`WorkspaceRegistry.withStorageRestore`,在external file replacement期间关闭Workspace durable domain,并在return前通过正常initialization重开。
6
6
 
7
- target source revision对应`dsh-v0.1.2-alpha.1`。该tag没有匹配的已发布`@deepseek-ai/dsh-workspace` npm artifact,因此该variant不能诚实地指向npm package version。Plus distribution声明这个exact official base revision;materializer验证该base是Plus checkout的ancestor,通过`git apply --check`验证repository-root payload,然后从official source base与selected Plus artifacts build DSH。本package没有alternate revision、fuzzy application或runtime code。
7
+ target source revision对应`dsh-v0.1.3-alpha.1`。该tag没有匹配的已发布`@deepseek-ai/dsh-workspace` npm artifact,因此该variant不能诚实地指向npm package version。Plus distribution声明这个exact official base revision;materializer验证该base是Plus checkout的ancestor,通过`git apply --check`验证repository-root payload,然后从official source base与selected Plus artifacts build DSH。本package没有alternate revision、fuzzy application或runtime code。
8
8
 
9
9
  当official DSH release提供等价Workspace storage restore operation,且`@sparkelf/dsh-plugin-backup`无需local payload即可消费时,retire本package。
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
- "name": "@sparkelf/dsh-patch-workspace-storage-restore",
3
2
  "description": "Data-only patch adding the Workspace storage restore transaction to the exact official DSH source revision",
4
- "version": "0.1.0-rc.9",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "type": "module",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/SparkElf/deepseek-harness-plus.git",
12
- "directory": "patches/npm/workspace-storage-restore"
13
- },
14
- "exports": {
15
- "./package.json": "./package.json",
16
- "./patches/workspace-storage-restore.patch": "./patches/workspace-storage-restore.patch"
17
- },
18
- "files": [
19
- "patches/*.patch"
20
- ],
21
- "license": "MIT",
22
3
  "dshPatch": {
23
4
  "formatVersion": 1,
24
5
  "variants": [
25
6
  {
7
+ "dsh": ">=0.1.6-alpha.1",
8
+ "file": "./patches/workspace-storage-restore.patch",
26
9
  "id": "workspace-storage-restore",
27
- "dsh": ">=0.1.2-alpha.1",
28
10
  "target": {
11
+ "baseRevision": "0a15e36e7f82b6ed45af6fa9759f29b40dcd965d",
29
12
  "kind": "dsh-source",
30
- "baseRevision": "cd5ef8148158c3a752a658978873241fdf8e2bbc",
31
13
  "paths": [
32
14
  "packages/workspace/workspace/"
33
15
  ]
34
- },
35
- "file": "./patches/workspace-storage-restore.patch"
16
+ }
36
17
  }
37
18
  ]
38
- }
39
- }
19
+ },
20
+ "exports": {
21
+ "./package.json": "./package.json",
22
+ "./patches/workspace-storage-restore.patch": "./patches/workspace-storage-restore.patch"
23
+ },
24
+ "files": [
25
+ "patches/*.patch"
26
+ ],
27
+ "license": "MIT",
28
+ "name": "@sparkelf/dsh-patch-workspace-storage-restore",
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "repository": {
33
+ "directory": "patches/npm/workspace-storage-restore",
34
+ "type": "git",
35
+ "url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
36
+ },
37
+ "type": "module",
38
+ "version": "0.2.0-rc.2"
39
+ }
@@ -1,46 +1,8 @@
1
- diff --git a/packages/workspace/workspace/README.i18n.yaml b/packages/workspace/workspace/README.i18n.yaml
2
- index 70a99f420d..1a1479948e 100644
3
- --- a/packages/workspace/workspace/README.i18n.yaml
4
- +++ b/packages/workspace/workspace/README.i18n.yaml
5
- @@ -2,5 +2,5 @@
6
- # side as of the last confirmed-consistent state. Both languages carry equal authority;
7
- # after editing either side, bring the other along and re-record with:
8
- # pnpm run verify-translation-pairing --write packages/workspace/workspace/README.md
9
- -README.md: 49ca861742fe9ea5f36edbaeb8d9700c475b1d50
10
- -README.zh.md: 707044970b716577d2f1f95e558c341e217985c4
11
- +README.md: daa779bee34760eacc222341bfcc09fb1052cb00
12
- +README.zh.md: 989f81fc6bedcc5e2616e8ea90452c40ee63ea85
13
- diff --git a/packages/workspace/workspace/README.md b/packages/workspace/workspace/README.md
14
- index 49ca861742..daa779bee3 100644
15
- --- a/packages/workspace/workspace/README.md
16
- +++ b/packages/workspace/workspace/README.md
17
- @@ -89,6 +89,8 @@ This section explains the design decisions behind the feature and points at the
18
-
19
- The API is one small family with two owners: `WorkspaceRegistry` creates, orders, and deletes projects and manages their session accounting; the `Workspace` entity exposes the display title, directory status, and the session projection. Per-method contracts live in the code, not this README — see [src/index.ts](src/index.ts) and [src/entity.ts](src/entity.ts).
20
-
21
- +`WorkspaceRegistry.withStorageRestore` waits for current registry mutations, closes the durable domain while its caller replaces external files, and always reopens through the startup initialization path before resolving so records, archive state, and Session indexes share the restored baseline.
22
- +
23
- ### Source map
24
-
25
- | File | Role |
26
- diff --git a/packages/workspace/workspace/README.zh.md b/packages/workspace/workspace/README.zh.md
27
- index 707044970b..989f81fc6b 100644
28
- --- a/packages/workspace/workspace/README.zh.md
29
- +++ b/packages/workspace/workspace/README.zh.md
30
- @@ -89,6 +89,8 @@ ctx.workspaceRegistry.list() // shows the project, newest first
31
-
32
- 该 API 是一个由两个所有者构成的小家族:`WorkspaceRegistry` 负责创建、排序与删除项目并管理其会话记账;`Workspace` 实体暴露显示标题、目录状态与会话投影。各方法的精确约定在代码中,而非本 README——参见 [src/index.ts](src/index.ts) 与 [src/entity.ts](src/entity.ts)。
33
-
34
- +`WorkspaceRegistry.withStorageRestore` 会等待当前 registry mutations,在caller替换external files期间关闭durable domain,并始终在resolve前通过startup initialization path重开,使records、archive state与Session indexes共享恢复后的baseline。
35
- +
36
- ### 源码地图
37
-
38
- | 文件 | 职责 |
39
1
  diff --git a/packages/workspace/workspace/src/index.ts b/packages/workspace/workspace/src/index.ts
40
- index 87edb28cad..2f6d57b8ab 100644
2
+ index 037344fce4..7b6d915807 100644
41
3
  --- a/packages/workspace/workspace/src/index.ts
42
4
  +++ b/packages/workspace/workspace/src/index.ts
43
- @@ -11,7 +11,7 @@ import { basename } from 'node:path'
5
+ @@ -10,7 +10,7 @@ import { stat } from 'node:fs/promises'
44
6
  import { Context, Service } from '@deepseek-ai/cordis'
45
7
  import type { SessionHeader, SessionId } from '@deepseek-ai/dsh-session'
46
8
  import type {} from '@deepseek-ai/dsh-session-persistence'
@@ -49,7 +11,7 @@ index 87edb28cad..2f6d57b8ab 100644
49
11
  import { WorkspaceEntity } from './entity.ts'
50
12
  import type { WorkspaceEntityHost } from './entity.ts'
51
13
 
52
- @@ -92,6 +92,7 @@ const compareHeaders = (left: SessionHeader, right: SessionHeader): number =>
14
+ @@ -91,6 +91,7 @@ const compareHeaders = (left: SessionHeader, right: SessionHeader): number =>
53
15
  export class WorkspaceRegistry extends Service {
54
16
  static inject = ['storageDomain', 'sessionPersistence']
55
17
 
@@ -57,7 +19,7 @@ index 87edb28cad..2f6d57b8ab 100644
57
19
  private table?: KvTable<WorkspaceId, WorkspaceRecord>
58
20
  private global?: DomainGlobal<WorkspaceDomainState>
59
21
  private state?: WorkspaceDomainState
60
- @@ -117,8 +118,51 @@ export class WorkspaceRegistry extends Service {
22
+ @@ -116,8 +117,51 @@ export class WorkspaceRegistry extends Service {
61
23
 
62
24
  /** Open the domain, finish bootstrap when required, and rebuild the ordered cache. */
63
25
  protected async [Service.init](): Promise<void> {