@kidlat-dakila/flightplan 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +31 -16
  2. package/backend/configurations/default-configurations/minimal/context.md +9 -54
  3. package/backend/configurations/default-configurations/minimal/traceDiagram.nodes.blockLabels.label.md +19 -0
  4. package/backend/configurations/default-configurations/minimal/{journey.nodes.description.md → traceDiagram.nodes.description.md} +1 -1
  5. package/backend/configurations/default-configurations/minimal/walkthrough.files.waypoints.reading.md +1 -1
  6. package/backend/configurations/default-configurations/onboardee/context.md +16 -62
  7. package/backend/configurations/default-configurations/onboardee/traceDiagram.description.md +16 -0
  8. package/backend/configurations/default-configurations/onboardee/traceDiagram.nodes.blockLabels.label.md +11 -0
  9. package/backend/configurations/default-configurations/onboardee/{journey.nodes.description.md → traceDiagram.nodes.description.md} +1 -1
  10. package/backend/configurations/default-configurations/onboardee/walkthrough.files.waypoints.reading.md +1 -1
  11. package/backend/configurations/default-configurations/standard/context.md +16 -62
  12. package/backend/configurations/default-configurations/standard/traceDiagram.description.md +16 -0
  13. package/backend/configurations/default-configurations/standard/traceDiagram.nodes.blockLabels.label.md +11 -0
  14. package/backend/configurations/default-configurations/standard/{journey.nodes.description.md → traceDiagram.nodes.description.md} +1 -1
  15. package/backend/configurations/default-configurations/standard/walkthrough.files.waypoints.reading.md +1 -1
  16. package/backend/configurations/default-configurations/unfamiliar-territory/context.md +16 -62
  17. package/backend/configurations/default-configurations/unfamiliar-territory/traceDiagram.description.md +16 -0
  18. package/backend/configurations/default-configurations/unfamiliar-territory/traceDiagram.nodes.blockLabels.label.md +11 -0
  19. package/backend/configurations/default-configurations/unfamiliar-territory/{journey.nodes.description.md → traceDiagram.nodes.description.md} +1 -1
  20. package/backend/configurations/default-configurations/unfamiliar-territory/walkthrough.files.waypoints.reading.md +1 -1
  21. package/backend/configurations/system-instructions/artifactFormat.md +20 -16
  22. package/backend/configurations/system-instructions/{blast.md → blastDiagram.md} +5 -5
  23. package/backend/configurations/system-instructions/context.md +18 -9
  24. package/backend/configurations/system-instructions/title.md +36 -4
  25. package/backend/configurations/system-instructions/traceDiagram.description.md +14 -0
  26. package/backend/configurations/system-instructions/{journey.md → traceDiagram.md} +8 -8
  27. package/backend/configurations/system-instructions/traceDiagram.nodes.blockLabels.label.md +6 -0
  28. package/backend/configurations/system-instructions/walkthrough.files.md +5 -11
  29. package/backend/configurations/system-instructions/walkthrough.files.waypoints.coreChange.md +7 -0
  30. package/backend/configurations/system-instructions/walkthrough.files.waypoints.md +3 -3
  31. package/backend/configurations/system-instructions/walkthrough.md +6 -8
  32. package/backend/main.js +56353 -43801
  33. package/backend/plugin/skills/review/SKILL.md +31 -47
  34. package/frontend/assets/_branchId-438YLxpk.js +1 -0
  35. package/frontend/assets/_branchId-PhBseeXo.js +1 -0
  36. package/frontend/assets/_id-yAHjl11v.js +1 -0
  37. package/frontend/assets/_id-z15a_Wqg.js +1 -0
  38. package/frontend/assets/agents-CF_BNYuU.js +1 -0
  39. package/frontend/assets/agents-CUULznCR.js +1 -0
  40. package/frontend/assets/create-Byti8N1q.js +1 -0
  41. package/frontend/assets/create-DHjp2cB6.js +1 -0
  42. package/frontend/assets/create-DiPNM_Jx.js +1 -0
  43. package/frontend/assets/{create-CNT_ktA4.js → create-t6MxPYs8.js} +1 -1
  44. package/frontend/assets/download-kIOYm7yl.js +1 -0
  45. package/frontend/assets/forges-5NgJFexV.js +1 -0
  46. package/frontend/assets/forges-Dz31lZmK.js +1 -0
  47. package/frontend/assets/{index-h6dRc3tV.js → index-9MPLrKh9.js} +75 -62
  48. package/frontend/assets/index-BDgPH-og.js +1 -0
  49. package/frontend/assets/{index-CPyhbNqS.js → index-BDhIIxnY.js} +1 -1
  50. package/frontend/assets/{index-Baaegu29.js → index-BUtsWXGk.js} +1 -1
  51. package/frontend/assets/{index-BWM8kiQ0.js → index-BrL94etp.js} +1 -1
  52. package/frontend/assets/index-C8_4U9zA.js +457 -0
  53. package/frontend/assets/index-CAt5Gv5u.js +1 -0
  54. package/frontend/assets/{index-C8gx27Rr.js → index-CBObEG9P.js} +1 -1
  55. package/frontend/assets/index-CRQLJ5uq.js +1 -0
  56. package/frontend/assets/index-CSy69oc4.js +1 -0
  57. package/frontend/assets/index-Cjx98rmL.js +1 -0
  58. package/frontend/assets/index-CmW92SdM.js +1 -0
  59. package/frontend/assets/index-Cmg8rxUj.css +1 -0
  60. package/frontend/assets/index-DVMDfdCW.js +1 -0
  61. package/frontend/assets/index-DYy-kFEi.js +1 -0
  62. package/frontend/assets/index-Dk3p64fP.js +1 -0
  63. package/frontend/assets/index-Dq71dq4Z.js +1 -0
  64. package/frontend/assets/index-Dz-E4Hhc.js +1 -0
  65. package/frontend/assets/{index-BsRx8Pzi.js → index-EFsgiJx1.js} +1 -1
  66. package/frontend/assets/index-EItMs0kz.js +1 -0
  67. package/frontend/assets/index-N0J0txvy.js +1 -0
  68. package/frontend/assets/index-Qxg2C8CP.js +1 -0
  69. package/frontend/assets/index-RYSZy-Ra.js +6 -0
  70. package/frontend/assets/{index-BYtgetD4.js → index-WOMODjD2.js} +1 -1
  71. package/frontend/assets/repositories-BrbB16PW.js +1 -0
  72. package/frontend/assets/repositories-VWl6aq7K.js +1 -0
  73. package/frontend/assets/review-BMO-QDpl.js +1 -0
  74. package/frontend/assets/review-CXzRf1jk.js +1 -0
  75. package/frontend/assets/route--z3gnt4z.js +1 -0
  76. package/frontend/favicon.ico +0 -0
  77. package/frontend/favicon.svg +5 -0
  78. package/frontend/index.html +10 -3
  79. package/frontend/logo.svg +5 -0
  80. package/frontend/not-found.svg +25 -0
  81. package/frontend/server-error.svg +32 -0
  82. package/package.json +5 -1
  83. package/published-review/app.css +1 -1
  84. package/published-review/app.js +126 -89
  85. package/backend/configurations/default-configurations/minimal/journey.nodes.blockLabels.label.md +0 -13
  86. package/backend/configurations/default-configurations/minimal/walkthrough.files.title.md +0 -7
  87. package/backend/configurations/default-configurations/minimal/walkthrough.intro.md +0 -4
  88. package/backend/configurations/default-configurations/onboardee/journey.description.md +0 -10
  89. package/backend/configurations/default-configurations/onboardee/journey.nodes.blockLabels.label.md +0 -9
  90. package/backend/configurations/default-configurations/onboardee/walkthrough.files.title.md +0 -7
  91. package/backend/configurations/default-configurations/onboardee/walkthrough.intro.md +0 -5
  92. package/backend/configurations/default-configurations/standard/journey.description.md +0 -10
  93. package/backend/configurations/default-configurations/standard/journey.nodes.blockLabels.label.md +0 -9
  94. package/backend/configurations/default-configurations/standard/walkthrough.files.title.md +0 -7
  95. package/backend/configurations/default-configurations/standard/walkthrough.intro.md +0 -5
  96. package/backend/configurations/default-configurations/unfamiliar-territory/journey.description.md +0 -10
  97. package/backend/configurations/default-configurations/unfamiliar-territory/journey.nodes.blockLabels.label.md +0 -9
  98. package/backend/configurations/default-configurations/unfamiliar-territory/walkthrough.files.title.md +0 -7
  99. package/backend/configurations/default-configurations/unfamiliar-territory/walkthrough.intro.md +0 -5
  100. package/backend/configurations/system-instructions/journey.description.md +0 -14
  101. package/backend/configurations/system-instructions/journey.nodes.blockLabels.label.md +0 -6
  102. package/backend/configurations/system-instructions/walkthrough.files.summary.md +0 -4
  103. package/backend/configurations/system-instructions/walkthrough.files.title.md +0 -2
  104. package/backend/configurations/system-instructions/walkthrough.files.waypoints.needsAttention.md +0 -8
  105. package/backend/configurations/system-instructions/walkthrough.intro.md +0 -3
  106. package/frontend/assets/_branchId--sAXSZ0Z.js +0 -1
  107. package/frontend/assets/_branchId-BctD9BVI.js +0 -1
  108. package/frontend/assets/_id-DS2_k7mD.js +0 -1
  109. package/frontend/assets/_id-ZvG2tACL.js +0 -1
  110. package/frontend/assets/agents-Cg-w99VB.js +0 -1
  111. package/frontend/assets/agents-DbSvvIcf.js +0 -1
  112. package/frontend/assets/configuration-B1tYKnw1.js +0 -1
  113. package/frontend/assets/configuration-PLwRj92u.js +0 -1
  114. package/frontend/assets/create-BXn1thks.js +0 -1
  115. package/frontend/assets/create-CGIYQfn-.js +0 -1
  116. package/frontend/assets/create-DQsVrUIP.js +0 -1
  117. package/frontend/assets/download-BsAZZo3P.js +0 -1
  118. package/frontend/assets/forges-ChElPpOV.js +0 -1
  119. package/frontend/assets/forges-D5lw6fYh.js +0 -1
  120. package/frontend/assets/index-9KbVyMz4.js +0 -1
  121. package/frontend/assets/index-B7lg0P4V.js +0 -1
  122. package/frontend/assets/index-BBbL0wfM.js +0 -1
  123. package/frontend/assets/index-BCEvS2zI.js +0 -1
  124. package/frontend/assets/index-CIReAhWD.js +0 -1
  125. package/frontend/assets/index-CX9sF5Fh.js +0 -441
  126. package/frontend/assets/index-Ccx_zqhL.js +0 -1
  127. package/frontend/assets/index-D3gI7yfx.js +0 -1
  128. package/frontend/assets/index-D6S4PGCc.js +0 -1
  129. package/frontend/assets/index-Dfzoepph.js +0 -1
  130. package/frontend/assets/index-DgodP5aC.js +0 -1
  131. package/frontend/assets/index-DvVl2gWR.js +0 -1
  132. package/frontend/assets/index-DzSYBwXV.js +0 -1
  133. package/frontend/assets/index-eMdhkBjo.js +0 -1
  134. package/frontend/assets/index-ec_xLUMF.css +0 -1
  135. package/frontend/assets/index-xoWXUJLW.js +0 -1
  136. package/frontend/assets/repositories-DdOEWFoL.js +0 -1
  137. package/frontend/assets/repositories-Di8qfiyD.js +0 -1
  138. package/frontend/assets/route-qbVbAxtx.js +0 -1
  139. package/frontend/logo-small.png +0 -0
  140. package/frontend/logo.png +0 -0
  141. /package/backend/configurations/default-configurations/minimal/{blast.nodes.impactReason.md → blastDiagram.nodes.impactReason.md} +0 -0
  142. /package/backend/configurations/default-configurations/minimal/{blast.nodes.impactType.behaviour-changes.md → blastDiagram.nodes.impactType.behaviour-changes.md} +0 -0
  143. /package/backend/configurations/default-configurations/minimal/{blast.nodes.impactType.breaks.md → blastDiagram.nodes.impactType.breaks.md} +0 -0
  144. /package/backend/configurations/default-configurations/minimal/{blast.nodes.impactType.md → blastDiagram.nodes.impactType.md} +0 -0
  145. /package/backend/configurations/default-configurations/minimal/{blast.nodes.impactType.unaffected.md → blastDiagram.nodes.impactType.unaffected.md} +0 -0
  146. /package/backend/configurations/default-configurations/minimal/{journey.description.md → traceDiagram.description.md} +0 -0
  147. /package/backend/configurations/default-configurations/minimal/{journey.nodes.label.md → traceDiagram.nodes.label.md} +0 -0
  148. /package/backend/configurations/default-configurations/minimal/{journey.nodes.triggerLabels.label.md → traceDiagram.nodes.triggerLabels.label.md} +0 -0
  149. /package/backend/configurations/default-configurations/minimal/{walkthrough.files.waypoints.needsAttention.md → walkthrough.files.waypoints.coreChange.md} +0 -0
  150. /package/backend/configurations/default-configurations/onboardee/{blast.nodes.impactReason.md → blastDiagram.nodes.impactReason.md} +0 -0
  151. /package/backend/configurations/default-configurations/onboardee/{blast.nodes.impactType.behaviour-changes.md → blastDiagram.nodes.impactType.behaviour-changes.md} +0 -0
  152. /package/backend/configurations/default-configurations/onboardee/{blast.nodes.impactType.breaks.md → blastDiagram.nodes.impactType.breaks.md} +0 -0
  153. /package/backend/configurations/default-configurations/onboardee/{blast.nodes.impactType.md → blastDiagram.nodes.impactType.md} +0 -0
  154. /package/backend/configurations/default-configurations/onboardee/{blast.nodes.impactType.unaffected.md → blastDiagram.nodes.impactType.unaffected.md} +0 -0
  155. /package/backend/configurations/default-configurations/onboardee/{journey.nodes.label.md → traceDiagram.nodes.label.md} +0 -0
  156. /package/backend/configurations/default-configurations/onboardee/{journey.nodes.triggerLabels.label.md → traceDiagram.nodes.triggerLabels.label.md} +0 -0
  157. /package/backend/configurations/default-configurations/onboardee/{walkthrough.files.waypoints.needsAttention.md → walkthrough.files.waypoints.coreChange.md} +0 -0
  158. /package/backend/configurations/default-configurations/standard/{blast.nodes.impactReason.md → blastDiagram.nodes.impactReason.md} +0 -0
  159. /package/backend/configurations/default-configurations/standard/{blast.nodes.impactType.behaviour-changes.md → blastDiagram.nodes.impactType.behaviour-changes.md} +0 -0
  160. /package/backend/configurations/default-configurations/standard/{blast.nodes.impactType.breaks.md → blastDiagram.nodes.impactType.breaks.md} +0 -0
  161. /package/backend/configurations/default-configurations/standard/{blast.nodes.impactType.md → blastDiagram.nodes.impactType.md} +0 -0
  162. /package/backend/configurations/default-configurations/standard/{blast.nodes.impactType.unaffected.md → blastDiagram.nodes.impactType.unaffected.md} +0 -0
  163. /package/backend/configurations/default-configurations/standard/{journey.nodes.label.md → traceDiagram.nodes.label.md} +0 -0
  164. /package/backend/configurations/default-configurations/standard/{journey.nodes.triggerLabels.label.md → traceDiagram.nodes.triggerLabels.label.md} +0 -0
  165. /package/backend/configurations/default-configurations/standard/{walkthrough.files.waypoints.needsAttention.md → walkthrough.files.waypoints.coreChange.md} +0 -0
  166. /package/backend/configurations/default-configurations/unfamiliar-territory/{blast.nodes.impactReason.md → blastDiagram.nodes.impactReason.md} +0 -0
  167. /package/backend/configurations/default-configurations/unfamiliar-territory/{blast.nodes.impactType.behaviour-changes.md → blastDiagram.nodes.impactType.behaviour-changes.md} +0 -0
  168. /package/backend/configurations/default-configurations/unfamiliar-territory/{blast.nodes.impactType.breaks.md → blastDiagram.nodes.impactType.breaks.md} +0 -0
  169. /package/backend/configurations/default-configurations/unfamiliar-territory/{blast.nodes.impactType.md → blastDiagram.nodes.impactType.md} +0 -0
  170. /package/backend/configurations/default-configurations/unfamiliar-territory/{blast.nodes.impactType.unaffected.md → blastDiagram.nodes.impactType.unaffected.md} +0 -0
  171. /package/backend/configurations/default-configurations/unfamiliar-territory/{journey.nodes.label.md → traceDiagram.nodes.label.md} +0 -0
  172. /package/backend/configurations/default-configurations/unfamiliar-territory/{journey.nodes.triggerLabels.label.md → traceDiagram.nodes.triggerLabels.label.md} +0 -0
  173. /package/backend/configurations/default-configurations/unfamiliar-territory/{walkthrough.files.waypoints.needsAttention.md → walkthrough.files.waypoints.coreChange.md} +0 -0
  174. /package/backend/configurations/system-instructions/{blast.nodes.impactReason.md → blastDiagram.nodes.impactReason.md} +0 -0
  175. /package/backend/configurations/system-instructions/{blast.nodes.impactType.md → blastDiagram.nodes.impactType.md} +0 -0
  176. /package/backend/configurations/system-instructions/{journey.nodes.description.md → traceDiagram.nodes.description.md} +0 -0
  177. /package/backend/configurations/system-instructions/{journey.nodes.label.md → traceDiagram.nodes.label.md} +0 -0
  178. /package/backend/configurations/system-instructions/{journey.nodes.triggerLabels.label.md → traceDiagram.nodes.triggerLabels.label.md} +0 -0
@@ -0,0 +1 @@
1
+ import{j as e,V as $,W as M,C as G,X as H,r,z as B,Y as W,B as Y,Z as U}from"./index-C8_4U9zA.js";import{I as z}from"./index-RYSZy-Ra.js";import{F as q}from"./index-Dz-E4Hhc.js";const V="How does Flight Plan interact with the agent?",X="What Flight Plan builds and what your agent writes",Z="Flight Plan builds the review artifact from the code. Your agent reads the same change and writes the explanations into it, through the Flight Plan plugin and its MCP server.",J="What Flight Plan does",K="Flight Plan draws the Trace Diagram and the Blast Diagram, and arranges the Code Walkthrough based on your preferences. You can read a review before your agent writes anything.",Q="What the agent does",ee="Your agent runs on your subscription",se="rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[0.875em]",ae="Your agent explains why the change exists and how the code works, and points out potential issues as findings. It writes into the review Flight Plan built and cannot change its structure. While you read, you can ask it about the change and it can ask you questions back.",S=({heading:a,text:o})=>e.jsxs("section",{children:[e.jsx("h3",{className:"font-bold",children:a}),e.jsx("p",{className:"mt-1 text-muted-foreground",children:o})]}),te=()=>e.jsxs(z,{title:ee,children:["Flight Plan launches your agent as an interactive session in a terminal that runs in the background. It avoids headless commands such as"," ",e.jsx("code",{className:se,children:"claude -p"}),", which can be billed separately from your subscription."]}),ge=()=>e.jsxs($,{children:[e.jsxs(M,{className:"group -mx-2 flex w-[calc(100%+1rem)] cursor-pointer items-center gap-3 rounded-sm px-2 py-4 text-left transition-colors duration-180 ease-out outline-none hover:bg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",children:[e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-lg leading-7 font-bold",children:V}),e.jsx("span",{className:"block text-sm text-muted-foreground",children:X})]}),e.jsx(G,{"aria-hidden":"true",className:"size-5 shrink-0 text-muted-foreground transition-transform duration-180 ease-out group-data-panel-open:rotate-180"})]}),e.jsxs(H,{className:"grid max-w-[62ch] gap-5 pb-2",children:[e.jsx("p",{children:Z}),e.jsx(S,{heading:J,text:K}),e.jsx(S,{heading:Q,text:ae}),e.jsx(te,{})]})]}),ne=({label:a,options:o,value:t,className:g,onChange:u})=>{const m=r.useId();return e.jsxs("fieldset",{className:B("grid gap-1.5",g),children:[e.jsx("legend",{className:"float-left text-sm font-bold",children:a}),e.jsx("span",{className:"clear-left inline-flex w-fit overflow-hidden rounded-lg border border-input bg-card",children:o.map(l=>e.jsxs("label",{className:"flex h-[calc(2rem-2px)] cursor-pointer items-center border-l border-input px-3 text-sm transition-colors duration-[180ms] ease-out first:border-l-0 hover:bg-muted has-checked:bg-foreground has-checked:font-bold has-checked:text-background has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring",children:[e.jsx("input",{type:"radio",name:m,className:"sr-only",checked:t===l.value,onChange:()=>{u(l.value)}}),e.jsx("span",{className:"text-box-cap",children:l.label})]},l.value))})]})},D="size-4 shrink-0 accent-(--primary)",le="Open folders until you reach the one to install into, then use it.",T="model",O="effort",re=[T,O],oe=()=>{},ce=({option:a,model:o,effort:t,modelErrorMessage:g,effortErrorMessage:u,onModelChange:m,onEffortChange:l})=>{const c=a.modelOptions.find(n=>n.model===o);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-start gap-x-6 gap-y-3 pt-3",children:[e.jsx(U,{label:`Model for ${a.label}`,options:a.modelOptions.map(n=>({value:n.model,label:n.label})),value:o,errorMessage:g,className:"w-60",onChange:n=>{const f=a.modelOptions.find(x=>x.model===n);f!==void 0&&m(f)}}),(c==null?void 0:c.hasEffortChoice)===!0?e.jsx(ne,{label:`Effort for ${a.label}`,options:c.effortOptions.map(n=>({value:n.effort,label:n.label})),value:t,onChange:l}):null]}),u===null?null:e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:u})]})},de=({option:a,groupName:o,isPicked:t,isDefault:g,installPath:u,model:m,effort:l,pathErrorMessage:c,modelErrorMessage:n,effortErrorMessage:f,onPickedChange:x,onDefaultChange:E,onInstallPathChange:N,onModelChange:C,onEffortChange:I,onBrowse:A})=>{const p=r.useId(),b=r.useId(),v=r.useId(),w=c!==null,d=a.unavailableReason===null;return e.jsxs("li",{className:"border-b border-border py-3",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsxs("label",{className:B("flex min-w-0 flex-1 items-start gap-3",d?"cursor-pointer":""),children:[e.jsx("input",{type:"checkbox",checked:t,disabled:!d,className:`${D} mt-0.5`,onChange:j=>{x(j.target.checked)}}),e.jsxs("span",{className:"min-w-0",children:[e.jsx("span",{className:"font-bold",children:a.label}),a.unavailableReason===null?null:e.jsxs("span",{className:"block max-w-[62ch] text-sm text-destructive",children:[e.jsx("span",{className:"font-bold",children:"Unavailable."}),` ${a.unavailableReason}`]})]})]}),e.jsxs("label",{className:"flex cursor-pointer items-center gap-2 pt-0.5 text-sm has-disabled:cursor-default has-disabled:text-muted-foreground",children:[e.jsx("input",{type:"radio",name:o,checked:g,disabled:!t,className:D,onChange:E}),e.jsx("span",{"aria-hidden":"true",className:"text-box-cap",children:"Default"}),e.jsx("span",{className:"sr-only",children:`Default agent: ${a.label}`})]})]}),t?e.jsxs("div",{className:"mt-3 grid gap-1.5 pl-7",children:[e.jsx("label",{htmlFor:p,className:"text-sm font-bold",children:`Install folder for ${a.label}`}),e.jsx("p",{id:b,className:"text-sm text-muted-foreground",children:a.pathHint}),e.jsxs("div",{className:"flex max-w-xl items-center gap-2",children:[e.jsx(W,{id:p,value:u,autoComplete:"off",spellCheck:!1,"aria-invalid":w,"aria-describedby":w?`${b} ${v}`:b,className:"min-w-0 flex-1 font-mono",onChange:j=>{N(j.target.value)}}),e.jsx(Y,{type:"button",variant:"outline","aria-label":`Browse for the ${a.label} install folder`,onClick:A,children:"Browse"})]}),w?e.jsx("p",{id:v,role:"alert",className:"text-sm text-destructive",children:c}):null,e.jsx(ce,{option:a,model:m,effort:l,modelErrorMessage:n,effortErrorMessage:f,onModelChange:C,onEffortChange:I})]}):null]})},me=({agents:a,defaultAgent:o,problem:t,children:g,folderBrowser:u,folderBrowserErrorMessage:m,onBrowseFolder:l,onBrowseEnd:c,onSubmit:n})=>{const f=r.useId(),[x,E]=r.useState(()=>Object.fromEntries(a.map(s=>[s.agent,s.isPicked]))),[N,C]=r.useState(()=>Object.fromEntries(a.map(s=>[s.agent,s.installPath]))),[I,A]=r.useState(()=>Object.fromEntries(a.map(s=>[s.agent,s.model]))),[p,b]=r.useState(()=>Object.fromEntries(a.map(s=>[s.agent,s.effort]))),[v,w]=r.useState(o),[d,j]=r.useState(null),R=s=>{j(s),l(N[s.agent]??"")},k=()=>{j(null),c()},L=s=>{d!==null&&C(y=>({...y,[d.agent]:s})),k()},_=()=>{n({agents:a.map(s=>({agent:s.agent,isPicked:x[s.agent]??!1,installPath:N[s.agent]??"",model:I[s.agent]??s.model,effort:p[s.agent]??s.effort})),defaultAgent:v})};return e.jsxs("form",{onSubmit:s=>{s.preventDefault(),_()},children:[e.jsx("ul",{className:"border-t border-border",children:a.map(s=>{var y,P,F;return e.jsx(de,{option:s,groupName:f,isPicked:x[s.agent]??!1,isDefault:v===s.agent,installPath:N[s.agent]??"",model:I[s.agent]??s.model,effort:p[s.agent]??s.effort,pathErrorMessage:((y=t==null?void 0:t.field)==null?void 0:y.owner)===s.agent&&!re.includes(t.field.name)?t.message:null,modelErrorMessage:((P=t==null?void 0:t.field)==null?void 0:P.owner)===s.agent&&t.field.name===T?t.message:null,effortErrorMessage:((F=t==null?void 0:t.field)==null?void 0:F.owner)===s.agent&&t.field.name===O?t.message:null,onPickedChange:h=>{E(i=>({...i,[s.agent]:h}))},onDefaultChange:()=>{w(s.agent)},onInstallPathChange:h=>{C(i=>({...i,[s.agent]:h}))},onModelChange:h=>{A(i=>({...i,[s.agent]:h.model})),b(i=>({...i,[s.agent]:h.selectedEffort}))},onEffortChange:h=>{b(i=>({...i,[s.agent]:h}))},onBrowse:()=>{R(s)}},s.agent)})}),g,e.jsx(q,{isOpen:d!==null,title:`Install folder for ${(d==null?void 0:d.label)??""}`,description:le,browser:u,errorMessage:m,onOpenFolder:l,onChooseRepository:oe,onChooseFolder:L,onClose:k})]})};export{me as A,ge as a};
@@ -1 +1 @@
1
- import{u as o,j as e,B as r}from"./index-CX9sF5Fh.js";import{P as a}from"./index-CqVakH8R.js";const n="The backend did not say what went wrong.",m=({error:s})=>{const t=o();return e.jsxs("section",{role:"alert",className:"max-w-prose",children:[e.jsx("h1",{className:a,children:"Could not load the setup"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s instanceof Error?s.message:n}),e.jsx(r,{className:"mt-4",onClick:()=>{t.invalidate()},children:"Try again"})]})};export{m as errorComponent};
1
+ import{u as o,j as e,B as r}from"./index-C8_4U9zA.js";import{P as a}from"./index-CqVakH8R.js";const n="The backend did not say what went wrong.",m=({error:s})=>{const t=o();return e.jsxs("section",{role:"alert",className:"max-w-prose",children:[e.jsx("h1",{className:a,children:"Could not load the setup"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s instanceof Error?s.message:n}),e.jsx(r,{className:"mt-4",onClick:()=>{t.invalidate()},children:"Try again"})]})};export{m as errorComponent};
@@ -1 +1 @@
1
- import{h as u,i as c,l as d,j as a,B as m}from"./index-CX9sF5Fh.js";const v=()=>{var r,l;const s=u(),t=c(),e=d(s.settings.save.mutationOptions({onSuccess:async o=>{o.kind!=="rejected"&&(t.removeQueries({type:"inactive"}),await t.invalidateQueries(s.settings.pathFilter()))}})),i=((r=e.data)==null?void 0:r.kind)==="rejected"?e.data:null,n=e.error===null?i:{message:e.error.message,field:null};return{problem:n,errorMessage:n!==null&&n.field===null?n.message:null,savedMessage:((l=e.data)==null?void 0:l.kind)==="saved"?e.data.message:null,isPending:e.isPending,save:e.mutate}},p="Save",g="Saving…",j=({isPending:s,errorMessage:t,savedMessage:e})=>a.jsxs("footer",{className:"mt-6 border-t border-border pt-4",children:[t===null?null:a.jsx("p",{role:"alert",className:"pb-3 text-sm text-destructive",children:t}),a.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-x-4 gap-y-2",children:[a.jsx("p",{role:"status",className:"text-sm text-muted-foreground",children:s?null:e}),a.jsx(m,{type:"submit",disabled:s,children:s?g:p})]})]});export{j as S,v as u};
1
+ import{g as u,h as c,k as d,j as a,B as m}from"./index-C8_4U9zA.js";const v=()=>{var r,l;const s=u(),t=c(),e=d(s.settings.save.mutationOptions({onSuccess:async o=>{o.kind!=="rejected"&&(t.removeQueries({type:"inactive"}),await t.invalidateQueries(s.settings.pathFilter()))}})),i=((r=e.data)==null?void 0:r.kind)==="rejected"?e.data:null,n=e.error===null?i:{message:e.error.message,field:null};return{problem:n,errorMessage:n!==null&&n.field===null?n.message:null,savedMessage:((l=e.data)==null?void 0:l.kind)==="saved"?e.data.message:null,isPending:e.isPending,save:e.mutate}},g="Save",p="Saving…",j=({isPending:s,errorMessage:t,savedMessage:e})=>a.jsxs("footer",{className:"mt-6 border-t border-border pt-4",children:[t===null?null:a.jsx("p",{role:"alert",className:"pb-3 text-sm text-destructive",children:t}),a.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-x-4 gap-y-2",children:[a.jsx("p",{role:"status",className:"text-sm text-muted-foreground",children:s?null:e}),a.jsx(m,{type:"submit",disabled:s,children:s?p:g})]})]});export{j as S,v as u};
@@ -1 +1 @@
1
- import{u as r,j as o,B as t}from"./index-CX9sF5Fh.js";import{P as a}from"./index-s0xxzhVW.js";const n="The backend did not say what went wrong.",m=({error:e})=>{const s=r();return o.jsxs("section",{role:"alert",className:"max-w-prose",children:[o.jsx("h1",{className:a,children:"Could not load your repositories"}),o.jsx("p",{className:"mt-2 text-muted-foreground",children:e instanceof Error?e.message:n}),o.jsx(t,{className:"mt-4",onClick:()=>{s.invalidate()},children:"Try again"})]})};export{m as errorComponent};
1
+ import{u as r,j as o,B as t}from"./index-C8_4U9zA.js";import{P as a}from"./index-s0xxzhVW.js";const n="The backend did not say what went wrong.",m=({error:e})=>{const s=r();return o.jsxs("section",{role:"alert",className:"max-w-prose",children:[o.jsx("h1",{className:a,children:"Could not load your repositories"}),o.jsx("p",{className:"mt-2 text-muted-foreground",children:e instanceof Error?e.message:n}),o.jsx(t,{className:"mt-4",onClick:()=>{s.invalidate()},children:"Try again"})]})};export{m as errorComponent};