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 CHANGED
@@ -1,7 +1,8 @@
1
1
  ![MAIASS Banner](https://raw.githubusercontent.com/vsmash/maiass/main/assets/maiassbanner2.png)
2
2
 
3
- # `|))` MAIASS (Node.js)
4
- **Modular AI-Augmented Semantic Scribe** — intelligent Git workflow automation
3
+ # MAIASS
4
+
5
+ **AI commit messages, version bumps, and changelogs from one command.**
5
6
 
6
7
  [![npm](https://img.shields.io/npm/v/maiass.svg)](https://www.npmjs.com/package/maiass)
7
8
  [![Node.js](https://img.shields.io/badge/Node.js-20+-green.svg)](https://nodejs.org/)
@@ -9,23 +10,31 @@
9
10
 
10
11
  ---
11
12
 
12
- MAIASS automates the repetitive parts of your Git workflow: staging, AI-powered commit messages, branch merging, version bumping, and changelog generationall from a single command.
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
- > Looking for the shell/Homebrew version? See [bashmaiass](https://github.com/vsmash/bashmaiass).
15
+ > Site: [maiass.net](https://maiass.net) · Bash/Homebrew source: [bashmaiass](https://github.com/vsmash/bashmaiass)
15
16
 
16
17
  ---
17
18
 
18
- ## Installation
19
+ ## Install
20
+
21
+ **npm — all platforms (primary):**
19
22
 
20
23
  ```bash
21
24
  npm install -g maiass
22
25
  ```
23
26
 
24
- Requires Node.js 20+.
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 Start
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
- ## AI Commit Messages
59
+ ## CI auto-version-bump
51
60
 
52
- MAIASS uses its own proxy service for AI-powered commit message suggestions. On first run it creates an anonymous subscription automaticallyno sign-up required.
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 branchso version bumps and changelog entries never get forgotten.
55
62
 
56
63
  ```bash
57
- maiass config set MAIASS_AI_TOKEN your_api_key
58
- ```
64
+ # GitHub Actions writes .github/workflows/maiass-version-bump.yml
65
+ maiass --create-gh-action
59
66
 
60
- AI mode is configured per-project in `.env.maiass`:
67
+ # GitLab CI prints a job stage to paste into .gitlab-ci.yml
68
+ maiass --show-gl-excerpt
61
69
 
62
- ```bash
63
- MAIASS_AI_MODE=ask # ask each time (default)
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
- ## Key Features
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
- ## 🙏 Acknowledgments
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
  [![GitHub Sponsors](https://img.shields.io/badge/Sponsor-GitHub-ea4aaa?logo=github)](https://github.com/sponsors/vsmash)
150
167
  [![Ko-fi](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Ko--fi-29abe0?logo=ko-fi)](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>
@@ -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