@gatherthread/dsh-host 0.1.0-alpha.3 → 0.1.0-alpha.4

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.md CHANGED
@@ -19,7 +19,7 @@ The package does not install a DSH runtime dependency.
19
19
  After `@gatherthread/dsh-host` is published, the ordinary three-step path is:
20
20
 
21
21
  ```text
22
- npx @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web add @gatherthread/dsh-host@0.1.0-alpha.3
22
+ npx @deepseek-ai/dsh@0.1.2-rc.1 plugin --profile web add @gatherthread/dsh-host@0.1.0-alpha.4
23
23
  npx @deepseek-ai/dsh@0.1.2-rc.1 web
24
24
  # In DSH: Settings -> GatherThread / 共序 -> Sign in and pair
25
25
  ```
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gatherthread/dsh-host",
4
- "version": "0.1.0-alpha.3",
4
+ "version": "0.1.0-alpha.4",
5
5
  "license": "Apache-2.0",
6
6
  "defaultEnabled": false,
7
7
  "hostEntry": "@gatherthread/dsh-host",
@@ -191,10 +191,10 @@ var HttpCollaborationClient = class {
191
191
  const body = requiredObject(await this.#request(`/snapshot-requests/${encodeURIComponent(requestId)}`));
192
192
  return fromWireSnapshotRequest(body.snapshot_request ?? body);
193
193
  }
194
- async createSnapshotRequest(sessionId) {
194
+ async createSnapshotRequest(sessionId, kind = "immutable") {
195
195
  const body = requiredObject(await this.#request(`/sessions/${encodeURIComponent(sessionId)}/snapshot-requests`, {
196
196
  method: "POST",
197
- body: "{}"
197
+ body: JSON.stringify({ kind })
198
198
  }));
199
199
  return fromWireSnapshotRequest(body.snapshot_request ?? body);
200
200
  }
@@ -315,6 +315,7 @@ function fromWireSnapshotRequest(value) {
315
315
  return {
316
316
  id: requiredString(input.id, "snapshot_request.id"),
317
317
  sessionId: requiredString(input.session_id, "snapshot_request.session_id"),
318
+ kind: input.kind === "visible_history_replace" ? "visible_history_replace" : "immutable",
318
319
  throughSequence: requiredNumber(input.through_sequence, "snapshot_request.through_sequence"),
319
320
  status,
320
321
  ...createdAt === void 0 ? {} : { createdAt },
@@ -512,10 +512,10 @@ var HttpCollaborationClient = class {
512
512
  const body = requiredObject2(await this.#request(`/snapshot-requests/${encodeURIComponent(requestId)}`));
513
513
  return fromWireSnapshotRequest(body.snapshot_request ?? body);
514
514
  }
515
- async createSnapshotRequest(sessionId) {
515
+ async createSnapshotRequest(sessionId, kind = "immutable") {
516
516
  const body = requiredObject2(await this.#request(`/sessions/${encodeURIComponent(sessionId)}/snapshot-requests`, {
517
517
  method: "POST",
518
- body: "{}"
518
+ body: JSON.stringify({ kind })
519
519
  }));
520
520
  return fromWireSnapshotRequest(body.snapshot_request ?? body);
521
521
  }
@@ -636,6 +636,7 @@ function fromWireSnapshotRequest(value) {
636
636
  return {
637
637
  id: requiredString2(input.id, "snapshot_request.id"),
638
638
  sessionId: requiredString2(input.session_id, "snapshot_request.session_id"),
639
+ kind: input.kind === "visible_history_replace" ? "visible_history_replace" : "immutable",
639
640
  throughSequence: requiredNumber(input.through_sequence, "snapshot_request.through_sequence"),
640
641
  status,
641
642
  ...createdAt === void 0 ? {} : { createdAt },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gatherthread/dsh-host",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "Opt-in GatherThread integration for the DeepSeek Harness Web profile",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {