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 +1 -0
- package/lib/maiass-command.js +8 -0
- package/package.json +1 -1
package/lib/commit.js
CHANGED
package/lib/maiass-command.js
CHANGED
|
@@ -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,
|