@sideboard-ai/core 0.1.238 → 0.1.240
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/{agents-6NAPLJU2.js → agents-CDQCQVWU.js} +1 -1
- package/dist/{agents-HJU23LIF.js → agents-PBRIHUYM.js} +1 -1
- package/dist/{chunk-WRUBICEF.js → chunk-3Q4PVZ3U.js} +14 -9
- package/dist/{chunk-E6UJGLPM.js → chunk-JJSHAVJB.js} +337 -144
- package/dist/{chunk-K6UTJOE6.js → chunk-QXYWLO6W.js} +16 -10
- package/dist/{chunk-32DG3DA2.js → chunk-WPNPIDJS.js} +361 -146
- package/dist/index.cjs +539 -300
- package/dist/index.d.cts +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +25 -3
- package/dist/mcp/run-stdio.cjs +506 -301
- package/dist/mcp/run-stdio.js +3 -3
- package/dist/{orchestrator-HPMDB2SG.js → orchestrator-A2Q5O4W2.js} +2 -2
- package/dist/{orchestrator-AAYKR4AI.js → orchestrator-MIIKXPHH.js} +2 -2
- package/package.json +1 -1
|
@@ -1689,12 +1689,14 @@ function skillCommandFromInput(input) {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
return void 0;
|
|
1691
1691
|
}
|
|
1692
|
+
function looksLikeComposerSkillExpansion(text) {
|
|
1693
|
+
const t = text.trim();
|
|
1694
|
+
return /^## Skill: \//m.test(t) && /Follow this skill for the request above:/i.test(t);
|
|
1695
|
+
}
|
|
1692
1696
|
function looksLikeSkillBody(text) {
|
|
1693
1697
|
const t = text.trim();
|
|
1694
1698
|
if (!t) return false;
|
|
1695
|
-
if (
|
|
1696
|
-
return true;
|
|
1697
|
-
}
|
|
1699
|
+
if (looksLikeComposerSkillExpansion(t)) return true;
|
|
1698
1700
|
return skillNameFromFrontmatter(t) != null;
|
|
1699
1701
|
}
|
|
1700
1702
|
function skillNameFromFrontmatter(text) {
|
|
@@ -1715,11 +1717,13 @@ function isCompactToolName(name) {
|
|
|
1715
1717
|
short
|
|
1716
1718
|
);
|
|
1717
1719
|
}
|
|
1718
|
-
function isContextCompactInProgress(text) {
|
|
1719
|
-
return /^Compressing context/i.test(text.trim());
|
|
1720
|
-
}
|
|
1721
1720
|
function isContextCompactDone(text) {
|
|
1722
|
-
return
|
|
1721
|
+
return /\bContext compressed\b/i.test(text.trim());
|
|
1722
|
+
}
|
|
1723
|
+
function isContextCompactInProgress(text) {
|
|
1724
|
+
const t = text.trim();
|
|
1725
|
+
if (isContextCompactDone(t)) return false;
|
|
1726
|
+
return /^Compressing context/i.test(t);
|
|
1723
1727
|
}
|
|
1724
1728
|
function looksLikeConversationSummary(text) {
|
|
1725
1729
|
const t = text.trim();
|
|
@@ -2146,7 +2150,7 @@ function applyAgentEvent(parts, event) {
|
|
|
2146
2150
|
);
|
|
2147
2151
|
}
|
|
2148
2152
|
const acc = next[next.length - 1];
|
|
2149
|
-
if (acc?.type === "text" &&
|
|
2153
|
+
if (acc?.type === "text" && looksLikeComposerSkillExpansion(acc.text)) {
|
|
2150
2154
|
next[next.length - 1] = skillToolFromTextPart(acc, `skill-${next.length}`);
|
|
2151
2155
|
} else if (acc?.type === "text" && looksLikeConversationSummary(acc.text)) {
|
|
2152
2156
|
next[next.length - 1] = compactToolPart(acc.text, `compact-${next.length}`, {
|
|
@@ -2742,7 +2746,8 @@ function eventsFromClaudeSystem(obj) {
|
|
|
2742
2746
|
const trigger = meta.trigger ? ` (${meta.trigger})` : "";
|
|
2743
2747
|
const thinking = {
|
|
2744
2748
|
type: "thinking",
|
|
2745
|
-
data: `Context compressed${trigger}
|
|
2749
|
+
data: `Context compressed${trigger}`,
|
|
2750
|
+
replace: true
|
|
2746
2751
|
};
|
|
2747
2752
|
if (meta.postTokens != null && meta.postTokens > 0) {
|
|
2748
2753
|
return [
|