piqnote 0.1.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/.github/workflows/ci.yml +73 -0
- package/.piqnoterc +9 -0
- package/CHANGELOG.md +9 -0
- package/LICENSE +623 -0
- package/README.md +106 -0
- package/dist/ai/factory.js +24 -0
- package/dist/ai/localProvider.js +23 -0
- package/dist/ai/mockProvider.js +28 -0
- package/dist/ai/openAiProvider.js +85 -0
- package/dist/ai/provider.js +2 -0
- package/dist/analyzer/diffAnalyzer.js +83 -0
- package/dist/analyzer/scorer.js +53 -0
- package/dist/cli.js +236 -0
- package/dist/config/loader.js +39 -0
- package/dist/config/types.js +2 -0
- package/dist/formatter/commitFormatter.js +26 -0
- package/dist/git/gitClient.js +110 -0
- package/package.json +51 -0
- package/src/ai/factory.ts +32 -0
- package/src/ai/localProvider.ts +22 -0
- package/src/ai/mockProvider.ts +30 -0
- package/src/ai/openAiProvider.ts +109 -0
- package/src/ai/provider.ts +19 -0
- package/src/analyzer/diffAnalyzer.ts +96 -0
- package/src/analyzer/scorer.ts +68 -0
- package/src/cli.ts +314 -0
- package/src/config/loader.ts +36 -0
- package/src/config/types.ts +11 -0
- package/src/formatter/commitFormatter.ts +37 -0
- package/src/git/gitClient.ts +96 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main", "master"]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: ["main", "master"]
|
|
8
|
+
workflow_dispatch: {}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
ci:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Setup Node
|
|
18
|
+
uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: 18
|
|
21
|
+
registry-url: https://registry.npmjs.org
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: npm ci
|
|
25
|
+
|
|
26
|
+
- name: Lint
|
|
27
|
+
run: npm run lint
|
|
28
|
+
|
|
29
|
+
- name: Build
|
|
30
|
+
run: npm run build
|
|
31
|
+
|
|
32
|
+
- name: Test
|
|
33
|
+
run: npm test
|
|
34
|
+
|
|
35
|
+
release-please:
|
|
36
|
+
needs: ci
|
|
37
|
+
if: github.event_name == 'push'
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
permissions:
|
|
40
|
+
contents: write
|
|
41
|
+
pull-requests: write
|
|
42
|
+
steps:
|
|
43
|
+
- name: Release Please
|
|
44
|
+
uses: google-github-actions/release-please-action@v4
|
|
45
|
+
with:
|
|
46
|
+
release-type: node
|
|
47
|
+
package-name: piqnote
|
|
48
|
+
changelog-types: '[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Chores","hidden":false},{"type":"refactor","section":"Refactors"}]'
|
|
49
|
+
|
|
50
|
+
publish:
|
|
51
|
+
needs: release-please
|
|
52
|
+
if: github.event_name == 'release' && github.event.action == 'published' && secrets.NPM_TOKEN != ''
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
steps:
|
|
55
|
+
- name: Checkout
|
|
56
|
+
uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- name: Setup Node
|
|
59
|
+
uses: actions/setup-node@v4
|
|
60
|
+
with:
|
|
61
|
+
node-version: 18
|
|
62
|
+
registry-url: https://registry.npmjs.org
|
|
63
|
+
|
|
64
|
+
- name: Install
|
|
65
|
+
run: npm ci
|
|
66
|
+
|
|
67
|
+
- name: Build
|
|
68
|
+
run: npm run build
|
|
69
|
+
|
|
70
|
+
- name: Publish to npm
|
|
71
|
+
env:
|
|
72
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
73
|
+
run: npm publish
|
package/.piqnoterc
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
|
|
4
|
+
|
|
5
|
+
## 0.1.0 - 2026-01-07
|
|
6
|
+
- Initial release of Piqnote CLI (PromethIQ)
|
|
7
|
+
- Commit message generation with interactive flow, subject/full editing, and scoring
|
|
8
|
+
- Branch selection, auto-commit, dry-run, and offline/local/mock AI providers
|
|
9
|
+
- Conventional Commit formatting, staged-file bullets fallback, .piqnoterc configuration, and AGPL-3.0 licensing
|