@atlasharness/atlascode 0.1.10 → 0.1.11

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 (2) hide show
  1. package/dist/cli.js +13 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -32541,6 +32541,12 @@ function getSessionMessages(sessionId) {
32541
32541
  function clearSessionMessagesCache() {
32542
32542
  _sessionMessagesCache.clear();
32543
32543
  }
32544
+ function primeSessionMessages(sessionId, uuids) {
32545
+ _sessionMessagesCache.set(sessionId, Promise.resolve(uuids));
32546
+ }
32547
+ function hasSessionMessagesCache(sessionId) {
32548
+ return _sessionMessagesCache.has(sessionId);
32549
+ }
32544
32550
  async function doesMessageExistInSession(sessionId, messageUuid) {
32545
32551
  const messageSet = await getSessionMessages(sessionId);
32546
32552
  return messageSet.has(messageUuid);
@@ -178486,6 +178492,7 @@ __export(exports_engineCompat, {
178486
178492
  hasMetInitializationThreshold: () => hasMetInitializationThreshold,
178487
178493
  hasMetUpdateThreshold: () => hasMetUpdateThreshold,
178488
178494
  hasPendingNotifications: () => hasPendingNotifications,
178495
+ hasSessionMessagesCache: () => hasSessionMessagesCache,
178489
178496
  hasWorkingInProcessTeammates: () => hasWorkingInProcessTeammates,
178490
178497
  initialPermissionModeFromCLI: () => initialPermissionModeFromCLI,
178491
178498
  initializeToolPermissionContext: () => initializeToolPermissionContext,
@@ -178613,6 +178620,7 @@ __export(exports_engineCompat, {
178613
178620
  pollTasks: () => pollTasks,
178614
178621
  popAllEditable: () => popAllEditable,
178615
178622
  prepareContextForPlanMode: () => prepareContextForPlanMode,
178623
+ primeSessionMessages: () => primeSessionMessages,
178616
178624
  processResumedConversation: () => processResumedConversation,
178617
178625
  projectInstance: () => projectInstance,
178618
178626
  projectSnippedView: () => projectSnippedView,
@@ -420578,7 +420586,7 @@ async function loadSessionFile2(sessionId) {
420578
420586
  return loadTranscriptFile2(sessionFile);
420579
420587
  }
420580
420588
  function clearSessionMessagesCache2() {
420581
- getSessionMessages2.cache.clear?.();
420589
+ clearSessionMessagesCache();
420582
420590
  }
420583
420591
  async function getLastSessionLog(sessionId) {
420584
420592
  const {
@@ -420596,8 +420604,8 @@ async function getLastSessionLog(sessionId) {
420596
420604
  } = await loadSessionFile2(sessionId);
420597
420605
  if (messages.size === 0)
420598
420606
  return null;
420599
- if (!getSessionMessages2.cache.has(sessionId)) {
420600
- getSessionMessages2.cache.set(sessionId, Promise.resolve(new Set(messages.keys())));
420607
+ if (!hasSessionMessagesCache(sessionId)) {
420608
+ primeSessionMessages(sessionId, new Set(messages.keys()));
420601
420609
  }
420602
420610
  const lastMessage = findLatestMessage2(messages.values(), (m) => !m.isSidechain);
420603
420611
  if (!lastMessage)
@@ -421231,10 +421239,11 @@ async function enrichLogs(allLogs, startIndex, count) {
421231
421239
  }
421232
421240
  return { logs: result, nextIndex: i };
421233
421241
  }
421234
- var VERSION5, MAX_TOMBSTONE_REWRITE_BYTES, SKIP_FIRST_PROMPT_PATTERN2, EPHEMERAL_PROGRESS_TYPES2, MAX_TRANSCRIPT_READ_BYTES2, agentTranscriptSubdirs2, getProjectDir3, project2 = null, cleanupRegistered3 = false, REMOTE_FLUSH_INTERVAL_MS = 10, METADATA_TYPE_MARKERS2, METADATA_MARKER_BUFS2, METADATA_PREFIX_BOUND2 = 25, getSessionMessages2, INITIAL_ENRICH_COUNT = 50;
421242
+ var VERSION5, MAX_TOMBSTONE_REWRITE_BYTES, SKIP_FIRST_PROMPT_PATTERN2, EPHEMERAL_PROGRESS_TYPES2, MAX_TRANSCRIPT_READ_BYTES2, agentTranscriptSubdirs2, getProjectDir3, project2 = null, cleanupRegistered3 = false, REMOTE_FLUSH_INTERVAL_MS = 10, METADATA_TYPE_MARKERS2, METADATA_MARKER_BUFS2, METADATA_PREFIX_BOUND2 = 25, getSessionMessages2 = (sessionId) => getSessionMessages(sessionId), INITIAL_ENRICH_COUNT = 50;
421235
421243
  var init_sessionStorage = __esm(() => {
421236
421244
  init_memoize();
421237
421245
  init_bootstrap();
421246
+ init_engine();
421238
421247
  init_bootstrapState();
421239
421248
  init_commands5();
421240
421249
  init_xml();
@@ -421287,10 +421296,6 @@ var init_sessionStorage = __esm(() => {
421287
421296
  '"type":"pr-link"'
421288
421297
  ];
421289
421298
  METADATA_MARKER_BUFS2 = METADATA_TYPE_MARKERS2.map((m) => Buffer.from(m));
421290
- getSessionMessages2 = memoize_default(async (sessionId) => {
421291
- const { messages } = await loadSessionFile2(sessionId);
421292
- return new Set(messages.keys());
421293
- }, (sessionId) => sessionId);
421294
421299
  });
421295
421300
 
421296
421301
  // src/tui/utils/plans.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasharness/atlascode",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "AtlasCode \u2014 Coding Agent for the domestic computing ecosystem (Ascend NPU + domestic LLM backends)",
5
5
  "bin": {
6
6
  "atlas": "dist/cli.js",