happy-imou-cloud 2.1.2 → 2.1.4

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.
Files changed (28) hide show
  1. package/bin/happy-cloud.mjs +39 -39
  2. package/dist/{BaseReasoningProcessor-CzvqwxuY.cjs → BaseReasoningProcessor-DgdsExMH.cjs} +3 -3
  3. package/dist/{BaseReasoningProcessor-BaOWkVcu.mjs → BaseReasoningProcessor-lTsZVuAU.mjs} +3 -3
  4. package/dist/{ProviderSelectionHandler-wwbfeK_s.cjs → ProviderSelectionHandler-Bavm9TDG.cjs} +2 -2
  5. package/dist/{ProviderSelectionHandler-Q8pl7e-d.mjs → ProviderSelectionHandler-CGTnB7ba.mjs} +2 -2
  6. package/dist/{api-DZimmN4C.cjs → api-B6ESNpGB.cjs} +3 -3
  7. package/dist/{api-Cxifhw5r.mjs → api-l8X03rs-.mjs} +3 -3
  8. package/dist/{command-B6LM3Nml.mjs → command-BVCkEMtp.mjs} +3 -3
  9. package/dist/{command-RcCJI1jl.cjs → command-DPLKOzMr.cjs} +3 -3
  10. package/dist/{index-Cuvs0lFS.cjs → index-D1BP-fEm.cjs} +438 -38
  11. package/dist/{index-Des7I5WX.mjs → index-D72RMo5Z.mjs} +435 -35
  12. package/dist/index.cjs +3 -3
  13. package/dist/index.mjs +3 -3
  14. package/dist/lib.cjs +1 -1
  15. package/dist/lib.d.cts +81 -82
  16. package/dist/lib.d.mts +81 -82
  17. package/dist/lib.mjs +1 -1
  18. package/dist/{persistence-6d4U4Sh8.mjs → persistence-CyFjFOlN.mjs} +1 -1
  19. package/dist/{persistence-C8-MtdQK.cjs → persistence-EDmI-c8T.cjs} +1 -1
  20. package/dist/{registerKillSessionHandler-BapPCRmp.cjs → registerKillSessionHandler-71xCO8e_.cjs} +6 -5
  21. package/dist/{registerKillSessionHandler-BFBkz_XT.mjs → registerKillSessionHandler-DAVhkb-l.mjs} +6 -5
  22. package/dist/{runClaude-CPV5Uap2.mjs → runClaude-BRhQLKjh.mjs} +5 -5
  23. package/dist/{runClaude-DVnqKa1q.cjs → runClaude-DjnTGJGC.cjs} +5 -5
  24. package/dist/{runCodex-Bzsp8gFO.cjs → runCodex-BHq7Rnq7.cjs} +6 -6
  25. package/dist/{runCodex-CwtLSTMJ.mjs → runCodex-DUs_jBE-.mjs} +6 -6
  26. package/dist/{runGemini-6Dwyk_Km.cjs → runGemini-hkZeOnA_.cjs} +6 -6
  27. package/dist/{runGemini-Bmoxehlh.mjs → runGemini-pmvBZ6qU.mjs} +6 -6
  28. package/package.json +3 -3
@@ -1,39 +1,39 @@
1
- #!/usr/bin/env node
2
-
3
- import { execFileSync } from 'child_process';
4
- import { fileURLToPath } from 'url';
5
- import { join, dirname } from 'path';
6
- import { ensureAcpSdkCompat } from '../scripts/ensureAcpSdkCompat.mjs';
7
-
8
- // Check if we're already running with the flags
9
- const hasNoWarnings = process.execArgv.includes('--no-warnings');
10
- const hasNoDeprecation = process.execArgv.includes('--no-deprecation');
11
-
12
- if (!hasNoWarnings || !hasNoDeprecation) {
13
- // Get path to the actual CLI entrypoint
14
- const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
15
- const entrypoint = join(projectRoot, 'dist', 'index.mjs');
16
-
17
- ensureAcpSdkCompat();
18
-
19
- // Execute the actual CLI directly with the correct flags
20
- try {
21
- execFileSync(process.execPath, [
22
- '--no-warnings',
23
- '--no-deprecation',
24
- entrypoint,
25
- ...process.argv.slice(2)
26
- ], {
27
- stdio: 'inherit',
28
- env: process.env
29
- });
30
- } catch (error) {
31
- // execFileSync throws if the process exits with non-zero
32
- process.exit(error.status || 1);
33
- }
34
- } else {
35
- // We're running Node with the flags we wanted, import the CLI entrypoint
36
- // module to avoid creating a new process.
37
- ensureAcpSdkCompat();
38
- import("../dist/index.mjs");
39
- }
1
+ #!/usr/bin/env node
2
+
3
+ import { execFileSync } from 'child_process';
4
+ import { fileURLToPath } from 'url';
5
+ import { join, dirname } from 'path';
6
+ import { ensureAcpSdkCompat } from '../scripts/ensureAcpSdkCompat.mjs';
7
+
8
+ // Check if we're already running with the flags
9
+ const hasNoWarnings = process.execArgv.includes('--no-warnings');
10
+ const hasNoDeprecation = process.execArgv.includes('--no-deprecation');
11
+
12
+ if (!hasNoWarnings || !hasNoDeprecation) {
13
+ // Get path to the actual CLI entrypoint
14
+ const projectRoot = dirname(dirname(fileURLToPath(import.meta.url)));
15
+ const entrypoint = join(projectRoot, 'dist', 'index.mjs');
16
+
17
+ ensureAcpSdkCompat();
18
+
19
+ // Execute the actual CLI directly with the correct flags
20
+ try {
21
+ execFileSync(process.execPath, [
22
+ '--no-warnings',
23
+ '--no-deprecation',
24
+ entrypoint,
25
+ ...process.argv.slice(2)
26
+ ], {
27
+ stdio: 'inherit',
28
+ env: process.env
29
+ });
30
+ } catch (error) {
31
+ // execFileSync throws if the process exits with non-zero
32
+ process.exit(error.status || 1);
33
+ }
34
+ } else {
35
+ // We're running Node with the flags we wanted, import the CLI entrypoint
36
+ // module to avoid creating a new process.
37
+ ensureAcpSdkCompat();
38
+ import("../dist/index.mjs");
39
+ }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cuvs0lFS.cjs');
4
- var api = require('./api-DZimmN4C.cjs');
5
- var registerKillSessionHandler = require('./registerKillSessionHandler-BapPCRmp.cjs');
3
+ var index = require('./index-D1BP-fEm.cjs');
4
+ var api = require('./api-B6ESNpGB.cjs');
5
+ var registerKillSessionHandler = require('./registerKillSessionHandler-71xCO8e_.cjs');
6
6
  var node_events = require('node:events');
7
7
  var node_crypto = require('node:crypto');
8
8
 
@@ -1,6 +1,6 @@
1
- import { p as publishSessionRegistration } from './index-Des7I5WX.mjs';
2
- import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-Cxifhw5r.mjs';
3
- import { c as createSessionMetadata } from './registerKillSessionHandler-BFBkz_XT.mjs';
1
+ import { p as publishSessionRegistration } from './index-D72RMo5Z.mjs';
2
+ import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-l8X03rs-.mjs';
3
+ import { c as createSessionMetadata } from './registerKillSessionHandler-DAVhkb-l.mjs';
4
4
  import { EventEmitter } from 'node:events';
5
5
  import { randomUUID } from 'node:crypto';
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var api = require('./api-DZimmN4C.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-BapPCRmp.cjs');
3
+ var api = require('./api-B6ESNpGB.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-71xCO8e_.cjs');
5
5
 
6
6
  async function runModeLoop(opts) {
7
7
  let currentMode = opts.startingMode;
@@ -1,5 +1,5 @@
1
- import { l as logger } from './api-Cxifhw5r.mjs';
2
- import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-BFBkz_XT.mjs';
1
+ import { l as logger } from './api-l8X03rs-.mjs';
2
+ import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-DAVhkb-l.mjs';
3
3
 
4
4
  async function runModeLoop(opts) {
5
5
  let currentMode = opts.startingMode;
@@ -18,7 +18,7 @@ var node_child_process = require('node:child_process');
18
18
  var expoServerSdk = require('expo-server-sdk');
19
19
 
20
20
  var name = "happy-imou-cloud";
21
- var version = "2.1.2";
21
+ var version = "2.1.4";
22
22
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
23
23
  var author = "long.zhu";
24
24
  var license = "MIT";
@@ -103,7 +103,7 @@ var scripts = {
103
103
  "unlink:dev": "node scripts/link-dev.cjs unlink"
104
104
  };
105
105
  var dependencies = {
106
- "@agentclientprotocol/sdk": "0.14.1",
106
+ "@agentclientprotocol/sdk": "0.16.1",
107
107
  "@stablelib/base64": "^2.0.1",
108
108
  "@stablelib/hex": "^2.0.1",
109
109
  "@types/cross-spawn": "^6.0.6",
@@ -433,7 +433,7 @@ async function listDaemonLogFiles(limit = 50) {
433
433
  return { file, path: fullPath, modified: stats.mtime };
434
434
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
435
435
  try {
436
- const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-C8-MtdQK.cjs'); });
436
+ const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-EDmI-c8T.cjs'); });
437
437
  const state = await readDaemonState();
438
438
  if (!state) {
439
439
  return logs;
@@ -16,7 +16,7 @@ import { spawn } from 'node:child_process';
16
16
  import { Expo } from 'expo-server-sdk';
17
17
 
18
18
  var name = "happy-imou-cloud";
19
- var version = "2.1.2";
19
+ var version = "2.1.4";
20
20
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
21
21
  var author = "long.zhu";
22
22
  var license = "MIT";
@@ -101,7 +101,7 @@ var scripts = {
101
101
  "unlink:dev": "node scripts/link-dev.cjs unlink"
102
102
  };
103
103
  var dependencies = {
104
- "@agentclientprotocol/sdk": "0.14.1",
104
+ "@agentclientprotocol/sdk": "0.16.1",
105
105
  "@stablelib/base64": "^2.0.1",
106
106
  "@stablelib/hex": "^2.0.1",
107
107
  "@types/cross-spawn": "^6.0.6",
@@ -431,7 +431,7 @@ async function listDaemonLogFiles(limit = 50) {
431
431
  return { file, path: fullPath, modified: stats.mtime };
432
432
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
433
433
  try {
434
- const { readDaemonState } = await import('./persistence-6d4U4Sh8.mjs');
434
+ const { readDaemonState } = await import('./persistence-CyFjFOlN.mjs');
435
435
  const state = await readDaemonState();
436
436
  if (!state) {
437
437
  return logs;
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-Des7I5WX.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-D72RMo5Z.mjs';
2
2
  import 'chalk';
3
- import './api-Cxifhw5r.mjs';
3
+ import './api-l8X03rs-.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -16,7 +16,7 @@ import 'crypto';
16
16
  import 'path';
17
17
  import 'node:child_process';
18
18
  import 'expo-server-sdk';
19
- import './persistence-6d4U4Sh8.mjs';
19
+ import './persistence-CyFjFOlN.mjs';
20
20
  import 'node:fs/promises';
21
21
  import 'os';
22
22
  import 'tmp';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cuvs0lFS.cjs');
3
+ var index = require('./index-D1BP-fEm.cjs');
4
4
  require('chalk');
5
- require('./api-DZimmN4C.cjs');
5
+ require('./api-B6ESNpGB.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node:fs');
@@ -18,7 +18,7 @@ require('crypto');
18
18
  require('path');
19
19
  require('node:child_process');
20
20
  require('expo-server-sdk');
21
- require('./persistence-C8-MtdQK.cjs');
21
+ require('./persistence-EDmI-c8T.cjs');
22
22
  require('node:fs/promises');
23
23
  require('os');
24
24
  require('tmp');