@aigne/doc-smith 0.8.15-beta.13 → 0.8.15-beta.14
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 +13 -0
- package/agents/generate/generate-structure.yaml +0 -4
- package/agents/init/index.mjs +27 -1
- package/agents/publish/publish-docs.mjs +9 -4
- package/agents/utils/analyze-feedback-intent.yaml +0 -2
- package/aigne.yaml +2 -2
- package/package.json +3 -3
- package/utils/deploy.mjs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.15-beta.14](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.15-beta.13...v0.8.15-beta.14) (2025-11-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add reasoning effort configuration for customizable AI model settings ([#270](https://github.com/AIGNE-io/aigne-doc-smith/issues/270)) ([9f15638](https://github.com/AIGNE-io/aigne-doc-smith/commit/9f156387120e8705bf16cf611d7f8f39995c36b3))
|
|
9
|
+
* **cli:** enhance auth with short link responses and detailed error reporting for publishing ([#269](https://github.com/AIGNE-io/aigne-doc-smith/issues/269)) ([31cc252](https://github.com/AIGNE-io/aigne-doc-smith/commit/31cc25236667236dfe91543acdd7e8cccff659c5))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* use default reasoning effort for existing config ([#272](https://github.com/AIGNE-io/aigne-doc-smith/issues/272)) ([2fc9c89](https://github.com/AIGNE-io/aigne-doc-smith/commit/2fc9c89e383c1c5446f2109a2846e831d1e1e871))
|
|
15
|
+
|
|
3
16
|
## [0.8.15-beta.13](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.15-beta.12...v0.8.15-beta.13) (2025-11-05)
|
|
4
17
|
|
|
5
18
|
|
|
@@ -7,8 +7,6 @@ skills:
|
|
|
7
7
|
iterate_on: dataSources
|
|
8
8
|
skills:
|
|
9
9
|
- type: ai
|
|
10
|
-
model:
|
|
11
|
-
reasoning_effort: 500
|
|
12
10
|
instructions:
|
|
13
11
|
- role: system
|
|
14
12
|
url: ../../prompts/structure/generate/system-prompt.md
|
|
@@ -82,8 +80,6 @@ skills:
|
|
|
82
80
|
|
|
83
81
|
- type: ai
|
|
84
82
|
name: refineStructure
|
|
85
|
-
model:
|
|
86
|
-
reasoning_effort: 500
|
|
87
83
|
instructions:
|
|
88
84
|
- role: system
|
|
89
85
|
url: ../../prompts/structure/review/structure-review-system.md
|
package/agents/init/index.mjs
CHANGED
|
@@ -25,6 +25,8 @@ import { validateDocDir } from "./validate.mjs";
|
|
|
25
25
|
|
|
26
26
|
const _PRESS_ENTER_TO_FINISH = "Press Enter to finish";
|
|
27
27
|
|
|
28
|
+
const DEFAULT_REASONING_EFFORT = 502;
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* Guides the user through a multi-turn dialog to generate a YAML configuration file.
|
|
30
32
|
* @param {Object} params
|
|
@@ -32,7 +34,15 @@ const _PRESS_ENTER_TO_FINISH = "Press Enter to finish";
|
|
|
32
34
|
* @param {string} params.fileName - The name of the file.
|
|
33
35
|
* @returns {Promise<Object>}
|
|
34
36
|
*/
|
|
35
|
-
export default async function init(
|
|
37
|
+
export default async function init(input, options) {
|
|
38
|
+
const config = await _init(input, options);
|
|
39
|
+
|
|
40
|
+
options.context.userContext.reasoningEffort = config.reasoningEffort || DEFAULT_REASONING_EFFORT;
|
|
41
|
+
|
|
42
|
+
return config;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function _init(
|
|
36
46
|
{
|
|
37
47
|
outputPath = ".aigne/doc-smith",
|
|
38
48
|
fileName = "config.yaml",
|
|
@@ -388,6 +398,8 @@ export default async function init(
|
|
|
388
398
|
input.projectDesc = projectInfo.description;
|
|
389
399
|
input.projectLogo = projectInfo.icon;
|
|
390
400
|
|
|
401
|
+
input.reasoningEffort = DEFAULT_REASONING_EFFORT;
|
|
402
|
+
|
|
391
403
|
// Generate YAML content
|
|
392
404
|
const yamlContent = generateYAML(input, outputPath);
|
|
393
405
|
|
|
@@ -438,6 +450,8 @@ export function generateYAML(input) {
|
|
|
438
450
|
projectDesc: input.projectDesc || "",
|
|
439
451
|
projectLogo: input.projectLogo || "",
|
|
440
452
|
|
|
453
|
+
reasoningEffort: input.reasoningEffort || 502,
|
|
454
|
+
|
|
441
455
|
// Documentation configuration
|
|
442
456
|
documentPurpose: input.documentPurpose || [],
|
|
443
457
|
targetAudienceTypes: input.targetAudienceTypes || [],
|
|
@@ -473,6 +487,18 @@ export function generateYAML(input) {
|
|
|
473
487
|
|
|
474
488
|
yaml += `${projectSection}\n\n`;
|
|
475
489
|
|
|
490
|
+
const modelSection = yamlStringify({
|
|
491
|
+
reasoningEffort: config.reasoningEffort,
|
|
492
|
+
}).trim();
|
|
493
|
+
|
|
494
|
+
yaml += `\
|
|
495
|
+
# Model Configuration
|
|
496
|
+
|
|
497
|
+
# Reasoning Effort: Level of reasoning effort for AI model, lower is faster but less thorough.
|
|
498
|
+
# Options: minimal, low, medium, high, or numeric values 128-32768.
|
|
499
|
+
${modelSection}
|
|
500
|
+
\n`;
|
|
501
|
+
|
|
476
502
|
// Add documentation configuration with comments
|
|
477
503
|
yaml += "# =============================================================================\n";
|
|
478
504
|
yaml += "# Documentation Configuration\n";
|
|
@@ -263,10 +263,15 @@ export default async function publishDocs(
|
|
|
263
263
|
await saveValueToConfig("shouldSyncBranding", "", "Should sync branding for documentation");
|
|
264
264
|
} else {
|
|
265
265
|
// If the error is 401 or 403, it means the access token is invalid
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
try {
|
|
267
|
+
const obj = JSON.parse(error);
|
|
268
|
+
message = `❌ Publishing failed with error: \n💡 ${obj.message || error}`;
|
|
269
|
+
} catch {
|
|
270
|
+
if (error?.includes("401")) {
|
|
271
|
+
message = `❌ Publishing failed due to an authorization error: \n💡 Please run ${chalk.cyan("aigne doc clear")} to reset your credentials and try again.`;
|
|
272
|
+
} else if (error?.includes("403")) {
|
|
273
|
+
message = `❌ Publishing failed due to an authorization error: \n💡 You’re not the creator of this document (Board ID: ${boardId}). You can change the board ID and try again. \n💡 Or run ${chalk.cyan("aigne doc clear")} to reset your credentials and try again.`;
|
|
274
|
+
}
|
|
270
275
|
}
|
|
271
276
|
}
|
|
272
277
|
|
package/aigne.yaml
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
model:
|
|
4
4
|
model: aignehub/gemini-2.5-pro # reasoning_effort 128-32768
|
|
5
5
|
# https://github.com/AIGNE-io/aigne-framework/blob/main/models/gemini/src/gemini-chat-model.ts#L115
|
|
6
|
-
reasoning_effort:
|
|
7
|
-
|
|
6
|
+
reasoning_effort:
|
|
7
|
+
$get: reasoningEffort
|
|
8
8
|
temperature: 0.8
|
|
9
9
|
agents:
|
|
10
10
|
# Initialization
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/doc-smith",
|
|
3
|
-
"version": "0.8.15-beta.
|
|
3
|
+
"version": "0.8.15-beta.14",
|
|
4
4
|
"description": "AI-driven documentation generation tool built on the AIGNE Framework",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@aigne/core": "^1.65.1-beta.3",
|
|
31
31
|
"@aigne/gemini": "^0.14.5-beta.3",
|
|
32
32
|
"@aigne/openai": "^0.16.5-beta.3",
|
|
33
|
-
"@aigne/publish-docs": "^0.12.
|
|
34
|
-
"@blocklet/payment-broker-client": "^1.22.
|
|
33
|
+
"@aigne/publish-docs": "^0.12.1",
|
|
34
|
+
"@blocklet/payment-broker-client": "^1.22.8",
|
|
35
35
|
"@terrastruct/d2": "^0.1.33",
|
|
36
36
|
"chalk": "^5.5.0",
|
|
37
37
|
"cli-highlight": "^2.1.11",
|
package/utils/deploy.mjs
CHANGED
|
@@ -31,6 +31,7 @@ export async function deploy(id, cachedUrl) {
|
|
|
31
31
|
const result = await client.deploy({
|
|
32
32
|
cachedCheckoutId: id,
|
|
33
33
|
cachedPaymentUrl: cachedUrl,
|
|
34
|
+
needShortUrl: true,
|
|
34
35
|
pageInfo: { successMessage: SUCCESS_MESSAGE },
|
|
35
36
|
hooks: {
|
|
36
37
|
[STEPS.PAYMENT_PENDING]: async ({ sessionId, paymentUrl, isResuming }) => {
|