happy-imou-cloud 2.1.26 → 2.1.27
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/{BaseReasoningProcessor-KMtgV6ap.mjs → BaseReasoningProcessor-C5fKjdpv.mjs} +2 -2
- package/dist/{BaseReasoningProcessor-0e-Wwv5i.cjs → BaseReasoningProcessor-Cc9g89Zo.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-CG8ktb5b.mjs → ProviderSelectionHandler-CqMvpE6K.mjs} +2 -2
- package/dist/{ProviderSelectionHandler-CzRyfT1v.cjs → ProviderSelectionHandler-DANtoYaW.cjs} +2 -2
- package/dist/{api-hgzFUi7o.cjs → api-BVXbJ3M_.cjs} +46 -11
- package/dist/{api-DugHuNd4.mjs → api-CuWWLsDI.mjs} +47 -12
- package/dist/{command-DU0KWNsf.mjs → command-C7KnQtPU.mjs} +2 -2
- package/dist/{command-Dh8sawXu.cjs → command-CKw7FVJ3.cjs} +2 -2
- package/dist/{index-ythl_OD6.cjs → index-BBD69Ds-.cjs} +75 -26
- package/dist/{index-hj-qbq8Y.mjs → index-DPNRq_mT.mjs} +72 -23
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/{registerKillSessionHandler-BNzbdofF.mjs → registerKillSessionHandler-BVIaG4zk.mjs} +59 -7
- package/dist/{registerKillSessionHandler-Q_rOuCNA.cjs → registerKillSessionHandler-CeO8n78A.cjs} +59 -6
- package/dist/{runClaude-BUi2fgRI.cjs → runClaude-DU69fser.cjs} +7 -6
- package/dist/{runClaude-Y84RT6V0.mjs → runClaude-DWSBt6tE.mjs} +7 -6
- package/dist/{runCodex-D2xIzHke.mjs → runCodex-C3VoO79w.mjs} +15 -10
- package/dist/{runCodex-vO3-iZ8E.cjs → runCodex-DFH1tiGD.cjs} +15 -10
- package/dist/{runGemini-CAotw19V.mjs → runGemini-CCbOfI6U.mjs} +12 -7
- package/dist/{runGemini-DIKiIVdN.cjs → runGemini-QTOE7LXy.cjs} +12 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as preserveSessionRuntimeMetadata, l as logger, b as connectionState, A as ApiClient } from './api-
|
|
2
|
-
import { B as BasePermissionHandler, h as hashObject, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurnWithBusinessAck, c as registerKillSessionHandler, l as launchRuntimeHandleWithFactoryResult, j as
|
|
3
|
-
import { f as formatDisplayMessage, v as validateCodexAcpSpawn, h as createCodexBackend, t as truncateDisplayMessage, b as closeProviderSession, e as stopCaffeinate, i as readManagedSessionTag, j as resolveManagedSessionTag } from './index-
|
|
1
|
+
import { p as preserveSessionRuntimeMetadata, l as logger, b as connectionState, A as ApiClient } from './api-CuWWLsDI.mjs';
|
|
2
|
+
import { B as BasePermissionHandler, h as hashObject, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurnWithBusinessAck, c as registerKillSessionHandler, l as launchRuntimeHandleWithFactoryResult, j as renderOutputPreview, k as inferToolResultError, m as forwardAgentMessageToProviderSession, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, r as resolveHappyOrgQueuedTurn, s as syncControlledByUserState } from './registerKillSessionHandler-BVIaG4zk.mjs';
|
|
3
|
+
import { f as formatDisplayMessage, v as validateCodexAcpSpawn, h as createCodexBackend, t as truncateDisplayMessage, b as closeProviderSession, e as stopCaffeinate, i as readManagedSessionTag, j as resolveManagedSessionTag } from './index-DPNRq_mT.mjs';
|
|
4
4
|
import 'cross-spawn';
|
|
5
5
|
import '@agentclientprotocol/sdk';
|
|
6
6
|
import { randomUUID } from 'node:crypto';
|
|
@@ -24,8 +24,8 @@ import 'tweetnacl';
|
|
|
24
24
|
import 'open';
|
|
25
25
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
26
26
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
27
|
-
import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-
|
|
28
|
-
import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-
|
|
27
|
+
import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-CqMvpE6K.mjs';
|
|
28
|
+
import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-C5fKjdpv.mjs';
|
|
29
29
|
import 'zod';
|
|
30
30
|
import 'socket.io-client';
|
|
31
31
|
import 'expo-server-sdk';
|
|
@@ -544,6 +544,12 @@ function normalizeCodexBackendError(error) {
|
|
|
544
544
|
}
|
|
545
545
|
return text || "Codex backend exited unexpectedly";
|
|
546
546
|
}
|
|
547
|
+
function emitCodexTurnAborted(session) {
|
|
548
|
+
session.runtimeSession.sendCodexMessage({
|
|
549
|
+
type: "turn_aborted",
|
|
550
|
+
id: randomUUID()
|
|
551
|
+
});
|
|
552
|
+
}
|
|
547
553
|
function hasRenderableToolPayload(value) {
|
|
548
554
|
if (value === void 0 || value === null) {
|
|
549
555
|
return false;
|
|
@@ -836,7 +842,7 @@ async function codexRemoteLauncher(session) {
|
|
|
836
842
|
return;
|
|
837
843
|
}
|
|
838
844
|
case "terminal-output": {
|
|
839
|
-
const terminalOutput =
|
|
845
|
+
const terminalOutput = renderOutputPreview(msg.data, "terminal output");
|
|
840
846
|
messageBuffer.addMessage(terminalOutput, "result");
|
|
841
847
|
forwardAgentMessage({
|
|
842
848
|
...msg,
|
|
@@ -1069,12 +1075,11 @@ async function codexRemoteLauncher(session) {
|
|
|
1069
1075
|
const isExpectedInterruption = isAbortError || turnSignal.aborted || shouldExit;
|
|
1070
1076
|
if (isExpectedInterruption) {
|
|
1071
1077
|
turnStatus = "turn_aborted";
|
|
1072
|
-
session
|
|
1073
|
-
type: "turn_aborted",
|
|
1074
|
-
id: randomUUID()
|
|
1075
|
-
});
|
|
1078
|
+
emitCodexTurnAborted(session);
|
|
1076
1079
|
emitStatusMessage("Aborted by user");
|
|
1077
1080
|
} else {
|
|
1081
|
+
turnStatus = "turn_aborted";
|
|
1082
|
+
emitCodexTurnAborted(session);
|
|
1078
1083
|
const errorMessage = normalizeCodexBackendError(error);
|
|
1079
1084
|
emitUserVisibleErrorMessage(errorMessage);
|
|
1080
1085
|
if (conversationHistory.hasHistory()) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var persistence = require('./api-
|
|
4
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
5
|
-
var index = require('./index-
|
|
3
|
+
var persistence = require('./api-BVXbJ3M_.cjs');
|
|
4
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-CeO8n78A.cjs');
|
|
5
|
+
var index = require('./index-BBD69Ds-.cjs');
|
|
6
6
|
require('cross-spawn');
|
|
7
7
|
require('@agentclientprotocol/sdk');
|
|
8
8
|
var node_crypto = require('node:crypto');
|
|
@@ -26,8 +26,8 @@ require('tweetnacl');
|
|
|
26
26
|
require('open');
|
|
27
27
|
var React = require('react');
|
|
28
28
|
var ink = require('ink');
|
|
29
|
-
var ProviderSelectionHandler = require('./ProviderSelectionHandler-
|
|
30
|
-
var BaseReasoningProcessor = require('./BaseReasoningProcessor-
|
|
29
|
+
var ProviderSelectionHandler = require('./ProviderSelectionHandler-DANtoYaW.cjs');
|
|
30
|
+
var BaseReasoningProcessor = require('./BaseReasoningProcessor-Cc9g89Zo.cjs');
|
|
31
31
|
require('zod');
|
|
32
32
|
require('socket.io-client');
|
|
33
33
|
require('expo-server-sdk');
|
|
@@ -546,6 +546,12 @@ function normalizeCodexBackendError(error) {
|
|
|
546
546
|
}
|
|
547
547
|
return text || "Codex backend exited unexpectedly";
|
|
548
548
|
}
|
|
549
|
+
function emitCodexTurnAborted(session) {
|
|
550
|
+
session.runtimeSession.sendCodexMessage({
|
|
551
|
+
type: "turn_aborted",
|
|
552
|
+
id: node_crypto.randomUUID()
|
|
553
|
+
});
|
|
554
|
+
}
|
|
549
555
|
function hasRenderableToolPayload(value) {
|
|
550
556
|
if (value === void 0 || value === null) {
|
|
551
557
|
return false;
|
|
@@ -838,7 +844,7 @@ async function codexRemoteLauncher(session) {
|
|
|
838
844
|
return;
|
|
839
845
|
}
|
|
840
846
|
case "terminal-output": {
|
|
841
|
-
const terminalOutput =
|
|
847
|
+
const terminalOutput = registerKillSessionHandler.renderOutputPreview(msg.data, "terminal output");
|
|
842
848
|
messageBuffer.addMessage(terminalOutput, "result");
|
|
843
849
|
forwardAgentMessage({
|
|
844
850
|
...msg,
|
|
@@ -1071,12 +1077,11 @@ async function codexRemoteLauncher(session) {
|
|
|
1071
1077
|
const isExpectedInterruption = isAbortError || turnSignal.aborted || shouldExit;
|
|
1072
1078
|
if (isExpectedInterruption) {
|
|
1073
1079
|
turnStatus = "turn_aborted";
|
|
1074
|
-
session
|
|
1075
|
-
type: "turn_aborted",
|
|
1076
|
-
id: node_crypto.randomUUID()
|
|
1077
|
-
});
|
|
1080
|
+
emitCodexTurnAborted(session);
|
|
1078
1081
|
emitStatusMessage("Aborted by user");
|
|
1079
1082
|
} else {
|
|
1083
|
+
turnStatus = "turn_aborted";
|
|
1084
|
+
emitCodexTurnAborted(session);
|
|
1080
1085
|
const errorMessage = normalizeCodexBackendError(error);
|
|
1081
1086
|
emitUserVisibleErrorMessage(errorMessage);
|
|
1082
1087
|
if (conversationHistory.hasHistory()) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import { l as logger, b as connectionState, A as ApiClient } from './api-
|
|
5
|
-
import { B as BasePermissionHandler, C as ConversationHistory$1, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, s as syncControlledByUserState, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler, d as MessageBuffer, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurnWithBusinessAck, l as launchRuntimeHandleWithFactoryResult, j as
|
|
6
|
-
import { g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, b as closeProviderSession, s as saveGeminiModelToConfig, d as createGeminiBackend, e as stopCaffeinate } from './index-
|
|
7
|
-
import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-
|
|
4
|
+
import { l as logger, b as connectionState, A as ApiClient } from './api-CuWWLsDI.mjs';
|
|
5
|
+
import { B as BasePermissionHandler, C as ConversationHistory$1, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, s as syncControlledByUserState, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler, d as MessageBuffer, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurnWithBusinessAck, l as launchRuntimeHandleWithFactoryResult, j as renderOutputPreview, k as inferToolResultError, m as forwardAgentMessageToProviderSession } from './registerKillSessionHandler-BVIaG4zk.mjs';
|
|
6
|
+
import { g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, b as closeProviderSession, s as saveGeminiModelToConfig, d as createGeminiBackend, e as stopCaffeinate } from './index-DPNRq_mT.mjs';
|
|
7
|
+
import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-C5fKjdpv.mjs';
|
|
8
8
|
import 'cross-spawn';
|
|
9
9
|
import '@agentclientprotocol/sdk';
|
|
10
10
|
import 'ps-list';
|
|
@@ -1008,10 +1008,15 @@ Guide: https://goo.gle/gemini-cli-auth-docs#workspace-gca`;
|
|
|
1008
1008
|
diffProcessor.processFsEdit(msg.path || "", msg.description, msg.diff);
|
|
1009
1009
|
forwardAgentMessage(msg);
|
|
1010
1010
|
break;
|
|
1011
|
-
case "terminal-output":
|
|
1012
|
-
|
|
1013
|
-
|
|
1011
|
+
case "terminal-output": {
|
|
1012
|
+
const terminalOutput = renderOutputPreview(msg.data, "terminal output");
|
|
1013
|
+
messageBuffer.addMessage(terminalOutput, "result");
|
|
1014
|
+
forwardAgentMessage({
|
|
1015
|
+
...msg,
|
|
1016
|
+
data: terminalOutput
|
|
1017
|
+
});
|
|
1014
1018
|
break;
|
|
1019
|
+
}
|
|
1015
1020
|
case "permission-request":
|
|
1016
1021
|
forwardAgentMessage(msg);
|
|
1017
1022
|
break;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var ink = require('ink');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var persistence = require('./api-
|
|
7
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var BaseReasoningProcessor = require('./BaseReasoningProcessor-
|
|
6
|
+
var persistence = require('./api-BVXbJ3M_.cjs');
|
|
7
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-CeO8n78A.cjs');
|
|
8
|
+
var index = require('./index-BBD69Ds-.cjs');
|
|
9
|
+
var BaseReasoningProcessor = require('./BaseReasoningProcessor-Cc9g89Zo.cjs');
|
|
10
10
|
require('cross-spawn');
|
|
11
11
|
require('@agentclientprotocol/sdk');
|
|
12
12
|
require('ps-list');
|
|
@@ -1010,10 +1010,15 @@ Guide: https://goo.gle/gemini-cli-auth-docs#workspace-gca`;
|
|
|
1010
1010
|
diffProcessor.processFsEdit(msg.path || "", msg.description, msg.diff);
|
|
1011
1011
|
forwardAgentMessage(msg);
|
|
1012
1012
|
break;
|
|
1013
|
-
case "terminal-output":
|
|
1014
|
-
|
|
1015
|
-
|
|
1013
|
+
case "terminal-output": {
|
|
1014
|
+
const terminalOutput = registerKillSessionHandler.renderOutputPreview(msg.data, "terminal output");
|
|
1015
|
+
messageBuffer.addMessage(terminalOutput, "result");
|
|
1016
|
+
forwardAgentMessage({
|
|
1017
|
+
...msg,
|
|
1018
|
+
data: terminalOutput
|
|
1019
|
+
});
|
|
1016
1020
|
break;
|
|
1021
|
+
}
|
|
1017
1022
|
case "permission-request":
|
|
1018
1023
|
forwardAgentMessage(msg);
|
|
1019
1024
|
break;
|