@atlasharness/atlascode 0.1.10 → 0.1.12
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 +42 -31
- 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);
|
|
@@ -75541,7 +75547,7 @@ function parseSkillFrontmatterFields(frontmatter, markdownContent, resolvedName,
|
|
|
75541
75547
|
allowedTools: parseSlashCommandToolsFromFrontmatter(frontmatter["allowed-tools"]),
|
|
75542
75548
|
argumentHint: frontmatter["argument-hint"] != null ? String(frontmatter["argument-hint"]) : undefined,
|
|
75543
75549
|
argumentNames: parseArgumentNames(frontmatter.arguments),
|
|
75544
|
-
whenToUse: frontmatter.when_to_use,
|
|
75550
|
+
whenToUse: frontmatter["when-to-use"] ?? frontmatter.when_to_use,
|
|
75545
75551
|
version: frontmatter.version,
|
|
75546
75552
|
model,
|
|
75547
75553
|
disableModelInvocation: parseBooleanFrontmatter(frontmatter["disable-model-invocation"]),
|
|
@@ -169660,6 +169666,10 @@ var init_loadAgentsDir2 = __esm(() => {
|
|
|
169660
169666
|
});
|
|
169661
169667
|
|
|
169662
169668
|
// src/tui/tools/SkillTool/prompt.ts
|
|
169669
|
+
function getMaxListingDescChars2() {
|
|
169670
|
+
const override = Number(process.env.SKILL_LISTING_MAX_DESC_CHARS);
|
|
169671
|
+
return Number.isFinite(override) && override > 0 ? Math.floor(override) : MAX_LISTING_DESC_CHARS2;
|
|
169672
|
+
}
|
|
169663
169673
|
function getCharBudget2(contextWindowTokens) {
|
|
169664
169674
|
if (Number(process.env.SLASH_COMMAND_TOOL_CHAR_BUDGET)) {
|
|
169665
169675
|
return Number(process.env.SLASH_COMMAND_TOOL_CHAR_BUDGET);
|
|
@@ -169671,7 +169681,8 @@ function getCharBudget2(contextWindowTokens) {
|
|
|
169671
169681
|
}
|
|
169672
169682
|
function getCommandDescription(cmd) {
|
|
169673
169683
|
const desc = cmd.whenToUse ? `${cmd.description} - ${cmd.whenToUse}` : cmd.description;
|
|
169674
|
-
|
|
169684
|
+
const cap = getMaxListingDescChars2();
|
|
169685
|
+
return desc.length > cap ? desc.slice(0, cap - 1) + "…" : desc;
|
|
169675
169686
|
}
|
|
169676
169687
|
function formatCommandDescription(cmd) {
|
|
169677
169688
|
const displayName = getCommandName2(cmd);
|
|
@@ -178486,6 +178497,7 @@ __export(exports_engineCompat, {
|
|
|
178486
178497
|
hasMetInitializationThreshold: () => hasMetInitializationThreshold,
|
|
178487
178498
|
hasMetUpdateThreshold: () => hasMetUpdateThreshold,
|
|
178488
178499
|
hasPendingNotifications: () => hasPendingNotifications,
|
|
178500
|
+
hasSessionMessagesCache: () => hasSessionMessagesCache,
|
|
178489
178501
|
hasWorkingInProcessTeammates: () => hasWorkingInProcessTeammates,
|
|
178490
178502
|
initialPermissionModeFromCLI: () => initialPermissionModeFromCLI,
|
|
178491
178503
|
initializeToolPermissionContext: () => initializeToolPermissionContext,
|
|
@@ -178613,6 +178625,7 @@ __export(exports_engineCompat, {
|
|
|
178613
178625
|
pollTasks: () => pollTasks,
|
|
178614
178626
|
popAllEditable: () => popAllEditable,
|
|
178615
178627
|
prepareContextForPlanMode: () => prepareContextForPlanMode,
|
|
178628
|
+
primeSessionMessages: () => primeSessionMessages,
|
|
178616
178629
|
processResumedConversation: () => processResumedConversation,
|
|
178617
178630
|
projectInstance: () => projectInstance,
|
|
178618
178631
|
projectSnippedView: () => projectSnippedView,
|
|
@@ -261495,6 +261508,15 @@ var init_AssistantTextMessage = __esm(() => {
|
|
|
261495
261508
|
jsx_dev_runtime67 = __toESM(require_jsx_dev_runtime(), 1);
|
|
261496
261509
|
});
|
|
261497
261510
|
|
|
261511
|
+
// src/tui/components/messages/thinkingPreview.ts
|
|
261512
|
+
function thinkingFirstLinePreview(thinking, maxLen = 80) {
|
|
261513
|
+
const line = thinking.split(`
|
|
261514
|
+
`).map((s) => s.trim()).find(Boolean);
|
|
261515
|
+
if (!line)
|
|
261516
|
+
return "";
|
|
261517
|
+
return line.length > maxLen ? line.slice(0, maxLen) + "…" : line;
|
|
261518
|
+
}
|
|
261519
|
+
|
|
261498
261520
|
// src/tui/components/messages/AssistantThinkingMessage.tsx
|
|
261499
261521
|
function AssistantThinkingMessage(t0) {
|
|
261500
261522
|
const $ = import_compiler_runtime62.c(9);
|
|
@@ -261519,33 +261541,24 @@ function AssistantThinkingMessage(t0) {
|
|
|
261519
261541
|
const shouldShowFullThinking = isTranscriptMode || verbose;
|
|
261520
261542
|
if (!shouldShowFullThinking) {
|
|
261521
261543
|
const t4 = addMargin ? 1 : 0;
|
|
261522
|
-
|
|
261523
|
-
|
|
261524
|
-
|
|
261544
|
+
const preview = thinkingFirstLinePreview(thinking);
|
|
261545
|
+
return /* @__PURE__ */ jsx_dev_runtime68.jsxDEV(ThemedBox_default, {
|
|
261546
|
+
marginTop: t4,
|
|
261547
|
+
children: /* @__PURE__ */ jsx_dev_runtime68.jsxDEV(ThemedText, {
|
|
261525
261548
|
dimColor: true,
|
|
261526
261549
|
italic: true,
|
|
261527
261550
|
children: [
|
|
261528
261551
|
"∴ Thinking",
|
|
261552
|
+
preview ? /* @__PURE__ */ jsx_dev_runtime68.jsxDEV(ThemedText, {
|
|
261553
|
+
dimColor: true,
|
|
261554
|
+
italic: true,
|
|
261555
|
+
children: " " + preview
|
|
261556
|
+
}, undefined, false, undefined, this) : null,
|
|
261529
261557
|
" ",
|
|
261530
261558
|
/* @__PURE__ */ jsx_dev_runtime68.jsxDEV(CtrlOToExpand, {}, undefined, false, undefined, this)
|
|
261531
261559
|
]
|
|
261532
|
-
}, undefined, true, undefined, this)
|
|
261533
|
-
|
|
261534
|
-
} else {
|
|
261535
|
-
t5 = $[0];
|
|
261536
|
-
}
|
|
261537
|
-
let t6;
|
|
261538
|
-
if ($[1] !== t4) {
|
|
261539
|
-
t6 = /* @__PURE__ */ jsx_dev_runtime68.jsxDEV(ThemedBox_default, {
|
|
261540
|
-
marginTop: t4,
|
|
261541
|
-
children: t5
|
|
261542
|
-
}, undefined, false, undefined, this);
|
|
261543
|
-
$[1] = t4;
|
|
261544
|
-
$[2] = t6;
|
|
261545
|
-
} else {
|
|
261546
|
-
t6 = $[2];
|
|
261547
|
-
}
|
|
261548
|
-
return t6;
|
|
261560
|
+
}, undefined, true, undefined, this)
|
|
261561
|
+
}, undefined, false, undefined, this);
|
|
261549
261562
|
}
|
|
261550
261563
|
const t4 = addMargin ? 1 : 0;
|
|
261551
261564
|
let t5;
|
|
@@ -267394,7 +267407,8 @@ function CollapsedReadSearchContent({
|
|
|
267394
267407
|
}, undefined, true, undefined, this)
|
|
267395
267408
|
]
|
|
267396
267409
|
}, undefined, true, undefined, this),
|
|
267397
|
-
isActiveGroup
|
|
267410
|
+
'// S3(感知面反馈波,用户收窄范围):解除 isActiveGroup 门控——折叠组 // 完成后最后一行文件名/搜索提示(displayedHint,源 = readPaths?.at(-1) // / latestDisplayHint,数据全程在)仍渲染,而非只剩 "Read N files" 计数。 // 用户明确不做截断全列表方案(slice(0,3)+N more 等),纯渲染层 1 处。',
|
|
267411
|
+
displayedHint !== undefined && /* @__PURE__ */ jsx_dev_runtime94.jsxDEV(ThemedBox_default, {
|
|
267398
267412
|
flexDirection: "row",
|
|
267399
267413
|
children: [
|
|
267400
267414
|
/* @__PURE__ */ jsx_dev_runtime94.jsxDEV(ThemedBox_default, {
|
|
@@ -420578,7 +420592,7 @@ async function loadSessionFile2(sessionId) {
|
|
|
420578
420592
|
return loadTranscriptFile2(sessionFile);
|
|
420579
420593
|
}
|
|
420580
420594
|
function clearSessionMessagesCache2() {
|
|
420581
|
-
|
|
420595
|
+
clearSessionMessagesCache();
|
|
420582
420596
|
}
|
|
420583
420597
|
async function getLastSessionLog(sessionId) {
|
|
420584
420598
|
const {
|
|
@@ -420596,8 +420610,8 @@ async function getLastSessionLog(sessionId) {
|
|
|
420596
420610
|
} = await loadSessionFile2(sessionId);
|
|
420597
420611
|
if (messages.size === 0)
|
|
420598
420612
|
return null;
|
|
420599
|
-
if (!
|
|
420600
|
-
|
|
420613
|
+
if (!hasSessionMessagesCache(sessionId)) {
|
|
420614
|
+
primeSessionMessages(sessionId, new Set(messages.keys()));
|
|
420601
420615
|
}
|
|
420602
420616
|
const lastMessage = findLatestMessage2(messages.values(), (m) => !m.isSidechain);
|
|
420603
420617
|
if (!lastMessage)
|
|
@@ -421231,10 +421245,11 @@ async function enrichLogs(allLogs, startIndex, count) {
|
|
|
421231
421245
|
}
|
|
421232
421246
|
return { logs: result, nextIndex: i };
|
|
421233
421247
|
}
|
|
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;
|
|
421248
|
+
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
421249
|
var init_sessionStorage = __esm(() => {
|
|
421236
421250
|
init_memoize();
|
|
421237
421251
|
init_bootstrap();
|
|
421252
|
+
init_engine();
|
|
421238
421253
|
init_bootstrapState();
|
|
421239
421254
|
init_commands5();
|
|
421240
421255
|
init_xml();
|
|
@@ -421287,10 +421302,6 @@ var init_sessionStorage = __esm(() => {
|
|
|
421287
421302
|
'"type":"pr-link"'
|
|
421288
421303
|
];
|
|
421289
421304
|
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
421305
|
});
|
|
421295
421306
|
|
|
421296
421307
|
// src/tui/utils/plans.ts
|
package/package.json
CHANGED