{"version":3,"file":"starterPos.mjs","names":[],"sources":["../../../src/web/lib/starterPos.ts"],"sourcesContent":["/** A ready-made Po offered on first run: who they are to the person, and the setup behind them. */\nexport interface StarterPo {\n  id: 'generalist' | 'assistant' | 'coding' | 'marketing' | 'sales';\n  name: string;\n  /** Who this Po is to the person, such as a friend or a coding buddy. */\n  role: string;\n  purpose: string;\n  /** The coordinator profile this Po is created as. */\n  alias: string;\n  /** The panda, served from the web client's public folder. */\n  avatar: string;\n  /** First things to ask, in this Po's line of work. */\n  starters: readonly [string, string];\n  /** The web layout this Po opens in. */\n  template: string;\n  /** The profile plugin's persona preset id. */\n  persona: string;\n}\n\nexport const STARTER_POS: readonly StarterPo[] = [\n  {\n    id: 'generalist',\n    name: 'Po',\n    role: 'Friend',\n    purpose: 'Here for anything, big or small. Chat, think out loud, or hand something over.',\n    alias: 'po',\n    avatar: '/po-avatars/po.png',\n    starters: ['What can you do for me?', 'Help me plan my week'],\n    template: 'po-template-elegant',\n    persona: 'friendly',\n  },\n  {\n    id: 'assistant',\n    name: 'Personal Po',\n    role: 'Assistant',\n    purpose: 'Plans your days, looks things up and keeps your calendar tidy.',\n    alias: 'personal-po',\n    avatar: '/po-avatars/personal.png',\n    starters: ['Plan my day tomorrow', 'Find a good time for a call this week'],\n    template: 'po-template-elegant',\n    persona: 'friendly',\n  },\n  {\n    id: 'coding',\n    name: 'Dev Po',\n    role: 'Coding buddy',\n    purpose: 'Builds, fixes and reviews code alongside you.',\n    alias: 'dev-po',\n    avatar: '/po-avatars/dev.png',\n    starters: ['Help me set up my first project', 'Help me fix a failing test'],\n    template: 'po-template-advanced',\n    persona: 'focused',\n  },\n  {\n    id: 'marketing',\n    name: 'Marketing Po',\n    role: 'Creative partner',\n    purpose: 'Dreams up campaigns, writes the words and makes the images.',\n    alias: 'marketing-po',\n    avatar: '/po-avatars/marketing.png',\n    starters: ['Draft a launch post for my product', 'Make an image for my next post'],\n    template: 'po-template-elegant',\n    persona: 'creative',\n  },\n  {\n    id: 'sales',\n    name: 'Sales Po',\n    role: 'Sales sidekick',\n    purpose: 'Finds the right people, drafts your outreach and never forgets a follow-up.',\n    alias: 'sales-po',\n    avatar: '/po-avatars/sales.png',\n    starters: ['Find ten prospects like my best customer', 'Draft a friendly follow-up email'],\n    template: 'po-template-elegant',\n    persona: 'persuasive',\n  },\n];\n\n/** The default for anyone unsure which Po to pick. */\nexport const START_HERE: StarterPo['id'] = 'generalist';\n\n/** Help mode is on from the first message, so one starter is always about Po itself. */\nconst PO_QUESTION = 'Which settings should I know about?';\n\n/**\n * The first session's three starters. What the person said they are into comes first, so their\n * answer on About you is visibly used.\n * ponytail: takes the first phrase of the interests as written; let the model suggest it later.\n */\nexport function startersFor(po: StarterPo, interests: string): string[] {\n  const phrase = interests.split(/[,.;\\n]/u)[0]?.trim() ?? '';\n  const personal = phrase ? `Help me with ${phrase.charAt(0).toLowerCase()}${phrase.slice(1)}` : undefined;\n  return [personal ?? po.starters[0], personal ? po.starters[0] : po.starters[1], PO_QUESTION];\n}\n"],"mappings":";AAmBA,MAAa,cAAoC;CAC/C;EACE,IAAI;EACJ,MAAM;EACN,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,UAAU,CAAC,2BAA2B,sBAAsB;EAC5D,UAAU;EACV,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,UAAU,CAAC,wBAAwB,uCAAuC;EAC1E,UAAU;EACV,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,UAAU,CAAC,mCAAmC,4BAA4B;EAC1E,UAAU;EACV,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,UAAU,CAAC,sCAAsC,gCAAgC;EACjF,UAAU;EACV,SAAS;CACX;CACA;EACE,IAAI;EACJ,MAAM;EACN,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;EACR,UAAU,CAAC,4CAA4C,kCAAkC;EACzF,UAAU;EACV,SAAS;CACX;AACF;;AAGA,MAAa,aAA8B;;AAG3C,MAAM,cAAc;;;;;;AAOpB,SAAgB,YAAY,IAAe,WAA6B;CACtE,MAAM,SAAS,UAAU,MAAM,UAAU,CAAC,CAAC,EAAE,EAAE,KAAK,KAAK;CACzD,MAAM,WAAW,SAAS,gBAAgB,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,OAAO,MAAM,CAAC,MAAM,KAAA;CAC/F,OAAO;EAAC,YAAY,GAAG,SAAS;EAAI,WAAW,GAAG,SAAS,KAAK,GAAG,SAAS;EAAI;CAAW;AAC7F"}