@illuminis/comprism 2.4.0 → 2.4.1
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/out/cli-start.js +4 -2
- package/package.json +1 -1
package/out/cli-start.js
CHANGED
|
@@ -52,6 +52,8 @@ const os = __importStar(require("node:os"));
|
|
|
52
52
|
const index_1 = require("./build/machine/line/index");
|
|
53
53
|
const signIn = __importStar(require("./build/machine/terminal/sign-in"));
|
|
54
54
|
const server_generated_1 = require("./server.generated");
|
|
55
|
+
// This tool's own version, sent so the server can say when a newer one is out.
|
|
56
|
+
const VERSION = require('../package.json').version;
|
|
55
57
|
function main() {
|
|
56
58
|
const card = signIn.readSignIn();
|
|
57
59
|
const server = (card?.url || server_generated_1.HOME_SERVER).replace(/\/+$/, '');
|
|
@@ -75,11 +77,11 @@ function main() {
|
|
|
75
77
|
// The front door: everything typed goes here, everything shown comes back.
|
|
76
78
|
// If the server restarts mid session it is asked again once it answers.
|
|
77
79
|
function connect() {
|
|
78
|
-
door = new WebSocket(`${server.replace(/^http/, 'ws')}/api/v1/front-door/terminal/live?client=terminal`);
|
|
80
|
+
door = new WebSocket(`${server.replace(/^http/, 'ws')}/api/v1/front-door/terminal/live?client=terminal&client_version=${VERSION}`);
|
|
79
81
|
door.binaryType = 'arraybuffer';
|
|
80
82
|
door.onopen = () => {
|
|
81
83
|
door.send(JSON.stringify({
|
|
82
|
-
token: card?.workspaceKey ?? '', tenant: card?.tenant, words: process.argv.slice(2),
|
|
84
|
+
token: card?.workspaceKey ?? '', tenant: card?.tenant, words: process.argv.slice(2), version: VERSION,
|
|
83
85
|
folder: process.cwd(), machine: os.hostname(), term: process.env.TERM,
|
|
84
86
|
termProgram: process.env.TERM_PROGRAM,
|
|
85
87
|
cols: process.stdout.columns, rows: process.stdout.rows,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@illuminis/comprism",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "CompletionPrism in your terminal. A thin shell: what you type goes to CompletionPrism's front door, and what it answers comes back.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|