dc-ops-cli 1.1.2 → 1.1.3
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 +47 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -233,24 +233,59 @@ The clipboard `copy` command also confirms when it clears the clipboard after th
|
|
|
233
233
|
|
|
234
234
|
## Contributing
|
|
235
235
|
|
|
236
|
-
We use [Conventional Commits](https://www.conventionalcommits.org/) with [semantic-release](https://semantic-release.gitbook.io/) for automated versioning
|
|
236
|
+
We use [Conventional Commits](https://www.conventionalcommits.org/) with [semantic-release](https://semantic-release.gitbook.io/) for automated versioning.
|
|
237
237
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
### Commit Convention
|
|
239
|
+
|
|
240
|
+
| Type | Release | Example |
|
|
241
|
+
|------|---------|---------|
|
|
242
|
+
| `fix:` | Patch (1.0.x) | `fix: handle empty secrets correctly` |
|
|
243
|
+
| `feat:` | Minor (1.x.0) | `feat: add vault search command` |
|
|
244
|
+
| `feat!:` | Major (x.0.0) | `feat!: redesign API` |
|
|
245
|
+
| `docs:` | None | `docs: update README` |
|
|
246
|
+
| `chore:` | None | `chore: update dependencies` |
|
|
247
|
+
| `refactor:` | None | `refactor: simplify error handling` |
|
|
248
|
+
| `test:` | None | `test: add get command tests` |
|
|
249
|
+
|
|
250
|
+
### Release Process
|
|
241
251
|
|
|
242
|
-
|
|
243
|
-
git commit -m "feat: add vault search command"
|
|
252
|
+
**Fully automated** - just follow these steps:
|
|
244
253
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
```bash
|
|
255
|
+
# 1. Run quality gates (required before pushing)
|
|
256
|
+
npm run typecheck && npm run build && npm test
|
|
257
|
+
|
|
258
|
+
# 2. Commit with conventional format
|
|
259
|
+
git add .
|
|
260
|
+
git commit -m "feat: your new feature"
|
|
249
261
|
|
|
250
|
-
|
|
262
|
+
# 3. Push to master - CI handles everything
|
|
263
|
+
git push origin master
|
|
251
264
|
```
|
|
252
265
|
|
|
253
|
-
|
|
266
|
+
**What happens automatically:**
|
|
267
|
+
1. CI runs typecheck, build, and tests
|
|
268
|
+
2. semantic-release analyzes your commits
|
|
269
|
+
3. Version is bumped in package.json
|
|
270
|
+
4. CHANGELOG.md is updated
|
|
271
|
+
5. GitHub release is created
|
|
272
|
+
6. Package is published to npm
|
|
273
|
+
|
|
274
|
+
**Do NOT manually:**
|
|
275
|
+
- Edit version in package.json
|
|
276
|
+
- Edit CHANGELOG.md
|
|
277
|
+
- Create GitHub releases
|
|
278
|
+
- Publish to npm
|
|
279
|
+
|
|
280
|
+
### Quality Gates
|
|
281
|
+
|
|
282
|
+
All must pass before pushing:
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
npm run typecheck # TypeScript type checking
|
|
286
|
+
npm run build # Compile to dist/
|
|
287
|
+
npm test # Run all tests
|
|
288
|
+
```
|
|
254
289
|
|
|
255
290
|
## Integration with AGENTS.md Pattern
|
|
256
291
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dc-ops-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Easy secret retrieval from 1Password with smart fallbacks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build:bin": "bun build --compile src/index.ts --outfile bin/ops",
|
|
22
22
|
"build": "tsc",
|
|
23
|
-
"dev": "ts-node src/index.ts",
|
|
23
|
+
"dev": "TS_NODE_TRANSPILE_ONLY=1 node --loader ts-node/esm src/index.ts",
|
|
24
24
|
"typecheck": "tsc --noEmit",
|
|
25
25
|
"lint": "tsc --noEmit",
|
|
26
26
|
"test": "TS_NODE_TRANSPILE_ONLY=1 node --test --loader ts-node/esm",
|