chatroom-cli 1.54.0 → 1.54.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
@@ -78755,10 +78755,8 @@ ${content}`);
78755
78755
  lines.push(`</${senderTag}-message>`);
78756
78756
  }
78757
78757
  const hoursAgo = Math.round(input.context.elapsedHours);
78758
- const msgsSince = input.context.messagesSinceContext;
78759
- const isStale = hoursAgo >= 24 || msgsSince >= 50;
78760
- if (isStale) {
78761
- const ageLabel = hoursAgo >= 48 ? `${Math.round(hoursAgo / 24)}d old` : hoursAgo >= 24 ? `${hoursAgo}h old` : `${msgsSince} messages old`;
78758
+ if (hoursAgo >= 4) {
78759
+ const ageLabel = hoursAgo >= 48 ? `${Math.round(hoursAgo / 24)}d old` : hoursAgo >= 24 ? `${hoursAgo}h old` : `${hoursAgo}h old`;
78762
78760
  lines.push(`<system-notice>`);
78763
78761
  lines.push(`⚠️ Context is ${ageLabel}.`);
78764
78762
  lines.push(` Entry point role will update when needed.`);
@@ -79317,9 +79315,6 @@ async function listContexts(chatroomId, options, deps) {
79317
79315
  \uD83D\uDD39 Context ID: ${context4._id}`);
79318
79316
  console.log(` Created by: ${context4.createdBy}`);
79319
79317
  console.log(` Created at: ${timestamp}`);
79320
- if (context4.messageCountAtCreation !== undefined) {
79321
- console.log(` Messages at creation: ${context4.messageCountAtCreation}`);
79322
- }
79323
79318
  console.log(` Content:`);
79324
79319
  const safeContent = sanitizeForTerminal(context4.content);
79325
79320
  const truncatedContent = safeContent.length > 200 ? safeContent.slice(0, 200) + "..." : safeContent;
@@ -79370,17 +79365,15 @@ async function inspectContext(chatroomId, options, deps) {
79370
79365
  console.log(` Created at: ${new Date(context4.createdAt).toLocaleString()}`);
79371
79366
  console.log(`
79372
79367
  \uD83D\uDCCA Staleness:`);
79373
- console.log(` Messages since context: ${context4.messagesSinceContext}`);
79374
79368
  console.log(` Time elapsed: ${context4.elapsedHours.toFixed(1)} hours`);
79375
- if (context4.messagesSinceContext >= 10) {
79376
- console.log(`
79377
- ⚠️ Many messages since this context was created.`);
79378
- console.log(` Consider creating a new context with an updated summary.`);
79379
- }
79380
79369
  if (context4.elapsedHours >= 24) {
79381
79370
  console.log(`
79382
79371
  ⚠️ This context is over 24 hours old.`);
79383
79372
  console.log(` Consider creating a new context with an updated summary.`);
79373
+ } else if (context4.elapsedHours >= 4) {
79374
+ console.log(`
79375
+ ⚠️ This context is over 4 hours old.`);
79376
+ console.log(` Consider refreshing if the focus has shifted.`);
79384
79377
  }
79385
79378
  console.log(`
79386
79379
  \uD83D\uDCDD Content:`);
@@ -88575,4 +88568,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
88575
88568
  });
88576
88569
  program2.parse();
88577
88570
 
88578
- //# debugId=CA89B8C579092E0C64756E2164756E21
88571
+ //# debugId=4BE6EFE565A3E11F64756E2164756E21