jowork 0.3.6 → 0.3.7
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.
|
@@ -429,12 +429,13 @@ function sourceLabel(name) {
|
|
|
429
429
|
return `${colors[name] ?? c.white}${c.bold}${name}${c.reset}`;
|
|
430
430
|
}
|
|
431
431
|
function resultLine(ok, msg) {
|
|
432
|
-
|
|
432
|
+
if (isTTY) process.stdout.write("\r\x1B[K");
|
|
433
433
|
console.log(` ${ok ? icon.ok : icon.warn} ${msg}`);
|
|
434
434
|
}
|
|
435
|
+
var _currentSource = "";
|
|
435
436
|
function progressLine(msg) {
|
|
436
437
|
if (!isTTY) return;
|
|
437
|
-
process.stdout.write(`\r
|
|
438
|
+
process.stdout.write(`\r ${icon.sync} ${_currentSource} ${c.dim}${msg}${c.reset}\x1B[K`);
|
|
438
439
|
}
|
|
439
440
|
function clearProgress() {
|
|
440
441
|
if (!isTTY) return;
|
|
@@ -490,7 +491,8 @@ async function runSync(sources) {
|
|
|
490
491
|
continue;
|
|
491
492
|
}
|
|
492
493
|
const sourceStart = Date.now();
|
|
493
|
-
|
|
494
|
+
_currentSource = sourceLabel(source);
|
|
495
|
+
progressLine("syncing...");
|
|
494
496
|
const logger = {
|
|
495
497
|
info: (msg) => {
|
|
496
498
|
progressLine(msg);
|
|
@@ -588,6 +590,7 @@ async function runSync(sources) {
|
|
|
588
590
|
default:
|
|
589
591
|
console.log(` ${icon.skip} ${c.dim}unknown source${c.reset}`);
|
|
590
592
|
}
|
|
593
|
+
clearProgress();
|
|
591
594
|
console.log(` ${c.dim}${elapsed(sourceStart)}${c.reset}`);
|
|
592
595
|
} catch (err) {
|
|
593
596
|
logError("sync", `Failed to sync ${source}`, { error: String(err) });
|
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
syncCommand,
|
|
6
6
|
syncFirebase,
|
|
7
7
|
syncPostHog
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KIETDRXF.js";
|
|
9
9
|
import {
|
|
10
10
|
linkAllUnprocessed,
|
|
11
11
|
syncGitLab,
|
|
@@ -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-5LFE6XDW.js");
|
|
106
106
|
await runSetupWizard();
|
|
107
107
|
} else {
|
|
108
108
|
console.log("");
|
|
@@ -2793,7 +2793,7 @@ function isInstalled(packageName) {
|
|
|
2793
2793
|
// src/cli.ts
|
|
2794
2794
|
process.env["I18NEXT_DISABLE_BANNER"] = "1";
|
|
2795
2795
|
var program = new Command();
|
|
2796
|
-
program.name("jowork").description("AI Agent Infrastructure \u2014 let AI agents truly understand your work").version("0.3.
|
|
2796
|
+
program.name("jowork").description("AI Agent Infrastructure \u2014 let AI agents truly understand your work").version("0.3.7");
|
|
2797
2797
|
initCommand(program);
|
|
2798
2798
|
serveCommand(program);
|
|
2799
2799
|
registerCommand(program);
|
|
@@ -2820,7 +2820,7 @@ program.action(async () => {
|
|
|
2820
2820
|
const config = readConfig2();
|
|
2821
2821
|
if (!config.initialized || !existsSync18(dbPath2())) {
|
|
2822
2822
|
if (process.stdin.isTTY) {
|
|
2823
|
-
const { runSetupWizard } = await import("./setup-
|
|
2823
|
+
const { runSetupWizard } = await import("./setup-5LFE6XDW.js");
|
|
2824
2824
|
await runSetupWizard();
|
|
2825
2825
|
} else {
|
|
2826
2826
|
console.log("JoWork is not initialized. Run `jowork init` in an interactive terminal.");
|
|
@@ -212,7 +212,7 @@ async function runSetupWizard() {
|
|
|
212
212
|
console.log("");
|
|
213
213
|
console.log(zh ? ` \u6B63\u5728\u540C\u6B65 ${connectedSources.length} \u4E2A\u6570\u636E\u6E90...` : ` Syncing ${connectedSources.length} source${connectedSources.length > 1 ? "s" : ""}...`);
|
|
214
214
|
console.log("");
|
|
215
|
-
const { runSync } = await import("./sync-
|
|
215
|
+
const { runSync } = await import("./sync-XUDNMTTA.js");
|
|
216
216
|
try {
|
|
217
217
|
await runSync(connectedSources);
|
|
218
218
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jowork",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
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",
|