@tekmidian/pai 0.41.0 → 0.42.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/aibroker-client-BP74gGwD.mjs +215 -0
- package/dist/aibroker-client-BP74gGwD.mjs.map +1 -0
- package/dist/aibroker-client-C6m71p6O.mjs +3 -0
- package/dist/{auto-route-BwzmlW3W.mjs → auto-route-_5zzJz5q.mjs} +2 -2
- package/dist/{auto-route-BwzmlW3W.mjs.map → auto-route-_5zzJz5q.mjs.map} +1 -1
- package/dist/{chain-zMjCDW-R.mjs → chain-DGXNoTwc.mjs} +70 -329
- package/dist/chain-DGXNoTwc.mjs.map +1 -0
- package/dist/cli/index.mjs +12 -10
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/program.mjs +12 -10
- package/dist/{clusters-DRHhfli9.mjs → clusters-j0ZuNYp9.mjs} +1 -1
- package/dist/{clusters-DRHhfli9.mjs.map → clusters-j0ZuNYp9.mjs.map} +1 -1
- package/dist/{config-D1G9IFpn.mjs → config-B64vFg14.mjs} +3 -50
- package/dist/config-B64vFg14.mjs.map +1 -0
- package/dist/{config-DD52BPB-.mjs → config-C_ErGddD.mjs} +1 -1
- package/dist/{config-Dl8lT4Lu.mjs → config-DgzR5sfb.mjs} +2 -2
- package/dist/{config-Dl8lT4Lu.mjs.map → config-DgzR5sfb.mjs.map} +1 -1
- package/dist/{context-handover-cache-C6_rs7JT.mjs → context-handover-cache-dUnSZwaA.mjs} +4 -4
- package/dist/{context-handover-cache-C6_rs7JT.mjs.map → context-handover-cache-dUnSZwaA.mjs.map} +1 -1
- package/dist/daemon/index.mjs +13 -12
- package/dist/daemon/index.mjs.map +1 -1
- package/dist/daemon-CKBkhOsZ.mjs +23 -0
- package/dist/{daemon-CpdVUnl_.mjs → daemon-DsvP8KMy.mjs} +357 -27
- package/dist/daemon-DsvP8KMy.mjs.map +1 -0
- package/dist/daemon-mcp/index.mjs +10 -6
- package/dist/daemon-mcp/index.mjs.map +1 -1
- package/dist/detector-C-7KRi42.mjs +5 -0
- package/dist/{detector-smpCm7ku.mjs → detector-C73Nxm94.mjs} +1 -1
- package/dist/{detector-smpCm7ku.mjs.map → detector-C73Nxm94.mjs.map} +1 -1
- package/dist/{factory-Bc5EyN54.mjs → factory-DEb9NmHJ.mjs} +7 -7
- package/dist/{factory-Bc5EyN54.mjs.map → factory-DEb9NmHJ.mjs.map} +1 -1
- package/dist/factory-Dbo8yNPi.mjs +3 -0
- package/dist/{fallback-CgQ_x4I7.mjs → fallback-5UJO-RyX.mjs} +5 -4
- package/dist/{fallback-CgQ_x4I7.mjs.map → fallback-5UJO-RyX.mjs.map} +1 -1
- package/dist/hooks/worker-status-line.mjs +9 -4
- package/dist/hooks/worker-status-line.mjs.map +3 -3
- package/dist/hooks/worker-supervision.mjs +593 -0
- package/dist/hooks/worker-supervision.mjs.map +7 -0
- package/dist/{indexer-backend-rohVVKrA.mjs → indexer-backend-BPTzKFZU.mjs} +1 -1
- package/dist/{indexer-backend-rohVVKrA.mjs.map → indexer-backend-BPTzKFZU.mjs.map} +1 -1
- package/dist/{ipc-client-C7AVpsyv.mjs → ipc-client-BmypMNYk.mjs} +2 -2
- package/dist/{ipc-client-C7AVpsyv.mjs.map → ipc-client-BmypMNYk.mjs.map} +1 -1
- package/dist/{kg-entity-DbOMPdF9.mjs → kg-entity-r8duqhi9.mjs} +1 -1
- package/dist/{kg-entity-DbOMPdF9.mjs.map → kg-entity-r8duqhi9.mjs.map} +1 -1
- package/dist/{latent-ideas-iNp5s55R.mjs → latent-ideas-CtSca4qG.mjs} +2 -2
- package/dist/{latent-ideas-iNp5s55R.mjs.map → latent-ideas-CtSca4qG.mjs.map} +1 -1
- package/dist/{link-boost-NNzADHX_.mjs → link-boost-Bucnz3n8.mjs} +1 -1
- package/dist/{link-boost-NNzADHX_.mjs.map → link-boost-Bucnz3n8.mjs.map} +1 -1
- package/dist/{main-resolver-CM1IHbuu.mjs → main-resolver-BgIrC-D9.mjs} +4 -214
- package/dist/main-resolver-BgIrC-D9.mjs.map +1 -0
- package/dist/main-resolver-DXGuygFG.mjs +7 -0
- package/dist/{neighborhood-AGL7oXQ2.mjs → neighborhood-CM7Jgb51.mjs} +1 -1
- package/dist/{neighborhood-AGL7oXQ2.mjs.map → neighborhood-CM7Jgb51.mjs.map} +1 -1
- package/dist/{note-context-BHwYpSFf.mjs → note-context-DCwE2A-M.mjs} +1 -1
- package/dist/{note-context-BHwYpSFf.mjs.map → note-context-DCwE2A-M.mjs.map} +1 -1
- package/dist/{planner-DsmMRIZR.mjs → planner-BLDJt3ZS.mjs} +6 -5
- package/dist/{planner-DsmMRIZR.mjs.map → planner-BLDJt3ZS.mjs.map} +1 -1
- package/dist/{postgres-Dwxe290H.mjs → postgres-CtOzfoQU.mjs} +1 -1
- package/dist/{postgres-Dwxe290H.mjs.map → postgres-CtOzfoQU.mjs.map} +1 -1
- package/dist/{program-Bed-Pd-8.mjs → program-CruRnLtc.mjs} +36 -33
- package/dist/{program-Bed-Pd-8.mjs.map → program-CruRnLtc.mjs.map} +1 -1
- package/dist/query-feedback-DGoVRaWD.mjs +3 -0
- package/dist/{query-feedback-DZfjI34w.mjs → query-feedback-Dqz-HC__.mjs} +1 -1
- package/dist/{query-feedback-DZfjI34w.mjs.map → query-feedback-Dqz-HC__.mjs.map} +1 -1
- package/dist/router-BTIGZR2_.mjs +3 -0
- package/dist/{router-DHracTUC.mjs → router-DD6D4j31.mjs} +1 -1
- package/dist/{router-DHracTUC.mjs.map → router-DD6D4j31.mjs.map} +1 -1
- package/dist/runtime-paths-rni52zHX.mjs +50 -0
- package/dist/runtime-paths-rni52zHX.mjs.map +1 -0
- package/dist/scope-NIwCGxRI.mjs +351 -0
- package/dist/scope-NIwCGxRI.mjs.map +1 -0
- package/dist/{server-BOuAOj9b.mjs → server-Cp7tNzNC.mjs} +19 -2
- package/dist/server-Cp7tNzNC.mjs.map +1 -0
- package/dist/skills/Worker/SKILL.md +3 -0
- package/dist/{sources-ju6AA7lL.mjs → sources-CS43CpuS.mjs} +1 -1
- package/dist/{sources-ju6AA7lL.mjs.map → sources-CS43CpuS.mjs.map} +1 -1
- package/dist/{sqlite-kFZeWCJ2.mjs → sqlite-Cq3gJcq9.mjs} +1 -1
- package/dist/{sqlite-kFZeWCJ2.mjs.map → sqlite-Cq3gJcq9.mjs.map} +1 -1
- package/dist/{state-ahFAbD8b.mjs → state-BTa10SOM.mjs} +1 -1
- package/dist/{state-ahFAbD8b.mjs.map → state-BTa10SOM.mjs.map} +1 -1
- package/dist/{state-DH_mp5Xe.mjs → state-RXepvbnO.mjs} +1 -1
- package/dist/{themes-DqhNUUQk.mjs → themes-B7h9YDiy.mjs} +1 -1
- package/dist/{themes-DqhNUUQk.mjs.map → themes-B7h9YDiy.mjs.map} +1 -1
- package/dist/{tools-COna9vZR.mjs → tools-BW3NLMPk.mjs} +1 -1
- package/dist/{tools-CMlHa9lZ.mjs → tools-LlzcV_eK.mjs} +14 -14
- package/dist/{tools-CMlHa9lZ.mjs.map → tools-LlzcV_eK.mjs.map} +1 -1
- package/dist/{trace-DTP6k4B_.mjs → trace-u4hT-pLD.mjs} +1 -1
- package/dist/{trace-DTP6k4B_.mjs.map → trace-u4hT-pLD.mjs.map} +1 -1
- package/dist/{vault-indexer-YMH22mLU.mjs → vault-indexer-mata9S7b.mjs} +1 -1
- package/dist/{vault-indexer-YMH22mLU.mjs.map → vault-indexer-mata9S7b.mjs.map} +1 -1
- package/dist/{work-queue-worker-B3nl8yyn.mjs → work-queue-worker-7Vkli4Yh.mjs} +4 -4
- package/dist/{work-queue-worker-B3nl8yyn.mjs.map → work-queue-worker-7Vkli4Yh.mjs.map} +1 -1
- package/dist/work-queue-worker-D1p2V-ae.mjs +14 -0
- package/dist/{zettelkasten-DDvKRm2V.mjs → zettelkasten-F0D_XfQ4.mjs} +3 -3
- package/dist/{zettelkasten-DDvKRm2V.mjs.map → zettelkasten-F0D_XfQ4.mjs.map} +1 -1
- package/docs/commands/worker.md +1 -1
- package/docs/worker.md +40 -0
- package/package.json +1 -1
- package/plugins/productivity/hooks/hooks.json +5 -0
- package/src/hooks/ts/user-prompt/worker-supervision.ts +123 -0
- package/dist/chain-zMjCDW-R.mjs.map +0 -1
- package/dist/config-D1G9IFpn.mjs.map +0 -1
- package/dist/daemon-BSL9sXxm.mjs +0 -22
- package/dist/daemon-CpdVUnl_.mjs.map +0 -1
- package/dist/detector-BLVOCiJ_.mjs +0 -5
- package/dist/factory-C7ua_3ik.mjs +0 -3
- package/dist/main-resolver-CM1IHbuu.mjs.map +0 -1
- package/dist/main-resolver-E5WlilhM.mjs +0 -6
- package/dist/query-feedback-CGcEiGtY.mjs +0 -3
- package/dist/router-CAtyVQud.mjs +0 -3
- package/dist/server-BOuAOj9b.mjs.map +0 -1
- package/dist/work-queue-worker-BM1GcAAq.mjs +0 -14
|
@@ -7,16 +7,19 @@ import { i as indexProject, n as indexAll, t as embedChunks } from "./sync-BWbe8
|
|
|
7
7
|
import { t as STOP_WORDS } from "./stop-words-Hfu8u22w.mjs";
|
|
8
8
|
import { a as searchMemory, i as populateSlugs } from "./search-Rpk1cSBC.mjs";
|
|
9
9
|
import { n as formatDetection, r as formatDetectionJson, t as detectProject } from "./detect-CdaA48EI.mjs";
|
|
10
|
-
import { _ as claudeProjectsDir, a as findLatestNote, b as transcriptFiles, c as extractAndStoreTriples, d as loadScanConfig, g as upsertSession, h as upsertProject, i as applyContinue, m as saveScanConfig, o as findNotesDir$1, p as resolveHome, r as appendCheckpointToNote, s as readBodyFile, t as readContextHandoverCache, u as cmdScan, v as findMovedProjects, y as scanTranscriptFolders } from "./context-handover-cache-
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as PaiClient } from "./ipc-client-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
10
|
+
import { _ as claudeProjectsDir, a as findLatestNote, b as transcriptFiles, c as extractAndStoreTriples, d as loadScanConfig, g as upsertSession, h as upsertProject, i as applyContinue, m as saveScanConfig, o as findNotesDir$1, p as resolveHome, r as appendCheckpointToNote, s as readBodyFile, t as readContextHandoverCache, u as cmdScan, v as findMovedProjects, y as scanTranscriptFolders } from "./context-handover-cache-dUnSZwaA.mjs";
|
|
11
|
+
import { a as schedulerLogPath, i as paiSocketPath, n as daemonLogPath, r as daemonPidPath } from "./runtime-paths-rni52zHX.mjs";
|
|
12
|
+
import { t as PaiClient } from "./ipc-client-BmypMNYk.mjs";
|
|
13
|
+
import { a as expandHome, c as UNROUTED, i as ensureConfigDir, n as CONFIG_FILE$2, o as loadConfig, s as OWNER_LABEL_PREFIX, t as CONFIG_DIR } from "./config-B64vFg14.mjs";
|
|
14
|
+
import { r as humanDuration, t as createStorageBackend } from "./factory-DEb9NmHJ.mjs";
|
|
15
|
+
import { _ as DEFAULT_CONTEXT_WINDOW, a as WorkersConfigError, b as readJsonStrict, l as isModelCapability, m as readWorkersSection, r as PROVIDER_TAGS, v as contextWindowFromModelId, x as writeJsonAtomic, y as stripModelVariant } from "./config-DgzR5sfb.mjs";
|
|
16
|
+
import { s as kgQuery } from "./kg-entity-r8duqhi9.mjs";
|
|
17
|
+
import { _ as workersLogDir, f as eventsPath, n as ensureProxyRunning, p as ledgerPath, r as stopProxy, t as DEFAULT_PROXY_PORT } from "./server-Cp7tNzNC.mjs";
|
|
18
|
+
import { a as renderDedupedSessions, c as probeResume, d as fmtAge, f as resolveSessionByNameOrId, i as normalizeName$2, l as restoreTopLevel, o as hasConversation, p as scanSessions, r as buildDeduped, s as launchInDir, t as cmdMain, u as printExitDir } from "./main-resolver-BgIrC-D9.mjs";
|
|
19
|
+
import { i as sendToSession, n as fetchLiveSessions, r as revealItermSession, t as callAiBroker } from "./aibroker-client-BP74gGwD.mjs";
|
|
20
|
+
import { b as parseRunnerArgs, h as loadStatus, l as UNLABELED } from "./scope-NIwCGxRI.mjs";
|
|
21
|
+
import { _ as openPaneForWorker, a as testProvider, d as handoffFromInside, g as openFollowPane, h as checkPaneForWorker, i as runWorker, l as discardWorker, o as describeMcp, p as sayToWorker, s as parseWorkerReport, t as runChain, u as mergeWorker } from "./chain-DGXNoTwc.mjs";
|
|
22
|
+
import { S as statusLineOutput, _ as updateProvider, a as addProvider, b as psOutput, c as describeProviders, d as resolveProviderName, f as setClass, g as unsetClass, h as setWorkersEnabled, i as fallbackStatusText, l as modelPrefsText, m as setProviderModel, n as fallbackOn, o as classTargetText, p as setProviderEnabled, r as fallbackStatus, s as describeModels, t as fallbackOff, u as removeProvider, v as useProvider, x as replayOutput, y as followWorkers } from "./fallback-5UJO-RyX.mjs";
|
|
20
23
|
import { appendFileSync, chmodSync, copyFileSync, createReadStream, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
|
21
24
|
import { homedir, platform, tmpdir } from "node:os";
|
|
22
25
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1891,7 +1894,7 @@ function cmdUnregister(db, slug, opts = {}) {
|
|
|
1891
1894
|
//#region src/cli/commands/project/projects-index.ts
|
|
1892
1895
|
function registerProjectsCommands(projectsCmd, getDb) {
|
|
1893
1896
|
projectsCmd.command("list", { isDefault: true }).description("Show the unified deduped listing (same as `pai`).\nUse --all to include cold / zero-session / archived projects.").option("--all", "Show all entries including cold / zero-session / archived projects").option("-n, --n <count>", "Max rows to show", "20").action(async (opts) => {
|
|
1894
|
-
const { cmdMain } = await import("./main-resolver-
|
|
1897
|
+
const { cmdMain } = await import("./main-resolver-DXGuygFG.mjs");
|
|
1895
1898
|
await cmdMain(getDb(), void 0, void 0, opts);
|
|
1896
1899
|
});
|
|
1897
1900
|
projectsCmd.command("list-raw").description("Raw registry listing with slug, path, status, last_active columns").option("--all", "Include archived projects (default: active only)").option("--status <status>", "Filter by status: active | archived").option("--tag <tag>", "Filter by tag").option("--type <type>", "Filter by type").action((opts) => {
|
|
@@ -2963,9 +2966,9 @@ function registerStatsCommands(memoryCmd, getDb) {
|
|
|
2963
2966
|
//#region src/cli/commands/memory/sources-cmd.ts
|
|
2964
2967
|
function registerSourcesCommand(memoryCmd) {
|
|
2965
2968
|
memoryCmd.command("sources").description("Show what the indexer has taken in: composition by source, which roots\ncontent enters from, the heaviest single files, and how many chunks are\nrewritten per day (which distinguishes a finite backlog from a treadmill).").option("--limit <n>", "Rows per section (default 8)", "8").action(async (opts) => {
|
|
2966
|
-
const { createStorageBackend } = await import("./factory-
|
|
2967
|
-
const { loadConfig } = await import("./config-
|
|
2968
|
-
const { cmdMemorySources } = await import("./sources-
|
|
2969
|
+
const { createStorageBackend } = await import("./factory-Dbo8yNPi.mjs");
|
|
2970
|
+
const { loadConfig } = await import("./config-C_ErGddD.mjs");
|
|
2971
|
+
const { cmdMemorySources } = await import("./sources-CS43CpuS.mjs");
|
|
2969
2972
|
let backend;
|
|
2970
2973
|
try {
|
|
2971
2974
|
backend = await createStorageBackend(loadConfig());
|
|
@@ -3663,8 +3666,8 @@ function cmdLogs(opts) {
|
|
|
3663
3666
|
}
|
|
3664
3667
|
function registerDaemonCommands(daemonCmd) {
|
|
3665
3668
|
daemonCmd.command("serve").description("Start the PAI daemon in the foreground").action(async () => {
|
|
3666
|
-
const { serve } = await import("./daemon-
|
|
3667
|
-
const { loadConfig: lc, ensureConfigDir } = await import("./config-
|
|
3669
|
+
const { serve } = await import("./daemon-CKBkhOsZ.mjs");
|
|
3670
|
+
const { loadConfig: lc, ensureConfigDir } = await import("./config-C_ErGddD.mjs");
|
|
3668
3671
|
ensureConfigDir();
|
|
3669
3672
|
await serve(lc());
|
|
3670
3673
|
});
|
|
@@ -7242,7 +7245,7 @@ async function cmdExplore(note, opts) {
|
|
|
7242
7245
|
const depth = parseInt(opts.depth ?? "3", 10);
|
|
7243
7246
|
const direction = opts.direction ?? "both";
|
|
7244
7247
|
const mode = opts.mode ?? "all";
|
|
7245
|
-
const { zettelExplore } = await import("./zettelkasten-
|
|
7248
|
+
const { zettelExplore } = await import("./zettelkasten-F0D_XfQ4.mjs");
|
|
7246
7249
|
const result = zettelExplore(getFedDb(), {
|
|
7247
7250
|
startNote: note,
|
|
7248
7251
|
depth,
|
|
@@ -7307,7 +7310,7 @@ async function cmdHealth(opts) {
|
|
|
7307
7310
|
const projectPath = opts.project;
|
|
7308
7311
|
const recentDays = parseInt(opts.days ?? "30", 10);
|
|
7309
7312
|
const includeTypes = opts.include ? opts.include.split(",").map((s) => s.trim()) : void 0;
|
|
7310
|
-
const { zettelHealth } = await import("./zettelkasten-
|
|
7313
|
+
const { zettelHealth } = await import("./zettelkasten-F0D_XfQ4.mjs");
|
|
7311
7314
|
const result = zettelHealth(getFedDb(), {
|
|
7312
7315
|
scope,
|
|
7313
7316
|
projectPath,
|
|
@@ -7378,7 +7381,7 @@ async function cmdSurprise(note, opts) {
|
|
|
7378
7381
|
const limit = parseInt(opts.limit ?? "10", 10);
|
|
7379
7382
|
const minSimilarity = parseFloat(opts.minSimilarity ?? "0.3");
|
|
7380
7383
|
const minGraphDistance = parseInt(opts.minDistance ?? "3", 10);
|
|
7381
|
-
const { zettelSurprise } = await import("./zettelkasten-
|
|
7384
|
+
const { zettelSurprise } = await import("./zettelkasten-F0D_XfQ4.mjs");
|
|
7382
7385
|
const db = getFedDb();
|
|
7383
7386
|
console.log();
|
|
7384
7387
|
console.log(header(" PAI Zettel Surprise"));
|
|
@@ -7433,7 +7436,7 @@ async function cmdSuggest(note, opts) {
|
|
|
7433
7436
|
const vaultProjectId = parseInt(opts.vaultProjectId, 10);
|
|
7434
7437
|
const limit = parseInt(opts.limit ?? "5", 10);
|
|
7435
7438
|
const excludeLinked = opts.excludeLinked !== false;
|
|
7436
|
-
const { zettelSuggest } = await import("./zettelkasten-
|
|
7439
|
+
const { zettelSuggest } = await import("./zettelkasten-F0D_XfQ4.mjs");
|
|
7437
7440
|
const db = getFedDb();
|
|
7438
7441
|
console.log();
|
|
7439
7442
|
console.log(header(" PAI Zettel Suggest"));
|
|
@@ -7486,7 +7489,7 @@ async function cmdConverse(question, opts) {
|
|
|
7486
7489
|
const vaultProjectId = parseInt(opts.vaultProjectId, 10);
|
|
7487
7490
|
const depth = parseInt(opts.depth ?? "2", 10);
|
|
7488
7491
|
const limit = parseInt(opts.limit ?? "15", 10);
|
|
7489
|
-
const { zettelConverse } = await import("./zettelkasten-
|
|
7492
|
+
const { zettelConverse } = await import("./zettelkasten-F0D_XfQ4.mjs");
|
|
7490
7493
|
const db = getFedDb();
|
|
7491
7494
|
console.log();
|
|
7492
7495
|
console.log(header(" PAI Zettel Converse"));
|
|
@@ -7549,7 +7552,7 @@ async function cmdThemes(opts) {
|
|
|
7549
7552
|
const minClusterSize = parseInt(opts.minSize ?? "3", 10);
|
|
7550
7553
|
const maxThemes = parseInt(opts.maxThemes ?? "10", 10);
|
|
7551
7554
|
const similarityThreshold = parseFloat(opts.threshold ?? "0.65");
|
|
7552
|
-
const { zettelThemes } = await import("./zettelkasten-
|
|
7555
|
+
const { zettelThemes } = await import("./zettelkasten-F0D_XfQ4.mjs");
|
|
7553
7556
|
const db = getFedDb();
|
|
7554
7557
|
console.log();
|
|
7555
7558
|
console.log(header(" PAI Zettel Themes"));
|
|
@@ -9124,8 +9127,8 @@ async function escalate(task, headline, detail, state, now, opts) {
|
|
|
9124
9127
|
state.alarmedAt[task.id] = now;
|
|
9125
9128
|
let delivered = false;
|
|
9126
9129
|
try {
|
|
9127
|
-
const { routeNotification } = await import("./router-
|
|
9128
|
-
const { loadConfig } = await import("./config-
|
|
9130
|
+
const { routeNotification } = await import("./router-BTIGZR2_.mjs");
|
|
9131
|
+
const { loadConfig } = await import("./config-C_ErGddD.mjs");
|
|
9129
9132
|
delivered = (await routeNotification({
|
|
9130
9133
|
event: "error",
|
|
9131
9134
|
title: `PAI: ${headline}`,
|
|
@@ -11741,10 +11744,10 @@ function cmdActive(db, opts) {
|
|
|
11741
11744
|
], rows));
|
|
11742
11745
|
}
|
|
11743
11746
|
async function cmdAutoRoute(opts) {
|
|
11744
|
-
const { autoRoute, formatAutoRoute, formatAutoRouteJson } = await import("./auto-route-
|
|
11747
|
+
const { autoRoute, formatAutoRoute, formatAutoRouteJson } = await import("./auto-route-_5zzJz5q.mjs");
|
|
11745
11748
|
const { openRegistry } = await import("./db-XEwJbuGO.mjs");
|
|
11746
|
-
const { createStorageBackend } = await import("./factory-
|
|
11747
|
-
const { loadConfig } = await import("./config-
|
|
11749
|
+
const { createStorageBackend } = await import("./factory-Dbo8yNPi.mjs");
|
|
11750
|
+
const { loadConfig } = await import("./config-C_ErGddD.mjs");
|
|
11748
11751
|
const config = loadConfig();
|
|
11749
11752
|
const registryDb = openRegistry();
|
|
11750
11753
|
const federation = await createStorageBackend(config);
|
|
@@ -14254,7 +14257,7 @@ function registerWorkerCommands(workerCmd) {
|
|
|
14254
14257
|
fail(e);
|
|
14255
14258
|
}
|
|
14256
14259
|
});
|
|
14257
|
-
workerCmd.command("wait <ids...>").description("Poll workers until they finish; prints each result as one JSON line, exit 1 on failure or timeout\nNever busy-wait for a worker: no sleep loops, no sleep-then-`pai worker ps` polling, no manual retry loops. Two sanctioned waits: run workers as background Bash tasks (the harness notifies on completion), or call `pai worker wait`, which blocks until they finish and prints each result. If you catch yourself sleeping to re-check a worker, stop — you already get notified.").option("--timeout <secs>", "Give up after this many seconds (default 900)", parseIntArg).action(async (ids, opts) => {
|
|
14260
|
+
workerCmd.command("wait <ids...>").description("Poll workers until they finish; prints each result as one JSON line, exit 1 on failure or timeout\nNever busy-wait for a worker: no sleep loops, no sleep-then-`pai worker ps` polling, no manual retry loops. Two sanctioned waits: run workers as background Bash tasks (the harness notifies on completion), or call `pai worker wait`, which blocks until they finish and prints each result. If you catch yourself sleeping to re-check a worker, stop — you already get notified. Supervision events arrive automatically — no polling, no sleeps: the daemon watches your workers and tells you when one finishes, fails or stalls (docs/worker.md, Supervision).").option("--timeout <secs>", "Give up after this many seconds (default 900)", parseIntArg).action(async (ids, opts) => {
|
|
14258
14261
|
try {
|
|
14259
14262
|
const { results, timedOut } = await waitWorkers(currentLogDir(), ids, { timeoutMs: (opts.timeout ?? 900) * 1e3 });
|
|
14260
14263
|
for (const r of results) console.log(JSON.stringify(r));
|
|
@@ -14790,8 +14793,8 @@ function analyzeProject(db, project) {
|
|
|
14790
14793
|
async function countVectorDbPaths(oldPaths) {
|
|
14791
14794
|
if (oldPaths.length === 0) return 0;
|
|
14792
14795
|
try {
|
|
14793
|
-
const { loadConfig } = await import("./config-
|
|
14794
|
-
const { PostgresBackend } = await import("./postgres-
|
|
14796
|
+
const { loadConfig } = await import("./config-C_ErGddD.mjs");
|
|
14797
|
+
const { PostgresBackend } = await import("./postgres-CtOzfoQU.mjs");
|
|
14795
14798
|
const config = loadConfig();
|
|
14796
14799
|
if (config.storageBackend !== "postgres") return 0;
|
|
14797
14800
|
const pgBackend = new PostgresBackend(config.postgres ?? {});
|
|
@@ -14811,8 +14814,8 @@ async function countVectorDbPaths(oldPaths) {
|
|
|
14811
14814
|
async function updateVectorDbPaths(moves) {
|
|
14812
14815
|
if (moves.length === 0) return 0;
|
|
14813
14816
|
try {
|
|
14814
|
-
const { loadConfig } = await import("./config-
|
|
14815
|
-
const { PostgresBackend } = await import("./postgres-
|
|
14817
|
+
const { loadConfig } = await import("./config-C_ErGddD.mjs");
|
|
14818
|
+
const { PostgresBackend } = await import("./postgres-CtOzfoQU.mjs");
|
|
14816
14819
|
const config = loadConfig();
|
|
14817
14820
|
if (config.storageBackend !== "postgres") return 0;
|
|
14818
14821
|
const pgBackend = new PostgresBackend(config.postgres ?? {});
|
|
@@ -16349,4 +16352,4 @@ claude() {
|
|
|
16349
16352
|
|
|
16350
16353
|
//#endregion
|
|
16351
16354
|
export { drainStdio as n, buildProgram as t };
|
|
16352
|
-
//# sourceMappingURL=program-
|
|
16355
|
+
//# sourceMappingURL=program-CruRnLtc.mjs.map
|