@frevlm/realagent 0.0.0-stage → 0.5.0

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/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ # realagent
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ```sh
4
+ npm i -g @frevlm/realagent
5
+ realagent # 终端界面;core 没在跑就自动在后台拉起
6
+ realagent-mcp # stdio MCP 桥,给 Claude Code / Codex 委派活儿
7
+ ```
8
+
9
+ - 预编译平台:macOS arm64、Linux x64、Windows x64(Windows 只有 TUI 与 MCP 桥,core 跑在 WSL 里)。
10
+ - core 的搜索工具调用 `rg`,请先装 [ripgrep](https://github.com/BurntSushi/ripgrep)。
11
+ - core 日志:`~/.realagent/core.log`。
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require("./run")("realagent-mcp")
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require("./run")("realagent-tui")
package/bin/run.js ADDED
@@ -0,0 +1,20 @@
1
+ // 找到本平台那个预编译包,把参数和终端原样交给里面的二进制(ADR-0057)
2
+ const { spawnSync } = require('child_process')
3
+ const path = require('path')
4
+
5
+ module.exports = name => {
6
+ const target = `${process.platform}-${process.arch}`
7
+ let dir
8
+ try {
9
+ dir = path.dirname(require.resolve(`@frevlm/realagent-${target}/package.json`))
10
+ } catch {
11
+ console.error(`realagent: 没有 ${target} 的预编译包(只发 darwin-arm64、linux-x64、win32-x64)`)
12
+ process.exit(1)
13
+ }
14
+ const r = spawnSync(path.join(dir, name + (process.platform === 'win32' ? '.exe' : '')), process.argv.slice(2), { stdio: 'inherit' })
15
+ if (r.error) {
16
+ console.error(`realagent: ${r.error.message}`)
17
+ process.exit(1)
18
+ }
19
+ process.exit(r.status ?? 1)
20
+ }
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "@frevlm/realagent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.5.0",
4
+ "description": "realagent: terminal coding agent (TUI + MCP bridge)",
5
+ "license": "UNLICENSED",
6
+ "bin": {
7
+ "realagent": "bin/realagent.js",
8
+ "realagent-mcp": "bin/realagent-mcp.js"
9
+ },
10
+ "files": ["bin"],
11
+ "optionalDependencies": {
12
+ "@frevlm/realagent-darwin-arm64": "0.5.0",
13
+ "@frevlm/realagent-linux-x64": "0.5.0",
14
+ "@frevlm/realagent-win32-x64": "0.5.0"
15
+ },
16
+ "engines": { "node": ">=18" }
17
+ }