terminalhire 0.9.1 → 0.9.2
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/bin/jpi-chat-read.js +3 -7
- package/dist/bin/jpi-chat.js +4 -12
- package/dist/bin/jpi-dispatch.js +4 -12
- package/package.json +1 -1
|
@@ -4200,8 +4200,7 @@ async function ensureChatDisclosure(opts = {}) {
|
|
|
4200
4200
|
return { shown: true, acknowledged: true };
|
|
4201
4201
|
}
|
|
4202
4202
|
function defaultSessionCookie() {
|
|
4203
|
-
|
|
4204
|
-
return typeof v === "string" && v.length > 0 ? v : null;
|
|
4203
|
+
return readWebSessionCookie();
|
|
4205
4204
|
}
|
|
4206
4205
|
async function fetchIntroList(deps = {}) {
|
|
4207
4206
|
const fetchImpl = deps.fetchImpl ?? ((...a) => globalThis.fetch(...a));
|
|
@@ -4250,6 +4249,7 @@ var init_jpi_chat = __esm({
|
|
|
4250
4249
|
"use strict";
|
|
4251
4250
|
init_chat_client();
|
|
4252
4251
|
init_config();
|
|
4252
|
+
init_web_session();
|
|
4253
4253
|
CHAT_BASE2 = process.env["TERMINALHIRE_API_URL"] || "https://www.terminalhire.com";
|
|
4254
4254
|
GH_SESSION_COOKIE2 = "__jpi_gh_session";
|
|
4255
4255
|
ANSI_CSI = /\x1b\[[0-?]*[ -/]*[@-~]/g;
|
|
@@ -4360,11 +4360,7 @@ function writeProblem(output, result, target) {
|
|
|
4360
4360
|
switch (result.status) {
|
|
4361
4361
|
case "not-linked":
|
|
4362
4362
|
output.write(
|
|
4363
|
-
`
|
|
4364
|
-
No linked web session found on this machine.
|
|
4365
|
-
Sign in at ${CHAT_BASE3}/dashboard, then re-run.
|
|
4366
|
-
|
|
4367
|
-
`
|
|
4363
|
+
"\n No linked web session found on this machine.\n Run `terminalhire link` to connect this terminal to your account, then re-run.\n\n"
|
|
4368
4364
|
);
|
|
4369
4365
|
return "not-linked";
|
|
4370
4366
|
case "expired":
|
package/dist/bin/jpi-chat.js
CHANGED
|
@@ -4269,11 +4269,7 @@ function writeProblem(output, result, target) {
|
|
|
4269
4269
|
switch (result.status) {
|
|
4270
4270
|
case "not-linked":
|
|
4271
4271
|
output.write(
|
|
4272
|
-
`
|
|
4273
|
-
No linked web session found on this machine.
|
|
4274
|
-
Sign in at ${CHAT_BASE2}/dashboard, then re-run.
|
|
4275
|
-
|
|
4276
|
-
`
|
|
4272
|
+
"\n No linked web session found on this machine.\n Run `terminalhire link` to connect this terminal to your account, then re-run.\n\n"
|
|
4277
4273
|
);
|
|
4278
4274
|
return "not-linked";
|
|
4279
4275
|
case "expired":
|
|
@@ -4529,8 +4525,7 @@ async function ensureChatDisclosure(opts = {}) {
|
|
|
4529
4525
|
return { shown: true, acknowledged: true };
|
|
4530
4526
|
}
|
|
4531
4527
|
function defaultSessionCookie() {
|
|
4532
|
-
|
|
4533
|
-
return typeof v === "string" && v.length > 0 ? v : null;
|
|
4528
|
+
return readWebSessionCookie();
|
|
4534
4529
|
}
|
|
4535
4530
|
async function fetchIntroList(deps = {}) {
|
|
4536
4531
|
const fetchImpl = deps.fetchImpl ?? ((...a) => globalThis.fetch(...a));
|
|
@@ -4629,11 +4624,7 @@ async function runChatPane(opts = {}) {
|
|
|
4629
4624
|
const resolved = await resolveConnection(target);
|
|
4630
4625
|
if (resolved.status === "not-linked") {
|
|
4631
4626
|
output.write(
|
|
4632
|
-
`
|
|
4633
|
-
No linked web session found on this machine.
|
|
4634
|
-
Sign in at ${CHAT_BASE3}/dashboard, then re-run.
|
|
4635
|
-
|
|
4636
|
-
`
|
|
4627
|
+
"\n No linked web session found on this machine.\n Run `terminalhire link` to connect this terminal to your account, then re-run.\n\n"
|
|
4637
4628
|
);
|
|
4638
4629
|
return { entered: false, reason: "not-linked" };
|
|
4639
4630
|
}
|
|
@@ -5092,6 +5083,7 @@ var init_jpi_chat = __esm({
|
|
|
5092
5083
|
"bin/jpi-chat.js"() {
|
|
5093
5084
|
init_chat_client();
|
|
5094
5085
|
init_config();
|
|
5086
|
+
init_web_session();
|
|
5095
5087
|
CHAT_BASE3 = process.env["TERMINALHIRE_API_URL"] || "https://www.terminalhire.com";
|
|
5096
5088
|
GH_SESSION_COOKIE2 = "__jpi_gh_session";
|
|
5097
5089
|
HIDE_CURSOR = "\x1B[?25l";
|
package/dist/bin/jpi-dispatch.js
CHANGED
|
@@ -10209,11 +10209,7 @@ function writeProblem(output, result, target) {
|
|
|
10209
10209
|
switch (result.status) {
|
|
10210
10210
|
case "not-linked":
|
|
10211
10211
|
output.write(
|
|
10212
|
-
`
|
|
10213
|
-
No linked web session found on this machine.
|
|
10214
|
-
Sign in at ${CHAT_BASE2}/dashboard, then re-run.
|
|
10215
|
-
|
|
10216
|
-
`
|
|
10212
|
+
"\n No linked web session found on this machine.\n Run `terminalhire link` to connect this terminal to your account, then re-run.\n\n"
|
|
10217
10213
|
);
|
|
10218
10214
|
return "not-linked";
|
|
10219
10215
|
case "expired":
|
|
@@ -10484,8 +10480,7 @@ async function ensureChatDisclosure(opts = {}) {
|
|
|
10484
10480
|
return { shown: true, acknowledged: true };
|
|
10485
10481
|
}
|
|
10486
10482
|
function defaultSessionCookie() {
|
|
10487
|
-
|
|
10488
|
-
return typeof v === "string" && v.length > 0 ? v : null;
|
|
10483
|
+
return readWebSessionCookie();
|
|
10489
10484
|
}
|
|
10490
10485
|
async function fetchIntroList(deps = {}) {
|
|
10491
10486
|
const fetchImpl = deps.fetchImpl ?? ((...a) => globalThis.fetch(...a));
|
|
@@ -10584,11 +10579,7 @@ async function runChatPane(opts = {}) {
|
|
|
10584
10579
|
const resolved = await resolveConnection(target);
|
|
10585
10580
|
if (resolved.status === "not-linked") {
|
|
10586
10581
|
output.write(
|
|
10587
|
-
`
|
|
10588
|
-
No linked web session found on this machine.
|
|
10589
|
-
Sign in at ${CHAT_BASE3}/dashboard, then re-run.
|
|
10590
|
-
|
|
10591
|
-
`
|
|
10582
|
+
"\n No linked web session found on this machine.\n Run `terminalhire link` to connect this terminal to your account, then re-run.\n\n"
|
|
10592
10583
|
);
|
|
10593
10584
|
return { entered: false, reason: "not-linked" };
|
|
10594
10585
|
}
|
|
@@ -11048,6 +11039,7 @@ var init_jpi_chat = __esm({
|
|
|
11048
11039
|
"use strict";
|
|
11049
11040
|
init_chat_client();
|
|
11050
11041
|
init_config();
|
|
11042
|
+
init_web_session();
|
|
11051
11043
|
CHAT_BASE3 = process.env["TERMINALHIRE_API_URL"] || "https://www.terminalhire.com";
|
|
11052
11044
|
GH_SESSION_COOKIE4 = "__jpi_gh_session";
|
|
11053
11045
|
HIDE_CURSOR = "\x1B[?25l";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "terminalhire",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Local-first job matching for developers — ambient job matches in the Claude Code spinner. Matching runs on your machine; your profile never leaves it.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|