specrails-desktop 2.64.2 → 2.65.1
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/README.md +1 -1
- package/cli/dist/status.js +3 -0
- package/client/dist/assets/ActivityFeedPage-ByVKYII-.js +1 -0
- package/client/dist/assets/AgentBrowserCapture-BGUTjhUr.js +1 -0
- package/client/dist/assets/AgentModeAnalyticsPane-CtOLDDjB.js +2 -0
- package/client/dist/assets/AgentModeCodePane-CDhUKarT.js +2 -0
- package/client/dist/assets/AgentModeJobsPane-BAa_oEHJ.js +1 -0
- package/client/dist/assets/AgentsPage-D32hG4Ve.js +120 -0
- package/client/dist/assets/AnalyticsPage-BU50zeG6.js +5 -0
- package/client/dist/assets/BudgetCard-DP_jxwaD.js +55 -0
- package/client/dist/assets/CodePage-jiYnKGpp.js +3 -0
- package/client/dist/assets/CostValue-Bvn8674q.js +1 -0
- package/client/dist/assets/DesktopAnalyticsPage-CF__H4e3.js +1 -0
- package/client/dist/assets/DocView-RrAp70zp.js +11 -0
- package/client/dist/assets/DocsDialog-DkqHU-JF.js +1 -0
- package/client/dist/assets/DocsPage-C6X089zC.js +1 -0
- package/client/dist/assets/ExportDropdown-C5-o8y3K.js +1 -0
- package/client/dist/assets/HelpHint-Crf9_uoR.js +1 -0
- package/client/dist/assets/IntegrationsPage-aflU3KHK.js +1 -0
- package/client/dist/assets/InteractiveJobComposer-CEMMhyyJ.js +19 -0
- package/client/dist/assets/JobDetailModal-BVJ6hyRs.js +1 -0
- package/client/dist/assets/JobDetailPage-DHzBUmox.js +1 -0
- package/client/dist/assets/JobsPage-o-LAqkwC.js +1 -0
- package/client/dist/assets/LoopBuilderPage-DbSVmXBM.js +1 -0
- package/client/dist/assets/LoopPreviewModal-DbJcVyN1.js +1 -0
- package/client/dist/assets/{LoopWindowSurface-DE0v2K1p.js → LoopWindowSurface-Co1ZK26V.js} +1 -1
- package/client/dist/assets/LoopsPage-C4lgkPXB.js +2 -0
- package/client/dist/assets/MinimizedChatsContext-742ypO8n.js +1 -0
- package/client/dist/assets/PluginsPage-Acks9ges.js +2 -0
- package/client/dist/assets/RailTrack-BfLmBzBh.js +1 -0
- package/client/dist/assets/{RepositoryScopeSelector-2eSqR9WK.js → RepositoryScopeSelector-DcxbKI9w.js} +1 -1
- package/client/dist/assets/ReviewPacketPage-CAVSIOAJ.js +7 -0
- package/client/dist/assets/TemplatePreviewModal-C23SYCTm.js +1 -0
- package/client/dist/assets/TicketDetailModalContext-B-Gtm6Ob.js +23 -0
- package/client/dist/assets/Trans-C6J0cLyh.js +1 -0
- package/client/dist/assets/a11y-prefs-BqoP5goK.js +1 -0
- package/client/dist/assets/activity-BBWfoUOG.js +1 -0
- package/client/dist/assets/activity-BM_skann.js +1 -0
- package/client/dist/assets/activity-Cevl82ke.js +1 -0
- package/client/dist/assets/activity-CmACk5W5.js +1 -0
- package/client/dist/assets/activity-D9LBw3PQ.js +1 -0
- package/client/dist/assets/activity-Dspbb9lz.js +1 -0
- package/client/dist/assets/activity-FPjYIjv9.js +1 -0
- package/client/dist/assets/activity-nLCKMUKt.js +1 -0
- package/client/dist/assets/addspec-BI4jDMhA.js +1 -0
- package/client/dist/assets/addspec-BldTv7Tl.js +1 -0
- package/client/dist/assets/addspec-Cdq-2EcC.js +1 -0
- package/client/dist/assets/addspec-DH5M16BQ.js +1 -0
- package/client/dist/assets/addspec-DOFo9pD5.js +1 -0
- package/client/dist/assets/addspec-DPkwhdmL.js +1 -0
- package/client/dist/assets/addspec-Dzy12Pv3.js +1 -0
- package/client/dist/assets/addspec-skTs6EEW.js +1 -0
- package/client/dist/assets/agent-B_UEUy7Y.js +1 -0
- package/client/dist/assets/agent-BarjlhTA.js +1 -0
- package/client/dist/assets/agent-BfqIITo5.js +1 -0
- package/client/dist/assets/agent-Bt9a7Kyj.js +1 -0
- package/client/dist/assets/agent-C3689RwP.js +1 -0
- package/client/dist/assets/agent-CrmboTAi.js +1 -0
- package/client/dist/assets/agent-DcsoTnuE.js +1 -0
- package/client/dist/assets/agent-GDZoYwd4.js +1 -0
- package/client/dist/assets/{agentRuntime-es2ymSl-.js → agentRuntime-BYH70bKY.js} +1 -1
- package/client/dist/assets/agentRuntime-BijLh8I9.js +1 -0
- package/client/dist/assets/{agentRuntime-BzuwQQgn.js → agentRuntime-BvyuETPe.js} +1 -1
- package/client/dist/assets/{agentRuntime-BDvbJMmS.js → agentRuntime-C2WI6HQh.js} +1 -1
- package/client/dist/assets/{agentRuntime-BKJfv5YD.js → agentRuntime-CZPIlQsr.js} +1 -1
- package/client/dist/assets/{agentRuntime-DiCldqGG.js → agentRuntime-D2dDvCyJ.js} +1 -1
- package/client/dist/assets/agentRuntime-DWZedEbn.js +1 -0
- package/client/dist/assets/agentRuntime-DkIruUNw.js +1 -0
- package/client/dist/assets/agents-35_PDKx9.js +1 -0
- package/client/dist/assets/agents-8fZnHhEQ.js +1 -0
- package/client/dist/assets/agents-Bgimtw8z.js +1 -0
- package/client/dist/assets/agents-C4P160Us.js +1 -0
- package/client/dist/assets/agents-Clg67zbp.js +1 -0
- package/client/dist/assets/agents-DJfF4o6G.js +1 -0
- package/client/dist/assets/agents-Dc9-Y5cw.js +1 -0
- package/client/dist/assets/agents-EN1Zl4YZ.js +1 -0
- package/client/dist/assets/agentstudio-Bm4-NYaG.js +1 -0
- package/client/dist/assets/agentstudio-CD1fuj2o.js +1 -0
- package/client/dist/assets/agentstudio-CQGWFSst.js +1 -0
- package/client/dist/assets/agentstudio-CqVSb65S.js +1 -0
- package/client/dist/assets/agentstudio-DIE_HjsX.js +1 -0
- package/client/dist/assets/agentstudio-D_OmQK-k.js +1 -0
- package/client/dist/assets/agentstudio-Djz9aUfb.js +1 -0
- package/client/dist/assets/agentstudio-Qa3v9o5J.js +1 -0
- package/client/dist/assets/{aiedit-DNXxq_Dr.js → aiedit-1VzLs37W.js} +1 -1
- package/client/dist/assets/{aiedit-DCjA7jLJ.js → aiedit-BNp6GSik.js} +1 -1
- package/client/dist/assets/{aiedit-BoG24nlg.js → aiedit-BOY5xRPi.js} +1 -1
- package/client/dist/assets/{aiedit-iIjz2_Qk.js → aiedit-BrqMZvbc.js} +1 -1
- package/client/dist/assets/{aiedit-CjlSRQVP.js → aiedit-CVgtl7hm.js} +1 -1
- package/client/dist/assets/{aiedit-DQ-0_pvE.js → aiedit-CrFW9Jd2.js} +1 -1
- package/client/dist/assets/{aiedit-olnv3QSt.js → aiedit-YE2lILp7.js} +1 -1
- package/client/dist/assets/{aiedit-B0KUbpB6.js → aiedit-iA_R1AVQ.js} +1 -1
- package/client/dist/assets/analytics-3w0t-4ic.js +1 -0
- package/client/dist/assets/analytics-BRi4KQD6.js +1 -0
- package/client/dist/assets/analytics-BtjAqzke.js +1 -0
- package/client/dist/assets/analytics-COSQ1h47.js +1 -0
- package/client/dist/assets/analytics-CP2HjESk.js +1 -0
- package/client/dist/assets/analytics-DY65TC62.js +1 -0
- package/client/dist/assets/analytics-Den_vvxn.js +1 -0
- package/client/dist/assets/analytics-LmBS96O8.js +1 -0
- package/client/dist/assets/api-DOGbyfTO.js +2 -0
- package/client/dist/assets/builder-BMVvSr4v.js +1 -0
- package/client/dist/assets/builder-BN-MuLZt.js +1 -0
- package/client/dist/assets/builder-BQOZi4CF.js +1 -0
- package/client/dist/assets/builder-BjUPjsyu.js +1 -0
- package/client/dist/assets/builder-BoBtN18T.js +1 -0
- package/client/dist/assets/builder-C5g5NhxL.js +1 -0
- package/client/dist/assets/builder-RUHXw3yx.js +1 -0
- package/client/dist/assets/builder-fyS_AiyC.js +1 -0
- package/client/dist/assets/button-CHPkroew.js +1 -0
- package/client/dist/assets/chat-C9L5T7KI.js +1 -0
- package/client/dist/assets/chevron-right-CwMAj0w_.js +1 -0
- package/client/dist/assets/chevron-up-BAMuP0XD.js +1 -0
- package/client/dist/assets/chunk-OB3PAWPO-BBaq6pUk.js +3 -0
- package/client/dist/assets/code-4le5IIbf.js +1 -0
- package/client/dist/assets/code-B-jCVIbm.js +1 -0
- package/client/dist/assets/code-BRfrn5ix.js +1 -0
- package/client/dist/assets/code-CC9NCrDM.js +1 -0
- package/client/dist/assets/code-CK6pm8wY.js +1 -0
- package/client/dist/assets/code-DDiOzd6c.js +1 -0
- package/client/dist/assets/code-tGifiyf5.js +1 -0
- package/client/dist/assets/code-xkn8kQTg.js +1 -0
- package/client/dist/assets/commands-Bv1QshHR.js +1 -0
- package/client/dist/assets/commands-BvxTxboW.js +1 -0
- package/client/dist/assets/commands-C5ORR0fO.js +1 -0
- package/client/dist/assets/commands-CBKMFSTV.js +1 -0
- package/client/dist/assets/commands-CFJIRsJv.js +1 -0
- package/client/dist/assets/commands-D9o3ZcXl.js +1 -0
- package/client/dist/assets/commands-DNox0Edk.js +1 -0
- package/client/dist/assets/commands-DmIUMLdV.js +1 -0
- package/client/dist/assets/common-5H4TkaoI.js +1 -0
- package/client/dist/assets/common-9S3OdPjx.js +1 -0
- package/client/dist/assets/common-BqnwIcjs.js +1 -0
- package/client/dist/assets/common-CQP3VafS.js +1 -0
- package/client/dist/assets/common-CZnAfkB2.js +1 -0
- package/client/dist/assets/common-D5sNttV4.js +1 -0
- package/client/dist/assets/common-k_qX9nlv.js +1 -0
- package/client/dist/assets/common-s4HIi9XI.js +1 -0
- package/client/dist/assets/compass-B7guwBlY.js +1 -0
- package/client/dist/assets/confirm-dialog-ChZdHL3Q.js +1 -0
- package/client/dist/assets/copy-DOPlLymH.js +1 -0
- package/client/dist/assets/core-BozBzB6Y.js +1 -0
- package/client/dist/assets/dashboard-6zGLGcEz.js +1 -0
- package/client/dist/assets/dashboard-8Gi0FBDq.js +1 -0
- package/client/dist/assets/dashboard-B7E5YrSy.js +1 -0
- package/client/dist/assets/dashboard-BhdKV8xK.js +1 -0
- package/client/dist/assets/dashboard-Bu3zzH_s.js +1 -0
- package/client/dist/assets/dashboard-Ce_6rELA.js +1 -0
- package/client/dist/assets/dashboard-DWY-oz8P.js +1 -0
- package/client/dist/assets/dashboard-gUzlWk0o.js +1 -0
- package/client/dist/assets/date-input-Cdlr8kHz.js +1 -0
- package/client/dist/assets/dialog-C23lB2iP.js +5 -0
- package/client/dist/assets/dist-Di-oOFkX.js +1 -0
- package/client/dist/assets/dist-js-CBmS6MsJ.js +1 -0
- package/client/dist/assets/{dist-js-Rlh4FLH5.js → dist-js-DaJmKapi.js} +1 -1
- package/client/dist/assets/dropdown-menu-Bfp2CK6H.js +1 -0
- package/client/dist/assets/empty-state-D5w9OWj-.js +1 -0
- package/client/dist/assets/es2015-DfnECntk.js +41 -0
- package/client/dist/assets/esm-BKF6CE7v.js +1 -0
- package/client/dist/assets/event-BEnMLqAi.js +1 -0
- package/client/dist/assets/explore--NOz9LCN.js +1 -0
- package/client/dist/assets/explore-B2ulH6dO.js +1 -0
- package/client/dist/assets/explore-BD-QiLdg.js +1 -0
- package/client/dist/assets/explore-BOqd4_1j.js +1 -0
- package/client/dist/assets/explore-Be_Zh5zu.js +1 -0
- package/client/dist/assets/explore-CLjzPSKo.js +1 -0
- package/client/dist/assets/explore-D_-vHm29.js +1 -0
- package/client/dist/assets/explore-yEQTF6ro.js +1 -0
- package/client/dist/assets/file-text-CNXzL3wj.js +1 -0
- package/client/dist/assets/format-BODoFIw6.js +1 -0
- package/client/dist/assets/formatDistanceToNow-DLMIOS0N.js +1 -0
- package/client/dist/assets/getTimezoneOffsetInMilliseconds-O61feXch.js +1 -0
- package/client/dist/assets/git-compare-arrows-Cu6tICCq.js +1 -0
- package/client/dist/assets/humanise-command-CB4ybLwq.js +1 -0
- package/client/dist/assets/inbox-BLZ8cm6_.js +1 -0
- package/client/dist/assets/inbox-BQ3VmNYY.js +1 -0
- package/client/dist/assets/inbox-BdcXWCuT.js +1 -0
- package/client/dist/assets/inbox-CF1PHjns.js +1 -0
- package/client/dist/assets/inbox-CFNPDhso.js +1 -0
- package/client/dist/assets/inbox-DIttK_NW.js +1 -0
- package/client/dist/assets/inbox-Dfdv1Ykl.js +1 -0
- package/client/dist/assets/inbox-JS1inmeO.js +1 -0
- package/client/dist/assets/index-4UWY7Xyz.css +2 -0
- package/client/dist/assets/index-DHzB0T26.js +120 -0
- package/client/dist/assets/integrations-BcKgzgPD.js +1 -0
- package/client/dist/assets/integrations-BmX_XyJq.js +1 -0
- package/client/dist/assets/integrations-CHpwMjlY.js +1 -0
- package/client/dist/assets/integrations-CT3kr8e-.js +1 -0
- package/client/dist/assets/integrations-C_5XAkgz.js +1 -0
- package/client/dist/assets/integrations-Ct9zLX7N.js +1 -0
- package/client/dist/assets/integrations-DEYemxUv.js +1 -0
- package/client/dist/assets/integrations-DWvsB_WB.js +1 -0
- package/client/dist/assets/{jira-Cq6yvN4q.js → jira-B_ERkFRv.js} +1 -1
- package/client/dist/assets/jira-Bn-A5lwD.js +1 -0
- package/client/dist/assets/jira-C71Ybnhp.js +1 -0
- package/client/dist/assets/jira-CkwjeJz6.js +1 -0
- package/client/dist/assets/jira-D9pSLXjI.js +1 -0
- package/client/dist/assets/jira-DBRS_lcp.js +1 -0
- package/client/dist/assets/jira-DHS6CsKh.js +1 -0
- package/client/dist/assets/jira-MInHRUb1.js +1 -0
- package/client/dist/assets/jira-api-DHme7Upx.js +1 -0
- package/client/dist/assets/jobs-BMLTDo63.js +1 -0
- package/client/dist/assets/jobs-BO8q4Mi1.js +1 -0
- package/client/dist/assets/jobs-Ck8uOWMM.js +1 -0
- package/client/dist/assets/jobs-CyFfPCpg.js +1 -0
- package/client/dist/assets/jobs-DT5s4fZ6.js +1 -0
- package/client/dist/assets/jobs-DZAgVPcD.js +1 -0
- package/client/dist/assets/jobs-b5gPYaKr.js +1 -0
- package/client/dist/assets/jobs-xsZK1440.js +1 -0
- package/client/dist/assets/launch-forecast-BTa-p3RP.js +1 -0
- package/client/dist/assets/{loop-layout-DtxX27Jz.css → loop-layout-DLioOiRN.css} +1 -1
- package/client/dist/assets/loop-layout-Sl9cfTvs.js +7 -0
- package/client/dist/assets/loops-BEEOVJDR.js +1 -0
- package/client/dist/assets/loops-BcrQ2vk7.js +1 -0
- package/client/dist/assets/loops-BjWxzJIZ.js +1 -0
- package/client/dist/assets/loops-BogV595N.js +1 -0
- package/client/dist/assets/loops-CU0BLZiz.js +1 -0
- package/client/dist/assets/loops-CrNBgi1G.js +1 -0
- package/client/dist/assets/loops-CwalwS_i.js +1 -0
- package/client/dist/assets/loops-_TDVN-fX.js +1 -0
- package/client/dist/assets/mcp-BNs8gxoL.js +1 -0
- package/client/dist/assets/mcp-BvRh_xO5.js +1 -0
- package/client/dist/assets/mcp-C2F1pghi.js +1 -0
- package/client/dist/assets/mcp-D9RLKAs2.js +1 -0
- package/client/dist/assets/mcp-DAghcsR0.js +1 -0
- package/client/dist/assets/mcp-DWWAPi1G.js +1 -0
- package/client/dist/assets/mcp-DbGSFC3f.js +1 -0
- package/client/dist/assets/mcp-FelCicrv.js +1 -0
- package/client/dist/assets/narration-C3NBkAR4.js +1 -0
- package/client/dist/assets/narration-CkoJq-Lf.js +1 -0
- package/client/dist/assets/narration-Cr0NeW9K.js +1 -0
- package/client/dist/assets/narration-DJUXOs-W.js +1 -0
- package/client/dist/assets/narration-DgL8TMvN.js +1 -0
- package/client/dist/assets/narration-DjBafgv0.js +1 -0
- package/client/dist/assets/narration-Dle6Iv0c.js +1 -0
- package/client/dist/assets/narration-MYlfktga.js +1 -0
- package/client/dist/assets/nav-BSQ8KW1c.js +1 -0
- package/client/dist/assets/nav-BauVof8Z.js +1 -0
- package/client/dist/assets/nav-BfOAH1se.js +1 -0
- package/client/dist/assets/nav-D3bOsipX.js +1 -0
- package/client/dist/assets/nav-DOMMhlLx.js +1 -0
- package/client/dist/assets/nav-DPzVlgZU.js +1 -0
- package/client/dist/assets/nav-DZJbFbah.js +1 -0
- package/client/dist/assets/nav-D_5aojd2.js +1 -0
- package/client/dist/assets/notify-error-BsWANx1T.js +1 -0
- package/client/dist/assets/onboarding-BdZQnNm3.js +1 -0
- package/client/dist/assets/onboarding-CJQEv1vp.js +1 -0
- package/client/dist/assets/onboarding-CWJGYUW3.js +1 -0
- package/client/dist/assets/onboarding-ChfYN7dA.js +1 -0
- package/client/dist/assets/onboarding-CjvDUR3V.js +1 -0
- package/client/dist/assets/onboarding-I6vS-zTB.js +1 -0
- package/client/dist/assets/onboarding-dgC_9dTB.js +1 -0
- package/client/dist/assets/onboarding-mlXSyKzX.js +1 -0
- package/client/dist/assets/origin-03nTuaOb.js +1 -0
- package/client/dist/assets/packet-BjpyRnZr.js +1 -0
- package/client/dist/assets/packet-BwgG5mBt.js +1 -0
- package/client/dist/assets/packet-C3eAUFkV.js +1 -0
- package/client/dist/assets/packet-C8wZuSld.js +1 -0
- package/client/dist/assets/packet-CNXEy_85.js +1 -0
- package/client/dist/assets/packet-DsV5Aa_8.js +1 -0
- package/client/dist/assets/packet-aasskOE7.js +1 -0
- package/client/dist/assets/packet-phxCc2gJ.js +1 -0
- package/client/dist/assets/page-header-BStSHkP8.js +1 -0
- package/client/dist/assets/project-repositories-DJPeAVBK.js +1 -0
- package/client/dist/assets/{provider-capabilities-lePfeT_Y.js → provider-capabilities-DtwcTme4.js} +1 -1
- package/client/dist/assets/recovery-BPDOsC92.js +1 -0
- package/client/dist/assets/recovery-BluNHoXM.js +1 -0
- package/client/dist/assets/recovery-CRvEmB0C.js +1 -0
- package/client/dist/assets/recovery-CeIoRnkR.js +1 -0
- package/client/dist/assets/recovery-DHCo8KGi.js +1 -0
- package/client/dist/assets/recovery-OxAIpbBF.js +1 -0
- package/client/dist/assets/recovery-XXexYGOJ.js +1 -0
- package/client/dist/assets/recovery-pITlc--v.js +1 -0
- package/client/dist/assets/refresh-cw-DfyTkbsf.js +1 -0
- package/client/dist/assets/select-xA3pSmqE.js +1 -0
- package/client/dist/assets/settings--yzDbX9r.js +1 -0
- package/client/dist/assets/settings-5_heTv8s.js +1 -0
- package/client/dist/assets/settings-BSf27MDg.js +1 -0
- package/client/dist/assets/settings-BSj6FakR.js +1 -0
- package/client/dist/assets/settings-BZDo_8Nn.js +1 -0
- package/client/dist/assets/settings-BdWgmNc0.js +1 -0
- package/client/dist/assets/settings-DRouxKqb.js +1 -0
- package/client/dist/assets/settings-DnWFoY-F.js +1 -0
- package/client/dist/assets/setup-BJWy62ri.js +1 -0
- package/client/dist/assets/setup-BgKOIuzc.js +1 -0
- package/client/dist/assets/setup-BvVIyUlz.js +1 -0
- package/client/dist/assets/setup-BxCk2pe1.js +1 -0
- package/client/dist/assets/setup-C-xQTL7R.js +1 -0
- package/client/dist/assets/setup-CbaVoiwV.js +1 -0
- package/client/dist/assets/setup-DxTBkX3P.js +1 -0
- package/client/dist/assets/setup-oGoVAzOD.js +1 -0
- package/client/dist/assets/specs-7tAb4IKr.js +1 -0
- package/client/dist/assets/specs-BUcY4s5v.js +1 -0
- package/client/dist/assets/specs-Bk5LeBAA.js +1 -0
- package/client/dist/assets/specs-CAA4Lrlg.js +1 -0
- package/client/dist/assets/specs-CS091AnA.js +1 -0
- package/client/dist/assets/specs-DJ6gmFcK.js +1 -0
- package/client/dist/assets/specs-GfCcrBSC.js +1 -0
- package/client/dist/assets/specs-xQgyc7WL.js +1 -0
- package/client/dist/assets/spending-CVH8VREb.js +1 -0
- package/client/dist/assets/square-Co6h5vZg.js +1 -0
- package/client/dist/assets/tauri-shell-43ixPGfa.js +2 -0
- package/client/dist/assets/terminal-0v9sBylD.js +1 -0
- package/client/dist/assets/terminal-AbUAmCxE.js +1 -0
- package/client/dist/assets/terminal-BJayIbIP.js +1 -0
- package/client/dist/assets/terminal-C2RUlXyi.js +1 -0
- package/client/dist/assets/terminal-CMmSb_Nj.js +1 -0
- package/client/dist/assets/terminal-DKWjj7HJ.js +1 -0
- package/client/dist/assets/terminal-KlFu7_pV.js +1 -0
- package/client/dist/assets/terminal-i99yqFvm.js +1 -0
- package/client/dist/assets/tickets-846Oq3i3.js +1 -0
- package/client/dist/assets/tickets-B5LJTe_b.js +1 -0
- package/client/dist/assets/tickets-Bfo2GGmH.js +1 -0
- package/client/dist/assets/tickets-BhdZ1yY2.js +1 -0
- package/client/dist/assets/tickets-CgjWJHAW.js +1 -0
- package/client/dist/assets/tickets-Ct9DbDUR.js +1 -0
- package/client/dist/assets/tickets-rptLEJB1.js +1 -0
- package/client/dist/assets/tickets-xQ6DpYdu.js +1 -0
- package/client/dist/assets/trending-up-BGvb4zZt.js +1 -0
- package/client/dist/assets/undo-6zuS4-sL.js +1 -0
- package/client/dist/assets/undo-BeM4gDOP.js +1 -0
- package/client/dist/assets/undo-BeppX8xS.js +1 -0
- package/client/dist/assets/undo-BqvNZ5MG.js +1 -0
- package/client/dist/assets/undo-BzwEPf_k.js +1 -0
- package/client/dist/assets/undo-CJ9Cu1NN.js +1 -0
- package/client/dist/assets/undo-ds8nMFbX.js +1 -0
- package/client/dist/assets/undo-x_gA-knG.js +1 -0
- package/client/dist/assets/useDesktop-BuOp2-MR.js +1 -0
- package/client/dist/assets/useRuntimeRuns-BRS6ncnO.js +1 -0
- package/client/dist/assets/utils-ELimjS2Y.js +1 -0
- package/client/dist/assets/wrench-Br2n1Lxd.js +1 -0
- package/client/dist/index.html +75 -60
- package/docs/ci-cd.md +29 -1
- package/docs/cli.md +10 -31
- package/docs/codex.md +1 -1
- package/docs/creating-specs.md +15 -12
- package/docs/customizing.md +16 -13
- package/docs/getting-started.md +12 -11
- package/docs/guide/de/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/de/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/de/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/de/getting-started/{4-the-dashboard-tour.md → 5-the-dashboard-tour.md} +7 -3
- package/docs/guide/de/getting-started/6-universal-search.md +34 -0
- package/docs/guide/de/insights/1-analytics-and-cost-tracking.md +20 -6
- package/docs/guide/de/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/de/insights/3-code-explorer.md +1 -1
- package/docs/guide/de/integrations/1-ai-providers.md +1 -1
- package/docs/guide/de/integrations/2-plugins.md +1 -1
- package/docs/guide/de/integrations/3-jira-integration.md +3 -3
- package/docs/guide/de/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/de/integrations/5-mcp-server.md +1 -1
- package/docs/guide/de/integrations/6-agent-chat.md +12 -5
- package/docs/guide/de/integrations/8-flow-mode.md +69 -0
- package/docs/guide/de/pipeline/1-rails-and-jobs.md +21 -1
- package/docs/guide/de/pipeline/2-the-job-detail-view.md +12 -0
- package/docs/guide/de/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/de/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/de/pipeline/5-the-loop-builder.md +1 -1
- package/docs/guide/de/settings/1-themes.md +1 -1
- package/docs/guide/de/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/de/settings/5-project-environment.md +1 -1
- package/docs/guide/de/settings/6-updates.md +24 -0
- package/docs/guide/de/settings/7-existing-projects.md +33 -0
- package/docs/guide/de/settings/8-accessibility.md +23 -0
- package/docs/guide/de/specs/1-specs-and-the-backlog.md +41 -3
- package/docs/guide/de/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/de/specs/3-add-spec-explore-mode.md +1 -1
- package/docs/guide/en/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/en/getting-started/1-what-is-specrails.md +1 -1
- package/docs/guide/en/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/en/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/en/getting-started/5-the-dashboard-tour.md +52 -0
- package/docs/guide/en/getting-started/6-universal-search.md +34 -0
- package/docs/guide/en/insights/1-analytics-and-cost-tracking.md +24 -10
- package/docs/guide/en/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/en/insights/3-code-explorer.md +5 -5
- package/docs/guide/en/integrations/1-ai-providers.md +1 -1
- package/docs/guide/en/integrations/2-plugins.md +1 -1
- package/docs/guide/en/integrations/3-jira-integration.md +4 -4
- package/docs/guide/en/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/en/integrations/5-mcp-server.md +4 -4
- package/docs/guide/en/integrations/6-agent-chat.md +12 -5
- package/docs/guide/en/integrations/8-flow-mode.md +69 -0
- package/docs/guide/en/pipeline/1-rails-and-jobs.md +22 -3
- package/docs/guide/en/pipeline/2-the-job-detail-view.md +19 -7
- package/docs/guide/en/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/en/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/en/pipeline/5-the-loop-builder.md +2 -2
- package/docs/guide/en/settings/1-themes.md +1 -1
- package/docs/guide/en/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/en/settings/5-project-environment.md +1 -1
- package/docs/guide/en/settings/6-updates.md +24 -0
- package/docs/guide/en/settings/7-existing-projects.md +33 -0
- package/docs/guide/en/settings/8-accessibility.md +23 -0
- package/docs/guide/en/specs/1-specs-and-the-backlog.md +42 -6
- package/docs/guide/en/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/en/specs/3-add-spec-explore-mode.md +2 -2
- package/docs/guide/es/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/es/agents/2-profiles-and-the-balanced-default.md +1 -1
- package/docs/guide/es/agents/3-customizing-models-per-agent.md +2 -2
- package/docs/guide/es/agents/4-custom-agents-catalog.md +1 -1
- package/docs/guide/es/getting-started/1-what-is-specrails.md +3 -3
- package/docs/guide/es/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/es/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/es/getting-started/5-the-dashboard-tour.md +52 -0
- package/docs/guide/es/getting-started/6-universal-search.md +34 -0
- package/docs/guide/es/insights/1-analytics-and-cost-tracking.md +26 -12
- package/docs/guide/es/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/es/insights/3-code-explorer.md +5 -5
- package/docs/guide/es/integrations/1-ai-providers.md +1 -1
- package/docs/guide/es/integrations/2-plugins.md +1 -1
- package/docs/guide/es/integrations/3-jira-integration.md +4 -4
- package/docs/guide/es/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/es/integrations/5-mcp-server.md +4 -4
- package/docs/guide/es/integrations/6-agent-chat.md +14 -7
- package/docs/guide/es/integrations/7-local-engines.md +1 -1
- package/docs/guide/es/integrations/8-flow-mode.md +69 -0
- package/docs/guide/es/pipeline/1-rails-and-jobs.md +33 -13
- package/docs/guide/es/pipeline/2-the-job-detail-view.md +38 -26
- package/docs/guide/es/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/es/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/es/pipeline/5-the-loop-builder.md +4 -4
- package/docs/guide/es/settings/1-themes.md +1 -1
- package/docs/guide/es/settings/3-pipeline-telemetry-and-diagnostics.md +10 -10
- package/docs/guide/es/settings/5-project-environment.md +1 -1
- package/docs/guide/es/settings/6-updates.md +24 -0
- package/docs/guide/es/settings/7-existing-projects.md +33 -0
- package/docs/guide/es/settings/8-accessibility.md +23 -0
- package/docs/guide/es/specs/1-specs-and-the-backlog.md +43 -7
- package/docs/guide/es/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/es/specs/3-add-spec-explore-mode.md +3 -3
- package/docs/guide/fr/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/fr/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/fr/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/fr/getting-started/{4-the-dashboard-tour.md → 5-the-dashboard-tour.md} +7 -3
- package/docs/guide/fr/getting-started/6-universal-search.md +34 -0
- package/docs/guide/fr/insights/1-analytics-and-cost-tracking.md +18 -4
- package/docs/guide/fr/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/fr/insights/3-code-explorer.md +1 -1
- package/docs/guide/fr/integrations/1-ai-providers.md +1 -1
- package/docs/guide/fr/integrations/2-plugins.md +1 -1
- package/docs/guide/fr/integrations/3-jira-integration.md +3 -3
- package/docs/guide/fr/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/fr/integrations/5-mcp-server.md +1 -1
- package/docs/guide/fr/integrations/6-agent-chat.md +11 -4
- package/docs/guide/fr/integrations/8-flow-mode.md +69 -0
- package/docs/guide/fr/pipeline/1-rails-and-jobs.md +21 -1
- package/docs/guide/fr/pipeline/2-the-job-detail-view.md +12 -0
- package/docs/guide/fr/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/fr/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/fr/pipeline/5-the-loop-builder.md +1 -1
- package/docs/guide/fr/settings/1-themes.md +1 -1
- package/docs/guide/fr/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/fr/settings/5-project-environment.md +1 -1
- package/docs/guide/fr/settings/6-updates.md +24 -0
- package/docs/guide/fr/settings/7-existing-projects.md +33 -0
- package/docs/guide/fr/settings/8-accessibility.md +23 -0
- package/docs/guide/fr/specs/1-specs-and-the-backlog.md +41 -3
- package/docs/guide/fr/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/fr/specs/3-add-spec-explore-mode.md +1 -1
- package/docs/guide/it/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/it/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/it/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/it/getting-started/{4-the-dashboard-tour.md → 5-the-dashboard-tour.md} +7 -3
- package/docs/guide/it/getting-started/6-universal-search.md +34 -0
- package/docs/guide/it/insights/1-analytics-and-cost-tracking.md +18 -4
- package/docs/guide/it/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/it/insights/3-code-explorer.md +1 -1
- package/docs/guide/it/integrations/1-ai-providers.md +1 -1
- package/docs/guide/it/integrations/2-plugins.md +1 -1
- package/docs/guide/it/integrations/3-jira-integration.md +3 -3
- package/docs/guide/it/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/it/integrations/5-mcp-server.md +1 -1
- package/docs/guide/it/integrations/6-agent-chat.md +11 -4
- package/docs/guide/it/integrations/8-flow-mode.md +69 -0
- package/docs/guide/it/pipeline/1-rails-and-jobs.md +21 -1
- package/docs/guide/it/pipeline/2-the-job-detail-view.md +12 -0
- package/docs/guide/it/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/it/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/it/pipeline/5-the-loop-builder.md +1 -1
- package/docs/guide/it/settings/1-themes.md +1 -1
- package/docs/guide/it/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/it/settings/5-project-environment.md +1 -1
- package/docs/guide/it/settings/6-updates.md +24 -0
- package/docs/guide/it/settings/7-existing-projects.md +33 -0
- package/docs/guide/it/settings/8-accessibility.md +23 -0
- package/docs/guide/it/specs/1-specs-and-the-backlog.md +41 -3
- package/docs/guide/it/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/it/specs/3-add-spec-explore-mode.md +1 -1
- package/docs/guide/ja/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/ja/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/ja/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/ja/getting-started/{4-the-dashboard-tour.md → 5-the-dashboard-tour.md} +7 -3
- package/docs/guide/ja/getting-started/6-universal-search.md +34 -0
- package/docs/guide/ja/insights/1-analytics-and-cost-tracking.md +18 -4
- package/docs/guide/ja/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/ja/insights/3-code-explorer.md +1 -1
- package/docs/guide/ja/integrations/1-ai-providers.md +1 -1
- package/docs/guide/ja/integrations/2-plugins.md +1 -1
- package/docs/guide/ja/integrations/3-jira-integration.md +3 -3
- package/docs/guide/ja/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/ja/integrations/5-mcp-server.md +1 -1
- package/docs/guide/ja/integrations/6-agent-chat.md +11 -4
- package/docs/guide/ja/integrations/8-flow-mode.md +69 -0
- package/docs/guide/ja/pipeline/1-rails-and-jobs.md +21 -1
- package/docs/guide/ja/pipeline/2-the-job-detail-view.md +12 -0
- package/docs/guide/ja/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/ja/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/ja/pipeline/5-the-loop-builder.md +1 -1
- package/docs/guide/ja/settings/1-themes.md +1 -1
- package/docs/guide/ja/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/ja/settings/5-project-environment.md +1 -1
- package/docs/guide/ja/settings/6-updates.md +24 -0
- package/docs/guide/ja/settings/7-existing-projects.md +33 -0
- package/docs/guide/ja/settings/8-accessibility.md +23 -0
- package/docs/guide/ja/specs/1-specs-and-the-backlog.md +41 -3
- package/docs/guide/ja/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/ja/specs/3-add-spec-explore-mode.md +1 -1
- package/docs/guide/pt/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/pt/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/pt/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/pt/getting-started/{4-the-dashboard-tour.md → 5-the-dashboard-tour.md} +7 -3
- package/docs/guide/pt/getting-started/6-universal-search.md +34 -0
- package/docs/guide/pt/insights/1-analytics-and-cost-tracking.md +18 -4
- package/docs/guide/pt/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/pt/insights/3-code-explorer.md +1 -1
- package/docs/guide/pt/integrations/1-ai-providers.md +1 -1
- package/docs/guide/pt/integrations/2-plugins.md +1 -1
- package/docs/guide/pt/integrations/3-jira-integration.md +3 -3
- package/docs/guide/pt/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/pt/integrations/5-mcp-server.md +1 -1
- package/docs/guide/pt/integrations/6-agent-chat.md +12 -5
- package/docs/guide/pt/integrations/8-flow-mode.md +69 -0
- package/docs/guide/pt/pipeline/1-rails-and-jobs.md +21 -1
- package/docs/guide/pt/pipeline/2-the-job-detail-view.md +12 -0
- package/docs/guide/pt/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/pt/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/pt/pipeline/5-the-loop-builder.md +1 -1
- package/docs/guide/pt/settings/1-themes.md +1 -1
- package/docs/guide/pt/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/pt/settings/5-project-environment.md +1 -1
- package/docs/guide/pt/settings/6-updates.md +24 -0
- package/docs/guide/pt/settings/7-existing-projects.md +33 -0
- package/docs/guide/pt/settings/8-accessibility.md +23 -0
- package/docs/guide/pt/specs/1-specs-and-the-backlog.md +41 -3
- package/docs/guide/pt/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/pt/specs/3-add-spec-explore-mode.md +1 -1
- package/docs/guide/zh/agents/1-meet-the-agents.md +1 -1
- package/docs/guide/zh/getting-started/2-installing-and-first-run.md +2 -0
- package/docs/guide/zh/getting-started/3-try-the-sample-project.md +35 -0
- package/docs/guide/zh/getting-started/{4-the-dashboard-tour.md → 5-the-dashboard-tour.md} +7 -3
- package/docs/guide/zh/getting-started/6-universal-search.md +34 -0
- package/docs/guide/zh/insights/1-analytics-and-cost-tracking.md +18 -4
- package/docs/guide/zh/insights/2-the-integrated-terminal.md +1 -1
- package/docs/guide/zh/insights/3-code-explorer.md +1 -1
- package/docs/guide/zh/integrations/1-ai-providers.md +1 -1
- package/docs/guide/zh/integrations/2-plugins.md +1 -1
- package/docs/guide/zh/integrations/3-jira-integration.md +3 -3
- package/docs/guide/zh/integrations/4-mobile-companion.md +1 -1
- package/docs/guide/zh/integrations/5-mcp-server.md +1 -1
- package/docs/guide/zh/integrations/6-agent-chat.md +11 -4
- package/docs/guide/zh/integrations/8-flow-mode.md +69 -0
- package/docs/guide/zh/pipeline/1-rails-and-jobs.md +21 -1
- package/docs/guide/zh/pipeline/2-the-job-detail-view.md +12 -0
- package/docs/guide/zh/pipeline/3-reviewing-a-delivery.md +43 -0
- package/docs/guide/zh/pipeline/4-picking-an-engine-per-rail.md +2 -2
- package/docs/guide/zh/pipeline/5-the-loop-builder.md +1 -1
- package/docs/guide/zh/settings/1-themes.md +1 -1
- package/docs/guide/zh/settings/3-pipeline-telemetry-and-diagnostics.md +2 -2
- package/docs/guide/zh/settings/5-project-environment.md +1 -1
- package/docs/guide/zh/settings/6-updates.md +24 -0
- package/docs/guide/zh/settings/7-existing-projects.md +33 -0
- package/docs/guide/zh/settings/8-accessibility.md +23 -0
- package/docs/guide/zh/specs/1-specs-and-the-backlog.md +41 -3
- package/docs/guide/zh/specs/2-add-spec-quick-mode.md +1 -1
- package/docs/guide/zh/specs/3-add-spec-explore-mode.md +1 -1
- package/docs/internals/README.md +8 -0
- package/docs/internals/adding-a-provider.md +19 -2
- package/docs/internals/agent-actions-audit.md +101 -0
- package/docs/internals/agent-sessions.md +36 -1
- package/docs/internals/api-reference.md +190 -45
- package/docs/internals/architecture.md +53 -47
- package/docs/internals/companion-inbox-decisions.md +42 -0
- package/docs/internals/companion-rails-as-loops-contract.md +17 -6
- package/docs/internals/configuration.md +140 -9
- package/docs/internals/core-runtime-updates.md +4 -4
- package/docs/internals/existing-project-anchoring.md +168 -0
- package/docs/internals/flow-mode.md +668 -0
- package/docs/internals/legacy-implementation-notes.md +13 -0
- package/docs/internals/local-testing-feedback-2026-10.md +210 -0
- package/docs/internals/mcp-mission-audit.md +4 -0
- package/docs/internals/mission-rail-cards.md +10 -5
- package/docs/internals/mission-read-only-policy.md +152 -0
- package/docs/internals/modal-standard.md +181 -0
- package/docs/internals/openspec-workflow.md +32 -0
- package/docs/internals/operations-runbook.md +30 -0
- package/docs/internals/profiles.md +6 -3
- package/docs/internals/programmatic-agent-runtime.md +8 -0
- package/docs/internals/project-builder.md +1 -1
- package/docs/internals/review-packet.md +161 -9
- package/docs/internals/safe-pr-review-flow.md +135 -6
- package/docs/internals/source-map.md +413 -18
- package/docs/internals/spec-addenda.md +10 -0
- package/docs/internals/spec-triage.md +140 -0
- package/docs/internals/visual-design-audit.md +15 -2
- package/docs/local-providers.md +3 -0
- package/docs/mcp.md +21 -3
- package/docs/platforms/macos.md +1 -1
- package/docs/platforms/windows.md +2 -2
- package/docs/running-pipelines.md +22 -6
- package/docs/tracking-cost.md +54 -10
- package/local-runner/dist/specrails-local-runner.js +3851 -1178
- package/mcp-bridge/dist/specrails-mcp.js +3864 -1143
- package/package.json +10 -9
- package/server/dist/agent-mcp-config.js +37 -1
- package/server/dist/api-version.js +19 -0
- package/server/dist/command-resolver.js +4 -2
- package/server/dist/core-compat.js +1 -1
- package/server/dist/core-execution.js +2 -1
- package/server/dist/core-update-manager.js +71 -13
- package/server/dist/db/job-search.js +248 -0
- package/server/dist/db/jobs.js +6 -0
- package/server/dist/db/migrations.js +239 -0
- package/server/dist/db.js +9 -2
- package/server/dist/desktop-db.js +99 -5
- package/server/dist/desktop-router.js +126 -13
- package/server/dist/docs-router.js +67 -1
- package/server/dist/feature-flags.js +22 -0
- package/server/dist/index.js +30 -15
- package/server/dist/jira/jira-adf.js +13 -1
- package/server/dist/jira/jira-clarifications.js +146 -0
- package/server/dist/jira/jira-client.js +8 -1
- package/server/dist/jira/jira-db.js +41 -0
- package/server/dist/jira/jira-sync-manager.js +328 -25
- package/server/dist/mcp/guide.js +17 -7
- package/server/dist/mcp/tools/agents.js +1 -1
- package/server/dist/mcp/tools/analytics.js +15 -3
- package/server/dist/mcp/tools/app-settings.js +14 -1
- package/server/dist/mcp/tools/chat.js +1 -1
- package/server/dist/mcp/tools/env.js +4 -2
- package/server/dist/mcp/tools/jobs.js +96 -7
- package/server/dist/mcp/tools/loops.js +1 -1
- package/server/dist/mcp/tools/meta.js +10 -13
- package/server/dist/mcp/tools/rails.js +15 -1
- package/server/dist/mcp/tools/setup.js +1 -1
- package/server/dist/mcp/tools/specs.js +8 -5
- package/server/dist/mcp/tools/support.js +6 -3
- package/server/dist/mcp/tools/types.js +38 -1
- package/server/dist/mobile/mobile-admin-router.js +0 -16
- package/server/dist/mobile/mobile-gateway.js +0 -18
- package/server/dist/mobile/mobile-inbox.js +240 -0
- package/server/dist/mobile/mobile-missions.js +6 -8
- package/server/dist/mobile/mobile-router.js +9 -9
- package/server/dist/mobile/mobile-webrtc-peer.js +4 -54
- package/server/dist/mobile/mobile-ws.js +27 -4
- package/server/dist/modules/accounting/runtime/ai-invocations.js +4 -0
- package/server/dist/modules/accounting/runtime/decision-times.js +102 -0
- package/server/dist/modules/accounting/runtime/loop-economics.js +284 -0
- package/server/dist/modules/accounting/runtime/spending.js +7 -2
- package/server/dist/modules/accounting/runtime/what-if.js +87 -0
- package/server/dist/modules/agent-runtime/runtime/agent-runtime-bridge.js +86 -5
- package/server/dist/modules/agent-runtime/runtime/agent-runtime-controls.js +28 -2
- package/server/dist/modules/agent-runtime/runtime/agent-runtime-metrics.js +15 -2
- package/server/dist/modules/agent-runtime/runtime/agent-runtime-settings-router.js +21 -2
- package/server/dist/modules/agent-runtime/runtime/core-capabilities.js +55 -0
- package/server/dist/modules/agent-sessions/adapters/host-process.js +1 -1
- package/server/dist/modules/agent-sessions/domain/availability.js +16 -0
- package/server/dist/modules/agent-sessions/domain/protocol.js +8 -1
- package/server/dist/modules/agent-sessions/index.js +3 -1
- package/server/dist/modules/agent-sessions/runtime/core-sessions-availability.js +16 -0
- package/server/dist/modules/agents/runtime/agent-refine-manager.js +3 -1
- package/server/dist/modules/agents/runtime/agent-store.js +60 -73
- package/server/dist/modules/audit/adapters/http.js +66 -0
- package/server/dist/modules/audit/adapters/runtime.js +60 -0
- package/server/dist/modules/audit/adapters/sqlite.js +73 -0
- package/server/dist/modules/audit/application.js +190 -0
- package/server/dist/modules/audit/domain.js +434 -0
- package/server/dist/modules/audit/index.js +27 -0
- package/server/dist/modules/audit/ports.js +2 -0
- package/server/dist/modules/browser/runtime/browser-capture-manager.js +18 -141
- package/server/dist/modules/browser/runtime/browser-capture-types.js +1 -10
- package/server/dist/modules/browser/runtime/browser-playwright.js +0 -19
- package/server/dist/modules/code/runtime/file-provenance.js +23 -0
- package/server/dist/modules/conversations/runtime/chat-manager.js +5 -2
- package/server/dist/modules/delivery/adapters/decisions/chains.js +1 -0
- package/server/dist/modules/delivery/adapters/decisions/create.js +19 -1
- package/server/dist/modules/delivery/adapters/decisions/discard.js +2 -0
- package/server/dist/modules/delivery/adapters/decisions/local-changes.js +427 -0
- package/server/dist/modules/delivery/adapters/decisions/merge-local.js +80 -6
- package/server/dist/modules/delivery/adapters/decisions/observations.js +5 -0
- package/server/dist/modules/delivery/adapters/decisions/ownership.js +2 -1
- package/server/dist/modules/delivery/adapters/decisions/transitions.js +9 -0
- package/server/dist/modules/delivery/adapters/review-wip-store.js +37 -0
- package/server/dist/modules/delivery/domain/review-wip.js +71 -0
- package/server/dist/modules/delivery/index.js +9 -1
- package/server/dist/modules/delivery/runtime/delivery-changes.js +355 -0
- package/server/dist/modules/delivery/runtime/delivery-evidence.js +249 -8
- package/server/dist/modules/delivery/runtime/flow-review-legacy.js +99 -0
- package/server/dist/modules/delivery/runtime/flow-review-outcome.js +107 -0
- package/server/dist/modules/delivery/runtime/flow-worktree-handoff.js +32 -0
- package/server/dist/modules/delivery/runtime/flow-worktree-return.js +87 -0
- package/server/dist/modules/delivery/runtime/isolated-worktree.js +380 -0
- package/server/dist/modules/delivery/runtime/local-restore-branch.js +325 -0
- package/server/dist/modules/delivery/runtime/local-restore-resolver.js +48 -0
- package/server/dist/modules/delivery/runtime/local-stash.js +423 -0
- package/server/dist/modules/delivery/runtime/multi-repo-execution.js +27 -1
- package/server/dist/modules/delivery/runtime/phase3-harvest.js +40 -0
- package/server/dist/modules/delivery/runtime/pr-body.js +50 -0
- package/server/dist/modules/delivery/runtime/rail-isolated-launch.js +169 -166
- package/server/dist/modules/delivery/runtime/rail-launch-parser.js +5 -2
- package/server/dist/modules/delivery/runtime/rail-pr-decision.js +7 -1
- package/server/dist/modules/delivery/runtime/rail-pr-store.js +193 -12
- package/server/dist/modules/delivery/runtime/rails-router.js +267 -5
- package/server/dist/modules/delivery/runtime/review-brief.js +208 -0
- package/server/dist/modules/delivery/runtime/review-packet.js +41 -2
- package/server/dist/modules/delivery/runtime/review-wip-gate.js +67 -0
- package/server/dist/modules/delivery/runtime/run-records.js +267 -0
- package/server/dist/modules/delivery/runtime/run-review-diagnosis.js +102 -0
- package/server/dist/modules/execution/adapters/budget-storage.js +76 -0
- package/server/dist/modules/execution/application/enforce-budget.js +17 -2
- package/server/dist/modules/execution/domain/agent-env.js +98 -0
- package/server/dist/modules/execution/domain/daily-budget.js +36 -0
- package/server/dist/modules/execution/domain/spend-caps.js +166 -0
- package/server/dist/modules/execution/index.js +34 -1
- package/server/dist/modules/execution/runtime/budget-overview.js +76 -0
- package/server/dist/modules/execution/runtime/daily-budget-gate.js +86 -0
- package/server/dist/modules/execution/runtime/interactive-job-session.js +8 -0
- package/server/dist/modules/execution/runtime/launch-forecast.js +33 -0
- package/server/dist/modules/execution/runtime/queue-manager.js +54 -15
- package/server/dist/modules/execution/runtime/run-duration-stats.js +31 -13
- package/server/dist/modules/flow/adapters/bindings.js +1089 -0
- package/server/dist/modules/flow/adapters/http.js +147 -0
- package/server/dist/modules/flow/adapters/sqlite.js +121 -0
- package/server/dist/modules/flow/application.js +805 -0
- package/server/dist/modules/flow/domain.js +790 -0
- package/server/dist/modules/flow/index.js +34 -0
- package/server/dist/modules/flow/ports.js +2 -0
- package/server/dist/modules/inbox/adapters/http.js +21 -0
- package/server/dist/modules/inbox/adapters/project-source.js +233 -0
- package/server/dist/modules/inbox/application.js +28 -0
- package/server/dist/modules/inbox/domain.js +43 -0
- package/server/dist/modules/inbox/index.js +10 -0
- package/server/dist/modules/inbox/ports.js +2 -0
- package/server/dist/modules/loops/runtime/loop-definition-run.js +9 -0
- package/server/dist/modules/loops/runtime/loop-definition.js +5 -2
- package/server/dist/modules/loops/runtime/loop-executors.js +90 -9
- package/server/dist/modules/loops/runtime/loop-factory.js +30 -2
- package/server/dist/modules/loops/runtime/loop-flow-spec-recipe.js +166 -0
- package/server/dist/modules/loops/runtime/loop-graph.js +1 -1
- package/server/dist/modules/loops/runtime/loop-role-engines.js +4 -1
- package/server/dist/modules/loops/runtime/loop-run-manager.js +267 -10
- package/server/dist/modules/loops/runtime/loop-runs-store.js +21 -5
- package/server/dist/modules/loops/runtime/loop-templates.js +55 -12
- package/server/dist/modules/missions/runtime/agent-chat-manager.js +283 -20
- package/server/dist/modules/missions/runtime/agent-chat-router.js +96 -21
- package/server/dist/modules/missions/runtime/agent-failure-briefing.js +11 -3
- package/server/dist/modules/missions/runtime/agent-fence-promotion.js +9 -1
- package/server/dist/modules/missions/runtime/agent-flow-prompt.js +64 -0
- package/server/dist/modules/missions/runtime/agent-input-store.js +9 -4
- package/server/dist/modules/missions/runtime/agent-operator-prompt.js +100 -14
- package/server/dist/modules/missions/runtime/agent-session-store.js +88 -27
- package/server/dist/modules/missions/runtime/core-session-runner.js +89 -9
- package/server/dist/modules/missions/runtime/flow-turn-context.js +17 -0
- package/server/dist/modules/missions/runtime/mission-core-sessions.js +295 -55
- package/server/dist/modules/missions/runtime/mission-run-notify.js +2 -0
- package/server/dist/modules/missions/runtime/mission-session-projector.js +56 -19
- package/server/dist/modules/missions/runtime/mission-tool-policy.js +47 -0
- package/server/dist/modules/onboarding/adapters/http.js +78 -0
- package/server/dist/modules/onboarding/adapters/providers.js +41 -0
- package/server/dist/modules/onboarding/adapters/runtime.js +130 -0
- package/server/dist/modules/onboarding/application.js +133 -0
- package/server/dist/modules/onboarding/catalog.js +217 -0
- package/server/dist/modules/onboarding/domain.js +102 -0
- package/server/dist/modules/onboarding/index.js +20 -0
- package/server/dist/modules/onboarding/ports.js +2 -0
- package/server/dist/modules/project-rules/adapters/http.js +91 -0
- package/server/dist/modules/project-rules/domain.js +122 -0
- package/server/dist/modules/project-rules/runtime/rules-inventory-runs.js +97 -0
- package/server/dist/modules/project-rules/runtime/rules-store.js +109 -0
- package/server/dist/modules/project-settings/adapters/http.js +13 -0
- package/server/dist/modules/project-settings/adapters/sqlite.js +78 -8
- package/server/dist/modules/project-settings/domain.js +47 -1
- package/server/dist/modules/project-settings/index.js +7 -1
- package/server/dist/modules/recovery/adapters/sqlite.js +28 -0
- package/server/dist/modules/recovery/domain.js +162 -0
- package/server/dist/modules/recovery/index.js +16 -0
- package/server/dist/modules/specs/adapters/timeline-http.js +101 -0
- package/server/dist/modules/specs/domain/handoff-labels.js +371 -0
- package/server/dist/modules/specs/domain/handoff.js +260 -0
- package/server/dist/modules/specs/domain/non-goals.js +101 -0
- package/server/dist/modules/specs/domain/timeline.js +164 -0
- package/server/dist/modules/specs/domain/triage.js +320 -0
- package/server/dist/modules/specs/runtime/contract-refine-runner.js +3 -2
- package/server/dist/modules/specs/runtime/generated-spec-parser.js +75 -0
- package/server/dist/modules/specs/runtime/proposal-manager.js +4 -3
- package/server/dist/modules/specs/runtime/smash-runner.js +2 -1
- package/server/dist/modules/specs/runtime/spec-addenda.js +31 -0
- package/server/dist/modules/specs/runtime/spec-draft-parser.js +6 -1
- package/server/dist/modules/specs/runtime/spec-generation.js +431 -0
- package/server/dist/modules/specs/runtime/spec-handoff.js +103 -0
- package/server/dist/modules/specs/runtime/spec-history.js +376 -0
- package/server/dist/modules/specs/runtime/spec-launcher-manager.js +4 -3
- package/server/dist/modules/specs/runtime/spec-search.js +117 -0
- package/server/dist/modules/specs/runtime/ticket-store.js +47 -2
- package/server/dist/modules/specs/runtime/ticket-trash-service.js +62 -0
- package/server/dist/modules/specs/runtime/ticket-trash.js +193 -0
- package/server/dist/modules/specs/runtime/triage-runner.js +171 -0
- package/server/dist/modules/specs/runtime/triage.js +365 -0
- package/server/dist/modules/terminals/domain/app-urls.js +96 -0
- package/server/dist/modules/terminals/runtime/app-urls.js +77 -0
- package/server/dist/modules/terminals/runtime/background-process-service.js +25 -28
- package/server/dist/project-env.js +60 -0
- package/server/dist/project-git.js +65 -0
- package/server/dist/project-registry.js +264 -27
- package/server/dist/project-router-background-processes.js +27 -3
- package/server/dist/project-router-git.js +30 -0
- package/server/dist/project-router-helpers.js +5 -30
- package/server/dist/project-router-jobs.js +49 -1
- package/server/dist/project-router-loop-runs.js +72 -2
- package/server/dist/project-router-rules.js +54 -0
- package/server/dist/project-router-search.js +52 -0
- package/server/dist/project-router-settings.js +6 -0
- package/server/dist/project-router-setup.js +1 -1
- package/server/dist/project-router-spending.js +138 -0
- package/server/dist/project-router-tickets.js +246 -427
- package/server/dist/project-router.js +7 -0
- package/server/dist/providers/claude-adapter.js +25 -3
- package/server/dist/providers/codex-adapter.js +9 -1
- package/server/dist/providers/gemini-adapter.js +6 -1
- package/server/dist/providers/kimi-adapter.js +2 -0
- package/server/dist/providers/local-adapter.js +2 -0
- package/server/dist/providers/runtime.js +8 -0
- package/server/dist/schemas/agent-runtime.schema.json +3 -1
- package/server/dist/schemas/workflow-definition.schema.json +1 -0
- package/server/dist/setup-manager.js +19 -1
- package/server/dist/transient-children.js +25 -8
- package/server/dist/update-channel.js +21 -0
- package/server/dist/util/search-snippet.js +74 -0
- package/server/dist/worktree-manager.js +19 -8
- package/client/dist/assets/ActivityFeedPage-Dtp7EyHc.js +0 -1
- package/client/dist/assets/AgentBrowserCapture-CLqlEFw8.js +0 -1
- package/client/dist/assets/AgentModeAnalyticsPane-B8_hM3Tw.js +0 -2
- package/client/dist/assets/AgentModeCodePane-CNF8ZNjE.js +0 -2
- package/client/dist/assets/AgentModeJobsPane-CJpJbO9m.js +0 -1
- package/client/dist/assets/AgentsPage-BC8XSR79.js +0 -120
- package/client/dist/assets/AnalyticsPage-Cdv4jLtW.js +0 -1
- package/client/dist/assets/BarChart-BDMqVFJy.js +0 -55
- package/client/dist/assets/CodePage-DI1kegAr.js +0 -3
- package/client/dist/assets/DesktopAnalyticsPage-Bdp8E8U6.js +0 -1
- package/client/dist/assets/DocsDialog-Bm4RS7FX.js +0 -11
- package/client/dist/assets/DocsPage-DihYcU8r.js +0 -11
- package/client/dist/assets/ExportDropdown-Bb1lHx3r.js +0 -1
- package/client/dist/assets/IntegrationsPage-EAipiDWm.js +0 -1
- package/client/dist/assets/InteractiveJobComposer-BO6ASN-2.js +0 -19
- package/client/dist/assets/JobDetailModal-CuPYq7tP.js +0 -1
- package/client/dist/assets/JobDetailPage-BusMjJi9.js +0 -1
- package/client/dist/assets/JobsPage-C0QbsF2d.js +0 -1
- package/client/dist/assets/LoopBuilderPage-B7TlU4iS.js +0 -1
- package/client/dist/assets/LoopPreviewModal-BRWtXOD2.js +0 -1
- package/client/dist/assets/LoopsPage-C4q1DmCE.js +0 -2
- package/client/dist/assets/MinimizedChatsContext-DHfigjHS.js +0 -1
- package/client/dist/assets/PluginsPage-Z1JHSMdR.js +0 -2
- package/client/dist/assets/ProjectSettingsDialog-BUNj0tvN.js +0 -1
- package/client/dist/assets/RepositoryDeliveries-B4ybHOyB.js +0 -5
- package/client/dist/assets/ReviewPacketPage-hwfPNjyy.js +0 -4
- package/client/dist/assets/TemplatePreviewModal-V7FpMWuw.js +0 -1
- package/client/dist/assets/TicketDetailModalContext-Dkwo2cDs.js +0 -16
- package/client/dist/assets/Trans-BbFxRFtR.js +0 -1
- package/client/dist/assets/activity-B-rp4h_v.js +0 -1
- package/client/dist/assets/activity-C6kJpm9q.js +0 -1
- package/client/dist/assets/activity-CGx4kb_j.js +0 -1
- package/client/dist/assets/activity-CnoX2bH7.js +0 -1
- package/client/dist/assets/activity-DAyekdlt.js +0 -1
- package/client/dist/assets/activity-DCxtpT7j.js +0 -1
- package/client/dist/assets/activity-DiyjsgQV.js +0 -1
- package/client/dist/assets/activity-JzwRaWPD.js +0 -1
- package/client/dist/assets/addspec-BOvgmcgk.js +0 -1
- package/client/dist/assets/addspec-Clmyfn_R.js +0 -1
- package/client/dist/assets/addspec-CsNaBpHp.js +0 -1
- package/client/dist/assets/addspec-D2tvWmmV.js +0 -1
- package/client/dist/assets/addspec-D3nFwvD0.js +0 -1
- package/client/dist/assets/addspec-DVLEhK3w.js +0 -1
- package/client/dist/assets/addspec-DXbK-tb0.js +0 -1
- package/client/dist/assets/addspec-OHG8DFEn.js +0 -1
- package/client/dist/assets/agent-5bSixVzz.js +0 -1
- package/client/dist/assets/agent-BR4EHfhq.js +0 -1
- package/client/dist/assets/agent-C0IKkJP8.js +0 -1
- package/client/dist/assets/agent-C7li9ayC.js +0 -1
- package/client/dist/assets/agent-D0dRmEen.js +0 -1
- package/client/dist/assets/agent-DZVGHm7H.js +0 -1
- package/client/dist/assets/agent-Dip4h2YE.js +0 -1
- package/client/dist/assets/agent-Pp-P-n1p.js +0 -1
- package/client/dist/assets/agentRuntime-BxF81z52.js +0 -1
- package/client/dist/assets/agentRuntime-BxYS5V7u.js +0 -1
- package/client/dist/assets/agentRuntime-Dc9HG3BA.js +0 -1
- package/client/dist/assets/agents-B6ZsnARo.js +0 -1
- package/client/dist/assets/agents-BORdhe0K.js +0 -1
- package/client/dist/assets/agents-C6aq9Oqs.js +0 -1
- package/client/dist/assets/agents-Cbsc4bcX.js +0 -1
- package/client/dist/assets/agents-D0uYR6hq.js +0 -1
- package/client/dist/assets/agents-Doe1sHY5.js +0 -1
- package/client/dist/assets/agents-DyNi_I9m.js +0 -1
- package/client/dist/assets/agents-StKxiTg0.js +0 -1
- package/client/dist/assets/agentstudio-7cYCXn-L.js +0 -1
- package/client/dist/assets/agentstudio-BHWQh8G3.js +0 -1
- package/client/dist/assets/agentstudio-BjnWHyRs.js +0 -1
- package/client/dist/assets/agentstudio-BkV8vcK4.js +0 -1
- package/client/dist/assets/agentstudio-BzugqB_N.js +0 -1
- package/client/dist/assets/agentstudio-CWbp7KvH.js +0 -1
- package/client/dist/assets/agentstudio-DG6plf5o.js +0 -1
- package/client/dist/assets/agentstudio-DkZVF-Cc.js +0 -1
- package/client/dist/assets/analytics-B1DIQd4m.js +0 -1
- package/client/dist/assets/analytics-BAIZ9vE_.js +0 -1
- package/client/dist/assets/analytics-BTqgmgBd.js +0 -1
- package/client/dist/assets/analytics-BWynXPEm.js +0 -1
- package/client/dist/assets/analytics-DGcUsQ44.js +0 -1
- package/client/dist/assets/analytics-GnSnpJ4W.js +0 -1
- package/client/dist/assets/analytics-TWgYaoO0.js +0 -1
- package/client/dist/assets/analytics-kJy6Tuko.js +0 -1
- package/client/dist/assets/atom-one-dark-qiGhVQxg.js +0 -1
- package/client/dist/assets/builder-B9gorTnT.js +0 -1
- package/client/dist/assets/builder-Bvw5s3Mi.js +0 -1
- package/client/dist/assets/builder-CL5l4dU3.js +0 -1
- package/client/dist/assets/builder-CVDTVrQX.js +0 -1
- package/client/dist/assets/builder-CpS9liE9.js +0 -1
- package/client/dist/assets/builder-DNctIL9Q.js +0 -1
- package/client/dist/assets/builder-De2NxX6o.js +0 -1
- package/client/dist/assets/builder-DeYT7Y-m.js +0 -1
- package/client/dist/assets/button-4FS1ZDTp.js +0 -1
- package/client/dist/assets/chat-D_I7nU5K.js +0 -1
- package/client/dist/assets/chevron-up-6EFqEHBj.js +0 -1
- package/client/dist/assets/chunk-OB3PAWPO-B1EMk45A.js +0 -3
- package/client/dist/assets/clsx-CjueKrWZ.js +0 -1
- package/client/dist/assets/code-B37GRg9C.js +0 -1
- package/client/dist/assets/code-BBOEZbf9.js +0 -1
- package/client/dist/assets/code-BRm-jcyx.js +0 -1
- package/client/dist/assets/code-CF7w62CR.js +0 -1
- package/client/dist/assets/code-CLuvJt2r.js +0 -1
- package/client/dist/assets/code-D0RCm59f.js +0 -1
- package/client/dist/assets/code-DaZ-ZwCT.js +0 -1
- package/client/dist/assets/code-iIHkGaCL.js +0 -1
- package/client/dist/assets/commands-0XjAftla.js +0 -1
- package/client/dist/assets/commands-BAWSYHjQ.js +0 -1
- package/client/dist/assets/commands-BBwowgiE.js +0 -1
- package/client/dist/assets/commands-BacjIZLN.js +0 -1
- package/client/dist/assets/commands-Bs62IAZ3.js +0 -1
- package/client/dist/assets/commands-CLPdh-Hh.js +0 -1
- package/client/dist/assets/commands-DlbFzgrp.js +0 -1
- package/client/dist/assets/commands-LjPSsi5F.js +0 -1
- package/client/dist/assets/common-Bdi0qN4S.js +0 -1
- package/client/dist/assets/common-Bhb9zN1P.js +0 -1
- package/client/dist/assets/common-BykKlZg1.js +0 -1
- package/client/dist/assets/common-CvnNNSJA.js +0 -1
- package/client/dist/assets/common-D5zk_mqq.js +0 -1
- package/client/dist/assets/common-DQNO_al5.js +0 -1
- package/client/dist/assets/common-Dax30Vmp.js +0 -1
- package/client/dist/assets/common-DkllpVSb.js +0 -1
- package/client/dist/assets/core-B3mKBIh5.js +0 -1
- package/client/dist/assets/dashboard-B1ndRHuC.js +0 -1
- package/client/dist/assets/dashboard-BX7KXiqA.js +0 -1
- package/client/dist/assets/dashboard-B_BSNxcN.js +0 -1
- package/client/dist/assets/dashboard-CCeFN7-V.js +0 -1
- package/client/dist/assets/dashboard-CRl0WtFJ.js +0 -1
- package/client/dist/assets/dashboard-XGdQ5mjw.js +0 -1
- package/client/dist/assets/dashboard-_oltA6Jd.js +0 -1
- package/client/dist/assets/dashboard-bAuf5KVk.js +0 -1
- package/client/dist/assets/dialog-DtdR05v1.js +0 -45
- package/client/dist/assets/dist-js-CJ_2XX1Y.js +0 -1
- package/client/dist/assets/event-Bt7f3wXe.js +0 -1
- package/client/dist/assets/explore-BG99VGpL.js +0 -1
- package/client/dist/assets/explore-C0TjprJW.js +0 -1
- package/client/dist/assets/explore-C2dgEo7q.js +0 -1
- package/client/dist/assets/explore-C8NDHbob.js +0 -1
- package/client/dist/assets/explore-CWWgzQGR.js +0 -1
- package/client/dist/assets/explore-CcQXpdtS.js +0 -1
- package/client/dist/assets/explore-DgBACn39.js +0 -1
- package/client/dist/assets/explore-DsXAgnmJ.js +0 -1
- package/client/dist/assets/file-text-C0blZHLh.js +0 -1
- package/client/dist/assets/formatDistanceToNow-NjPHBLfB.js +0 -1
- package/client/dist/assets/getTimezoneOffsetInMilliseconds-vJ7qUoqN.js +0 -1
- package/client/dist/assets/git-branch-yf6LE1Bw.js +0 -1
- package/client/dist/assets/index-BgbCbIua.css +0 -2
- package/client/dist/assets/index-Ce4yZtKf.js +0 -83
- package/client/dist/assets/integrations-BkpRUbvp.js +0 -1
- package/client/dist/assets/integrations-Bo8qbJf4.js +0 -1
- package/client/dist/assets/integrations-CmSrKzZb.js +0 -1
- package/client/dist/assets/integrations-DGtq26Rr.js +0 -1
- package/client/dist/assets/integrations-De38GFnQ.js +0 -1
- package/client/dist/assets/integrations-Dw6zdtb-.js +0 -1
- package/client/dist/assets/integrations-Dwl9KQp0.js +0 -1
- package/client/dist/assets/integrations-Refg_d2I.js +0 -1
- package/client/dist/assets/jira-B6OYw4CJ.js +0 -1
- package/client/dist/assets/jira-BTF6RaOe.js +0 -1
- package/client/dist/assets/jira-CEetIB2q.js +0 -1
- package/client/dist/assets/jira-CIzsZLw5.js +0 -1
- package/client/dist/assets/jira-Daw9tmpI.js +0 -1
- package/client/dist/assets/jira-FXr7u2lh.js +0 -1
- package/client/dist/assets/jira-LaNQn7yl.js +0 -1
- package/client/dist/assets/jira-api-Cabj-H0J.js +0 -1
- package/client/dist/assets/job-time-BCL7wee9.js +0 -1
- package/client/dist/assets/jobs-ARwD85B9.js +0 -1
- package/client/dist/assets/jobs-BMF1w4WT.js +0 -1
- package/client/dist/assets/jobs-CBfzGLwm.js +0 -1
- package/client/dist/assets/jobs-CPjiluBY.js +0 -1
- package/client/dist/assets/jobs-CQQd58pY.js +0 -1
- package/client/dist/assets/jobs-De3EqaO0.js +0 -1
- package/client/dist/assets/jobs-Du9-Ei9a.js +0 -1
- package/client/dist/assets/jobs-qMHbnxwC.js +0 -1
- package/client/dist/assets/layers-BCLTgHXO.js +0 -1
- package/client/dist/assets/loader-circle-BqV9xYGf.js +0 -1
- package/client/dist/assets/loop-layout-CyXj9223.js +0 -7
- package/client/dist/assets/loops-B2PhQLKR.js +0 -1
- package/client/dist/assets/loops-BqbF46st.js +0 -1
- package/client/dist/assets/loops-CINnHbfI.js +0 -1
- package/client/dist/assets/loops-D-3XhH04.js +0 -1
- package/client/dist/assets/loops-DKkEEjZ_.js +0 -1
- package/client/dist/assets/loops-DzWR5-v6.js +0 -1
- package/client/dist/assets/loops-WyWDkhok.js +0 -1
- package/client/dist/assets/loops-scD5fIBf.js +0 -1
- package/client/dist/assets/mcp-6rMoZfEO.js +0 -1
- package/client/dist/assets/mcp-BD8sL5mP.js +0 -1
- package/client/dist/assets/mcp-BkcA3I5s.js +0 -1
- package/client/dist/assets/mcp-CCpSelOh.js +0 -1
- package/client/dist/assets/mcp-CUAN6ORK.js +0 -1
- package/client/dist/assets/mcp-CqbRxRTE.js +0 -1
- package/client/dist/assets/mcp-DP2YfVhO.js +0 -1
- package/client/dist/assets/mcp-DUVQamDz.js +0 -1
- package/client/dist/assets/narration-BEKMVxGm.js +0 -1
- package/client/dist/assets/narration-CjLwGKap.js +0 -1
- package/client/dist/assets/narration-DANWuGsW.js +0 -1
- package/client/dist/assets/narration-DGeEDWiT.js +0 -1
- package/client/dist/assets/narration-DJgpGwIP.js +0 -1
- package/client/dist/assets/narration-DbHnz0qV.js +0 -1
- package/client/dist/assets/narration-bZSsTZG8.js +0 -1
- package/client/dist/assets/narration-i6aKJKEc.js +0 -1
- package/client/dist/assets/nav--u7iPYlS.js +0 -1
- package/client/dist/assets/nav-C5Jgfaby.js +0 -1
- package/client/dist/assets/nav-CAna_Wpt.js +0 -1
- package/client/dist/assets/nav-CCLqeyHo.js +0 -1
- package/client/dist/assets/nav-Cf3c90Jk.js +0 -1
- package/client/dist/assets/nav-DMYQaQjR.js +0 -1
- package/client/dist/assets/nav-Df_PkZ9F.js +0 -1
- package/client/dist/assets/nav-VyNGBJwj.js +0 -1
- package/client/dist/assets/packet-8nn9RsU7.js +0 -1
- package/client/dist/assets/packet-B0H15elv.js +0 -1
- package/client/dist/assets/packet-BQvBgrwh.js +0 -1
- package/client/dist/assets/packet-BR7mO0-a.js +0 -1
- package/client/dist/assets/packet-BgcQ6q_K.js +0 -1
- package/client/dist/assets/packet-D2s92Jnn.js +0 -1
- package/client/dist/assets/packet-YbtcD1HS.js +0 -1
- package/client/dist/assets/packet-c0Qj_9eX.js +0 -1
- package/client/dist/assets/project-repositories-Cnnuj9Ia.js +0 -1
- package/client/dist/assets/rotate-ccw-DalJAQQX.js +0 -1
- package/client/dist/assets/settings-B1NV8Ow9.js +0 -1
- package/client/dist/assets/settings-BQ8XFZeE.js +0 -1
- package/client/dist/assets/settings-BRkxfBbO.js +0 -1
- package/client/dist/assets/settings-C_CcU1dP.js +0 -1
- package/client/dist/assets/settings-Cto9n0eL.js +0 -1
- package/client/dist/assets/settings-Pyw8uYtL.js +0 -1
- package/client/dist/assets/settings-b3HVCNNd.js +0 -1
- package/client/dist/assets/settings-hdive4u6.js +0 -1
- package/client/dist/assets/setup-Be485n2u.js +0 -1
- package/client/dist/assets/setup-CKGUxKr-.js +0 -1
- package/client/dist/assets/setup-Ck1Uwd7_.js +0 -1
- package/client/dist/assets/setup-Cm774a6v.js +0 -1
- package/client/dist/assets/setup-DIqMQpxt.js +0 -1
- package/client/dist/assets/setup-DfCsoNFL.js +0 -1
- package/client/dist/assets/setup-DkeE8mP0.js +0 -1
- package/client/dist/assets/setup-xVntVaz1.js +0 -1
- package/client/dist/assets/specs-Bqvtz2kz.js +0 -1
- package/client/dist/assets/specs-CKes-kz6.js +0 -1
- package/client/dist/assets/specs-CfXxPDNB.js +0 -1
- package/client/dist/assets/specs-CyF9HuTI.js +0 -1
- package/client/dist/assets/specs-DMj035Mt.js +0 -1
- package/client/dist/assets/specs-DfIdoU5L.js +0 -1
- package/client/dist/assets/specs-j5pGLQeU.js +0 -1
- package/client/dist/assets/specs-xW5pkkB7.js +0 -1
- package/client/dist/assets/spending-CQnrWiR3.js +0 -1
- package/client/dist/assets/square-D0JTbRSR.js +0 -1
- package/client/dist/assets/tauri-shell-DE6LfGPw.js +0 -2
- package/client/dist/assets/terminal-BAzpHtpY.js +0 -1
- package/client/dist/assets/terminal-C7dHeR3x.js +0 -1
- package/client/dist/assets/terminal-CMla5Qsz.js +0 -1
- package/client/dist/assets/terminal-CdNXH-n9.js +0 -1
- package/client/dist/assets/terminal-Cw5bZsmV.js +0 -1
- package/client/dist/assets/terminal-DFUP4eNv.js +0 -1
- package/client/dist/assets/terminal-DGqljeK_.js +0 -1
- package/client/dist/assets/terminal-cU70NodO.js +0 -1
- package/client/dist/assets/tickets--tiSOCcn.js +0 -1
- package/client/dist/assets/tickets-BUJ3DMWU.js +0 -1
- package/client/dist/assets/tickets-C1WNPODq.js +0 -1
- package/client/dist/assets/tickets-CDjhWmiE.js +0 -1
- package/client/dist/assets/tickets-CLgPC3uO.js +0 -1
- package/client/dist/assets/tickets-D41ZMQpf.js +0 -1
- package/client/dist/assets/tickets-DEaQC06P.js +0 -1
- package/client/dist/assets/tickets-kcMzbLCp.js +0 -1
- package/client/dist/assets/trash-D8zYUmTg.js +0 -1
- package/client/dist/assets/useDesktop-BjLT0_EE.js +0 -1
- package/client/dist/assets/useRuntimeRuns-C97qEqMg.js +0 -1
- package/client/dist/assets/useSharedWebSocket-Bj4LMp7b.js +0 -2
- package/client/dist/assets/utils-BC4DHlz2.js +0 -1
- package/docs/guide/en/getting-started/4-the-dashboard-tour.md +0 -48
- package/docs/guide/es/getting-started/4-the-dashboard-tour.md +0 -48
- package/server/dist/mobile/mobile-preview-channel.js +0 -179
- package/server/dist/mobile/mobile-preview.js +0 -366
- package/server/dist/modules/browser/domain/preview-origins.js +0 -117
- package/server/dist/modules/browser/runtime/preview-targets.js +0 -80
- /package/client/dist/assets/{atom-one-dark-B-oHczHB.css → DocView-B-oHczHB.css} +0 -0
- /package/docs/guide/de/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/en/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/es/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/fr/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/it/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/ja/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/pt/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
- /package/docs/guide/zh/getting-started/{3-adding-your-first-project.md → 4-adding-your-first-project.md} +0 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.localChangesBody = localChangesBody;
|
|
37
|
+
exports.buildLocalChangesBriefing = buildLocalChangesBriefing;
|
|
38
|
+
exports.briefAgentOnLocalChanges = briefAgentOnLocalChanges;
|
|
39
|
+
exports.waitForLocalRestores = waitForLocalRestores;
|
|
40
|
+
exports.startLocalRestoreBranch = startLocalRestoreBranch;
|
|
41
|
+
exports.handleConflictingRestore = handleConflictingRestore;
|
|
42
|
+
exports.runBringBackLocalChanges = runBringBackLocalChanges;
|
|
43
|
+
exports.runDiscardRestoreBranch = runDiscardRestoreBranch;
|
|
44
|
+
exports.runRestoreLocalChanges = runRestoreLocalChanges;
|
|
45
|
+
exports.recoverLocalStashes = recoverLocalStashes;
|
|
46
|
+
/**
|
|
47
|
+
* The person's uncommitted work saved by "Integrate locally"
|
|
48
|
+
* (proactive-local-integration): the response body, the server-side
|
|
49
|
+
* restoration of a conflicting stash on its own branch + worktree (never
|
|
50
|
+
* delegated to the read-only mission agent, which is only informed), the
|
|
51
|
+
* "Restore my changes" / "Bring them back" / "Discard the restored branch"
|
|
52
|
+
* actions and startup recovery.
|
|
53
|
+
*
|
|
54
|
+
* Every effect runs under the repository lock and refuses while a decision
|
|
55
|
+
* lease is held, so it never interleaves with another delivery operation.
|
|
56
|
+
*/
|
|
57
|
+
const repo_lock_1 = require("../../../../repo-lock");
|
|
58
|
+
const agent_chat_registry_1 = require("../../../missions/runtime/agent-chat-registry");
|
|
59
|
+
const rail_pr_store_1 = require("../../runtime/rail-pr-store");
|
|
60
|
+
const local_stash_1 = require("../../runtime/local-stash");
|
|
61
|
+
const local_restore_branch_1 = require("../../runtime/local-restore-branch");
|
|
62
|
+
const metadata_1 = require("./metadata");
|
|
63
|
+
const transitions_1 = require("./transitions");
|
|
64
|
+
/** What the decision response tells the surfaces about the saved work. */
|
|
65
|
+
function localChangesBody(record) {
|
|
66
|
+
const restore = record.restore ? (({ worktreePath: _worktreePath, ...wire }) => wire)(record.restore) : null;
|
|
67
|
+
return {
|
|
68
|
+
state: record.state,
|
|
69
|
+
stashName: record.name,
|
|
70
|
+
stashSha: record.sha,
|
|
71
|
+
branch: record.branch,
|
|
72
|
+
restoreBranch: record.restoreBranch,
|
|
73
|
+
conflictPaths: record.conflictPaths,
|
|
74
|
+
...(restore ? { restore } : {}),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The automatic turn's text (agent-facing, English like every briefing).
|
|
79
|
+
* Mission agents are read-only: this only REPORTS what happened and what
|
|
80
|
+
* Specrails is doing — it never asks the agent to write, apply or commit.
|
|
81
|
+
*/
|
|
82
|
+
function buildLocalChangesBriefing(input) {
|
|
83
|
+
const { record } = input;
|
|
84
|
+
const restoreBranch = record.restoreBranch ?? (0, local_stash_1.restoreBranchName)(record.sha);
|
|
85
|
+
const tickets = input.ticketIds.length > 0 ? input.ticketIds.map((id) => `#${id}`).join(', ') : 'this delivery';
|
|
86
|
+
const files = record.conflictPaths.length > 0 ? record.conflictPaths.map((p) => `- ${p}`).join('\n') : '- (git reported no unmerged path)';
|
|
87
|
+
return [
|
|
88
|
+
`[Specrails] Status report — no action needed from you. Integrated ${tickets} into \`${input.branch}\` locally (delivery ${input.deliveryId}).`,
|
|
89
|
+
`The person's uncommitted changes on \`${input.branch}\` were saved as a git stash before integrating ("${record.name}"). Re-applying them on top of the integrated result conflicted, so \`${input.branch}\` was left exactly as integrated and the stash is kept safe. Conflicting files:`,
|
|
90
|
+
files,
|
|
91
|
+
'',
|
|
92
|
+
`Specrails itself is restoring those changes on the new branch \`${restoreBranch}\` in its own separate worktree and resolving the conflicts there. Nothing touches \`${input.branch}\` until the person clicks "Bring them back" on the delivery card, which also shows the restored files for review.`,
|
|
93
|
+
'Report this status to the person in one or two sentences. You are read-only here: do not run git commands, do not suggest shell commands, and never suggest dropping, popping or clearing the stash.',
|
|
94
|
+
].join('\n');
|
|
95
|
+
}
|
|
96
|
+
function originConversation(deps, row) {
|
|
97
|
+
if (row.origin_conversation_id)
|
|
98
|
+
return row.origin_conversation_id;
|
|
99
|
+
if (row.parent_delivery_id)
|
|
100
|
+
return (0, rail_pr_store_1.getPrDelivery)(deps.db, row.parent_delivery_id)?.origin_conversation_id ?? null;
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
/** Hand a conflicting restore to the delivery's origin mission agent. One turn
|
|
104
|
+
* per delivery (durable turn key); fire-and-forget, never throws. */
|
|
105
|
+
function briefAgentOnLocalChanges(deps, row, record, branch) {
|
|
106
|
+
try {
|
|
107
|
+
const conversationId = originConversation(deps, row);
|
|
108
|
+
if (!conversationId)
|
|
109
|
+
return;
|
|
110
|
+
const agent = (deps.missionAgent ?? agent_chat_registry_1.getAgentChatManager)();
|
|
111
|
+
if (!agent)
|
|
112
|
+
return;
|
|
113
|
+
const text = buildLocalChangesBriefing({ deliveryId: row.id, ticketIds: (0, rail_pr_store_1.toPrDeliverySnapshot)(row).ticketIds, record, branch });
|
|
114
|
+
void agent.startAutomaticTurn(conversationId, text, { turnKey: `local-changes:${row.id}`, label: 'Restore local changes' })
|
|
115
|
+
.catch((err) => console.error('[safe-pr] local-changes briefing failed:', err));
|
|
116
|
+
}
|
|
117
|
+
catch (err) {
|
|
118
|
+
console.error('[safe-pr] local-changes briefing failed:', err);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function broadcastDelivery(deps, row) {
|
|
122
|
+
try {
|
|
123
|
+
(0, transitions_1.finalizeTransition)(deps, row.parent_delivery_id ?? row.id);
|
|
124
|
+
}
|
|
125
|
+
catch { /* the durable row stays authoritative */ }
|
|
126
|
+
}
|
|
127
|
+
/** Persist one restore attempt; leaves `local_changes_attention` once nothing is held. */
|
|
128
|
+
function persistRestore(deps, row, next) {
|
|
129
|
+
const settled = next.state === 'restored' || next.state === 'released';
|
|
130
|
+
const warnings = (0, rail_pr_store_1.toPrDeliverySnapshot)(row).cleanupWarnings;
|
|
131
|
+
(0, rail_pr_store_1.setPrDeliveryLocalStash)(deps.db, row.id, next, settled
|
|
132
|
+
? { from: 'local_changes_attention', to: warnings.length > 0 ? 'cleanup_incomplete' : 'merged' }
|
|
133
|
+
: next.state === 'needs_attention' && row.decision === 'merged'
|
|
134
|
+
? { from: 'merged', to: 'local_changes_attention' }
|
|
135
|
+
: undefined);
|
|
136
|
+
}
|
|
137
|
+
/** In-flight server-side restorations (tests and shutdown can await them). */
|
|
138
|
+
const inFlightRestores = new Set();
|
|
139
|
+
/** Resolve once every in-flight branch restoration has settled. */
|
|
140
|
+
async function waitForLocalRestores() {
|
|
141
|
+
while (inFlightRestores.size > 0)
|
|
142
|
+
await Promise.allSettled([...inFlightRestores]);
|
|
143
|
+
}
|
|
144
|
+
function restoreRoot(deps) {
|
|
145
|
+
return deps.assemblyRoot ?? (0, metadata_1.batchWorktreeRoot)(deps.project.slug);
|
|
146
|
+
}
|
|
147
|
+
/** Fold a restore-branch change into the record and persist it (lease-independent). */
|
|
148
|
+
function saveRestore(deps, rowId, restore) {
|
|
149
|
+
const row = (0, rail_pr_store_1.getPrDelivery)(deps.db, rowId);
|
|
150
|
+
const current = row ? (0, rail_pr_store_1.readLocalStash)(row.local_stash) : null;
|
|
151
|
+
if (!row || !current)
|
|
152
|
+
return null;
|
|
153
|
+
const next = { ...current, restoreBranch: restore.branch, restore, updatedAt: restore.updatedAt };
|
|
154
|
+
(0, rail_pr_store_1.setPrDeliveryLocalStash)(deps.db, row.id, next);
|
|
155
|
+
broadcastDelivery(deps, row);
|
|
156
|
+
return next;
|
|
157
|
+
}
|
|
158
|
+
function restoreRecord(base) {
|
|
159
|
+
return {
|
|
160
|
+
worktreePath: '', baseSha: null, commitSha: null, resolvedBy: null, managedPaths: [], conflictPaths: [], files: [], detail: null,
|
|
161
|
+
...base, updatedAt: new Date().toISOString(),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
async function resolveWith(deps) {
|
|
165
|
+
if (deps.localRestoreResolver)
|
|
166
|
+
return deps.localRestoreResolver;
|
|
167
|
+
// Lazy: the AI executor stack loads only when a restore actually conflicts.
|
|
168
|
+
const { defaultLocalRestoreResolver } = await Promise.resolve().then(() => __importStar(require('../../runtime/local-restore-resolver')));
|
|
169
|
+
return defaultLocalRestoreResolver;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Restore a conflicting stash server-side: new branch + worktree from the
|
|
173
|
+
* integrated target, `git stash apply` there, managed files take the
|
|
174
|
+
* integrated version, a clean result is committed at once; otherwise the
|
|
175
|
+
* write-capable resolver runs confined to that worktree (outside the
|
|
176
|
+
* repository lock) and Specrails verifies + commits. The target branch and
|
|
177
|
+
* the stash are never touched. Fire-and-forget; never throws.
|
|
178
|
+
*/
|
|
179
|
+
function startLocalRestoreBranch(deps, rowId) {
|
|
180
|
+
const run = runLocalRestoreBranch(deps, rowId).catch((err) => {
|
|
181
|
+
console.error('[safe-pr] local-changes branch restore failed:', err);
|
|
182
|
+
});
|
|
183
|
+
inFlightRestores.add(run);
|
|
184
|
+
void run.finally(() => inFlightRestores.delete(run));
|
|
185
|
+
return run;
|
|
186
|
+
}
|
|
187
|
+
async function runLocalRestoreBranch(deps, rowId) {
|
|
188
|
+
const initial = (0, rail_pr_store_1.getPrDelivery)(deps.db, rowId);
|
|
189
|
+
if (!initial)
|
|
190
|
+
return;
|
|
191
|
+
const lockPath = initial.repository_path ?? deps.project.path;
|
|
192
|
+
const job = await (0, repo_lock_1.withRepoLock)(lockPath, async () => {
|
|
193
|
+
const row = (0, rail_pr_store_1.getPrDelivery)(deps.db, rowId);
|
|
194
|
+
const record = row ? (0, rail_pr_store_1.readLocalStash)(row.local_stash) : null;
|
|
195
|
+
if (!row || !record || record.state !== 'needs_attention')
|
|
196
|
+
return null;
|
|
197
|
+
const existing = record.restore;
|
|
198
|
+
if (existing && (existing.status === 'resolving' || existing.status === 'ready'))
|
|
199
|
+
return null;
|
|
200
|
+
const repo = record.checkoutPath;
|
|
201
|
+
if (existing?.status === 'failed') {
|
|
202
|
+
// A failed attempt is Specrails' own scratch branch; the stash still
|
|
203
|
+
// holds the person's work, so a retry starts from a clean slate.
|
|
204
|
+
await (0, local_restore_branch_1.removeRestoreBranch)(deps.git, repo, existing.worktreePath, existing.branch, true);
|
|
205
|
+
}
|
|
206
|
+
const ticketIds = (0, rail_pr_store_1.toPrDeliverySnapshot)(row).ticketIds;
|
|
207
|
+
const message = (0, local_restore_branch_1.restoreCommitMessage)(ticketIds);
|
|
208
|
+
const prepared = await (0, local_restore_branch_1.prepareRestoreBranch)(deps.git, {
|
|
209
|
+
repo, sha: record.sha, targetBranch: record.branch, worktreesRoot: restoreRoot(deps), ticketId: ticketIds[0] ?? 0,
|
|
210
|
+
});
|
|
211
|
+
if (!prepared.ok) {
|
|
212
|
+
saveRestore(deps, row.id, restoreRecord({ status: 'failed', branch: prepared.branch, worktreePath: prepared.worktreePath ?? '', detail: prepared.detail }));
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
const base = { branch: prepared.branch, worktreePath: prepared.worktreePath, baseSha: prepared.baseSha, managedPaths: prepared.managedPaths, conflictPaths: prepared.conflictPaths };
|
|
216
|
+
if (prepared.conflictPaths.length === 0) {
|
|
217
|
+
// It applied cleanly on the integrated tree (or only managed files
|
|
218
|
+
// conflicted): commit now, no resolver needed.
|
|
219
|
+
const committed = await (0, local_restore_branch_1.commitRestoreBranch)(deps.git, { ...base, message });
|
|
220
|
+
saveRestore(deps, row.id, committed.ok
|
|
221
|
+
? restoreRecord({ ...base, status: 'ready', resolvedBy: 'clean', commitSha: committed.commitSha, files: committed.files })
|
|
222
|
+
: restoreRecord({ ...base, status: 'failed', detail: committed.detail, conflictPaths: committed.conflictPaths ?? [] }));
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
saveRestore(deps, row.id, restoreRecord({ ...base, status: 'resolving' }));
|
|
226
|
+
return { ...base, targetBranch: record.branch, stashName: record.name, message };
|
|
227
|
+
});
|
|
228
|
+
if (!job)
|
|
229
|
+
return;
|
|
230
|
+
let resolverError = null;
|
|
231
|
+
try {
|
|
232
|
+
const resolver = await resolveWith(deps);
|
|
233
|
+
await resolver({ worktreePath: job.worktreePath, branch: job.branch, targetBranch: job.targetBranch, conflictPaths: job.conflictPaths, stashName: job.stashName });
|
|
234
|
+
}
|
|
235
|
+
catch (err) {
|
|
236
|
+
resolverError = err instanceof Error ? err.message : String(err);
|
|
237
|
+
}
|
|
238
|
+
await (0, repo_lock_1.withRepoLock)(lockPath, async () => {
|
|
239
|
+
const row = (0, rail_pr_store_1.getPrDelivery)(deps.db, rowId);
|
|
240
|
+
const record = row ? (0, rail_pr_store_1.readLocalStash)(row.local_stash) : null;
|
|
241
|
+
// Discarded / restarted meanwhile: that newer state wins.
|
|
242
|
+
if (!row || !record?.restore || record.restore.status !== 'resolving' || record.restore.branch !== job.branch)
|
|
243
|
+
return;
|
|
244
|
+
const base = { branch: job.branch, worktreePath: job.worktreePath, baseSha: job.baseSha, managedPaths: job.managedPaths, conflictPaths: job.conflictPaths };
|
|
245
|
+
const committed = await (0, local_restore_branch_1.commitRestoreBranch)(deps.git, { ...base, message: job.message });
|
|
246
|
+
saveRestore(deps, row.id, committed.ok
|
|
247
|
+
? restoreRecord({ ...base, status: 'ready', resolvedBy: 'resolver', commitSha: committed.commitSha, files: committed.files })
|
|
248
|
+
: restoreRecord({
|
|
249
|
+
...base, status: 'failed',
|
|
250
|
+
conflictPaths: committed.conflictPaths ?? job.conflictPaths,
|
|
251
|
+
detail: resolverError ? `The conflict resolver failed: ${resolverError}` : committed.detail,
|
|
252
|
+
}));
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
/** A conflicting restore: inform the mission (report only) and restore server-side. */
|
|
256
|
+
function handleConflictingRestore(deps, row, record, branch) {
|
|
257
|
+
briefAgentOnLocalChanges(deps, row, record, branch);
|
|
258
|
+
void startLocalRestoreBranch(deps, row.id);
|
|
259
|
+
}
|
|
260
|
+
async function underDeliveryLock(deps, prDeliveryId, fn) {
|
|
261
|
+
const initial = (0, rail_pr_store_1.getPrDelivery)(deps.db, prDeliveryId);
|
|
262
|
+
if (!initial)
|
|
263
|
+
return { status: 404, body: { error: 'Unknown prDeliveryId' } };
|
|
264
|
+
return (0, repo_lock_1.withRepoLock)(initial.repository_path ?? deps.project.path, async () => {
|
|
265
|
+
deps.assertAdmission?.();
|
|
266
|
+
const row = (0, rail_pr_store_1.getPrDelivery)(deps.db, prDeliveryId);
|
|
267
|
+
if (!row)
|
|
268
|
+
return { status: 404, body: { error: 'Unknown prDeliveryId' } };
|
|
269
|
+
const parent = row.parent_delivery_id ? (0, rail_pr_store_1.getPrDelivery)(deps.db, row.parent_delivery_id) : null;
|
|
270
|
+
if (row.operation_token || parent?.operation_token) {
|
|
271
|
+
return { status: 409, body: { error: 'operation_in_progress', current: row.decision, operation: row.operation ?? parent?.operation ?? null } };
|
|
272
|
+
}
|
|
273
|
+
const record = (0, rail_pr_store_1.readLocalStash)(row.local_stash);
|
|
274
|
+
if (!record)
|
|
275
|
+
return { status: 404, body: { error: 'no_local_changes' } };
|
|
276
|
+
return fn(row, record);
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* "Bring them back to <target>": fast-forward the person's checkout to the
|
|
281
|
+
* reviewed restore commit (merging a moved target into the restore branch
|
|
282
|
+
* first, in its worktree), then drop the stash — the person confirmed — and
|
|
283
|
+
* remove the restore worktree/branch.
|
|
284
|
+
*/
|
|
285
|
+
async function runBringBackLocalChanges(deps, prDeliveryId) {
|
|
286
|
+
return underDeliveryLock(deps, prDeliveryId, async (row, record) => {
|
|
287
|
+
const restore = record.restore;
|
|
288
|
+
if (restore?.status === 'brought_back')
|
|
289
|
+
return { status: 200, body: { ok: true, localChanges: localChangesBody(record) } };
|
|
290
|
+
if (!restore || restore.status !== 'ready' || !restore.commitSha) {
|
|
291
|
+
return { status: 409, body: { error: 'restore_not_ready', localChanges: localChangesBody(record) } };
|
|
292
|
+
}
|
|
293
|
+
const result = await (0, local_restore_branch_1.bringBackRestoreBranch)(deps.git, {
|
|
294
|
+
checkout: record.checkoutPath, repo: record.checkoutPath, targetBranch: record.branch,
|
|
295
|
+
branch: restore.branch, worktreePath: restore.worktreePath, commitSha: restore.commitSha,
|
|
296
|
+
});
|
|
297
|
+
if (!result.ok) {
|
|
298
|
+
return {
|
|
299
|
+
status: 409,
|
|
300
|
+
body: { error: 'local_restore_blocked', reason: result.reason, detail: result.detail, current: result.current ?? null, base: record.branch, localChanges: localChangesBody(record) },
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
const warnings = [...result.warnings];
|
|
304
|
+
const dropped = await (0, local_stash_1.dropBySha)(deps.git, record.checkoutPath, record.sha);
|
|
305
|
+
if (dropped)
|
|
306
|
+
warnings.push(dropped);
|
|
307
|
+
const at = new Date().toISOString();
|
|
308
|
+
const next = { ...record, state: 'restored', restore: { ...restore, status: 'brought_back', commitSha: result.commitSha, updatedAt: at }, updatedAt: at };
|
|
309
|
+
persistRestore(deps, row, next);
|
|
310
|
+
broadcastDelivery(deps, row);
|
|
311
|
+
return { status: 200, body: { ok: true, localChanges: localChangesBody(next), ...(warnings.length > 0 ? { warnings } : {}) } };
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
/** "Discard the restored branch": remove the restore worktree + branch. The stash is KEPT. */
|
|
315
|
+
async function runDiscardRestoreBranch(deps, prDeliveryId) {
|
|
316
|
+
return underDeliveryLock(deps, prDeliveryId, async (row, record) => {
|
|
317
|
+
const restore = record.restore;
|
|
318
|
+
if (!restore || restore.status === 'discarded' || restore.status === 'brought_back') {
|
|
319
|
+
return { status: 200, body: { ok: true, localChanges: localChangesBody(record) } };
|
|
320
|
+
}
|
|
321
|
+
if (restore.status === 'resolving') {
|
|
322
|
+
return { status: 409, body: { error: 'restore_in_progress', localChanges: localChangesBody(record) } };
|
|
323
|
+
}
|
|
324
|
+
const warnings = await (0, local_restore_branch_1.removeRestoreBranch)(deps.git, record.checkoutPath, restore.worktreePath, restore.branch, true);
|
|
325
|
+
const next = saveRestore(deps, row.id, { ...restore, status: 'discarded', updatedAt: new Date().toISOString() }) ?? record;
|
|
326
|
+
return { status: 200, body: { ok: true, localChanges: localChangesBody(next), ...(warnings.length > 0 ? { warnings } : {}) } };
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* "Restore my changes": re-attempt applying the recorded stash. A clean apply
|
|
331
|
+
* drops it; a conflict restores the integrated tree again and keeps it.
|
|
332
|
+
*/
|
|
333
|
+
async function runRestoreLocalChanges(deps, prDeliveryId) {
|
|
334
|
+
return underDeliveryLock(deps, prDeliveryId, async (row, record) => {
|
|
335
|
+
if (record.state === 'restored' || record.state === 'released') {
|
|
336
|
+
return { status: 200, body: { ok: true, localChanges: localChangesBody(record) } };
|
|
337
|
+
}
|
|
338
|
+
const result = await (0, local_stash_1.restoreLocalChanges)(deps.git, record);
|
|
339
|
+
const next = (0, local_stash_1.recordAfterRestore)(record, result);
|
|
340
|
+
persistRestore(deps, row, next);
|
|
341
|
+
broadcastDelivery(deps, row);
|
|
342
|
+
if (result.state === 'blocked') {
|
|
343
|
+
return {
|
|
344
|
+
status: 409,
|
|
345
|
+
body: { error: 'local_restore_blocked', reason: result.reason, detail: result.detail, current: result.current ?? null, base: record.branch, localChanges: localChangesBody(next) },
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
// Still conflicting: Specrails restores it on its own branch (idempotent
|
|
349
|
+
// while one is resolving or ready for review).
|
|
350
|
+
if (next.state === 'needs_attention')
|
|
351
|
+
void startLocalRestoreBranch(deps, row.id);
|
|
352
|
+
return { status: 200, body: { ok: true, localChanges: localChangesBody(next), ...(result.warnings.length > 0 ? { warnings: result.warnings } : {}) } };
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Startup recovery (admission still closed, leases already cleared): every
|
|
357
|
+
* `saved` stash is re-applied; a Specrails stash whose record never landed
|
|
358
|
+
* (crash between `git stash push` and the write) is adopted from its message
|
|
359
|
+
* first. Conflicts follow the same keep-the-stash path: the mission is informed and
|
|
360
|
+
* Specrails restores the stash on its own branch.
|
|
361
|
+
* Returns the delivery ids it touched. Never throws.
|
|
362
|
+
*/
|
|
363
|
+
async function recoverLocalStashes(deps) {
|
|
364
|
+
const touched = [];
|
|
365
|
+
try {
|
|
366
|
+
const repos = new Set([deps.project.path]);
|
|
367
|
+
for (const row of (0, rail_pr_store_1.listPrDeliveriesWithLocalStash)(deps.db)) {
|
|
368
|
+
const record = (0, rail_pr_store_1.readLocalStash)(row.local_stash);
|
|
369
|
+
if (record?.checkoutPath)
|
|
370
|
+
repos.add(record.checkoutPath);
|
|
371
|
+
}
|
|
372
|
+
// Adopt orphaned Specrails stashes (message carries the delivery id).
|
|
373
|
+
for (const repo of repos) {
|
|
374
|
+
for (const found of await (0, local_stash_1.findSpecrailsStashes)(deps.git, repo)) {
|
|
375
|
+
const row = (0, rail_pr_store_1.getPrDelivery)(deps.db, found.deliveryId);
|
|
376
|
+
if (!row || (0, rail_pr_store_1.readLocalStash)(row.local_stash) || !found.branch)
|
|
377
|
+
continue;
|
|
378
|
+
const at = new Date().toISOString();
|
|
379
|
+
(0, rail_pr_store_1.setPrDeliveryLocalStash)(deps.db, row.id, {
|
|
380
|
+
sha: found.sha, name: found.name, checkoutPath: repo, branch: found.branch, state: 'saved',
|
|
381
|
+
restoreBranch: null, conflictPaths: [], savedAt: at, updatedAt: at,
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
for (const candidate of (0, rail_pr_store_1.listPrDeliveriesWithLocalStash)(deps.db)) {
|
|
386
|
+
const record = (0, rail_pr_store_1.readLocalStash)(candidate.local_stash);
|
|
387
|
+
if (!record || record.state !== 'saved')
|
|
388
|
+
continue;
|
|
389
|
+
await (0, repo_lock_1.withRepoLock)(candidate.repository_path ?? deps.project.path, async () => {
|
|
390
|
+
const row = (0, rail_pr_store_1.getPrDelivery)(deps.db, candidate.id);
|
|
391
|
+
const current = row ? (0, rail_pr_store_1.readLocalStash)(row.local_stash) : null;
|
|
392
|
+
if (!row || !current || current.state !== 'saved' || row.operation_token)
|
|
393
|
+
return;
|
|
394
|
+
const result = await (0, local_stash_1.restoreLocalChanges)(deps.git, current);
|
|
395
|
+
if (result.state === 'blocked') {
|
|
396
|
+
console.warn(`[safe-pr] local changes of ${row.id} not restored at startup: ${result.detail}`);
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
const next = (0, local_stash_1.recordAfterRestore)(current, result);
|
|
400
|
+
persistRestore(deps, row, next);
|
|
401
|
+
touched.push(row.id);
|
|
402
|
+
if (next.state === 'needs_attention')
|
|
403
|
+
handleConflictingRestore(deps, row, next, current.branch);
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
// Branch restorations: a resolver interrupted by the restart is settled
|
|
407
|
+
// `failed` (its worktree is kept for Discard / retry); a conflicting
|
|
408
|
+
// stash that never got one (e.g. recorded before this existed) starts now.
|
|
409
|
+
const conflictedNow = new Set(touched);
|
|
410
|
+
for (const candidate of (0, rail_pr_store_1.listPrDeliveriesWithLocalStash)(deps.db)) {
|
|
411
|
+
const record = (0, rail_pr_store_1.readLocalStash)(candidate.local_stash);
|
|
412
|
+
if (!record || record.state !== 'needs_attention' || conflictedNow.has(candidate.id))
|
|
413
|
+
continue;
|
|
414
|
+
if (record.restore?.status === 'resolving') {
|
|
415
|
+
saveRestore(deps, candidate.id, { ...record.restore, status: 'failed', detail: 'Interrupted by a restart before the conflicts were resolved.', updatedAt: new Date().toISOString() });
|
|
416
|
+
touched.push(candidate.id);
|
|
417
|
+
}
|
|
418
|
+
else if (!record.restore) {
|
|
419
|
+
void startLocalRestoreBranch(deps, candidate.id);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
catch (err) {
|
|
424
|
+
console.error('[safe-pr] local-changes recovery failed:', err);
|
|
425
|
+
}
|
|
426
|
+
return touched;
|
|
427
|
+
}
|
|
@@ -39,6 +39,8 @@ exports.runMergeLocalIntoCheckout = runMergeLocalIntoCheckout;
|
|
|
39
39
|
const path = __importStar(require("path"));
|
|
40
40
|
const rail_worktree_release_1 = require("../../runtime/rail-worktree-release");
|
|
41
41
|
const rail_pr_store_1 = require("../../runtime/rail-pr-store");
|
|
42
|
+
const local_stash_1 = require("../../runtime/local-stash");
|
|
43
|
+
const local_changes_1 = require("./local-changes");
|
|
42
44
|
const ids_1 = require("../../../../ids");
|
|
43
45
|
const repo_lock_1 = require("../../../../repo-lock");
|
|
44
46
|
const integration_branch_1 = require("../../../../integration-branch");
|
|
@@ -119,7 +121,9 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
119
121
|
const cleanupWarnings = [];
|
|
120
122
|
// Snapshot branch/HEAD before assembly. Local edits are allowed: the final
|
|
121
123
|
// non-forced fast-forward leaves unrelated work intact and Git atomically
|
|
122
|
-
// refuses any overwrite, including ignored files.
|
|
124
|
+
// refuses any overwrite, including ignored files. Uncommitted work that
|
|
125
|
+
// overlaps the delivery is saved as a stash first and restored afterwards
|
|
126
|
+
// (proactive-local-integration) — never discarded.
|
|
123
127
|
const head = await deps.git.run(['symbolic-ref', '--quiet', 'HEAD'], targetRepo);
|
|
124
128
|
const currentBranch = head.code === 0 ? head.stdout.trim().replace(/^refs\/heads\//, '') : '';
|
|
125
129
|
if (currentBranch !== integrationTarget) {
|
|
@@ -257,15 +261,61 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
257
261
|
}
|
|
258
262
|
return { status: 409, body: { error: 'merge_local_blocked', reason: changedReason, base: integrationTarget } };
|
|
259
263
|
}
|
|
260
|
-
|
|
264
|
+
// The person's uncommitted work that overlaps the delivery is saved as a
|
|
265
|
+
// stash (by commit sha, recorded durably BEFORE the branch moves) so the
|
|
266
|
+
// fast-forward can run; it is re-applied right after.
|
|
267
|
+
let stash = null;
|
|
268
|
+
const saveStash = async () => {
|
|
269
|
+
const saved = await (0, local_stash_1.saveLocalChanges)({ git: deps.git, repo: targetRepo, branch: integrationTarget, deliveryId: row.id, ticketIds: snap.ticketIds });
|
|
270
|
+
if (!saved.ok) {
|
|
271
|
+
return { status: 409, body: { error: 'merge_local_blocked', reason: 'dirty', base: integrationTarget, detail: saved.detail } };
|
|
272
|
+
}
|
|
273
|
+
stash = saved.record;
|
|
274
|
+
(0, rail_pr_store_1.setPrDeliveryLocalStash)(deps.db, row.id, saved.record);
|
|
275
|
+
return null;
|
|
276
|
+
};
|
|
277
|
+
const dirty = await (0, local_stash_1.listUserDirtyPaths)(deps.git, targetRepo);
|
|
278
|
+
if (dirty && dirty.length > 0) {
|
|
279
|
+
const changed = await (0, local_stash_1.changedPathsBetween)(deps.git, targetRepo, startingSha, assembledSha);
|
|
280
|
+
if (!changed || (0, local_stash_1.pathsOverlap)(dirty, changed)) {
|
|
281
|
+
const blocked = await saveStash();
|
|
282
|
+
if (blocked) {
|
|
283
|
+
await removeAssembly();
|
|
284
|
+
return blocked;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
const fastForward = () => deps.git.run(['merge', '--ff-only', '--no-overwrite-ignore', assembledSha], targetRepo);
|
|
289
|
+
const refusedByLocalChanges = (r) => /would be overwritten|local changes|untracked working tree/i.test(`${r.stderr}\n${r.stdout}`);
|
|
290
|
+
let advanced = await fastForward();
|
|
291
|
+
if (advanced.code !== 0 && !stash && refusedByLocalChanges(advanced) && (dirty === null || dirty.length > 0)) {
|
|
292
|
+
// Git saw an overlap the path comparison did not (e.g. case folding):
|
|
293
|
+
// take the same stash path, then retry once.
|
|
294
|
+
const blocked = await saveStash();
|
|
295
|
+
if (blocked) {
|
|
296
|
+
await removeAssembly();
|
|
297
|
+
return blocked;
|
|
298
|
+
}
|
|
299
|
+
advanced = await fastForward();
|
|
300
|
+
}
|
|
261
301
|
if (advanced.code !== 0) {
|
|
262
302
|
await removeAssembly();
|
|
263
|
-
|
|
303
|
+
// The branch did not move: put the saved work straight back.
|
|
304
|
+
let localChanges;
|
|
305
|
+
const failedStash = stash;
|
|
306
|
+
if (failedStash) {
|
|
307
|
+
const current = failedStash;
|
|
308
|
+
const next = (0, local_stash_1.recordAfterRestore)(current, await (0, local_stash_1.restoreLocalChanges)(deps.git, current));
|
|
309
|
+
(0, rail_pr_store_1.setPrDeliveryLocalStash)(deps.db, row.id, next);
|
|
310
|
+
localChanges = (0, local_changes_1.localChangesBody)(next);
|
|
311
|
+
}
|
|
312
|
+
if (refusedByLocalChanges(advanced)) {
|
|
264
313
|
return {
|
|
265
314
|
status: 409,
|
|
266
315
|
body: {
|
|
267
316
|
error: 'merge_local_blocked', reason: 'dirty', base: integrationTarget,
|
|
268
317
|
detail: (advanced.stderr.trim() || advanced.stdout.trim()).slice(0, 1200),
|
|
318
|
+
...(localChanges ? { localChanges } : {}),
|
|
269
319
|
},
|
|
270
320
|
};
|
|
271
321
|
}
|
|
@@ -273,7 +323,7 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
273
323
|
const conflict = persistAssemblyFailure(`advancing '${integrationTarget}': ${detail}`);
|
|
274
324
|
if (conflict)
|
|
275
325
|
return conflict;
|
|
276
|
-
return { status: 502, body: { error: 'merge_failed', detail: `advancing '${integrationTarget}': ${detail}
|
|
326
|
+
return { status: 502, body: { error: 'merge_failed', detail: `advancing '${integrationTarget}': ${detail}`, ...(localChanges ? { localChanges } : {}) } };
|
|
277
327
|
}
|
|
278
328
|
const [acceptedBranch, acceptedHead, acceptedBase] = await Promise.all([
|
|
279
329
|
deps.git.run(['symbolic-ref', '--quiet', 'HEAD'], targetRepo),
|
|
@@ -291,6 +341,11 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
291
341
|
(0, transitions_1.safetyArchiveRecorder)(deps, row)(assemblyPath);
|
|
292
342
|
const detail = `The integration checkout changed during the final advance. The assembled result is preserved at ${assemblyPath}.`;
|
|
293
343
|
cleanupWarnings.push(detail);
|
|
344
|
+
// Never re-apply onto a checkout someone else just moved: the saved
|
|
345
|
+
// work stays recorded (`saved`) for Restore / startup recovery.
|
|
346
|
+
const savedStash = stash;
|
|
347
|
+
if (savedStash)
|
|
348
|
+
cleanupWarnings.push(`Your local changes are saved as the stash "${savedStash.name}".`);
|
|
294
349
|
const conflict = (0, transitions_1.casTransition)(deps, row, row.decision, { cleanupWarnings, statusCode: 'delivery_failed', statusDetail: detail });
|
|
295
350
|
if (conflict)
|
|
296
351
|
return conflict;
|
|
@@ -298,6 +353,19 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
298
353
|
return { status: 409, body: { error: 'merge_local_blocked', reason: 'head_changed', base: integrationTarget, detail } };
|
|
299
354
|
}
|
|
300
355
|
await removeAssembly();
|
|
356
|
+
// Re-apply the saved work onto the integrated tree. A conflict rolls back
|
|
357
|
+
// only the stash's own paths and KEEPS the stash; Specrails then restores
|
|
358
|
+
// it on its own branch + worktree (the mission is only informed).
|
|
359
|
+
let restoredStash = null;
|
|
360
|
+
const advancedStash = stash;
|
|
361
|
+
if (advancedStash) {
|
|
362
|
+
const restore = await (0, local_stash_1.restoreLocalChanges)(deps.git, advancedStash);
|
|
363
|
+
if (restore.state !== 'blocked')
|
|
364
|
+
cleanupWarnings.push(...restore.warnings);
|
|
365
|
+
restoredStash = (0, local_stash_1.recordAfterRestore)(advancedStash, restore);
|
|
366
|
+
(0, rail_pr_store_1.setPrDeliveryLocalStash)(deps.db, row.id, restoredStash);
|
|
367
|
+
}
|
|
368
|
+
const localChangesNeedAttention = !!restoredStash && (restoredStash.state === 'needs_attention' || restoredStash.state === 'saved');
|
|
301
369
|
// Post-advance sweep: the work now lives on
|
|
302
370
|
// the integration branch, so the launch's worktrees + branches are spent.
|
|
303
371
|
cleanupWarnings.push(...await (0, rail_worktree_release_1.releaseRailWorktrees)({
|
|
@@ -313,8 +381,12 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
313
381
|
}));
|
|
314
382
|
await (0, ownership_1.deleteOwnedBranchesIfUnchanged)(deps, row, snap, cleanupWarnings);
|
|
315
383
|
const conflict = (0, transitions_1.casTransitionWithTicketEffect)(deps, row, 'merged', {
|
|
384
|
+
// Local merge is both the human decision (admitted at the lease claim)
|
|
385
|
+
// and the merge itself; first write wins for each instant.
|
|
386
|
+
decidedAt: (0, transitions_1.decisionInstant)(row),
|
|
387
|
+
mergedAt: new Date().toISOString(),
|
|
316
388
|
deliveryOutcome: 'delivered',
|
|
317
|
-
statusCode: cleanupWarnings.length > 0 ? 'cleanup_incomplete' : 'merged',
|
|
389
|
+
statusCode: localChangesNeedAttention ? 'local_changes_attention' : cleanupWarnings.length > 0 ? 'cleanup_incomplete' : 'merged',
|
|
318
390
|
cleanupWarnings,
|
|
319
391
|
}, {
|
|
320
392
|
deliveryId: row.id,
|
|
@@ -328,7 +400,9 @@ async function runMergeLocalIntoCheckout(deps, row, targetRepo, integrationTarge
|
|
|
328
400
|
(0, transitions_1.applyTerminalTicketEffect)(deps, row, 'merged', cleanupWarnings);
|
|
329
401
|
(0, transitions_1.finalizeTransition)(deps, row.id);
|
|
330
402
|
await (0, chains_1.sweepMergedChainAncestors)(deps, row);
|
|
331
|
-
|
|
403
|
+
if (restoredStash?.state === 'needs_attention')
|
|
404
|
+
(0, local_changes_1.handleConflictingRestore)(deps, row, restoredStash, integrationTarget);
|
|
405
|
+
return { status: 200, body: { ok: true, decision: 'merged', merged: true, local: true, ...(restoredStash ? { localChanges: (0, local_changes_1.localChangesBody)(restoredStash) } : {}) } };
|
|
332
406
|
}
|
|
333
407
|
finally {
|
|
334
408
|
// Runner exceptions (spawn failures/timeouts) must release the temporary
|
|
@@ -71,6 +71,9 @@ async function settleObservedExistingPr(deps, row, observation, pushed) {
|
|
|
71
71
|
onSafetyArchive: (0, transitions_1.safetyArchiveRecorder)(deps, row),
|
|
72
72
|
});
|
|
73
73
|
const conflict = (0, transitions_1.casTransition)(deps, row, next, {
|
|
74
|
+
// Publishing (draft → ready, in-app or observed on GitHub) is stamped once;
|
|
75
|
+
// an already-ready row keeps its unknown/recorded instant untouched.
|
|
76
|
+
...(next === 'pr_ready' && row.decision !== 'pr_ready' ? { publishedAt: new Date().toISOString() } : {}),
|
|
74
77
|
prState: 'pr-created',
|
|
75
78
|
deliveryOutcome: 'delivered',
|
|
76
79
|
statusCode: cleanupWarnings.length > 0 ? 'cleanup_incomplete' : next === 'pr_ready' ? 'pr_ready' : 'existing_pr_updated',
|
|
@@ -226,6 +229,8 @@ async function settleMergedPr(deps, row) {
|
|
|
226
229
|
});
|
|
227
230
|
await (0, ownership_1.deleteOwnedBranchesIfUnchanged)(deps, row, snap, cleanupWarnings);
|
|
228
231
|
const conflict = (0, transitions_1.casTransitionWithTicketEffect)(deps, row, 'merged', {
|
|
232
|
+
// Observed (poll-merge / publish re-observation) merge instant; first write wins.
|
|
233
|
+
mergedAt: new Date().toISOString(),
|
|
229
234
|
deliveryOutcome: 'delivered',
|
|
230
235
|
statusCode: cleanupWarnings.length > 0 ? 'cleanup_incomplete' : 'merged',
|
|
231
236
|
statusDetail: null,
|
|
@@ -24,7 +24,8 @@ function ownedDeliveryBranches(row, snap, cleanupWarnings) {
|
|
|
24
24
|
cleanupWarnings.push(`branch cleanup preserved ${unknownOwnership.length} legacy ${unknownOwnership.length === 1 ? 'branch' : 'branches'} because ownership was not recorded`);
|
|
25
25
|
}
|
|
26
26
|
const owned = new Set(snap.branches
|
|
27
|
-
|
|
27
|
+
// An adopted Flow branch is the rail's from the hand-off on (release treats it like created).
|
|
28
|
+
.filter((unit) => (unit.branchOwnership === 'created' || unit.branchOwnership === 'adopted') && unitWasDelivered(unit))
|
|
28
29
|
.map((unit) => unit.branch));
|
|
29
30
|
if (row.is_continuation !== 1 && snap.branches.length > 1 && row.branch &&
|
|
30
31
|
!snap.branches.some((unit) => unit.branch === row.branch))
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deferredFinalizations = void 0;
|
|
4
|
+
exports.decisionInstant = decisionInstant;
|
|
4
5
|
exports.staleDecision = staleDecision;
|
|
5
6
|
exports.illegalAction = illegalAction;
|
|
6
7
|
exports.ghFailed = ghFailed;
|
|
@@ -16,6 +17,14 @@ const rail_pr_ticket_effects_1 = require("../../runtime/rail-pr-ticket-effects")
|
|
|
16
17
|
// must be absent from every emitted snapshot. Calls made while a lease is held
|
|
17
18
|
// are deferred until executePrDecision's finally releases that exact token.
|
|
18
19
|
exports.deferredFinalizations = new Set();
|
|
20
|
+
/** Instant a human decision was admitted: the operation lease's start (the
|
|
21
|
+
* claim precedes every Git/GitHub effect), so slow effects never inflate the
|
|
22
|
+
* measured time to decision. Falls back to now for an unleased caller. Stored
|
|
23
|
+
* first-write-wins (`decided_at`); see rail-pr-store `lifecycleStamps`. */
|
|
24
|
+
function decisionInstant(row, now = Date.now()) {
|
|
25
|
+
const ms = row.operation_started_at_ms;
|
|
26
|
+
return new Date(typeof ms === 'number' && Number.isFinite(ms) && ms > 0 ? ms : now).toISOString();
|
|
27
|
+
}
|
|
19
28
|
function staleDecision(current) {
|
|
20
29
|
return { status: 409, body: { error: 'stale_decision', current } };
|
|
21
30
|
}
|