monoai 0.4.1 → 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 +1 -1
- package/dist/commands/push.js +9 -4
- package/package.json +1 -1
package/dist/commands/login.js
CHANGED
|
@@ -8,7 +8,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
10
|
'https://monoai-backend-production.up.railway.app';
|
|
11
|
-
const WEB_URL = 'https://monoai.space';
|
|
11
|
+
const WEB_URL = 'https://app.monoai.space';
|
|
12
12
|
export const loginCommand = new Command('login')
|
|
13
13
|
.description('Sign in to MonoAI')
|
|
14
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) => {
|
|
@@ -405,15 +404,15 @@ export const pushCommand = new Command('push')
|
|
|
405
404
|
changedRows = buildChangedFileSignals(diffSummary?.files || []);
|
|
406
405
|
// 삭제된 파일 탐지 (git diff --name-status)
|
|
407
406
|
deletedFiles = await detectDeletedFiles(fromRef, 'HEAD');
|
|
408
|
-
// 다중 커밋 메시지 수집 (최대 10
|
|
407
|
+
// 다중 커밋 메시지 수집 (최대 10개, full message)
|
|
409
408
|
try {
|
|
410
409
|
const commitLog = await git.log({ maxCount: 10 });
|
|
411
410
|
commitMessages = (commitLog.all || [])
|
|
412
|
-
.map(c => `${c.hash.slice(0, 7)}: ${c.message.
|
|
411
|
+
.map(c => `${c.hash.slice(0, 7)}: ${c.message.slice(0, 500)}`)
|
|
413
412
|
.filter(Boolean);
|
|
414
413
|
}
|
|
415
414
|
catch {
|
|
416
|
-
commitMessages = [lastCommit.message.
|
|
415
|
+
commitMessages = [lastCommit.message.slice(0, 500)];
|
|
417
416
|
}
|
|
418
417
|
}
|
|
419
418
|
catch {
|
|
@@ -555,6 +554,12 @@ export const pushCommand = new Command('push')
|
|
|
555
554
|
edges: kgEdges,
|
|
556
555
|
changedScopes,
|
|
557
556
|
graphInsights,
|
|
557
|
+
changedFiles: changedFiles.map(f => ({
|
|
558
|
+
path: f.path,
|
|
559
|
+
insertions: f.insertions,
|
|
560
|
+
deletions: f.deletions,
|
|
561
|
+
changes: f.changes,
|
|
562
|
+
})),
|
|
558
563
|
syncStatus: 'processing',
|
|
559
564
|
};
|
|
560
565
|
// 5. Send to Convex
|