@git.zone/cli 2.11.1 → 2.13.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/dist_ts/00_commitinfo_data.js +1 -1
- package/package.json +3 -3
- package/readme.hints.md +14 -6
- package/readme.plan.md +12 -1
- package/ts/00_commitinfo_data.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@git.zone/cli',
|
|
6
|
-
version: '2.
|
|
6
|
+
version: '2.13.0',
|
|
7
7
|
description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxlQUFlO0lBQ3JCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSwrTEFBK0w7Q0FDN00sQ0FBQSJ9
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@git.zone/cli",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.",
|
|
6
6
|
"main": "dist_ts/index.ts",
|
|
7
7
|
"typings": "dist_ts/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@types/node": "^25.0.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@git.zone/tsdoc": "^1.11.
|
|
70
|
+
"@git.zone/tsdoc": "^1.11.4",
|
|
71
71
|
"@git.zone/tspublish": "^1.10.3",
|
|
72
72
|
"@push.rocks/commitinfo": "^1.0.12",
|
|
73
73
|
"@push.rocks/early": "^4.0.4",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@push.rocks/smartcli": "^4.0.19",
|
|
79
79
|
"@push.rocks/smartdiff": "^1.1.0",
|
|
80
80
|
"@push.rocks/smartfile": "^13.1.2",
|
|
81
|
-
"@push.rocks/smartfs": "^1.
|
|
81
|
+
"@push.rocks/smartfs": "^1.3.1",
|
|
82
82
|
"@push.rocks/smartgulp": "^3.0.4",
|
|
83
83
|
"@push.rocks/smartjson": "^6.0.0",
|
|
84
84
|
"@push.rocks/smartlegal": "^1.0.27",
|
package/readme.hints.md
CHANGED
|
@@ -96,6 +96,7 @@ The format module is responsible for project standardization:
|
|
|
96
96
|
The commit module's version bumping has been refactored to eliminate npm command dependencies:
|
|
97
97
|
|
|
98
98
|
**Changes:**
|
|
99
|
+
|
|
99
100
|
- Removed `bumpNpmVersion()` - was causing npm warnings to pollute deno.json
|
|
100
101
|
- Removed `syncVersionToDenoJson()` - no longer needed with unified approach
|
|
101
102
|
- Removed separate `bumpDenoVersion()` - replaced by unified implementation
|
|
@@ -104,6 +105,7 @@ The commit module's version bumping has been refactored to eliminate npm command
|
|
|
104
105
|
- Unified `bumpProjectVersion()` - handles npm/deno/both with single clean code path
|
|
105
106
|
|
|
106
107
|
**Benefits:**
|
|
108
|
+
|
|
107
109
|
- No npm warning pollution in version fields
|
|
108
110
|
- Full control over version bumping process
|
|
109
111
|
- Simpler git history (no amending, no force-tagging)
|
|
@@ -115,11 +117,13 @@ The commit module's version bumping has been refactored to eliminate npm command
|
|
|
115
117
|
The commit module now supports `-y/--yes` flag for non-interactive commits:
|
|
116
118
|
|
|
117
119
|
**Usage:**
|
|
120
|
+
|
|
118
121
|
- `gitzone commit -y` - Auto-accepts AI recommendations without prompts
|
|
119
122
|
- `gitzone commit -yp` - Auto-accepts and pushes to origin
|
|
120
123
|
- Separate `-p/--push` flag controls push behavior
|
|
121
124
|
|
|
122
125
|
**Implementation:**
|
|
126
|
+
|
|
123
127
|
- Creates AnswerBucket programmatically when `-y` flag detected
|
|
124
128
|
- Preserves all UI output for transparency
|
|
125
129
|
- Fully backward compatible with interactive mode
|
|
@@ -248,10 +252,12 @@ gitzone format --clean-backups
|
|
|
248
252
|
The project has been fully migrated from @push.rocks/smartfile v11 to v13, which introduced a major breaking change where filesystem operations were split into two separate packages:
|
|
249
253
|
|
|
250
254
|
**Packages:**
|
|
255
|
+
|
|
251
256
|
- `@push.rocks/smartfile` v13.0.1 - File representation classes (SmartFile, StreamFile, VirtualDirectory)
|
|
252
257
|
- `@push.rocks/smartfs` v1.1.0 - Filesystem operations (read, write, exists, stat, etc.)
|
|
253
258
|
|
|
254
259
|
**Key API Changes:**
|
|
260
|
+
|
|
255
261
|
1. **File Reading**:
|
|
256
262
|
- Old: `plugins.smartfile.fs.toStringSync(path)` or `plugins.smartfile.fs.toObjectSync(path)`
|
|
257
263
|
- New: `await plugins.smartfs.file(path).encoding('utf8').read()` + JSON.parse if needed
|
|
@@ -290,13 +296,15 @@ The project has been fully migrated from @push.rocks/smartfile v11 to v13, which
|
|
|
290
296
|
All sync methods must become async. Functions that were previously synchronous (like `getProjectName()`) now return `Promise<T>` and must be awaited.
|
|
291
297
|
|
|
292
298
|
**Affected Modules:**
|
|
293
|
-
|
|
294
|
-
- ts/
|
|
295
|
-
- ts/
|
|
296
|
-
- ts/
|
|
297
|
-
- ts/
|
|
298
|
-
- ts/
|
|
299
|
+
|
|
300
|
+
- ts/mod_format/\* (largest area - 15+ files)
|
|
301
|
+
- ts/mod_commit/\* (version bumping)
|
|
302
|
+
- ts/mod_services/\* (configuration management)
|
|
303
|
+
- ts/mod_meta/\* (meta repository management)
|
|
304
|
+
- ts/mod_standard/\* (template listing)
|
|
305
|
+
- ts/mod_template/\* (template operations)
|
|
299
306
|
|
|
300
307
|
**Previous API Changes:**
|
|
308
|
+
|
|
301
309
|
- smartnpm requires instance creation: `new NpmRegistry()`
|
|
302
310
|
- Type imports use `import type` for proper verbatim module syntax
|
package/readme.plan.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# GitZone Services Command Implementation Plan
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
|
+
|
|
4
5
|
Implement the `gitzone services` command to manage MongoDB and MinIO containers for development projects.
|
|
5
6
|
|
|
6
7
|
## Tasks
|
|
7
8
|
|
|
8
9
|
### Module Structure Setup
|
|
10
|
+
|
|
9
11
|
- [x] Create `ts/mod_services/` directory
|
|
10
12
|
- [x] Create `mod.plugins.ts` with required imports
|
|
11
13
|
- [x] Create `helpers.ts` with utility functions
|
|
@@ -15,6 +17,7 @@ Implement the `gitzone services` command to manage MongoDB and MinIO containers
|
|
|
15
17
|
- [x] Create `index.ts` with main command logic
|
|
16
18
|
|
|
17
19
|
### Core Functionality
|
|
20
|
+
|
|
18
21
|
- [x] Implement ServiceConfiguration class
|
|
19
22
|
- [x] Load/create `.nogit/env.json` configuration
|
|
20
23
|
- [x] Generate random available ports (20000-30000 range)
|
|
@@ -37,6 +40,7 @@ Implement the `gitzone services` command to manage MongoDB and MinIO containers
|
|
|
37
40
|
- [x] Generate MongoDB Compass connection strings
|
|
38
41
|
|
|
39
42
|
### Commands Implementation
|
|
43
|
+
|
|
40
44
|
- [x] `start` command - Start services (mongo|s3|all)
|
|
41
45
|
- [x] `stop` command - Stop services (mongo|s3|all)
|
|
42
46
|
- [x] `restart` command - Restart services (mongo|s3|all)
|
|
@@ -48,12 +52,14 @@ Implement the `gitzone services` command to manage MongoDB and MinIO containers
|
|
|
48
52
|
- [x] `clean` command - Remove containers and data
|
|
49
53
|
|
|
50
54
|
### Integration
|
|
55
|
+
|
|
51
56
|
- [x] Add `@push.rocks/smartshell` to main plugins.ts
|
|
52
57
|
- [x] Add `@push.rocks/smartnetwork` to main plugins.ts
|
|
53
58
|
- [x] Add `@push.rocks/smartinteraction` to main plugins.ts
|
|
54
59
|
- [x] Register services command in `gitzone.cli.ts`
|
|
55
60
|
|
|
56
61
|
### Features
|
|
62
|
+
|
|
57
63
|
- [x] Auto-configuration with smart defaults
|
|
58
64
|
- [x] Random port assignment to avoid conflicts
|
|
59
65
|
- [x] Project isolation with unique container names
|
|
@@ -65,6 +71,7 @@ Implement the `gitzone services` command to manage MongoDB and MinIO containers
|
|
|
65
71
|
- [x] MongoDB Compass connection string with network IP
|
|
66
72
|
|
|
67
73
|
### Testing
|
|
74
|
+
|
|
68
75
|
- [ ] Test service start/stop operations
|
|
69
76
|
- [ ] Test configuration creation and updates
|
|
70
77
|
- [ ] Test port collision handling
|
|
@@ -73,6 +80,7 @@ Implement the `gitzone services` command to manage MongoDB and MinIO containers
|
|
|
73
80
|
- [ ] Test all command variations
|
|
74
81
|
|
|
75
82
|
## Configuration Format
|
|
83
|
+
|
|
76
84
|
```json
|
|
77
85
|
{
|
|
78
86
|
"PROJECT_NAME": "derived-from-package-name",
|
|
@@ -91,6 +99,7 @@ Implement the `gitzone services` command to manage MongoDB and MinIO containers
|
|
|
91
99
|
```
|
|
92
100
|
|
|
93
101
|
## Command Examples
|
|
102
|
+
|
|
94
103
|
```bash
|
|
95
104
|
gitzone services start # Start all services
|
|
96
105
|
gitzone services start mongo # Start only MongoDB
|
|
@@ -104,10 +113,12 @@ gitzone services clean # Remove containers and data
|
|
|
104
113
|
```
|
|
105
114
|
|
|
106
115
|
## Progress Notes
|
|
116
|
+
|
|
107
117
|
Implementation started: 2025-08-14
|
|
108
118
|
Implementation completed: 2025-08-14
|
|
109
119
|
|
|
110
120
|
## Summary
|
|
121
|
+
|
|
111
122
|
Successfully implemented the `gitzone services` command in TypeScript, providing a complete replacement for the `services.sh` shell script. The implementation includes:
|
|
112
123
|
|
|
113
124
|
1. **Complete Docker service management** for MongoDB and MinIO containers
|
|
@@ -118,4 +129,4 @@ Successfully implemented the `gitzone services` command in TypeScript, providing
|
|
|
118
129
|
6. **Interactive confirmations** for destructive operations
|
|
119
130
|
7. **Comprehensive command set** including start, stop, restart, status, config, compass, logs, remove, and clean commands
|
|
120
131
|
|
|
121
|
-
The module is fully integrated into the gitzone CLI and ready for testing.
|
|
132
|
+
The module is fully integrated into the gitzone CLI and ready for testing.
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@git.zone/cli',
|
|
6
|
-
version: '2.
|
|
6
|
+
version: '2.13.0',
|
|
7
7
|
description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.'
|
|
8
8
|
}
|