@agentclientprotocol/codex-acp 1.1.10 → 1.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/index.js +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23560,7 +23560,7 @@ function createAgentTextThoughtChunk(text, messageId, meta3) {
|
|
|
23560
23560
|
var GOAL_EXTENSION_VERSION = 1;
|
|
23561
23561
|
var GOAL_CONTROL_METHOD = "_session/goal";
|
|
23562
23562
|
var LEGACY_GOAL_CONTROL_METHOD = "_codex/session/goal_control";
|
|
23563
|
-
var GOAL_CONTROL_ACTIONS = ["pause", "clear"];
|
|
23563
|
+
var GOAL_CONTROL_ACTIONS = ["pause", "resume", "clear"];
|
|
23564
23564
|
|
|
23565
23565
|
// src/ThreadGoalSnapshot.ts
|
|
23566
23566
|
function toGoalStatus(status) {
|
|
@@ -26161,7 +26161,7 @@ var package_default = {
|
|
|
26161
26161
|
publishConfig: {
|
|
26162
26162
|
access: "public"
|
|
26163
26163
|
},
|
|
26164
|
-
version: "1.1.
|
|
26164
|
+
version: "1.1.12",
|
|
26165
26165
|
description: "",
|
|
26166
26166
|
main: "dist/index.js",
|
|
26167
26167
|
bin: {
|
|
@@ -28829,8 +28829,9 @@ var CodexAcpServer = class _CodexAcpServer {
|
|
|
28829
28829
|
throw RequestError.invalidParams(void 0, `Unknown session: ${methodRequest.params.sessionId}`);
|
|
28830
28830
|
}
|
|
28831
28831
|
const sessionGeneration = this.getSessionGeneration(sessionState.sessionId);
|
|
28832
|
-
if (methodRequest.params.action === "pause") {
|
|
28833
|
-
const
|
|
28832
|
+
if (methodRequest.params.action === "pause" || methodRequest.params.action === "resume") {
|
|
28833
|
+
const status = methodRequest.params.action === "pause" ? "paused" : "active";
|
|
28834
|
+
const goal = await this.runWithProcessCheck(() => this.codexAcpClient.setGoalStatus(sessionState.sessionId, status));
|
|
28834
28835
|
if (this.goalPublishIsCurrent(sessionState, sessionGeneration)) {
|
|
28835
28836
|
await this.publishGoalSnapshot(sessionState, toThreadGoalSnapshot(goal), false);
|
|
28836
28837
|
}
|
|
@@ -31533,7 +31534,7 @@ var sessionSteerParamsParser = external_exports.object({
|
|
|
31533
31534
|
}).passthrough();
|
|
31534
31535
|
var goalControlParamsParser = external_exports.object({
|
|
31535
31536
|
sessionId: external_exports.string(),
|
|
31536
|
-
action: external_exports.enum(["pause", "clear"])
|
|
31537
|
+
action: external_exports.enum(["pause", "resume", "clear"])
|
|
31537
31538
|
}).passthrough();
|
|
31538
31539
|
if (process.argv.includes("--version")) {
|
|
31539
31540
|
console.log(`${package_default.name} ${package_default.version}`);
|