happy-imou-cloud 2.1.30 → 2.1.31

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-C1iacoJW.mjs → BaseReasoningProcessor-CaFHRe9H.mjs} +2 -2
  2. package/dist/{BaseReasoningProcessor-Ch9R4qmn.cjs → BaseReasoningProcessor-JFdT7HPG.cjs} +2 -2
  3. package/dist/{ProviderSelectionHandler-2siFKlgs.mjs → ProviderSelectionHandler-Cjfd17Lp.mjs} +2 -2
  4. package/dist/{ProviderSelectionHandler-Dx6x0Nd4.cjs → ProviderSelectionHandler-ql1Ikkru.cjs} +2 -2
  5. package/dist/{api-C68U-kRs.mjs → api-Baxp1gAn.mjs} +21 -3
  6. package/dist/{api-DK1gyZAZ.cjs → api-Har_Kn3X.cjs} +21 -3
  7. package/dist/{command-D32x08k9.mjs → command-CyfoYUmk.mjs} +2 -2
  8. package/dist/{command-Cb9nikZh.cjs → command-vvaFH5Xx.cjs} +2 -2
  9. package/dist/{index-BLeiCte-.cjs → index-B_8-tkL4.cjs} +10 -10
  10. package/dist/{index-DQ76ZTNL.mjs → index-BmOq3bu1.mjs} +7 -7
  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 +30 -0
  15. package/dist/lib.d.mts +30 -0
  16. package/dist/lib.mjs +1 -1
  17. package/dist/{registerKillSessionHandler-DD9uUk4w.cjs → registerKillSessionHandler-D1QR0rK1.cjs} +18 -5
  18. package/dist/{registerKillSessionHandler-CadrzRgP.mjs → registerKillSessionHandler-WMXTq_kr.mjs} +18 -5
  19. package/dist/{runClaude-U9sxsnU-.cjs → runClaude-DhfpW9XR.cjs} +4 -4
  20. package/dist/{runClaude-CkY6XYJa.mjs → runClaude-TrzlAhzh.mjs} +4 -4
  21. package/dist/{runCodex-Beikmv-L.cjs → runCodex-D4EIHtfX.cjs} +5 -5
  22. package/dist/{runCodex-C6kV0jfX.mjs → runCodex-GpBK90D2.mjs} +5 -5
  23. package/dist/{runGemini-BTyqf5MR.cjs → runGemini-CR5MW3P-.cjs} +4 -4
  24. package/dist/{runGemini-IEzJdhc-.mjs → runGemini-D15RH8Iq.mjs} +4 -4
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as createSessionMetadata, p as publishSessionRegistration } from './index-DQ76ZTNL.mjs';
2
- import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-C68U-kRs.mjs';
1
+ import { a as createSessionMetadata, p as publishSessionRegistration } from './index-BmOq3bu1.mjs';
2
+ import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-Baxp1gAn.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-BLeiCte-.cjs');
4
- var persistence = require('./api-DK1gyZAZ.cjs');
3
+ var index = require('./index-B_8-tkL4.cjs');
4
+ var persistence = require('./api-Har_Kn3X.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-C68U-kRs.mjs';
2
- import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-CadrzRgP.mjs';
1
+ import { l as logger } from './api-Baxp1gAn.mjs';
2
+ import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-WMXTq_kr.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-DK1gyZAZ.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-DD9uUk4w.cjs');
3
+ var persistence = require('./api-Har_Kn3X.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-D1QR0rK1.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.30";
21
+ var version = "2.1.31";
22
22
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
23
23
  var author = "long.zhu";
24
24
  var license = "MIT";
@@ -1206,9 +1206,15 @@ const HappyOrgTurnStatusSchema = z$1.enum([
1206
1206
  "task_complete",
1207
1207
  "turn_aborted"
1208
1208
  ]);
1209
+ const HappyOrgAccessChannelStateSchema = z$1.enum([
1210
+ "ok",
1211
+ "reattach_required",
1212
+ "runtime_replaced"
1213
+ ]);
1209
1214
  const HappyOrgTaskContextSchema = z$1.object({
1210
1215
  taskId: z$1.string().min(1),
1211
1216
  organizationId: z$1.string().min(1),
1217
+ organizationRootPath: z$1.string().min(1).optional().nullable(),
1212
1218
  memberAgentId: z$1.string().min(1),
1213
1219
  supervisorAgentId: z$1.string().min(1),
1214
1220
  positionId: z$1.string().min(1).optional().nullable(),
@@ -1261,7 +1267,8 @@ z$1.object({
1261
1267
  interventionType: HappyOrgInterventionTypeSchema.optional().nullable(),
1262
1268
  blockerCode: z$1.string().optional().nullable(),
1263
1269
  decisionNeeded: z$1.string().optional().nullable(),
1264
- targetArtifact: z$1.string().optional().nullable()
1270
+ targetArtifact: z$1.string().optional().nullable(),
1271
+ accessChannelState: HappyOrgAccessChannelStateSchema.optional().nullable()
1265
1272
  });
1266
1273
  const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
1267
1274
  turnStatus: HappyOrgTurnStatusSchema,
@@ -1270,6 +1277,7 @@ const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
1270
1277
  blockerCode: z$1.string().nullable(),
1271
1278
  decisionNeeded: z$1.string().nullable(),
1272
1279
  targetArtifact: z$1.string().nullable(),
1280
+ accessChannelState: HappyOrgAccessChannelStateSchema.nullable(),
1273
1281
  repeatFingerprint: z$1.string().nullable(),
1274
1282
  replyContext: HappyOrgReplyContextSchema.nullish(),
1275
1283
  specialistHome: HappyOrgSpecialistHomeIdentitySchema.nullish()
@@ -2876,14 +2884,24 @@ function buildSessionRuntimeIndex(metadata) {
2876
2884
  };
2877
2885
  }
2878
2886
 
2887
+ function shouldPreserveCurrentHostPid(current, next) {
2888
+ if (typeof current?.hostPid !== "number") {
2889
+ return false;
2890
+ }
2891
+ if (current.hostPid !== process.pid) {
2892
+ return false;
2893
+ }
2894
+ return typeof next.hostPid !== "number" || next.hostPid !== current.hostPid;
2895
+ }
2879
2896
  function preserveSessionRuntimeMetadata(current, next) {
2880
2897
  if (!current) {
2881
2898
  return next;
2882
2899
  }
2900
+ const preserveCurrentHostPid = shouldPreserveCurrentHostPid(current, next);
2883
2901
  return {
2884
2902
  ...next,
2885
2903
  ...next.machineId ? {} : current.machineId ? { machineId: current.machineId } : {},
2886
- ...typeof next.hostPid === "number" ? {} : typeof current.hostPid === "number" ? { hostPid: current.hostPid } : {},
2904
+ ...typeof next.hostPid === "number" && !preserveCurrentHostPid ? {} : typeof current.hostPid === "number" ? { hostPid: current.hostPid } : {},
2887
2905
  ...typeof next.startedFromDaemon === "boolean" ? {} : typeof current.startedFromDaemon === "boolean" ? { startedFromDaemon: current.startedFromDaemon } : {},
2888
2906
  ...next.startedBy ? {} : current.startedBy ? { startedBy: current.startedBy } : {},
2889
2907
  ...next.lifecycleState ? {} : current.lifecycleState ? { lifecycleState: current.lifecycleState } : {},
@@ -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.30";
41
+ var version = "2.1.31";
42
42
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
43
43
  var author = "long.zhu";
44
44
  var license = "MIT";
@@ -1226,9 +1226,15 @@ const HappyOrgTurnStatusSchema = z.z.enum([
1226
1226
  "task_complete",
1227
1227
  "turn_aborted"
1228
1228
  ]);
1229
+ const HappyOrgAccessChannelStateSchema = z.z.enum([
1230
+ "ok",
1231
+ "reattach_required",
1232
+ "runtime_replaced"
1233
+ ]);
1229
1234
  const HappyOrgTaskContextSchema = z.z.object({
1230
1235
  taskId: z.z.string().min(1),
1231
1236
  organizationId: z.z.string().min(1),
1237
+ organizationRootPath: z.z.string().min(1).optional().nullable(),
1232
1238
  memberAgentId: z.z.string().min(1),
1233
1239
  supervisorAgentId: z.z.string().min(1),
1234
1240
  positionId: z.z.string().min(1).optional().nullable(),
@@ -1281,7 +1287,8 @@ z.z.object({
1281
1287
  interventionType: HappyOrgInterventionTypeSchema.optional().nullable(),
1282
1288
  blockerCode: z.z.string().optional().nullable(),
1283
1289
  decisionNeeded: z.z.string().optional().nullable(),
1284
- targetArtifact: z.z.string().optional().nullable()
1290
+ targetArtifact: z.z.string().optional().nullable(),
1291
+ accessChannelState: HappyOrgAccessChannelStateSchema.optional().nullable()
1285
1292
  });
1286
1293
  const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
1287
1294
  turnStatus: HappyOrgTurnStatusSchema,
@@ -1290,6 +1297,7 @@ const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
1290
1297
  blockerCode: z.z.string().nullable(),
1291
1298
  decisionNeeded: z.z.string().nullable(),
1292
1299
  targetArtifact: z.z.string().nullable(),
1300
+ accessChannelState: HappyOrgAccessChannelStateSchema.nullable(),
1293
1301
  repeatFingerprint: z.z.string().nullable(),
1294
1302
  replyContext: HappyOrgReplyContextSchema.nullish(),
1295
1303
  specialistHome: HappyOrgSpecialistHomeIdentitySchema.nullish()
@@ -2896,14 +2904,24 @@ function buildSessionRuntimeIndex(metadata) {
2896
2904
  };
2897
2905
  }
2898
2906
 
2907
+ function shouldPreserveCurrentHostPid(current, next) {
2908
+ if (typeof current?.hostPid !== "number") {
2909
+ return false;
2910
+ }
2911
+ if (current.hostPid !== process.pid) {
2912
+ return false;
2913
+ }
2914
+ return typeof next.hostPid !== "number" || next.hostPid !== current.hostPid;
2915
+ }
2899
2916
  function preserveSessionRuntimeMetadata(current, next) {
2900
2917
  if (!current) {
2901
2918
  return next;
2902
2919
  }
2920
+ const preserveCurrentHostPid = shouldPreserveCurrentHostPid(current, next);
2903
2921
  return {
2904
2922
  ...next,
2905
2923
  ...next.machineId ? {} : current.machineId ? { machineId: current.machineId } : {},
2906
- ...typeof next.hostPid === "number" ? {} : typeof current.hostPid === "number" ? { hostPid: current.hostPid } : {},
2924
+ ...typeof next.hostPid === "number" && !preserveCurrentHostPid ? {} : typeof current.hostPid === "number" ? { hostPid: current.hostPid } : {},
2907
2925
  ...typeof next.startedFromDaemon === "boolean" ? {} : typeof current.startedFromDaemon === "boolean" ? { startedFromDaemon: current.startedFromDaemon } : {},
2908
2926
  ...next.startedBy ? {} : current.startedBy ? { startedBy: current.startedBy } : {},
2909
2927
  ...next.lifecycleState ? {} : current.lifecycleState ? { lifecycleState: current.lifecycleState } : {},
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-DQ76ZTNL.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-BmOq3bu1.mjs';
2
2
  import 'chalk';
3
- import './api-C68U-kRs.mjs';
3
+ import './api-Baxp1gAn.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BLeiCte-.cjs');
3
+ var index = require('./index-B_8-tkL4.cjs');
4
4
  require('chalk');
5
- require('./api-DK1gyZAZ.cjs');
5
+ require('./api-Har_Kn3X.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node:fs');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var persistence = require('./api-DK1gyZAZ.cjs');
4
+ var persistence = require('./api-Har_Kn3X.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-BLeiCte-.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-B_8-tkL4.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-BLeiCte-.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-B_8-tkL4.cjs', document.baseURI).href))));
641
641
  function projectPath() {
642
642
  const path = path$1.resolve(__dirname$2, "..");
643
643
  return path;
@@ -10062,7 +10062,7 @@ class AbortError extends Error {
10062
10062
  }
10063
10063
  }
10064
10064
 
10065
- 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-BLeiCte-.cjs', document.baseURI).href)));
10065
+ 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-B_8-tkL4.cjs', document.baseURI).href)));
10066
10066
  const __dirname$1 = path.join(__filename$1, "..");
10067
10067
  function getGlobalClaudeVersion() {
10068
10068
  try {
@@ -11385,14 +11385,14 @@ var launch = /*#__PURE__*/Object.freeze({
11385
11385
  const unifiedProviderExecutors = {
11386
11386
  claude: async (opts) => {
11387
11387
  const claudeOptions = opts.claudeOptions ?? {};
11388
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-U9sxsnU-.cjs'); });
11388
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-DhfpW9XR.cjs'); });
11389
11389
  await runClaude(opts.credentials, {
11390
11390
  ...claudeOptions,
11391
11391
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
11392
11392
  });
11393
11393
  },
11394
11394
  codex: async (opts) => {
11395
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Beikmv-L.cjs'); });
11395
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-D4EIHtfX.cjs'); });
11396
11396
  await runCodex({
11397
11397
  credentials: opts.credentials,
11398
11398
  startedBy: opts.startedBy,
@@ -11401,7 +11401,7 @@ const unifiedProviderExecutors = {
11401
11401
  });
11402
11402
  },
11403
11403
  gemini: async (opts) => {
11404
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-BTyqf5MR.cjs'); });
11404
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-CR5MW3P-.cjs'); });
11405
11405
  await runGemini({
11406
11406
  credentials: opts.credentials,
11407
11407
  startedBy: opts.startedBy
@@ -11484,7 +11484,7 @@ function shouldRunMainClaudeFlow(opts) {
11484
11484
  return;
11485
11485
  } else if (subcommand === "runtime") {
11486
11486
  if (args[1] === "providers") {
11487
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-Cb9nikZh.cjs'); });
11487
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-vvaFH5Xx.cjs'); });
11488
11488
  console.log(renderRuntimeProviders());
11489
11489
  return;
11490
11490
  }
@@ -11690,8 +11690,8 @@ function shouldRunMainClaudeFlow(opts) {
11690
11690
  const projectId = args[3];
11691
11691
  try {
11692
11692
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
11693
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./api-DK1gyZAZ.cjs'); }).then(function (n) { return n.persistence; });
11694
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-DK1gyZAZ.cjs'); }).then(function (n) { return n.api; });
11693
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./api-Har_Kn3X.cjs'); }).then(function (n) { return n.persistence; });
11694
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-Har_Kn3X.cjs'); }).then(function (n) { return n.api; });
11695
11695
  let userEmail = void 0;
11696
11696
  try {
11697
11697
  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, k as encodeBase64, c as configuration, m as readCredentials, n as ensureSigningCredentials, r as readSettings, u as updateSettings, o as encodeBase64Url, h as delay, q as buildClientHeaders, t as decodeBase64, w as writeCredentialsLegacy, v as writeCredentialsDataKey, x as readDaemonState, y as HAPPY_CLOUD_DAEMON_PORT, z as clearDaemonState, B as packageJson, i as isAuthenticationRequiredError, C as acquireDaemonLock, D as writeDaemonState, A as ApiClient, E as releaseDaemonLock, F as validateProfileForAgent, G as getProfileEnvironmentVariables, I as clearCredentials, J as clearMachineId, K as processHappyOrgRepoRequests, L as HappyOrgTurnReportSchema, M as recordHappyOrgTurnReport, N as MessageContentSchema, O as buildSocketAuth, P as encrypt, H as HeadTailPreviewBuffer, Q as getLatestDaemonLog } from './api-C68U-kRs.mjs';
2
+ import { l as logger, k as encodeBase64, c as configuration, m as readCredentials, n as ensureSigningCredentials, r as readSettings, u as updateSettings, o as encodeBase64Url, h as delay, q as buildClientHeaders, t as decodeBase64, w as writeCredentialsLegacy, v as writeCredentialsDataKey, x as readDaemonState, y as HAPPY_CLOUD_DAEMON_PORT, z as clearDaemonState, B as packageJson, i as isAuthenticationRequiredError, C as acquireDaemonLock, D as writeDaemonState, A as ApiClient, E as releaseDaemonLock, F as validateProfileForAgent, G as getProfileEnvironmentVariables, I as clearCredentials, J as clearMachineId, K as processHappyOrgRepoRequests, L as HappyOrgTurnReportSchema, M as recordHappyOrgTurnReport, N as MessageContentSchema, O as buildSocketAuth, P as encrypt, H as HeadTailPreviewBuffer, Q as getLatestDaemonLog } from './api-Baxp1gAn.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';
@@ -11363,14 +11363,14 @@ var launch = /*#__PURE__*/Object.freeze({
11363
11363
  const unifiedProviderExecutors = {
11364
11364
  claude: async (opts) => {
11365
11365
  const claudeOptions = opts.claudeOptions ?? {};
11366
- const { runClaude } = await import('./runClaude-CkY6XYJa.mjs');
11366
+ const { runClaude } = await import('./runClaude-TrzlAhzh.mjs');
11367
11367
  await runClaude(opts.credentials, {
11368
11368
  ...claudeOptions,
11369
11369
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
11370
11370
  });
11371
11371
  },
11372
11372
  codex: async (opts) => {
11373
- const { runCodex } = await import('./runCodex-C6kV0jfX.mjs');
11373
+ const { runCodex } = await import('./runCodex-GpBK90D2.mjs');
11374
11374
  await runCodex({
11375
11375
  credentials: opts.credentials,
11376
11376
  startedBy: opts.startedBy,
@@ -11379,7 +11379,7 @@ const unifiedProviderExecutors = {
11379
11379
  });
11380
11380
  },
11381
11381
  gemini: async (opts) => {
11382
- const { runGemini } = await import('./runGemini-IEzJdhc-.mjs');
11382
+ const { runGemini } = await import('./runGemini-D15RH8Iq.mjs');
11383
11383
  await runGemini({
11384
11384
  credentials: opts.credentials,
11385
11385
  startedBy: opts.startedBy
@@ -11462,7 +11462,7 @@ function shouldRunMainClaudeFlow(opts) {
11462
11462
  return;
11463
11463
  } else if (subcommand === "runtime") {
11464
11464
  if (args[1] === "providers") {
11465
- const { renderRuntimeProviders } = await import('./command-D32x08k9.mjs');
11465
+ const { renderRuntimeProviders } = await import('./command-CyfoYUmk.mjs');
11466
11466
  console.log(renderRuntimeProviders());
11467
11467
  return;
11468
11468
  }
@@ -11668,8 +11668,8 @@ function shouldRunMainClaudeFlow(opts) {
11668
11668
  const projectId = args[3];
11669
11669
  try {
11670
11670
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
11671
- const { readCredentials: readCredentials2 } = await import('./api-C68U-kRs.mjs').then(function (n) { return n.R; });
11672
- const { ApiClient: ApiClient2 } = await import('./api-C68U-kRs.mjs').then(function (n) { return n.S; });
11671
+ const { readCredentials: readCredentials2 } = await import('./api-Baxp1gAn.mjs').then(function (n) { return n.R; });
11672
+ const { ApiClient: ApiClient2 } = await import('./api-Baxp1gAn.mjs').then(function (n) { return n.S; });
11673
11673
  let userEmail = void 0;
11674
11674
  try {
11675
11675
  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-DK1gyZAZ.cjs');
4
+ require('./api-Har_Kn3X.cjs');
5
5
  require('zod');
6
- require('./index-BLeiCte-.cjs');
6
+ require('./index-B_8-tkL4.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-C68U-kRs.mjs';
2
+ import './api-Baxp1gAn.mjs';
3
3
  import 'zod';
4
- import './index-DQ76ZTNL.mjs';
4
+ import './index-BmOq3bu1.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-DK1gyZAZ.cjs');
3
+ var persistence = require('./api-Har_Kn3X.cjs');
4
4
  var types = require('./types-DVk3crez.cjs');
5
5
  require('axios');
6
6
  require('chalk');
package/dist/lib.d.cts CHANGED
@@ -291,6 +291,7 @@ type RawJSONLines = z.infer<typeof RawJSONLinesSchema>;
291
291
  declare const HappyOrgTurnReportSchema: z.ZodObject<{
292
292
  taskId: z.ZodString;
293
293
  organizationId: z.ZodString;
294
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
294
295
  memberAgentId: z.ZodString;
295
296
  supervisorAgentId: z.ZodString;
296
297
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -302,6 +303,7 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
302
303
  blockerCode: z.ZodNullable<z.ZodString>;
303
304
  decisionNeeded: z.ZodNullable<z.ZodString>;
304
305
  targetArtifact: z.ZodNullable<z.ZodString>;
306
+ accessChannelState: z.ZodNullable<z.ZodEnum<["ok", "reattach_required", "runtime_replaced"]>>;
305
307
  repeatFingerprint: z.ZodNullable<z.ZodString>;
306
308
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
307
309
  dispatchId: z.ZodString;
@@ -355,7 +357,9 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
355
357
  blockerCode: string | null;
356
358
  decisionNeeded: string | null;
357
359
  targetArtifact: string | null;
360
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
358
361
  repeatFingerprint: string | null;
362
+ organizationRootPath?: string | null | undefined;
359
363
  positionId?: string | null | undefined;
360
364
  responsibilityId?: string | null | undefined;
361
365
  replyContext?: {
@@ -384,7 +388,9 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
384
388
  blockerCode: string | null;
385
389
  decisionNeeded: string | null;
386
390
  targetArtifact: string | null;
391
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
387
392
  repeatFingerprint: string | null;
393
+ organizationRootPath?: string | null | undefined;
388
394
  positionId?: string | null | undefined;
389
395
  responsibilityId?: string | null | undefined;
390
396
  replyContext?: {
@@ -408,6 +414,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
408
414
  taskContext: z.ZodOptional<z.ZodObject<{
409
415
  taskId: z.ZodString;
410
416
  organizationId: z.ZodString;
417
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
411
418
  memberAgentId: z.ZodString;
412
419
  supervisorAgentId: z.ZodString;
413
420
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -417,6 +424,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
417
424
  organizationId: string;
418
425
  memberAgentId: string;
419
426
  supervisorAgentId: string;
427
+ organizationRootPath?: string | null | undefined;
420
428
  positionId?: string | null | undefined;
421
429
  responsibilityId?: string | null | undefined;
422
430
  }, {
@@ -424,6 +432,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
424
432
  organizationId: string;
425
433
  memberAgentId: string;
426
434
  supervisorAgentId: string;
435
+ organizationRootPath?: string | null | undefined;
427
436
  positionId?: string | null | undefined;
428
437
  responsibilityId?: string | null | undefined;
429
438
  }>>;
@@ -550,6 +559,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
550
559
  lastTurnReport: z.ZodOptional<z.ZodObject<{
551
560
  taskId: z.ZodString;
552
561
  organizationId: z.ZodString;
562
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
553
563
  memberAgentId: z.ZodString;
554
564
  supervisorAgentId: z.ZodString;
555
565
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -561,6 +571,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
561
571
  blockerCode: z.ZodNullable<z.ZodString>;
562
572
  decisionNeeded: z.ZodNullable<z.ZodString>;
563
573
  targetArtifact: z.ZodNullable<z.ZodString>;
574
+ accessChannelState: z.ZodNullable<z.ZodEnum<["ok", "reattach_required", "runtime_replaced"]>>;
564
575
  repeatFingerprint: z.ZodNullable<z.ZodString>;
565
576
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
566
577
  dispatchId: z.ZodString;
@@ -614,7 +625,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
614
625
  blockerCode: string | null;
615
626
  decisionNeeded: string | null;
616
627
  targetArtifact: string | null;
628
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
617
629
  repeatFingerprint: string | null;
630
+ organizationRootPath?: string | null | undefined;
618
631
  positionId?: string | null | undefined;
619
632
  responsibilityId?: string | null | undefined;
620
633
  replyContext?: {
@@ -643,7 +656,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
643
656
  blockerCode: string | null;
644
657
  decisionNeeded: string | null;
645
658
  targetArtifact: string | null;
659
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
646
660
  repeatFingerprint: string | null;
661
+ organizationRootPath?: string | null | undefined;
647
662
  positionId?: string | null | undefined;
648
663
  responsibilityId?: string | null | undefined;
649
664
  replyContext?: {
@@ -668,6 +683,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
668
683
  organizationId: string;
669
684
  memberAgentId: string;
670
685
  supervisorAgentId: string;
686
+ organizationRootPath?: string | null | undefined;
671
687
  positionId?: string | null | undefined;
672
688
  responsibilityId?: string | null | undefined;
673
689
  } | undefined;
@@ -724,7 +740,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
724
740
  blockerCode: string | null;
725
741
  decisionNeeded: string | null;
726
742
  targetArtifact: string | null;
743
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
727
744
  repeatFingerprint: string | null;
745
+ organizationRootPath?: string | null | undefined;
728
746
  positionId?: string | null | undefined;
729
747
  responsibilityId?: string | null | undefined;
730
748
  replyContext?: {
@@ -749,6 +767,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
749
767
  organizationId: string;
750
768
  memberAgentId: string;
751
769
  supervisorAgentId: string;
770
+ organizationRootPath?: string | null | undefined;
752
771
  positionId?: string | null | undefined;
753
772
  responsibilityId?: string | null | undefined;
754
773
  } | undefined;
@@ -805,7 +824,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
805
824
  blockerCode: string | null;
806
825
  decisionNeeded: string | null;
807
826
  targetArtifact: string | null;
827
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
808
828
  repeatFingerprint: string | null;
829
+ organizationRootPath?: string | null | undefined;
809
830
  positionId?: string | null | undefined;
810
831
  responsibilityId?: string | null | undefined;
811
832
  replyContext?: {
@@ -1982,6 +2003,7 @@ declare const UserMessageSchema: z.ZodObject<{
1982
2003
  taskContext: z.ZodOptional<z.ZodObject<{
1983
2004
  taskId: z.ZodString;
1984
2005
  organizationId: z.ZodString;
2006
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1985
2007
  memberAgentId: z.ZodString;
1986
2008
  supervisorAgentId: z.ZodString;
1987
2009
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1991,6 +2013,7 @@ declare const UserMessageSchema: z.ZodObject<{
1991
2013
  organizationId: string;
1992
2014
  memberAgentId: string;
1993
2015
  supervisorAgentId: string;
2016
+ organizationRootPath?: string | null | undefined;
1994
2017
  positionId?: string | null | undefined;
1995
2018
  responsibilityId?: string | null | undefined;
1996
2019
  }, {
@@ -1998,6 +2021,7 @@ declare const UserMessageSchema: z.ZodObject<{
1998
2021
  organizationId: string;
1999
2022
  memberAgentId: string;
2000
2023
  supervisorAgentId: string;
2024
+ organizationRootPath?: string | null | undefined;
2001
2025
  positionId?: string | null | undefined;
2002
2026
  responsibilityId?: string | null | undefined;
2003
2027
  }>>;
@@ -2045,6 +2069,7 @@ declare const UserMessageSchema: z.ZodObject<{
2045
2069
  organizationId: string;
2046
2070
  memberAgentId: string;
2047
2071
  supervisorAgentId: string;
2072
+ organizationRootPath?: string | null | undefined;
2048
2073
  positionId?: string | null | undefined;
2049
2074
  responsibilityId?: string | null | undefined;
2050
2075
  } | undefined;
@@ -2068,6 +2093,7 @@ declare const UserMessageSchema: z.ZodObject<{
2068
2093
  organizationId: string;
2069
2094
  memberAgentId: string;
2070
2095
  supervisorAgentId: string;
2096
+ organizationRootPath?: string | null | undefined;
2071
2097
  positionId?: string | null | undefined;
2072
2098
  responsibilityId?: string | null | undefined;
2073
2099
  } | undefined;
@@ -2101,6 +2127,7 @@ declare const UserMessageSchema: z.ZodObject<{
2101
2127
  organizationId: string;
2102
2128
  memberAgentId: string;
2103
2129
  supervisorAgentId: string;
2130
+ organizationRootPath?: string | null | undefined;
2104
2131
  positionId?: string | null | undefined;
2105
2132
  responsibilityId?: string | null | undefined;
2106
2133
  } | undefined;
@@ -2134,6 +2161,7 @@ declare const UserMessageSchema: z.ZodObject<{
2134
2161
  organizationId: string;
2135
2162
  memberAgentId: string;
2136
2163
  supervisorAgentId: string;
2164
+ organizationRootPath?: string | null | undefined;
2137
2165
  positionId?: string | null | undefined;
2138
2166
  responsibilityId?: string | null | undefined;
2139
2167
  } | undefined;
@@ -2175,6 +2203,7 @@ declare const UserMessageSchema: z.ZodObject<{
2175
2203
  organizationId: string;
2176
2204
  memberAgentId: string;
2177
2205
  supervisorAgentId: string;
2206
+ organizationRootPath?: string | null | undefined;
2178
2207
  positionId?: string | null | undefined;
2179
2208
  responsibilityId?: string | null | undefined;
2180
2209
  } | undefined;
@@ -2216,6 +2245,7 @@ declare const UserMessageSchema: z.ZodObject<{
2216
2245
  organizationId: string;
2217
2246
  memberAgentId: string;
2218
2247
  supervisorAgentId: string;
2248
+ organizationRootPath?: string | null | undefined;
2219
2249
  positionId?: string | null | undefined;
2220
2250
  responsibilityId?: string | null | undefined;
2221
2251
  } | undefined;
package/dist/lib.d.mts CHANGED
@@ -291,6 +291,7 @@ type RawJSONLines = z.infer<typeof RawJSONLinesSchema>;
291
291
  declare const HappyOrgTurnReportSchema: z.ZodObject<{
292
292
  taskId: z.ZodString;
293
293
  organizationId: z.ZodString;
294
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
294
295
  memberAgentId: z.ZodString;
295
296
  supervisorAgentId: z.ZodString;
296
297
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -302,6 +303,7 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
302
303
  blockerCode: z.ZodNullable<z.ZodString>;
303
304
  decisionNeeded: z.ZodNullable<z.ZodString>;
304
305
  targetArtifact: z.ZodNullable<z.ZodString>;
306
+ accessChannelState: z.ZodNullable<z.ZodEnum<["ok", "reattach_required", "runtime_replaced"]>>;
305
307
  repeatFingerprint: z.ZodNullable<z.ZodString>;
306
308
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
307
309
  dispatchId: z.ZodString;
@@ -355,7 +357,9 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
355
357
  blockerCode: string | null;
356
358
  decisionNeeded: string | null;
357
359
  targetArtifact: string | null;
360
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
358
361
  repeatFingerprint: string | null;
362
+ organizationRootPath?: string | null | undefined;
359
363
  positionId?: string | null | undefined;
360
364
  responsibilityId?: string | null | undefined;
361
365
  replyContext?: {
@@ -384,7 +388,9 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
384
388
  blockerCode: string | null;
385
389
  decisionNeeded: string | null;
386
390
  targetArtifact: string | null;
391
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
387
392
  repeatFingerprint: string | null;
393
+ organizationRootPath?: string | null | undefined;
388
394
  positionId?: string | null | undefined;
389
395
  responsibilityId?: string | null | undefined;
390
396
  replyContext?: {
@@ -408,6 +414,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
408
414
  taskContext: z.ZodOptional<z.ZodObject<{
409
415
  taskId: z.ZodString;
410
416
  organizationId: z.ZodString;
417
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
411
418
  memberAgentId: z.ZodString;
412
419
  supervisorAgentId: z.ZodString;
413
420
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -417,6 +424,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
417
424
  organizationId: string;
418
425
  memberAgentId: string;
419
426
  supervisorAgentId: string;
427
+ organizationRootPath?: string | null | undefined;
420
428
  positionId?: string | null | undefined;
421
429
  responsibilityId?: string | null | undefined;
422
430
  }, {
@@ -424,6 +432,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
424
432
  organizationId: string;
425
433
  memberAgentId: string;
426
434
  supervisorAgentId: string;
435
+ organizationRootPath?: string | null | undefined;
427
436
  positionId?: string | null | undefined;
428
437
  responsibilityId?: string | null | undefined;
429
438
  }>>;
@@ -550,6 +559,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
550
559
  lastTurnReport: z.ZodOptional<z.ZodObject<{
551
560
  taskId: z.ZodString;
552
561
  organizationId: z.ZodString;
562
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
553
563
  memberAgentId: z.ZodString;
554
564
  supervisorAgentId: z.ZodString;
555
565
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -561,6 +571,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
561
571
  blockerCode: z.ZodNullable<z.ZodString>;
562
572
  decisionNeeded: z.ZodNullable<z.ZodString>;
563
573
  targetArtifact: z.ZodNullable<z.ZodString>;
574
+ accessChannelState: z.ZodNullable<z.ZodEnum<["ok", "reattach_required", "runtime_replaced"]>>;
564
575
  repeatFingerprint: z.ZodNullable<z.ZodString>;
565
576
  replyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
566
577
  dispatchId: z.ZodString;
@@ -614,7 +625,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
614
625
  blockerCode: string | null;
615
626
  decisionNeeded: string | null;
616
627
  targetArtifact: string | null;
628
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
617
629
  repeatFingerprint: string | null;
630
+ organizationRootPath?: string | null | undefined;
618
631
  positionId?: string | null | undefined;
619
632
  responsibilityId?: string | null | undefined;
620
633
  replyContext?: {
@@ -643,7 +656,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
643
656
  blockerCode: string | null;
644
657
  decisionNeeded: string | null;
645
658
  targetArtifact: string | null;
659
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
646
660
  repeatFingerprint: string | null;
661
+ organizationRootPath?: string | null | undefined;
647
662
  positionId?: string | null | undefined;
648
663
  responsibilityId?: string | null | undefined;
649
664
  replyContext?: {
@@ -668,6 +683,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
668
683
  organizationId: string;
669
684
  memberAgentId: string;
670
685
  supervisorAgentId: string;
686
+ organizationRootPath?: string | null | undefined;
671
687
  positionId?: string | null | undefined;
672
688
  responsibilityId?: string | null | undefined;
673
689
  } | undefined;
@@ -724,7 +740,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
724
740
  blockerCode: string | null;
725
741
  decisionNeeded: string | null;
726
742
  targetArtifact: string | null;
743
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
727
744
  repeatFingerprint: string | null;
745
+ organizationRootPath?: string | null | undefined;
728
746
  positionId?: string | null | undefined;
729
747
  responsibilityId?: string | null | undefined;
730
748
  replyContext?: {
@@ -749,6 +767,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
749
767
  organizationId: string;
750
768
  memberAgentId: string;
751
769
  supervisorAgentId: string;
770
+ organizationRootPath?: string | null | undefined;
752
771
  positionId?: string | null | undefined;
753
772
  responsibilityId?: string | null | undefined;
754
773
  } | undefined;
@@ -805,7 +824,9 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
805
824
  blockerCode: string | null;
806
825
  decisionNeeded: string | null;
807
826
  targetArtifact: string | null;
827
+ accessChannelState: "ok" | "reattach_required" | "runtime_replaced" | null;
808
828
  repeatFingerprint: string | null;
829
+ organizationRootPath?: string | null | undefined;
809
830
  positionId?: string | null | undefined;
810
831
  responsibilityId?: string | null | undefined;
811
832
  replyContext?: {
@@ -1982,6 +2003,7 @@ declare const UserMessageSchema: z.ZodObject<{
1982
2003
  taskContext: z.ZodOptional<z.ZodObject<{
1983
2004
  taskId: z.ZodString;
1984
2005
  organizationId: z.ZodString;
2006
+ organizationRootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1985
2007
  memberAgentId: z.ZodString;
1986
2008
  supervisorAgentId: z.ZodString;
1987
2009
  positionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1991,6 +2013,7 @@ declare const UserMessageSchema: z.ZodObject<{
1991
2013
  organizationId: string;
1992
2014
  memberAgentId: string;
1993
2015
  supervisorAgentId: string;
2016
+ organizationRootPath?: string | null | undefined;
1994
2017
  positionId?: string | null | undefined;
1995
2018
  responsibilityId?: string | null | undefined;
1996
2019
  }, {
@@ -1998,6 +2021,7 @@ declare const UserMessageSchema: z.ZodObject<{
1998
2021
  organizationId: string;
1999
2022
  memberAgentId: string;
2000
2023
  supervisorAgentId: string;
2024
+ organizationRootPath?: string | null | undefined;
2001
2025
  positionId?: string | null | undefined;
2002
2026
  responsibilityId?: string | null | undefined;
2003
2027
  }>>;
@@ -2045,6 +2069,7 @@ declare const UserMessageSchema: z.ZodObject<{
2045
2069
  organizationId: string;
2046
2070
  memberAgentId: string;
2047
2071
  supervisorAgentId: string;
2072
+ organizationRootPath?: string | null | undefined;
2048
2073
  positionId?: string | null | undefined;
2049
2074
  responsibilityId?: string | null | undefined;
2050
2075
  } | undefined;
@@ -2068,6 +2093,7 @@ declare const UserMessageSchema: z.ZodObject<{
2068
2093
  organizationId: string;
2069
2094
  memberAgentId: string;
2070
2095
  supervisorAgentId: string;
2096
+ organizationRootPath?: string | null | undefined;
2071
2097
  positionId?: string | null | undefined;
2072
2098
  responsibilityId?: string | null | undefined;
2073
2099
  } | undefined;
@@ -2101,6 +2127,7 @@ declare const UserMessageSchema: z.ZodObject<{
2101
2127
  organizationId: string;
2102
2128
  memberAgentId: string;
2103
2129
  supervisorAgentId: string;
2130
+ organizationRootPath?: string | null | undefined;
2104
2131
  positionId?: string | null | undefined;
2105
2132
  responsibilityId?: string | null | undefined;
2106
2133
  } | undefined;
@@ -2134,6 +2161,7 @@ declare const UserMessageSchema: z.ZodObject<{
2134
2161
  organizationId: string;
2135
2162
  memberAgentId: string;
2136
2163
  supervisorAgentId: string;
2164
+ organizationRootPath?: string | null | undefined;
2137
2165
  positionId?: string | null | undefined;
2138
2166
  responsibilityId?: string | null | undefined;
2139
2167
  } | undefined;
@@ -2175,6 +2203,7 @@ declare const UserMessageSchema: z.ZodObject<{
2175
2203
  organizationId: string;
2176
2204
  memberAgentId: string;
2177
2205
  supervisorAgentId: string;
2206
+ organizationRootPath?: string | null | undefined;
2178
2207
  positionId?: string | null | undefined;
2179
2208
  responsibilityId?: string | null | undefined;
2180
2209
  } | undefined;
@@ -2216,6 +2245,7 @@ declare const UserMessageSchema: z.ZodObject<{
2216
2245
  organizationId: string;
2217
2246
  memberAgentId: string;
2218
2247
  supervisorAgentId: string;
2248
+ organizationRootPath?: string | null | undefined;
2219
2249
  positionId?: string | null | undefined;
2220
2250
  responsibilityId?: string | null | undefined;
2221
2251
  } | undefined;
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-C68U-kRs.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-Baxp1gAn.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-BLeiCte-.cjs');
4
- var persistence = require('./api-DK1gyZAZ.cjs');
3
+ var index = require('./index-B_8-tkL4.cjs');
4
+ var persistence = require('./api-Har_Kn3X.cjs');
5
5
  var node_crypto = require('node:crypto');
6
6
  var path = require('node:path');
7
7
  var crypto = require('crypto');
@@ -439,6 +439,13 @@ function normalizeOptionalText(value) {
439
439
  const trimmed = value.trim();
440
440
  return trimmed.length > 0 ? trimmed : null;
441
441
  }
442
+ function normalizeAccessChannelState(value) {
443
+ const normalized = normalizeSingleLineText(value)?.toLowerCase();
444
+ if (normalized === "ok" || normalized === "reattach_required" || normalized === "runtime_replaced") {
445
+ return normalized;
446
+ }
447
+ return null;
448
+ }
442
449
  function normalizeSummaryText(value) {
443
450
  const normalized = normalizeOptionalText(value);
444
451
  return normalized ? normalized.replace(/\s+/g, " ").slice(0, persistence.HAPPY_ORG_SUMMARY_MAX_LENGTH) : null;
@@ -965,7 +972,8 @@ function normalizeTurnReportDraft(draft) {
965
972
  interventionType: inferInterventionType(draft),
966
973
  blockerCode: normalizeOptionalText(draft?.blockerCode),
967
974
  decisionNeeded: normalizeOptionalText(draft?.decisionNeeded),
968
- targetArtifact: normalizeOptionalText(draft?.targetArtifact)
975
+ targetArtifact: normalizeOptionalText(draft?.targetArtifact),
976
+ accessChannelState: normalizeAccessChannelState(draft?.accessChannelState)
969
977
  };
970
978
  }
971
979
  function stripCodeFence(text) {
@@ -996,7 +1004,8 @@ function extractTaggedTurnReport(text) {
996
1004
  interventionType: normalizeOptionalText(parsed.interventionType),
997
1005
  blockerCode: normalizeOptionalText(parsed.blockerCode),
998
1006
  decisionNeeded: normalizeOptionalText(parsed.decisionNeeded),
999
- targetArtifact: normalizeOptionalText(parsed.targetArtifact)
1007
+ targetArtifact: normalizeOptionalText(parsed.targetArtifact),
1008
+ accessChannelState: normalizeAccessChannelState(parsed.accessChannelState)
1000
1009
  };
1001
1010
  } catch {
1002
1011
  draft = null;
@@ -1073,6 +1082,7 @@ function buildHappyOrgTurnPrompt(prompt, turn) {
1073
1082
  "When you send the formal dispatch business ack in your visible response, include exactly one raw key=value block (no markdown code fence) using this shape:",
1074
1083
  `dispatch_id=${turn.replyContext.dispatchId}`,
1075
1084
  `scope=${turn.replyContext.scope}`,
1085
+ `agent_id=${turn.context.memberAgentId}`,
1076
1086
  turn.replyContext.positionId ? `position_id=${turn.replyContext.positionId}` : null,
1077
1087
  turn.replyContext.responsibilityId ? `responsibility_id=${turn.replyContext.responsibilityId}` : null,
1078
1088
  `task_ack=${turn.context.taskId}`,
@@ -1091,15 +1101,17 @@ function buildHappyOrgTurnPrompt(prompt, turn) {
1091
1101
  "[HAPPY_ORG_TASK_CONTEXT]",
1092
1102
  `taskId=${turn.context.taskId}`,
1093
1103
  `organizationId=${turn.context.organizationId}`,
1104
+ turn.context.organizationRootPath ? `organizationRootPath=${turn.context.organizationRootPath}` : null,
1094
1105
  `memberAgentId=${turn.context.memberAgentId}`,
1095
1106
  `supervisorAgentId=${turn.context.supervisorAgentId}`,
1096
1107
  turn.context.positionId ? `positionId=${turn.context.positionId}` : null,
1097
1108
  turn.context.responsibilityId ? `responsibilityId=${turn.context.responsibilityId}` : null,
1098
1109
  "Stay on this exact task for the whole turn.",
1099
1110
  "End your response with exactly one raw JSON block inside these tags and do not wrap it in a markdown code fence:",
1100
- `<${persistence.HAPPY_ORG_TURN_REPORT_TAG}>{"turnStatus":"turn_update","summary":"short task-board summary","interventionType":"none","blockerCode":null,"decisionNeeded":null,"targetArtifact":null}</${persistence.HAPPY_ORG_TURN_REPORT_TAG}>`,
1111
+ `<${persistence.HAPPY_ORG_TURN_REPORT_TAG}>{"turnStatus":"turn_update","summary":"short task-board summary","interventionType":"none","blockerCode":null,"decisionNeeded":null,"targetArtifact":null,"accessChannelState":"ok"}</${persistence.HAPPY_ORG_TURN_REPORT_TAG}>`,
1101
1112
  "Allowed turnStatus values in the JSON block: turn_update, task_complete.",
1102
1113
  "Allowed interventionType values: none, review_needed, blocker, decision_needed.",
1114
+ "Allowed accessChannelState values: ok, reattach_required, runtime_replaced.",
1103
1115
  "Use turnStatus=task_complete only when you believe the assigned task is finished and ready for CEO acceptance.",
1104
1116
  "If turnStatus=task_complete, the task will wait for CEO close; do not treat it as automatically closed.",
1105
1117
  "If turnStatus=task_complete, interventionType must be review_needed.",
@@ -1276,6 +1288,7 @@ function finalizeHappyOrgTurn(opts) {
1276
1288
  blockerCode: normalizedDraft.blockerCode ?? null,
1277
1289
  decisionNeeded: normalizedDraft.decisionNeeded ?? null,
1278
1290
  targetArtifact: normalizedDraft.targetArtifact ?? null,
1291
+ accessChannelState: normalizedDraft.accessChannelState ?? "ok",
1279
1292
  repeatFingerprint: buildRepeatFingerprint(
1280
1293
  queuedTurn.context,
1281
1294
  normalizedDraft.blockerCode ?? null,
@@ -1,5 +1,5 @@
1
- import { k as initialMachineMetadata, R as RuntimeShell, f as formatDisplayMessage, l as resolveCanonicalToolNameV2 } from './index-DQ76ZTNL.mjs';
2
- import { r as readSettings, H as HeadTailPreviewBuffer, d as HAPPY_ORG_TURN_REPORT_TAG, e as HAPPY_ORG_SUMMARY_MAX_LENGTH, f as HAPPY_ORG_REPEAT_THRESHOLD, l as logger } from './api-C68U-kRs.mjs';
1
+ import { k as initialMachineMetadata, R as RuntimeShell, f as formatDisplayMessage, l as resolveCanonicalToolNameV2 } from './index-BmOq3bu1.mjs';
2
+ import { r as readSettings, H as HeadTailPreviewBuffer, d as HAPPY_ORG_TURN_REPORT_TAG, e as HAPPY_ORG_SUMMARY_MAX_LENGTH, f as HAPPY_ORG_REPEAT_THRESHOLD, l as logger } from './api-Baxp1gAn.mjs';
3
3
  import { randomUUID } from 'node:crypto';
4
4
  import { basename } from 'node:path';
5
5
  import { createHash } from 'crypto';
@@ -437,6 +437,13 @@ function normalizeOptionalText(value) {
437
437
  const trimmed = value.trim();
438
438
  return trimmed.length > 0 ? trimmed : null;
439
439
  }
440
+ function normalizeAccessChannelState(value) {
441
+ const normalized = normalizeSingleLineText(value)?.toLowerCase();
442
+ if (normalized === "ok" || normalized === "reattach_required" || normalized === "runtime_replaced") {
443
+ return normalized;
444
+ }
445
+ return null;
446
+ }
440
447
  function normalizeSummaryText(value) {
441
448
  const normalized = normalizeOptionalText(value);
442
449
  return normalized ? normalized.replace(/\s+/g, " ").slice(0, HAPPY_ORG_SUMMARY_MAX_LENGTH) : null;
@@ -963,7 +970,8 @@ function normalizeTurnReportDraft(draft) {
963
970
  interventionType: inferInterventionType(draft),
964
971
  blockerCode: normalizeOptionalText(draft?.blockerCode),
965
972
  decisionNeeded: normalizeOptionalText(draft?.decisionNeeded),
966
- targetArtifact: normalizeOptionalText(draft?.targetArtifact)
973
+ targetArtifact: normalizeOptionalText(draft?.targetArtifact),
974
+ accessChannelState: normalizeAccessChannelState(draft?.accessChannelState)
967
975
  };
968
976
  }
969
977
  function stripCodeFence(text) {
@@ -994,7 +1002,8 @@ function extractTaggedTurnReport(text) {
994
1002
  interventionType: normalizeOptionalText(parsed.interventionType),
995
1003
  blockerCode: normalizeOptionalText(parsed.blockerCode),
996
1004
  decisionNeeded: normalizeOptionalText(parsed.decisionNeeded),
997
- targetArtifact: normalizeOptionalText(parsed.targetArtifact)
1005
+ targetArtifact: normalizeOptionalText(parsed.targetArtifact),
1006
+ accessChannelState: normalizeAccessChannelState(parsed.accessChannelState)
998
1007
  };
999
1008
  } catch {
1000
1009
  draft = null;
@@ -1071,6 +1080,7 @@ function buildHappyOrgTurnPrompt(prompt, turn) {
1071
1080
  "When you send the formal dispatch business ack in your visible response, include exactly one raw key=value block (no markdown code fence) using this shape:",
1072
1081
  `dispatch_id=${turn.replyContext.dispatchId}`,
1073
1082
  `scope=${turn.replyContext.scope}`,
1083
+ `agent_id=${turn.context.memberAgentId}`,
1074
1084
  turn.replyContext.positionId ? `position_id=${turn.replyContext.positionId}` : null,
1075
1085
  turn.replyContext.responsibilityId ? `responsibility_id=${turn.replyContext.responsibilityId}` : null,
1076
1086
  `task_ack=${turn.context.taskId}`,
@@ -1089,15 +1099,17 @@ function buildHappyOrgTurnPrompt(prompt, turn) {
1089
1099
  "[HAPPY_ORG_TASK_CONTEXT]",
1090
1100
  `taskId=${turn.context.taskId}`,
1091
1101
  `organizationId=${turn.context.organizationId}`,
1102
+ turn.context.organizationRootPath ? `organizationRootPath=${turn.context.organizationRootPath}` : null,
1092
1103
  `memberAgentId=${turn.context.memberAgentId}`,
1093
1104
  `supervisorAgentId=${turn.context.supervisorAgentId}`,
1094
1105
  turn.context.positionId ? `positionId=${turn.context.positionId}` : null,
1095
1106
  turn.context.responsibilityId ? `responsibilityId=${turn.context.responsibilityId}` : null,
1096
1107
  "Stay on this exact task for the whole turn.",
1097
1108
  "End your response with exactly one raw JSON block inside these tags and do not wrap it in a markdown code fence:",
1098
- `<${HAPPY_ORG_TURN_REPORT_TAG}>{"turnStatus":"turn_update","summary":"short task-board summary","interventionType":"none","blockerCode":null,"decisionNeeded":null,"targetArtifact":null}</${HAPPY_ORG_TURN_REPORT_TAG}>`,
1109
+ `<${HAPPY_ORG_TURN_REPORT_TAG}>{"turnStatus":"turn_update","summary":"short task-board summary","interventionType":"none","blockerCode":null,"decisionNeeded":null,"targetArtifact":null,"accessChannelState":"ok"}</${HAPPY_ORG_TURN_REPORT_TAG}>`,
1099
1110
  "Allowed turnStatus values in the JSON block: turn_update, task_complete.",
1100
1111
  "Allowed interventionType values: none, review_needed, blocker, decision_needed.",
1112
+ "Allowed accessChannelState values: ok, reattach_required, runtime_replaced.",
1101
1113
  "Use turnStatus=task_complete only when you believe the assigned task is finished and ready for CEO acceptance.",
1102
1114
  "If turnStatus=task_complete, the task will wait for CEO close; do not treat it as automatically closed.",
1103
1115
  "If turnStatus=task_complete, interventionType must be review_needed.",
@@ -1274,6 +1286,7 @@ function finalizeHappyOrgTurn(opts) {
1274
1286
  blockerCode: normalizedDraft.blockerCode ?? null,
1275
1287
  decisionNeeded: normalizedDraft.decisionNeeded ?? null,
1276
1288
  targetArtifact: normalizedDraft.targetArtifact ?? null,
1289
+ accessChannelState: normalizedDraft.accessChannelState ?? "ok",
1277
1290
  repeatFingerprint: buildRepeatFingerprint(
1278
1291
  queuedTurn.context,
1279
1292
  normalizedDraft.blockerCode ?? null,
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var persistence = require('./api-DK1gyZAZ.cjs');
4
+ var persistence = require('./api-Har_Kn3X.cjs');
5
5
  require('cross-spawn');
6
6
  require('@agentclientprotocol/sdk');
7
- var index = require('./index-BLeiCte-.cjs');
7
+ var index = require('./index-B_8-tkL4.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-Dx6x0Nd4.cjs');
28
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-ql1Ikkru.cjs');
29
29
  var types = require('./types-DVk3crez.cjs');
30
- var registerKillSessionHandler = require('./registerKillSessionHandler-DD9uUk4w.cjs');
30
+ var registerKillSessionHandler = require('./registerKillSessionHandler-D1QR0rK1.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
  import { randomUUID } from 'node:crypto';
2
- import { l as logger, g as backoff, h as delay, j as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-C68U-kRs.mjs';
2
+ import { l as logger, g as backoff, h as delay, j as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-Baxp1gAn.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-DQ76ZTNL.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-BmOq3bu1.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-2siFKlgs.mjs';
26
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-Cjfd17Lp.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-CadrzRgP.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-WMXTq_kr.mjs';
29
29
  import 'socket.io-client';
30
30
  import 'expo-server-sdk';
31
31
  import { isDeepStrictEqual } from 'node:util';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./api-DK1gyZAZ.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-DD9uUk4w.cjs');
5
- var index = require('./index-BLeiCte-.cjs');
3
+ var persistence = require('./api-Har_Kn3X.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-D1QR0rK1.cjs');
5
+ var index = require('./index-B_8-tkL4.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-Dx6x0Nd4.cjs');
30
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-Ch9R4qmn.cjs');
29
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-ql1Ikkru.cjs');
30
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-JFdT7HPG.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-C68U-kRs.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-CadrzRgP.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-DQ76ZTNL.mjs';
1
+ import { p as preserveSessionRuntimeMetadata, l as logger, b as connectionState, A as ApiClient } from './api-Baxp1gAn.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-WMXTq_kr.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-BmOq3bu1.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-2siFKlgs.mjs';
28
- import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-C1iacoJW.mjs';
27
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-Cjfd17Lp.mjs';
28
+ import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-CaFHRe9H.mjs';
29
29
  import 'zod';
30
30
  import 'socket.io-client';
31
31
  import 'expo-server-sdk';
@@ -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-DK1gyZAZ.cjs');
7
- var registerKillSessionHandler = require('./registerKillSessionHandler-DD9uUk4w.cjs');
8
- var index = require('./index-BLeiCte-.cjs');
9
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-Ch9R4qmn.cjs');
6
+ var persistence = require('./api-Har_Kn3X.cjs');
7
+ var registerKillSessionHandler = require('./registerKillSessionHandler-D1QR0rK1.cjs');
8
+ var index = require('./index-B_8-tkL4.cjs');
9
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-JFdT7HPG.cjs');
10
10
  require('cross-spawn');
11
11
  require('@agentclientprotocol/sdk');
12
12
  require('ps-list');
@@ -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-C68U-kRs.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-CadrzRgP.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-DQ76ZTNL.mjs';
7
- import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-C1iacoJW.mjs';
4
+ import { l as logger, b as connectionState, A as ApiClient } from './api-Baxp1gAn.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-WMXTq_kr.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-BmOq3bu1.mjs';
7
+ import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-CaFHRe9H.mjs';
8
8
  import 'cross-spawn';
9
9
  import '@agentclientprotocol/sdk';
10
10
  import 'ps-list';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-imou-cloud",
3
- "version": "2.1.30",
3
+ "version": "2.1.31",
4
4
  "description": "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI",
5
5
  "author": "long.zhu",
6
6
  "license": "MIT",