laohuang 0.8.3 → 0.8.5

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
@@ -4,7 +4,25 @@ A minimal coding-agent CLI for local software work.
4
4
 
5
5
  ## Install
6
6
 
7
- Requires Node.js >=22.19.0.
7
+ Recommended standalone install (bundled Node.js; Bash required):
8
+
9
+ ```bash
10
+ curl -fsSL https://github.com/hxr223/laoHuangCode/releases/latest/download/install.sh | sh
11
+ ```
12
+
13
+ On Windows, install Git for Windows first, then run in PowerShell:
14
+
15
+ ```powershell
16
+ irm https://github.com/hxr223/laoHuangCode/releases/latest/download/install.ps1 | iex
17
+ ```
18
+
19
+ The installer verifies the download and startup, then configures the user PATH.
20
+ Open a new terminal or apply the PATH command printed by the installer.
21
+ Standalone packages target macOS, glibc Linux and Windows on x64 and ARM64.
22
+ See [installation details](https://github.com/hxr223/laoHuangCode/blob/main/INSTALLING.md).
23
+
24
+ Alternatively, install with npm (Node.js >=22.19.0 and Bash required; npm's
25
+ global executable directory must already be on PATH):
8
26
 
9
27
  ```bash
10
28
  npm install -g laohuang
@@ -17,6 +35,7 @@ laohuang --help
17
35
  laohuang --version
18
36
  laohuang config set --provider deepseek --model deepseek-v4-flash
19
37
  laohuang doctor
38
+ laohuang update
20
39
  ```
21
40
 
22
41
  Run `laohuang` in a project directory to start an interactive session. The CLI
@@ -37,9 +56,75 @@ If no models are available, the CLI points to `/login`.
37
56
  directly, and `/apikey` remains a compatibility alias. Switching models affects
38
57
  only the current session, not the default profile.
39
58
 
59
+ For standalone installations, `laohuang update` reruns the bundled installer
60
+ against the latest GitHub release, verifies it before switching the launcher,
61
+ and retains the previous version. Restart laohuang after updating.
62
+
63
+ For npm installations, `laohuang update` updates the running installation to the latest stable
64
+ release and verifies its installed version. Restart the CLI after updating.
65
+ It supports global npm installations and direct project or workspace npm
66
+ dependencies; local updates change the owning manifest and lockfile while
67
+ preserving the dependency bucket and ordinary version-prefix style. It does
68
+ not downgrade or update a different installation. Source checkouts, linked
69
+ packages, temporary npx installations, and other package managers require
70
+ their respective update methods. Installation failures are reported without
71
+ claiming that npm rolled back changes.
72
+
73
+ `/name MCP design` saves the current session name, and `/name` displays it.
74
+ Names survive resume and appear in session lists. Clones inherit the current
75
+ name; forks inherit the name at their history boundary.
76
+
77
+ `/copy` copies the latest recorded assistant response's text with its Markdown
78
+ intact, excluding reasoning and tool results. During streaming it copies the
79
+ previous recorded response. Local sessions use the operating system clipboard;
80
+ SSH sessions send an OSC 52 request to the user's terminal. A sent request is
81
+ not confirmation that the terminal accepted it. Unsupported environments or
82
+ clipboard failures produce an explanatory message.
83
+
40
84
  `verified` means an explicitly authorized live native
41
85
  tool-call/tool-result E2E was recorded; no providers are checked in as verified
42
86
  by default.
43
87
 
88
+ ## MCP
89
+
90
+ MCP is built in. Put a version 1 `mcp.json` beside your model `config.json`, or
91
+ in `.laohuang/mcp.json` under the directory where you start the CLI:
92
+
93
+ ```json
94
+ {
95
+ "version": 1,
96
+ "servers": {
97
+ "local": {
98
+ "transport": "stdio",
99
+ "command": "node",
100
+ "args": ["/absolute/path/to/mcp-server.js"]
101
+ }
102
+ }
103
+ }
104
+ ```
105
+
106
+ Transports are `stdio`, Streamable `http`, and legacy `sse`. Use `/mcp status`,
107
+ `/mcp reload`, `/mcp reconnect <server>`, `/mcp login <server>`, and
108
+ `/mcp logout <server>`. Remote OAuth uses `auth: { "type": "oauth" }`.
109
+ Environment references use `{ "env": "VARIABLE_NAME" }`; no shell expansion occurs.
110
+ Project entries replace same-name global entries entirely. Invalid files are
111
+ skipped on startup; an invalid reload keeps the previous configuration.
112
+
113
+ Connections start in the background; the first model request waits for initial
114
+ discovery. Below 20 available tools, definitions are provided in full. At 20 or
115
+ more, `tool_search` automatically searches and loads MCP tools; read, write,
116
+ edit and bash remain directly available. Search is local BM25 with query and
117
+ limit (default 8, range 1–20). Loaded definitions persist in retained session
118
+ history; after compaction removes them, search loads them again. The model can
119
+ start OAuth through a synthetic authenticate tool; the terminal shows a URL
120
+ immediately and waits up to 15 minutes for the user to finish authorization.
121
+ Tool calls default to sequential execution. Recoverable network errors allow
122
+ at most three application-level attempts; lost responses can cause duplicate
123
+ side effects. Cancellation, timeouts and business errors are not retried.
124
+ Large outputs and media
125
+ are retained under `mcp-artifacts` beside the global configuration; returned
126
+ paths let you retrieve them. Media files are not native image/audio model input.
127
+ MCP processes run with your user permissions and are not sandboxed.
128
+
44
129
  See the repository README for development and architecture details:
45
130
  https://github.com/hxr223/laoHuangCode#readme