@hearsay-tools/squawk 0.19.0-pr4470.8813 → 0.19.0-pr4479.8818
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.
- package/dist/boot.js +0 -6
- package/dist/boot.js.map +1 -1
- package/dist/built-in-cli-commands.js +0 -4
- package/dist/built-in-cli-commands.js.map +1 -1
- package/dist/built-in-launch-parts.d.ts +0 -2
- package/dist/built-in-launch-parts.js +1 -9
- package/dist/built-in-launch-parts.js.map +1 -1
- package/dist/built-in-tools.js +1 -2
- package/dist/built-in-tools.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/features/automations/agent-tools.d.ts +2 -0
- package/dist/{automations → features/automations}/agent-tools.js +5 -5
- package/dist/features/automations/agent-tools.js.map +1 -0
- package/dist/{automations → features/automations}/automation-cli.d.ts +3 -3
- package/dist/{automations → features/automations}/automation-cli.js +9 -9
- package/dist/features/automations/automation-cli.js.map +1 -0
- package/dist/{server → features/automations}/automation-log-retry.d.ts +2 -2
- package/dist/{server → features/automations}/automation-log-retry.js +4 -4
- package/dist/features/automations/automation-log-retry.js.map +1 -0
- package/dist/{server → features/automations}/automations-routes.d.ts +165 -165
- package/dist/{server → features/automations}/automations-routes.js +17 -17
- package/dist/features/automations/automations-routes.js.map +1 -0
- package/dist/features/automations/capability.d.ts +3 -0
- package/dist/features/automations/capability.js +7 -0
- package/dist/features/automations/capability.js.map +1 -0
- package/dist/features/automations/cli-command.d.ts +3 -0
- package/dist/features/automations/cli-command.js +10 -0
- package/dist/features/automations/cli-command.js.map +1 -0
- package/dist/{automations → features/automations}/coordinator.js +3 -3
- package/dist/features/automations/coordinator.js.map +1 -0
- package/dist/{automations → features/automations}/enabled.js +1 -1
- package/dist/features/automations/enabled.js.map +1 -0
- package/dist/features/automations/github-baseline.js.map +1 -0
- package/dist/{automations → features/automations}/github-poller.d.ts +1 -1
- package/dist/{automations → features/automations}/github-poller.js +2 -2
- package/dist/features/automations/github-poller.js.map +1 -0
- package/dist/{automations → features/automations}/github-repository.d.ts +1 -1
- package/dist/{automations → features/automations}/github-repository.js +3 -3
- package/dist/features/automations/github-repository.js.map +1 -0
- package/dist/features/automations/index.d.ts +14 -0
- package/dist/features/automations/index.js +17 -0
- package/dist/features/automations/index.js.map +1 -0
- package/dist/features/automations/launch-part.d.ts +3 -0
- package/dist/features/automations/launch-part.js +9 -0
- package/dist/features/automations/launch-part.js.map +1 -0
- package/dist/{automations → features/automations}/project-files.js +1 -1
- package/dist/features/automations/project-files.js.map +1 -0
- package/dist/{automations → features/automations}/prompts.js +2 -2
- package/dist/features/automations/prompts.js.map +1 -0
- package/dist/{automations → features/automations}/schedule-runner.js +1 -1
- package/dist/features/automations/schedule-runner.js.map +1 -0
- package/dist/{automations → features/automations}/scheduler.js +4 -4
- package/dist/features/automations/scheduler.js.map +1 -0
- package/dist/features/automations/server-plugin.d.ts +7 -0
- package/dist/features/automations/server-plugin.js +31 -0
- package/dist/features/automations/server-plugin.js.map +1 -0
- package/dist/{automations → features/automations}/service.d.ts +7 -7
- package/dist/{automations → features/automations}/service.js +6 -6
- package/dist/features/automations/service.js.map +1 -0
- package/dist/{automations → features/automations}/store.js +5 -5
- package/dist/features/automations/store.js.map +1 -0
- package/dist/{automations → features/automations}/task-template.d.ts +2 -2
- package/dist/{automations → features/automations}/task-template.js +7 -7
- package/dist/features/automations/task-template.js.map +1 -0
- package/dist/{automations → features/automations}/tool-adapter.d.ts +4 -4
- package/dist/{automations → features/automations}/tool-adapter.js +12 -12
- package/dist/features/automations/tool-adapter.js.map +1 -0
- package/dist/{automations → features/automations}/tool-catalog.js +2 -2
- package/dist/features/automations/tool-catalog.js.map +1 -0
- package/dist/{automations → features/automations}/tool-client.d.ts +2 -2
- package/dist/{automations → features/automations}/tool-client.js +4 -4
- package/dist/features/automations/tool-client.js.map +1 -0
- package/dist/features/automations/tool-env.d.ts +3 -0
- package/dist/features/automations/tool-env.js +5 -0
- package/dist/features/automations/tool-env.js.map +1 -0
- package/dist/{automations → features/automations}/tool-errors.d.ts +1 -1
- package/dist/features/automations/tool-errors.js.map +1 -0
- package/dist/{automations → features/automations}/tool-github.js +1 -1
- package/dist/features/automations/tool-github.js.map +1 -0
- package/dist/{automations → features/automations}/tool-session.d.ts +1 -1
- package/dist/{automations → features/automations}/tool-session.js +1 -1
- package/dist/features/automations/tool-session.js.map +1 -0
- package/dist/{automations → features/automations}/tool-timeout.js +1 -1
- package/dist/features/automations/tool-timeout.js.map +1 -0
- package/dist/{automations → features/automations}/tools.d.ts +1 -1
- package/dist/features/automations/tools.js.map +1 -0
- package/dist/{automations → features/automations}/types.d.ts +1 -1
- package/dist/{automations → features/automations}/types.js +1 -1
- package/dist/features/automations/types.js.map +1 -0
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/providers-routes.d.ts +7 -7
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/runs-routes.d.ts +301 -301
- package/dist/server/server.d.ts +359 -359
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-B6L_eCge.js → accounts-section-CnQrgrlx.js} +1 -1
- package/web/dist/assets/{activity-motion-uHV9WVWW.js → activity-motion-SZyZ3Vcd.js} +1 -1
- package/web/dist/assets/{activity-route-ZvBSfbJa.js → activity-route-kA927mMd.js} +1 -1
- package/web/dist/assets/{agent-config-section-Czu88iFQ.js → agent-config-section-DZ9lz-oU.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-kdQ9hwMn.js → agent-defaults-section-CAyM93lD.js} +1 -1
- package/web/dist/assets/{appearance-ELzA_Y-r.js → appearance-jU-y46Hc.js} +1 -1
- package/web/dist/assets/{automations-route-wgVmxFuL.js → automations-route-DzIrboEQ.js} +1 -1
- package/web/dist/assets/{commit-list-Cg2wU-b9.js → commit-list-JK2MEtR0.js} +1 -1
- package/web/dist/assets/{diff-KCTM2Wz-.js → diff-CC-HnvfR.js} +2 -2
- package/web/dist/assets/{diff-controls-LZ-ro_V5.js → diff-controls-CnrIcRRG.js} +1 -1
- package/web/dist/assets/{diff-view-ClhSIhOU.js → diff-view-Dzl9i4zr.js} +1 -1
- package/web/dist/assets/{file-preview-DaPUicrL.js → file-preview-C1Nd5SH3.js} +1 -1
- package/web/dist/assets/{git-toolbar-BxqFj5Ea.js → git-toolbar-q-HOZgdL.js} +1 -1
- package/web/dist/assets/{github-C-fDvzWv.js → github-RqiwU49D.js} +1 -1
- package/web/dist/assets/{global-activity-route-ccfZhHur.js → global-activity-route-DTuWu-5a.js} +1 -1
- package/web/dist/assets/index-6yHpyOyH.js +21 -0
- package/web/dist/assets/index-DNgBNd8o.css +1 -0
- package/web/dist/assets/{markdown-Ce-c_H3H.js → markdown-NDbXgnqb.js} +1 -1
- package/web/dist/assets/{notifications-section-Bn2KqIj5.js → notifications-section-CQ4HSyLK.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-BZv6a88f.js → preview-pane-connected-Dm-Ga2KN.js} +1 -1
- package/web/dist/assets/{projects-section-HvvoRCCN.js → projects-section-CKPqFZP7.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-Bp1Lpuah.js → prompt-templates-section-D9Tsgav9.js} +1 -1
- package/web/dist/assets/{reference-chip-DXFYkdLT.js → reference-chip-CV_vG2eP.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-C2WnWH7Z.js → remote-settings-notice-40uqklAG.js} +1 -1
- package/web/dist/assets/{repo-git-B4-HsX3H.js → repo-git-BBalirax.js} +1 -1
- package/web/dist/assets/{report-reader-BDC1M3FH.js → report-reader-D3Heszz3.js} +1 -1
- package/web/dist/assets/{reports-ByXyb8Qq.js → reports-CEaxAigM.js} +1 -1
- package/web/dist/assets/{resources-section-a6pURXjH.js → resources-section-ohdWkreq.js} +1 -1
- package/web/dist/assets/{review-panel-DO8pEdxG.js → review-panel-CthaDvZO.js} +1 -1
- package/web/dist/assets/{run-header-ZKCViZcp.js → run-header-9NNASXmJ.js} +2 -2
- package/web/dist/assets/{select-DyUG6Pq0.js → select-Bh7vwx79.js} +1 -1
- package/web/dist/assets/{session-context-section-BK-gaYfD.js → session-context-section-B5Ee7GbQ.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BWIzThpj.js → settings-agent-picker-DeczgUDV.js} +1 -1
- package/web/dist/assets/{settings-shell-Kpi86jxR.js → settings-shell-BvRwl06q.js} +1 -1
- package/web/dist/assets/{sidebar-section-uIA0bp4R.js → sidebar-section-Bn1Uv9AQ.js} +1 -1
- package/web/dist/assets/{skills-F_PlpaAj.js → skills-DMyaR3WX.js} +1 -1
- package/web/dist/assets/{task-changes-B0OznsI4.js → task-changes-ChM901cL.js} +1 -1
- package/web/dist/assets/{task-commits-YLAnUoUT.js → task-commits-DOP65FDx.js} +1 -1
- package/web/dist/assets/{task-file-scope-lYm3HhO-.js → task-file-scope-emNQrzps.js} +1 -1
- package/web/dist/assets/{task-files-CBWCKg1N.js → task-files-BYPCvDCO.js} +1 -1
- package/web/dist/assets/task-github-item-CHGyiC4k.js +1 -0
- package/web/dist/assets/{task-thread-QCh0XSC9.js → task-thread-BI2pi8dZ.js} +2 -2
- package/web/dist/assets/tasks-table-BY5niMlY.js +1 -0
- package/web/dist/assets/{thread-state-UskdtPpY.js → thread-state-CdKvrn7R.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BAIAj5y3.js → use-hand-to-agent-state-stc7Vzni.js} +1 -1
- package/web/dist/assets/{workflows-Czz1Sh3f.js → workflows-DagjPw_m.js} +1 -1
- package/web/dist/assets/{workspace-tools-NblPQmRw.js → workspace-tools-BaLORh9B.js} +1 -1
- package/web/dist/assets/{worktrees-section-Wvpc1NIq.js → worktrees-section-CSERluzw.js} +1 -1
- package/web/dist/index.html +4 -4
- package/dist/automations/agent-tools.d.ts +0 -2
- package/dist/automations/agent-tools.js.map +0 -1
- package/dist/automations/automation-cli.js.map +0 -1
- package/dist/automations/coordinator.js.map +0 -1
- package/dist/automations/enabled.js.map +0 -1
- package/dist/automations/github-baseline.js.map +0 -1
- package/dist/automations/github-poller.js.map +0 -1
- package/dist/automations/github-repository.js.map +0 -1
- package/dist/automations/project-files.js.map +0 -1
- package/dist/automations/prompts.js.map +0 -1
- package/dist/automations/schedule-runner.js.map +0 -1
- package/dist/automations/scheduler.js.map +0 -1
- package/dist/automations/service.js.map +0 -1
- package/dist/automations/store.js.map +0 -1
- package/dist/automations/task-template.js.map +0 -1
- package/dist/automations/tool-adapter.js.map +0 -1
- package/dist/automations/tool-catalog.js.map +0 -1
- package/dist/automations/tool-client.js.map +0 -1
- package/dist/automations/tool-env.d.ts +0 -1
- package/dist/automations/tool-env.js +0 -3
- package/dist/automations/tool-env.js.map +0 -1
- package/dist/automations/tool-errors.js.map +0 -1
- package/dist/automations/tool-github.js.map +0 -1
- package/dist/automations/tool-session.js.map +0 -1
- package/dist/automations/tool-timeout.js.map +0 -1
- package/dist/automations/tools.js.map +0 -1
- package/dist/automations/types.js.map +0 -1
- package/dist/built-in-capabilities.d.ts +0 -3
- package/dist/built-in-capabilities.js +0 -14
- package/dist/built-in-capabilities.js.map +0 -1
- package/dist/built-in-http-routes.d.ts +0 -10
- package/dist/built-in-http-routes.js +0 -33
- package/dist/built-in-http-routes.js.map +0 -1
- package/dist/built-in-server-hooks.d.ts +0 -9
- package/dist/built-in-server-hooks.js +0 -24
- package/dist/built-in-server-hooks.js.map +0 -1
- package/dist/server/automation-log-retry.js.map +0 -1
- package/dist/server/automations-routes.js.map +0 -1
- package/web/dist/assets/index-BgwtSOOQ.css +0 -1
- package/web/dist/assets/index-_l5gcUqA.js +0 -21
- package/web/dist/assets/task-github-item-BoBW3pWI.js +0 -1
- package/web/dist/assets/tasks-table-B9Hu3rBi.js +0 -1
- package/dist/{automations → features/automations}/coordinator.d.ts +1 -1
- package/dist/{automations → features/automations}/enabled.d.ts +0 -0
- package/dist/{automations → features/automations}/github-baseline.d.ts +0 -0
- package/dist/{automations → features/automations}/github-baseline.js +0 -0
- package/dist/{automations → features/automations}/project-files.d.ts +0 -0
- package/dist/{automations → features/automations}/prompts.d.ts +0 -0
- package/dist/{automations → features/automations}/schedule-runner.d.ts +0 -0
- package/dist/{automations → features/automations}/scheduler.d.ts +1 -1
- /package/dist/{automations → features/automations}/store.d.ts +0 -0
- /package/dist/{automations → features/automations}/tool-catalog.d.ts +0 -0
- /package/dist/{automations → features/automations}/tool-errors.js +0 -0
- /package/dist/{automations → features/automations}/tool-github.d.ts +0 -0
- /package/dist/{automations → features/automations}/tool-timeout.d.ts +0 -0
- /package/dist/{automations → features/automations}/tools.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./react-runtime-CCIEwYL0.js";import{n as t}from"./utils-DSMR_WLb.js";import{St as n,Wt as r,Y as i,dn as a,o,r as s,xt as c,yt as l}from"./queries-D0v1z40Y.js";import{hi as u,q as d}from"./toaster-DMfiAEnw.js";import{h as f}from"./chunk-KS7C4IRE-Cg8l-LDN.js";import{_ as p,m}from"./tasks-table-B9Hu3rBi.js";import{F as h,ot as g,p as _}from"./design-icons-CzEoMH9c.js";import{t as v}from"./run-header-ZKCViZcp.js";import{t as y}from"./external-link-BE6y205O.js";import{l as b}from"./reference-chip-DXFYkdLT.js";import{t as x}from"./button-B7MKxYjT.js";import{t as S}from"./project-router-BifLGgRR.js";import{c as C}from"./page-shell-7pLJMOgh.js";import{t as w}from"./centered-state-V15AR_qo.js";import{S as T,rr as E,x as D}from"./index-_l5gcUqA.js";import{n as O,o as k,t as A}from"./use-hand-to-agent-state-BAIAj5y3.js";var j=e(),M={issue:`Issue`,pr:`Pull request`};function N({kind:e}){let{id:t}=f(),n=i(t);return n.isPending?(0,j.jsx)(D,{kind:e}):n.isError?(0,j.jsx)(T,{tab:`github-item`,error:n.error}):(0,j.jsx)(P,{run:n.data,kind:e})}function P({run:e,kind:t}){let{n:r}=f(),i=Number(r),a=c(),s=n(),u=l(),d=s.isPending||u.isPending,p=m(e,a).some(e=>e.kind===t&&e.number===i),h=o(t,i,p);return(0,j.jsxs)(C,{route:`task-github-item`,density:p?`full`:`empty`,flushPadding:!0,children:[(0,j.jsx)(v,{run:e,tab:{kind:t,number:i}}),p?(0,j.jsx)(H,{run:e,kind:t,number:i,repoBase:a,item:h}):d?(0,j.jsx)(D,{kind:t,number:i,heading:`h2`}):(0,j.jsx)(w,{icon:(0,j.jsx)(E,{size:16}),tone:`neutral`,heading:`h2`,title:`#${r} is not linked to this task`,subtitle:`Only the issues and pull requests this task references open here.`,actions:(0,j.jsx)(x,{asChild:!0,variant:`outline`,children:(0,j.jsx)(S,{to:`/tasks/${e.id}`,children:`Back to the session`})})})]})}function F(e,t){return e===`pr`&&t.data?.available===!0&&t.data.item!==null}function I(e,t,n,r){return e===`pr`?n?.[t]??r:r}function L({retry:e,kind:t,number:n}){return(0,j.jsx)(x,{variant:`outline`,disabled:e.isPending,onClick:()=>e.mutate(r.githubItem(t,n)),children:`Retry`})}function R({kind:e,number:t,error:n,retryButton:r}){return(0,j.jsx)(w,{icon:(0,j.jsx)(g,{size:16}),tone:`danger`,heading:`h2`,title:`Could not load ${M[e].toLowerCase()} #${t}`,subtitle:n.message,actions:r})}function z({run:e,kind:n,number:r,repoBase:i,reason:a,retryError:o,retryButton:s}){let c=n===`pr`?h:_,l=p(e,i).find(e=>e.kind===`PR`==(n===`pr`)&&e.number===r)?.url;return(0,j.jsx)(w,{icon:(0,j.jsx)(c,{size:16}),tone:`neutral`,heading:`h2`,title:`GitHub is unavailable`,subtitle:o?.message??a,actions:(0,j.jsxs)(j.Fragment,{children:[s,l&&t(l)?(0,j.jsx)(x,{asChild:!0,variant:`outline`,children:(0,j.jsxs)(`a`,{href:l,target:`_blank`,rel:`noopener noreferrer`,children:[`open on GitHub`,(0,j.jsx)(y,{"aria-hidden":`true`})]})}):null]})})}function B({label:e,repoBase:t}){return(0,j.jsx)(w,{icon:(0,j.jsx)(b,{}),tone:`neutral`,heading:`h2`,title:`${e} was not found in ${U(t)}`,subtitle:`It may have been deleted, or the number points at a different repository.`})}function V({kind:e,item:t,labelColors:n,checks:r}){return(0,j.jsx)(`div`,{className:`min-w-0 px-0.5 md:px-2`,children:(0,j.jsx)(k,{item:t,colors:n??{},checks:r,backLink:null,subNav:null,children:e===`issue`?(0,j.jsx)(W,{item:t},t.url):null})})}function H({run:e,kind:t,number:n,repoBase:r,item:i}){let o=u(),c=a({mutationFn:e=>d(t,n,{refresh:!0}),onSuccess:(e,t)=>o.setQueryData(t,e)}),l=F(t,i),f=s(l?[n]:[],l),p=f.data?.available?f.data.checks:void 0,m=`${M[t]} #${n}`,h=(0,j.jsx)(L,{retry:c,kind:t,number:n});if(i.isPending)return(0,j.jsx)(D,{kind:t,number:n,heading:`h2`});if(i.isError)return(0,j.jsx)(R,{kind:t,number:n,error:c.error??i.error,retryButton:h});let g=i.data;return g.available?g.item?(0,j.jsx)(V,{kind:t,item:g.item,labelColors:g.labelColors,checks:I(t,n,p,g.item.checks)}):(0,j.jsx)(B,{label:m,repoBase:r}):(0,j.jsx)(z,{run:e,kind:t,number:n,repoBase:r,reason:g.reason,retryError:c.error,retryButton:h})}function U(e){if(!e)return`this repository`;try{return new URL(e).pathname.split(`/`).filter(Boolean).slice(0,2).join(`/`)||`this repository`}catch{return`this repository`}}function W({item:e}){let t=A();return(0,j.jsx)(O,{item:e,workflows:t.workflows.data?.workflows??[],skills:t.skillList,workflow:t.workflow,onWorkflowChange:t.setWorkflow,selectedSkills:t.selectedSkills,onSkillsChange:t.setSelectedSkills,engine:t.engine,onEngineChange:t.setEngine,queuedRunId:t.queued.get(e.url)??null,onQueued:t.onQueued},e.url)}export{N as TaskGithubItemRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{An as e,Hn as t,tr as n}from"./toaster-DMfiAEnw.js";import"./attention-Dt-QhJ3p.js";import{C as r,a as i,f as a,o,s,u as c}from"./task-groups-BdayPxX3.js";function l(e){if(e.workflow===`(planned)`||e.workflow===`(inbox)`){let t=(e.steps??[]).find(e=>e.kind===`agent`);if(t?.name)return t.name}return e.workflow}var u=[{value:`all`,label:`All`},{value:`direct`,label:`Direct`},{value:`automations`,label:`Automations`}];function d(e){return e?u:u.filter(e=>e.value!==`automations`)}function f(e,t){return e===`automations`&&!t?`all`:e}function p(e){return e===`direct`||e===`automations`?e:`all`}function m(e,n){return n===`all`||t(e)===(n===`automations`)}function h(e){return e===`all`?void 0:e===`automations`}function g(e,n){let r={all:0,direct:0,automations:0};for(let i of e)o(i)||i.archived!==(n===`archived`)||(r.all+=1,t(i)?r.automations+=1:r.direct+=1);return r}function _(e,t,n,r,i){let a=s(e).archived,o=a>=200;if(n===`all`)return i??(o?`200+`:a);let c=g(t,`archived`)[n];return o&&r!==!1?`${c}+`:c}function v(e){return e.rows.map(e=>e.run)}function y(t,n){switch(t){case`Needs you`:return`pending`;case`Working`:return`running`;case`Archived`:return`neutral`;case`Finished`:return n.some(t=>e(t).bucket===`error`)?`danger`:`success`}}function b(e,t,n){return i(e,t,c(n))}var x=(e,t)=>JSON.stringify([e,t]);function S(e,t,n){let r=new Map,a=e.map(e=>{let{run:t}=e,n=x(t.projectId,t.id);r.set(n,e);let i=t.delegation;return{...t,id:n,...i&&`parentRunId`in i?{delegation:{...i,parentRunId:x(t.projectId,i.parentRunId)}}:{}}}),o=new Map;for(let e of n){let t=o.get(e.projectId);t?t.push(e):o.set(e.projectId,[e])}let s=new Map;for(let[e,t]of o)for(let[n,r]of c(t))s.set(x(e,n),r);let l=e=>r.get(e.id);return i(a,t,s).map(e=>({label:e.label,rows:e.rows.map(e=>({kind:`run`,run:l(e.run),queuePosition:e.queuePosition}))}))}function C(e){return[e.run]}function w(e){let t=/\/(\d+)\/?$/.exec(e.trim()),n=t?Number(t[1]):NaN;return Number.isInteger(n)&&n>0?n:null}function T(e){let t=new Set;for(let n of[e.pullRequestUrl,e.referencedPullRequestUrl,e.referencedIssueUrl]){let e=n?w(n):null;e!==null&&t.add(e)}for(let n of[e.prNumber,e.issueNumber,e.markerRefs?.pr,e.markerRefs?.issue])typeof n==`number`&&Number.isInteger(n)&&n>0&&t.add(n);for(let n of e.pullRequests??[])t.add(n.number);return[...t]}var E=[{id:`title`,kind:`text`,scopes:[`stored`],source:`summary`,texts:e=>[e.title]},{id:`titleSummary`,kind:`text`,scopes:[`stored`],source:`summary`,texts:e=>[e.titleSummary]},{id:`displayTitle`,kind:`text`,scopes:[`shown`],source:`reader`,texts:(e,t)=>[t.displayTitle]},{id:`branch`,kind:`text`,scopes:[`stored`,`shown`],source:`summary`,texts:e=>[e.branch]},{id:`workflow`,kind:`text`,scopes:[`stored`,`shown`],source:`summary`,texts:e=>[e.workflow]},{id:`workflowLabel`,kind:`text`,scopes:[`stored`,`shown`],source:`summary`,texts:e=>[e.workflowLabel]},{id:`automation`,kind:`text`,scopes:[`stored`,`shown`],source:`reader`,texts:(e,t)=>[t.automation],universe:e=>[...e.automationNames?.values()??[]]},{id:`projectName`,kind:`text`,scopes:[`shown`],source:`reader`,texts:(e,t)=>[t.projectName]},{id:`tags`,kind:`text`,scopes:[`shown`],source:`reader`,texts:(e,t)=>t.tags??[]},{id:`id`,kind:`identifier`,scopes:[`stored`],source:`summary`,texts:e=>[e.id]},{id:`urls`,kind:`link`,scopes:[`stored`],source:`summary`,texts:e=>[e.pullRequestUrl,e.referencedPullRequestUrl,e.referencedIssueUrl,...(e.pullRequests??[]).map(e=>e.url)]},{id:`heldReferences`,kind:`reference`,scopes:[`stored`],source:`summary`,numbers:T},{id:`shownReferences`,kind:`reference`,scopes:[`shown`],source:`reader`,numbers:(e,t)=>t.references?.()??[]}];function D(e){return e.trim().toLowerCase().split(/\s+/).filter(e=>e!==``)}function O(e,t){return t&&e.automationId!==void 0?t.get(e.automationId)??e.automationId:void 0}function k(e,t){let n=t.scope??`stored`,r=t.scope===`shown`?t.extras:{automation:O(e,t.automationNames)},i=[],a=[],o=[],s={text:i,identifier:a,link:o},c=[];for(let t of E)if(t.scopes.includes(n)){if(t.kind===`reference`){c.push(()=>t.numbers(e,r));continue}for(let n of t.texts(e,r))typeof n==`string`&&s[t.kind].push(n.toLowerCase())}let l;return{prose:i,ids:a,links:o,references:()=>l??=new Set(c.flatMap(e=>e().map(String)))}}function A(e,t,n={}){let r=D(t);if(r.length===0)return!1;let{prose:i,ids:a,links:o,references:s}=k(e,n);return r.every(e=>{if(i.some(t=>t.includes(e)))return!0;let t=e.replace(/^#/,``);return/^\d+$/.test(t)?s().has(String(Number(t)))||a.some(e=>e.startsWith(t)):a.some(t=>t.includes(e))||o.some(t=>t.includes(e))})}var j=new Set([`running`,`waiting`]);function M(e){return e?e>=1024**3?`${(e/1024**3).toFixed(1)} GB`:e>=1024**2?`${Math.round(e/1024**2)} MB`:`${Math.round(e/1024)} kB`:``}function N(e){return e===void 0?``:`$${e>=10?e.toFixed(0):e.toFixed(2)}`}function P(e,t=new Date){if(!n(e))return;let r=new Date(e.autoResumeAt);if(!Number.isFinite(r.getTime()))return;let i=r.toDateString()===t.toDateString(),a=new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(r);return{label:i?a:`${new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(r)} ${a}`,title:`Resumes automatically at ${new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`long`}).format(r)}`}}function F(e){return e.steps?l({workflow:e.workflow,steps:e.steps}):e.workflowLabel??e.workflow}function I(e,t,n=()=>``){let r=e.filter(e=>!o(e));return t.trim()?r.filter(e=>A(e,t,{scope:`shown`,extras:{displayTitle:a(e),automation:n(e),references:()=>L(e)}})):[...r]}function L(e){return W(e).map(e=>e.number)}function R(e,t){return e.filter(e=>r(e,t)).length}function z(e){return R(e)}function B(e){return V(e)[0]??e.pullRequests?.find(e=>e.url)?.url}function V(e){let t=[];return e.pullRequestUrl&&t.push(e.pullRequestUrl),!(e.markerRefs?.issue!==void 0&&e.markerRefs?.pr===void 0)&&e.referencedPullRequestUrl&&t.push(e.referencedPullRequestUrl),t}function H(e,t){if(e.referencedIssueUrl)return e.referencedIssueUrl;let n=e.issueNumber??e.markerRefs?.issue;if(!(!n||!t))return`${t}/issues/${n}`}function U(e){let t=`${e.kind}#${e.number}`;if(!e.url)return`${t}@project:${e.projectId??`default`}`;try{let n=new URL(e.url),r=n.pathname.split(`/`).filter(Boolean).slice(0,2).join(`/`);return`${t}@${n.host.toLowerCase()}/${r.toLowerCase()}`}catch{return`${t}@${e.url}`}}function W(e,t,n=e.projectId){let r=V(e),i=e.markerRefs?.pr,a=[...i===void 0||[...r,...(e.pullRequests??[]).flatMap(e=>e.url?[e.url]:[])].some(e=>Z(e)===String(i))?[]:[{kind:`PR`,number:i}],...r.map(e=>({kind:`PR`,url:e})),{kind:`PR`,number:e.prNumber},...(e.pullRequests??[]).map(e=>({kind:`PR`,number:e.number,...e.url?{url:e.url}:{},authoritative:!0})),{kind:`Issue`,url:H(e,t)},{kind:`Issue`,number:e.issueNumber}],o=new Set,s=[];for(let e of a){let r=e.url?Number(Z(e.url)):e.number;if(!r||!Number.isInteger(r)||!e.url&&!e.authoritative&&s.some(t=>t.url&&t.kind===e.kind&&t.number===r))continue;let i=e.url??G(e.kind,r,t),a={kind:e.kind,number:r,...i?{url:i}:n===void 0?{}:{projectId:n}},c=U(a);o.has(c)||(o.add(c),s.push(a))}return s}function G(e,t,n){if(n)return`${n}/${e===`PR`?`pull`:`issues`}/${t}`}function K(e){return W(e)[0]}function q(e,t){if(!e.url)return!0;if(!t)return!1;let n=J(t);return n!==void 0&&J(e.url)===n}function J(e){try{let t=new URL(e),[n,r]=t.pathname.split(`/`).filter(Boolean);return n&&r?`${t.host}/${n}/${r}`.toLowerCase():void 0}catch{return}}function Y(e,t){let n=[];for(let r of W(e,t)){if(!q(r,t))continue;let e=r.kind===`PR`?`pr`:`issue`;n.some(t=>t.kind===e&&t.number===r.number)||n.push({kind:e,number:r.number})}return n}function X(e,t,n,r){if(q(n,r))return`/p/${e}/tasks/${t}/${n.kind===`PR`?`pr`:`issue`}/${n.number}`}function Z(e){return/\/(\d+)\/?(?:[?#].*)?$/.exec(e)?.[1]??null}function Q(e,t){let n=j.has(e.status)?t:void 0;if(n)return{cpu:{text:`${n.cpuPct.toFixed(0)}%`,kind:`live`},mem:{text:M(n.rssBytes),kind:`live`}};let r=M(e.peakRssBytes);return{cpu:{text:``,kind:`none`},mem:r?{text:`peak ${r}`,kind:`peak`,title:`peak — run finished${e.peakProcCount?` · ${e.peakProcCount} procs`:``}`}:{text:``,kind:`none`}}}function $(e,t,n=!1){return n||e.filter(e=>!t(e.label)).some(e=>e.rows.flatMap(C).some(e=>K(e)!==void 0))}export{p as A,S as C,m as D,y as E,d as M,h as O,f as S,b as T,W as _,q as a,A as b,U as c,R as d,H as f,K as g,B as h,M as i,C as j,g as k,P as l,Y as m,z as n,Z as o,X as p,N as r,$ as s,I as t,L as u,Q as v,v as w,_ as x,F as y};
|
|
@@ -14,13 +14,13 @@ export interface AutomationCoordinatorOptions {
|
|
|
14
14
|
* full ProjectContext. Schedulers attach to these handles in Phase 4.
|
|
15
15
|
*/
|
|
16
16
|
export declare class AutomationCoordinator {
|
|
17
|
-
private readonly options;
|
|
18
17
|
private readonly stores;
|
|
19
18
|
private readonly roots;
|
|
20
19
|
private seenProject;
|
|
21
20
|
/** Projects whose migration fence has been logged, so each fence is logged once. */
|
|
22
21
|
private readonly fenceLogged;
|
|
23
22
|
private refreshSeq;
|
|
23
|
+
private readonly options;
|
|
24
24
|
constructor(options: AutomationCoordinatorOptions);
|
|
25
25
|
refresh(): Promise<void>;
|
|
26
26
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -76,11 +76,11 @@ export interface WorkspaceAutomationSchedulerOptions {
|
|
|
76
76
|
* file must not stop the only timer, because nothing else would ever arm it again.
|
|
77
77
|
*/
|
|
78
78
|
export declare class WorkspaceAutomationScheduler {
|
|
79
|
-
private readonly options;
|
|
80
79
|
private timer?;
|
|
81
80
|
private stopped;
|
|
82
81
|
private scheduleGeneration;
|
|
83
82
|
private readonly retryAfter;
|
|
83
|
+
private readonly options;
|
|
84
84
|
constructor(options: WorkspaceAutomationSchedulerOptions);
|
|
85
85
|
start(): Promise<void>;
|
|
86
86
|
reschedule(): Promise<void>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|