@zswarm/cli 0.1.6 → 0.1.7
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/output.js +4 -1
- package/package.json +2 -2
package/dist/output.js
CHANGED
|
@@ -5,7 +5,10 @@ export function routingNotice(result, interactive) {
|
|
|
5
5
|
return "";
|
|
6
6
|
// Prevent terminal control characters or newlines in host/session labels.
|
|
7
7
|
const label = (s) => JSON.stringify(s);
|
|
8
|
+
const data = result.ok && result.data && typeof result.data === "object" ? result.data : null;
|
|
9
|
+
const polling = data?.polling;
|
|
8
10
|
return `zswarm: ${route.transport} ${label(route.host)}` +
|
|
9
11
|
(route.session ? ` session=${label(route.session)}` : "") +
|
|
10
|
-
` (via ${route.origin.transport}; session ${route.origin.session})\n
|
|
12
|
+
` (via ${route.origin.transport}; session ${route.origin.session})\n` +
|
|
13
|
+
(polling?.recommendation ? `zswarm: ${label(polling.recommendation)}\n` : "");
|
|
11
14
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zswarm/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "zSwarm CLI — list, send, dump Zellij panes",
|
|
6
6
|
"bin": {
|
|
7
7
|
"zswarm": "./dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@zswarm/core": "0.1.
|
|
10
|
+
"@zswarm/core": "0.1.7"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/node": "22.14.1",
|