readSkillVersion returns the version string recorded in the harness's skill-version sidecar, or "" if missing/unreadable.
()
| 26 | if err != nil { |
| 27 | // The embed directive guarantees skill/ exists; this is |
| 28 | // unreachable in a correctly-built binary. |
| 29 | return embeddedSkillFS |
| 30 | } |
| 31 | return sub |
| 32 | } |
| 33 | |
| 34 | // hookCommand is the exact string the harness's settings.json |
| 35 | // (settings.json / hooks.json depending on harness) records as the |
| 36 | // SessionStart hook handler. Stable — changing this string would |
| 37 | // orphan existing installations. |
| 38 | const hookCommand = "flow hook session-start" |
| 39 | |
| 40 | // userPromptSubmitHookCommand is the exact string settings.json records |
| 41 | // as the UserPromptSubmit hook handler. In bound sessions the command |