chat-recall 0.7.66 → 0.7.68

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/cli.js CHANGED
@@ -30356,6 +30356,7 @@ __export(sync_client_exports, {
30356
30356
  classifyError: () => classifyError,
30357
30357
  countsForBreaker: () => countsForBreaker,
30358
30358
  exportByteLength: () => exportByteLength,
30359
+ isJsonlTranscript: () => isJsonlTranscript,
30359
30360
  isStandingFailure: () => isStandingFailure,
30360
30361
  isSyncSkip: () => isSyncSkip,
30361
30362
  lastFullWalkAt: () => lastFullWalkAt,
@@ -31762,6 +31763,9 @@ function sessionFileBytes(ref) {
31762
31763
  if (!backend?.isAppendOnly?.()) return 0;
31763
31764
  return backend.fileSize?.(ref.prefixedId) ?? 0;
31764
31765
  }
31766
+ function isJsonlTranscript(path) {
31767
+ return /\.jsonl$/i.test(path);
31768
+ }
31765
31769
  function syncTranscript(t) {
31766
31770
  const cut = t.payloadCap ? { messages: t.messages, subagents: t.subagents } : trimTranscriptForSync(t);
31767
31771
  return { messages: cut.messages, subagents: cut.subagents.map((s) => ({ ...s, filePath: "" })) };
@@ -31922,7 +31926,7 @@ async function buildConversationSync(ref, mtime, opts = {}) {
31922
31926
  }
31923
31927
  const resolved = resolveProjectId(projectPath);
31924
31928
  const projectId = resolved.source === "ignored" ? "" : resolved.id;
31925
- if (includeMeta && ref.fullPath) {
31929
+ if (includeMeta && ref.fullPath && isJsonlTranscript(ref.fullPath)) {
31926
31930
  try {
31927
31931
  const parsed = await parseSessionFile(ref.fullPath);
31928
31932
  const m = parsed.metadata;
@@ -40758,6 +40762,8 @@ function tierAll(results) {
40758
40762
 
40759
40763
  // src/cli.ts
40760
40764
  init_sync_client();
40765
+ init_session_file_scan();
40766
+ init_live_session_scan();
40761
40767
  init_credentials_env();
40762
40768
  init_update_notice();
40763
40769
  init_server_probe();
@@ -42190,6 +42196,7 @@ program.command("verify").description("Check that the server holds everything th
42190
42196
  fileSize: (rawId) => claude.fileSize?.(rawId) ?? 0,
42191
42197
  localContainerSize: (rawId) => {
42192
42198
  try {
42199
+ if (sessionGroupsBytes(resolveSessionContentGroups(rawId)) > FULL_BUILD_MAX_BYTES) return null;
42193
42200
  const exp = claude.exportRawSession?.(rawId);
42194
42201
  if (!exp) return null;
42195
42202
  const container = {