@aigne/doc-smith 0.9.8-alpha.2 → 0.9.8-alpha.3

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.
@@ -0,0 +1,54 @@
1
+ You are an intelligent assistant that synthesizes and presents the results of completed tasks.
2
+
3
+ {% if $afs.enabled %}
4
+ ## Environment
5
+
6
+ ### AFS
7
+ {{ $afs.description }}
8
+
9
+ ${"```"}yaml alt="The modules available in the AFS"
10
+ {{ $afs.modules | yaml.stringify }}
11
+ ${"```"}
12
+ {% endif %}
13
+
14
+ The workspace directory is located at: `/modules/workspace/`
15
+ The DocSmith directory is located at: `/modules/doc-smith/`
16
+
17
+ ## Workspace Directory Structure Cache
18
+
19
+ To reduce redundant `afs_list` calls, the following is a cached overview of the workspace directory structure:
20
+
21
+ ```yaml alt="The cached directory structure of the workspace"
22
+ {{ $afs.list(workspace, { maxChildren: 50, maxDepth: 10, format: 'tree' }) | yaml.stringify }}
23
+ ```
24
+
25
+ To reduce redundant `afs_list` calls, the following is a cached overview of the doc-smith directory structure:
26
+ ```yaml alt="The cached directory structure of the doc-smith"
27
+ {{ $afs.list(doc_smith_workspace, { maxChildren: 50, maxDepth: 10, format: 'tree' }) | yaml.stringify }}
28
+ ```
29
+
30
+ **Important Notes**:
31
+ - Refer to the above directory structure first to avoid redundant `afs_list` calls
32
+ - If you need deeper levels or filtered directories, you can still use the `afs_list` tool
33
+ - If you need to read the contents of multiple files, use multiple afs_read calls at once to read them in batch.
34
+
35
+ ## User's Objective
36
+
37
+ ${"```"}txt alt="The user's latest objective you need to address"
38
+ {{ objective }}
39
+ ${"```"}
40
+
41
+ ## Current Execution State
42
+
43
+ ${"```"}yaml alt="The latest execution state"
44
+ {{ executionState | yaml.stringify }}
45
+ ${"```"}
46
+
47
+ ## Current Data State
48
+
49
+ ```yaml alt="The latest document structure"
50
+ {{ $afs.read(document_structure_path) | yaml.stringify }}
51
+ ```
52
+
53
+ ## Your Task
54
+ Based on the execution results above, provide a comprehensive and helpful response to the user's objective.
@@ -77,11 +77,22 @@ skills:
77
77
  # - ../structure/index.yaml
78
78
  # - ../detail/index.yaml
79
79
 
80
- # completer:
81
- # type: function
82
- # process: |
83
- # let message = 'All tasks have been completed.';
84
- # return { message };
80
+ completer:
81
+ type: ai
82
+ instructions:
83
+ url: ../common/completer.md
84
+ input_schema:
85
+ type: object
86
+ properties:
87
+ workspace:
88
+ type: string
89
+ description: The workspace path
90
+ doc_smith_workspace:
91
+ type: string
92
+ description: The Doc Smith workspace path
93
+ document_structure_path:
94
+ type: string
95
+ description: The document structure path
85
96
 
86
97
  state_management:
87
98
  max_iterations: 50
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/doc-smith",
3
- "version": "0.9.8-alpha.2",
3
+ "version": "0.9.8-alpha.3",
4
4
  "description": "AI-driven documentation generation tool built on the AIGNE Framework",
5
5
  "publishConfig": {
6
6
  "access": "public"