very-happy-cli 0.2.131 → 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-DSRZM4lo.mjs → AcpBackend-BQm7dNza.mjs} +2 -2
- package/dist/{AcpBackend-Dv_EKDIQ.cjs → AcpBackend-DgG8o4jd.cjs} +2 -2
- package/dist/{AcpSessionManager-DtXOAeQ0.mjs → AcpSessionManager-C7unPEZO.mjs} +1 -1
- package/dist/{AcpSessionManager-r8SLweP4.cjs → AcpSessionManager-DDFEmhQp.cjs} +1 -1
- package/dist/{agentGuidance-B4bH8Nuz.cjs → agentGuidance-BItqIZTf.cjs} +1 -1
- package/dist/{agentGuidance-CeuhVA2K.mjs → agentGuidance-BaplwDcV.mjs} +1 -1
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-Ur8QEJ0U.mjs → config-BZ8xEnOv.mjs} +4 -4
- package/dist/{config-onxMcdX3.cjs → config-uLywzv5t.cjs} +4 -4
- package/dist/{index-B5Vv72dN.cjs → index-6Xm0CgN_.cjs} +73 -34
- package/dist/{index-BjctcFpG.cjs → index-CdH3ecC5.cjs} +4 -4
- package/dist/{index-CsfUI8Bw.mjs → index-ClCeQ1FW.mjs} +7 -7
- package/dist/{index-BXB-84P_.mjs → index-D8i2EViA.mjs} +4 -4
- package/dist/{index-B1hbB5R7.cjs → index-Daga0ztv.cjs} +6 -6
- package/dist/{index-BPYVCjjs.mjs → index-EsR8ayIg.mjs} +69 -30
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{installTerminalHooks-IaEGKZDR.cjs → installTerminalHooks-CKG0MYVK.cjs} +4 -4
- package/dist/{installTerminalHooks-DLwx6m7I.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-BusZ5sPV.mjs → limits-Du7S6jqA.mjs} +7 -7
- package/dist/{limits-C9bJJEyR.cjs → limits-XRNzIlVm.cjs} +7 -7
- package/dist/{mcp-D4_4kl0R.cjs → mcp-CAMCuudA.cjs} +4 -4
- package/dist/{mcp-CZJM3obK.mjs → mcp-D8zhjyZa.mjs} +4 -4
- package/dist/{runGemini-CRoqO5Mf.cjs → runGemini-BIVHp0ST.cjs} +6 -6
- package/dist/{runGemini-DGHhBbmk.mjs → runGemini-Db4rX54F.mjs} +6 -6
- package/dist/{runOpenClaw-Ca9ygi8M.mjs → runOpenClaw-D2MceXPO.mjs} +5 -5
- package/dist/{runOpenClaw-BzY__v8T.cjs → runOpenClaw-a0f2pZZp.cjs} +5 -5
- package/dist/{send-B1lln_bW.mjs → send-1Wjb0lIh.mjs} +4 -4
- package/dist/{send-CkfdImmJ.cjs → send-DKbumEcg.cjs} +4 -4
- package/dist/{sessions-Cyzh822v.mjs → sessions-DXCCRDb5.mjs} +4 -4
- package/dist/{sessions-D4cvTe7G.cjs → sessions-SIFOOlGp.cjs} +4 -4
- package/dist/{spawn-CdOt7Cv_.mjs → spawn-Bj3W6HR4.mjs} +4 -4
- package/dist/{spawn-ID9-RfTN.cjs → spawn-C-XpSPLX.cjs} +4 -4
- package/dist/{teams-CZ9xg-Rv.cjs → teams-ChFzXAqr.cjs} +4 -4
- package/dist/{teams-Bf2D8dwL.mjs → teams-CqhFQLVC.mjs} +4 -4
- package/dist/{todo-9iv7_n7i.mjs → todo-B0gbQHH8.mjs} +3 -3
- package/dist/{todo-DK3L93BC.cjs → todo-o0clp-_I.cjs} +3 -3
- package/dist/{types-lFZhC_6M.mjs → types-6DrEgHVx.mjs} +6 -1
- package/dist/{types-B20MYc5R.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`,
|
|
@@ -9505,6 +9541,8 @@ function writeReceipt(home, receipt) {
|
|
|
9505
9541
|
const exec = node_util.promisify(node_child_process.execFile);
|
|
9506
9542
|
const git = async (directory, args) => (await exec("git", ["-C", directory, ...args], { timeout: 3e4, maxBuffer: 2 * 1024 * 1024 })).stdout.trim();
|
|
9507
9543
|
async function prepareTeamWorktree(home, repository, id) {
|
|
9544
|
+
if (repository === "~") repository = os.homedir();
|
|
9545
|
+
else if (repository.startsWith("~/") || process.platform === "win32" && repository.startsWith("~\\")) repository = path.join(os.homedir(), repository.slice(2));
|
|
9508
9546
|
if (!path.isAbsolute(repository) || !/^[a-zA-Z0-9_-]{1,128}$/.test(id)) throw new Error("A team task requires an absolute repository path and valid operation id");
|
|
9509
9547
|
await git(repository, ["rev-parse", "--show-toplevel"]);
|
|
9510
9548
|
const root = path.join(home, "teams", "worktrees");
|
|
@@ -10943,6 +10981,7 @@ async function startDaemon() {
|
|
|
10943
10981
|
}
|
|
10944
10982
|
});
|
|
10945
10983
|
apiMachine.setCliUpdateRetryHandler(updateController.retry);
|
|
10984
|
+
apiMachine.setCliUpdateRequestHandler(updateController.request);
|
|
10946
10985
|
const refreshCliUpdate = () => updateController.refresh().catch((error) => {
|
|
10947
10986
|
persistence.logger.debug("[DAEMON RUN] CLI update policy check failed:", error);
|
|
10948
10987
|
});
|
|
@@ -12131,7 +12170,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
12131
12170
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
12132
12171
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
12133
12172
|
const run = deps.run ?? (async (input) => {
|
|
12134
|
-
const { query } = await Promise.resolve().then(function () { return require('./index-
|
|
12173
|
+
const { query } = await Promise.resolve().then(function () { return require('./index-CdH3ecC5.cjs'); });
|
|
12135
12174
|
return runSideQuestion(query, input);
|
|
12136
12175
|
});
|
|
12137
12176
|
const slots = /* @__PURE__ */ new Map();
|
|
@@ -12233,7 +12272,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
12233
12272
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
12234
12273
|
function resolveClaudeBinary() {
|
|
12235
12274
|
try {
|
|
12236
|
-
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)));
|
|
12237
12276
|
const utilsPath = path.resolve(path.join(api.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
12238
12277
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
12239
12278
|
const path$1 = getClaudeCliPath();
|
|
@@ -14451,9 +14490,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
14451
14490
|
};
|
|
14452
14491
|
}
|
|
14453
14492
|
|
|
14454
|
-
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)));
|
|
14455
14494
|
const __dirname$1 = path.dirname(__filename$1);
|
|
14456
|
-
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)));
|
|
14457
14496
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
14458
14497
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
14459
14498
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -17148,7 +17187,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17148
17187
|
process.exit(0);
|
|
17149
17188
|
} else if (subcommand === "install-terminal-hooks") {
|
|
17150
17189
|
try {
|
|
17151
|
-
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'); });
|
|
17152
17191
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
17153
17192
|
if (command.action === "help") {
|
|
17154
17193
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -17165,7 +17204,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17165
17204
|
}
|
|
17166
17205
|
} else if (subcommand === "spawn") {
|
|
17167
17206
|
try {
|
|
17168
|
-
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-
|
|
17207
|
+
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-C-XpSPLX.cjs'); });
|
|
17169
17208
|
await handleSpawnCommand(args.slice(1));
|
|
17170
17209
|
} catch (error) {
|
|
17171
17210
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17177,7 +17216,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17177
17216
|
return;
|
|
17178
17217
|
} else if (subcommand === "sessions") {
|
|
17179
17218
|
try {
|
|
17180
|
-
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-
|
|
17219
|
+
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-SIFOOlGp.cjs'); });
|
|
17181
17220
|
await handleSessionsCommand(args.slice(1));
|
|
17182
17221
|
} catch (error) {
|
|
17183
17222
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17189,7 +17228,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17189
17228
|
return;
|
|
17190
17229
|
} else if (subcommand === "send") {
|
|
17191
17230
|
try {
|
|
17192
|
-
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-
|
|
17231
|
+
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-DKbumEcg.cjs'); });
|
|
17193
17232
|
await handleSendCommand(args.slice(1));
|
|
17194
17233
|
} catch (error) {
|
|
17195
17234
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -17295,9 +17334,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17295
17334
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
17296
17335
|
const projectId = args[3];
|
|
17297
17336
|
try {
|
|
17298
|
-
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17299
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-
|
|
17300
|
-
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; });
|
|
17301
17340
|
let userEmail = void 0;
|
|
17302
17341
|
try {
|
|
17303
17342
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -17328,7 +17367,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17328
17367
|
}
|
|
17329
17368
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
17330
17369
|
try {
|
|
17331
|
-
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
17370
|
+
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-uLywzv5t.cjs'); });
|
|
17332
17371
|
const config = readGeminiLocalConfig();
|
|
17333
17372
|
if (config.googleCloudProject) {
|
|
17334
17373
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -17368,7 +17407,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17368
17407
|
process.exit(0);
|
|
17369
17408
|
}
|
|
17370
17409
|
try {
|
|
17371
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
17410
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-BIVHp0ST.cjs'); });
|
|
17372
17411
|
let startedBy = void 0;
|
|
17373
17412
|
for (let i = 1; i < args.length; i++) {
|
|
17374
17413
|
if (args[i] === "--started-by") {
|
|
@@ -17398,7 +17437,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17398
17437
|
}
|
|
17399
17438
|
};
|
|
17400
17439
|
try {
|
|
17401
|
-
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'); });
|
|
17402
17441
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
17403
17442
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
17404
17443
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -17426,7 +17465,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17426
17465
|
return;
|
|
17427
17466
|
} else if (subcommand === "acp") {
|
|
17428
17467
|
try {
|
|
17429
|
-
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'); });
|
|
17430
17469
|
let startedBy = void 0;
|
|
17431
17470
|
let verbose = false;
|
|
17432
17471
|
const acpArgs = [];
|
|
@@ -17466,7 +17505,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17466
17505
|
return;
|
|
17467
17506
|
} else if (subcommand === "openclaw") {
|
|
17468
17507
|
try {
|
|
17469
|
-
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
17508
|
+
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-a0f2pZZp.cjs'); });
|
|
17470
17509
|
let startedBy = void 0;
|
|
17471
17510
|
let verbose = false;
|
|
17472
17511
|
let gatewayUrl;
|
|
@@ -17517,7 +17556,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17517
17556
|
return;
|
|
17518
17557
|
} else if (subcommand === "todo") {
|
|
17519
17558
|
try {
|
|
17520
|
-
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-
|
|
17559
|
+
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-o0clp-_I.cjs'); });
|
|
17521
17560
|
await handleTodoCommand(args.slice(1));
|
|
17522
17561
|
} catch (error) {
|
|
17523
17562
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -17526,7 +17565,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17526
17565
|
return;
|
|
17527
17566
|
} else if (subcommand === "teams") {
|
|
17528
17567
|
try {
|
|
17529
|
-
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-
|
|
17568
|
+
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-ChFzXAqr.cjs'); });
|
|
17530
17569
|
await handleTeamsCommand(args.slice(1));
|
|
17531
17570
|
} catch (error) {
|
|
17532
17571
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -17535,7 +17574,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
17535
17574
|
return;
|
|
17536
17575
|
} else if (subcommand === "mcp" && args.length === 1) {
|
|
17537
17576
|
try {
|
|
17538
|
-
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-
|
|
17577
|
+
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-CAMCuudA.cjs'); });
|
|
17539
17578
|
await handleMcpCommand();
|
|
17540
17579
|
} catch (error) {
|
|
17541
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');
|