very-happy-cli 0.2.157 → 0.2.158
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-BymWX-LI.cjs → AcpBackend-DIDRig5G.cjs} +2 -2
- package/dist/{AcpBackend-Cy18U7yw.mjs → AcpBackend-vDVLHuYJ.mjs} +2 -2
- package/dist/{AcpSessionManager-BF7zBGAi.cjs → AcpSessionManager-C44U99CC.cjs} +1 -1
- package/dist/{AcpSessionManager-Ds8rcp95.mjs → AcpSessionManager-CmRjfhn3.mjs} +1 -1
- package/dist/{agentGuidance-CU6YD_Ms.mjs → agentGuidance-CrR9l62U.mjs} +3 -2
- package/dist/{agentGuidance-Db76O1kw.cjs → agentGuidance-DwOWbX55.cjs} +3 -2
- package/dist/{agentHome-BaJ9xtxB.mjs → agentHome-CyLmGH5L.mjs} +2 -2
- package/dist/{agentHome-B0CLy0Qx.cjs → agentHome-Dw8Jx_CJ.cjs} +2 -2
- package/dist/{auto-B1YAwaeU.mjs → auto-BlMZPwOk.mjs} +19 -10
- package/dist/{auto-DqKGFq8U.cjs → auto-DZbNcTXx.cjs} +19 -10
- package/dist/codex/happyMcpStdioBridge.cjs +2 -2
- package/dist/codex/happyMcpStdioBridge.mjs +2 -2
- package/dist/{config-aAbhJllb.mjs → config-BtPArqRH.mjs} +4 -4
- package/dist/{config-CzkBjZnV.cjs → config-DG84bjwF.cjs} +4 -4
- package/dist/{index-C9QzZsUQ.cjs → index-BG932eCh.cjs} +29 -28
- package/dist/{index-BYU1e81k.mjs → index-CVCt3kSt.mjs} +25 -24
- package/dist/{index-Cz-uqnJk.cjs → index-D5ScEErM.cjs} +4 -4
- package/dist/{index-CTbGqVFY.cjs → index-DPCsWlWK.cjs} +7 -7
- package/dist/{index-DQcRkI9r.mjs → index-DgO0FHOx.mjs} +4 -4
- package/dist/{index-BVu8Cufk.mjs → index-ZChGsuB7.mjs} +8 -8
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{install-BuYnqtVa.mjs → install-DarS_Wco.mjs} +1 -1
- package/dist/{install-BMlV0Tnr.cjs → install-wKQGgXvN.cjs} +1 -1
- package/dist/{installTerminalHooks-ELDoqh0A.mjs → installTerminalHooks-CpNbRFPz.mjs} +4 -4
- package/dist/{installTerminalHooks-BVVOEGhG.cjs → installTerminalHooks-DcQfee_O.cjs} +4 -4
- package/dist/lib.cjs +2 -2
- package/dist/lib.mjs +2 -2
- package/dist/{limits-A2c-3M-_.mjs → limits-D2uN090G.mjs} +8 -7
- package/dist/{limits-CyuIt-Vl.cjs → limits-kqFqhfsh.cjs} +8 -7
- package/dist/{mcp-Bo934Kpy.mjs → mcp-BN6bKIGb.mjs} +4 -4
- package/dist/{mcp-CXkvnztT.cjs → mcp-DGdeUUDJ.cjs} +4 -4
- package/dist/{piRuntime-CJjA26oD.cjs → piRuntime-3qtbKujX.cjs} +2 -2
- package/dist/{piRuntime-DdEY2mE9.mjs → piRuntime-bkw2NAZU.mjs} +2 -2
- package/dist/{piTerminal-CpU3hzrX.cjs → piTerminal-BYxp3LMr.cjs} +6 -6
- package/dist/{piTerminal-DwWmgumi.mjs → piTerminal-DilKwM7B.mjs} +6 -6
- package/dist/{runGemini-DS-0qm0L.cjs → runGemini-28O2sqyI.cjs} +6 -6
- package/dist/{runGemini-Cj6oJQ-I.mjs → runGemini-Cjii069p.mjs} +6 -6
- package/dist/{runOpenClaw-CvSm8oTc.cjs → runOpenClaw-CiMZad-H.cjs} +5 -5
- package/dist/{runOpenClaw-DUCQxkI-.mjs → runOpenClaw-jaLr7KF1.mjs} +5 -5
- package/dist/{send-D5CyRyZ_.mjs → send-C9mOtChi.mjs} +2 -2
- package/dist/{send-CHxobaoI.cjs → send-D5ejHPXG.cjs} +2 -2
- package/dist/{sessions-BFlIrKCY.cjs → sessions-BNMPQoLE.cjs} +2 -2
- package/dist/{sessions-DsE01xKc.mjs → sessions-W6771g3X.mjs} +2 -2
- package/dist/{spawn-CdihhwHs.mjs → spawn-D0QVhzRb.mjs} +4 -4
- package/dist/{spawn-HV345RN-.cjs → spawn-Ddtom1cb.cjs} +4 -4
- package/dist/{teams-BahinMnH.cjs → teams-BZ1tayg_.cjs} +5 -5
- package/dist/{teams-BE8nMB6O.mjs → teams-CqSwtw2O.mjs} +5 -5
- package/dist/{todo-CMMQ6yhU.cjs → todo-BYMg0fR0.cjs} +2 -2
- package/dist/{todo-CuQAkSp2.mjs → todo-BbusB1zM.mjs} +2 -2
- package/dist/{types-BrGJ7PJz.mjs → types-DIBF4U0Y.mjs} +2 -2
- package/dist/{types-B0sSi6eM.cjs → types-DnrPeN80.cjs} +2 -2
- package/package.json +7 -7
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var node_child_process = require('node:child_process');
|
|
4
4
|
var sdk = require('@agentclientprotocol/sdk');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var persistence = require('./limits-
|
|
7
|
-
var index = require('./types-
|
|
6
|
+
var persistence = require('./limits-kqFqhfsh.cjs');
|
|
7
|
+
var index = require('./types-DnrPeN80.cjs');
|
|
8
8
|
|
|
9
9
|
function acpImageBlocks(attachments, supportsImages) {
|
|
10
10
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { ndJsonStream, ClientSideConnection } from '@agentclientprotocol/sdk';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
|
-
import { l as logger, F as packageJson, g as delay } from './limits-
|
|
5
|
-
import { j as contentLogMetadata, i as errorLogMetadata } from './types-
|
|
4
|
+
import { l as logger, F as packageJson, g as delay } from './limits-D2uN090G.mjs';
|
|
5
|
+
import { j as contentLogMetadata, i as errorLogMetadata } from './types-DIBF4U0Y.mjs';
|
|
6
6
|
|
|
7
7
|
function acpImageBlocks(attachments, supportsImages) {
|
|
8
8
|
return attachments.filter((file) => ["image/jpeg", "image/png", "image/gif", "image/webp"].includes(file.mimeType)).map((file) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createId } from '@paralleldrive/cuid2';
|
|
2
|
-
import { s as streamKeyOf, e as createEnvelope } from './limits-
|
|
2
|
+
import { s as streamKeyOf, e as createEnvelope } from './limits-D2uN090G.mjs';
|
|
3
3
|
|
|
4
4
|
function turnOptions(turnId, time) {
|
|
5
5
|
return turnId ? { turn: turnId, time } : { time };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
|
-
import { G as normalizeHttpEndpoint, c as configuration, r as readSettings, d as readPersistedSessions, h as readCredentialsForConfiguredRelay, H as AutomationNameSchema, I as AutomationConcurrencySchema, J as AutomationActionSchema, K as AutomationTriggerSchema, w as encodeBase64, L as encrypt, M as decodeBase64, g as delay, N as decrypt, O as listDaemonSessions, n as stopDaemonSession, P as backgroundTasksReport, Q as resumeDaemonSession, i as isValidSessionId, R as listDaemonPeers } from './limits-
|
|
3
|
+
import { G as normalizeHttpEndpoint, c as configuration, r as readSettings, d as readPersistedSessions, h as readCredentialsForConfiguredRelay, H as AutomationNameSchema, I as AutomationConcurrencySchema, J as AutomationActionSchema, K as AutomationTriggerSchema, w as encodeBase64, L as encrypt, M as decodeBase64, g as delay, N as decrypt, O as listDaemonSessions, n as stopDaemonSession, P as backgroundTasksReport, Q as resumeDaemonSession, i as isValidSessionId, R as listDaemonPeers } from './limits-D2uN090G.mjs';
|
|
4
4
|
import { open, mkdir, rename, unlink } from 'node:fs/promises';
|
|
5
5
|
import { constants, existsSync, readFileSync, statSync } from 'node:fs';
|
|
6
6
|
import { isAbsolute, join, dirname, resolve as resolve$1 } from 'node:path';
|
|
@@ -303,7 +303,8 @@ function createAutomationsClient(options) {
|
|
|
303
303
|
}).then((r) => r.runs),
|
|
304
304
|
getRun: (id) => request("GET", `/v1/automations/runs/${enc(id)}`).then((r) => r.run),
|
|
305
305
|
cancel: (id) => request("POST", `/v1/automations/runs/${enc(id)}/cancel`).then((r) => r.run),
|
|
306
|
-
|
|
306
|
+
/** B-508: `by` records what resolved the flag (server default `owner`; older servers ignore the body). */
|
|
307
|
+
ack: (id, by) => request("POST", `/v1/automations/runs/${enc(id)}/ack`, by === void 0 ? void 0 : { by }).then((r) => r.run),
|
|
307
308
|
report: (id, input) => request("POST", `/v1/automations/runs/${enc(id)}/report`, input).then((r) => r.run),
|
|
308
309
|
claim: (input) => request("POST", "/v1/automations/claim", input),
|
|
309
310
|
stickies: (id, key) => request("GET", `/v1/automations/${enc(id)}/stickies`, void 0, { key }).then((r) => r.stickies),
|
|
@@ -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-kqFqhfsh.cjs');
|
|
6
6
|
var promises = require('node:fs/promises');
|
|
7
7
|
var node_fs = require('node:fs');
|
|
8
8
|
var path = require('node:path');
|
|
@@ -305,7 +305,8 @@ function createAutomationsClient(options) {
|
|
|
305
305
|
}).then((r) => r.runs),
|
|
306
306
|
getRun: (id) => request("GET", `/v1/automations/runs/${enc(id)}`).then((r) => r.run),
|
|
307
307
|
cancel: (id) => request("POST", `/v1/automations/runs/${enc(id)}/cancel`).then((r) => r.run),
|
|
308
|
-
|
|
308
|
+
/** B-508: `by` records what resolved the flag (server default `owner`; older servers ignore the body). */
|
|
309
|
+
ack: (id, by) => request("POST", `/v1/automations/runs/${enc(id)}/ack`, by === void 0 ? void 0 : { by }).then((r) => r.run),
|
|
309
310
|
report: (id, input) => request("POST", `/v1/automations/runs/${enc(id)}/report`, input).then((r) => r.run),
|
|
310
311
|
claim: (input) => request("POST", "/v1/automations/claim", input),
|
|
311
312
|
stickies: (id, key) => request("GET", `/v1/automations/${enc(id)}/stickies`, void 0, { key }).then((r) => r.stickies),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
|
-
import { r as readSettings, u as updateSettings } from './limits-
|
|
3
|
+
import { r as readSettings, u as updateSettings } from './limits-D2uN090G.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
|
-
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, b as AGENT_HOME_ENV_NAMES } from './types-
|
|
5
|
+
import { d as describeAgentHome, p as probeLoginShellEnv, r as resolveAgentHomes, e as expandHomePath, b as AGENT_HOME_ENV_NAMES } from './types-DIBF4U0Y.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@paralleldrive/cuid2';
|
|
8
8
|
import 'node:fs/promises';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
|
-
var persistence = require('./limits-
|
|
5
|
+
var persistence = require('./limits-kqFqhfsh.cjs');
|
|
6
6
|
require('node:fs');
|
|
7
|
-
var index = require('./types-
|
|
7
|
+
var index = require('./types-DnrPeN80.cjs');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@paralleldrive/cuid2');
|
|
10
10
|
require('node:fs/promises');
|
|
@@ -2,11 +2,11 @@ import chalk from 'chalk';
|
|
|
2
2
|
import { homedir } from 'node:os';
|
|
3
3
|
import { readFileSync } from 'node:fs';
|
|
4
4
|
import { resolve } from 'node:path';
|
|
5
|
-
import { A as AUTOMATION_NAME_PATTERN, f as isAutomationRunTerminal, c as configuration, g as delay } from './limits-
|
|
6
|
-
import { y as authenticatedAutomationsClient, z as automationRunIdFromEnv, x as sessionWebUrl, A as isAutomationsUnavailable, B as AUTOMATIONS_UNAVAILABLE_MESSAGE } from './agentGuidance-
|
|
7
|
-
import { p as parseDuration, t as triggerFromFlags, d as describeTrigger, a as describeAction, S as SPAWN_AGENTS, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES } from './index-
|
|
8
|
-
import { A as AUTOMATION_SKILL, i as installAutomationSkill } from './install-
|
|
9
|
-
import { parseEnvAssignment } from './spawn-
|
|
5
|
+
import { A as AUTOMATION_NAME_PATTERN, f as isAutomationRunTerminal, c as configuration, g as delay } from './limits-D2uN090G.mjs';
|
|
6
|
+
import { y as authenticatedAutomationsClient, z as automationRunIdFromEnv, x as sessionWebUrl, A as isAutomationsUnavailable, B as AUTOMATIONS_UNAVAILABLE_MESSAGE } from './agentGuidance-CrR9l62U.mjs';
|
|
7
|
+
import { p as parseDuration, t as triggerFromFlags, d as describeTrigger, a as describeAction, S as SPAWN_AGENTS, s as sanitizeSpawnPermissionMode, A as ALLOWED_SPAWN_PERMISSION_MODES } from './index-CVCt3kSt.mjs';
|
|
8
|
+
import { A as AUTOMATION_SKILL, i as installAutomationSkill } from './install-DarS_Wco.mjs';
|
|
9
|
+
import { parseEnvAssignment } from './spawn-D0QVhzRb.mjs';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '@paralleldrive/cuid2';
|
|
12
12
|
import 'node:fs/promises';
|
|
@@ -15,7 +15,7 @@ import 'tweetnacl';
|
|
|
15
15
|
import 'node:util';
|
|
16
16
|
import 'axios';
|
|
17
17
|
import 'socket.io-client';
|
|
18
|
-
import './types-
|
|
18
|
+
import './types-DIBF4U0Y.mjs';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
import 'child_process';
|
|
21
21
|
import 'util';
|
|
@@ -51,7 +51,7 @@ import 'node:readline/promises';
|
|
|
51
51
|
|
|
52
52
|
const AUTO_ACTIONS = ["list", "show", "create", "edit", "pause", "resume", "rm", "run", "fire", "runs", "cancel", "ack", "report", "skill", "install", "uninstall", "help"];
|
|
53
53
|
const VALUE_FLAGS = ["--name", "--rename", "--description", "--machine", "--cron", "--tz", "--every", "--at", "--spawn-dir", "--prompt", "--prompt-file", "--agent", "--model", "--permission-mode", "--sticky-key", "--send-session", "--cwd", "--env", "--timeout", "--concurrency", "--max-runtime", "--payload", "--payload-json", "--payload-file", "--dedupe-key", "--status", "--limit", "--run", "--summary", "--error", "--attention", "--host", "--home"];
|
|
54
|
-
const BOOL_FLAGS = ["--manual", "--script", "--worktree", "--paused", "--wait", "--json", "--apply", "--all-machines", "--attention", "--help", "-h"];
|
|
54
|
+
const BOOL_FLAGS = ["--manual", "--script", "--worktree", "--paused", "--wait", "--json", "--apply", "--all-machines", "--all", "--attention", "--help", "-h"];
|
|
55
55
|
function parseAutoArgs(args) {
|
|
56
56
|
const command = { action: "help", flags: {}, env: [], bools: /* @__PURE__ */ new Set(), argv: [] };
|
|
57
57
|
if (args.length === 0) return command;
|
|
@@ -170,7 +170,7 @@ ${chalk.bold("Usage:")}
|
|
|
170
170
|
very-happy auto fire <name> [--payload\u2026] [--dedupe-key <key>] [--wait [--timeout <dur>]]
|
|
171
171
|
very-happy auto runs [--name <name>] [--status <s>] [--attention] [--limit <n>] [--json]
|
|
172
172
|
very-happy auto runs <runId> [--json]
|
|
173
|
-
very-happy auto cancel <runId> | ack <runId>
|
|
173
|
+
very-happy auto cancel <runId> | ack <runId> | ack --all [--name <name>]
|
|
174
174
|
very-happy auto report [--run <id>] --status done|failed [--summary <text>] [--error <text>] [--attention <reason>]
|
|
175
175
|
very-happy auto skill | install|uninstall --host claude|codex|pi [--home <path>] [--apply]
|
|
176
176
|
|
|
@@ -263,7 +263,7 @@ async function handleAutoCommand(args) {
|
|
|
263
263
|
const needsName = ["show", "edit", "pause", "resume", "rm", "run", "fire"];
|
|
264
264
|
const needsRunId = ["cancel", "ack"];
|
|
265
265
|
if (needsName.includes(command.action) && !command.target) throw new Error(`${command.action} needs an automation name`);
|
|
266
|
-
if (needsRunId.includes(command.action) && !command.target) throw new Error(`${command.action} needs a run id`);
|
|
266
|
+
if (needsRunId.includes(command.action) && !command.target && !(command.action === "ack" && command.bools.has("--all"))) throw new Error(`${command.action} needs a run id (or ack --all)`);
|
|
267
267
|
if (command.action === "create" && !command.flags["--name"]) throw new Error("create needs --name <name>");
|
|
268
268
|
for (const name of [command.flags["--name"], command.flags["--rename"], needsName.includes(command.action) ? command.target : void 0]) {
|
|
269
269
|
if (name !== void 0 && !AUTOMATION_NAME_PATTERN.test(name)) throw new Error(`Invalid automation name "${name}": use [a-z0-9][a-z0-9-_.]{0,63}`);
|
|
@@ -429,7 +429,16 @@ async function handleAutoCommand(args) {
|
|
|
429
429
|
}
|
|
430
430
|
case "cancel":
|
|
431
431
|
case "ack": {
|
|
432
|
-
|
|
432
|
+
if (command.action === "ack" && command.bools.has("--all")) {
|
|
433
|
+
if (command.target) throw new Error("ack --all takes no run id (use --name to limit to one automation)");
|
|
434
|
+
const flagged = await client.runs({ name: command.flags["--name"], attention: true, limit: 200 });
|
|
435
|
+
const runs = [];
|
|
436
|
+
for (const run2 of flagged) runs.push(await client.ack(run2.id, "owner"));
|
|
437
|
+
if (json) console.log(JSON.stringify({ acked: runs.length, runs }));
|
|
438
|
+
else console.log(runs.length === 0 ? "Nothing needs your decision." : `Acknowledged ${runs.length} run(s).`);
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
const run = command.action === "cancel" ? await client.cancel(command.target) : await client.ack(command.target, "owner");
|
|
433
442
|
if (json) console.log(JSON.stringify({ run }));
|
|
434
443
|
else printRun(run);
|
|
435
444
|
return;
|
|
@@ -4,11 +4,11 @@ var chalk = require('chalk');
|
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_fs = require('node:fs');
|
|
6
6
|
var path = require('node:path');
|
|
7
|
-
var persistence = require('./limits-
|
|
8
|
-
var agentGuidance = require('./agentGuidance-
|
|
9
|
-
var index = require('./index-
|
|
10
|
-
var install = require('./install-
|
|
11
|
-
var spawn = require('./spawn-
|
|
7
|
+
var persistence = require('./limits-kqFqhfsh.cjs');
|
|
8
|
+
var agentGuidance = require('./agentGuidance-DwOWbX55.cjs');
|
|
9
|
+
var index = require('./index-BG932eCh.cjs');
|
|
10
|
+
var install = require('./install-wKQGgXvN.cjs');
|
|
11
|
+
var spawn = require('./spawn-Ddtom1cb.cjs');
|
|
12
12
|
require('zod');
|
|
13
13
|
require('@paralleldrive/cuid2');
|
|
14
14
|
require('node:fs/promises');
|
|
@@ -17,7 +17,7 @@ require('tweetnacl');
|
|
|
17
17
|
require('node:util');
|
|
18
18
|
require('axios');
|
|
19
19
|
require('socket.io-client');
|
|
20
|
-
require('./types-
|
|
20
|
+
require('./types-DnrPeN80.cjs');
|
|
21
21
|
require('node:events');
|
|
22
22
|
require('child_process');
|
|
23
23
|
require('util');
|
|
@@ -53,7 +53,7 @@ require('node:readline/promises');
|
|
|
53
53
|
|
|
54
54
|
const AUTO_ACTIONS = ["list", "show", "create", "edit", "pause", "resume", "rm", "run", "fire", "runs", "cancel", "ack", "report", "skill", "install", "uninstall", "help"];
|
|
55
55
|
const VALUE_FLAGS = ["--name", "--rename", "--description", "--machine", "--cron", "--tz", "--every", "--at", "--spawn-dir", "--prompt", "--prompt-file", "--agent", "--model", "--permission-mode", "--sticky-key", "--send-session", "--cwd", "--env", "--timeout", "--concurrency", "--max-runtime", "--payload", "--payload-json", "--payload-file", "--dedupe-key", "--status", "--limit", "--run", "--summary", "--error", "--attention", "--host", "--home"];
|
|
56
|
-
const BOOL_FLAGS = ["--manual", "--script", "--worktree", "--paused", "--wait", "--json", "--apply", "--all-machines", "--attention", "--help", "-h"];
|
|
56
|
+
const BOOL_FLAGS = ["--manual", "--script", "--worktree", "--paused", "--wait", "--json", "--apply", "--all-machines", "--all", "--attention", "--help", "-h"];
|
|
57
57
|
function parseAutoArgs(args) {
|
|
58
58
|
const command = { action: "help", flags: {}, env: [], bools: /* @__PURE__ */ new Set(), argv: [] };
|
|
59
59
|
if (args.length === 0) return command;
|
|
@@ -172,7 +172,7 @@ ${chalk.bold("Usage:")}
|
|
|
172
172
|
very-happy auto fire <name> [--payload\u2026] [--dedupe-key <key>] [--wait [--timeout <dur>]]
|
|
173
173
|
very-happy auto runs [--name <name>] [--status <s>] [--attention] [--limit <n>] [--json]
|
|
174
174
|
very-happy auto runs <runId> [--json]
|
|
175
|
-
very-happy auto cancel <runId> | ack <runId>
|
|
175
|
+
very-happy auto cancel <runId> | ack <runId> | ack --all [--name <name>]
|
|
176
176
|
very-happy auto report [--run <id>] --status done|failed [--summary <text>] [--error <text>] [--attention <reason>]
|
|
177
177
|
very-happy auto skill | install|uninstall --host claude|codex|pi [--home <path>] [--apply]
|
|
178
178
|
|
|
@@ -265,7 +265,7 @@ async function handleAutoCommand(args) {
|
|
|
265
265
|
const needsName = ["show", "edit", "pause", "resume", "rm", "run", "fire"];
|
|
266
266
|
const needsRunId = ["cancel", "ack"];
|
|
267
267
|
if (needsName.includes(command.action) && !command.target) throw new Error(`${command.action} needs an automation name`);
|
|
268
|
-
if (needsRunId.includes(command.action) && !command.target) throw new Error(`${command.action} needs a run id`);
|
|
268
|
+
if (needsRunId.includes(command.action) && !command.target && !(command.action === "ack" && command.bools.has("--all"))) throw new Error(`${command.action} needs a run id (or ack --all)`);
|
|
269
269
|
if (command.action === "create" && !command.flags["--name"]) throw new Error("create needs --name <name>");
|
|
270
270
|
for (const name of [command.flags["--name"], command.flags["--rename"], needsName.includes(command.action) ? command.target : void 0]) {
|
|
271
271
|
if (name !== void 0 && !persistence.AUTOMATION_NAME_PATTERN.test(name)) throw new Error(`Invalid automation name "${name}": use [a-z0-9][a-z0-9-_.]{0,63}`);
|
|
@@ -431,7 +431,16 @@ async function handleAutoCommand(args) {
|
|
|
431
431
|
}
|
|
432
432
|
case "cancel":
|
|
433
433
|
case "ack": {
|
|
434
|
-
|
|
434
|
+
if (command.action === "ack" && command.bools.has("--all")) {
|
|
435
|
+
if (command.target) throw new Error("ack --all takes no run id (use --name to limit to one automation)");
|
|
436
|
+
const flagged = await client.runs({ name: command.flags["--name"], attention: true, limit: 200 });
|
|
437
|
+
const runs = [];
|
|
438
|
+
for (const run2 of flagged) runs.push(await client.ack(run2.id, "owner"));
|
|
439
|
+
if (json) console.log(JSON.stringify({ acked: runs.length, runs }));
|
|
440
|
+
else console.log(runs.length === 0 ? "Nothing needs your decision." : `Acknowledged ${runs.length} run(s).`);
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const run = command.action === "cancel" ? await client.cancel(command.target) : await client.ack(command.target, "owner");
|
|
435
444
|
if (json) console.log(JSON.stringify({ run }));
|
|
436
445
|
else printRun(run);
|
|
437
446
|
return;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var agentGuidance = require('../agentGuidance-
|
|
3
|
+
var agentGuidance = require('../agentGuidance-DwOWbX55.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-kqFqhfsh.cjs');
|
|
10
10
|
require('node:crypto');
|
|
11
11
|
require('node:fs/promises');
|
|
12
12
|
require('node:fs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, r as registerTeamsTools, c as registerAutomationTools, d as registerSessionPeerTools } from '../agentGuidance-
|
|
1
|
+
import { P as PREVIEW_TOOL_NAME, a as PREVIEW_TOOL_TITLE, b as PREVIEW_TOOL_DESCRIPTION, r as registerTeamsTools, c as registerAutomationTools, d as registerSessionPeerTools } from '../agentGuidance-CrR9l62U.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-D2uN090G.mjs';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
import 'node:fs/promises';
|
|
10
10
|
import 'node:fs';
|
|
@@ -2,8 +2,8 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
|
2
2
|
import { join } from 'path';
|
|
3
3
|
import { homedir } from 'os';
|
|
4
4
|
import { execSync } from 'child_process';
|
|
5
|
-
import { l as logger } from './limits-
|
|
6
|
-
import { D as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-
|
|
5
|
+
import { l as logger } from './limits-D2uN090G.mjs';
|
|
6
|
+
import { D as DEFAULT_GEMINI_MODEL, G as GEMINI_MODEL_ENV } from './index-CVCt3kSt.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@paralleldrive/cuid2';
|
|
9
9
|
import 'node:fs/promises';
|
|
@@ -14,7 +14,7 @@ import 'chalk';
|
|
|
14
14
|
import 'node:util';
|
|
15
15
|
import 'node:os';
|
|
16
16
|
import 'node:path';
|
|
17
|
-
import './types-
|
|
17
|
+
import './types-DIBF4U0Y.mjs';
|
|
18
18
|
import 'axios';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
import 'socket.io-client';
|
|
@@ -29,7 +29,7 @@ import 'node-pty';
|
|
|
29
29
|
import 'node:readline';
|
|
30
30
|
import '@anthropic-ai/sandbox-runtime';
|
|
31
31
|
import 'expo-server-sdk';
|
|
32
|
-
import './agentGuidance-
|
|
32
|
+
import './agentGuidance-CrR9l62U.mjs';
|
|
33
33
|
import 'ink';
|
|
34
34
|
import 'react';
|
|
35
35
|
import '@anthropic-ai/claude-agent-sdk';
|
|
@@ -4,8 +4,8 @@ var fs = require('fs');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var os = require('os');
|
|
6
6
|
var child_process = require('child_process');
|
|
7
|
-
var persistence = require('./limits-
|
|
8
|
-
var index = require('./index-
|
|
7
|
+
var persistence = require('./limits-kqFqhfsh.cjs');
|
|
8
|
+
var index = require('./index-BG932eCh.cjs');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@paralleldrive/cuid2');
|
|
11
11
|
require('node:fs/promises');
|
|
@@ -16,7 +16,7 @@ require('chalk');
|
|
|
16
16
|
require('node:util');
|
|
17
17
|
require('node:os');
|
|
18
18
|
require('node:path');
|
|
19
|
-
require('./types-
|
|
19
|
+
require('./types-DnrPeN80.cjs');
|
|
20
20
|
require('axios');
|
|
21
21
|
require('node:events');
|
|
22
22
|
require('socket.io-client');
|
|
@@ -31,7 +31,7 @@ require('node-pty');
|
|
|
31
31
|
require('node:readline');
|
|
32
32
|
require('@anthropic-ai/sandbox-runtime');
|
|
33
33
|
require('expo-server-sdk');
|
|
34
|
-
require('./agentGuidance-
|
|
34
|
+
require('./agentGuidance-DwOWbX55.cjs');
|
|
35
35
|
require('ink');
|
|
36
36
|
require('react');
|
|
37
37
|
require('@anthropic-ai/claude-agent-sdk');
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
|
-
var index = require('./types-
|
|
7
|
-
var persistence = require('./limits-
|
|
6
|
+
var index = require('./types-DnrPeN80.cjs');
|
|
7
|
+
var persistence = require('./limits-kqFqhfsh.cjs');
|
|
8
8
|
var spawn = require('cross-spawn');
|
|
9
9
|
var path = require('node:path');
|
|
10
10
|
var node_readline = require('node:readline');
|
|
11
11
|
var node_fs = require('node:fs');
|
|
12
12
|
var terminalTitleSuggest = require('./terminalTitleSuggest-Dji8I0Jy.cjs');
|
|
13
|
-
var agentGuidance = require('./agentGuidance-
|
|
13
|
+
var agentGuidance = require('./agentGuidance-DwOWbX55.cjs');
|
|
14
14
|
var promises = require('node:fs/promises');
|
|
15
15
|
var fs = require('fs/promises');
|
|
16
16
|
var ink = require('ink');
|
|
@@ -5424,8 +5424,8 @@ ${typeLabels[type] || type}:`));
|
|
|
5424
5424
|
}
|
|
5425
5425
|
console.log(chalk.gray(" An external claude command is only needed for native terminal/mirror use."));
|
|
5426
5426
|
try {
|
|
5427
|
-
const { resolveAgentHomesForCli } = await Promise.resolve().then(function () { return require('./agentHome-
|
|
5428
|
-
const { describeAgentHome } = await Promise.resolve().then(function () { return require('./types-
|
|
5427
|
+
const { resolveAgentHomesForCli } = await Promise.resolve().then(function () { return require('./agentHome-Dw8Jx_CJ.cjs'); });
|
|
5428
|
+
const { describeAgentHome } = await Promise.resolve().then(function () { return require('./types-DnrPeN80.cjs'); }).then(function (n) { return n.index; });
|
|
5429
5429
|
const homes = await resolveAgentHomesForCli();
|
|
5430
5430
|
console.log(chalk.green(`\u2713 Claude config dir: ${describeAgentHome(homes.claudeConfigDir)}`));
|
|
5431
5431
|
console.log(chalk.green(`\u2713 Codex home: ${describeAgentHome(homes.codexHome)}`));
|
|
@@ -8654,7 +8654,7 @@ function parseJsonObject(text) {
|
|
|
8654
8654
|
return null;
|
|
8655
8655
|
}
|
|
8656
8656
|
}
|
|
8657
|
-
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-
|
|
8657
|
+
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-BG932eCh.cjs', document.baseURI).href))).resolve(s)) {
|
|
8658
8658
|
const platformArch = `${platform}-${arch}`;
|
|
8659
8659
|
const candidates = [
|
|
8660
8660
|
`@anthropic-ai/claude-agent-sdk-${platformArch}/claude`,
|
|
@@ -10917,6 +10917,7 @@ ${action.prompt}`, { localId: `automation-${run.id}`, ...meta });
|
|
|
10917
10917
|
for (const item of tracked.values()) {
|
|
10918
10918
|
if (item.sessionId !== sessionId) continue;
|
|
10919
10919
|
if (event === "exited") item.exited = true;
|
|
10920
|
+
if (event === "idle") item.attentionReported = false;
|
|
10920
10921
|
if (event === "blocked" && !item.attentionReported) {
|
|
10921
10922
|
item.attentionReported = true;
|
|
10922
10923
|
void client.report(item.runId, { claimId: item.claimId, needsAttention: true, attentionReason: "needs_input" }).catch(() => deps.log(`Automation run ${item.runId} attention report failed`));
|
|
@@ -13503,7 +13504,7 @@ function registerSideQuestionHandler(rpc, deps) {
|
|
|
13503
13504
|
const retainMs = deps.retainMs ?? SIDE_QUESTION_RETAIN_MS;
|
|
13504
13505
|
const maxRunMs = deps.maxRunMs ?? SIDE_QUESTION_MAX_RUN_MS;
|
|
13505
13506
|
const fork = deps.run ?? (async (input) => {
|
|
13506
|
-
const { query } = await Promise.resolve().then(function () { return require('./index-
|
|
13507
|
+
const { query } = await Promise.resolve().then(function () { return require('./index-D5ScEErM.cjs'); });
|
|
13507
13508
|
return runSideQuestion(query, input);
|
|
13508
13509
|
});
|
|
13509
13510
|
const run = async (input, live) => {
|
|
@@ -13622,7 +13623,7 @@ const MAX_TITLE_CHARS = 60;
|
|
|
13622
13623
|
const GENERATION_TIMEOUT_MS = 3e4;
|
|
13623
13624
|
function resolveClaudeBinary() {
|
|
13624
13625
|
try {
|
|
13625
|
-
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-
|
|
13626
|
+
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-BG932eCh.cjs', document.baseURI).href)));
|
|
13626
13627
|
const utilsPath = path.resolve(path.join(terminalTitleSuggest.projectPath(), "scripts", "claude_version_utils.cjs"));
|
|
13627
13628
|
const { getClaudeCliPath } = require$1(utilsPath);
|
|
13628
13629
|
const path$1 = getClaudeCliPath();
|
|
@@ -15866,9 +15867,9 @@ function resolveLocalSignupBootstrap(configuredMode, configuredInviteCodes, gene
|
|
|
15866
15867
|
};
|
|
15867
15868
|
}
|
|
15868
15869
|
|
|
15869
|
-
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-
|
|
15870
|
+
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-BG932eCh.cjs', document.baseURI).href)));
|
|
15870
15871
|
const __dirname$1 = path.dirname(__filename$1);
|
|
15871
|
-
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
15872
|
+
const require_ = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-BG932eCh.cjs', document.baseURI).href)));
|
|
15872
15873
|
const PRISMA_QUERY_ENGINE_FILES = {
|
|
15873
15874
|
"arm64-darwin": "libquery_engine-darwin-arm64.dylib.node",
|
|
15874
15875
|
"x64-darwin": "libquery_engine-darwin.dylib.node",
|
|
@@ -18811,7 +18812,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18811
18812
|
return;
|
|
18812
18813
|
} else if (subcommand === "install-terminal-hooks") {
|
|
18813
18814
|
try {
|
|
18814
|
-
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-
|
|
18815
|
+
const { installTerminalHooks, parseTerminalHooksArgs, TERMINAL_HOOKS_HELP } = await Promise.resolve().then(function () { return require('./installTerminalHooks-DcQfee_O.cjs'); });
|
|
18815
18816
|
const command = parseTerminalHooksArgs(args.slice(1));
|
|
18816
18817
|
if (command.action === "help") {
|
|
18817
18818
|
console.log(TERMINAL_HOOKS_HELP);
|
|
@@ -18828,7 +18829,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18828
18829
|
}
|
|
18829
18830
|
} else if (subcommand === "agent-home") {
|
|
18830
18831
|
try {
|
|
18831
|
-
const { parseAgentHomeArgs, runAgentHomeCommand } = await Promise.resolve().then(function () { return require('./agentHome-
|
|
18832
|
+
const { parseAgentHomeArgs, runAgentHomeCommand } = await Promise.resolve().then(function () { return require('./agentHome-Dw8Jx_CJ.cjs'); });
|
|
18832
18833
|
await runAgentHomeCommand(parseAgentHomeArgs(args.slice(1)));
|
|
18833
18834
|
process.exit(0);
|
|
18834
18835
|
} catch (error) {
|
|
@@ -18837,7 +18838,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18837
18838
|
}
|
|
18838
18839
|
} else if (subcommand === "spawn") {
|
|
18839
18840
|
try {
|
|
18840
|
-
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-
|
|
18841
|
+
const { handleSpawnCommand } = await Promise.resolve().then(function () { return require('./spawn-Ddtom1cb.cjs'); });
|
|
18841
18842
|
await handleSpawnCommand(args.slice(1));
|
|
18842
18843
|
} catch (error) {
|
|
18843
18844
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -18849,7 +18850,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18849
18850
|
return;
|
|
18850
18851
|
} else if (subcommand === "sessions") {
|
|
18851
18852
|
try {
|
|
18852
|
-
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-
|
|
18853
|
+
const { handleSessionsCommand } = await Promise.resolve().then(function () { return require('./sessions-BNMPQoLE.cjs'); });
|
|
18853
18854
|
await handleSessionsCommand(args.slice(1));
|
|
18854
18855
|
} catch (error) {
|
|
18855
18856
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -18861,7 +18862,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18861
18862
|
return;
|
|
18862
18863
|
} else if (subcommand === "send") {
|
|
18863
18864
|
try {
|
|
18864
|
-
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-
|
|
18865
|
+
const { handleSendCommand } = await Promise.resolve().then(function () { return require('./send-D5ejHPXG.cjs'); });
|
|
18865
18866
|
await handleSendCommand(args.slice(1));
|
|
18866
18867
|
} catch (error) {
|
|
18867
18868
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -18967,9 +18968,9 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
18967
18968
|
if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
|
|
18968
18969
|
const projectId = args[3];
|
|
18969
18970
|
try {
|
|
18970
|
-
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
18971
|
-
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-
|
|
18972
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-
|
|
18971
|
+
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./config-DG84bjwF.cjs'); });
|
|
18972
|
+
const { readCredentialsForConfiguredRelay: readCredentialsForConfiguredRelay2 } = await Promise.resolve().then(function () { return require('./limits-kqFqhfsh.cjs'); }).then(function (n) { return n.persistence; });
|
|
18973
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-DnrPeN80.cjs'); }).then(function (n) { return n.api; });
|
|
18973
18974
|
let userEmail = void 0;
|
|
18974
18975
|
try {
|
|
18975
18976
|
const credentials = await readCredentialsForConfiguredRelay2();
|
|
@@ -19000,7 +19001,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19000
19001
|
}
|
|
19001
19002
|
if (geminiSubcommand === "project" && args[2] === "get") {
|
|
19002
19003
|
try {
|
|
19003
|
-
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-
|
|
19004
|
+
const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./config-DG84bjwF.cjs'); });
|
|
19004
19005
|
const config = readGeminiLocalConfig();
|
|
19005
19006
|
if (config.googleCloudProject) {
|
|
19006
19007
|
console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
|
|
@@ -19040,7 +19041,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19040
19041
|
process.exit(0);
|
|
19041
19042
|
}
|
|
19042
19043
|
try {
|
|
19043
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
19044
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-28O2sqyI.cjs'); });
|
|
19044
19045
|
let startedBy = void 0;
|
|
19045
19046
|
for (let i = 1; i < args.length; i++) {
|
|
19046
19047
|
if (args[i] === "--started-by") {
|
|
@@ -19063,7 +19064,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19063
19064
|
} else if (subcommand === "pi") {
|
|
19064
19065
|
if (args[1] === "--terminal") {
|
|
19065
19066
|
try {
|
|
19066
|
-
const { runPiTerminal } = await Promise.resolve().then(function () { return require('./piTerminal-
|
|
19067
|
+
const { runPiTerminal } = await Promise.resolve().then(function () { return require('./piTerminal-BYxp3LMr.cjs'); });
|
|
19067
19068
|
process.exitCode = await runPiTerminal(args.slice(2));
|
|
19068
19069
|
} catch (error) {
|
|
19069
19070
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Unknown error");
|
|
@@ -19080,7 +19081,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19080
19081
|
}
|
|
19081
19082
|
};
|
|
19082
19083
|
try {
|
|
19083
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
19084
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-DPCsWlWK.cjs'); });
|
|
19084
19085
|
const parsed = parsePiRunnerArgs(args.slice(1));
|
|
19085
19086
|
const resolved = resolveAcpAgentConfig(["pi", ...parsed.passthrough]);
|
|
19086
19087
|
const { credentials } = await authAndSetupMachineIfNeeded();
|
|
@@ -19108,7 +19109,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19108
19109
|
return;
|
|
19109
19110
|
} else if (subcommand === "acp") {
|
|
19110
19111
|
try {
|
|
19111
|
-
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-
|
|
19112
|
+
const { runAcp, resolveAcpAgentConfig } = await Promise.resolve().then(function () { return require('./index-DPCsWlWK.cjs'); });
|
|
19112
19113
|
let startedBy = void 0;
|
|
19113
19114
|
let verbose = false;
|
|
19114
19115
|
const acpArgs = [];
|
|
@@ -19148,7 +19149,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19148
19149
|
return;
|
|
19149
19150
|
} else if (subcommand === "openclaw") {
|
|
19150
19151
|
try {
|
|
19151
|
-
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-
|
|
19152
|
+
const { runOpenClaw } = await Promise.resolve().then(function () { return require('./runOpenClaw-CiMZad-H.cjs'); });
|
|
19152
19153
|
let startedBy = void 0;
|
|
19153
19154
|
let verbose = false;
|
|
19154
19155
|
let gatewayUrl;
|
|
@@ -19199,7 +19200,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19199
19200
|
return;
|
|
19200
19201
|
} else if (subcommand === "todo") {
|
|
19201
19202
|
try {
|
|
19202
|
-
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-
|
|
19203
|
+
const { handleTodoCommand } = await Promise.resolve().then(function () { return require('./todo-BYMg0fR0.cjs'); });
|
|
19203
19204
|
await handleTodoCommand(args.slice(1));
|
|
19204
19205
|
} catch (error) {
|
|
19205
19206
|
console.error(JSON.stringify({ error: error instanceof Error ? error.message : "Todo command failed" }));
|
|
@@ -19208,7 +19209,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19208
19209
|
return;
|
|
19209
19210
|
} else if (subcommand === "teams") {
|
|
19210
19211
|
try {
|
|
19211
|
-
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-
|
|
19212
|
+
const { handleTeamsCommand } = await Promise.resolve().then(function () { return require('./teams-BZ1tayg_.cjs'); });
|
|
19212
19213
|
await handleTeamsCommand(args.slice(1));
|
|
19213
19214
|
} catch (error) {
|
|
19214
19215
|
console.error(error instanceof Error ? error.message : "Teams command failed");
|
|
@@ -19217,7 +19218,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19217
19218
|
return;
|
|
19218
19219
|
} else if (subcommand === "auto") {
|
|
19219
19220
|
try {
|
|
19220
|
-
const { handleAutoCommand } = await Promise.resolve().then(function () { return require('./auto-
|
|
19221
|
+
const { handleAutoCommand } = await Promise.resolve().then(function () { return require('./auto-DZbNcTXx.cjs'); });
|
|
19221
19222
|
await handleAutoCommand(args.slice(1));
|
|
19222
19223
|
} catch (error) {
|
|
19223
19224
|
console.error(chalk.red("Error:"), error instanceof Error ? error.message : "Automation command failed");
|
|
@@ -19229,7 +19230,7 @@ Conversation history is preserved on the server, but in-flight tool calls are in
|
|
|
19229
19230
|
return;
|
|
19230
19231
|
} else if (subcommand === "mcp" && (args.length === 1 || args.length === 2 && args[1] === "--terminal-tools")) {
|
|
19231
19232
|
try {
|
|
19232
|
-
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-
|
|
19233
|
+
const { handleMcpCommand } = await Promise.resolve().then(function () { return require('./mcp-DGdeUUDJ.cjs'); });
|
|
19233
19234
|
await handleMcpCommand(args[1] === "--terminal-tools");
|
|
19234
19235
|
} catch (error) {
|
|
19235
19236
|
process.stderr.write(`[very-happy mcp] Fatal: ${error instanceof Error ? error.message : String(error)}
|