codemem 0.35.2 → 0.36.1

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/index.js CHANGED
@@ -792,9 +792,7 @@ function lockTtlSeconds() {
792
792
  * file-locality boosts can target files the user just edited.
793
793
  */
794
794
  var MAX_FILES_MODIFIED = 64;
795
- var MAX_WORKING_SET_PATHS = 8;
796
795
  var MAX_QUERY_CHARS = 500;
797
- var MAX_QUERY_FILE_BASENAMES = 5;
798
796
  var SESSION_FILE_LABEL_CHARS = 24;
799
797
  function stableSessionSuffix(sessionId) {
800
798
  let hash = 14695981039346656037n;
@@ -959,7 +957,7 @@ function trackHookSessionState(payload) {
959
957
  seen.add(path);
960
958
  changed = true;
961
959
  }
962
- state.files_modified = existing.slice(-MAX_FILES_MODIFIED);
960
+ state.files_modified = existing.slice(-64);
963
961
  }
964
962
  if (changed) {
965
963
  state.updated_at = nowIso();
@@ -988,7 +986,7 @@ function buildInjectQuery(args) {
988
986
  if (args.prompt && args.prompt !== firstPrompt && args.prompt.length > 5) parts.push(args.prompt);
989
987
  if (args.project) parts.push(args.project);
990
988
  if (filesModified.length > 0) {
991
- const names = filesModified.slice(-MAX_QUERY_FILE_BASENAMES).map(pathBasename).filter((name) => name.length > 0);
989
+ const names = filesModified.slice(-5).map(pathBasename).filter((name) => name.length > 0);
992
990
  if (names.length > 0) parts.push(names.join(" "));
993
991
  }
994
992
  if (parts.length === 0) return "recent work";
@@ -998,7 +996,7 @@ function buildInjectQuery(args) {
998
996
  /** Return the working set paths (last N modified files) for pack filters. */
999
997
  function workingSetPathsFromState(state) {
1000
998
  if (!state) return [];
1001
- return state.files_modified.filter((path) => path.trim().length > 0).slice(-MAX_WORKING_SET_PATHS);
999
+ return state.files_modified.filter((path) => path.trim().length > 0).slice(-8);
1002
1000
  }
1003
1001
  //#endregion
1004
1002
  //#region src/commands/claude-hook-ingest.ts
@@ -6862,7 +6860,7 @@ statusCmd.action((opts) => {
6862
6860
  if (scopes.length === 0) p.log.message(peerHeader);
6863
6861
  else {
6864
6862
  const scopeLines = scopes.map((scope) => {
6865
- const state = scope.bootstrapped ? "synced" : "pending";
6863
+ const state = scope.bootstrapped ? "received" : "pending";
6866
6864
  return ` - ${scope.label} (${scope.scope_id}): ${state}`;
6867
6865
  });
6868
6866
  p.log.message([