very-happy-cli 0.2.142 → 0.2.143
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-DJsqfgjD.cjs → AcpBackend-B8oehrfU.cjs} +2 -2
- package/dist/{AcpBackend-D2LqY2to.mjs → AcpBackend-LEgn9vol.mjs} +2 -2
- package/dist/{AcpSessionManager-CTfDxziP.cjs → AcpSessionManager-BomdfyhZ.cjs} +1 -1
- package/dist/{AcpSessionManager-CdeM5KD9.mjs → AcpSessionManager-Yfbs5bi2.mjs} +1 -1
- package/dist/{agentGuidance-Cz8QVcX3.mjs → agentGuidance-BU4hxm8M.mjs} +1 -1
- package/dist/{agentGuidance-Bi8iBjy3.cjs → agentGuidance-CJSl54ua.cjs} +1 -1
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-BIbYBmTd.cjs → config-CfqWoHmO.cjs} +4 -4
- package/dist/{config-ZsBeq10u.mjs → config-euZ_K5Lo.mjs} +4 -4
- package/dist/{index-Bom8mTuS.cjs → index-BREtikhm.cjs} +4 -4
- package/dist/{index-BPTPrjhL.cjs → index-Bj68y6ee.cjs} +7 -7
- package/dist/{index-CSQZhQ0C.cjs → index-C510dSUn.cjs} +32 -28
- package/dist/{index-CYFendNf.mjs → index-DoiG88oX.mjs} +28 -24
- package/dist/{index-CNARLBax.mjs → index-PM_SsRpw.mjs} +4 -4
- package/dist/{index-CY0zmhIp.mjs → index-ZOMC8Gzn.mjs} +8 -8
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{installTerminalHooks-BPJu2WVz.mjs → installTerminalHooks-BGVQqbgq.mjs} +4 -4
- package/dist/{installTerminalHooks-DA7SyFYW.cjs → installTerminalHooks-C_jraM1j.cjs} +4 -4
- package/dist/lib.cjs +2 -2
- package/dist/lib.mjs +2 -2
- package/dist/{limits-B3hngubn.cjs → limits-B3oVgqBJ.cjs} +7 -7
- package/dist/{limits-CHsz3Ba-.mjs → limits-uABU-yq3.mjs} +7 -7
- package/dist/{mcp-BkWBRWFe.mjs → mcp-CfbTQXyh.mjs} +4 -4
- package/dist/{mcp-ySrfNOYl.cjs → mcp-G-3lL_KH.cjs} +4 -4
- package/dist/{piRuntime-DBLUyXFr.mjs → piRuntime-BE6iYQwU.mjs} +2 -2
- package/dist/{piRuntime-uX0WHVr4.cjs → piRuntime-CWE-1W-y.cjs} +2 -2
- package/dist/{piTerminal-DNr3hkzY.cjs → piTerminal-Dyc_9pGP.cjs} +6 -6
- package/dist/{piTerminal-Bc3jSCnY.mjs → piTerminal-rqKn1_Zy.mjs} +6 -6
- package/dist/{runGemini-rgFHTnG7.mjs → runGemini-BMlXIaTL.mjs} +6 -6
- package/dist/{runGemini-eJ08cXk7.cjs → runGemini-C6qMFzcn.cjs} +6 -6
- package/dist/{runOpenClaw-D0LVzxqM.cjs → runOpenClaw-C2_aCP7v.cjs} +5 -5
- package/dist/{runOpenClaw-GjLWwjas.mjs → runOpenClaw-CoO5Vp3S.mjs} +5 -5
- package/dist/{send-DV8liaRN.mjs → send-CBrJylJc.mjs} +4 -4
- package/dist/{send-Bg2oqt7f.cjs → send-DGVwmB-p.cjs} +4 -4
- package/dist/{sessions-JiL4aJkC.mjs → sessions-DbLubh2N.mjs} +4 -4
- package/dist/{sessions-DPimBZ8H.cjs → sessions-DyQXMN-8.cjs} +4 -4
- package/dist/{spawn-COOcUwkG.cjs → spawn-DIyFOn3W.cjs} +4 -4
- package/dist/{spawn-CnMk3LFG.mjs → spawn-wkkxEGdF.mjs} +4 -4
- package/dist/{teams-uHZcdX9j.mjs → teams-BTyVFK3P.mjs} +4 -4
- package/dist/{teams-DSQgHBLE.cjs → teams-QOkGFjkJ.cjs} +4 -4
- package/dist/{todo-oHWNpEx_.mjs → todo-DoLkqdBe.mjs} +3 -3
- package/dist/{todo-DeauuUd6.cjs → todo-Du6pjwx_.cjs} +3 -3
- package/dist/{types-Xd_LJRJN.cjs → types-6__wqmmP.cjs} +52 -5
- package/dist/{types-Dnoxgb7G.mjs → types-BG4gFjLL.mjs} +52 -5
- 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-B3oVgqBJ.cjs');
|
|
7
|
+
var api = require('./types-6__wqmmP.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 { l as contentLogMetadata, k as errorLogMetadata, m as delay } from './types-
|
|
4
|
+
import { l as logger, p as packageJson } from './limits-uABU-yq3.mjs';
|
|
5
|
+
import { l as contentLogMetadata, k as errorLogMetadata, m as delay } from './types-BG4gFjLL.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 { b as streamKeyOf, d as createEnvelope } from './types-
|
|
2
|
+
import { b as streamKeyOf, d as createEnvelope } from './types-BG4gFjLL.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, f as readSettings, r as readPersistedSessions, d as readCredentialsForConfiguredRelay } from './limits-
|
|
3
|
+
import { n as normalizeHttpEndpoint, c as configuration, f as readSettings, r as readPersistedSessions, d as readCredentialsForConfiguredRelay } from './limits-uABU-yq3.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-B3oVgqBJ.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-CJSl54ua.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-B3oVgqBJ.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-BU4hxm8M.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-uABU-yq3.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-B3oVgqBJ.cjs');
|
|
8
|
+
var index = require('./index-C510dSUn.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-6__wqmmP.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-CJSl54ua.cjs');
|
|
35
35
|
require('ink');
|
|
36
36
|
require('react');
|
|
37
37
|
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 { g as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-
|
|
5
|
+
import { l as logger } from './limits-uABU-yq3.mjs';
|
|
6
|
+
import { g as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-DoiG88oX.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-BG4gFjLL.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-BU4hxm8M.mjs';
|
|
33
33
|
import 'ink';
|
|
34
34
|
import 'react';
|
|
35
35
|
import '@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-C510dSUn.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-6__wqmmP.cjs');
|
|
9
9
|
require('axios');
|
|
10
|
-
require('./limits-
|
|
10
|
+
require('./limits-B3oVgqBJ.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-CJSl54ua.cjs');
|
|
36
36
|
require('ink');
|
|
37
37
|
require('react');
|
|
38
38
|
require('ps-list');
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
8
|
-
var piRuntime = require('./piRuntime-
|
|
3
|
+
var AcpBackend = require('./AcpBackend-B8oehrfU.cjs');
|
|
4
|
+
var persistence = require('./limits-B3oVgqBJ.cjs');
|
|
5
|
+
var AcpSessionManager = require('./AcpSessionManager-BomdfyhZ.cjs');
|
|
6
|
+
var api = require('./types-6__wqmmP.cjs');
|
|
7
|
+
var index = require('./index-C510dSUn.cjs');
|
|
8
|
+
var piRuntime = require('./piRuntime-CWE-1W-y.cjs');
|
|
9
9
|
var node_crypto = require('node:crypto');
|
|
10
10
|
var path = require('node:path');
|
|
11
11
|
var projectPath = require('./projectPath-ChLhdOyt.cjs');
|
|
@@ -34,7 +34,7 @@ require('fs');
|
|
|
34
34
|
require('node:readline');
|
|
35
35
|
require('@anthropic-ai/sandbox-runtime');
|
|
36
36
|
require('expo-server-sdk');
|
|
37
|
-
require('./agentGuidance-
|
|
37
|
+
require('./agentGuidance-CJSl54ua.cjs');
|
|
38
38
|
require('ink');
|
|
39
39
|
require('react');
|
|
40
40
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -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 api = require('./types-
|
|
7
|
-
var persistence = require('./limits-
|
|
6
|
+
var api = require('./types-6__wqmmP.cjs');
|
|
7
|
+
var persistence = require('./limits-B3oVgqBJ.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-CJSl54ua.cjs');
|
|
14
14
|
var promises = require('node:fs/promises');
|
|
15
15
|
var fs = require('fs/promises');
|
|
16
16
|
var ink = require('ink');
|
|
@@ -7988,7 +7988,7 @@ function parseJsonObject(text) {
|
|
|
7988
7988
|
return null;
|
|
7989
7989
|
}
|
|
7990
7990
|
}
|
|
7991
|
-
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-
|
|
7991
|
+
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-C510dSUn.cjs', document.baseURI).href))).resolve(s)) {
|
|
7992
7992
|
const platformArch = `${platform}-${arch}`;
|
|
7993
7993
|
const candidates = [
|
|
7994
7994
|
`@anthropic-ai/claude-agent-sdk-${platformArch}/claude`,
|
|
@@ -10038,6 +10038,10 @@ Use the teams tools to inspect current task state before acting. This message is
|
|
|
10038
10038
|
} };
|
|
10039
10039
|
}
|
|
10040
10040
|
|
|
10041
|
+
function daemonExitCode(source) {
|
|
10042
|
+
return source === "exception" ? 1 : 0;
|
|
10043
|
+
}
|
|
10044
|
+
|
|
10041
10045
|
const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
10042
10046
|
function sanitizeImportTitle(value) {
|
|
10043
10047
|
if (typeof value !== "string") return null;
|
|
@@ -10117,9 +10121,9 @@ async function startDaemon() {
|
|
|
10117
10121
|
requestShutdown = (source, errorMessage) => {
|
|
10118
10122
|
persistence.logger.debug(`[DAEMON RUN] Requesting shutdown (source: ${source}, errorMessage: ${errorMessage})`);
|
|
10119
10123
|
setTimeout(async () => {
|
|
10120
|
-
persistence.logger.debug(
|
|
10124
|
+
persistence.logger.debug(`[DAEMON RUN] Shutdown did not complete in time, forcing exit with code ${daemonExitCode(source)}`);
|
|
10121
10125
|
await new Promise((resolve2) => setTimeout(resolve2, 100));
|
|
10122
|
-
process.exit(
|
|
10126
|
+
process.exit(daemonExitCode(source));
|
|
10123
10127
|
}, 1e3);
|
|
10124
10128
|
resolve({ source, errorMessage });
|
|
10125
10129
|
};
|
|
@@ -11377,8 +11381,8 @@ async function startDaemon() {
|
|
|
11377
11381
|
await api.cleanupDaemonState();
|
|
11378
11382
|
await stopCaffeinate();
|
|
11379
11383
|
await persistence.releaseDaemonLock(daemonLockHandle);
|
|
11380
|
-
persistence.logger.debug(
|
|
11381
|
-
process.exit(
|
|
11384
|
+
persistence.logger.debug(`[DAEMON RUN] Cleanup completed, exiting process with code ${daemonExitCode(source)}`);
|
|
11385
|
+
process.exit(daemonExitCode(source));
|
|
11382
11386
|
};
|
|
11383
11387
|
persistence.logger.debug("[DAEMON RUN] Daemon started successfully, waiting for shutdown request");
|
|
11384
11388
|
const shutdownRequest = await resolvesWhenShutdownRequested;
|
|
@@ -12372,7 +12376,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12372
12376
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12373
12377
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12374
12378
|
const run = deps.run ?? (async (input) => {
|
|
12375
|
-
const { query } = await Promise.resolve().then(function () { return require('./index-
|
|
12379
|
+
const { query } = await Promise.resolve().then(function () { return require('./index-BREtikhm.cjs'); });
|
|
12376
12380
|
return runSideQuestion(query, input);
|
|
12377
12381
|
});
|
|
12378
12382
|
const slots = /* @__PURE__ */ new Map();
|
|
@@ -12474,7 +12478,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
12474
12478
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
12475
12479
|
function resolveClaudeBinary() {
|
|
12476
12480
|
try {
|
|
12477
|
-
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-
|
|
12481
|
+
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-C510dSUn.cjs', document.baseURI).href)));
|
|
12478
12482
|
const utilsPath = path.resolve(path.join(projectPath.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
12479
12483
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
12480
12484
|
const path$1 = getClaudeCliPath();
|
|
@@ -14700,9 +14704,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
14700
14704
|
};
|
|
14701
14705
|
}
|
|
14702
14706
|
|
|
14703
|
-
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-
|
|
14707
|
+
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-C510dSUn.cjs', document.baseURI).href)));
|
|
14704
14708
|
const __dirname$1 = path.dirname(__filename$1);
|
|
14705
|
-
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
14709
|
+
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-C510dSUn.cjs', document.baseURI).href)));
|
|
14706
14710
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
14707
14711
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
14708
14712
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -17617,7 +17621,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17617
17621
|
return;
|
|
17618
17622
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17619
17623
|
try {
|
|
17620
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-
|
|
17624
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-C_jraM1j.cjs'); });
|
|
17621
17625
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17622
17626
|
if (command.action === "help") {
|
|
17623
17627
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17634,7 +17638,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17634
17638
|
}
|
|
17635
17639
|
} else if (subcommand === "spawn") {
|
|
17636
17640
|
try {
|
|
17637
|
-
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-
|
|
17641
|
+
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-DIyFOn3W.cjs'); });
|
|
17638
17642
|
await handleSpawnCommand(args.slice(1));
|
|
17639
17643
|
} catch (error) {
|
|
17640
17644
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17646,7 +17650,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17646
17650
|
return;
|
|
17647
17651
|
} else if (subcommand === "sessions") {
|
|
17648
17652
|
try {
|
|
17649
|
-
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-
|
|
17653
|
+
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-DyQXMN-8.cjs'); });
|
|
17650
17654
|
await handleSessionsCommand(args.slice(1));
|
|
17651
17655
|
} catch (error) {
|
|
17652
17656
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17658,7 +17662,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17658
17662
|
return;
|
|
17659
17663
|
} else if (subcommand === "send") {
|
|
17660
17664
|
try {
|
|
17661
|
-
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-
|
|
17665
|
+
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-DGVwmB-p.cjs'); });
|
|
17662
17666
|
await handleSendCommand(args.slice(1));
|
|
17663
17667
|
} catch (error) {
|
|
17664
17668
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17764,9 +17768,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17764
17768
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17765
17769
|
const projectId = args[3];
|
|
17766
17770
|
try {
|
|
17767
|
-
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17768
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-
|
|
17769
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-
|
|
17771
|
+
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-CfqWoHmO.cjs'); });
|
|
17772
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-B3oVgqBJ.cjs'); }).then(function (n) { return n.persistence; });
|
|
17773
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-6__wqmmP.cjs'); }).then(function (n) { return n.api; });
|
|
17770
17774
|
let userEmail = void 0;
|
|
17771
17775
|
try {
|
|
17772
17776
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17797,7 +17801,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17797
17801
|
}
|
|
17798
17802
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17799
17803
|
try {
|
|
17800
|
-
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17804
|
+
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-CfqWoHmO.cjs'); });
|
|
17801
17805
|
const config = readGeminiLocalConfig();
|
|
17802
17806
|
if (config.googleCloudProject) {
|
|
17803
17807
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17837,7 +17841,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17837
17841
|
process.exit(0);
|
|
17838
17842
|
}
|
|
17839
17843
|
try {
|
|
17840
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
17844
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-C6qMFzcn.cjs'); });
|
|
17841
17845
|
let startedBy = void 0;
|
|
17842
17846
|
for (let i = 1; i < args.length; i++) {
|
|
17843
17847
|
if (args[i] === "--started-by") {
|
|
@@ -17860,7 +17864,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17860
17864
|
} else if (subcommand === "pi") {
|
|
17861
17865
|
if (args[1] === "--terminal") {
|
|
17862
17866
|
try {
|
|
17863
|
-
const { runPiTerminal } = await Promise.resolve().then(function () { return require('./piTerminal-
|
|
17867
|
+
const { runPiTerminal } = await Promise.resolve().then(function () { return require('./piTerminal-Dyc_9pGP.cjs'); });
|
|
17864
17868
|
process.exitCode = await runPiTerminal(args.slice(2));
|
|
17865
17869
|
} catch (error) {
|
|
17866
17870
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17877,7 +17881,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17877
17881
|
}
|
|
17878
17882
|
};
|
|
17879
17883
|
try {
|
|
17880
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
17884
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-Bj68y6ee.cjs'); });
|
|
17881
17885
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
17882
17886
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
17883
17887
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -17905,7 +17909,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17905
17909
|
return;
|
|
17906
17910
|
} else if (subcommand === "acp") {
|
|
17907
17911
|
try {
|
|
17908
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
17912
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-Bj68y6ee.cjs'); });
|
|
17909
17913
|
let startedBy = void 0;
|
|
17910
17914
|
let verbose = false;
|
|
17911
17915
|
const acpArgs = [];
|
|
@@ -17945,7 +17949,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17945
17949
|
return;
|
|
17946
17950
|
} else if (subcommand === "openclaw") {
|
|
17947
17951
|
try {
|
|
17948
|
-
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
17952
|
+
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-C2_aCP7v.cjs'); });
|
|
17949
17953
|
let startedBy = void 0;
|
|
17950
17954
|
let verbose = false;
|
|
17951
17955
|
let gatewayUrl;
|
|
@@ -17996,7 +18000,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17996
18000
|
return;
|
|
17997
18001
|
} else if (subcommand === "todo") {
|
|
17998
18002
|
try {
|
|
17999
|
-
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-
|
|
18003
|
+
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-Du6pjwx_.cjs'); });
|
|
18000
18004
|
await handleTodoCommand(args.slice(1));
|
|
18001
18005
|
} catch (error) {
|
|
18002
18006
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -18005,7 +18009,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18005
18009
|
return;
|
|
18006
18010
|
} else if (subcommand === "teams") {
|
|
18007
18011
|
try {
|
|
18008
|
-
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-
|
|
18012
|
+
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-QOkGFjkJ.cjs'); });
|
|
18009
18013
|
await handleTeamsCommand(args.slice(1));
|
|
18010
18014
|
} catch (error) {
|
|
18011
18015
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -18014,7 +18018,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18014
18018
|
return;
|
|
18015
18019
|
} else if (subcommand === "mcp" && (args.length === 1 || args.length === 2 && args[1] === "--terminal-tools")) {
|
|
18016
18020
|
try {
|
|
18017
|
-
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-
|
|
18021
|
+
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-G-3lL_KH.cjs'); });
|
|
18018
18022
|
await handleMcpCommand(args[1] === "--terminal-tools");
|
|
18019
18023
|
} catch (error) {
|
|
18020
18024
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|
|
@@ -1,14 +1,14 @@
|
|
|
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, randomInt, randomBytes, createHash as createHash$1, timingSafeEqual } from 'node:crypto';
|
|
4
|
-
import { o as notifyDaemonSessionEvent, q as getProjectPath, j as BUILTIN_TODO_DISCOVERY, r as initializeSandbox, w as wrapCommand, l as contentLogMetadata, I as InvalidateSync, R as RawJSONLinesSchema, m as delay, t as AsyncLock, S as STREAM_DELTA_MAX_CHARS, M as MAX_CHAT_ATTACHMENT_SOURCE_BYTES, u as notifyDaemonClaudeAuthFailed, v as commandOnPath, c as checkIfDaemonRunningAndCleanupStaleState, x as deriveLocalCliUpdateSummary, y as AGENT_VERSION_SOURCES, z as isClaudeSessionId, C as getLocalHappyAgentCredentialPath, D as readLocalHappyAgentCredentials, E as parseExactVersion, F as compareExactVersions, G as extractCompleteLines, H as decideBackfill, J as parseTerminalHookPayload, K as tmuxArgs, L as scrubTmuxClientEnv, N as decideMirrorBinding, O as MIRROR_BACKFILL_LINES_DEFAULT, P as mirrorLineKey, Q as mirrorLocalId, T as listDaemonSessions, U as stopDaemonSession, V as detectCLIAvailability, W as detectResumeSupport, X as isDaemonRunningCurrentlyInstalledHappyVersion, Y as stopDaemon, Z as TurnActivityTracker, _ as summarizeSpawnSessionForLog, $ as shellescape, A as ApiClient, a0 as fetchCliUpdateState, a1 as resolveCliUpdateCheckInterval, a2 as DEFAULT_CLI_UPDATE_CHECK_INTERVAL_MS, a3 as cleanupDaemonState, i as isValidSessionId, s as spawnDaemonSession, a4 as listVhTerminals, a5 as isValidTerminalId, a6 as readVhTerminal, a7 as sendToVhTerminal, a8 as ContextUsageSchema, a9 as TITLE_PROMPT_PREFIX, aa as BOARD_ANALYZER_PROMPT_PREFIX, h as connectionState, ab as startOfflineReconnection, n as notifyDaemonSessionStarted, d as createEnvelope, ac as CodexAppServerClient } from './types-
|
|
5
|
-
import { l as logger, E as ensurePrivateDirectory, F as hardenPrivateFile, c as configuration, p as packageJson, f as readSettings, G as readCredentials, v as credentialRelayProblem, o as readDaemonState, g as encodeBase64, H as readSettingsOutcome, I as updateSettings, J as encodeBase64Url, m as decodeBase64, K as writeCredentialsLegacy, L as writeCredentialsDataKey, d as readCredentialsForConfiguredRelay, j as encrypt, r as readPersistedSessions, w as writePrivateFileSync, M as decryptWithDataKey, N as decryptLegacy, O as persistSession, k as decrypt, h as ensurePrivateDirectorySync, P as acquireDaemonLock, Q as deletePersistedSessions, R as writeDaemonState, S as writeSettings, T as releaseDaemonLock, C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION, e as CLIPBOARD_MAX_BYTES, U as clearCredentials, V as clearMachineId, W as SandboxConfigSchema, X as getLatestDaemonLog } from './limits-
|
|
4
|
+
import { o as notifyDaemonSessionEvent, q as getProjectPath, j as BUILTIN_TODO_DISCOVERY, r as initializeSandbox, w as wrapCommand, l as contentLogMetadata, I as InvalidateSync, R as RawJSONLinesSchema, m as delay, t as AsyncLock, S as STREAM_DELTA_MAX_CHARS, M as MAX_CHAT_ATTACHMENT_SOURCE_BYTES, u as notifyDaemonClaudeAuthFailed, v as commandOnPath, c as checkIfDaemonRunningAndCleanupStaleState, x as deriveLocalCliUpdateSummary, y as AGENT_VERSION_SOURCES, z as isClaudeSessionId, C as getLocalHappyAgentCredentialPath, D as readLocalHappyAgentCredentials, E as parseExactVersion, F as compareExactVersions, G as extractCompleteLines, H as decideBackfill, J as parseTerminalHookPayload, K as tmuxArgs, L as scrubTmuxClientEnv, N as decideMirrorBinding, O as MIRROR_BACKFILL_LINES_DEFAULT, P as mirrorLineKey, Q as mirrorLocalId, T as listDaemonSessions, U as stopDaemonSession, V as detectCLIAvailability, W as detectResumeSupport, X as isDaemonRunningCurrentlyInstalledHappyVersion, Y as stopDaemon, Z as TurnActivityTracker, _ as summarizeSpawnSessionForLog, $ as shellescape, A as ApiClient, a0 as fetchCliUpdateState, a1 as resolveCliUpdateCheckInterval, a2 as DEFAULT_CLI_UPDATE_CHECK_INTERVAL_MS, a3 as cleanupDaemonState, i as isValidSessionId, s as spawnDaemonSession, a4 as listVhTerminals, a5 as isValidTerminalId, a6 as readVhTerminal, a7 as sendToVhTerminal, a8 as ContextUsageSchema, a9 as TITLE_PROMPT_PREFIX, aa as BOARD_ANALYZER_PROMPT_PREFIX, h as connectionState, ab as startOfflineReconnection, n as notifyDaemonSessionStarted, d as createEnvelope, ac as CodexAppServerClient } from './types-BG4gFjLL.mjs';
|
|
5
|
+
import { l as logger, E as ensurePrivateDirectory, F as hardenPrivateFile, c as configuration, p as packageJson, f as readSettings, G as readCredentials, v as credentialRelayProblem, o as readDaemonState, g as encodeBase64, H as readSettingsOutcome, I as updateSettings, J as encodeBase64Url, m as decodeBase64, K as writeCredentialsLegacy, L as writeCredentialsDataKey, d as readCredentialsForConfiguredRelay, j as encrypt, r as readPersistedSessions, w as writePrivateFileSync, M as decryptWithDataKey, N as decryptLegacy, O as persistSession, k as decrypt, h as ensurePrivateDirectorySync, P as acquireDaemonLock, Q as deletePersistedSessions, R as writeDaemonState, S as writeSettings, T as releaseDaemonLock, C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION, e as CLIPBOARD_MAX_BYTES, U as clearCredentials, V as clearMachineId, W as SandboxConfigSchema, X as getLatestDaemonLog } from './limits-uABU-yq3.mjs';
|
|
6
6
|
import spawn$1, { spawn } from 'cross-spawn';
|
|
7
7
|
import path, { join, resolve, basename, isAbsolute, sep, dirname, 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
10
|
import { p as projectPath } from './projectPath-CSpqWdxp.mjs';
|
|
11
|
-
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-
|
|
11
|
+
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-BU4hxm8M.mjs';
|
|
12
12
|
import { readFile, writeFile, rename, unlink, mkdir, symlink, rm, readlink, lstat, stat, open as open$1, appendFile } from 'node:fs/promises';
|
|
13
13
|
import fs, { watch, access } from 'fs/promises';
|
|
14
14
|
import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
@@ -10016,6 +10016,10 @@ Use the teams tools to inspect current task state before acting. This message is
|
|
|
10016
10016
|
} };
|
|
10017
10017
|
}
|
|
10018
10018
|
|
|
10019
|
+
function daemonExitCode(source) {
|
|
10020
|
+
return source === "exception" ? 1 : 0;
|
|
10021
|
+
}
|
|
10022
|
+
|
|
10019
10023
|
const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
10020
10024
|
function sanitizeImportTitle(value) {
|
|
10021
10025
|
if (typeof value !== "string") return null;
|
|
@@ -10095,9 +10099,9 @@ async function startDaemon() {
|
|
|
10095
10099
|
requestShutdown = (source, errorMessage) => {
|
|
10096
10100
|
logger.debug(`[DAEMON RUN] Requesting shutdown (source: ${source}, errorMessage: ${errorMessage})`);
|
|
10097
10101
|
setTimeout(async () => {
|
|
10098
|
-
logger.debug(
|
|
10102
|
+
logger.debug(`[DAEMON RUN] Shutdown did not complete in time, forcing exit with code ${daemonExitCode(source)}`);
|
|
10099
10103
|
await new Promise((resolve2) => setTimeout(resolve2, 100));
|
|
10100
|
-
process.exit(
|
|
10104
|
+
process.exit(daemonExitCode(source));
|
|
10101
10105
|
}, 1e3);
|
|
10102
10106
|
resolve({ source, errorMessage });
|
|
10103
10107
|
};
|
|
@@ -11355,8 +11359,8 @@ async function startDaemon() {
|
|
|
11355
11359
|
await cleanupDaemonState();
|
|
11356
11360
|
await stopCaffeinate();
|
|
11357
11361
|
await releaseDaemonLock(daemonLockHandle);
|
|
11358
|
-
logger.debug(
|
|
11359
|
-
process.exit(
|
|
11362
|
+
logger.debug(`[DAEMON RUN] Cleanup completed, exiting process with code ${daemonExitCode(source)}`);
|
|
11363
|
+
process.exit(daemonExitCode(source));
|
|
11360
11364
|
};
|
|
11361
11365
|
logger.debug("[DAEMON RUN] Daemon started successfully, waiting for shutdown request");
|
|
11362
11366
|
const shutdownRequest = await resolvesWhenShutdownRequested;
|
|
@@ -12350,7 +12354,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12350
12354
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12351
12355
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12352
12356
|
const run = deps.run ?? (async (input) => {
|
|
12353
|
-
const { query } = await import('./index-
|
|
12357
|
+
const { query } = await import('./index-PM_SsRpw.mjs');
|
|
12354
12358
|
return runSideQuestion(query, input);
|
|
12355
12359
|
});
|
|
12356
12360
|
const slots = /* @__PURE__ */ new Map();
|
|
@@ -17595,7 +17599,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17595
17599
|
return;
|
|
17596
17600
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17597
17601
|
try {
|
|
17598
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await import('./installTerminalHooks-
|
|
17602
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await import('./installTerminalHooks-BGVQqbgq.mjs');
|
|
17599
17603
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17600
17604
|
if (command.action === "help") {
|
|
17601
17605
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17612,7 +17616,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17612
17616
|
}
|
|
17613
17617
|
} else if (subcommand === "spawn") {
|
|
17614
17618
|
try {
|
|
17615
|
-
const { handleSpawnCommand } = await import('./spawn-
|
|
17619
|
+
const { handleSpawnCommand } = await import('./spawn-wkkxEGdF.mjs');
|
|
17616
17620
|
await handleSpawnCommand(args.slice(1));
|
|
17617
17621
|
} catch (error) {
|
|
17618
17622
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17624,7 +17628,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17624
17628
|
return;
|
|
17625
17629
|
} else if (subcommand === "sessions") {
|
|
17626
17630
|
try {
|
|
17627
|
-
const { handleSessionsCommand } = await import('./sessions-
|
|
17631
|
+
const { handleSessionsCommand } = await import('./sessions-DbLubh2N.mjs');
|
|
17628
17632
|
await handleSessionsCommand(args.slice(1));
|
|
17629
17633
|
} catch (error) {
|
|
17630
17634
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17636,7 +17640,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17636
17640
|
return;
|
|
17637
17641
|
} else if (subcommand === "send") {
|
|
17638
17642
|
try {
|
|
17639
|
-
const { handleSendCommand } = await import('./send-
|
|
17643
|
+
const { handleSendCommand } = await import('./send-CBrJylJc.mjs');
|
|
17640
17644
|
await handleSendCommand(args.slice(1));
|
|
17641
17645
|
} catch (error) {
|
|
17642
17646
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17742,9 +17746,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17742
17746
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17743
17747
|
const projectId = args[3];
|
|
17744
17748
|
try {
|
|
17745
|
-
const { saveGoogleCloudProjectToConfig } = await import('./config-
|
|
17746
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await import('./limits-
|
|
17747
|
-
const { ApiClient: ApiClient2 } = await import('./types-
|
|
17749
|
+
const { saveGoogleCloudProjectToConfig } = await import('./config-euZ_K5Lo.mjs');
|
|
17750
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await import('./limits-uABU-yq3.mjs').then(function (n) { return n.Y; });
|
|
17751
|
+
const { ApiClient: ApiClient2 } = await import('./types-BG4gFjLL.mjs').then(function (n) { return n.ad; });
|
|
17748
17752
|
let userEmail = void 0;
|
|
17749
17753
|
try {
|
|
17750
17754
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17775,7 +17779,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17775
17779
|
}
|
|
17776
17780
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17777
17781
|
try {
|
|
17778
|
-
const { readGeminiLocalConfig } = await import('./config-
|
|
17782
|
+
const { readGeminiLocalConfig } = await import('./config-euZ_K5Lo.mjs');
|
|
17779
17783
|
const config = readGeminiLocalConfig();
|
|
17780
17784
|
if (config.googleCloudProject) {
|
|
17781
17785
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17815,7 +17819,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17815
17819
|
process.exit(0);
|
|
17816
17820
|
}
|
|
17817
17821
|
try {
|
|
17818
|
-
const { runGemini } = await import('./runGemini-
|
|
17822
|
+
const { runGemini } = await import('./runGemini-BMlXIaTL.mjs');
|
|
17819
17823
|
let startedBy = void 0;
|
|
17820
17824
|
for (let i = 1; i < args.length; i++) {
|
|
17821
17825
|
if (args[i] === "--started-by") {
|
|
@@ -17838,7 +17842,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17838
17842
|
} else if (subcommand === "pi") {
|
|
17839
17843
|
if (args[1] === "--terminal") {
|
|
17840
17844
|
try {
|
|
17841
|
-
const { runPiTerminal } = await import('./piTerminal-
|
|
17845
|
+
const { runPiTerminal } = await import('./piTerminal-rqKn1_Zy.mjs');
|
|
17842
17846
|
process.exitCode = await runPiTerminal(args.slice(2));
|
|
17843
17847
|
} catch (error) {
|
|
17844
17848
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17855,7 +17859,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17855
17859
|
}
|
|
17856
17860
|
};
|
|
17857
17861
|
try {
|
|
17858
|
-
const { runAcp, resolveAcpAgentConfig } = await import('./index-
|
|
17862
|
+
const { runAcp, resolveAcpAgentConfig } = await import('./index-ZOMC8Gzn.mjs');
|
|
17859
17863
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
17860
17864
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
17861
17865
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -17883,7 +17887,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17883
17887
|
return;
|
|
17884
17888
|
} else if (subcommand === "acp") {
|
|
17885
17889
|
try {
|
|
17886
|
-
const { runAcp, resolveAcpAgentConfig } = await import('./index-
|
|
17890
|
+
const { runAcp, resolveAcpAgentConfig } = await import('./index-ZOMC8Gzn.mjs');
|
|
17887
17891
|
let startedBy = void 0;
|
|
17888
17892
|
let verbose = false;
|
|
17889
17893
|
const acpArgs = [];
|
|
@@ -17923,7 +17927,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17923
17927
|
return;
|
|
17924
17928
|
} else if (subcommand === "openclaw") {
|
|
17925
17929
|
try {
|
|
17926
|
-
const { runOpenClaw } = await import('./runOpenClaw-
|
|
17930
|
+
const { runOpenClaw } = await import('./runOpenClaw-CoO5Vp3S.mjs');
|
|
17927
17931
|
let startedBy = void 0;
|
|
17928
17932
|
let verbose = false;
|
|
17929
17933
|
let gatewayUrl;
|
|
@@ -17974,7 +17978,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17974
17978
|
return;
|
|
17975
17979
|
} else if (subcommand === "todo") {
|
|
17976
17980
|
try {
|
|
17977
|
-
const { handleTodoCommand } = await import('./todo-
|
|
17981
|
+
const { handleTodoCommand } = await import('./todo-DoLkqdBe.mjs');
|
|
17978
17982
|
await handleTodoCommand(args.slice(1));
|
|
17979
17983
|
} catch (error) {
|
|
17980
17984
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -17983,7 +17987,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17983
17987
|
return;
|
|
17984
17988
|
} else if (subcommand === "teams") {
|
|
17985
17989
|
try {
|
|
17986
|
-
const { handleTeamsCommand } = await import('./teams-
|
|
17990
|
+
const { handleTeamsCommand } = await import('./teams-BTyVFK3P.mjs');
|
|
17987
17991
|
await handleTeamsCommand(args.slice(1));
|
|
17988
17992
|
} catch (error) {
|
|
17989
17993
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -17992,7 +17996,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17992
17996
|
return;
|
|
17993
17997
|
} else if (subcommand === "mcp" && (args.length === 1 || args.length === 2 && args[1] === "--terminal-tools")) {
|
|
17994
17998
|
try {
|
|
17995
|
-
const { handleMcpCommand } = await import('./mcp-
|
|
17999
|
+
const { handleMcpCommand } = await import('./mcp-CfbTQXyh.mjs');
|
|
17996
18000
|
await handleMcpCommand(args[1] === "--terminal-tools");
|
|
17997
18001
|
} catch (error) {
|
|
17998
18002
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|