@huaqiu/dsh-artifacts 0.3.14 → 0.3.16

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.
@@ -60,6 +60,19 @@ interface HqEdgePlaceLike {
60
60
  getEditorType?(): string;
61
61
  };
62
62
  placeArtifact?(request: PlaceArtifactRequest): Promise<unknown>;
63
+ /**
64
+ * Same-origin request proxy to HQ Edge (`/hq-edge` bridge). The bridge
65
+ * serializes object bodies to JSON, so multipart is not supported — binary
66
+ * payloads travel base64-encoded in JSON.
67
+ */
68
+ api?: {
69
+ request(request: {
70
+ method: string;
71
+ path: string;
72
+ body?: unknown;
73
+ headers?: Record<string, string>;
74
+ }): Promise<unknown>;
75
+ };
63
76
  }
64
77
  /** Everything a card needs to render + fire the Place action, or null. */
65
78
  interface PlaceSupport {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaqiu/dsh-artifacts",
3
- "version": "0.3.14",
3
+ "version": "0.3.16",
4
4
  "type": "module",
5
5
  "main": "./lib/index.mjs",
6
6
  "types": "./lib/index.d.mts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@deepseek-ai/dsh-home-paths": "^0.1.0-rc.0",
34
- "@huaqiu/dsh-plugin-log": "0.3.14"
34
+ "@huaqiu/dsh-plugin-log": "0.3.16"
35
35
  },
36
36
  "files": [
37
37
  "lib",
package/src/placement.ts CHANGED
@@ -101,6 +101,19 @@ export interface HqEdgePlaceLike {
101
101
  getEditorType?(): string
102
102
  }
103
103
  placeArtifact?(request: PlaceArtifactRequest): Promise<unknown>
104
+ /**
105
+ * Same-origin request proxy to HQ Edge (`/hq-edge` bridge). The bridge
106
+ * serializes object bodies to JSON, so multipart is not supported — binary
107
+ * payloads travel base64-encoded in JSON.
108
+ */
109
+ api?: {
110
+ request(request: {
111
+ method: string
112
+ path: string
113
+ body?: unknown
114
+ headers?: Record<string, string>
115
+ }): Promise<unknown>
116
+ }
104
117
  }
105
118
 
106
119
  /** Everything a card needs to render + fire the Place action, or null. */