maiass 5.12.3 → 5.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/README.md +46 -25
- package/lib/account-info.js +8 -0
- package/lib/changelog-cleanup.js +959 -0
- package/lib/changelog.js +64 -31
- package/lib/ci-templates.js +13 -2
- package/lib/config-command.js +86 -14
- package/lib/env-display.js +8 -0
- package/lib/flag-validator.js +111 -0
- package/lib/git-info.js +7 -0
- package/lib/maiass-command.js +18 -0
- package/lib/maiass-variables.js +2 -0
- package/lib/version-command.js +15 -11
- package/maiass.mjs +93 -64
- package/package.json +2 -2
- package/templates/ci/bitbucket-pipelines-excerpt.yml +7 -4
- package/templates/ci/github-version-bump.yml +15 -9
- package/templates/ci/gitlab-ci-excerpt.yml +9 -6
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
|
|
3
|
+
# MAIASS
|
|
4
|
+
|
|
5
|
+
**AI commit messages, version bumps, and changelogs from one command.**
|
|
5
6
|
|
|
6
7
|
[](https://www.npmjs.com/package/maiass)
|
|
7
8
|
[](https://nodejs.org/)
|
|
@@ -9,23 +10,31 @@
|
|
|
9
10
|
|
|
10
11
|
---
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Run `maiass` in any git repo and it stages your changes, writes the commit message, bumps the version, updates the changelog, and merges the branch. It's for developers who do this routine every day and want the keystrokes back. Anonymous on first run — no email, no card, no sign-up.
|
|
13
14
|
|
|
14
|
-
>
|
|
15
|
+
> Site: [maiass.net](https://maiass.net) · Bash/Homebrew source: [bashmaiass](https://github.com/vsmash/bashmaiass)
|
|
15
16
|
|
|
16
17
|
---
|
|
17
18
|
|
|
18
|
-
##
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
**npm — all platforms (primary):**
|
|
19
22
|
|
|
20
23
|
```bash
|
|
21
24
|
npm install -g maiass
|
|
22
25
|
```
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
**Homebrew — macOS:**
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
brew tap vsmash/maiass && brew install maiass
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Requires Node.js 20+ for the npm install. Linux script install and other options are in the [docs](docs/setup.md).
|
|
25
34
|
|
|
26
35
|
---
|
|
27
36
|
|
|
28
|
-
## Quick
|
|
37
|
+
## Quick start
|
|
29
38
|
|
|
30
39
|
```bash
|
|
31
40
|
# First time in a project — run setup
|
|
@@ -47,29 +56,41 @@ maiass --dry-run patch
|
|
|
47
56
|
|
|
48
57
|
---
|
|
49
58
|
|
|
50
|
-
##
|
|
59
|
+
## CI auto-version-bump
|
|
51
60
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
To use a named account (for credit top-ups):
|
|
61
|
+
One flag installs a CI workflow that runs `maiass -a patch` every time a PR merges into your develop branch — so version bumps and changelog entries never get forgotten.
|
|
55
62
|
|
|
56
63
|
```bash
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
# GitHub Actions — writes .github/workflows/maiass-version-bump.yml
|
|
65
|
+
maiass --create-gh-action
|
|
59
66
|
|
|
60
|
-
|
|
67
|
+
# GitLab CI — prints a job stage to paste into .gitlab-ci.yml
|
|
68
|
+
maiass --show-gl-excerpt
|
|
61
69
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
MAIASS_AI_MODE=autosuggest # always use AI
|
|
65
|
-
MAIASS_AI_MODE=off # disable AI
|
|
70
|
+
# Bitbucket Pipelines — prints a step to paste into bitbucket-pipelines.yml
|
|
71
|
+
maiass --show-bb-excerpt
|
|
66
72
|
```
|
|
67
73
|
|
|
74
|
+
The installed workflow sets `MAIASS_AI_MODE=off`, so the bump runs at zero AI credit cost. Your configured `MAIASS_DEVELOPBRANCH` is baked into the trigger filter at install time. Full setup (PAT scopes for GitHub, double-bump guard for GitLab/Bitbucket) in [the workflow docs](docs/workflow.md#-ci-auto-version-bump-on-pr-merge).
|
|
75
|
+
|
|
68
76
|
---
|
|
69
77
|
|
|
70
|
-
##
|
|
78
|
+
## Anonymous by default
|
|
79
|
+
|
|
80
|
+
First run creates a subscription tied to a machine fingerprint — no email, no account, no card. When you need credits, top up at [maiass.net](https://maiass.net) or run `maiass --setup` to add an API key for a named account.
|
|
81
|
+
|
|
82
|
+
API keys live in OS-level secure storage (Keychain on macOS, Secret Service on Linux, encrypted local store on Windows), never in your repo. Commit diffs are sent to the proxy to generate the message and aren't stored — token counts, model, timestamp, and source IP are kept for billing and abuse prevention.
|
|
83
|
+
|
|
84
|
+
AI mode per project in `.env.maiass`: `ask` / `autosuggest` / `off`.
|
|
85
|
+
|
|
86
|
+
Run `maiass account-info` to see your subscription ID, credit balance, and top-up link.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Key features
|
|
71
91
|
|
|
72
92
|
- **AI commit messages** — analyses your diff and suggests a structured commit message
|
|
93
|
+
- **CI auto-version-bump** — one flag installs a GitHub Actions, GitLab CI, or Bitbucket Pipelines workflow that bumps the version on every merge to your develop branch, at zero AI credit cost
|
|
73
94
|
- **Version management** — detects and bumps `package.json`, `composer.json`, `VERSION`, `.pbxproj` (Swift/Xcode), and more
|
|
74
95
|
- **Changelog generation** — user-facing `CHANGELOG.md` and internal developer changelog
|
|
75
96
|
- **Branch workflow** — feature → develop → staging → main with merge handling
|
|
@@ -131,7 +152,7 @@ MAIASS_DEBUG=true # verbose output
|
|
|
131
152
|
|
|
132
153
|
Issues and PRs welcome. See [docs/development.md](docs/development.md) to get started.
|
|
133
154
|
|
|
134
|
-
##
|
|
155
|
+
## Acknowledgments
|
|
135
156
|
|
|
136
157
|
- Git community for workflow inspiration
|
|
137
158
|
- All contributors and testers
|
|
@@ -140,11 +161,11 @@ Issues and PRs welcome. See [docs/development.md](docs/development.md) to get st
|
|
|
140
161
|
|
|
141
162
|
[GNU General Public License v3.0](LICENSE)
|
|
142
163
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
**Made with ❤️ for developers who want to automate versioning, changelogs, and commit messages.**
|
|
146
|
-
|
|
147
|
-
## 💸 Support MAIASS
|
|
164
|
+
## Support MAIASS
|
|
148
165
|
|
|
149
166
|
[](https://github.com/sponsors/vsmash)
|
|
150
167
|
[](https://ko-fi.com/myass)
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
<sub>MAIASS is a backronym for *Modular AI-Assisted Semantic Scribe*. It's also pronounced however you like.</sub>
|
package/lib/account-info.js
CHANGED
|
@@ -11,6 +11,14 @@ import { getSingleCharInput } from './input-utils.js';
|
|
|
11
11
|
import fs from 'fs';
|
|
12
12
|
import path from 'path';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Flags accepted by `maiass account-info` (and the `--account-info` shortcut).
|
|
16
|
+
* Consumed by the global flag validator in maiass.mjs — see MAI-43.
|
|
17
|
+
*/
|
|
18
|
+
export const FLAGS = [
|
|
19
|
+
'--json',
|
|
20
|
+
];
|
|
21
|
+
|
|
14
22
|
/**
|
|
15
23
|
* Mask a sensitive token (show start and end only)
|
|
16
24
|
* @param {string} token - Token to mask
|