very-happy-cli 0.2.158 → 0.2.159
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-DIDRig5G.cjs → AcpBackend-DUYFlyfN.cjs} +2 -2
- package/dist/{AcpBackend-vDVLHuYJ.mjs → AcpBackend-VsfkZiVF.mjs} +2 -2
- package/dist/{AcpSessionManager-C44U99CC.cjs → AcpSessionManager-Bdv8LWXh.cjs} +1 -1
- package/dist/{AcpSessionManager-CmRjfhn3.mjs → AcpSessionManager-rYtVb0kN.mjs} +1 -1
- package/dist/{agentGuidance-DwOWbX55.cjs → agentGuidance-BRDN1NoZ.cjs} +1 -1
- package/dist/{agentGuidance-CrR9l62U.mjs → agentGuidance-KgvYuF3R.mjs} +1 -1
- package/dist/{agentHome-Dw8Jx_CJ.cjs → agentHome-CHh4lmjM.cjs} +2 -2
- package/dist/{agentHome-CyLmGH5L.mjs → agentHome-CvsJyeQB.mjs} +2 -2
- package/dist/{auto-DZbNcTXx.cjs → auto-DKmEls8Z.cjs} +6 -6
- package/dist/{auto-BlMZPwOk.mjs → auto-nb8GhRRy.mjs} +6 -6
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-BtPArqRH.mjs → config-ClLtM6F3.mjs} +4 -4
- package/dist/{config-DG84bjwF.cjs → config-DLx-vW3I.cjs} +4 -4
- package/dist/{index-ZChGsuB7.mjs → index-2mCaeKyf.mjs} +19 -9
- package/dist/{index-DPCsWlWK.cjs → index-BEOMECtE.cjs} +18 -8
- package/dist/{index-CVCt3kSt.mjs → index-BF6WfgV5.mjs} +62 -29
- package/dist/{index-DgO0FHOx.mjs → index-C-JazrMB.mjs} +4 -4
- package/dist/{index-D5ScEErM.cjs → index-blDSadUR.cjs} +4 -4
- package/dist/{index-BG932eCh.cjs → index-rH3DrQ5B.cjs} +66 -33
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{install-wKQGgXvN.cjs → install-BOHrUaFM.cjs} +1 -1
- package/dist/{install-DarS_Wco.mjs → install-BPhJppvd.mjs} +1 -1
- package/dist/{installTerminalHooks-DcQfee_O.cjs → installTerminalHooks-Cou3WUf3.cjs} +4 -4
- package/dist/{installTerminalHooks-CpNbRFPz.mjs → installTerminalHooks-WeznjkuC.mjs} +4 -4
- package/dist/lib.cjs +2 -2
- package/dist/lib.d.cts +114 -0
- package/dist/lib.d.mts +114 -0
- package/dist/lib.mjs +2 -2
- package/dist/{limits-kqFqhfsh.cjs → limits-BH5CV5vR.cjs} +38 -7
- package/dist/{limits-D2uN090G.mjs → limits-CjRj8IX5.mjs} +38 -8
- package/dist/{mcp-DGdeUUDJ.cjs → mcp-CPYbtsYG.cjs} +4 -4
- package/dist/{mcp-BN6bKIGb.mjs → mcp-Dy3f_K0h.mjs} +4 -4
- package/dist/{piRuntime-3qtbKujX.cjs → piRuntime-NtF0YqjH.cjs} +2 -2
- package/dist/{piRuntime-bkw2NAZU.mjs → piRuntime-kLZNpAAl.mjs} +2 -2
- package/dist/{piTerminal-BYxp3LMr.cjs → piTerminal-9J0GAKzb.cjs} +6 -6
- package/dist/{piTerminal-DilKwM7B.mjs → piTerminal-B0fEOV_2.mjs} +6 -6
- package/dist/{runGemini-Cjii069p.mjs → runGemini-DV6Ouadt.mjs} +6 -6
- package/dist/{runGemini-28O2sqyI.cjs → runGemini-F-mqx3_K.cjs} +6 -6
- package/dist/{runOpenClaw-jaLr7KF1.mjs → runOpenClaw-D7MlPS5n.mjs} +5 -5
- package/dist/{runOpenClaw-CiMZad-H.cjs → runOpenClaw-Qqo9j63M.cjs} +5 -5
- package/dist/{send-D5ejHPXG.cjs → send-4qJTCAYW.cjs} +2 -2
- package/dist/{send-C9mOtChi.mjs → send-CLhYXNgy.mjs} +2 -2
- package/dist/{sessions-BNMPQoLE.cjs → sessions-Bh1pyddi.cjs} +2 -2
- package/dist/{sessions-W6771g3X.mjs → sessions-CzIH2rGp.mjs} +2 -2
- package/dist/{spawn-D0QVhzRb.mjs → spawn-CPIWlPOM.mjs} +4 -4
- package/dist/{spawn-Ddtom1cb.cjs → spawn-CmFOSVdW.cjs} +4 -4
- package/dist/{teams-BZ1tayg_.cjs → teams-CB1R9-Z9.cjs} +5 -5
- package/dist/{teams-CqSwtw2O.mjs → teams-CEahj4cm.mjs} +5 -5
- package/dist/{todo-BbusB1zM.mjs → todo-Cknp5D4U.mjs} +2 -2
- package/dist/{todo-BYMg0fR0.cjs → todo-DqyRI4wP.cjs} +2 -2
- package/dist/{types-DnrPeN80.cjs → types-BbvK1Tr_.cjs} +191 -1
- package/dist/{types-DIBF4U0Y.mjs → types-Dh-s4Lqs.mjs} +191 -1
- 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 index = require('./types-
|
|
6
|
+
var persistence = require('./limits-BH5CV5vR.cjs');
|
|
7
|
+
var index = require('./types-BbvK1Tr_.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, F as packageJson, g as delay } from './limits-
|
|
5
|
-
import { j as contentLogMetadata, i as errorLogMetadata } from './types-
|
|
4
|
+
import { l as logger, F as packageJson, g as delay } from './limits-CjRj8IX5.mjs';
|
|
5
|
+
import { j as contentLogMetadata, i as errorLogMetadata } from './types-Dh-s4Lqs.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, e as createEnvelope } from './limits-
|
|
2
|
+
import { s as streamKeyOf, e as createEnvelope } from './limits-CjRj8IX5.mjs';
|
|
3
3
|
|
|
4
4
|
function turnOptions(turnId, time) {
|
|
5
5
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var z = require('zod');
|
|
4
4
|
var node_crypto = require('node:crypto');
|
|
5
|
-
var persistence = require('./limits-
|
|
5
|
+
var persistence = require('./limits-BH5CV5vR.cjs');
|
|
6
6
|
var promises = require('node:fs/promises');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
var path = require('node:path');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { G as normalizeHttpEndpoint, c as configuration, r as readSettings, d as readPersistedSessions, h as readCredentialsForConfiguredRelay, H as AutomationNameSchema, I as AutomationConcurrencySchema, J as AutomationActionSchema, K as AutomationTriggerSchema, w as encodeBase64, L as encrypt, M as decodeBase64, g as delay, N as decrypt, O as listDaemonSessions, n as stopDaemonSession,
|
|
3
|
+
import { G as normalizeHttpEndpoint, c as configuration, r as readSettings, d as readPersistedSessions, h as readCredentialsForConfiguredRelay, H as AutomationNameSchema, I as AutomationConcurrencySchema, J as AutomationActionSchema, K as AutomationTriggerSchema, w as encodeBase64, L as encrypt, M as decodeBase64, g as delay, N as decrypt, O as listDaemonSessions, n as stopDaemonSession, Q as backgroundTasksReport, R as resumeDaemonSession, i as isValidSessionId, S as listDaemonPeers } from './limits-CjRj8IX5.mjs';
|
|
4
4
|
import { open, mkdir, rename, unlink } from 'node:fs/promises';
|
|
5
5
|
import { constants, existsSync, readFileSync, statSync } from 'node:fs';
|
|
6
6
|
import { isAbsolute, join, dirname, resolve as resolve$1 } from 'node:path';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
|
-
var persistence = require('./limits-
|
|
5
|
+
var persistence = require('./limits-BH5CV5vR.cjs');
|
|
6
6
|
require('node:fs');
|
|
7
|
-
var index = require('./types-
|
|
7
|
+
var index = require('./types-BbvK1Tr_.cjs');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@paralleldrive/cuid2');
|
|
10
10
|
require('node:fs/promises');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { r as readSettings, u as updateSettings } from './limits-
|
|
3
|
+
import { r as readSettings, u as updateSettings } from './limits-CjRj8IX5.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
|
-
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, b as AGENT_HOME_ENV_NAMES } from './types-
|
|
5
|
+
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, b as AGENT_HOME_ENV_NAMES } from './types-Dh-s4Lqs.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@paralleldrive/cuid2';
|
|
8
8
|
import 'node:fs/promises';
|
|
@@ -4,11 +4,11 @@ var chalk = require('chalk');
|
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_fs = require('node:fs');
|
|
6
6
|
var path = require('node:path');
|
|
7
|
-
var persistence = require('./limits-
|
|
8
|
-
var agentGuidance = require('./agentGuidance-
|
|
9
|
-
var index = require('./index-
|
|
10
|
-
var install = require('./install-
|
|
11
|
-
var spawn = require('./spawn-
|
|
7
|
+
var persistence = require('./limits-BH5CV5vR.cjs');
|
|
8
|
+
var agentGuidance = require('./agentGuidance-BRDN1NoZ.cjs');
|
|
9
|
+
var index = require('./index-rH3DrQ5B.cjs');
|
|
10
|
+
var install = require('./install-BOHrUaFM.cjs');
|
|
11
|
+
var spawn = require('./spawn-CmFOSVdW.cjs');
|
|
12
12
|
require('zod');
|
|
13
13
|
require('@paralleldrive/cuid2');
|
|
14
14
|
require('node:fs/promises');
|
|
@@ -17,7 +17,7 @@ require('tweetnacl');
|
|
|
17
17
|
require('node:util');
|
|
18
18
|
require('axios');
|
|
19
19
|
require('socket.io-client');
|
|
20
|
-
require('./types-
|
|
20
|
+
require('./types-BbvK1Tr_.cjs');
|
|
21
21
|
require('node:events');
|
|
22
22
|
require('child_process');
|
|
23
23
|
require('util');
|
|
@@ -2,11 +2,11 @@ import chalk from 'chalk';
|
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import { readFileSync } from 'node:fs';
|
|
4
4
|
import { resolve } from 'node:path';
|
|
5
|
-
import { A as AUTOMATION_NAME_PATTERN, f as isAutomationRunTerminal, c as configuration, g as delay } from './limits-
|
|
6
|
-
import { y as authenticatedAutomationsClient, z as automationRunIdFromEnv, x as sessionWebUrl, A as isAutomationsUnavailable, B as AUTOMATIONS_UNAVAILABLE_MESSAGE } from './agentGuidance-
|
|
7
|
-
import { p as parseDuration, t as triggerFromFlags, d as describeTrigger, a as describeAction, S as SPAWN_AGENTS, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES } from './index-
|
|
8
|
-
import { A as AUTOMATION_SKILL, i as installAutomationSkill } from './install-
|
|
9
|
-
import { parseEnvAssignment } from './spawn-
|
|
5
|
+
import { A as AUTOMATION_NAME_PATTERN, f as isAutomationRunTerminal, c as configuration, g as delay } from './limits-CjRj8IX5.mjs';
|
|
6
|
+
import { y as authenticatedAutomationsClient, z as automationRunIdFromEnv, x as sessionWebUrl, A as isAutomationsUnavailable, B as AUTOMATIONS_UNAVAILABLE_MESSAGE } from './agentGuidance-KgvYuF3R.mjs';
|
|
7
|
+
import { p as parseDuration, t as triggerFromFlags, d as describeTrigger, a as describeAction, S as SPAWN_AGENTS, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES } from './index-BF6WfgV5.mjs';
|
|
8
|
+
import { A as AUTOMATION_SKILL, i as installAutomationSkill } from './install-BPhJppvd.mjs';
|
|
9
|
+
import { parseEnvAssignment } from './spawn-CPIWlPOM.mjs';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@paralleldrive/cuid2';
|
|
12
12
|
import 'node:fs/promises';
|
|
@@ -15,7 +15,7 @@ import 'tweetnacl';
|
|
|
15
15
|
import 'node:util';
|
|
16
16
|
import 'axios';
|
|
17
17
|
import 'socket.io-client';
|
|
18
|
-
import './types-
|
|
18
|
+
import './types-Dh-s4Lqs.mjs';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
import 'child_process';
|
|
21
21
|
import 'util';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var agentGuidance = require('../agentGuidance-
|
|
3
|
+
var agentGuidance = require('../agentGuidance-BRDN1NoZ.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-BH5CV5vR.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, c as registerAutomationTools, d as registerSessionPeerTools } from '../agentGuidance-
|
|
1
|
+
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, r as registerTeamsTools, c as registerAutomationTools, d as registerSessionPeerTools } from '../agentGuidance-KgvYuF3R.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-CjRj8IX5.mjs';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
@@ -2,8 +2,8 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
|
2
2
|
import { join } from 'path';
|
|
3
3
|
import { homedir } from 'os';
|
|
4
4
|
import { execSync } from 'child_process';
|
|
5
|
-
import { l as logger } from './limits-
|
|
6
|
-
import { D as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-
|
|
5
|
+
import { l as logger } from './limits-CjRj8IX5.mjs';
|
|
6
|
+
import { D as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-BF6WfgV5.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@paralleldrive/cuid2';
|
|
9
9
|
import 'node:fs/promises';
|
|
@@ -14,7 +14,7 @@ import 'chalk';
|
|
|
14
14
|
import 'node:util';
|
|
15
15
|
import 'node:os';
|
|
16
16
|
import 'node:path';
|
|
17
|
-
import './types-
|
|
17
|
+
import './types-Dh-s4Lqs.mjs';
|
|
18
18
|
import 'axios';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
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-KgvYuF3R.mjs';
|
|
33
33
|
import 'ink';
|
|
34
34
|
import 'react';
|
|
35
35
|
import '@anthropic-ai/claude-agent-sdk';
|
|
@@ -4,8 +4,8 @@ var fs = require('fs');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var os = require('os');
|
|
6
6
|
var child_process = require('child_process');
|
|
7
|
-
var persistence = require('./limits-
|
|
8
|
-
var index = require('./index-
|
|
7
|
+
var persistence = require('./limits-BH5CV5vR.cjs');
|
|
8
|
+
var index = require('./index-rH3DrQ5B.cjs');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@paralleldrive/cuid2');
|
|
11
11
|
require('node:fs/promises');
|
|
@@ -16,7 +16,7 @@ require('chalk');
|
|
|
16
16
|
require('node:util');
|
|
17
17
|
require('node:os');
|
|
18
18
|
require('node:path');
|
|
19
|
-
require('./types-
|
|
19
|
+
require('./types-BbvK1Tr_.cjs');
|
|
20
20
|
require('axios');
|
|
21
21
|
require('node:events');
|
|
22
22
|
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-BRDN1NoZ.cjs');
|
|
35
35
|
require('ink');
|
|
36
36
|
require('react');
|
|
37
37
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -1,12 +1,12 @@
|
|
|
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 { r as readSettings, v as notifyDaemonSessionStarted, w as encodeBase64, l as logger, x as BUILTIN_TODO_DISCOVERY, c as configuration, y as reportSessionEditToDaemon } from './limits-
|
|
4
|
-
import { A as AcpSessionManager } from './AcpSessionManager-
|
|
5
|
-
import { h as initialMachineMetadata, j as createSessionMetadata, k as setupOfflineReconnection, l as StreamRelay, M as MessageQueue2, m as hashObject, n as startHappyServer, o as registerAgentAttachmentDownloads, u as TitleGenerator, v as registerKillSessionHandler, C as CLAUDE_ATTACHMENT_KINDS, w as stageClaudeAttachments, x as appendStagedAttachmentsToPrompt, B as BasePermissionHandler, E as EditReportThrottle, y as extractAcpEditPaths, z as writeSessionModeFile, F as normalizeAcpPermissionMode, H as removeSessionModeFile } from './index-
|
|
6
|
-
import { p as preparePiTeamsRuntime } from './piRuntime-
|
|
1
|
+
import { D as DefaultTransport, A as AcpBackend } from './AcpBackend-VsfkZiVF.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-VsfkZiVF.mjs';
|
|
3
|
+
import { r as readSettings, v as notifyDaemonSessionStarted, w as encodeBase64, l as logger, x as BUILTIN_TODO_DISCOVERY, c as configuration, P as PROMPT_QUEUE_CAPABILITY, y as reportSessionEditToDaemon } from './limits-CjRj8IX5.mjs';
|
|
4
|
+
import { A as AcpSessionManager } from './AcpSessionManager-rYtVb0kN.mjs';
|
|
5
|
+
import { h as initialMachineMetadata, j as createSessionMetadata, k as setupOfflineReconnection, l as StreamRelay, M as MessageQueue2, m as hashObject, n as startHappyServer, o as registerAgentAttachmentDownloads, u as TitleGenerator, v as registerKillSessionHandler, C as CLAUDE_ATTACHMENT_KINDS, w as stageClaudeAttachments, x as appendStagedAttachmentsToPrompt, B as BasePermissionHandler, E as EditReportThrottle, y as extractAcpEditPaths, z as writeSessionModeFile, F as normalizeAcpPermissionMode, H as removeSessionModeFile } from './index-BF6WfgV5.mjs';
|
|
6
|
+
import { p as preparePiTeamsRuntime } from './piRuntime-kLZNpAAl.mjs';
|
|
7
7
|
import { randomUUID } from 'node:crypto';
|
|
8
8
|
import { join } from 'node:path';
|
|
9
|
-
import { h as connectionState, A as ApiClient } from './types-
|
|
9
|
+
import { h as connectionState, A as ApiClient } from './types-Dh-s4Lqs.mjs';
|
|
10
10
|
import { p as projectPath } from './terminalTitleSuggest-DKgX3osW.mjs';
|
|
11
11
|
import 'node:child_process';
|
|
12
12
|
import '@agentclientprotocol/sdk';
|
|
@@ -20,7 +20,7 @@ import 'node:util';
|
|
|
20
20
|
import 'node:os';
|
|
21
21
|
import 'cross-spawn';
|
|
22
22
|
import 'node:readline';
|
|
23
|
-
import './agentGuidance-
|
|
23
|
+
import './agentGuidance-KgvYuF3R.mjs';
|
|
24
24
|
import 'axios';
|
|
25
25
|
import 'socket.io-client';
|
|
26
26
|
import 'fs/promises';
|
|
@@ -603,7 +603,8 @@ async function runAcp(opts) {
|
|
|
603
603
|
...process.env.VH_TEAM_OPERATION_ID ? { teamOperationId: process.env.VH_TEAM_OPERATION_ID } : {},
|
|
604
604
|
machineId: settings.machineId,
|
|
605
605
|
startedBy: opts.startedBy,
|
|
606
|
-
sandbox: settings.sandboxConfig
|
|
606
|
+
sandbox: settings.sandboxConfig,
|
|
607
|
+
capabilities: [PROMPT_QUEUE_CAPABILITY]
|
|
607
608
|
});
|
|
608
609
|
metadata.attachmentKinds = [];
|
|
609
610
|
const response = await api.getOrCreateSession({ tag: sessionTag, metadata, state });
|
|
@@ -623,6 +624,7 @@ async function runAcp(opts) {
|
|
|
623
624
|
if (permissionHandler) {
|
|
624
625
|
permissionHandler.updateSession(newSession);
|
|
625
626
|
}
|
|
627
|
+
attachPromptQueueDrain(newSession);
|
|
626
628
|
}
|
|
627
629
|
});
|
|
628
630
|
session = initialSession;
|
|
@@ -647,6 +649,13 @@ async function runAcp(opts) {
|
|
|
647
649
|
});
|
|
648
650
|
const sessionManager = new AcpSessionManager(streamingEnabled ? { stream: streamRelay } : {});
|
|
649
651
|
const messageQueue = new MessageQueue2((mode) => hashObject(mode));
|
|
652
|
+
function attachPromptQueueDrain(client) {
|
|
653
|
+
const drain = client.attachPromptQueueDrain({
|
|
654
|
+
isIdle: () => messageQueue.size() === 0 && messageQueue.isWaiting()
|
|
655
|
+
});
|
|
656
|
+
messageQueue.setOnWait(() => drain.onIdle());
|
|
657
|
+
}
|
|
658
|
+
attachPromptQueueDrain(session);
|
|
650
659
|
let currentPermissionMode;
|
|
651
660
|
let currentModel;
|
|
652
661
|
let modeSelector = null;
|
|
@@ -1226,6 +1235,7 @@ ${BUILTIN_TODO_DISCOVERY}`;
|
|
|
1226
1235
|
logger.debug(`[${opts.agentName}] Failed to stop Happy MCP server:`, error);
|
|
1227
1236
|
}
|
|
1228
1237
|
try {
|
|
1238
|
+
session.closePromptQueueDrain();
|
|
1229
1239
|
session.updateMetadata((currentMetadata) => ({
|
|
1230
1240
|
...currentMetadata,
|
|
1231
1241
|
lifecycleState: "archived",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AcpBackend = require('./AcpBackend-
|
|
4
|
-
var persistence = require('./limits-
|
|
5
|
-
var AcpSessionManager = require('./AcpSessionManager-
|
|
6
|
-
var index$1 = require('./index-
|
|
7
|
-
var piRuntime = require('./piRuntime-
|
|
3
|
+
var AcpBackend = require('./AcpBackend-DUYFlyfN.cjs');
|
|
4
|
+
var persistence = require('./limits-BH5CV5vR.cjs');
|
|
5
|
+
var AcpSessionManager = require('./AcpSessionManager-Bdv8LWXh.cjs');
|
|
6
|
+
var index$1 = require('./index-rH3DrQ5B.cjs');
|
|
7
|
+
var piRuntime = require('./piRuntime-NtF0YqjH.cjs');
|
|
8
8
|
var node_crypto = require('node:crypto');
|
|
9
9
|
var path = require('node:path');
|
|
10
|
-
var index = require('./types-
|
|
10
|
+
var index = require('./types-BbvK1Tr_.cjs');
|
|
11
11
|
var terminalTitleSuggest = require('./terminalTitleSuggest-Dji8I0Jy.cjs');
|
|
12
12
|
require('node:child_process');
|
|
13
13
|
require('@agentclientprotocol/sdk');
|
|
@@ -21,7 +21,7 @@ require('node:util');
|
|
|
21
21
|
require('node:os');
|
|
22
22
|
require('cross-spawn');
|
|
23
23
|
require('node:readline');
|
|
24
|
-
require('./agentGuidance-
|
|
24
|
+
require('./agentGuidance-BRDN1NoZ.cjs');
|
|
25
25
|
require('axios');
|
|
26
26
|
require('socket.io-client');
|
|
27
27
|
require('fs/promises');
|
|
@@ -604,7 +604,8 @@ async function runAcp(opts) {
|
|
|
604
604
|
...process.env.VH_TEAM_OPERATION_ID ? { teamOperationId: process.env.VH_TEAM_OPERATION_ID } : {},
|
|
605
605
|
machineId: settings.machineId,
|
|
606
606
|
startedBy: opts.startedBy,
|
|
607
|
-
sandbox: settings.sandboxConfig
|
|
607
|
+
sandbox: settings.sandboxConfig,
|
|
608
|
+
capabilities: [persistence.PROMPT_QUEUE_CAPABILITY]
|
|
608
609
|
});
|
|
609
610
|
metadata.attachmentKinds = [];
|
|
610
611
|
const response = await api.getOrCreateSession({ tag: sessionTag, metadata, state });
|
|
@@ -624,6 +625,7 @@ async function runAcp(opts) {
|
|
|
624
625
|
if (permissionHandler) {
|
|
625
626
|
permissionHandler.updateSession(newSession);
|
|
626
627
|
}
|
|
628
|
+
attachPromptQueueDrain(newSession);
|
|
627
629
|
}
|
|
628
630
|
});
|
|
629
631
|
session = initialSession;
|
|
@@ -648,6 +650,13 @@ async function runAcp(opts) {
|
|
|
648
650
|
});
|
|
649
651
|
const sessionManager = new AcpSessionManager.AcpSessionManager(streamingEnabled ? { stream: streamRelay } : {});
|
|
650
652
|
const messageQueue = new index$1.MessageQueue2((mode) => index$1.hashObject(mode));
|
|
653
|
+
function attachPromptQueueDrain(client) {
|
|
654
|
+
const drain = client.attachPromptQueueDrain({
|
|
655
|
+
isIdle: () => messageQueue.size() === 0 && messageQueue.isWaiting()
|
|
656
|
+
});
|
|
657
|
+
messageQueue.setOnWait(() => drain.onIdle());
|
|
658
|
+
}
|
|
659
|
+
attachPromptQueueDrain(session);
|
|
651
660
|
let currentPermissionMode;
|
|
652
661
|
let currentModel;
|
|
653
662
|
let modeSelector = null;
|
|
@@ -1227,6 +1236,7 @@ ${persistence.BUILTIN_TODO_DISCOVERY}`;
|
|
|
1227
1236
|
persistence.logger.debug(`[${opts.agentName}] Failed to stop Happy MCP server:`, error);
|
|
1228
1237
|
}
|
|
1229
1238
|
try {
|
|
1239
|
+
session.closePromptQueueDrain();
|
|
1230
1240
|
session.updateMetadata((currentMetadata) => ({
|
|
1231
1241
|
...currentMetadata,
|
|
1232
1242
|
lifecycleState: "archived",
|