very-happy-cli 0.2.132 → 0.2.133
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-BNMLGtST.mjs → AcpBackend-BQm7dNza.mjs} +2 -2
- package/dist/{AcpBackend--EnHZRC4.cjs → AcpBackend-DgG8o4jd.cjs} +2 -2
- package/dist/{AcpSessionManager-BF5JZYCC.mjs → AcpSessionManager-C7unPEZO.mjs} +1 -1
- package/dist/{AcpSessionManager-RoOyx5KI.cjs → AcpSessionManager-DDFEmhQp.cjs} +1 -1
- package/dist/{agentGuidance-R9MH5Cd5.cjs → agentGuidance-BItqIZTf.cjs} +1 -1
- package/dist/{agentGuidance-DeOIgOhh.mjs → agentGuidance-BaplwDcV.mjs} +1 -1
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-ClCkJ1a_.mjs → config-BZ8xEnOv.mjs} +4 -4
- package/dist/{config-CkmssSRu.cjs → config-uLywzv5t.cjs} +4 -4
- package/dist/{index-Dn7s2iaT.cjs → index-6Xm0CgN_.cjs} +71 -34
- package/dist/{index-Bqg6yo5s.cjs → index-CdH3ecC5.cjs} +4 -4
- package/dist/{index-DdbU8FmA.mjs → index-ClCeQ1FW.mjs} +7 -7
- package/dist/{index-DK0qz1y7.mjs → index-D8i2EViA.mjs} +4 -4
- package/dist/{index-CjopZZg3.cjs → index-Daga0ztv.cjs} +6 -6
- package/dist/{index-D1gHXtkw.mjs → index-EsR8ayIg.mjs} +67 -30
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{installTerminalHooks-CPZ3vVn8.cjs → installTerminalHooks-CKG0MYVK.cjs} +4 -4
- package/dist/{installTerminalHooks-CRWWmonO.mjs → installTerminalHooks-NH4kiB2E.mjs} +4 -4
- package/dist/lib.cjs +2 -2
- package/dist/lib.d.cts +9 -0
- package/dist/lib.d.mts +9 -0
- package/dist/lib.mjs +2 -2
- package/dist/{limits-C9aXkP7U.mjs → limits-Du7S6jqA.mjs} +7 -7
- package/dist/{limits-DLlsV71c.cjs → limits-XRNzIlVm.cjs} +7 -7
- package/dist/{mcp-DHkYfENQ.cjs → mcp-CAMCuudA.cjs} +4 -4
- package/dist/{mcp-DkoXvc07.mjs → mcp-D8zhjyZa.mjs} +4 -4
- package/dist/{runGemini-Cx1YcK2o.cjs → runGemini-BIVHp0ST.cjs} +6 -6
- package/dist/{runGemini-BjEl7syj.mjs → runGemini-Db4rX54F.mjs} +6 -6
- package/dist/{runOpenClaw-ByHu69K5.mjs → runOpenClaw-D2MceXPO.mjs} +5 -5
- package/dist/{runOpenClaw-I4sGAQf1.cjs → runOpenClaw-a0f2pZZp.cjs} +5 -5
- package/dist/{send-CSOeUlQC.mjs → send-1Wjb0lIh.mjs} +4 -4
- package/dist/{send-gH1vJ0iv.cjs → send-DKbumEcg.cjs} +4 -4
- package/dist/{sessions-CP9FlcJ6.mjs → sessions-DXCCRDb5.mjs} +4 -4
- package/dist/{sessions-BBc8L8qf.cjs → sessions-SIFOOlGp.cjs} +4 -4
- package/dist/{spawn-DrQo81MW.mjs → spawn-Bj3W6HR4.mjs} +4 -4
- package/dist/{spawn-Dmfbot5k.cjs → spawn-C-XpSPLX.cjs} +4 -4
- package/dist/{teams-DtXQYmEK.cjs → teams-ChFzXAqr.cjs} +4 -4
- package/dist/{teams-Bbvo1G6y.mjs → teams-CqhFQLVC.mjs} +4 -4
- package/dist/{todo-BAwevRyb.mjs → todo-B0gbQHH8.mjs} +3 -3
- package/dist/{todo-DOi6svw9.cjs → todo-o0clp-_I.cjs} +3 -3
- package/dist/{types-CA-c2NH7.mjs → types-6DrEgHVx.mjs} +6 -1
- package/dist/{types-B15E2OVy.cjs → types-CcjVmS2i.cjs} +7 -2
- package/package.json +7 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { ndJsonStream, ClientSideConnection } from '@agentclientprotocol/sdk';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import { l as logger, p as packageJson } from './limits-
|
|
5
|
-
import { d as contentLogMetadata, e as errorLogMetadata, h as delay } from './types-
|
|
4
|
+
import { l as logger, p as packageJson } from './limits-Du7S6jqA.mjs';
|
|
5
|
+
import { d as contentLogMetadata, e as errorLogMetadata, h as delay } from './types-6DrEgHVx.mjs';
|
|
6
6
|
|
|
7
7
|
function acpImageBlocks(attachments, supportsImages) {
|
|
8
8
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var node_child_process = require('node:child_process');
|
|
4
4
|
var sdk = require('@agentclientprotocol/sdk');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var persistence = require('./limits-
|
|
7
|
-
var api = require('./types-
|
|
6
|
+
var persistence = require('./limits-XRNzIlVm.cjs');
|
|
7
|
+
var api = require('./types-CcjVmS2i.cjs');
|
|
8
8
|
|
|
9
9
|
function acpImageBlocks(attachments, supportsImages) {
|
|
10
10
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createId } from '@paralleldrive/cuid2';
|
|
2
|
-
import { s as streamKeyOf, c as createEnvelope } from './types-
|
|
2
|
+
import { s as streamKeyOf, c as createEnvelope } from './types-6DrEgHVx.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-XRNzIlVm.cjs');
|
|
6
6
|
var promises = require('node:fs/promises');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
var path = require('node:path');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { n as normalizeHttpEndpoint, c as configuration, g as readSettings, r as readPersistedSessions, d as readCredentialsForConfiguredRelay } from './limits-
|
|
3
|
+
import { n as normalizeHttpEndpoint, c as configuration, g as readSettings, r as readPersistedSessions, d as readCredentialsForConfiguredRelay } from './limits-Du7S6jqA.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';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var agentGuidance = require('../agentGuidance-
|
|
3
|
+
var agentGuidance = require('../agentGuidance-BItqIZTf.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-XRNzIlVm.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-BaplwDcV.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-Du7S6jqA.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 { j as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-
|
|
5
|
+
import { l as logger } from './limits-Du7S6jqA.mjs';
|
|
6
|
+
import { j as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-EsR8ayIg.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-6DrEgHVx.mjs';
|
|
17
17
|
import 'axios';
|
|
18
18
|
import 'node:events';
|
|
19
19
|
import 'socket.io-client';
|
|
@@ -28,7 +28,7 @@ import 'node-pty';
|
|
|
28
28
|
import 'node:readline';
|
|
29
29
|
import '@anthropic-ai/sandbox-runtime';
|
|
30
30
|
import 'expo-server-sdk';
|
|
31
|
-
import './agentGuidance-
|
|
31
|
+
import './agentGuidance-BaplwDcV.mjs';
|
|
32
32
|
import 'ink';
|
|
33
33
|
import 'react';
|
|
34
34
|
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-XRNzIlVm.cjs');
|
|
8
|
+
var index = require('./index-6Xm0CgN_.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-CcjVmS2i.cjs');
|
|
19
19
|
require('axios');
|
|
20
20
|
require('node:events');
|
|
21
21
|
require('socket.io-client');
|
|
@@ -30,7 +30,7 @@ require('node-pty');
|
|
|
30
30
|
require('node:readline');
|
|
31
31
|
require('@anthropic-ai/sandbox-runtime');
|
|
32
32
|
require('expo-server-sdk');
|
|
33
|
-
require('./agentGuidance-
|
|
33
|
+
require('./agentGuidance-BItqIZTf.cjs');
|
|
34
34
|
require('ink');
|
|
35
35
|
require('react');
|
|
36
36
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var api = require('./types-
|
|
7
|
-
var persistence = require('./limits-
|
|
6
|
+
var api = require('./types-CcjVmS2i.cjs');
|
|
7
|
+
var persistence = require('./limits-XRNzIlVm.cjs');
|
|
8
8
|
var spawn = require('cross-spawn');
|
|
9
9
|
var path = require('node:path');
|
|
10
10
|
var node_readline = require('node:readline');
|
|
11
11
|
var node_fs = require('node:fs');
|
|
12
|
-
var agentGuidance = require('./agentGuidance-
|
|
12
|
+
var agentGuidance = require('./agentGuidance-BItqIZTf.cjs');
|
|
13
13
|
var promises = require('node:fs/promises');
|
|
14
14
|
var fs = require('fs/promises');
|
|
15
15
|
var ink = require('ink');
|
|
@@ -7524,27 +7524,31 @@ function createUpdateController(deps) {
|
|
|
7524
7524
|
let policy = null;
|
|
7525
7525
|
let outcome = null;
|
|
7526
7526
|
let running = false;
|
|
7527
|
+
let manualVersion = null;
|
|
7527
7528
|
let operation = null;
|
|
7528
7529
|
let blocked = false;
|
|
7529
7530
|
let handoverHold;
|
|
7530
7531
|
let lastPublished = "";
|
|
7531
7532
|
const now = deps.now ?? Date.now;
|
|
7533
|
+
function validManualTarget(next, version) {
|
|
7534
|
+
return version === next.recommendedVersion && Number.isFinite(next.checkedAt) && now() - next.checkedAt <= 65 * 6e4 && next.checkedAt <= now() + 6e4 && api.compareExactVersions(next.currentVersion, version) === -1 && (!next.minimumVersion || [0, 1].includes(api.compareExactVersions(version, next.minimumVersion) ?? -1));
|
|
7535
|
+
}
|
|
7532
7536
|
function publish(state, version, detail) {
|
|
7533
7537
|
if (!policy) return;
|
|
7534
|
-
const fingerprint = JSON.stringify([policy.checkedAt, state, version, detail]);
|
|
7538
|
+
const fingerprint = JSON.stringify([policy.checkedAt, state, version, detail, manualVersion]);
|
|
7535
7539
|
if (fingerprint === lastPublished) return;
|
|
7536
7540
|
lastPublished = fingerprint;
|
|
7537
|
-
outcome = { state, version, detail, at: now() };
|
|
7538
|
-
deps.publish({ ...policy, retrySupported: !blocked, handoverHold, autoUpdate: outcome });
|
|
7541
|
+
outcome = { state, version, detail, at: now(), ...manualVersion ? { source: "manual" } : {} };
|
|
7542
|
+
deps.publish({ ...policy, retrySupported: !blocked, manualUpdateSupported: !blocked, handoverHold, autoUpdate: outcome });
|
|
7539
7543
|
}
|
|
7540
7544
|
async function evaluate() {
|
|
7541
7545
|
if (!policy || running) return;
|
|
7542
|
-
const target = policy.autoUpdateVersion ?? null;
|
|
7546
|
+
const target = manualVersion ?? policy.autoUpdateVersion ?? null;
|
|
7543
7547
|
if (outcome?.version === target && ["failed", "installed"].includes(outcome.state)) {
|
|
7544
|
-
const fingerprint = JSON.stringify([policy.checkedAt, outcome.state, outcome.version, outcome.detail]);
|
|
7548
|
+
const fingerprint = JSON.stringify([policy.checkedAt, outcome.state, outcome.version, outcome.detail, manualVersion]);
|
|
7545
7549
|
if (fingerprint !== lastPublished) {
|
|
7546
7550
|
lastPublished = fingerprint;
|
|
7547
|
-
deps.publish({ ...policy, retrySupported: !blocked, handoverHold, autoUpdate: outcome });
|
|
7551
|
+
deps.publish({ ...policy, retrySupported: !blocked, manualUpdateSupported: !blocked, handoverHold, autoUpdate: outcome });
|
|
7548
7552
|
}
|
|
7549
7553
|
return;
|
|
7550
7554
|
}
|
|
@@ -7552,7 +7556,7 @@ function createUpdateController(deps) {
|
|
|
7552
7556
|
publish("policy_stale", target);
|
|
7553
7557
|
return;
|
|
7554
7558
|
}
|
|
7555
|
-
if (!await deps.enabled()) {
|
|
7559
|
+
if (!manualVersion && !await deps.enabled()) {
|
|
7556
7560
|
publish("disabled", target);
|
|
7557
7561
|
return;
|
|
7558
7562
|
}
|
|
@@ -7605,6 +7609,7 @@ function createUpdateController(deps) {
|
|
|
7605
7609
|
try {
|
|
7606
7610
|
const next = await deps.policy();
|
|
7607
7611
|
if (!next) return;
|
|
7612
|
+
if (manualVersion && !validManualTarget(next, manualVersion)) manualVersion = null;
|
|
7608
7613
|
policy = next;
|
|
7609
7614
|
await evaluate();
|
|
7610
7615
|
} finally {
|
|
@@ -7619,11 +7624,42 @@ function createUpdateController(deps) {
|
|
|
7619
7624
|
operation = "retry";
|
|
7620
7625
|
try {
|
|
7621
7626
|
const next = await deps.policy();
|
|
7622
|
-
if (!next || next.autoUpdateVersion !== version || now() - next.checkedAt > 65 * 6e4) {
|
|
7627
|
+
if (!next || (manualVersion ? !validManualTarget(next, version) : next.autoUpdateVersion !== version || now() - next.checkedAt > 65 * 6e4)) {
|
|
7623
7628
|
return { error: "update_policy_changed_or_unavailable" };
|
|
7624
7629
|
}
|
|
7625
|
-
if (!await deps.enabled()) return { error: "auto_update_disabled" };
|
|
7630
|
+
if (!manualVersion && !await deps.enabled()) return { error: "auto_update_disabled" };
|
|
7631
|
+
policy = next;
|
|
7632
|
+
outcome = null;
|
|
7633
|
+
handoverHold = null;
|
|
7634
|
+
publish("waiting_idle", version);
|
|
7635
|
+
setTimeout(() => {
|
|
7636
|
+
void tick().catch(() => publish("policy_stale", version));
|
|
7637
|
+
}, 0);
|
|
7638
|
+
return { accepted: true };
|
|
7639
|
+
} finally {
|
|
7640
|
+
operation = null;
|
|
7641
|
+
}
|
|
7642
|
+
}
|
|
7643
|
+
async function request(version) {
|
|
7644
|
+
if (operation || blocked) return { error: blocked ? "manual_recovery_required" : "update_in_progress" };
|
|
7645
|
+
operation = "request";
|
|
7646
|
+
try {
|
|
7647
|
+
const next = await deps.policy();
|
|
7648
|
+
if (next && manualVersion && !validManualTarget(next, manualVersion)) {
|
|
7649
|
+
manualVersion = null;
|
|
7650
|
+
policy = next;
|
|
7651
|
+
publish("policy_stale", null);
|
|
7652
|
+
}
|
|
7653
|
+
if (!next || typeof version !== "string" || !validManualTarget(next, version)) {
|
|
7654
|
+
return { error: "update_policy_changed_or_unavailable" };
|
|
7655
|
+
}
|
|
7656
|
+
if (outcome?.version === version && (outcome.state === "installed" || manualVersion === version && outcome.state === "waiting_idle")) {
|
|
7657
|
+
policy = next;
|
|
7658
|
+
publish(outcome.state, version, outcome.detail);
|
|
7659
|
+
return { accepted: true };
|
|
7660
|
+
}
|
|
7626
7661
|
policy = next;
|
|
7662
|
+
manualVersion = version;
|
|
7627
7663
|
outcome = null;
|
|
7628
7664
|
handoverHold = null;
|
|
7629
7665
|
publish("waiting_idle", version);
|
|
@@ -7646,9 +7682,9 @@ function createUpdateController(deps) {
|
|
|
7646
7682
|
}
|
|
7647
7683
|
function holdHandover(reason) {
|
|
7648
7684
|
handoverHold = { reason, at: now() };
|
|
7649
|
-
publish("failed", policy?.autoUpdateVersion ?? null, "handover_preflight_failed");
|
|
7685
|
+
publish("failed", manualVersion ?? policy?.autoUpdateVersion ?? null, "handover_preflight_failed");
|
|
7650
7686
|
}
|
|
7651
|
-
return { refresh, retry, tick, withHandover, holdHandover, isRunning: () => running };
|
|
7687
|
+
return { refresh, retry, request, tick, withHandover, holdHandover, isRunning: () => running };
|
|
7652
7688
|
}
|
|
7653
7689
|
|
|
7654
7690
|
const CLAUDE_KEYCHAIN_SERVICE_PREFIX = "Claude Code";
|
|
@@ -7714,7 +7750,7 @@ function parseJsonObject(text) {
|
|
|
7714
7750
|
return null;
|
|
7715
7751
|
}
|
|
7716
7752
|
}
|
|
7717
|
-
function resolveSdkClaudeBinary(platform = process.platform, arch = process.arch, resolver = (s) => node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
7753
|
+
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-6Xm0CgN_.cjs', document.baseURI).href))).resolve(s)) {
|
|
7718
7754
|
const platformArch = `${platform}-${arch}`;
|
|
7719
7755
|
const candidates = [
|
|
7720
7756
|
`@anthropic-ai/claude-agent-sdk-${platformArch}/claude`,
|
|
@@ -10945,6 +10981,7 @@ async function startDaemon() {
|
|
|
10945
10981
|
}
|
|
10946
10982
|
});
|
|
10947
10983
|
apiMachine.setCliUpdateRetryHandler(updateController.retry);
|
|
10984
|
+
apiMachine.setCliUpdateRequestHandler(updateController.request);
|
|
10948
10985
|
const refreshCliUpdate = () => updateController.refresh().catch((error) => {
|
|
10949
10986
|
persistence.logger.debug("[DAEMON RUN] CLI update policy check failed:", error);
|
|
10950
10987
|
});
|
|
@@ -12133,7 +12170,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12133
12170
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12134
12171
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12135
12172
|
const run = deps.run ?? (async (input) => {
|
|
12136
|
-
const { query } = await Promise.resolve().then(function () { return require('./index-
|
|
12173
|
+
const { query } = await Promise.resolve().then(function () { return require('./index-CdH3ecC5.cjs'); });
|
|
12137
12174
|
return runSideQuestion(query, input);
|
|
12138
12175
|
});
|
|
12139
12176
|
const slots = /* @__PURE__ */ new Map();
|
|
@@ -12235,7 +12272,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
12235
12272
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
12236
12273
|
function resolveClaudeBinary() {
|
|
12237
12274
|
try {
|
|
12238
|
-
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-
|
|
12275
|
+
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-6Xm0CgN_.cjs', document.baseURI).href)));
|
|
12239
12276
|
const utilsPath = path.resolve(path.join(api.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
12240
12277
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
12241
12278
|
const path$1 = getClaudeCliPath();
|
|
@@ -14453,9 +14490,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
14453
14490
|
};
|
|
14454
14491
|
}
|
|
14455
14492
|
|
|
14456
|
-
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-
|
|
14493
|
+
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-6Xm0CgN_.cjs', document.baseURI).href)));
|
|
14457
14494
|
const __dirname$1 = path.dirname(__filename$1);
|
|
14458
|
-
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
14495
|
+
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-6Xm0CgN_.cjs', document.baseURI).href)));
|
|
14459
14496
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
14460
14497
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
14461
14498
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -17150,7 +17187,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17150
17187
|
process.exit(0);
|
|
17151
17188
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17152
17189
|
try {
|
|
17153
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-
|
|
17190
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-CKG0MYVK.cjs'); });
|
|
17154
17191
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17155
17192
|
if (command.action === "help") {
|
|
17156
17193
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17167,7 +17204,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17167
17204
|
}
|
|
17168
17205
|
} else if (subcommand === "spawn") {
|
|
17169
17206
|
try {
|
|
17170
|
-
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-
|
|
17207
|
+
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-C-XpSPLX.cjs'); });
|
|
17171
17208
|
await handleSpawnCommand(args.slice(1));
|
|
17172
17209
|
} catch (error) {
|
|
17173
17210
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17179,7 +17216,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17179
17216
|
return;
|
|
17180
17217
|
} else if (subcommand === "sessions") {
|
|
17181
17218
|
try {
|
|
17182
|
-
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-
|
|
17219
|
+
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-SIFOOlGp.cjs'); });
|
|
17183
17220
|
await handleSessionsCommand(args.slice(1));
|
|
17184
17221
|
} catch (error) {
|
|
17185
17222
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17191,7 +17228,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17191
17228
|
return;
|
|
17192
17229
|
} else if (subcommand === "send") {
|
|
17193
17230
|
try {
|
|
17194
|
-
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-
|
|
17231
|
+
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-DKbumEcg.cjs'); });
|
|
17195
17232
|
await handleSendCommand(args.slice(1));
|
|
17196
17233
|
} catch (error) {
|
|
17197
17234
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17297,9 +17334,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17297
17334
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17298
17335
|
const projectId = args[3];
|
|
17299
17336
|
try {
|
|
17300
|
-
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17301
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-
|
|
17302
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-
|
|
17337
|
+
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-uLywzv5t.cjs'); });
|
|
17338
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-XRNzIlVm.cjs'); }).then(function (n) { return n.persistence; });
|
|
17339
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-CcjVmS2i.cjs'); }).then(function (n) { return n.api; });
|
|
17303
17340
|
let userEmail = void 0;
|
|
17304
17341
|
try {
|
|
17305
17342
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17330,7 +17367,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17330
17367
|
}
|
|
17331
17368
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17332
17369
|
try {
|
|
17333
|
-
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17370
|
+
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-uLywzv5t.cjs'); });
|
|
17334
17371
|
const config = readGeminiLocalConfig();
|
|
17335
17372
|
if (config.googleCloudProject) {
|
|
17336
17373
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17370,7 +17407,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17370
17407
|
process.exit(0);
|
|
17371
17408
|
}
|
|
17372
17409
|
try {
|
|
17373
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
17410
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-BIVHp0ST.cjs'); });
|
|
17374
17411
|
let startedBy = void 0;
|
|
17375
17412
|
for (let i = 1; i < args.length; i++) {
|
|
17376
17413
|
if (args[i] === "--started-by") {
|
|
@@ -17400,7 +17437,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17400
17437
|
}
|
|
17401
17438
|
};
|
|
17402
17439
|
try {
|
|
17403
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
17440
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-Daga0ztv.cjs'); });
|
|
17404
17441
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
17405
17442
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
17406
17443
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -17428,7 +17465,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17428
17465
|
return;
|
|
17429
17466
|
} else if (subcommand === "acp") {
|
|
17430
17467
|
try {
|
|
17431
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
17468
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-Daga0ztv.cjs'); });
|
|
17432
17469
|
let startedBy = void 0;
|
|
17433
17470
|
let verbose = false;
|
|
17434
17471
|
const acpArgs = [];
|
|
@@ -17468,7 +17505,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17468
17505
|
return;
|
|
17469
17506
|
} else if (subcommand === "openclaw") {
|
|
17470
17507
|
try {
|
|
17471
|
-
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
17508
|
+
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-a0f2pZZp.cjs'); });
|
|
17472
17509
|
let startedBy = void 0;
|
|
17473
17510
|
let verbose = false;
|
|
17474
17511
|
let gatewayUrl;
|
|
@@ -17519,7 +17556,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17519
17556
|
return;
|
|
17520
17557
|
} else if (subcommand === "todo") {
|
|
17521
17558
|
try {
|
|
17522
|
-
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-
|
|
17559
|
+
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-o0clp-_I.cjs'); });
|
|
17523
17560
|
await handleTodoCommand(args.slice(1));
|
|
17524
17561
|
} catch (error) {
|
|
17525
17562
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -17528,7 +17565,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17528
17565
|
return;
|
|
17529
17566
|
} else if (subcommand === "teams") {
|
|
17530
17567
|
try {
|
|
17531
|
-
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-
|
|
17568
|
+
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-ChFzXAqr.cjs'); });
|
|
17532
17569
|
await handleTeamsCommand(args.slice(1));
|
|
17533
17570
|
} catch (error) {
|
|
17534
17571
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -17537,7 +17574,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17537
17574
|
return;
|
|
17538
17575
|
} else if (subcommand === "mcp" && args.length === 1) {
|
|
17539
17576
|
try {
|
|
17540
|
-
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-
|
|
17577
|
+
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-CAMCuudA.cjs'); });
|
|
17541
17578
|
await handleMcpCommand();
|
|
17542
17579
|
} catch (error) {
|
|
17543
17580
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-6Xm0CgN_.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-CcjVmS2i.cjs');
|
|
9
9
|
require('axios');
|
|
10
|
-
require('./limits-
|
|
10
|
+
require('./limits-XRNzIlVm.cjs');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:fs');
|
|
13
13
|
require('node:path');
|
|
@@ -31,7 +31,7 @@ require('fs');
|
|
|
31
31
|
require('node:readline');
|
|
32
32
|
require('@anthropic-ai/sandbox-runtime');
|
|
33
33
|
require('expo-server-sdk');
|
|
34
|
-
require('./agentGuidance-
|
|
34
|
+
require('./agentGuidance-BItqIZTf.cjs');
|
|
35
35
|
require('ink');
|
|
36
36
|
require('react');
|
|
37
37
|
require('ps-list');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DefaultTransport, A as AcpBackend } from './AcpBackend-
|
|
2
|
-
export { a as DEFAULT_IDLE_TIMEOUT_MS, b as DEFAULT_TOOL_CALL_TIMEOUT_MS, e as extractErrorDetail, f as formatDuration, c as formatDurationMinutes, h as handleAgentMessageChunk, d as handleAgentThoughtChunk, g as handleLegacyMessageChunk, i as handlePlanUpdate, j as handleThinkingUpdate, k as handleToolCall, l as handleToolCallUpdate, p as parseArgsFromContent } from './AcpBackend-
|
|
3
|
-
import { c as configuration, g as readSettings, i as encodeBase64, l as logger } from './limits-
|
|
4
|
-
import { A as AcpSessionManager } from './AcpSessionManager-
|
|
5
|
-
import { f as connectionState, A as ApiClient, p as projectPath, g as BUILTIN_TODO_DISCOVERY } from './types-
|
|
6
|
-
import { P as PI_TEAMS_EXTENSION, n as initialMachineMetadata, o as createSessionMetadata, u as setupOfflineReconnection, v as notifyDaemonSessionStarted, z as StreamRelay, x as MessageQueue2, B as hashObject, C as startHappyServer, E as registerAgentAttachmentDownloads, F as TitleGenerator, y as registerKillSessionHandler, H as CLAUDE_ATTACHMENT_KINDS, I as stageClaudeAttachments, J as appendStagedAttachmentsToPrompt, K as BasePermissionHandler, L as writeSessionModeFile, N as normalizeAcpPermissionMode, O as removeSessionModeFile } from './index-
|
|
1
|
+
import { D as DefaultTransport, A as AcpBackend } from './AcpBackend-BQm7dNza.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-BQm7dNza.mjs';
|
|
3
|
+
import { c as configuration, g as readSettings, i as encodeBase64, l as logger } from './limits-Du7S6jqA.mjs';
|
|
4
|
+
import { A as AcpSessionManager } from './AcpSessionManager-C7unPEZO.mjs';
|
|
5
|
+
import { f as connectionState, A as ApiClient, p as projectPath, g as BUILTIN_TODO_DISCOVERY } from './types-6DrEgHVx.mjs';
|
|
6
|
+
import { P as PI_TEAMS_EXTENSION, n as initialMachineMetadata, o as createSessionMetadata, u as setupOfflineReconnection, v as notifyDaemonSessionStarted, z as StreamRelay, x as MessageQueue2, B as hashObject, C as startHappyServer, E as registerAgentAttachmentDownloads, F as TitleGenerator, y as registerKillSessionHandler, H as CLAUDE_ATTACHMENT_KINDS, I as stageClaudeAttachments, J as appendStagedAttachmentsToPrompt, K as BasePermissionHandler, L as writeSessionModeFile, N as normalizeAcpPermissionMode, O as removeSessionModeFile } from './index-EsR8ayIg.mjs';
|
|
7
7
|
import { mkdir, chmod, writeFile, rename } from 'node:fs/promises';
|
|
8
8
|
import { randomUUID } from 'node:crypto';
|
|
9
9
|
import { join } from 'node:path';
|
|
@@ -32,7 +32,7 @@ import 'fs';
|
|
|
32
32
|
import 'node:readline';
|
|
33
33
|
import '@anthropic-ai/sandbox-runtime';
|
|
34
34
|
import 'expo-server-sdk';
|
|
35
|
-
import './agentGuidance-
|
|
35
|
+
import './agentGuidance-BaplwDcV.mjs';
|
|
36
36
|
import 'ink';
|
|
37
37
|
import 'react';
|
|
38
38
|
import '@anthropic-ai/claude-agent-sdk';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { q as query } from './index-
|
|
1
|
+
import { q as query } from './index-EsR8ayIg.mjs';
|
|
2
2
|
export { AbortError } from '@anthropic-ai/claude-agent-sdk';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'node:os';
|
|
5
5
|
import 'node:crypto';
|
|
6
|
-
import './types-
|
|
6
|
+
import './types-6DrEgHVx.mjs';
|
|
7
7
|
import 'axios';
|
|
8
|
-
import './limits-
|
|
8
|
+
import './limits-Du7S6jqA.mjs';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'node:path';
|
|
@@ -29,7 +29,7 @@ import 'fs';
|
|
|
29
29
|
import 'node:readline';
|
|
30
30
|
import '@anthropic-ai/sandbox-runtime';
|
|
31
31
|
import 'expo-server-sdk';
|
|
32
|
-
import './agentGuidance-
|
|
32
|
+
import './agentGuidance-BaplwDcV.mjs';
|
|
33
33
|
import 'ink';
|
|
34
34
|
import 'react';
|
|
35
35
|
import 'ps-list';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AcpBackend = require('./AcpBackend
|
|
4
|
-
var persistence = require('./limits-
|
|
5
|
-
var AcpSessionManager = require('./AcpSessionManager-
|
|
6
|
-
var api = require('./types-
|
|
7
|
-
var index = require('./index-
|
|
3
|
+
var AcpBackend = require('./AcpBackend-DgG8o4jd.cjs');
|
|
4
|
+
var persistence = require('./limits-XRNzIlVm.cjs');
|
|
5
|
+
var AcpSessionManager = require('./AcpSessionManager-DDFEmhQp.cjs');
|
|
6
|
+
var api = require('./types-CcjVmS2i.cjs');
|
|
7
|
+
var index = require('./index-6Xm0CgN_.cjs');
|
|
8
8
|
var promises = require('node:fs/promises');
|
|
9
9
|
var node_crypto = require('node:crypto');
|
|
10
10
|
var path = require('node:path');
|
|
@@ -33,7 +33,7 @@ require('fs');
|
|
|
33
33
|
require('node:readline');
|
|
34
34
|
require('@anthropic-ai/sandbox-runtime');
|
|
35
35
|
require('expo-server-sdk');
|
|
36
|
-
require('./agentGuidance-
|
|
36
|
+
require('./agentGuidance-BItqIZTf.cjs');
|
|
37
37
|
require('ink');
|
|
38
38
|
require('react');
|
|
39
39
|
require('@anthropic-ai/claude-agent-sdk');
|