memhtml 0.5.1 → 0.6.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/memhtml.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as STATE_DB_PATH, A as IndexRecorder, B as IndexGit, C as ModelClient, D as EmbeddingsLive, E as Embeddings, F as makeRetrieval, G as MIGRATIONS_DIR, H as sanitizeFtsQuery, I as reinforce, J as Store, K as STATE_MIGRATIONS_DIR, L as Indexer, M as persistScanned, N as readWatermark, O as EMBED_DIM, P as Retrieval, R as makeIndexer, S as runDiscrimination, T as wrapAsData, U as DatabaseService, V as makeGitPort, W as makeDatabase, X as makeStore, Y as expandRoot, Z as INDEX_DB_PATH, _ as meta, a as parseSidecar, at as makeGit, b as isSleepPhase, c as generateArtifacts, ct as setMeta, d as allPaths, dt as fenceOpeningOf, et as STATE_SIDECAR_PATH, f as danglingEdges, ft as REINFORCE_SIGNALS, g as link, h as hrefFor, i as makeSleep, it as Git, j as makeIndexRecorder, k as EMBED_WATERMARK, l as DETECTION_PREFIX, lt as isValidDatetime, m as applyHeadEdits, n as scanTraceRoot, nt as initRepo, o as renderSidecar, ot as commitSubject, p as publishRows, pt as frameKeyOf, q as STATE_SCHEMA, r as Sleep, rt as readFileOrNull, s as archivedFormOf, st as checkMemory, t as mergeTailExtract, tt as attemptIo, u as accessRows, ut as closesFence, v as unlink, w as ModelClientLive, x as discriminationGate, y as SLEEP_PHASES, z as readIndexState } from "./dist-DgKlozi6.mjs";
2
+ import { $ as STATE_DB_PATH, A as IndexRecorder, B as IndexGit, C as ModelClient, D as EmbeddingsLive, E as Embeddings, F as makeRetrieval, G as MIGRATIONS_DIR, H as sanitizeFtsQuery, I as reinforce, J as Store, K as STATE_MIGRATIONS_DIR, L as Indexer, M as persistScanned, N as readWatermark, O as EMBED_DIM, P as Retrieval, R as makeIndexer, S as runDiscrimination, T as wrapAsData, U as DatabaseService, V as makeGitPort, W as makeDatabase, X as makeStore, Y as expandRoot, Z as INDEX_DB_PATH, _ as meta, a as parseSidecar, at as makeGit, b as isSleepPhase, c as generateArtifacts, ct as setMeta, d as allPaths, dt as fenceOpeningOf, et as STATE_SIDECAR_PATH, f as danglingEdges, ft as REINFORCE_SIGNALS, g as link, h as hrefFor, i as makeSleep, it as Git, j as makeIndexRecorder, k as EMBED_WATERMARK, l as DETECTION_PREFIX, lt as isValidDatetime, m as applyHeadEdits, n as scanTraceRoot, nt as initRepo, o as renderSidecar, ot as commitSubject, p as publishRows, pt as frameKeyOf, q as STATE_SCHEMA, r as Sleep, rt as readFileOrNull, s as archivedFormOf, st as checkMemory, t as mergeTailExtract, tt as attemptIo, u as accessRows, ut as closesFence, v as unlink, w as ModelClientLive, x as discriminationGate, y as SLEEP_PHASES, z as readIndexState } from "./dist-CHoz5uHd.mjs";
3
3
  import { $ as TASK_RELS, Dt as isTaskStatus, Et as WRITABLE_MEMORY_TYPES, G as InvalidMemory, Q as MEMORY_RELS, R as hasConsolidatorCredentials, Y as StorageFailure, a as makeConsolidator, et as isEdgeRel, lt as TASKS_SUBDIR, mt as normalizePath, ot as INBOX_DIR, q as ModelUnavailable, tt as relClassFor, wt as TASK_STATUSES } from "./dist-BCsav-EP.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import { Config, Context, Effect, Layer, Logger } from "effect";
@@ -2663,6 +2663,17 @@ const COMMANDS = [
2663
2663
  type: "boolean",
2664
2664
  description: "Report per-phase counts and commit nothing.",
2665
2665
  default: false
2666
+ },
2667
+ {
2668
+ name: "deep",
2669
+ type: "boolean",
2670
+ description: "The deep-sleep cycle: mine a lower grouping band, group by shared entity, re-file inbox singletons, and iterate compress until a pass folds nothing. Reaches the inbox tail the nightly community gate cannot; costs more model calls. Same branch, review, and merge gate as a nightly run.",
2671
+ default: false
2672
+ },
2673
+ {
2674
+ name: "max-llm-calls",
2675
+ type: "int",
2676
+ description: "Cap on model calls the deep mechanisms may spend, shared across all deep phases. Exhaustion skips remaining batches with reason `budget` and the run stays green. Read only with --deep; absent means uncapped."
2666
2677
  }
2667
2678
  ],
2668
2679
  responseTypes: ["sleep.report"]
@@ -2936,7 +2947,7 @@ const GUIDE_TOPICS = GUIDE.map((block) => block.topic);
2936
2947
  */
2937
2948
  const buildManifest = () => ({
2938
2949
  name: "memhtml",
2939
- version: "0.5.1",
2950
+ version: "0.6.0",
2940
2951
  summary: "Read, write, and curate the git-backed memory repo.",
2941
2952
  apiVersion: "1",
2942
2953
  /**
@@ -4735,10 +4746,13 @@ const dispatch = (parsed, applyOps = []) => {
4735
4746
  case "sleep run": return Effect.gen(function* () {
4736
4747
  const sleep = yield* Sleep;
4737
4748
  const phases = yield* sleepPhases(str(parsed, "phases"));
4749
+ const maxLlmCalls = int(parsed, "max-llm-calls");
4738
4750
  const report = yield* sleep.run({
4739
4751
  date: str(parsed, "date") ?? (yield* today),
4740
4752
  ...phases === void 0 ? {} : { phases },
4741
- dryRun: bool(parsed, "dry-run", false)
4753
+ dryRun: bool(parsed, "dry-run", false),
4754
+ deep: bool(parsed, "deep", false),
4755
+ ...maxLlmCalls === void 0 ? {} : { maxLlmCalls }
4742
4756
  });
4743
4757
  return ["sleep.report", sleepRunReport(report)];
4744
4758
  });