omnius 1.0.237 → 1.0.238
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/index.js +96 -96
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35307,11 +35307,11 @@ function deleteCustomToolDefinition(name10, scope, repoRoot) {
|
|
|
35307
35307
|
const dir = scope === "project" && repoRoot ? projectToolsDir(repoRoot) : globalToolsDir();
|
|
35308
35308
|
const filePath = join34(dir, `${name10}.json`);
|
|
35309
35309
|
if (existsSync32(filePath)) {
|
|
35310
|
-
const { unlinkSync:
|
|
35311
|
-
|
|
35310
|
+
const { unlinkSync: unlinkSync33 } = __require("node:fs");
|
|
35311
|
+
unlinkSync33(filePath);
|
|
35312
35312
|
const docsPath = toolDocsPath(name10, scope, repoRoot);
|
|
35313
35313
|
if (existsSync32(docsPath))
|
|
35314
|
-
|
|
35314
|
+
unlinkSync33(docsPath);
|
|
35315
35315
|
if (scope === "project" && repoRoot)
|
|
35316
35316
|
writeCustomToolRegistry(repoRoot);
|
|
35317
35317
|
return true;
|
|
@@ -290328,7 +290328,7 @@ var init_working_notes = __esm({
|
|
|
290328
290328
|
});
|
|
290329
290329
|
|
|
290330
290330
|
// packages/execution/dist/tools/workboard.js
|
|
290331
|
-
import { appendFileSync as appendFileSync3, existsSync as existsSync50, mkdirSync as mkdirSync26, readFileSync as readFileSync36, renameSync as renameSync4, writeFileSync as writeFileSync23 } from "node:fs";
|
|
290331
|
+
import { appendFileSync as appendFileSync3, existsSync as existsSync50, mkdirSync as mkdirSync26, readFileSync as readFileSync36, renameSync as renameSync4, unlinkSync as unlinkSync9, writeFileSync as writeFileSync23 } from "node:fs";
|
|
290332
290332
|
import { join as join64 } from "node:path";
|
|
290333
290333
|
import { randomBytes as randomBytes16 } from "node:crypto";
|
|
290334
290334
|
function workboardRoot(workingDir = process.cwd()) {
|
|
@@ -290383,7 +290383,7 @@ function writeActiveWorkboardSnapshot(workingDir, snapshot) {
|
|
|
290383
290383
|
renameSync4(tmpPath, paths.activePath);
|
|
290384
290384
|
} catch (err) {
|
|
290385
290385
|
try {
|
|
290386
|
-
|
|
290386
|
+
unlinkSync9(tmpPath);
|
|
290387
290387
|
} catch {
|
|
290388
290388
|
}
|
|
290389
290389
|
throw err;
|
|
@@ -290391,9 +290391,9 @@ function writeActiveWorkboardSnapshot(workingDir, snapshot) {
|
|
|
290391
290391
|
}
|
|
290392
290392
|
function loadWorkboardSnapshot(workingDir, runId) {
|
|
290393
290393
|
const active = readActiveWorkboardSnapshot(workingDir, runId);
|
|
290394
|
-
if (active)
|
|
290395
|
-
return active;
|
|
290396
290394
|
const events = readWorkboardEvents(workingDir, runId);
|
|
290395
|
+
if (active && active.eventCount === events.length)
|
|
290396
|
+
return active;
|
|
290397
290397
|
if (events.length === 0)
|
|
290398
290398
|
return null;
|
|
290399
290399
|
const snapshot = replayWorkboardEvents(events);
|
|
@@ -292155,7 +292155,7 @@ var init_project_scaffolding = __esm({
|
|
|
292155
292155
|
});
|
|
292156
292156
|
|
|
292157
292157
|
// packages/execution/dist/tools/todo-store.js
|
|
292158
|
-
import { existsSync as existsSync51, readFileSync as readFileSync37, writeFileSync as writeFileSync24, mkdirSync as mkdirSync27, renameSync as renameSync5, unlinkSync as
|
|
292158
|
+
import { existsSync as existsSync51, readFileSync as readFileSync37, writeFileSync as writeFileSync24, mkdirSync as mkdirSync27, renameSync as renameSync5, unlinkSync as unlinkSync10, readdirSync as readdirSync16 } from "node:fs";
|
|
292159
292159
|
import { join as join65 } from "node:path";
|
|
292160
292160
|
import { homedir as homedir16 } from "node:os";
|
|
292161
292161
|
import { randomBytes as randomBytes17 } from "node:crypto";
|
|
@@ -292219,7 +292219,7 @@ function writeTodos(sessionId, incoming) {
|
|
|
292219
292219
|
renameSync5(tmpPath, finalPath);
|
|
292220
292220
|
} catch (err) {
|
|
292221
292221
|
try {
|
|
292222
|
-
|
|
292222
|
+
unlinkSync10(tmpPath);
|
|
292223
292223
|
} catch {
|
|
292224
292224
|
}
|
|
292225
292225
|
throw err;
|
|
@@ -292245,7 +292245,7 @@ function deleteTodos(sessionId) {
|
|
|
292245
292245
|
if (!existsSync51(p2))
|
|
292246
292246
|
return false;
|
|
292247
292247
|
try {
|
|
292248
|
-
|
|
292248
|
+
unlinkSync10(p2);
|
|
292249
292249
|
return true;
|
|
292250
292250
|
} catch {
|
|
292251
292251
|
return false;
|
|
@@ -538586,7 +538586,7 @@ var init_process_health = __esm({
|
|
|
538586
538586
|
|
|
538587
538587
|
// packages/execution/dist/tools/camera-capture.js
|
|
538588
538588
|
import { execSync as execSync29 } from "node:child_process";
|
|
538589
|
-
import { readFileSync as readFileSync40, writeFileSync as writeFileSync25, unlinkSync as
|
|
538589
|
+
import { readFileSync as readFileSync40, writeFileSync as writeFileSync25, unlinkSync as unlinkSync11, existsSync as existsSync54, mkdirSync as mkdirSync29, statSync as statSync23 } from "node:fs";
|
|
538590
538590
|
import { join as join70 } from "node:path";
|
|
538591
538591
|
import { tmpdir as tmpdir10 } from "node:os";
|
|
538592
538592
|
var KANDAO_USB_VENDORS, QOOCAM_WIFI_PASSWORD, QOOCAM_DEFAULT_IP, OSC_TIMEOUT, CameraCaptureTool;
|
|
@@ -539059,7 +539059,7 @@ Saved to: ${userOutputPath}`,
|
|
|
539059
539059
|
};
|
|
539060
539060
|
}
|
|
539061
539061
|
try {
|
|
539062
|
-
|
|
539062
|
+
unlinkSync11(filePath);
|
|
539063
539063
|
} catch {
|
|
539064
539064
|
}
|
|
539065
539065
|
const base642 = data.toString("base64");
|
|
@@ -539079,7 +539079,7 @@ Saved to: ${outputPath3}`;
|
|
|
539079
539079
|
|
|
539080
539080
|
// packages/execution/dist/tools/audio-capture.js
|
|
539081
539081
|
import { execSync as execSync30 } from "node:child_process";
|
|
539082
|
-
import { readFileSync as readFileSync41, unlinkSync as
|
|
539082
|
+
import { readFileSync as readFileSync41, unlinkSync as unlinkSync12, existsSync as existsSync55, mkdirSync as mkdirSync30, statSync as statSync24 } from "node:fs";
|
|
539083
539083
|
import { join as join71 } from "node:path";
|
|
539084
539084
|
import { tmpdir as tmpdir11 } from "node:os";
|
|
539085
539085
|
var AudioCaptureTool;
|
|
@@ -539282,7 +539282,7 @@ Saved to: ${tempFile}`,
|
|
|
539282
539282
|
}
|
|
539283
539283
|
const raw = readFileSync41(tempFile);
|
|
539284
539284
|
try {
|
|
539285
|
-
|
|
539285
|
+
unlinkSync12(tempFile);
|
|
539286
539286
|
} catch {
|
|
539287
539287
|
}
|
|
539288
539288
|
let sumSquares = 0;
|
|
@@ -539318,7 +539318,7 @@ Saved to: ${tempFile}`,
|
|
|
539318
539318
|
};
|
|
539319
539319
|
} catch (err) {
|
|
539320
539320
|
try {
|
|
539321
|
-
|
|
539321
|
+
unlinkSync12(tempFile);
|
|
539322
539322
|
} catch {
|
|
539323
539323
|
}
|
|
539324
539324
|
return { success: false, output: "", error: `Mic level check failed: ${err instanceof Error ? err.message : String(err)}`, durationMs: performance.now() - start2 };
|
|
@@ -541088,7 +541088,7 @@ ${info}`, durationMs: performance.now() - start2 };
|
|
|
541088
541088
|
|
|
541089
541089
|
// packages/execution/dist/tools/sdr-scan.js
|
|
541090
541090
|
import { execSync as execSync34 } from "node:child_process";
|
|
541091
|
-
import { readFileSync as readFileSync42, unlinkSync as
|
|
541091
|
+
import { readFileSync as readFileSync42, unlinkSync as unlinkSync13, existsSync as existsSync57, mkdirSync as mkdirSync32, statSync as statSync26 } from "node:fs";
|
|
541092
541092
|
import { join as join73 } from "node:path";
|
|
541093
541093
|
import { tmpdir as tmpdir13 } from "node:os";
|
|
541094
541094
|
var SdrScanTool;
|
|
@@ -541280,7 +541280,7 @@ Tools installed but rtl_test failed — device may be in use by another process.
|
|
|
541280
541280
|
const csv = readFileSync42(outFile, "utf8");
|
|
541281
541281
|
const lines = csv.trim().split("\n");
|
|
541282
541282
|
try {
|
|
541283
|
-
|
|
541283
|
+
unlinkSync13(outFile);
|
|
541284
541284
|
} catch {
|
|
541285
541285
|
}
|
|
541286
541286
|
const signals = [];
|
|
@@ -544139,7 +544139,7 @@ ${lines.join("\n")}`,
|
|
|
544139
544139
|
|
|
544140
544140
|
// packages/execution/dist/tools/asr-listen.js
|
|
544141
544141
|
import { execSync as execSync41, spawnSync as spawnSync8 } from "node:child_process";
|
|
544142
|
-
import { existsSync as existsSync63, mkdirSync as mkdirSync37, writeFileSync as writeFileSync31, readFileSync as readFileSync47, unlinkSync as
|
|
544142
|
+
import { existsSync as existsSync63, mkdirSync as mkdirSync37, writeFileSync as writeFileSync31, readFileSync as readFileSync47, unlinkSync as unlinkSync14 } from "node:fs";
|
|
544143
544143
|
import { dirname as dirname19, join as join78, resolve as resolve39 } from "node:path";
|
|
544144
544144
|
import { tmpdir as tmpdir18, homedir as homedir22 } from "node:os";
|
|
544145
544145
|
import { fileURLToPath as fileURLToPath8 } from "node:url";
|
|
@@ -544438,7 +544438,7 @@ print(json.dumps({"ok": False, "error": "No whisper backend available"}))
|
|
|
544438
544438
|
}
|
|
544439
544439
|
} finally {
|
|
544440
544440
|
try {
|
|
544441
|
-
|
|
544441
|
+
unlinkSync14(scriptFile);
|
|
544442
544442
|
} catch {
|
|
544443
544443
|
}
|
|
544444
544444
|
}
|
|
@@ -547544,7 +547544,7 @@ var init_plugin_system = __esm({
|
|
|
547544
547544
|
});
|
|
547545
547545
|
|
|
547546
547546
|
// packages/execution/dist/tools/notebook-edit.js
|
|
547547
|
-
import { readFileSync as readFileSync51, writeFileSync as writeFileSync34, existsSync as existsSync68, renameSync as renameSync6, unlinkSync as
|
|
547547
|
+
import { readFileSync as readFileSync51, writeFileSync as writeFileSync34, existsSync as existsSync68, renameSync as renameSync6, unlinkSync as unlinkSync15 } from "node:fs";
|
|
547548
547548
|
import { resolve as resolve41 } from "node:path";
|
|
547549
547549
|
function readNotebook(path12) {
|
|
547550
547550
|
if (!existsSync68(path12))
|
|
@@ -547568,7 +547568,7 @@ function writeNotebook(path12, nb) {
|
|
|
547568
547568
|
renameSync6(tempPath, path12);
|
|
547569
547569
|
} catch (err) {
|
|
547570
547570
|
try {
|
|
547571
|
-
|
|
547571
|
+
unlinkSync15(tempPath);
|
|
547572
547572
|
} catch {
|
|
547573
547573
|
}
|
|
547574
547574
|
throw err;
|
|
@@ -547966,7 +547966,7 @@ var init_environment_snapshot = __esm({
|
|
|
547966
547966
|
|
|
547967
547967
|
// packages/execution/dist/tools/video-understand.js
|
|
547968
547968
|
import { execSync as execSync44 } from "node:child_process";
|
|
547969
|
-
import { existsSync as existsSync69, mkdirSync as mkdirSync41, writeFileSync as writeFileSync35, readFileSync as readFileSync52, readdirSync as readdirSync22, unlinkSync as
|
|
547969
|
+
import { existsSync as existsSync69, mkdirSync as mkdirSync41, writeFileSync as writeFileSync35, readFileSync as readFileSync52, readdirSync as readdirSync22, unlinkSync as unlinkSync16 } from "node:fs";
|
|
547970
547970
|
import { join as join83, basename as basename16 } from "node:path";
|
|
547971
547971
|
import { createHash as createHash24 } from "node:crypto";
|
|
547972
547972
|
function isYouTubeUrl2(url) {
|
|
@@ -572669,7 +572669,7 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
572669
572669
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
572670
572670
|
});
|
|
572671
572671
|
try {
|
|
572672
|
-
const { mkdirSync: mkdirSync97, readdirSync: readdirSync53, statSync: statSync54, unlinkSync:
|
|
572672
|
+
const { mkdirSync: mkdirSync97, readdirSync: readdirSync53, statSync: statSync54, unlinkSync: unlinkSync33, writeFileSync: writeFileSync85 } = __require("node:fs");
|
|
572673
572673
|
const { join: join165 } = __require("node:path");
|
|
572674
572674
|
const contextDir = join165(this._workingDirectory || process.cwd(), ".omnius", "context");
|
|
572675
572675
|
mkdirSync97(contextDir, { recursive: true });
|
|
@@ -572749,7 +572749,7 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
572749
572749
|
}
|
|
572750
572750
|
for (const filePath of toDelete) {
|
|
572751
572751
|
try {
|
|
572752
|
-
|
|
572752
|
+
unlinkSync33(filePath);
|
|
572753
572753
|
} catch {
|
|
572754
572754
|
}
|
|
572755
572755
|
}
|
|
@@ -575906,7 +575906,7 @@ ${result}`
|
|
|
575906
575906
|
let resizedBase64 = null;
|
|
575907
575907
|
try {
|
|
575908
575908
|
const { execSync: execSync62 } = await import("node:child_process");
|
|
575909
|
-
const { writeFileSync: writeFileSync85, readFileSync: readFileSync124, unlinkSync:
|
|
575909
|
+
const { writeFileSync: writeFileSync85, readFileSync: readFileSync124, unlinkSync: unlinkSync33 } = await import("node:fs");
|
|
575910
575910
|
const { join: join165 } = await import("node:path");
|
|
575911
575911
|
const { tmpdir: tmpdir24 } = await import("node:os");
|
|
575912
575912
|
const tmpIn = join165(tmpdir24(), `omnius_img_in_${Date.now()}.png`);
|
|
@@ -575919,11 +575919,11 @@ ${result}`
|
|
|
575919
575919
|
const resizedBuf = readFileSync124(tmpOut);
|
|
575920
575920
|
resizedBase64 = `data:image/jpeg;base64,${resizedBuf.toString("base64")}`;
|
|
575921
575921
|
try {
|
|
575922
|
-
|
|
575922
|
+
unlinkSync33(tmpIn);
|
|
575923
575923
|
} catch {
|
|
575924
575924
|
}
|
|
575925
575925
|
try {
|
|
575926
|
-
|
|
575926
|
+
unlinkSync33(tmpOut);
|
|
575927
575927
|
} catch {
|
|
575928
575928
|
}
|
|
575929
575929
|
} catch {
|
|
@@ -577278,7 +577278,7 @@ var init_constraint_learner = __esm({
|
|
|
577278
577278
|
});
|
|
577279
577279
|
|
|
577280
577280
|
// packages/orchestrator/dist/nexusBackend.js
|
|
577281
|
-
import { existsSync as existsSync89, statSync as statSync37, openSync, readSync, closeSync, unlinkSync as
|
|
577281
|
+
import { existsSync as existsSync89, statSync as statSync37, openSync, readSync, closeSync, unlinkSync as unlinkSync17, writeFileSync as writeFileSync42 } from "node:fs";
|
|
577282
577282
|
import { watch as fsWatch } from "node:fs";
|
|
577283
577283
|
import { join as join101 } from "node:path";
|
|
577284
577284
|
import { tmpdir as tmpdir19 } from "node:os";
|
|
@@ -577506,7 +577506,7 @@ ${suffix}` } : m2);
|
|
|
577506
577506
|
} catch (sendErr) {
|
|
577507
577507
|
this.consecutiveFailures++;
|
|
577508
577508
|
try {
|
|
577509
|
-
|
|
577509
|
+
unlinkSync17(streamFile);
|
|
577510
577510
|
} catch {
|
|
577511
577511
|
}
|
|
577512
577512
|
throw sendErr;
|
|
@@ -577521,7 +577521,7 @@ ${suffix}` } : m2);
|
|
|
577521
577521
|
}
|
|
577522
577522
|
if (!isStreaming) {
|
|
577523
577523
|
try {
|
|
577524
|
-
|
|
577524
|
+
unlinkSync17(streamFile);
|
|
577525
577525
|
} catch {
|
|
577526
577526
|
}
|
|
577527
577527
|
let parsed;
|
|
@@ -577711,7 +577711,7 @@ ${suffix}` } : m2);
|
|
|
577711
577711
|
}
|
|
577712
577712
|
} finally {
|
|
577713
577713
|
try {
|
|
577714
|
-
|
|
577714
|
+
unlinkSync17(streamFile);
|
|
577715
577715
|
} catch {
|
|
577716
577716
|
}
|
|
577717
577717
|
}
|
|
@@ -580649,7 +580649,7 @@ var init_agent_task = __esm({
|
|
|
580649
580649
|
});
|
|
580650
580650
|
|
|
580651
580651
|
// packages/orchestrator/dist/task-recovery.js
|
|
580652
|
-
import { existsSync as existsSync93, readFileSync as readFileSync74, writeFileSync as writeFileSync45, mkdirSync as mkdirSync53, readdirSync as readdirSync28, renameSync as renameSync7, unlinkSync as
|
|
580652
|
+
import { existsSync as existsSync93, readFileSync as readFileSync74, writeFileSync as writeFileSync45, mkdirSync as mkdirSync53, readdirSync as readdirSync28, renameSync as renameSync7, unlinkSync as unlinkSync18 } from "node:fs";
|
|
580653
580653
|
import { join as join106 } from "node:path";
|
|
580654
580654
|
import { homedir as homedir31 } from "node:os";
|
|
580655
580655
|
function sidecarDir() {
|
|
@@ -580675,7 +580675,7 @@ function deleteAgentTaskSidecar(taskId) {
|
|
|
580675
580675
|
const p2 = sidecarPath(taskId);
|
|
580676
580676
|
if (!existsSync93(p2))
|
|
580677
580677
|
return false;
|
|
580678
|
-
|
|
580678
|
+
unlinkSync18(p2);
|
|
580679
580679
|
return true;
|
|
580680
580680
|
} catch {
|
|
580681
580681
|
return false;
|
|
@@ -580747,7 +580747,7 @@ function purgeOldSidecars(maxAgeHours = 24) {
|
|
|
580747
580747
|
const task = JSON.parse(readFileSync74(p2, "utf-8"));
|
|
580748
580748
|
const stamp = task.completedAt ?? task.createdAt ?? 0;
|
|
580749
580749
|
if (isTerminalTaskStatus(task.status) && stamp > 0 && stamp < cutoff) {
|
|
580750
|
-
|
|
580750
|
+
unlinkSync18(p2);
|
|
580751
580751
|
purged++;
|
|
580752
580752
|
}
|
|
580753
580753
|
} catch {
|
|
@@ -593606,7 +593606,7 @@ import { EventEmitter as EventEmitter8 } from "node:events";
|
|
|
593606
593606
|
import { randomBytes as randomBytes21, timingSafeEqual } from "node:crypto";
|
|
593607
593607
|
import { URL as URL2 } from "node:url";
|
|
593608
593608
|
import { loadavg, cpus as cpus2, totalmem as totalmem5, freemem as freemem4 } from "node:os";
|
|
593609
|
-
import { existsSync as existsSync100, readFileSync as readFileSync81, writeFileSync as writeFileSync52, unlinkSync as
|
|
593609
|
+
import { existsSync as existsSync100, readFileSync as readFileSync81, writeFileSync as writeFileSync52, unlinkSync as unlinkSync19, mkdirSync as mkdirSync60, readdirSync as readdirSync32, statSync as statSync38, statfsSync as statfsSync4 } from "node:fs";
|
|
593610
593610
|
import { join as join115 } from "node:path";
|
|
593611
593611
|
function cleanForwardHeaders(raw, targetHost) {
|
|
593612
593612
|
const out = {};
|
|
@@ -593819,7 +593819,7 @@ function writeExposeState(stateDir, state) {
|
|
|
593819
593819
|
}
|
|
593820
593820
|
function removeExposeState(stateDir) {
|
|
593821
593821
|
try {
|
|
593822
|
-
|
|
593822
|
+
unlinkSync19(join115(stateDir, STATE_FILE_NAME));
|
|
593823
593823
|
} catch {
|
|
593824
593824
|
}
|
|
593825
593825
|
}
|
|
@@ -593957,7 +593957,7 @@ function writeP2PExposeState(stateDir, state) {
|
|
|
593957
593957
|
}
|
|
593958
593958
|
function removeP2PExposeState(stateDir) {
|
|
593959
593959
|
try {
|
|
593960
|
-
|
|
593960
|
+
unlinkSync19(join115(stateDir, P2P_STATE_FILE_NAME));
|
|
593961
593961
|
} catch {
|
|
593962
593962
|
}
|
|
593963
593963
|
}
|
|
@@ -597092,7 +597092,7 @@ ${activitySummary}
|
|
|
597092
597092
|
});
|
|
597093
597093
|
|
|
597094
597094
|
// packages/cli/src/api/profiles.ts
|
|
597095
|
-
import { existsSync as existsSync102, readFileSync as readFileSync83, writeFileSync as writeFileSync54, mkdirSync as mkdirSync62, readdirSync as readdirSync33, unlinkSync as
|
|
597095
|
+
import { existsSync as existsSync102, readFileSync as readFileSync83, writeFileSync as writeFileSync54, mkdirSync as mkdirSync62, readdirSync as readdirSync33, unlinkSync as unlinkSync20 } from "node:fs";
|
|
597096
597096
|
import { join as join117 } from "node:path";
|
|
597097
597097
|
import { homedir as homedir34 } from "node:os";
|
|
597098
597098
|
import { createCipheriv as createCipheriv4, createDecipheriv as createDecipheriv4, randomBytes as randomBytes24, scryptSync as scryptSync3 } from "node:crypto";
|
|
@@ -597196,7 +597196,7 @@ function deleteProfile(name10, scope = "global", projectDir2) {
|
|
|
597196
597196
|
const dir = scope === "project" ? projectProfileDir(projectDir2) : globalProfileDir();
|
|
597197
597197
|
const filePath = join117(dir, `${sanitized}.json`);
|
|
597198
597198
|
if (existsSync102(filePath)) {
|
|
597199
|
-
|
|
597199
|
+
unlinkSync20(filePath);
|
|
597200
597200
|
return true;
|
|
597201
597201
|
}
|
|
597202
597202
|
return false;
|
|
@@ -598090,7 +598090,7 @@ __export(omnius_directory_exports, {
|
|
|
598090
598090
|
writeIndexMeta: () => writeIndexMeta,
|
|
598091
598091
|
writeTaskHandoff: () => writeTaskHandoff2
|
|
598092
598092
|
});
|
|
598093
|
-
import { appendFileSync as appendFileSync9, cpSync as cpSync2, existsSync as existsSync106, mkdirSync as mkdirSync64, readFileSync as readFileSync87, writeFileSync as writeFileSync56, readdirSync as readdirSync34, statSync as statSync40, unlinkSync as
|
|
598093
|
+
import { appendFileSync as appendFileSync9, cpSync as cpSync2, existsSync as existsSync106, mkdirSync as mkdirSync64, readFileSync as readFileSync87, writeFileSync as writeFileSync56, readdirSync as readdirSync34, statSync as statSync40, unlinkSync as unlinkSync22, openSync as openSync2, closeSync as closeSync2, renameSync as renameSync8, watch as fsWatch2 } from "node:fs";
|
|
598094
598094
|
import { join as join121, relative as relative11, basename as basename23, dirname as dirname38, resolve as resolve49 } from "node:path";
|
|
598095
598095
|
import { homedir as homedir36 } from "node:os";
|
|
598096
598096
|
import { createHash as createHash34 } from "node:crypto";
|
|
@@ -598453,7 +598453,7 @@ function loadPendingTask(repoRoot) {
|
|
|
598453
598453
|
if (!existsSync106(filePath)) return null;
|
|
598454
598454
|
const data = JSON.parse(readFileSync87(filePath, "utf-8"));
|
|
598455
598455
|
try {
|
|
598456
|
-
|
|
598456
|
+
unlinkSync22(filePath);
|
|
598457
598457
|
} catch {
|
|
598458
598458
|
}
|
|
598459
598459
|
return data;
|
|
@@ -598472,7 +598472,7 @@ function writeTaskHandoff2(repoRoot, handoff) {
|
|
|
598472
598472
|
} catch {
|
|
598473
598473
|
writeFileSync56(filePath, JSON.stringify(handoff, null, 2) + "\n", "utf-8");
|
|
598474
598474
|
try {
|
|
598475
|
-
|
|
598475
|
+
unlinkSync22(tempPath);
|
|
598476
598476
|
} catch {
|
|
598477
598477
|
}
|
|
598478
598478
|
}
|
|
@@ -598498,7 +598498,7 @@ function clearTaskHandoff(repoRoot) {
|
|
|
598498
598498
|
const filePath = join121(repoRoot, OMNIUS_DIR, "context", HANDOFF_FILE);
|
|
598499
598499
|
try {
|
|
598500
598500
|
if (existsSync106(filePath)) {
|
|
598501
|
-
|
|
598501
|
+
unlinkSync22(filePath);
|
|
598502
598502
|
}
|
|
598503
598503
|
} catch {
|
|
598504
598504
|
}
|
|
@@ -598572,13 +598572,13 @@ function acquireLock(lockPath) {
|
|
|
598572
598572
|
const lockAge = Date.now() - lock.acquiredAt;
|
|
598573
598573
|
if (lockAge > LOCK_TIMEOUT_MS) {
|
|
598574
598574
|
try {
|
|
598575
|
-
|
|
598575
|
+
unlinkSync22(lockPath);
|
|
598576
598576
|
} catch {
|
|
598577
598577
|
}
|
|
598578
598578
|
}
|
|
598579
598579
|
} catch {
|
|
598580
598580
|
try {
|
|
598581
|
-
|
|
598581
|
+
unlinkSync22(lockPath);
|
|
598582
598582
|
} catch {
|
|
598583
598583
|
}
|
|
598584
598584
|
}
|
|
@@ -598596,7 +598596,7 @@ function releaseLock(lockPath) {
|
|
|
598596
598596
|
const lockContent = readFileSync87(lockPath, "utf-8");
|
|
598597
598597
|
const lock = JSON.parse(lockContent);
|
|
598598
598598
|
if (lock.pid === process.pid) {
|
|
598599
|
-
|
|
598599
|
+
unlinkSync22(lockPath);
|
|
598600
598600
|
}
|
|
598601
598601
|
}
|
|
598602
598602
|
} catch {
|
|
@@ -598782,7 +598782,7 @@ function saveSessionContext(repoRoot, entry) {
|
|
|
598782
598782
|
} catch {
|
|
598783
598783
|
writeFileSync56(filePath, JSON.stringify(ctx3, null, 2) + "\n", "utf-8");
|
|
598784
598784
|
try {
|
|
598785
|
-
|
|
598785
|
+
unlinkSync22(tempFilePath);
|
|
598786
598786
|
} catch {
|
|
598787
598787
|
}
|
|
598788
598788
|
}
|
|
@@ -598995,7 +598995,7 @@ function saveSessionHistory(repoRoot, sessionId, contentLines, meta) {
|
|
|
598995
598995
|
if (index.length > 50) {
|
|
598996
598996
|
const removed = index.shift();
|
|
598997
598997
|
try {
|
|
598998
|
-
|
|
598998
|
+
unlinkSync22(join121(sessDir, `${removed.id}.jsonl`));
|
|
598999
598999
|
} catch {
|
|
599000
599000
|
}
|
|
599001
599001
|
}
|
|
@@ -599025,7 +599025,7 @@ function deleteSession(repoRoot, sessionId) {
|
|
|
599025
599025
|
const indexPath = join121(sessDir, SESSIONS_INDEX);
|
|
599026
599026
|
try {
|
|
599027
599027
|
const contentPath = join121(sessDir, `${sessionId}.jsonl`);
|
|
599028
|
-
if (existsSync106(contentPath))
|
|
599028
|
+
if (existsSync106(contentPath)) unlinkSync22(contentPath);
|
|
599029
599029
|
if (existsSync106(indexPath)) {
|
|
599030
599030
|
let index = JSON.parse(readFileSync87(indexPath, "utf-8"));
|
|
599031
599031
|
index = index.filter((s2) => s2.id !== sessionId);
|
|
@@ -612814,7 +612814,7 @@ var init_audio_waveform = __esm({
|
|
|
612814
612814
|
});
|
|
612815
612815
|
|
|
612816
612816
|
// packages/cli/src/tui/neovim-mode.ts
|
|
612817
|
-
import { existsSync as existsSync114, unlinkSync as
|
|
612817
|
+
import { existsSync as existsSync114, unlinkSync as unlinkSync23 } from "node:fs";
|
|
612818
612818
|
import { tmpdir as tmpdir20 } from "node:os";
|
|
612819
612819
|
import { join as join127 } from "node:path";
|
|
612820
612820
|
import { execSync as execSync53 } from "node:child_process";
|
|
@@ -612864,7 +612864,7 @@ async function startNeovimMode(opts) {
|
|
|
612864
612864
|
}
|
|
612865
612865
|
const socketPath = join127(tmpdir20(), `omnius-nvim-${process.pid}-${Date.now()}.sock`);
|
|
612866
612866
|
try {
|
|
612867
|
-
if (existsSync114(socketPath))
|
|
612867
|
+
if (existsSync114(socketPath)) unlinkSync23(socketPath);
|
|
612868
612868
|
} catch {
|
|
612869
612869
|
}
|
|
612870
612870
|
const ptyCols = opts.cols;
|
|
@@ -613253,7 +613253,7 @@ function doCleanup(state) {
|
|
|
613253
613253
|
state.pty = null;
|
|
613254
613254
|
}
|
|
613255
613255
|
try {
|
|
613256
|
-
if (existsSync114(state.socketPath))
|
|
613256
|
+
if (existsSync114(state.socketPath)) unlinkSync23(state.socketPath);
|
|
613257
613257
|
} catch {
|
|
613258
613258
|
}
|
|
613259
613259
|
if (state.stdinHandler) {
|
|
@@ -613324,7 +613324,7 @@ __export(daemon_exports, {
|
|
|
613324
613324
|
stopDaemon: () => stopDaemon
|
|
613325
613325
|
});
|
|
613326
613326
|
import { spawn as spawn29 } from "node:child_process";
|
|
613327
|
-
import { existsSync as existsSync115, readFileSync as readFileSync94, writeFileSync as writeFileSync59, mkdirSync as mkdirSync67, unlinkSync as
|
|
613327
|
+
import { existsSync as existsSync115, readFileSync as readFileSync94, writeFileSync as writeFileSync59, mkdirSync as mkdirSync67, unlinkSync as unlinkSync24, openSync as openSync3, closeSync as closeSync3 } from "node:fs";
|
|
613328
613328
|
import { join as join128 } from "node:path";
|
|
613329
613329
|
import { homedir as homedir41 } from "node:os";
|
|
613330
613330
|
import { fileURLToPath as fileURLToPath16 } from "node:url";
|
|
@@ -613358,7 +613358,7 @@ function getDaemonPid() {
|
|
|
613358
613358
|
return pid;
|
|
613359
613359
|
} catch {
|
|
613360
613360
|
try {
|
|
613361
|
-
|
|
613361
|
+
unlinkSync24(PID_FILE2);
|
|
613362
613362
|
} catch {
|
|
613363
613363
|
}
|
|
613364
613364
|
return null;
|
|
@@ -613474,13 +613474,13 @@ function stopDaemon() {
|
|
|
613474
613474
|
}
|
|
613475
613475
|
process.kill(pid, "SIGTERM");
|
|
613476
613476
|
try {
|
|
613477
|
-
|
|
613477
|
+
unlinkSync24(PID_FILE2);
|
|
613478
613478
|
} catch {
|
|
613479
613479
|
}
|
|
613480
613480
|
return true;
|
|
613481
613481
|
} catch {
|
|
613482
613482
|
try {
|
|
613483
|
-
|
|
613483
|
+
unlinkSync24(PID_FILE2);
|
|
613484
613484
|
} catch {
|
|
613485
613485
|
}
|
|
613486
613486
|
return false;
|
|
@@ -613511,7 +613511,7 @@ async function forceKillDaemon(port) {
|
|
|
613511
613511
|
} catch {
|
|
613512
613512
|
}
|
|
613513
613513
|
try {
|
|
613514
|
-
|
|
613514
|
+
unlinkSync24(PID_FILE2);
|
|
613515
613515
|
} catch {
|
|
613516
613516
|
}
|
|
613517
613517
|
}
|
|
@@ -613552,7 +613552,7 @@ async function ensureDaemon() {
|
|
|
613552
613552
|
} catch {
|
|
613553
613553
|
}
|
|
613554
613554
|
try {
|
|
613555
|
-
|
|
613555
|
+
unlinkSync24(PID_FILE2);
|
|
613556
613556
|
} catch {
|
|
613557
613557
|
}
|
|
613558
613558
|
}
|
|
@@ -613569,7 +613569,7 @@ async function ensureDaemon() {
|
|
|
613569
613569
|
} catch {
|
|
613570
613570
|
}
|
|
613571
613571
|
try {
|
|
613572
|
-
|
|
613572
|
+
unlinkSync24(PID_FILE2);
|
|
613573
613573
|
} catch {
|
|
613574
613574
|
}
|
|
613575
613575
|
return false;
|
|
@@ -615357,7 +615357,7 @@ import {
|
|
|
615357
615357
|
mkdirSync as mkdirSync69,
|
|
615358
615358
|
writeFileSync as writeFileSync61,
|
|
615359
615359
|
readFileSync as readFileSync97,
|
|
615360
|
-
unlinkSync as
|
|
615360
|
+
unlinkSync as unlinkSync25,
|
|
615361
615361
|
readdirSync as readdirSync37,
|
|
615362
615362
|
statSync as statSync44
|
|
615363
615363
|
} from "node:fs";
|
|
@@ -616795,7 +616795,7 @@ except Exception as exc:
|
|
|
616795
616795
|
const p2 = join130(luxttsCloneRefsDir(), filename);
|
|
616796
616796
|
if (!existsSync118(p2)) return false;
|
|
616797
616797
|
try {
|
|
616798
|
-
|
|
616798
|
+
unlinkSync25(p2);
|
|
616799
616799
|
const meta = this.loadCloneMeta();
|
|
616800
616800
|
delete meta[filename];
|
|
616801
616801
|
this.saveCloneMeta(meta);
|
|
@@ -617149,7 +617149,7 @@ except Exception as exc:
|
|
|
617149
617149
|
}
|
|
617150
617150
|
if (prefetchedWav) {
|
|
617151
617151
|
try {
|
|
617152
|
-
|
|
617152
|
+
unlinkSync25(prefetchedWav.path);
|
|
617153
617153
|
} catch {
|
|
617154
617154
|
}
|
|
617155
617155
|
}
|
|
@@ -617243,7 +617243,7 @@ except Exception as exc:
|
|
|
617243
617243
|
this.writeStereoWav(stereo.left, stereo.right, sampleRate, wavPath);
|
|
617244
617244
|
await this.playWav(wavPath);
|
|
617245
617245
|
try {
|
|
617246
|
-
|
|
617246
|
+
unlinkSync25(wavPath);
|
|
617247
617247
|
} catch {
|
|
617248
617248
|
}
|
|
617249
617249
|
}
|
|
@@ -617744,7 +617744,7 @@ except Exception as exc:
|
|
|
617744
617744
|
if (!wavPath) return null;
|
|
617745
617745
|
try {
|
|
617746
617746
|
const data = readFileSync97(wavPath);
|
|
617747
|
-
|
|
617747
|
+
unlinkSync25(wavPath);
|
|
617748
617748
|
return data;
|
|
617749
617749
|
} catch {
|
|
617750
617750
|
return null;
|
|
@@ -617950,7 +617950,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`
|
|
|
617950
617950
|
}
|
|
617951
617951
|
await this.playWav(wavPath);
|
|
617952
617952
|
try {
|
|
617953
|
-
|
|
617953
|
+
unlinkSync25(wavPath);
|
|
617954
617954
|
} catch {
|
|
617955
617955
|
}
|
|
617956
617956
|
}
|
|
@@ -617994,7 +617994,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`
|
|
|
617994
617994
|
if (!existsSync118(wavPath)) return null;
|
|
617995
617995
|
try {
|
|
617996
617996
|
const data = readFileSync97(wavPath);
|
|
617997
|
-
|
|
617997
|
+
unlinkSync25(wavPath);
|
|
617998
617998
|
return data;
|
|
617999
617999
|
} catch {
|
|
618000
618000
|
return null;
|
|
@@ -618778,7 +618778,7 @@ if __name__ == '__main__':
|
|
|
618778
618778
|
await this.playWav(wavPath);
|
|
618779
618779
|
await this.sleep(150);
|
|
618780
618780
|
try {
|
|
618781
|
-
|
|
618781
|
+
unlinkSync25(wavPath);
|
|
618782
618782
|
} catch {
|
|
618783
618783
|
}
|
|
618784
618784
|
}
|
|
@@ -618818,7 +618818,7 @@ if __name__ == '__main__':
|
|
|
618818
618818
|
if (!existsSync118(wavPath)) return null;
|
|
618819
618819
|
try {
|
|
618820
618820
|
const data = readFileSync97(wavPath);
|
|
618821
|
-
|
|
618821
|
+
unlinkSync25(wavPath);
|
|
618822
618822
|
return data;
|
|
618823
618823
|
} catch {
|
|
618824
618824
|
return null;
|
|
@@ -639615,7 +639615,7 @@ var init_bless_engine = __esm({
|
|
|
639615
639615
|
});
|
|
639616
639616
|
|
|
639617
639617
|
// packages/cli/src/tui/dmn-engine.ts
|
|
639618
|
-
import { existsSync as existsSync128, readFileSync as readFileSync106, writeFileSync as writeFileSync68, mkdirSync as mkdirSync78, readdirSync as readdirSync44, unlinkSync as
|
|
639618
|
+
import { existsSync as existsSync128, readFileSync as readFileSync106, writeFileSync as writeFileSync68, mkdirSync as mkdirSync78, readdirSync as readdirSync44, unlinkSync as unlinkSync26 } from "node:fs";
|
|
639619
639619
|
import { join as join141, basename as basename33 } from "node:path";
|
|
639620
639620
|
function buildDMNGatherPrompt(recentTaskSummaries, dueReminders, attentionItems, memoryTopics, capabilities, competence, reflectionBuffer) {
|
|
639621
639621
|
const competenceReport = competence.length > 0 ? competence.map((c8) => {
|
|
@@ -640425,7 +640425,7 @@ OUTPUT: Call task_complete with JSON:
|
|
|
640425
640425
|
for (const file of files) {
|
|
640426
640426
|
if (!keep.has(file)) {
|
|
640427
640427
|
try {
|
|
640428
|
-
|
|
640428
|
+
unlinkSync26(join141(this.historyDir, file));
|
|
640429
640429
|
} catch {
|
|
640430
640430
|
}
|
|
640431
640431
|
}
|
|
@@ -642066,7 +642066,7 @@ import {
|
|
|
642066
642066
|
mkdirSync as mkdirSync79,
|
|
642067
642067
|
readFileSync as readFileSync107,
|
|
642068
642068
|
statSync as statSync46,
|
|
642069
|
-
unlinkSync as
|
|
642069
|
+
unlinkSync as unlinkSync27,
|
|
642070
642070
|
writeFileSync as writeFileSync69
|
|
642071
642071
|
} from "node:fs";
|
|
642072
642072
|
import { mkdir as mkdir20 } from "node:fs/promises";
|
|
@@ -642279,7 +642279,7 @@ function scopedTool(base3, root, mode) {
|
|
|
642279
642279
|
}
|
|
642280
642280
|
} else if (restoredEditPath) {
|
|
642281
642281
|
try {
|
|
642282
|
-
|
|
642282
|
+
unlinkSync27(restoredEditPath);
|
|
642283
642283
|
} catch {
|
|
642284
642284
|
}
|
|
642285
642285
|
}
|
|
@@ -642398,7 +642398,7 @@ function rememberCreated(root, absPath) {
|
|
|
642398
642398
|
const previousPath = resolve55(root, previous.storedRel);
|
|
642399
642399
|
if (isInside(resolve55(root), previousPath) && existsSync129(previousPath)) {
|
|
642400
642400
|
try {
|
|
642401
|
-
|
|
642401
|
+
unlinkSync27(previousPath);
|
|
642402
642402
|
} catch {
|
|
642403
642403
|
}
|
|
642404
642404
|
}
|
|
@@ -642415,7 +642415,7 @@ function rememberCreated(root, absPath) {
|
|
|
642415
642415
|
const storedAbs = join142(root, storedRel);
|
|
642416
642416
|
writeFileSync69(storedAbs, Buffer.concat([prefix, encrypted]));
|
|
642417
642417
|
try {
|
|
642418
|
-
|
|
642418
|
+
unlinkSync27(guarded.path.abs);
|
|
642419
642419
|
} catch {
|
|
642420
642420
|
}
|
|
642421
642421
|
manifest.objects = manifest.objects || {};
|
|
@@ -642480,7 +642480,7 @@ function materializeTelegramCreativeArtifactForSend(root, rawPath) {
|
|
|
642480
642480
|
path: staged,
|
|
642481
642481
|
cleanup: () => {
|
|
642482
642482
|
try {
|
|
642483
|
-
|
|
642483
|
+
unlinkSync27(staged);
|
|
642484
642484
|
} catch {
|
|
642485
642485
|
}
|
|
642486
642486
|
}
|
|
@@ -645298,7 +645298,7 @@ __export(vision_ingress_exports, {
|
|
|
645298
645298
|
runVisionIngress: () => runVisionIngress
|
|
645299
645299
|
});
|
|
645300
645300
|
import { execFileSync as execFileSync9 } from "node:child_process";
|
|
645301
|
-
import { existsSync as existsSync131, readFileSync as readFileSync109, unlinkSync as
|
|
645301
|
+
import { existsSync as existsSync131, readFileSync as readFileSync109, unlinkSync as unlinkSync28 } from "node:fs";
|
|
645302
645302
|
import { join as join144 } from "node:path";
|
|
645303
645303
|
function isTesseractAvailable() {
|
|
645304
645304
|
try {
|
|
@@ -645356,7 +645356,7 @@ function advancedOcr(imagePath) {
|
|
|
645356
645356
|
const text2 = readFileSync109(txtFile, "utf-8").trim();
|
|
645357
645357
|
if (text2.length > 0) results.push(text2);
|
|
645358
645358
|
try {
|
|
645359
|
-
|
|
645359
|
+
unlinkSync28(txtFile);
|
|
645360
645360
|
} catch {
|
|
645361
645361
|
}
|
|
645362
645362
|
}
|
|
@@ -645474,7 +645474,7 @@ var init_vision_ingress = __esm({
|
|
|
645474
645474
|
});
|
|
645475
645475
|
|
|
645476
645476
|
// packages/cli/src/tui/telegram-bridge.ts
|
|
645477
|
-
import { mkdirSync as mkdirSync81, existsSync as existsSync132, unlinkSync as
|
|
645477
|
+
import { mkdirSync as mkdirSync81, existsSync as existsSync132, unlinkSync as unlinkSync29, readdirSync as readdirSync46, statSync as statSync47, statfsSync as statfsSync5, readFileSync as readFileSync110, writeFileSync as writeFileSync72, appendFileSync as appendFileSync13 } from "node:fs";
|
|
645478
645478
|
import { join as join145, resolve as resolve56, basename as basename35, relative as relative15, isAbsolute as isAbsolute10, extname as extname19 } from "node:path";
|
|
645479
645479
|
import { homedir as homedir45 } from "node:os";
|
|
645480
645480
|
import { writeFile as writeFileAsync } from "node:fs/promises";
|
|
@@ -654861,7 +654861,7 @@ ${TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT}`);
|
|
|
654861
654861
|
if (prior.pid !== process.pid) return;
|
|
654862
654862
|
} catch {
|
|
654863
654863
|
}
|
|
654864
|
-
|
|
654864
|
+
unlinkSync29(lockFile);
|
|
654865
654865
|
} catch {
|
|
654866
654866
|
}
|
|
654867
654867
|
}
|
|
@@ -659606,7 +659606,7 @@ ${text2}`.trim());
|
|
|
659606
659606
|
for (const [key, entry] of this.mediaCache) {
|
|
659607
659607
|
if (now - entry.cachedAt > MEDIA_CACHE_TTL_MS) {
|
|
659608
659608
|
try {
|
|
659609
|
-
|
|
659609
|
+
unlinkSync29(entry.localPath);
|
|
659610
659610
|
} catch {
|
|
659611
659611
|
}
|
|
659612
659612
|
this.mediaCache.delete(key);
|
|
@@ -660656,7 +660656,7 @@ import {
|
|
|
660656
660656
|
writeFileSync as writeFileSync73,
|
|
660657
660657
|
renameSync as renameSync10,
|
|
660658
660658
|
mkdirSync as mkdirSync82,
|
|
660659
|
-
unlinkSync as
|
|
660659
|
+
unlinkSync as unlinkSync30,
|
|
660660
660660
|
appendFileSync as appendFileSync14
|
|
660661
660661
|
} from "node:fs";
|
|
660662
660662
|
import { join as join146 } from "node:path";
|
|
@@ -660695,7 +660695,7 @@ function persistInFlight(j) {
|
|
|
660695
660695
|
function deleteInFlightFile(id) {
|
|
660696
660696
|
try {
|
|
660697
660697
|
const p2 = inFlightPath(id);
|
|
660698
|
-
if (existsSync133(p2))
|
|
660698
|
+
if (existsSync133(p2)) unlinkSync30(p2);
|
|
660699
660699
|
} catch {
|
|
660700
660700
|
}
|
|
660701
660701
|
}
|
|
@@ -660915,7 +660915,7 @@ function drainCheckins(sessionId) {
|
|
|
660915
660915
|
try {
|
|
660916
660916
|
const raw = readFileSync111(fp, "utf-8");
|
|
660917
660917
|
try {
|
|
660918
|
-
|
|
660918
|
+
unlinkSync30(fp);
|
|
660919
660919
|
} catch {
|
|
660920
660920
|
}
|
|
660921
660921
|
if (!raw.trim()) return [];
|
|
@@ -660953,7 +660953,7 @@ function listSessions2() {
|
|
|
660953
660953
|
function deleteSession2(id) {
|
|
660954
660954
|
try {
|
|
660955
660955
|
const p2 = sessionPath(id);
|
|
660956
|
-
if (existsSync133(p2))
|
|
660956
|
+
if (existsSync133(p2)) unlinkSync30(p2);
|
|
660957
660957
|
} catch {
|
|
660958
660958
|
}
|
|
660959
660959
|
deleteInFlightFile(id);
|
|
@@ -662294,7 +662294,7 @@ var init_access_policy = __esm({
|
|
|
662294
662294
|
|
|
662295
662295
|
// packages/cli/src/api/project-preferences.ts
|
|
662296
662296
|
import { createHash as createHash40 } from "node:crypto";
|
|
662297
|
-
import { existsSync as existsSync135, mkdirSync as mkdirSync84, readFileSync as readFileSync113, renameSync as renameSync12, writeFileSync as writeFileSync75, unlinkSync as
|
|
662297
|
+
import { existsSync as existsSync135, mkdirSync as mkdirSync84, readFileSync as readFileSync113, renameSync as renameSync12, writeFileSync as writeFileSync75, unlinkSync as unlinkSync31 } from "node:fs";
|
|
662298
662298
|
import { homedir as homedir48 } from "node:os";
|
|
662299
662299
|
import { join as join148, resolve as resolve58 } from "node:path";
|
|
662300
662300
|
import { randomUUID as randomUUID19 } from "node:crypto";
|
|
@@ -662355,7 +662355,7 @@ function writeProjectPreferences(root, partial) {
|
|
|
662355
662355
|
} catch {
|
|
662356
662356
|
}
|
|
662357
662357
|
try {
|
|
662358
|
-
|
|
662358
|
+
unlinkSync31(tmp);
|
|
662359
662359
|
} catch {
|
|
662360
662360
|
}
|
|
662361
662361
|
throw err;
|
|
@@ -662366,7 +662366,7 @@ function deleteProjectPreferences(root) {
|
|
|
662366
662366
|
try {
|
|
662367
662367
|
const file = prefsPath(root);
|
|
662368
662368
|
if (!existsSync135(file)) return false;
|
|
662369
|
-
|
|
662369
|
+
unlinkSync31(file);
|
|
662370
662370
|
return true;
|
|
662371
662371
|
} catch {
|
|
662372
662372
|
return false;
|
|
@@ -678308,7 +678308,7 @@ import { fileURLToPath as fileURLToPath19 } from "node:url";
|
|
|
678308
678308
|
import { dirname as dirname48, join as join158, resolve as resolve60 } from "node:path";
|
|
678309
678309
|
import { homedir as homedir54 } from "node:os";
|
|
678310
678310
|
import { spawn as spawn32, execSync as execSync59 } from "node:child_process";
|
|
678311
|
-
import { mkdirSync as mkdirSync92, writeFileSync as writeFileSync80, readFileSync as readFileSync120, readdirSync as readdirSync50, existsSync as existsSync145, watch as fsWatch4, renameSync as renameSync13, unlinkSync as
|
|
678311
|
+
import { mkdirSync as mkdirSync92, writeFileSync as writeFileSync80, readFileSync as readFileSync120, readdirSync as readdirSync50, existsSync as existsSync145, watch as fsWatch4, renameSync as renameSync13, unlinkSync as unlinkSync32, statSync as statSync52, openSync as openSync4, readSync as readSync2, closeSync as closeSync4 } from "node:fs";
|
|
678312
678312
|
import { randomBytes as randomBytes28, randomUUID as randomUUID20 } from "node:crypto";
|
|
678313
678313
|
import { createHash as createHash42 } from "node:crypto";
|
|
678314
678314
|
function memoryDbPaths3(baseDir = process.cwd()) {
|
|
@@ -679333,13 +679333,13 @@ function pruneOldJobs() {
|
|
|
679333
679333
|
const ts = ageRef ? Date.parse(ageRef) : NaN;
|
|
679334
679334
|
if (Number.isFinite(ts) && ts < cutoffMs) {
|
|
679335
679335
|
try {
|
|
679336
|
-
|
|
679336
|
+
unlinkSync32(path12);
|
|
679337
679337
|
} catch {
|
|
679338
679338
|
}
|
|
679339
679339
|
const outFile = path12.replace(/\.json$/, ".output");
|
|
679340
679340
|
if (existsSync145(outFile)) {
|
|
679341
679341
|
try {
|
|
679342
|
-
|
|
679342
|
+
unlinkSync32(outFile);
|
|
679343
679343
|
} catch {
|
|
679344
679344
|
}
|
|
679345
679345
|
}
|
|
@@ -679349,7 +679349,7 @@ function pruneOldJobs() {
|
|
|
679349
679349
|
}
|
|
679350
679350
|
} catch {
|
|
679351
679351
|
try {
|
|
679352
|
-
|
|
679352
|
+
unlinkSync32(path12);
|
|
679353
679353
|
pruned++;
|
|
679354
679354
|
} catch {
|
|
679355
679355
|
}
|
|
@@ -679641,7 +679641,7 @@ function atomicJobWrite(dir, id, job) {
|
|
|
679641
679641
|
} catch {
|
|
679642
679642
|
}
|
|
679643
679643
|
try {
|
|
679644
|
-
|
|
679644
|
+
unlinkSync32(tmpPath);
|
|
679645
679645
|
} catch {
|
|
679646
679646
|
}
|
|
679647
679647
|
}
|
|
@@ -682985,7 +682985,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
|
|
|
682985
682985
|
return;
|
|
682986
682986
|
}
|
|
682987
682987
|
const { tmpdir: tmpdir24 } = await import("node:os");
|
|
682988
|
-
const { writeFileSync: writeFileSync85, unlinkSync:
|
|
682988
|
+
const { writeFileSync: writeFileSync85, unlinkSync: unlinkSync33 } = await import("node:fs");
|
|
682989
682989
|
const { join: pjoin } = await import("node:path");
|
|
682990
682990
|
const tmpPath = pjoin(tmpdir24(), `omnius-clone-upload-${Date.now()}-${safeName3}`);
|
|
682991
682991
|
writeFileSync85(tmpPath, buf);
|
|
@@ -683000,7 +683000,7 @@ async function handleRequest(req3, res, ollamaUrl, verbose, runtimeDefaults = {}
|
|
|
683000
683000
|
});
|
|
683001
683001
|
} finally {
|
|
683002
683002
|
try {
|
|
683003
|
-
|
|
683003
|
+
unlinkSync33(tmpPath);
|
|
683004
683004
|
} catch {
|
|
683005
683005
|
}
|
|
683006
683006
|
}
|
|
@@ -685431,8 +685431,8 @@ function startApiServer(options2 = {}) {
|
|
|
685431
685431
|
const job = JSON.parse(readFileSync120(jobPath, "utf-8"));
|
|
685432
685432
|
const jobTime = new Date(job.startedAt ?? job.completedAt ?? 0).getTime();
|
|
685433
685433
|
if (jobTime > 0 && jobTime < cutoff && job.status !== "running") {
|
|
685434
|
-
const { unlinkSync:
|
|
685435
|
-
|
|
685434
|
+
const { unlinkSync: unlinkSync33 } = require4("node:fs");
|
|
685435
|
+
unlinkSync33(jobPath);
|
|
685436
685436
|
}
|
|
685437
685437
|
} catch {
|
|
685438
685438
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.238",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.238",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED