MCPcopy Create free account
hub / github.com/thesysdev/openui / getStartedMessage

Function getStartedMessage

packages/openui-cli/src/commands/create-app.ts:201–229  ·  view source on GitHub ↗
(o: {
  name: string;
  devCmd: string;
  template: TemplateName;
  skillInstalled: boolean;
  envWritten: boolean;
})

Source from the content-addressed store, hash-verified

199}
200
201function getStartedMessage(o: {
202 name: string;
203 devCmd: string;
204 template: TemplateName;
205 skillInstalled: boolean;
206 envWritten: boolean;
207}): string {
208 const skillMessage = o.skillInstalled
209 ? "The OpenUI agent skill was installed.\nAI coding assistants will use it to help you build with OpenUI.\n"
210 : "";
211
212 const envNote =
213 o.template === "openui-cloud"
214 ? o.envWritten
215 ? "✅ .env created with your OpenUI Cloud API key + base URL."
216 : `⚠ .env created without a key. Add THESYS_API_KEY=… (get one at ${THESYS_KEYS_URL}).`
217 : o.envWritten
218 ? "✅ .env created with your API key."
219 : "Add your API key to .env:\nOPENAI_API_KEY=sk-your-key-here";
220
221 return `${skillMessage}
222Done!
223
224${envNote}
225
226> cd ${o.name}
227> ${o.devCmd} run dev
228`;
229}

Callers 1

runCreateAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected