monoai 0.4.0 → 0.4.2
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/dist/commands/login.js +2 -3
- package/dist/commands/push.js +10 -6
- package/package.json +1 -1
package/dist/commands/login.js
CHANGED
|
@@ -7,9 +7,8 @@ import ora from 'ora';
|
|
|
7
7
|
const config = new Conf({ projectName: 'monoai' });
|
|
8
8
|
// Production URLs (single source of truth)
|
|
9
9
|
const BACKEND_URL = process.env.MONOAI_API_URL ||
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const WEB_URL = 'https://monoai.space';
|
|
10
|
+
'https://monoai-backend-production.up.railway.app';
|
|
11
|
+
const WEB_URL = 'https://app.monoai.space';
|
|
13
12
|
export const loginCommand = new Command('login')
|
|
14
13
|
.description('Sign in to MonoAI')
|
|
15
14
|
.action(async () => {
|
package/dist/commands/push.js
CHANGED
|
@@ -195,7 +195,6 @@ function buildGraphInsightsFromChanges(files) {
|
|
|
195
195
|
const hotFiles = files
|
|
196
196
|
.slice()
|
|
197
197
|
.sort((a, b) => b.changes - a.changes)
|
|
198
|
-
.slice(0, 8)
|
|
199
198
|
.map((row) => `changed_file:${row.path} (+${row.insertions}/-${row.deletions})`);
|
|
200
199
|
const hotScopes = Array.from(byScope.entries())
|
|
201
200
|
.sort((a, b) => {
|
|
@@ -358,8 +357,7 @@ export const pushCommand = new Command('push')
|
|
|
358
357
|
const BACKEND_URL = process.env.MONOAI_API_URL ||
|
|
359
358
|
process.env.MONOAI_BACKEND_URL ||
|
|
360
359
|
config.get('api_url') ||
|
|
361
|
-
|
|
362
|
-
'https://monoai-backend-653798811703.us-central1.run.app';
|
|
360
|
+
'https://monoai-backend-production.up.railway.app';
|
|
363
361
|
// 1. Git Metadata (Zero-HITL Intent)
|
|
364
362
|
const { lastCommit, branch, changedScopes, changedFiles, commitMessages, deletedFiles } = await track('git metadata', async () => {
|
|
365
363
|
const log = await git.log({ maxCount: 1 });
|
|
@@ -406,15 +404,15 @@ export const pushCommand = new Command('push')
|
|
|
406
404
|
changedRows = buildChangedFileSignals(diffSummary?.files || []);
|
|
407
405
|
// 삭제된 파일 탐지 (git diff --name-status)
|
|
408
406
|
deletedFiles = await detectDeletedFiles(fromRef, 'HEAD');
|
|
409
|
-
// 다중 커밋 메시지 수집 (최대 10
|
|
407
|
+
// 다중 커밋 메시지 수집 (최대 10개, full message)
|
|
410
408
|
try {
|
|
411
409
|
const commitLog = await git.log({ maxCount: 10 });
|
|
412
410
|
commitMessages = (commitLog.all || [])
|
|
413
|
-
.map(c => `${c.hash.slice(0, 7)}: ${c.message.
|
|
411
|
+
.map(c => `${c.hash.slice(0, 7)}: ${c.message.slice(0, 500)}`)
|
|
414
412
|
.filter(Boolean);
|
|
415
413
|
}
|
|
416
414
|
catch {
|
|
417
|
-
commitMessages = [lastCommit.message.
|
|
415
|
+
commitMessages = [lastCommit.message.slice(0, 500)];
|
|
418
416
|
}
|
|
419
417
|
}
|
|
420
418
|
catch {
|
|
@@ -556,6 +554,12 @@ export const pushCommand = new Command('push')
|
|
|
556
554
|
edges: kgEdges,
|
|
557
555
|
changedScopes,
|
|
558
556
|
graphInsights,
|
|
557
|
+
changedFiles: changedFiles.map(f => ({
|
|
558
|
+
path: f.path,
|
|
559
|
+
insertions: f.insertions,
|
|
560
|
+
deletions: f.deletions,
|
|
561
|
+
changes: f.changes,
|
|
562
|
+
})),
|
|
559
563
|
syncStatus: 'processing',
|
|
560
564
|
};
|
|
561
565
|
// 5. Send to Convex
|