assistme 0.6.3 → 0.6.5
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/index.js +10 -1
- package/package.json +1 -1
- package/src/agent/self-analyzer.ts +11 -1
package/dist/index.js
CHANGED
|
@@ -4111,7 +4111,7 @@ async function runAnalysisQuery(model, prompt) {
|
|
|
4111
4111
|
prompt,
|
|
4112
4112
|
options: {
|
|
4113
4113
|
model,
|
|
4114
|
-
maxTurns:
|
|
4114
|
+
maxTurns: 10,
|
|
4115
4115
|
allowedTools: [],
|
|
4116
4116
|
effort: "low",
|
|
4117
4117
|
outputFormat: SELF_ANALYSIS_OUTPUT_FORMAT
|
|
@@ -4125,6 +4125,15 @@ async function runAnalysisQuery(model, prompt) {
|
|
|
4125
4125
|
log.debug(
|
|
4126
4126
|
`Self-analysis cost: $${successMsg.total_cost_usd.toFixed(4)}`
|
|
4127
4127
|
);
|
|
4128
|
+
if (!structuredOutput) {
|
|
4129
|
+
log.warn(
|
|
4130
|
+
`Self-analysis: success but no structured_output. result text: ${String(successMsg.result ?? "").slice(0, 500)}`
|
|
4131
|
+
);
|
|
4132
|
+
}
|
|
4133
|
+
} else {
|
|
4134
|
+
log.warn(
|
|
4135
|
+
`Self-analysis: query returned subtype="${resultMsg.subtype}". result: ${String(resultMsg.result ?? "").slice(0, 500)}`
|
|
4136
|
+
);
|
|
4128
4137
|
}
|
|
4129
4138
|
}
|
|
4130
4139
|
}
|
package/package.json
CHANGED
|
@@ -356,7 +356,7 @@ async function runAnalysisQuery(model: string, prompt: string): Promise<unknown>
|
|
|
356
356
|
prompt,
|
|
357
357
|
options: {
|
|
358
358
|
model,
|
|
359
|
-
maxTurns:
|
|
359
|
+
maxTurns: 10,
|
|
360
360
|
allowedTools: [],
|
|
361
361
|
effort: "low",
|
|
362
362
|
outputFormat: SELF_ANALYSIS_OUTPUT_FORMAT,
|
|
@@ -370,6 +370,16 @@ async function runAnalysisQuery(model: string, prompt: string): Promise<unknown>
|
|
|
370
370
|
log.debug(
|
|
371
371
|
`Self-analysis cost: $${successMsg.total_cost_usd.toFixed(4)}`
|
|
372
372
|
);
|
|
373
|
+
if (!structuredOutput) {
|
|
374
|
+
// structured_output can be undefined even on success — log the text result
|
|
375
|
+
log.warn(
|
|
376
|
+
`Self-analysis: success but no structured_output. result text: ${String((successMsg as any).result ?? "").slice(0, 500)}`
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
} else {
|
|
380
|
+
log.warn(
|
|
381
|
+
`Self-analysis: query returned subtype="${resultMsg.subtype}". result: ${String((resultMsg as any).result ?? "").slice(0, 500)}`
|
|
382
|
+
);
|
|
373
383
|
}
|
|
374
384
|
}
|
|
375
385
|
}
|