happy-imou-cloud 2.0.8 → 2.0.9
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/{api-CN-WqYd_.cjs → api-CUTdFiFP.cjs} +2 -2
- package/dist/{api-D-uiH_TF.mjs → api-CnvyGas2.mjs} +2 -2
- package/dist/{command-DGFsZx58.mjs → command-BGA3qCKR.mjs} +3 -3
- package/dist/{command-DjIfRZQS.cjs → command-DLAJZsKX.cjs} +3 -3
- package/dist/{index-DhheEtRl.mjs → index-BpZL4RcT.mjs} +29 -16
- package/dist/{index-DM6z3aeG.cjs → index-D4OdFq68.cjs} +31 -18
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/{names-BjEof0E2.mjs → names-C9iJODqA.mjs} +2 -2
- package/dist/{names-BnV67N_O.cjs → names-YEhZwVT0.cjs} +2 -2
- package/dist/{persistence-DiNg1DPF.mjs → persistence-BPV3AmJL.mjs} +1 -1
- package/dist/{persistence-DBGkO8gB.cjs → persistence-CxvL0cwp.cjs} +1 -1
- package/dist/{registerKillSessionHandler-Cu9rHGsI.mjs → registerKillSessionHandler-C2O8b5wH.mjs} +2 -2
- package/dist/{registerKillSessionHandler-CYc0SIjF.cjs → registerKillSessionHandler-rqd7duc9.cjs} +2 -2
- package/dist/{runClaude-DAR_hw3C.mjs → runClaude-8inO7C5p.mjs} +4 -4
- package/dist/{runClaude-CPhWaFrX.cjs → runClaude-KwIVwFp1.cjs} +5 -5
- package/dist/{runCodex-B4QAb-Go.mjs → runCodex-BQ-fN5E6.mjs} +5 -5
- package/dist/{runCodex--QLrOs8X.cjs → runCodex-Ba8COxZe.cjs} +5 -5
- package/dist/{runGemini-DqowSR2w.mjs → runGemini-BE0FizuV.mjs} +5 -5
- package/dist/{runGemini-CDyhCucw.cjs → runGemini-DtdLLX9o.cjs} +5 -5
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ var path = require('path');
|
|
|
19
19
|
var expoServerSdk = require('expo-server-sdk');
|
|
20
20
|
|
|
21
21
|
var name = "happy-imou-cloud";
|
|
22
|
-
var version = "2.0.
|
|
22
|
+
var version = "2.0.9";
|
|
23
23
|
var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
|
|
24
24
|
var author = "long.zhu";
|
|
25
25
|
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-CxvL0cwp.cjs'); });
|
|
436
436
|
const state = await readDaemonState();
|
|
437
437
|
if (!state) {
|
|
438
438
|
return logs;
|
|
@@ -17,7 +17,7 @@ import { resolve, join as join$1 } from 'path';
|
|
|
17
17
|
import { Expo } from 'expo-server-sdk';
|
|
18
18
|
|
|
19
19
|
var name = "happy-imou-cloud";
|
|
20
|
-
var version = "2.0.
|
|
20
|
+
var version = "2.0.9";
|
|
21
21
|
var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
|
|
22
22
|
var author = "long.zhu";
|
|
23
23
|
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-BPV3AmJL.mjs');
|
|
434
434
|
const state = await readDaemonState();
|
|
435
435
|
if (!state) {
|
|
436
436
|
return logs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createDefaultRuntimeShell } from './index-
|
|
1
|
+
import { c as createDefaultRuntimeShell } from './index-BpZL4RcT.mjs';
|
|
2
2
|
import 'chalk';
|
|
3
|
-
import './api-
|
|
3
|
+
import './api-CnvyGas2.mjs';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'fs';
|
|
6
6
|
import 'node:fs';
|
|
@@ -17,7 +17,7 @@ import 'fs/promises';
|
|
|
17
17
|
import 'crypto';
|
|
18
18
|
import 'path';
|
|
19
19
|
import 'expo-server-sdk';
|
|
20
|
-
import './persistence-
|
|
20
|
+
import './persistence-BPV3AmJL.mjs';
|
|
21
21
|
import 'node:fs/promises';
|
|
22
22
|
import 'os';
|
|
23
23
|
import 'tmp';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D4OdFq68.cjs');
|
|
4
4
|
require('chalk');
|
|
5
|
-
require('./api-
|
|
5
|
+
require('./api-CUTdFiFP.cjs');
|
|
6
6
|
require('axios');
|
|
7
7
|
require('fs');
|
|
8
8
|
require('node:fs');
|
|
@@ -19,7 +19,7 @@ require('fs/promises');
|
|
|
19
19
|
require('crypto');
|
|
20
20
|
require('path');
|
|
21
21
|
require('expo-server-sdk');
|
|
22
|
-
require('./persistence-
|
|
22
|
+
require('./persistence-CxvL0cwp.cjs');
|
|
23
23
|
require('node:fs/promises');
|
|
24
24
|
require('os');
|
|
25
25
|
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, h as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, j as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, k as encodeBase64Url, f as delay, m as buildClientHeaders, n as decodeBase64, H as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, o 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, h as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, j as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, k as encodeBase64Url, f as delay, m as buildClientHeaders, n as decodeBase64, H as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, o as getLatestDaemonLog } from './api-CnvyGas2.mjs';
|
|
3
|
+
import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-BPV3AmJL.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import fs from 'fs/promises';
|
|
6
6
|
import os, { homedir } from 'os';
|
|
@@ -1108,6 +1108,21 @@ function getEnvironmentInfo() {
|
|
|
1108
1108
|
terminal: process.env.TERM
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
+
function resolveDaemonSpawnDiagnostics(projectRoot, fileExists = existsSync) {
|
|
1112
|
+
const wrapperCandidates = [
|
|
1113
|
+
join(projectRoot, "bin", "happy-cloud.mjs"),
|
|
1114
|
+
join(projectRoot, "bin", "happy.mjs")
|
|
1115
|
+
];
|
|
1116
|
+
const cliEntrypoint = join(projectRoot, "dist", "index.mjs");
|
|
1117
|
+
const wrapperPath = wrapperCandidates.find((candidate) => fileExists(candidate)) ?? wrapperCandidates[0];
|
|
1118
|
+
return {
|
|
1119
|
+
projectRoot,
|
|
1120
|
+
wrapperPath,
|
|
1121
|
+
cliEntrypoint,
|
|
1122
|
+
wrapperExists: fileExists(wrapperPath),
|
|
1123
|
+
cliEntrypointExists: fileExists(cliEntrypoint)
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1111
1126
|
function getLogFiles(logDir) {
|
|
1112
1127
|
if (!existsSync(logDir)) {
|
|
1113
1128
|
return [];
|
|
@@ -1134,14 +1149,12 @@ async function runDoctorCommand(filter) {
|
|
|
1134
1149
|
console.log(`Node.js Version: ${chalk.green(process.version)}`);
|
|
1135
1150
|
console.log("");
|
|
1136
1151
|
console.log(chalk.bold("\u{1F527} Daemon Spawn Diagnostics"));
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
console.log(`
|
|
1141
|
-
console.log(`Wrapper
|
|
1142
|
-
console.log(`CLI
|
|
1143
|
-
console.log(`Wrapper Exists: ${existsSync(wrapperPath) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1144
|
-
console.log(`CLI Exists: ${existsSync(cliEntrypoint) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1152
|
+
const diagnostics = resolveDaemonSpawnDiagnostics(projectPath());
|
|
1153
|
+
console.log(`Project Root: ${chalk.blue(diagnostics.projectRoot)}`);
|
|
1154
|
+
console.log(`Wrapper Script: ${chalk.blue(diagnostics.wrapperPath)}`);
|
|
1155
|
+
console.log(`CLI Entrypoint: ${chalk.blue(diagnostics.cliEntrypoint)}`);
|
|
1156
|
+
console.log(`Wrapper Exists: ${diagnostics.wrapperExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1157
|
+
console.log(`CLI Exists: ${diagnostics.cliEntrypointExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1145
1158
|
console.log("");
|
|
1146
1159
|
console.log(chalk.bold("\u2699\uFE0F Configuration"));
|
|
1147
1160
|
console.log(`Happy Home: ${chalk.blue(configuration.happyCloudHomeDir)}`);
|
|
@@ -6908,12 +6921,12 @@ async function ensureUnifiedDaemonStarted() {
|
|
|
6908
6921
|
async function executeUnifiedProvider(opts) {
|
|
6909
6922
|
const credentials = await ensureUnifiedRuntimePrerequisites(opts.credentials);
|
|
6910
6923
|
if (opts.provider === "claude") {
|
|
6911
|
-
const { runClaude } = await import('./runClaude-
|
|
6924
|
+
const { runClaude } = await import('./runClaude-8inO7C5p.mjs');
|
|
6912
6925
|
await runClaude(credentials, opts.claudeOptions ?? {});
|
|
6913
6926
|
return;
|
|
6914
6927
|
}
|
|
6915
6928
|
if (opts.provider === "codex") {
|
|
6916
|
-
const { runCodex } = await import('./runCodex-
|
|
6929
|
+
const { runCodex } = await import('./runCodex-BQ-fN5E6.mjs');
|
|
6917
6930
|
await runCodex({
|
|
6918
6931
|
credentials,
|
|
6919
6932
|
startedBy: opts.startedBy,
|
|
@@ -6923,7 +6936,7 @@ async function executeUnifiedProvider(opts) {
|
|
|
6923
6936
|
return;
|
|
6924
6937
|
}
|
|
6925
6938
|
if (opts.provider === "gemini") {
|
|
6926
|
-
const { runGemini } = await import('./runGemini-
|
|
6939
|
+
const { runGemini } = await import('./runGemini-BE0FizuV.mjs');
|
|
6927
6940
|
await runGemini({
|
|
6928
6941
|
credentials,
|
|
6929
6942
|
startedBy: opts.startedBy
|
|
@@ -6965,7 +6978,7 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
6965
6978
|
return;
|
|
6966
6979
|
} else if (subcommand === "runtime") {
|
|
6967
6980
|
if (args[1] === "providers") {
|
|
6968
|
-
const { renderRuntimeProviders } = await import('./command-
|
|
6981
|
+
const { renderRuntimeProviders } = await import('./command-BGA3qCKR.mjs');
|
|
6969
6982
|
console.log(renderRuntimeProviders());
|
|
6970
6983
|
return;
|
|
6971
6984
|
}
|
|
@@ -7143,8 +7156,8 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
7143
7156
|
const projectId = args[3];
|
|
7144
7157
|
try {
|
|
7145
7158
|
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
|
|
7146
|
-
const { readCredentials: readCredentials2 } = await import('./persistence-
|
|
7147
|
-
const { ApiClient: ApiClient2 } = await import('./api-
|
|
7159
|
+
const { readCredentials: readCredentials2 } = await import('./persistence-BPV3AmJL.mjs');
|
|
7160
|
+
const { ApiClient: ApiClient2 } = await import('./api-CnvyGas2.mjs').then(function (n) { return n.q; });
|
|
7148
7161
|
let userEmail = void 0;
|
|
7149
7162
|
try {
|
|
7150
7163
|
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-CUTdFiFP.cjs');
|
|
5
|
+
var persistence = require('./persistence-CxvL0cwp.cjs');
|
|
6
6
|
var z = require('zod');
|
|
7
7
|
var fs$1 = require('fs/promises');
|
|
8
8
|
var os$1 = require('os');
|
|
@@ -70,7 +70,7 @@ async function openBrowser(url) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
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-
|
|
73
|
+
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-D4OdFq68.cjs', document.baseURI).href)));
|
|
74
74
|
const QRCode = require$1("qrcode-terminal/vendor/QRCode");
|
|
75
75
|
const QRErrorCorrectLevel = require$1("qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel");
|
|
76
76
|
const pendingTempFiles = /* @__PURE__ */ new Set();
|
|
@@ -693,7 +693,7 @@ function setupCleanupHandlers() {
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
696
|
+
const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D4OdFq68.cjs', document.baseURI).href))));
|
|
697
697
|
function projectPath() {
|
|
698
698
|
const path$1 = path.resolve(__dirname$1, "..");
|
|
699
699
|
return path$1;
|
|
@@ -1130,6 +1130,21 @@ function getEnvironmentInfo() {
|
|
|
1130
1130
|
terminal: process.env.TERM
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
|
+
function resolveDaemonSpawnDiagnostics(projectRoot, fileExists = node_fs.existsSync) {
|
|
1134
|
+
const wrapperCandidates = [
|
|
1135
|
+
node_path.join(projectRoot, "bin", "happy-cloud.mjs"),
|
|
1136
|
+
node_path.join(projectRoot, "bin", "happy.mjs")
|
|
1137
|
+
];
|
|
1138
|
+
const cliEntrypoint = node_path.join(projectRoot, "dist", "index.mjs");
|
|
1139
|
+
const wrapperPath = wrapperCandidates.find((candidate) => fileExists(candidate)) ?? wrapperCandidates[0];
|
|
1140
|
+
return {
|
|
1141
|
+
projectRoot,
|
|
1142
|
+
wrapperPath,
|
|
1143
|
+
cliEntrypoint,
|
|
1144
|
+
wrapperExists: fileExists(wrapperPath),
|
|
1145
|
+
cliEntrypointExists: fileExists(cliEntrypoint)
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1133
1148
|
function getLogFiles(logDir) {
|
|
1134
1149
|
if (!node_fs.existsSync(logDir)) {
|
|
1135
1150
|
return [];
|
|
@@ -1156,14 +1171,12 @@ async function runDoctorCommand(filter) {
|
|
|
1156
1171
|
console.log(`Node.js Version: ${chalk.green(process.version)}`);
|
|
1157
1172
|
console.log("");
|
|
1158
1173
|
console.log(chalk.bold("\u{1F527} Daemon Spawn Diagnostics"));
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
console.log(`
|
|
1163
|
-
console.log(`Wrapper
|
|
1164
|
-
console.log(`CLI
|
|
1165
|
-
console.log(`Wrapper Exists: ${node_fs.existsSync(wrapperPath) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1166
|
-
console.log(`CLI Exists: ${node_fs.existsSync(cliEntrypoint) ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1174
|
+
const diagnostics = resolveDaemonSpawnDiagnostics(projectPath());
|
|
1175
|
+
console.log(`Project Root: ${chalk.blue(diagnostics.projectRoot)}`);
|
|
1176
|
+
console.log(`Wrapper Script: ${chalk.blue(diagnostics.wrapperPath)}`);
|
|
1177
|
+
console.log(`CLI Entrypoint: ${chalk.blue(diagnostics.cliEntrypoint)}`);
|
|
1178
|
+
console.log(`Wrapper Exists: ${diagnostics.wrapperExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1179
|
+
console.log(`CLI Exists: ${diagnostics.cliEntrypointExists ? chalk.green("\u2713 Yes") : chalk.red("\u274C No")}`);
|
|
1167
1180
|
console.log("");
|
|
1168
1181
|
console.log(chalk.bold("\u2699\uFE0F Configuration"));
|
|
1169
1182
|
console.log(`Happy Home: ${chalk.blue(api.configuration.happyCloudHomeDir)}`);
|
|
@@ -6930,12 +6943,12 @@ async function ensureUnifiedDaemonStarted() {
|
|
|
6930
6943
|
async function executeUnifiedProvider(opts) {
|
|
6931
6944
|
const credentials = await ensureUnifiedRuntimePrerequisites(opts.credentials);
|
|
6932
6945
|
if (opts.provider === "claude") {
|
|
6933
|
-
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-
|
|
6946
|
+
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-KwIVwFp1.cjs'); });
|
|
6934
6947
|
await runClaude(credentials, opts.claudeOptions ?? {});
|
|
6935
6948
|
return;
|
|
6936
6949
|
}
|
|
6937
6950
|
if (opts.provider === "codex") {
|
|
6938
|
-
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex
|
|
6951
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Ba8COxZe.cjs'); });
|
|
6939
6952
|
await runCodex({
|
|
6940
6953
|
credentials,
|
|
6941
6954
|
startedBy: opts.startedBy,
|
|
@@ -6945,7 +6958,7 @@ async function executeUnifiedProvider(opts) {
|
|
|
6945
6958
|
return;
|
|
6946
6959
|
}
|
|
6947
6960
|
if (opts.provider === "gemini") {
|
|
6948
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
6961
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-DtdLLX9o.cjs'); });
|
|
6949
6962
|
await runGemini({
|
|
6950
6963
|
credentials,
|
|
6951
6964
|
startedBy: opts.startedBy
|
|
@@ -6987,7 +7000,7 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
6987
7000
|
return;
|
|
6988
7001
|
} else if (subcommand === "runtime") {
|
|
6989
7002
|
if (args[1] === "providers") {
|
|
6990
|
-
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-
|
|
7003
|
+
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-DLAJZsKX.cjs'); });
|
|
6991
7004
|
console.log(renderRuntimeProviders());
|
|
6992
7005
|
return;
|
|
6993
7006
|
}
|
|
@@ -7165,8 +7178,8 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
7165
7178
|
const projectId = args[3];
|
|
7166
7179
|
try {
|
|
7167
7180
|
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
|
|
7168
|
-
const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-
|
|
7169
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-
|
|
7181
|
+
const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-CxvL0cwp.cjs'); });
|
|
7182
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CUTdFiFP.cjs'); }).then(function (n) { return n.api; });
|
|
7170
7183
|
let userEmail = void 0;
|
|
7171
7184
|
try {
|
|
7172
7185
|
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-CUTdFiFP.cjs');
|
|
5
|
+
require('./persistence-CxvL0cwp.cjs');
|
|
6
6
|
require('zod');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-D4OdFq68.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-CnvyGas2.mjs';
|
|
3
|
+
import './persistence-BPV3AmJL.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-BpZL4RcT.mjs';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'cross-spawn';
|
package/dist/lib.cjs
CHANGED
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-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-CnvyGas2.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 os from 'node:os';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
-
import { c as configuration, p as packageJson, s as startOfflineReconnection, l as logger } from './api-
|
|
4
|
-
import { p as projectPath } from './index-
|
|
3
|
+
import { c as configuration, p as packageJson, s as startOfflineReconnection, l as logger } from './api-CnvyGas2.mjs';
|
|
4
|
+
import { p as projectPath } from './index-BpZL4RcT.mjs';
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
6
|
import { randomUUID } from 'node:crypto';
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var os = require('node:os');
|
|
4
4
|
var node_path = require('node:path');
|
|
5
|
-
var api = require('./api-
|
|
6
|
-
var index = require('./index-
|
|
5
|
+
var api = require('./api-CUTdFiFP.cjs');
|
|
6
|
+
var index = require('./index-D4OdFq68.cjs');
|
|
7
7
|
var node_events = require('node:events');
|
|
8
8
|
var node_crypto = require('node:crypto');
|
|
9
9
|
|
|
@@ -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-
|
|
4
|
+
import { c as configuration, l as logger, e as encodeBase64 } from './api-CnvyGas2.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 node_fs = require('node:fs');
|
|
5
5
|
var node_path = require('node:path');
|
|
6
|
-
var api = require('./api-
|
|
6
|
+
var api = require('./api-CUTdFiFP.cjs');
|
|
7
7
|
var z = require('zod');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('chalk');
|
package/dist/{registerKillSessionHandler-Cu9rHGsI.mjs → registerKillSessionHandler-C2O8b5wH.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as formatDisplayMessage } from './index-
|
|
2
|
-
import { l as logger } from './api-
|
|
1
|
+
import { f as formatDisplayMessage } from './index-BpZL4RcT.mjs';
|
|
2
|
+
import { l as logger } from './api-CnvyGas2.mjs';
|
|
3
3
|
import { createHash } from 'crypto';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'node:events';
|
package/dist/{registerKillSessionHandler-CYc0SIjF.cjs → registerKillSessionHandler-rqd7duc9.cjs}
RENAMED
|
@@ -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-D4OdFq68.cjs');
|
|
4
|
+
var api = require('./api-CUTdFiFP.cjs');
|
|
5
5
|
var crypto = require('crypto');
|
|
6
6
|
require('axios');
|
|
7
7
|
require('node:events');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import os, { homedir } from 'node:os';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { l as logger, d as backoff, f as delay, g as AsyncLock, c as configuration, b as connectionState, A as ApiClient, p as packageJson, i as isAuthenticationRequiredError, s as startOfflineReconnection } from './api-
|
|
4
|
-
import { e as getProjectPath, h as claudeLocal, E as ExitCodeError, j as isBun, k as trimIdent, l as claudeCheckSession, p as projectPath, m as getEnvironmentInfo, i as initialMachineMetadata, b as stopCaffeinate, n as notifyDaemonSessionStarted, o as startCaffeinate } from './index-
|
|
3
|
+
import { l as logger, d as backoff, f as delay, g as AsyncLock, c as configuration, b as connectionState, A as ApiClient, p as packageJson, i as isAuthenticationRequiredError, s as startOfflineReconnection } from './api-CnvyGas2.mjs';
|
|
4
|
+
import { e as getProjectPath, h as claudeLocal, E as ExitCodeError, j as isBun, k as trimIdent, l as claudeCheckSession, p as projectPath, m as getEnvironmentInfo, i as initialMachineMetadata, b as stopCaffeinate, n as notifyDaemonSessionStarted, o as startCaffeinate } from './index-BpZL4RcT.mjs';
|
|
5
5
|
import { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
|
|
6
6
|
import { dirname, basename, join, resolve } from 'node:path';
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
8
8
|
import { stat, watch, access } from 'fs/promises';
|
|
9
9
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
10
|
-
import { a as MessageBuffer, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler } from './registerKillSessionHandler-
|
|
10
|
+
import { a as MessageBuffer, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler } from './registerKillSessionHandler-C2O8b5wH.mjs';
|
|
11
11
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
12
12
|
import { execSync, spawn } from 'node:child_process';
|
|
13
13
|
import { createInterface } from 'node:readline';
|
|
@@ -20,7 +20,7 @@ import 'tweetnacl';
|
|
|
20
20
|
import 'expo-server-sdk';
|
|
21
21
|
import 'chalk';
|
|
22
22
|
import { isDeepStrictEqual } from 'node:util';
|
|
23
|
-
import { readSettings } from './persistence-
|
|
23
|
+
import { readSettings } from './persistence-BPV3AmJL.mjs';
|
|
24
24
|
import { createServer } from 'node:http';
|
|
25
25
|
import 'fs';
|
|
26
26
|
import 'zod';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var os = require('node:os');
|
|
4
4
|
var node_crypto = require('node:crypto');
|
|
5
|
-
var api = require('./api-
|
|
6
|
-
var index = require('./index-
|
|
5
|
+
var api = require('./api-CUTdFiFP.cjs');
|
|
6
|
+
var index = require('./index-D4OdFq68.cjs');
|
|
7
7
|
var types = require('./types-DVk3crez.cjs');
|
|
8
8
|
var node_path = require('node:path');
|
|
9
9
|
var promises = require('node:fs/promises');
|
|
10
10
|
var fs = require('fs/promises');
|
|
11
11
|
var ink = require('ink');
|
|
12
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
12
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-rqd7duc9.cjs');
|
|
13
13
|
var React = require('react');
|
|
14
14
|
var node_child_process = require('node:child_process');
|
|
15
15
|
var node_readline = require('node:readline');
|
|
@@ -22,7 +22,7 @@ require('tweetnacl');
|
|
|
22
22
|
require('expo-server-sdk');
|
|
23
23
|
require('chalk');
|
|
24
24
|
var node_util = require('node:util');
|
|
25
|
-
var persistence = require('./persistence-
|
|
25
|
+
var persistence = require('./persistence-CxvL0cwp.cjs');
|
|
26
26
|
var node_http = require('node:http');
|
|
27
27
|
require('fs');
|
|
28
28
|
require('zod');
|
|
@@ -937,7 +937,7 @@ class AbortError extends Error {
|
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
-
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('runClaude-
|
|
940
|
+
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('runClaude-KwIVwFp1.cjs', document.baseURI).href)));
|
|
941
941
|
const __dirname$1 = node_path.join(__filename$1, "..");
|
|
942
942
|
function getGlobalClaudeVersion() {
|
|
943
943
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { l as logger, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-
|
|
3
|
-
import { readSettings } from './persistence-
|
|
4
|
-
import { f as formatDisplayMessage, v as validateCodexAcpSpawn, d as createCodexBackend, t as truncateDisplayMessage, b as stopCaffeinate, i as initialMachineMetadata, n as notifyDaemonSessionStarted } from './index-
|
|
5
|
-
import { B as BasePermissionHandler, g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, d as INTERACTION_TIMED_OUT_ERROR, a as BaseReasoningProcessor, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError, c as createSessionMetadata, s as setupOfflineReconnection } from './names-
|
|
6
|
-
import { h as hashObject, a as MessageBuffer, r as registerKillSessionHandler, M as MessageQueue2 } from './registerKillSessionHandler-
|
|
2
|
+
import { l as logger, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-CnvyGas2.mjs';
|
|
3
|
+
import { readSettings } from './persistence-BPV3AmJL.mjs';
|
|
4
|
+
import { f as formatDisplayMessage, v as validateCodexAcpSpawn, d as createCodexBackend, t as truncateDisplayMessage, b as stopCaffeinate, i as initialMachineMetadata, n as notifyDaemonSessionStarted } from './index-BpZL4RcT.mjs';
|
|
5
|
+
import { B as BasePermissionHandler, g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, d as INTERACTION_TIMED_OUT_ERROR, a as BaseReasoningProcessor, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError, c as createSessionMetadata, s as setupOfflineReconnection } from './names-C9iJODqA.mjs';
|
|
6
|
+
import { h as hashObject, a as MessageBuffer, r as registerKillSessionHandler, M as MessageQueue2 } from './registerKillSessionHandler-C2O8b5wH.mjs';
|
|
7
7
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
8
8
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
9
9
|
import 'axios';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var node_crypto = require('node:crypto');
|
|
4
|
-
var api = require('./api-
|
|
5
|
-
var persistence = require('./persistence-
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var names = require('./names-
|
|
8
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
4
|
+
var api = require('./api-CUTdFiFP.cjs');
|
|
5
|
+
var persistence = require('./persistence-CxvL0cwp.cjs');
|
|
6
|
+
var index = require('./index-D4OdFq68.cjs');
|
|
7
|
+
var names = require('./names-YEhZwVT0.cjs');
|
|
8
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-rqd7duc9.cjs');
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var ink = require('ink');
|
|
11
11
|
require('axios');
|
|
@@ -1,11 +1,11 @@
|
|
|
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, i as isAuthenticationRequiredError } from './api-
|
|
5
|
-
import { readSettings } from './persistence-
|
|
6
|
-
import { B as BasePermissionHandler, a as BaseReasoningProcessor, c as createSessionMetadata, s as setupOfflineReconnection, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError } from './names-
|
|
7
|
-
import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, s as saveGeminiModelToConfig, a as createGeminiBackend, b as stopCaffeinate } from './index-
|
|
8
|
-
import { M as MessageQueue2, h as hashObject, a as MessageBuffer, r as registerKillSessionHandler } from './registerKillSessionHandler-
|
|
4
|
+
import { l as logger, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-CnvyGas2.mjs';
|
|
5
|
+
import { readSettings } from './persistence-BPV3AmJL.mjs';
|
|
6
|
+
import { B as BasePermissionHandler, a as BaseReasoningProcessor, c as createSessionMetadata, s as setupOfflineReconnection, b as attachToolHappierMetaV2, r as resolveCanonicalToolNameV2, i as inferToolResultError } from './names-C9iJODqA.mjs';
|
|
7
|
+
import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, s as saveGeminiModelToConfig, a as createGeminiBackend, b as stopCaffeinate } from './index-BpZL4RcT.mjs';
|
|
8
|
+
import { M as MessageQueue2, h as hashObject, a as MessageBuffer, r as registerKillSessionHandler } from './registerKillSessionHandler-C2O8b5wH.mjs';
|
|
9
9
|
import 'axios';
|
|
10
10
|
import 'chalk';
|
|
11
11
|
import 'fs';
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var ink = require('ink');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var api = require('./api-
|
|
7
|
-
var persistence = require('./persistence-
|
|
8
|
-
var names = require('./names-
|
|
9
|
-
var index = require('./index-
|
|
10
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
6
|
+
var api = require('./api-CUTdFiFP.cjs');
|
|
7
|
+
var persistence = require('./persistence-CxvL0cwp.cjs');
|
|
8
|
+
var names = require('./names-YEhZwVT0.cjs');
|
|
9
|
+
var index = require('./index-D4OdFq68.cjs');
|
|
10
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-rqd7duc9.cjs');
|
|
11
11
|
require('axios');
|
|
12
12
|
require('chalk');
|
|
13
13
|
require('fs');
|