@tekmidian/pai 0.51.0 → 0.52.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.
@@ -0,0 +1,7 @@
1
+ import "./utils-CJymHkYm.mjs";
2
+ import "./config-Bn9jpblO.mjs";
3
+ import "./config-DYXARgk8.mjs";
4
+ import { n as resolveSessionDir, r as resumeTargetFor, t as cmdMain } from "./main-resolver-Dv-oC46Z.mjs";
5
+ import "./aibroker-client-DzkTpVjx.mjs";
6
+
7
+ export { cmdMain };
@@ -13,16 +13,16 @@ import { b as OWNER_LABEL_PREFIX, c as migrateConfigFile, d as readMainConfigRaw
13
13
  import { a as schedulerLogPath, i as paiSocketPath, n as daemonLogPath, r as daemonPidPath } from "./runtime-paths-B0P1TvUr.mjs";
14
14
  import { A as migrateWorkersToYaml, C as readWorkersSection, F as workersYamlPath, I as DEFAULT_CONTEXT_WINDOW, L as contextWindowFromModelId, M as parseWorkersYamlDocument, N as relocateWorkersYaml, O as initWorkersYaml, P as workersYamlLegacyNotice, R as stripModelVariant, _ as isModelCapability, b as nativeAnthropicProvider, c as MODEL_CAPABILITIES, d as WorkersConfigError, g as getProviderOrNative, h as expandHome$1, j as needsWorkersYamlRelocation, k as inlineWorkersYamlKeys, l as PROVIDER_TAGS, t as ANTHROPIC_NATIVE, y as maskKey } from "./config-DYXARgk8.mjs";
15
15
  import { B as setWorkerLabel, C as mergeWorker, D as UNLABELED, F as loadStatuses, G as describeMcp, H as longInlinePromptHint, K as expandMcpNames, M as isChatPane, N as isLive, P as loadStatus, R as ownsPid, S as discardWorker, T as appendLedger, U as parseRunnerArgs, V as waitForTerminalStatus, a as projectLaunchConfig, c as handoffFromInside, f as checkPaneForWorker, i as usageContextTokens, m as openPaneForWorker, n as runWorker, o as parseWorkerReport, p as openFollowPane, r as testProvider, u as sayToWorker, z as saveStatus } from "./run-TChOnMO_.mjs";
16
- import { a as totalUsageTokens, i as parseSessionUsage, r as sessionKeepaliveLedgerSummary, t as loadSessionKeepaliveState } from "./session-keepalive-BuG3wvik.mjs";
16
+ import { a as totalUsageTokens, i as parseSessionUsage, r as sessionKeepaliveLedgerSummary, t as loadSessionKeepaliveState } from "./session-keepalive-BkLOTZf6.mjs";
17
17
  import { t as PaiClient } from "./ipc-client-C6NryMMb.mjs";
18
18
  import { r as humanDuration, t as createStorageBackend } from "./factory-Bt7TWQje.mjs";
19
19
  import { A as getConfigValueOp, C as psOutput, D as resolveSpecPath, E as readSpecPrompt, M as setConfigValueOp, N as unsetConfigValueOp, O as MainConfigOpsError, S as followWorkers, T as statusLineOutput, _ as setWorkersEnabled, a as addProvider, b as updateProvider, c as describeModels, d as removeProvider, f as resolveProviderName, g as setProviderModel, h as setProviderEnabled, i as fallbackStatusText, j as listConfigOp, k as formatConfigGetOutput, l as describeProviders, m as setClass, n as fallbackOn, o as classTargetText, p as setCapabilityPreference, r as fallbackStatus, s as describeCapabilities, t as fallbackOff, u as modelPrefsText, v as unsetCapabilityPreference, w as replayOutput, x as useProvider, y as unsetClass } from "./fallback-CIGspCSi.mjs";
20
20
  import { n as migrateIdentityFile } from "./wakeup-Yk5lQ0jb.mjs";
21
- import { a as renderDedupedSessions, c as probeResume, d as fmtAge, f as migrateSessionScanCache, h as scanSessions, i as normalizeName$2, l as restoreTopLevel, m as scanCacheFilePath, o as hasConversation, p as resolveSessionByNameOrId, r as buildDeduped, s as launchInDir, t as cmdMain, u as printExitDir } from "./main-resolver-BmZPCmgj.mjs";
21
+ import { a as normalizeName$2, c as launchInDir, d as printExitDir, f as fmtAge, g as scanSessions, h as scanCacheFilePath, i as buildDeduped, l as probeResume, m as resolveSessionByNameOrId, o as renderDedupedSessions, p as migrateSessionScanCache, s as hasConversation, t as cmdMain, u as restoreTopLevel } from "./main-resolver-Dv-oC46Z.mjs";
22
22
  import { n as queriesDirPath, t as migrateQueriesDir } from "./query-feedback-CTs_jx6i.mjs";
23
23
  import { s as kgQuery } from "./kg-entity-BSW7ra8i.mjs";
24
24
  import { g as ledgerPath, h as eventsPath, i as buildRunEnv, m as ensureNoMcpConfig, n as ensureProxyRunning, r as stopProxy, t as DEFAULT_PROXY_PORT, y as workersLogDir } from "./server-R9UkCn3v.mjs";
25
- import { i as sendToSession, n as fetchLiveSessions, r as revealItermSession, t as callAiBroker } from "./aibroker-client-CDIXmq-e.mjs";
25
+ import { i as sendToSession, n as fetchLiveSessions, r as revealItermSession, t as callAiBroker } from "./aibroker-client-DzkTpVjx.mjs";
26
26
  import { t as runChain } from "./chain-BBbVbWVv.mjs";
27
27
  import { appendFileSync, chmodSync, copyFileSync, cpSync, createReadStream, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
28
28
  import { homedir, platform, tmpdir } from "node:os";
@@ -1975,7 +1975,7 @@ function cmdUnregister(db, slug, opts = {}) {
1975
1975
  //#region src/cli/commands/project/projects-index.ts
1976
1976
  function registerProjectsCommands(projectsCmd, getDb) {
1977
1977
  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) => {
1978
- const { cmdMain } = await import("./main-resolver-BTastpp4.mjs");
1978
+ const { cmdMain } = await import("./main-resolver-DyeXNI8b.mjs");
1979
1979
  await cmdMain(getDb(), void 0, void 0, opts);
1980
1980
  });
1981
1981
  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) => {
@@ -6705,7 +6705,7 @@ function cmdLogs(opts) {
6705
6705
  }
6706
6706
  function registerDaemonCommands(daemonCmd) {
6707
6707
  daemonCmd.command("serve").description("Start the PAI daemon in the foreground").action(async () => {
6708
- const { serve } = await import("./daemon-Vf7pHnjR.mjs");
6708
+ const { serve } = await import("./daemon-BIbpQeXx.mjs");
6709
6709
  const { loadConfig: lc, ensureConfigDir } = await import("./config-RjeVGJ7K.mjs");
6710
6710
  ensureConfigDir();
6711
6711
  await serve(lc());
@@ -20493,7 +20493,7 @@ function buildProgram() {
20493
20493
  program.name("pai").description("PAI Knowledge OS — Personal AI Infrastructure CLI").version(getVersion(), "-V, --version", "Print version and exit").addHelpText("after", `
20494
20494
  Daily commands:
20495
20495
  pai Show your work: live tabs + recent sessions + recent projects
20496
- pai <name> Switch / resume / fresh — universal
20496
+ pai <name> Switch live tab, else fresh in its directory — universal
20497
20497
  pai pause [all] Pause current (or all live) sessions
20498
20498
  pai end Finalize current session
20499
20499
 
@@ -20683,7 +20683,7 @@ claude() {
20683
20683
  program.command("query [query] [pick]", {
20684
20684
  isDefault: true,
20685
20685
  hidden: true
20686
- }).description("Find and launch a session by topic, name, or UUID.\nNo arg → deduped session listing\nName → switch live tab, or resume, or start fresh\nUUID → direct resume via filesystem scan\nTopic → history search → candidate list → pick #").option("-y, --auto", "Auto-pick #1 without prompting").option("--dry-run", "Print what would happen without launching").option("-n, --n <count>", "Max candidates for history search", "20").option("--all", "Show all entries including cold / zero-session / archived projects").option("--list", "Skip the interactive picker; print the static session listing").action(async (query, pick, opts) => {
20686
+ }).description("Find and launch a session by topic, name, or UUID.\nNo arg → deduped session listing\nName → switch live tab, or start fresh in its directory (--resume reopens the newest transcript)\nUUID → direct resume via filesystem scan\nTopic → history search → candidate list → pick #").option("-y, --auto", "Auto-pick #1 without prompting").option("--dry-run", "Print what would happen without launching").option("-n, --n <count>", "Max candidates for history search", "20").option("--all", "Show all entries including cold / zero-session / archived projects").option("--list", "Skip the interactive picker; print the static session listing").option("--resume", "Reopen the name's newest transcript instead of starting fresh").action(async (query, pick, opts) => {
20687
20687
  if (query === void 0 && !opts.list) {
20688
20688
  await cmdPick(getDb(), {
20689
20689
  all: opts.all,
@@ -20701,4 +20701,4 @@ claude() {
20701
20701
 
20702
20702
  //#endregion
20703
20703
  export { drainStdio as n, buildProgram as t };
20704
- //# sourceMappingURL=program-srUeFUfW.mjs.map
20704
+ //# sourceMappingURL=program-ClTUv9-k.mjs.map