@aigne/doc-smith 0.8.7 → 0.8.8
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.8](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.7...v0.8.8) (2025-09-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* optimize the copy for inquiry feedback ([#106](https://github.com/AIGNE-io/aigne-doc-smith/issues/106)) ([d219ab8](https://github.com/AIGNE-io/aigne-doc-smith/commit/d219ab8e49fedfb2fbe1d3746e30f36751a924df))
|
|
9
|
+
|
|
3
10
|
## [0.8.7](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.6...v0.9.0) (2025-09-12)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -103,10 +103,7 @@ export default async function chooseDocs(
|
|
|
103
103
|
// Prompt for feedback if not provided
|
|
104
104
|
let userFeedback = feedback;
|
|
105
105
|
if (!userFeedback) {
|
|
106
|
-
const feedbackMessage =
|
|
107
|
-
isTranslate,
|
|
108
|
-
"How should we improve this {action}? (press Enter to skip):",
|
|
109
|
-
);
|
|
106
|
+
const feedbackMessage = "How should we improve this document? (press Enter to skip):";
|
|
110
107
|
|
|
111
108
|
userFeedback = await options.prompts.input({
|
|
112
109
|
message: feedbackMessage,
|
|
@@ -97,11 +97,7 @@ export default async function findItemByPath(
|
|
|
97
97
|
// Prompt for feedback if not provided
|
|
98
98
|
let userFeedback = feedback;
|
|
99
99
|
if (!userFeedback) {
|
|
100
|
-
const feedbackMessage =
|
|
101
|
-
isTranslate,
|
|
102
|
-
"How should we improve this {action}? (press Enter to skip):",
|
|
103
|
-
);
|
|
104
|
-
|
|
100
|
+
const feedbackMessage = "How should we improve this document? (press Enter to skip):";
|
|
105
101
|
userFeedback = await options.prompts.input({
|
|
106
102
|
message: feedbackMessage,
|
|
107
103
|
});
|
package/package.json
CHANGED
|
@@ -257,10 +257,6 @@ describe("chooseDocs utility", () => {
|
|
|
257
257
|
|
|
258
258
|
const result = await chooseDocs(input, mockOptions);
|
|
259
259
|
|
|
260
|
-
expect(getActionTextSpy).toHaveBeenCalledWith(
|
|
261
|
-
true,
|
|
262
|
-
"How should we improve this {action}? (press Enter to skip):",
|
|
263
|
-
);
|
|
264
260
|
expect(mockOptions.prompts.input).toHaveBeenCalled();
|
|
265
261
|
expect(result.feedback).toBe("Test feedback");
|
|
266
262
|
});
|
|
@@ -363,7 +363,7 @@ describe("find-item-by-path", () => {
|
|
|
363
363
|
// FEEDBACK HANDLING TESTS
|
|
364
364
|
test("should prompt for feedback when not provided", async () => {
|
|
365
365
|
mockOptions.prompts.input = async (options) => {
|
|
366
|
-
expect(options.message).toBe("How should we improve this
|
|
366
|
+
expect(options.message).toBe("How should we improve this document? (press Enter to skip):");
|
|
367
367
|
return "prompted feedback";
|
|
368
368
|
};
|
|
369
369
|
|
|
@@ -379,10 +379,6 @@ describe("find-item-by-path", () => {
|
|
|
379
379
|
mockOptions,
|
|
380
380
|
);
|
|
381
381
|
|
|
382
|
-
expect(getActionTextSpy).toHaveBeenCalledWith(
|
|
383
|
-
false,
|
|
384
|
-
"How should we improve this {action}? (press Enter to skip):",
|
|
385
|
-
);
|
|
386
382
|
expect(result.feedback).toBe("prompted feedback");
|
|
387
383
|
});
|
|
388
384
|
|
|
@@ -457,11 +453,6 @@ describe("find-item-by-path", () => {
|
|
|
457
453
|
},
|
|
458
454
|
mockOptions,
|
|
459
455
|
);
|
|
460
|
-
|
|
461
|
-
expect(getActionTextSpy).toHaveBeenCalledWith(
|
|
462
|
-
true,
|
|
463
|
-
"How should we improve this {action}? (press Enter to skip):",
|
|
464
|
-
);
|
|
465
456
|
});
|
|
466
457
|
|
|
467
458
|
test("should handle translation context in error messages", async () => {
|