@ponythewhite/base-context 1.0.13 → 1.0.14

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/base-context-runtime/pyproject.toml +1 -1
  3. package/dist/base-context-runtime/uv.lock +1 -1
  4. package/dist/build-info.json +1 -1
  5. package/dist/bundle/amazon-bedrock.js +3 -3
  6. package/dist/bundle/{anthropic-BJVPUMPB.js → anthropic-AXUXEET7.js} +1 -1
  7. package/dist/bundle/{azure-openai-responses-ERRMAXK6.js → azure-openai-responses-J3NTJKEO.js} +2 -2
  8. package/dist/bundle/{bundled-modules-URKVA3UB.js → bundled-modules-UODO7ZR7.js} +5 -5
  9. package/dist/bundle/{chunk-FOGKLC7V.js → chunk-72LSQYUV.js} +1 -1
  10. package/dist/bundle/{chunk-MUFZODP5.js → chunk-EGFIZABJ.js} +1 -1
  11. package/dist/bundle/{chunk-AEMRBMI2.js → chunk-IEM74GZ5.js} +9 -9
  12. package/dist/bundle/{chunk-25VYRAC6.js → chunk-JKKXN6JE.js} +72 -0
  13. package/dist/bundle/{chunk-TXVF6Q5H.js → chunk-NLRWERWA.js} +37 -32
  14. package/dist/bundle/{chunk-TKOBEJ5E.js → chunk-SX7CAXWU.js} +22 -4
  15. package/dist/bundle/{chunk-Q6UAHLII.js → chunk-V6LOBH6X.js} +2 -2
  16. package/dist/bundle/{cli-main-ZTJM5EEH.js → cli-main-6GXXIMQQ.js} +4 -4
  17. package/dist/bundle/cli.js +1 -1
  18. package/dist/bundle/{google-4GA4YMUX.js → google-QLKV2ZLC.js} +2 -2
  19. package/dist/bundle/{google-vertex-7AMALD7D.js → google-vertex-UGLUZV6B.js} +2 -2
  20. package/dist/bundle/{main-53I74INO.js → main-HF64B4HM.js} +5 -5
  21. package/dist/bundle/{mistral-74BXMNRM.js → mistral-2ITSLHYF.js} +1 -1
  22. package/dist/bundle/{openai-codex-responses-COXNC4IH.js → openai-codex-responses-FRREQXS3.js} +5 -4
  23. package/dist/bundle/{openai-completions-BCSA5Q6S.js → openai-completions-HF6UPPLW.js} +1 -1
  24. package/dist/bundle/{openai-responses-ONCIZSJS.js → openai-responses-LRTMBDFW.js} +2 -2
  25. package/dist/core/agent-session.d.ts.map +1 -1
  26. package/dist/core/agent-session.js +6 -1
  27. package/dist/core/agent-session.js.map +1 -1
  28. package/dist/core/autonomous.d.ts +2 -0
  29. package/dist/core/autonomous.d.ts.map +1 -1
  30. package/dist/core/autonomous.js +4 -0
  31. package/dist/core/autonomous.js.map +1 -1
  32. package/dist/core/canonical-context.d.ts.map +1 -1
  33. package/dist/core/canonical-context.js +7 -0
  34. package/dist/core/canonical-context.js.map +1 -1
  35. package/dist/core/public-context.d.ts.map +1 -1
  36. package/dist/core/public-context.js +2 -0
  37. package/dist/core/public-context.js.map +1 -1
  38. package/dist/core/view-units.d.ts.map +1 -1
  39. package/dist/core/view-units.js +3 -0
  40. package/dist/core/view-units.js.map +1 -1
  41. package/dist/main.d.ts.map +1 -1
  42. package/dist/main.js +1 -1
  43. package/dist/main.js.map +1 -1
  44. package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
  45. package/dist/modes/daemon/daemon-mode.js +4 -3
  46. package/dist/modes/daemon/daemon-mode.js.map +1 -1
  47. package/dist/modes/daemon/daemon-supervisor.d.ts.map +1 -1
  48. package/dist/modes/daemon/daemon-supervisor.js +11 -5
  49. package/dist/modes/daemon/daemon-supervisor.js.map +1 -1
  50. package/dist/modes/daemon/daemon-worker-protocol.d.ts +3 -0
  51. package/dist/modes/daemon/daemon-worker-protocol.d.ts.map +1 -1
  52. package/dist/modes/daemon/daemon-worker-protocol.js +2 -0
  53. package/dist/modes/daemon/daemon-worker-protocol.js.map +1 -1
  54. package/dist/modes/print-mode.d.ts.map +1 -1
  55. package/dist/modes/print-mode.js +24 -21
  56. package/dist/modes/print-mode.js.map +1 -1
  57. package/docs/json.md +14 -1
  58. package/docs/long-running-agents.md +23 -2
  59. package/docs/providers.md +17 -0
  60. package/package.json +4 -4
@@ -52,7 +52,7 @@ import { buildRlmChildSnapshots, buildSessionList, classifySessionRosterStatus,
52
52
  import { DaemonSessionSummarizer } from "./daemon-session-summarizer.js";
53
53
  import { cleanupDaemonSocketPath, closeDaemonServer, defaultDaemonSocketPath, getDaemonSocketIdentity, normalizeSocketPath, prepareDaemonSocketPath, restrictDaemonSocketPath, } from "./daemon-socket.js";
54
54
  import { assertDaemonSupervisorOwnerCurrent, isDaemonShutdownAdmissionActive } from "./daemon-supervisor-ownership.js";
55
- import { DAEMON_WORKER_ACTIVE_SESSION_ID_ENV, DAEMON_WORKER_PEER_TRANSPORT_CAPABILITY, DAEMON_WORKER_RECOVERY_JOURNAL_ENV, DAEMON_WORKER_ROLE_ENV, DAEMON_WORKER_ROSTER_CAPABILITY, DAEMON_WORKER_SUPERVISOR_SOCKET_ENV, DAEMON_WORKER_TOKEN_ENV, isDaemonWorkerFrameHeader, ROSTER_HEARTBEAT_INTERVAL_MS, SESSION_LEASE_OWNER_ID_ENV, SESSION_LEASES_ENABLED_ENV, } from "./daemon-worker-protocol.js";
55
+ import { DAEMON_WORKER_ACTIVE_SESSION_ID_ENV, DAEMON_WORKER_PEER_TRANSPORT_CAPABILITY, DAEMON_WORKER_RECOVERY_JOURNAL_ENV, DAEMON_WORKER_RLM_LEDGER_SESSION_DIR_ENV, DAEMON_WORKER_ROLE_ENV, DAEMON_WORKER_ROSTER_CAPABILITY, DAEMON_WORKER_SUPERVISOR_SOCKET_ENV, DAEMON_WORKER_TOKEN_ENV, isDaemonWorkerFrameHeader, ROSTER_HEARTBEAT_INTERVAL_MS, SESSION_LEASE_OWNER_ID_ENV, SESSION_LEASES_ENABLED_ENV, } from "./daemon-worker-protocol.js";
56
56
  import { MutationDrainLatch } from "./mutation-drain-latch.js";
57
57
  import { createRlmLedgerRegistrySeedSource, RlmSpawnLedger, readLegacyRlmSubagentRegistry as readLegacyRlmSubagentRegistryFile, rlmLedgerPath, tombstoneSavedSessionDelete, } from "./rlm-ledger.js";
58
58
  import { readRlmSubagentDisplayEntry, rlmSubagentDisplayPath, writeRlmSubagentDisplayEntry, } from "./rlm-subagent-display.js";
@@ -666,7 +666,8 @@ export class AgentDaemon {
666
666
  }
667
667
  /** Root sessions dir that keys this daemon's spawn ledger. */
668
668
  rlmLedgerSessionsDir() {
669
- return this.options.defaultSessionConfig.sessionDir ?? getSessionsDir(this.agentDir);
669
+ const assigned = this.options.worker ? process.env[DAEMON_WORKER_RLM_LEDGER_SESSION_DIR_ENV] : undefined;
670
+ return assigned ?? this.options.defaultSessionConfig.sessionDir ?? getSessionsDir(this.agentDir);
670
671
  }
671
672
  async openRlmJournalOwner() {
672
673
  if (this.options.worker)
@@ -3461,7 +3462,7 @@ export class AgentDaemon {
3461
3462
  cwd,
3462
3463
  sessionDir,
3463
3464
  agentDir: this.agentDir,
3464
- ledgerSessionDir: sessionDir ?? this.rlmLedgerSessionsDir(),
3465
+ ledgerSessionDir: this.rlmLedgerSessionsDir(),
3465
3466
  scope: command.scope,
3466
3467
  }, pageQuery);
3467
3468
  return success(command.id, "list_saved_sessions", page);