@zhigang1992/happy-cli 0.13.7 → 0.13.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/{index-pL_ungbb.cjs → index-BpSLeHcW.cjs} +5 -5
- package/dist/{index-BfZGZNIf.mjs → index-GQ9EasMu.mjs} +4 -4
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/{list-MUmi4ZF2.mjs → list-Lp972nwz.mjs} +1 -1
- package/dist/{list-BFBIw5l1.cjs → list-RgcDN0C0.cjs} +1 -1
- package/dist/{prompt-C8uOM9BM.mjs → prompt-BPehYWlE.mjs} +1 -1
- package/dist/{prompt-TC7YWFCb.cjs → prompt-Bb5xD1Xl.cjs} +1 -1
- package/dist/{runCodex-DWxgaq32.cjs → runCodex-BXOAacnj.cjs} +2 -2
- package/dist/{runCodex-CAH8Q5j0.mjs → runCodex-CgW9cBS9.mjs} +2 -2
- package/dist/{types-D5Yw1ZVE.mjs → types-CPYxEUyu.mjs} +1 -1
- package/dist/{types-rIsjYnBh.cjs → types-DysMExRA.cjs} +2 -2
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var types = require('./types-
|
|
6
|
+
var types = require('./types-DysMExRA.cjs');
|
|
7
7
|
var node_child_process = require('node:child_process');
|
|
8
8
|
var node_path = require('node:path');
|
|
9
9
|
var node_readline = require('node:readline');
|
|
@@ -1184,7 +1184,7 @@ class AbortError extends Error {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
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-
|
|
1187
|
+
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-BpSLeHcW.cjs', document.baseURI).href)));
|
|
1188
1188
|
const __dirname$1 = node_path.join(__filename$1, "..");
|
|
1189
1189
|
function getGlobalClaudeVersion() {
|
|
1190
1190
|
try {
|
|
@@ -7048,7 +7048,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
7048
7048
|
return;
|
|
7049
7049
|
} else if (subcommand === "codex") {
|
|
7050
7050
|
try {
|
|
7051
|
-
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-
|
|
7051
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-BXOAacnj.cjs'); });
|
|
7052
7052
|
let startedBy = void 0;
|
|
7053
7053
|
for (let i = 1; i < args.length; i++) {
|
|
7054
7054
|
if (args[i] === "--started-by") {
|
|
@@ -7093,7 +7093,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
7093
7093
|
} else if (subcommand === "list") {
|
|
7094
7094
|
try {
|
|
7095
7095
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
7096
|
-
const { listSessions } = await Promise.resolve().then(function () { return require('./list-
|
|
7096
|
+
const { listSessions } = await Promise.resolve().then(function () { return require('./list-RgcDN0C0.cjs'); });
|
|
7097
7097
|
let sessionId;
|
|
7098
7098
|
let titleFilter;
|
|
7099
7099
|
let recentMsgs;
|
|
@@ -7195,7 +7195,7 @@ Examples:
|
|
|
7195
7195
|
process.exit(1);
|
|
7196
7196
|
}
|
|
7197
7197
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
7198
|
-
const { promptSession } = await Promise.resolve().then(function () { return require('./prompt-
|
|
7198
|
+
const { promptSession } = await Promise.resolve().then(function () { return require('./prompt-Bb5xD1Xl.cjs'); });
|
|
7199
7199
|
await promptSession(credentials, sessionId, promptText, timeoutMinutes ?? void 0);
|
|
7200
7200
|
} catch (error) {
|
|
7201
7201
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import os$1, { homedir } from 'node:os';
|
|
3
3
|
import { randomUUID, randomBytes, createHmac } from 'node:crypto';
|
|
4
|
-
import { l as logger, p as projectPath, j as backoff, k as delay, R as RawJSONLinesSchema, m as AsyncLock, c as configuration, n as readDaemonState, o as clearDaemonState, i as packageJson, r as readSettings, q as readCredentials, g as encodeBase64, u as updateSettings, s as encodeBase64Url, d as decodeBase64, w as writeCredentialsLegacy, t as writeCredentialsDataKey, v as acquireDaemonLock, x as writeDaemonState, A as ApiClient, y as releaseDaemonLock, z as authChallenge, B as clearCredentials, C as clearMachineId, D as getLatestDaemonLog } from './types-
|
|
4
|
+
import { l as logger, p as projectPath, j as backoff, k as delay, R as RawJSONLinesSchema, m as AsyncLock, c as configuration, n as readDaemonState, o as clearDaemonState, i as packageJson, r as readSettings, q as readCredentials, g as encodeBase64, u as updateSettings, s as encodeBase64Url, d as decodeBase64, w as writeCredentialsLegacy, t as writeCredentialsDataKey, v as acquireDaemonLock, x as writeDaemonState, A as ApiClient, y as releaseDaemonLock, z as authChallenge, B as clearCredentials, C as clearMachineId, D as getLatestDaemonLog } from './types-CPYxEUyu.mjs';
|
|
5
5
|
import { spawn, execSync, exec as exec$1, execFileSync } from 'node:child_process';
|
|
6
6
|
import { resolve, join, extname, basename as basename$1 } from 'node:path';
|
|
7
7
|
import { createInterface } from 'node:readline';
|
|
@@ -7025,7 +7025,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
7025
7025
|
return;
|
|
7026
7026
|
} else if (subcommand === "codex") {
|
|
7027
7027
|
try {
|
|
7028
|
-
const { runCodex } = await import('./runCodex-
|
|
7028
|
+
const { runCodex } = await import('./runCodex-CgW9cBS9.mjs');
|
|
7029
7029
|
let startedBy = void 0;
|
|
7030
7030
|
for (let i = 1; i < args.length; i++) {
|
|
7031
7031
|
if (args[i] === "--started-by") {
|
|
@@ -7070,7 +7070,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
7070
7070
|
} else if (subcommand === "list") {
|
|
7071
7071
|
try {
|
|
7072
7072
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
7073
|
-
const { listSessions } = await import('./list-
|
|
7073
|
+
const { listSessions } = await import('./list-Lp972nwz.mjs');
|
|
7074
7074
|
let sessionId;
|
|
7075
7075
|
let titleFilter;
|
|
7076
7076
|
let recentMsgs;
|
|
@@ -7172,7 +7172,7 @@ Examples:
|
|
|
7172
7172
|
process.exit(1);
|
|
7173
7173
|
}
|
|
7174
7174
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
7175
|
-
const { promptSession } = await import('./prompt-
|
|
7175
|
+
const { promptSession } = await import('./prompt-BPehYWlE.mjs');
|
|
7176
7176
|
await promptSession(credentials, sessionId, promptText, timeoutMinutes ?? void 0);
|
|
7177
7177
|
} catch (error) {
|
|
7178
7178
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/lib.cjs
CHANGED
package/dist/lib.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-CPYxEUyu.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as configuration, l as logger, d as decodeBase64, b as decrypt, f as formatTimeAgo, e as libsodiumDecryptFromPublicKey } from './types-
|
|
1
|
+
import { c as configuration, l as logger, d as decodeBase64, b as decrypt, f as formatTimeAgo, e as libsodiumDecryptFromPublicKey } from './types-CPYxEUyu.mjs';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import { existsSync, readdirSync, statSync, readFileSync } from 'fs';
|
|
4
4
|
import { join } from 'path';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as configuration, b as decrypt, d as decodeBase64, l as logger, g as encodeBase64, h as encrypt } from './types-
|
|
1
|
+
import { c as configuration, b as decrypt, d as decodeBase64, l as logger, g as encodeBase64, h as encrypt } from './types-CPYxEUyu.mjs';
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import { io } from 'socket.io-client';
|
|
4
4
|
import 'chalk';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var ink = require('ink');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var types = require('./types-
|
|
5
|
+
var types = require('./types-DysMExRA.cjs');
|
|
6
6
|
var index_js = require('@modelcontextprotocol/sdk/client/index.js');
|
|
7
7
|
var stdio_js = require('@modelcontextprotocol/sdk/client/stdio.js');
|
|
8
8
|
var z = require('zod');
|
|
9
9
|
var types_js = require('@modelcontextprotocol/sdk/types.js');
|
|
10
10
|
var child_process = require('child_process');
|
|
11
11
|
var node_crypto = require('node:crypto');
|
|
12
|
-
var index = require('./index-
|
|
12
|
+
var index = require('./index-BpSLeHcW.cjs');
|
|
13
13
|
var os = require('node:os');
|
|
14
14
|
var node_path = require('node:path');
|
|
15
15
|
var fs = require('node:fs');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
3
|
-
import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, i as packageJson } from './types-
|
|
3
|
+
import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, i as packageJson } from './types-CPYxEUyu.mjs';
|
|
4
4
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
5
5
|
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { ElicitRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
8
8
|
import { execSync } from 'child_process';
|
|
9
9
|
import { randomUUID } from 'node:crypto';
|
|
10
|
-
import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler, a as MessageBuffer, s as startHappyServer, t as trimIdent, b as stopCaffeinate } from './index-
|
|
10
|
+
import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler, a as MessageBuffer, s as startHappyServer, t as trimIdent, b as stopCaffeinate } from './index-GQ9EasMu.mjs';
|
|
11
11
|
import os from 'node:os';
|
|
12
12
|
import { resolve, join } from 'node:path';
|
|
13
13
|
import fs from 'node:fs';
|
|
@@ -20,7 +20,7 @@ import { fileURLToPath } from 'url';
|
|
|
20
20
|
import { Expo } from 'expo-server-sdk';
|
|
21
21
|
|
|
22
22
|
var name = "@zhigang1992/happy-cli";
|
|
23
|
-
var version = "0.13.
|
|
23
|
+
var version = "0.13.9";
|
|
24
24
|
var description = "Mobile and Web client for Claude Code and Codex";
|
|
25
25
|
var author = "Kirill Dubovitskiy";
|
|
26
26
|
var license = "MIT";
|
|
@@ -41,7 +41,7 @@ function _interopNamespaceDefault(e) {
|
|
|
41
41
|
var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
|
|
42
42
|
|
|
43
43
|
var name = "@zhigang1992/happy-cli";
|
|
44
|
-
var version = "0.13.
|
|
44
|
+
var version = "0.13.9";
|
|
45
45
|
var description = "Mobile and Web client for Claude Code and Codex";
|
|
46
46
|
var author = "Kirill Dubovitskiy";
|
|
47
47
|
var license = "MIT";
|
|
@@ -1150,7 +1150,7 @@ class RpcHandlerManager {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
|
-
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('types-
|
|
1153
|
+
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('types-DysMExRA.cjs', document.baseURI).href))));
|
|
1154
1154
|
function projectPath() {
|
|
1155
1155
|
const path$1 = path.resolve(__dirname$1, "..");
|
|
1156
1156
|
return path$1;
|