@beifengfeng66/hapi 0.3.4
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/LICENSE +157 -0
- package/NOTICE +52 -0
- package/README.md +127 -0
- package/bin/hapi.cjs +70 -0
- package/package.json +85 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
|
|
3
|
+
Version 3, 29 June 2007
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2007 Free Software Foundation, Inc.
|
|
6
|
+
<https://fsf.org/>
|
|
7
|
+
|
|
8
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
9
|
+
license document, but changing it is not allowed.
|
|
10
|
+
|
|
11
|
+
This version of the GNU Lesser General Public License incorporates the
|
|
12
|
+
terms and conditions of version 3 of the GNU General Public License,
|
|
13
|
+
supplemented by the additional permissions listed below.
|
|
14
|
+
|
|
15
|
+
## 0. Additional Definitions.
|
|
16
|
+
|
|
17
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
18
|
+
General Public License, and the "GNU GPL" refers to version 3 of the
|
|
19
|
+
GNU General Public License.
|
|
20
|
+
|
|
21
|
+
"The Library" refers to a covered work governed by this License, other
|
|
22
|
+
than an Application or a Combined Work as defined below.
|
|
23
|
+
|
|
24
|
+
An "Application" is any work that makes use of an interface provided
|
|
25
|
+
by the Library, but which is not otherwise based on the Library.
|
|
26
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
27
|
+
of using an interface provided by the Library.
|
|
28
|
+
|
|
29
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
30
|
+
Application with the Library. The particular version of the Library
|
|
31
|
+
with which the Combined Work was made is also called the "Linked
|
|
32
|
+
Version".
|
|
33
|
+
|
|
34
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
35
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
36
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
37
|
+
based on the Application, and not on the Linked Version.
|
|
38
|
+
|
|
39
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
40
|
+
object code and/or source code for the Application, including any data
|
|
41
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
42
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
43
|
+
|
|
44
|
+
## 1. Exception to Section 3 of the GNU GPL.
|
|
45
|
+
|
|
46
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
47
|
+
without being bound by section 3 of the GNU GPL.
|
|
48
|
+
|
|
49
|
+
## 2. Conveying Modified Versions.
|
|
50
|
+
|
|
51
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
52
|
+
facility refers to a function or data to be supplied by an Application
|
|
53
|
+
that uses the facility (other than as an argument passed when the
|
|
54
|
+
facility is invoked), then you may convey a copy of the modified
|
|
55
|
+
version:
|
|
56
|
+
|
|
57
|
+
- a) under this License, provided that you make a good faith effort
|
|
58
|
+
to ensure that, in the event an Application does not supply the
|
|
59
|
+
function or data, the facility still operates, and performs
|
|
60
|
+
whatever part of its purpose remains meaningful, or
|
|
61
|
+
- b) under the GNU GPL, with none of the additional permissions of
|
|
62
|
+
this License applicable to that copy.
|
|
63
|
+
|
|
64
|
+
## 3. Object Code Incorporating Material from Library Header Files.
|
|
65
|
+
|
|
66
|
+
The object code form of an Application may incorporate material from a
|
|
67
|
+
header file that is part of the Library. You may convey such object
|
|
68
|
+
code under terms of your choice, provided that, if the incorporated
|
|
69
|
+
material is not limited to numerical parameters, data structure
|
|
70
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
71
|
+
(ten or fewer lines in length), you do both of the following:
|
|
72
|
+
|
|
73
|
+
- a) Give prominent notice with each copy of the object code that
|
|
74
|
+
the Library is used in it and that the Library and its use are
|
|
75
|
+
covered by this License.
|
|
76
|
+
- b) Accompany the object code with a copy of the GNU GPL and this
|
|
77
|
+
license document.
|
|
78
|
+
|
|
79
|
+
## 4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that, taken
|
|
82
|
+
together, effectively do not restrict modification of the portions of
|
|
83
|
+
the Library contained in the Combined Work and reverse engineering for
|
|
84
|
+
debugging such modifications, if you also do each of the following:
|
|
85
|
+
|
|
86
|
+
- a) Give prominent notice with each copy of the Combined Work that
|
|
87
|
+
the Library is used in it and that the Library and its use are
|
|
88
|
+
covered by this License.
|
|
89
|
+
- b) Accompany the Combined Work with a copy of the GNU GPL and this
|
|
90
|
+
license document.
|
|
91
|
+
- c) For a Combined Work that displays copyright notices during
|
|
92
|
+
execution, include the copyright notice for the Library among
|
|
93
|
+
these notices, as well as a reference directing the user to the
|
|
94
|
+
copies of the GNU GPL and this license document.
|
|
95
|
+
- d) Do one of the following:
|
|
96
|
+
- 0) Convey the Minimal Corresponding Source under the terms of
|
|
97
|
+
this License, and the Corresponding Application Code in a form
|
|
98
|
+
suitable for, and under terms that permit, the user to
|
|
99
|
+
recombine or relink the Application with a modified version of
|
|
100
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
101
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
102
|
+
Corresponding Source.
|
|
103
|
+
- 1) Use a suitable shared library mechanism for linking with
|
|
104
|
+
the Library. A suitable mechanism is one that (a) uses at run
|
|
105
|
+
time a copy of the Library already present on the user's
|
|
106
|
+
computer system, and (b) will operate properly with a modified
|
|
107
|
+
version of the Library that is interface-compatible with the
|
|
108
|
+
Linked Version.
|
|
109
|
+
- e) Provide Installation Information, but only if you would
|
|
110
|
+
otherwise be required to provide such information under section 6
|
|
111
|
+
of the GNU GPL, and only to the extent that such information is
|
|
112
|
+
necessary to install and execute a modified version of the
|
|
113
|
+
Combined Work produced by recombining or relinking the Application
|
|
114
|
+
with a modified version of the Linked Version. (If you use option
|
|
115
|
+
4d0, the Installation Information must accompany the Minimal
|
|
116
|
+
Corresponding Source and Corresponding Application Code. If you
|
|
117
|
+
use option 4d1, you must provide the Installation Information in
|
|
118
|
+
the manner specified by section 6 of the GNU GPL for conveying
|
|
119
|
+
Corresponding Source.)
|
|
120
|
+
|
|
121
|
+
## 5. Combined Libraries.
|
|
122
|
+
|
|
123
|
+
You may place library facilities that are a work based on the Library
|
|
124
|
+
side by side in a single library together with other library
|
|
125
|
+
facilities that are not Applications and are not covered by this
|
|
126
|
+
License, and convey such a combined library under terms of your
|
|
127
|
+
choice, if you do both of the following:
|
|
128
|
+
|
|
129
|
+
- a) Accompany the combined library with a copy of the same work
|
|
130
|
+
based on the Library, uncombined with any other library
|
|
131
|
+
facilities, conveyed under the terms of this License.
|
|
132
|
+
- b) Give prominent notice with the combined library that part of it
|
|
133
|
+
is a work based on the Library, and explaining where to find the
|
|
134
|
+
accompanying uncombined form of the same work.
|
|
135
|
+
|
|
136
|
+
## 6. Revised Versions of the GNU Lesser General Public License.
|
|
137
|
+
|
|
138
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
139
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
140
|
+
versions will be similar in spirit to the present version, but may
|
|
141
|
+
differ in detail to address new problems or concerns.
|
|
142
|
+
|
|
143
|
+
Each version is given a distinguishing version number. If the Library
|
|
144
|
+
as you received it specifies that a certain numbered version of the
|
|
145
|
+
GNU Lesser General Public License "or any later version" applies to
|
|
146
|
+
it, you have the option of following the terms and conditions either
|
|
147
|
+
of that published version or of any later version published by the
|
|
148
|
+
Free Software Foundation. If the Library as you received it does not
|
|
149
|
+
specify a version number of the GNU Lesser General Public License, you
|
|
150
|
+
may choose any version of the GNU Lesser General Public License ever
|
|
151
|
+
published by the Free Software Foundation.
|
|
152
|
+
|
|
153
|
+
If the Library as you received it specifies that a proxy can decide
|
|
154
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
155
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
156
|
+
permanent authorization for you to choose that version for the
|
|
157
|
+
Library.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
hapi CLI
|
|
2
|
+
Copyright (c) 2024-2025 weishu
|
|
3
|
+
|
|
4
|
+
This software contains code derived from happy-cli
|
|
5
|
+
(https://github.com/slopus/happy-cli), which is licensed
|
|
6
|
+
under the MIT License:
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2024 Kirill Dubovitskiy
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
The following files/directories are derived from happy-cli:
|
|
35
|
+
- src/api/
|
|
36
|
+
- src/claude/
|
|
37
|
+
- src/codex/
|
|
38
|
+
- src/daemon/
|
|
39
|
+
- src/commands/
|
|
40
|
+
- src/ui/
|
|
41
|
+
- src/utils/
|
|
42
|
+
- src/modules/ripgrep/
|
|
43
|
+
- src/modules/difftastic/
|
|
44
|
+
- src/modules/watcher/
|
|
45
|
+
- src/modules/common/registerCommonHandlers.ts
|
|
46
|
+
- src/modules/common/pathSecurity.ts
|
|
47
|
+
- src/parsers/
|
|
48
|
+
- src/configuration.ts
|
|
49
|
+
- src/persistence.ts
|
|
50
|
+
- src/projectPath.ts
|
|
51
|
+
- src/lib.ts
|
|
52
|
+
- src/index.ts
|
package/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# hapi CLI
|
|
2
|
+
|
|
3
|
+
Run Claude Code, Codex, or Gemini sessions from your terminal and control them remotely through the hapi server.
|
|
4
|
+
|
|
5
|
+
## What it does
|
|
6
|
+
|
|
7
|
+
- Starts Claude Code sessions and registers them with hapi-server.
|
|
8
|
+
- Starts Codex mode for OpenAI-based sessions.
|
|
9
|
+
- Starts Gemini mode via ACP (Anthropic Code Plugins).
|
|
10
|
+
- Provides an MCP stdio bridge for external tools.
|
|
11
|
+
- Manages a background daemon for long-running sessions.
|
|
12
|
+
- Includes diagnostics and auth helpers.
|
|
13
|
+
|
|
14
|
+
## Typical flow
|
|
15
|
+
|
|
16
|
+
1. Start the server and set env vars (see ../server/README.md).
|
|
17
|
+
2. Set the same CLI_API_TOKEN on this machine or run `hapi auth login`.
|
|
18
|
+
3. Run `hapi` to start a session.
|
|
19
|
+
4. Use the web app or Telegram Mini App to monitor and control.
|
|
20
|
+
|
|
21
|
+
## Commands
|
|
22
|
+
|
|
23
|
+
### Session commands
|
|
24
|
+
|
|
25
|
+
- `hapi` - Start a Claude Code session (passes through Claude CLI flags). See `src/index.ts`.
|
|
26
|
+
- `hapi codex` - Start Codex mode. See `src/codex/runCodex.ts`.
|
|
27
|
+
- `hapi gemini` - Start Gemini mode via ACP. See `src/agent/runners/runAgentSession.ts`.
|
|
28
|
+
Note: Gemini runs in remote mode only; it waits for messages from the server UI/Telegram.
|
|
29
|
+
|
|
30
|
+
### Authentication
|
|
31
|
+
|
|
32
|
+
- `hapi auth status` - Show authentication configuration and token source.
|
|
33
|
+
- `hapi auth login` - Interactively enter and save CLI_API_TOKEN.
|
|
34
|
+
- `hapi auth logout` - Clear saved credentials.
|
|
35
|
+
|
|
36
|
+
See `src/commands/auth.ts`.
|
|
37
|
+
|
|
38
|
+
### Daemon management
|
|
39
|
+
|
|
40
|
+
- `hapi daemon start` - Start daemon as detached process.
|
|
41
|
+
- `hapi daemon stop` - Stop daemon gracefully.
|
|
42
|
+
- `hapi daemon status` - Show daemon diagnostics.
|
|
43
|
+
- `hapi daemon list` - List active sessions managed by daemon.
|
|
44
|
+
- `hapi daemon stop-session <sessionId>` - Terminate specific session.
|
|
45
|
+
- `hapi daemon logs` - Print path to latest daemon log file.
|
|
46
|
+
- `hapi daemon install` - Install daemon as system service.
|
|
47
|
+
- `hapi daemon uninstall` - Remove daemon system service.
|
|
48
|
+
|
|
49
|
+
See `src/daemon/run.ts`.
|
|
50
|
+
|
|
51
|
+
### Diagnostics
|
|
52
|
+
|
|
53
|
+
- `hapi doctor` - Show full diagnostics (version, daemon status, logs, processes).
|
|
54
|
+
- `hapi doctor clean` - Kill runaway HAPI processes.
|
|
55
|
+
|
|
56
|
+
See `src/ui/doctor.ts`.
|
|
57
|
+
|
|
58
|
+
### Other
|
|
59
|
+
|
|
60
|
+
- `hapi mcp` - Start MCP stdio bridge. See `src/codex/happyMcpStdioBridge.ts`.
|
|
61
|
+
- `hapi server` - Start the bundled server (single binary workflow).
|
|
62
|
+
|
|
63
|
+
## Configuration
|
|
64
|
+
|
|
65
|
+
See `src/configuration.ts` for all options.
|
|
66
|
+
|
|
67
|
+
### Required
|
|
68
|
+
|
|
69
|
+
- `CLI_API_TOKEN` - Shared secret; must match the server. Can be set via env or `~/.hapi/settings.json` (env wins).
|
|
70
|
+
- `HAPI_SERVER_URL` - Server base URL (default: http://localhost:3006).
|
|
71
|
+
|
|
72
|
+
### Optional
|
|
73
|
+
|
|
74
|
+
- `HAPI_HOME` - Config/data directory (default: ~/.hapi).
|
|
75
|
+
- `HAPI_EXPERIMENTAL` - Enable experimental features (true/1/yes).
|
|
76
|
+
- `HAPI_CLAUDE_PATH` - Path to a specific `claude` executable.
|
|
77
|
+
- `HAPI_HTTP_MCP_URL` - Default MCP target for `hapi mcp`.
|
|
78
|
+
|
|
79
|
+
### Daemon
|
|
80
|
+
|
|
81
|
+
- `HAPI_DAEMON_HEARTBEAT_INTERVAL` - Heartbeat interval in ms (default: 60000).
|
|
82
|
+
- `HAPI_DAEMON_HTTP_TIMEOUT` - HTTP timeout for daemon control in ms (default: 10000).
|
|
83
|
+
|
|
84
|
+
## Storage
|
|
85
|
+
|
|
86
|
+
Data is stored in `~/.hapi/` (or `$HAPI_HOME`):
|
|
87
|
+
|
|
88
|
+
- `settings.json` - User settings (machineId, token, onboarding flag). See `src/persistence.ts`.
|
|
89
|
+
- `daemon.state.json` - Daemon state (pid, port, version, heartbeat).
|
|
90
|
+
- `logs/` - Log files.
|
|
91
|
+
|
|
92
|
+
## Requirements
|
|
93
|
+
|
|
94
|
+
- Claude CLI installed and logged in (`claude` on PATH).
|
|
95
|
+
- Bun for building from source.
|
|
96
|
+
|
|
97
|
+
## Build from source
|
|
98
|
+
|
|
99
|
+
From the repo root:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
bun install
|
|
103
|
+
bun run build:cli
|
|
104
|
+
bun run build:cli:exe
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
For an all-in-one binary that also embeds the web app:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
bun run build:single-exe
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Source structure
|
|
114
|
+
|
|
115
|
+
- `src/api/` - Bot communication (Socket.IO + REST).
|
|
116
|
+
- `src/claude/` - Claude Code integration.
|
|
117
|
+
- `src/codex/` - Codex mode integration.
|
|
118
|
+
- `src/agent/` - Multi-agent support (Gemini via ACP).
|
|
119
|
+
- `src/daemon/` - Background service.
|
|
120
|
+
- `src/commands/` - CLI command handlers.
|
|
121
|
+
- `src/ui/` - User interface and diagnostics.
|
|
122
|
+
- `src/modules/` - Tool implementations (ripgrep, difftastic, git).
|
|
123
|
+
|
|
124
|
+
## Related docs
|
|
125
|
+
|
|
126
|
+
- `../server/README.md`
|
|
127
|
+
- `../web/README.md`
|
package/bin/hapi.cjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execFileSync } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const platform = process.platform;
|
|
7
|
+
const arch = process.arch;
|
|
8
|
+
|
|
9
|
+
function getSelfPackageName() {
|
|
10
|
+
const pkg = require(path.join(__dirname, '..', 'package.json'));
|
|
11
|
+
return pkg.name;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function splitScopeAndBase(name) {
|
|
15
|
+
if (typeof name !== 'string') return { scope: null, base: 'hapi' };
|
|
16
|
+
if (name.startsWith('@')) {
|
|
17
|
+
const [scope, base] = name.split('/');
|
|
18
|
+
return { scope, base: base || 'hapi' };
|
|
19
|
+
}
|
|
20
|
+
return { scope: null, base: name };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getPlatformPackageName() {
|
|
24
|
+
const selfName = getSelfPackageName(); // e.g. "@beifengfeng66/hapi" or "hapi"
|
|
25
|
+
const { scope, base } = splitScopeAndBase(selfName);
|
|
26
|
+
const platformSuffix = `${base}-${platform}-${arch}`; // e.g. "hapi-darwin-arm64"
|
|
27
|
+
return scope ? `${scope}/${platformSuffix}` : platformSuffix;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const pkgName = getPlatformPackageName();
|
|
31
|
+
|
|
32
|
+
function getBinaryPath() {
|
|
33
|
+
try {
|
|
34
|
+
// Try to find the platform-specific package
|
|
35
|
+
const pkgPath = require.resolve(`${pkgName}/package.json`);
|
|
36
|
+
const binName = platform === 'win32' ? 'hapi.exe' : 'hapi';
|
|
37
|
+
return path.join(path.dirname(pkgPath), 'bin', binName);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const binPath = getBinaryPath();
|
|
44
|
+
|
|
45
|
+
if (!binPath) {
|
|
46
|
+
console.error(`Unsupported platform: ${platform}-${arch}`);
|
|
47
|
+
console.error('');
|
|
48
|
+
console.error('Supported platforms:');
|
|
49
|
+
console.error(' - darwin-arm64 (macOS Apple Silicon)');
|
|
50
|
+
console.error(' - darwin-x64 (macOS Intel)');
|
|
51
|
+
console.error(' - linux-arm64');
|
|
52
|
+
console.error(' - linux-x64');
|
|
53
|
+
console.error(' - win32-x64');
|
|
54
|
+
console.error('');
|
|
55
|
+
console.error('You can download the binary manually from:');
|
|
56
|
+
console.error(' https://github.com/deijing/hapi/releases');
|
|
57
|
+
process.exit(1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
62
|
+
} catch (e) {
|
|
63
|
+
// If the binary execution fails, exit with the same code
|
|
64
|
+
if (e.status !== undefined) {
|
|
65
|
+
process.exit(e.status);
|
|
66
|
+
}
|
|
67
|
+
// For other errors (e.g., binary not found), print and exit
|
|
68
|
+
console.error(`Failed to execute ${binPath}:`, e.message);
|
|
69
|
+
process.exit(1);
|
|
70
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@beifengfeng66/hapi",
|
|
3
|
+
"version": "0.3.4",
|
|
4
|
+
"description": "App for agentic coding - access coding agent anywhere",
|
|
5
|
+
"author": "Kirill Dubovitskiy & weishu",
|
|
6
|
+
"license": "LGPL-3.0-or-later",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"homepage": "https://github.com/deijing/hapi",
|
|
9
|
+
"bugs": "https://github.com/deijing/hapi/issues",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/deijing/hapi",
|
|
13
|
+
"directory": "cli"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"hapi": "bin/hapi.cjs"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin/hapi.cjs",
|
|
23
|
+
"NOTICE"
|
|
24
|
+
],
|
|
25
|
+
"imports": {
|
|
26
|
+
"#embedded-assets": {
|
|
27
|
+
"bun": "./src/runtime/embeddedAssets.bun.ts",
|
|
28
|
+
"default": "./src/runtime/embeddedAssets.stub.ts"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"optionalDependencies": {
|
|
32
|
+
"@beifengfeng66/hapi-darwin-arm64": "0.3.4",
|
|
33
|
+
"@beifengfeng66/hapi-darwin-x64": "0.3.4",
|
|
34
|
+
"@beifengfeng66/hapi-linux-arm64": "0.3.4",
|
|
35
|
+
"@beifengfeng66/hapi-linux-x64": "0.3.4",
|
|
36
|
+
"@beifengfeng66/hapi-win32-x64": "0.3.4"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"build:exe": "bun run scripts/build-executable.ts",
|
|
41
|
+
"build:exe:all": "bun run scripts/build-executable.ts --all",
|
|
42
|
+
"build:exe:allinone": "bun run scripts/build-executable.ts --with-web-assets",
|
|
43
|
+
"build:exe:allinone:all": "bun run scripts/build-executable.ts --with-web-assets --all",
|
|
44
|
+
"prepare-npm-packages": "bun run scripts/prepare-npm-packages.ts",
|
|
45
|
+
"prepack": "bun run prepare-npm-packages",
|
|
46
|
+
"tools:unpack": "bun run scripts/unpack-tools.ts",
|
|
47
|
+
"update-homebrew-formula": "bun run scripts/update-homebrew-formula.ts",
|
|
48
|
+
"test": "bun run tools:unpack && vitest run",
|
|
49
|
+
"test:win": "vitest run",
|
|
50
|
+
"dev": "bun src/index.ts",
|
|
51
|
+
"dev:local-server": "bun --env-file .env.dev-local-server src/index.ts",
|
|
52
|
+
"dev:integration-test-env": "bun --env-file .env.integration-test src/index.ts",
|
|
53
|
+
"release-all": "bun run scripts/release-all.ts"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
57
|
+
"@types/cross-spawn": "^6.0.6",
|
|
58
|
+
"@types/ps-list": "^6.2.1",
|
|
59
|
+
"@types/react": "^19.2.7",
|
|
60
|
+
"axios": "^1.13.2",
|
|
61
|
+
"chalk": "^5.6.2",
|
|
62
|
+
"cross-spawn": "^7.0.6",
|
|
63
|
+
"fastify": "^5.6.2",
|
|
64
|
+
"fastify-type-provider-zod": "6.1.0",
|
|
65
|
+
"ink": "^6.6.0",
|
|
66
|
+
"ps-list": "^9.0.0",
|
|
67
|
+
"react": "^19.2.3",
|
|
68
|
+
"socket.io-client": "^4.8.3",
|
|
69
|
+
"tar": "^7.5.2",
|
|
70
|
+
"zod": "^4.2.1"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@types/node": ">=25",
|
|
74
|
+
"bun-types": "^1.3.5",
|
|
75
|
+
"dotenv": "^17.2.3",
|
|
76
|
+
"typescript": "^5",
|
|
77
|
+
"vitest": "^4.0.16"
|
|
78
|
+
},
|
|
79
|
+
"resolutions": {
|
|
80
|
+
"whatwg-url": "14.2.0",
|
|
81
|
+
"parse-path": "7.0.3",
|
|
82
|
+
"@types/parse-path": "7.0.3"
|
|
83
|
+
},
|
|
84
|
+
"packageManager": "bun@1.3.5"
|
|
85
|
+
}
|