@atlasharness/atlascode 0.1.52 → 0.1.53
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 +9 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -85608,7 +85608,7 @@ function findDeferredToolUseState(conversation) {
|
|
|
85608
85608
|
return { toolUseId, toolName, deferReason };
|
|
85609
85609
|
}
|
|
85610
85610
|
async function reEvaluateDeferredToolCalls(params) {
|
|
85611
|
-
const { conversation, toolUseId, tools, toolHooks, checkPermission } = params;
|
|
85611
|
+
const { conversation, toolUseId, tools, toolHooks, checkPermission, signal, toolContext } = params;
|
|
85612
85612
|
let tu;
|
|
85613
85613
|
let assistantMsg;
|
|
85614
85614
|
for (let i = conversation.length - 1;i >= 0; i--) {
|
|
@@ -85646,7 +85646,9 @@ async function reEvaluateDeferredToolCalls(params) {
|
|
|
85646
85646
|
const outcome = await executeToolUse(tu, assistantMsg, {
|
|
85647
85647
|
tools,
|
|
85648
85648
|
hooks: toolHooks,
|
|
85649
|
-
checkPermission
|
|
85649
|
+
checkPermission,
|
|
85650
|
+
signal,
|
|
85651
|
+
toolContext
|
|
85650
85652
|
});
|
|
85651
85653
|
if (outcome.deferred) {
|
|
85652
85654
|
const payload = {
|
|
@@ -85828,7 +85830,8 @@ async function runHeadless(inputPrompt, options) {
|
|
|
85828
85830
|
const loopDeps = {
|
|
85829
85831
|
...bundle.deps,
|
|
85830
85832
|
signal: abortController.signal,
|
|
85831
|
-
checkPermission
|
|
85833
|
+
checkPermission,
|
|
85834
|
+
toolContext: makeCtx()
|
|
85832
85835
|
};
|
|
85833
85836
|
const autoCompact = {
|
|
85834
85837
|
contextWindow: (roleModel ? getProviderContextWindow(roleModel) : undefined) ?? 200000,
|
|
@@ -85965,7 +85968,9 @@ async function runHeadless(inputPrompt, options) {
|
|
|
85965
85968
|
toolUseId: deferredState.toolUseId,
|
|
85966
85969
|
tools,
|
|
85967
85970
|
toolHooks: loopDeps.hooks?.toolHooks,
|
|
85968
|
-
checkPermission
|
|
85971
|
+
checkPermission,
|
|
85972
|
+
signal: loopDeps.signal,
|
|
85973
|
+
toolContext: loopDeps.toolContext
|
|
85969
85974
|
});
|
|
85970
85975
|
conversation = re.messages;
|
|
85971
85976
|
if (loopDeps.transcript) {
|
package/package.json
CHANGED