terminalhire 0.9.1 → 0.10.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.
@@ -4150,7 +4150,8 @@ var init_config = __esm({
4150
4150
  peerConnect: false,
4151
4151
  peerConnectPrompted: false,
4152
4152
  resumePublishPrompted: false,
4153
- chatDisclosureAck: false
4153
+ chatDisclosureAck: false,
4154
+ inboundNudgeMuted: false
4154
4155
  };
4155
4156
  }
4156
4157
  });
@@ -4200,8 +4201,7 @@ async function ensureChatDisclosure(opts = {}) {
4200
4201
  return { shown: true, acknowledged: true };
4201
4202
  }
4202
4203
  function defaultSessionCookie() {
4203
- const v = process.env["TERMINALHIRE_WEB_SESSION"];
4204
- return typeof v === "string" && v.length > 0 ? v : null;
4204
+ return readWebSessionCookie();
4205
4205
  }
4206
4206
  async function fetchIntroList(deps = {}) {
4207
4207
  const fetchImpl = deps.fetchImpl ?? ((...a) => globalThis.fetch(...a));
@@ -4250,6 +4250,7 @@ var init_jpi_chat = __esm({
4250
4250
  "use strict";
4251
4251
  init_chat_client();
4252
4252
  init_config();
4253
+ init_web_session();
4253
4254
  CHAT_BASE2 = process.env["TERMINALHIRE_API_URL"] || "https://www.terminalhire.com";
4254
4255
  GH_SESSION_COOKIE2 = "__jpi_gh_session";
4255
4256
  ANSI_CSI = /\x1b\[[0-?]*[ -/]*[@-~]/g;
@@ -4360,11 +4361,7 @@ function writeProblem(output, result, target) {
4360
4361
  switch (result.status) {
4361
4362
  case "not-linked":
4362
4363
  output.write(
4363
- `
4364
- No linked web session found on this machine.
4365
- Sign in at ${CHAT_BASE3}/dashboard, then re-run.
4366
-
4367
- `
4364
+ "\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
4365
  );
4369
4366
  return "not-linked";
4370
4367
  case "expired":
@@ -4155,7 +4155,8 @@ var init_config = __esm({
4155
4155
  peerConnect: false,
4156
4156
  peerConnectPrompted: false,
4157
4157
  resumePublishPrompted: false,
4158
- chatDisclosureAck: false
4158
+ chatDisclosureAck: false,
4159
+ inboundNudgeMuted: false
4159
4160
  };
4160
4161
  }
4161
4162
  });
@@ -4269,11 +4270,7 @@ function writeProblem(output, result, target) {
4269
4270
  switch (result.status) {
4270
4271
  case "not-linked":
4271
4272
  output.write(
4272
- `
4273
- No linked web session found on this machine.
4274
- Sign in at ${CHAT_BASE2}/dashboard, then re-run.
4275
-
4276
- `
4273
+ "\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
4274
  );
4278
4275
  return "not-linked";
4279
4276
  case "expired":
@@ -4529,8 +4526,7 @@ async function ensureChatDisclosure(opts = {}) {
4529
4526
  return { shown: true, acknowledged: true };
4530
4527
  }
4531
4528
  function defaultSessionCookie() {
4532
- const v = process.env["TERMINALHIRE_WEB_SESSION"];
4533
- return typeof v === "string" && v.length > 0 ? v : null;
4529
+ return readWebSessionCookie();
4534
4530
  }
4535
4531
  async function fetchIntroList(deps = {}) {
4536
4532
  const fetchImpl = deps.fetchImpl ?? ((...a) => globalThis.fetch(...a));
@@ -4629,11 +4625,7 @@ async function runChatPane(opts = {}) {
4629
4625
  const resolved = await resolveConnection(target);
4630
4626
  if (resolved.status === "not-linked") {
4631
4627
  output.write(
4632
- `
4633
- No linked web session found on this machine.
4634
- Sign in at ${CHAT_BASE3}/dashboard, then re-run.
4635
-
4636
- `
4628
+ "\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
4629
  );
4638
4630
  return { entered: false, reason: "not-linked" };
4639
4631
  }
@@ -5092,6 +5084,7 @@ var init_jpi_chat = __esm({
5092
5084
  "bin/jpi-chat.js"() {
5093
5085
  init_chat_client();
5094
5086
  init_config();
5087
+ init_web_session();
5095
5088
  CHAT_BASE3 = process.env["TERMINALHIRE_API_URL"] || "https://www.terminalhire.com";
5096
5089
  GH_SESSION_COOKIE2 = "__jpi_gh_session";
5097
5090
  HIDE_CURSOR = "\x1B[?25l";
@@ -15,7 +15,8 @@ var DEFAULT_CONFIG = {
15
15
  peerConnect: false,
16
16
  peerConnectPrompted: false,
17
17
  resumePublishPrompted: false,
18
- chatDisclosureAck: false
18
+ chatDisclosureAck: false,
19
+ inboundNudgeMuted: false
19
20
  };
20
21
  function readConfig() {
21
22
  try {