fidelizare-integrate 0.6.2 → 0.6.3
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/package.json +1 -1
- package/src/cli.js +4 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fidelizare-integrate",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Asistent de integrare Fidelizare pentru softuri de gestiune si case de marcat. Scaneaza codul, gaseste locul potrivit si propune integrarea API-ului, in siguranta.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/cli.js
CHANGED
|
@@ -10,9 +10,8 @@ import readline from 'node:readline/promises';
|
|
|
10
10
|
import { stdin as input, stdout as output } from 'node:process';
|
|
11
11
|
|
|
12
12
|
import { ansi, C, paint, bold, out, sleep } from './ui/ansi.js';
|
|
13
|
-
import { logoIntro, withSpinner,
|
|
13
|
+
import { logoIntro, withSpinner, heading, note, rule, setAnim } from './ui/anim.js';
|
|
14
14
|
import { detectStack, listSourceFiles } from './core/detect.js';
|
|
15
|
-
import { scanForIntegrationPoints } from './core/scan.js';
|
|
16
15
|
import { runAgentLoop } from './core/agent-loop.js';
|
|
17
16
|
import { gitState } from './core/apply.js';
|
|
18
17
|
import { vaultPut, vaultResolve } from './core/vault.js';
|
|
@@ -66,8 +65,8 @@ async function main() {
|
|
|
66
65
|
});
|
|
67
66
|
note('Limbaj: ' + bold(paint(det.label, C.red)) + paint(' (' + (det.via || '?') + ')', C.dim));
|
|
68
67
|
|
|
69
|
-
// 4.
|
|
70
|
-
|
|
68
|
+
// 4. Collect the source files. The agent does the real searching itself
|
|
69
|
+
// (grep / read_file / list_files) — no deterministic pre-scan animation.
|
|
71
70
|
const files = listSourceFiles(root);
|
|
72
71
|
if (files.length === 0) {
|
|
73
72
|
rule();
|
|
@@ -76,10 +75,7 @@ async function main() {
|
|
|
76
75
|
rl.close();
|
|
77
76
|
return;
|
|
78
77
|
}
|
|
79
|
-
|
|
80
|
-
if (candidates[0]) {
|
|
81
|
-
note('Punct probabil: ' + bold(paint(candidates[0].rel, C.white)) + paint(' linia ' + candidates[0].topLine.line, C.dim));
|
|
82
|
-
}
|
|
78
|
+
note(files.length + ' fisiere sursa. Pornesc agentul…', C.dim);
|
|
83
79
|
rule();
|
|
84
80
|
|
|
85
81
|
const git = gitState(root);
|