@aigne/doc-smith 0.8.7 → 0.8.9

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.9](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.8...v0.8.9) (2025-09-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * update d2 diagram theme color ([#108](https://github.com/AIGNE-io/aigne-doc-smith/issues/108)) ([d31dd80](https://github.com/AIGNE-io/aigne-doc-smith/commit/d31dd80c7cb1ca0c4d99d85eb2b6a529651d426f))
9
+
10
+ ## [0.8.8](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.7...v0.8.8) (2025-09-13)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 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))
16
+
3
17
  ## [0.8.7](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.6...v0.9.0) (2025-09-12)
4
18
 
5
19
 
@@ -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 = getActionText(
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 = getActionText(
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/doc-smith",
3
- "version": "0.8.7",
3
+ "version": "0.8.9",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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 {action}? (press Enter to skip):");
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 () => {
@@ -517,18 +517,17 @@ export const D2_CONFIG = `vars: {
517
517
  layout-engine: elk
518
518
  theme-id: 105
519
519
  theme-overrides: {
520
- N1: "#18181B"
521
- N2: "#421E0B"
520
+ N1: "#161B1A"
521
+ N2: "#02A996"
522
522
  N4: "#E6E8EC"
523
- N5: "#E6E8EC"
524
-
525
- B3: "#FFE9D1"
523
+ N5: "#E3FDF6"
524
+ B2: "#161B1A"
525
+ B3: "#BEF4EB"
526
526
  B4: "transparent"
527
-
528
- AA2: "#421E0B"
529
- AA4: "#FFE9D1"
530
-
531
- AB4: "#FBF4E4"
527
+ B5: "#D1F6EC"
528
+ B6: "#E4FFF0"
529
+ AA4: "#D1F6EC"
530
+ AB4: "#BEF4EB"
532
531
  }
533
532
  }
534
533
  }`;