@neta-art/cohub-cli 1.20.3 → 1.20.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/dist/commands/works.js +10 -2
- package/package.json +2 -2
package/dist/commands/works.js
CHANGED
|
@@ -70,6 +70,14 @@ function printWork(work) {
|
|
|
70
70
|
{ key: "publishedAt", label: "Published" },
|
|
71
71
|
]);
|
|
72
72
|
}
|
|
73
|
+
function printWorkUrls(result) {
|
|
74
|
+
const lines = [
|
|
75
|
+
result.publicUrl ? `Public URL: ${result.publicUrl}` : null,
|
|
76
|
+
result.content?.url ? `Content URL: ${result.content.url}` : null,
|
|
77
|
+
].filter((line) => Boolean(line));
|
|
78
|
+
if (lines.length)
|
|
79
|
+
console.log(`\n${lines.join("\n")}`);
|
|
80
|
+
}
|
|
73
81
|
async function confirmDelete(opts) {
|
|
74
82
|
if (opts.yes)
|
|
75
83
|
return;
|
|
@@ -124,6 +132,7 @@ export function registerWorks(program) {
|
|
|
124
132
|
if (jsonRequested(opts))
|
|
125
133
|
return outJson(result);
|
|
126
134
|
printWork(result.work);
|
|
135
|
+
printWorkUrls(result);
|
|
127
136
|
}
|
|
128
137
|
catch (e) {
|
|
129
138
|
handleHttp(e);
|
|
@@ -146,8 +155,7 @@ export function registerWorks(program) {
|
|
|
146
155
|
if (jsonRequested(opts))
|
|
147
156
|
return outJson(result);
|
|
148
157
|
printWork(result.work);
|
|
149
|
-
|
|
150
|
-
console.log(`\nURL: ${result.content.url}`);
|
|
158
|
+
printWorkUrls(result);
|
|
151
159
|
}
|
|
152
160
|
catch (e) {
|
|
153
161
|
handleHttp(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neta-art/cohub-cli",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.4",
|
|
4
4
|
"description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@neta-art/generation": "^0.1.7",
|
|
17
17
|
"commander": "^14.0.3",
|
|
18
18
|
"sharp": "^0.34.5",
|
|
19
|
-
"@neta-art/cohub": "1.
|
|
19
|
+
"@neta-art/cohub": "1.33.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|