terminalhire 0.10.0 → 0.10.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.
@@ -4151,7 +4151,8 @@ var init_config = __esm({
4151
4151
  peerConnectPrompted: false,
4152
4152
  resumePublishPrompted: false,
4153
4153
  chatDisclosureAck: false,
4154
- inboundNudgeMuted: false
4154
+ inboundNudgeMuted: false,
4155
+ inboundNudgeDisclosed: false
4155
4156
  };
4156
4157
  }
4157
4158
  });
@@ -4156,7 +4156,8 @@ var init_config = __esm({
4156
4156
  peerConnectPrompted: false,
4157
4157
  resumePublishPrompted: false,
4158
4158
  chatDisclosureAck: false,
4159
- inboundNudgeMuted: false
4159
+ inboundNudgeMuted: false,
4160
+ inboundNudgeDisclosed: false
4160
4161
  };
4161
4162
  }
4162
4163
  });
@@ -16,7 +16,8 @@ var DEFAULT_CONFIG = {
16
16
  peerConnectPrompted: false,
17
17
  resumePublishPrompted: false,
18
18
  chatDisclosureAck: false,
19
- inboundNudgeMuted: false
19
+ inboundNudgeMuted: false,
20
+ inboundNudgeDisclosed: false
20
21
  };
21
22
  function readConfig() {
22
23
  try {
@@ -6251,6 +6251,15 @@ function reportMatched(results, fetchImpl = fetch) {
6251
6251
  } catch {
6252
6252
  }
6253
6253
  }
6254
+ function excludeOwnCard(results, ownLogin) {
6255
+ if (!Array.isArray(results)) return results;
6256
+ if (typeof ownLogin !== "string" || ownLogin.length === 0) return results;
6257
+ const own = ownLogin.toLowerCase();
6258
+ return results.filter((r) => {
6259
+ const handle = r?.job?.company;
6260
+ return typeof handle !== "string" || handle.toLowerCase() !== own;
6261
+ });
6262
+ }
6254
6263
 
6255
6264
  // bin/jpi-devs.js
6256
6265
  var API_URL2 = process.env["TERMINALHIRE_API_URL"] ?? process.env["JPI_API_URL"] ?? "https://terminalhire.com";
@@ -6327,7 +6336,14 @@ async function run() {
6327
6336
  console.log("\nNo builders or projects published yet. Check back soon \u2014 the directory fills as devs publish.");
6328
6337
  return;
6329
6338
  }
6330
- const results = match2(fp, cards, SHOW_ALL ? cards.length : LIMIT);
6339
+ let results = match2(fp, cards, SHOW_ALL ? cards.length : LIMIT);
6340
+ let ownLogin;
6341
+ try {
6342
+ const { readProfile: readProfile2 } = await Promise.resolve().then(() => (init_profile(), profile_exports));
6343
+ ownLogin = (await readProfile2())?.github?.login;
6344
+ } catch {
6345
+ }
6346
+ results = excludeOwnCard(results, ownLogin);
6331
6347
  if (results.length === 0) {
6332
6348
  console.log(`No matching builders or projects for your current ${AS_PROJECT ? "project" : "profile"}.`);
6333
6349
  console.log(" Your tags: " + fp.skillTags.join(", "));