Custom .kts definitions that resolve globally in I...
# feed
a
Custom .kts definitions that resolve globally in IntelliJ – looking for someone who has solved this cleanly                                                                                                               I'm building Hensu, an agentic workflow engine on JDK 25 + Kotlin: compiled DSL, GraalVM native binary, virtual-thread executor, zero third-party deps in the core. Workflows are moving from .kt to *.workflow.kts to     give authors the same experience as build.gradle.kts. The Kotlin compiler is happy. IntelliJ is not. Outside a narrow dsl package the IDE refuses to resolve receivers and paints everything red, so the editor experience for workflow authors is broken. Goal: a @KotlinScript definition that IntelliJ auto-discovers across the whole repo regardless of package depth, mirroring how Gradle wires .gradle.kts. kotlin-scripting-jvm + META-INF/kotlin/script/templates registration is the obvious path; the question is the cleanest way to make it stick globally without per-file setup. Full context, goals, acceptance criteria: https://github.com/hensu-project/hensu/issues/70 Repo (stars + feedback welcome): https://github.com/hensu-project/hensu If you've shipped something like this before and want a focused, high-leverage PR, I'd love the help. Happy to pair and review fast.
👀 1