@illuminis/comprism 2.8.0 → 2.9.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.
|
@@ -331,6 +331,8 @@ function openLine(opts) {
|
|
|
331
331
|
url.searchParams.set('client', opts.client);
|
|
332
332
|
if (opts.tenant)
|
|
333
333
|
url.searchParams.set('tenant', opts.tenant);
|
|
334
|
+
if (opts.lineId)
|
|
335
|
+
url.searchParams.set('line', opts.lineId);
|
|
334
336
|
let s;
|
|
335
337
|
try {
|
|
336
338
|
s = new Ctor(url.toString());
|
package/out/cli-start.js
CHANGED
|
@@ -71,10 +71,13 @@ function main() {
|
|
|
71
71
|
// Opened at start when signed in, or the moment a sign in is saved, so the
|
|
72
72
|
// session that follows signing in can reach this computer at once.
|
|
73
73
|
let line = null;
|
|
74
|
+
// This copy's own line: with many copies on one computer, each job's
|
|
75
|
+
// commands come back to the copy that started it, and no other.
|
|
76
|
+
const lineId = crypto.randomUUID();
|
|
74
77
|
const openLineNow = () => {
|
|
75
78
|
if (line || !card?.workspaceKey)
|
|
76
79
|
return;
|
|
77
|
-
line = (0, index_1.openLine)({ baseUrl: (card.url || server).replace(/\/+$/, ''), token: () => card?.workspaceKey ?? '', client: 'terminal',
|
|
80
|
+
line = (0, index_1.openLine)({ baseUrl: (card.url || server).replace(/\/+$/, ''), token: () => card?.workspaceKey ?? '', client: 'terminal', lineId,
|
|
78
81
|
...(card.tenant ? { tenant: card.tenant } : {}),
|
|
79
82
|
...(process.env.COMPRISM_LINE_LOG ? { log: (l) => process.stderr.write(`[line] ${l}\n`) } : {}) });
|
|
80
83
|
};
|
|
@@ -106,7 +109,7 @@ function main() {
|
|
|
106
109
|
door.onopen = () => {
|
|
107
110
|
door.send(JSON.stringify({
|
|
108
111
|
token: card?.workspaceKey ?? '', tenant: card?.tenant, words: process.argv.slice(2), version: VERSION,
|
|
109
|
-
folder: process.cwd(), machine: os.hostname(), term: process.env.TERM, install: (0, run_ordered_1.installedBy)(__filename),
|
|
112
|
+
folder: process.cwd(), machine: os.hostname(), line: lineId, term: process.env.TERM, install: (0, run_ordered_1.installedBy)(__filename),
|
|
110
113
|
termProgram: process.env.TERM_PROGRAM,
|
|
111
114
|
cols: process.stdout.columns, rows: process.stdout.rows,
|
|
112
115
|
}));
|
package/out/server.generated.js
CHANGED
|
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BUILD_COMMIT = exports.HOME_SERVER = void 0;
|
|
4
4
|
// Written by the build. Do not edit.
|
|
5
5
|
exports.HOME_SERVER = "https://completionprism.illuminis.ai";
|
|
6
|
-
exports.BUILD_COMMIT = "
|
|
6
|
+
exports.BUILD_COMMIT = "c237d765b05b6095ab4dadbf4f02510482e1d0b1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@illuminis/comprism",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
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,
|