pyb-ts
Version:
PYB-CLI - Minimal AI Agent with multi-model support and CLI interface
37 lines (36 loc) • 900 B
JavaScript
import * as React from "react";
import { Onboarding } from "@components/Onboarding";
import { clearTerminal } from "@utils/terminal";
import { getGlobalConfig, saveGlobalConfig } from "@utils/config";
import { clearConversation } from "./clear.js";
var onboarding_default = {
type: "local-jsx",
name: "onboarding",
description: "Run through the onboarding flow",
isEnabled: true,
isHidden: false,
async call(onDone, context) {
await clearTerminal();
const config = getGlobalConfig();
saveGlobalConfig({
...config,
theme: "dark"
});
return /* @__PURE__ */ React.createElement(
Onboarding,
{
onDone: async () => {
clearConversation(context);
onDone();
}
}
);
},
userFacingName() {
return "onboarding";
}
};
export {
onboarding_default as default
};
//# sourceMappingURL=onboarding.js.map