very-happy-cli 0.2.160 → 0.2.162
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-mzv8Dhba.mjs → AcpBackend--TmFHgRH.mjs} +3 -3
- package/dist/{AcpBackend-Bm2rdke8.cjs → AcpBackend-9asD_DL7.cjs} +3 -3
- package/dist/{AcpSessionManager-CoMWFVw3.mjs → AcpSessionManager-BSIBnWUb.mjs} +1 -1
- package/dist/{AcpSessionManager-BAY1Pggx.cjs → AcpSessionManager-BvIuBzoO.cjs} +1 -1
- package/dist/{BasePermissionHandler-CFHAxumV.cjs → BasePermissionHandler-D4B-NNu2.cjs} +1 -1
- package/dist/{BasePermissionHandler-m3WVholL.mjs → BasePermissionHandler-DUBySe0f.mjs} +1 -1
- package/dist/{BaseReasoningProcessor-CYrKBXGm.mjs → BaseReasoningProcessor-9TybUGTq.mjs} +1 -1
- package/dist/{BaseReasoningProcessor-BFa9_rZA.cjs → BaseReasoningProcessor-CqLl-ikP.cjs} +1 -1
- package/dist/{agentHome-CboCeKWq.cjs → agentHome-BohNUYnE.cjs} +4 -4
- package/dist/{agentHome-Dj1C43aJ.mjs → agentHome-DQrq_FG1.mjs} +4 -4
- package/dist/{api-CgundNNX.cjs → api-CQnLOqRS.cjs} +10 -10
- package/dist/{api-CLMUr-SX.mjs → api-D57dsd6_.mjs} +10 -10
- package/dist/{apiMachine-B9dLW_p5.mjs → apiMachine-78Aqzg--.mjs} +21 -14
- package/dist/{apiMachine-Bn8482VM.cjs → apiMachine-fFFaWxYy.cjs} +33 -26
- package/dist/{assistantTools-BTqPnlFl.cjs → assistantTools-CwESq24n.cjs} +6 -6
- package/dist/{assistantTools-D6tuc6o4.mjs → assistantTools-mEz6uNqL.mjs} +6 -6
- package/dist/{attachmentContent-DpiTJZb4.cjs → attachmentContent-GHOk6Muq.cjs} +2 -2
- package/dist/{attachmentContent-_kxRznNf.mjs → attachmentContent-s1xPha4Q.mjs} +2 -2
- package/dist/{attachmentLimits-yba1uHFO.mjs → attachmentLimits-D5pgmASK.mjs} +1 -1
- package/dist/{attachmentLimits-CzVrqgLR.cjs → attachmentLimits-DzlBPyJP.cjs} +1 -1
- package/dist/{auth-BDOVh5h5.cjs → auth-B8EagV6G.cjs} +8 -8
- package/dist/{auth-PYHZQNPp.mjs → auth-BOaHWquu.mjs} +8 -8
- package/dist/{auth-ba4WMYrN.cjs → auth-BbSdXMQ_.cjs} +5 -5
- package/dist/{auth-Cwutmdsa.mjs → auth-C8V7-oUT.mjs} +5 -5
- package/dist/{auto-BOX_fgmR.cjs → auto-Bw_h0yVc.cjs} +15 -14
- package/dist/{auto-BXu14yP_.mjs → auto-CWDOX35m.mjs} +15 -14
- package/dist/{bootstrap-hxXPCFMx.mjs → bootstrap-BKmsYSwh.mjs} +2 -2
- package/dist/{bootstrap-B5G1TijC.cjs → bootstrap-DvZjEa9_.cjs} +2 -2
- package/dist/{browser-Y6Bl8L_O.cjs → browser-CBZj-1Wx.cjs} +1 -1
- package/dist/{browser-jh2P0UVZ.mjs → browser-CrMAr5fI.mjs} +1 -1
- package/dist/{claudeLocal-CRGG4Pea.cjs → claudeLocal-Bpw-u9et.cjs} +5 -5
- package/dist/{claudeLocal-BaY4fZKi.mjs → claudeLocal-dhdlcQ6F.mjs} +5 -5
- package/dist/{claudeLocalLauncher-D4T7MTqd.mjs → claudeLocalLauncher-BFfGT4eY.mjs} +10 -10
- package/dist/{claudeLocalLauncher-DyEbVzUN.cjs → claudeLocalLauncher-DWFWuLhY.cjs} +10 -10
- package/dist/{codexThreadFork-BH9IZPqD.cjs → claudeSessionFork-D9-mANmu.cjs} +1 -137
- package/dist/{codexThreadFork-slzAseLx.mjs → claudeSessionFork-_DUrXaqd.mjs} +2 -134
- package/dist/{client-BPNbmtvO.cjs → client-CVQJWqjx.cjs} +2 -2
- package/dist/{client-3Ac-O4pw.cjs → client-DiBTHWNU.cjs} +3 -3
- package/dist/{client-CeGKqqcJ.mjs → client-Dk7x-s-O.mjs} +3 -3
- package/dist/{client-ClR0K8zX.mjs → client-DwqHDsLb.mjs} +2 -2
- package/dist/codex/happyMcpStdioBridge.cjs +15 -15
- package/dist/codex/happyMcpStdioBridge.mjs +15 -15
- package/dist/{codexAppServerClient-I3teiV-N.mjs → codexAppServerClient-C2ybs2mZ.mjs} +2 -2
- package/dist/{codexAppServerClient-q2FjnRcK.cjs → codexAppServerClient-DlKv5TjG.cjs} +2 -2
- package/dist/{codexCommand-4zcccIoq.cjs → codexCommand-4vLE31fj.cjs} +45 -40
- package/dist/{codexCommand-Cc9gcbdX.mjs → codexCommand-DnmFr9Qx.mjs} +45 -40
- package/dist/codexThreadFork-DNekT4nQ.cjs +138 -0
- package/dist/codexThreadFork-R76RU5H0.mjs +133 -0
- package/dist/{config-Ci9Kpgwa.cjs → config-Btd4B05_.cjs} +3 -3
- package/dist/{config-CTx_jb-C.mjs → config-CSOG_ZcP.mjs} +3 -3
- package/dist/{configuration-RfeNjFmd.mjs → configuration-A5gW_0GE.mjs} +1 -1
- package/dist/{configuration-BSYpcPwE.cjs → configuration-UsI0sxEv.cjs} +1 -1
- package/dist/{connect-C2CiOUFs.cjs → connect-C9yxp8Om.cjs} +13 -13
- package/dist/{connect-BpOdzNbE.mjs → connect-DWYj8LP_.mjs} +13 -13
- package/dist/{context-DsDr6E2t.cjs → context-0FjjA4vJ.cjs} +1 -1
- package/dist/{context-H0Bcb9S_.mjs → context-BXnxalWW.mjs} +1 -1
- package/dist/{controlClient-Bcwv3D21.cjs → controlClient-BXktrQ4z.cjs} +3 -3
- package/dist/{controlClient-BGbDcgWS.mjs → controlClient-CYzHrh3e.mjs} +3 -3
- package/dist/{createSessionMetadata-CVVkGjxV.mjs → createSessionMetadata-Dyg33ZlU.mjs} +2 -2
- package/dist/{createSessionMetadata-BJxEnM-o.cjs → createSessionMetadata-EX1eAlHx.cjs} +2 -2
- package/dist/{deterministicJson-CzkFJWw1.mjs → deterministicJson-DiR7EOMO.mjs} +9 -9
- package/dist/{deterministicJson-C5CYTVpm.cjs → deterministicJson-eha_oMZ2.cjs} +9 -9
- package/dist/{doctor-D2YJ-Yn2.cjs → doctor-DunLBgVi.cjs} +6 -6
- package/dist/{doctor-DOvByjbk.mjs → doctor-FuCvKdRa.mjs} +6 -6
- package/dist/{ensureDaemonRunning-BCwNrMyv.cjs → ensureDaemonRunning-B4dZFmUy.cjs} +5 -5
- package/dist/{ensureDaemonRunning-Dqa2pOjY.mjs → ensureDaemonRunning-EZkb-CAF.mjs} +5 -5
- package/dist/{handleResumeCommand-C2cKchpX.cjs → handleResumeCommand-CKMIw4pE.cjs} +5 -5
- package/dist/{handleResumeCommand-BvXYf5El.mjs → handleResumeCommand-CsXendKb.mjs} +5 -5
- package/dist/{index-DMZqWwsP.mjs → index-9L39wqYR.mjs} +37 -37
- package/dist/{index-qdS1friN.mjs → index-BBg9j0XK.mjs} +8 -1
- package/dist/{index-B6pAdvJx.cjs → index-BOhgL3rh.cjs} +36 -36
- package/dist/{index-Bu5Zi_a9.cjs → index-CZWAiydF.cjs} +4 -4
- package/dist/{index-DVkMGPyS.mjs → index-CvXcVQ06.mjs} +3 -3
- package/dist/{index-DA7yINuk.cjs → index-DJ-oV52i.cjs} +8 -1
- package/dist/{index-DKLU_fD0.mjs → index-DK2JpTJf.mjs} +4 -4
- package/dist/{index-DDeHXrIX.cjs → index-DRhWHEuW.cjs} +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{install-CFY3tYtJ.mjs → install-B2duVo9a.mjs} +3 -3
- package/dist/{install-BgoC2e_2.cjs → install-C8WyZI9K.cjs} +3 -3
- package/dist/lib.cjs +12 -12
- package/dist/lib.d.cts +5 -0
- package/dist/lib.d.mts +5 -0
- package/dist/lib.mjs +12 -12
- package/dist/{lidState-CeEt442o.mjs → lidState-CigXWxhe.mjs} +1 -1
- package/dist/{lidState-BeDfxxEX.cjs → lidState-Ds-6ytZV.cjs} +1 -1
- package/dist/{localHappyAgentAuth-C-HQyiv6.mjs → localHappyAgentAuth-CaCyKzYp.mjs} +1 -1
- package/dist/{localHappyAgentAuth-D6rFhaoc.cjs → localHappyAgentAuth-l0Na-5Ys.cjs} +1 -1
- package/dist/{logger-CS0mw3fa.cjs → logger-7ucWm9wp.cjs} +2 -2
- package/dist/{logger-6HYUEXNk.mjs → logger-CGE4C8ho.mjs} +2 -2
- package/dist/{machineMetadata-DyDbODYd.cjs → machineMetadata-lMPtpF16.cjs} +3 -3
- package/dist/{machineMetadata-oOzBfDfs.mjs → machineMetadata-ue1nkowa.mjs} +3 -3
- package/dist/{main-BwNIAI1A.mjs → main-3fIFXD-t.mjs} +44 -44
- package/dist/{main-BkxJP6JQ.cjs → main-CFI0datL.cjs} +44 -44
- package/dist/{mcp-B1A4I3TK.mjs → mcp-DARQBZ7l.mjs} +14 -14
- package/dist/{mcp-Hszd7qpS.cjs → mcp-DfxLAc1G.cjs} +14 -14
- package/dist/{package-BwMrPwqH.cjs → package-D1A-8ZJy.cjs} +7 -7
- package/dist/{package-BhaKlnxz.mjs → package-DQsvY1XN.mjs} +7 -7
- package/dist/{peerTools-BTqw97Gb.mjs → peerTools-D19hhSQF.mjs} +4 -4
- package/dist/{peerTools-BvKtHXj8.cjs → peerTools-DLwNaEEV.cjs} +4 -4
- package/dist/{permissionMode-Cr5JCbB7.mjs → permissionMode-CH4FoZfU.mjs} +1 -1
- package/dist/{persistence-HGW_ZVs9.mjs → persistence-Cw8aLoyL.mjs} +3 -3
- package/dist/{persistence-yKTH3-5X.cjs → persistence-i0nQMLlk.cjs} +3 -3
- package/dist/{piRunnerArgs-BuX1UFWy.mjs → piRunnerArgs-58t454gw.mjs} +1 -1
- package/dist/{piRunnerArgs-BNloJCCg.cjs → piRunnerArgs-BUyxPxjZ.cjs} +1 -1
- package/dist/{piRuntime-CSGkwCKQ.mjs → piRuntime-DVPixFjl.mjs} +1 -1
- package/dist/{piRuntime-C_H7MJCM.cjs → piRuntime-Dff73XCb.cjs} +1 -1
- package/dist/{piTerminal-DNCZ6yTM.cjs → piTerminal-Dz1RrO70.cjs} +16 -16
- package/dist/{piTerminal-C8a1OrNQ.mjs → piTerminal-gHWFAyzq.mjs} +16 -16
- package/dist/{registerCommonHandlers-DskirN-_.cjs → registerCommonHandlers-CMROPdJz.cjs} +2 -2
- package/dist/{registerCommonHandlers-Ccvsz7Ou.mjs → registerCommonHandlers-Ckv5boQI.mjs} +2 -2
- package/dist/{registerKillSessionHandler-DZeLXWcB.cjs → registerKillSessionHandler-CA9-oelM.cjs} +19 -10
- package/dist/{registerKillSessionHandler-GYvHdipX.mjs → registerKillSessionHandler-Cll4-o8Y.mjs} +19 -10
- package/dist/{remoteSessionClient-CYnXRynE.mjs → remoteSessionClient-BMjsbuBh.mjs} +5 -5
- package/dist/{remoteSessionClient-B0LraSB9.cjs → remoteSessionClient-DX9jHLeW.cjs} +5 -5
- package/dist/{run-CJzxoHVh.cjs → run-CjbGo2wb.cjs} +36 -32
- package/dist/{run-D3ifupU3.mjs → run-CrunzDlt.mjs} +35 -31
- package/dist/{runClaude-Da3RirzE.cjs → runClaude-KN-4Y4LH.cjs} +184 -140
- package/dist/{runClaude-Ba01qT-u.mjs → runClaude-WDBWRtnF.mjs} +185 -141
- package/dist/{runClaudeDeps-DOzEBMls.cjs → runClaudeDeps-DW-8lnHv.cjs} +821 -125
- package/dist/{runClaudeDeps-DOt79DjU.mjs → runClaudeDeps-QaEx8y5r.mjs} +811 -129
- package/dist/{runGemini-DSr9LIxL.cjs → runGemini-Djmwjdv1.cjs} +32 -32
- package/dist/{runGemini-BGeTz57m.mjs → runGemini-Nf6SKBpw.mjs} +32 -32
- package/dist/{runOpenClaw-CogSedIc.mjs → runOpenClaw-9nHtmYbN.mjs} +18 -18
- package/dist/{runOpenClaw-B1mTxN35.cjs → runOpenClaw-CAqP5KFH.cjs} +18 -18
- package/dist/{sandbox-CG7IyDTU.cjs → sandbox-C8Dd8GPM.cjs} +4 -4
- package/dist/{sandbox-DTe6d54R.mjs → sandbox-SP0THMt0.mjs} +4 -4
- package/dist/selfCheck-7FaZtVu2.mjs +84 -0
- package/dist/{selfCheck-Dc-mNSLb.cjs → selfCheck-D9ZXrK7h.cjs} +34 -34
- package/dist/{send-CBXJKc6O.mjs → send-DOx9aQsx.mjs} +8 -8
- package/dist/{send-B7J_eaG3.cjs → send-LPk6Q5HI.cjs} +8 -8
- package/dist/{server-DcVBv04l.mjs → server-BZNi8Hq_.mjs} +4 -4
- package/dist/{server-CZTP_iOn.cjs → server-CxT8jNyn.cjs} +6 -6
- package/dist/{sessionLock-D-EG2CfG.mjs → sessionLock-CfLqJfeI.mjs} +2 -2
- package/dist/{sessionLock-Bys1PNSo.cjs → sessionLock-y9rnA4LK.cjs} +2 -2
- package/dist/{sessionModeFile-RSm0NQkH.cjs → sessionModeFile-B5YeoQJh.cjs} +1 -1
- package/dist/{sessionModeFile-DMl3dw3r.mjs → sessionModeFile-BKxgNH3P.mjs} +1 -1
- package/dist/{sessionOps-SuHW8Dfe.mjs → sessionOps-CdwVPSZz.mjs} +4 -4
- package/dist/{sessionOps-Dn8z85h_.cjs → sessionOps-GsELm2PZ.cjs} +4 -4
- package/dist/{sessionScanner-CX3onqXh.mjs → sessionScanner-Cdukzo70.mjs} +3 -3
- package/dist/{sessionScanner-BOrGjMXL.cjs → sessionScanner-aLEv7mD3.cjs} +3 -3
- package/dist/{sessions-D74aJbhL.cjs → sessions-CfG4WGN0.cjs} +9 -9
- package/dist/{sessions-BEG_HTSi.mjs → sessions-Dne-OiRL.mjs} +9 -9
- package/dist/{setupOfflineReconnection-ByElY60m.cjs → setupOfflineReconnection-CFwltTcP.cjs} +2 -2
- package/dist/{setupOfflineReconnection-DpvWTt69.mjs → setupOfflineReconnection-DiQma2Cc.mjs} +2 -2
- package/dist/{spawn-DgR0RKRs.cjs → spawn-BI_sdgWs.cjs} +24 -15
- package/dist/{spawn-B7yro0b2.mjs → spawn-DkgP2BGF.mjs} +22 -14
- package/dist/{spawnAgents-DZzZ9jMI.mjs → spawnAgents-Y1LjnCt9.mjs} +1 -1
- package/dist/{spawnAgents-BGQiEF-w.cjs → spawnAgents-iSu1Xzs5.cjs} +1 -1
- package/dist/{spawnHappyCLI-B2H5s4B_.mjs → spawnHappyCLI-9mx4lPxh.mjs} +1 -1
- package/dist/{spawnHappyCLI-DBhwZT7O.cjs → spawnHappyCLI-BRdx0sAX.cjs} +1 -1
- package/dist/{startFileWatcher-B4VsLgjD.cjs → startFileWatcher-C2HC2_Dg.cjs} +1 -1
- package/dist/{startFileWatcher-DErVWZE4.mjs → startFileWatcher-COD5UKNs.mjs} +1 -1
- package/dist/{streamRelay-FPVbHpbM.mjs → streamRelay-BLgU9X3R.mjs} +1 -1
- package/dist/{streamRelay-BiKw59Cc.cjs → streamRelay-DnObXZZj.cjs} +1 -1
- package/dist/{sync-C8gyQFMc.mjs → sync-BpLasLu2.mjs} +1 -1
- package/dist/{sync-DccIKZ5_.cjs → sync-Dj92ZJ8Y.cjs} +1 -1
- package/dist/{systemPrompt-BwTPWfMu.cjs → systemPrompt-CyEz_IfR.cjs} +2 -2
- package/dist/{systemPrompt-DX521JJz.mjs → systemPrompt-DsQoUgQw.mjs} +2 -2
- package/dist/{teams-C32F1hqd.mjs → teams-BETNMjpZ.mjs} +6 -6
- package/dist/{teams-Dl8g8kTI.cjs → teams-Ctx9zXn4.cjs} +6 -6
- package/dist/{time-DCuTyook.cjs → time-CLwVAz6s.cjs} +1 -1
- package/dist/{time-D0XyHOid.mjs → time-CVvxdEDh.mjs} +1 -1
- package/dist/{titleGenerator-CQ8CoGhg.mjs → titleGenerator-B4AW3dLr.mjs} +12 -2
- package/dist/{titleGenerator-ChzMJsyg.cjs → titleGenerator-FDpdizn7.cjs} +13 -3
- package/dist/{todo-BvUOTa8G.cjs → todo-C3tyFeq1.cjs} +6 -6
- package/dist/{todo-CZ6cFrrn.mjs → todo-Jk4Vs7hP.mjs} +6 -6
- package/dist/{tools-BZtHF_qQ.mjs → tools-BA1qkiV1.mjs} +2 -2
- package/dist/{tools-DQj0AeLk.cjs → tools-CGxq3I52.cjs} +2 -2
- package/dist/{tools-Be3AoAwu.cjs → tools-O5beDK-s.cjs} +1 -1
- package/dist/{tools-DkluDcG4.mjs → tools-_kFe4m_l.mjs} +1 -1
- package/dist/{uninstall-BkLzaJ6I.mjs → uninstall-C_mdAZlm.mjs} +3 -3
- package/dist/{uninstall-x-TUtf5H.cjs → uninstall-DHKF90lo.cjs} +3 -3
- package/package.json +7 -7
- package/scripts/session_hook_forwarder.cjs +9 -2
- package/dist/selfCheck-C9mVrQwf.mjs +0 -84
|
@@ -1,10 +1,10 @@
|
|
|
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 } from './logger-
|
|
5
|
-
import { d as delay } from './time-
|
|
4
|
+
import { l as logger } from './logger-CGE4C8ho.mjs';
|
|
5
|
+
import { d as delay } from './time-CVvxdEDh.mjs';
|
|
6
6
|
import { c as contentLogMetadata, e as errorLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
7
|
-
import { p as packageJson } from './package-
|
|
7
|
+
import { p as packageJson } from './package-DQsvY1XN.mjs';
|
|
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) => {
|
|
@@ -3,10 +3,10 @@
|
|
|
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 logger = require('./logger-
|
|
7
|
-
var time = require('./time-
|
|
6
|
+
var logger = require('./logger-7ucWm9wp.cjs');
|
|
7
|
+
var time = require('./time-CLwVAz6s.cjs');
|
|
8
8
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
9
|
-
var _package = require('./package-
|
|
9
|
+
var _package = require('./package-D1A-8ZJy.cjs');
|
|
10
10
|
|
|
11
11
|
function acpImageBlocks(attachments, supportsImages) {
|
|
12
12
|
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 './index-
|
|
2
|
+
import { s as streamKeyOf, e as createEnvelope } from './index-BBg9j0XK.mjs';
|
|
3
3
|
|
|
4
4
|
function turnOptions(turnId, time) {
|
|
5
5
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
|
-
var persistence = require('./persistence-
|
|
5
|
+
var persistence = require('./persistence-i0nQMLlk.cjs');
|
|
6
6
|
require('node:fs');
|
|
7
|
-
require('./logger-
|
|
7
|
+
require('./logger-7ucWm9wp.cjs');
|
|
8
8
|
var loginShellEnv = require('./loginShellEnv-BkuYtExZ.cjs');
|
|
9
9
|
require('node:fs/promises');
|
|
10
|
-
require('./configuration-
|
|
10
|
+
require('./configuration-UsI0sxEv.cjs');
|
|
11
11
|
require('node:path');
|
|
12
|
-
require('./package-
|
|
12
|
+
require('./package-D1A-8ZJy.cjs');
|
|
13
13
|
require('zod');
|
|
14
14
|
require('./authRelay-BdYkC1Po.cjs');
|
|
15
15
|
require('node:crypto');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { readSettings, updateSettings } from './persistence-
|
|
3
|
+
import { readSettings, updateSettings } from './persistence-Cw8aLoyL.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
|
-
import './logger-
|
|
5
|
+
import './logger-CGE4C8ho.mjs';
|
|
6
6
|
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, A as AGENT_HOME_ENV_NAMES } from './loginShellEnv-Dw8M7tkI.mjs';
|
|
7
7
|
import 'node:fs/promises';
|
|
8
|
-
import './configuration-
|
|
8
|
+
import './configuration-A5gW_0GE.mjs';
|
|
9
9
|
import 'node:path';
|
|
10
|
-
import './package-
|
|
10
|
+
import './package-DQsvY1XN.mjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import './authRelay-DSAvg1uv.mjs';
|
|
13
13
|
import 'node:crypto';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var axios = require('axios');
|
|
4
|
-
var logger = require('./logger-
|
|
4
|
+
var logger = require('./logger-7ucWm9wp.cjs');
|
|
5
5
|
var node_events = require('node:events');
|
|
6
6
|
var socket_ioClient = require('socket.io-client');
|
|
7
|
-
var attachmentLimits = require('./attachmentLimits-
|
|
7
|
+
var attachmentLimits = require('./attachmentLimits-DzlBPyJP.cjs');
|
|
8
8
|
var authRelay = require('./authRelay-BdYkC1Po.cjs');
|
|
9
9
|
var limits = require('./limits-C-a7gr04.cjs');
|
|
10
|
-
var time = require('./time-
|
|
11
|
-
var lidState = require('./lidState-
|
|
12
|
-
var configuration = require('./configuration-
|
|
10
|
+
var time = require('./time-CLwVAz6s.cjs');
|
|
11
|
+
var lidState = require('./lidState-Ds-6ytZV.cjs');
|
|
12
|
+
var configuration = require('./configuration-UsI0sxEv.cjs');
|
|
13
13
|
var node_crypto = require('node:crypto');
|
|
14
|
-
var index = require('./index-
|
|
15
|
-
var registerCommonHandlers = require('./registerCommonHandlers-
|
|
14
|
+
var index = require('./index-DJ-oV52i.cjs');
|
|
15
|
+
var registerCommonHandlers = require('./registerCommonHandlers-CMROPdJz.cjs');
|
|
16
16
|
var cuid2 = require('@paralleldrive/cuid2');
|
|
17
|
-
var sync = require('./sync-
|
|
17
|
+
var sync = require('./sync-Dj92ZJ8Y.cjs');
|
|
18
18
|
var backgroundTaskActivity = require('./backgroundTaskActivity-CBvUdj39.cjs');
|
|
19
|
-
var controlClient = require('./controlClient-
|
|
19
|
+
var controlClient = require('./controlClient-BXktrQ4z.cjs');
|
|
20
20
|
var contentLogMetadata = require('./contentLogMetadata-ZSFk_NjQ.cjs');
|
|
21
21
|
var chalk = require('chalk');
|
|
22
22
|
|
|
@@ -3044,7 +3044,7 @@ class ApiClient {
|
|
|
3044
3044
|
return new ApiSessionClient(this.credential.token, session, opts);
|
|
3045
3045
|
}
|
|
3046
3046
|
async machineSyncClient(machine) {
|
|
3047
|
-
const { ApiMachineClient } = await Promise.resolve().then(function () { return require('./apiMachine-
|
|
3047
|
+
const { ApiMachineClient } = await Promise.resolve().then(function () { return require('./apiMachine-fFFaWxYy.cjs'); });
|
|
3048
3048
|
return new ApiMachineClient(this.credential.token, machine);
|
|
3049
3049
|
}
|
|
3050
3050
|
push() {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { l as logger, r as redactLogValue } from './logger-
|
|
2
|
+
import { l as logger, r as redactLogValue } from './logger-CGE4C8ho.mjs';
|
|
3
3
|
import { EventEmitter } from 'node:events';
|
|
4
4
|
import { io } from 'socket.io-client';
|
|
5
|
-
import { A as AsyncLock, a as MAX_CHAT_ATTACHMENT_ENCRYPTED_BYTES, U as UserMessageSchema, F as FileEventMessageSchema } from './attachmentLimits-
|
|
5
|
+
import { A as AsyncLock, a as MAX_CHAT_ATTACHMENT_ENCRYPTED_BYTES, U as UserMessageSchema, F as FileEventMessageSchema } from './attachmentLimits-D5pgmASK.mjs';
|
|
6
6
|
import { h as decrypt, d as decodeBase64, i as decryptBlob, e as encodeBase64, g as encrypt, l as libsodiumEncryptForPublicKey, j as libsodiumPublicKeyFromSecretKey, k as getRandomBytes } from './authRelay-DSAvg1uv.mjs';
|
|
7
7
|
import { p as prepareClipboardText, d as prepareClipboardHistoryText } from './limits-DIo7rEBR.mjs';
|
|
8
|
-
import { b as backoff, d as delay, e as exponentialBackoffDelay } from './time-
|
|
9
|
-
import { R as RpcHandlerManager, a as answerSocketRequest, d as describeSocketAckDrop, s as safeAck, i as isRateQuotaCode, p as pauseForRateQuota, b as shouldReconnect } from './lidState-
|
|
10
|
-
import { c as configuration } from './configuration-
|
|
8
|
+
import { b as backoff, d as delay, e as exponentialBackoffDelay } from './time-CVvxdEDh.mjs';
|
|
9
|
+
import { R as RpcHandlerManager, a as answerSocketRequest, d as describeSocketAckDrop, s as safeAck, i as isRateQuotaCode, p as pauseForRateQuota, b as shouldReconnect } from './lidState-CigXWxhe.mjs';
|
|
10
|
+
import { c as configuration } from './configuration-A5gW_0GE.mjs';
|
|
11
11
|
import { createHmac, randomUUID } from 'node:crypto';
|
|
12
|
-
import { e as createEnvelope, s as streamKeyOf, R as ReleaseDrainNoticeSchema, m as RelayAssignmentResponseSchema } from './index-
|
|
13
|
-
import { r as registerCommonHandlers } from './registerCommonHandlers-
|
|
12
|
+
import { e as createEnvelope, s as streamKeyOf, R as ReleaseDrainNoticeSchema, m as RelayAssignmentResponseSchema } from './index-BBg9j0XK.mjs';
|
|
13
|
+
import { r as registerCommonHandlers } from './registerCommonHandlers-Ckv5boQI.mjs';
|
|
14
14
|
import { createId } from '@paralleldrive/cuid2';
|
|
15
|
-
import { I as InvalidateSync } from './sync-
|
|
15
|
+
import { I as InvalidateSync } from './sync-BpLasLu2.mjs';
|
|
16
16
|
import { B as BackgroundTaskReporter } from './backgroundTaskActivity-8PdPxrvy.mjs';
|
|
17
|
-
import { h as notifyDaemonTurnEvent, j as notifyDaemonBackgroundTasks } from './controlClient-
|
|
17
|
+
import { h as notifyDaemonTurnEvent, j as notifyDaemonBackgroundTasks } from './controlClient-CYzHrh3e.mjs';
|
|
18
18
|
import { c as contentLogMetadata } from './contentLogMetadata-BlWI0egu.mjs';
|
|
19
19
|
import chalk from 'chalk';
|
|
20
20
|
|
|
@@ -3042,7 +3042,7 @@ class ApiClient {
|
|
|
3042
3042
|
return new ApiSessionClient(this.credential.token, session, opts);
|
|
3043
3043
|
}
|
|
3044
3044
|
async machineSyncClient(machine) {
|
|
3045
|
-
const { ApiMachineClient } = await import('./apiMachine-
|
|
3045
|
+
const { ApiMachineClient } = await import('./apiMachine-78Aqzg--.mjs');
|
|
3046
3046
|
return new ApiMachineClient(this.credential.token, machine);
|
|
3047
3047
|
}
|
|
3048
3048
|
push() {
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { io } from 'socket.io-client';
|
|
2
|
-
import { l as logger } from './logger-
|
|
2
|
+
import { l as logger } from './logger-CGE4C8ho.mjs';
|
|
3
3
|
import { i as isClaudeSessionId, s as sanitizeTagList, p as pickMirrorForTerminal, l as liveSnapshotChanged, a as sanitizeLiveSnapshot, b as serializeLiveSnapshot, c as summarizeSpawnSessionForLog, d as parseMirrorSendParams } from './mirrorProtocol-BNLtoWjO.mjs';
|
|
4
|
-
import { c as configuration } from './configuration-
|
|
4
|
+
import { c as configuration } from './configuration-A5gW_0GE.mjs';
|
|
5
5
|
import { w as withCurrentCliUpdateState } from './cliUpdate-Y34VGe9Y.mjs';
|
|
6
|
-
import { r as registerCommonHandlers } from './registerCommonHandlers-
|
|
6
|
+
import { r as registerCommonHandlers } from './registerCommonHandlers-Ckv5boQI.mjs';
|
|
7
7
|
import { stat, readdir, lstat, open, readFile } from 'node:fs/promises';
|
|
8
8
|
import { join, isAbsolute, resolve } from 'node:path';
|
|
9
9
|
import os, { homedir } from 'node:os';
|
|
10
10
|
import { spawn, spawnSync } from 'node:child_process';
|
|
11
|
-
import { readSettings, readPersistedSessions, readTrackedClaudeSessionIds, readTrackedCodexThreadIds } from './persistence-
|
|
11
|
+
import { readSettings, readPersistedSessions, readTrackedClaudeSessionIds, readTrackedCodexThreadIds } from './persistence-Cw8aLoyL.mjs';
|
|
12
12
|
import { e as encodeBase64, g as encrypt, h as decrypt, d as decodeBase64 } from './authRelay-DSAvg1uv.mjs';
|
|
13
13
|
import { p as prepareClipboardText, d as prepareClipboardHistoryText } from './limits-DIo7rEBR.mjs';
|
|
14
|
-
import { b as backoff, d as delay } from './time-
|
|
15
|
-
import { R as RpcHandlerManager, i as isRateQuotaCode, p as pauseForRateQuota, a as answerSocketRequest, b as shouldReconnect, d as describeSocketAckDrop } from './lidState-
|
|
14
|
+
import { b as backoff, d as delay } from './time-CVvxdEDh.mjs';
|
|
15
|
+
import { R as RpcHandlerManager, i as isRateQuotaCode, p as pauseForRateQuota, a as answerSocketRequest, b as shouldReconnect, d as describeSocketAckDrop } from './lidState-CigXWxhe.mjs';
|
|
16
16
|
import * as pty from 'node-pty';
|
|
17
17
|
import { a as attachStartupCommand, v as validateTerminalTags, d as deriveAutoTitle, T as TMUX_SESSION_ID_RE, i as isSafeTmuxSessionName, b as isVhSessionName, U as USER_SESSIONS_FORMAT, p as parseUserSessions, L as LIST_SESSIONS_FORMAT, c as parseSessionListLine, e as LIST_FIELD_SEP, s as sendToVhTerminal } from './terminals-Dlg0x3nY.mjs';
|
|
18
18
|
import { t as tmuxArgs, V as VH_TMUX_SOCKET_ENV, a as scrubTmuxClientEnv } from './tmuxSocket-B8Yx20sT.mjs';
|
|
19
|
-
import { locateClaudeConversation } from './index-
|
|
19
|
+
import { locateClaudeConversation } from './index-DK2JpTJf.mjs';
|
|
20
20
|
import { randomBytes } from 'node:crypto';
|
|
21
21
|
import { existsSync, statSync, writeFileSync, unlinkSync, readFileSync, mkdirSync, accessSync, constants } from 'node:fs';
|
|
22
22
|
import axios from 'axios';
|
|
23
23
|
import { a as isValidTerminalId } from './ids-DU6sLx4C.mjs';
|
|
24
24
|
import { d as detectCLIAvailability } from './detectCLI-CSGMlV51.mjs';
|
|
25
|
-
import { d as detectResumeSupport } from './localHappyAgentAuth-
|
|
25
|
+
import { d as detectResumeSupport } from './localHappyAgentAuth-CaCyKzYp.mjs';
|
|
26
26
|
import { g as getProjectPath, a as getClaudeProjectsRoot } from './path-D2wdaNSk.mjs';
|
|
27
27
|
import { i as isVeryHappyOneShotPrompt } from './oneShotPrompts-DT4p6RNd.mjs';
|
|
28
|
-
import { f as forkSession, F as ForkSourceMissingError, d as discardForkedSession, l as listClaudeRewindPoints,
|
|
29
|
-
import { C as CodexAppServerClient } from './codexAppServerClient-
|
|
30
|
-
import { o as RelayCandidatesResponseSchema, m as RelayAssignmentResponseSchema, R as ReleaseDrainNoticeSchema } from './index-
|
|
28
|
+
import { f as forkSession, F as ForkSourceMissingError, d as discardForkedSession, l as listClaudeRewindPoints, a as forkAndTruncateSession, b as ForkTruncateUuidNotFoundError, c as forkBeforeUserMessage } from './claudeSessionFork-_DUrXaqd.mjs';
|
|
29
|
+
import { C as CodexAppServerClient } from './codexAppServerClient-C2ybs2mZ.mjs';
|
|
30
|
+
import { o as RelayCandidatesResponseSchema, m as RelayAssignmentResponseSchema, R as ReleaseDrainNoticeSchema } from './index-BBg9j0XK.mjs';
|
|
31
|
+
import { f as forkCodexThread, C as CodexForkRewindPointNotFoundError, l as listCodexRewindPoints, a as forkCodexBeforeUserMessage } from './codexThreadFork-R76RU5H0.mjs';
|
|
31
32
|
import 'chalk';
|
|
32
33
|
import 'node:util';
|
|
33
|
-
import './package-
|
|
34
|
+
import './package-DQsvY1XN.mjs';
|
|
34
35
|
import 'child_process';
|
|
35
36
|
import 'util';
|
|
36
37
|
import 'fs/promises';
|
|
@@ -8103,10 +8104,10 @@ function parseTimestamp(raw) {
|
|
|
8103
8104
|
}
|
|
8104
8105
|
function isHarnessUserText(text) {
|
|
8105
8106
|
const t = text.trimStart();
|
|
8106
|
-
return t.startsWith("# AGENTS.md instructions") || t.startsWith("<environment_context>") || t.startsWith("<user_instructions>") || t.startsWith("<INSTRUCTIONS>");
|
|
8107
|
+
return t.startsWith("# AGENTS.md instructions") || t.startsWith("<environment_context>") || t.startsWith("<user_instructions>") || t.startsWith("<INSTRUCTIONS>") || t.startsWith("<recommended_plugins>");
|
|
8107
8108
|
}
|
|
8108
8109
|
function stripHarnessBlocks(text) {
|
|
8109
|
-
return text.replace(/<(environment_context|user_instructions|INSTRUCTIONS|turn_aborted|system-reminder)>[\s\S]*?<\/\1>/g, " ").replace(/^# AGENTS\.md instructions[^\n]*\n/m, " ");
|
|
8110
|
+
return text.replace(/<(environment_context|user_instructions|INSTRUCTIONS|turn_aborted|system-reminder|recommended_plugins)>[\s\S]*?<\/\1>/g, " ").replace(/^# AGENTS\.md instructions[^\n]*\n/m, " ");
|
|
8110
8111
|
}
|
|
8111
8112
|
function textFromUserContent(content) {
|
|
8112
8113
|
if (typeof content === "string") return content;
|
|
@@ -8120,6 +8121,11 @@ function textFromUserContent(content) {
|
|
|
8120
8121
|
}
|
|
8121
8122
|
return parts.length > 0 ? parts.join("\n") : null;
|
|
8122
8123
|
}
|
|
8124
|
+
function isCodexSubThread(meta) {
|
|
8125
|
+
if (meta.thread_source === "subagent") return true;
|
|
8126
|
+
const source = meta.source;
|
|
8127
|
+
return !!source && typeof source === "object" && "subagent" in source;
|
|
8128
|
+
}
|
|
8123
8129
|
function parseCodexHistoryHead(head, promptChars) {
|
|
8124
8130
|
let id;
|
|
8125
8131
|
let cwd;
|
|
@@ -8142,6 +8148,7 @@ function parseCodexHistoryHead(head, promptChars) {
|
|
|
8142
8148
|
if (!parsed || typeof parsed !== "object") continue;
|
|
8143
8149
|
const payload = parsed.payload;
|
|
8144
8150
|
if (parsed.type === "session_meta" && payload && typeof payload === "object") {
|
|
8151
|
+
if (isCodexSubThread(payload)) return null;
|
|
8145
8152
|
sawMeta = true;
|
|
8146
8153
|
if (typeof payload.id === "string" && UUID_RE$1.test(payload.id)) id = payload.id.toLowerCase();
|
|
8147
8154
|
if (typeof payload.cwd === "string" && payload.cwd) cwd = payload.cwd;
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var socket_ioClient = require('socket.io-client');
|
|
4
|
-
var logger = require('./logger-
|
|
4
|
+
var logger = require('./logger-7ucWm9wp.cjs');
|
|
5
5
|
var mirrorProtocol = require('./mirrorProtocol-BUtmg1ws.cjs');
|
|
6
|
-
var configuration = require('./configuration-
|
|
6
|
+
var configuration = require('./configuration-UsI0sxEv.cjs');
|
|
7
7
|
var cliUpdate = require('./cliUpdate-DsKXPFYp.cjs');
|
|
8
|
-
var registerCommonHandlers = require('./registerCommonHandlers-
|
|
8
|
+
var registerCommonHandlers = require('./registerCommonHandlers-CMROPdJz.cjs');
|
|
9
9
|
var promises = require('node:fs/promises');
|
|
10
10
|
var path = require('node:path');
|
|
11
11
|
var os = require('node:os');
|
|
12
12
|
var node_child_process = require('node:child_process');
|
|
13
|
-
var persistence = require('./persistence-
|
|
13
|
+
var persistence = require('./persistence-i0nQMLlk.cjs');
|
|
14
14
|
var authRelay = require('./authRelay-BdYkC1Po.cjs');
|
|
15
15
|
var limits = require('./limits-C-a7gr04.cjs');
|
|
16
|
-
var time = require('./time-
|
|
17
|
-
var lidState = require('./lidState-
|
|
16
|
+
var time = require('./time-CLwVAz6s.cjs');
|
|
17
|
+
var lidState = require('./lidState-Ds-6ytZV.cjs');
|
|
18
18
|
var pty = require('node-pty');
|
|
19
19
|
var terminals = require('./terminals-B_bfC9c2.cjs');
|
|
20
20
|
var tmuxSocket = require('./tmuxSocket-D-Xt6Vn-.cjs');
|
|
21
|
-
var index = require('./index-
|
|
21
|
+
var index = require('./index-CZWAiydF.cjs');
|
|
22
22
|
var node_crypto = require('node:crypto');
|
|
23
23
|
var node_fs = require('node:fs');
|
|
24
24
|
var axios = require('axios');
|
|
25
25
|
var ids = require('./ids-B6ZC0HGt.cjs');
|
|
26
26
|
var detectCLI = require('./detectCLI-DR9ZaN6B.cjs');
|
|
27
|
-
var localHappyAgentAuth = require('./localHappyAgentAuth-
|
|
27
|
+
var localHappyAgentAuth = require('./localHappyAgentAuth-l0Na-5Ys.cjs');
|
|
28
28
|
var path$1 = require('./path-B7zW-WwE.cjs');
|
|
29
29
|
var oneShotPrompts = require('./oneShotPrompts-CL0dip9C.cjs');
|
|
30
|
-
var
|
|
31
|
-
var codexAppServerClient = require('./codexAppServerClient-
|
|
32
|
-
var index$1 = require('./index-
|
|
30
|
+
var claudeSessionFork = require('./claudeSessionFork-D9-mANmu.cjs');
|
|
31
|
+
var codexAppServerClient = require('./codexAppServerClient-DlKv5TjG.cjs');
|
|
32
|
+
var index$1 = require('./index-DJ-oV52i.cjs');
|
|
33
|
+
var codexThreadFork = require('./codexThreadFork-DNekT4nQ.cjs');
|
|
33
34
|
require('chalk');
|
|
34
35
|
require('node:util');
|
|
35
|
-
require('./package-
|
|
36
|
+
require('./package-D1A-8ZJy.cjs');
|
|
36
37
|
require('child_process');
|
|
37
38
|
require('util');
|
|
38
39
|
require('fs/promises');
|
|
@@ -8124,10 +8125,10 @@ function parseTimestamp(raw) {
|
|
|
8124
8125
|
}
|
|
8125
8126
|
function isHarnessUserText(text) {
|
|
8126
8127
|
const t = text.trimStart();
|
|
8127
|
-
return t.startsWith("# AGENTS.md instructions") || t.startsWith("<environment_context>") || t.startsWith("<user_instructions>") || t.startsWith("<INSTRUCTIONS>");
|
|
8128
|
+
return t.startsWith("# AGENTS.md instructions") || t.startsWith("<environment_context>") || t.startsWith("<user_instructions>") || t.startsWith("<INSTRUCTIONS>") || t.startsWith("<recommended_plugins>");
|
|
8128
8129
|
}
|
|
8129
8130
|
function stripHarnessBlocks(text) {
|
|
8130
|
-
return text.replace(/<(environment_context|user_instructions|INSTRUCTIONS|turn_aborted|system-reminder)>[\s\S]*?<\/\1>/g, " ").replace(/^# AGENTS\.md instructions[^\n]*\n/m, " ");
|
|
8131
|
+
return text.replace(/<(environment_context|user_instructions|INSTRUCTIONS|turn_aborted|system-reminder|recommended_plugins)>[\s\S]*?<\/\1>/g, " ").replace(/^# AGENTS\.md instructions[^\n]*\n/m, " ");
|
|
8131
8132
|
}
|
|
8132
8133
|
function textFromUserContent(content) {
|
|
8133
8134
|
if (typeof content === "string") return content;
|
|
@@ -8141,6 +8142,11 @@ function textFromUserContent(content) {
|
|
|
8141
8142
|
}
|
|
8142
8143
|
return parts.length > 0 ? parts.join("\n") : null;
|
|
8143
8144
|
}
|
|
8145
|
+
function isCodexSubThread(meta) {
|
|
8146
|
+
if (meta.thread_source === "subagent") return true;
|
|
8147
|
+
const source = meta.source;
|
|
8148
|
+
return !!source && typeof source === "object" && "subagent" in source;
|
|
8149
|
+
}
|
|
8144
8150
|
function parseCodexHistoryHead(head, promptChars) {
|
|
8145
8151
|
let id;
|
|
8146
8152
|
let cwd;
|
|
@@ -8163,6 +8169,7 @@ function parseCodexHistoryHead(head, promptChars) {
|
|
|
8163
8169
|
if (!parsed || typeof parsed !== "object") continue;
|
|
8164
8170
|
const payload = parsed.payload;
|
|
8165
8171
|
if (parsed.type === "session_meta" && payload && typeof payload === "object") {
|
|
8172
|
+
if (isCodexSubThread(payload)) return null;
|
|
8166
8173
|
sawMeta = true;
|
|
8167
8174
|
if (typeof payload.id === "string" && UUID_RE$1.test(payload.id)) id = payload.id.toLowerCase();
|
|
8168
8175
|
if (typeof payload.cwd === "string" && payload.cwd) cwd = payload.cwd;
|
|
@@ -8647,9 +8654,9 @@ class ApiMachineClient {
|
|
|
8647
8654
|
const projectDir = path$1.getProjectPath(directory);
|
|
8648
8655
|
let newClaudeSessionId;
|
|
8649
8656
|
try {
|
|
8650
|
-
newClaudeSessionId = await
|
|
8657
|
+
newClaudeSessionId = await claudeSessionFork.forkSession(projectDir, claudeSessionId);
|
|
8651
8658
|
} catch (error) {
|
|
8652
|
-
if (error instanceof
|
|
8659
|
+
if (error instanceof claudeSessionFork.ForkSourceMissingError) {
|
|
8653
8660
|
throw new Error("Claude session file not found on this machine");
|
|
8654
8661
|
}
|
|
8655
8662
|
throw error;
|
|
@@ -8671,11 +8678,11 @@ class ApiMachineClient {
|
|
|
8671
8678
|
importTitle: typeof title === "string" ? title : void 0
|
|
8672
8679
|
});
|
|
8673
8680
|
} catch (error) {
|
|
8674
|
-
await
|
|
8681
|
+
await claudeSessionFork.discardForkedSession(projectDir, newClaudeSessionId);
|
|
8675
8682
|
throw error;
|
|
8676
8683
|
}
|
|
8677
8684
|
if (result.type !== "success") {
|
|
8678
|
-
await
|
|
8685
|
+
await claudeSessionFork.discardForkedSession(projectDir, newClaudeSessionId);
|
|
8679
8686
|
return result;
|
|
8680
8687
|
}
|
|
8681
8688
|
logger.logger.debug(`[API MACHINE] Imported Claude conversation ${claudeSessionId} as session ${result.sessionId}`);
|
|
@@ -8815,10 +8822,10 @@ class ApiMachineClient {
|
|
|
8815
8822
|
throw new Error("claudeSessionId must be a valid UUID");
|
|
8816
8823
|
}
|
|
8817
8824
|
try {
|
|
8818
|
-
const newClaudeSessionId = await
|
|
8825
|
+
const newClaudeSessionId = await claudeSessionFork.forkSession(path$1.getProjectPath(directory), claudeSessionId);
|
|
8819
8826
|
return { type: "success", newClaudeSessionId };
|
|
8820
8827
|
} catch (error) {
|
|
8821
|
-
if (error instanceof
|
|
8828
|
+
if (error instanceof claudeSessionFork.ForkSourceMissingError) {
|
|
8822
8829
|
throw new Error("Claude session file not found on this machine");
|
|
8823
8830
|
}
|
|
8824
8831
|
throw error;
|
|
@@ -8833,10 +8840,10 @@ class ApiMachineClient {
|
|
|
8833
8840
|
throw new Error("claudeSessionId must be a valid UUID");
|
|
8834
8841
|
}
|
|
8835
8842
|
try {
|
|
8836
|
-
const points = await
|
|
8843
|
+
const points = await claudeSessionFork.listClaudeRewindPoints(path$1.getProjectPath(directory), claudeSessionId);
|
|
8837
8844
|
return { type: "success", points };
|
|
8838
8845
|
} catch (error) {
|
|
8839
|
-
if (error instanceof
|
|
8846
|
+
if (error instanceof claudeSessionFork.ForkSourceMissingError) {
|
|
8840
8847
|
throw new Error("Claude session file not found on this machine");
|
|
8841
8848
|
}
|
|
8842
8849
|
throw error;
|
|
@@ -8854,17 +8861,17 @@ class ApiMachineClient {
|
|
|
8854
8861
|
throw new Error("cutAfterUuid must be a valid UUID");
|
|
8855
8862
|
}
|
|
8856
8863
|
try {
|
|
8857
|
-
const newClaudeSessionId = await
|
|
8864
|
+
const newClaudeSessionId = await claudeSessionFork.forkAndTruncateSession(
|
|
8858
8865
|
path$1.getProjectPath(directory),
|
|
8859
8866
|
claudeSessionId,
|
|
8860
8867
|
cutAfterUuid
|
|
8861
8868
|
);
|
|
8862
8869
|
return { type: "success", newClaudeSessionId };
|
|
8863
8870
|
} catch (error) {
|
|
8864
|
-
if (error instanceof
|
|
8871
|
+
if (error instanceof claudeSessionFork.ForkSourceMissingError) {
|
|
8865
8872
|
throw new Error("Claude session file not found on this machine");
|
|
8866
8873
|
}
|
|
8867
|
-
if (error instanceof
|
|
8874
|
+
if (error instanceof claudeSessionFork.ForkTruncateUuidNotFoundError) {
|
|
8868
8875
|
throw new Error(
|
|
8869
8876
|
"The chosen rewind point is no longer present in the source session \u2014 try forking without truncation"
|
|
8870
8877
|
);
|
|
@@ -8976,7 +8983,7 @@ class ApiMachineClient {
|
|
|
8976
8983
|
if (!UUID_RE.test(claudeSessionId) || !UUID_RE.test(cutBeforeUuid)) {
|
|
8977
8984
|
throw new Error("claudeSessionId and cutBeforeUuid must be valid UUIDs");
|
|
8978
8985
|
}
|
|
8979
|
-
const newClaudeSessionId = await
|
|
8986
|
+
const newClaudeSessionId = await claudeSessionFork.forkBeforeUserMessage(path$1.getProjectPath(directory), claudeSessionId, cutBeforeUuid);
|
|
8980
8987
|
return newClaudeSessionId === null ? { type: "success", startFresh: true } : { type: "success", newClaudeSessionId };
|
|
8981
8988
|
});
|
|
8982
8989
|
this.rpcHandlerManager.registerHandler("codex-rewind-before-message", async (params) => {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var promises = require('node:fs/promises');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var z = require('zod');
|
|
6
|
-
var logger = require('./logger-
|
|
7
|
-
var persistence = require('./persistence-
|
|
8
|
-
var controlClient = require('./controlClient-
|
|
9
|
-
var sessionOps = require('./sessionOps-
|
|
10
|
-
var remoteSessionClient = require('./remoteSessionClient-
|
|
6
|
+
var logger = require('./logger-7ucWm9wp.cjs');
|
|
7
|
+
var persistence = require('./persistence-i0nQMLlk.cjs');
|
|
8
|
+
var controlClient = require('./controlClient-BXktrQ4z.cjs');
|
|
9
|
+
var sessionOps = require('./sessionOps-GsELm2PZ.cjs');
|
|
10
|
+
var remoteSessionClient = require('./remoteSessionClient-DX9jHLeW.cjs');
|
|
11
11
|
var ids = require('./ids-B6ZC0HGt.cjs');
|
|
12
12
|
var terminals = require('./terminals-B_bfC9c2.cjs');
|
|
13
|
-
var bootstrap = require('./bootstrap-
|
|
13
|
+
var bootstrap = require('./bootstrap-DvZjEa9_.cjs');
|
|
14
14
|
var path = require('node:path');
|
|
15
15
|
|
|
16
16
|
const PERSONAL_MEMORY_SOFT_LIMIT_CHARS = 2e3;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { readFile, writeFile, appendFile } from 'node:fs/promises';
|
|
2
2
|
import os from 'node:os';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { l as logger } from './logger-
|
|
5
|
-
import { readPersistedSessions } from './persistence-
|
|
6
|
-
import { e as spawnDaemonSession } from './controlClient-
|
|
7
|
-
import { a as listSessions, r as readSessionTranscript, s as sessionWebUrl, f as waitForSessionKey, g as sendUserMessage, b as stopSession, d as archiveSession } from './sessionOps-
|
|
8
|
-
import { r as readRemoteTranscript, s as sendRemoteMessage, d as deliverToSession, R as RemoteSessionOpsError } from './remoteSessionClient-
|
|
4
|
+
import { l as logger } from './logger-CGE4C8ho.mjs';
|
|
5
|
+
import { readPersistedSessions } from './persistence-Cw8aLoyL.mjs';
|
|
6
|
+
import { e as spawnDaemonSession } from './controlClient-CYzHrh3e.mjs';
|
|
7
|
+
import { a as listSessions, r as readSessionTranscript, s as sessionWebUrl, f as waitForSessionKey, g as sendUserMessage, b as stopSession, d as archiveSession } from './sessionOps-CdwVPSZz.mjs';
|
|
8
|
+
import { r as readRemoteTranscript, s as sendRemoteMessage, d as deliverToSession, R as RemoteSessionOpsError } from './remoteSessionClient-BMjsbuBh.mjs';
|
|
9
9
|
import { i as isValidSessionId, a as isValidTerminalId } from './ids-DU6sLx4C.mjs';
|
|
10
10
|
import { l as listVhTerminals, r as readVhTerminal, s as sendToVhTerminal } from './terminals-Dlg0x3nY.mjs';
|
|
11
|
-
import { bootstrapAssistantHome, assistantPersonalMemoryPath } from './bootstrap-
|
|
11
|
+
import { bootstrapAssistantHome, assistantPersonalMemoryPath } from './bootstrap-BKmsYSwh.mjs';
|
|
12
12
|
import { join, isAbsolute, normalize } from 'node:path';
|
|
13
13
|
|
|
14
14
|
const PERSONAL_MEMORY_SOFT_LIMIT_CHARS = 2e3;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var node_crypto = require('node:crypto');
|
|
4
4
|
var promises = require('node:fs/promises');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var attachmentLimits = require('./attachmentLimits-
|
|
7
|
-
var configuration = require('./configuration-
|
|
6
|
+
var attachmentLimits = require('./attachmentLimits-DzlBPyJP.cjs');
|
|
7
|
+
var configuration = require('./configuration-UsI0sxEv.cjs');
|
|
8
8
|
|
|
9
9
|
const CLAUDE_ATTACHMENT_KINDS = [
|
|
10
10
|
"image/jpeg",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { randomUUID } from 'node:crypto';
|
|
2
2
|
import { writeFile, rename, unlink } from 'node:fs/promises';
|
|
3
3
|
import { join, basename } from 'node:path';
|
|
4
|
-
import { M as MAX_CHAT_ATTACHMENT_SOURCE_BYTES } from './attachmentLimits-
|
|
5
|
-
import { e as ensurePrivateDirectory, b as hardenPrivateFile } from './configuration-
|
|
4
|
+
import { M as MAX_CHAT_ATTACHMENT_SOURCE_BYTES } from './attachmentLimits-D5pgmASK.mjs';
|
|
5
|
+
import { e as ensurePrivateDirectory, b as hardenPrivateFile } from './configuration-A5gW_0GE.mjs';
|
|
6
6
|
|
|
7
7
|
const CLAUDE_ATTACHMENT_KINDS = [
|
|
8
8
|
"image/jpeg",
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
|
-
var persistence = require('./persistence-
|
|
5
|
-
var auth = require('./auth-
|
|
6
|
-
var configuration = require('./configuration-
|
|
4
|
+
var persistence = require('./persistence-i0nQMLlk.cjs');
|
|
5
|
+
var auth = require('./auth-BbSdXMQ_.cjs');
|
|
6
|
+
var configuration = require('./configuration-UsI0sxEv.cjs');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
var node_readline = require('node:readline');
|
|
9
|
-
var controlClient = require('./controlClient-
|
|
10
|
-
var logger = require('./logger-
|
|
9
|
+
var controlClient = require('./controlClient-BXktrQ4z.cjs');
|
|
10
|
+
var logger = require('./logger-7ucWm9wp.cjs');
|
|
11
11
|
var os = require('node:os');
|
|
12
12
|
var authRelay = require('./authRelay-BdYkC1Po.cjs');
|
|
13
13
|
require('node:fs/promises');
|
|
14
14
|
require('zod');
|
|
15
15
|
require('node:path');
|
|
16
|
-
require('./package-
|
|
16
|
+
require('./package-D1A-8ZJy.cjs');
|
|
17
17
|
require('node:crypto');
|
|
18
18
|
require('tweetnacl');
|
|
19
19
|
require('node:util');
|
|
20
20
|
require('axios');
|
|
21
|
-
require('./time-
|
|
22
|
-
require('./browser-
|
|
21
|
+
require('./time-CLwVAz6s.cjs');
|
|
22
|
+
require('./browser-CBZj-1Wx.cjs');
|
|
23
23
|
require('open');
|
|
24
24
|
|
|
25
25
|
function localMachineIdentityStatus(machineId) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
|
-
import { readCredentials, readSettings, clearCredentials, clearMachineId } from './persistence-
|
|
3
|
-
import { a as authAndSetupMachineIfNeeded } from './auth-
|
|
4
|
-
import { c as configuration } from './configuration-
|
|
2
|
+
import { readCredentials, readSettings, clearCredentials, clearMachineId } from './persistence-Cw8aLoyL.mjs';
|
|
3
|
+
import { a as authAndSetupMachineIfNeeded } from './auth-C8V7-oUT.mjs';
|
|
4
|
+
import { c as configuration } from './configuration-A5gW_0GE.mjs';
|
|
5
5
|
import { existsSync, rmSync } from 'node:fs';
|
|
6
6
|
import { createInterface } from 'node:readline';
|
|
7
|
-
import { c as checkIfDaemonRunningAndCleanupStaleState, a as stopDaemon } from './controlClient-
|
|
8
|
-
import { l as logger } from './logger-
|
|
7
|
+
import { c as checkIfDaemonRunningAndCleanupStaleState, a as stopDaemon } from './controlClient-CYzHrh3e.mjs';
|
|
8
|
+
import { l as logger } from './logger-CGE4C8ho.mjs';
|
|
9
9
|
import os from 'node:os';
|
|
10
10
|
import { c as credentialRelayProblem } from './authRelay-DSAvg1uv.mjs';
|
|
11
11
|
import 'node:fs/promises';
|
|
12
12
|
import 'zod';
|
|
13
13
|
import 'node:path';
|
|
14
|
-
import './package-
|
|
14
|
+
import './package-DQsvY1XN.mjs';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'tweetnacl';
|
|
17
17
|
import 'node:util';
|
|
18
18
|
import 'axios';
|
|
19
|
-
import './time-
|
|
20
|
-
import './browser-
|
|
19
|
+
import './time-CVvxdEDh.mjs';
|
|
20
|
+
import './browser-CrMAr5fI.mjs';
|
|
21
21
|
import 'open';
|
|
22
22
|
|
|
23
23
|
function localMachineIdentityStatus(machineId) {
|