@agiflowai/aicode-utils 0.5.0 → 1.0.0
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/index.cjs +15 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -7
- package/package.json +9 -2
package/dist/index.cjs
CHANGED
|
@@ -286,7 +286,7 @@ var ProjectConfigResolver = class ProjectConfigResolver {
|
|
|
286
286
|
configSource: ConfigSource.TOOLKIT_YAML,
|
|
287
287
|
workspaceRoot
|
|
288
288
|
};
|
|
289
|
-
} catch (
|
|
289
|
+
} catch (_error) {}
|
|
290
290
|
throw new Error(ProjectConfigResolver.getHelpfulErrorMessage(absolutePath));
|
|
291
291
|
} catch (error) {
|
|
292
292
|
if (error instanceof Error && error.message.includes("No project configuration found")) throw error;
|
|
@@ -603,10 +603,10 @@ const print = {
|
|
|
603
603
|
console.log(chalk.default.bold.cyan(message));
|
|
604
604
|
},
|
|
605
605
|
item: (message) => {
|
|
606
|
-
console.log(chalk.default.
|
|
606
|
+
console.log(chalk.default.white(` - ${message}`));
|
|
607
607
|
},
|
|
608
608
|
indent: (message) => {
|
|
609
|
-
console.log(chalk.default.
|
|
609
|
+
console.log(chalk.default.white(` ${message}`));
|
|
610
610
|
},
|
|
611
611
|
highlight: (message) => {
|
|
612
612
|
console.log(chalk.default.bold.green(message));
|
|
@@ -671,20 +671,28 @@ const sections = {
|
|
|
671
671
|
},
|
|
672
672
|
list: (title, items) => {
|
|
673
673
|
print.header(`\n${title}\n`);
|
|
674
|
-
items.forEach((item) =>
|
|
674
|
+
items.forEach((item) => {
|
|
675
|
+
print.item(item);
|
|
676
|
+
});
|
|
675
677
|
},
|
|
676
678
|
nextSteps: (steps) => {
|
|
677
679
|
print.header(`\n${icons.clipboard} Next steps:`);
|
|
678
|
-
steps.forEach((step) =>
|
|
680
|
+
steps.forEach((step) => {
|
|
681
|
+
print.indent(step);
|
|
682
|
+
});
|
|
679
683
|
},
|
|
680
684
|
createdFiles: (files, maxShow = 10) => {
|
|
681
685
|
print.header(`\n${icons.folder} Created files:`);
|
|
682
|
-
files.slice(0, maxShow).forEach((file) =>
|
|
686
|
+
files.slice(0, maxShow).forEach((file) => {
|
|
687
|
+
print.item(file);
|
|
688
|
+
});
|
|
683
689
|
if (files.length > maxShow) print.indent(`... and ${files.length - maxShow} more files`);
|
|
684
690
|
},
|
|
685
691
|
warnings: (warnings) => {
|
|
686
692
|
print.warning(`\n${icons.warning} Warnings:`);
|
|
687
|
-
warnings.forEach((warning) =>
|
|
693
|
+
warnings.forEach((warning) => {
|
|
694
|
+
print.item(warning);
|
|
695
|
+
});
|
|
688
696
|
}
|
|
689
697
|
};
|
|
690
698
|
|
package/dist/index.d.cts
CHANGED
|
@@ -396,11 +396,11 @@ declare const print: {
|
|
|
396
396
|
*/
|
|
397
397
|
header: (message: string) => void;
|
|
398
398
|
/**
|
|
399
|
-
* Log item in a list (
|
|
399
|
+
* Log item in a list (white with prefix)
|
|
400
400
|
*/
|
|
401
401
|
item: (message: string) => void;
|
|
402
402
|
/**
|
|
403
|
-
* Log indented text (
|
|
403
|
+
* Log indented text (white)
|
|
404
404
|
*/
|
|
405
405
|
indent: (message: string) => void;
|
|
406
406
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -396,11 +396,11 @@ declare const print: {
|
|
|
396
396
|
*/
|
|
397
397
|
header: (message: string) => void;
|
|
398
398
|
/**
|
|
399
|
-
* Log item in a list (
|
|
399
|
+
* Log item in a list (white with prefix)
|
|
400
400
|
*/
|
|
401
401
|
item: (message: string) => void;
|
|
402
402
|
/**
|
|
403
|
-
* Log indented text (
|
|
403
|
+
* Log indented text (white)
|
|
404
404
|
*/
|
|
405
405
|
indent: (message: string) => void;
|
|
406
406
|
/**
|
package/dist/index.js
CHANGED
|
@@ -264,7 +264,7 @@ var ProjectConfigResolver = class ProjectConfigResolver {
|
|
|
264
264
|
configSource: ConfigSource.TOOLKIT_YAML,
|
|
265
265
|
workspaceRoot
|
|
266
266
|
};
|
|
267
|
-
} catch (
|
|
267
|
+
} catch (_error) {}
|
|
268
268
|
throw new Error(ProjectConfigResolver.getHelpfulErrorMessage(absolutePath));
|
|
269
269
|
} catch (error) {
|
|
270
270
|
if (error instanceof Error && error.message.includes("No project configuration found")) throw error;
|
|
@@ -581,10 +581,10 @@ const print = {
|
|
|
581
581
|
console.log(chalk.bold.cyan(message));
|
|
582
582
|
},
|
|
583
583
|
item: (message) => {
|
|
584
|
-
console.log(chalk.
|
|
584
|
+
console.log(chalk.white(` - ${message}`));
|
|
585
585
|
},
|
|
586
586
|
indent: (message) => {
|
|
587
|
-
console.log(chalk.
|
|
587
|
+
console.log(chalk.white(` ${message}`));
|
|
588
588
|
},
|
|
589
589
|
highlight: (message) => {
|
|
590
590
|
console.log(chalk.bold.green(message));
|
|
@@ -649,20 +649,28 @@ const sections = {
|
|
|
649
649
|
},
|
|
650
650
|
list: (title, items) => {
|
|
651
651
|
print.header(`\n${title}\n`);
|
|
652
|
-
items.forEach((item) =>
|
|
652
|
+
items.forEach((item) => {
|
|
653
|
+
print.item(item);
|
|
654
|
+
});
|
|
653
655
|
},
|
|
654
656
|
nextSteps: (steps) => {
|
|
655
657
|
print.header(`\n${icons.clipboard} Next steps:`);
|
|
656
|
-
steps.forEach((step) =>
|
|
658
|
+
steps.forEach((step) => {
|
|
659
|
+
print.indent(step);
|
|
660
|
+
});
|
|
657
661
|
},
|
|
658
662
|
createdFiles: (files, maxShow = 10) => {
|
|
659
663
|
print.header(`\n${icons.folder} Created files:`);
|
|
660
|
-
files.slice(0, maxShow).forEach((file) =>
|
|
664
|
+
files.slice(0, maxShow).forEach((file) => {
|
|
665
|
+
print.item(file);
|
|
666
|
+
});
|
|
661
667
|
if (files.length > maxShow) print.indent(`... and ${files.length - maxShow} more files`);
|
|
662
668
|
},
|
|
663
669
|
warnings: (warnings) => {
|
|
664
670
|
print.warning(`\n${icons.warning} Warnings:`);
|
|
665
|
-
warnings.forEach((warning) =>
|
|
671
|
+
warnings.forEach((warning) => {
|
|
672
|
+
print.item(warning);
|
|
673
|
+
});
|
|
666
674
|
}
|
|
667
675
|
};
|
|
668
676
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agiflowai/aicode-utils",
|
|
3
3
|
"description": "Shared utilities and types for AI-powered code generation, scaffolding, and analysis",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"author": "AgiflowIO",
|
|
7
7
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"main": "./dist/index.cjs",
|
|
26
26
|
"module": "./dist/index.js",
|
|
27
|
-
"types": "./dist/index.d.
|
|
27
|
+
"types": "./dist/index.d.cts",
|
|
28
28
|
"files": [
|
|
29
29
|
"dist",
|
|
30
30
|
"README.md"
|
|
@@ -48,6 +48,13 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
+
"exports": {
|
|
52
|
+
".": {
|
|
53
|
+
"import": "./dist/index.js",
|
|
54
|
+
"require": "./dist/index.cjs"
|
|
55
|
+
},
|
|
56
|
+
"./package.json": "./package.json"
|
|
57
|
+
},
|
|
51
58
|
"scripts": {
|
|
52
59
|
"build": "tsdown",
|
|
53
60
|
"test": "vitest --run",
|