MCPcopy Create free account
hub / github.com/Facets-cloud/flow / readSkillVersion

Function readSkillVersion

internal/app/skill.go:28–38  ·  view source on GitHub ↗

readSkillVersion returns the version string recorded in the harness's skill-version sidecar, or "" if missing/unreadable.

()

Source from the content-addressed store, hash-verified

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.
38const 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

Calls 2

defaultHarnessFunction · 0.85
SkillVersionPathMethod · 0.65