very-happy-cli 0.2.148 → 0.2.149
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/{AcpBackend-CrcdMnL6.mjs → AcpBackend-Baqb8dNm.mjs} +2 -2
- package/dist/{AcpBackend-BrM-mcjR.cjs → AcpBackend-CnZpEfGd.cjs} +2 -2
- package/dist/{AcpSessionManager-DIafxIVU.mjs → AcpSessionManager-CC6mdFXs.mjs} +1 -1
- package/dist/{AcpSessionManager-CKhv-rBo.cjs → AcpSessionManager-e2vxmIbj.cjs} +1 -1
- package/dist/{agentGuidance-gzl2qRkG.cjs → agentGuidance--QIi_rZ2.cjs} +1 -1
- package/dist/{agentGuidance-CR7rOQUF.mjs → agentGuidance-oMVJvUl7.mjs} +1 -1
- package/dist/{agentHome-Qh6SWyHx.cjs → agentHome-3kRCtzOL.cjs} +2 -2
- package/dist/{agentHome-CQrd95jc.mjs → agentHome-CKSPsS8d.mjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-DkCS4663.mjs → config-C8jpk6IA.mjs} +4 -4
- package/dist/{config-CFSD65_X.cjs → config-CzJZcvTO.cjs} +4 -4
- package/dist/{index-eLVXOce3.mjs → index-BPCXUrEe.mjs} +4 -4
- package/dist/{index-C1OeYxxj.cjs → index-CyfXsCXl.cjs} +76 -53
- package/dist/{index-C_hZVtR-.cjs → index-DBN2Zpqc.cjs} +4 -4
- package/dist/{index-Cobfu9V_.mjs → index-Dfkyar7S.mjs} +72 -49
- package/dist/{index-x5-N7ElS.cjs → index-DgK4KX-Z.cjs} +7 -7
- package/dist/{index-C4JoaSCO.mjs → index-DrVq0CqK.mjs} +8 -8
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{installTerminalHooks-D9pIHXxU.mjs → installTerminalHooks-COqkLz6f.mjs} +4 -4
- package/dist/{installTerminalHooks-CuqhiAo9.cjs → installTerminalHooks-kdAoTfNT.cjs} +4 -4
- package/dist/lib.cjs +2 -2
- package/dist/lib.mjs +2 -2
- package/dist/{limits-BfYfA7tt.mjs → limits-BXI1Gzvd.mjs} +8 -8
- package/dist/{limits-D364Cpe3.cjs → limits-FZWhlsBu.cjs} +8 -8
- package/dist/{mcp-DTXsdDwc.mjs → mcp-Dfnoirpi.mjs} +4 -4
- package/dist/{mcp-B5ojE8_m.cjs → mcp-DoLZbbZp.cjs} +4 -4
- package/dist/{piRuntime-BWEgqBHm.mjs → piRuntime-BK6YZm2X.mjs} +2 -2
- package/dist/{piRuntime-CbSaG74b.cjs → piRuntime-DmE4ysfG.cjs} +2 -2
- package/dist/{piTerminal-CnS3TF7M.mjs → piTerminal-Bczubq2n.mjs} +6 -6
- package/dist/{piTerminal-Bzremid-.cjs → piTerminal-qQAzQwIU.cjs} +6 -6
- package/dist/{runGemini-C13-aRss.mjs → runGemini-Cce_pjTs.mjs} +6 -6
- package/dist/{runGemini-Ci6ULPA7.cjs → runGemini-ComTu0EB.cjs} +6 -6
- package/dist/{runOpenClaw-D4ABejEy.mjs → runOpenClaw-DXP5_chb.mjs} +5 -5
- package/dist/{runOpenClaw-D2DW9Umc.cjs → runOpenClaw-M3YlDt8z.cjs} +5 -5
- package/dist/{send-1hJXKzeP.cjs → send-0LrSwGgr.cjs} +4 -4
- package/dist/{send-D-9_jOIS.mjs → send-DDD57Cr_.mjs} +4 -4
- package/dist/{sessions-DOrymTYB.cjs → sessions-2Bkau9T4.cjs} +4 -4
- package/dist/{sessions-C9VwpMKY.mjs → sessions-ClBPEtz2.mjs} +4 -4
- package/dist/{spawn-C4uID9JX.mjs → spawn-7lLymdT1.mjs} +4 -4
- package/dist/{spawn-B1IlltVe.cjs → spawn-Cm3Da8Ge.cjs} +4 -4
- package/dist/{teams-xIRGgxwJ.cjs → teams-DKKeIG-u.cjs} +4 -4
- package/dist/{teams-CCv46ebr.mjs → teams-DyBjdXI3.mjs} +4 -4
- package/dist/{todo-DrsOEfYU.cjs → todo-8RgCTDxH.cjs} +3 -3
- package/dist/{todo-5QemH15n.mjs → todo-jXHGGH89.mjs} +3 -3
- package/dist/{types-CXF6tULJ.mjs → types-ipzMqciq.mjs} +4 -3
- package/dist/{types-IU5nGuaQ.cjs → types-t1gxALVE.cjs} +4 -3
- package/package.json +8 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { ndJsonStream, ClientSideConnection } from '@agentclientprotocol/sdk';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import { l as logger, p as packageJson } from './limits-
|
|
5
|
-
import { t as contentLogMetadata, q as errorLogMetadata, u as delay } from './types-
|
|
4
|
+
import { l as logger, p as packageJson } from './limits-BXI1Gzvd.mjs';
|
|
5
|
+
import { t as contentLogMetadata, q as errorLogMetadata, u as delay } from './types-ipzMqciq.mjs';
|
|
6
6
|
|
|
7
7
|
function acpImageBlocks(attachments, supportsImages) {
|
|
8
8
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var node_child_process = require('node:child_process');
|
|
4
4
|
var sdk = require('@agentclientprotocol/sdk');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var persistence = require('./limits-
|
|
7
|
-
var index = require('./types-
|
|
6
|
+
var persistence = require('./limits-FZWhlsBu.cjs');
|
|
7
|
+
var index = require('./types-t1gxALVE.cjs');
|
|
8
8
|
|
|
9
9
|
function acpImageBlocks(attachments, supportsImages) {
|
|
10
10
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createId } from '@paralleldrive/cuid2';
|
|
2
|
-
import { f as streamKeyOf, g as createEnvelope } from './types-
|
|
2
|
+
import { f as streamKeyOf, g as createEnvelope } from './types-ipzMqciq.mjs';
|
|
3
3
|
|
|
4
4
|
function turnOptions(turnId, time) {
|
|
5
5
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var z = require('zod');
|
|
4
4
|
var node_crypto = require('node:crypto');
|
|
5
|
-
var persistence = require('./limits-
|
|
5
|
+
var persistence = require('./limits-FZWhlsBu.cjs');
|
|
6
6
|
var promises = require('node:fs/promises');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
var path = require('node:path');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { n as normalizeHttpEndpoint, c as configuration, r as readSettings, d as readPersistedSessions, e as readCredentialsForConfiguredRelay } from './limits-
|
|
3
|
+
import { n as normalizeHttpEndpoint, c as configuration, r as readSettings, d as readPersistedSessions, e as readCredentialsForConfiguredRelay } from './limits-BXI1Gzvd.mjs';
|
|
4
4
|
import { open, mkdir, rename, unlink } from 'node:fs/promises';
|
|
5
5
|
import { constants } from 'node:fs';
|
|
6
6
|
import { isAbsolute, join, dirname } from 'node:path';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
|
-
var persistence = require('./limits-
|
|
5
|
+
var persistence = require('./limits-FZWhlsBu.cjs');
|
|
6
6
|
require('node:fs');
|
|
7
|
-
var index = require('./types-
|
|
7
|
+
var index = require('./types-t1gxALVE.cjs');
|
|
8
8
|
require('node:fs/promises');
|
|
9
9
|
require('node:path');
|
|
10
10
|
require('zod');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { r as readSettings, u as updateSettings } from './limits-
|
|
3
|
+
import { r as readSettings, u as updateSettings } from './limits-BXI1Gzvd.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
|
-
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, b as AGENT_HOME_ENV_NAMES } from './types-
|
|
5
|
+
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, b as AGENT_HOME_ENV_NAMES } from './types-ipzMqciq.mjs';
|
|
6
6
|
import 'node:fs/promises';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'zod';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var agentGuidance = require('../agentGuidance
|
|
3
|
+
var agentGuidance = require('../agentGuidance--QIi_rZ2.cjs');
|
|
4
4
|
var mcp_js = require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
5
5
|
var stdio_js = require('@modelcontextprotocol/sdk/server/stdio.js');
|
|
6
6
|
var index_js = require('@modelcontextprotocol/sdk/client/index.js');
|
|
7
7
|
var streamableHttp_js = require('@modelcontextprotocol/sdk/client/streamableHttp.js');
|
|
8
8
|
var z = require('zod');
|
|
9
|
-
var persistence = require('../limits-
|
|
9
|
+
var persistence = require('../limits-FZWhlsBu.cjs');
|
|
10
10
|
require('node:crypto');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:fs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, r as registerTeamsTools } from '../agentGuidance-
|
|
1
|
+
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, r as registerTeamsTools } from '../agentGuidance-oMVJvUl7.mjs';
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
4
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
5
5
|
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION } from '../limits-
|
|
7
|
+
import { C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION } from '../limits-BXI1Gzvd.mjs';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
@@ -2,8 +2,8 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
|
2
2
|
import { join } from 'path';
|
|
3
3
|
import { homedir } from 'os';
|
|
4
4
|
import { execSync } from 'child_process';
|
|
5
|
-
import { l as logger } from './limits-
|
|
6
|
-
import { g as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-
|
|
5
|
+
import { l as logger } from './limits-BXI1Gzvd.mjs';
|
|
6
|
+
import { g as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-Dfkyar7S.mjs';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:os';
|
|
@@ -13,7 +13,7 @@ import 'node:crypto';
|
|
|
13
13
|
import 'tweetnacl';
|
|
14
14
|
import 'chalk';
|
|
15
15
|
import 'node:util';
|
|
16
|
-
import './types-
|
|
16
|
+
import './types-ipzMqciq.mjs';
|
|
17
17
|
import 'axios';
|
|
18
18
|
import 'node:events';
|
|
19
19
|
import 'socket.io-client';
|
|
@@ -29,7 +29,7 @@ import 'node-pty';
|
|
|
29
29
|
import 'node:readline';
|
|
30
30
|
import '@anthropic-ai/sandbox-runtime';
|
|
31
31
|
import 'expo-server-sdk';
|
|
32
|
-
import './agentGuidance-
|
|
32
|
+
import './agentGuidance-oMVJvUl7.mjs';
|
|
33
33
|
import 'ink';
|
|
34
34
|
import 'react';
|
|
35
35
|
import '@anthropic-ai/claude-agent-sdk';
|
|
@@ -4,8 +4,8 @@ var fs = require('fs');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var os = require('os');
|
|
6
6
|
var child_process = require('child_process');
|
|
7
|
-
var persistence = require('./limits-
|
|
8
|
-
var index = require('./index-
|
|
7
|
+
var persistence = require('./limits-FZWhlsBu.cjs');
|
|
8
|
+
var index = require('./index-CyfXsCXl.cjs');
|
|
9
9
|
require('node:fs/promises');
|
|
10
10
|
require('node:fs');
|
|
11
11
|
require('node:os');
|
|
@@ -15,7 +15,7 @@ require('node:crypto');
|
|
|
15
15
|
require('tweetnacl');
|
|
16
16
|
require('chalk');
|
|
17
17
|
require('node:util');
|
|
18
|
-
require('./types-
|
|
18
|
+
require('./types-t1gxALVE.cjs');
|
|
19
19
|
require('axios');
|
|
20
20
|
require('node:events');
|
|
21
21
|
require('socket.io-client');
|
|
@@ -31,7 +31,7 @@ require('node-pty');
|
|
|
31
31
|
require('node:readline');
|
|
32
32
|
require('@anthropic-ai/sandbox-runtime');
|
|
33
33
|
require('expo-server-sdk');
|
|
34
|
-
require('./agentGuidance
|
|
34
|
+
require('./agentGuidance--QIi_rZ2.cjs');
|
|
35
35
|
require('ink');
|
|
36
36
|
require('react');
|
|
37
37
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { q as query } from './index-
|
|
1
|
+
import { q as query } from './index-Dfkyar7S.mjs';
|
|
2
2
|
export { AbortError } from '@anthropic-ai/claude-agent-sdk';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'node:os';
|
|
5
5
|
import 'node:crypto';
|
|
6
|
-
import './types-
|
|
6
|
+
import './types-ipzMqciq.mjs';
|
|
7
7
|
import 'axios';
|
|
8
|
-
import './limits-
|
|
8
|
+
import './limits-BXI1Gzvd.mjs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:path';
|
|
@@ -30,7 +30,7 @@ import 'fs';
|
|
|
30
30
|
import 'node:readline';
|
|
31
31
|
import '@anthropic-ai/sandbox-runtime';
|
|
32
32
|
import 'expo-server-sdk';
|
|
33
|
-
import './agentGuidance-
|
|
33
|
+
import './agentGuidance-oMVJvUl7.mjs';
|
|
34
34
|
import 'ink';
|
|
35
35
|
import 'react';
|
|
36
36
|
import 'ps-list';
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var index = require('./types-
|
|
7
|
-
var persistence = require('./limits-
|
|
6
|
+
var index = require('./types-t1gxALVE.cjs');
|
|
7
|
+
var persistence = require('./limits-FZWhlsBu.cjs');
|
|
8
8
|
var spawn = require('cross-spawn');
|
|
9
9
|
var path = require('node:path');
|
|
10
10
|
var node_readline = require('node:readline');
|
|
11
11
|
var node_fs = require('node:fs');
|
|
12
12
|
var projectPath = require('./projectPath-ChLhdOyt.cjs');
|
|
13
|
-
var agentGuidance = require('./agentGuidance
|
|
13
|
+
var agentGuidance = require('./agentGuidance--QIi_rZ2.cjs');
|
|
14
14
|
var promises = require('node:fs/promises');
|
|
15
15
|
var fs = require('fs/promises');
|
|
16
16
|
var ink = require('ink');
|
|
@@ -5335,8 +5335,8 @@ ${typeLabels[type] || type}:`));
|
|
|
5335
5335
|
}
|
|
5336
5336
|
console.log(chalk.gray(" An external claude command is only needed for native terminal/mirror use."));
|
|
5337
5337
|
try {
|
|
5338
|
-
const { resolveAgentHomesForCli } = await Promise.resolve().then(function () { return require('./agentHome-
|
|
5339
|
-
const { describeAgentHome } = await Promise.resolve().then(function () { return require('./types-
|
|
5338
|
+
const { resolveAgentHomesForCli } = await Promise.resolve().then(function () { return require('./agentHome-3kRCtzOL.cjs'); });
|
|
5339
|
+
const { describeAgentHome } = await Promise.resolve().then(function () { return require('./types-t1gxALVE.cjs'); }).then(function (n) { return n.index; });
|
|
5340
5340
|
const homes = await resolveAgentHomesForCli();
|
|
5341
5341
|
console.log(chalk.green(`\u2713 Claude config dir: ${describeAgentHome(homes.claudeConfigDir)}`));
|
|
5342
5342
|
console.log(chalk.green(`\u2713 Codex home: ${describeAgentHome(homes.codexHome)}`));
|
|
@@ -8016,7 +8016,7 @@ function parseJsonObject(text) {
|
|
|
8016
8016
|
return null;
|
|
8017
8017
|
}
|
|
8018
8018
|
}
|
|
8019
|
-
function resolveSdkClaudeBinary(platform = process.platform, arch = process.arch, resolver = (s) => node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
8019
|
+
function resolveSdkClaudeBinary(platform = process.platform, arch = process.arch, resolver = (s) => node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-CyfXsCXl.cjs', document.baseURI).href))).resolve(s)) {
|
|
8020
8020
|
const platformArch = `${platform}-${arch}`;
|
|
8021
8021
|
const candidates = [
|
|
8022
8022
|
`@anthropic-ai/claude-agent-sdk-${platformArch}/claude`,
|
|
@@ -12492,7 +12492,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12492
12492
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12493
12493
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12494
12494
|
const fork = deps.run ?? (async (input) => {
|
|
12495
|
-
const { query } = await Promise.resolve().then(function () { return require('./index-
|
|
12495
|
+
const { query } = await Promise.resolve().then(function () { return require('./index-DBN2Zpqc.cjs'); });
|
|
12496
12496
|
return runSideQuestion(query, input);
|
|
12497
12497
|
});
|
|
12498
12498
|
const run = async (input, live) => {
|
|
@@ -12611,7 +12611,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
12611
12611
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
12612
12612
|
function resolveClaudeBinary() {
|
|
12613
12613
|
try {
|
|
12614
|
-
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-
|
|
12614
|
+
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-CyfXsCXl.cjs', document.baseURI).href)));
|
|
12615
12615
|
const utilsPath = path.resolve(path.join(projectPath.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
12616
12616
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
12617
12617
|
const path$1 = getClaudeCliPath();
|
|
@@ -13072,7 +13072,7 @@ async function runClaude(credentials, options = {}) {
|
|
|
13072
13072
|
// a brand-new session cannot pick a PDF until after sending once.
|
|
13073
13073
|
attachmentKinds: [...CLAUDE_ATTACHMENT_KINDS],
|
|
13074
13074
|
queueCancellation: true,
|
|
13075
|
-
capabilities: ["claude-steer-v1", "claude-live-permission-v1", "claude-live-permission-v2", "claude-btw-v1", "claude-runtime-controls-v1"],
|
|
13075
|
+
capabilities: ["claude-steer-v1", "claude-live-permission-v1", "claude-live-permission-v2", "claude-btw-v1", "claude-runtime-controls-v1", "claude-opus-5-5-v1"],
|
|
13076
13076
|
// Effective mode this process enforces. Kept current by
|
|
13077
13077
|
// publishPermissionMode below; the web renders it instead of guessing.
|
|
13078
13078
|
permissionMode: mapToClaudeMode(initialPermissionMode ?? "default"),
|
|
@@ -14840,9 +14840,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
14840
14840
|
};
|
|
14841
14841
|
}
|
|
14842
14842
|
|
|
14843
|
-
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-
|
|
14843
|
+
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-CyfXsCXl.cjs', document.baseURI).href)));
|
|
14844
14844
|
const __dirname$1 = path.dirname(__filename$1);
|
|
14845
|
-
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
14845
|
+
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-CyfXsCXl.cjs', document.baseURI).href)));
|
|
14846
14846
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
14847
14847
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
14848
14848
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -16585,6 +16585,43 @@ function resolveCodexExecutionPolicy(permissionMode, sandboxManagedByHappy) {
|
|
|
16585
16585
|
return { approvalPolicy, sandbox };
|
|
16586
16586
|
}
|
|
16587
16587
|
|
|
16588
|
+
function unsupportedEffortReason(catalog, model, effort) {
|
|
16589
|
+
if (!effort) return null;
|
|
16590
|
+
const selected = catalog.find((entry) => model ? entry.model === model : entry.isDefault);
|
|
16591
|
+
if (!selected) return null;
|
|
16592
|
+
if (selected.supportedReasoningEfforts.some((option) => option.reasoningEffort === effort)) return null;
|
|
16593
|
+
return `Reasoning effort "${effort}" is not supported by ${model ?? "the default model"}. Choose a supported level.`;
|
|
16594
|
+
}
|
|
16595
|
+
|
|
16596
|
+
function readableCodexErrorText(text) {
|
|
16597
|
+
const trimmed = text.trim();
|
|
16598
|
+
if (!trimmed.startsWith("{")) return trimmed;
|
|
16599
|
+
try {
|
|
16600
|
+
const body = JSON.parse(trimmed);
|
|
16601
|
+
const inner = typeof body.error === "object" && body.error ? body.error.message : void 0;
|
|
16602
|
+
const message = typeof inner === "string" && inner.trim() ? inner : typeof body.error === "string" && body.error.trim() ? body.error : typeof body.message === "string" && body.message.trim() ? body.message : null;
|
|
16603
|
+
return message ? message.trim() : trimmed;
|
|
16604
|
+
} catch {
|
|
16605
|
+
return trimmed;
|
|
16606
|
+
}
|
|
16607
|
+
}
|
|
16608
|
+
function describeCodexFailure(msg) {
|
|
16609
|
+
const hasFailure = msg?.status === "failed" || msg?.error !== void 0 && msg?.error !== null;
|
|
16610
|
+
if (!hasFailure) return null;
|
|
16611
|
+
const err = msg.error;
|
|
16612
|
+
if (typeof err === "string" && err.length > 0) return readableCodexErrorText(err);
|
|
16613
|
+
if (err && typeof err === "object" && typeof err.message === "string" && err.message.length > 0) {
|
|
16614
|
+
return readableCodexErrorText(err.message);
|
|
16615
|
+
}
|
|
16616
|
+
return "Unknown error";
|
|
16617
|
+
}
|
|
16618
|
+
const TRANSPORT_LOSS = /^Codex process (exited|disconnected)\b|stdin not writable| timed out after \d+ms/;
|
|
16619
|
+
function describeThrownTurnError(error) {
|
|
16620
|
+
const message = error instanceof Error ? error.message : typeof error === "string" ? error : "";
|
|
16621
|
+
if (!message.trim() || TRANSPORT_LOSS.test(message)) return null;
|
|
16622
|
+
return readableCodexErrorText(message);
|
|
16623
|
+
}
|
|
16624
|
+
|
|
16588
16625
|
async function resumeExistingThread(opts) {
|
|
16589
16626
|
try {
|
|
16590
16627
|
const resumedThread = await opts.client.resumeThread({
|
|
@@ -16803,16 +16840,6 @@ function safeCodexErrorMetadata(value) {
|
|
|
16803
16840
|
};
|
|
16804
16841
|
}
|
|
16805
16842
|
|
|
16806
|
-
function describeCodexFailure(msg) {
|
|
16807
|
-
const hasFailure = msg?.status === "failed" || msg?.error !== void 0 && msg?.error !== null;
|
|
16808
|
-
if (!hasFailure) return null;
|
|
16809
|
-
const err = msg.error;
|
|
16810
|
-
if (typeof err === "string" && err.length > 0) return err;
|
|
16811
|
-
if (err && typeof err === "object" && typeof err.message === "string" && err.message.length > 0) {
|
|
16812
|
-
return err.message;
|
|
16813
|
-
}
|
|
16814
|
-
return "Unknown error";
|
|
16815
|
-
}
|
|
16816
16843
|
const DEFAULT_CODEX_MODEL = "gpt-5.5";
|
|
16817
16844
|
const DEFAULT_CODEX_EFFORT = "medium";
|
|
16818
16845
|
async function runCodex(opts) {
|
|
@@ -16974,15 +17001,6 @@ async function runCodex(opts) {
|
|
|
16974
17001
|
"yolo"
|
|
16975
17002
|
];
|
|
16976
17003
|
let discoveredModels = [];
|
|
16977
|
-
const VALID_REMOTE_EFFORTS = [
|
|
16978
|
-
"none",
|
|
16979
|
-
"minimal",
|
|
16980
|
-
"low",
|
|
16981
|
-
"medium",
|
|
16982
|
-
"high",
|
|
16983
|
-
"xhigh",
|
|
16984
|
-
"max"
|
|
16985
|
-
];
|
|
16986
17004
|
registerAgentAttachmentDownloads(session);
|
|
16987
17005
|
let userMessageDelivery = Promise.resolve();
|
|
16988
17006
|
session.onUserMessage((message) => {
|
|
@@ -17477,10 +17495,9 @@ async function runCodex(opts) {
|
|
|
17477
17495
|
message.mode.permissionMode,
|
|
17478
17496
|
sandboxManagedByHappy
|
|
17479
17497
|
);
|
|
17480
|
-
const
|
|
17481
|
-
|
|
17482
|
-
|
|
17483
|
-
throw new Error(`Reasoning effort "${message.mode.effort}" is not supported by ${message.mode.model ?? "the default model"}. Choose a supported level.`);
|
|
17498
|
+
const effortRefusal = unsupportedEffortReason(discoveredModels, message.mode.model, message.mode.effort);
|
|
17499
|
+
if (effortRefusal) {
|
|
17500
|
+
throw new Error(effortRefusal);
|
|
17484
17501
|
}
|
|
17485
17502
|
if (!client.hasActiveThread()) {
|
|
17486
17503
|
const startedThread = await client.startThread({
|
|
@@ -17524,8 +17541,14 @@ async function runCodex(opts) {
|
|
|
17524
17541
|
}
|
|
17525
17542
|
} catch (error) {
|
|
17526
17543
|
persistence.logger.warn("Error in codex session", safeCodexErrorMetadata(error));
|
|
17527
|
-
|
|
17528
|
-
|
|
17544
|
+
const reason = describeThrownTurnError(error);
|
|
17545
|
+
if (reason) {
|
|
17546
|
+
messageBuffer.addMessage(`Task failed: ${reason}`, "status");
|
|
17547
|
+
session.sendSessionEvent({ type: "message", message: `Codex error: ${reason}` });
|
|
17548
|
+
} else {
|
|
17549
|
+
messageBuffer.addMessage("Process exited unexpectedly", "status");
|
|
17550
|
+
session.sendSessionEvent({ type: "message", message: "Process exited unexpectedly" });
|
|
17551
|
+
}
|
|
17529
17552
|
} finally {
|
|
17530
17553
|
permissionHandler.reset();
|
|
17531
17554
|
reasoningProcessor.abort();
|
|
@@ -17757,7 +17780,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17757
17780
|
return;
|
|
17758
17781
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17759
17782
|
try {
|
|
17760
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-
|
|
17783
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-kdAoTfNT.cjs'); });
|
|
17761
17784
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17762
17785
|
if (command.action === "help") {
|
|
17763
17786
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17774,7 +17797,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17774
17797
|
}
|
|
17775
17798
|
} else if (subcommand === "agent-home") {
|
|
17776
17799
|
try {
|
|
17777
|
-
const { parseAgentHomeArgs, runAgentHomeCommand } = await Promise.resolve().then(function () { return require('./agentHome-
|
|
17800
|
+
const { parseAgentHomeArgs, runAgentHomeCommand } = await Promise.resolve().then(function () { return require('./agentHome-3kRCtzOL.cjs'); });
|
|
17778
17801
|
await runAgentHomeCommand(parseAgentHomeArgs(args.slice(1)));
|
|
17779
17802
|
process.exit(0);
|
|
17780
17803
|
} catch (error) {
|
|
@@ -17783,7 +17806,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17783
17806
|
}
|
|
17784
17807
|
} else if (subcommand === "spawn") {
|
|
17785
17808
|
try {
|
|
17786
|
-
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-
|
|
17809
|
+
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-Cm3Da8Ge.cjs'); });
|
|
17787
17810
|
await handleSpawnCommand(args.slice(1));
|
|
17788
17811
|
} catch (error) {
|
|
17789
17812
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17795,7 +17818,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17795
17818
|
return;
|
|
17796
17819
|
} else if (subcommand === "sessions") {
|
|
17797
17820
|
try {
|
|
17798
|
-
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-
|
|
17821
|
+
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-2Bkau9T4.cjs'); });
|
|
17799
17822
|
await handleSessionsCommand(args.slice(1));
|
|
17800
17823
|
} catch (error) {
|
|
17801
17824
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17807,7 +17830,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17807
17830
|
return;
|
|
17808
17831
|
} else if (subcommand === "send") {
|
|
17809
17832
|
try {
|
|
17810
|
-
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-
|
|
17833
|
+
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-0LrSwGgr.cjs'); });
|
|
17811
17834
|
await handleSendCommand(args.slice(1));
|
|
17812
17835
|
} catch (error) {
|
|
17813
17836
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17913,9 +17936,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17913
17936
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17914
17937
|
const projectId = args[3];
|
|
17915
17938
|
try {
|
|
17916
|
-
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17917
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-
|
|
17918
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-
|
|
17939
|
+
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-CzJZcvTO.cjs'); });
|
|
17940
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-FZWhlsBu.cjs'); }).then(function (n) { return n.persistence; });
|
|
17941
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-t1gxALVE.cjs'); }).then(function (n) { return n.api; });
|
|
17919
17942
|
let userEmail = void 0;
|
|
17920
17943
|
try {
|
|
17921
17944
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17946,7 +17969,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17946
17969
|
}
|
|
17947
17970
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17948
17971
|
try {
|
|
17949
|
-
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17972
|
+
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-CzJZcvTO.cjs'); });
|
|
17950
17973
|
const config = readGeminiLocalConfig();
|
|
17951
17974
|
if (config.googleCloudProject) {
|
|
17952
17975
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17986,7 +18009,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17986
18009
|
process.exit(0);
|
|
17987
18010
|
}
|
|
17988
18011
|
try {
|
|
17989
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
18012
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-ComTu0EB.cjs'); });
|
|
17990
18013
|
let startedBy = void 0;
|
|
17991
18014
|
for (let i = 1; i < args.length; i++) {
|
|
17992
18015
|
if (args[i] === "--started-by") {
|
|
@@ -18009,7 +18032,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18009
18032
|
} else if (subcommand === "pi") {
|
|
18010
18033
|
if (args[1] === "--terminal") {
|
|
18011
18034
|
try {
|
|
18012
|
-
const { runPiTerminal } = await Promise.resolve().then(function () { return require('./piTerminal-
|
|
18035
|
+
const { runPiTerminal } = await Promise.resolve().then(function () { return require('./piTerminal-qQAzQwIU.cjs'); });
|
|
18013
18036
|
process.exitCode = await runPiTerminal(args.slice(2));
|
|
18014
18037
|
} catch (error) {
|
|
18015
18038
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -18026,7 +18049,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18026
18049
|
}
|
|
18027
18050
|
};
|
|
18028
18051
|
try {
|
|
18029
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
18052
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-DgK4KX-Z.cjs'); });
|
|
18030
18053
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
18031
18054
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
18032
18055
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -18054,7 +18077,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18054
18077
|
return;
|
|
18055
18078
|
} else if (subcommand === "acp") {
|
|
18056
18079
|
try {
|
|
18057
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
18080
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-DgK4KX-Z.cjs'); });
|
|
18058
18081
|
let startedBy = void 0;
|
|
18059
18082
|
let verbose = false;
|
|
18060
18083
|
const acpArgs = [];
|
|
@@ -18094,7 +18117,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18094
18117
|
return;
|
|
18095
18118
|
} else if (subcommand === "openclaw") {
|
|
18096
18119
|
try {
|
|
18097
|
-
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
18120
|
+
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-M3YlDt8z.cjs'); });
|
|
18098
18121
|
let startedBy = void 0;
|
|
18099
18122
|
let verbose = false;
|
|
18100
18123
|
let gatewayUrl;
|
|
@@ -18145,7 +18168,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18145
18168
|
return;
|
|
18146
18169
|
} else if (subcommand === "todo") {
|
|
18147
18170
|
try {
|
|
18148
|
-
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-
|
|
18171
|
+
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-8RgCTDxH.cjs'); });
|
|
18149
18172
|
await handleTodoCommand(args.slice(1));
|
|
18150
18173
|
} catch (error) {
|
|
18151
18174
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -18154,7 +18177,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18154
18177
|
return;
|
|
18155
18178
|
} else if (subcommand === "teams") {
|
|
18156
18179
|
try {
|
|
18157
|
-
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-
|
|
18180
|
+
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-DKKeIG-u.cjs'); });
|
|
18158
18181
|
await handleTeamsCommand(args.slice(1));
|
|
18159
18182
|
} catch (error) {
|
|
18160
18183
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -18163,7 +18186,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18163
18186
|
return;
|
|
18164
18187
|
} else if (subcommand === "mcp" && (args.length === 1 || args.length === 2 && args[1] === "--terminal-tools")) {
|
|
18165
18188
|
try {
|
|
18166
|
-
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-
|
|
18189
|
+
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-DoLZbbZp.cjs'); });
|
|
18167
18190
|
await handleMcpCommand(args[1] === "--terminal-tools");
|
|
18168
18191
|
} catch (error) {
|
|
18169
18192
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CyfXsCXl.cjs');
|
|
4
4
|
var claudeAgentSdk = require('@anthropic-ai/claude-agent-sdk');
|
|
5
5
|
require('chalk');
|
|
6
6
|
require('node:os');
|
|
7
7
|
require('node:crypto');
|
|
8
|
-
require('./types-
|
|
8
|
+
require('./types-t1gxALVE.cjs');
|
|
9
9
|
require('axios');
|
|
10
|
-
require('./limits-
|
|
10
|
+
require('./limits-FZWhlsBu.cjs');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:fs');
|
|
13
13
|
require('node:path');
|
|
@@ -32,7 +32,7 @@ require('fs');
|
|
|
32
32
|
require('node:readline');
|
|
33
33
|
require('@anthropic-ai/sandbox-runtime');
|
|
34
34
|
require('expo-server-sdk');
|
|
35
|
-
require('./agentGuidance
|
|
35
|
+
require('./agentGuidance--QIi_rZ2.cjs');
|
|
36
36
|
require('ink');
|
|
37
37
|
require('react');
|
|
38
38
|
require('ps-list');
|