terminalhire 0.42.34 → 0.42.35
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-bounties.js +8 -0
- package/dist/bin/jpi-chat.js +10 -3
- package/dist/bin/jpi-claim.js +260 -117
- package/dist/bin/jpi-dispatch.js +272 -120
- package/dist/bin/jpi-hub.js +10 -3
- package/dist/bin/jpi-inbox.js +10 -3
- package/dist/bin/jpi-intro.js +10 -3
- package/dist/bin/jpi-link.js +10 -3
- package/dist/bin/jpi-login.js +8 -2
- package/dist/bin/jpi-mcp.js +260 -117
- package/dist/bin/jpi-run.js +237 -100
- package/dist/bin/jpi-sync.js +8 -2
- package/dist/bin/jpi-trajectory.js +10 -3
- package/dist/bin/peer-connect-prompt.js +8 -2
- package/dist/src/intro.js +10 -3
- package/dist/src/link.js +10 -3
- package/dist/src/trajectory.js +10 -3
- package/package.json +1 -1
package/dist/bin/jpi-bounties.js
CHANGED
|
@@ -12592,6 +12592,11 @@ function wrapIndented(text, indent, width) {
|
|
|
12592
12592
|
lines.push(pad + line);
|
|
12593
12593
|
return lines;
|
|
12594
12594
|
}
|
|
12595
|
+
function projectMarkerLine(bounty) {
|
|
12596
|
+
const tasks = bounty?.project?.tasks;
|
|
12597
|
+
if (typeof tasks !== "number" || !Number.isInteger(tasks) || tasks <= 0) return null;
|
|
12598
|
+
return tasks > 1 ? `project \xB7 ${tasks} tasks` : "project";
|
|
12599
|
+
}
|
|
12595
12600
|
function printBounty(i, job, score, reason, matchedTags, claimedIds = /* @__PURE__ */ new Set(), continuityNote = null) {
|
|
12596
12601
|
const b = job.bounty ?? {};
|
|
12597
12602
|
const stars = b.repoStars != null ? ` \xB7 ${b.repoStars}\u2605` : "";
|
|
@@ -12607,6 +12612,8 @@ ${i + 1}. ${linkTitle(job.title, job.url)} [${ref}]`);
|
|
|
12607
12612
|
console.log(
|
|
12608
12613
|
` ${formatAmount(b)}${effort} \xB7 ${sanitizeText(b.repoFullName ?? job.company)}${stars}${scoreStr}${contend}${badge}`
|
|
12609
12614
|
);
|
|
12615
|
+
const marker = projectMarkerLine(b);
|
|
12616
|
+
if (marker) console.log(` ${marker}`);
|
|
12610
12617
|
if (reason) console.log(` ${reason}`);
|
|
12611
12618
|
if (continuityNote) console.log(` ${continuityNote}`);
|
|
12612
12619
|
if (b.publicSummary) {
|
|
@@ -12862,6 +12869,7 @@ export {
|
|
|
12862
12869
|
getBounties,
|
|
12863
12870
|
isPinnedFounderBounty,
|
|
12864
12871
|
printBounty,
|
|
12872
|
+
projectMarkerLine,
|
|
12865
12873
|
rankBounties,
|
|
12866
12874
|
run,
|
|
12867
12875
|
wrapIndented
|
package/dist/bin/jpi-chat.js
CHANGED
|
@@ -5978,10 +5978,17 @@ var init_profile = __esm({
|
|
|
5978
5978
|
// src/open-url.js
|
|
5979
5979
|
var open_url_exports = {};
|
|
5980
5980
|
__export(open_url_exports, {
|
|
5981
|
-
openInBrowser: () => openInBrowser
|
|
5981
|
+
openInBrowser: () => openInBrowser,
|
|
5982
|
+
shouldOpenBrowser: () => shouldOpenBrowser
|
|
5982
5983
|
});
|
|
5983
|
-
import { spawn } from "child_process";
|
|
5984
|
-
function
|
|
5984
|
+
import { spawn as nodeSpawn } from "child_process";
|
|
5985
|
+
function shouldOpenBrowser(env = process.env) {
|
|
5986
|
+
if (env.NODE_TEST_CONTEXT) return false;
|
|
5987
|
+
const off = String(env.TERMINALHIRE_NO_BROWSER ?? "").trim().toLowerCase();
|
|
5988
|
+
return !(off === "1" || off === "true");
|
|
5989
|
+
}
|
|
5990
|
+
function openInBrowser(url, { env = process.env, spawn = nodeSpawn } = {}) {
|
|
5991
|
+
if (!shouldOpenBrowser(env)) return;
|
|
5985
5992
|
let cmd;
|
|
5986
5993
|
let args;
|
|
5987
5994
|
if (process.platform === "darwin") {
|