@tekmidian/pai 0.52.0 → 0.53.0
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-BBbVbWVv.mjs → chain-BcBDJ1Id.mjs} +4 -4
- package/dist/{chain-BBbVbWVv.mjs.map → chain-BcBDJ1Id.mjs.map} +1 -1
- package/dist/cli/index.mjs +9 -9
- package/dist/cli/program.mjs +9 -9
- package/dist/{config-DYXARgk8.mjs → config-B3EPzRjf.mjs} +6 -1
- package/dist/config-B3EPzRjf.mjs.map +1 -0
- package/dist/{context-handover-cache-yOuK9RIk.mjs → context-handover-cache-CXyH6QsC.mjs} +3 -3
- package/dist/{context-handover-cache-yOuK9RIk.mjs.map → context-handover-cache-CXyH6QsC.mjs.map} +1 -1
- package/dist/daemon/index.mjs +7 -7
- package/dist/{daemon-COyx4FGM.mjs → daemon-BkJNFWr9.mjs} +9 -9
- package/dist/{daemon-COyx4FGM.mjs.map → daemon-BkJNFWr9.mjs.map} +1 -1
- package/dist/{daemon-BIbpQeXx.mjs → daemon-CiythMfR.mjs} +7 -7
- package/dist/daemon-mcp/index.mjs +6 -6
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/{fallback-CIGspCSi.mjs → fallback-CPfyTSTx.mjs} +4 -4
- package/dist/{fallback-CIGspCSi.mjs.map → fallback-CPfyTSTx.mjs.map} +1 -1
- package/dist/hooks/route-agents-to-worker.mjs +6 -0
- package/dist/hooks/route-agents-to-worker.mjs.map +2 -2
- package/dist/hooks/worker-proxy.mjs +6 -0
- package/dist/hooks/worker-proxy.mjs.map +2 -2
- package/dist/hooks/worker-status-line.mjs +6 -0
- package/dist/hooks/worker-status-line.mjs.map +2 -2
- package/dist/hooks/worker-supervision.mjs +6 -0
- package/dist/hooks/worker-supervision.mjs.map +2 -2
- package/dist/{main-resolver-DyeXNI8b.mjs → main-resolver-B_auiSAg.mjs} +2 -2
- package/dist/{main-resolver-Dv-oC46Z.mjs → main-resolver-Dl__GxNI.mjs} +2 -2
- package/dist/{main-resolver-Dv-oC46Z.mjs.map → main-resolver-Dl__GxNI.mjs.map} +1 -1
- package/dist/{planner-BiH9msqq.mjs → planner-BLbCtBUa.mjs} +5 -5
- package/dist/{planner-BiH9msqq.mjs.map → planner-BLbCtBUa.mjs.map} +1 -1
- package/dist/{program-ClTUv9-k.mjs → program-DdCumNTx.mjs} +12 -12
- package/dist/{program-ClTUv9-k.mjs.map → program-DdCumNTx.mjs.map} +1 -1
- package/dist/{run-TChOnMO_.mjs → run-C7EDdVAB.mjs} +13 -9
- package/dist/{run-TChOnMO_.mjs.map → run-C7EDdVAB.mjs.map} +1 -1
- package/dist/{server-R9UkCn3v.mjs → server-CGiHdaUp.mjs} +33 -4
- package/dist/server-CGiHdaUp.mjs.map +1 -0
- package/dist/{session-keepalive-BkLOTZf6.mjs → session-keepalive-DC2JGggK.mjs} +4 -4
- package/dist/{session-keepalive-BkLOTZf6.mjs.map → session-keepalive-DC2JGggK.mjs.map} +1 -1
- package/dist/{work-queue-worker-D-DnQ7oh.mjs → work-queue-worker-DsdJx-jn.mjs} +4 -4
- package/dist/{work-queue-worker-B9zVWImP.mjs → work-queue-worker-utPp4hUv.mjs} +2 -2
- package/dist/{work-queue-worker-B9zVWImP.mjs.map → work-queue-worker-utPp4hUv.mjs.map} +1 -1
- package/docs/cache-keepalive.md +7 -0
- package/docs/config.md +4 -0
- package/docs/worker.md +10 -0
- package/docs/workers-config.md +1 -1
- package/package.json +1 -1
- package/dist/config-DYXARgk8.mjs.map +0 -1
- package/dist/server-R9UkCn3v.mjs.map +0 -1
package/dist/daemon/index.mjs
CHANGED
|
@@ -7,22 +7,22 @@ import "../helpers-crDEr6S2.mjs";
|
|
|
7
7
|
import "../sync-Btcb6xA4.mjs";
|
|
8
8
|
import "../embeddings-DvRKcQyt.mjs";
|
|
9
9
|
import "../search-B69cQwDB.mjs";
|
|
10
|
-
import "../context-handover-cache-
|
|
10
|
+
import "../context-handover-cache-CXyH6QsC.mjs";
|
|
11
11
|
import { a as ensureConfigDir, s as loadConfig } from "../config-Bn9jpblO.mjs";
|
|
12
|
-
import "../config-
|
|
13
|
-
import "../run-
|
|
14
|
-
import "../session-keepalive-
|
|
12
|
+
import "../config-B3EPzRjf.mjs";
|
|
13
|
+
import "../run-C7EDdVAB.mjs";
|
|
14
|
+
import "../session-keepalive-DC2JGggK.mjs";
|
|
15
15
|
import { t as PaiClient } from "../ipc-client-C6NryMMb.mjs";
|
|
16
16
|
import "../factory-Bt7TWQje.mjs";
|
|
17
17
|
import "../wakeup-Yk5lQ0jb.mjs";
|
|
18
|
-
import "../server-
|
|
18
|
+
import "../server-CGiHdaUp.mjs";
|
|
19
19
|
import "../state-DwrsOoMi.mjs";
|
|
20
20
|
import "../aibroker-client-DzkTpVjx.mjs";
|
|
21
|
-
import { t as serve } from "../daemon-
|
|
21
|
+
import { t as serve } from "../daemon-BkJNFWr9.mjs";
|
|
22
22
|
import "../router-DBAZfE7X.mjs";
|
|
23
23
|
import "../tools-BEqiJt_j.mjs";
|
|
24
24
|
import "../detector-DWXkeTlk.mjs";
|
|
25
|
-
import "../work-queue-worker-
|
|
25
|
+
import "../work-queue-worker-utPp4hUv.mjs";
|
|
26
26
|
import { Command } from "commander";
|
|
27
27
|
|
|
28
28
|
//#region src/daemon/index.ts
|
|
@@ -3,18 +3,18 @@ import { r as openFederation } from "./db-DJ8rk0VM.mjs";
|
|
|
3
3
|
import { d as sha256 } from "./helpers-crDEr6S2.mjs";
|
|
4
4
|
import { n as indexAll } from "./sync-Btcb6xA4.mjs";
|
|
5
5
|
import { t as configureEmbeddingModel } from "./embeddings-DvRKcQyt.mjs";
|
|
6
|
-
import { a as enqueue, c as loadQueue, o as getStats } from "./context-handover-cache-
|
|
6
|
+
import { a as enqueue, c as loadQueue, o as getStats } from "./context-handover-cache-CXyH6QsC.mjs";
|
|
7
7
|
import { S as DEFAULT_NOTIFICATION_CONFIG, d as readMainConfigRaw, f as writeMainConfigRaw } from "./config-Bn9jpblO.mjs";
|
|
8
|
-
import { C as readWorkersSection } from "./config-
|
|
9
|
-
import { F as loadStatuses, L as nowStamp, M as isChatPane, P as loadStatus, T as appendLedger, g as itermForClaudeSession, k as alive, n as runWorker } from "./run-
|
|
10
|
-
import { n as runSessionKeepaliveTick } from "./session-keepalive-
|
|
8
|
+
import { C as readWorkersSection } from "./config-B3EPzRjf.mjs";
|
|
9
|
+
import { F as loadStatuses, L as nowStamp, M as isChatPane, P as loadStatus, T as appendLedger, g as itermForClaudeSession, k as alive, n as runWorker } from "./run-C7EDdVAB.mjs";
|
|
10
|
+
import { n as runSessionKeepaliveTick } from "./session-keepalive-DC2JGggK.mjs";
|
|
11
11
|
import { n as getBackendOutage, t as createStorageBackend } from "./factory-Bt7TWQje.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { _ as ledgerPath, b as workersLogDir, g as eventsPath } from "./server-CGiHdaUp.mjs";
|
|
13
13
|
import { A as vaultIndexInProgress, C as setShutdownRequested, D as shutdownRequested, E as setVaultIndexInProgress, O as startTime, S as setRegistryDb, T as setStorageBackend, _ as setIndexSchedulerTimer, a as indexInProgress, b as setLastVaultIndexTime, c as lastIndexTime, d as registryDb, 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-DwrsOoMi.mjs";
|
|
14
14
|
import { t as routeNotification } from "./router-DBAZfE7X.mjs";
|
|
15
15
|
import { C as toolProjectInfo, D as toolMemoryGet, O as toolMemorySearch, S as toolProjectHealth, T as toolProjectTodo, a as toolMemoryWakeup, b as toolSessionRoute, i as toolMemoryTaxonomy, n as toolMemoryFeedback, t as toolMemoryKgSearch, v as toolRegistrySearch, w as toolProjectList, x as toolProjectDetect, y as toolSessionList } from "./tools-BEqiJt_j.mjs";
|
|
16
16
|
import { t as detectTopicShift } from "./detector-DWXkeTlk.mjs";
|
|
17
|
-
import { i as stopWorker, n as notifyNewWork, r as startWorker } from "./work-queue-worker-
|
|
17
|
+
import { i as stopWorker, n as notifyNewWork, r as startWorker } from "./work-queue-worker-utPp4hUv.mjs";
|
|
18
18
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { setPriority } from "node:os";
|
|
20
20
|
import { dirname, join } from "node:path";
|
|
@@ -1024,12 +1024,12 @@ const REGISTRY_SCAN_STARTUP_DELAY_MS = 1e4;
|
|
|
1024
1024
|
function startRegistryScanScheduler() {
|
|
1025
1025
|
process.stderr.write("[pai-daemon] Registry scan scheduler: every 30min (first in 10s)\n");
|
|
1026
1026
|
setTimeout(() => {
|
|
1027
|
-
import("./work-queue-worker-
|
|
1027
|
+
import("./work-queue-worker-DsdJx-jn.mjs").then(({ enqueueRegistryScan }) => enqueueRegistryScan()).catch((e) => {
|
|
1028
1028
|
process.stderr.write(`[pai-daemon] Startup registry scan error: ${e}\n`);
|
|
1029
1029
|
});
|
|
1030
1030
|
}, REGISTRY_SCAN_STARTUP_DELAY_MS);
|
|
1031
1031
|
const timer = setInterval(() => {
|
|
1032
|
-
import("./work-queue-worker-
|
|
1032
|
+
import("./work-queue-worker-DsdJx-jn.mjs").then(({ enqueueRegistryScan }) => enqueueRegistryScan()).catch((e) => {
|
|
1033
1033
|
process.stderr.write(`[pai-daemon] Scheduled registry scan error: ${e}\n`);
|
|
1034
1034
|
});
|
|
1035
1035
|
}, REGISTRY_SCAN_INTERVAL_MS);
|
|
@@ -1964,4 +1964,4 @@ async function serve(config) {
|
|
|
1964
1964
|
|
|
1965
1965
|
//#endregion
|
|
1966
1966
|
export { serve as t };
|
|
1967
|
-
//# sourceMappingURL=daemon-
|
|
1967
|
+
//# sourceMappingURL=daemon-BkJNFWr9.mjs.map
|