progon-agent 1.5.1 → 1.5.2

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 (70) hide show
  1. package/README.md +288 -29
  2. package/dist/supervisor/cli.js +315 -50
  3. package/extension-bundle.json +3 -3
  4. package/extension-dist/background/background.js +142 -119
  5. package/extension-dist/card/card.css +1 -1
  6. package/extension-dist/card/card.html +11 -10
  7. package/extension-dist/card/card.js +3 -3
  8. package/extension-dist/chunks/shared--PKAvBPy.js +1 -0
  9. package/extension-dist/chunks/shared-0jT00uC5.js +317 -0
  10. package/extension-dist/chunks/shared-8TdX8bnw.js +1 -0
  11. package/extension-dist/chunks/shared-BBwL-FWr.js +8 -0
  12. package/extension-dist/chunks/shared-BECVQaqd.js +1 -0
  13. package/extension-dist/chunks/shared-BGvIl9us.js +1 -0
  14. package/extension-dist/chunks/shared-BYkDbcM2.js +372 -0
  15. package/extension-dist/chunks/shared-BdaUsVif.css +1 -0
  16. package/extension-dist/chunks/shared-CDlAJRnF.js +117 -0
  17. package/extension-dist/chunks/shared-CQ5Ygj2p.js +1 -0
  18. package/extension-dist/chunks/shared-CnMBv8Ku.js +1 -0
  19. package/extension-dist/chunks/shared-CyNKhHOY.js +1 -0
  20. package/extension-dist/chunks/shared-D3X5MuUz.js +1 -0
  21. package/extension-dist/chunks/shared-D7GfVHk0.js +129 -0
  22. package/extension-dist/chunks/shared-QityJbuK.css +1 -0
  23. package/extension-dist/chunks/shared-U9lBnzuH.js +33 -0
  24. package/extension-dist/chunks/shared-VvEftNwZ.js +1 -0
  25. package/extension-dist/chunks/shared-XKyaHtl9.js +1 -0
  26. package/extension-dist/chunks/shared-fJPHxpB5.css +1 -0
  27. package/extension-dist/chunks/shared-o0-3vI--.js +193 -0
  28. package/extension-dist/chunks/shared-uKTblxo0.js +15 -0
  29. package/extension-dist/content/canvas-interceptor.js +1 -1
  30. package/extension-dist/content/canvas-mapbox-bridge-main.js +1 -1
  31. package/extension-dist/content/content.css +1 -1
  32. package/extension-dist/content/content.js +289 -336
  33. package/extension-dist/content/early-nonce-inject.js +1 -1
  34. package/extension-dist/content/frame.js +160 -0
  35. package/extension-dist/content/main-world-nav.js +1 -1
  36. package/extension-dist/manifest.json +36 -45
  37. package/extension-dist/offscreen/offscreen.html +2 -2
  38. package/extension-dist/offscreen/offscreen.js +1 -1
  39. package/extension-dist/popup/popup.html +9 -9
  40. package/extension-dist/popup/popup.js +3 -3
  41. package/extension-dist/sidepanel/sidepanel.css +1 -1
  42. package/extension-dist/sidepanel/sidepanel.html +13 -13
  43. package/extension-dist/sidepanel/sidepanel.js +1 -1
  44. package/extension-dist/workspace/workspace.css +1 -1
  45. package/extension-dist/workspace/workspace.html +13 -13
  46. package/extension-dist/workspace/workspace.js +121 -53
  47. package/npm-shrinkwrap.json +469 -0
  48. package/package.json +17 -12
  49. package/extension-dist/chunks/shared-B5u-B6Qn.css +0 -1
  50. package/extension-dist/chunks/shared-BLDboBjL.js +0 -348
  51. package/extension-dist/chunks/shared-BdUzhaBn.js +0 -39
  52. package/extension-dist/chunks/shared-Bl2B_Px5.js +0 -1
  53. package/extension-dist/chunks/shared-CD1T06ac.js +0 -98
  54. package/extension-dist/chunks/shared-CDXdhl3P.js +0 -8
  55. package/extension-dist/chunks/shared-CVlB4Tu3.js +0 -15
  56. package/extension-dist/chunks/shared-Cz00vYCW.js +0 -1
  57. package/extension-dist/chunks/shared-D8QWnY4m.css +0 -1
  58. package/extension-dist/chunks/shared-DDffpwXS.js +0 -134
  59. package/extension-dist/chunks/shared-D_QceNk9.js +0 -254
  60. package/extension-dist/chunks/shared-Dp2jkJ8R.js +0 -1
  61. package/extension-dist/chunks/shared-Jcq39euZ.js +0 -199
  62. package/extension-dist/chunks/shared-R5ipc0Sn.js +0 -1
  63. package/extension-dist/chunks/shared-eZL18n5t.css +0 -1
  64. package/extension-dist/chunks/shared-gwUGKre-.js +0 -1
  65. package/extension-dist/chunks/shared-hePW80VL.js +0 -1
  66. package/extension-dist/chunks/shared-kKZVALIt.js +0 -1
  67. package/extension-dist/chunks/shared-nJgqlX01.js +0 -1
  68. package/extension-dist/chunks/shared-q9EK7cIP.js +0 -1
  69. package/extension-dist/chunks/shared-tcQ7xPb-.js +0 -1
  70. package/extension-dist/content/canvas-mapbox-fiber-discovery.js +0 -1
@@ -1,39 +0,0 @@
1
- import{r as e}from"./shared-hePW80VL.js";import{$r as t,$s as n,Ca as r,Er as i,Ia as a,Kr as o,Ua as s,Za as c,Zn as l,co as u,cr as ee,mo as d,n as f,ni as p,po as m,ri as h,so as g,wo as _}from"./shared-D_QceNk9.js";import{Fi as v,Si as y,Ti as b,ji as x,rt as S,t as C,wi as w}from"./shared-CD1T06ac.js"
2
- /**
3
- * @license lucide-react v0.574.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */
8
- ;var T=r(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),E=r(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),D=r(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),O=r(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),k=r(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),A=r(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),j=/* @__PURE__ */ e(u(),1),M=g(),N=[`M28 5 L52 16 L28 27 Z`,`M59 28 L48 52 L37 28 Z`,`M36 59 L12 48 L36 37 Z`,`M5 36 L16 12 L27 36 Z`],P={brand:[`var(--color-primary-300)`,`var(--color-primary-400)`,`var(--color-secondary)`,`var(--color-primary)`],"primary-ramp":[`var(--color-primary-300)`,`var(--color-primary-400)`,`var(--color-primary-500)`,`var(--color-primary-600)`]}
9
- /**
10
- * @license lucide-react v0.574.0 - ISC
11
- *
12
- * This source code is licensed under the ISC license.
13
- * See the LICENSE file in the root directory of this source tree.
14
- */
15
- /**
16
- * @license lucide-react v0.574.0 - ISC
17
- *
18
- * This source code is licensed under the ISC license.
19
- * See the LICENSE file in the root directory of this source tree.
20
- */
21
- /**
22
- * @license lucide-react v0.574.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */
27
- /**
28
- * @license lucide-react v0.574.0 - ISC
29
- *
30
- * This source code is licensed under the ISC license.
31
- * See the LICENSE file in the root directory of this source tree.
32
- */
33
- /**
34
- * @license lucide-react v0.574.0 - ISC
35
- *
36
- * This source code is licensed under the ISC license.
37
- * See the LICENSE file in the root directory of this source tree.
38
- */
39
- ;function F({className:e,palette:t=`brand`}){let n=P[t];return/* @__PURE__ */ (0,M.jsx)(`svg`,{viewBox:`0 0 64 64`,"aria-hidden":`true`,className:e,children:N.map((e,t)=>/* @__PURE__ */ (0,M.jsx)(`path`,{d:e,fill:n[t],stroke:n[t],strokeWidth:`4`,strokeLinejoin:`round`},e))})}var I=C(`pgs-3273faf788`);function te({subtitle:e,footer:n,layout:r=`window`}){let{t:c}=a(),u=o(),d=(0,j.useId)(),[f,p]=(0,j.useState)(``),[m,h]=(0,j.useState)(``),[g,v]=(0,j.useState)(!1),[y,b]=(0,j.useState)(null),x=(0,j.useRef)(!1),S=async e=>{if(e.preventDefault(),!x.current){x.current=!0,v(!0);try{let e=await _.auth.login({email:f.trim(),password:m});b(null),u.signedIn(e.user)}catch(e){b(R(e))}finally{x.current=!1,v(!1)}}},C=(y==null?void 0:y.kind)===`refused`,w=e=>{S(e)},T=r===`panel`?`md`:`lg`,E=/* @__PURE__ */ (0,M.jsxs)(M.Fragment,{children:[/* @__PURE__ */ (0,M.jsx)(l,{type:`email`,label:c(`shell.signIn.email`),autoComplete:`username`,placeholder:c(`shell.signIn.emailPlaceholder`),value:f,onValueChange:p,invalid:C,size:T,autoFocus:!0}),/* @__PURE__ */ (0,M.jsx)(l,{type:`password`,label:c(`shell.signIn.password`),autoComplete:`current-password`,placeholder:c(`shell.signIn.passwordPlaceholder`),value:m,onValueChange:h,invalid:C,size:T}),y!==null&&/* @__PURE__ */ (0,M.jsx)(ee,{tone:`error`,icon:y.kind===`noAnswer`?/* @__PURE__ */ (0,M.jsx)(A,{"aria-hidden":`true`}):void 0,title:y.kind===`noAnswer`?c(`shell.signIn.noAnswer`):y.message,"data-testid":`shell-sign-in-error`}),/* @__PURE__ */ (0,M.jsx)(t,{type:`submit`,size:T,fullWidth:!0,loading:g,"data-testid":`shell-sign-in-submit`,children:c(`shell.signIn.submit`)}),/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[/* @__PURE__ */ (0,M.jsx)(L,{onOpen:()=>s(`/forgot-password`),children:c(`shell.signIn.forgotPassword`)}),/* @__PURE__ */ (0,M.jsx)(L,{onOpen:()=>s(`/register`),external:!0,children:c(`shell.signIn.createAccount`)})]})]});return r===`panel`?/* @__PURE__ */ (0,M.jsx)(`form`,{className:`grid min-h-0 flex-1 overflow-y-auto`,"aria-labelledby":d,noValidate:!0,onSubmit:w,"data-testid":`shell-sign-in`,children:/* @__PURE__ */ (0,M.jsx)(i,{title:c(`shell.signIn.title`),titleId:d,message:e,children:/* @__PURE__ */ (0,M.jsx)(`div`,{className:`mt-1 grid w-full max-w-75 gap-2 text-left`,children:E})})}):/* @__PURE__ */ (0,M.jsxs)(`form`,{className:`grid content-start gap-4.5 px-5 pt-7 pb-4`,"aria-labelledby":d,noValidate:!0,onSubmit:w,"data-testid":`shell-sign-in`,children:[/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`grid justify-items-center gap-1.5 text-center`,children:[/* @__PURE__ */ (0,M.jsx)(`span`,{className:`mb-1 grid size-16 place-items-center rounded-full bg-[radial-gradient(circle_at_50%_45%,color-mix(in_srgb,var(--color-primary)_24%,transparent)_0%,transparent_68%)]`,children:/* @__PURE__ */ (0,M.jsx)(F,{className:`size-10`})}),/* @__PURE__ */ (0,M.jsx)(`h1`,{id:d,className:`m-0 text-(length:--text-window-title) leading-(--leading-window-title) font-semibold tracking-(--tracking-window-title) text-fg-primary`,children:c(`shell.signIn.title`)}),/* @__PURE__ */ (0,M.jsx)(`p`,{className:`m-0 text-body-sm text-fg-muted`,children:e})]}),/* @__PURE__ */ (0,M.jsx)(`div`,{className:`grid gap-3`,children:E}),n!==void 0&&/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex justify-center border-t border-stroke-light pt-3.5`,children:n})]})}function L({onOpen:e,external:t=!1,children:n}){return/* @__PURE__ */ (0,M.jsxs)(`a`,{href:`#`,className:`rounded-xs px-0.5 py-1 text-body-sm font-medium text-fg-link no-underline hover:underline hover:underline-offset-3 focus-visible:outline-2 focus-visible:outline-stroke-focus`,onClick:t=>{t.preventDefault(),e()},children:[n,t&&/* @__PURE__ */ (0,M.jsx)(D,{"aria-hidden":`true`,className:`ml-0.75 inline size-3 align-[-1px]`})]})}function R(e){return e instanceof n&&e.status!==0?{kind:`refused`,message:m(d,e,`shell.signIn.refused`)}:(I.error(`pgm-53794f16d4`,{error:e instanceof Error?e.message:String(e)}),{kind:`noAnswer`})}function z({user:e,project:t,children:n}){let{id:r,number:i}=t,a=(0,j.useMemo)(()=>({projectId:r,projectNumber:i,user:e}),[r,i,e]);return/* @__PURE__ */ (0,M.jsx)(c,{value:a,children:n})}function B({label:e,loadingLabel:t,loading:n,onLoadMore:r,className:i,"data-testid":a}){return/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,onClick:r,disabled:n,"aria-busy":n||void 0,"data-testid":a,className:h(`flex h-9 w-full items-center justify-center gap-2 rounded-md border border-dashed border-stroke-hover bg-transparent text-(length:--text-body-sm) font-medium text-fg-secondary transition-colors duration-(--motion-short) ease-out hover-enabled:border-solid hover-enabled:bg-surface-hover-layer hover-enabled:text-fg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-stroke-focus aria-busy:cursor-progress`,i),children:n?/* @__PURE__ */ (0,M.jsxs)(M.Fragment,{children:[/* @__PURE__ */ (0,M.jsx)(p,{}),t]}):e})}var V=6e4,H=Date.now(),U=/* @__PURE__ */ new Set,W;function G(e){return U.add(e),W===void 0&&(H=Date.now(),W=setInterval(()=>{H=Date.now(),U.forEach(e=>e())},V)),()=>{U.delete(e),U.size===0&&W!==void 0&&(clearInterval(W),W=void 0)}}function K(){return H}function q(){return(0,j.useSyncExternalStore)(G,K,K)}function J(e){return e.selectable&&e.sendable}var Y=[`fastest`,`balanced`,`smartest`],X=[`managed`,`company`,`personal`],Z=x({id:v().min(1),name:v(),selectionId:v().min(1),selectable:b(),sendable:b(),disabledReason:y([`key_invalid`,`no_key`]).nullable(),tier:v(),reasoning:b(),attachments:S}),Q=x({defaultSelectionId:v().nullable(),policyVersion:v(),providers:w(x({type:v(),models:w(Z)}))}),ne=x({plan:v()});function re(e){return X.includes(e)}function ie(e){return Y.includes(e)}var ae=[`Claude `,`Anthropic `];function oe(e){for(let t of ae)if(e.startsWith(t)){let n=e.slice(t.length).trim();if(n!==``)return n}return e}function se(e,t){let n=/* @__PURE__ */ new Map,r=[],i=[];for(let t of e.providers){if(!re(t.type)){r.push({type:t.type,modelIds:t.models.map(e=>e.id)});continue}let e=t.type,a=t.models.flatMap(t=>ie(t.tier)?[{id:t.id,name:t.name,shortName:oe(t.name),selectionId:t.selectionId,selectable:t.selectable,sendable:t.sendable,disabledReason:t.disabledReason,tier:t.tier,reasoning:t.reasoning,attachments:t.attachments}]:(i.push({type:e,modelId:t.id,tier:t.tier}),[]));if(a.length===0)continue;let o=n.get(e);n.set(e,o===void 0?{source:e,models:a}:{...o,models:[...o.models,...a]})}return(r.length>0||i.length>0)&&t.warn(`available-models: wire values outside the client contract were dropped`,{policyVersion:e.policyVersion,droppedBuckets:r,droppedModels:i}),{groups:[...n.values()],defaultSelectionId:e.defaultSelectionId}}function ce(e,t){let n=$(e,t);return n===null||!J(n.model)?null:n.model.selectionId}function $(e,t){let n=e.groups.find(e=>e.source===t.keySource);if(n===void 0)return null;let r=n.models.find(e=>e.id===t.modelId);return r===void 0?null:{model:r,source:n.source}}function le(e,t,n){let{groups:r,defaultSelectionId:i}=e,a=e=>{for(let t of r){let n=t.models.find(t=>t.selectionId===e);if(n!==void 0)return{model:n,source:t.source}}return null};if(t!==null){let e=a(t);if(e!==null)return e}if(n!==null){let e=r.find(e=>e.source===n.provider),t=e==null?void 0:e.models.find(e=>e.id===n.model);if(e!==void 0&&t!==void 0)return{model:t,source:e.source}}if(i!==null){let e=a(i);if(e!==null&&J(e.model))return e}return null}function ue(e){let{http:t,logger:n}=e;return{async load(){let[e,r]=await Promise.all([t.request({method:f.availableModels.method,path:f.availableModels.path(),schema:Q}),t.request({method:f.subscription.method,path:f.subscription.path(),schema:ne})]),i=se(e,n);return{groups:i.groups,defaultSelectionId:i.defaultSelectionId,isEnterprise:r.plan===`enterprise`}}}}export{ce as a,z as c,A as d,k as f,T as g,E as h,J as i,te as l,D as m,le as n,q as o,O as p,$ as r,B as s,ue as t,F as u};
@@ -1 +0,0 @@
1
- import{Ei as e,Fi as t,Oi as n,ji as r,ki as i,wi as a}from"./shared-CD1T06ac.js";var o=e(`kind`,[r({key:t().min(1),label:r({ru:t().min(1),en:t().min(1)}),kind:n(`text`),text:t().min(1)}),r({key:t().min(1),label:r({ru:t().min(1),en:t().min(1)}),kind:n(`token`),token:t().min(1)}),r({key:t().min(1),label:r({ru:t().min(1),en:t().min(1)}),kind:n(`list`),items:a(t().min(1)).min(1)}),r({key:t().min(1),label:r({ru:t().min(1),en:t().min(1)}),kind:n(`workflow`),workflowId:t().min(1),topic:i({kind:n(`preset`),presetId:t().min(1)})})]),s=r({facts:a(o)}),c={"stand.main":`default`,"stand.dangerous":`warning`,"onExisting.skip":`default`,"onExisting.replace":`default`,"onExisting.duplicate":`default`,"scenarios.ad_hoc_batch":`default`,"environment.projectDefault":`default`,"status.running":`default`,"status.finished":`default`,"status.aborted":`default`,"aiRunMode.mapping":`default`,"aiRunMode.agentic":`default`,"window.headful":`default`,"window.headless":`default`,"executor.extension":`default`,"executor.agent":`default`,"billingPeriod.monthly":`default`,"billingPeriod.yearly":`default`,"requestType.plan_change":`default`,"requestType.topup":`default`,"requestType.seats":`default`,"role.user":`default`,"allowedChange.file_bugs":`default`,"allowedChange.write_tests":`default`,"allowedChange.edit_project":`default`,"scope.project":`default`};export{s as n,c as t};