neuralos 2.8.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/LICENSE.md +201 -0
- package/README.md +346 -0
- package/bin/gybackend.js +385192 -0
- package/package.json +75 -0
- package/plugins/fraudops/index.d.mts +9 -0
- package/plugins/fraudops/index.mjs +185 -0
- package/plugins/fraudops/plugin.json +10 -0
- package/plugins/iam-connector/index.d.mts +10 -0
- package/plugins/iam-connector/index.mjs +229 -0
- package/plugins/iam-connector/plugin.json +10 -0
- package/plugins/netdata-rterm/index.mjs +229 -0
- package/plugins/netdata-rterm/netdata-rterm.extreme.spec.ts +252 -0
- package/plugins/netdata-rterm/plugin.json +22 -0
- package/plugins/patch-manager/index.d.mts +10 -0
- package/plugins/patch-manager/index.mjs +288 -0
- package/plugins/patch-manager/plugin.json +10 -0
- package/plugins/request-router/index.d.mts +9 -0
- package/plugins/request-router/index.mjs +239 -0
- package/plugins/request-router/plugin.json +10 -0
- package/plugins/sop-assistant/index.d.mts +9 -0
- package/plugins/sop-assistant/index.mjs +325 -0
- package/plugins/sop-assistant/plugin.json +10 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
in such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Hyperspace Technologies
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# <img src="./demo_imgs/icon.png" width="40" height="40" align="center" style="margin-right: 10px;"> RTerm
|
|
2
|
+
|
|
3
|
+
> **The AI-Native Terminal that thinks, executes, and collaborates with you.**
|
|
4
|
+
|
|
5
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
6
|
+
[](#platforms)
|
|
7
|
+
[](#key-capabilities)
|
|
8
|
+
|
|
9
|
+
English README | [中文 README](./README.zh-CN.md)
|
|
10
|
+
Latest release notes: [`changelogs/v1.6.0.md`](./changelogs/v1.6.0.md)
|
|
11
|
+
|
|
12
|
+
If you have any suggestions or questions, please feel free to submit them in [GitHub Discussions](https://github.com/MrOrangeJJ/RTerm/discussions).
|
|
13
|
+
|
|
14
|
+
Usage guides:
|
|
15
|
+
[`docs/mobile-web-usage.md`](./docs/mobile-web-usage.md) ·
|
|
16
|
+
[`docs/tui-usage.md`](./docs/tui-usage.md) ·
|
|
17
|
+
[`docs/gybackend-usage.md`](./docs/gybackend-usage.md)
|
|
18
|
+
|
|
19
|
+
> [!WARNING]
|
|
20
|
+
> **Active Development**: RTerm evolves quickly. If a version introduces history compatibility breaks, it will be called out explicitly in release notes.
|
|
21
|
+
|
|
22
|
+
> [!NOTE]
|
|
23
|
+
> **v1.4.0 upgrade note**: the first launch after upgrading from a pre-1.4.0 version may briefly block while RTerm migrates legacy JSON history into SQLite and writes timestamped backup files. v1.4.3 has no additional migration step.
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<img src="./demo_imgs/v1.6.0_dark.png" width="100%" alt="GyShell dark theme demo">
|
|
27
|
+
</p>
|
|
28
|
+
<p align="center">
|
|
29
|
+
<img src="./demo_imgs/v1.6.0_light.png" width="100%" alt="GyShell light theme demo">
|
|
30
|
+
</p>
|
|
31
|
+
<p align="center">
|
|
32
|
+
<video controls width="100%" src="https://github.com/user-attachments/assets/f9daf884-bda0-4a58-8a6d-934db0eddeb5"></video>
|
|
33
|
+
</p>
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Why RTerm Is Different
|
|
38
|
+
|
|
39
|
+
Most AI terminal tools either generate one-shot scripts, or run in isolated sandboxes detached from real shell workflows.
|
|
40
|
+
|
|
41
|
+
RTerm is built for **persistent execution in your real terminal runtime**:
|
|
42
|
+
|
|
43
|
+
- **Persistent execution loop**: observe output -> reason -> continue.
|
|
44
|
+
- **Human-in-the-loop by design**: intervene anytime without breaking flow.
|
|
45
|
+
- **Multi-tab orchestration**: compile, inspect logs, and run fixes in parallel tabs.
|
|
46
|
+
- **Global tab inventory**: scan, reopen, drag, close, and create terminal/chat tabs from a dedicated list panel.
|
|
47
|
+
- **Workspace persistence**: terminal tabs, panel layout, and saved layout slots can survive restarts and restore quickly.
|
|
48
|
+
- **Detachable multi-window workspace**: peel panels into sub-windows and move tabs or whole panels across windows.
|
|
49
|
+
- **Adaptive panel tab display**: keep full tab strips or switch to a compact selector for narrow panel headers.
|
|
50
|
+
- **Reusable Agent setting profiles**: save and reapply complete operating profiles for models, tools, policies, memory, and workflow flags.
|
|
51
|
+
- **Cross-chat context handoff**: reference previous conversations from the composer with `Pass Chat` mentions instead of manually copying history.
|
|
52
|
+
- **Integrated file management**: browse, edit, copy, and transfer files across local and SSH sessions without leaving the workspace.
|
|
53
|
+
- **Live resource visibility**: inspect CPU, memory, disks, network, processes, sockets, and GPU from local or SSH sessions.
|
|
54
|
+
- **OpenClawd-style remote conversation control**: keep the runtime core on your own computer and steer it from anywhere through chat.
|
|
55
|
+
- **Built-in mobile-web delivery**: desktop can publish the mobile-web companion directly over your LAN with copyable access links.
|
|
56
|
+
- **Cross-surface runtime model**: desktop, TUI, and mobile-web share one gateway semantics.
|
|
57
|
+
- **Profile lock safety**: busy sessions pin active model profile for consistency.
|
|
58
|
+
- **Long-horizon context quality**: memory.md + compaction summaries + visible boundaries + deterministic fallback recovery keep long sessions understandable.
|
|
59
|
+
- **Tooling-native workflow**: skills, MCP servers, and built-in tools are runtime primitives.
|
|
60
|
+
- **Plugin system**: anyone can develop a custom plugin (agent tools, event triggers, dashboard panels) and have it auto-integrate on startup — 6 official plugins ship out of the box.
|
|
61
|
+
- **SRE observability pillar**: metrics ledger, golden signals, SLO/error budgets, uptime watchdogs, incident ledger with RCA + postmortems, anomaly detection, capacity forecasting, and a unified live dashboard.
|
|
62
|
+
- **APM + DEM + k8s/cloud infra**: OTLP distributed-trace store, Core Web Vitals (RUM), cluster health, and Windows ETW diagnostics.
|
|
63
|
+
- **Governance & audit**: hash-chained tamper-evident audit ledger with Merkle-tree evidence sealing, an AGT-style YAML policy engine (allow/deny/escalate), and a maker/checker review model that independently verifies the agent's output for correctness, completeness, safety, compliance, and accuracy.
|
|
64
|
+
|
|
65
|
+
### At a Glance
|
|
66
|
+
|
|
67
|
+
- **For shipping work**: not just planning, but iterative execution and correction.
|
|
68
|
+
- **For long-running tasks**: preserves session continuity and state across steps.
|
|
69
|
+
- **For real infrastructure**: shell, SSH, forwarding, file management, and multi-tab interactive terminal control.
|
|
70
|
+
- **For multi-device flow**: desktop + TUI + mobile-web with shared gateway semantics.
|
|
71
|
+
- **For multimodal workflows**: text and image inputs can be combined in one execution turn.
|
|
72
|
+
|
|
73
|
+
## Latest Highlights
|
|
74
|
+
|
|
75
|
+
**v2.7.x — Governance, plugins & the maker/checker model:**
|
|
76
|
+
- **Review model (maker/checker)** with a visible Settings UI — a second model independently verifies the action model's output (correctness, completeness, safety, compliance, accuracy); skipped when not configured for fast output.
|
|
77
|
+
- **AGT policy engine** — YAML policies (allow/deny/escalate) evaluated before every consequential action, with a built-in safe default policy.
|
|
78
|
+
- **Hash-chained audit ledger + Merkle evidence sealing** for tamper-evident, independently-verifiable audit trails.
|
|
79
|
+
- **Monitor diagnostics** — one-call answer to "why aren't stats displaying?" per terminal.
|
|
80
|
+
|
|
81
|
+
**v2.5–v2.6 — Plugin system + official plugin suite + APerf:**
|
|
82
|
+
- **Plugin system** — custom plugins (agent tools, triggers, dashboard panels) auto-integrate on startup; 6 official plugins ship out of the box (patch-manager, request-router, sop-assistant, iam-connector, fraudops, netdata-rterm).
|
|
83
|
+
- **AWS APerf deep-dive** — deploy aperf to any Linux host for deep performance profiling with agent RCA on the findings.
|
|
84
|
+
|
|
85
|
+
**v2.0–v2.4 — The SRE pillar + advanced automation:**
|
|
86
|
+
- **Full observability** — metrics ledger, golden signals, SLO/error budgets, uptime watchdogs, incident ledger (RCA + postmortems), anomaly detection, capacity forecasting, unified live dashboard.
|
|
87
|
+
- **APM/DEM/infra/ETW** — OTLP traces, Core Web Vitals, k8s/cloud health, Windows ETW diagnostics.
|
|
88
|
+
- **Advanced automation** — event-driven triggers (NATS mesh), DAG playbooks, parameterized runbooks, dagu workflows, MOP change management with automatic rollback.
|
|
89
|
+
|
|
90
|
+
**v1.6.0 — Workspace foundation:**
|
|
91
|
+
|
|
92
|
+
- **Global Tab List panel**
|
|
93
|
+
- a new `TAB LIST` panel shows terminal and chat tabs as a vertical workspace inventory, with counts, status dots, latest-first ordering, drag/drop support, close actions, and quick creation for chat, local terminal, and saved-SSH terminal tabs
|
|
94
|
+
- **Default workspace refresh**
|
|
95
|
+
- new main layouts start with the list panel on the left, chat in the center, and terminal on the right, making tab-heavy sessions easier to scan immediately
|
|
96
|
+
- **More predictable background terminal tabs**
|
|
97
|
+
- local and SSH tabs created from the list panel can start in the background, stay visible in the global terminal inventory, bind to terminal panels when appropriate, and no longer unexpectedly take over linked filesystem or monitor panels
|
|
98
|
+
- **Visible compaction boundaries**
|
|
99
|
+
- long chats now persist and render a `[CTX COMPACTED]` marker at the actual retained-history cutoff across desktop, mobile-web, and TUI clients
|
|
100
|
+
- **Deterministic compaction fallback**
|
|
101
|
+
- when the compaction model fails or returns an empty summary, GyShell can recover with a local deterministic digest while preserving the protected tail and exporting exact older history for on-demand inspection when available
|
|
102
|
+
- **Safer stream recovery**
|
|
103
|
+
- empty non-tool provider stream finishes now retry through the normal path instead of silently ending a run with no answer, while valid empty tool-call finishes remain routable
|
|
104
|
+
- **Terminal inventory stability**
|
|
105
|
+
- terminal titles stay unique and stable across duplicate backend snapshots, concurrent terminal creation, explicit numeric suffixes, and detached-window terminal transfers
|
|
106
|
+
- **Mobile-web runtime refresh**
|
|
107
|
+
- Electron-packaged mobile-web assets were regenerated so desktop builds serve the updated client without requiring a separate mobile-web development server
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Key Capabilities
|
|
112
|
+
|
|
113
|
+
### AI-Native Runtime
|
|
114
|
+
|
|
115
|
+
- Thinking-oriented execution for complex tasks.
|
|
116
|
+
- Context-aware responses from terminal state and selected resources.
|
|
117
|
+
- Per-profile model routing for `Global`, `Thinking`, `Action`, and `Compaction` roles.
|
|
118
|
+
- Reusable Agent Setting profiles for model profile, security policy, tools, skills, memory, recursion, and experimental workflow flags.
|
|
119
|
+
- Long-session context quality with dedicated compaction models, dynamic summaries, visible `[CTX COMPACTED]` boundary markers, and deterministic fallback recovery when model compaction is unavailable.
|
|
120
|
+
- SQLite-backed conversation history with automatic one-time migration from legacy JSON storage.
|
|
121
|
+
- AI-assisted terminal command drafting from recent tab context, with paste-before-run control.
|
|
122
|
+
- Background (nowait) commands automatically notify the agent on completion, so the agent can close the loop without polling.
|
|
123
|
+
- Terminal-targeting agent tools report runtime status and refuse stale operations on disconnected tabs until reconnect succeeds.
|
|
124
|
+
- Reference previous conversations with `Pass Chat` mentions; GyShell exports the selected chat as private local Markdown and tells the agent how to read it only when needed.
|
|
125
|
+
- Classic or Seamless chat activity display, depending on how much inline tool detail you want.
|
|
126
|
+
- Persistent memory injection via `memory.md`, scoped to the active Agent Setting profile when one is applied.
|
|
127
|
+
- Multimodal user input pipeline (text + images) for compatible models.
|
|
128
|
+
- OpenAI-compatible model endpoint support, with automatic recovery from malformed empty tool-call stream finishes.
|
|
129
|
+
- Optional experimental agent tools, including asynchronous cross-machine file transfer between terminal tabs with progress polling.
|
|
130
|
+
|
|
131
|
+
### Terminal + SSH + File Management
|
|
132
|
+
|
|
133
|
+
- Shell support: Zsh, Bash, PowerShell.
|
|
134
|
+
- Older Windows PowerShell environments now use more reliable sidecar-based command completion tracking for local and SSH sessions.
|
|
135
|
+
- SSH support: password/key auth, proxy chaining, bastion workflows.
|
|
136
|
+
- SSH sessions use protocol keepalive to reduce silent idle disconnects.
|
|
137
|
+
- Port forwarding: local, remote, and dynamic SOCKS.
|
|
138
|
+
- Agent can coordinate **multiple SSH/local terminal tabs** in parallel during one task.
|
|
139
|
+
- Control-character operations for interactive terminal apps.
|
|
140
|
+
- Draft a command for the current terminal tab from recent visible output, then paste it back without auto-running it.
|
|
141
|
+
- Search within the active terminal buffer without leaving the panel.
|
|
142
|
+
- Terminal tab restoration after backend restart, plus lossless output catch-up for renderer remount/reconnect within the same backend runtime.
|
|
143
|
+
- Local terminal tabs auto-respawn their shell if it exits, so a local tab stays usable instead of going dead.
|
|
144
|
+
- Disconnected SSH tabs can be reconnected in place from the tab right-click menu using their saved connection config.
|
|
145
|
+
- **Integrated file browser panel**: browse, create, rename, delete, preview, sort, filter, and search files across local and SSH sessions.
|
|
146
|
+
- **Cross-session file transfer** (copy/move) with real-time progress, cancellation, and adaptive SFTP tuning.
|
|
147
|
+
- **Built-in file editor panel** for editing text files, plus inline preview of images (`png/jpg/gif/webp/bmp/ico/svg/avif`) and PDFs (with page navigation and zoom), all directly in the workspace.
|
|
148
|
+
- **File row right-click menu** with Copy / Cut / Paste / Rename / Delete and **Copy Full Path(s)** to the system clipboard.
|
|
149
|
+
- **Paste conflict resolution**: choose between **Overwrite** and **Keep Both** (auto-numbered names) when pasting into a folder with same-named items.
|
|
150
|
+
|
|
151
|
+
### Workspace + Monitoring
|
|
152
|
+
|
|
153
|
+
- Detach panels into dedicated sub-windows and move tabs or whole panels across windows.
|
|
154
|
+
- Use the global Tab List panel to scan terminal/chat inventory, restore unhosted tabs, drag tabs across layout targets, close tabs, and create new chat/local/SSH tabs without forcing a terminal panel to appear.
|
|
155
|
+
- Save up to three workspace layout slots and restore them from the rail.
|
|
156
|
+
- Optionally keep the computer awake while any chat session is running, with the system-sleep block released automatically when runs finish.
|
|
157
|
+
- Chat tabs show a running indicator while a session is busy, mirroring terminal tab runtime-state dots.
|
|
158
|
+
- Choose `Auto`, `Expanded`, or `Select` panel tab display modes based on how much header space your workspace has.
|
|
159
|
+
- `Ctrl/Cmd+F` opens a panel-local find bar in terminal, current chat, file browser, and file editor.
|
|
160
|
+
- Open a resource monitor panel for local and SSH terminals from the workspace rail.
|
|
161
|
+
- Monitor panel surfaces CPU, memory, disk, network, process, socket, and GPU telemetry when available.
|
|
162
|
+
- Monitor collection is shared across tabs that point at the same local or SSH target, with failover if the original source tab exits.
|
|
163
|
+
- Monitor polling can be paused or resumed per local/SSH source, with the preference kept across restarts.
|
|
164
|
+
- Compact monitor layouts now give GPU telemetry its own card with clearer VRAM usage details.
|
|
165
|
+
|
|
166
|
+
### Skills + MCP + Tools
|
|
167
|
+
|
|
168
|
+
- Folder-based skills workflow compatible with agentskills-style structure.
|
|
169
|
+
- Dynamic MCP server integration.
|
|
170
|
+
- Precision editing tools for safe, targeted file updates.
|
|
171
|
+
- Runtime tool toggles and summaries exposed to clients.
|
|
172
|
+
|
|
173
|
+
### Plugin System (v2.5+)
|
|
174
|
+
|
|
175
|
+
- **Custom plugins** auto-integrate on startup: drop a folder with `plugin.json` + `index.mjs` into `~/.gybackend-data/plugins/` — the agent gets your tools, triggers, and dashboard panels immediately.
|
|
176
|
+
- **6 official plugins ship out of the box** (21 tools, 10 triggers, 6 panels):
|
|
177
|
+
- **patch-manager** — autonomous patch management (discover patches via yum/apt/Windows Update, build deployment plans, execute with MOP approval, fleet-wide compliance dashboard).
|
|
178
|
+
- **request-router** — automated request handling (submit/approve/list requests with risk classification → auto-approve/queue/MOP routing).
|
|
179
|
+
- **sop-assistant** — SOP retrieval + step-by-step guided execution; 8 built-in SOPs (restart-service, disk-cleanup, database-failover, incident-response, …) + IAM policy lookup.
|
|
180
|
+
- **iam-connector** — IAM integration (user/group info, privileged access identification, access reviews, disable users with approval) on Linux + Windows.
|
|
181
|
+
- **fraudops** — FraudOps operational layer (Flink/NATS/Kafka pipeline health, STR workflow with deadlines, decision summaries).
|
|
182
|
+
- **netdata-rterm** — Netdata Cloud alert webhook ingestion + correlation with RTerm metrics/incidents for RCA and auto-remediation.
|
|
183
|
+
|
|
184
|
+
### SRE Observability (v2.0+)
|
|
185
|
+
|
|
186
|
+
- **Metrics ledger** with per-second snapshots per host (cpu/mem/disk/net/load/gpu) and trend forecasting ("disk full in N days").
|
|
187
|
+
- **Golden signals** per host (saturation/traffic/latency/errors) + capacity forecast.
|
|
188
|
+
- **Uptime watchdogs** (tcp/ssh/http/command liveness), up/degraded/down with alerting.
|
|
189
|
+
- **SLO/SLI** with error budget + burn rate + fast-burn alerting.
|
|
190
|
+
- **Incident ledger** with timelines, AI root-cause analysis, and postmortems.
|
|
191
|
+
- **Anomaly detection** (z-score + robust z-score) + predictive early warnings with optional MOP auto-remediation.
|
|
192
|
+
- **APM** — OTLP distributed-trace store (per-service p50/95/99, error rate, bottleneck services).
|
|
193
|
+
- **DEM/RUM** — Core Web Vitals (LCP/INP/CLS/TTFB) per page + error rate.
|
|
194
|
+
- **k8s/cloud infra** — cluster health (pods, restarts, node readiness, cpu/mem % of limit).
|
|
195
|
+
- **Windows ETW diagnostics** — built-in ETW providers (network/file/registry/process), agentless.
|
|
196
|
+
- **UEBA behavior ledger** — agent run baselines + deviations (run-spike, token-blowout, error-spike, unusual-model).
|
|
197
|
+
- **Embedded eval harness** — measures the agent's accuracy, tool selection, safety/policy compliance, and determinism.
|
|
198
|
+
- **Unified live dashboard** + browser-renderable HTML dashboard.
|
|
199
|
+
- **AWS APerf deep-dive** (v2.6+) — deploy aperf to any Linux host for deep CPU/PMU/process profiling with parsed findings feeding the agent's RCA.
|
|
200
|
+
|
|
201
|
+
### Governance, Audit & the Maker/Checker Model (v2.7+)
|
|
202
|
+
|
|
203
|
+
- **Hash-chained audit ledger** — every agent action, command evaluation, approval, MOP change, and playbook step is recorded with the SHA-256 hash of the previous record (tamper-evident), plus **Merkle-tree evidence sealing** for independently-verifiable audit bundles.
|
|
204
|
+
- **AGT policy engine** — YAML policies evaluated before every consequential action (allow/deny/escalate); glob action patterns, target wildcards (`prod-*`), agent identity + sponsoring principal for zero-trust.
|
|
205
|
+
- **Review model (maker/checker)** — a second model independently verifies the action model's output on 5 dimensions: correctness, completeness, safety, compliance, and accuracy. Three modes (strict/advisory/auto-approve); skipped entirely when no review model is configured (fast output mode).
|
|
206
|
+
- **Monitor diagnostics** — one-call answer to "why aren't stats displaying?" per terminal (publisher wired? session exists? collection stuck? connected? last-collect time?).
|
|
207
|
+
|
|
208
|
+
### Automation & Change Management
|
|
209
|
+
|
|
210
|
+
- **Playbooks** with validation + automatic rollback; **DAG/orchestrated playbooks** with parallel waves.
|
|
211
|
+
- **Event-driven triggers** (pattern/threshold/webhook/schedule) firing playbooks or proposing MOP changes, with cooldown + concurrency caps.
|
|
212
|
+
- **MOP change management** — plan → approve → run → status with a durable change ledger and automatic rollback on validation failure.
|
|
213
|
+
- **Scheduled tasks** (5-field cron) running headless inside the daemon.
|
|
214
|
+
- **dagu workflows** — run declarative dagu YAML DAGs natively on the orchestrated playbook engine, no dagu server required.
|
|
215
|
+
- **Parameterized runbooks** with `{{param}}` substitution + secret masking; idempotent `desiredState` steps; cross-host `captureVar`.
|
|
216
|
+
- **NATS event mesh** — fleet-wide trigger fan-out across multiple RTerm backends.
|
|
217
|
+
|
|
218
|
+
### Mobile-Web Companion
|
|
219
|
+
|
|
220
|
+
- Mobile-first remote client for active session tracking and steering.
|
|
221
|
+
- Desktop can serve the mobile-web companion directly and expose copyable access links from settings.
|
|
222
|
+
- OpenClawd-style conversational control from anywhere while your core runtime stays on your own machine.
|
|
223
|
+
- Session list with search and status hints.
|
|
224
|
+
- Pending approval badge with jump-to-blocked-session behavior, plus task-completion toasts.
|
|
225
|
+
- Conversation rollback and branch-from-message controls from mobile.
|
|
226
|
+
- Swipe-to-delete session flow for faster mobile cleanup.
|
|
227
|
+
- Read-only terminal output tails with unread indicators, local/saved-SSH terminal creation, and SSH reconnect.
|
|
228
|
+
- Detailed turn event inspection from phone browser.
|
|
229
|
+
- Tool, skill, Agent Setting profile, terminal, and settings access through gateway RPC.
|
|
230
|
+
- Long chat timelines avoid full-list rerenders during composer input, keeping history-heavy mobile sessions responsive.
|
|
231
|
+
- Gateway exposure can now be limited to localhost, LAN-only, custom CIDR ranges, or all interfaces.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Platforms
|
|
236
|
+
|
|
237
|
+
1. **Electron desktop app** (`apps/electron`)
|
|
238
|
+
2. **Standalone backend runtime** (`apps/gybackend`)
|
|
239
|
+
3. **Deprecated TUI runtime** (`apps/tui` wrapper + `packages/tui` core)
|
|
240
|
+
4. **Mobile-web runtime** (`apps/mobile-web` wrapper + `packages/mobile-web` core)
|
|
241
|
+
|
|
242
|
+
### Which Surface Should You Use?
|
|
243
|
+
|
|
244
|
+
- **Desktop app**: primary full-featured experience for daily development.
|
|
245
|
+
- **TUI (`gyll`)**: deprecated and unsupported. Desktop packages no longer bundle or install `gyll`.
|
|
246
|
+
- **Mobile-web**: OpenClawd-style remote conversational control from phone/browser.
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Quick Start
|
|
251
|
+
|
|
252
|
+
### Prerequisites
|
|
253
|
+
|
|
254
|
+
- Node.js 18+
|
|
255
|
+
- npm
|
|
256
|
+
|
|
257
|
+
### Development
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
git clone https://github.com/MrOrangeJJ/RTerm.git
|
|
261
|
+
cd RTerm
|
|
262
|
+
npm install
|
|
263
|
+
npm run dev
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### One-line Mental Model
|
|
267
|
+
|
|
268
|
+
`RTerm = persistent AI runtime + real terminal control + human override at any time.`
|
|
269
|
+
|
|
270
|
+
### Mobile-web development
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
npm run dev:mobile-web
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Deprecated CLI (`gyll`)
|
|
279
|
+
|
|
280
|
+
After installing and launching RTerm desktop once, `gyll` is available from the desktop runtime setup.
|
|
281
|
+
|
|
282
|
+
When an existing user updates from a version that installed desktop-managed `gyll` launchers, the updated app removes those legacy launchers on startup while leaving any shell profile PATH block untouched.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Architecture Notes
|
|
287
|
+
|
|
288
|
+
RTerm follows strict layering:
|
|
289
|
+
|
|
290
|
+
- `packages/*`: implementation logic.
|
|
291
|
+
- `apps/*`: composition/bootstrap/build wrappers.
|
|
292
|
+
- Frontend logic does not belong in `packages/backend`.
|
|
293
|
+
|
|
294
|
+
Core runtime chain (simplified):
|
|
295
|
+
|
|
296
|
+
1. `startElectronMain` (desktop composition root)
|
|
297
|
+
2. `GatewayService` (session runtime + transport-agnostic orchestration)
|
|
298
|
+
3. `WebSocketGatewayControlService` (policy-based ws gateway control)
|
|
299
|
+
4. `WebSocketGatewayAdapter` / `ElectronWindowTransport` (transport implementations)
|
|
300
|
+
5. Client controllers in TUI and mobile-web
|
|
301
|
+
|
|
302
|
+
See:
|
|
303
|
+
|
|
304
|
+
- `docs/monorepo-architecture.md`
|
|
305
|
+
- `docs/build-commands.md`
|
|
306
|
+
|
|
307
|
+
## Privacy and Update Policy
|
|
308
|
+
|
|
309
|
+
- Version checks query only this repository's GitHub `version.json`.
|
|
310
|
+
- No third-party auto-update endpoint is used.
|
|
311
|
+
- Version check is the only automatic background network request.
|
|
312
|
+
|
|
313
|
+
## Read More
|
|
314
|
+
|
|
315
|
+
- Release notes: `changelogs/v1.6.0.md`
|
|
316
|
+
- Build matrix and packaging: `docs/build-commands.md`
|
|
317
|
+
- Monorepo boundaries and runtime flow: `docs/monorepo-architecture.md`
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## Build and Packaging
|
|
322
|
+
|
|
323
|
+
- `npm run build`
|
|
324
|
+
- `npm run build:backend`
|
|
325
|
+
- `npm run build:tui`
|
|
326
|
+
- `npm run build:mobile-web`
|
|
327
|
+
- `npm run dist`
|
|
328
|
+
- `npm run dist:mac`
|
|
329
|
+
- `npm run dist:win`
|
|
330
|
+
- `npm run dist:linux`
|
|
331
|
+
- `npm run dist:linux-arm64`
|
|
332
|
+
- `./build.sh --help`
|
|
333
|
+
|
|
334
|
+
For the full command matrix and packaging notes, see `docs/build-commands.md`.
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## License
|
|
339
|
+
|
|
340
|
+
This project is licensed under the **Apache License, Version 2.0** ([LICENSE](./LICENSE)).
|
|
341
|
+
|
|
342
|
+
Special acknowledgment: inspirations and references from [Tabby](https://github.com/Eugeny/tabby) (MIT).
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
**RTerm** - _The shell that thinks with you._
|