@atlasharness/atlascode 0.1.91 → 0.1.92
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 +8 -14
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -27524,7 +27524,7 @@ async function buildOpenAITools(tools, options, emptyPermissionContext) {
|
|
|
27524
27524
|
let desc;
|
|
27525
27525
|
try {
|
|
27526
27526
|
desc = await tool.description({}, {
|
|
27527
|
-
isNonInteractiveSession: options
|
|
27527
|
+
isNonInteractiveSession: options?.isNonInteractiveSession,
|
|
27528
27528
|
toolPermissionContext,
|
|
27529
27529
|
tools: tools ?? []
|
|
27530
27530
|
});
|
|
@@ -84916,6 +84916,8 @@ async function createAgentLoopDeps(config = {}) {
|
|
|
84916
84916
|
messages: [...compactMsgs, prompt],
|
|
84917
84917
|
role,
|
|
84918
84918
|
sessionModel,
|
|
84919
|
+
systemPrompt: config.systemPrompt,
|
|
84920
|
+
tools: tools.length > 0 ? tools : undefined,
|
|
84919
84921
|
signal: config.signal
|
|
84920
84922
|
});
|
|
84921
84923
|
const content = resp.message?.content;
|
|
@@ -89052,6 +89054,8 @@ async function runHeadless(inputPrompt, options) {
|
|
|
89052
89054
|
const resp = await modelProvider.chat({
|
|
89053
89055
|
messages: [...msgs, prompt],
|
|
89054
89056
|
role: "small",
|
|
89057
|
+
systemPrompt: bundle.deps.systemPrompt,
|
|
89058
|
+
tools,
|
|
89055
89059
|
signal: abortController.signal
|
|
89056
89060
|
});
|
|
89057
89061
|
return resp.message.content.filter((block) => block.type === "text" && typeof block.text === "string").map((block) => block.text).join("");
|
|
@@ -437109,12 +437113,6 @@ async function streamCompactSummary({
|
|
|
437109
437113
|
let hasStartedStreaming = false;
|
|
437110
437114
|
let response;
|
|
437111
437115
|
context.setResponseLength?.(() => 0);
|
|
437112
|
-
const useToolSearch = await isToolSearchEnabled(compactModel, context.options.tools, async () => appState.toolPermissionContext, context.options.agentDefinitions.activeAgents, "compact");
|
|
437113
|
-
const tools = useToolSearch ? uniqBy_default([
|
|
437114
|
-
FileReadTool,
|
|
437115
|
-
ToolSearchTool2,
|
|
437116
|
-
...context.options.tools.filter((t) => t.isMcp)
|
|
437117
|
-
], "name") : [FileReadTool];
|
|
437118
437116
|
const compactMessages = normalizeMessagesForAPI(stripImagesFromMessages2(stripReinjectedAttachments([
|
|
437119
437117
|
...getMessagesAfterCompactBoundary(messages),
|
|
437120
437118
|
summaryRequest
|
|
@@ -437122,11 +437120,9 @@ async function streamCompactSummary({
|
|
|
437122
437120
|
const compactRole = modelToRole(compactModel);
|
|
437123
437121
|
const params = await buildOpenAIParams({
|
|
437124
437122
|
messages: compactMessages,
|
|
437125
|
-
systemPrompt: asSystemPrompt2(
|
|
437126
|
-
"You are a helpful AI assistant tasked with summarizing conversations."
|
|
437127
|
-
]),
|
|
437123
|
+
systemPrompt: asSystemPrompt2(appendSystemContext(cacheSafeParams.systemPrompt, cacheSafeParams.systemContext)),
|
|
437128
437124
|
thinkingConfig: { type: "disabled" },
|
|
437129
|
-
tools,
|
|
437125
|
+
tools: context.options.tools,
|
|
437130
437126
|
options: {
|
|
437131
437127
|
model: compactModel,
|
|
437132
437128
|
async getToolPermissionContext() {
|
|
@@ -437356,14 +437352,12 @@ var POST_COMPACT_MAX_FILES_TO_RESTORE = 5, POST_COMPACT_TOKEN_BUDGET = 50000, PO
|
|
|
437356
437352
|
var init_compact4 = __esm(() => {
|
|
437357
437353
|
init_shared();
|
|
437358
437354
|
init_shared();
|
|
437359
|
-
|
|
437355
|
+
init_api2();
|
|
437360
437356
|
init_atlas();
|
|
437361
437357
|
init_compactModelSwitch();
|
|
437362
437358
|
init_bootstrapState();
|
|
437363
437359
|
init_bootstrapState();
|
|
437364
|
-
init_FileReadTool();
|
|
437365
437360
|
init_prompt2();
|
|
437366
|
-
init_ToolSearchTool();
|
|
437367
437361
|
init_attachments();
|
|
437368
437362
|
init_config6();
|
|
437369
437363
|
init_context2();
|
package/package.json
CHANGED