@jrichman/ink 6.3.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/build/colorize.d.ts +3 -0
- package/build/colorize.js +48 -0
- package/build/colorize.js.map +1 -0
- package/build/components/AccessibilityContext.d.ts +3 -0
- package/build/components/AccessibilityContext.js +5 -0
- package/build/components/AccessibilityContext.js.map +1 -0
- package/build/components/App.d.ts +59 -0
- package/build/components/App.js +286 -0
- package/build/components/App.js.map +1 -0
- package/build/components/AppContext.d.ts +11 -0
- package/build/components/AppContext.js +11 -0
- package/build/components/AppContext.js.map +1 -0
- package/build/components/BackgroundContext.d.ts +4 -0
- package/build/components/BackgroundContext.js +3 -0
- package/build/components/BackgroundContext.js.map +1 -0
- package/build/components/Box.d.ts +122 -0
- package/build/components/Box.js +34 -0
- package/build/components/Box.js.map +1 -0
- package/build/components/ErrorOverview.d.ts +6 -0
- package/build/components/ErrorOverview.js +84 -0
- package/build/components/ErrorOverview.js.map +1 -0
- package/build/components/FocusContext.d.ts +16 -0
- package/build/components/FocusContext.js +17 -0
- package/build/components/FocusContext.js.map +1 -0
- package/build/components/Newline.d.ts +13 -0
- package/build/components/Newline.js +8 -0
- package/build/components/Newline.js.map +1 -0
- package/build/components/Spacer.d.ts +7 -0
- package/build/components/Spacer.js +11 -0
- package/build/components/Spacer.js.map +1 -0
- package/build/components/Static.d.ts +24 -0
- package/build/components/Static.js +28 -0
- package/build/components/Static.js.map +1 -0
- package/build/components/StderrContext.d.ts +15 -0
- package/build/components/StderrContext.js +13 -0
- package/build/components/StderrContext.js.map +1 -0
- package/build/components/StdinContext.d.ts +22 -0
- package/build/components/StdinContext.js +19 -0
- package/build/components/StdinContext.js.map +1 -0
- package/build/components/StdoutContext.d.ts +15 -0
- package/build/components/StdoutContext.js +13 -0
- package/build/components/StdoutContext.js.map +1 -0
- package/build/components/Text.d.ts +55 -0
- package/build/components/Text.js +50 -0
- package/build/components/Text.js.map +1 -0
- package/build/components/Transform.d.ts +16 -0
- package/build/components/Transform.js +15 -0
- package/build/components/Transform.js.map +1 -0
- package/build/devtools-window-polyfill.d.ts +1 -0
- package/build/devtools-window-polyfill.js +65 -0
- package/build/devtools-window-polyfill.js.map +1 -0
- package/build/devtools.d.ts +1 -0
- package/build/devtools.js +2 -0
- package/build/devtools.js.map +1 -0
- package/build/dom.d.ts +62 -0
- package/build/dom.js +123 -0
- package/build/dom.js.map +1 -0
- package/build/get-max-width.d.ts +3 -0
- package/build/get-max-width.js +10 -0
- package/build/get-max-width.js.map +1 -0
- package/build/hooks/use-app.d.ts +5 -0
- package/build/hooks/use-app.js +8 -0
- package/build/hooks/use-app.js.map +1 -0
- package/build/hooks/use-focus-manager.d.ts +28 -0
- package/build/hooks/use-focus-manager.js +17 -0
- package/build/hooks/use-focus-manager.js.map +1 -0
- package/build/hooks/use-focus.d.ts +29 -0
- package/build/hooks/use-focus.js +42 -0
- package/build/hooks/use-focus.js.map +1 -0
- package/build/hooks/use-input.d.ts +93 -0
- package/build/hooks/use-input.js +93 -0
- package/build/hooks/use-input.js.map +1 -0
- package/build/hooks/use-is-screen-reader-enabled.d.ts +5 -0
- package/build/hooks/use-is-screen-reader-enabled.js +11 -0
- package/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
- package/build/hooks/use-stderr.d.ts +5 -0
- package/build/hooks/use-stderr.js +8 -0
- package/build/hooks/use-stderr.js.map +1 -0
- package/build/hooks/use-stdin.d.ts +5 -0
- package/build/hooks/use-stdin.js +8 -0
- package/build/hooks/use-stdin.js.map +1 -0
- package/build/hooks/use-stdout.d.ts +5 -0
- package/build/hooks/use-stdout.js +8 -0
- package/build/hooks/use-stdout.js.map +1 -0
- package/build/index.d.ts +28 -0
- package/build/index.js +17 -0
- package/build/index.js.map +1 -0
- package/build/ink.d.ts +43 -0
- package/build/ink.js +315 -0
- package/build/ink.js.map +1 -0
- package/build/instances.d.ts +3 -0
- package/build/instances.js +8 -0
- package/build/instances.js.map +1 -0
- package/build/log-update.d.ts +15 -0
- package/build/log-update.js +109 -0
- package/build/log-update.js.map +1 -0
- package/build/measure-element.d.ts +38 -0
- package/build/measure-element.js +118 -0
- package/build/measure-element.js.map +1 -0
- package/build/measure-text.d.ts +6 -0
- package/build/measure-text.js +21 -0
- package/build/measure-text.js.map +1 -0
- package/build/output.d.ts +36 -0
- package/build/output.js +191 -0
- package/build/output.js.map +1 -0
- package/build/parse-keypress.d.ts +14 -0
- package/build/parse-keypress.js +225 -0
- package/build/parse-keypress.js.map +1 -0
- package/build/reconciler.d.ts +4 -0
- package/build/reconciler.js +254 -0
- package/build/reconciler.js.map +1 -0
- package/build/render-background.d.ts +4 -0
- package/build/render-background.js +25 -0
- package/build/render-background.js.map +1 -0
- package/build/render-border.d.ts +4 -0
- package/build/render-border.js +73 -0
- package/build/render-border.js.map +1 -0
- package/build/render-node-to-output.d.ts +14 -0
- package/build/render-node-to-output.js +296 -0
- package/build/render-node-to-output.js.map +1 -0
- package/build/render.d.ts +87 -0
- package/build/render.js +50 -0
- package/build/render.js.map +1 -0
- package/build/renderer.d.ts +8 -0
- package/build/renderer.js +55 -0
- package/build/renderer.js.map +1 -0
- package/build/scroll.d.ts +8 -0
- package/build/scroll.js +35 -0
- package/build/scroll.js.map +1 -0
- package/build/squash-text-nodes.d.ts +3 -0
- package/build/squash-text-nodes.js +35 -0
- package/build/squash-text-nodes.js.map +1 -0
- package/build/styles.d.ts +260 -0
- package/build/styles.js +257 -0
- package/build/styles.js.map +1 -0
- package/build/wrap-text.d.ts +3 -0
- package/build/wrap-text.js +31 -0
- package/build/wrap-text.js.map +1 -0
- package/license +9 -0
- package/package.json +194 -0
- package/readme.md +2331 -0
package/package.json
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jrichman/ink",
|
|
3
|
+
"version": "6.3.1",
|
|
4
|
+
"description": "React for CLI local version for Gemini CLI",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "jacob314/ink",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Jacob Richman",
|
|
9
|
+
"email": "jacob314@gmail.com",
|
|
10
|
+
"url": "https://github.com/jacob314"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"exports": {
|
|
14
|
+
"types": "./build/index.d.ts",
|
|
15
|
+
"default": "./build/index.js"
|
|
16
|
+
},
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=20"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "tsc --watch",
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"prepare": "npm run build",
|
|
24
|
+
"test": "tsc --noEmit && xo && FORCE_COLOR=true ava",
|
|
25
|
+
"example": "NODE_NO_WARNINGS=1 node --loader ts-node/esm",
|
|
26
|
+
"benchmark": "NODE_NO_WARNINGS=1 node --loader ts-node/esm"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"build"
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"react",
|
|
33
|
+
"cli",
|
|
34
|
+
"jsx",
|
|
35
|
+
"stdout",
|
|
36
|
+
"components",
|
|
37
|
+
"command-line",
|
|
38
|
+
"preact",
|
|
39
|
+
"redux",
|
|
40
|
+
"print",
|
|
41
|
+
"render",
|
|
42
|
+
"colors",
|
|
43
|
+
"text"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@alcalzone/ansi-tokenize": "^0.2.0",
|
|
47
|
+
"ansi-escapes": "^7.0.0",
|
|
48
|
+
"ansi-styles": "^6.2.1",
|
|
49
|
+
"auto-bind": "^5.0.1",
|
|
50
|
+
"chalk": "^5.6.0",
|
|
51
|
+
"cli-boxes": "^3.0.0",
|
|
52
|
+
"cli-cursor": "^4.0.0",
|
|
53
|
+
"cli-truncate": "^4.0.0",
|
|
54
|
+
"code-excerpt": "^4.0.0",
|
|
55
|
+
"es-toolkit": "^1.39.10",
|
|
56
|
+
"indent-string": "^5.0.0",
|
|
57
|
+
"is-in-ci": "^2.0.0",
|
|
58
|
+
"patch-console": "^2.0.0",
|
|
59
|
+
"react-reconciler": "^0.32.0",
|
|
60
|
+
"signal-exit": "^3.0.7",
|
|
61
|
+
"slice-ansi": "^7.1.0",
|
|
62
|
+
"stack-utils": "^2.0.6",
|
|
63
|
+
"string-width": "^8.1.0",
|
|
64
|
+
"type-fest": "^4.27.0",
|
|
65
|
+
"widest-line": "^5.0.0",
|
|
66
|
+
"wrap-ansi": "^9.0.0",
|
|
67
|
+
"ws": "^8.18.0",
|
|
68
|
+
"yoga-layout": "~3.2.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@faker-js/faker": "^9.8.0",
|
|
72
|
+
"@sindresorhus/tsconfig": "^7.0.0",
|
|
73
|
+
"@sinonjs/fake-timers": "^14.0.0",
|
|
74
|
+
"@types/ms": "^2.1.0",
|
|
75
|
+
"@types/node": "^22.15.24",
|
|
76
|
+
"@types/react": "^19.1.8",
|
|
77
|
+
"@types/react-reconciler": "^0.32.0",
|
|
78
|
+
"@types/signal-exit": "^3.0.0",
|
|
79
|
+
"@types/sinon": "^17.0.3",
|
|
80
|
+
"@types/stack-utils": "^2.0.2",
|
|
81
|
+
"@types/ws": "^8.18.1",
|
|
82
|
+
"@vdemedes/prettier-config": "^2.0.1",
|
|
83
|
+
"ava": "^5.1.1",
|
|
84
|
+
"boxen": "^8.0.1",
|
|
85
|
+
"delay": "^6.0.0",
|
|
86
|
+
"eslint-config-xo-react": "0.27.0",
|
|
87
|
+
"eslint-plugin-react": "^7.37.5",
|
|
88
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
89
|
+
"ms": "^2.1.3",
|
|
90
|
+
"node-pty": "^1.0.0",
|
|
91
|
+
"p-queue": "^8.0.0",
|
|
92
|
+
"prettier": "^3.3.3",
|
|
93
|
+
"react": "^19.1.0",
|
|
94
|
+
"react-devtools-core": "^6.1.2",
|
|
95
|
+
"sinon": "^20.0.0",
|
|
96
|
+
"strip-ansi": "^7.1.0",
|
|
97
|
+
"ts-node": "^10.9.2",
|
|
98
|
+
"typescript": "^5.8.3",
|
|
99
|
+
"xo": "^0.59.3"
|
|
100
|
+
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"@types/react": ">=19.0.0",
|
|
103
|
+
"react": ">=19.0.0",
|
|
104
|
+
"react-devtools-core": "^6.1.2"
|
|
105
|
+
},
|
|
106
|
+
"peerDependenciesMeta": {
|
|
107
|
+
"@types/react": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"react-devtools-core": {
|
|
111
|
+
"optional": true
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"ava": {
|
|
115
|
+
"workerThreads": false,
|
|
116
|
+
"files": [
|
|
117
|
+
"test/**/*",
|
|
118
|
+
"!test/helpers/**/*",
|
|
119
|
+
"!test/fixtures/**/*"
|
|
120
|
+
],
|
|
121
|
+
"extensions": {
|
|
122
|
+
"ts": "module",
|
|
123
|
+
"tsx": "module"
|
|
124
|
+
},
|
|
125
|
+
"nodeArguments": [
|
|
126
|
+
"--loader=ts-node/esm"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"xo": {
|
|
130
|
+
"extends": [
|
|
131
|
+
"xo-react"
|
|
132
|
+
],
|
|
133
|
+
"plugins": [
|
|
134
|
+
"react"
|
|
135
|
+
],
|
|
136
|
+
"prettier": true,
|
|
137
|
+
"rules": {
|
|
138
|
+
"react/no-unescaped-entities": "off",
|
|
139
|
+
"react/state-in-constructor": "off",
|
|
140
|
+
"react/jsx-indent": "off",
|
|
141
|
+
"react/prop-types": "off",
|
|
142
|
+
"unicorn/import-index": "off",
|
|
143
|
+
"import/no-useless-path-segments": "off",
|
|
144
|
+
"react-hooks/exhaustive-deps": "off",
|
|
145
|
+
"complexity": "off"
|
|
146
|
+
},
|
|
147
|
+
"ignores": [
|
|
148
|
+
"src/parse-keypress.ts"
|
|
149
|
+
],
|
|
150
|
+
"overrides": [
|
|
151
|
+
{
|
|
152
|
+
"files": [
|
|
153
|
+
"src/**/*.{ts,tsx}",
|
|
154
|
+
"test/**/*.{ts,tsx}"
|
|
155
|
+
],
|
|
156
|
+
"rules": {
|
|
157
|
+
"no-unused-expressions": "off",
|
|
158
|
+
"camelcase": [
|
|
159
|
+
"error",
|
|
160
|
+
{
|
|
161
|
+
"allow": [
|
|
162
|
+
"^unstable__",
|
|
163
|
+
"^internal_"
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"unicorn/filename-case": "off",
|
|
168
|
+
"react/default-props-match-prop-types": "off",
|
|
169
|
+
"unicorn/prevent-abbreviations": "off",
|
|
170
|
+
"react/require-default-props": "off",
|
|
171
|
+
"react/jsx-curly-brace-presence": "off",
|
|
172
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
173
|
+
"@typescript-eslint/promise-function-async": "warn",
|
|
174
|
+
"@typescript-eslint/explicit-function-return": "off",
|
|
175
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
176
|
+
"dot-notation": "off",
|
|
177
|
+
"react/boolean-prop-naming": "off",
|
|
178
|
+
"unicorn/prefer-dom-node-remove": "off",
|
|
179
|
+
"unicorn/prefer-event-target": "off"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"files": [
|
|
184
|
+
"examples/**/*.{ts,tsx}",
|
|
185
|
+
"benchmark/**/*.{ts,tsx}"
|
|
186
|
+
],
|
|
187
|
+
"rules": {
|
|
188
|
+
"import/no-unassigned-import": "off"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"prettier": "@vdemedes/prettier-config"
|
|
194
|
+
}
|