@chosengeneration/light-code 0.77.0 → 0.89.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 +18 -3
- package/dist/cli.cjs +75502 -0
- package/dist/{cli.js → server.cjs} +4023 -2780
- package/package.json +4 -7
- package/dist/client/client.css +0 -227
- package/dist/client/client.js +0 -209
- package/dist/client/guide/appearance-dark.svg +0 -1
- package/dist/client/guide/appearance-light.svg +0 -1
- package/dist/client/guide/approvals-dark.svg +0 -1
- package/dist/client/guide/approvals-light.svg +0 -1
- package/dist/client/guide/chat-dark.svg +0 -1
- package/dist/client/guide/chat-light.svg +0 -1
- package/dist/client/guide/customData-dark.svg +0 -1
- package/dist/client/guide/customData-light.svg +0 -1
- package/dist/client/guide/expert-dark.svg +0 -1
- package/dist/client/guide/expert-light.svg +0 -1
- package/dist/client/guide/mcp-dark.svg +0 -1
- package/dist/client/guide/mcp-light.svg +0 -1
- package/dist/client/guide/network-dark.svg +0 -1
- package/dist/client/guide/network-light.svg +0 -1
- package/dist/client/guide/orientation-dark.svg +0 -1
- package/dist/client/guide/orientation-light.svg +0 -1
- package/dist/client/guide/privacy-dark.svg +0 -1
- package/dist/client/guide/privacy-light.svg +0 -1
- package/dist/client/guide/providers-dark.svg +0 -1
- package/dist/client/guide/providers-light.svg +0 -1
- package/dist/client/guide/python-dark.svg +0 -1
- package/dist/client/guide/python-light.svg +0 -1
- package/dist/client/guide/schedules-dark.svg +0 -1
- package/dist/client/guide/schedules-light.svg +0 -1
- package/dist/client/guide/search-dark.svg +0 -1
- package/dist/client/guide/search-light.svg +0 -1
- package/dist/client/guide/skills-dark.svg +0 -1
- package/dist/client/guide/skills-light.svg +0 -1
- package/dist/client/guide/tools-dark.svg +0 -1
- package/dist/client/guide/tools-light.svg +0 -1
- package/dist/client/index.html +0 -36
- package/dist/server.js +0 -72193
package/package.json
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chosengeneration/light-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.1",
|
|
4
4
|
"description": "A minimal agentic coding assistant, served to your browser from a local Node server",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"light-code": "dist/cli.
|
|
8
|
+
"light-code": "dist/cli.cjs"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist/**/*.
|
|
12
|
-
"dist/**/*.html",
|
|
13
|
-
"dist/**/*.css",
|
|
14
|
-
"dist/**/*.svg",
|
|
11
|
+
"dist/**/*.cjs",
|
|
15
12
|
"README.md",
|
|
16
13
|
"LICENSE"
|
|
17
14
|
],
|
|
18
15
|
"scripts": {
|
|
19
16
|
"build": "node ../../scripts/generate-operator-guide.mjs && node esbuild.mjs",
|
|
20
17
|
"typecheck": "tsc -b tsconfig.json",
|
|
21
|
-
"start": "node ./dist/cli.
|
|
18
|
+
"start": "node ./dist/cli.cjs",
|
|
22
19
|
"generate:guide": "node ../../scripts/generate-operator-guide.mjs"
|
|
23
20
|
},
|
|
24
21
|
"devDependencies": {
|
package/dist/client/client.css
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The theme contract packages/ui styles against.
|
|
3
|
-
*
|
|
4
|
-
* Inside the extension VS Code supplies every --vscode-* variable. A browser has no such
|
|
5
|
-
* host, so the same names are defined here. Redefining them is what lets packages/ui stay
|
|
6
|
-
* byte-identical across both hosts instead of branching on which one it is running in.
|
|
7
|
-
*
|
|
8
|
-
* Follows the OS light/dark preference, since there is no editor theme to follow.
|
|
9
|
-
*/
|
|
10
|
-
:root {
|
|
11
|
-
color-scheme: light dark;
|
|
12
|
-
|
|
13
|
-
--vscode-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
14
|
-
--vscode-editor-font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
|
|
15
|
-
|
|
16
|
-
--vscode-editor-background: #ffffff;
|
|
17
|
-
--vscode-sideBar-background: #f6f6f6;
|
|
18
|
-
--vscode-foreground: #1f1f1f;
|
|
19
|
-
--vscode-descriptionForeground: #616161;
|
|
20
|
-
--vscode-widget-border: #d4d4d4;
|
|
21
|
-
--vscode-panel-border: #d4d4d4;
|
|
22
|
-
--vscode-input-background: #ffffff;
|
|
23
|
-
--vscode-input-foreground: #1f1f1f;
|
|
24
|
-
--vscode-input-border: #cecece;
|
|
25
|
-
--vscode-button-background: #005fb8;
|
|
26
|
-
--vscode-button-foreground: #ffffff;
|
|
27
|
-
--vscode-button-hoverBackground: #0258a8;
|
|
28
|
-
--vscode-button-secondaryBackground: #e5e5e5;
|
|
29
|
-
--vscode-button-secondaryForeground: #3b3b3b;
|
|
30
|
-
--vscode-button-secondaryHoverBackground: #cccccc;
|
|
31
|
-
--vscode-toolbar-hoverBackground: #e8e8e8;
|
|
32
|
-
--vscode-errorForeground: #e51400;
|
|
33
|
-
--vscode-editorWarning-foreground: #bf8803;
|
|
34
|
-
--vscode-focusBorder: #005fb8;
|
|
35
|
-
--vscode-editor-inactiveSelectionBackground: #f0f0f0;
|
|
36
|
-
--vscode-inputValidation-errorBackground: #fdf3f2;
|
|
37
|
-
--vscode-inputValidation-errorBorder: #e51400;
|
|
38
|
-
--vscode-inputValidation-errorForeground: #1f1f1f;
|
|
39
|
-
--vscode-testing-iconPassed: #3d8f3d;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/*
|
|
43
|
-
* Dark applies in two ways, and both are needed.
|
|
44
|
-
*
|
|
45
|
-
* `prefers-color-scheme` follows the **browser's** appearance setting, not the operating
|
|
46
|
-
* system's — a corporate Edge pinned to light shows a light UI on a dark Windows, and the user
|
|
47
|
-
* has no way to change it and no clue why. So the media query is guarded: it applies unless the
|
|
48
|
-
* user has explicitly asked for light, and an explicit `data-theme="dark"` wins regardless.
|
|
49
|
-
*
|
|
50
|
-
* Written as two rules over one shared block rather than duplicated, because a colour defined in
|
|
51
|
-
* only one of them is a bug nobody sees until they toggle.
|
|
52
|
-
*/
|
|
53
|
-
:root:not([data-theme='light']) {
|
|
54
|
-
color-scheme: light dark;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@media (prefers-color-scheme: dark) {
|
|
58
|
-
:root:not([data-theme='light']) {
|
|
59
|
-
--vscode-editor-background: #1f1f1f;
|
|
60
|
-
--vscode-sideBar-background: #181818;
|
|
61
|
-
--vscode-foreground: #cccccc;
|
|
62
|
-
--vscode-descriptionForeground: #9d9d9d;
|
|
63
|
-
--vscode-widget-border: #313131;
|
|
64
|
-
--vscode-panel-border: #2b2b2b;
|
|
65
|
-
--vscode-input-background: #313131;
|
|
66
|
-
--vscode-input-foreground: #cccccc;
|
|
67
|
-
--vscode-input-border: #3c3c3c;
|
|
68
|
-
--vscode-button-background: #0078d4;
|
|
69
|
-
--vscode-button-foreground: #ffffff;
|
|
70
|
-
--vscode-button-hoverBackground: #026ec1;
|
|
71
|
-
--vscode-button-secondaryBackground: #313131;
|
|
72
|
-
--vscode-button-secondaryForeground: #cccccc;
|
|
73
|
-
--vscode-button-secondaryHoverBackground: #3c3c3c;
|
|
74
|
-
--vscode-toolbar-hoverBackground: #2a2a2a;
|
|
75
|
-
--vscode-errorForeground: #f85149;
|
|
76
|
-
--vscode-editorWarning-foreground: #cca700;
|
|
77
|
-
--vscode-focusBorder: #0078d4;
|
|
78
|
-
--vscode-editor-inactiveSelectionBackground: #2a2a2a;
|
|
79
|
-
--vscode-inputValidation-errorBackground: #3c1618;
|
|
80
|
-
--vscode-inputValidation-errorBorder: #be1100;
|
|
81
|
-
--vscode-inputValidation-errorForeground: #cccccc;
|
|
82
|
-
--vscode-testing-iconPassed: #3fb950;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:root[data-theme='dark'] {
|
|
87
|
-
color-scheme: dark;
|
|
88
|
-
|
|
89
|
-
--vscode-editor-background: #1f1f1f;
|
|
90
|
-
--vscode-sideBar-background: #181818;
|
|
91
|
-
--vscode-foreground: #cccccc;
|
|
92
|
-
--vscode-descriptionForeground: #9d9d9d;
|
|
93
|
-
--vscode-widget-border: #313131;
|
|
94
|
-
--vscode-panel-border: #2b2b2b;
|
|
95
|
-
--vscode-input-background: #313131;
|
|
96
|
-
--vscode-input-foreground: #cccccc;
|
|
97
|
-
--vscode-input-border: #3c3c3c;
|
|
98
|
-
--vscode-button-background: #0078d4;
|
|
99
|
-
--vscode-button-foreground: #ffffff;
|
|
100
|
-
--vscode-button-hoverBackground: #026ec1;
|
|
101
|
-
--vscode-button-secondaryBackground: #313131;
|
|
102
|
-
--vscode-button-secondaryForeground: #cccccc;
|
|
103
|
-
--vscode-button-secondaryHoverBackground: #3c3c3c;
|
|
104
|
-
--vscode-toolbar-hoverBackground: #2a2a2a;
|
|
105
|
-
--vscode-errorForeground: #f85149;
|
|
106
|
-
--vscode-editorWarning-foreground: #cca700;
|
|
107
|
-
--vscode-focusBorder: #0078d4;
|
|
108
|
-
--vscode-editor-inactiveSelectionBackground: #2a2a2a;
|
|
109
|
-
--vscode-inputValidation-errorBackground: #3c1618;
|
|
110
|
-
--vscode-inputValidation-errorBorder: #be1100;
|
|
111
|
-
--vscode-inputValidation-errorForeground: #cccccc;
|
|
112
|
-
--vscode-testing-iconPassed: #3fb950;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
:root[data-theme='light'] {
|
|
116
|
-
color-scheme: light;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
html,
|
|
120
|
-
body {
|
|
121
|
-
height: 100%;
|
|
122
|
-
margin: 0;
|
|
123
|
-
background: var(--vscode-sideBar-background);
|
|
124
|
-
color: var(--vscode-foreground);
|
|
125
|
-
font-family: var(--vscode-font-family);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
#root {
|
|
129
|
-
height: 100%;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
#status {
|
|
133
|
-
display: none;
|
|
134
|
-
padding: 6px 12px;
|
|
135
|
-
font-size: 12px;
|
|
136
|
-
line-height: 1.4;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/*
|
|
140
|
-
* Broken. Nothing is getting through and the user has to do something.
|
|
141
|
-
*/
|
|
142
|
-
#status.error {
|
|
143
|
-
background: var(--vscode-inputValidation-errorBackground);
|
|
144
|
-
border-bottom: 1px solid var(--vscode-inputValidation-errorBorder);
|
|
145
|
-
color: var(--vscode-inputValidation-errorForeground);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/*
|
|
149
|
-
* Working, with something worth knowing — the polling fallback.
|
|
150
|
-
*
|
|
151
|
-
* Every status used to share the error style, so a page that had successfully adapted to a
|
|
152
|
-
* network which will not carry a stream announced itself in red and was reported as a fault.
|
|
153
|
-
* People read the colour before the sentence, and it was saying the wrong thing.
|
|
154
|
-
*/
|
|
155
|
-
#status.notice {
|
|
156
|
-
background: var(--vscode-inputValidation-infoBackground, rgba(100, 148, 237, 0.12));
|
|
157
|
-
border-bottom: 1px solid var(--vscode-inputValidation-infoBorder, rgba(100, 148, 237, 0.5));
|
|
158
|
-
color: var(--vscode-foreground);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/*
|
|
162
|
-
* The starting screen.
|
|
163
|
-
*
|
|
164
|
-
* An indeterminate bar rather than a percentage: nothing here knows how much is left, and a
|
|
165
|
-
* progress bar that invents a number is worse than one that only says "still going" — it gets
|
|
166
|
-
* believed, and then it stalls at 90%.
|
|
167
|
-
*/
|
|
168
|
-
#booting {
|
|
169
|
-
position: fixed;
|
|
170
|
-
inset: 0;
|
|
171
|
-
display: flex;
|
|
172
|
-
flex-direction: column;
|
|
173
|
-
align-items: center;
|
|
174
|
-
justify-content: center;
|
|
175
|
-
gap: 10px;
|
|
176
|
-
background: var(--vscode-editor-background);
|
|
177
|
-
color: var(--vscode-foreground);
|
|
178
|
-
font-family: var(--vscode-font-family);
|
|
179
|
-
z-index: 10;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
#booting.done {
|
|
183
|
-
display: none;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.booting-label {
|
|
187
|
-
font-size: 13px;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.booting-detail {
|
|
191
|
-
font-size: 11px;
|
|
192
|
-
opacity: 0.7;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.booting-track {
|
|
196
|
-
width: 180px;
|
|
197
|
-
height: 3px;
|
|
198
|
-
overflow: hidden;
|
|
199
|
-
border-radius: 2px;
|
|
200
|
-
background: var(--vscode-input-background, rgba(127, 127, 127, 0.2));
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.booting-bar {
|
|
204
|
-
width: 40%;
|
|
205
|
-
height: 100%;
|
|
206
|
-
border-radius: 2px;
|
|
207
|
-
background: var(--vscode-progressBar-background, #0e70c0);
|
|
208
|
-
animation: booting-slide 1.1s ease-in-out infinite;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@keyframes booting-slide {
|
|
212
|
-
0% {
|
|
213
|
-
transform: translateX(-100%);
|
|
214
|
-
}
|
|
215
|
-
100% {
|
|
216
|
-
transform: translateX(350%);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/* Respecting the setting, because an infinite animation is exactly what it is about. */
|
|
221
|
-
@media (prefers-reduced-motion: reduce) {
|
|
222
|
-
.booting-bar {
|
|
223
|
-
animation: none;
|
|
224
|
-
width: 100%;
|
|
225
|
-
opacity: 0.5;
|
|
226
|
-
}
|
|
227
|
-
}
|