@tekmidian/pai 1.0.3 → 1.0.5
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/.claude-plugin/plugin.json +1 -1
- package/dist/{auto-route-B7Yu6Uam.mjs → auto-route-DUYr57rs.mjs} +2 -2
- package/dist/auto-route-DWYK_0i0.mjs +11 -0
- package/dist/budget-DX-VIWGf.mjs +15 -0
- package/dist/{caller-identity-yLFb7CKq.mjs → caller-identity-Bim8JT-D.mjs} +3 -3
- package/dist/{capacity-DEveQdFV.mjs → capacity-CsZMkVyg.mjs} +7 -4
- package/dist/{chain-7n9Gx56r.mjs → chain-Dzz6xcKH.mjs} +5 -5
- package/dist/cli/index.mjs +114 -208
- package/dist/{cockpit-actions-BBHeyEZI.mjs → cockpit-actions-BTA1njMO.mjs} +31 -25
- package/dist/{cockpit-actions-DR9X514g.mjs → cockpit-actions-BgsiNcUY.mjs} +18 -18
- package/dist/cockpit-memory-DIrNs4xr.mjs +20 -0
- package/dist/config/defaults/config.yaml +9 -0
- package/dist/{config-XpZWOYOG.mjs → config-CST2uq1v.mjs} +29 -4
- package/dist/{config-Bu1_vbY8.mjs → config-DYbyEe4-.mjs} +2 -2
- package/dist/{config-DtENJ6cL.mjs → config-Dv3t7xnT.mjs} +1 -1
- package/dist/config-h5qK3fst.mjs +4 -0
- package/dist/{controls-CPoeudou.mjs → controls-OiVVbe-f.mjs} +18 -16
- package/dist/daemon/index.mjs +38 -37
- package/dist/{daemon-DPAo6WTa.mjs → daemon-C1dycZ3W.mjs} +35 -29
- package/dist/daemon-ieo0lnpq.mjs +46 -0
- package/dist/daemon-mcp/index.mjs +35 -35
- package/dist/detect-C0ZBXqDL.mjs +10 -0
- package/dist/{detect-9CZNO0yf.mjs → detect-CHuxFrLy.mjs} +2 -2
- package/dist/{embed-pass-DIWjA68P.mjs → embed-pass-DtVF2fOV.mjs} +4 -4
- package/dist/{embedding-gate-Cnk4YCyX.mjs → embedding-gate-B98PK_wz.mjs} +2 -2
- package/dist/{embedding-gate-6rZrWRXa.mjs → embedding-gate-CTAk8STe.mjs} +2 -2
- package/dist/{endreason-C577xIQz.mjs → endreason-BqyyU7BH.mjs} +20 -6
- package/dist/{factory-DjAAsqr_.mjs → factory-BV0MQA3T.mjs} +4 -4
- package/dist/{factory-Bsib-qDG.mjs → factory-DeASMV7Z.mjs} +4 -4
- package/dist/{fallback-DFlItw1Z.mjs → fallback-Bj2cyVk_.mjs} +230 -8
- package/dist/{health-Dnym-qcT.mjs → health-kufVIf6i.mjs} +4 -4
- package/dist/{helpers-BD6V-p9w.mjs → helpers-CvbYEKoD.mjs} +2 -2
- package/dist/{helpers-CMGjy_0N.mjs → helpers-WV8tdQHM.mjs} +5 -5
- package/dist/hooks/block-sleep-poll.mjs +1 -1
- package/dist/hooks/capture-all-events.mjs +21 -2
- package/dist/hooks/capture-tool-output.mjs +21 -2
- package/dist/hooks/load-project-context.mjs +7 -7
- package/dist/hooks/local-model-hint.mjs +1 -1
- package/dist/hooks/route-agents-to-worker.mjs +1 -1
- package/dist/hooks/security-validator.mjs +2 -2
- package/dist/hooks/worker-edit-repair.mjs +2 -2
- package/dist/hooks/worker-guard.mjs +8 -8
- package/dist/hooks/worker-note.mjs +2 -2
- package/dist/hooks/worker-pool-host.mjs +158 -55
- package/dist/hooks/worker-proxy.mjs +1 -1
- package/dist/hooks/worker-status-line.mjs +50 -22
- package/dist/hooks/worker-supervision.mjs +1 -1
- package/dist/hooks/worker-tool-name-repair.mjs +2 -2
- package/dist/index.mjs +8 -8
- package/dist/{indexer-backend-Cll7le4P.mjs → indexer-backend-B2vtFl38.mjs} +37 -234
- package/dist/{ipc-client-CaiGJnSM.mjs → ipc-client-CnYEF31R.mjs} +1 -1
- package/dist/{ipc-client-ZRmDKd5Z.mjs → ipc-client-DN7EvoVo.mjs} +1 -1
- package/dist/kill-tree-CXZ0WfVf.mjs +10 -0
- package/dist/{kill-tree-EWYaEk5v.mjs → kill-tree-CcpsRLCZ.mjs} +7 -7
- package/dist/{launch-Jh5NVeNe.mjs → launch-DpQPZGsT.mjs} +3 -3
- package/dist/{launch-CXVlZjHt.mjs → launch-UPQBoW2q.mjs} +3 -3
- package/dist/{local-candidate-DLdwQt0s.mjs → local-candidate-Cp_bw4kK.mjs} +3 -3
- package/dist/{local-instances-ZeRkkuS5.mjs → local-instances-B-c-CxzP.mjs} +4 -4
- package/dist/{local-instances-DOxSgT_L.mjs → local-instances-bdCNNSsL.mjs} +2 -2
- package/dist/{local-tiers-BE4jGaMa.mjs → local-tiers-BtdEEe5n.mjs} +2 -2
- package/dist/{local-tiers-DNMI5W86.mjs → local-tiers-OBqAAfOg.mjs} +3 -3
- package/dist/{main-config-ops-BEMpuhDz.mjs → main-config-ops-BYsK3BxM.mjs} +3 -3
- package/dist/{main-resolver-3Ns1HPmS.mjs → main-resolver-CAC3xfZM.mjs} +17 -17
- package/dist/{model-inventory-BFVSNFT3.mjs → model-inventory-BuTpi9a6.mjs} +13 -13
- package/dist/{models-add-C1QIc1DA.mjs → models-add-CJx2YAwh.mjs} +37 -36
- package/dist/operator-Bpxq_WB5.mjs +7 -0
- package/dist/{operator-CyuB3aVw.mjs → operator-DrwWItVt.mjs} +2 -2
- package/dist/{pai-marker-BcZyJguM.mjs → pai-marker-DLKJ9Yr5.mjs} +2 -2
- package/dist/{pane-audit-DKQt71s4.mjs → pane-audit-wv9UkyCe.mjs} +27 -9
- package/dist/{paths-CFHTloSe.mjs → paths-DBd78I7Z.mjs} +3 -3
- package/dist/{paths-CHifubDh.mjs → paths-DS5VQKoR.mjs} +3 -3
- package/dist/{planner-BmFACdLa.mjs → planner-K0mFrCpL.mjs} +28 -28
- package/dist/{pool-Dh-q3iJi.mjs → pool-BZ94nFuq.mjs} +2 -2
- package/dist/{pool-cli-BggU8GRp.mjs → pool-cli-B1eKySeN.mjs} +5 -5
- package/dist/{pool-cli-DQ6OzRy2.mjs → pool-cli-BjYQDfx6.mjs} +6 -6
- package/dist/{postgres-C6ti4haA.mjs → postgres-C-T5OWer.mjs} +19 -9
- package/dist/{postgres-BdBNkL_l.mjs → postgres-CBHY5PIi.mjs} +3 -3
- package/dist/{project-setup-jvfONJTQ.mjs → project-setup-pIPHZaXf.mjs} +26 -246
- package/dist/{providers-CblTFrhz.mjs → providers-Dzx5GAUI.mjs} +6 -6
- package/dist/providers-QJzpaNhX.mjs +16 -0
- package/dist/{query-feedback-BRfPtqki.mjs → query-feedback-DN52N9C5.mjs} +1 -1
- package/dist/{registrable-DpyTtajg.mjs → registrable-CXBBpUcz.mjs} +4 -4
- package/dist/registrable-Drn8wIDO.mjs +9 -0
- package/dist/render-C4KR8qQ8.mjs +13 -0
- package/dist/{render-BYmQkuLd.mjs → render-Cz3BWIBO.mjs} +8 -8
- package/dist/root-Bfb1zgwE.mjs +36 -0
- package/dist/{root-Xglu0OPD.mjs → root-bG48WVpW.mjs} +10 -10
- package/dist/route-table-ZVMNBsy7.mjs +15 -0
- package/dist/{routing-BAAST9vT.mjs → routing-BlD_tKjW.mjs} +136 -18
- package/dist/{routing-CENt4HH1.mjs → routing-D27jxj9x.mjs} +13 -13
- package/dist/{run-CSC7mgPf.mjs → run-AZVwceiU.mjs} +49 -27
- package/dist/{scan-C_Y5W9py.mjs → scan-C3uotg_f.mjs} +5 -5
- package/dist/{scope-D-h6F6DN.mjs → scope-D8HK6vU7.mjs} +4 -4
- package/dist/{session-8iqQDkqb.mjs → session-BAfypQb9.mjs} +26 -26
- package/dist/session-BcnhepLZ.mjs +35 -0
- package/dist/{session-scan-W-gbwJHM.mjs → session-scan-BmnjSReu.mjs} +5 -5
- package/dist/session-scan-CqUQdCac.mjs +9 -0
- package/dist/session-usage-oycSdiD3.mjs +337 -0
- package/dist/{sources-ESUkZaWv.mjs → sources-CiE3rZek.mjs} +1 -1
- package/dist/{status-ggJ7lgVg.mjs → status-COtzewKV.mjs} +3 -3
- package/dist/{status-Dm4dYciN.mjs → status-D_SWmOlH.mjs} +4 -4
- package/dist/{tool-errors-CJWODvlo.mjs → tool-errors-B2LnIqR0.mjs} +6 -6
- package/dist/{tool-errors-7E13StWd.mjs → tool-errors-DXJ70-sr.mjs} +2 -2
- package/dist/{viewer-mDXUNHNy.mjs → viewer-BgGRqXfD.mjs} +14 -14
- package/dist/viewer-CbGN2Ri4.mjs +22 -0
- package/dist/{wait-ByV0OyMZ.mjs → wait-ChpHKJZV.mjs} +3 -3
- package/dist/worker-config-D1KVAMp4.mjs +42 -0
- package/dist/{worker-config-CJhEMk19.mjs → worker-config-DgdT0iTB.mjs} +443 -40
- package/dist/workers-config-BhZBrR-Q.mjs +4 -0
- package/dist/{worktree-CRs2gyg0.mjs → worktree-BY--Rgmy.mjs} +5 -5
- package/dist/{zettelkasten-B_rRRRvD.mjs → zettelkasten-BHVx5zj-.mjs} +4 -4
- package/dist/{zettelkasten-BzMm8REH.mjs → zettelkasten-LoH9RBiN.mjs} +2 -2
- package/docs/cockpit.md +1 -0
- package/docs/commands/README.md +1 -0
- package/docs/commands/config.md +20 -0
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/pai-plugin.json +1 -1
- package/plugins/context-preservation/plugin.json +1 -1
- package/plugins/core/plugin.json +1 -1
- package/plugins/creative/plugin.json +1 -1
- package/plugins/observability/plugin.json +1 -1
- package/plugins/productivity/plugin.json +1 -1
- package/plugins/semantic-search/plugin.json +1 -1
- package/plugins/ui/plugin.json +1 -1
- package/plugins/zettelkasten/plugin.json +1 -1
- package/src/hooks/ts/capture-all-events.ts +15 -3
- package/src/hooks/ts/lib/raw-capture.ts +7 -0
- package/src/hooks/ts/post-tool-use/capture-tool-output.ts +13 -3
- package/dist/auto-route-CjjQqU1o.mjs +0 -11
- package/dist/budget-Dod6rnA9.mjs +0 -15
- package/dist/cockpit-memory--dnShXBA.mjs +0 -20
- package/dist/config-Cxi-aBf4.mjs +0 -4
- package/dist/daemon-DKdBNKfa.mjs +0 -45
- package/dist/detect-D1ziFFfA.mjs +0 -10
- package/dist/kill-tree-BG7dRVtp.mjs +0 -10
- package/dist/operator-BTqvTIc8.mjs +0 -7
- package/dist/providers-BeDiVEb-.mjs +0 -16
- package/dist/registrable-BzH4TObg.mjs +0 -9
- package/dist/render-CoMvwMPs.mjs +0 -13
- package/dist/root-FtJsxYnm.mjs +0 -36
- package/dist/route-table-B7zpoypi.mjs +0 -15
- package/dist/session-BeqAbNPd.mjs +0 -35
- package/dist/session-scan-BJI_ZO8M.mjs +0 -9
- package/dist/viewer-CqozWW39.mjs +0 -22
- package/dist/worker-config-DESkIjMF.mjs +0 -41
- package/dist/workers-config-f8KrkY4L.mjs +0 -4
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
|
|
2
2
|
import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { f as readMainConfigRaw, i as defaults, p as writeMainConfigRaw, u as paiConfigFilePath, y as shippedMainDefaults } from "./config-
|
|
5
|
-
import { c as slotCurrentPath, i as ledgerPath, r as eventsPath, u as workersLogDir } from "./paths-
|
|
6
|
-
import { f as gcWorktreesThrottled, w as worktreesDir } from "./worktree-
|
|
7
|
-
import { B as loadStatusConfig, C as nowStamp, G as writeSectionToForge, I as PROJECT_CONFIG_REL, L as formatStale, b as loadStatusesCached, h as isChatPane, k as saveStatus, s as alive, v as loadStatus, z as listStale } from "./status-
|
|
8
|
-
import { a as unregistrableReason } from "./registrable-
|
|
3
|
+
import { Et as appendLedger, M as readWorkersSection, t as ANTHROPIC_NATIVE } from "./config-CST2uq1v.mjs";
|
|
4
|
+
import { f as readMainConfigRaw, i as defaults, p as writeMainConfigRaw, u as paiConfigFilePath, y as shippedMainDefaults } from "./config-DYbyEe4-.mjs";
|
|
5
|
+
import { c as slotCurrentPath, i as ledgerPath, r as eventsPath, u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
6
|
+
import { f as gcWorktreesThrottled, w as worktreesDir } from "./worktree-BY--Rgmy.mjs";
|
|
7
|
+
import { B as loadStatusConfig, C as nowStamp, G as writeSectionToForge, I as PROJECT_CONFIG_REL, L as formatStale, b as loadStatusesCached, h as isChatPane, k as saveStatus, s as alive, v as loadStatus, z as listStale } from "./status-COtzewKV.mjs";
|
|
8
|
+
import { a as unregistrableReason } from "./registrable-CXBBpUcz.mjs";
|
|
9
9
|
import { c as yieldToEventLoop, f as fileContentHash, l as buildOutline, n as chunkId, u as chunkMarkdown } from "./helpers-CRuBUas3.mjs";
|
|
10
10
|
import { n as TITLE_STOP_WORDS, t as STOP_WORDS } from "./stop-words-DSEYQdNe.mjs";
|
|
11
11
|
import { i as populateSlugs, t as applyRecencyBoost } from "./search-RSyeQqj1.mjs";
|
|
12
12
|
import { n as rerankResults } from "./reranker-CqCbpGnX.mjs";
|
|
13
|
-
import { i as itermUuid, r as itermForClaudeSession } from "./scope-
|
|
14
|
-
import {
|
|
13
|
+
import { i as itermUuid, r as itermForClaudeSession } from "./scope-D8HK6vU7.mjs";
|
|
14
|
+
import { Tn as startLocalStatusRefresh, st as startInventoryRefresh } from "./routing-BlD_tKjW.mjs";
|
|
15
15
|
import { n as minOf, t as maxOf } from "./min-max-DrSRUaWQ.mjs";
|
|
16
|
-
import { C as toolErrorSigTag, S as summarizeToolInput, T as toolErrorText, a as SAME_WORKER_WINDOW_MS, b as readToolErrors, c as classifyToolError, d as detectToolErrors, s as benignNote, u as detectRunningWorkerErrors, w as toolErrorSummary } from "./tool-errors-
|
|
17
|
-
import { b as killProcessTree } from "./wait-
|
|
18
|
-
import { a as buildsDir, b as stallMinutes, c as listBuilds, l as listBuildsSync, u as patchTicket } from "./caller-identity-
|
|
16
|
+
import { C as toolErrorSigTag, S as summarizeToolInput, T as toolErrorText, a as SAME_WORKER_WINDOW_MS, b as readToolErrors, c as classifyToolError, d as detectToolErrors, s as benignNote, u as detectRunningWorkerErrors, w as toolErrorSummary } from "./tool-errors-DXJ70-sr.mjs";
|
|
17
|
+
import { b as killProcessTree } from "./wait-ChpHKJZV.mjs";
|
|
18
|
+
import { a as buildsDir, b as stallMinutes, c as listBuilds, l as listBuildsSync, u as patchTicket } from "./caller-identity-Bim8JT-D.mjs";
|
|
19
19
|
import { t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
|
|
20
|
-
import { d as getBackendOutage, n as createRegistryBackend, r as createStorageBackend } from "./factory-
|
|
21
|
-
import { c as resolveFromModule, n as embedChunksWithBackend } from "./postgres-
|
|
22
|
-
import { a as requireQueryEmbedding, c as getConfiguredBackend, h as mismatchReason, m as bindingMatches, n as embedQuery } from "./embedding-gate-
|
|
20
|
+
import { d as getBackendOutage, n as createRegistryBackend, r as createStorageBackend } from "./factory-BV0MQA3T.mjs";
|
|
21
|
+
import { c as resolveFromModule, n as embedChunksWithBackend } from "./postgres-C-T5OWer.mjs";
|
|
22
|
+
import { a as requireQueryEmbedding, c as getConfiguredBackend, h as mismatchReason, m as bindingMatches, n as embedQuery } from "./embedding-gate-CTAk8STe.mjs";
|
|
23
23
|
import { i as deserializeEmbedding, n as configureEmbeddingModel, r as cosineSimilarity$1 } from "./embeddings-BVq3esBF.mjs";
|
|
24
24
|
import { n as routeNotification } from "./router-CQSc3lk3.mjs";
|
|
25
|
-
import { r as formatDetectionJson, t as detectProject } from "./detect-
|
|
26
|
-
import { i as performScan } from "./scan-
|
|
25
|
+
import { r as formatDetectionJson, t as detectProject } from "./detect-CHuxFrLy.mjs";
|
|
26
|
+
import { i as performScan } from "./scan-C3uotg_f.mjs";
|
|
27
27
|
import { r as sendToSession, t as callAiBroker } from "./aibroker-client-CQPGqLxL.mjs";
|
|
28
|
-
import { E as probeRouter, F as startHandover, M as routerSwapArgs, N as runRouterTick, O as routerIsStale, P as spawnRouter, j as routerRunningPid, l as runMessenger, t as runWorker } from "./run-
|
|
29
|
-
import { a as localIdleTick, et as closeEndedPanes, g as sweepRuns, gt as workerEnded, pt as paneMayClose, st as loadRegistry, xt as truncateLines } from "./controls-
|
|
30
|
-
import { l as isPaneRunId, n as auditTick, r as closeFinishedPanes } from "./pane-audit-
|
|
31
|
-
import { a as EMBED_PASS_BATCH_SIZE, c as liveYieldCheck, d as runEmbedCycle, i as DEFAULT_EMBED_RESUME_MINUTES, n as DEFAULT_EMBED_MAX_LOAD, r as DEFAULT_EMBED_MAX_MINUTES, t as DEFAULT_EMBED_CYCLE_MAX_MINUTES, u as recordEmbedPass } from "./embed-pass-
|
|
32
|
-
import {
|
|
33
|
-
import { r as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
28
|
+
import { E as probeRouter, F as startHandover, M as routerSwapArgs, N as runRouterTick, O as routerIsStale, P as spawnRouter, j as routerRunningPid, l as runMessenger, t as runWorker } from "./run-AZVwceiU.mjs";
|
|
29
|
+
import { a as localIdleTick, et as closeEndedPanes, g as sweepRuns, gt as workerEnded, pt as paneMayClose, st as loadRegistry, xt as truncateLines } from "./controls-OiVVbe-f.mjs";
|
|
30
|
+
import { l as isPaneRunId, n as auditTick, r as closeFinishedPanes } from "./pane-audit-wv9UkyCe.mjs";
|
|
31
|
+
import { a as EMBED_PASS_BATCH_SIZE, c as liveYieldCheck, d as runEmbedCycle, i as DEFAULT_EMBED_RESUME_MINUTES, n as DEFAULT_EMBED_MAX_LOAD, r as DEFAULT_EMBED_MAX_MINUTES, t as DEFAULT_EMBED_CYCLE_MAX_MINUTES, u as recordEmbedPass } from "./embed-pass-DtVF2fOV.mjs";
|
|
32
|
+
import { o as logWorkersConfigShadowsOnce } from "./session-usage-oycSdiD3.mjs";
|
|
33
|
+
import { $ as setStartTime, A as indexSchedulerTimer, At as startQuietWatcher, B as setDaemonConfig, Ct as runSessionKeepaliveTick, D as embedInProgress, E as daemonConfig, F as lastVaultIndexTime, Ft as writeDaemonPidfile, G as setLastEmbedPass, H as setEmbedSchedulerTimer, I as notificationConfig, It as readContextHandoverCache, J as setLastIndexTime, K as setLastEmbedTime, L as passFailures, Lt as writeContextHandoverCache, M as lastEmbedTime, N as lastIndexPass, Nt as removeDaemonPidfile, O as embedSchedulerTimer, P as lastIndexTime, Q as setShutdownRequested, R as registryBackend, S as handleSessionSummary, T as cacheKeepaliveTimer, Tt as deferIfQuiet, U as setIndexInProgress, Ut as restartRouter, V as setEmbedInProgress, W as setIndexSchedulerTimer, X as setNotificationConfig, Y as setLastVaultIndexTime, Z as setRegistryBackend, _ as markFailed, _t as buildWakeupContext, a as runPassChild, at as vaultIndexInProgress, b as findLatestJsonl, c as NonRetryableError, ct as addWorkToSessionNote, d as enqueue, dt as getCurrentNotePath, et as setStorageBackend, f as enqueueCoalesced, ft as archiveSessionFilesToSessionsDir, g as markCompleted, gt as vaultIndexEnabled, h as loadQueue, ht as obsidianEnabled, it as storageBackend, j as lastEmbedPass, k as indexInProgress, kt as registerQuietRunner, l as cleanup, lt as appendCheckpoint, m as hasPendingOrProcessingOfType, n as buildPassCommand, nt as shutdownRequested, o as backfillKgFromNotes, ot as sessionIdFromTranscript, p as getStats, pt as findNotesDir, q as setLastIndexPass, r as cliEntry, rt as startTime, st as updateTodoContinue, t as PassSpawnError, tt as setVaultIndexInProgress, u as dequeue, ut as finalizeSessionNote, w as spawnSummarizer, x as getGitContext, xt as sweepOrphans, y as contentToText$2, z as setCacheKeepaliveTimer } from "./indexer-backend-B2vtFl38.mjs";
|
|
34
|
+
import { r as saveQueryResult } from "./query-feedback-DN52N9C5.mjs";
|
|
35
|
+
import { n as formatAutoRouteJson, r as detectTopicShift, t as autoRoute } from "./auto-route-DUYr57rs.mjs";
|
|
36
|
+
import { a as zettelThemes, c as zettelExplore, i as zettelHealth, n as zettelGodNotes, o as zettelConverse, r as zettelSuggest, s as zettelSurprise, t as zettelCommunities } from "./zettelkasten-LoH9RBiN.mjs";
|
|
36
37
|
import { appendFileSync, chmodSync, closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, realpathSync, statSync, unlinkSync, utimesSync, writeFileSync } from "node:fs";
|
|
37
38
|
import { basename, dirname, isAbsolute, join, normalize, relative, resolve, sep } from "node:path";
|
|
38
39
|
import { setPriority } from "node:os";
|
|
@@ -734,12 +735,12 @@ async function checkLoops(logDir, statuses, sent, deps = {}) {
|
|
|
734
735
|
throw err;
|
|
735
736
|
}
|
|
736
737
|
}, say = async (logDir, id, text) => {
|
|
737
|
-
const { sayToWorker } = await import("./operator-
|
|
738
|
+
const { sayToWorker } = await import("./operator-Bpxq_WB5.mjs");
|
|
738
739
|
return sayToWorker(logDir, id, text);
|
|
739
740
|
}, kill = (pid) => {
|
|
740
741
|
process.kill(pid, "SIGTERM");
|
|
741
742
|
}, killChildren = async (logDir, id) => {
|
|
742
|
-
const { killTree } = await import("./kill-tree-
|
|
743
|
+
const { killTree } = await import("./kill-tree-CXZ0WfVf.mjs");
|
|
743
744
|
return killTree(logDir, id, {
|
|
744
745
|
skipRoot: true,
|
|
745
746
|
by: "loop-guard",
|
|
@@ -3222,7 +3223,9 @@ function startCacheKeepalive(opts = {}) {
|
|
|
3222
3223
|
tool_input_summary: void 0,
|
|
3223
3224
|
files_read: [],
|
|
3224
3225
|
files_modified: [],
|
|
3225
|
-
concepts: []
|
|
3226
|
+
concepts: [],
|
|
3227
|
+
source: "daemon",
|
|
3228
|
+
fidelity: "inferred"
|
|
3226
3229
|
});
|
|
3227
3230
|
} catch (e) {
|
|
3228
3231
|
process.stderr.write(`[pai-daemon] Cache keepalive observation error: ${e instanceof Error ? e.message : String(e)}\n`);
|
|
@@ -6269,7 +6272,9 @@ async function handleRequest(request, socket) {
|
|
|
6269
6272
|
files_read: p.files_read ?? [],
|
|
6270
6273
|
files_modified: p.files_modified ?? [],
|
|
6271
6274
|
concepts: p.concepts ?? [],
|
|
6272
|
-
cwd: p.cwd
|
|
6275
|
+
cwd: p.cwd,
|
|
6276
|
+
source: "hook",
|
|
6277
|
+
fidelity: "observed"
|
|
6273
6278
|
})
|
|
6274
6279
|
}
|
|
6275
6280
|
});
|
|
@@ -6780,6 +6785,7 @@ async function serve(config) {
|
|
|
6780
6785
|
process.stderr.write(`[pai-daemon] Socket: ${config.socketPath}\n`);
|
|
6781
6786
|
process.stderr.write(`[pai-daemon] Storage backend: ${config.storageBackend}\n`);
|
|
6782
6787
|
process.stderr.write(`[pai-daemon] Notification mode: ${notificationConfig.mode}\n`);
|
|
6788
|
+
logWorkersConfigShadowsOnce();
|
|
6783
6789
|
try {
|
|
6784
6790
|
setPriority(process.pid, 10);
|
|
6785
6791
|
} catch {}
|
|
@@ -6864,4 +6870,4 @@ async function serve(config) {
|
|
|
6864
6870
|
|
|
6865
6871
|
//#endregion
|
|
6866
6872
|
export { serve as t };
|
|
6867
|
-
//# sourceMappingURL=daemon-
|
|
6873
|
+
//# sourceMappingURL=daemon-C1dycZ3W.mjs.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "./utils-J2b9y8PC.mjs";
|
|
2
|
+
import "./migrate-DrA_OwlZ.mjs";
|
|
3
|
+
import "./config-CST2uq1v.mjs";
|
|
4
|
+
import "./config-DYbyEe4-.mjs";
|
|
5
|
+
import "./paths-DS5VQKoR.mjs";
|
|
6
|
+
import "./worktree-BY--Rgmy.mjs";
|
|
7
|
+
import "./status-COtzewKV.mjs";
|
|
8
|
+
import "./pool-BZ94nFuq.mjs";
|
|
9
|
+
import "./registrable-CXBBpUcz.mjs";
|
|
10
|
+
import "./pai-marker-DLKJ9Yr5.mjs";
|
|
11
|
+
import "./helpers-CRuBUas3.mjs";
|
|
12
|
+
import "./reranker-CqCbpGnX.mjs";
|
|
13
|
+
import "./scope-D8HK6vU7.mjs";
|
|
14
|
+
import "./routing-BlD_tKjW.mjs";
|
|
15
|
+
import "./tool-errors-DXJ70-sr.mjs";
|
|
16
|
+
import "./wait-ChpHKJZV.mjs";
|
|
17
|
+
import "./local-tiers-BtdEEe5n.mjs";
|
|
18
|
+
import "./caller-identity-Bim8JT-D.mjs";
|
|
19
|
+
import "./capacity-CsZMkVyg.mjs";
|
|
20
|
+
import "./local-instances-bdCNNSsL.mjs";
|
|
21
|
+
import "./local-candidate-Cp_bw4kK.mjs";
|
|
22
|
+
import "./factory-BV0MQA3T.mjs";
|
|
23
|
+
import "./postgres-C-T5OWer.mjs";
|
|
24
|
+
import "./embedding-gate-CTAk8STe.mjs";
|
|
25
|
+
import "./embeddings-BVq3esBF.mjs";
|
|
26
|
+
import "./router-CQSc3lk3.mjs";
|
|
27
|
+
import "./detect-CHuxFrLy.mjs";
|
|
28
|
+
import "./scan-C3uotg_f.mjs";
|
|
29
|
+
import "./launch-DpQPZGsT.mjs";
|
|
30
|
+
import "./run-AZVwceiU.mjs";
|
|
31
|
+
import "./controls-OiVVbe-f.mjs";
|
|
32
|
+
import "./endreason-BqyyU7BH.mjs";
|
|
33
|
+
import "./render-Cz3BWIBO.mjs";
|
|
34
|
+
import "./operator-DrwWItVt.mjs";
|
|
35
|
+
import "./kill-tree-CcpsRLCZ.mjs";
|
|
36
|
+
import "./pool-cli-B1eKySeN.mjs";
|
|
37
|
+
import "./pane-audit-wv9UkyCe.mjs";
|
|
38
|
+
import "./ipc-client-CnYEF31R.mjs";
|
|
39
|
+
import "./embed-pass-DtVF2fOV.mjs";
|
|
40
|
+
import "./session-usage-oycSdiD3.mjs";
|
|
41
|
+
import "./indexer-backend-B2vtFl38.mjs";
|
|
42
|
+
import { t as serve } from "./daemon-C1dycZ3W.mjs";
|
|
43
|
+
import "./auto-route-DUYr57rs.mjs";
|
|
44
|
+
import "./zettelkasten-LoH9RBiN.mjs";
|
|
45
|
+
|
|
46
|
+
export { serve };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "../utils-J2b9y8PC.mjs";
|
|
3
3
|
import { g as paiHomePath } from "../runtime-paths-WsO9sJFc.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { S as MainConfigError, c as loadConfig, n as CONFIG_FILE } from "../config-
|
|
6
|
-
import { i as ledgerPath, u as workersLogDir } from "../paths-
|
|
7
|
-
import "../worktree-
|
|
8
|
-
import { A as setWorkerLabel, C as nowStamp, O as reconcileStatuses, g as isLive, o as ageOf, v as loadStatus, y as loadStatuses } from "../status-
|
|
9
|
-
import "../pool-
|
|
4
|
+
import { Dt as ledgerSummary, M as readWorkersSection, a as MODEL_CAPABILITIES, f as escalationCloud, m as isLocalProvider, n as CAPABILITY_NAME_RE, p as getProviderOrNative } from "../config-CST2uq1v.mjs";
|
|
5
|
+
import { S as MainConfigError, c as loadConfig, n as CONFIG_FILE } from "../config-DYbyEe4-.mjs";
|
|
6
|
+
import { i as ledgerPath, u as workersLogDir } from "../paths-DS5VQKoR.mjs";
|
|
7
|
+
import "../worktree-BY--Rgmy.mjs";
|
|
8
|
+
import { A as setWorkerLabel, C as nowStamp, O as reconcileStatuses, g as isLive, o as ageOf, v as loadStatus, y as loadStatuses } from "../status-COtzewKV.mjs";
|
|
9
|
+
import "../pool-BZ94nFuq.mjs";
|
|
10
10
|
import "../helpers-CRuBUas3.mjs";
|
|
11
11
|
import { t as dropItermBundleId } from "../env-BE8mrsxr.mjs";
|
|
12
|
-
import "../scope-
|
|
13
|
-
import {
|
|
14
|
-
import "../tool-errors-
|
|
15
|
-
import "../wait-
|
|
16
|
-
import "../local-tiers-
|
|
17
|
-
import { a as buildsDir, c as listBuilds, i as buildNext, p as renderBuildQueue, v as poolSlots } from "../caller-identity-
|
|
18
|
-
import { i as effectiveCap, l as reorderQueue, s as queueRows } from "../capacity-
|
|
19
|
-
import "../local-instances-
|
|
20
|
-
import { a as localStatusReport } from "../local-candidate-
|
|
21
|
-
import "../factory-
|
|
22
|
-
import "../postgres-
|
|
23
|
-
import "../embedding-gate-
|
|
12
|
+
import "../scope-D8HK6vU7.mjs";
|
|
13
|
+
import { Ft as clearSessionRoute, J as inventoryRows, Kt as sessionRoutesPatch, W as currentInventory, _n as currentLocalStatus, cn as detectSessionName, dn as getProfile, fn as profilesPath, mn as updateProfile, xn as probeLoopback, z as INVENTORY_HEADERS } from "../routing-BlD_tKjW.mjs";
|
|
14
|
+
import "../tool-errors-DXJ70-sr.mjs";
|
|
15
|
+
import "../wait-ChpHKJZV.mjs";
|
|
16
|
+
import "../local-tiers-BtdEEe5n.mjs";
|
|
17
|
+
import { a as buildsDir, c as listBuilds, i as buildNext, p as renderBuildQueue, v as poolSlots } from "../caller-identity-Bim8JT-D.mjs";
|
|
18
|
+
import { i as effectiveCap, l as reorderQueue, s as queueRows } from "../capacity-CsZMkVyg.mjs";
|
|
19
|
+
import "../local-instances-bdCNNSsL.mjs";
|
|
20
|
+
import { a as localStatusReport } from "../local-candidate-Cp_bw4kK.mjs";
|
|
21
|
+
import "../factory-BV0MQA3T.mjs";
|
|
22
|
+
import "../postgres-C-T5OWer.mjs";
|
|
23
|
+
import "../embedding-gate-CTAk8STe.mjs";
|
|
24
24
|
import "../embeddings-BVq3esBF.mjs";
|
|
25
25
|
import "../router-CQSc3lk3.mjs";
|
|
26
|
-
import "../launch-
|
|
27
|
-
import { H as testProvider, a as resolveWorkers, c as reportOriginWithHost, f as dirtyPaths, i as liveResolveCtx, t as runWorker, u as startDetached } from "../run-
|
|
28
|
-
import { A as tail, B as loadPlanStatus, C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, G as planRunId, Gt as handoffFromInside, J as queueLockPath, L as fmtElapsed, M as dirtyConflicts, P as loadPlan, S as planStopPath, X as sinceText, Y as readRunLock, b as idleText, j as PlanError, q as planLockPath, qt as readInbox, w as renderSchedule, x as planStatus } from "../controls-
|
|
29
|
-
import { a as endLabel } from "../endreason-
|
|
30
|
-
import { D as deadlineLabel } from "../render-
|
|
31
|
-
import { r as sayToWorker } from "../operator-
|
|
32
|
-
import "../kill-tree-
|
|
33
|
-
import "../pool-cli-
|
|
34
|
-
import { t as runChain } from "../chain-
|
|
35
|
-
import { C as schedulerLines, E as resolveSpecPath, S as withTarget, T as readSpecPrompt, _ as issueClaims, a as branchDiff, d as loadSettings, f as move, g as issueClaim, i as projectChecks, l as QueueStore, n as initProject, o as realQueueDeps, p as queueStatePath, r as isGitProject, s as acceptItems, t as formatCheck, u as again, v as issueStale, w as schedulerView, x as resolveTarget, y as providerCaps } from "../project-setup-
|
|
36
|
-
import "../pane-audit-
|
|
37
|
-
import { d as psOutput, f as replayOutput } from "../viewer-
|
|
38
|
-
import {
|
|
39
|
-
import { a as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
26
|
+
import "../launch-DpQPZGsT.mjs";
|
|
27
|
+
import { H as testProvider, a as resolveWorkers, c as reportOriginWithHost, f as dirtyPaths, i as liveResolveCtx, t as runWorker, u as startDetached } from "../run-AZVwceiU.mjs";
|
|
28
|
+
import { A as tail, B as loadPlanStatus, C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, G as planRunId, Gt as handoffFromInside, J as queueLockPath, L as fmtElapsed, M as dirtyConflicts, P as loadPlan, S as planStopPath, X as sinceText, Y as readRunLock, b as idleText, j as PlanError, q as planLockPath, qt as readInbox, w as renderSchedule, x as planStatus } from "../controls-OiVVbe-f.mjs";
|
|
29
|
+
import { a as endLabel } from "../endreason-BqyyU7BH.mjs";
|
|
30
|
+
import { D as deadlineLabel } from "../render-Cz3BWIBO.mjs";
|
|
31
|
+
import { r as sayToWorker } from "../operator-DrwWItVt.mjs";
|
|
32
|
+
import "../kill-tree-CcpsRLCZ.mjs";
|
|
33
|
+
import "../pool-cli-B1eKySeN.mjs";
|
|
34
|
+
import { t as runChain } from "../chain-Dzz6xcKH.mjs";
|
|
35
|
+
import { C as schedulerLines, E as resolveSpecPath, S as withTarget, T as readSpecPrompt, _ as issueClaims, a as branchDiff, d as loadSettings, f as move, g as issueClaim, i as projectChecks, l as QueueStore, n as initProject, o as realQueueDeps, p as queueStatePath, r as isGitProject, s as acceptItems, t as formatCheck, u as again, v as issueStale, w as schedulerView, x as resolveTarget, y as providerCaps } from "../project-setup-pIPHZaXf.mjs";
|
|
36
|
+
import "../pane-audit-wv9UkyCe.mjs";
|
|
37
|
+
import { d as psOutput, f as replayOutput } from "../viewer-BgGRqXfD.mjs";
|
|
38
|
+
import { i as fallbackStatusText, n as fallbackOn, r as fallbackStatus, t as fallbackOff } from "../fallback-Bj2cyVk_.mjs";
|
|
39
|
+
import { _ as unsetCapabilityPreference, a as describeCapabilities, b as useProvider, c as modelPrefsText, d as setCapabilityPreference, f as setClass, g as setWorkersEnabled, h as setProviderModel, l as removeProvider, m as setProviderEnabled, o as describeModels, p as setProviderCap, r as classTargetText, s as describeProviders, t as addProvider, u as resolveProviderName, v as unsetClass, y as updateProvider } from "../providers-Dzx5GAUI.mjs";
|
|
40
|
+
import { a as listConfigOp, i as getConfigValueOp, o as setConfigValueOp, s as unsetConfigValueOp, t as MainConfigOpsError } from "../main-config-ops-BYsK3BxM.mjs";
|
|
41
|
+
import { n as PaiClient } from "../ipc-client-CnYEF31R.mjs";
|
|
42
42
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
43
43
|
import { basename, dirname, join, resolve } from "node:path";
|
|
44
44
|
import { stringify } from "yaml";
|
|
@@ -6582,7 +6582,7 @@ function realDelegationDeps() {
|
|
|
6582
6582
|
return {
|
|
6583
6583
|
async resolveProject(project) {
|
|
6584
6584
|
if (existsSync(project)) return resolve(project);
|
|
6585
|
-
const { getProject } = await import("../helpers-
|
|
6585
|
+
const { getProject } = await import("../helpers-WV8tdQHM.mjs");
|
|
6586
6586
|
const row = await getProject(project);
|
|
6587
6587
|
if (!row) throw new Error(`no project "${project}" is registered`);
|
|
6588
6588
|
return row.root_path;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./config-DYbyEe4-.mjs";
|
|
2
|
+
import "./helpers-CRuBUas3.mjs";
|
|
3
|
+
import "./factory-BV0MQA3T.mjs";
|
|
4
|
+
import "./postgres-C-T5OWer.mjs";
|
|
5
|
+
import "./embedding-gate-CTAk8STe.mjs";
|
|
6
|
+
import "./embeddings-BVq3esBF.mjs";
|
|
7
|
+
import "./router-CQSc3lk3.mjs";
|
|
8
|
+
import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-CHuxFrLy.mjs";
|
|
9
|
+
|
|
10
|
+
export { detectProject };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getRegistryBackend } from "./factory-
|
|
1
|
+
import { i as getRegistryBackend } from "./factory-BV0MQA3T.mjs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/impl/detect.ts
|
|
@@ -92,4 +92,4 @@ function formatDetectionJson(d) {
|
|
|
92
92
|
|
|
93
93
|
//#endregion
|
|
94
94
|
export { formatDetection as n, formatDetectionJson as r, detectProject as t };
|
|
95
|
-
//# sourceMappingURL=detect-
|
|
95
|
+
//# sourceMappingURL=detect-CHuxFrLy.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
|
|
2
2
|
import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { u as workersLogDir } from "./paths-
|
|
5
|
-
import { g as isLive, y as loadStatuses } from "./status-
|
|
3
|
+
import { M as readWorkersSection, m as isLocalProvider } from "./config-CST2uq1v.mjs";
|
|
4
|
+
import { u as workersLogDir } from "./paths-DS5VQKoR.mjs";
|
|
5
|
+
import { g as isLive, y as loadStatuses } from "./status-COtzewKV.mjs";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { loadavg } from "node:os";
|
|
8
8
|
|
|
@@ -161,4 +161,4 @@ async function runEmbedCycle(d) {
|
|
|
161
161
|
|
|
162
162
|
//#endregion
|
|
163
163
|
export { EMBED_PASS_BATCH_SIZE as a, liveYieldCheck as c, runEmbedCycle as d, DEFAULT_EMBED_RESUME_MINUTES as i, readEmbedPasses as l, DEFAULT_EMBED_MAX_LOAD as n, formatEmbedStatus as o, DEFAULT_EMBED_MAX_MINUTES as r, lastRecordedEmbedPass as s, DEFAULT_EMBED_CYCLE_MAX_MINUTES as t, recordEmbedPass as u };
|
|
164
|
-
//# sourceMappingURL=embed-pass-
|
|
164
|
+
//# sourceMappingURL=embed-pass-DtVF2fOV.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import { a as requireQueryEmbedding, i as measureThroughput, n as embedQuery, r as gateBackend, t as QUERY_PREFIX } from "./embedding-gate-
|
|
1
|
+
import "./config-DYbyEe4-.mjs";
|
|
2
|
+
import { a as requireQueryEmbedding, i as measureThroughput, n as embedQuery, r as gateBackend, t as QUERY_PREFIX } from "./embedding-gate-CTAk8STe.mjs";
|
|
3
3
|
import "./embeddings-BVq3esBF.mjs";
|
|
4
4
|
|
|
5
5
|
export { embedQuery, gateBackend };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
|
|
2
|
-
import { c as loadConfig, i as defaults } from "./config-
|
|
2
|
+
import { c as loadConfig, i as defaults } from "./config-DYbyEe4-.mjs";
|
|
3
3
|
import { t as LOCAL_PROBE_TIMEOUT_MS } from "./timeouts-1MLooEBB.mjs";
|
|
4
4
|
import { n as configureEmbeddingModel, o as generateEmbeddings, t as EMBEDDING_DIM } from "./embeddings-BVq3esBF.mjs";
|
|
5
5
|
import { createReadStream, createWriteStream, existsSync, mkdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -420,4 +420,4 @@ async function measureThroughput(backend, texts) {
|
|
|
420
420
|
|
|
421
421
|
//#endregion
|
|
422
422
|
export { requireQueryEmbedding as a, getConfiguredBackend as c, OLLAMA_ID as d, ollamaDefaultUrl as f, mismatchReason as h, measureThroughput as i, provisionOllama as l, bindingMatches as m, embedQuery as n, createBackend as o, LEGACY_EMBEDDING_BINDING as p, gateBackend as r, detectBackends as s, QUERY_PREFIX as t, OLLAMA_DEFAULT_MODEL as u };
|
|
423
|
-
//# sourceMappingURL=embedding-gate-
|
|
423
|
+
//# sourceMappingURL=embedding-gate-CTAk8STe.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as writeFileAtomic } from "./atomic-file-BorMa4T3.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { r as eventsPath } from "./paths-
|
|
4
|
-
import { D as pidAlive } from "./status-
|
|
2
|
+
import { Et as appendLedger } from "./config-CST2uq1v.mjs";
|
|
3
|
+
import { r as eventsPath } from "./paths-DS5VQKoR.mjs";
|
|
4
|
+
import { D as pidAlive } from "./status-COtzewKV.mjs";
|
|
5
5
|
import { appendFileSync, existsSync, readFileSync, unlinkSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { execFileSync } from "node:child_process";
|
|
@@ -43,6 +43,13 @@ function requestKill(logDir, ledger, id, by = callerDescription(), forced = fals
|
|
|
43
43
|
...reason ? { reason } : {}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
function peekMarker(logDir, id) {
|
|
47
|
+
try {
|
|
48
|
+
return JSON.parse(readFileSync(killMarkerPath(logDir, id), "utf8"));
|
|
49
|
+
} catch {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
46
53
|
function readMarker(logDir, id) {
|
|
47
54
|
const p = killMarkerPath(logDir, id);
|
|
48
55
|
if (!existsSync(p)) return null;
|
|
@@ -92,8 +99,15 @@ function parentInfo() {
|
|
|
92
99
|
function decideEndReason(a) {
|
|
93
100
|
if (a.timedOut) return { reason: "deadline" };
|
|
94
101
|
if (a.loopStopped) return { reason: "loop-stopped" };
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
const marker = a.signal || peekMarker(a.logDir, a.id)?.by === "pane audit" ? readMarker(a.logDir, a.id) : null;
|
|
103
|
+
if (!a.signal && !marker) return { reason: "exit" };
|
|
104
|
+
if (!a.signal && marker) return {
|
|
105
|
+
reason: "pai-worker-kill",
|
|
106
|
+
by: marker.by,
|
|
107
|
+
note: `killed by ${marker.by}${marker.reason ? `: ${marker.reason}` : ""}`,
|
|
108
|
+
...marker.reason ? { killReason: marker.reason } : {},
|
|
109
|
+
forced: true
|
|
110
|
+
};
|
|
97
111
|
if (marker) return {
|
|
98
112
|
reason: "pai-worker-kill",
|
|
99
113
|
by: marker.by,
|
|
@@ -137,4 +151,4 @@ function appendStopEvent(logDir, id, stop) {
|
|
|
137
151
|
|
|
138
152
|
//#endregion
|
|
139
153
|
export { endLabel as a, endFields as i, callerDescription as n, parentInfo as o, decideEndReason as r, requestKill as s, appendStopEvent as t };
|
|
140
|
-
//# sourceMappingURL=endreason-
|
|
154
|
+
//# sourceMappingURL=endreason-BqyyU7BH.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { _ as resolvePaiFile, d as defaultPaiHomeDir, g as paiHomePath } from "./runtime-paths-WsO9sJFc.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { A as DEFAULT_PG_CONNECTION_TIMEOUT_MS, N as postgresConnectionString, c as loadConfig } from "./config-DYbyEe4-.mjs";
|
|
3
3
|
import { a as parseSessionTitleChunk, c as yieldToEventLoop, f as fileContentHash, h as sha256File, i as isPathTooBroadForContentScan, n as chunkId, o as walkContentFiles, r as detectTier, s as walkMdFiles, t as INDEX_YIELD_EVERY, u as chunkMarkdown } from "./helpers-CRuBUas3.mjs";
|
|
4
4
|
import { t as STOP_WORDS } from "./stop-words-DSEYQdNe.mjs";
|
|
5
5
|
import { n as buildFtsQuery, r as isQuerySyntaxError } from "./search-RSyeQqj1.mjs";
|
|
6
6
|
import { n as minOf, t as maxOf } from "./min-max-DrSRUaWQ.mjs";
|
|
7
|
-
import { a as entityContentId, t as PostgresBackend } from "./postgres-
|
|
8
|
-
import { p as LEGACY_EMBEDDING_BINDING } from "./embedding-gate-
|
|
7
|
+
import { a as entityContentId, t as PostgresBackend } from "./postgres-C-T5OWer.mjs";
|
|
8
|
+
import { p as LEGACY_EMBEDDING_BINDING } from "./embedding-gate-CTAk8STe.mjs";
|
|
9
9
|
import { i as deserializeEmbedding, r as cosineSimilarity } from "./embeddings-BVq3esBF.mjs";
|
|
10
10
|
import { n as routeNotification } from "./router-CQSc3lk3.mjs";
|
|
11
11
|
import { existsSync, mkdirSync, readFileSync, statSync } from "node:fs";
|
|
@@ -2915,4 +2915,4 @@ async function closeStorage() {
|
|
|
2915
2915
|
|
|
2916
2916
|
//#endregion
|
|
2917
2917
|
export { getStorageBackend as a, MergeError as c, getBackendOutage as d, humanDuration as f, getRegistryBackend as i, federationDbPath as l, createRegistryBackend as n, oldRegistryPath as o, createStorageBackend as r, registryDbPath as s, closeStorage as t, oldFederationPath as u };
|
|
2918
|
-
//# sourceMappingURL=factory-
|
|
2918
|
+
//# sourceMappingURL=factory-BV0MQA3T.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./config-
|
|
1
|
+
import "./config-DYbyEe4-.mjs";
|
|
2
2
|
import "./helpers-CRuBUas3.mjs";
|
|
3
|
-
import { a as getStorageBackend, i as getRegistryBackend, n as createRegistryBackend, r as createStorageBackend, t as closeStorage } from "./factory-
|
|
4
|
-
import "./postgres-
|
|
5
|
-
import "./embedding-gate-
|
|
3
|
+
import { a as getStorageBackend, i as getRegistryBackend, n as createRegistryBackend, r as createStorageBackend, t as closeStorage } from "./factory-BV0MQA3T.mjs";
|
|
4
|
+
import "./postgres-C-T5OWer.mjs";
|
|
5
|
+
import "./embedding-gate-CTAk8STe.mjs";
|
|
6
6
|
import "./embeddings-BVq3esBF.mjs";
|
|
7
7
|
import "./router-CQSc3lk3.mjs";
|
|
8
8
|
|