happy-imou-cloud 2.1.33 → 2.1.34

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 (25) hide show
  1. package/dist/{BaseReasoningProcessor-Dn4yfLtp.mjs → BaseReasoningProcessor-CxLnyixP.mjs} +2 -2
  2. package/dist/{BaseReasoningProcessor-Cf7ZloaL.cjs → BaseReasoningProcessor-kN8gq-t4.cjs} +2 -2
  3. package/dist/{ProviderSelectionHandler-BuA83F9G.mjs → ProviderSelectionHandler-DuJGNviz.mjs} +2 -2
  4. package/dist/{ProviderSelectionHandler-DPLBjVEC.cjs → ProviderSelectionHandler-oEEvSQ0O.cjs} +2 -2
  5. package/dist/{api-D7CVG9j4.mjs → api-B3Zl8oHG.mjs} +1 -1
  6. package/dist/{api-DdWb_F8T.cjs → api-C94O6IB2.cjs} +1 -1
  7. package/dist/{command-CMsN76Yr.cjs → command-96cX402J.cjs} +2 -2
  8. package/dist/{command-CDJ4E4Dk.mjs → command-CMZlS6zf.mjs} +2 -2
  9. package/dist/{index-DDSbNPcY.cjs → index-D4TuE2VS.cjs} +17 -11
  10. package/dist/{index-hvV-0nuB.mjs → index-sqm5plVs.mjs} +14 -8
  11. package/dist/index.cjs +2 -2
  12. package/dist/index.mjs +2 -2
  13. package/dist/lib.cjs +1 -1
  14. package/dist/lib.d.cts +28 -0
  15. package/dist/lib.d.mts +28 -0
  16. package/dist/lib.mjs +1 -1
  17. package/dist/{registerKillSessionHandler-mjF_nLkn.cjs → registerKillSessionHandler-7bLVg5RG.cjs} +2 -2
  18. package/dist/{registerKillSessionHandler-lYTMUILm.mjs → registerKillSessionHandler-Dmm6gsoz.mjs} +2 -2
  19. package/dist/{runClaude-8hpqBN48.mjs → runClaude-BrvxWJ9-.mjs} +4 -4
  20. package/dist/{runClaude-D_KWeKjf.cjs → runClaude-Dn1JJ8m9.cjs} +4 -4
  21. package/dist/{runCodex-DnlU4uJq.cjs → runCodex-Dc2Rqb8W.cjs} +5 -5
  22. package/dist/{runCodex-Cl-S6dkS.mjs → runCodex-DfYO-7YG.mjs} +5 -5
  23. package/dist/{runGemini-K3pPjvi4.mjs → runGemini-C1_AOBlU.mjs} +4 -4
  24. package/dist/{runGemini-91fhiYl9.cjs → runGemini-DQyuAba-.cjs} +4 -4
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as createSessionMetadata, p as publishSessionRegistration } from './index-hvV-0nuB.mjs';
2
- import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-D7CVG9j4.mjs';
1
+ import { a as createSessionMetadata, p as publishSessionRegistration } from './index-sqm5plVs.mjs';
2
+ import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-B3Zl8oHG.mjs';
3
3
  import { EventEmitter } from 'node:events';
4
4
  import { randomUUID } from 'node:crypto';
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DDSbNPcY.cjs');
4
- var persistence = require('./api-DdWb_F8T.cjs');
3
+ var index = require('./index-D4TuE2VS.cjs');
4
+ var persistence = require('./api-C94O6IB2.cjs');
5
5
  var node_events = require('node:events');
6
6
  var node_crypto = require('node:crypto');
7
7
 
@@ -1,5 +1,5 @@
1
- import { l as logger } from './api-D7CVG9j4.mjs';
2
- import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-lYTMUILm.mjs';
1
+ import { l as logger } from './api-B3Zl8oHG.mjs';
2
+ import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-Dmm6gsoz.mjs';
3
3
 
4
4
  async function runModeLoop(opts) {
5
5
  let currentMode = opts.startingMode;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./api-DdWb_F8T.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-mjF_nLkn.cjs');
3
+ var persistence = require('./api-C94O6IB2.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-7bLVg5RG.cjs');
5
5
 
6
6
  async function runModeLoop(opts) {
7
7
  let currentMode = opts.startingMode;
@@ -18,7 +18,7 @@ import { spawn } from 'node:child_process';
18
18
  import { Expo } from 'expo-server-sdk';
19
19
 
20
20
  var name = "happy-imou-cloud";
21
- var version = "2.1.33";
21
+ var version = "2.1.34";
22
22
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
23
23
  var author = "long.zhu";
24
24
  var license = "MIT";
@@ -38,7 +38,7 @@ function _interopNamespaceDefault(e) {
38
38
  var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
39
39
 
40
40
  var name = "happy-imou-cloud";
41
- var version = "2.1.33";
41
+ var version = "2.1.34";
42
42
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
43
43
  var author = "long.zhu";
44
44
  var license = "MIT";
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DDSbNPcY.cjs');
3
+ var index = require('./index-D4TuE2VS.cjs');
4
4
  require('chalk');
5
- require('./api-DdWb_F8T.cjs');
5
+ require('./api-C94O6IB2.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node:fs');
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-hvV-0nuB.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-sqm5plVs.mjs';
2
2
  import 'chalk';
3
- import './api-D7CVG9j4.mjs';
3
+ import './api-B3Zl8oHG.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var persistence = require('./api-DdWb_F8T.cjs');
4
+ var persistence = require('./api-C94O6IB2.cjs');
5
5
  var z = require('zod');
6
6
  var fs$2 = require('fs/promises');
7
7
  var os$1 = require('os');
@@ -72,7 +72,7 @@ async function openBrowser(url) {
72
72
  }
73
73
  }
74
74
 
75
- 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-DDSbNPcY.cjs', document.baseURI).href)));
75
+ 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-D4TuE2VS.cjs', document.baseURI).href)));
76
76
  const QRCode = require$1("qrcode-terminal/vendor/QRCode");
77
77
  const QRErrorCorrectLevel = require$1("qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel");
78
78
  const pendingTempFiles = /* @__PURE__ */ new Set();
@@ -637,7 +637,7 @@ function setupCleanupHandlers() {
637
637
  });
638
638
  }
639
639
 
640
- const __dirname$2 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DDSbNPcY.cjs', document.baseURI).href))));
640
+ const __dirname$2 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D4TuE2VS.cjs', document.baseURI).href))));
641
641
  function projectPath() {
642
642
  const path = path$1.resolve(__dirname$2, "..");
643
643
  return path;
@@ -5243,6 +5243,12 @@ function formatDispatchReceipt(receipt) {
5243
5243
  `scope=${receipt.notice.scope}`,
5244
5244
  `member_agent_id=${receipt.notice.member_agent_id ?? receipt.business_ack?.member_agent_id ?? receipt.member?.agentId ?? receipt.business_ack?.memberAgentId ?? ""}`,
5245
5245
  `session_id=${receipt.notice.session_id ?? receipt.business_ack?.session_id ?? receipt.member?.sessionId ?? ""}`,
5246
+ `runtime_session_id=${receipt.notice.runtime_session_id ?? ""}`,
5247
+ `delivery_session_id=${receipt.notice.delivery_session_id}`,
5248
+ `reply_session_id=${receipt.notice.reply_session_id}`,
5249
+ `machine_id=${receipt.notice.machine_id ?? ""}`,
5250
+ `machine_locality=${receipt.notice.machine_locality}`,
5251
+ `machine_reachability=${receipt.notice.machine_reachability}`,
5246
5252
  `route_type=${receipt.business_ack?.route_type ?? receipt.notice.route_type}`,
5247
5253
  `ack_type=${receipt.business_ack?.ack_type ?? receipt.notice.ack_type}`,
5248
5254
  `reply_mode=${receipt.business_ack?.reply_mode ?? receipt.notice.reply_mode}`,
@@ -5255,7 +5261,7 @@ function formatDispatchReceipt(receipt) {
5255
5261
  `rejection_reason=${receipt.validation.rejection_reason ?? ""}`,
5256
5262
  `position_truth_agent_id=${receipt.validation.position_truth_agent_id ?? ""}`,
5257
5263
  `responsibility_truth_member_agent_id=${receipt.validation.responsibility_truth_member_agent_id ?? ""}`,
5258
- `runtime_session_id=${receipt.validation.runtime_session_id ?? ""}`
5264
+ `validation_runtime_session_id=${receipt.validation.runtime_session_id ?? ""}`
5259
5265
  ];
5260
5266
  return lines.join("\n");
5261
5267
  }
@@ -10347,7 +10353,7 @@ class AbortError extends Error {
10347
10353
  }
10348
10354
  }
10349
10355
 
10350
- const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DDSbNPcY.cjs', document.baseURI).href)));
10356
+ const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D4TuE2VS.cjs', document.baseURI).href)));
10351
10357
  const __dirname$1 = path.join(__filename$1, "..");
10352
10358
  function getGlobalClaudeVersion() {
10353
10359
  try {
@@ -11670,14 +11676,14 @@ var launch = /*#__PURE__*/Object.freeze({
11670
11676
  const unifiedProviderExecutors = {
11671
11677
  claude: async (opts) => {
11672
11678
  const claudeOptions = opts.claudeOptions ?? {};
11673
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-D_KWeKjf.cjs'); });
11679
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-Dn1JJ8m9.cjs'); });
11674
11680
  await runClaude(opts.credentials, {
11675
11681
  ...claudeOptions,
11676
11682
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
11677
11683
  });
11678
11684
  },
11679
11685
  codex: async (opts) => {
11680
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-DnlU4uJq.cjs'); });
11686
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Dc2Rqb8W.cjs'); });
11681
11687
  await runCodex({
11682
11688
  credentials: opts.credentials,
11683
11689
  startedBy: opts.startedBy,
@@ -11686,7 +11692,7 @@ const unifiedProviderExecutors = {
11686
11692
  });
11687
11693
  },
11688
11694
  gemini: async (opts) => {
11689
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-91fhiYl9.cjs'); });
11695
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-DQyuAba-.cjs'); });
11690
11696
  await runGemini({
11691
11697
  credentials: opts.credentials,
11692
11698
  startedBy: opts.startedBy
@@ -11769,7 +11775,7 @@ function shouldRunMainClaudeFlow(opts) {
11769
11775
  return;
11770
11776
  } else if (subcommand === "runtime") {
11771
11777
  if (args[1] === "providers") {
11772
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-CMsN76Yr.cjs'); });
11778
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-96cX402J.cjs'); });
11773
11779
  console.log(renderRuntimeProviders());
11774
11780
  return;
11775
11781
  }
@@ -11975,8 +11981,8 @@ function shouldRunMainClaudeFlow(opts) {
11975
11981
  const projectId = args[3];
11976
11982
  try {
11977
11983
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
11978
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./api-DdWb_F8T.cjs'); }).then(function (n) { return n.persistence; });
11979
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-DdWb_F8T.cjs'); }).then(function (n) { return n.api; });
11984
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./api-C94O6IB2.cjs'); }).then(function (n) { return n.persistence; });
11985
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-C94O6IB2.cjs'); }).then(function (n) { return n.api; });
11980
11986
  let userEmail = void 0;
11981
11987
  try {
11982
11988
  const credentials = await readCredentials2();
@@ -1,5 +1,5 @@
1
1
  import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2
- import { l as logger, m as encodeBase64, c as configuration, n as readCredentials, o as ensureSigningCredentials, r as readSettings, u as updateSettings, q as encodeBase64Url, j as delay, t as buildClientHeaders, v as decodeBase64, w as writeCredentialsLegacy, x as writeCredentialsDataKey, y as readDaemonState, z as HAPPY_CLOUD_DAEMON_PORT, B as clearDaemonState, C as packageJson, i as isAuthenticationRequiredError, D as acquireDaemonLock, E as writeDaemonState, A as ApiClient, F as releaseDaemonLock, G as validateProfileForAgent, I as getProfileEnvironmentVariables, J as clearCredentials, K as clearMachineId, L as readHappyOrgDispatchTruthSnapshot, M as processHappyOrgRepoRequests, N as HappyOrgTurnReportSchema, O as recordHappyOrgTurnReport, P as MessageContentSchema, Q as buildSocketAuth, R as encrypt, H as HeadTailPreviewBuffer, S as getLatestDaemonLog } from './api-D7CVG9j4.mjs';
2
+ import { l as logger, m as encodeBase64, c as configuration, n as readCredentials, o as ensureSigningCredentials, r as readSettings, u as updateSettings, q as encodeBase64Url, j as delay, t as buildClientHeaders, v as decodeBase64, w as writeCredentialsLegacy, x as writeCredentialsDataKey, y as readDaemonState, z as HAPPY_CLOUD_DAEMON_PORT, B as clearDaemonState, C as packageJson, i as isAuthenticationRequiredError, D as acquireDaemonLock, E as writeDaemonState, A as ApiClient, F as releaseDaemonLock, G as validateProfileForAgent, I as getProfileEnvironmentVariables, J as clearCredentials, K as clearMachineId, L as readHappyOrgDispatchTruthSnapshot, M as processHappyOrgRepoRequests, N as HappyOrgTurnReportSchema, O as recordHappyOrgTurnReport, P as MessageContentSchema, Q as buildSocketAuth, R as encrypt, H as HeadTailPreviewBuffer, S as getLatestDaemonLog } from './api-B3Zl8oHG.mjs';
3
3
  import { z } from 'zod';
4
4
  import fs, { writeFile as writeFile$1, rename, unlink as unlink$1 } from 'fs/promises';
5
5
  import os$1, { homedir } from 'os';
@@ -5221,6 +5221,12 @@ function formatDispatchReceipt(receipt) {
5221
5221
  `scope=${receipt.notice.scope}`,
5222
5222
  `member_agent_id=${receipt.notice.member_agent_id ?? receipt.business_ack?.member_agent_id ?? receipt.member?.agentId ?? receipt.business_ack?.memberAgentId ?? ""}`,
5223
5223
  `session_id=${receipt.notice.session_id ?? receipt.business_ack?.session_id ?? receipt.member?.sessionId ?? ""}`,
5224
+ `runtime_session_id=${receipt.notice.runtime_session_id ?? ""}`,
5225
+ `delivery_session_id=${receipt.notice.delivery_session_id}`,
5226
+ `reply_session_id=${receipt.notice.reply_session_id}`,
5227
+ `machine_id=${receipt.notice.machine_id ?? ""}`,
5228
+ `machine_locality=${receipt.notice.machine_locality}`,
5229
+ `machine_reachability=${receipt.notice.machine_reachability}`,
5224
5230
  `route_type=${receipt.business_ack?.route_type ?? receipt.notice.route_type}`,
5225
5231
  `ack_type=${receipt.business_ack?.ack_type ?? receipt.notice.ack_type}`,
5226
5232
  `reply_mode=${receipt.business_ack?.reply_mode ?? receipt.notice.reply_mode}`,
@@ -5233,7 +5239,7 @@ function formatDispatchReceipt(receipt) {
5233
5239
  `rejection_reason=${receipt.validation.rejection_reason ?? ""}`,
5234
5240
  `position_truth_agent_id=${receipt.validation.position_truth_agent_id ?? ""}`,
5235
5241
  `responsibility_truth_member_agent_id=${receipt.validation.responsibility_truth_member_agent_id ?? ""}`,
5236
- `runtime_session_id=${receipt.validation.runtime_session_id ?? ""}`
5242
+ `validation_runtime_session_id=${receipt.validation.runtime_session_id ?? ""}`
5237
5243
  ];
5238
5244
  return lines.join("\n");
5239
5245
  }
@@ -11648,14 +11654,14 @@ var launch = /*#__PURE__*/Object.freeze({
11648
11654
  const unifiedProviderExecutors = {
11649
11655
  claude: async (opts) => {
11650
11656
  const claudeOptions = opts.claudeOptions ?? {};
11651
- const { runClaude } = await import('./runClaude-8hpqBN48.mjs');
11657
+ const { runClaude } = await import('./runClaude-BrvxWJ9-.mjs');
11652
11658
  await runClaude(opts.credentials, {
11653
11659
  ...claudeOptions,
11654
11660
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
11655
11661
  });
11656
11662
  },
11657
11663
  codex: async (opts) => {
11658
- const { runCodex } = await import('./runCodex-Cl-S6dkS.mjs');
11664
+ const { runCodex } = await import('./runCodex-DfYO-7YG.mjs');
11659
11665
  await runCodex({
11660
11666
  credentials: opts.credentials,
11661
11667
  startedBy: opts.startedBy,
@@ -11664,7 +11670,7 @@ const unifiedProviderExecutors = {
11664
11670
  });
11665
11671
  },
11666
11672
  gemini: async (opts) => {
11667
- const { runGemini } = await import('./runGemini-K3pPjvi4.mjs');
11673
+ const { runGemini } = await import('./runGemini-C1_AOBlU.mjs');
11668
11674
  await runGemini({
11669
11675
  credentials: opts.credentials,
11670
11676
  startedBy: opts.startedBy
@@ -11747,7 +11753,7 @@ function shouldRunMainClaudeFlow(opts) {
11747
11753
  return;
11748
11754
  } else if (subcommand === "runtime") {
11749
11755
  if (args[1] === "providers") {
11750
- const { renderRuntimeProviders } = await import('./command-CDJ4E4Dk.mjs');
11756
+ const { renderRuntimeProviders } = await import('./command-CMZlS6zf.mjs');
11751
11757
  console.log(renderRuntimeProviders());
11752
11758
  return;
11753
11759
  }
@@ -11953,8 +11959,8 @@ function shouldRunMainClaudeFlow(opts) {
11953
11959
  const projectId = args[3];
11954
11960
  try {
11955
11961
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
11956
- const { readCredentials: readCredentials2 } = await import('./api-D7CVG9j4.mjs').then(function (n) { return n.T; });
11957
- const { ApiClient: ApiClient2 } = await import('./api-D7CVG9j4.mjs').then(function (n) { return n.U; });
11962
+ const { readCredentials: readCredentials2 } = await import('./api-B3Zl8oHG.mjs').then(function (n) { return n.T; });
11963
+ const { ApiClient: ApiClient2 } = await import('./api-B3Zl8oHG.mjs').then(function (n) { return n.U; });
11958
11964
  let userEmail = void 0;
11959
11965
  try {
11960
11966
  const credentials = await readCredentials2();
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./api-DdWb_F8T.cjs');
4
+ require('./api-C94O6IB2.cjs');
5
5
  require('zod');
6
- require('./index-DDSbNPcY.cjs');
6
+ require('./index-D4TuE2VS.cjs');
7
7
  require('node:child_process');
8
8
  require('node:fs');
9
9
  require('cross-spawn');
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import 'chalk';
2
- import './api-D7CVG9j4.mjs';
2
+ import './api-B3Zl8oHG.mjs';
3
3
  import 'zod';
4
- import './index-hvV-0nuB.mjs';
4
+ import './index-sqm5plVs.mjs';
5
5
  import 'node:child_process';
6
6
  import 'node:fs';
7
7
  import 'cross-spawn';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./api-DdWb_F8T.cjs');
3
+ var persistence = require('./api-C94O6IB2.cjs');
4
4
  var types = require('./types-DVk3crez.cjs');
5
5
  require('axios');
6
6
  require('chalk');
package/dist/lib.d.cts CHANGED
@@ -3158,6 +3158,9 @@ type HappyOrgDispatchValidationView = {
3158
3158
  validation_result: HappyOrgDispatchValidationResult;
3159
3159
  rejection_reason: string | null;
3160
3160
  };
3161
+ type HappyOrgDispatchRuntimeState = 'active' | 'stale' | 'offline';
3162
+ type HappyOrgDispatchMachineLocality = 'local' | 'remote';
3163
+ type HappyOrgDispatchMachineReachability = 'ready' | 'degraded' | 'offline';
3161
3164
  type HappyOrgDispatchDeliveryStatus = 'accepted' | 'deduplicated';
3162
3165
  type HappyOrgDispatchBusinessAckStatus = 'accepted' | 'standby' | 'blocked';
3163
3166
  type HappyOrgDispatchCurrentStatus = 'pending_ack' | HappyOrgDispatchBusinessAckStatus;
@@ -3175,6 +3178,20 @@ type HappyOrgDispatchReceiptView = {
3175
3178
  scope: string;
3176
3179
  member_agent_id: string;
3177
3180
  session_id: string;
3181
+ runtime_session_id: string | null;
3182
+ runtime_session_state: HappyOrgDispatchRuntimeState;
3183
+ runtime_last_seen_at: number | null;
3184
+ runtime_capabilities: string[];
3185
+ delivery_session_id: string;
3186
+ delivery_target_frozen_at: number;
3187
+ delivery_target_source: 'task-contract-freeze';
3188
+ reply_session_id: string;
3189
+ reply_target_frozen_at: number;
3190
+ reply_target_source: 'task-contract-freeze';
3191
+ machine_id: string | null;
3192
+ machine_locality: HappyOrgDispatchMachineLocality;
3193
+ machine_reachability: HappyOrgDispatchMachineReachability;
3194
+ machine_last_seen_at: number | null;
3178
3195
  allowed_paths: string[];
3179
3196
  forbidden_paths: string[];
3180
3197
  cross_scope_policy: 'ask-first';
@@ -3204,6 +3221,17 @@ type HappyOrgDispatchReceiptView = {
3204
3221
  scope: string;
3205
3222
  member_agent_id: string;
3206
3223
  session_id: string;
3224
+ runtime_session_id: string | null;
3225
+ delivery_session_id: string;
3226
+ delivery_target_frozen_at: number;
3227
+ delivery_target_source: 'task-contract-freeze';
3228
+ reply_session_id: string;
3229
+ reply_target_frozen_at: number;
3230
+ reply_target_source: 'task-contract-freeze';
3231
+ machine_id: string | null;
3232
+ machine_locality: HappyOrgDispatchMachineLocality;
3233
+ machine_reachability: HappyOrgDispatchMachineReachability;
3234
+ machine_last_seen_at: number | null;
3207
3235
  position_id: string | null;
3208
3236
  responsibility_id: string | null;
3209
3237
  route_type: 'ack_plus_reply';
package/dist/lib.d.mts CHANGED
@@ -3158,6 +3158,9 @@ type HappyOrgDispatchValidationView = {
3158
3158
  validation_result: HappyOrgDispatchValidationResult;
3159
3159
  rejection_reason: string | null;
3160
3160
  };
3161
+ type HappyOrgDispatchRuntimeState = 'active' | 'stale' | 'offline';
3162
+ type HappyOrgDispatchMachineLocality = 'local' | 'remote';
3163
+ type HappyOrgDispatchMachineReachability = 'ready' | 'degraded' | 'offline';
3161
3164
  type HappyOrgDispatchDeliveryStatus = 'accepted' | 'deduplicated';
3162
3165
  type HappyOrgDispatchBusinessAckStatus = 'accepted' | 'standby' | 'blocked';
3163
3166
  type HappyOrgDispatchCurrentStatus = 'pending_ack' | HappyOrgDispatchBusinessAckStatus;
@@ -3175,6 +3178,20 @@ type HappyOrgDispatchReceiptView = {
3175
3178
  scope: string;
3176
3179
  member_agent_id: string;
3177
3180
  session_id: string;
3181
+ runtime_session_id: string | null;
3182
+ runtime_session_state: HappyOrgDispatchRuntimeState;
3183
+ runtime_last_seen_at: number | null;
3184
+ runtime_capabilities: string[];
3185
+ delivery_session_id: string;
3186
+ delivery_target_frozen_at: number;
3187
+ delivery_target_source: 'task-contract-freeze';
3188
+ reply_session_id: string;
3189
+ reply_target_frozen_at: number;
3190
+ reply_target_source: 'task-contract-freeze';
3191
+ machine_id: string | null;
3192
+ machine_locality: HappyOrgDispatchMachineLocality;
3193
+ machine_reachability: HappyOrgDispatchMachineReachability;
3194
+ machine_last_seen_at: number | null;
3178
3195
  allowed_paths: string[];
3179
3196
  forbidden_paths: string[];
3180
3197
  cross_scope_policy: 'ask-first';
@@ -3204,6 +3221,17 @@ type HappyOrgDispatchReceiptView = {
3204
3221
  scope: string;
3205
3222
  member_agent_id: string;
3206
3223
  session_id: string;
3224
+ runtime_session_id: string | null;
3225
+ delivery_session_id: string;
3226
+ delivery_target_frozen_at: number;
3227
+ delivery_target_source: 'task-contract-freeze';
3228
+ reply_session_id: string;
3229
+ reply_target_frozen_at: number;
3230
+ reply_target_source: 'task-contract-freeze';
3231
+ machine_id: string | null;
3232
+ machine_locality: HappyOrgDispatchMachineLocality;
3233
+ machine_reachability: HappyOrgDispatchMachineReachability;
3234
+ machine_last_seen_at: number | null;
3207
3235
  position_id: string | null;
3208
3236
  responsibility_id: string | null;
3209
3237
  route_type: 'ack_plus_reply';
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-D7CVG9j4.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-B3Zl8oHG.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
  'use strict';
2
2
 
3
- var index = require('./index-DDSbNPcY.cjs');
4
- var persistence = require('./api-DdWb_F8T.cjs');
3
+ var index = require('./index-D4TuE2VS.cjs');
4
+ var persistence = require('./api-C94O6IB2.cjs');
5
5
  var node_crypto = require('node:crypto');
6
6
  var path = require('node:path');
7
7
  var crypto = require('crypto');
@@ -1,5 +1,5 @@
1
- import { k as initialMachineMetadata, R as RuntimeShell, f as formatDisplayMessage, l as resolveCanonicalToolNameV2 } from './index-hvV-0nuB.mjs';
2
- import { r as readSettings, H as HeadTailPreviewBuffer, d as HAPPY_ORG_REPLY_ACK_VERSION, e as HAPPY_ORG_TURN_REPORT_TAG, f as HAPPY_ORG_SUMMARY_MAX_LENGTH, g as HAPPY_ORG_REPEAT_THRESHOLD, l as logger } from './api-D7CVG9j4.mjs';
1
+ import { k as initialMachineMetadata, R as RuntimeShell, f as formatDisplayMessage, l as resolveCanonicalToolNameV2 } from './index-sqm5plVs.mjs';
2
+ import { r as readSettings, H as HeadTailPreviewBuffer, d as HAPPY_ORG_REPLY_ACK_VERSION, e as HAPPY_ORG_TURN_REPORT_TAG, f as HAPPY_ORG_SUMMARY_MAX_LENGTH, g as HAPPY_ORG_REPEAT_THRESHOLD, l as logger } from './api-B3Zl8oHG.mjs';
3
3
  import { randomUUID } from 'node:crypto';
4
4
  import { basename } from 'node:path';
5
5
  import { createHash } from 'crypto';
@@ -1,8 +1,8 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { l as logger, h as backoff, j as delay, k as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-D7CVG9j4.mjs';
2
+ import { l as logger, h as backoff, j as delay, k as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-B3Zl8oHG.mjs';
3
3
  import 'cross-spawn';
4
4
  import '@agentclientprotocol/sdk';
5
- import { m as getProjectPath, F as Future, n as claudeLocal, E as ExitCodeError, o as trimIdent, q as createClaudeBackend, f as formatDisplayMessage, t as truncateDisplayMessage, u as claudeCheckSession, w as projectPath, x as mapToClaudeMode, P as PushableAsyncIterable, y as query, A as AbortError, e as stopCaffeinate, p as publishSessionRegistration, z as getEnvironmentInfo, a as createSessionMetadata, B as startCaffeinate, b as closeProviderSession } from './index-hvV-0nuB.mjs';
5
+ import { m as getProjectPath, F as Future, n as claudeLocal, E as ExitCodeError, o as trimIdent, q as createClaudeBackend, f as formatDisplayMessage, t as truncateDisplayMessage, u as claudeCheckSession, w as projectPath, x as mapToClaudeMode, P as PushableAsyncIterable, y as query, A as AbortError, e as stopCaffeinate, p as publishSessionRegistration, z as getEnvironmentInfo, a as createSessionMetadata, B as startCaffeinate, b as closeProviderSession } from './index-sqm5plVs.mjs';
6
6
  import 'ps-list';
7
7
  import 'fs';
8
8
  import 'path';
@@ -23,9 +23,9 @@ import 'tweetnacl';
23
23
  import 'open';
24
24
  import React, { useState, useRef, useEffect, useCallback } from 'react';
25
25
  import { useStdout, useInput, Box, Text, render } from 'ink';
26
- import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-BuA83F9G.mjs';
26
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-DuJGNviz.mjs';
27
27
  import { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
28
- import { B as BasePermissionHandler, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurnWithBusinessAck, l as launchRuntimeHandleWithFactoryResult, j as renderOutputPreview, m as forwardAgentMessageToProviderSession, s as syncControlledByUserState, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler } from './registerKillSessionHandler-lYTMUILm.mjs';
28
+ import { B as BasePermissionHandler, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurnWithBusinessAck, l as launchRuntimeHandleWithFactoryResult, j as renderOutputPreview, m as forwardAgentMessageToProviderSession, s as syncControlledByUserState, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler } from './registerKillSessionHandler-Dmm6gsoz.mjs';
29
29
  import 'socket.io-client';
30
30
  import 'expo-server-sdk';
31
31
  import { isDeepStrictEqual } from 'node:util';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var persistence = require('./api-DdWb_F8T.cjs');
4
+ var persistence = require('./api-C94O6IB2.cjs');
5
5
  require('cross-spawn');
6
6
  require('@agentclientprotocol/sdk');
7
- var index = require('./index-DDSbNPcY.cjs');
7
+ var index = require('./index-D4TuE2VS.cjs');
8
8
  require('ps-list');
9
9
  require('fs');
10
10
  require('path');
@@ -25,9 +25,9 @@ require('tweetnacl');
25
25
  require('open');
26
26
  var React = require('react');
27
27
  var ink = require('ink');
28
- var ProviderSelectionHandler = require('./ProviderSelectionHandler-DPLBjVEC.cjs');
28
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-oEEvSQ0O.cjs');
29
29
  var types = require('./types-DVk3crez.cjs');
30
- var registerKillSessionHandler = require('./registerKillSessionHandler-mjF_nLkn.cjs');
30
+ var registerKillSessionHandler = require('./registerKillSessionHandler-7bLVg5RG.cjs');
31
31
  require('socket.io-client');
32
32
  require('expo-server-sdk');
33
33
  var node_util = require('node:util');
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./api-DdWb_F8T.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-mjF_nLkn.cjs');
5
- var index = require('./index-DDSbNPcY.cjs');
3
+ var persistence = require('./api-C94O6IB2.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-7bLVg5RG.cjs');
5
+ var index = require('./index-D4TuE2VS.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-DPLBjVEC.cjs');
30
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-Cf7ZloaL.cjs');
29
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-oEEvSQ0O.cjs');
30
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-kN8gq-t4.cjs');
31
31
  require('zod');
32
32
  require('socket.io-client');
33
33
  require('expo-server-sdk');
@@ -1,6 +1,6 @@
1
- import { p as preserveSessionRuntimeMetadata, l as logger, b as connectionState, A as ApiClient } from './api-D7CVG9j4.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-lYTMUILm.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-hvV-0nuB.mjs';
1
+ import { p as preserveSessionRuntimeMetadata, l as logger, b as connectionState, A as ApiClient } from './api-B3Zl8oHG.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-Dmm6gsoz.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-sqm5plVs.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-BuA83F9G.mjs';
28
- import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-Dn4yfLtp.mjs';
27
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-DuJGNviz.mjs';
28
+ import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-CxLnyixP.mjs';
29
29
  import 'zod';
30
30
  import 'socket.io-client';
31
31
  import 'expo-server-sdk';
@@ -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-D7CVG9j4.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-lYTMUILm.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-hvV-0nuB.mjs';
7
- import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-Dn4yfLtp.mjs';
4
+ import { l as logger, b as connectionState, A as ApiClient } from './api-B3Zl8oHG.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-Dmm6gsoz.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-sqm5plVs.mjs';
7
+ import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-CxLnyixP.mjs';
8
8
  import 'cross-spawn';
9
9
  import '@agentclientprotocol/sdk';
10
10
  import 'ps-list';
@@ -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-DdWb_F8T.cjs');
7
- var registerKillSessionHandler = require('./registerKillSessionHandler-mjF_nLkn.cjs');
8
- var index = require('./index-DDSbNPcY.cjs');
9
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-Cf7ZloaL.cjs');
6
+ var persistence = require('./api-C94O6IB2.cjs');
7
+ var registerKillSessionHandler = require('./registerKillSessionHandler-7bLVg5RG.cjs');
8
+ var index = require('./index-D4TuE2VS.cjs');
9
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-kN8gq-t4.cjs');
10
10
  require('cross-spawn');
11
11
  require('@agentclientprotocol/sdk');
12
12
  require('ps-list');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-imou-cloud",
3
- "version": "2.1.33",
3
+ "version": "2.1.34",
4
4
  "description": "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI",
5
5
  "author": "long.zhu",
6
6
  "license": "MIT",