very-happy-cli 0.2.129 → 0.2.130
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-kU2VqiYx.cjs → AcpBackend-5slez7vM.cjs} +2 -2
- package/dist/{AcpBackend-MAU4POiE.mjs → AcpBackend-Co3atHW2.mjs} +2 -2
- package/dist/{AcpSessionManager-uSGDDRqF.mjs → AcpSessionManager-B0sD6Zi7.mjs} +1 -1
- package/dist/{AcpSessionManager-BWasT5jq.cjs → AcpSessionManager-CxvVg8ec.cjs} +1 -1
- package/dist/{agentGuidance-DlZ5s0Om.mjs → agentGuidance-7pJxf_3b.mjs} +1 -1
- package/dist/{agentGuidance-B1PsijGg.cjs → agentGuidance-TjPzDO7d.cjs} +1 -1
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-DswZvA8V.cjs → config-B4Md4FvK.cjs} +4 -4
- package/dist/{config-_DKtp9qs.mjs → config-BWu8j7bO.mjs} +4 -4
- package/dist/{index-tr2Fqhby.mjs → index-BUhcXX8R.mjs} +29 -19
- package/dist/{index-1QwKRLYG.mjs → index-C13U8MkT.mjs} +4 -4
- package/dist/{index-BdZ7Dlg0.cjs → index-C7TA3haC.cjs} +33 -23
- package/dist/{index-FMMrmSa2.mjs → index-CdOVizh_.mjs} +7 -7
- package/dist/{index-dqKLs4dZ.cjs → index-DksoP9b2.cjs} +6 -6
- package/dist/{index-lwOIU7K9.cjs → index-Ds0aHXiU.cjs} +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{installTerminalHooks-CV2LAKXO.cjs → installTerminalHooks-cNXov61F.cjs} +4 -4
- package/dist/{installTerminalHooks-B3a0ugvz.mjs → installTerminalHooks-kUC6I6Rn.mjs} +4 -4
- package/dist/lib.cjs +2 -2
- package/dist/lib.d.cts +2 -0
- package/dist/lib.d.mts +2 -0
- package/dist/lib.mjs +2 -2
- package/dist/{limits-B5wJ5Slz.cjs → limits-BhK6ovLz.cjs} +7 -7
- package/dist/{limits-C41sn_OJ.mjs → limits-CIcZA0Bn.mjs} +7 -7
- package/dist/{mcp-B7lwVQT8.cjs → mcp-CNX1qErQ.cjs} +4 -4
- package/dist/{mcp-BHNVwrwS.mjs → mcp-D5uyhbfB.mjs} +4 -4
- package/dist/{runGemini-FNZrH8yX.mjs → runGemini-BQd3qlVY.mjs} +6 -6
- package/dist/{runGemini-gbflWQ3_.cjs → runGemini-DvV6X_GE.cjs} +6 -6
- package/dist/{runOpenClaw-3EF_Rqv_.mjs → runOpenClaw-BgtE2jKF.mjs} +5 -5
- package/dist/{runOpenClaw-CmhYI7OB.cjs → runOpenClaw-jxvPz3bo.cjs} +5 -5
- package/dist/{send-DV7IeBAv.mjs → send-BdhUFGTm.mjs} +4 -4
- package/dist/{send-DqedYZtc.cjs → send-Di8Q32Ds.cjs} +4 -4
- package/dist/{sessions-ieB0bLb5.mjs → sessions-Bo2THj4y.mjs} +4 -4
- package/dist/{sessions-Bz243hZ9.cjs → sessions-eaAew6IP.cjs} +4 -4
- package/dist/{spawn-BXwwueEs.cjs → spawn-6GfCYB5i.cjs} +4 -4
- package/dist/{spawn-CcqzmjhT.mjs → spawn-CJxg1JUO.mjs} +4 -4
- package/dist/{teams-Bx79Wr9-.mjs → teams-CHGj90rR.mjs} +4 -4
- package/dist/{teams-BtI6h4Dw.cjs → teams-WdwFtptw.cjs} +4 -4
- package/dist/{todo-B-Kj9lXl.cjs → todo-C-wktj2K.cjs} +3 -3
- package/dist/{todo-CGRuBaiH.mjs → todo-C8hDSNBP.mjs} +3 -3
- package/dist/{types-BvYEAHds.mjs → types-B-ySoSY9.mjs} +3 -1
- package/dist/{types-Ba9u0uZL.cjs → types-QB33ckXt.cjs} +4 -2
- package/package.json +7 -7
|
@@ -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 api = require('./types-
|
|
6
|
+
var persistence = require('./limits-BhK6ovLz.cjs');
|
|
7
|
+
var api = require('./types-QB33ckXt.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,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 { d as contentLogMetadata, e as errorLogMetadata, h as delay } from './types-
|
|
4
|
+
import { l as logger, p as packageJson } from './limits-CIcZA0Bn.mjs';
|
|
5
|
+
import { d as contentLogMetadata, e as errorLogMetadata, h as delay } from './types-B-ySoSY9.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) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createId } from '@paralleldrive/cuid2';
|
|
2
|
-
import { s as streamKeyOf, c as createEnvelope } from './types-
|
|
2
|
+
import { s as streamKeyOf, c as createEnvelope } from './types-B-ySoSY9.mjs';
|
|
3
3
|
|
|
4
4
|
function turnOptions(turnId, time) {
|
|
5
5
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -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, g as readSettings, r as readPersistedSessions, d as readCredentialsForConfiguredRelay } from './limits-
|
|
3
|
+
import { n as normalizeHttpEndpoint, c as configuration, g as readSettings, r as readPersistedSessions, d as readCredentialsForConfiguredRelay } from './limits-CIcZA0Bn.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,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-BhK6ovLz.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,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var agentGuidance = require('../agentGuidance-
|
|
3
|
+
var agentGuidance = require('../agentGuidance-TjPzDO7d.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-BhK6ovLz.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-7pJxf_3b.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-CIcZA0Bn.mjs';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
@@ -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-BhK6ovLz.cjs');
|
|
8
|
+
var index = require('./index-C7TA3haC.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-QB33ckXt.cjs');
|
|
19
19
|
require('axios');
|
|
20
20
|
require('node:events');
|
|
21
21
|
require('socket.io-client');
|
|
@@ -30,7 +30,7 @@ require('node-pty');
|
|
|
30
30
|
require('node:readline');
|
|
31
31
|
require('@anthropic-ai/sandbox-runtime');
|
|
32
32
|
require('expo-server-sdk');
|
|
33
|
-
require('./agentGuidance-
|
|
33
|
+
require('./agentGuidance-TjPzDO7d.cjs');
|
|
34
34
|
require('ink');
|
|
35
35
|
require('react');
|
|
36
36
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -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 { j as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-
|
|
5
|
+
import { l as logger } from './limits-CIcZA0Bn.mjs';
|
|
6
|
+
import { j as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-BUhcXX8R.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-B-ySoSY9.mjs';
|
|
17
17
|
import 'axios';
|
|
18
18
|
import 'node:events';
|
|
19
19
|
import 'socket.io-client';
|
|
@@ -28,7 +28,7 @@ import 'node-pty';
|
|
|
28
28
|
import 'node:readline';
|
|
29
29
|
import '@anthropic-ai/sandbox-runtime';
|
|
30
30
|
import 'expo-server-sdk';
|
|
31
|
-
import './agentGuidance-
|
|
31
|
+
import './agentGuidance-7pJxf_3b.mjs';
|
|
32
32
|
import 'ink';
|
|
33
33
|
import 'react';
|
|
34
34
|
import '@anthropic-ai/claude-agent-sdk';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
|
|
2
2
|
import os, { homedir, userInfo, tmpdir } from 'node:os';
|
|
3
3
|
import { randomUUID, randomBytes, createHash as createHash$1, timingSafeEqual } from 'node:crypto';
|
|
4
|
-
import { j as getProjectPath, g as BUILTIN_TODO_DISCOVERY, p as projectPath, k as initializeSandbox, w as wrapCommand, d as contentLogMetadata, I as InvalidateSync, R as RawJSONLinesSchema, h as delay, l as AsyncLock, S as STREAM_DELTA_MAX_CHARS, M as MAX_CHAT_ATTACHMENT_SOURCE_BYTES, m as commandOnPath, n as deriveLocalCliUpdateSummary, o as isClaudeSessionId, q as getLocalHappyAgentCredentialPath, r as readLocalHappyAgentCredentials, t as parseExactVersion, u as compareExactVersions, v as extractCompleteLines, x as decideBackfill, y as parseTerminalHookPayload, z as tmuxArgs, C as scrubTmuxClientEnv, D as decideMirrorBinding, E as MIRROR_BACKFILL_LINES_DEFAULT, F as mirrorLineKey, G as mirrorLocalId, H as detectCLIAvailability, J as detectResumeSupport, K as summarizeSpawnSessionForLog, L as shellescape, A as ApiClient, N as fetchCliUpdateState, O as resolveCliUpdateCheckInterval, P as DEFAULT_CLI_UPDATE_CHECK_INTERVAL_MS, i as isValidSessionId, Q as listVhTerminals, T as isValidTerminalId, U as readVhTerminal, V as sendToVhTerminal, W as TITLE_PROMPT_PREFIX, X as BOARD_ANALYZER_PROMPT_PREFIX, f as connectionState, Y as startOfflineReconnection, c as createEnvelope, Z as CodexAppServerClient } from './types-
|
|
5
|
-
import { z as readDaemonState, l as logger, c as configuration, A as clearDaemonState, B as ensurePrivateDirectory, D as hardenPrivateFile, p as packageJson, g as readSettings, E as readCredentials, s as credentialRelayProblem, i as encodeBase64, F as readSettingsOutcome, G as updateSettings, H as encodeBase64Url, m as decodeBase64, I as writeCredentialsLegacy, J as writeCredentialsDataKey, d as readCredentialsForConfiguredRelay, j as encrypt, r as readPersistedSessions, w as writePrivateFileSync, K as decryptWithDataKey, L as decryptLegacy, M as persistSession, k as decrypt, f as ensurePrivateDirectorySync, N as acquireDaemonLock, O as deletePersistedSessions, P as writeDaemonState, Q as writeSettings, R as releaseDaemonLock, C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION, e as CLIPBOARD_MAX_BYTES, S as clearCredentials, T as clearMachineId, U as SandboxConfigSchema, V as getLatestDaemonLog } from './limits-
|
|
4
|
+
import { j as getProjectPath, g as BUILTIN_TODO_DISCOVERY, p as projectPath, k as initializeSandbox, w as wrapCommand, d as contentLogMetadata, I as InvalidateSync, R as RawJSONLinesSchema, h as delay, l as AsyncLock, S as STREAM_DELTA_MAX_CHARS, M as MAX_CHAT_ATTACHMENT_SOURCE_BYTES, m as commandOnPath, n as deriveLocalCliUpdateSummary, o as isClaudeSessionId, q as getLocalHappyAgentCredentialPath, r as readLocalHappyAgentCredentials, t as parseExactVersion, u as compareExactVersions, v as extractCompleteLines, x as decideBackfill, y as parseTerminalHookPayload, z as tmuxArgs, C as scrubTmuxClientEnv, D as decideMirrorBinding, E as MIRROR_BACKFILL_LINES_DEFAULT, F as mirrorLineKey, G as mirrorLocalId, H as detectCLIAvailability, J as detectResumeSupport, K as summarizeSpawnSessionForLog, L as shellescape, A as ApiClient, N as fetchCliUpdateState, O as resolveCliUpdateCheckInterval, P as DEFAULT_CLI_UPDATE_CHECK_INTERVAL_MS, i as isValidSessionId, Q as listVhTerminals, T as isValidTerminalId, U as readVhTerminal, V as sendToVhTerminal, W as TITLE_PROMPT_PREFIX, X as BOARD_ANALYZER_PROMPT_PREFIX, f as connectionState, Y as startOfflineReconnection, c as createEnvelope, Z as CodexAppServerClient } from './types-B-ySoSY9.mjs';
|
|
5
|
+
import { z as readDaemonState, l as logger, c as configuration, A as clearDaemonState, B as ensurePrivateDirectory, D as hardenPrivateFile, p as packageJson, g as readSettings, E as readCredentials, s as credentialRelayProblem, i as encodeBase64, F as readSettingsOutcome, G as updateSettings, H as encodeBase64Url, m as decodeBase64, I as writeCredentialsLegacy, J as writeCredentialsDataKey, d as readCredentialsForConfiguredRelay, j as encrypt, r as readPersistedSessions, w as writePrivateFileSync, K as decryptWithDataKey, L as decryptLegacy, M as persistSession, k as decrypt, f as ensurePrivateDirectorySync, N as acquireDaemonLock, O as deletePersistedSessions, P as writeDaemonState, Q as writeSettings, R as releaseDaemonLock, C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION, e as CLIPBOARD_MAX_BYTES, S as clearCredentials, T as clearMachineId, U as SandboxConfigSchema, V as getLatestDaemonLog } from './limits-CIcZA0Bn.mjs';
|
|
6
6
|
import spawn$1, { spawn } from 'cross-spawn';
|
|
7
7
|
import path, { join, resolve, basename, isAbsolute, dirname, sep, delimiter, normalize } from 'node:path';
|
|
8
8
|
import { createInterface } from 'node:readline';
|
|
9
9
|
import { existsSync, readFileSync, readdirSync, statSync, mkdirSync, unlinkSync, renameSync, writeFileSync, accessSync, constants, openSync, fsyncSync, closeSync, rmSync as rmSync$1, chmodSync as chmodSync$1 } from 'node:fs';
|
|
10
|
-
import { f as trimIdent, A as AGENT_GUIDANCE, t as teamScopePath, T as TeamConnectionPreflightError, e as createTeamsClient, P as PREVIEW_TOOL_NAME, R as REPORT_PROGRESS_TOOL_NAME, g as TEAM_TOOL_NAMES, r as registerTeamsTools, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, h as REPORT_PROGRESS_TOOL_TITLE, i as REPORT_PROGRESS_TOOL_DESCRIPTION } from './agentGuidance-
|
|
10
|
+
import { f as trimIdent, A as AGENT_GUIDANCE, t as teamScopePath, T as TeamConnectionPreflightError, e as createTeamsClient, P as PREVIEW_TOOL_NAME, R as REPORT_PROGRESS_TOOL_NAME, g as TEAM_TOOL_NAMES, r as registerTeamsTools, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, h as REPORT_PROGRESS_TOOL_TITLE, i as REPORT_PROGRESS_TOOL_DESCRIPTION } from './agentGuidance-7pJxf_3b.mjs';
|
|
11
11
|
import { readFile, writeFile, rename, unlink, mkdir, symlink, rm, readlink, lstat, stat, open as open$1, appendFile } from 'node:fs/promises';
|
|
12
12
|
import fs, { watch, access } from 'fs/promises';
|
|
13
13
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
@@ -3395,6 +3395,16 @@ class StreamRelay {
|
|
|
3395
3395
|
this.flushPending();
|
|
3396
3396
|
this.closeOpenBlocks();
|
|
3397
3397
|
this.currentMid = typeof mid === "string" && mid.length > 0 ? mid : null;
|
|
3398
|
+
const usage = e.message?.usage;
|
|
3399
|
+
if (usage || ["inputTokens", "cacheTokens", "outputTokens", "thinkingTokens"].some((key) => key in this.progress)) {
|
|
3400
|
+
const count = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : 0;
|
|
3401
|
+
this.setProgress({
|
|
3402
|
+
inputTokens: count(usage?.input_tokens),
|
|
3403
|
+
cacheTokens: count(usage?.cache_creation_input_tokens) + count(usage?.cache_read_input_tokens),
|
|
3404
|
+
outputTokens: count(usage?.output_tokens),
|
|
3405
|
+
thinkingTokens: 0
|
|
3406
|
+
});
|
|
3407
|
+
}
|
|
3398
3408
|
return;
|
|
3399
3409
|
}
|
|
3400
3410
|
if (e.type === "content_block_start") {
|
|
@@ -12053,7 +12063,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12053
12063
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12054
12064
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12055
12065
|
const run = deps.run ?? (async (input) => {
|
|
12056
|
-
const { query } = await import('./index-
|
|
12066
|
+
const { query } = await import('./index-C13U8MkT.mjs');
|
|
12057
12067
|
return runSideQuestion(query, input);
|
|
12058
12068
|
});
|
|
12059
12069
|
const slots = /* @__PURE__ */ new Map();
|
|
@@ -17070,7 +17080,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17070
17080
|
process.exit(0);
|
|
17071
17081
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17072
17082
|
try {
|
|
17073
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await import('./installTerminalHooks-
|
|
17083
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await import('./installTerminalHooks-kUC6I6Rn.mjs');
|
|
17074
17084
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17075
17085
|
if (command.action === "help") {
|
|
17076
17086
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17087,7 +17097,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17087
17097
|
}
|
|
17088
17098
|
} else if (subcommand === "spawn") {
|
|
17089
17099
|
try {
|
|
17090
|
-
const { handleSpawnCommand } = await import('./spawn-
|
|
17100
|
+
const { handleSpawnCommand } = await import('./spawn-CJxg1JUO.mjs');
|
|
17091
17101
|
await handleSpawnCommand(args.slice(1));
|
|
17092
17102
|
} catch (error) {
|
|
17093
17103
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17099,7 +17109,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17099
17109
|
return;
|
|
17100
17110
|
} else if (subcommand === "sessions") {
|
|
17101
17111
|
try {
|
|
17102
|
-
const { handleSessionsCommand } = await import('./sessions-
|
|
17112
|
+
const { handleSessionsCommand } = await import('./sessions-Bo2THj4y.mjs');
|
|
17103
17113
|
await handleSessionsCommand(args.slice(1));
|
|
17104
17114
|
} catch (error) {
|
|
17105
17115
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17111,7 +17121,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17111
17121
|
return;
|
|
17112
17122
|
} else if (subcommand === "send") {
|
|
17113
17123
|
try {
|
|
17114
|
-
const { handleSendCommand } = await import('./send-
|
|
17124
|
+
const { handleSendCommand } = await import('./send-BdhUFGTm.mjs');
|
|
17115
17125
|
await handleSendCommand(args.slice(1));
|
|
17116
17126
|
} catch (error) {
|
|
17117
17127
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17217,9 +17227,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17217
17227
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17218
17228
|
const projectId = args[3];
|
|
17219
17229
|
try {
|
|
17220
|
-
const { saveGoogleCloudProjectToConfig } = await import('./config-
|
|
17221
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await import('./limits-
|
|
17222
|
-
const { ApiClient: ApiClient2 } = await import('./types-
|
|
17230
|
+
const { saveGoogleCloudProjectToConfig } = await import('./config-BWu8j7bO.mjs');
|
|
17231
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await import('./limits-CIcZA0Bn.mjs').then(function (n) { return n.W; });
|
|
17232
|
+
const { ApiClient: ApiClient2 } = await import('./types-B-ySoSY9.mjs').then(function (n) { return n._; });
|
|
17223
17233
|
let userEmail = void 0;
|
|
17224
17234
|
try {
|
|
17225
17235
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17250,7 +17260,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17250
17260
|
}
|
|
17251
17261
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17252
17262
|
try {
|
|
17253
|
-
const { readGeminiLocalConfig } = await import('./config-
|
|
17263
|
+
const { readGeminiLocalConfig } = await import('./config-BWu8j7bO.mjs');
|
|
17254
17264
|
const config = readGeminiLocalConfig();
|
|
17255
17265
|
if (config.googleCloudProject) {
|
|
17256
17266
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17290,7 +17300,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17290
17300
|
process.exit(0);
|
|
17291
17301
|
}
|
|
17292
17302
|
try {
|
|
17293
|
-
const { runGemini } = await import('./runGemini-
|
|
17303
|
+
const { runGemini } = await import('./runGemini-BQd3qlVY.mjs');
|
|
17294
17304
|
let startedBy = void 0;
|
|
17295
17305
|
for (let i = 1; i < args.length; i++) {
|
|
17296
17306
|
if (args[i] === "--started-by") {
|
|
@@ -17320,7 +17330,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17320
17330
|
}
|
|
17321
17331
|
};
|
|
17322
17332
|
try {
|
|
17323
|
-
const { runAcp, resolveAcpAgentConfig } = await import('./index-
|
|
17333
|
+
const { runAcp, resolveAcpAgentConfig } = await import('./index-CdOVizh_.mjs');
|
|
17324
17334
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
17325
17335
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
17326
17336
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -17348,7 +17358,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17348
17358
|
return;
|
|
17349
17359
|
} else if (subcommand === "acp") {
|
|
17350
17360
|
try {
|
|
17351
|
-
const { runAcp, resolveAcpAgentConfig } = await import('./index-
|
|
17361
|
+
const { runAcp, resolveAcpAgentConfig } = await import('./index-CdOVizh_.mjs');
|
|
17352
17362
|
let startedBy = void 0;
|
|
17353
17363
|
let verbose = false;
|
|
17354
17364
|
const acpArgs = [];
|
|
@@ -17388,7 +17398,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17388
17398
|
return;
|
|
17389
17399
|
} else if (subcommand === "openclaw") {
|
|
17390
17400
|
try {
|
|
17391
|
-
const { runOpenClaw } = await import('./runOpenClaw-
|
|
17401
|
+
const { runOpenClaw } = await import('./runOpenClaw-BgtE2jKF.mjs');
|
|
17392
17402
|
let startedBy = void 0;
|
|
17393
17403
|
let verbose = false;
|
|
17394
17404
|
let gatewayUrl;
|
|
@@ -17439,7 +17449,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17439
17449
|
return;
|
|
17440
17450
|
} else if (subcommand === "todo") {
|
|
17441
17451
|
try {
|
|
17442
|
-
const { handleTodoCommand } = await import('./todo-
|
|
17452
|
+
const { handleTodoCommand } = await import('./todo-C8hDSNBP.mjs');
|
|
17443
17453
|
await handleTodoCommand(args.slice(1));
|
|
17444
17454
|
} catch (error) {
|
|
17445
17455
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -17448,7 +17458,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17448
17458
|
return;
|
|
17449
17459
|
} else if (subcommand === "teams") {
|
|
17450
17460
|
try {
|
|
17451
|
-
const { handleTeamsCommand } = await import('./teams-
|
|
17461
|
+
const { handleTeamsCommand } = await import('./teams-CHGj90rR.mjs');
|
|
17452
17462
|
await handleTeamsCommand(args.slice(1));
|
|
17453
17463
|
} catch (error) {
|
|
17454
17464
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -17457,7 +17467,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17457
17467
|
return;
|
|
17458
17468
|
} else if (subcommand === "mcp" && args.length === 1) {
|
|
17459
17469
|
try {
|
|
17460
|
-
const { handleMcpCommand } = await import('./mcp-
|
|
17470
|
+
const { handleMcpCommand } = await import('./mcp-D5uyhbfB.mjs');
|
|
17461
17471
|
await handleMcpCommand();
|
|
17462
17472
|
} catch (error) {
|
|
17463
17473
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { q as query } from './index-
|
|
1
|
+
import { q as query } from './index-BUhcXX8R.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-B-ySoSY9.mjs';
|
|
7
7
|
import 'axios';
|
|
8
|
-
import './limits-
|
|
8
|
+
import './limits-CIcZA0Bn.mjs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:path';
|
|
@@ -29,7 +29,7 @@ import 'fs';
|
|
|
29
29
|
import 'node:readline';
|
|
30
30
|
import '@anthropic-ai/sandbox-runtime';
|
|
31
31
|
import 'expo-server-sdk';
|
|
32
|
-
import './agentGuidance-
|
|
32
|
+
import './agentGuidance-7pJxf_3b.mjs';
|
|
33
33
|
import 'ink';
|
|
34
34
|
import 'react';
|
|
35
35
|
import 'ps-list';
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var api = require('./types-
|
|
7
|
-
var persistence = require('./limits-
|
|
6
|
+
var api = require('./types-QB33ckXt.cjs');
|
|
7
|
+
var persistence = require('./limits-BhK6ovLz.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
|
-
var agentGuidance = require('./agentGuidance-
|
|
12
|
+
var agentGuidance = require('./agentGuidance-TjPzDO7d.cjs');
|
|
13
13
|
var promises = require('node:fs/promises');
|
|
14
14
|
var fs = require('fs/promises');
|
|
15
15
|
var ink = require('ink');
|
|
@@ -3417,6 +3417,16 @@ class StreamRelay {
|
|
|
3417
3417
|
this.flushPending();
|
|
3418
3418
|
this.closeOpenBlocks();
|
|
3419
3419
|
this.currentMid = typeof mid === "string" && mid.length > 0 ? mid : null;
|
|
3420
|
+
const usage = e.message?.usage;
|
|
3421
|
+
if (usage || ["inputTokens", "cacheTokens", "outputTokens", "thinkingTokens"].some((key) => key in this.progress)) {
|
|
3422
|
+
const count = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : 0;
|
|
3423
|
+
this.setProgress({
|
|
3424
|
+
inputTokens: count(usage?.input_tokens),
|
|
3425
|
+
cacheTokens: count(usage?.cache_creation_input_tokens) + count(usage?.cache_read_input_tokens),
|
|
3426
|
+
outputTokens: count(usage?.output_tokens),
|
|
3427
|
+
thinkingTokens: 0
|
|
3428
|
+
});
|
|
3429
|
+
}
|
|
3420
3430
|
return;
|
|
3421
3431
|
}
|
|
3422
3432
|
if (e.type === "content_block_start") {
|
|
@@ -7704,7 +7714,7 @@ function parseJsonObject(text) {
|
|
|
7704
7714
|
return null;
|
|
7705
7715
|
}
|
|
7706
7716
|
}
|
|
7707
|
-
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-
|
|
7717
|
+
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-C7TA3haC.cjs', document.baseURI).href))).resolve(s)) {
|
|
7708
7718
|
const platformArch = `${platform}-${arch}`;
|
|
7709
7719
|
const candidates = [
|
|
7710
7720
|
`@anthropic-ai/claude-agent-sdk-${platformArch}/claude`,
|
|
@@ -12075,7 +12085,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12075
12085
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12076
12086
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12077
12087
|
const run = deps.run ?? (async (input) => {
|
|
12078
|
-
const { query } = await Promise.resolve().then(function () { return require('./index-
|
|
12088
|
+
const { query } = await Promise.resolve().then(function () { return require('./index-Ds0aHXiU.cjs'); });
|
|
12079
12089
|
return runSideQuestion(query, input);
|
|
12080
12090
|
});
|
|
12081
12091
|
const slots = /* @__PURE__ */ new Map();
|
|
@@ -12177,7 +12187,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
12177
12187
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
12178
12188
|
function resolveClaudeBinary() {
|
|
12179
12189
|
try {
|
|
12180
|
-
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-
|
|
12190
|
+
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-C7TA3haC.cjs', document.baseURI).href)));
|
|
12181
12191
|
const utilsPath = path.resolve(path.join(api.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
12182
12192
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
12183
12193
|
const path$1 = getClaudeCliPath();
|
|
@@ -14395,9 +14405,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
14395
14405
|
};
|
|
14396
14406
|
}
|
|
14397
14407
|
|
|
14398
|
-
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-
|
|
14408
|
+
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-C7TA3haC.cjs', document.baseURI).href)));
|
|
14399
14409
|
const __dirname$1 = path.dirname(__filename$1);
|
|
14400
|
-
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
14410
|
+
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-C7TA3haC.cjs', document.baseURI).href)));
|
|
14401
14411
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
14402
14412
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
14403
14413
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -17092,7 +17102,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17092
17102
|
process.exit(0);
|
|
17093
17103
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17094
17104
|
try {
|
|
17095
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-
|
|
17105
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-cNXov61F.cjs'); });
|
|
17096
17106
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17097
17107
|
if (command.action === "help") {
|
|
17098
17108
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17109,7 +17119,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17109
17119
|
}
|
|
17110
17120
|
} else if (subcommand === "spawn") {
|
|
17111
17121
|
try {
|
|
17112
|
-
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-
|
|
17122
|
+
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-6GfCYB5i.cjs'); });
|
|
17113
17123
|
await handleSpawnCommand(args.slice(1));
|
|
17114
17124
|
} catch (error) {
|
|
17115
17125
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17121,7 +17131,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17121
17131
|
return;
|
|
17122
17132
|
} else if (subcommand === "sessions") {
|
|
17123
17133
|
try {
|
|
17124
|
-
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-
|
|
17134
|
+
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-eaAew6IP.cjs'); });
|
|
17125
17135
|
await handleSessionsCommand(args.slice(1));
|
|
17126
17136
|
} catch (error) {
|
|
17127
17137
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17133,7 +17143,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17133
17143
|
return;
|
|
17134
17144
|
} else if (subcommand === "send") {
|
|
17135
17145
|
try {
|
|
17136
|
-
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-
|
|
17146
|
+
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-Di8Q32Ds.cjs'); });
|
|
17137
17147
|
await handleSendCommand(args.slice(1));
|
|
17138
17148
|
} catch (error) {
|
|
17139
17149
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17239,9 +17249,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17239
17249
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17240
17250
|
const projectId = args[3];
|
|
17241
17251
|
try {
|
|
17242
|
-
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17243
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-
|
|
17244
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-
|
|
17252
|
+
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-B4Md4FvK.cjs'); });
|
|
17253
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-BhK6ovLz.cjs'); }).then(function (n) { return n.persistence; });
|
|
17254
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-QB33ckXt.cjs'); }).then(function (n) { return n.api; });
|
|
17245
17255
|
let userEmail = void 0;
|
|
17246
17256
|
try {
|
|
17247
17257
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17272,7 +17282,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17272
17282
|
}
|
|
17273
17283
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17274
17284
|
try {
|
|
17275
|
-
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17285
|
+
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-B4Md4FvK.cjs'); });
|
|
17276
17286
|
const config = readGeminiLocalConfig();
|
|
17277
17287
|
if (config.googleCloudProject) {
|
|
17278
17288
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17312,7 +17322,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17312
17322
|
process.exit(0);
|
|
17313
17323
|
}
|
|
17314
17324
|
try {
|
|
17315
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
17325
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-DvV6X_GE.cjs'); });
|
|
17316
17326
|
let startedBy = void 0;
|
|
17317
17327
|
for (let i = 1; i < args.length; i++) {
|
|
17318
17328
|
if (args[i] === "--started-by") {
|
|
@@ -17342,7 +17352,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17342
17352
|
}
|
|
17343
17353
|
};
|
|
17344
17354
|
try {
|
|
17345
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
17355
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-DksoP9b2.cjs'); });
|
|
17346
17356
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
17347
17357
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
17348
17358
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -17370,7 +17380,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17370
17380
|
return;
|
|
17371
17381
|
} else if (subcommand === "acp") {
|
|
17372
17382
|
try {
|
|
17373
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
17383
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-DksoP9b2.cjs'); });
|
|
17374
17384
|
let startedBy = void 0;
|
|
17375
17385
|
let verbose = false;
|
|
17376
17386
|
const acpArgs = [];
|
|
@@ -17410,7 +17420,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17410
17420
|
return;
|
|
17411
17421
|
} else if (subcommand === "openclaw") {
|
|
17412
17422
|
try {
|
|
17413
|
-
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
17423
|
+
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-jxvPz3bo.cjs'); });
|
|
17414
17424
|
let startedBy = void 0;
|
|
17415
17425
|
let verbose = false;
|
|
17416
17426
|
let gatewayUrl;
|
|
@@ -17461,7 +17471,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17461
17471
|
return;
|
|
17462
17472
|
} else if (subcommand === "todo") {
|
|
17463
17473
|
try {
|
|
17464
|
-
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-
|
|
17474
|
+
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-C-wktj2K.cjs'); });
|
|
17465
17475
|
await handleTodoCommand(args.slice(1));
|
|
17466
17476
|
} catch (error) {
|
|
17467
17477
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -17470,7 +17480,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17470
17480
|
return;
|
|
17471
17481
|
} else if (subcommand === "teams") {
|
|
17472
17482
|
try {
|
|
17473
|
-
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-
|
|
17483
|
+
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-WdwFtptw.cjs'); });
|
|
17474
17484
|
await handleTeamsCommand(args.slice(1));
|
|
17475
17485
|
} catch (error) {
|
|
17476
17486
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -17479,7 +17489,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17479
17489
|
return;
|
|
17480
17490
|
} else if (subcommand === "mcp" && args.length === 1) {
|
|
17481
17491
|
try {
|
|
17482
|
-
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-
|
|
17492
|
+
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-CNX1qErQ.cjs'); });
|
|
17483
17493
|
await handleMcpCommand();
|
|
17484
17494
|
} catch (error) {
|
|
17485
17495
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DefaultTransport, A as AcpBackend } from './AcpBackend-
|
|
2
|
-
export { a as DEFAULT_IDLE_TIMEOUT_MS, b as DEFAULT_TOOL_CALL_TIMEOUT_MS, e as extractErrorDetail, f as formatDuration, c as formatDurationMinutes, h as handleAgentMessageChunk, d as handleAgentThoughtChunk, g as handleLegacyMessageChunk, i as handlePlanUpdate, j as handleThinkingUpdate, k as handleToolCall, l as handleToolCallUpdate, p as parseArgsFromContent } from './AcpBackend-
|
|
3
|
-
import { c as configuration, g as readSettings, i as encodeBase64, l as logger } from './limits-
|
|
4
|
-
import { A as AcpSessionManager } from './AcpSessionManager-
|
|
5
|
-
import { f as connectionState, A as ApiClient, p as projectPath, g as BUILTIN_TODO_DISCOVERY } from './types-
|
|
6
|
-
import { P as PI_TEAMS_EXTENSION, n as initialMachineMetadata, o as createSessionMetadata, u as setupOfflineReconnection, v as notifyDaemonSessionStarted, z as StreamRelay, x as MessageQueue2, B as hashObject, C as startHappyServer, E as registerAgentAttachmentDownloads, F as TitleGenerator, y as registerKillSessionHandler, H as CLAUDE_ATTACHMENT_KINDS, I as stageClaudeAttachments, J as appendStagedAttachmentsToPrompt, K as BasePermissionHandler, L as writeSessionModeFile, N as normalizeAcpPermissionMode, O as removeSessionModeFile } from './index-
|
|
1
|
+
import { D as DefaultTransport, A as AcpBackend } from './AcpBackend-Co3atHW2.mjs';
|
|
2
|
+
export { a as DEFAULT_IDLE_TIMEOUT_MS, b as DEFAULT_TOOL_CALL_TIMEOUT_MS, e as extractErrorDetail, f as formatDuration, c as formatDurationMinutes, h as handleAgentMessageChunk, d as handleAgentThoughtChunk, g as handleLegacyMessageChunk, i as handlePlanUpdate, j as handleThinkingUpdate, k as handleToolCall, l as handleToolCallUpdate, p as parseArgsFromContent } from './AcpBackend-Co3atHW2.mjs';
|
|
3
|
+
import { c as configuration, g as readSettings, i as encodeBase64, l as logger } from './limits-CIcZA0Bn.mjs';
|
|
4
|
+
import { A as AcpSessionManager } from './AcpSessionManager-B0sD6Zi7.mjs';
|
|
5
|
+
import { f as connectionState, A as ApiClient, p as projectPath, g as BUILTIN_TODO_DISCOVERY } from './types-B-ySoSY9.mjs';
|
|
6
|
+
import { P as PI_TEAMS_EXTENSION, n as initialMachineMetadata, o as createSessionMetadata, u as setupOfflineReconnection, v as notifyDaemonSessionStarted, z as StreamRelay, x as MessageQueue2, B as hashObject, C as startHappyServer, E as registerAgentAttachmentDownloads, F as TitleGenerator, y as registerKillSessionHandler, H as CLAUDE_ATTACHMENT_KINDS, I as stageClaudeAttachments, J as appendStagedAttachmentsToPrompt, K as BasePermissionHandler, L as writeSessionModeFile, N as normalizeAcpPermissionMode, O as removeSessionModeFile } from './index-BUhcXX8R.mjs';
|
|
7
7
|
import { mkdir, chmod, writeFile, rename } from 'node:fs/promises';
|
|
8
8
|
import { randomUUID } from 'node:crypto';
|
|
9
9
|
import { join } from 'node:path';
|
|
@@ -32,7 +32,7 @@ import 'fs';
|
|
|
32
32
|
import 'node:readline';
|
|
33
33
|
import '@anthropic-ai/sandbox-runtime';
|
|
34
34
|
import 'expo-server-sdk';
|
|
35
|
-
import './agentGuidance-
|
|
35
|
+
import './agentGuidance-7pJxf_3b.mjs';
|
|
36
36
|
import 'ink';
|
|
37
37
|
import 'react';
|
|
38
38
|
import '@anthropic-ai/claude-agent-sdk';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AcpBackend = require('./AcpBackend-
|
|
4
|
-
var persistence = require('./limits-
|
|
5
|
-
var AcpSessionManager = require('./AcpSessionManager-
|
|
6
|
-
var api = require('./types-
|
|
7
|
-
var index = require('./index-
|
|
3
|
+
var AcpBackend = require('./AcpBackend-5slez7vM.cjs');
|
|
4
|
+
var persistence = require('./limits-BhK6ovLz.cjs');
|
|
5
|
+
var AcpSessionManager = require('./AcpSessionManager-CxvVg8ec.cjs');
|
|
6
|
+
var api = require('./types-QB33ckXt.cjs');
|
|
7
|
+
var index = require('./index-C7TA3haC.cjs');
|
|
8
8
|
var promises = require('node:fs/promises');
|
|
9
9
|
var node_crypto = require('node:crypto');
|
|
10
10
|
var path = require('node:path');
|
|
@@ -33,7 +33,7 @@ require('fs');
|
|
|
33
33
|
require('node:readline');
|
|
34
34
|
require('@anthropic-ai/sandbox-runtime');
|
|
35
35
|
require('expo-server-sdk');
|
|
36
|
-
require('./agentGuidance-
|
|
36
|
+
require('./agentGuidance-TjPzDO7d.cjs');
|
|
37
37
|
require('ink');
|
|
38
38
|
require('react');
|
|
39
39
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C7TA3haC.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-QB33ckXt.cjs');
|
|
9
9
|
require('axios');
|
|
10
|
-
require('./limits-
|
|
10
|
+
require('./limits-BhK6ovLz.cjs');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:fs');
|
|
13
13
|
require('node:path');
|
|
@@ -31,7 +31,7 @@ require('fs');
|
|
|
31
31
|
require('node:readline');
|
|
32
32
|
require('@anthropic-ai/sandbox-runtime');
|
|
33
33
|
require('expo-server-sdk');
|
|
34
|
-
require('./agentGuidance-
|
|
34
|
+
require('./agentGuidance-TjPzDO7d.cjs');
|
|
35
35
|
require('ink');
|
|
36
36
|
require('react');
|
|
37
37
|
require('ps-list');
|