happy-imou-cloud 2.0.21 → 2.0.22

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 (34) hide show
  1. package/bin/happy-cloud.mjs +1 -1
  2. package/dist/{BaseReasoningProcessor-0nj-PMFc.cjs → BaseReasoningProcessor-CJVv1aNR.cjs} +3 -3
  3. package/dist/{BaseReasoningProcessor-DnVC7liC.mjs → BaseReasoningProcessor-mIqqngd3.mjs} +3 -3
  4. package/dist/ProviderSelectionHandler-BjLyIfSR.mjs +673 -0
  5. package/dist/ProviderSelectionHandler-e4zL4Y5_.cjs +680 -0
  6. package/dist/{api-MGlKcEf3.cjs → api-DP-RQUao.cjs} +13 -3
  7. package/dist/{api-DJe9WP9M.mjs → api-DrijKeDb.mjs} +13 -4
  8. package/dist/{command-CfyFnMv2.mjs → command--vV6BSsL.mjs} +3 -3
  9. package/dist/{command-DAlFmWmr.cjs → command-BZphfJrt.cjs} +3 -3
  10. package/dist/{index-CHXCgpwi.mjs → index-BIki80pQ.mjs} +8 -8
  11. package/dist/{index-CgVjDJpt.cjs → index-CqCEZDFi.cjs} +11 -11
  12. package/dist/index.cjs +3 -3
  13. package/dist/index.mjs +3 -3
  14. package/dist/lib.cjs +1 -1
  15. package/dist/lib.d.cts +13 -13
  16. package/dist/lib.d.mts +13 -13
  17. package/dist/lib.mjs +1 -1
  18. package/dist/{persistence-CkP90vEt.mjs → persistence-C3NBdZdz.mjs} +1 -1
  19. package/dist/{persistence-DLFUNI9q.cjs → persistence-yVTbf_Ng.cjs} +1 -1
  20. package/dist/{registerKillSessionHandler-DsHTZDsU.mjs → registerKillSessionHandler-CHEj7UjN.mjs} +4 -354
  21. package/dist/{registerKillSessionHandler-Cs_INk4A.cjs → registerKillSessionHandler-QmBN446A.cjs} +3 -356
  22. package/dist/{runClaude-BGSgcyUp.cjs → runClaude-BuI6OOEv.cjs} +8 -8
  23. package/dist/{runClaude-DAQAEmHe.mjs → runClaude-D0DD_Ya5.mjs} +5 -5
  24. package/dist/{runCodex-earICaxw.cjs → runCodex-1jTTmCvq.cjs} +9 -9
  25. package/dist/{runCodex-B2UpSn82.mjs → runCodex-BzZ0jODI.mjs} +6 -6
  26. package/dist/{runGemini-D5RAIaR0.cjs → runGemini-1gJRE8oT.cjs} +9 -73
  27. package/dist/{runGemini-BBUmH1Qh.mjs → runGemini-Bx2SYAyG.mjs} +9 -73
  28. package/package.json +1 -1
  29. package/scripts/build.mjs +66 -66
  30. package/scripts/devtools/README.md +9 -9
  31. package/scripts/e2e/fake-codex-acp-agent.mjs +139 -139
  32. package/scripts/e2e/local-server-session-roundtrip.mjs +1063 -1063
  33. package/dist/ProviderSelectionHandler-Bafuy28L.cjs +0 -265
  34. package/dist/ProviderSelectionHandler-R-2r7ItM.mjs +0 -261
@@ -18,7 +18,7 @@ var node_child_process = require('node:child_process');
18
18
  var expoServerSdk = require('expo-server-sdk');
19
19
 
20
20
  var name = "happy-imou-cloud";
21
- var version = "2.0.21";
21
+ var version = "2.0.22";
22
22
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
23
23
  var author = "long.zhu";
24
24
  var license = "MIT";
@@ -432,7 +432,7 @@ async function listDaemonLogFiles(limit = 50) {
432
432
  return { file, path: fullPath, modified: stats.mtime };
433
433
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
434
434
  try {
435
- const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-DLFUNI9q.cjs'); });
435
+ const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-yVTbf_Ng.cjs'); });
436
436
  const state = await readDaemonState();
437
437
  if (!state) {
438
438
  return logs;
@@ -568,6 +568,7 @@ function decrypt(key, variant, data) {
568
568
 
569
569
  const HAPPY_ORG_REPEAT_THRESHOLD = 3;
570
570
  const HAPPY_ORG_TURN_REPORT_TAG = "HAPPY_TURN_REPORT";
571
+ const HAPPY_ORG_SUMMARY_MAX_LENGTH = 120;
571
572
  const HappyOrgInterventionTypeSchema = z.z.enum([
572
573
  "none",
573
574
  "review_needed",
@@ -575,6 +576,7 @@ const HappyOrgInterventionTypeSchema = z.z.enum([
575
576
  "decision_needed"
576
577
  ]);
577
578
  const HappyOrgTurnStatusSchema = z.z.enum([
579
+ "turn_update",
578
580
  "task_complete",
579
581
  "turn_aborted"
580
582
  ]);
@@ -596,6 +598,7 @@ const HappyOrgMessageMetaSchema = z.z.object({
596
598
  control: HappyOrgTaskControlSchema.optional()
597
599
  });
598
600
  z.z.object({
601
+ turnStatus: HappyOrgTurnStatusSchema.optional().nullable(),
599
602
  summary: z.z.string().optional().nullable(),
600
603
  interventionType: HappyOrgInterventionTypeSchema.optional().nullable(),
601
604
  blockerCode: z.z.string().optional().nullable(),
@@ -616,7 +619,13 @@ const HappyOrgRepeatEntrySchema = z.z.object({
616
619
  lastSeenAt: z.z.number().int().nonnegative()
617
620
  });
618
621
  const HappyOrgRuntimeStateSchema = z.z.object({
619
- status: z.z.enum(["active", "terminated"]),
622
+ status: z.z.enum([
623
+ "active",
624
+ "waiting_review",
625
+ "waiting_decision",
626
+ "waiting_close",
627
+ "terminated"
628
+ ]),
620
629
  reason: z.z.string().optional().nullable(),
621
630
  terminatedAt: z.z.number().int().nonnegative().optional(),
622
631
  reopenedAt: z.z.number().int().nonnegative().optional()
@@ -3620,6 +3629,7 @@ exports.ApiSessionClient = ApiSessionClient;
3620
3629
  exports.AsyncLock = AsyncLock;
3621
3630
  exports.HAPPY_CLOUD_DAEMON_PORT = HAPPY_CLOUD_DAEMON_PORT;
3622
3631
  exports.HAPPY_ORG_REPEAT_THRESHOLD = HAPPY_ORG_REPEAT_THRESHOLD;
3632
+ exports.HAPPY_ORG_SUMMARY_MAX_LENGTH = HAPPY_ORG_SUMMARY_MAX_LENGTH;
3623
3633
  exports.HAPPY_ORG_TURN_REPORT_TAG = HAPPY_ORG_TURN_REPORT_TAG;
3624
3634
  exports.HeadTailPreviewBuffer = HeadTailPreviewBuffer;
3625
3635
  exports.SIGNING_BOOTSTRAP_REQUIRED_MESSAGE = SIGNING_BOOTSTRAP_REQUIRED_MESSAGE;
@@ -16,7 +16,7 @@ import { spawn } from 'node:child_process';
16
16
  import { Expo } from 'expo-server-sdk';
17
17
 
18
18
  var name = "happy-imou-cloud";
19
- var version = "2.0.21";
19
+ var version = "2.0.22";
20
20
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
21
21
  var author = "long.zhu";
22
22
  var license = "MIT";
@@ -430,7 +430,7 @@ async function listDaemonLogFiles(limit = 50) {
430
430
  return { file, path: fullPath, modified: stats.mtime };
431
431
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
432
432
  try {
433
- const { readDaemonState } = await import('./persistence-CkP90vEt.mjs');
433
+ const { readDaemonState } = await import('./persistence-C3NBdZdz.mjs');
434
434
  const state = await readDaemonState();
435
435
  if (!state) {
436
436
  return logs;
@@ -566,6 +566,7 @@ function decrypt(key, variant, data) {
566
566
 
567
567
  const HAPPY_ORG_REPEAT_THRESHOLD = 3;
568
568
  const HAPPY_ORG_TURN_REPORT_TAG = "HAPPY_TURN_REPORT";
569
+ const HAPPY_ORG_SUMMARY_MAX_LENGTH = 120;
569
570
  const HappyOrgInterventionTypeSchema = z.enum([
570
571
  "none",
571
572
  "review_needed",
@@ -573,6 +574,7 @@ const HappyOrgInterventionTypeSchema = z.enum([
573
574
  "decision_needed"
574
575
  ]);
575
576
  const HappyOrgTurnStatusSchema = z.enum([
577
+ "turn_update",
576
578
  "task_complete",
577
579
  "turn_aborted"
578
580
  ]);
@@ -594,6 +596,7 @@ const HappyOrgMessageMetaSchema = z.object({
594
596
  control: HappyOrgTaskControlSchema.optional()
595
597
  });
596
598
  z.object({
599
+ turnStatus: HappyOrgTurnStatusSchema.optional().nullable(),
597
600
  summary: z.string().optional().nullable(),
598
601
  interventionType: HappyOrgInterventionTypeSchema.optional().nullable(),
599
602
  blockerCode: z.string().optional().nullable(),
@@ -614,7 +617,13 @@ const HappyOrgRepeatEntrySchema = z.object({
614
617
  lastSeenAt: z.number().int().nonnegative()
615
618
  });
616
619
  const HappyOrgRuntimeStateSchema = z.object({
617
- status: z.enum(["active", "terminated"]),
620
+ status: z.enum([
621
+ "active",
622
+ "waiting_review",
623
+ "waiting_decision",
624
+ "waiting_close",
625
+ "terminated"
626
+ ]),
618
627
  reason: z.string().optional().nullable(),
619
628
  terminatedAt: z.number().int().nonnegative().optional(),
620
629
  reopenedAt: z.number().int().nonnegative().optional()
@@ -3613,4 +3622,4 @@ var api = /*#__PURE__*/Object.freeze({
3613
3622
  ApiClient: ApiClient
3614
3623
  });
3615
3624
 
3616
- export { ApiClient as A, HAPPY_ORG_TURN_REPORT_TAG as H, SigningBootstrapRequiredError as S, ApiSessionClient as a, connectionState as b, configuration as c, HAPPY_ORG_REPEAT_THRESHOLD as d, encodeBase64 as e, backoff as f, delay as g, AsyncLock as h, isAuthenticationRequiredError as i, buildAuthenticatedHeaders as j, SIGNING_BOOTSTRAP_REQUIRED_MESSAGE as k, logger as l, encodeBase64Url as m, buildClientHeaders as n, decodeBase64 as o, packageJson as p, HAPPY_CLOUD_DAEMON_PORT as q, HeadTailPreviewBuffer as r, startOfflineReconnection as s, getLatestDaemonLog as t, api as u };
3625
+ export { ApiClient as A, HAPPY_ORG_REPEAT_THRESHOLD as H, SigningBootstrapRequiredError as S, ApiSessionClient as a, HAPPY_ORG_TURN_REPORT_TAG as b, configuration as c, HAPPY_ORG_SUMMARY_MAX_LENGTH as d, encodeBase64 as e, connectionState as f, backoff as g, delay as h, isAuthenticationRequiredError as i, AsyncLock as j, buildAuthenticatedHeaders as k, logger as l, SIGNING_BOOTSTRAP_REQUIRED_MESSAGE as m, encodeBase64Url as n, buildClientHeaders as o, packageJson as p, decodeBase64 as q, HAPPY_CLOUD_DAEMON_PORT as r, startOfflineReconnection as s, HeadTailPreviewBuffer as t, getLatestDaemonLog as u, api as v };
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-CHXCgpwi.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-BIki80pQ.mjs';
2
2
  import 'chalk';
3
- import './api-DJe9WP9M.mjs';
3
+ import './api-DrijKeDb.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -16,7 +16,7 @@ import 'crypto';
16
16
  import 'path';
17
17
  import 'node:child_process';
18
18
  import 'expo-server-sdk';
19
- import './persistence-CkP90vEt.mjs';
19
+ import './persistence-C3NBdZdz.mjs';
20
20
  import 'node:fs/promises';
21
21
  import 'os';
22
22
  import 'tmp';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CgVjDJpt.cjs');
3
+ var index = require('./index-CqCEZDFi.cjs');
4
4
  require('chalk');
5
- require('./api-MGlKcEf3.cjs');
5
+ require('./api-DP-RQUao.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node:fs');
@@ -18,7 +18,7 @@ require('crypto');
18
18
  require('path');
19
19
  require('node:child_process');
20
20
  require('expo-server-sdk');
21
- require('./persistence-DLFUNI9q.cjs');
21
+ require('./persistence-yVTbf_Ng.cjs');
22
22
  require('node:fs/promises');
23
23
  require('os');
24
24
  require('tmp');
@@ -1,6 +1,6 @@
1
1
  import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2
- import { l as logger, e as encodeBase64, c as configuration, j as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, k as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, m as encodeBase64Url, g as delay, n as buildClientHeaders, o as decodeBase64, q as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, r as HeadTailPreviewBuffer, t as getLatestDaemonLog } from './api-DJe9WP9M.mjs';
3
- import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-CkP90vEt.mjs';
2
+ import { l as logger, e as encodeBase64, c as configuration, k as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, m as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, n as encodeBase64Url, h as delay, o as buildClientHeaders, q as decodeBase64, r as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-DrijKeDb.mjs';
3
+ import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-C3NBdZdz.mjs';
4
4
  import { z } from 'zod';
5
5
  import fs, { writeFile as writeFile$1, rename, unlink as unlink$1 } from 'fs/promises';
6
6
  import os, { homedir } from 'os';
@@ -8974,11 +8974,11 @@ var launch = /*#__PURE__*/Object.freeze({
8974
8974
 
8975
8975
  const unifiedProviderExecutors = {
8976
8976
  claude: async (opts) => {
8977
- const { runClaude } = await import('./runClaude-DAQAEmHe.mjs');
8977
+ const { runClaude } = await import('./runClaude-D0DD_Ya5.mjs');
8978
8978
  await runClaude(opts.credentials, opts.claudeOptions ?? {});
8979
8979
  },
8980
8980
  codex: async (opts) => {
8981
- const { runCodex } = await import('./runCodex-B2UpSn82.mjs');
8981
+ const { runCodex } = await import('./runCodex-BzZ0jODI.mjs');
8982
8982
  await runCodex({
8983
8983
  credentials: opts.credentials,
8984
8984
  startedBy: opts.startedBy,
@@ -8987,7 +8987,7 @@ const unifiedProviderExecutors = {
8987
8987
  });
8988
8988
  },
8989
8989
  gemini: async (opts) => {
8990
- const { runGemini } = await import('./runGemini-BBUmH1Qh.mjs');
8990
+ const { runGemini } = await import('./runGemini-Bx2SYAyG.mjs');
8991
8991
  await runGemini({
8992
8992
  credentials: opts.credentials,
8993
8993
  startedBy: opts.startedBy
@@ -9063,7 +9063,7 @@ function shouldRunMainClaudeFlow(opts) {
9063
9063
  return;
9064
9064
  } else if (subcommand === "runtime") {
9065
9065
  if (args[1] === "providers") {
9066
- const { renderRuntimeProviders } = await import('./command-CfyFnMv2.mjs');
9066
+ const { renderRuntimeProviders } = await import('./command--vV6BSsL.mjs');
9067
9067
  console.log(renderRuntimeProviders());
9068
9068
  return;
9069
9069
  }
@@ -9241,8 +9241,8 @@ function shouldRunMainClaudeFlow(opts) {
9241
9241
  const projectId = args[3];
9242
9242
  try {
9243
9243
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
9244
- const { readCredentials: readCredentials2 } = await import('./persistence-CkP90vEt.mjs');
9245
- const { ApiClient: ApiClient2 } = await import('./api-DJe9WP9M.mjs').then(function (n) { return n.u; });
9244
+ const { readCredentials: readCredentials2 } = await import('./persistence-C3NBdZdz.mjs');
9245
+ const { ApiClient: ApiClient2 } = await import('./api-DrijKeDb.mjs').then(function (n) { return n.v; });
9246
9246
  let userEmail = void 0;
9247
9247
  try {
9248
9248
  const credentials = await readCredentials2();
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var api = require('./api-MGlKcEf3.cjs');
5
- var persistence = require('./persistence-DLFUNI9q.cjs');
4
+ var api = require('./api-DP-RQUao.cjs');
5
+ var persistence = require('./persistence-yVTbf_Ng.cjs');
6
6
  var z = require('zod');
7
7
  var fs$2 = require('fs/promises');
8
8
  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-CgVjDJpt.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-CqCEZDFi.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();
@@ -695,7 +695,7 @@ function setupCleanupHandlers() {
695
695
  });
696
696
  }
697
697
 
698
- 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-CgVjDJpt.cjs', document.baseURI).href))));
698
+ 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-CqCEZDFi.cjs', document.baseURI).href))));
699
699
  function projectPath() {
700
700
  const path = path$1.resolve(__dirname$2, "..");
701
701
  return path;
@@ -7745,7 +7745,7 @@ class AbortError extends Error {
7745
7745
  }
7746
7746
  }
7747
7747
 
7748
- 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-CgVjDJpt.cjs', document.baseURI).href)));
7748
+ 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-CqCEZDFi.cjs', document.baseURI).href)));
7749
7749
  const __dirname$1 = path.join(__filename$1, "..");
7750
7750
  function getGlobalClaudeVersion() {
7751
7751
  try {
@@ -8996,11 +8996,11 @@ var launch = /*#__PURE__*/Object.freeze({
8996
8996
 
8997
8997
  const unifiedProviderExecutors = {
8998
8998
  claude: async (opts) => {
8999
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-BGSgcyUp.cjs'); });
8999
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-BuI6OOEv.cjs'); });
9000
9000
  await runClaude(opts.credentials, opts.claudeOptions ?? {});
9001
9001
  },
9002
9002
  codex: async (opts) => {
9003
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-earICaxw.cjs'); });
9003
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-1jTTmCvq.cjs'); });
9004
9004
  await runCodex({
9005
9005
  credentials: opts.credentials,
9006
9006
  startedBy: opts.startedBy,
@@ -9009,7 +9009,7 @@ const unifiedProviderExecutors = {
9009
9009
  });
9010
9010
  },
9011
9011
  gemini: async (opts) => {
9012
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-D5RAIaR0.cjs'); });
9012
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-1gJRE8oT.cjs'); });
9013
9013
  await runGemini({
9014
9014
  credentials: opts.credentials,
9015
9015
  startedBy: opts.startedBy
@@ -9085,7 +9085,7 @@ function shouldRunMainClaudeFlow(opts) {
9085
9085
  return;
9086
9086
  } else if (subcommand === "runtime") {
9087
9087
  if (args[1] === "providers") {
9088
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-DAlFmWmr.cjs'); });
9088
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-BZphfJrt.cjs'); });
9089
9089
  console.log(renderRuntimeProviders());
9090
9090
  return;
9091
9091
  }
@@ -9263,8 +9263,8 @@ function shouldRunMainClaudeFlow(opts) {
9263
9263
  const projectId = args[3];
9264
9264
  try {
9265
9265
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
9266
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-DLFUNI9q.cjs'); });
9267
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-MGlKcEf3.cjs'); }).then(function (n) { return n.api; });
9266
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-yVTbf_Ng.cjs'); });
9267
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-DP-RQUao.cjs'); }).then(function (n) { return n.api; });
9268
9268
  let userEmail = void 0;
9269
9269
  try {
9270
9270
  const credentials = await readCredentials2();
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./api-MGlKcEf3.cjs');
5
- require('./persistence-DLFUNI9q.cjs');
4
+ require('./api-DP-RQUao.cjs');
5
+ require('./persistence-yVTbf_Ng.cjs');
6
6
  require('zod');
7
- require('./index-CgVjDJpt.cjs');
7
+ require('./index-CqCEZDFi.cjs');
8
8
  require('node:child_process');
9
9
  require('node:fs');
10
10
  require('cross-spawn');
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'chalk';
2
- import './api-DJe9WP9M.mjs';
3
- import './persistence-CkP90vEt.mjs';
2
+ import './api-DrijKeDb.mjs';
3
+ import './persistence-C3NBdZdz.mjs';
4
4
  import 'zod';
5
- import './index-CHXCgpwi.mjs';
5
+ import './index-BIki80pQ.mjs';
6
6
  import 'node:child_process';
7
7
  import 'node:fs';
8
8
  import 'cross-spawn';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var api = require('./api-MGlKcEf3.cjs');
3
+ var api = require('./api-DP-RQUao.cjs');
4
4
  var types = require('./types-DVk3crez.cjs');
5
5
  require('axios');
6
6
  require('chalk');
package/dist/lib.d.cts CHANGED
@@ -294,7 +294,7 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
294
294
  memberAgentId: z.ZodString;
295
295
  supervisorAgentId: z.ZodString;
296
296
  } & {
297
- turnStatus: z.ZodEnum<["task_complete", "turn_aborted"]>;
297
+ turnStatus: z.ZodEnum<["turn_update", "task_complete", "turn_aborted"]>;
298
298
  interventionType: z.ZodEnum<["none", "review_needed", "blocker", "decision_needed"]>;
299
299
  summary: z.ZodString;
300
300
  blockerCode: z.ZodNullable<z.ZodString>;
@@ -307,11 +307,11 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
307
307
  organizationId: string;
308
308
  memberAgentId: string;
309
309
  supervisorAgentId: string;
310
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
310
311
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
311
312
  blockerCode: string | null;
312
313
  decisionNeeded: string | null;
313
314
  targetArtifact: string | null;
314
- turnStatus: "task_complete" | "turn_aborted";
315
315
  repeatFingerprint: string | null;
316
316
  }, {
317
317
  summary: string;
@@ -319,11 +319,11 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
319
319
  organizationId: string;
320
320
  memberAgentId: string;
321
321
  supervisorAgentId: string;
322
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
322
323
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
323
324
  blockerCode: string | null;
324
325
  decisionNeeded: string | null;
325
326
  targetArtifact: string | null;
326
- turnStatus: "task_complete" | "turn_aborted";
327
327
  repeatFingerprint: string | null;
328
328
  }>;
329
329
  type HappyOrgTurnReport = z.infer<typeof HappyOrgTurnReportSchema>;
@@ -345,17 +345,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
345
345
  supervisorAgentId: string;
346
346
  }>>;
347
347
  runtime: z.ZodOptional<z.ZodObject<{
348
- status: z.ZodEnum<["active", "terminated"]>;
348
+ status: z.ZodEnum<["active", "waiting_review", "waiting_decision", "waiting_close", "terminated"]>;
349
349
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
350
350
  terminatedAt: z.ZodOptional<z.ZodNumber>;
351
351
  reopenedAt: z.ZodOptional<z.ZodNumber>;
352
352
  }, "strip", z.ZodTypeAny, {
353
- status: "active" | "terminated";
353
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
354
354
  reason?: string | null | undefined;
355
355
  terminatedAt?: number | undefined;
356
356
  reopenedAt?: number | undefined;
357
357
  }, {
358
- status: "active" | "terminated";
358
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
359
359
  reason?: string | null | undefined;
360
360
  terminatedAt?: number | undefined;
361
361
  reopenedAt?: number | undefined;
@@ -404,7 +404,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
404
404
  memberAgentId: z.ZodString;
405
405
  supervisorAgentId: z.ZodString;
406
406
  } & {
407
- turnStatus: z.ZodEnum<["task_complete", "turn_aborted"]>;
407
+ turnStatus: z.ZodEnum<["turn_update", "task_complete", "turn_aborted"]>;
408
408
  interventionType: z.ZodEnum<["none", "review_needed", "blocker", "decision_needed"]>;
409
409
  summary: z.ZodString;
410
410
  blockerCode: z.ZodNullable<z.ZodString>;
@@ -417,11 +417,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
417
417
  organizationId: string;
418
418
  memberAgentId: string;
419
419
  supervisorAgentId: string;
420
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
420
421
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
421
422
  blockerCode: string | null;
422
423
  decisionNeeded: string | null;
423
424
  targetArtifact: string | null;
424
- turnStatus: "task_complete" | "turn_aborted";
425
425
  repeatFingerprint: string | null;
426
426
  }, {
427
427
  summary: string;
@@ -429,11 +429,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
429
429
  organizationId: string;
430
430
  memberAgentId: string;
431
431
  supervisorAgentId: string;
432
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
432
433
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
433
434
  blockerCode: string | null;
434
435
  decisionNeeded: string | null;
435
436
  targetArtifact: string | null;
436
- turnStatus: "task_complete" | "turn_aborted";
437
437
  repeatFingerprint: string | null;
438
438
  }>>;
439
439
  }, "strip", z.ZodTypeAny, {
@@ -444,7 +444,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
444
444
  supervisorAgentId: string;
445
445
  } | undefined;
446
446
  runtime?: {
447
- status: "active" | "terminated";
447
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
448
448
  reason?: string | null | undefined;
449
449
  terminatedAt?: number | undefined;
450
450
  reopenedAt?: number | undefined;
@@ -467,11 +467,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
467
467
  organizationId: string;
468
468
  memberAgentId: string;
469
469
  supervisorAgentId: string;
470
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
470
471
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
471
472
  blockerCode: string | null;
472
473
  decisionNeeded: string | null;
473
474
  targetArtifact: string | null;
474
- turnStatus: "task_complete" | "turn_aborted";
475
475
  repeatFingerprint: string | null;
476
476
  } | undefined;
477
477
  }, {
@@ -482,7 +482,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
482
482
  supervisorAgentId: string;
483
483
  } | undefined;
484
484
  runtime?: {
485
- status: "active" | "terminated";
485
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
486
486
  reason?: string | null | undefined;
487
487
  terminatedAt?: number | undefined;
488
488
  reopenedAt?: number | undefined;
@@ -505,11 +505,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
505
505
  organizationId: string;
506
506
  memberAgentId: string;
507
507
  supervisorAgentId: string;
508
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
508
509
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
509
510
  blockerCode: string | null;
510
511
  decisionNeeded: string | null;
511
512
  targetArtifact: string | null;
512
- turnStatus: "task_complete" | "turn_aborted";
513
513
  repeatFingerprint: string | null;
514
514
  } | undefined;
515
515
  }>;
package/dist/lib.d.mts CHANGED
@@ -294,7 +294,7 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
294
294
  memberAgentId: z.ZodString;
295
295
  supervisorAgentId: z.ZodString;
296
296
  } & {
297
- turnStatus: z.ZodEnum<["task_complete", "turn_aborted"]>;
297
+ turnStatus: z.ZodEnum<["turn_update", "task_complete", "turn_aborted"]>;
298
298
  interventionType: z.ZodEnum<["none", "review_needed", "blocker", "decision_needed"]>;
299
299
  summary: z.ZodString;
300
300
  blockerCode: z.ZodNullable<z.ZodString>;
@@ -307,11 +307,11 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
307
307
  organizationId: string;
308
308
  memberAgentId: string;
309
309
  supervisorAgentId: string;
310
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
310
311
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
311
312
  blockerCode: string | null;
312
313
  decisionNeeded: string | null;
313
314
  targetArtifact: string | null;
314
- turnStatus: "task_complete" | "turn_aborted";
315
315
  repeatFingerprint: string | null;
316
316
  }, {
317
317
  summary: string;
@@ -319,11 +319,11 @@ declare const HappyOrgTurnReportSchema: z.ZodObject<{
319
319
  organizationId: string;
320
320
  memberAgentId: string;
321
321
  supervisorAgentId: string;
322
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
322
323
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
323
324
  blockerCode: string | null;
324
325
  decisionNeeded: string | null;
325
326
  targetArtifact: string | null;
326
- turnStatus: "task_complete" | "turn_aborted";
327
327
  repeatFingerprint: string | null;
328
328
  }>;
329
329
  type HappyOrgTurnReport = z.infer<typeof HappyOrgTurnReportSchema>;
@@ -345,17 +345,17 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
345
345
  supervisorAgentId: string;
346
346
  }>>;
347
347
  runtime: z.ZodOptional<z.ZodObject<{
348
- status: z.ZodEnum<["active", "terminated"]>;
348
+ status: z.ZodEnum<["active", "waiting_review", "waiting_decision", "waiting_close", "terminated"]>;
349
349
  reason: z.ZodNullable<z.ZodOptional<z.ZodString>>;
350
350
  terminatedAt: z.ZodOptional<z.ZodNumber>;
351
351
  reopenedAt: z.ZodOptional<z.ZodNumber>;
352
352
  }, "strip", z.ZodTypeAny, {
353
- status: "active" | "terminated";
353
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
354
354
  reason?: string | null | undefined;
355
355
  terminatedAt?: number | undefined;
356
356
  reopenedAt?: number | undefined;
357
357
  }, {
358
- status: "active" | "terminated";
358
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
359
359
  reason?: string | null | undefined;
360
360
  terminatedAt?: number | undefined;
361
361
  reopenedAt?: number | undefined;
@@ -404,7 +404,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
404
404
  memberAgentId: z.ZodString;
405
405
  supervisorAgentId: z.ZodString;
406
406
  } & {
407
- turnStatus: z.ZodEnum<["task_complete", "turn_aborted"]>;
407
+ turnStatus: z.ZodEnum<["turn_update", "task_complete", "turn_aborted"]>;
408
408
  interventionType: z.ZodEnum<["none", "review_needed", "blocker", "decision_needed"]>;
409
409
  summary: z.ZodString;
410
410
  blockerCode: z.ZodNullable<z.ZodString>;
@@ -417,11 +417,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
417
417
  organizationId: string;
418
418
  memberAgentId: string;
419
419
  supervisorAgentId: string;
420
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
420
421
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
421
422
  blockerCode: string | null;
422
423
  decisionNeeded: string | null;
423
424
  targetArtifact: string | null;
424
- turnStatus: "task_complete" | "turn_aborted";
425
425
  repeatFingerprint: string | null;
426
426
  }, {
427
427
  summary: string;
@@ -429,11 +429,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
429
429
  organizationId: string;
430
430
  memberAgentId: string;
431
431
  supervisorAgentId: string;
432
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
432
433
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
433
434
  blockerCode: string | null;
434
435
  decisionNeeded: string | null;
435
436
  targetArtifact: string | null;
436
- turnStatus: "task_complete" | "turn_aborted";
437
437
  repeatFingerprint: string | null;
438
438
  }>>;
439
439
  }, "strip", z.ZodTypeAny, {
@@ -444,7 +444,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
444
444
  supervisorAgentId: string;
445
445
  } | undefined;
446
446
  runtime?: {
447
- status: "active" | "terminated";
447
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
448
448
  reason?: string | null | undefined;
449
449
  terminatedAt?: number | undefined;
450
450
  reopenedAt?: number | undefined;
@@ -467,11 +467,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
467
467
  organizationId: string;
468
468
  memberAgentId: string;
469
469
  supervisorAgentId: string;
470
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
470
471
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
471
472
  blockerCode: string | null;
472
473
  decisionNeeded: string | null;
473
474
  targetArtifact: string | null;
474
- turnStatus: "task_complete" | "turn_aborted";
475
475
  repeatFingerprint: string | null;
476
476
  } | undefined;
477
477
  }, {
@@ -482,7 +482,7 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
482
482
  supervisorAgentId: string;
483
483
  } | undefined;
484
484
  runtime?: {
485
- status: "active" | "terminated";
485
+ status: "active" | "waiting_review" | "waiting_decision" | "waiting_close" | "terminated";
486
486
  reason?: string | null | undefined;
487
487
  terminatedAt?: number | undefined;
488
488
  reopenedAt?: number | undefined;
@@ -505,11 +505,11 @@ declare const HappyOrgMetadataSchema: z.ZodObject<{
505
505
  organizationId: string;
506
506
  memberAgentId: string;
507
507
  supervisorAgentId: string;
508
+ turnStatus: "turn_update" | "task_complete" | "turn_aborted";
508
509
  interventionType: "none" | "review_needed" | "blocker" | "decision_needed";
509
510
  blockerCode: string | null;
510
511
  decisionNeeded: string | null;
511
512
  targetArtifact: string | null;
512
- turnStatus: "task_complete" | "turn_aborted";
513
513
  repeatFingerprint: string | null;
514
514
  } | undefined;
515
515
  }>;
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-DJe9WP9M.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-DrijKeDb.mjs';
2
2
  export { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
3
3
  import 'axios';
4
4
  import 'chalk';
@@ -1,7 +1,7 @@
1
1
  import { unlink, readFile, mkdir, open, stat, writeFile, rename } from 'node:fs/promises';
2
2
  import { existsSync, unlinkSync, readdirSync, constants, writeFileSync, readFileSync } from 'node:fs';
3
3
  import { join, dirname } from 'node:path';
4
- import { c as configuration, l as logger, e as encodeBase64 } from './api-DJe9WP9M.mjs';
4
+ import { c as configuration, l as logger, e as encodeBase64 } from './api-DrijKeDb.mjs';
5
5
  import * as z from 'zod';
6
6
  import 'axios';
7
7
  import 'chalk';
@@ -3,7 +3,7 @@
3
3
  var promises = require('node:fs/promises');
4
4
  var fs = require('node:fs');
5
5
  var path = require('node:path');
6
- var api = require('./api-MGlKcEf3.cjs');
6
+ var api = require('./api-DP-RQUao.cjs');
7
7
  var z = require('zod');
8
8
  require('axios');
9
9
  require('chalk');