jowork 0.3.1 → 0.3.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/cli.js
CHANGED
|
@@ -102,7 +102,7 @@ function initCommand(program2) {
|
|
|
102
102
|
default: true
|
|
103
103
|
}]);
|
|
104
104
|
if (continueSetup) {
|
|
105
|
-
const { runSetupWizard } = await import("./setup-
|
|
105
|
+
const { runSetupWizard } = await import("./setup-GDFYCCH3.js");
|
|
106
106
|
await runSetupWizard();
|
|
107
107
|
} else {
|
|
108
108
|
console.log("");
|
|
@@ -1471,12 +1471,19 @@ async function connectPostHog(opts) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
console.log("Verifying PostHog credentials...");
|
|
1473
1473
|
try {
|
|
1474
|
-
const res = await fetch(`${host}/api/projects/${projectId}
|
|
1474
|
+
const res = await fetch(`${host}/api/projects/${projectId}/insights/?limit=1`, {
|
|
1475
1475
|
headers: { Authorization: `Bearer ${apiKey}` }
|
|
1476
1476
|
});
|
|
1477
1477
|
if (!res.ok) {
|
|
1478
1478
|
console.error(`PostHog auth failed: HTTP ${res.status}`);
|
|
1479
|
-
|
|
1479
|
+
if (res.status === 403) {
|
|
1480
|
+
console.error(" Hint: API key lacks read access. Use a Personal API Key (not project API key).");
|
|
1481
|
+
console.error(" Get one at: https://app.posthog.com/settings/user-api-keys");
|
|
1482
|
+
} else if (res.status === 401) {
|
|
1483
|
+
console.error(" Hint: API key invalid or expired.");
|
|
1484
|
+
} else {
|
|
1485
|
+
console.error(` Hint: Check project ID (current: ${projectId}) and API host (current: ${host})`);
|
|
1486
|
+
}
|
|
1480
1487
|
process.exit(1);
|
|
1481
1488
|
}
|
|
1482
1489
|
console.log("\u2713 PostHog credentials verified");
|
|
@@ -2822,7 +2829,7 @@ program.action(async () => {
|
|
|
2822
2829
|
const config = readConfig2();
|
|
2823
2830
|
if (!config.initialized || !existsSync18(dbPath2())) {
|
|
2824
2831
|
if (process.stdin.isTTY) {
|
|
2825
|
-
const { runSetupWizard } = await import("./setup-
|
|
2832
|
+
const { runSetupWizard } = await import("./setup-GDFYCCH3.js");
|
|
2826
2833
|
await runSetupWizard();
|
|
2827
2834
|
} else {
|
|
2828
2835
|
console.log("JoWork is not initialized. Run `jowork init` in an interactive terminal.");
|
|
@@ -388,8 +388,8 @@ async function connectSource(source, inquirer) {
|
|
|
388
388
|
{ type: "input", name: "appId", message: zh ? "\u98DE\u4E66 App ID (cli_xxx):" : "Feishu App ID (cli_xxx):", when: !appId },
|
|
389
389
|
{ type: "input", name: "appSecret", message: zh ? "\u98DE\u4E66 App Secret:" : "Feishu App Secret:", when: !appSecret }
|
|
390
390
|
]);
|
|
391
|
-
appId = appId
|
|
392
|
-
appSecret = appSecret
|
|
391
|
+
appId = appId || answers.appId;
|
|
392
|
+
appSecret = appSecret || answers.appSecret;
|
|
393
393
|
}
|
|
394
394
|
if (!appId || !appSecret) {
|
|
395
395
|
done = true;
|
|
@@ -411,8 +411,8 @@ async function connectSource(source, inquirer) {
|
|
|
411
411
|
console.log(zh ? " \u2717 \u98DE\u4E66\u51ED\u8BC1\u65E0\u6548" : " \u2717 Invalid Feishu credentials");
|
|
412
412
|
if (!await askRetryOrSkip()) done = true;
|
|
413
413
|
else {
|
|
414
|
-
process.env["FEISHU_APP_ID"]
|
|
415
|
-
process.env["FEISHU_APP_SECRET"]
|
|
414
|
+
delete process.env["FEISHU_APP_ID"];
|
|
415
|
+
delete process.env["FEISHU_APP_SECRET"];
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jowork",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
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",
|