jowork 0.2.0 → 0.2.1
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/cli.js +47 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2586,18 +2586,58 @@ function setupSkillCommand(program2) {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
} catch {
|
|
2588
2588
|
}
|
|
2589
|
+
const { listCredentials: listCredentials2 } = await import("./credential-store-ZRZCSRPC.js");
|
|
2590
|
+
const connectedSources = listCredentials2();
|
|
2589
2591
|
console.log("");
|
|
2590
2592
|
console.log(" ============");
|
|
2591
2593
|
console.log(" JoWork is ready!");
|
|
2592
2594
|
console.log("");
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2595
|
+
if (!mcpRegistered) {
|
|
2596
|
+
console.log(" \u26A0 Restart Claude Code to activate MCP tools (search_data, read_memory, etc.)");
|
|
2597
|
+
console.log("");
|
|
2598
|
+
}
|
|
2599
|
+
if (connectedSources.length === 0) {
|
|
2600
|
+
console.log(" Next: Connect your first data source. Run one of:");
|
|
2601
|
+
console.log("");
|
|
2602
|
+
console.log(" jowork connect github # Uses GITHUB_PERSONAL_ACCESS_TOKEN env var");
|
|
2603
|
+
console.log(" jowork connect gitlab --token <token>");
|
|
2604
|
+
console.log(" jowork connect linear --api-key <key>");
|
|
2605
|
+
console.log(" jowork connect posthog --api-key <key> --project-id <id>");
|
|
2606
|
+
console.log(" jowork connect feishu --app-id <id> --app-secret <secret>");
|
|
2607
|
+
console.log("");
|
|
2608
|
+
console.log(' Or in Claude Code, just say: "connect my GitHub"');
|
|
2609
|
+
} else {
|
|
2610
|
+
console.log(` ${connectedSources.length} data source(s) connected: ${connectedSources.join(", ")}`);
|
|
2611
|
+
console.log("");
|
|
2612
|
+
console.log(" Try in Claude Code:");
|
|
2613
|
+
console.log(" /jowork Status overview");
|
|
2614
|
+
console.log(" /jowork-dashboard Open companion panel");
|
|
2615
|
+
console.log(' "search my PRs" Agent uses search_data automatically');
|
|
2616
|
+
}
|
|
2600
2617
|
console.log("");
|
|
2618
|
+
if (!connectedSources.includes("github") && process.env["GITHUB_PERSONAL_ACCESS_TOKEN"]) {
|
|
2619
|
+
console.log(" Detected GITHUB_PERSONAL_ACCESS_TOKEN in environment.");
|
|
2620
|
+
console.log(" Connecting GitHub automatically...");
|
|
2621
|
+
try {
|
|
2622
|
+
execSync('jowork connect github --token "$GITHUB_PERSONAL_ACCESS_TOKEN"', {
|
|
2623
|
+
stdio: "pipe",
|
|
2624
|
+
env: process.env
|
|
2625
|
+
});
|
|
2626
|
+
console.log(" \u2713 GitHub connected! Running initial sync...");
|
|
2627
|
+
try {
|
|
2628
|
+
const output = execSync("jowork sync --source github", {
|
|
2629
|
+
encoding: "utf-8",
|
|
2630
|
+
timeout: 3e4,
|
|
2631
|
+
env: process.env
|
|
2632
|
+
});
|
|
2633
|
+
console.log(output.trim().split("\n").map((l) => " " + l).join("\n"));
|
|
2634
|
+
} catch {
|
|
2635
|
+
}
|
|
2636
|
+
} catch (err) {
|
|
2637
|
+
console.log(` \u26A0 Could not auto-connect GitHub: ${err}`);
|
|
2638
|
+
}
|
|
2639
|
+
console.log("");
|
|
2640
|
+
}
|
|
2601
2641
|
});
|
|
2602
2642
|
}
|
|
2603
2643
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jowork",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "AI Agent Infrastructure — let AI agents truly understand your work. Connect data sources, give agents awareness and goals. Local-first, one command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|