AI Code Report — 2025-09-16T19:09:55Z

Summary

  • Hardened the TypeScript plugin bootstrap so the CSV path field only initializes when the graph APIs are available and cleans up listeners even when the panel lacks a prebuilt listener array.

  • Synced the compiled plugins/rdfexport.js bundle with the CSV path property hook so production builds now patch the diagram format panel just like the TypeScript source.

  • Augmented the Bun test suite with a guard that inspects the compiled plugin bundle, preventing regressions where the production script lags behind the source implementation.

Testing

  • bun install

  • bun test src/main/webapp/plugins/rdfexport/tests/rdfexport.test.ts

Notes

  • The compiled bundle reuses the same installCsvPathProperty helper and defensively checks for DOM and graph features before touching the panel, mirroring the source logic.

  • The new unit test only reads the compiled file, so it adds no runtime overhead but will fail if the bundle ever drops the CSV field patch.