Skip to content

Commit e1fd9b1

Browse files
committed
[tt-update] Added CLI optimizations and non-interactive mode support
1 parent 01ac29f commit e1fd9b1

17 files changed

Lines changed: 692 additions & 1291 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ simple-json-test.js
4444
*-json-test.js
4545
tests/*-json-test.js
4646
json-parsing-test.js
47+
# CLI test output
48+
cli-test-*.json
49+
cli-output-*.log
50+
command-test-*.json
4751

4852
# IDE and editor files
4953
.idea/
@@ -83,10 +87,14 @@ temp/
8387
*.tmp
8488
*.temp
8589
*.bak
90+
.temp-*
91+
*_temp/
8692

8793
# Logs
8894
logs/
8995
*.log
96+
error-*.log
97+
debug-*.log
9098

9199
# Cached data
92100
.cache/

.tasktracker/config.json

Lines changed: 11 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,21 @@
66
"docs",
77
"test",
88
"chore",
9-
"technical-debt",
10-
{
11-
"invalidCategoryObject": true
12-
},
13-
null,
14-
123,
15-
[]
9+
"technical-debt"
1610
],
1711
"taskStatuses": [
1812
"todo",
1913
"in-progress",
2014
"review",
2115
"done",
2216
"invalid-status-1",
23-
"invalid-status-2",
24-
"",
25-
null
17+
"invalid-status-2"
2618
],
2719
"priorityLevels": [
2820
"p0-critical",
2921
"p1-high",
3022
"p2-medium",
31-
"p3-low",
32-
{
33-
"invalidPriority": true
34-
}
23+
"p3-low"
3524
],
3625
"effortEstimation": [
3726
"1-trivial",
@@ -42,44 +31,12 @@
4231
"13-complex",
4332
"infinite"
4433
],
45-
"currentTask": "not-a-number",
46-
"showChalkWarnings": "not-a-boolean",
47-
"projectName": "task_tracker",
48-
"maxDisplayWidth": "not-a-number",
49-
"defaultListView": "invalid-view",
50-
"dateFormat": [
51-
"array",
52-
"instead",
53-
"of",
54-
"string"
55-
],
56-
"enableGitIntegration": 123,
57-
"enableDependencyTracking": null,
58-
"projectType": {
59-
"not": "a-string"
60-
},
61-
"versioningType": {
62-
"not": "a-string"
63-
},
64-
"currentVersion": {
65-
"not": "a-string"
66-
},
67-
"changelogSections": null,
68-
"gitIntegration": "not-a-boolean",
69-
"customSettings": {
70-
"autoAssignAuthors": "not-a-boolean",
71-
"defaultBranchPrefix": null,
72-
"defaultCategory": {
73-
"not": "a-string"
74-
},
75-
"defaultStatus": {},
76-
"defaultPriority": [],
77-
"defaultEffort": 123
78-
},
79-
"invalidTopLevelKey": "This should be ignored",
80-
"anotherInvalidKey": {
81-
"this": "should",
82-
"also": "be",
83-
"ignored": true
84-
}
34+
"currentTask": null,
35+
"showChalkWarnings": true,
36+
"projectName": "Task",
37+
"maxDisplayWidth": 120,
38+
"defaultListView": "table",
39+
"dateFormat": "locale",
40+
"enableGitIntegration": true,
41+
"enableDependencyTracking": true
8542
}

.tasktracker/performance.json

Lines changed: 10 additions & 206 deletions
Original file line numberDiff line numberDiff line change
@@ -1,224 +1,28 @@
11
{
2-
"timestamp": 1743678022213,
2+
"timestamp": 1745348019274,
33
"system": {
44
"platform": "darwin",
55
"arch": "arm64",
6-
"nodeVersion": "v23.9.0",
6+
"nodeVersion": "v18.20.8",
77
"cpus": 14,
88
"totalMemory": 24576
99
},
1010
"timers": {
11-
"command_add": {
11+
"command_list": {
1212
"count": 1,
13-
"total": 15664.272958,
14-
"min": 15664.272958,
15-
"max": 15664.272958,
16-
"avg": 15664.272958,
13+
"total": 2.598959,
14+
"min": 2.598959,
15+
"max": 2.598959,
16+
"avg": 2.598959,
1717
"samples": [
1818
{
19-
"timestamp": 1743678022213,
20-
"duration": 15664.272958
19+
"timestamp": 1745348019274,
20+
"duration": 2.598959
2121
}
2222
]
2323
}
2424
},
2525
"counters": {},
2626
"histograms": {},
27-
"resourceUsage": [
28-
{
29-
"timestamp": 1743678007550,
30-
"memory": {
31-
"rss": 40.53125,
32-
"heapTotal": 10.046875,
33-
"heapUsed": 5.173393249511719,
34-
"external": 1.6910629272460938
35-
},
36-
"cpu": {
37-
"user": 30.838,
38-
"system": 13.79
39-
}
40-
},
41-
{
42-
"timestamp": 1743678008551,
43-
"memory": {
44-
"rss": 40.546875,
45-
"heapTotal": 10.046875,
46-
"heapUsed": 5.181114196777344,
47-
"external": 1.6911067962646484
48-
},
49-
"cpu": {
50-
"user": 31.088,
51-
"system": 13.856
52-
}
53-
},
54-
{
55-
"timestamp": 1743678009552,
56-
"memory": {
57-
"rss": 40.546875,
58-
"heapTotal": 10.046875,
59-
"heapUsed": 5.184913635253906,
60-
"external": 1.6911067962646484
61-
},
62-
"cpu": {
63-
"user": 31.404,
64-
"system": 13.953
65-
}
66-
},
67-
{
68-
"timestamp": 1743678010553,
69-
"memory": {
70-
"rss": 40.71875,
71-
"heapTotal": 10.046875,
72-
"heapUsed": 5.2347412109375,
73-
"external": 1.691117286682129
74-
},
75-
"cpu": {
76-
"user": 34.142,
77-
"system": 14.222
78-
}
79-
},
80-
{
81-
"timestamp": 1743678011554,
82-
"memory": {
83-
"rss": 40.8125,
84-
"heapTotal": 10.046875,
85-
"heapUsed": 5.289756774902344,
86-
"external": 1.6911201477050781
87-
},
88-
"cpu": {
89-
"user": 36.543,
90-
"system": 14.69
91-
}
92-
},
93-
{
94-
"timestamp": 1743678012555,
95-
"memory": {
96-
"rss": 41.046875,
97-
"heapTotal": 10.296875,
98-
"heapUsed": 5.400962829589844,
99-
"external": 1.6911249160766602
100-
},
101-
"cpu": {
102-
"user": 41.234,
103-
"system": 15.386
104-
}
105-
},
106-
{
107-
"timestamp": 1743678013556,
108-
"memory": {
109-
"rss": 41.140625,
110-
"heapTotal": 10.546875,
111-
"heapUsed": 5.429359436035156,
112-
"external": 1.6911277770996094
113-
},
114-
"cpu": {
115-
"user": 43.121,
116-
"system": 16.121
117-
}
118-
},
119-
{
120-
"timestamp": 1743678014557,
121-
"memory": {
122-
"rss": 41.140625,
123-
"heapTotal": 10.546875,
124-
"heapUsed": 5.433708190917969,
125-
"external": 1.6911306381225586
126-
},
127-
"cpu": {
128-
"user": 43.629,
129-
"system": 16.175
130-
}
131-
},
132-
{
133-
"timestamp": 1743678015558,
134-
"memory": {
135-
"rss": 39.65625,
136-
"heapTotal": 6.796875,
137-
"heapUsed": 4.928367614746094,
138-
"external": 1.691075325012207
139-
},
140-
"cpu": {
141-
"user": 65.275,
142-
"system": 19.84
143-
}
144-
},
145-
{
146-
"timestamp": 1743678016559,
147-
"memory": {
148-
"rss": 39.78125,
149-
"heapTotal": 6.796875,
150-
"heapUsed": 4.95672607421875,
151-
"external": 1.691075325012207
152-
},
153-
"cpu": {
154-
"user": 66.234,
155-
"system": 20.71
156-
}
157-
},
158-
{
159-
"timestamp": 1743678017560,
160-
"memory": {
161-
"rss": 39.796875,
162-
"heapTotal": 6.796875,
163-
"heapUsed": 4.9610748291015625,
164-
"external": 1.6910781860351562
165-
},
166-
"cpu": {
167-
"user": 66.773,
168-
"system": 20.856
169-
}
170-
},
171-
{
172-
"timestamp": 1743678018561,
173-
"memory": {
174-
"rss": 39.859375,
175-
"heapTotal": 6.796875,
176-
"heapUsed": 4.989105224609375,
177-
"external": 1.691080093383789
178-
},
179-
"cpu": {
180-
"user": 67.95,
181-
"system": 21.207
182-
}
183-
},
184-
{
185-
"timestamp": 1743678019562,
186-
"memory": {
187-
"rss": 39.875,
188-
"heapTotal": 6.796875,
189-
"heapUsed": 5.007637023925781,
190-
"external": 1.6910820007324219
191-
},
192-
"cpu": {
193-
"user": 68.969,
194-
"system": 21.329
195-
}
196-
},
197-
{
198-
"timestamp": 1743678020563,
199-
"memory": {
200-
"rss": 39.953125,
201-
"heapTotal": 6.796875,
202-
"heapUsed": 5.041236877441406,
203-
"external": 1.6910858154296875
204-
},
205-
"cpu": {
206-
"user": 70.748,
207-
"system": 21.728
208-
}
209-
},
210-
{
211-
"timestamp": 1743678021564,
212-
"memory": {
213-
"rss": 39.953125,
214-
"heapTotal": 6.796875,
215-
"heapUsed": 5.0424652099609375,
216-
"external": 1.6910858154296875
217-
},
218-
"cpu": {
219-
"user": 70.823,
220-
"system": 21.749
221-
}
222-
}
223-
]
27+
"resourceUsage": []
22428
}

0 commit comments

Comments
 (0)