replicas-cli 0.3.328 → 0.3.330
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.cjs +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16876,7 +16876,7 @@ function codexTurnFromEvent(event) {
|
|
|
16876
16876
|
const { turnId, status, error: error51 } = event.payload;
|
|
16877
16877
|
return typeof turnId === "string" && typeof status === "string" ? { turnId, status, ...typeof error51 === "string" ? { error: error51 } : {} } : null;
|
|
16878
16878
|
}
|
|
16879
|
-
var MERGED_MESSAGE_SEPARATOR, updateChatDisplayNameRequestSchema, createChatRequestSchema, spawnSubagentRequestSchema, messageSubagentRequestSchema, waitSubagentRequestSchema, subagentResponseSchema, integrationErrorNotificationTargetSchema, sendChatMessageRequestSchema, CODEX_ITEM_FIELD_CHECKS, sendChatMessageResponseSchema, respondToolInputRequestSchema;
|
|
16879
|
+
var MERGED_MESSAGE_SEPARATOR, updateChatDisplayNameRequestSchema, createChatRequestSchema, spawnSubagentRequestSchema, messageSubagentRequestSchema, waitSubagentRequestSchema, subagentResponseSchema, integrationErrorNotificationTargetSchema, sendChatMessageRequestSchema, CODEX_ITEM_FIELD_CHECKS, sendChatMessageResponseSchema, interruptChatRequestSchema, respondToolInputRequestSchema;
|
|
16880
16880
|
var init_v1 = __esm({
|
|
16881
16881
|
"../shared/src/engine/v1.ts"() {
|
|
16882
16882
|
"use strict";
|
|
@@ -17011,6 +17011,7 @@ var init_v1 = __esm({
|
|
|
17011
17011
|
chatId: external_exports.string().optional(),
|
|
17012
17012
|
steered: external_exports.boolean().optional()
|
|
17013
17013
|
});
|
|
17014
|
+
interruptChatRequestSchema = external_exports.object({ stoppedAt: external_exports.string().datetime().optional() });
|
|
17014
17015
|
respondToolInputRequestSchema = external_exports.object({
|
|
17015
17016
|
requestId: external_exports.string().min(1),
|
|
17016
17017
|
selectionId: external_exports.string().min(1),
|
|
@@ -21008,7 +21009,7 @@ var init_types6 = __esm({
|
|
|
21008
21009
|
});
|
|
21009
21010
|
|
|
21010
21011
|
// ../shared/src/display-message/constants.ts
|
|
21011
|
-
var USER_MESSAGE_MATCH_GRACE_PERIOD_MS, COMPACTION_CONTENT, GOAL_TOOL_NAME, CLAUDE_SUBAGENT_TOOL_NAMES;
|
|
21012
|
+
var USER_MESSAGE_MATCH_GRACE_PERIOD_MS, COMPACTION_CONTENT, GOAL_TOOL_NAME, CLAUDE_SUBAGENT_TOOL_NAMES, CLAUDE_STOPPED_TOOL_RESULT;
|
|
21012
21013
|
var init_constants = __esm({
|
|
21013
21014
|
"../shared/src/display-message/constants.ts"() {
|
|
21014
21015
|
"use strict";
|
|
@@ -21016,6 +21017,7 @@ var init_constants = __esm({
|
|
|
21016
21017
|
COMPACTION_CONTENT = "Context compacted";
|
|
21017
21018
|
GOAL_TOOL_NAME = "goal";
|
|
21018
21019
|
CLAUDE_SUBAGENT_TOOL_NAMES = /* @__PURE__ */ new Set(["Task", "Agent"]);
|
|
21020
|
+
CLAUDE_STOPPED_TOOL_RESULT = "The user doesn't want to proceed with this tool use. The tool use was rejected (eg. if it was a file edit, the new_string was NOT written to the file). STOP what you are doing";
|
|
21019
21021
|
}
|
|
21020
21022
|
});
|
|
21021
21023
|
|
|
@@ -30726,6 +30728,7 @@ function extractToolResult(event) {
|
|
|
30726
30728
|
const toolResult = normalizeContentBlocks(event.payload.message?.content).find((c) => c.type === "tool_result");
|
|
30727
30729
|
if (!toolResult?.tool_use_id) return void 0;
|
|
30728
30730
|
const output2 = extractToolResultText(toolResult.content);
|
|
30731
|
+
if (toolResult.is_error && (output2.startsWith(CLAUDE_STOPPED_TOOL_RESULT) || output2.startsWith("The user doesn't want to take this action right now"))) return void 0;
|
|
30729
30732
|
const exitCode = output2.match(/exit code:?\s*(\d+)/i)?.[1];
|
|
30730
30733
|
return {
|
|
30731
30734
|
toolResult,
|
|
@@ -32109,7 +32112,7 @@ var CLI_VERSION;
|
|
|
32109
32112
|
var init_cli_version = __esm({
|
|
32110
32113
|
"../shared/src/cli-version.ts"() {
|
|
32111
32114
|
"use strict";
|
|
32112
|
-
CLI_VERSION = "0.3.
|
|
32115
|
+
CLI_VERSION = "0.3.330";
|
|
32113
32116
|
}
|
|
32114
32117
|
});
|
|
32115
32118
|
|