happy-imou-cloud 2.1.0 → 2.1.2
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/bin/happy-cloud.mjs +4 -0
- package/compat/acp-sdk-schema/index.js +28 -0
- package/compat/acp-sdk-schema/types.gen.js +3 -0
- package/compat/acp-sdk-schema/zod.gen.js +1554 -0
- package/compat/ink-build/components/Cursor.d.ts +83 -0
- package/compat/ink-build/components/Cursor.js +53 -0
- package/compat/ink-build/components/CursorContext.d.ts +11 -0
- package/compat/ink-build/components/CursorContext.js +8 -0
- package/compat/ink-build/components/ErrorBoundary.d.ts +18 -0
- package/compat/ink-build/components/ErrorBoundary.js +23 -0
- package/compat/ink-build/hooks/use-cursor.d.ts +12 -0
- package/compat/ink-build/hooks/use-cursor.js +29 -0
- package/dist/{BaseReasoningProcessor-DQkzwRuf.mjs → BaseReasoningProcessor-BaOWkVcu.mjs} +3 -3
- package/dist/{BaseReasoningProcessor-C9mH8EVn.cjs → BaseReasoningProcessor-CzvqwxuY.cjs} +3 -3
- package/dist/{ProviderSelectionHandler-BlrrLPlo.mjs → ProviderSelectionHandler-Q8pl7e-d.mjs} +2 -2
- package/dist/{ProviderSelectionHandler-5Dedbm8j.cjs → ProviderSelectionHandler-wwbfeK_s.cjs} +2 -2
- package/dist/{api-w_CUxb9Q.mjs → api-Cxifhw5r.mjs} +4 -3
- package/dist/{api-Bd-MnOS4.cjs → api-DZimmN4C.cjs} +4 -3
- package/dist/{command-mTWwCqTY.mjs → command-B6LM3Nml.mjs} +3 -3
- package/dist/{command-DoDmHNxR.cjs → command-RcCJI1jl.cjs} +3 -3
- package/dist/{index-BQmJ4NAa.cjs → index-Cuvs0lFS.cjs} +11 -11
- package/dist/{index-GuXV-pxB.mjs → index-Des7I5WX.mjs} +8 -8
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.cts +82 -81
- package/dist/lib.d.mts +82 -81
- package/dist/lib.mjs +1 -1
- package/dist/{persistence-MSy70is3.mjs → persistence-6d4U4Sh8.mjs} +1 -1
- package/dist/{persistence-BL06LLVz.cjs → persistence-C8-MtdQK.cjs} +1 -1
- package/dist/{registerKillSessionHandler-CjWfUfc3.mjs → registerKillSessionHandler-BFBkz_XT.mjs} +3 -3
- package/dist/{registerKillSessionHandler-D9kwxy6B.cjs → registerKillSessionHandler-BapPCRmp.cjs} +3 -3
- package/dist/{runClaude-DpZ95Twb.mjs → runClaude-CPV5Uap2.mjs} +34 -5
- package/dist/{runClaude-D2ZEXue8.cjs → runClaude-DVnqKa1q.cjs} +34 -5
- package/dist/{runCodex-Dz_1ho8d.cjs → runCodex-Bzsp8gFO.cjs} +26 -18
- package/dist/{runCodex-CJwaep2R.mjs → runCodex-CwtLSTMJ.mjs} +26 -18
- package/dist/{runGemini-Dfu6LltX.cjs → runGemini-6Dwyk_Km.cjs} +83 -17
- package/dist/{runGemini-BehqjM73.mjs → runGemini-Bmoxehlh.mjs} +83 -17
- package/package.json +3 -2
- package/scripts/build.mjs +2 -0
- package/scripts/devtools/README.md +9 -9
- package/scripts/e2e/fake-codex-acp-agent.mjs +139 -139
- package/scripts/e2e/local-server-session-roundtrip.mjs +1063 -1063
- package/scripts/ensureAcpSdkCompat.mjs +171 -0
- package/scripts/release-smoke.mjs +14 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React, { type RefObject } from 'react';
|
|
2
|
+
import { type DOMElement, type CursorAnchorMode } from '../dom.js';
|
|
3
|
+
export type Props = {
|
|
4
|
+
/**
|
|
5
|
+
Optional reference to anchor cursor coordinates to a different element.
|
|
6
|
+
|
|
7
|
+
By default, `anchorRef` uses `anchor="textEnd"` behavior to follow the rendered end of that element's text, including wrapping and wide characters.
|
|
8
|
+
|
|
9
|
+
Use this for inputs where the cursor should stay at the visible end of text.
|
|
10
|
+
|
|
11
|
+
If `anchorRef` is set but currently unresolved, Ink hides the cursor for that frame unless `anchor="flow"` is used.
|
|
12
|
+
|
|
13
|
+
If multiple `<Cursor>` components are rendered in one frame, the last rendered one controls terminal cursor position.
|
|
14
|
+
*/
|
|
15
|
+
readonly anchorRef?: RefObject<DOMElement | null>;
|
|
16
|
+
/**
|
|
17
|
+
Anchor mode used to resolve cursor coordinates.
|
|
18
|
+
|
|
19
|
+
- `'flow'`: Anchor to `<Cursor />` position in layout flow.
|
|
20
|
+
Use this when you place `<Cursor />` exactly where it should appear.
|
|
21
|
+
|
|
22
|
+
- `'origin'`: Anchor to content origin (top-left) of `anchorRef` or parent when no `anchorRef` is provided.
|
|
23
|
+
Use this for manual `x/y` positioning.
|
|
24
|
+
|
|
25
|
+
- `'textEnd'`: Anchor to rendered end of text for `anchorRef` or parent when no `anchorRef` is provided.
|
|
26
|
+
Use this when cursor should follow wrapped text.
|
|
27
|
+
|
|
28
|
+
Defaults to `'flow'` when `anchorRef` is omitted and `'textEnd'` when `anchorRef` is provided.
|
|
29
|
+
|
|
30
|
+
`'flow'` is the default without `anchorRef` to avoid coupling cursor position to surrounding sibling text changes.
|
|
31
|
+
*/
|
|
32
|
+
readonly anchor?: CursorAnchorMode;
|
|
33
|
+
/**
|
|
34
|
+
Horizontal offset from resolved anchor position.
|
|
35
|
+
*/
|
|
36
|
+
readonly x?: number;
|
|
37
|
+
/**
|
|
38
|
+
Vertical offset from resolved anchor position.
|
|
39
|
+
*/
|
|
40
|
+
readonly y?: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
Declaratively position the terminal cursor relative to a container.
|
|
44
|
+
|
|
45
|
+
Use this component when building reusable inputs where absolute root coordinates are inconvenient.
|
|
46
|
+
|
|
47
|
+
`<Cursor>` must not be rendered inside `<Text>`.
|
|
48
|
+
|
|
49
|
+
@example
|
|
50
|
+
```jsx
|
|
51
|
+
import {Box, Cursor, Text} from 'ink';
|
|
52
|
+
import {useRef} from 'react';
|
|
53
|
+
|
|
54
|
+
const prompt = '> ';
|
|
55
|
+
const value = 'hello';
|
|
56
|
+
|
|
57
|
+
const Example = () => {
|
|
58
|
+
return (
|
|
59
|
+
<Box flexDirection="row">
|
|
60
|
+
<Text>{prompt}</Text>
|
|
61
|
+
<Text>{value}</Text>
|
|
62
|
+
<Cursor />
|
|
63
|
+
</Box>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```jsx
|
|
69
|
+
const ExampleWithAnchor = () => {
|
|
70
|
+
const lineReference = useRef();
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<Box flexDirection="column">
|
|
74
|
+
<Box ref={lineReference}>
|
|
75
|
+
<Text>{`${prompt}${value}`}</Text>
|
|
76
|
+
</Box>
|
|
77
|
+
<Cursor anchorRef={lineReference} />
|
|
78
|
+
</Box>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
```
|
|
82
|
+
*/
|
|
83
|
+
export default function Cursor({ anchorRef, anchor, x, y }: Props): React.JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
Declaratively position the terminal cursor relative to a container.
|
|
4
|
+
|
|
5
|
+
Use this component when building reusable inputs where absolute root coordinates are inconvenient.
|
|
6
|
+
|
|
7
|
+
`<Cursor>` must not be rendered inside `<Text>`.
|
|
8
|
+
|
|
9
|
+
@example
|
|
10
|
+
```jsx
|
|
11
|
+
import {Box, Cursor, Text} from 'ink';
|
|
12
|
+
import {useRef} from 'react';
|
|
13
|
+
|
|
14
|
+
const prompt = '> ';
|
|
15
|
+
const value = 'hello';
|
|
16
|
+
|
|
17
|
+
const Example = () => {
|
|
18
|
+
return (
|
|
19
|
+
<Box flexDirection="row">
|
|
20
|
+
<Text>{prompt}</Text>
|
|
21
|
+
<Text>{value}</Text>
|
|
22
|
+
<Cursor />
|
|
23
|
+
</Box>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```jsx
|
|
29
|
+
const ExampleWithAnchor = () => {
|
|
30
|
+
const lineReference = useRef();
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Box flexDirection="column">
|
|
34
|
+
<Box ref={lineReference}>
|
|
35
|
+
<Text>{`${prompt}${value}`}</Text>
|
|
36
|
+
</Box>
|
|
37
|
+
<Cursor anchorRef={lineReference} />
|
|
38
|
+
</Box>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export default function Cursor({ anchorRef, anchor, x = 0, y = 0 }) {
|
|
44
|
+
const normalizedAnchorReference = anchorRef ?? undefined;
|
|
45
|
+
const normalizedAnchor = anchor ?? (normalizedAnchorReference ? 'textEnd' : 'flow');
|
|
46
|
+
return (React.createElement("ink-cursor", { internal_cursor: {
|
|
47
|
+
anchorRef: normalizedAnchorReference,
|
|
48
|
+
anchor: normalizedAnchor,
|
|
49
|
+
x,
|
|
50
|
+
y,
|
|
51
|
+
} }));
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=Cursor.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type CursorPosition } from '../log-update.js';
|
|
2
|
+
export type Props = {
|
|
3
|
+
/**
|
|
4
|
+
Set the cursor position relative to the Ink output.
|
|
5
|
+
|
|
6
|
+
Pass `undefined` to hide the cursor.
|
|
7
|
+
*/
|
|
8
|
+
readonly setCursorPosition: (position: CursorPosition | undefined) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const CursorContext: import("react").Context<Props>;
|
|
11
|
+
export default CursorContext;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3
|
+
const CursorContext = createContext({
|
|
4
|
+
setCursorPosition() { },
|
|
5
|
+
});
|
|
6
|
+
CursorContext.displayName = 'InternalCursorContext';
|
|
7
|
+
export default CursorContext;
|
|
8
|
+
//# sourceMappingURL=CursorContext.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { PureComponent, type ReactNode } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
readonly children: ReactNode;
|
|
4
|
+
readonly onError: (error: Error) => void;
|
|
5
|
+
};
|
|
6
|
+
type State = {
|
|
7
|
+
readonly error?: Error;
|
|
8
|
+
};
|
|
9
|
+
export default class ErrorBoundary extends PureComponent<Props, State> {
|
|
10
|
+
static displayName: string;
|
|
11
|
+
static getDerivedStateFromError(error: Error): {
|
|
12
|
+
error: Error;
|
|
13
|
+
};
|
|
14
|
+
state: State;
|
|
15
|
+
componentDidCatch(error: Error): void;
|
|
16
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import ErrorOverview from './ErrorOverview.js';
|
|
3
|
+
// Error boundary must be a class component since getDerivedStateFromError
|
|
4
|
+
// and componentDidCatch are not available as hooks
|
|
5
|
+
export default class ErrorBoundary extends PureComponent {
|
|
6
|
+
static displayName = 'InternalErrorBoundary';
|
|
7
|
+
static getDerivedStateFromError(error) {
|
|
8
|
+
return { error };
|
|
9
|
+
}
|
|
10
|
+
state = {
|
|
11
|
+
error: undefined,
|
|
12
|
+
};
|
|
13
|
+
componentDidCatch(error) {
|
|
14
|
+
this.props.onError(error);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
if (this.state.error) {
|
|
18
|
+
return React.createElement(ErrorOverview, { error: this.state.error });
|
|
19
|
+
}
|
|
20
|
+
return this.props.children;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CursorPosition } from '../log-update.js';
|
|
2
|
+
/**
|
|
3
|
+
`useCursor` is a React hook that lets you control the terminal cursor position.
|
|
4
|
+
|
|
5
|
+
Setting a cursor position makes the cursor visible at the specified coordinates (relative to the Ink output origin). This is useful for IME (Input Method Editor) support, where the composing character is displayed at the cursor location.
|
|
6
|
+
|
|
7
|
+
Pass `undefined` to hide the cursor.
|
|
8
|
+
*/
|
|
9
|
+
declare const useCursor: () => {
|
|
10
|
+
setCursorPosition: (position: CursorPosition | undefined) => void;
|
|
11
|
+
};
|
|
12
|
+
export default useCursor;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useContext, useRef, useCallback, useInsertionEffect } from 'react';
|
|
2
|
+
import CursorContext from '../components/CursorContext.js';
|
|
3
|
+
/**
|
|
4
|
+
`useCursor` is a React hook that lets you control the terminal cursor position.
|
|
5
|
+
|
|
6
|
+
Setting a cursor position makes the cursor visible at the specified coordinates (relative to the Ink output origin). This is useful for IME (Input Method Editor) support, where the composing character is displayed at the cursor location.
|
|
7
|
+
|
|
8
|
+
Pass `undefined` to hide the cursor.
|
|
9
|
+
*/
|
|
10
|
+
const useCursor = () => {
|
|
11
|
+
const context = useContext(CursorContext);
|
|
12
|
+
const positionRef = useRef(undefined);
|
|
13
|
+
const setCursorPosition = useCallback((position) => {
|
|
14
|
+
positionRef.current = position;
|
|
15
|
+
}, []);
|
|
16
|
+
// Propagate cursor position to log-update only during commit phase.
|
|
17
|
+
// useInsertionEffect runs before resetAfterCommit (which triggers onRender),
|
|
18
|
+
// and does NOT run for abandoned concurrent renders (e.g. suspended components).
|
|
19
|
+
// This prevents cursor state from leaking across render boundaries.
|
|
20
|
+
useInsertionEffect(() => {
|
|
21
|
+
context.setCursorPosition(positionRef.current);
|
|
22
|
+
return () => {
|
|
23
|
+
context.setCursorPosition(undefined);
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
return { setCursorPosition };
|
|
27
|
+
};
|
|
28
|
+
export default useCursor;
|
|
29
|
+
//# sourceMappingURL=use-cursor.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as publishSessionRegistration } from './index-
|
|
2
|
-
import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-
|
|
3
|
-
import { c as createSessionMetadata } from './registerKillSessionHandler-
|
|
1
|
+
import { p as publishSessionRegistration } from './index-Des7I5WX.mjs';
|
|
2
|
+
import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-Cxifhw5r.mjs';
|
|
3
|
+
import { c as createSessionMetadata } from './registerKillSessionHandler-BFBkz_XT.mjs';
|
|
4
4
|
import { EventEmitter } from 'node:events';
|
|
5
5
|
import { randomUUID } from 'node:crypto';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var api = require('./api-
|
|
5
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
3
|
+
var index = require('./index-Cuvs0lFS.cjs');
|
|
4
|
+
var api = require('./api-DZimmN4C.cjs');
|
|
5
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-BapPCRmp.cjs');
|
|
6
6
|
var node_events = require('node:events');
|
|
7
7
|
var node_crypto = require('node:crypto');
|
|
8
8
|
|
package/dist/{ProviderSelectionHandler-BlrrLPlo.mjs → ProviderSelectionHandler-Q8pl7e-d.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as logger } from './api-
|
|
2
|
-
import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-
|
|
1
|
+
import { l as logger } from './api-Cxifhw5r.mjs';
|
|
2
|
+
import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-BFBkz_XT.mjs';
|
|
3
3
|
|
|
4
4
|
async function runModeLoop(opts) {
|
|
5
5
|
let currentMode = opts.startingMode;
|
package/dist/{ProviderSelectionHandler-5Dedbm8j.cjs → ProviderSelectionHandler-wwbfeK_s.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var api = require('./api-
|
|
4
|
-
var registerKillSessionHandler = require('./registerKillSessionHandler-
|
|
3
|
+
var api = require('./api-DZimmN4C.cjs');
|
|
4
|
+
var registerKillSessionHandler = require('./registerKillSessionHandler-BapPCRmp.cjs');
|
|
5
5
|
|
|
6
6
|
async function runModeLoop(opts) {
|
|
7
7
|
let currentMode = opts.startingMode;
|
|
@@ -16,7 +16,7 @@ import { spawn } from 'node:child_process';
|
|
|
16
16
|
import { Expo } from 'expo-server-sdk';
|
|
17
17
|
|
|
18
18
|
var name = "happy-imou-cloud";
|
|
19
|
-
var version = "2.1.
|
|
19
|
+
var version = "2.1.2";
|
|
20
20
|
var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
|
|
21
21
|
var author = "long.zhu";
|
|
22
22
|
var license = "MIT";
|
|
@@ -51,6 +51,7 @@ var exports$1 = {
|
|
|
51
51
|
};
|
|
52
52
|
var files = [
|
|
53
53
|
"dist",
|
|
54
|
+
"compat",
|
|
54
55
|
"bin",
|
|
55
56
|
"scripts",
|
|
56
57
|
"package.json"
|
|
@@ -100,7 +101,7 @@ var scripts = {
|
|
|
100
101
|
"unlink:dev": "node scripts/link-dev.cjs unlink"
|
|
101
102
|
};
|
|
102
103
|
var dependencies = {
|
|
103
|
-
"@agentclientprotocol/sdk": "
|
|
104
|
+
"@agentclientprotocol/sdk": "0.14.1",
|
|
104
105
|
"@stablelib/base64": "^2.0.1",
|
|
105
106
|
"@stablelib/hex": "^2.0.1",
|
|
106
107
|
"@types/cross-spawn": "^6.0.6",
|
|
@@ -430,7 +431,7 @@ async function listDaemonLogFiles(limit = 50) {
|
|
|
430
431
|
return { file, path: fullPath, modified: stats.mtime };
|
|
431
432
|
}).sort((a, b) => b.modified.getTime() - a.modified.getTime());
|
|
432
433
|
try {
|
|
433
|
-
const { readDaemonState } = await import('./persistence-
|
|
434
|
+
const { readDaemonState } = await import('./persistence-6d4U4Sh8.mjs');
|
|
434
435
|
const state = await readDaemonState();
|
|
435
436
|
if (!state) {
|
|
436
437
|
return logs;
|
|
@@ -18,7 +18,7 @@ var node_child_process = require('node:child_process');
|
|
|
18
18
|
var expoServerSdk = require('expo-server-sdk');
|
|
19
19
|
|
|
20
20
|
var name = "happy-imou-cloud";
|
|
21
|
-
var version = "2.1.
|
|
21
|
+
var version = "2.1.2";
|
|
22
22
|
var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
|
|
23
23
|
var author = "long.zhu";
|
|
24
24
|
var license = "MIT";
|
|
@@ -53,6 +53,7 @@ var exports$1 = {
|
|
|
53
53
|
};
|
|
54
54
|
var files = [
|
|
55
55
|
"dist",
|
|
56
|
+
"compat",
|
|
56
57
|
"bin",
|
|
57
58
|
"scripts",
|
|
58
59
|
"package.json"
|
|
@@ -102,7 +103,7 @@ var scripts = {
|
|
|
102
103
|
"unlink:dev": "node scripts/link-dev.cjs unlink"
|
|
103
104
|
};
|
|
104
105
|
var dependencies = {
|
|
105
|
-
"@agentclientprotocol/sdk": "
|
|
106
|
+
"@agentclientprotocol/sdk": "0.14.1",
|
|
106
107
|
"@stablelib/base64": "^2.0.1",
|
|
107
108
|
"@stablelib/hex": "^2.0.1",
|
|
108
109
|
"@types/cross-spawn": "^6.0.6",
|
|
@@ -432,7 +433,7 @@ async function listDaemonLogFiles(limit = 50) {
|
|
|
432
433
|
return { file, path: fullPath, modified: stats.mtime };
|
|
433
434
|
}).sort((a, b) => b.modified.getTime() - a.modified.getTime());
|
|
434
435
|
try {
|
|
435
|
-
const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-
|
|
436
|
+
const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-C8-MtdQK.cjs'); });
|
|
436
437
|
const state = await readDaemonState();
|
|
437
438
|
if (!state) {
|
|
438
439
|
return logs;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createDefaultRuntimeShell } from './index-
|
|
1
|
+
import { c as createDefaultRuntimeShell } from './index-Des7I5WX.mjs';
|
|
2
2
|
import 'chalk';
|
|
3
|
-
import './api-
|
|
3
|
+
import './api-Cxifhw5r.mjs';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'fs';
|
|
6
6
|
import 'node:fs';
|
|
@@ -16,7 +16,7 @@ import 'crypto';
|
|
|
16
16
|
import 'path';
|
|
17
17
|
import 'node:child_process';
|
|
18
18
|
import 'expo-server-sdk';
|
|
19
|
-
import './persistence-
|
|
19
|
+
import './persistence-6d4U4Sh8.mjs';
|
|
20
20
|
import 'node:fs/promises';
|
|
21
21
|
import 'os';
|
|
22
22
|
import 'tmp';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cuvs0lFS.cjs');
|
|
4
4
|
require('chalk');
|
|
5
|
-
require('./api-
|
|
5
|
+
require('./api-DZimmN4C.cjs');
|
|
6
6
|
require('axios');
|
|
7
7
|
require('fs');
|
|
8
8
|
require('node:fs');
|
|
@@ -18,7 +18,7 @@ require('crypto');
|
|
|
18
18
|
require('path');
|
|
19
19
|
require('node:child_process');
|
|
20
20
|
require('expo-server-sdk');
|
|
21
|
-
require('./persistence-
|
|
21
|
+
require('./persistence-C8-MtdQK.cjs');
|
|
22
22
|
require('node:fs/promises');
|
|
23
23
|
require('os');
|
|
24
24
|
require('tmp');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
|
-
var api = require('./api-
|
|
5
|
-
var persistence = require('./persistence-
|
|
4
|
+
var api = require('./api-DZimmN4C.cjs');
|
|
5
|
+
var persistence = require('./persistence-C8-MtdQK.cjs');
|
|
6
6
|
var z = require('zod');
|
|
7
7
|
var fs$2 = require('fs/promises');
|
|
8
8
|
var os$1 = require('os');
|
|
@@ -72,7 +72,7 @@ async function openBrowser(url) {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
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-
|
|
75
|
+
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-Cuvs0lFS.cjs', document.baseURI).href)));
|
|
76
76
|
const QRCode = require$1("qrcode-terminal/vendor/QRCode");
|
|
77
77
|
const QRErrorCorrectLevel = require$1("qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel");
|
|
78
78
|
const pendingTempFiles = /* @__PURE__ */ new Set();
|
|
@@ -695,7 +695,7 @@ function setupCleanupHandlers() {
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
const __dirname$2 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
698
|
+
const __dirname$2 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-Cuvs0lFS.cjs', document.baseURI).href))));
|
|
699
699
|
function projectPath() {
|
|
700
700
|
const path = path$1.resolve(__dirname$2, "..");
|
|
701
701
|
return path;
|
|
@@ -7865,7 +7865,7 @@ class AbortError extends Error {
|
|
|
7865
7865
|
}
|
|
7866
7866
|
}
|
|
7867
7867
|
|
|
7868
|
-
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-
|
|
7868
|
+
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-Cuvs0lFS.cjs', document.baseURI).href)));
|
|
7869
7869
|
const __dirname$1 = path.join(__filename$1, "..");
|
|
7870
7870
|
function getGlobalClaudeVersion() {
|
|
7871
7871
|
try {
|
|
@@ -9116,11 +9116,11 @@ var launch = /*#__PURE__*/Object.freeze({
|
|
|
9116
9116
|
|
|
9117
9117
|
const unifiedProviderExecutors = {
|
|
9118
9118
|
claude: async (opts) => {
|
|
9119
|
-
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-
|
|
9119
|
+
const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-DVnqKa1q.cjs'); });
|
|
9120
9120
|
await runClaude(opts.credentials, opts.claudeOptions ?? {});
|
|
9121
9121
|
},
|
|
9122
9122
|
codex: async (opts) => {
|
|
9123
|
-
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-
|
|
9123
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Bzsp8gFO.cjs'); });
|
|
9124
9124
|
await runCodex({
|
|
9125
9125
|
credentials: opts.credentials,
|
|
9126
9126
|
startedBy: opts.startedBy,
|
|
@@ -9129,7 +9129,7 @@ const unifiedProviderExecutors = {
|
|
|
9129
9129
|
});
|
|
9130
9130
|
},
|
|
9131
9131
|
gemini: async (opts) => {
|
|
9132
|
-
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-
|
|
9132
|
+
const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-6Dwyk_Km.cjs'); });
|
|
9133
9133
|
await runGemini({
|
|
9134
9134
|
credentials: opts.credentials,
|
|
9135
9135
|
startedBy: opts.startedBy
|
|
@@ -9205,7 +9205,7 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
9205
9205
|
return;
|
|
9206
9206
|
} else if (subcommand === "runtime") {
|
|
9207
9207
|
if (args[1] === "providers") {
|
|
9208
|
-
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-
|
|
9208
|
+
const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-RcCJI1jl.cjs'); });
|
|
9209
9209
|
console.log(renderRuntimeProviders());
|
|
9210
9210
|
return;
|
|
9211
9211
|
}
|
|
@@ -9383,8 +9383,8 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
9383
9383
|
const projectId = args[3];
|
|
9384
9384
|
try {
|
|
9385
9385
|
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
|
|
9386
|
-
const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-
|
|
9387
|
-
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-
|
|
9386
|
+
const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-C8-MtdQK.cjs'); });
|
|
9387
|
+
const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-DZimmN4C.cjs'); }).then(function (n) { return n.api; });
|
|
9388
9388
|
let userEmail = void 0;
|
|
9389
9389
|
try {
|
|
9390
9390
|
const credentials = await readCredentials2();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
|
|
2
|
-
import { l as logger, e as encodeBase64, c as configuration, k as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, m as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, n as encodeBase64Url, h as delay, o as buildClientHeaders, q as decodeBase64, r as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-
|
|
3
|
-
import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-
|
|
2
|
+
import { l as logger, e as encodeBase64, c as configuration, k as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, m as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, n as encodeBase64Url, h as delay, o as buildClientHeaders, q as decodeBase64, r as HAPPY_CLOUD_DAEMON_PORT, p as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-Cxifhw5r.mjs';
|
|
3
|
+
import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-6d4U4Sh8.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import fs, { writeFile as writeFile$1, rename, unlink as unlink$1 } from 'fs/promises';
|
|
6
6
|
import os, { homedir } from 'os';
|
|
@@ -9094,11 +9094,11 @@ var launch = /*#__PURE__*/Object.freeze({
|
|
|
9094
9094
|
|
|
9095
9095
|
const unifiedProviderExecutors = {
|
|
9096
9096
|
claude: async (opts) => {
|
|
9097
|
-
const { runClaude } = await import('./runClaude-
|
|
9097
|
+
const { runClaude } = await import('./runClaude-CPV5Uap2.mjs');
|
|
9098
9098
|
await runClaude(opts.credentials, opts.claudeOptions ?? {});
|
|
9099
9099
|
},
|
|
9100
9100
|
codex: async (opts) => {
|
|
9101
|
-
const { runCodex } = await import('./runCodex-
|
|
9101
|
+
const { runCodex } = await import('./runCodex-CwtLSTMJ.mjs');
|
|
9102
9102
|
await runCodex({
|
|
9103
9103
|
credentials: opts.credentials,
|
|
9104
9104
|
startedBy: opts.startedBy,
|
|
@@ -9107,7 +9107,7 @@ const unifiedProviderExecutors = {
|
|
|
9107
9107
|
});
|
|
9108
9108
|
},
|
|
9109
9109
|
gemini: async (opts) => {
|
|
9110
|
-
const { runGemini } = await import('./runGemini-
|
|
9110
|
+
const { runGemini } = await import('./runGemini-Bmoxehlh.mjs');
|
|
9111
9111
|
await runGemini({
|
|
9112
9112
|
credentials: opts.credentials,
|
|
9113
9113
|
startedBy: opts.startedBy
|
|
@@ -9183,7 +9183,7 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
9183
9183
|
return;
|
|
9184
9184
|
} else if (subcommand === "runtime") {
|
|
9185
9185
|
if (args[1] === "providers") {
|
|
9186
|
-
const { renderRuntimeProviders } = await import('./command-
|
|
9186
|
+
const { renderRuntimeProviders } = await import('./command-B6LM3Nml.mjs');
|
|
9187
9187
|
console.log(renderRuntimeProviders());
|
|
9188
9188
|
return;
|
|
9189
9189
|
}
|
|
@@ -9361,8 +9361,8 @@ function shouldRunMainClaudeFlow(opts) {
|
|
|
9361
9361
|
const projectId = args[3];
|
|
9362
9362
|
try {
|
|
9363
9363
|
const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
|
|
9364
|
-
const { readCredentials: readCredentials2 } = await import('./persistence-
|
|
9365
|
-
const { ApiClient: ApiClient2 } = await import('./api-
|
|
9364
|
+
const { readCredentials: readCredentials2 } = await import('./persistence-6d4U4Sh8.mjs');
|
|
9365
|
+
const { ApiClient: ApiClient2 } = await import('./api-Cxifhw5r.mjs').then(function (n) { return n.v; });
|
|
9366
9366
|
let userEmail = void 0;
|
|
9367
9367
|
try {
|
|
9368
9368
|
const credentials = await readCredentials2();
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('chalk');
|
|
4
|
-
require('./api-
|
|
5
|
-
require('./persistence-
|
|
4
|
+
require('./api-DZimmN4C.cjs');
|
|
5
|
+
require('./persistence-C8-MtdQK.cjs');
|
|
6
6
|
require('zod');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-Cuvs0lFS.cjs');
|
|
8
8
|
require('node:child_process');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('cross-spawn');
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'chalk';
|
|
2
|
-
import './api-
|
|
3
|
-
import './persistence-
|
|
2
|
+
import './api-Cxifhw5r.mjs';
|
|
3
|
+
import './persistence-6d4U4Sh8.mjs';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-Des7I5WX.mjs';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'cross-spawn';
|