@rungent/react 0.0.0-stage → 0.6.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 +18 -0
- package/README.md +45 -2
- package/dist/client-BxNE_rPk.js +1167 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/index-B2fKzvt5.d.ts +539 -0
- package/dist/index.d.ts +375 -0
- package/dist/index.js +3643 -0
- package/dist/styles.css +1833 -0
- package/package.json +77 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Rungent Contributors
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
|
18
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @rungent/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The frontend of [rungent](https://rungent.acahti.dev): the assistant dock, approval cards, forms,
|
|
4
|
+
⌘K search and help viewer for React 19, and the typed HTTP client any frontend can use. It talks to
|
|
5
|
+
a rungent runtime over HTTP and installs none of it.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @rungent/react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
| Import | What it is | Runs on |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `@rungent/react` | `RungentProvider`, `RungentDock`, `RungentThread`, `ApprovalCard`, `RungentForm`, `SearchPalette`, `HelpViewer`, `ModelSettings`, hooks and strings | browser (React 19) |
|
|
14
|
+
| `@rungent/react/styles.css` | The components' styles | browser |
|
|
15
|
+
| `@rungent/react/client` | `createClient`, the typed client of the HTTP API, and `reduceThread`, the AG-UI thread reducer; no React | browser, Node |
|
|
16
|
+
|
|
17
|
+
`react` and `react-dom` are optional peer dependencies, needed only for `@rungent/react`.
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { createClient } from '@rungent/react/client';
|
|
21
|
+
import { RungentDock, RungentProvider, SearchPalette } from '@rungent/react';
|
|
22
|
+
import '@rungent/react/styles.css';
|
|
23
|
+
|
|
24
|
+
const client = createClient(); // same origin; the client adds /rungent/v0
|
|
25
|
+
|
|
26
|
+
export function Shell({ children }: { children: React.ReactNode }) {
|
|
27
|
+
return (
|
|
28
|
+
<RungentProvider client={client} onOpen={(path) => router.push(path)}>
|
|
29
|
+
<RungentDock>{children}</RungentDock>
|
|
30
|
+
<SearchPalette />
|
|
31
|
+
</RungentProvider>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
⌘/Ctrl+J toggles the dock and ⌘/Ctrl+K opens search. Theme with the `--rungent-*` CSS variables.
|
|
37
|
+
The guides are at [rungent.acahti.dev](https://rungent.acahti.dev).
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pnpm --filter @rungent/react test # client and component tests
|
|
43
|
+
pnpm --filter @rungent/react example # the components against a fake server
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
License: Apache-2.0.
|