@siegesailor/terminal-sigma 1.0.0 → 1.2.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/README.md +125 -40
- package/build/app.js +387 -0
- package/build/app.js.map +1 -0
- package/build/command-line-interface.js +41 -4
- package/build/command-line-interface.js.map +1 -1
- package/build/components/character.js +17 -293
- package/build/components/character.js.map +1 -1
- package/build/components/choice.js +32 -0
- package/build/components/choice.js.map +1 -0
- package/build/components/entry-form.js +54 -0
- package/build/components/entry-form.js.map +1 -0
- package/build/components/footer.js +27 -0
- package/build/components/footer.js.map +1 -0
- package/build/components/logs-view.js +102 -0
- package/build/components/logs-view.js.map +1 -0
- package/build/components/menu-grid.js +27 -45
- package/build/components/menu-grid.js.map +1 -1
- package/build/components/today-panel.js +30 -0
- package/build/components/today-panel.js.map +1 -0
- package/build/content.js +286 -0
- package/build/content.js.map +1 -0
- package/build/health.js +90 -0
- package/build/health.js.map +1 -0
- package/build/i18n.js +603 -0
- package/build/i18n.js.map +1 -0
- package/build/pixel-art.js +359 -0
- package/build/pixel-art.js.map +1 -0
- package/build/progress.js +72 -34
- package/build/progress.js.map +1 -1
- package/build/quotes.js +157 -5
- package/build/quotes.js.map +1 -1
- package/build/theme.js +137 -0
- package/build/theme.js.map +1 -0
- package/package.json +1 -3
- package/build/commands/index.js +0 -274
- package/build/commands/index.js.map +0 -1
- package/build/components/status-panel.js +0 -19
- package/build/components/status-panel.js.map +0 -1
package/build/quotes.js
CHANGED
|
@@ -1,69 +1,221 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import zod from "zod";
|
|
3
3
|
export const bundledQuotes = [
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
quote: "A healthy mind in a healthy body.",
|
|
6
|
+
author: "Juvenal",
|
|
7
|
+
translations: {
|
|
8
|
+
"zh-TW": { quote: "健全的精神寓於健全的身體。", author: "尤維納利斯" },
|
|
9
|
+
ko: {
|
|
10
|
+
quote: "건강한 신체에 건강한 정신이 깃든다.",
|
|
11
|
+
author: "유베날리스",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
5
15
|
{
|
|
6
16
|
quote: "Do what you can, with what you have, where you are.",
|
|
7
17
|
author: "Theodore Roosevelt",
|
|
18
|
+
translations: {
|
|
19
|
+
"zh-TW": {
|
|
20
|
+
quote: "在你所在之處,用你所擁有的,做你能做的。",
|
|
21
|
+
author: "西奧多·羅斯福",
|
|
22
|
+
},
|
|
23
|
+
ko: {
|
|
24
|
+
quote: "지금 있는 곳에서, 가진 것으로, 할 수 있는 일을 하라.",
|
|
25
|
+
author: "시어도어 루스벨트",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
8
28
|
},
|
|
9
29
|
{
|
|
10
30
|
quote: "Energy and persistence conquer all things.",
|
|
11
31
|
author: "Benjamin Franklin",
|
|
32
|
+
translations: {
|
|
33
|
+
"zh-TW": { quote: "精力與毅力能征服一切。", author: "班傑明·富蘭克林" },
|
|
34
|
+
ko: {
|
|
35
|
+
quote: "열정과 끈기는 모든 것을 이긴다.",
|
|
36
|
+
author: "벤저민 프랭클린",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
quote: "Fall seven times, stand up eight.",
|
|
42
|
+
author: "Japanese Proverb",
|
|
43
|
+
translations: {
|
|
44
|
+
"zh-TW": { quote: "七轉八起。", author: "日本諺語" },
|
|
45
|
+
ko: { quote: "일곱 번 넘어져도 여덟 번 일어난다.", author: "일본 속담" },
|
|
46
|
+
},
|
|
12
47
|
},
|
|
13
|
-
{ quote: "Fall seven times, stand up eight.", author: "Japanese Proverb" },
|
|
14
48
|
{
|
|
15
49
|
quote: "First say to yourself what you would be; and then do what you have to do.",
|
|
16
50
|
author: "Epictetus",
|
|
51
|
+
translations: {
|
|
52
|
+
"zh-TW": {
|
|
53
|
+
quote: "先告訴自己你想成為什麼樣的人,然後去做你該做的事。",
|
|
54
|
+
author: "愛比克泰德",
|
|
55
|
+
},
|
|
56
|
+
ko: {
|
|
57
|
+
quote: "먼저 어떤 사람이 될지 스스로에게 말하라. 그리고 해야 할 일을 하라.",
|
|
58
|
+
author: "에픽테토스",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
17
61
|
},
|
|
18
62
|
{
|
|
19
63
|
quote: "Habit is a cable; we weave a thread of it each day, and at last we cannot break it.",
|
|
20
64
|
author: "Horace Mann",
|
|
65
|
+
translations: {
|
|
66
|
+
"zh-TW": {
|
|
67
|
+
quote: "習慣如纜繩,我們每天編進一縷,最終再也無法扯斷。",
|
|
68
|
+
author: "賀拉斯·曼",
|
|
69
|
+
},
|
|
70
|
+
ko: {
|
|
71
|
+
quote: "습관은 밧줄과 같다. 매일 한 가닥씩 엮다 보면 결국 끊을 수 없게 된다.",
|
|
72
|
+
author: "호러스 만",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
21
75
|
},
|
|
22
76
|
{
|
|
23
77
|
quote: "He who has a why to live can bear almost any how.",
|
|
24
78
|
author: "Friedrich Nietzsche",
|
|
79
|
+
translations: {
|
|
80
|
+
"zh-TW": {
|
|
81
|
+
quote: "知道為何而活的人,幾乎能忍受任何生活。",
|
|
82
|
+
author: "尼采",
|
|
83
|
+
},
|
|
84
|
+
ko: {
|
|
85
|
+
quote: "살아야 할 이유를 아는 사람은 거의 어떤 상황도 견딜 수 있다.",
|
|
86
|
+
author: "니체",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
25
89
|
},
|
|
26
90
|
{
|
|
27
91
|
quote: "It does not matter how slowly you go as long as you do not stop.",
|
|
28
92
|
author: "Confucius",
|
|
93
|
+
translations: {
|
|
94
|
+
"zh-TW": { quote: "只要不停下腳步,走得多慢都無妨。", author: "孔子" },
|
|
95
|
+
ko: {
|
|
96
|
+
quote: "멈추지만 않는다면 얼마나 천천히 가는지는 중요하지 않다.",
|
|
97
|
+
author: "공자",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
29
100
|
},
|
|
30
101
|
{
|
|
31
102
|
quote: "It is not that we have a short time to live, but that we waste a lot of it.",
|
|
32
103
|
author: "Seneca",
|
|
104
|
+
translations: {
|
|
105
|
+
"zh-TW": {
|
|
106
|
+
quote: "不是我們的生命短暫,而是我們浪費了太多。",
|
|
107
|
+
author: "塞內卡",
|
|
108
|
+
},
|
|
109
|
+
ko: {
|
|
110
|
+
quote: "인생이 짧은 것이 아니라, 우리가 많은 시간을 낭비하는 것이다.",
|
|
111
|
+
author: "세네카",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
33
114
|
},
|
|
34
115
|
{
|
|
35
116
|
quote: "Knowing is not enough; we must apply.",
|
|
36
117
|
author: "Johann Wolfgang von Goethe",
|
|
118
|
+
translations: {
|
|
119
|
+
"zh-TW": { quote: "知道是不夠的,我們必須應用。", author: "歌德" },
|
|
120
|
+
ko: { quote: "아는 것만으로는 부족하다. 적용해야 한다.", author: "괴테" },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
quote: "Lost time is never found again.",
|
|
125
|
+
author: "Benjamin Franklin",
|
|
126
|
+
translations: {
|
|
127
|
+
"zh-TW": { quote: "失去的時間永遠找不回來。", author: "班傑明·富蘭克林" },
|
|
128
|
+
ko: {
|
|
129
|
+
quote: "잃어버린 시간은 다시 찾을 수 없다.",
|
|
130
|
+
author: "벤저민 프랭클린",
|
|
131
|
+
},
|
|
132
|
+
},
|
|
37
133
|
},
|
|
38
|
-
{ quote: "Lost time is never found again.", author: "Benjamin Franklin" },
|
|
39
134
|
{
|
|
40
135
|
quote: "No man is free who is not master of himself.",
|
|
41
136
|
author: "Epictetus",
|
|
137
|
+
translations: {
|
|
138
|
+
"zh-TW": {
|
|
139
|
+
quote: "不能主宰自己的人,就不是自由的人。",
|
|
140
|
+
author: "愛比克泰德",
|
|
141
|
+
},
|
|
142
|
+
ko: {
|
|
143
|
+
quote: "자신을 다스리지 못하는 사람은 자유롭지 않다.",
|
|
144
|
+
author: "에픽테토스",
|
|
145
|
+
},
|
|
146
|
+
},
|
|
42
147
|
},
|
|
43
148
|
{
|
|
44
149
|
quote: "Patience is bitter, but its fruit is sweet.",
|
|
45
150
|
author: "Jean-Jacques Rousseau",
|
|
151
|
+
translations: {
|
|
152
|
+
"zh-TW": { quote: "忍耐是苦澀的,但它的果實是甜美的。", author: "盧梭" },
|
|
153
|
+
ko: { quote: "인내는 쓰지만 그 열매는 달다.", author: "장 자크 루소" },
|
|
154
|
+
},
|
|
46
155
|
},
|
|
47
156
|
{
|
|
48
157
|
quote: "The journey of a thousand miles begins with one step.",
|
|
49
158
|
author: "Lao Tzu",
|
|
159
|
+
translations: {
|
|
160
|
+
"zh-TW": { quote: "千里之行,始於足下。", author: "老子" },
|
|
161
|
+
ko: { quote: "천 리 길도 한 걸음부터.", author: "노자" },
|
|
162
|
+
},
|
|
50
163
|
},
|
|
51
164
|
{
|
|
52
165
|
quote: "Waste no more time arguing about what a good man should be. Be one.",
|
|
53
166
|
author: "Marcus Aurelius",
|
|
167
|
+
translations: {
|
|
168
|
+
"zh-TW": {
|
|
169
|
+
quote: "別再浪費時間爭論好人該是什麼樣子,去成為一個好人。",
|
|
170
|
+
author: "馬可·奧理略",
|
|
171
|
+
},
|
|
172
|
+
ko: {
|
|
173
|
+
quote: "좋은 사람이 무엇인지 논쟁하며 더는 시간을 낭비하지 말고, 좋은 사람이 되어라.",
|
|
174
|
+
author: "마르쿠스 아우렐리우스",
|
|
175
|
+
},
|
|
176
|
+
},
|
|
54
177
|
},
|
|
55
178
|
{
|
|
56
179
|
quote: "We suffer more often in imagination than in reality.",
|
|
57
180
|
author: "Seneca",
|
|
181
|
+
translations: {
|
|
182
|
+
"zh-TW": {
|
|
183
|
+
quote: "我們在想像中受的苦,往往多於現實。",
|
|
184
|
+
author: "塞內卡",
|
|
185
|
+
},
|
|
186
|
+
ko: {
|
|
187
|
+
quote: "우리는 현실보다 상상 속에서 더 자주 고통받는다.",
|
|
188
|
+
author: "세네카",
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
quote: "Well begun is half done.",
|
|
194
|
+
author: "Aristotle",
|
|
195
|
+
translations: {
|
|
196
|
+
"zh-TW": { quote: "好的開始是成功的一半。", author: "亞里斯多德" },
|
|
197
|
+
ko: { quote: "시작이 반이다.", author: "아리스토텔레스" },
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
quote: "Well done is better than well said.",
|
|
202
|
+
author: "Benjamin Franklin",
|
|
203
|
+
translations: {
|
|
204
|
+
"zh-TW": { quote: "做得好勝過說得好。", author: "班傑明·富蘭克林" },
|
|
205
|
+
ko: {
|
|
206
|
+
quote: "말을 잘하는 것보다 잘 해내는 것이 낫다.",
|
|
207
|
+
author: "벤저민 프랭클린",
|
|
208
|
+
},
|
|
209
|
+
},
|
|
58
210
|
},
|
|
59
|
-
{ quote: "Well begun is half done.", author: "Aristotle" },
|
|
60
|
-
{ quote: "Well done is better than well said.", author: "Benjamin Franklin" },
|
|
61
211
|
];
|
|
62
212
|
export const quoteRefreshMinutes = 30;
|
|
213
|
+
export const hasQuoteApi = () => Boolean(process.env.API_NINJAS_KEY);
|
|
63
214
|
export const randomBundledQuote = () => bundledQuotes[Math.floor(Math.random() * bundledQuotes.length)] ?? {
|
|
64
215
|
quote: "Well begun is half done.",
|
|
65
216
|
author: "Aristotle",
|
|
66
217
|
};
|
|
218
|
+
export const localizedQuote = (quote, language) => quote.translations?.[language] ?? quote;
|
|
67
219
|
const apiResponse = zod
|
|
68
220
|
.array(zod.object({ quote: zod.string().min(1), author: zod.string() }))
|
|
69
221
|
.min(1);
|
package/build/quotes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../source/quotes.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,GAAG,MAAM,KAAK,CAAC;
|
|
1
|
+
{"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;KACrB,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACvE,GAAG,CAAC,CAAC,CAAC,CAAC;AAET,0FAA0F;AAC1F,MAAM,CAAC,KAAK,UAAU,UAAU,CAC/B,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc;IAEnC,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,kBAAkB,EAAE,CAAC;IAC7B,CAAC;IAED,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,sCAAsC,EAAE;YACpE,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE;YAChC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;SACjC,CAAC,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QACzD,OAAO,KAAK,IAAI,kBAAkB,EAAE,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,kBAAkB,EAAE,CAAC;IAC7B,CAAC;AACF,CAAC"}
|
package/build/theme.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { extendTheme, defaultTheme } from "@inkjs/ui";
|
|
3
|
+
export const themeNames = ["ember", "moss", "frost", "dusk", "mono"];
|
|
4
|
+
export const themes = {
|
|
5
|
+
// Claude Code's orange.
|
|
6
|
+
ember: {
|
|
7
|
+
accent: "#D97757",
|
|
8
|
+
soft: "#E8A87C",
|
|
9
|
+
deep: "#A65A41",
|
|
10
|
+
border: "#6E5A52",
|
|
11
|
+
success: "#C4B07A",
|
|
12
|
+
error: "#E0605A",
|
|
13
|
+
metrics: {
|
|
14
|
+
character: "#D97757",
|
|
15
|
+
focus: "#E8A87C",
|
|
16
|
+
protein: "#C98E6B",
|
|
17
|
+
calories: "#B9785F",
|
|
18
|
+
workout: "#F0C29C",
|
|
19
|
+
},
|
|
20
|
+
sprite: {
|
|
21
|
+
cloak: "#4A3036",
|
|
22
|
+
cloakShade: "#33212A",
|
|
23
|
+
scarf: "#D97757",
|
|
24
|
+
scarfShade: "#A65A41",
|
|
25
|
+
glow: "#FFB38A",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
// The earthy greens of Drova.
|
|
29
|
+
moss: {
|
|
30
|
+
accent: "#8FB573",
|
|
31
|
+
soft: "#B9D19F",
|
|
32
|
+
deep: "#5E7F4A",
|
|
33
|
+
border: "#56604E",
|
|
34
|
+
success: "#C9D9A8",
|
|
35
|
+
error: "#D9826B",
|
|
36
|
+
metrics: {
|
|
37
|
+
character: "#8FB573",
|
|
38
|
+
focus: "#B9D19F",
|
|
39
|
+
protein: "#A3B97E",
|
|
40
|
+
calories: "#7E9C63",
|
|
41
|
+
workout: "#C9D9A8",
|
|
42
|
+
},
|
|
43
|
+
sprite: {
|
|
44
|
+
cloak: "#34402C",
|
|
45
|
+
cloakShade: "#242D1F",
|
|
46
|
+
scarf: "#8FB573",
|
|
47
|
+
scarfShade: "#5E7F4A",
|
|
48
|
+
glow: "#D6F0A8",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
frost: {
|
|
52
|
+
accent: "#7FA7D9",
|
|
53
|
+
soft: "#A9C7EC",
|
|
54
|
+
deep: "#4F75A6",
|
|
55
|
+
border: "#4F5866",
|
|
56
|
+
success: "#9FD3C7",
|
|
57
|
+
error: "#E07A8B",
|
|
58
|
+
metrics: {
|
|
59
|
+
character: "#7FA7D9",
|
|
60
|
+
focus: "#A9C7EC",
|
|
61
|
+
protein: "#8FB3DE",
|
|
62
|
+
calories: "#6A92C4",
|
|
63
|
+
workout: "#BFD6F2",
|
|
64
|
+
},
|
|
65
|
+
sprite: {
|
|
66
|
+
cloak: "#2A3446",
|
|
67
|
+
cloakShade: "#1D2433",
|
|
68
|
+
scarf: "#7FA7D9",
|
|
69
|
+
scarfShade: "#4F75A6",
|
|
70
|
+
glow: "#BFE3FF",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
dusk: {
|
|
74
|
+
accent: "#A98BD8",
|
|
75
|
+
soft: "#C9B5EA",
|
|
76
|
+
deep: "#7559A8",
|
|
77
|
+
border: "#5A5266",
|
|
78
|
+
success: "#D8C9F0",
|
|
79
|
+
error: "#E07A9A",
|
|
80
|
+
metrics: {
|
|
81
|
+
character: "#A98BD8",
|
|
82
|
+
focus: "#C9B5EA",
|
|
83
|
+
protein: "#B49EDF",
|
|
84
|
+
calories: "#8E6FC4",
|
|
85
|
+
workout: "#D8C9F0",
|
|
86
|
+
},
|
|
87
|
+
sprite: {
|
|
88
|
+
cloak: "#352B4A",
|
|
89
|
+
cloakShade: "#251E36",
|
|
90
|
+
scarf: "#A98BD8",
|
|
91
|
+
scarfShade: "#7559A8",
|
|
92
|
+
glow: "#E5D4FF",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
mono: {
|
|
96
|
+
accent: "#D4D4D4",
|
|
97
|
+
soft: "#EDEDED",
|
|
98
|
+
deep: "#9A9A9A",
|
|
99
|
+
border: "#5E5E5E",
|
|
100
|
+
success: "#FFFFFF",
|
|
101
|
+
error: "#E08080",
|
|
102
|
+
metrics: {
|
|
103
|
+
character: "#D4D4D4",
|
|
104
|
+
focus: "#EDEDED",
|
|
105
|
+
protein: "#BDBDBD",
|
|
106
|
+
calories: "#A6A6A6",
|
|
107
|
+
workout: "#FFFFFF",
|
|
108
|
+
},
|
|
109
|
+
sprite: {
|
|
110
|
+
cloak: "#3A3A3A",
|
|
111
|
+
cloakShade: "#262626",
|
|
112
|
+
scarf: "#BDBDBD",
|
|
113
|
+
scarfShade: "#8A8A8A",
|
|
114
|
+
glow: "#FFFFFF",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
export const paletteContext = React.createContext(themes.ember);
|
|
119
|
+
export const usePalette = () => React.useContext(paletteContext);
|
|
120
|
+
// Claude Code's spinner: the glyphs grow, then shrink back.
|
|
121
|
+
const spinnerGlyphs = ["·", "✢", "✳", "✶", "✻", "✽"];
|
|
122
|
+
export const spinnerFrames = [
|
|
123
|
+
...spinnerGlyphs,
|
|
124
|
+
...spinnerGlyphs.slice(1, -1).toReversed(),
|
|
125
|
+
];
|
|
126
|
+
export const uiThemeOf = (palette) => extendTheme(defaultTheme, {
|
|
127
|
+
components: {
|
|
128
|
+
// Keys are @inkjs/ui component names.
|
|
129
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
130
|
+
TextInput: {
|
|
131
|
+
styles: {
|
|
132
|
+
value: () => ({ color: palette.accent }),
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../source/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEtD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AA2B9E,MAAM,CAAC,MAAM,MAAM,GAAyC;IAC3D,wBAAwB;IACxB,KAAK,EAAE;QACN,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE;YACR,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,SAAS;YAC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AM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,EAAE,CAC7C,WAAW,CAAC,YAAY,EAAE;IACzB,UAAU,EAAE;QACX,sCAAsC;QACtC,gEAAgE;QAChE,SAAS,EAAE;YACV,MAAM,EAAE;gBACP,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;aACxC;SACD;KACD;CACD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"keywords": [
|
|
9
9
|
"command-line-tool",
|
|
10
10
|
"ink",
|
|
11
|
-
"pastel",
|
|
12
11
|
"pomodoro",
|
|
13
12
|
"self-development",
|
|
14
13
|
"terminal-dashboard",
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
"bugs": {
|
|
24
23
|
"url": "https://github.com/SiegeSailor/Terminal-Sigma/issues"
|
|
25
24
|
},
|
|
26
|
-
"version": "1.
|
|
25
|
+
"version": "1.2.0",
|
|
27
26
|
"bin": {
|
|
28
27
|
"siegesailor-terminal-sigma": "build/command-line-interface.js"
|
|
29
28
|
},
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
"@inkjs/ui": "2.0.0",
|
|
54
53
|
"ink": "7.0.0",
|
|
55
54
|
"meow": "14.1.0",
|
|
56
|
-
"pastel": "4.0.1",
|
|
57
55
|
"react": "19.2.5",
|
|
58
56
|
"zod": "4.3.6"
|
|
59
57
|
},
|