@neta-art/cohub-cli 6.11.2 → 6.12.0
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/apps.js +10 -0
- package/package.json +2 -2
package/dist/commands/apps.js
CHANGED
|
@@ -31,6 +31,15 @@ function parseJsonObject(value, name) {
|
|
|
31
31
|
}
|
|
32
32
|
return error(`Invalid ${name}`, `${name} must be a JSON object`);
|
|
33
33
|
}
|
|
34
|
+
/** Human-readable version provenance: a session title, a channel, or blank. */
|
|
35
|
+
function formatVersionSource(value) {
|
|
36
|
+
if (!value || typeof value !== "object")
|
|
37
|
+
return "";
|
|
38
|
+
const source = value;
|
|
39
|
+
if (source?.session)
|
|
40
|
+
return source.session.title?.trim() || source.session.id;
|
|
41
|
+
return source?.via ? `via ${source.via}` : "";
|
|
42
|
+
}
|
|
34
43
|
function parseJsonValue(value, name) {
|
|
35
44
|
if (!value)
|
|
36
45
|
return null;
|
|
@@ -599,6 +608,7 @@ export function registerApps(program) {
|
|
|
599
608
|
{ key: "id", label: "ID" },
|
|
600
609
|
{ key: "targetType", label: "Target" },
|
|
601
610
|
{ key: "targetRef", label: "Ref" },
|
|
611
|
+
{ key: "source", label: "Source", format: formatVersionSource },
|
|
602
612
|
{ key: "createdAt", label: "Created" },
|
|
603
613
|
]);
|
|
604
614
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neta-art/cohub-cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.12.0",
|
|
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.20.1",
|
|
21
21
|
"sharp": "^0.35.4",
|
|
22
|
-
"@neta-art/cohub": "8.
|
|
22
|
+
"@neta-art/cohub": "8.17.0"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|