agentbox-sdk 0.1.518 → 0.1.519
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/README.md
CHANGED
|
@@ -711,7 +711,9 @@ events with `kind: "question"`. Respond with `decision: "allow"` and an `answers
|
|
|
711
711
|
array containing each `questionId` and its selected or custom `values`, or use
|
|
712
712
|
`decision: "deny"` to skip. Invalid answers leave the request pending for correction.
|
|
713
713
|
Question answers cannot modify unrelated tool arguments. Ordinary tool requests
|
|
714
|
-
use the same API without `answers`.
|
|
714
|
+
use the same API without `answers`. Denying a Codex command or file change sends
|
|
715
|
+
`decline`, so the agent can continue without that action. Stopping the whole run
|
|
716
|
+
is a separate operation (`run.abort()`).
|
|
715
717
|
|
|
716
718
|
Codex can also ask without pausing (`request_user_input_async`): the app-server
|
|
717
719
|
accepts the call itself and the turn keeps working. That ask is not a permission
|
package/dist/agents/index.js
CHANGED
|
@@ -4931,7 +4931,7 @@ function toCodexApprovalDecision(notification, response) {
|
|
|
4931
4931
|
(part) => typeof part === "string"
|
|
4932
4932
|
) : [];
|
|
4933
4933
|
if (response.decision === "deny") {
|
|
4934
|
-
return
|
|
4934
|
+
return "decline";
|
|
4935
4935
|
}
|
|
4936
4936
|
if (response.remember && availableDecisions.includes("acceptForSession")) {
|
|
4937
4937
|
return "acceptForSession";
|
package/dist/index.js
CHANGED