@agentick/tui 0.2.1
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 +167 -0
- package/dist/bin.d.ts +12 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +199 -0
- package/dist/bin.js.map +1 -0
- package/dist/components/ErrorDisplay.d.ts +12 -0
- package/dist/components/ErrorDisplay.d.ts.map +1 -0
- package/dist/components/ErrorDisplay.js +17 -0
- package/dist/components/ErrorDisplay.js.map +1 -0
- package/dist/components/InputBar.d.ts +13 -0
- package/dist/components/InputBar.d.ts.map +1 -0
- package/dist/components/InputBar.js +20 -0
- package/dist/components/InputBar.js.map +1 -0
- package/dist/components/MessageList.d.ts +12 -0
- package/dist/components/MessageList.d.ts.map +1 -0
- package/dist/components/MessageList.js +81 -0
- package/dist/components/MessageList.js.map +1 -0
- package/dist/components/StreamingMessage.d.ts +7 -0
- package/dist/components/StreamingMessage.d.ts.map +1 -0
- package/dist/components/StreamingMessage.js +15 -0
- package/dist/components/StreamingMessage.js.map +1 -0
- package/dist/components/TUIApp.d.ts +18 -0
- package/dist/components/TUIApp.d.ts.map +1 -0
- package/dist/components/TUIApp.js +97 -0
- package/dist/components/TUIApp.js.map +1 -0
- package/dist/components/ToolCallIndicator.d.ts +12 -0
- package/dist/components/ToolCallIndicator.d.ts.map +1 -0
- package/dist/components/ToolCallIndicator.js +49 -0
- package/dist/components/ToolCallIndicator.js.map +1 -0
- package/dist/components/ToolConfirmationPrompt.d.ts +14 -0
- package/dist/components/ToolConfirmationPrompt.d.ts.map +1 -0
- package/dist/components/ToolConfirmationPrompt.js +33 -0
- package/dist/components/ToolConfirmationPrompt.js.map +1 -0
- package/dist/create-tui.d.ts +44 -0
- package/dist/create-tui.d.ts.map +1 -0
- package/dist/create-tui.js +29 -0
- package/dist/create-tui.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/testing.d.ts +31 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +31 -0
- package/dist/testing.js.map +1 -0
- package/dist/ui/chat.d.ts +18 -0
- package/dist/ui/chat.d.ts.map +1 -0
- package/dist/ui/chat.js +97 -0
- package/dist/ui/chat.js.map +1 -0
- package/dist/ui/index.d.ts +8 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +5 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +73 -0
- package/src/index.ts +45 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,mDAAmD;AACnD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentick/tui",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Terminal UI for Agentick agents using Ink",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agent",
|
|
7
|
+
"ai",
|
|
8
|
+
"ink",
|
|
9
|
+
"terminal",
|
|
10
|
+
"tui"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Ryan Lindgren",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/agenticklabs/agentick.git",
|
|
17
|
+
"directory": "packages/tui"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"agentick-tui": "./dist/bin.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "src/index.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./src/index.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/index.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"main": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsc -p tsconfig.build.json",
|
|
46
|
+
"dev": "tsc --watch",
|
|
47
|
+
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
48
|
+
"clean": "rm -rf dist",
|
|
49
|
+
"lint": "oxlint src/",
|
|
50
|
+
"format:check": "oxfmt --check src/",
|
|
51
|
+
"start": "tsx --tsconfig tsconfig.json src/bin.ts",
|
|
52
|
+
"test": "vitest run --config vitest.config.ts",
|
|
53
|
+
"test:watch": "vitest --config vitest.config.ts"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@agentick/client": "workspace:*",
|
|
57
|
+
"@agentick/core": "workspace:*",
|
|
58
|
+
"@agentick/react": "workspace:*",
|
|
59
|
+
"@agentick/shared": "workspace:*",
|
|
60
|
+
"eventsource": "^2.0.2",
|
|
61
|
+
"ink": "^5.1.0",
|
|
62
|
+
"ink-spinner": "^5.0.0",
|
|
63
|
+
"ink-text-input": "^6.0.0",
|
|
64
|
+
"react": "^19.0.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@types/eventsource": "^1.1.15",
|
|
68
|
+
"@types/react": "^19.2.13",
|
|
69
|
+
"ink-testing-library": "^4.0.0",
|
|
70
|
+
"typescript": "^5.7.3",
|
|
71
|
+
"vitest": "^4.0.18"
|
|
72
|
+
}
|
|
73
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agentick/tui - Terminal UI for Agentick
|
|
3
|
+
*
|
|
4
|
+
* Ink-based terminal UI that reuses @agentick/react hooks.
|
|
5
|
+
* Works with both local (in-process) and remote agents.
|
|
6
|
+
*
|
|
7
|
+
* @example Local agent
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { createApp } from '@agentick/core';
|
|
10
|
+
* import { createTUI } from '@agentick/tui';
|
|
11
|
+
*
|
|
12
|
+
* const app = createApp(MyAgent, { model });
|
|
13
|
+
* createTUI({ app }).start();
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @example Remote agent
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import { createTUI } from '@agentick/tui';
|
|
19
|
+
*
|
|
20
|
+
* createTUI({ url: 'https://my-agent.fly.dev/api' }).start();
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example Custom UI
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import { createTUI } from '@agentick/tui';
|
|
26
|
+
* import { MyDashboard } from './my-dashboard.js';
|
|
27
|
+
*
|
|
28
|
+
* createTUI({ app, ui: MyDashboard }).start();
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @module @agentick/tui
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
export { createTUI, type TUIOptions, type TUIComponent } from "./create-tui.js";
|
|
35
|
+
|
|
36
|
+
// Built-in UIs
|
|
37
|
+
export { Chat } from "./ui/chat.js";
|
|
38
|
+
|
|
39
|
+
// Components for custom UI composition
|
|
40
|
+
export { MessageList } from "./components/MessageList.js";
|
|
41
|
+
export { StreamingMessage } from "./components/StreamingMessage.js";
|
|
42
|
+
export { ToolCallIndicator } from "./components/ToolCallIndicator.js";
|
|
43
|
+
export { ToolConfirmationPrompt } from "./components/ToolConfirmationPrompt.js";
|
|
44
|
+
export { ErrorDisplay } from "./components/ErrorDisplay.js";
|
|
45
|
+
export { InputBar } from "./components/InputBar.js";
|