@tekmidian/pai 0.65.2 → 0.66.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/{chain-CT3SI-3z.mjs → chain-CZfKIEq9.mjs} +4 -4
- package/dist/{chain-CT3SI-3z.mjs.map → chain-CZfKIEq9.mjs.map} +1 -1
- package/dist/cli/index.mjs +9 -9
- package/dist/cli/program.mjs +9 -9
- package/dist/{context-handover-cache-CRSFdkNi.mjs → context-handover-cache-pkHzmL3c.mjs} +3 -3
- package/dist/{context-handover-cache-CRSFdkNi.mjs.map → context-handover-cache-pkHzmL3c.mjs.map} +1 -1
- package/dist/daemon/index.mjs +7 -7
- package/dist/{daemon-SaPnmoyg.mjs → daemon-DXlaVCkw.mjs} +9 -9
- package/dist/{daemon-SaPnmoyg.mjs.map → daemon-DXlaVCkw.mjs.map} +1 -1
- package/dist/{daemon-DoTVK9z6.mjs → daemon-DyORmxZu.mjs} +7 -7
- package/dist/daemon-mcp/index.mjs +8 -6
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/{fallback-vHjFZP0Y.mjs → fallback-CIiq2Raw.mjs} +18 -8
- package/dist/fallback-CIiq2Raw.mjs.map +1 -0
- package/dist/hooks/block-sleep-poll.mjs.map +2 -2
- package/dist/hooks/load-project-context.mjs +16 -0
- package/dist/hooks/load-project-context.mjs.map +2 -2
- package/dist/hooks/route-agents-to-worker.mjs +16 -0
- package/dist/hooks/route-agents-to-worker.mjs.map +2 -2
- package/dist/hooks/security-validator.mjs +16 -0
- package/dist/hooks/security-validator.mjs.map +2 -2
- package/dist/hooks/worker-guard.mjs +15 -0
- package/dist/hooks/worker-guard.mjs.map +3 -3
- package/dist/hooks/worker-proxy.mjs +16 -0
- package/dist/hooks/worker-proxy.mjs.map +2 -2
- package/dist/hooks/worker-status-line.mjs +17 -0
- package/dist/hooks/worker-status-line.mjs.map +2 -2
- package/dist/hooks/worker-supervision.mjs +16 -0
- package/dist/hooks/worker-supervision.mjs.map +2 -2
- package/dist/{main-resolver-VSM5ytnA.mjs → main-resolver-BKz_OuEh.mjs} +2 -2
- package/dist/{main-resolver-CKNGux1B.mjs → main-resolver-DPPwHNtn.mjs} +2 -2
- package/dist/{main-resolver-CKNGux1B.mjs.map → main-resolver-DPPwHNtn.mjs.map} +1 -1
- package/dist/{planner-Dzs9-8AS.mjs → planner-Dm5Acyo1.mjs} +5 -5
- package/dist/{planner-Dzs9-8AS.mjs.map → planner-Dm5Acyo1.mjs.map} +1 -1
- package/dist/{program-DK0mRRlf.mjs → program-JJ0TwSHI.mjs} +59 -16
- package/dist/program-JJ0TwSHI.mjs.map +1 -0
- package/dist/{run-DMaCpvMW.mjs → run-BCpbxqA5.mjs} +490 -26
- package/dist/run-BCpbxqA5.mjs.map +1 -0
- package/dist/{run-env-BHWnXqle.mjs → run-env-DRcp7A8K.mjs} +16 -2
- package/dist/run-env-DRcp7A8K.mjs.map +1 -0
- package/dist/{server-DlL1QI2k.mjs → server-DgmAHyFK.mjs} +2 -2
- package/dist/{server-DlL1QI2k.mjs.map → server-DgmAHyFK.mjs.map} +1 -1
- package/dist/{session-keepalive-DVZ9-7qg.mjs → session-keepalive-DxjTHGcK.mjs} +4 -4
- package/dist/{session-keepalive-DVZ9-7qg.mjs.map → session-keepalive-DxjTHGcK.mjs.map} +1 -1
- package/dist/{work-queue-worker-DZiEMvBQ.mjs → work-queue-worker-4tLa5gpQ.mjs} +2 -2
- package/dist/{work-queue-worker-DZiEMvBQ.mjs.map → work-queue-worker-4tLa5gpQ.mjs.map} +1 -1
- package/dist/{work-queue-worker-D7GHuj2I.mjs → work-queue-worker-rFZvTO3p.mjs} +4 -4
- package/docs/commands/README.md +1 -0
- package/docs/commands/worker.md +30 -0
- package/package.json +1 -1
- package/src/hooks/ts/lib/worker-guard.test.ts +12 -0
- package/src/hooks/ts/lib/worker-guard.ts +13 -0
- package/dist/fallback-vHjFZP0Y.mjs.map +0 -1
- package/dist/program-DK0mRRlf.mjs.map +0 -1
- package/dist/run-DMaCpvMW.mjs.map +0 -1
- package/dist/run-env-BHWnXqle.mjs.map +0 -1
package/dist/daemon/index.mjs
CHANGED
|
@@ -3,21 +3,21 @@ import "../utils-C9HsYDpO.mjs";
|
|
|
3
3
|
import "../migrate-BD7D8EEh.mjs";
|
|
4
4
|
import "../factory-CNpPQQ-5.mjs";
|
|
5
5
|
import "../wakeup-D8n33hYV.mjs";
|
|
6
|
-
import "../context-handover-cache-
|
|
6
|
+
import "../context-handover-cache-pkHzmL3c.mjs";
|
|
7
7
|
import { a as ensureConfigDir, s as loadConfig } from "../config-BbLFD7Uf.mjs";
|
|
8
|
-
import "../run-env-
|
|
9
|
-
import "../run-
|
|
8
|
+
import "../run-env-DRcp7A8K.mjs";
|
|
9
|
+
import "../run-BCpbxqA5.mjs";
|
|
10
10
|
import { t as PaiClient } from "../ipc-client-D16Xw6Uo.mjs";
|
|
11
|
-
import "../server-
|
|
11
|
+
import "../server-DgmAHyFK.mjs";
|
|
12
12
|
import "../state-HyjqTihC.mjs";
|
|
13
13
|
import "../aibroker-client-C5Fw7DNz.mjs";
|
|
14
|
-
import "../session-keepalive-
|
|
14
|
+
import "../session-keepalive-DxjTHGcK.mjs";
|
|
15
15
|
import { t as dropItermBundleId } from "../env-JNEIrQWg.mjs";
|
|
16
16
|
import "../embeddings-Bx3q0QOY.mjs";
|
|
17
|
-
import { t as serve } from "../daemon-
|
|
17
|
+
import { t as serve } from "../daemon-DXlaVCkw.mjs";
|
|
18
18
|
import "../router-a5G7q8_3.mjs";
|
|
19
19
|
import "../tools-BcOKPBtg.mjs";
|
|
20
|
-
import "../work-queue-worker-
|
|
20
|
+
import "../work-queue-worker-4tLa5gpQ.mjs";
|
|
21
21
|
import { Command } from "commander";
|
|
22
22
|
|
|
23
23
|
//#region src/daemon/index.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as createRegistryBackend, o as getBackendOutage, r as createStorageBackend } from "./factory-CNpPQQ-5.mjs";
|
|
2
|
-
import { a as enqueue, c as loadQueue, o as getStats } from "./context-handover-cache-
|
|
2
|
+
import { a as enqueue, c as loadQueue, o as getStats } from "./context-handover-cache-pkHzmL3c.mjs";
|
|
3
3
|
import { S as DEFAULT_NOTIFICATION_CONFIG, d as readMainConfigRaw, f as writeMainConfigRaw } from "./config-BbLFD7Uf.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { h as ledgerPath, m as eventsPath, v as workersLogDir } from "./server-
|
|
4
|
+
import { D as readWorkersSection } from "./run-env-DRcp7A8K.mjs";
|
|
5
|
+
import { G as loadStatuses, H as isChatPane, P as appendLedger, R as alive, W as loadStatus, n as runWorker, q as nowStamp, x as itermForClaudeSession } from "./run-BCpbxqA5.mjs";
|
|
6
|
+
import { h as ledgerPath, m as eventsPath, v as workersLogDir } from "./server-DgmAHyFK.mjs";
|
|
7
7
|
import { A as vaultIndexInProgress, C as setShutdownRequested, D as shutdownRequested, E as setVaultIndexInProgress, O as startTime, S as setRegistryBackend, T as setStorageBackend, _ as setIndexSchedulerTimer, a as indexInProgress, b as setLastVaultIndexTime, c as lastIndexTime, d as registryBackend, f as setCacheKeepaliveTimer, g as setIndexInProgress, h as setEmbedSchedulerTimer, i as embedSchedulerTimer, k as storageBackend, l as lastVaultIndexTime, m as setEmbedInProgress, n as daemonConfig, o as indexSchedulerTimer, p as setDaemonConfig, r as embedInProgress, s as lastEmbedTime, t as cacheKeepaliveTimer, u as notificationConfig, v as setLastEmbedTime, w as setStartTime, x as setNotificationConfig, y as setLastIndexTime } from "./state-HyjqTihC.mjs";
|
|
8
|
-
import { n as runSessionKeepaliveTick } from "./session-keepalive-
|
|
8
|
+
import { n as runSessionKeepaliveTick } from "./session-keepalive-DxjTHGcK.mjs";
|
|
9
9
|
import { t as configureEmbeddingModel } from "./embeddings-Bx3q0QOY.mjs";
|
|
10
10
|
import { t as routeNotification } from "./router-a5G7q8_3.mjs";
|
|
11
11
|
import { C as toolProjectInfo, D as toolMemoryGet, O as toolMemoryOutline, S as toolProjectHealth, T as toolProjectTodo, a as toolMemoryWakeup, b as toolSessionRoute, i as toolMemoryTaxonomy, k as toolMemorySearch, n as toolMemoryFeedback, t as toolMemoryKgSearch, v as toolRegistrySearch, w as toolProjectList, x as toolProjectDetect, y as toolSessionList } from "./tools-BcOKPBtg.mjs";
|
|
12
12
|
import { t as detectTopicShift } from "./detector-BRTtAWrM.mjs";
|
|
13
|
-
import { i as stopWorker, n as notifyNewWork, r as startWorker } from "./work-queue-worker-
|
|
13
|
+
import { i as stopWorker, n as notifyNewWork, r as startWorker } from "./work-queue-worker-4tLa5gpQ.mjs";
|
|
14
14
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
15
15
|
import { setPriority } from "node:os";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
@@ -770,12 +770,12 @@ const REGISTRY_SCAN_STARTUP_DELAY_MS = 1e4;
|
|
|
770
770
|
function startRegistryScanScheduler() {
|
|
771
771
|
process.stderr.write("[pai-daemon] Registry scan scheduler: every 30min (first in 10s)\n");
|
|
772
772
|
setTimeout(() => {
|
|
773
|
-
import("./work-queue-worker-
|
|
773
|
+
import("./work-queue-worker-rFZvTO3p.mjs").then(({ enqueueRegistryScan }) => enqueueRegistryScan()).catch((e) => {
|
|
774
774
|
process.stderr.write(`[pai-daemon] Startup registry scan error: ${e}\n`);
|
|
775
775
|
});
|
|
776
776
|
}, REGISTRY_SCAN_STARTUP_DELAY_MS);
|
|
777
777
|
const timer = setInterval(() => {
|
|
778
|
-
import("./work-queue-worker-
|
|
778
|
+
import("./work-queue-worker-rFZvTO3p.mjs").then(({ enqueueRegistryScan }) => enqueueRegistryScan()).catch((e) => {
|
|
779
779
|
process.stderr.write(`[pai-daemon] Scheduled registry scan error: ${e}\n`);
|
|
780
780
|
});
|
|
781
781
|
}, REGISTRY_SCAN_INTERVAL_MS);
|
|
@@ -1738,4 +1738,4 @@ async function serve(config) {
|
|
|
1738
1738
|
|
|
1739
1739
|
//#endregion
|
|
1740
1740
|
export { serve as t };
|
|
1741
|
-
//# sourceMappingURL=daemon-
|
|
1741
|
+
//# sourceMappingURL=daemon-DXlaVCkw.mjs.map
|