gyoshu 0.2.4 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gyoshu",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Scientific research agent extension for OpenCode - turns research goals into reproducible Jupyter notebooks",
5
5
  "type": "module",
6
6
  "bin": {
@@ -413,7 +413,9 @@ export default tool({
413
413
  let generatedReportPath: string | undefined;
414
414
  let pdfExportResult: PdfExportResult | undefined;
415
415
 
416
- if (valid && adjustedStatus === "SUCCESS") {
416
+ // Generate report for both SUCCESS and PARTIAL completions
417
+ // PARTIAL still produces valuable artifacts that should be documented
418
+ if (valid && (adjustedStatus === "SUCCESS" || adjustedStatus === "PARTIAL")) {
417
419
  aiReportResult = await tryGatherAIContext(reportTitle);
418
420
 
419
421
  if (reportTitle) {
@@ -421,7 +423,8 @@ export default tool({
421
423
  const { reportPath } = await generateReport(reportTitle);
422
424
  generatedReportPath = reportPath;
423
425
 
424
- if (exportPdf && reportPath) {
426
+ // Only export PDF for SUCCESS (fully validated research)
427
+ if (exportPdf && reportPath && adjustedStatus === "SUCCESS") {
425
428
  pdfExportResult = await exportToPdf(reportPath);
426
429
  }
427
430
  } catch (e) {