happy-imou-cloud 2.0.8 → 2.0.9

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.
@@ -19,7 +19,7 @@ var path = require('path');
19
19
  var expoServerSdk = require('expo-server-sdk');
20
20
 
21
21
  var name = "happy-imou-cloud";
22
- var version = "2.0.8";
22
+ var version = "2.0.9";
23
23
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
24
24
  var author = "long.zhu";
25
25
  var license = "MIT";
@@ -432,7 +432,7 @@ async function listDaemonLogFiles(limit = 50) {
432
432
  return { file, path: fullPath, modified: stats.mtime };
433
433
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
434
434
  try {
435
- const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-DBGkO8gB.cjs'); });
435
+ const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-CxvL0cwp.cjs'); });
436
436
  const state = await readDaemonState();
437
437
  if (!state) {
438
438
  return logs;
@@ -17,7 +17,7 @@ import { resolve, join as join$1 } from 'path';
17
17
  import { Expo } from 'expo-server-sdk';
18
18
 
19
19
  var name = "happy-imou-cloud";
20
- var version = "2.0.8";
20
+ var version = "2.0.9";
21
21
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
22
22
  var author = "long.zhu";
23
23
  var license = "MIT";
@@ -430,7 +430,7 @@ async function listDaemonLogFiles(limit = 50) {
430
430
  return { file, path: fullPath, modified: stats.mtime };
431
431
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
432
432
  try {
433
- const { readDaemonState } = await import('./persistence-DiNg1DPF.mjs');
433
+ const { readDaemonState } = await import('./persistence-BPV3AmJL.mjs');
434
434
  const state = await readDaemonState();
435
435
  if (!state) {
436
436
  return logs;
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-DhheEtRl.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-BpZL4RcT.mjs';
2
2
  import 'chalk';
3
- import './api-D-uiH_TF.mjs';
3
+ import './api-CnvyGas2.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -17,7 +17,7 @@ import 'fs/promises';
17
17
  import 'crypto';
18
18
  import 'path';
19
19
  import 'expo-server-sdk';
20
- import './persistence-DiNg1DPF.mjs';
20
+ import './persistence-BPV3AmJL.mjs';
21
21
  import 'node:fs/promises';
22
22
  import 'os';
23
23
  import 'tmp';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DM6z3aeG.cjs');
3
+ var index = require('./index-D4OdFq68.cjs');
4
4
  require('chalk');
5
- require('./api-CN-WqYd_.cjs');
5
+ require('./api-CUTdFiFP.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node:fs');
@@ -19,7 +19,7 @@ require('fs/promises');
19
19
  require('crypto');
20
20
  require('path');
21
21
  require('expo-server-sdk');
22
- require('./persistence-DBGkO8gB.cjs');
22
+ require('./persistence-CxvL0cwp.cjs');
23
23
  require('node:fs/promises');
24
24
  require('os');
25
25
  require('tmp');
@@ -1,6 +1,6 @@
1
1
  import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2
- import { l as logger, e as encodeBase64, c as configuration, h as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, j as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, k as encodeBase64Url, f as delay, m as buildClientHeaders, n as decodeBase64, H as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, o as getLatestDaemonLog } from './api-D-uiH_TF.mjs';
3
- import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-DiNg1DPF.mjs';
2
+ import { l as logger, e as encodeBase64, c as configuration, h as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, j as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, k as encodeBase64Url, f as delay, m as buildClientHeaders, n as decodeBase64, H as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, o as getLatestDaemonLog } from './api-CnvyGas2.mjs';
3
+ import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-BPV3AmJL.mjs';
4
4
  import { z } from 'zod';
5
5
  import fs from 'fs/promises';
6
6
  import os, { homedir } from 'os';
@@ -1108,6 +1108,21 @@ function getEnvironmentInfo() {
1108
1108
  terminal: process.env.TERM
1109
1109
  };
1110
1110
  }
1111
+ function resolveDaemonSpawnDiagnostics(projectRoot, fileExists = existsSync) {
1112
+ const wrapperCandidates = [
1113
+ join(projectRoot, "bin", "happy-cloud.mjs"),
1114
+ join(projectRoot, "bin", "happy.mjs")
1115
+ ];
1116
+ const cliEntrypoint = join(projectRoot, "dist", "index.mjs");
1117
+ const wrapperPath = wrapperCandidates.find((candidate) => fileExists(candidate)) ?? wrapperCandidates[0];
1118
+ return {
1119
+ projectRoot,
1120
+ wrapperPath,
1121
+ cliEntrypoint,
1122
+ wrapperExists: fileExists(wrapperPath),
1123
+ cliEntrypointExists: fileExists(cliEntrypoint)
1124
+ };
1125
+ }
1111
1126
  function getLogFiles(logDir) {
1112
1127
  if (!existsSync(logDir)) {
1113
1128
  return [];
@@ -1134,14 +1149,12 @@ async function runDoctorCommand(filter) {
1134
1149
  console.log(`Node.js Version: ${chalk.green(process.version)}`);
1135
1150
  console.log("");
1136
1151
  console.log(chalk.bold("\u{1F527} Daemon Spawn Diagnostics"));
1137
- const projectRoot = projectPath();
1138
- const wrapperPath = join(projectRoot, "bin", "happy.mjs");
1139
- const cliEntrypoint = join(projectRoot, "dist", "index.mjs");
1140
- console.log(`Project Root: ${chalk.blue(projectRoot)}`);
1141
- console.log(`Wrapper Script: ${chalk.blue(wrapperPath)}`);
1142
- console.log(`CLI Entrypoint: ${chalk.blue(cliEntrypoint)}`);
1143
- console.log(`Wrapper Exists: ${existsSync(wrapperPath) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1144
- console.log(`CLI Exists: ${existsSync(cliEntrypoint) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1152
+ const diagnostics = resolveDaemonSpawnDiagnostics(projectPath());
1153
+ console.log(`Project Root: ${chalk.blue(diagnostics.projectRoot)}`);
1154
+ console.log(`Wrapper Script: ${chalk.blue(diagnostics.wrapperPath)}`);
1155
+ console.log(`CLI Entrypoint: ${chalk.blue(diagnostics.cliEntrypoint)}`);
1156
+ console.log(`Wrapper Exists: ${diagnostics.wrapperExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1157
+ console.log(`CLI Exists: ${diagnostics.cliEntrypointExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1145
1158
  console.log("");
1146
1159
  console.log(chalk.bold("\u2699\uFE0F Configuration"));
1147
1160
  console.log(`Happy Home: ${chalk.blue(configuration.happyCloudHomeDir)}`);
@@ -6908,12 +6921,12 @@ async function ensureUnifiedDaemonStarted() {
6908
6921
  async function executeUnifiedProvider(opts) {
6909
6922
  const credentials = await ensureUnifiedRuntimePrerequisites(opts.credentials);
6910
6923
  if (opts.provider === "claude") {
6911
- const { runClaude } = await import('./runClaude-DAR_hw3C.mjs');
6924
+ const { runClaude } = await import('./runClaude-8inO7C5p.mjs');
6912
6925
  await runClaude(credentials, opts.claudeOptions ?? {});
6913
6926
  return;
6914
6927
  }
6915
6928
  if (opts.provider === "codex") {
6916
- const { runCodex } = await import('./runCodex-B4QAb-Go.mjs');
6929
+ const { runCodex } = await import('./runCodex-BQ-fN5E6.mjs');
6917
6930
  await runCodex({
6918
6931
  credentials,
6919
6932
  startedBy: opts.startedBy,
@@ -6923,7 +6936,7 @@ async function executeUnifiedProvider(opts) {
6923
6936
  return;
6924
6937
  }
6925
6938
  if (opts.provider === "gemini") {
6926
- const { runGemini } = await import('./runGemini-DqowSR2w.mjs');
6939
+ const { runGemini } = await import('./runGemini-BE0FizuV.mjs');
6927
6940
  await runGemini({
6928
6941
  credentials,
6929
6942
  startedBy: opts.startedBy
@@ -6965,7 +6978,7 @@ function shouldRunMainClaudeFlow(opts) {
6965
6978
  return;
6966
6979
  } else if (subcommand === "runtime") {
6967
6980
  if (args[1] === "providers") {
6968
- const { renderRuntimeProviders } = await import('./command-DGFsZx58.mjs');
6981
+ const { renderRuntimeProviders } = await import('./command-BGA3qCKR.mjs');
6969
6982
  console.log(renderRuntimeProviders());
6970
6983
  return;
6971
6984
  }
@@ -7143,8 +7156,8 @@ function shouldRunMainClaudeFlow(opts) {
7143
7156
  const projectId = args[3];
7144
7157
  try {
7145
7158
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
7146
- const { readCredentials: readCredentials2 } = await import('./persistence-DiNg1DPF.mjs');
7147
- const { ApiClient: ApiClient2 } = await import('./api-D-uiH_TF.mjs').then(function (n) { return n.q; });
7159
+ const { readCredentials: readCredentials2 } = await import('./persistence-BPV3AmJL.mjs');
7160
+ const { ApiClient: ApiClient2 } = await import('./api-CnvyGas2.mjs').then(function (n) { return n.q; });
7148
7161
  let userEmail = void 0;
7149
7162
  try {
7150
7163
  const credentials = await readCredentials2();
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var api = require('./api-CN-WqYd_.cjs');
5
- var persistence = require('./persistence-DBGkO8gB.cjs');
4
+ var api = require('./api-CUTdFiFP.cjs');
5
+ var persistence = require('./persistence-CxvL0cwp.cjs');
6
6
  var z = require('zod');
7
7
  var fs$1 = require('fs/promises');
8
8
  var os$1 = require('os');
@@ -70,7 +70,7 @@ async function openBrowser(url) {
70
70
  }
71
71
  }
72
72
 
73
- const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DM6z3aeG.cjs', document.baseURI).href)));
73
+ const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D4OdFq68.cjs', document.baseURI).href)));
74
74
  const QRCode = require$1("qrcode-terminal/vendor/QRCode");
75
75
  const QRErrorCorrectLevel = require$1("qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel");
76
76
  const pendingTempFiles = /* @__PURE__ */ new Set();
@@ -693,7 +693,7 @@ function setupCleanupHandlers() {
693
693
  });
694
694
  }
695
695
 
696
- const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DM6z3aeG.cjs', document.baseURI).href))));
696
+ const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D4OdFq68.cjs', document.baseURI).href))));
697
697
  function projectPath() {
698
698
  const path$1 = path.resolve(__dirname$1, "..");
699
699
  return path$1;
@@ -1130,6 +1130,21 @@ function getEnvironmentInfo() {
1130
1130
  terminal: process.env.TERM
1131
1131
  };
1132
1132
  }
1133
+ function resolveDaemonSpawnDiagnostics(projectRoot, fileExists = node_fs.existsSync) {
1134
+ const wrapperCandidates = [
1135
+ node_path.join(projectRoot, "bin", "happy-cloud.mjs"),
1136
+ node_path.join(projectRoot, "bin", "happy.mjs")
1137
+ ];
1138
+ const cliEntrypoint = node_path.join(projectRoot, "dist", "index.mjs");
1139
+ const wrapperPath = wrapperCandidates.find((candidate) => fileExists(candidate)) ?? wrapperCandidates[0];
1140
+ return {
1141
+ projectRoot,
1142
+ wrapperPath,
1143
+ cliEntrypoint,
1144
+ wrapperExists: fileExists(wrapperPath),
1145
+ cliEntrypointExists: fileExists(cliEntrypoint)
1146
+ };
1147
+ }
1133
1148
  function getLogFiles(logDir) {
1134
1149
  if (!node_fs.existsSync(logDir)) {
1135
1150
  return [];
@@ -1156,14 +1171,12 @@ async function runDoctorCommand(filter) {
1156
1171
  console.log(`Node.js Version: ${chalk.green(process.version)}`);
1157
1172
  console.log("");
1158
1173
  console.log(chalk.bold("\u{1F527} Daemon Spawn Diagnostics"));
1159
- const projectRoot = projectPath();
1160
- const wrapperPath = node_path.join(projectRoot, "bin", "happy.mjs");
1161
- const cliEntrypoint = node_path.join(projectRoot, "dist", "index.mjs");
1162
- console.log(`Project Root: ${chalk.blue(projectRoot)}`);
1163
- console.log(`Wrapper Script: ${chalk.blue(wrapperPath)}`);
1164
- console.log(`CLI Entrypoint: ${chalk.blue(cliEntrypoint)}`);
1165
- console.log(`Wrapper Exists: ${node_fs.existsSync(wrapperPath) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1166
- console.log(`CLI Exists: ${node_fs.existsSync(cliEntrypoint) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1174
+ const diagnostics = resolveDaemonSpawnDiagnostics(projectPath());
1175
+ console.log(`Project Root: ${chalk.blue(diagnostics.projectRoot)}`);
1176
+ console.log(`Wrapper Script: ${chalk.blue(diagnostics.wrapperPath)}`);
1177
+ console.log(`CLI Entrypoint: ${chalk.blue(diagnostics.cliEntrypoint)}`);
1178
+ console.log(`Wrapper Exists: ${diagnostics.wrapperExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1179
+ console.log(`CLI Exists: ${diagnostics.cliEntrypointExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
1167
1180
  console.log("");
1168
1181
  console.log(chalk.bold("\u2699\uFE0F Configuration"));
1169
1182
  console.log(`Happy Home: ${chalk.blue(api.configuration.happyCloudHomeDir)}`);
@@ -6930,12 +6943,12 @@ async function ensureUnifiedDaemonStarted() {
6930
6943
  async function executeUnifiedProvider(opts) {
6931
6944
  const credentials = await ensureUnifiedRuntimePrerequisites(opts.credentials);
6932
6945
  if (opts.provider === "claude") {
6933
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-CPhWaFrX.cjs'); });
6946
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-KwIVwFp1.cjs'); });
6934
6947
  await runClaude(credentials, opts.claudeOptions ?? {});
6935
6948
  return;
6936
6949
  }
6937
6950
  if (opts.provider === "codex") {
6938
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex--QLrOs8X.cjs'); });
6951
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Ba8COxZe.cjs'); });
6939
6952
  await runCodex({
6940
6953
  credentials,
6941
6954
  startedBy: opts.startedBy,
@@ -6945,7 +6958,7 @@ async function executeUnifiedProvider(opts) {
6945
6958
  return;
6946
6959
  }
6947
6960
  if (opts.provider === "gemini") {
6948
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-CDyhCucw.cjs'); });
6961
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-DtdLLX9o.cjs'); });
6949
6962
  await runGemini({
6950
6963
  credentials,
6951
6964
  startedBy: opts.startedBy
@@ -6987,7 +7000,7 @@ function shouldRunMainClaudeFlow(opts) {
6987
7000
  return;
6988
7001
  } else if (subcommand === "runtime") {
6989
7002
  if (args[1] === "providers") {
6990
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-DjIfRZQS.cjs'); });
7003
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-DLAJZsKX.cjs'); });
6991
7004
  console.log(renderRuntimeProviders());
6992
7005
  return;
6993
7006
  }
@@ -7165,8 +7178,8 @@ function shouldRunMainClaudeFlow(opts) {
7165
7178
  const projectId = args[3];
7166
7179
  try {
7167
7180
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
7168
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-DBGkO8gB.cjs'); });
7169
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CN-WqYd_.cjs'); }).then(function (n) { return n.api; });
7181
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-CxvL0cwp.cjs'); });
7182
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CUTdFiFP.cjs'); }).then(function (n) { return n.api; });
7170
7183
  let userEmail = void 0;
7171
7184
  try {
7172
7185
  const credentials = await readCredentials2();
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./api-CN-WqYd_.cjs');
5
- require('./persistence-DBGkO8gB.cjs');
4
+ require('./api-CUTdFiFP.cjs');
5
+ require('./persistence-CxvL0cwp.cjs');
6
6
  require('zod');
7
- require('./index-DM6z3aeG.cjs');
7
+ require('./index-D4OdFq68.cjs');
8
8
  require('node:child_process');
9
9
  require('node:fs');
10
10
  require('cross-spawn');
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'chalk';
2
- import './api-D-uiH_TF.mjs';
3
- import './persistence-DiNg1DPF.mjs';
2
+ import './api-CnvyGas2.mjs';
3
+ import './persistence-BPV3AmJL.mjs';
4
4
  import 'zod';
5
- import './index-DhheEtRl.mjs';
5
+ import './index-BpZL4RcT.mjs';
6
6
  import 'node:child_process';
7
7
  import 'node:fs';
8
8
  import 'cross-spawn';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var api = require('./api-CN-WqYd_.cjs');
3
+ var api = require('./api-CUTdFiFP.cjs');
4
4
  var types = require('./types-DVk3crez.cjs');
5
5
  require('axios');
6
6
  require('chalk');
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-D-uiH_TF.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-CnvyGas2.mjs';
2
2
  export { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
3
3
  import 'axios';
4
4
  import 'chalk';
@@ -1,7 +1,7 @@
1
1
  import os from 'node:os';
2
2
  import { resolve } from 'node:path';
3
- import { c as configuration, p as packageJson, s as startOfflineReconnection, l as logger } from './api-D-uiH_TF.mjs';
4
- import { p as projectPath } from './index-DhheEtRl.mjs';
3
+ import { c as configuration, p as packageJson, s as startOfflineReconnection, l as logger } from './api-CnvyGas2.mjs';
4
+ import { p as projectPath } from './index-BpZL4RcT.mjs';
5
5
  import { EventEmitter } from 'node:events';
6
6
  import { randomUUID } from 'node:crypto';
7
7
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  var os = require('node:os');
4
4
  var node_path = require('node:path');
5
- var api = require('./api-CN-WqYd_.cjs');
6
- var index = require('./index-DM6z3aeG.cjs');
5
+ var api = require('./api-CUTdFiFP.cjs');
6
+ var index = require('./index-D4OdFq68.cjs');
7
7
  var node_events = require('node:events');
8
8
  var node_crypto = require('node:crypto');
9
9
 
@@ -1,7 +1,7 @@
1
1
  import { unlink, readFile, mkdir, open, stat, writeFile, rename } from 'node:fs/promises';
2
2
  import { existsSync, unlinkSync, readdirSync, constants, writeFileSync, readFileSync } from 'node:fs';
3
3
  import { join, dirname } from 'node:path';
4
- import { c as configuration, l as logger, e as encodeBase64 } from './api-D-uiH_TF.mjs';
4
+ import { c as configuration, l as logger, e as encodeBase64 } from './api-CnvyGas2.mjs';
5
5
  import * as z from 'zod';
6
6
  import 'axios';
7
7
  import 'chalk';
@@ -3,7 +3,7 @@
3
3
  var promises = require('node:fs/promises');
4
4
  var node_fs = require('node:fs');
5
5
  var node_path = require('node:path');
6
- var api = require('./api-CN-WqYd_.cjs');
6
+ var api = require('./api-CUTdFiFP.cjs');
7
7
  var z = require('zod');
8
8
  require('axios');
9
9
  require('chalk');
@@ -1,5 +1,5 @@
1
- import { f as formatDisplayMessage } from './index-DhheEtRl.mjs';
2
- import { l as logger } from './api-D-uiH_TF.mjs';
1
+ import { f as formatDisplayMessage } from './index-BpZL4RcT.mjs';
2
+ import { l as logger } from './api-CnvyGas2.mjs';
3
3
  import { createHash } from 'crypto';
4
4
  import 'axios';
5
5
  import 'node:events';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DM6z3aeG.cjs');
4
- var api = require('./api-CN-WqYd_.cjs');
3
+ var index = require('./index-D4OdFq68.cjs');
4
+ var api = require('./api-CUTdFiFP.cjs');
5
5
  var crypto = require('crypto');
6
6
  require('axios');
7
7
  require('node:events');
@@ -1,13 +1,13 @@
1
1
  import os, { homedir } from 'node:os';
2
2
  import { randomUUID } from 'node:crypto';
3
- import { l as logger, d as backoff, f as delay, g as AsyncLock, c as configuration, b as connectionState, A as ApiClient, p as packageJson, i as isAuthenticationRequiredError, s as startOfflineReconnection } from './api-D-uiH_TF.mjs';
4
- import { e as getProjectPath, h as claudeLocal, E as ExitCodeError, j as isBun, k as trimIdent, l as claudeCheckSession, p as projectPath, m as getEnvironmentInfo, i as initialMachineMetadata, b as stopCaffeinate, n as notifyDaemonSessionStarted, o as startCaffeinate } from './index-DhheEtRl.mjs';
3
+ import { l as logger, d as backoff, f as delay, g as AsyncLock, c as configuration, b as connectionState, A as ApiClient, p as packageJson, i as isAuthenticationRequiredError, s as startOfflineReconnection } from './api-CnvyGas2.mjs';
4
+ import { e as getProjectPath, h as claudeLocal, E as ExitCodeError, j as isBun, k as trimIdent, l as claudeCheckSession, p as projectPath, m as getEnvironmentInfo, i as initialMachineMetadata, b as stopCaffeinate, n as notifyDaemonSessionStarted, o as startCaffeinate } from './index-BpZL4RcT.mjs';
5
5
  import { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
6
6
  import { dirname, basename, join, resolve } from 'node:path';
7
7
  import { readFile } from 'node:fs/promises';
8
8
  import { stat, watch, access } from 'fs/promises';
9
9
  import { useStdout, useInput, Box, Text, render } from 'ink';
10
- import { a as MessageBuffer, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler } from './registerKillSessionHandler-Cu9rHGsI.mjs';
10
+ import { a as MessageBuffer, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler } from './registerKillSessionHandler-C2O8b5wH.mjs';
11
11
  import React, { useState, useRef, useEffect, useCallback } from 'react';
12
12
  import { execSync, spawn } from 'node:child_process';
13
13
  import { createInterface } from 'node:readline';
@@ -20,7 +20,7 @@ import 'tweetnacl';
20
20
  import 'expo-server-sdk';
21
21
  import 'chalk';
22
22
  import { isDeepStrictEqual } from 'node:util';
23
- import { readSettings } from './persistence-DiNg1DPF.mjs';
23
+ import { readSettings } from './persistence-BPV3AmJL.mjs';
24
24
  import { createServer } from 'node:http';
25
25
  import 'fs';
26
26
  import 'zod';
@@ -2,14 +2,14 @@
2
2
 
3
3
  var os = require('node:os');
4
4
  var node_crypto = require('node:crypto');
5
- var api = require('./api-CN-WqYd_.cjs');
6
- var index = require('./index-DM6z3aeG.cjs');
5
+ var api = require('./api-CUTdFiFP.cjs');
6
+ var index = require('./index-D4OdFq68.cjs');
7
7
  var types = require('./types-DVk3crez.cjs');
8
8
  var node_path = require('node:path');
9
9
  var promises = require('node:fs/promises');
10
10
  var fs = require('fs/promises');
11
11
  var ink = require('ink');
12
- var registerKillSessionHandler = require('./registerKillSessionHandler-CYc0SIjF.cjs');
12
+ var registerKillSessionHandler = require('./registerKillSessionHandler-rqd7duc9.cjs');
13
13
  var React = require('react');
14
14
  var node_child_process = require('node:child_process');
15
15
  var node_readline = require('node:readline');
@@ -22,7 +22,7 @@ require('tweetnacl');
22
22
  require('expo-server-sdk');
23
23
  require('chalk');
24
24
  var node_util = require('node:util');
25
- var persistence = require('./persistence-DBGkO8gB.cjs');
25
+ var persistence = require('./persistence-CxvL0cwp.cjs');
26
26
  var node_http = require('node:http');
27
27
  require('fs');
28
28
  require('zod');
@@ -937,7 +937,7 @@ class AbortError extends Error {
937
937
  }
938
938
  }
939
939
 
940
- const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('runClaude-CPhWaFrX.cjs', document.baseURI).href)));
940
+ const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('runClaude-KwIVwFp1.cjs', document.baseURI).href)));
941
941
  const __dirname$1 = node_path.join(__filename$1, "..");
942
942
  function getGlobalClaudeVersion() {
943
943
  try {
@@ -1,9 +1,9 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { l as logger, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-D-uiH_TF.mjs';
3
- import { readSettings } from './persistence-DiNg1DPF.mjs';
4
- import { f as formatDisplayMessage, v as validateCodexAcpSpawn, d as createCodexBackend, t as truncateDisplayMessage, b as stopCaffeinate, i as initialMachineMetadata, n as notifyDaemonSessionStarted } from './index-DhheEtRl.mjs';
5
- import { B as BasePermissionHandler, g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, d as INTERACTION_TIMED_OUT_ERROR, a as BaseReasoningProcessor, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError, c as createSessionMetadata, s as setupOfflineReconnection } from './names-BjEof0E2.mjs';
6
- import { h as hashObject, a as MessageBuffer, r as registerKillSessionHandler, M as MessageQueue2 } from './registerKillSessionHandler-Cu9rHGsI.mjs';
2
+ import { l as logger, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-CnvyGas2.mjs';
3
+ import { readSettings } from './persistence-BPV3AmJL.mjs';
4
+ import { f as formatDisplayMessage, v as validateCodexAcpSpawn, d as createCodexBackend, t as truncateDisplayMessage, b as stopCaffeinate, i as initialMachineMetadata, n as notifyDaemonSessionStarted } from './index-BpZL4RcT.mjs';
5
+ import { B as BasePermissionHandler, g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, d as INTERACTION_TIMED_OUT_ERROR, a as BaseReasoningProcessor, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError, c as createSessionMetadata, s as setupOfflineReconnection } from './names-C9iJODqA.mjs';
6
+ import { h as hashObject, a as MessageBuffer, r as registerKillSessionHandler, M as MessageQueue2 } from './registerKillSessionHandler-C2O8b5wH.mjs';
7
7
  import React, { useState, useRef, useEffect, useCallback } from 'react';
8
8
  import { useStdout, useInput, Box, Text, render } from 'ink';
9
9
  import 'axios';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var api = require('./api-CN-WqYd_.cjs');
5
- var persistence = require('./persistence-DBGkO8gB.cjs');
6
- var index = require('./index-DM6z3aeG.cjs');
7
- var names = require('./names-BnV67N_O.cjs');
8
- var registerKillSessionHandler = require('./registerKillSessionHandler-CYc0SIjF.cjs');
4
+ var api = require('./api-CUTdFiFP.cjs');
5
+ var persistence = require('./persistence-CxvL0cwp.cjs');
6
+ var index = require('./index-D4OdFq68.cjs');
7
+ var names = require('./names-YEhZwVT0.cjs');
8
+ var registerKillSessionHandler = require('./registerKillSessionHandler-rqd7duc9.cjs');
9
9
  var React = require('react');
10
10
  var ink = require('ink');
11
11
  require('axios');
@@ -1,11 +1,11 @@
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, i as isAuthenticationRequiredError } from './api-D-uiH_TF.mjs';
5
- import { readSettings } from './persistence-DiNg1DPF.mjs';
6
- import { B as BasePermissionHandler, a as BaseReasoningProcessor, c as createSessionMetadata, s as setupOfflineReconnection, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError } from './names-BjEof0E2.mjs';
7
- import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, s as saveGeminiModelToConfig, a as createGeminiBackend, b as stopCaffeinate } from './index-DhheEtRl.mjs';
8
- import { M as MessageQueue2, h as hashObject, a as MessageBuffer, r as registerKillSessionHandler } from './registerKillSessionHandler-Cu9rHGsI.mjs';
4
+ import { l as logger, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-CnvyGas2.mjs';
5
+ import { readSettings } from './persistence-BPV3AmJL.mjs';
6
+ import { B as BasePermissionHandler, a as BaseReasoningProcessor, c as createSessionMetadata, s as setupOfflineReconnection, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError } from './names-C9iJODqA.mjs';
7
+ import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, s as saveGeminiModelToConfig, a as createGeminiBackend, b as stopCaffeinate } from './index-BpZL4RcT.mjs';
8
+ import { M as MessageQueue2, h as hashObject, a as MessageBuffer, r as registerKillSessionHandler } from './registerKillSessionHandler-C2O8b5wH.mjs';
9
9
  import 'axios';
10
10
  import 'chalk';
11
11
  import 'fs';
@@ -3,11 +3,11 @@
3
3
  var ink = require('ink');
4
4
  var React = require('react');
5
5
  var node_crypto = require('node:crypto');
6
- var api = require('./api-CN-WqYd_.cjs');
7
- var persistence = require('./persistence-DBGkO8gB.cjs');
8
- var names = require('./names-BnV67N_O.cjs');
9
- var index = require('./index-DM6z3aeG.cjs');
10
- var registerKillSessionHandler = require('./registerKillSessionHandler-CYc0SIjF.cjs');
6
+ var api = require('./api-CUTdFiFP.cjs');
7
+ var persistence = require('./persistence-CxvL0cwp.cjs');
8
+ var names = require('./names-YEhZwVT0.cjs');
9
+ var index = require('./index-D4OdFq68.cjs');
10
+ var registerKillSessionHandler = require('./registerKillSessionHandler-rqd7duc9.cjs');
11
11
  require('axios');
12
12
  require('chalk');
13
13
  require('fs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-imou-cloud",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI",
5
5
  "author": "long.zhu",
6
6
  "license": "MIT",