@neta-art/cohub-cli 3.1.3 → 3.1.5

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/dist/avatar.d.ts CHANGED
@@ -9,10 +9,14 @@ export declare function uploadAvatarAsset(input: {
9
9
  purpose: PublicAssetPurpose;
10
10
  objectKey: string;
11
11
  publicUrl: string;
12
- uploadMethod: "POST";
13
12
  uploadUrl: string;
13
+ } & ({
14
+ uploadMethod: "POST";
14
15
  uploadFields: Record<string, string>;
15
- }>;
16
+ } | {
17
+ uploadMethod: "PUT";
18
+ uploadHeaders?: Record<string, string>;
19
+ })>;
16
20
  export declare function normalizeChatImageFile(path: string): Promise<Buffer>;
17
21
  export declare function uploadChatImageAsset(input: {
18
22
  client: CohubHttpClient;
@@ -23,8 +27,16 @@ export declare function uploadChatImageAsset(input: {
23
27
  purpose: PublicAssetPurpose;
24
28
  objectKey: string;
25
29
  publicUrl: string;
26
- uploadMethod: "POST";
27
30
  uploadUrl: string;
31
+ uploadMethod: "POST";
28
32
  uploadFields: Record<string, string>;
29
33
  size: number;
34
+ } | {
35
+ purpose: PublicAssetPurpose;
36
+ objectKey: string;
37
+ publicUrl: string;
38
+ uploadUrl: string;
39
+ uploadMethod: "PUT";
40
+ uploadHeaders?: Record<string, string>;
41
+ size: number;
30
42
  }>;
@@ -185,7 +185,7 @@ export function registerWorks(program) {
185
185
  worksCmd
186
186
  .command("publish <slug>")
187
187
  .description("Create or publish a work in the target space")
188
- .option("--file <path>", "Publish a HTML file")
188
+ .option("--file <path>", "Publish a file (HTML page, board, or any other file)")
189
189
  .option("--dir <path>", "Publish a directory site")
190
190
  .option("--port <port>", "Publish a public sandbox port")
191
191
  .option("--disabled", "Create as disabled")
@@ -264,7 +264,7 @@ export function registerWorks(program) {
264
264
  .command("update <id>")
265
265
  .description("Update work settings")
266
266
  .option("--slug <slug>", "New work slug")
267
- .option("--file <path>", "Use a HTML file target")
267
+ .option("--file <path>", "Use a file target (HTML page, board, or any other file)")
268
268
  .option("--dir <path>", "Use a directory site target")
269
269
  .option("--port <port>", "Use a public sandbox port target")
270
270
  .option("--disabled", "Set status to disabled")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neta-art/cohub-cli",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -19,7 +19,7 @@
19
19
  "commander": "^15.0.0",
20
20
  "pixi.js": "^8.19.0",
21
21
  "sharp": "^0.35.3",
22
- "@neta-art/cohub": "4.0.1"
22
+ "@neta-art/cohub": "4.2.0"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"