@aigne/doc-smith 0.8.15-beta.4 ā 0.8.15-beta.5
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/CHANGELOG.md +7 -0
- package/agents/init/index.mjs +6 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.15-beta.5](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.15-beta.4...v0.8.15-beta.5) (2025-10-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* simplify data source input and select tips ([#223](https://github.com/AIGNE-io/aigne-doc-smith/issues/223)) ([069928b](https://github.com/AIGNE-io/aigne-doc-smith/commit/069928bce2b4a70ee5a0444ecff34501e1158e5c))
|
|
9
|
+
|
|
3
10
|
## [0.8.15-beta.4](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.15-beta.3...v0.8.15-beta.4) (2025-10-28)
|
|
4
11
|
|
|
5
12
|
|
package/agents/init/index.mjs
CHANGED
|
@@ -245,25 +245,21 @@ export default async function init(
|
|
|
245
245
|
input.docsDir = docsDirInput.trim() || `${outputPath}/docs`;
|
|
246
246
|
|
|
247
247
|
// 8. Content sources
|
|
248
|
-
console.log("\nš [8/9]:
|
|
248
|
+
console.log("\nš [8/9]: Data Sources");
|
|
249
|
+
console.log("Please specify the data source we should analyze to generate your documentation.");
|
|
249
250
|
console.log(
|
|
250
|
-
|
|
251
|
+
` 1. Use paths like ${chalk.green("./src")}, ${chalk.green("./README.md")} or ${chalk.green("!./src/private")}.`,
|
|
251
252
|
);
|
|
252
253
|
console.log(
|
|
253
|
-
`
|
|
254
|
-
);
|
|
255
|
-
console.log(
|
|
256
|
-
` 2. You can also use glob patterns like ${chalk.green("src/**/*.js")} or ${chalk.green("docs/**/*.md")} for more specific file matching. (prefix with '!' to ignore a file or folder like ${chalk.green("!private/**/*.js")}).`,
|
|
257
|
-
);
|
|
258
|
-
console.log(
|
|
259
|
-
` 3. You can also use remote url like ${chalk.green("https://example.com/openapi.yaml")}.`,
|
|
254
|
+
` 2. Use globs like ${chalk.green("src/**/*.js")} or ${chalk.green("!private/**/*.js")} for more specific file matching.`,
|
|
260
255
|
);
|
|
256
|
+
console.log(` 3. Use URLs like ${chalk.green("https://example.com/openapi.yaml")}.`);
|
|
261
257
|
console.log("š” If you leave this empty, we will scan the entire directory.");
|
|
262
258
|
|
|
263
259
|
const sourcePaths = [];
|
|
264
260
|
while (true) {
|
|
265
261
|
const selectedPath = await options.prompts.search({
|
|
266
|
-
message: "Please enter a
|
|
262
|
+
message: "Please enter a valid data source:",
|
|
267
263
|
source: async (input) => {
|
|
268
264
|
if (!input || input.trim() === "") {
|
|
269
265
|
return [
|