nitor 1.2.0 → 1.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/CHANGELOG.md CHANGED
@@ -23,4 +23,10 @@ For a complete list of changes and discussion, see [Issue #1](https://github.com
23
23
 
24
24
  - Added cleanup command to delete all local branches except master/main.
25
25
 
26
- - [Issue #6](https://github.com/codebynithin/nitor/issues/6)
26
+ ## [1.2.1] - 2025-11-19
27
+
28
+ ### New Features
29
+
30
+ - Added time entry commands.
31
+
32
+ - [Issue #5](https://github.com/codebynithin/nitor/issues/5)
package/README.md CHANGED
@@ -24,6 +24,8 @@ A CLI utility toolkit for automating and managing build, deploy, and status oper
24
24
  - Backup and restore MongoDB
25
25
  - Merge git branches
26
26
  - Cleanup local git branches
27
+ - Time entry management with Zoho integration
28
+ - GitLab activity tracking
27
29
 
28
30
  ## Requirements
29
31
 
@@ -40,6 +42,19 @@ A CLI utility toolkit for automating and managing build, deploy, and status oper
40
42
  - `AI_MODEL` - AI model
41
43
  - `BACKUP_CONFIG` - Backup configuration
42
44
  - `RESTORE_CONFIG` - Restore configuration
45
+ - `ZOHO_COOKIE` - Zoho cookie for authentication
46
+ - `ZOHO_CUSTOMVIEW_ID` - Zoho custom view ID
47
+ - `ZOHO_DEFAULt_PROJECT_ID` - Default Zoho project ID
48
+ - `ZOHO_PORTAL_ID` - Zoho portal ID
49
+ - `ZOHO_PROJECTS` - Zoho projects configuration
50
+ - `ZOHO_SESSION_ID` - Zoho session ID
51
+ - `ZOHO_SOURCE` - Zoho source
52
+ - `ZOHO_TEAM` - Zoho team ID
53
+ - `ZOHO_TOKEN` - Zoho CSRF token
54
+ - `ZOHO_URI` - Zoho API URL
55
+ - `ZOHO_USERID` - Zoho user ID
56
+ - `GITLAB_API_URL` - GitLab API URL
57
+ - `GITLAB_PROJECT_ID` - GitLab project ID
43
58
 
44
59
  ## Installation
45
60
 
@@ -114,6 +129,34 @@ Once enabled, you can use Tab to autocomplete:
114
129
  ```bash
115
130
  nitor cleanup
116
131
  ```
132
+ - **Time Entry - Initialize:**
133
+ ```bash
134
+ nitor time-init
135
+ ```
136
+ - **Time Entry - Add:**
137
+ ```bash
138
+ nitor time-add -project <project name> -sprint <sprint name> -task <task id> -date <YYYY-MM-DD> -work <work description> -duration <minutes> -remarks <remarks>
139
+ ```
140
+ - **Time Entry - Update:**
141
+ ```bash
142
+ nitor time-update -id <entry id> -task <task id> -work <work description> -duration <minutes> -remarks <remarks> -date <YYYY-MM-DD>
143
+ ```
144
+ - **Time Entry - Delete:**
145
+ ```bash
146
+ nitor time-delete -id <entry id> -date <YYYY-MM-DD>
147
+ ```
148
+ - **Time Entry - View Entries:**
149
+ ```bash
150
+ nitor time-entries -from <YYYY-MM-DD> -to <YYYY-MM-DD>
151
+ ```
152
+ - **Time Entry - View Stats:**
153
+ ```bash
154
+ nitor time-stats -from <YYYY-MM-DD> -to <YYYY-MM-DD>
155
+ ```
156
+ - **Time Entry - Sync to Zoho:**
157
+ ```bash
158
+ nitor time-zoho
159
+ ```
117
160
 
118
161
  ### Command Reference
119
162
 
@@ -130,6 +173,13 @@ Once enabled, you can use Tab to autocomplete:
130
173
  - `restore` : Restore specified projects
131
174
  - `merge` : Merge source branch into target branch
132
175
  - `cleanup` : Cleanup local git branches (checkout to master and delete all other branches)
176
+ - `time-init` : Initialize time entry configuration
177
+ - `time-add` : Add time entry with support for multiple tags
178
+ - `time-update` : Update existing time entry
179
+ - `time-delete` : Delete time entry
180
+ - `time-entries` : View time entries by date range
181
+ - `time-stats` : View daily statistics of time entries
182
+ - `time-zoho` : Sync time entries to Zoho
133
183
 
134
184
  ### Options
135
185
 
@@ -145,6 +195,19 @@ Once enabled, you can use Tab to autocomplete:
145
195
  - `-source` or `-so` : Source branch name
146
196
  - `-target` or `-ta` : Target branch name
147
197
 
198
+ #### Time Entry Options
199
+
200
+ - `-project` or `-p` : Project name
201
+ - `-sprint` or `-s` : Sprint name (e.g., "sprint 1")
202
+ - `-task` or `-t` : Task ID
203
+ - `-date` or `-dt` : Date in YYYY-MM-DD format
204
+ - `-work` or `-w` : Work description (supports multiple tags)
205
+ - `-duration` or `-du` : Duration in minutes
206
+ - `-remarks` or `-r` : Additional remarks
207
+ - `-id` or `-i` : Entry ID (for update/delete operations)
208
+ - `-from` or `-f` : Start date for filtering
209
+ - `-to` or `-t` : End date for filtering
210
+
148
211
  ## License
149
212
 
150
213
  ISC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitor",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A comprehensive CLI toolkit for automating GitLab operations, AI-powered code review, build/deploy automation, MongoDB backup/restore, and developer productivity tools",
5
5
  "main": "index.js",
6
6
  "author": "Nithin V <mails2nithin@gmail.com>",