From ce29122379e0ef2be3790c9a49402c283e0dcb75 Mon Sep 17 00:00:00 2001 From: tbrady77 <57189999+tbrady77@users.noreply.github.com> Date: Mon, 15 Jun 2026 10:18:28 -0700 Subject: [PATCH] Add embeddedcli.Path() accessor for the resolved CLI path --- go/embeddedcli/installer.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/go/embeddedcli/installer.go b/go/embeddedcli/installer.go index deb4c2eef..6edddf281 100644 --- a/go/embeddedcli/installer.go +++ b/go/embeddedcli/installer.go @@ -15,3 +15,11 @@ type Config = embeddedcli.Config func Setup(cfg Config) { embeddedcli.Setup(cfg) } + +// Path returns the absolute path to the embedded Copilot CLI, installing it on +// first call if necessary. It returns an empty string when no embedded CLI was +// configured via Setup (e.g. a build compiled without the embedded runtime). +// The result is computed once and cached for the life of the process. +func Path() string { + return embeddedcli.Path() +}