happy-imou-cloud 2.0.20 → 2.0.21
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/dist/{BaseReasoningProcessor-B9z785Pi.cjs → BaseReasoningProcessor-0nj-PMFc.cjs} +3 -3
- package/dist/{BaseReasoningProcessor-iTk5q5Vy.mjs → BaseReasoningProcessor-DnVC7liC.mjs} +3 -3
- package/dist/{ProviderSelectionHandler-DUBEXkmo.cjs → ProviderSelectionHandler-Bafuy28L.cjs} +2 -2
- package/dist/{ProviderSelectionHandler-s79sTquD.mjs → ProviderSelectionHandler-R-2r7ItM.mjs} +2 -2
- package/dist/{api-_Y2kzqZL.mjs → api-DJe9WP9M.mjs} +77 -4
- package/dist/{api-BKnzORe4.cjs → api-MGlKcEf3.cjs} +78 -3
- package/dist/{command-BDkgHdQU.mjs → command-CfyFnMv2.mjs} +3 -3
- package/dist/{command-BBNzMWEG.cjs → command-DAlFmWmr.cjs} +3 -3
- package/dist/{index-Bg4KLXYY.mjs → index-CHXCgpwi.mjs} +8 -8
- package/dist/{index-0TIyXMQu.cjs → index-CgVjDJpt.cjs} +11 -11
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +393 -36
- package/dist/lib.d.mts +393 -36
- package/dist/lib.mjs +1 -1
- package/dist/{persistence-BCkHc68b.mjs → persistence-CkP90vEt.mjs} +1 -1
- package/dist/{persistence-D5uolhHo.cjs → persistence-DLFUNI9q.cjs} +1 -1
- package/dist/{registerKillSessionHandler-BMUE5Oaj.cjs → registerKillSessionHandler-Cs_INk4A.cjs} +356 -3
- package/dist/{registerKillSessionHandler-DJMH-gar.mjs → registerKillSessionHandler-DsHTZDsU.mjs} +354 -4
- package/dist/{runClaude-BUhD2jR2.cjs → runClaude-BGSgcyUp.cjs} +72 -9
- package/dist/{runClaude-BMv-eao6.mjs → runClaude-DAQAEmHe.mjs} +72 -9
- package/dist/{runCodex-DwnLnXWK.mjs → runCodex-B2UpSn82.mjs} +84 -14
- package/dist/{runCodex-DyNSDN6X.cjs → runCodex-earICaxw.cjs} +84 -14
- package/dist/{runGemini-uVHDcJ09.mjs → runGemini-BBUmH1Qh.mjs} +73 -9
- package/dist/{runGemini-UKpRbyNY.cjs → runGemini-D5RAIaR0.cjs} +73 -9
- package/package.json +1 -1
- package/scripts/release-smoke.mjs +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var api = require('./api-
|
|
5
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
3
|
+
var index = require('./index-CgVjDJpt.cjs');
|
|
4
|
+
var api = require('./api-MGlKcEf3.cjs');
|
|
5
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-Cs_INk4A.cjs');
|
|
6
6
|
var node_events = require('node:events');
|
|
7
7
|
var node_crypto = require('node:crypto');
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as publishSessionRegistration } from './index-
|
|
2
|
-
import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-
|
|
3
|
-
import { c as createSessionMetadata } from './registerKillSessionHandler-
|
|
1
|
+
import { p as publishSessionRegistration } from './index-CHXCgpwi.mjs';
|
|
2
|
+
import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-DJe9WP9M.mjs';
|
|
3
|
+
import { c as createSessionMetadata } from './registerKillSessionHandler-DsHTZDsU.mjs';
|
|
4
4
|
import { EventEmitter } from 'node:events';
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
6
6
|
|
package/dist/{ProviderSelectionHandler-DUBEXkmo.cjs → ProviderSelectionHandler-Bafuy28L.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-MGlKcEf3.cjs');
|
|
4
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-Cs_INk4A.cjs');
|
|
5
5
|
|
|
6
6
|
async function runModeLoop(opts) {
|
|
7
7
|
let currentMode = opts.startingMode;
|
package/dist/{ProviderSelectionHandler-s79sTquD.mjs → ProviderSelectionHandler-R-2r7ItM.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-DJe9WP9M.mjs';
|
|
2
|
+
import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-DsHTZDsU.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.0.
|
|
19
|
+
var version = "2.0.21";
|
|
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-
|
|
433
|
+
const { readDaemonState } = await import('./persistence-CkP90vEt.mjs');
|
|
434
434
|
const state = await readDaemonState();
|
|
435
435
|
if (!state) {
|
|
436
436
|
return logs;
|
|
@@ -564,6 +564,77 @@ function decrypt(key, variant, data) {
|
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
+
const HAPPY_ORG_REPEAT_THRESHOLD = 3;
|
|
568
|
+
const HAPPY_ORG_TURN_REPORT_TAG = "HAPPY_TURN_REPORT";
|
|
569
|
+
const HappyOrgInterventionTypeSchema = z.enum([
|
|
570
|
+
"none",
|
|
571
|
+
"review_needed",
|
|
572
|
+
"blocker",
|
|
573
|
+
"decision_needed"
|
|
574
|
+
]);
|
|
575
|
+
const HappyOrgTurnStatusSchema = z.enum([
|
|
576
|
+
"task_complete",
|
|
577
|
+
"turn_aborted"
|
|
578
|
+
]);
|
|
579
|
+
const HappyOrgTaskContextSchema = z.object({
|
|
580
|
+
taskId: z.string().min(1),
|
|
581
|
+
organizationId: z.string().min(1),
|
|
582
|
+
memberAgentId: z.string().min(1),
|
|
583
|
+
supervisorAgentId: z.string().min(1)
|
|
584
|
+
});
|
|
585
|
+
const HappyOrgTaskControlSchema = z.object({
|
|
586
|
+
action: z.enum(["terminate", "reopen"]),
|
|
587
|
+
reason: z.string().min(1).optional().nullable(),
|
|
588
|
+
newContext: z.string().min(1).optional().nullable(),
|
|
589
|
+
newDecision: z.string().min(1).optional().nullable(),
|
|
590
|
+
newResource: z.string().min(1).optional().nullable()
|
|
591
|
+
});
|
|
592
|
+
const HappyOrgMessageMetaSchema = z.object({
|
|
593
|
+
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
594
|
+
control: HappyOrgTaskControlSchema.optional()
|
|
595
|
+
});
|
|
596
|
+
z.object({
|
|
597
|
+
summary: z.string().optional().nullable(),
|
|
598
|
+
interventionType: HappyOrgInterventionTypeSchema.optional().nullable(),
|
|
599
|
+
blockerCode: z.string().optional().nullable(),
|
|
600
|
+
decisionNeeded: z.string().optional().nullable(),
|
|
601
|
+
targetArtifact: z.string().optional().nullable()
|
|
602
|
+
});
|
|
603
|
+
const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
|
|
604
|
+
turnStatus: HappyOrgTurnStatusSchema,
|
|
605
|
+
interventionType: HappyOrgInterventionTypeSchema,
|
|
606
|
+
summary: z.string(),
|
|
607
|
+
blockerCode: z.string().nullable(),
|
|
608
|
+
decisionNeeded: z.string().nullable(),
|
|
609
|
+
targetArtifact: z.string().nullable(),
|
|
610
|
+
repeatFingerprint: z.string().nullable()
|
|
611
|
+
});
|
|
612
|
+
const HappyOrgRepeatEntrySchema = z.object({
|
|
613
|
+
count: z.number().int().nonnegative(),
|
|
614
|
+
lastSeenAt: z.number().int().nonnegative()
|
|
615
|
+
});
|
|
616
|
+
const HappyOrgRuntimeStateSchema = z.object({
|
|
617
|
+
status: z.enum(["active", "terminated"]),
|
|
618
|
+
reason: z.string().optional().nullable(),
|
|
619
|
+
terminatedAt: z.number().int().nonnegative().optional(),
|
|
620
|
+
reopenedAt: z.number().int().nonnegative().optional()
|
|
621
|
+
});
|
|
622
|
+
const HappyOrgTaskOwnershipSchema = z.object({
|
|
623
|
+
ownerAgentId: z.string().min(1),
|
|
624
|
+
ownerRunId: z.string().min(1),
|
|
625
|
+
claimedAt: z.number().int().nonnegative()
|
|
626
|
+
});
|
|
627
|
+
z.object({
|
|
628
|
+
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
629
|
+
runtime: HappyOrgRuntimeStateSchema.optional(),
|
|
630
|
+
activeOwner: HappyOrgTaskOwnershipSchema.nullish(),
|
|
631
|
+
repeat: z.object({
|
|
632
|
+
threshold: z.number().int().positive(),
|
|
633
|
+
fingerprints: z.record(z.string(), HappyOrgRepeatEntrySchema)
|
|
634
|
+
}).optional(),
|
|
635
|
+
lastTurnReport: HappyOrgTurnReportSchema.optional()
|
|
636
|
+
});
|
|
637
|
+
|
|
567
638
|
const SessionRuntimeIndexSchema = z.object({
|
|
568
639
|
machineId: z.string().nullish(),
|
|
569
640
|
hostPid: z.number().int().nullish(),
|
|
@@ -789,8 +860,9 @@ const MessageMetaSchema = z.object({
|
|
|
789
860
|
// Append to system prompt for this message (null = reset)
|
|
790
861
|
allowedTools: z.array(z.string()).nullable().optional(),
|
|
791
862
|
// Allowed tools for this message (null = reset)
|
|
792
|
-
disallowedTools: z.array(z.string()).nullable().optional()
|
|
863
|
+
disallowedTools: z.array(z.string()).nullable().optional(),
|
|
793
864
|
// Disallowed tools for this message (null = reset)
|
|
865
|
+
happyOrg: HappyOrgMessageMetaSchema.optional()
|
|
794
866
|
});
|
|
795
867
|
z.object({
|
|
796
868
|
session: z.object({
|
|
@@ -2381,6 +2453,7 @@ class ApiSessionClient extends EventEmitter {
|
|
|
2381
2453
|
case "task_started":
|
|
2382
2454
|
case "task_complete":
|
|
2383
2455
|
case "turn_aborted":
|
|
2456
|
+
case "turn-report":
|
|
2384
2457
|
return true;
|
|
2385
2458
|
default:
|
|
2386
2459
|
return false;
|
|
@@ -3540,4 +3613,4 @@ var api = /*#__PURE__*/Object.freeze({
|
|
|
3540
3613
|
ApiClient: ApiClient
|
|
3541
3614
|
});
|
|
3542
3615
|
|
|
3543
|
-
export { ApiClient as A,
|
|
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 };
|
|
@@ -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
|
+
var version = "2.0.21";
|
|
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-
|
|
435
|
+
const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-DLFUNI9q.cjs'); });
|
|
436
436
|
const state = await readDaemonState();
|
|
437
437
|
if (!state) {
|
|
438
438
|
return logs;
|
|
@@ -566,6 +566,77 @@ function decrypt(key, variant, data) {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
+
const HAPPY_ORG_REPEAT_THRESHOLD = 3;
|
|
570
|
+
const HAPPY_ORG_TURN_REPORT_TAG = "HAPPY_TURN_REPORT";
|
|
571
|
+
const HappyOrgInterventionTypeSchema = z.z.enum([
|
|
572
|
+
"none",
|
|
573
|
+
"review_needed",
|
|
574
|
+
"blocker",
|
|
575
|
+
"decision_needed"
|
|
576
|
+
]);
|
|
577
|
+
const HappyOrgTurnStatusSchema = z.z.enum([
|
|
578
|
+
"task_complete",
|
|
579
|
+
"turn_aborted"
|
|
580
|
+
]);
|
|
581
|
+
const HappyOrgTaskContextSchema = z.z.object({
|
|
582
|
+
taskId: z.z.string().min(1),
|
|
583
|
+
organizationId: z.z.string().min(1),
|
|
584
|
+
memberAgentId: z.z.string().min(1),
|
|
585
|
+
supervisorAgentId: z.z.string().min(1)
|
|
586
|
+
});
|
|
587
|
+
const HappyOrgTaskControlSchema = z.z.object({
|
|
588
|
+
action: z.z.enum(["terminate", "reopen"]),
|
|
589
|
+
reason: z.z.string().min(1).optional().nullable(),
|
|
590
|
+
newContext: z.z.string().min(1).optional().nullable(),
|
|
591
|
+
newDecision: z.z.string().min(1).optional().nullable(),
|
|
592
|
+
newResource: z.z.string().min(1).optional().nullable()
|
|
593
|
+
});
|
|
594
|
+
const HappyOrgMessageMetaSchema = z.z.object({
|
|
595
|
+
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
596
|
+
control: HappyOrgTaskControlSchema.optional()
|
|
597
|
+
});
|
|
598
|
+
z.z.object({
|
|
599
|
+
summary: z.z.string().optional().nullable(),
|
|
600
|
+
interventionType: HappyOrgInterventionTypeSchema.optional().nullable(),
|
|
601
|
+
blockerCode: z.z.string().optional().nullable(),
|
|
602
|
+
decisionNeeded: z.z.string().optional().nullable(),
|
|
603
|
+
targetArtifact: z.z.string().optional().nullable()
|
|
604
|
+
});
|
|
605
|
+
const HappyOrgTurnReportSchema = HappyOrgTaskContextSchema.extend({
|
|
606
|
+
turnStatus: HappyOrgTurnStatusSchema,
|
|
607
|
+
interventionType: HappyOrgInterventionTypeSchema,
|
|
608
|
+
summary: z.z.string(),
|
|
609
|
+
blockerCode: z.z.string().nullable(),
|
|
610
|
+
decisionNeeded: z.z.string().nullable(),
|
|
611
|
+
targetArtifact: z.z.string().nullable(),
|
|
612
|
+
repeatFingerprint: z.z.string().nullable()
|
|
613
|
+
});
|
|
614
|
+
const HappyOrgRepeatEntrySchema = z.z.object({
|
|
615
|
+
count: z.z.number().int().nonnegative(),
|
|
616
|
+
lastSeenAt: z.z.number().int().nonnegative()
|
|
617
|
+
});
|
|
618
|
+
const HappyOrgRuntimeStateSchema = z.z.object({
|
|
619
|
+
status: z.z.enum(["active", "terminated"]),
|
|
620
|
+
reason: z.z.string().optional().nullable(),
|
|
621
|
+
terminatedAt: z.z.number().int().nonnegative().optional(),
|
|
622
|
+
reopenedAt: z.z.number().int().nonnegative().optional()
|
|
623
|
+
});
|
|
624
|
+
const HappyOrgTaskOwnershipSchema = z.z.object({
|
|
625
|
+
ownerAgentId: z.z.string().min(1),
|
|
626
|
+
ownerRunId: z.z.string().min(1),
|
|
627
|
+
claimedAt: z.z.number().int().nonnegative()
|
|
628
|
+
});
|
|
629
|
+
z.z.object({
|
|
630
|
+
taskContext: HappyOrgTaskContextSchema.optional(),
|
|
631
|
+
runtime: HappyOrgRuntimeStateSchema.optional(),
|
|
632
|
+
activeOwner: HappyOrgTaskOwnershipSchema.nullish(),
|
|
633
|
+
repeat: z.z.object({
|
|
634
|
+
threshold: z.z.number().int().positive(),
|
|
635
|
+
fingerprints: z.z.record(z.z.string(), HappyOrgRepeatEntrySchema)
|
|
636
|
+
}).optional(),
|
|
637
|
+
lastTurnReport: HappyOrgTurnReportSchema.optional()
|
|
638
|
+
});
|
|
639
|
+
|
|
569
640
|
const SessionRuntimeIndexSchema = z.z.object({
|
|
570
641
|
machineId: z.z.string().nullish(),
|
|
571
642
|
hostPid: z.z.number().int().nullish(),
|
|
@@ -791,8 +862,9 @@ const MessageMetaSchema = z.z.object({
|
|
|
791
862
|
// Append to system prompt for this message (null = reset)
|
|
792
863
|
allowedTools: z.z.array(z.z.string()).nullable().optional(),
|
|
793
864
|
// Allowed tools for this message (null = reset)
|
|
794
|
-
disallowedTools: z.z.array(z.z.string()).nullable().optional()
|
|
865
|
+
disallowedTools: z.z.array(z.z.string()).nullable().optional(),
|
|
795
866
|
// Disallowed tools for this message (null = reset)
|
|
867
|
+
happyOrg: HappyOrgMessageMetaSchema.optional()
|
|
796
868
|
});
|
|
797
869
|
z.z.object({
|
|
798
870
|
session: z.z.object({
|
|
@@ -2383,6 +2455,7 @@ class ApiSessionClient extends node_events.EventEmitter {
|
|
|
2383
2455
|
case "task_started":
|
|
2384
2456
|
case "task_complete":
|
|
2385
2457
|
case "turn_aborted":
|
|
2458
|
+
case "turn-report":
|
|
2386
2459
|
return true;
|
|
2387
2460
|
default:
|
|
2388
2461
|
return false;
|
|
@@ -3546,6 +3619,8 @@ exports.ApiClient = ApiClient;
|
|
|
3546
3619
|
exports.ApiSessionClient = ApiSessionClient;
|
|
3547
3620
|
exports.AsyncLock = AsyncLock;
|
|
3548
3621
|
exports.HAPPY_CLOUD_DAEMON_PORT = HAPPY_CLOUD_DAEMON_PORT;
|
|
3622
|
+
exports.HAPPY_ORG_REPEAT_THRESHOLD = HAPPY_ORG_REPEAT_THRESHOLD;
|
|
3623
|
+
exports.HAPPY_ORG_TURN_REPORT_TAG = HAPPY_ORG_TURN_REPORT_TAG;
|
|
3549
3624
|
exports.HeadTailPreviewBuffer = HeadTailPreviewBuffer;
|
|
3550
3625
|
exports.SIGNING_BOOTSTRAP_REQUIRED_MESSAGE = SIGNING_BOOTSTRAP_REQUIRED_MESSAGE;
|
|
3551
3626
|
exports.SigningBootstrapRequiredError = SigningBootstrapRequiredError;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createDefaultRuntimeShell } from './index-
|
|
1
|
+
import { c as createDefaultRuntimeShell } from './index-CHXCgpwi.mjs';
|
|
2
2
|
import 'chalk';
|
|
3
|
-
import './api-
|
|
3
|
+
import './api-DJe9WP9M.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-CkP90vEt.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-
|
|
3
|
+
var index = require('./index-CgVjDJpt.cjs');
|
|
4
4
|
require('chalk');
|
|
5
|
-
require('./api-
|
|
5
|
+
require('./api-MGlKcEf3.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-DLFUNI9q.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,
|
|
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, 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';
|
|
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-
|
|
8977
|
+
const { runClaude } = await import('./runClaude-DAQAEmHe.mjs');
|
|
8978
8978
|
await runClaude(opts.credentials, opts.claudeOptions ?? {});
|
|
8979
8979
|
},
|
|
8980
8980
|
codex: async (opts) => {
|
|
8981
|
-
const { runCodex } = await import('./runCodex-
|
|
8981
|
+
const { runCodex } = await import('./runCodex-B2UpSn82.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-
|
|
8990
|
+
const { runGemini } = await import('./runGemini-BBUmH1Qh.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-
|
|
9066
|
+
const { renderRuntimeProviders } = await import('./command-CfyFnMv2.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-
|
|
9245
|
-
const { ApiClient: ApiClient2 } = await import('./api-
|
|
9244
|
+
const { readCredentials: readCredentials2 } = await import('./persistence-CkP90vEt.mjs');
|
|
9245
|
+
const { ApiClient: ApiClient2 } = await import('./api-DJe9WP9M.mjs').then(function (n) { return n.u; });
|
|
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-
|
|
5
|
-
var persistence = require('./persistence-
|
|
4
|
+
var api = require('./api-MGlKcEf3.cjs');
|
|
5
|
+
var persistence = require('./persistence-DLFUNI9q.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-CgVjDJpt.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-CgVjDJpt.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-
|
|
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)));
|
|
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-
|
|
8999
|
+
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-BGSgcyUp.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-
|
|
9003
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-earICaxw.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-
|
|
9012
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-D5RAIaR0.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-
|
|
9088
|
+
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-DAlFmWmr.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-
|
|
9267
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-
|
|
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; });
|
|
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-
|
|
5
|
-
require('./persistence-
|
|
4
|
+
require('./api-MGlKcEf3.cjs');
|
|
5
|
+
require('./persistence-DLFUNI9q.cjs');
|
|
6
6
|
require('zod');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-CgVjDJpt.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-DJe9WP9M.mjs';
|
|
3
|
+
import './persistence-CkP90vEt.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-CHXCgpwi.mjs';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'cross-spawn';
|