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.
- package/dist/bin/jpi-chat-read.js +2 -1
- package/dist/bin/jpi-chat.js +2 -1
- package/dist/bin/jpi-config.js +2 -1
- package/dist/bin/jpi-devs.js +17 -1
- package/dist/bin/jpi-dispatch.js +344 -218
- package/dist/bin/jpi-intro.js +55 -12
- package/dist/bin/jpi-link.js +44 -0
- package/dist/bin/jpi-login.js +2 -1
- package/dist/bin/jpi-refresh.js +19 -2
- package/dist/bin/peer-connect-prompt.js +2 -1
- package/dist/src/config.js +2 -1
- package/dist/src/intro.js +54 -11
- package/dist/src/link.js +37 -0
- package/package.json +1 -1
|
@@ -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
|
});
|
package/dist/bin/jpi-chat.js
CHANGED
|
@@ -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
|
});
|
package/dist/bin/jpi-config.js
CHANGED
package/dist/bin/jpi-devs.js
CHANGED
|
@@ -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
|
-
|
|
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(", "));
|