@atlasharness/atlascode 0.1.11 → 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 +29 -23
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -75547,7 +75547,7 @@ function parseSkillFrontmatterFields(frontmatter, markdownContent, resolvedName,
|
|
|
75547
75547
|
allowedTools: parseSlashCommandToolsFromFrontmatter(frontmatter["allowed-tools"]),
|
|
75548
75548
|
argumentHint: frontmatter["argument-hint"] != null ? String(frontmatter["argument-hint"]) : undefined,
|
|
75549
75549
|
argumentNames: parseArgumentNames(frontmatter.arguments),
|
|
75550
|
-
whenToUse: frontmatter.when_to_use,
|
|
75550
|
+
whenToUse: frontmatter["when-to-use"] ?? frontmatter.when_to_use,
|
|
75551
75551
|
version: frontmatter.version,
|
|
75552
75552
|
model,
|
|
75553
75553
|
disableModelInvocation: parseBooleanFrontmatter(frontmatter["disable-model-invocation"]),
|
|
@@ -169666,6 +169666,10 @@ var init_loadAgentsDir2 = __esm(() => {
|
|
|
169666
169666
|
});
|
|
169667
169667
|
|
|
169668
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
|
+
}
|
|
169669
169673
|
function getCharBudget2(contextWindowTokens) {
|
|
169670
169674
|
if (Number(process.env.SLASH_COMMAND_TOOL_CHAR_BUDGET)) {
|
|
169671
169675
|
return Number(process.env.SLASH_COMMAND_TOOL_CHAR_BUDGET);
|
|
@@ -169677,7 +169681,8 @@ function getCharBudget2(contextWindowTokens) {
|
|
|
169677
169681
|
}
|
|
169678
169682
|
function getCommandDescription(cmd) {
|
|
169679
169683
|
const desc = cmd.whenToUse ? `${cmd.description} - ${cmd.whenToUse}` : cmd.description;
|
|
169680
|
-
|
|
169684
|
+
const cap = getMaxListingDescChars2();
|
|
169685
|
+
return desc.length > cap ? desc.slice(0, cap - 1) + "…" : desc;
|
|
169681
169686
|
}
|
|
169682
169687
|
function formatCommandDescription(cmd) {
|
|
169683
169688
|
const displayName = getCommandName2(cmd);
|
|
@@ -261503,6 +261508,15 @@ var init_AssistantTextMessage = __esm(() => {
|
|
|
261503
261508
|
jsx_dev_runtime67 = __toESM(require_jsx_dev_runtime(), 1);
|
|
261504
261509
|
});
|
|
261505
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
|
+
|
|
261506
261520
|
// src/tui/components/messages/AssistantThinkingMessage.tsx
|
|
261507
261521
|
function AssistantThinkingMessage(t0) {
|
|
261508
261522
|
const $ = import_compiler_runtime62.c(9);
|
|
@@ -261527,33 +261541,24 @@ function AssistantThinkingMessage(t0) {
|
|
|
261527
261541
|
const shouldShowFullThinking = isTranscriptMode || verbose;
|
|
261528
261542
|
if (!shouldShowFullThinking) {
|
|
261529
261543
|
const t4 = addMargin ? 1 : 0;
|
|
261530
|
-
|
|
261531
|
-
|
|
261532
|
-
|
|
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, {
|
|
261533
261548
|
dimColor: true,
|
|
261534
261549
|
italic: true,
|
|
261535
261550
|
children: [
|
|
261536
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,
|
|
261537
261557
|
" ",
|
|
261538
261558
|
/* @__PURE__ */ jsx_dev_runtime68.jsxDEV(CtrlOToExpand, {}, undefined, false, undefined, this)
|
|
261539
261559
|
]
|
|
261540
|
-
}, undefined, true, undefined, this)
|
|
261541
|
-
|
|
261542
|
-
} else {
|
|
261543
|
-
t5 = $[0];
|
|
261544
|
-
}
|
|
261545
|
-
let t6;
|
|
261546
|
-
if ($[1] !== t4) {
|
|
261547
|
-
t6 = /* @__PURE__ */ jsx_dev_runtime68.jsxDEV(ThemedBox_default, {
|
|
261548
|
-
marginTop: t4,
|
|
261549
|
-
children: t5
|
|
261550
|
-
}, undefined, false, undefined, this);
|
|
261551
|
-
$[1] = t4;
|
|
261552
|
-
$[2] = t6;
|
|
261553
|
-
} else {
|
|
261554
|
-
t6 = $[2];
|
|
261555
|
-
}
|
|
261556
|
-
return t6;
|
|
261560
|
+
}, undefined, true, undefined, this)
|
|
261561
|
+
}, undefined, false, undefined, this);
|
|
261557
261562
|
}
|
|
261558
261563
|
const t4 = addMargin ? 1 : 0;
|
|
261559
261564
|
let t5;
|
|
@@ -267402,7 +267407,8 @@ function CollapsedReadSearchContent({
|
|
|
267402
267407
|
}, undefined, true, undefined, this)
|
|
267403
267408
|
]
|
|
267404
267409
|
}, undefined, true, undefined, this),
|
|
267405
|
-
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, {
|
|
267406
267412
|
flexDirection: "row",
|
|
267407
267413
|
children: [
|
|
267408
267414
|
/* @__PURE__ */ jsx_dev_runtime94.jsxDEV(ThemedBox_default, {
|
package/package.json
CHANGED