terminalhire 0.42.19 → 0.42.21
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/claim-push-bg.js +1 -1
- package/dist/bin/jpi-chat-read.js +1 -1
- package/dist/bin/jpi-chat.js +1 -1
- package/dist/bin/jpi-claim.js +974 -139
- package/dist/bin/jpi-contribute.js +6 -1
- package/dist/bin/jpi-dispatch.js +1144 -186
- package/dist/bin/jpi-hub.js +1 -1
- package/dist/bin/jpi-inbox.js +1 -1
- package/dist/bin/jpi-login.js +10 -5
- package/dist/bin/jpi-mcp-chat.js +1 -1
- package/dist/bin/jpi-mcp.js +983 -148
- package/dist/bin/jpi-refresh.js +1 -1
- package/dist/bin/jpi-run.js +1227 -218
- package/dist/src/chat-client.js +1 -1
- package/dist/src/chat-keystore.js +1 -1
- package/dist/src/github-auth.js +6 -1
- package/package.json +1 -1
package/dist/bin/jpi-hub.js
CHANGED
|
@@ -11732,7 +11732,7 @@ var init_config = __esm({
|
|
|
11732
11732
|
// src/github-auth.ts
|
|
11733
11733
|
import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes6 } from "crypto";
|
|
11734
11734
|
import { readFileSync as readFileSync6, writeFileSync as writeFileSync5, existsSync as existsSync6, rmSync as rmSync3, renameSync as renameSync3 } from "fs";
|
|
11735
|
-
import { join as join8 } from "path";
|
|
11735
|
+
import { join as join8, sep } from "path";
|
|
11736
11736
|
import { homedir as homedir5 } from "os";
|
|
11737
11737
|
async function loadKey() {
|
|
11738
11738
|
return loadOrCreateSharedKey();
|
package/dist/bin/jpi-inbox.js
CHANGED
|
@@ -4491,7 +4491,7 @@ var init_shared_key = __esm({
|
|
|
4491
4491
|
// src/github-auth.ts
|
|
4492
4492
|
import { createCipheriv, createDecipheriv, randomBytes as randomBytes4 } from "crypto";
|
|
4493
4493
|
import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, existsSync as existsSync3, rmSync, renameSync } from "fs";
|
|
4494
|
-
import { join as join4 } from "path";
|
|
4494
|
+
import { join as join4, sep } from "path";
|
|
4495
4495
|
import { homedir as homedir2 } from "os";
|
|
4496
4496
|
async function loadKey() {
|
|
4497
4497
|
return loadOrCreateSharedKey();
|
package/dist/bin/jpi-login.js
CHANGED
|
@@ -352,6 +352,7 @@ __export(github_auth_exports, {
|
|
|
352
352
|
decrypt: () => decrypt,
|
|
353
353
|
deleteGitHubToken: () => deleteGitHubToken,
|
|
354
354
|
encrypt: () => encrypt,
|
|
355
|
+
githubTokenDisplayPath: () => githubTokenDisplayPath,
|
|
355
356
|
hasGitHubToken: () => hasGitHubToken,
|
|
356
357
|
loadKey: () => loadKey,
|
|
357
358
|
readGitHubToken: () => readGitHubToken,
|
|
@@ -362,8 +363,12 @@ __export(github_auth_exports, {
|
|
|
362
363
|
});
|
|
363
364
|
import { createCipheriv, createDecipheriv, randomBytes as randomBytes2 } from "crypto";
|
|
364
365
|
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, existsSync as existsSync3, rmSync, renameSync } from "fs";
|
|
365
|
-
import { join as join4 } from "path";
|
|
366
|
+
import { join as join4, sep } from "path";
|
|
366
367
|
import { homedir as homedir3 } from "os";
|
|
368
|
+
function githubTokenDisplayPath() {
|
|
369
|
+
const home = homedir3();
|
|
370
|
+
return TOKEN_FILE.startsWith(home + sep) ? `~${TOKEN_FILE.slice(home.length)}` : TOKEN_FILE;
|
|
371
|
+
}
|
|
367
372
|
async function loadKey() {
|
|
368
373
|
return loadOrCreateSharedKey();
|
|
369
374
|
}
|
|
@@ -11548,14 +11553,14 @@ async function run() {
|
|
|
11548
11553
|
}
|
|
11549
11554
|
}
|
|
11550
11555
|
async function runLogin() {
|
|
11551
|
-
const { runDeviceFlow: runDeviceFlow2, readGitHubToken: readGitHubToken2 } = await Promise.resolve().then(() => (init_github_auth(), github_auth_exports));
|
|
11556
|
+
const { runDeviceFlow: runDeviceFlow2, readGitHubToken: readGitHubToken2, githubTokenDisplayPath: githubTokenDisplayPath2 } = await Promise.resolve().then(() => (init_github_auth(), github_auth_exports));
|
|
11552
11557
|
const { fetchGitHubProfile: fetchGitHubProfile2, githubToFingerprint: githubToFingerprint2, computeAcceptanceCredential: computeAcceptanceCredential2 } = await Promise.resolve().then(() => (init_src(), src_exports));
|
|
11553
11558
|
const { readProfile: readProfile2, writeProfile: writeProfile2, accumulateGitHubTags: accumulateGitHubTags2 } = await Promise.resolve().then(() => (init_profile(), profile_exports));
|
|
11554
11559
|
console.log("");
|
|
11555
11560
|
console.log(" terminalhire \u2014 Sign in with GitHub");
|
|
11556
11561
|
console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
11557
11562
|
console.log(" Scope: read:user (public profile + public repos only)");
|
|
11558
|
-
console.log(
|
|
11563
|
+
console.log(` Your token is encrypted and stored at ${githubTokenDisplayPath2()}`);
|
|
11559
11564
|
console.log(" GitHub data enriches your LOCAL profile \u2014 no data leaves your machine.");
|
|
11560
11565
|
console.log(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
|
|
11561
11566
|
try {
|
|
@@ -11680,7 +11685,7 @@ async function runLogin() {
|
|
|
11680
11685
|
}
|
|
11681
11686
|
}
|
|
11682
11687
|
async function runLogout() {
|
|
11683
|
-
const { deleteGitHubToken: deleteGitHubToken2, hasGitHubToken: hasGitHubToken2 } = await Promise.resolve().then(() => (init_github_auth(), github_auth_exports));
|
|
11688
|
+
const { deleteGitHubToken: deleteGitHubToken2, hasGitHubToken: hasGitHubToken2, githubTokenDisplayPath: githubTokenDisplayPath2 } = await Promise.resolve().then(() => (init_github_auth(), github_auth_exports));
|
|
11684
11689
|
const { readProfile: readProfile2, writeProfile: writeProfile2 } = await Promise.resolve().then(() => (init_profile(), profile_exports));
|
|
11685
11690
|
const hasToken = await hasGitHubToken2();
|
|
11686
11691
|
if (!hasToken) {
|
|
@@ -11702,7 +11707,7 @@ async function runLogout() {
|
|
|
11702
11707
|
await writeProfile2(profile);
|
|
11703
11708
|
console.log("\n GitHub identity + proof-of-work credential cleared from local profile.");
|
|
11704
11709
|
}
|
|
11705
|
-
console.log(
|
|
11710
|
+
console.log(` GitHub token deleted from ${githubTokenDisplayPath2()}`);
|
|
11706
11711
|
console.log(" Skill tags accumulated from GitHub remain in your profile.");
|
|
11707
11712
|
console.log(" To also delete those: terminalhire profile --delete\n");
|
|
11708
11713
|
}
|
package/dist/bin/jpi-mcp-chat.js
CHANGED
|
@@ -4490,7 +4490,7 @@ var init_shared_key = __esm({
|
|
|
4490
4490
|
// src/github-auth.ts
|
|
4491
4491
|
import { createCipheriv, createDecipheriv, randomBytes as randomBytes4 } from "crypto";
|
|
4492
4492
|
import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, existsSync as existsSync3, rmSync, renameSync } from "fs";
|
|
4493
|
-
import { join as join4 } from "path";
|
|
4493
|
+
import { join as join4, sep } from "path";
|
|
4494
4494
|
import { homedir as homedir2 } from "os";
|
|
4495
4495
|
async function loadKey() {
|
|
4496
4496
|
return loadOrCreateSharedKey();
|