maiass 5.9.9 → 5.9.10

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/lib/commit.js CHANGED
@@ -1002,6 +1002,7 @@ export async function commitThis(options = {}) {
1002
1002
 
1003
1003
  // Export individual functions for testing and reuse
1004
1004
  export {
1005
+ createAnonymousSubscriptionIfNeeded,
1005
1006
  getCommitMessage,
1006
1007
  handleStagedCommit,
1007
1008
  getAICommitSuggestion,
@@ -1,6 +1,7 @@
1
1
  import { log, logger } from './logger.js';
2
2
  import { SYMBOLS } from './symbols.js';
3
3
  import { runMaiassPipeline } from './maiass-pipeline.js';
4
+ import { createAnonymousSubscriptionIfNeeded } from './commit.js';
4
5
  import colors from './colors.js';
5
6
 
6
7
  /**
@@ -33,6 +34,13 @@ export async function handleMaiassCommand(args) {
33
34
  logger.header('', 'MAIASS - Modular AI-Assisted Semantic Scribe');
34
35
 
35
36
  try {
37
+ // Create anonymous subscription if needed (matches bashmaiass behavior)
38
+ // This ensures free credits are allocated on first run
39
+ const aiMode = process.env.MAIASS_AI_MODE || 'ask';
40
+ if (aiMode !== 'off') {
41
+ await createAnonymousSubscriptionIfNeeded();
42
+ }
43
+
36
44
  // Run the complete MAIASS pipeline
37
45
  const result = await runMaiassPipeline({
38
46
  commitsOnly,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maiass",
3
3
  "type": "module",
4
- "version": "5.9.9",
4
+ "version": "5.9.10",
5
5
  "description": "MAIASS - Modular AI-Augmented Semantic Scribe - Intelligent Git workflow automation",
6
6
  "main": "maiass.mjs",
7
7
  "bin": {