@faapi/faapi 6.13.0 → 6.14.0
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/dist/cli/index.js
CHANGED
|
@@ -3091,7 +3091,7 @@ function extractAgentMetadata(program, filePath, pathMeta) {
|
|
|
3091
3091
|
const jsDoc = getJSDocFromNode(configFound.jsDocOwner);
|
|
3092
3092
|
const description = extractDescription(jsDoc);
|
|
3093
3093
|
const agentNameOverride = extractJSDocTagValue(jsDoc, "agent");
|
|
3094
|
-
const { systemPrompt, tools, agents, model, maxTurns } = extractConfigFields(
|
|
3094
|
+
const { systemPrompt, tools, agents, model, maxTurns, inputDescription } = extractConfigFields(
|
|
3095
3095
|
objectLiteral,
|
|
3096
3096
|
sourceFile
|
|
3097
3097
|
);
|
|
@@ -3104,7 +3104,8 @@ function extractAgentMetadata(program, filePath, pathMeta) {
|
|
|
3104
3104
|
tools,
|
|
3105
3105
|
agents,
|
|
3106
3106
|
model,
|
|
3107
|
-
maxTurns
|
|
3107
|
+
maxTurns,
|
|
3108
|
+
inputDescription
|
|
3108
3109
|
};
|
|
3109
3110
|
}
|
|
3110
3111
|
function findConfigExport(sourceFile) {
|
|
@@ -3153,6 +3154,7 @@ function extractConfigFields(objLit, sourceFile) {
|
|
|
3153
3154
|
let agents;
|
|
3154
3155
|
let model;
|
|
3155
3156
|
let maxTurns;
|
|
3157
|
+
let inputDescription;
|
|
3156
3158
|
for (const prop of objLit.properties) {
|
|
3157
3159
|
if (ts10.isSpreadAssignment(prop)) continue;
|
|
3158
3160
|
if (!ts10.isPropertyAssignment(prop)) {
|
|
@@ -3183,11 +3185,14 @@ function extractConfigFields(objLit, sourceFile) {
|
|
|
3183
3185
|
case "maxTurns":
|
|
3184
3186
|
maxTurns = requireNumberValue(prop, "maxTurns", sourceFile);
|
|
3185
3187
|
break;
|
|
3188
|
+
case "inputDescription":
|
|
3189
|
+
inputDescription = requireStringValue(prop, "inputDescription", sourceFile);
|
|
3190
|
+
break;
|
|
3186
3191
|
default:
|
|
3187
3192
|
throw SchemaExtractionError.at(
|
|
3188
3193
|
prop,
|
|
3189
3194
|
`config.${propName}`,
|
|
3190
|
-
"\u672A\u77E5 config \u5B57\u6BB5\u2014\u2014\u4EC5\u652F\u6301 systemPrompt / tools / agents / model / maxTurns",
|
|
3195
|
+
"\u672A\u77E5 config \u5B57\u6BB5\u2014\u2014\u4EC5\u652F\u6301 systemPrompt / tools / agents / model / maxTurns / inputDescription",
|
|
3191
3196
|
sourceFile
|
|
3192
3197
|
);
|
|
3193
3198
|
}
|
|
@@ -3200,7 +3205,7 @@ function extractConfigFields(objLit, sourceFile) {
|
|
|
3200
3205
|
sourceFile
|
|
3201
3206
|
);
|
|
3202
3207
|
}
|
|
3203
|
-
return { systemPrompt, tools, agents, model, maxTurns };
|
|
3208
|
+
return { systemPrompt, tools, agents, model, maxTurns, inputDescription };
|
|
3204
3209
|
}
|
|
3205
3210
|
function getPropertyName(name) {
|
|
3206
3211
|
if (ts10.isIdentifier(name)) return name.text;
|