very-happy-cli 0.2.95 → 0.2.97
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-Cuiff4Nu.mjs → AcpBackend-CTUM4dvG.mjs} +1 -1
- package/dist/{AcpBackend-BXsbwTbl.cjs → AcpBackend-DrwdVSeJ.cjs} +1 -1
- package/dist/{AcpSessionManager-BXGmMoe8.cjs → AcpSessionManager-BieE187D.cjs} +1 -1
- package/dist/{AcpSessionManager-BU69q_vR.mjs → AcpSessionManager-BoBuHee3.mjs} +1 -1
- package/dist/{config-BVOE0pni.cjs → config-COq6X7U7.cjs} +3 -3
- package/dist/{config-2GD21yg_.mjs → config-DCH33LOM.mjs} +3 -3
- package/dist/{index-BzbaMrIa.cjs → index-BD2fHJ8o.cjs} +526 -20
- package/dist/{index-DVEdpWq0.mjs → index-Bcgquogx.mjs} +527 -21
- package/dist/{index-DZ0uw6ef.mjs → index-DkhMvofH.mjs} +6 -6
- package/dist/{index-CbPc1iVx.cjs → index-Dn0iOBFd.cjs} +5 -5
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/{installTerminalHooks-FiujjEvb.mjs → installTerminalHooks-DqNtW6a2.mjs} +3 -3
- package/dist/{installTerminalHooks-BrrsyTMd.cjs → installTerminalHooks-H3kpFEZS.cjs} +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +67 -0
- package/dist/lib.d.mts +67 -0
- package/dist/lib.mjs +1 -1
- package/dist/{mcp-0mZcHPtz.mjs → mcp-BKAuzaLX.mjs} +3 -3
- package/dist/{mcp-ziyMk3eS.cjs → mcp-BwNc5eRs.cjs} +3 -3
- package/dist/{runGemini-D_InkOhk.mjs → runGemini-Brp0UmLx.mjs} +5 -5
- package/dist/{runGemini-C91O1oxi.cjs → runGemini-w35qiFBB.cjs} +5 -5
- package/dist/{runOpenClaw-BjebGmV6.mjs → runOpenClaw-BvPRFx-L.mjs} +4 -4
- package/dist/{runOpenClaw-B1RRfA1V.cjs → runOpenClaw-CkHtTCpI.cjs} +4 -4
- package/dist/{send-CxLL0z9J.mjs → send-c-wEmh5U.mjs} +3 -3
- package/dist/{send-DgK6MtgT.cjs → send-tyKG13xt.cjs} +3 -3
- package/dist/{spawn-Dian7x_g.cjs → spawn-xdCsG2RT.cjs} +3 -3
- package/dist/{spawn-uTPD3qOt.mjs → spawn-yS6yY8Xi.mjs} +3 -3
- package/dist/{types-HRuZ13LS.cjs → types-DoGaKVfK.cjs} +88 -11
- package/dist/{types-BLE8Hfmh.mjs → types-xZOYW0_G.mjs} +87 -11
- package/package.json +7 -7
- package/scripts/shims/keychain-off/security +51 -0
|
@@ -1,10 +1,10 @@
|
|
|
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 { h as connectionState, A as ApiClient, i as readSettings, j as encodeBase64, l as logger, p as projectPath } from './types-
|
|
4
|
-
import { A as AcpSessionManager } from './AcpSessionManager-
|
|
1
|
+
import { D as DefaultTransport, A as AcpBackend } from './AcpBackend-CTUM4dvG.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-CTUM4dvG.mjs';
|
|
3
|
+
import { h as connectionState, A as ApiClient, i as readSettings, j as encodeBase64, l as logger, p as projectPath } from './types-xZOYW0_G.mjs';
|
|
4
|
+
import { A as AcpSessionManager } from './AcpSessionManager-BoBuHee3.mjs';
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
6
6
|
import { join } from 'node:path';
|
|
7
|
-
import { i as initialMachineMetadata, d as createSessionMetadata, e as setupOfflineReconnection, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, f as startHappyServer, r as registerKillSessionHandler, B as BasePermissionHandler } from './index-
|
|
7
|
+
import { i as initialMachineMetadata, d as createSessionMetadata, e as setupOfflineReconnection, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, f as startHappyServer, r as registerKillSessionHandler, B as BasePermissionHandler } from './index-Bcgquogx.mjs';
|
|
8
8
|
import 'node:child_process';
|
|
9
9
|
import '@agentclientprotocol/sdk';
|
|
10
10
|
import 'axios';
|
|
@@ -41,10 +41,10 @@ import 'tmp';
|
|
|
41
41
|
import 'open';
|
|
42
42
|
import 'fastify';
|
|
43
43
|
import 'fastify-type-provider-zod';
|
|
44
|
+
import 'node:module';
|
|
44
45
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
45
46
|
import 'node:http';
|
|
46
47
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
47
|
-
import 'node:module';
|
|
48
48
|
import 'http';
|
|
49
49
|
import 'inquirer';
|
|
50
50
|
import 'node:url';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AcpBackend = require('./AcpBackend-
|
|
4
|
-
var persistence = require('./types-
|
|
5
|
-
var AcpSessionManager = require('./AcpSessionManager-
|
|
3
|
+
var AcpBackend = require('./AcpBackend-DrwdVSeJ.cjs');
|
|
4
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
5
|
+
var AcpSessionManager = require('./AcpSessionManager-BieE187D.cjs');
|
|
6
6
|
var node_crypto = require('node:crypto');
|
|
7
7
|
var path = require('node:path');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
9
9
|
require('node:child_process');
|
|
10
10
|
require('@agentclientprotocol/sdk');
|
|
11
11
|
require('axios');
|
|
@@ -42,10 +42,10 @@ require('tmp');
|
|
|
42
42
|
require('open');
|
|
43
43
|
require('fastify');
|
|
44
44
|
require('fastify-type-provider-zod');
|
|
45
|
+
require('node:module');
|
|
45
46
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
46
47
|
require('node:http');
|
|
47
48
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
48
|
-
require('node:module');
|
|
49
49
|
require('http');
|
|
50
50
|
require('inquirer');
|
|
51
51
|
require('node:url');
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('chalk');
|
|
4
|
-
require('./index-
|
|
5
|
-
require('./types-
|
|
4
|
+
require('./index-BD2fHJ8o.cjs');
|
|
5
|
+
require('./types-DoGaKVfK.cjs');
|
|
6
6
|
require('zod');
|
|
7
7
|
require('node:child_process');
|
|
8
8
|
require('node:os');
|
|
@@ -34,11 +34,11 @@ require('tmp');
|
|
|
34
34
|
require('open');
|
|
35
35
|
require('fastify');
|
|
36
36
|
require('fastify-type-provider-zod');
|
|
37
|
+
require('node:module');
|
|
37
38
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
38
39
|
require('node:http');
|
|
39
40
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
40
41
|
require('./limits-KdWKmwtH.cjs');
|
|
41
|
-
require('node:module');
|
|
42
42
|
require('http');
|
|
43
43
|
require('util');
|
|
44
44
|
require('inquirer');
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'chalk';
|
|
2
|
-
import './index-
|
|
3
|
-
import './types-
|
|
2
|
+
import './index-Bcgquogx.mjs';
|
|
3
|
+
import './types-xZOYW0_G.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'node:child_process';
|
|
6
6
|
import 'node:os';
|
|
@@ -32,11 +32,11 @@ import 'tmp';
|
|
|
32
32
|
import 'open';
|
|
33
33
|
import 'fastify';
|
|
34
34
|
import 'fastify-type-provider-zod';
|
|
35
|
+
import 'node:module';
|
|
35
36
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
36
37
|
import 'node:http';
|
|
37
38
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
38
39
|
import './limits-CwFb5S2b.mjs';
|
|
39
|
-
import 'node:module';
|
|
40
40
|
import 'http';
|
|
41
41
|
import 'util';
|
|
42
42
|
import 'inquirer';
|
|
@@ -3,8 +3,8 @@ import { join, resolve } from 'node:path';
|
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
4
|
import { spawnSync } from 'node:child_process';
|
|
5
5
|
import chalk from 'chalk';
|
|
6
|
-
import { p as projectPath } from './types-
|
|
7
|
-
import { t as tmuxSupportsSessionEnv } from './index-
|
|
6
|
+
import { p as projectPath } from './types-xZOYW0_G.mjs';
|
|
7
|
+
import { t as tmuxSupportsSessionEnv } from './index-Bcgquogx.mjs';
|
|
8
8
|
import 'axios';
|
|
9
9
|
import 'node:util';
|
|
10
10
|
import 'node:fs/promises';
|
|
@@ -37,10 +37,10 @@ import 'tmp';
|
|
|
37
37
|
import 'open';
|
|
38
38
|
import 'fastify';
|
|
39
39
|
import 'fastify-type-provider-zod';
|
|
40
|
+
import 'node:module';
|
|
40
41
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
41
42
|
import 'node:http';
|
|
42
43
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
43
|
-
import 'node:module';
|
|
44
44
|
import 'http';
|
|
45
45
|
import 'inquirer';
|
|
46
46
|
import 'node:url';
|
|
@@ -5,8 +5,8 @@ var path = require('node:path');
|
|
|
5
5
|
var os = require('node:os');
|
|
6
6
|
var node_child_process = require('node:child_process');
|
|
7
7
|
var chalk = require('chalk');
|
|
8
|
-
var persistence = require('./types-
|
|
9
|
-
var index = require('./index-
|
|
8
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
9
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
10
10
|
require('axios');
|
|
11
11
|
require('node:util');
|
|
12
12
|
require('node:fs/promises');
|
|
@@ -39,10 +39,10 @@ require('tmp');
|
|
|
39
39
|
require('open');
|
|
40
40
|
require('fastify');
|
|
41
41
|
require('fastify-type-provider-zod');
|
|
42
|
+
require('node:module');
|
|
42
43
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
43
44
|
require('node:http');
|
|
44
45
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
45
|
-
require('node:module');
|
|
46
46
|
require('http');
|
|
47
47
|
require('inquirer');
|
|
48
48
|
require('node:url');
|
package/dist/lib.cjs
CHANGED
package/dist/lib.d.cts
CHANGED
|
@@ -5,6 +5,28 @@ import { EventEmitter } from 'node:events';
|
|
|
5
5
|
import { Socket } from 'socket.io-client';
|
|
6
6
|
import { ExpoPushMessage } from 'expo-server-sdk';
|
|
7
7
|
|
|
8
|
+
declare const CLAUDE_AUTH_PROBE_VERSION: 1;
|
|
9
|
+
type ClaudeAuthStatus = 'ok' | 'not-logged-in' | 'unknown' | 'error' | 'claude-missing';
|
|
10
|
+
type ClaudeAuthDiagnosis = 'keychain-empty-item' | 'store-divergence' | 'no-credentials' | 'sdk-binary-missing' | 'probe-timeout' | 'probe-crash';
|
|
11
|
+
type ClaudeAuthLineage = 'launchd' | 'inherited-env' | 'other';
|
|
12
|
+
type ClaudeCredentialStore = 'auto' | 'file';
|
|
13
|
+
interface ClaudeAuthState$1 {
|
|
14
|
+
probeVersion: typeof CLAUDE_AUTH_PROBE_VERSION;
|
|
15
|
+
daemonPid: number;
|
|
16
|
+
status: ClaudeAuthStatus;
|
|
17
|
+
authMethod?: string;
|
|
18
|
+
subscriptionType?: string;
|
|
19
|
+
diagnosis?: ClaudeAuthDiagnosis;
|
|
20
|
+
detail?: string;
|
|
21
|
+
repairable?: 'delete-empty-keychain-item';
|
|
22
|
+
context: {
|
|
23
|
+
platform: string;
|
|
24
|
+
lineage: ClaudeAuthLineage;
|
|
25
|
+
credentialStore: ClaudeCredentialStore;
|
|
26
|
+
};
|
|
27
|
+
checkedAt: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
8
30
|
declare const sessionTurnEndStatusSchema: z.ZodEnum<{
|
|
9
31
|
completed: "completed";
|
|
10
32
|
failed: "failed";
|
|
@@ -353,8 +375,31 @@ declare const DaemonStateSchema: z$1.ZodObject<{
|
|
|
353
375
|
}>;
|
|
354
376
|
checkedAt: z$1.ZodNumber;
|
|
355
377
|
}, z$1.core.$strip>>;
|
|
378
|
+
claudeAuth: z$1.ZodOptional<z$1.ZodObject<{
|
|
379
|
+
probeVersion: z$1.ZodNumber;
|
|
380
|
+
daemonPid: z$1.ZodNumber;
|
|
381
|
+
status: z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
382
|
+
error: "error";
|
|
383
|
+
unknown: "unknown";
|
|
384
|
+
ok: "ok";
|
|
385
|
+
"not-logged-in": "not-logged-in";
|
|
386
|
+
"claude-missing": "claude-missing";
|
|
387
|
+
}>, z$1.ZodString]>;
|
|
388
|
+
authMethod: z$1.ZodOptional<z$1.ZodString>;
|
|
389
|
+
subscriptionType: z$1.ZodOptional<z$1.ZodString>;
|
|
390
|
+
diagnosis: z$1.ZodOptional<z$1.ZodString>;
|
|
391
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
392
|
+
repairable: z$1.ZodOptional<z$1.ZodString>;
|
|
393
|
+
context: z$1.ZodObject<{
|
|
394
|
+
platform: z$1.ZodString;
|
|
395
|
+
lineage: z$1.ZodString;
|
|
396
|
+
credentialStore: z$1.ZodString;
|
|
397
|
+
}, z$1.core.$strip>;
|
|
398
|
+
checkedAt: z$1.ZodNumber;
|
|
399
|
+
}, z$1.core.$strip>>;
|
|
356
400
|
}, z$1.core.$strip>;
|
|
357
401
|
type DaemonState = z$1.infer<typeof DaemonStateSchema>;
|
|
402
|
+
type ClaudeAuthState = ClaudeAuthState$1;
|
|
358
403
|
type Machine = {
|
|
359
404
|
id: string;
|
|
360
405
|
encryptionKey: Uint8Array;
|
|
@@ -826,6 +871,7 @@ declare class ApiSessionClient extends EventEmitter {
|
|
|
826
871
|
} | {
|
|
827
872
|
type: 'message';
|
|
828
873
|
message: string;
|
|
874
|
+
kind?: string;
|
|
829
875
|
} | {
|
|
830
876
|
type: 'permission-mode-changed';
|
|
831
877
|
mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
|
|
@@ -1108,6 +1154,7 @@ declare class ApiMachineClient {
|
|
|
1108
1154
|
private lastKnownResumeSupport;
|
|
1109
1155
|
private cliUpdateState;
|
|
1110
1156
|
private cliUpdatePushChain;
|
|
1157
|
+
private claudeAuthState;
|
|
1111
1158
|
private rpcHandlerManager;
|
|
1112
1159
|
private resumeSessionHandler;
|
|
1113
1160
|
private restartSessionHandler;
|
|
@@ -1136,6 +1183,26 @@ declare class ApiMachineClient {
|
|
|
1136
1183
|
/** Cache the latest relay policy locally and publish it now or on the next
|
|
1137
1184
|
* socket connect. This makes startup/offline races harmless. */
|
|
1138
1185
|
setCliUpdateState(state: CliUpdateState | null): void;
|
|
1186
|
+
/**
|
|
1187
|
+
* B-276: publish the daemon-context Claude auth preflight into daemonState
|
|
1188
|
+
* (same serialized push chain as the CLI update policy). Resolves true when
|
|
1189
|
+
* the server acknowledged the write with our value in it, false otherwise
|
|
1190
|
+
* (rate-limit `result:'error'` is swallowed by updateDaemonState, so the
|
|
1191
|
+
* caller checks the echoed state and re-sends on the next probe).
|
|
1192
|
+
*/
|
|
1193
|
+
setClaudeAuthState(state: ClaudeAuthState): Promise<boolean>;
|
|
1194
|
+
/** B-276 machine RPCs. Responses always carry `claudeAuth` so the web can refresh in place. */
|
|
1195
|
+
setClaudeAuthHandlers(handlers: {
|
|
1196
|
+
probe: () => Promise<ClaudeAuthState>;
|
|
1197
|
+
repair: (action: string) => Promise<{
|
|
1198
|
+
ok: true;
|
|
1199
|
+
claudeAuth: ClaudeAuthState;
|
|
1200
|
+
} | {
|
|
1201
|
+
error: string;
|
|
1202
|
+
claudeAuth: ClaudeAuthState | null;
|
|
1203
|
+
}>;
|
|
1204
|
+
setStore: (store: 'auto' | 'file') => Promise<ClaudeAuthState>;
|
|
1205
|
+
}): void;
|
|
1139
1206
|
setRPCHandlers({ spawnSession, resumeSession, restartSession, stopSession, listTrackedSessionIds, requestShutdown }: MachineRpcHandlers): void;
|
|
1140
1207
|
private syncRestartSessionRpcRegistration;
|
|
1141
1208
|
private syncResumeSessionRpcRegistration;
|
package/dist/lib.d.mts
CHANGED
|
@@ -5,6 +5,28 @@ import { EventEmitter } from 'node:events';
|
|
|
5
5
|
import { Socket } from 'socket.io-client';
|
|
6
6
|
import { ExpoPushMessage } from 'expo-server-sdk';
|
|
7
7
|
|
|
8
|
+
declare const CLAUDE_AUTH_PROBE_VERSION: 1;
|
|
9
|
+
type ClaudeAuthStatus = 'ok' | 'not-logged-in' | 'unknown' | 'error' | 'claude-missing';
|
|
10
|
+
type ClaudeAuthDiagnosis = 'keychain-empty-item' | 'store-divergence' | 'no-credentials' | 'sdk-binary-missing' | 'probe-timeout' | 'probe-crash';
|
|
11
|
+
type ClaudeAuthLineage = 'launchd' | 'inherited-env' | 'other';
|
|
12
|
+
type ClaudeCredentialStore = 'auto' | 'file';
|
|
13
|
+
interface ClaudeAuthState$1 {
|
|
14
|
+
probeVersion: typeof CLAUDE_AUTH_PROBE_VERSION;
|
|
15
|
+
daemonPid: number;
|
|
16
|
+
status: ClaudeAuthStatus;
|
|
17
|
+
authMethod?: string;
|
|
18
|
+
subscriptionType?: string;
|
|
19
|
+
diagnosis?: ClaudeAuthDiagnosis;
|
|
20
|
+
detail?: string;
|
|
21
|
+
repairable?: 'delete-empty-keychain-item';
|
|
22
|
+
context: {
|
|
23
|
+
platform: string;
|
|
24
|
+
lineage: ClaudeAuthLineage;
|
|
25
|
+
credentialStore: ClaudeCredentialStore;
|
|
26
|
+
};
|
|
27
|
+
checkedAt: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
8
30
|
declare const sessionTurnEndStatusSchema: z.ZodEnum<{
|
|
9
31
|
completed: "completed";
|
|
10
32
|
failed: "failed";
|
|
@@ -353,8 +375,31 @@ declare const DaemonStateSchema: z$1.ZodObject<{
|
|
|
353
375
|
}>;
|
|
354
376
|
checkedAt: z$1.ZodNumber;
|
|
355
377
|
}, z$1.core.$strip>>;
|
|
378
|
+
claudeAuth: z$1.ZodOptional<z$1.ZodObject<{
|
|
379
|
+
probeVersion: z$1.ZodNumber;
|
|
380
|
+
daemonPid: z$1.ZodNumber;
|
|
381
|
+
status: z$1.ZodUnion<readonly [z$1.ZodEnum<{
|
|
382
|
+
error: "error";
|
|
383
|
+
unknown: "unknown";
|
|
384
|
+
ok: "ok";
|
|
385
|
+
"not-logged-in": "not-logged-in";
|
|
386
|
+
"claude-missing": "claude-missing";
|
|
387
|
+
}>, z$1.ZodString]>;
|
|
388
|
+
authMethod: z$1.ZodOptional<z$1.ZodString>;
|
|
389
|
+
subscriptionType: z$1.ZodOptional<z$1.ZodString>;
|
|
390
|
+
diagnosis: z$1.ZodOptional<z$1.ZodString>;
|
|
391
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
392
|
+
repairable: z$1.ZodOptional<z$1.ZodString>;
|
|
393
|
+
context: z$1.ZodObject<{
|
|
394
|
+
platform: z$1.ZodString;
|
|
395
|
+
lineage: z$1.ZodString;
|
|
396
|
+
credentialStore: z$1.ZodString;
|
|
397
|
+
}, z$1.core.$strip>;
|
|
398
|
+
checkedAt: z$1.ZodNumber;
|
|
399
|
+
}, z$1.core.$strip>>;
|
|
356
400
|
}, z$1.core.$strip>;
|
|
357
401
|
type DaemonState = z$1.infer<typeof DaemonStateSchema>;
|
|
402
|
+
type ClaudeAuthState = ClaudeAuthState$1;
|
|
358
403
|
type Machine = {
|
|
359
404
|
id: string;
|
|
360
405
|
encryptionKey: Uint8Array;
|
|
@@ -826,6 +871,7 @@ declare class ApiSessionClient extends EventEmitter {
|
|
|
826
871
|
} | {
|
|
827
872
|
type: 'message';
|
|
828
873
|
message: string;
|
|
874
|
+
kind?: string;
|
|
829
875
|
} | {
|
|
830
876
|
type: 'permission-mode-changed';
|
|
831
877
|
mode: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
|
|
@@ -1108,6 +1154,7 @@ declare class ApiMachineClient {
|
|
|
1108
1154
|
private lastKnownResumeSupport;
|
|
1109
1155
|
private cliUpdateState;
|
|
1110
1156
|
private cliUpdatePushChain;
|
|
1157
|
+
private claudeAuthState;
|
|
1111
1158
|
private rpcHandlerManager;
|
|
1112
1159
|
private resumeSessionHandler;
|
|
1113
1160
|
private restartSessionHandler;
|
|
@@ -1136,6 +1183,26 @@ declare class ApiMachineClient {
|
|
|
1136
1183
|
/** Cache the latest relay policy locally and publish it now or on the next
|
|
1137
1184
|
* socket connect. This makes startup/offline races harmless. */
|
|
1138
1185
|
setCliUpdateState(state: CliUpdateState | null): void;
|
|
1186
|
+
/**
|
|
1187
|
+
* B-276: publish the daemon-context Claude auth preflight into daemonState
|
|
1188
|
+
* (same serialized push chain as the CLI update policy). Resolves true when
|
|
1189
|
+
* the server acknowledged the write with our value in it, false otherwise
|
|
1190
|
+
* (rate-limit `result:'error'` is swallowed by updateDaemonState, so the
|
|
1191
|
+
* caller checks the echoed state and re-sends on the next probe).
|
|
1192
|
+
*/
|
|
1193
|
+
setClaudeAuthState(state: ClaudeAuthState): Promise<boolean>;
|
|
1194
|
+
/** B-276 machine RPCs. Responses always carry `claudeAuth` so the web can refresh in place. */
|
|
1195
|
+
setClaudeAuthHandlers(handlers: {
|
|
1196
|
+
probe: () => Promise<ClaudeAuthState>;
|
|
1197
|
+
repair: (action: string) => Promise<{
|
|
1198
|
+
ok: true;
|
|
1199
|
+
claudeAuth: ClaudeAuthState;
|
|
1200
|
+
} | {
|
|
1201
|
+
error: string;
|
|
1202
|
+
claudeAuth: ClaudeAuthState | null;
|
|
1203
|
+
}>;
|
|
1204
|
+
setStore: (store: 'auto' | 'file') => Promise<ClaudeAuthState>;
|
|
1205
|
+
}): void;
|
|
1139
1206
|
setRPCHandlers({ spawnSession, resumeSession, restartSession, stopSession, listTrackedSessionIds, requestShutdown }: MachineRpcHandlers): void;
|
|
1140
1207
|
private syncRestartSessionRpcRegistration;
|
|
1141
1208
|
private syncResumeSessionRpcRegistration;
|
package/dist/lib.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-xZOYW0_G.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'node:util';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { p as pushClipboardViaDaemon } from './index-
|
|
4
|
+
import { p as pushClipboardViaDaemon } from './index-Bcgquogx.mjs';
|
|
5
5
|
import { C as CLIPBOARD_TOOL_NAME, a as CLIPBOARD_TOOL_TITLE, b as CLIPBOARD_TOOL_DESCRIPTION, c as CLIPBOARD_MAX_BYTES } from './limits-CwFb5S2b.mjs';
|
|
6
|
-
import { l as logger } from './types-
|
|
6
|
+
import { l as logger } from './types-xZOYW0_G.mjs';
|
|
7
7
|
import 'chalk';
|
|
8
8
|
import 'node:os';
|
|
9
9
|
import 'node:crypto';
|
|
@@ -35,9 +35,9 @@ import 'tmp';
|
|
|
35
35
|
import 'open';
|
|
36
36
|
import 'fastify';
|
|
37
37
|
import 'fastify-type-provider-zod';
|
|
38
|
+
import 'node:module';
|
|
38
39
|
import 'node:http';
|
|
39
40
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
40
|
-
import 'node:module';
|
|
41
41
|
import 'http';
|
|
42
42
|
import 'util';
|
|
43
43
|
import 'inquirer';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var mcp_js = require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
4
4
|
var stdio_js = require('@modelcontextprotocol/sdk/server/stdio.js');
|
|
5
5
|
var z = require('zod');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
7
7
|
var limits = require('./limits-KdWKmwtH.cjs');
|
|
8
|
-
var persistence = require('./types-
|
|
8
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('node:os');
|
|
11
11
|
require('node:crypto');
|
|
@@ -37,9 +37,9 @@ require('tmp');
|
|
|
37
37
|
require('open');
|
|
38
38
|
require('fastify');
|
|
39
39
|
require('fastify-type-provider-zod');
|
|
40
|
+
require('node:module');
|
|
40
41
|
require('node:http');
|
|
41
42
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
42
|
-
require('node:module');
|
|
43
43
|
require('http');
|
|
44
44
|
require('util');
|
|
45
45
|
require('inquirer');
|
|
@@ -2,10 +2,10 @@ import { useStdout, useInput, Box, Text, render } from 'ink';
|
|
|
2
2
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
3
3
|
import { randomUUID } from 'node:crypto';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
|
-
import { l as logger, h as connectionState, A as ApiClient, i as readSettings, e as errorLogMetadata, j as encodeBase64, p as projectPath, d as contentLogMetadata } from './types-
|
|
6
|
-
import { g as GEMINI_API_KEY_ENV, j as GOOGLE_API_KEY_ENV, G as GEMINI_MODEL_ENV, B as BasePermissionHandler, k as BaseReasoningProcessor, i as initialMachineMetadata, d as createSessionMetadata, e as setupOfflineReconnection, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, l as MessageBuffer, C as CHANGE_TITLE_INSTRUCTION, r as registerKillSessionHandler, f as startHappyServer } from './index-
|
|
7
|
-
import { A as AcpBackend } from './AcpBackend-
|
|
8
|
-
import { readGeminiLocalConfig, determineGeminiModel, getGeminiModelSource, getInitialGeminiModel, saveGeminiModelToConfig } from './config-
|
|
5
|
+
import { l as logger, h as connectionState, A as ApiClient, i as readSettings, e as errorLogMetadata, j as encodeBase64, p as projectPath, d as contentLogMetadata } from './types-xZOYW0_G.mjs';
|
|
6
|
+
import { g as GEMINI_API_KEY_ENV, j as GOOGLE_API_KEY_ENV, G as GEMINI_MODEL_ENV, B as BasePermissionHandler, k as BaseReasoningProcessor, i as initialMachineMetadata, d as createSessionMetadata, e as setupOfflineReconnection, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, l as MessageBuffer, C as CHANGE_TITLE_INSTRUCTION, r as registerKillSessionHandler, f as startHappyServer } from './index-Bcgquogx.mjs';
|
|
7
|
+
import { A as AcpBackend } from './AcpBackend-CTUM4dvG.mjs';
|
|
8
|
+
import { readGeminiLocalConfig, determineGeminiModel, getGeminiModelSource, getInitialGeminiModel, saveGeminiModelToConfig } from './config-DCH33LOM.mjs';
|
|
9
9
|
import 'axios';
|
|
10
10
|
import 'chalk';
|
|
11
11
|
import 'node:util';
|
|
@@ -39,10 +39,10 @@ import 'tmp';
|
|
|
39
39
|
import 'open';
|
|
40
40
|
import 'fastify';
|
|
41
41
|
import 'fastify-type-provider-zod';
|
|
42
|
+
import 'node:module';
|
|
42
43
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
43
44
|
import 'node:http';
|
|
44
45
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
45
|
-
import 'node:module';
|
|
46
46
|
import 'http';
|
|
47
47
|
import 'inquirer';
|
|
48
48
|
import 'node:url';
|
|
@@ -4,10 +4,10 @@ var ink = require('ink');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
6
|
var path = require('node:path');
|
|
7
|
-
var persistence = require('./types-
|
|
8
|
-
var index = require('./index-
|
|
9
|
-
var AcpBackend = require('./AcpBackend-
|
|
10
|
-
var config = require('./config-
|
|
7
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
8
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
9
|
+
var AcpBackend = require('./AcpBackend-DrwdVSeJ.cjs');
|
|
10
|
+
var config = require('./config-COq6X7U7.cjs');
|
|
11
11
|
require('axios');
|
|
12
12
|
require('chalk');
|
|
13
13
|
require('node:util');
|
|
@@ -41,10 +41,10 @@ require('tmp');
|
|
|
41
41
|
require('open');
|
|
42
42
|
require('fastify');
|
|
43
43
|
require('fastify-type-provider-zod');
|
|
44
|
+
require('node:module');
|
|
44
45
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
45
46
|
require('node:http');
|
|
46
47
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
47
|
-
require('node:module');
|
|
48
48
|
require('http');
|
|
49
49
|
require('inquirer');
|
|
50
50
|
require('node:url');
|
|
@@ -3,9 +3,9 @@ import { execFileSync } from 'node:child_process';
|
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import { existsSync, readFileSync } from 'node:fs';
|
|
5
5
|
import { join } from 'node:path';
|
|
6
|
-
import { k as ensurePrivateDirectorySync, m as hardenPrivateFileSync, w as writePrivateFileSync, e as errorLogMetadata, d as contentLogMetadata, h as connectionState, A as ApiClient, i as readSettings, j as encodeBase64, l as logger, c as configuration } from './types-
|
|
7
|
-
import { A as AcpSessionManager } from './AcpSessionManager-
|
|
8
|
-
import { i as initialMachineMetadata, d as createSessionMetadata, e as setupOfflineReconnection, n as notifyDaemonSessionStarted, M as MessageQueue2, r as registerKillSessionHandler } from './index-
|
|
6
|
+
import { k as ensurePrivateDirectorySync, m as hardenPrivateFileSync, w as writePrivateFileSync, e as errorLogMetadata, d as contentLogMetadata, h as connectionState, A as ApiClient, i as readSettings, j as encodeBase64, l as logger, c as configuration } from './types-xZOYW0_G.mjs';
|
|
7
|
+
import { A as AcpSessionManager } from './AcpSessionManager-BoBuHee3.mjs';
|
|
8
|
+
import { i as initialMachineMetadata, d as createSessionMetadata, e as setupOfflineReconnection, n as notifyDaemonSessionStarted, M as MessageQueue2, r as registerKillSessionHandler } from './index-Bcgquogx.mjs';
|
|
9
9
|
import WebSocket from 'ws';
|
|
10
10
|
import * as ed from '@noble/ed25519';
|
|
11
11
|
import { sha512 } from '@noble/hashes/sha2.js';
|
|
@@ -41,10 +41,10 @@ import 'tmp';
|
|
|
41
41
|
import 'open';
|
|
42
42
|
import 'fastify';
|
|
43
43
|
import 'fastify-type-provider-zod';
|
|
44
|
+
import 'node:module';
|
|
44
45
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
45
46
|
import 'node:http';
|
|
46
47
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
47
|
-
import 'node:module';
|
|
48
48
|
import 'http';
|
|
49
49
|
import 'inquirer';
|
|
50
50
|
import 'node:url';
|
|
@@ -5,9 +5,9 @@ var node_child_process = require('node:child_process');
|
|
|
5
5
|
var os = require('node:os');
|
|
6
6
|
var node_fs = require('node:fs');
|
|
7
7
|
var path = require('node:path');
|
|
8
|
-
var persistence = require('./types-
|
|
9
|
-
var AcpSessionManager = require('./AcpSessionManager-
|
|
10
|
-
var index = require('./index-
|
|
8
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
9
|
+
var AcpSessionManager = require('./AcpSessionManager-BieE187D.cjs');
|
|
10
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
11
11
|
var WebSocket = require('ws');
|
|
12
12
|
var ed = require('@noble/ed25519');
|
|
13
13
|
var sha2_js = require('@noble/hashes/sha2.js');
|
|
@@ -43,10 +43,10 @@ require('tmp');
|
|
|
43
43
|
require('open');
|
|
44
44
|
require('fastify');
|
|
45
45
|
require('fastify-type-provider-zod');
|
|
46
|
+
require('node:module');
|
|
46
47
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
47
48
|
require('node:http');
|
|
48
49
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
49
|
-
require('node:module');
|
|
50
50
|
require('http');
|
|
51
51
|
require('inquirer');
|
|
52
52
|
require('node:url');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { readFileSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
|
-
import { r as readPersistedSessions, c as configuration } from './types-
|
|
5
|
-
import { b as sendUserMessage, a as sessionWebUrl } from './index-
|
|
4
|
+
import { r as readPersistedSessions, c as configuration } from './types-xZOYW0_G.mjs';
|
|
5
|
+
import { b as sendUserMessage, a as sessionWebUrl } from './index-Bcgquogx.mjs';
|
|
6
6
|
import 'axios';
|
|
7
7
|
import 'node:util';
|
|
8
8
|
import 'node:os';
|
|
@@ -37,10 +37,10 @@ import 'tmp';
|
|
|
37
37
|
import 'open';
|
|
38
38
|
import 'fastify';
|
|
39
39
|
import 'fastify-type-provider-zod';
|
|
40
|
+
import 'node:module';
|
|
40
41
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
41
42
|
import 'node:http';
|
|
42
43
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
43
|
-
import 'node:module';
|
|
44
44
|
import 'http';
|
|
45
45
|
import 'inquirer';
|
|
46
46
|
import 'node:url';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var persistence = require('./types-
|
|
7
|
-
var index = require('./index-
|
|
6
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
7
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
8
8
|
require('axios');
|
|
9
9
|
require('node:util');
|
|
10
10
|
require('node:os');
|
|
@@ -39,10 +39,10 @@ require('tmp');
|
|
|
39
39
|
require('open');
|
|
40
40
|
require('fastify');
|
|
41
41
|
require('fastify-type-provider-zod');
|
|
42
|
+
require('node:module');
|
|
42
43
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
43
44
|
require('node:http');
|
|
44
45
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
45
|
-
require('node:module');
|
|
46
46
|
require('http');
|
|
47
47
|
require('inquirer');
|
|
48
48
|
require('node:url');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var node_fs = require('node:fs');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var persistence = require('./types-
|
|
6
|
+
var index = require('./index-BD2fHJ8o.cjs');
|
|
7
|
+
var persistence = require('./types-DoGaKVfK.cjs');
|
|
8
8
|
require('node:os');
|
|
9
9
|
require('node:crypto');
|
|
10
10
|
require('cross-spawn');
|
|
@@ -34,11 +34,11 @@ require('open');
|
|
|
34
34
|
require('fastify');
|
|
35
35
|
require('zod');
|
|
36
36
|
require('fastify-type-provider-zod');
|
|
37
|
+
require('node:module');
|
|
37
38
|
require('@modelcontextprotocol/sdk/server/mcp.js');
|
|
38
39
|
require('node:http');
|
|
39
40
|
require('@modelcontextprotocol/sdk/server/streamableHttp.js');
|
|
40
41
|
require('./limits-KdWKmwtH.cjs');
|
|
41
|
-
require('node:module');
|
|
42
42
|
require('http');
|
|
43
43
|
require('util');
|
|
44
44
|
require('inquirer');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import { readFileSync, statSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
|
-
import { c as checkIfDaemonRunningAndCleanupStaleState, s as spawnDaemonSession, a as sessionWebUrl, w as waitForSessionKey, b as sendUserMessage } from './index-
|
|
5
|
-
import { l as logger } from './types-
|
|
4
|
+
import { c as checkIfDaemonRunningAndCleanupStaleState, s as spawnDaemonSession, a as sessionWebUrl, w as waitForSessionKey, b as sendUserMessage } from './index-Bcgquogx.mjs';
|
|
5
|
+
import { l as logger } from './types-xZOYW0_G.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'node:crypto';
|
|
8
8
|
import 'cross-spawn';
|
|
@@ -32,11 +32,11 @@ import 'open';
|
|
|
32
32
|
import 'fastify';
|
|
33
33
|
import 'zod';
|
|
34
34
|
import 'fastify-type-provider-zod';
|
|
35
|
+
import 'node:module';
|
|
35
36
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
36
37
|
import 'node:http';
|
|
37
38
|
import '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
38
39
|
import './limits-CwFb5S2b.mjs';
|
|
39
|
-
import 'node:module';
|
|
40
40
|
import 'http';
|
|
41
41
|
import 'util';
|
|
42
42
|
import 'inquirer';
|