happy-imou-cloud 2.1.11 → 2.1.12
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.
- package/bin/happy-cloud.mjs +1 -1
- package/dist/{BaseReasoningProcessor-BrQM8i44.mjs → BaseReasoningProcessor-DgKkEyg_.mjs} +2 -2
- package/dist/{BaseReasoningProcessor-G3hno_kB.cjs → BaseReasoningProcessor-yYne8hbQ.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-B0HZZgMG.cjs → ProviderSelectionHandler-CARO_dnJ.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-bkna8Dc0.mjs → ProviderSelectionHandler-CxLijFCe.mjs} +2 -2
- package/dist/{api-CEUrdZHY.mjs → api-0mR8QJK2.mjs} +22 -4
- package/dist/{api-CtQFwLUJ.cjs → api-CwRFeZQw.cjs} +22 -4
- package/dist/{command-C6M6wHp1.cjs → command-0ypdkfyo.cjs} +3 -3
- package/dist/{command-DZ8Od7tC.mjs → command-Dh_oQxDu.mjs} +3 -3
- package/dist/{index-AwnMQcsU.cjs → index-IkNv7MfY.cjs} +11 -11
- package/dist/{index-Drrrz-Ot.mjs → index-zIZBoE62.mjs} +8 -8
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +302 -50
- package/dist/lib.d.mts +302 -50
- package/dist/lib.mjs +1 -1
- package/dist/{persistence-n4WMW33G.cjs → persistence-BlqXzujW.cjs} +1 -1
- package/dist/{persistence-tRrZOs0P.mjs → persistence-CZEdRTGx.mjs} +1 -1
- package/dist/{registerKillSessionHandler-DKWTYJ3L.cjs → registerKillSessionHandler-B0an4vUf.cjs} +133 -9
- package/dist/{registerKillSessionHandler-DPh8LfUR.mjs → registerKillSessionHandler-DYg4cQCz.mjs} +133 -9
- package/dist/{runClaude-7rux3CCC.cjs → runClaude-C6PA0-0n.cjs} +15 -7
- package/dist/{runClaude-C-JjQB5i.mjs → runClaude-DWeTS-VL.mjs} +15 -7
- package/dist/{runCodex-D81osbbB.cjs → runCodex-B_TM-cqA.cjs} +15 -8
- package/dist/{runCodex-uHVY1g3W.mjs → runCodex-DUXczsJP.mjs} +15 -8
- package/dist/{runGemini-DaSpiomM.cjs → runGemini-0-mnECiy.cjs} +15 -7
- package/dist/{runGemini-DFhltfvZ.mjs → runGemini-CBpN6a9w.mjs} +15 -7
- package/package.json +1 -1
- package/scripts/devtools/README.md +9 -9
- package/scripts/e2e/fake-codex-acp-agent.mjs +139 -139
- package/scripts/e2e/local-server-session-roundtrip.mjs +1063 -1063
- package/scripts/ensureAcpSdkCompat.mjs +1 -1
package/bin/happy-cloud.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as createSessionMetadata, p as publishSessionRegistration } from './index-
|
|
2
|
-
import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-
|
|
1
|
+
import { a as createSessionMetadata, p as publishSessionRegistration } from './index-zIZBoE62.mjs';
|
|
2
|
+
import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-0mR8QJK2.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-
|
|
4
|
-
var api = require('./api-
|
|
3
|
+
var index = require('./index-IkNv7MfY.cjs');
|
|
4
|
+
var api = require('./api-CwRFeZQw.cjs');
|
|
5
5
|
var node_events = require('node:events');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
7
|
|
package/dist/{ProviderSelectionHandler-B0HZZgMG.cjs → ProviderSelectionHandler-CARO_dnJ.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var api = require('./api-
|
|
4
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
3
|
+
var api = require('./api-CwRFeZQw.cjs');
|
|
4
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-B0an4vUf.cjs');
|
|
5
5
|
|
|
6
6
|
async function runModeLoop(opts) {
|
|
7
7
|
let currentMode = opts.startingMode;
|
package/dist/{ProviderSelectionHandler-bkna8Dc0.mjs → ProviderSelectionHandler-CxLijFCe.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as logger } from './api-
|
|
2
|
-
import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-
|
|
1
|
+
import { l as logger } from './api-0mR8QJK2.mjs';
|
|
2
|
+
import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-DYg4cQCz.mjs';
|
|
3
3
|
|
|
4
4
|
async function runModeLoop(opts) {
|
|
5
5
|
let currentMode = opts.startingMode;
|
|
@@ -16,7 +16,7 @@ import { spawn } from 'node:child_process';
|
|
|
16
16
|
import { Expo } from 'expo-server-sdk';
|
|
17
17
|
|
|
18
18
|
var name = "happy-imou-cloud";
|
|
19
|
-
var version = "2.1.
|
|
19
|
+
var version = "2.1.12";
|
|
20
20
|
var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
|
|
21
21
|
var author = "long.zhu";
|
|
22
22
|
var license = "MIT";
|
|
@@ -431,7 +431,7 @@ async function listDaemonLogFiles(limit = 50) {
|
|
|
431
431
|
return { file, path: fullPath, modified: stats.mtime };
|
|
432
432
|
}).sort((a, b) => b.modified.getTime() - a.modified.getTime());
|
|
433
433
|
try {
|
|
434
|
-
const { readDaemonState } = await import('./persistence-
|
|
434
|
+
const { readDaemonState } = await import('./persistence-CZEdRTGx.mjs');
|
|
435
435
|
const state = await readDaemonState();
|
|
436
436
|
if (!state) {
|
|
437
437
|
return logs;
|
|
@@ -592,9 +592,23 @@ const HappyOrgTaskControlSchema = z.object({
|
|
|
592
592
|
newDecision: z.string().min(1).optional().nullable(),
|
|
593
593
|
newResource: z.string().min(1).optional().nullable()
|
|
594
594
|
});
|
|
595
|
+
const HappyOrgReplyContextSchema = z.object({
|
|
596
|
+
dispatchId: z.string().min(1),
|
|
597
|
+
scope: z.string().min(1),
|
|
598
|
+
replyTo: z.string().min(1)
|
|
599
|
+
});
|
|
600
|
+
const HappyOrgSpecialistHomeIdentitySchema = z.object({
|
|
601
|
+
homeSlug: z.string().min(1),
|
|
602
|
+
path: z.string().min(1).nullish(),
|
|
603
|
+
happySessionId: z.string().min(1).nullish(),
|
|
604
|
+
machineId: z.string().min(1).nullish(),
|
|
605
|
+
startedBy: z.enum(["daemon", "terminal"]).nullish(),
|
|
606
|
+
flavor: z.string().min(1).nullish()
|
|
607
|
+
});
|
|
595
608
|
const HappyOrgMessageMetaSchema = z.object({
|
|
596
609
|
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
597
|
-
control: HappyOrgTaskControlSchema.optional()
|
|
610
|
+
control: HappyOrgTaskControlSchema.optional(),
|
|
611
|
+
replyContext: HappyOrgReplyContextSchema.optional()
|
|
598
612
|
});
|
|
599
613
|
z.object({
|
|
600
614
|
turnStatus: HappyOrgTurnStatusSchema.optional().nullable(),
|
|
@@ -611,7 +625,9 @@ const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
|
|
|
611
625
|
blockerCode: z.string().nullable(),
|
|
612
626
|
decisionNeeded: z.string().nullable(),
|
|
613
627
|
targetArtifact: z.string().nullable(),
|
|
614
|
-
repeatFingerprint: z.string().nullable()
|
|
628
|
+
repeatFingerprint: z.string().nullable(),
|
|
629
|
+
replyContext: HappyOrgReplyContextSchema.nullish(),
|
|
630
|
+
specialistHome: HappyOrgSpecialistHomeIdentitySchema.nullish()
|
|
615
631
|
});
|
|
616
632
|
const HappyOrgRepeatEntrySchema = z.object({
|
|
617
633
|
count: z.number().int().nonnegative(),
|
|
@@ -638,6 +654,8 @@ z.object({
|
|
|
638
654
|
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
639
655
|
runtime: HappyOrgRuntimeStateSchema.optional(),
|
|
640
656
|
activeOwner: HappyOrgTaskOwnershipSchema.nullish(),
|
|
657
|
+
replyContext: HappyOrgReplyContextSchema.nullish(),
|
|
658
|
+
specialistHome: HappyOrgSpecialistHomeIdentitySchema.nullish(),
|
|
641
659
|
repeat: z.object({
|
|
642
660
|
threshold: z.number().int().positive(),
|
|
643
661
|
fingerprints: z.record(z.string(), HappyOrgRepeatEntrySchema)
|
|
@@ -18,7 +18,7 @@ var node_child_process = require('node:child_process');
|
|
|
18
18
|
var expoServerSdk = require('expo-server-sdk');
|
|
19
19
|
|
|
20
20
|
var name = "happy-imou-cloud";
|
|
21
|
-
var version = "2.1.
|
|
21
|
+
var version = "2.1.12";
|
|
22
22
|
var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
|
|
23
23
|
var author = "long.zhu";
|
|
24
24
|
var license = "MIT";
|
|
@@ -433,7 +433,7 @@ async function listDaemonLogFiles(limit = 50) {
|
|
|
433
433
|
return { file, path: fullPath, modified: stats.mtime };
|
|
434
434
|
}).sort((a, b) => b.modified.getTime() - a.modified.getTime());
|
|
435
435
|
try {
|
|
436
|
-
const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-
|
|
436
|
+
const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-BlqXzujW.cjs'); });
|
|
437
437
|
const state = await readDaemonState();
|
|
438
438
|
if (!state) {
|
|
439
439
|
return logs;
|
|
@@ -594,9 +594,23 @@ const HappyOrgTaskControlSchema = z.z.object({
|
|
|
594
594
|
newDecision: z.z.string().min(1).optional().nullable(),
|
|
595
595
|
newResource: z.z.string().min(1).optional().nullable()
|
|
596
596
|
});
|
|
597
|
+
const HappyOrgReplyContextSchema = z.z.object({
|
|
598
|
+
dispatchId: z.z.string().min(1),
|
|
599
|
+
scope: z.z.string().min(1),
|
|
600
|
+
replyTo: z.z.string().min(1)
|
|
601
|
+
});
|
|
602
|
+
const HappyOrgSpecialistHomeIdentitySchema = z.z.object({
|
|
603
|
+
homeSlug: z.z.string().min(1),
|
|
604
|
+
path: z.z.string().min(1).nullish(),
|
|
605
|
+
happySessionId: z.z.string().min(1).nullish(),
|
|
606
|
+
machineId: z.z.string().min(1).nullish(),
|
|
607
|
+
startedBy: z.z.enum(["daemon", "terminal"]).nullish(),
|
|
608
|
+
flavor: z.z.string().min(1).nullish()
|
|
609
|
+
});
|
|
597
610
|
const HappyOrgMessageMetaSchema = z.z.object({
|
|
598
611
|
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
599
|
-
control: HappyOrgTaskControlSchema.optional()
|
|
612
|
+
control: HappyOrgTaskControlSchema.optional(),
|
|
613
|
+
replyContext: HappyOrgReplyContextSchema.optional()
|
|
600
614
|
});
|
|
601
615
|
z.z.object({
|
|
602
616
|
turnStatus: HappyOrgTurnStatusSchema.optional().nullable(),
|
|
@@ -613,7 +627,9 @@ const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
|
|
|
613
627
|
blockerCode: z.z.string().nullable(),
|
|
614
628
|
decisionNeeded: z.z.string().nullable(),
|
|
615
629
|
targetArtifact: z.z.string().nullable(),
|
|
616
|
-
repeatFingerprint: z.z.string().nullable()
|
|
630
|
+
repeatFingerprint: z.z.string().nullable(),
|
|
631
|
+
replyContext: HappyOrgReplyContextSchema.nullish(),
|
|
632
|
+
specialistHome: HappyOrgSpecialistHomeIdentitySchema.nullish()
|
|
617
633
|
});
|
|
618
634
|
const HappyOrgRepeatEntrySchema = z.z.object({
|
|
619
635
|
count: z.z.number().int().nonnegative(),
|
|
@@ -640,6 +656,8 @@ z.z.object({
|
|
|
640
656
|
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
641
657
|
runtime: HappyOrgRuntimeStateSchema.optional(),
|
|
642
658
|
activeOwner: HappyOrgTaskOwnershipSchema.nullish(),
|
|
659
|
+
replyContext: HappyOrgReplyContextSchema.nullish(),
|
|
660
|
+
specialistHome: HappyOrgSpecialistHomeIdentitySchema.nullish(),
|
|
643
661
|
repeat: z.z.object({
|
|
644
662
|
threshold: z.z.number().int().positive(),
|
|
645
663
|
fingerprints: z.z.record(z.z.string(), HappyOrgRepeatEntrySchema)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-IkNv7MfY.cjs');
|
|
4
4
|
require('chalk');
|
|
5
|
-
require('./api-
|
|
5
|
+
require('./api-CwRFeZQw.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-
|
|
21
|
+
require('./persistence-BlqXzujW.cjs');
|
|
22
22
|
require('node:fs/promises');
|
|
23
23
|
require('os');
|
|
24
24
|
require('tmp');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createDefaultRuntimeShell } from './index-
|
|
1
|
+
import { c as createDefaultRuntimeShell } from './index-zIZBoE62.mjs';
|
|
2
2
|
import 'chalk';
|
|
3
|
-
import './api-
|
|
3
|
+
import './api-0mR8QJK2.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-
|
|
19
|
+
import './persistence-CZEdRTGx.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
3
|
var chalk = require('chalk');
|
|
4
|
-
var api = require('./api-
|
|
5
|
-
var persistence = require('./persistence-
|
|
4
|
+
var api = require('./api-CwRFeZQw.cjs');
|
|
5
|
+
var persistence = require('./persistence-BlqXzujW.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-
|
|
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-IkNv7MfY.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-
|
|
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-IkNv7MfY.cjs', document.baseURI).href))));
|
|
699
699
|
function projectPath() {
|
|
700
700
|
const path = path$1.resolve(__dirname$2, "..");
|
|
701
701
|
return path;
|
|
@@ -8715,7 +8715,7 @@ class AbortError extends Error {
|
|
|
8715
8715
|
}
|
|
8716
8716
|
}
|
|
8717
8717
|
|
|
8718
|
-
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-
|
|
8718
|
+
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-IkNv7MfY.cjs', document.baseURI).href)));
|
|
8719
8719
|
const __dirname$1 = path.join(__filename$1, "..");
|
|
8720
8720
|
function getGlobalClaudeVersion() {
|
|
8721
8721
|
try {
|
|
@@ -10014,11 +10014,11 @@ var launch = /*#__PURE__*/Object.freeze({
|
|
|
10014
10014
|
|
|
10015
10015
|
const unifiedProviderExecutors = {
|
|
10016
10016
|
claude: async (opts) => {
|
|
10017
|
-
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-
|
|
10017
|
+
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-C6PA0-0n.cjs'); });
|
|
10018
10018
|
await runClaude(opts.credentials, opts.claudeOptions ?? {});
|
|
10019
10019
|
},
|
|
10020
10020
|
codex: async (opts) => {
|
|
10021
|
-
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-
|
|
10021
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-B_TM-cqA.cjs'); });
|
|
10022
10022
|
await runCodex({
|
|
10023
10023
|
credentials: opts.credentials,
|
|
10024
10024
|
startedBy: opts.startedBy,
|
|
@@ -10027,7 +10027,7 @@ const unifiedProviderExecutors = {
|
|
|
10027
10027
|
});
|
|
10028
10028
|
},
|
|
10029
10029
|
gemini: async (opts) => {
|
|
10030
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
10030
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-0-mnECiy.cjs'); });
|
|
10031
10031
|
await runGemini({
|
|
10032
10032
|
credentials: opts.credentials,
|
|
10033
10033
|
startedBy: opts.startedBy
|
|
@@ -10110,7 +10110,7 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
10110
10110
|
return;
|
|
10111
10111
|
} else if (subcommand === "runtime") {
|
|
10112
10112
|
if (args[1] === "providers") {
|
|
10113
|
-
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-
|
|
10113
|
+
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-0ypdkfyo.cjs'); });
|
|
10114
10114
|
console.log(renderRuntimeProviders());
|
|
10115
10115
|
return;
|
|
10116
10116
|
}
|
|
@@ -10288,8 +10288,8 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
10288
10288
|
const projectId = args[3];
|
|
10289
10289
|
try {
|
|
10290
10290
|
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
|
|
10291
|
-
const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-
|
|
10292
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-
|
|
10291
|
+
const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-BlqXzujW.cjs'); });
|
|
10292
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CwRFeZQw.cjs'); }).then(function (n) { return n.api; });
|
|
10293
10293
|
let userEmail = void 0;
|
|
10294
10294
|
try {
|
|
10295
10295
|
const credentials = await readCredentials2();
|
|
@@ -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, k as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, m as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, n as encodeBase64Url, h as delay, o as buildClientHeaders, p as decodeBase64, q as HAPPY_CLOUD_DAEMON_PORT, r as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-
|
|
3
|
-
import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-
|
|
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, p as decodeBase64, q as HAPPY_CLOUD_DAEMON_PORT, r as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-0mR8QJK2.mjs';
|
|
3
|
+
import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-CZEdRTGx.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$1, { homedir } from 'os';
|
|
@@ -9992,11 +9992,11 @@ var launch = /*#__PURE__*/Object.freeze({
|
|
|
9992
9992
|
|
|
9993
9993
|
const unifiedProviderExecutors = {
|
|
9994
9994
|
claude: async (opts) => {
|
|
9995
|
-
const { runClaude } = await import('./runClaude-
|
|
9995
|
+
const { runClaude } = await import('./runClaude-DWeTS-VL.mjs');
|
|
9996
9996
|
await runClaude(opts.credentials, opts.claudeOptions ?? {});
|
|
9997
9997
|
},
|
|
9998
9998
|
codex: async (opts) => {
|
|
9999
|
-
const { runCodex } = await import('./runCodex-
|
|
9999
|
+
const { runCodex } = await import('./runCodex-DUXczsJP.mjs');
|
|
10000
10000
|
await runCodex({
|
|
10001
10001
|
credentials: opts.credentials,
|
|
10002
10002
|
startedBy: opts.startedBy,
|
|
@@ -10005,7 +10005,7 @@ const unifiedProviderExecutors = {
|
|
|
10005
10005
|
});
|
|
10006
10006
|
},
|
|
10007
10007
|
gemini: async (opts) => {
|
|
10008
|
-
const { runGemini } = await import('./runGemini-
|
|
10008
|
+
const { runGemini } = await import('./runGemini-CBpN6a9w.mjs');
|
|
10009
10009
|
await runGemini({
|
|
10010
10010
|
credentials: opts.credentials,
|
|
10011
10011
|
startedBy: opts.startedBy
|
|
@@ -10088,7 +10088,7 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
10088
10088
|
return;
|
|
10089
10089
|
} else if (subcommand === "runtime") {
|
|
10090
10090
|
if (args[1] === "providers") {
|
|
10091
|
-
const { renderRuntimeProviders } = await import('./command-
|
|
10091
|
+
const { renderRuntimeProviders } = await import('./command-Dh_oQxDu.mjs');
|
|
10092
10092
|
console.log(renderRuntimeProviders());
|
|
10093
10093
|
return;
|
|
10094
10094
|
}
|
|
@@ -10266,8 +10266,8 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
10266
10266
|
const projectId = args[3];
|
|
10267
10267
|
try {
|
|
10268
10268
|
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
|
|
10269
|
-
const { readCredentials: readCredentials2 } = await import('./persistence-
|
|
10270
|
-
const { ApiClient: ApiClient2 } = await import('./api-
|
|
10269
|
+
const { readCredentials: readCredentials2 } = await import('./persistence-CZEdRTGx.mjs');
|
|
10270
|
+
const { ApiClient: ApiClient2 } = await import('./api-0mR8QJK2.mjs').then(function (n) { return n.v; });
|
|
10271
10271
|
let userEmail = void 0;
|
|
10272
10272
|
try {
|
|
10273
10273
|
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-
|
|
5
|
-
require('./persistence-
|
|
4
|
+
require('./api-CwRFeZQw.cjs');
|
|
5
|
+
require('./persistence-BlqXzujW.cjs');
|
|
6
6
|
require('zod');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-IkNv7MfY.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-
|
|
3
|
-
import './persistence-
|
|
2
|
+
import './api-0mR8QJK2.mjs';
|
|
3
|
+
import './persistence-CZEdRTGx.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-zIZBoE62.mjs';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'cross-spawn';
|