@yoyooyoooyoooo/devspace 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +275 -2
- package/bin/devspace-agentd.js +4 -0
- package/bin/devspace.js +4 -0
- package/bin/run-entrypoint.js +24 -0
- package/bin/silence-sqlite-warning.js +14 -0
- package/dist/agents-skill.js +63 -0
- package/dist/apply-patch.js +404 -0
- package/dist/artifact-destination-darwin.js +232 -0
- package/dist/artifact-destination-windows.js +102 -0
- package/dist/artifact-destination.js +76 -0
- package/dist/artifact-error.js +8 -0
- package/dist/artifact-path-windows.js +42 -0
- package/dist/artifact-tools.js +360 -0
- package/dist/cli-workspace.js +44 -0
- package/dist/cli.js +1108 -0
- package/dist/code-mode-executions.js +184 -0
- package/dist/code-mode-registry.js +60 -0
- package/dist/config-migration.js +86 -0
- package/dist/config-schema.js +100 -0
- package/dist/config.js +108 -0
- package/dist/db/client.js +31 -0
- package/dist/db/migrations.js +431 -0
- package/dist/db/schema.js +125 -0
- package/dist/db/sqlite.js +37 -0
- package/dist/git-worktrees.js +373 -0
- package/dist/git.js +55 -0
- package/dist/incoming-artifacts.js +389 -0
- package/dist/json-value.js +83 -0
- package/dist/local-agent-acp.js +1027 -0
- package/dist/local-agent-adapters.js +35 -0
- package/dist/local-agent-availability.js +98 -0
- package/dist/local-agent-cancellation.js +22 -0
- package/dist/local-agent-catalog.js +51 -0
- package/dist/local-agent-claude.js +447 -0
- package/dist/local-agent-client.js +650 -0
- package/dist/local-agent-codex.js +664 -0
- package/dist/local-agent-command.js +35 -0
- package/dist/local-agent-config.js +178 -0
- package/dist/local-agent-daemon-lifecycle.js +198 -0
- package/dist/local-agent-daemon-main.js +114 -0
- package/dist/local-agent-daemon-protocol.js +695 -0
- package/dist/local-agent-daemon.js +503 -0
- package/dist/local-agent-errors.js +379 -0
- package/dist/local-agent-events.js +128 -0
- package/dist/local-agent-grok.js +246 -0
- package/dist/local-agent-id.js +8 -0
- package/dist/local-agent-manager.js +913 -0
- package/dist/local-agent-opencode-server.js +116 -0
- package/dist/local-agent-opencode-v2.js +316 -0
- package/dist/local-agent-opencode-version.js +191 -0
- package/dist/local-agent-opencode.js +424 -0
- package/dist/local-agent-path.js +26 -0
- package/dist/local-agent-pi-rpc.js +208 -0
- package/dist/local-agent-pi-sandbox.js +519 -0
- package/dist/local-agent-pi.js +505 -0
- package/dist/local-agent-presentation.js +221 -0
- package/dist/local-agent-profiles.js +113 -0
- package/dist/local-agent-provider-registry.js +52 -0
- package/dist/local-agent-provider.js +30 -0
- package/dist/local-agent-runtime-pool.js +487 -0
- package/dist/local-agent-runtime.js +1 -0
- package/dist/local-agent-store.js +468 -0
- package/dist/local-agent-targets.js +125 -0
- package/dist/local-agent-worktree.js +49 -0
- package/dist/logger.js +69 -0
- package/dist/mcp-modern-server.js +74 -0
- package/dist/oauth-provider.js +252 -0
- package/dist/oauth-store.js +151 -0
- package/dist/onboarding.js +120 -0
- package/dist/pi-tools.js +59 -0
- package/dist/process-platform.js +50 -0
- package/dist/process-sessions.js +393 -0
- package/dist/request-meta.js +11 -0
- package/dist/review-checkpoints.js +388 -0
- package/dist/roots.js +102 -0
- package/dist/server-shutdown.js +15 -0
- package/dist/server.js +1048 -0
- package/dist/skills.js +139 -0
- package/dist/tool-surfaces/claude.js +175 -0
- package/dist/tool-surfaces/codex.js +255 -0
- package/dist/tool-surfaces/detect.js +37 -0
- package/dist/tool-surfaces/index.js +16 -0
- package/dist/tool-surfaces/shared.js +89 -0
- package/dist/tool-surfaces/types.js +27 -0
- package/dist/ui/.vite/manifest.json +2544 -0
- package/dist/ui/assets/abap-CLvhMVsD.js +1 -0
- package/dist/ui/assets/actionscript-3--17pq3dv.js +1 -0
- package/dist/ui/assets/ada-C5qYipkI.js +1 -0
- package/dist/ui/assets/andromeeda-vGVdxbeo.js +1 -0
- package/dist/ui/assets/angular-html-C0vVTWrj.js +1 -0
- package/dist/ui/assets/angular-ts-dbgl4wjo.js +1 -0
- package/dist/ui/assets/apache-U0d_L8uA.js +1 -0
- package/dist/ui/assets/apex-CGTLDQj6.js +1 -0
- package/dist/ui/assets/apl-Du_JVwwi.js +1 -0
- package/dist/ui/assets/applescript-CCn79oCD.js +1 -0
- package/dist/ui/assets/ara-4CJ0cIlV.js +1 -0
- package/dist/ui/assets/asciidoc-DE70LPWp.js +1 -0
- package/dist/ui/assets/asm-Cmm7eHzH.js +1 -0
- package/dist/ui/assets/astro-DfKAhC5L.js +1 -0
- package/dist/ui/assets/aurora-x-CDeNXAV0.js +1 -0
- package/dist/ui/assets/awk-BWXHIvNe.js +1 -0
- package/dist/ui/assets/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/ui/assets/ayu-light-C3h-C4tm.js +1 -0
- package/dist/ui/assets/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/ui/assets/ballerina-B7ZEbQpA.js +1 -0
- package/dist/ui/assets/bat-Bo4NYOV-.js +1 -0
- package/dist/ui/assets/beancount-D-usSTwE.js +1 -0
- package/dist/ui/assets/berry-DKpUyyne.js +1 -0
- package/dist/ui/assets/bibtex-Ci_nEsc7.js +1 -0
- package/dist/ui/assets/bicep-CUHmPFLl.js +1 -0
- package/dist/ui/assets/bird2-C2hNVINV.js +1 -0
- package/dist/ui/assets/blade-DU2qXgh0.js +1 -0
- package/dist/ui/assets/bsl-BkkzgIyY.js +1 -0
- package/dist/ui/assets/c-Cv30z97n.js +1 -0
- package/dist/ui/assets/c3-CnJL0r0V.js +1 -0
- package/dist/ui/assets/cadence-CQ2zXKGN.js +1 -0
- package/dist/ui/assets/cairo-DLTphjLi.js +1 -0
- package/dist/ui/assets/catppuccin-frappe-3VR1Za6u.js +1 -0
- package/dist/ui/assets/catppuccin-latte-DwIHMF0Q.js +1 -0
- package/dist/ui/assets/catppuccin-macchiato-DYnBP6_5.js +1 -0
- package/dist/ui/assets/catppuccin-mocha-DYhrFGRu.js +1 -0
- package/dist/ui/assets/clarity-SemFz856.js +1 -0
- package/dist/ui/assets/clojure-DqKBuwfJ.js +1 -0
- package/dist/ui/assets/cmake-Bj61d0ZC.js +1 -0
- package/dist/ui/assets/cobol-oLFVLIPg.js +1 -0
- package/dist/ui/assets/codeowners-C8r90Shi.js +1 -0
- package/dist/ui/assets/codeql-oeQT6MSM.js +1 -0
- package/dist/ui/assets/coffee-C_PzhMnZ.js +1 -0
- package/dist/ui/assets/common-lisp-Cv5bFMCO.js +1 -0
- package/dist/ui/assets/coq-BrsZFFmf.js +1 -0
- package/dist/ui/assets/cpp-BmBrRsza.js +1 -0
- package/dist/ui/assets/crystal-Bm1hQZzr.js +1 -0
- package/dist/ui/assets/csharp-Ct8U2NOr.js +1 -0
- package/dist/ui/assets/css-DVcU62QL.js +1 -0
- package/dist/ui/assets/csv-Dx-8-gkx.js +1 -0
- package/dist/ui/assets/cue-CE9AQfxI.js +1 -0
- package/dist/ui/assets/cypher-ClKdZ_lG.js +1 -0
- package/dist/ui/assets/d-qD-0Kul2.js +1 -0
- package/dist/ui/assets/dark-plus-Cs2F2srj.js +1 -0
- package/dist/ui/assets/dart-DkHntEIa.js +1 -0
- package/dist/ui/assets/dax-BkyTk9wS.js +1 -0
- package/dist/ui/assets/desktop-Dlh5hvp9.js +1 -0
- package/dist/ui/assets/diff-woXpYk--.js +1 -0
- package/dist/ui/assets/docker-IyjqRm3v.js +1 -0
- package/dist/ui/assets/dotenv-_5a1GRtc.js +1 -0
- package/dist/ui/assets/dracula-BHWKrbxM.js +1 -0
- package/dist/ui/assets/dracula-soft-5eyTD99u.js +1 -0
- package/dist/ui/assets/dream-maker-DW3nJb8Q.js +1 -0
- package/dist/ui/assets/edge-BPsO9Xdm.js +1 -0
- package/dist/ui/assets/elixir-D_4Zk0CO.js +1 -0
- package/dist/ui/assets/elm-BnEiDxDt.js +1 -0
- package/dist/ui/assets/emacs-lisp-C9PiwqqW.js +1 -0
- package/dist/ui/assets/erb-CcA_9eEY.js +1 -0
- package/dist/ui/assets/erlang-Cphh6RMH.js +1 -0
- package/dist/ui/assets/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/ui/assets/everforest-light-Df2xbC6M.js +1 -0
- package/dist/ui/assets/fennel-DQxkIbk2.js +1 -0
- package/dist/ui/assets/fish-BJitypiv.js +1 -0
- package/dist/ui/assets/fluent-C03EYrpw.js +1 -0
- package/dist/ui/assets/fortran-fixed-form-DEKoE2YW.js +1 -0
- package/dist/ui/assets/fortran-free-form-CYNrtFtB.js +1 -0
- package/dist/ui/assets/fsharp-D13ZGOAj.js +1 -0
- package/dist/ui/assets/gdresource-C0sCabJj.js +1 -0
- package/dist/ui/assets/gdscript-Cp2uCuqX.js +1 -0
- package/dist/ui/assets/gdshader-CBce3t8t.js +1 -0
- package/dist/ui/assets/genie-CV2tkWYe.js +1 -0
- package/dist/ui/assets/gherkin-DExj1W_8.js +1 -0
- package/dist/ui/assets/git-commit-BSykSTBG.js +1 -0
- package/dist/ui/assets/git-rebase-6QXnCXj4.js +1 -0
- package/dist/ui/assets/github-dark-C-LZuMrd.js +1 -0
- package/dist/ui/assets/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/ui/assets/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/ui/assets/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/ui/assets/github-light-EUqPIrTm.js +1 -0
- package/dist/ui/assets/github-light-default-BXViO-2h.js +1 -0
- package/dist/ui/assets/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/ui/assets/gleam-CSRkHgEL.js +1 -0
- package/dist/ui/assets/glimmer-js-B_jsKfl5.js +1 -0
- package/dist/ui/assets/glimmer-ts-BuiqdMbX.js +1 -0
- package/dist/ui/assets/glsl-CqeLnBrT.js +1 -0
- package/dist/ui/assets/gn-ilITqXS6.js +1 -0
- package/dist/ui/assets/gnuplot-7GGW24-e.js +1 -0
- package/dist/ui/assets/go-BJwz_mda.js +1 -0
- package/dist/ui/assets/graphql-Ci8ym9pZ.js +1 -0
- package/dist/ui/assets/groovy-CacY0gHj.js +1 -0
- package/dist/ui/assets/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/ui/assets/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/ui/assets/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/ui/assets/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/ui/assets/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/ui/assets/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/ui/assets/hack-CNk3qn64.js +1 -0
- package/dist/ui/assets/haml-DFfAfRp5.js +1 -0
- package/dist/ui/assets/handlebars-CEOrMlTI.js +1 -0
- package/dist/ui/assets/haskell-D8IpX4py.js +1 -0
- package/dist/ui/assets/haxe-OTjmBuCE.js +1 -0
- package/dist/ui/assets/hcl-Dh228itO.js +1 -0
- package/dist/ui/assets/hjson-CxZEssPk.js +1 -0
- package/dist/ui/assets/hlsl-Cvrh5tZx.js +1 -0
- package/dist/ui/assets/horizon-CE9ld1lL.js +1 -0
- package/dist/ui/assets/horizon-bright-Br1oVSNq.js +1 -0
- package/dist/ui/assets/houston-CsvMBhTu.js +1 -0
- package/dist/ui/assets/html-CspB4UCb.js +1 -0
- package/dist/ui/assets/html-derivative-BXfxq54A.js +1 -0
- package/dist/ui/assets/http-BIQ8n0Gr.js +1 -0
- package/dist/ui/assets/hurl-BtJ_40St.js +1 -0
- package/dist/ui/assets/hxml-B0Qn7Nwc.js +1 -0
- package/dist/ui/assets/hy-CZbG8q4J.js +1 -0
- package/dist/ui/assets/imba-DsUTQ-LC.js +1 -0
- package/dist/ui/assets/ini-B5eOa1yu.js +1 -0
- package/dist/ui/assets/java-BIlGsW4R.js +1 -0
- package/dist/ui/assets/javascript-DByZEdy_.js +1 -0
- package/dist/ui/assets/jinja-B06fsAel.js +1 -0
- package/dist/ui/assets/jison-Blxq6yjP.js +1 -0
- package/dist/ui/assets/json-BtATzLaI.js +1 -0
- package/dist/ui/assets/json5-BR5RXkoi.js +1 -0
- package/dist/ui/assets/jsonc-CYpm1nAK.js +1 -0
- package/dist/ui/assets/jsonl-CmCQp5Yx.js +1 -0
- package/dist/ui/assets/jsonnet-CJTPZ8u_.js +1 -0
- package/dist/ui/assets/jssm-DXw9l8Rf.js +1 -0
- package/dist/ui/assets/jsx-C4WtOcQO.js +1 -0
- package/dist/ui/assets/julia-BFRpu-gm.js +1 -0
- package/dist/ui/assets/just-D-jnf2jA.js +1 -0
- package/dist/ui/assets/kanagawa-dragon-CXtmUGW6.js +1 -0
- package/dist/ui/assets/kanagawa-lotus-BN08jTvb.js +1 -0
- package/dist/ui/assets/kanagawa-wave-CTweb8Dz.js +1 -0
- package/dist/ui/assets/kdl-CsD5j6eV.js +1 -0
- package/dist/ui/assets/kotlin-DhhofPvG.js +1 -0
- package/dist/ui/assets/kusto-BUv0MjJC.js +1 -0
- package/dist/ui/assets/laserwave-C_8bwKvT.js +1 -0
- package/dist/ui/assets/latex-BJ11IdKS.js +1 -0
- package/dist/ui/assets/lean-CewbzKMR.js +1 -0
- package/dist/ui/assets/less-DVTAwKKz.js +1 -0
- package/dist/ui/assets/light-plus-DVQuIRkW.js +1 -0
- package/dist/ui/assets/liquid-DW20SIog.js +1 -0
- package/dist/ui/assets/llvm-Cm23YOpf.js +1 -0
- package/dist/ui/assets/log-BNLmms1o.js +1 -0
- package/dist/ui/assets/logo-Cluzi2Zq.js +1 -0
- package/dist/ui/assets/lua-DJ8UpjNz.js +1 -0
- package/dist/ui/assets/luau-CNKltnaQ.js +1 -0
- package/dist/ui/assets/make-Dixweg8N.js +1 -0
- package/dist/ui/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/ui/assets/marko-DdPsgCbv.js +1 -0
- package/dist/ui/assets/material-theme-Bm3Qr25_.js +1 -0
- package/dist/ui/assets/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/ui/assets/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/ui/assets/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/ui/assets/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/ui/assets/matlab-D7qyCx1q.js +1 -0
- package/dist/ui/assets/mdc-DpLO_ORx.js +1 -0
- package/dist/ui/assets/mdx-DQZ5AkYe.js +1 -0
- package/dist/ui/assets/mermaid-Bk4SNUv9.js +1 -0
- package/dist/ui/assets/min-dark-BSWPekZh.js +1 -0
- package/dist/ui/assets/min-light-DDpmG2fV.js +1 -0
- package/dist/ui/assets/mipsasm-BMqwQI7S.js +1 -0
- package/dist/ui/assets/mojo-BgCJLMeH.js +1 -0
- package/dist/ui/assets/monokai-CdkpiU2Y.js +1 -0
- package/dist/ui/assets/moonbit-CaWjb8XO.js +1 -0
- package/dist/ui/assets/move-B1IS1UjX.js +1 -0
- package/dist/ui/assets/narrat-_X_XdTYD.js +1 -0
- package/dist/ui/assets/nextflow-Bbiyy34d.js +1 -0
- package/dist/ui/assets/nextflow-groovy-Dc_ddanL.js +1 -0
- package/dist/ui/assets/nginx-D6l-E_cC.js +1 -0
- package/dist/ui/assets/night-owl-DhmEMT88.js +1 -0
- package/dist/ui/assets/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/ui/assets/nim-lNRBgWb-.js +1 -0
- package/dist/ui/assets/nix-IvuFDN5E.js +1 -0
- package/dist/ui/assets/nord-Cb4Vim4T.js +1 -0
- package/dist/ui/assets/nushell-DcLAeLz5.js +1 -0
- package/dist/ui/assets/objective-c-D1A_Heim.js +1 -0
- package/dist/ui/assets/objective-cpp-BsSzOQcm.js +1 -0
- package/dist/ui/assets/ocaml-O90oeIOV.js +1 -0
- package/dist/ui/assets/odin-B1RWQWA5.js +1 -0
- package/dist/ui/assets/one-dark-pro-CLwyXe_n.js +1 -0
- package/dist/ui/assets/one-light-D7Lr4KcI.js +1 -0
- package/dist/ui/assets/openscad-BUDT5pXO.js +1 -0
- package/dist/ui/assets/pascal-4ZHwLPI5.js +1 -0
- package/dist/ui/assets/perl-1I6ykDzZ.js +1 -0
- package/dist/ui/assets/php-DxZvhtWN.js +1 -0
- package/dist/ui/assets/pierre-dark-CpLgRqie.js +1 -0
- package/dist/ui/assets/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +1 -0
- package/dist/ui/assets/pierre-dark-soft-kZQmAZld.js +1 -0
- package/dist/ui/assets/pierre-dark-tritanopia-CpjhbsIL.js +1 -0
- package/dist/ui/assets/pierre-dark-vibrant-CpQYzh95.js +1 -0
- package/dist/ui/assets/pierre-light-CoaEpmwp.js +1 -0
- package/dist/ui/assets/pierre-light-protanopia-deuteranopia-0fSaH845.js +1 -0
- package/dist/ui/assets/pierre-light-soft-lWLdNTOI.js +1 -0
- package/dist/ui/assets/pierre-light-tritanopia-CEbqgOJL.js +1 -0
- package/dist/ui/assets/pierre-light-vibrant-D80Fkn33.js +1 -0
- package/dist/ui/assets/pkl-ot-7Btpt.js +1 -0
- package/dist/ui/assets/plastic-DQwYfKfQ.js +1 -0
- package/dist/ui/assets/plsql-DGHpHOYJ.js +1 -0
- package/dist/ui/assets/po-BiJDBrnU.js +1 -0
- package/dist/ui/assets/poimandres-DRFjx7u4.js +1 -0
- package/dist/ui/assets/polar-C7UOKdEL.js +1 -0
- package/dist/ui/assets/postcss-BXeXVLqQ.js +1 -0
- package/dist/ui/assets/powerquery-DNMTfnFr.js +1 -0
- package/dist/ui/assets/powershell-DshXNtvi.js +1 -0
- package/dist/ui/assets/prisma-BsRQq5mF.js +1 -0
- package/dist/ui/assets/prolog-iXnhIJG7.js +1 -0
- package/dist/ui/assets/proto-DB4EqR-F.js +1 -0
- package/dist/ui/assets/pug-CAEM4Qvf.js +1 -0
- package/dist/ui/assets/puppet-CDv2pdJW.js +1 -0
- package/dist/ui/assets/purescript-9MfHhQsQ.js +1 -0
- package/dist/ui/assets/python-gzcpVVnB.js +1 -0
- package/dist/ui/assets/qml-BrlKS2Is.js +1 -0
- package/dist/ui/assets/qmldir-DCQb3MpD.js +1 -0
- package/dist/ui/assets/qss-Fe1Jh2GI.js +1 -0
- package/dist/ui/assets/r-BmSli7PD.js +1 -0
- package/dist/ui/assets/racket-DcIDlBhZ.js +1 -0
- package/dist/ui/assets/raku-B3gFvitq.js +1 -0
- package/dist/ui/assets/razor-D9Qv-i2L.js +1 -0
- package/dist/ui/assets/red-CJ3rzSJv.js +1 -0
- package/dist/ui/assets/reg-CRGYupPL.js +1 -0
- package/dist/ui/assets/regexp-CJVYALm_.js +1 -0
- package/dist/ui/assets/rel-BtDbiS_P.js +1 -0
- package/dist/ui/assets/review-payload-ULHXNnH8.js +1589 -0
- package/dist/ui/assets/riscv-Ckw8ddFX.js +1 -0
- package/dist/ui/assets/ron-VUp2lXgN.js +1 -0
- package/dist/ui/assets/rose-pine-BthvhNj6.js +1 -0
- package/dist/ui/assets/rose-pine-dawn-Dg85fqjY.js +1 -0
- package/dist/ui/assets/rose-pine-moon-hon4tzzS.js +1 -0
- package/dist/ui/assets/rosmsg-CAekHB0j.js +1 -0
- package/dist/ui/assets/rst-DYbZZqNA.js +1 -0
- package/dist/ui/assets/ruby-D6A4ActZ.js +1 -0
- package/dist/ui/assets/rust-Cfkwpbl8.js +1 -0
- package/dist/ui/assets/sas-BonNekz6.js +1 -0
- package/dist/ui/assets/sass-DXrisJhu.js +1 -0
- package/dist/ui/assets/scala-DKOlJaKm.js +1 -0
- package/dist/ui/assets/scheme-DQCgrYNe.js +1 -0
- package/dist/ui/assets/scss-DkOz8Um7.js +1 -0
- package/dist/ui/assets/sdbl-bTVj8UrX.js +1 -0
- package/dist/ui/assets/shaderlab-TOUzSsQk.js +1 -0
- package/dist/ui/assets/shellscript-TrO3h614.js +1 -0
- package/dist/ui/assets/shellsession-DecXNMiN.js +1 -0
- package/dist/ui/assets/slack-dark-DnToyrRv.js +1 -0
- package/dist/ui/assets/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/ui/assets/smalltalk-B16xEiuN.js +1 -0
- package/dist/ui/assets/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/ui/assets/solarized-dark-DV17i1UV.js +1 -0
- package/dist/ui/assets/solarized-light-DSh2HLQt.js +1 -0
- package/dist/ui/assets/solidity-CKzVLygQ.js +1 -0
- package/dist/ui/assets/soy-DMCupiVC.js +1 -0
- package/dist/ui/assets/sparql-D_iOobhT.js +1 -0
- package/dist/ui/assets/splunk-BC2Px7Mm.js +1 -0
- package/dist/ui/assets/sql-VEMAHmGM.js +1 -0
- package/dist/ui/assets/ssh-config-BgfXC-Er.js +1 -0
- package/dist/ui/assets/stata-BQWNgTsh.js +1 -0
- package/dist/ui/assets/stylus-B6D30XZt.js +1 -0
- package/dist/ui/assets/surrealql-v-f3DB2c.js +1 -0
- package/dist/ui/assets/svelte-C5YAdfqk.js +1 -0
- package/dist/ui/assets/swift-DonLKvLd.js +1 -0
- package/dist/ui/assets/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/ui/assets/system-verilog-DJ5XKQeo.js +1 -0
- package/dist/ui/assets/systemd-BxMlprV5.js +1 -0
- package/dist/ui/assets/talonscript-CohzipZa.js +1 -0
- package/dist/ui/assets/tasl-DMoTqEGO.js +1 -0
- package/dist/ui/assets/tcl-CZd0xW_V.js +1 -0
- package/dist/ui/assets/templ-Cv_NoaIg.js +1 -0
- package/dist/ui/assets/terraform-DswuEJGm.js +1 -0
- package/dist/ui/assets/tex-BZYJVOe6.js +1 -0
- package/dist/ui/assets/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/ui/assets/toml-CcmNWLt0.js +1 -0
- package/dist/ui/assets/ts-tags-Kb0rrDAQ.js +1 -0
- package/dist/ui/assets/tsv-sltzmVWM.js +1 -0
- package/dist/ui/assets/tsx-C-h7SO6o.js +1 -0
- package/dist/ui/assets/turtle-ByJddavk.js +1 -0
- package/dist/ui/assets/twig-CLaNF0wL.js +1 -0
- package/dist/ui/assets/typescript-DqEhwECM.js +1 -0
- package/dist/ui/assets/typespec-B88KGewJ.js +1 -0
- package/dist/ui/assets/typst-DI99ib-x.js +1 -0
- package/dist/ui/assets/v-DETTlOr0.js +1 -0
- package/dist/ui/assets/vala-zf12oZj6.js +1 -0
- package/dist/ui/assets/vb-Djn5o6TS.js +1 -0
- package/dist/ui/assets/verilog-CiiDBU1e.js +1 -0
- package/dist/ui/assets/vesper-D5bVUKB1.js +1 -0
- package/dist/ui/assets/vhdl-BroJfC0k.js +1 -0
- package/dist/ui/assets/viml-DvXPmvsu.js +1 -0
- package/dist/ui/assets/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/ui/assets/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/ui/assets/vitesse-light-VbXTXTou.js +1 -0
- package/dist/ui/assets/vue-DX5yahW9.js +1 -0
- package/dist/ui/assets/vue-html-BDU1G9zD.js +1 -0
- package/dist/ui/assets/vue-vine-CeJIc34M.js +1 -0
- package/dist/ui/assets/vyper-CgoNMtux.js +1 -0
- package/dist/ui/assets/wasm-BnjxR4X6.js +1 -0
- package/dist/ui/assets/wasm-ByWQv1Qj.js +1 -0
- package/dist/ui/assets/wenyan-C8pVoKbM.js +1 -0
- package/dist/ui/assets/wgsl-BsKzXJz4.js +1 -0
- package/dist/ui/assets/wikitext-ClFFjSW2.js +1 -0
- package/dist/ui/assets/wit-DdvCle-K.js +1 -0
- package/dist/ui/assets/wolfram-DLL8P-h_.js +1 -0
- package/dist/ui/assets/workspace-app-DLucuV_-.js +115 -0
- package/dist/ui/assets/workspace-app-SLULpB_L.css +1 -0
- package/dist/ui/assets/xml-rhzEf2R_.js +1 -0
- package/dist/ui/assets/xsl-ByYOtHce.js +1 -0
- package/dist/ui/assets/yaml-BICb7pFu.js +1 -0
- package/dist/ui/assets/zenscript-BnlCZFoB.js +1 -0
- package/dist/ui/assets/zig-CMLA9XwU.js +1 -0
- package/dist/ui/workspace-app.html +15 -0
- package/dist/unsafe-narrow.js +11 -0
- package/dist/user-config.js +191 -0
- package/dist/version.js +9 -0
- package/dist/web/assets/abap-CLvhMVsD.js +1 -0
- package/dist/web/assets/actionscript-3--17pq3dv.js +1 -0
- package/dist/web/assets/ada-C5qYipkI.js +1 -0
- package/dist/web/assets/andromeeda-vGVdxbeo.js +1 -0
- package/dist/web/assets/angular-html-BTGv_-OV.js +1 -0
- package/dist/web/assets/angular-ts-DEq68Omf.js +1 -0
- package/dist/web/assets/apache-U0d_L8uA.js +1 -0
- package/dist/web/assets/apex-CGTLDQj6.js +1 -0
- package/dist/web/assets/apl-CsTgrpqZ.js +1 -0
- package/dist/web/assets/applescript-CCn79oCD.js +1 -0
- package/dist/web/assets/ara-4CJ0cIlV.js +1 -0
- package/dist/web/assets/asciidoc-DE70LPWp.js +1 -0
- package/dist/web/assets/asm-Cmm7eHzH.js +1 -0
- package/dist/web/assets/astro-X1o2WuNi.js +1 -0
- package/dist/web/assets/aurora-x-CDeNXAV0.js +1 -0
- package/dist/web/assets/awk-BWXHIvNe.js +1 -0
- package/dist/web/assets/ayu-dark-DluEY0Gj.js +1 -0
- package/dist/web/assets/ayu-light-C3h-C4tm.js +1 -0
- package/dist/web/assets/ayu-mirage-Bqwy1Gya.js +1 -0
- package/dist/web/assets/ballerina-B7ZEbQpA.js +1 -0
- package/dist/web/assets/bat-Bo4NYOV-.js +1 -0
- package/dist/web/assets/beancount-D-usSTwE.js +1 -0
- package/dist/web/assets/berry-DKpUyyne.js +1 -0
- package/dist/web/assets/bibtex-Ci_nEsc7.js +1 -0
- package/dist/web/assets/bicep-CUHmPFLl.js +1 -0
- package/dist/web/assets/bird2-C2hNVINV.js +1 -0
- package/dist/web/assets/blade-J2sbuEdF.js +1 -0
- package/dist/web/assets/bsl-BkkzgIyY.js +1 -0
- package/dist/web/assets/c-MzkVm-aZ.js +1 -0
- package/dist/web/assets/c3-CnJL0r0V.js +1 -0
- package/dist/web/assets/cadence-CQ2zXKGN.js +1 -0
- package/dist/web/assets/cairo-DLTphjLi.js +1 -0
- package/dist/web/assets/catppuccin-frappe-3VR1Za6u.js +1 -0
- package/dist/web/assets/catppuccin-latte-DwIHMF0Q.js +1 -0
- package/dist/web/assets/catppuccin-macchiato-DYnBP6_5.js +1 -0
- package/dist/web/assets/catppuccin-mocha-DYhrFGRu.js +1 -0
- package/dist/web/assets/clarity-SemFz856.js +1 -0
- package/dist/web/assets/clojure-DqKBuwfJ.js +1 -0
- package/dist/web/assets/cmake-Bj61d0ZC.js +1 -0
- package/dist/web/assets/cobol-lkVdqvdY.js +1 -0
- package/dist/web/assets/codeowners-C8r90Shi.js +1 -0
- package/dist/web/assets/codeql-oeQT6MSM.js +1 -0
- package/dist/web/assets/coffee-Bnu1Q4Mv.js +1 -0
- package/dist/web/assets/common-lisp-Cv5bFMCO.js +1 -0
- package/dist/web/assets/coq-BrsZFFmf.js +1 -0
- package/dist/web/assets/cpp-Bv6Za6KI.js +1 -0
- package/dist/web/assets/crystal-iIVFCs4O.js +1 -0
- package/dist/web/assets/csharp-Ct8U2NOr.js +1 -0
- package/dist/web/assets/css-BPu_O2Jf.js +1 -0
- package/dist/web/assets/csv-Dx-8-gkx.js +1 -0
- package/dist/web/assets/cue-CE9AQfxI.js +1 -0
- package/dist/web/assets/cypher-ClKdZ_lG.js +1 -0
- package/dist/web/assets/d-qD-0Kul2.js +1 -0
- package/dist/web/assets/dark-plus-Cs2F2srj.js +1 -0
- package/dist/web/assets/dart-DkHntEIa.js +1 -0
- package/dist/web/assets/dax-BkyTk9wS.js +1 -0
- package/dist/web/assets/desktop-Dlh5hvp9.js +1 -0
- package/dist/web/assets/diff-woXpYk--.js +1 -0
- package/dist/web/assets/docker-IyjqRm3v.js +1 -0
- package/dist/web/assets/dotenv-_5a1GRtc.js +1 -0
- package/dist/web/assets/dracula-BHWKrbxM.js +1 -0
- package/dist/web/assets/dracula-soft-5eyTD99u.js +1 -0
- package/dist/web/assets/dream-maker-DW3nJb8Q.js +1 -0
- package/dist/web/assets/edge-Co0NJ0KG.js +1 -0
- package/dist/web/assets/elixir-Djsag05z.js +1 -0
- package/dist/web/assets/elm-5zSKUSU4.js +1 -0
- package/dist/web/assets/emacs-lisp-C9PiwqqW.js +1 -0
- package/dist/web/assets/erb-XK_J2zT_.js +1 -0
- package/dist/web/assets/erlang-Cphh6RMH.js +1 -0
- package/dist/web/assets/everforest-dark-sB-x3p7T.js +1 -0
- package/dist/web/assets/everforest-light-Df2xbC6M.js +1 -0
- package/dist/web/assets/fennel-DQxkIbk2.js +1 -0
- package/dist/web/assets/fish-BJitypiv.js +1 -0
- package/dist/web/assets/fluent-C03EYrpw.js +1 -0
- package/dist/web/assets/fortran-fixed-form-DEKoE2YW.js +1 -0
- package/dist/web/assets/fortran-free-form-CYNrtFtB.js +1 -0
- package/dist/web/assets/fsharp-D13ZGOAj.js +1 -0
- package/dist/web/assets/gdresource-C0sCabJj.js +1 -0
- package/dist/web/assets/gdscript-Cp2uCuqX.js +1 -0
- package/dist/web/assets/gdshader-CBce3t8t.js +1 -0
- package/dist/web/assets/genie-CV2tkWYe.js +1 -0
- package/dist/web/assets/gherkin-DExj1W_8.js +1 -0
- package/dist/web/assets/git-commit-BSykSTBG.js +1 -0
- package/dist/web/assets/git-rebase-qqnMMn7x.js +1 -0
- package/dist/web/assets/github-dark-C-LZuMrd.js +1 -0
- package/dist/web/assets/github-dark-default-DXG-b-1a.js +1 -0
- package/dist/web/assets/github-dark-dimmed-Bx1FflLF.js +1 -0
- package/dist/web/assets/github-dark-high-contrast-B_tTalzw.js +1 -0
- package/dist/web/assets/github-light-EUqPIrTm.js +1 -0
- package/dist/web/assets/github-light-default-BXViO-2h.js +1 -0
- package/dist/web/assets/github-light-high-contrast-B68TUdTA.js +1 -0
- package/dist/web/assets/gleam-CSRkHgEL.js +1 -0
- package/dist/web/assets/glimmer-js-B5T-9I__.js +1 -0
- package/dist/web/assets/glimmer-ts-DdhSqPgy.js +1 -0
- package/dist/web/assets/glsl-BC_B86UU.js +1 -0
- package/dist/web/assets/gn-ilITqXS6.js +1 -0
- package/dist/web/assets/gnuplot-7GGW24-e.js +1 -0
- package/dist/web/assets/go-BJwz_mda.js +1 -0
- package/dist/web/assets/graphql-BToPPCJE.js +1 -0
- package/dist/web/assets/groovy-CacY0gHj.js +1 -0
- package/dist/web/assets/gruvbox-dark-hard-C820rvS2.js +1 -0
- package/dist/web/assets/gruvbox-dark-medium-BPjhmG05.js +1 -0
- package/dist/web/assets/gruvbox-dark-soft-MrdJrrXF.js +1 -0
- package/dist/web/assets/gruvbox-light-hard-BC_s9l72.js +1 -0
- package/dist/web/assets/gruvbox-light-medium-BAWPOn9u.js +1 -0
- package/dist/web/assets/gruvbox-light-soft-BSMLrYjP.js +1 -0
- package/dist/web/assets/hack-BL_KVv65.js +1 -0
- package/dist/web/assets/haml--TeqGHnx.js +1 -0
- package/dist/web/assets/handlebars-DtByEeha.js +1 -0
- package/dist/web/assets/haskell-D8IpX4py.js +1 -0
- package/dist/web/assets/haxe-OTjmBuCE.js +1 -0
- package/dist/web/assets/hcl-Dh228itO.js +1 -0
- package/dist/web/assets/hjson-CxZEssPk.js +1 -0
- package/dist/web/assets/hlsl-Cvrh5tZx.js +1 -0
- package/dist/web/assets/horizon-CE9ld1lL.js +1 -0
- package/dist/web/assets/horizon-bright-Br1oVSNq.js +1 -0
- package/dist/web/assets/houston-CsvMBhTu.js +1 -0
- package/dist/web/assets/html-derivative-DNkLL7BW.js +1 -0
- package/dist/web/assets/html-gVPiEcVC.js +1 -0
- package/dist/web/assets/http-BrgIXjIl.js +1 -0
- package/dist/web/assets/hurl-C-sxM1tv.js +1 -0
- package/dist/web/assets/hxml-B0Qn7Nwc.js +1 -0
- package/dist/web/assets/hy-CZbG8q4J.js +1 -0
- package/dist/web/assets/imba-DsUTQ-LC.js +1 -0
- package/dist/web/assets/index-0wiZdo0w.css +1 -0
- package/dist/web/assets/index-BTEFd66R.js +1592 -0
- package/dist/web/assets/ini-B5eOa1yu.js +1 -0
- package/dist/web/assets/java-BkSz_9sR.js +1 -0
- package/dist/web/assets/javascript-BlLueJYH.js +1 -0
- package/dist/web/assets/jinja-C-k23oNn.js +1 -0
- package/dist/web/assets/jison-DT25ojTn.js +1 -0
- package/dist/web/assets/json-DH3Vpvrs.js +1 -0
- package/dist/web/assets/json5-BR5RXkoi.js +1 -0
- package/dist/web/assets/jsonc-CYpm1nAK.js +1 -0
- package/dist/web/assets/jsonl-CmCQp5Yx.js +1 -0
- package/dist/web/assets/jsonnet-CJTPZ8u_.js +1 -0
- package/dist/web/assets/jssm-DXw9l8Rf.js +1 -0
- package/dist/web/assets/jsx-CLAWWc2E.js +1 -0
- package/dist/web/assets/julia-C2DKt9u8.js +1 -0
- package/dist/web/assets/just-ZZvCCIjm.js +1 -0
- package/dist/web/assets/kanagawa-dragon-CXtmUGW6.js +1 -0
- package/dist/web/assets/kanagawa-lotus-BN08jTvb.js +1 -0
- package/dist/web/assets/kanagawa-wave-CTweb8Dz.js +1 -0
- package/dist/web/assets/kdl-CsD5j6eV.js +1 -0
- package/dist/web/assets/kotlin-DhhofPvG.js +1 -0
- package/dist/web/assets/kusto-BUv0MjJC.js +1 -0
- package/dist/web/assets/laserwave-C_8bwKvT.js +1 -0
- package/dist/web/assets/latex-Dd59Gxv3.js +1 -0
- package/dist/web/assets/lean-CewbzKMR.js +1 -0
- package/dist/web/assets/less-DVTAwKKz.js +1 -0
- package/dist/web/assets/light-plus-DVQuIRkW.js +1 -0
- package/dist/web/assets/liquid-CUyXf6DB.js +1 -0
- package/dist/web/assets/llvm-Cm23YOpf.js +1 -0
- package/dist/web/assets/log-BNLmms1o.js +1 -0
- package/dist/web/assets/logo-Cluzi2Zq.js +1 -0
- package/dist/web/assets/lua-JOh2uEVc.js +1 -0
- package/dist/web/assets/luau-CNKltnaQ.js +1 -0
- package/dist/web/assets/make-Dixweg8N.js +1 -0
- package/dist/web/assets/markdown-BYOwaDjH.js +1 -0
- package/dist/web/assets/marko-kBatMZ9o.js +1 -0
- package/dist/web/assets/material-theme-Bm3Qr25_.js +1 -0
- package/dist/web/assets/material-theme-darker-2IIEA8gg.js +1 -0
- package/dist/web/assets/material-theme-lighter-uhdI0v04.js +1 -0
- package/dist/web/assets/material-theme-ocean-CHQ94UKr.js +1 -0
- package/dist/web/assets/material-theme-palenight-B5W6OYN7.js +1 -0
- package/dist/web/assets/matlab-D7qyCx1q.js +1 -0
- package/dist/web/assets/mdc-11NFwVmp.js +1 -0
- package/dist/web/assets/mdx-DQZ5AkYe.js +1 -0
- package/dist/web/assets/mermaid-Bk4SNUv9.js +1 -0
- package/dist/web/assets/min-dark-BSWPekZh.js +1 -0
- package/dist/web/assets/min-light-DDpmG2fV.js +1 -0
- package/dist/web/assets/mipsasm-BMqwQI7S.js +1 -0
- package/dist/web/assets/mojo-BgCJLMeH.js +1 -0
- package/dist/web/assets/monokai-CdkpiU2Y.js +1 -0
- package/dist/web/assets/moonbit-CaWjb8XO.js +1 -0
- package/dist/web/assets/move-B1IS1UjX.js +1 -0
- package/dist/web/assets/narrat-_X_XdTYD.js +1 -0
- package/dist/web/assets/nextflow-Bbiyy34d.js +1 -0
- package/dist/web/assets/nextflow-groovy-Dc_ddanL.js +1 -0
- package/dist/web/assets/nginx-DHyq0iJa.js +1 -0
- package/dist/web/assets/night-owl-DhmEMT88.js +1 -0
- package/dist/web/assets/night-owl-light-eJ-hLW7d.js +1 -0
- package/dist/web/assets/nim-BhvYzwo0.js +1 -0
- package/dist/web/assets/nix-IvuFDN5E.js +1 -0
- package/dist/web/assets/nord-Cb4Vim4T.js +1 -0
- package/dist/web/assets/nushell-DcLAeLz5.js +1 -0
- package/dist/web/assets/objective-c-D1A_Heim.js +1 -0
- package/dist/web/assets/objective-cpp-BsSzOQcm.js +1 -0
- package/dist/web/assets/ocaml-O90oeIOV.js +1 -0
- package/dist/web/assets/odin-B1RWQWA5.js +1 -0
- package/dist/web/assets/one-dark-pro-CLwyXe_n.js +1 -0
- package/dist/web/assets/one-light-D7Lr4KcI.js +1 -0
- package/dist/web/assets/openscad-BUDT5pXO.js +1 -0
- package/dist/web/assets/pascal-4ZHwLPI5.js +1 -0
- package/dist/web/assets/perl-Dz_MwpmF.js +1 -0
- package/dist/web/assets/php-DWfb-h38.js +1 -0
- package/dist/web/assets/pierre-dark-CpLgRqie.js +1 -0
- package/dist/web/assets/pierre-dark-protanopia-deuteranopia-B35FxJx-.js +1 -0
- package/dist/web/assets/pierre-dark-soft-kZQmAZld.js +1 -0
- package/dist/web/assets/pierre-dark-tritanopia-CpjhbsIL.js +1 -0
- package/dist/web/assets/pierre-dark-vibrant-CpQYzh95.js +1 -0
- package/dist/web/assets/pierre-light-CoaEpmwp.js +1 -0
- package/dist/web/assets/pierre-light-protanopia-deuteranopia-0fSaH845.js +1 -0
- package/dist/web/assets/pierre-light-soft-lWLdNTOI.js +1 -0
- package/dist/web/assets/pierre-light-tritanopia-CEbqgOJL.js +1 -0
- package/dist/web/assets/pierre-light-vibrant-D80Fkn33.js +1 -0
- package/dist/web/assets/pkl-ot-7Btpt.js +1 -0
- package/dist/web/assets/plastic-DQwYfKfQ.js +1 -0
- package/dist/web/assets/plsql-DGHpHOYJ.js +1 -0
- package/dist/web/assets/po-BiJDBrnU.js +1 -0
- package/dist/web/assets/poimandres-DRFjx7u4.js +1 -0
- package/dist/web/assets/polar-C7UOKdEL.js +1 -0
- package/dist/web/assets/postcss-BXeXVLqQ.js +1 -0
- package/dist/web/assets/powerquery-DNMTfnFr.js +1 -0
- package/dist/web/assets/powershell-DshXNtvi.js +1 -0
- package/dist/web/assets/prisma-BsRQq5mF.js +1 -0
- package/dist/web/assets/prolog-iXnhIJG7.js +1 -0
- package/dist/web/assets/proto-DB4EqR-F.js +1 -0
- package/dist/web/assets/pug-D_Ag5V46.js +1 -0
- package/dist/web/assets/puppet-CDv2pdJW.js +1 -0
- package/dist/web/assets/purescript-9MfHhQsQ.js +1 -0
- package/dist/web/assets/python-gzcpVVnB.js +1 -0
- package/dist/web/assets/qml-CeVQ6a0A.js +1 -0
- package/dist/web/assets/qmldir-DCQb3MpD.js +1 -0
- package/dist/web/assets/qss-Fe1Jh2GI.js +1 -0
- package/dist/web/assets/r-SxD8HgCT.js +1 -0
- package/dist/web/assets/racket-DcIDlBhZ.js +1 -0
- package/dist/web/assets/raku-B3gFvitq.js +1 -0
- package/dist/web/assets/razor-CRzoitBx.js +1 -0
- package/dist/web/assets/red-CJ3rzSJv.js +1 -0
- package/dist/web/assets/reg-CRGYupPL.js +1 -0
- package/dist/web/assets/regexp-DocOPscC.js +1 -0
- package/dist/web/assets/rel-BtDbiS_P.js +1 -0
- package/dist/web/assets/riscv-Ckw8ddFX.js +1 -0
- package/dist/web/assets/ron-VUp2lXgN.js +1 -0
- package/dist/web/assets/rose-pine-BthvhNj6.js +1 -0
- package/dist/web/assets/rose-pine-dawn-Dg85fqjY.js +1 -0
- package/dist/web/assets/rose-pine-moon-hon4tzzS.js +1 -0
- package/dist/web/assets/rosmsg-CAekHB0j.js +1 -0
- package/dist/web/assets/rst-CjtdQR1l.js +1 -0
- package/dist/web/assets/ruby-BA1nw9m4.js +1 -0
- package/dist/web/assets/rust-Cfkwpbl8.js +1 -0
- package/dist/web/assets/sas-B-MUbx9W.js +1 -0
- package/dist/web/assets/sass-DXrisJhu.js +1 -0
- package/dist/web/assets/scala-DKOlJaKm.js +1 -0
- package/dist/web/assets/scheme-DQCgrYNe.js +1 -0
- package/dist/web/assets/scss-ZGJHw1s4.js +1 -0
- package/dist/web/assets/sdbl-bTVj8UrX.js +1 -0
- package/dist/web/assets/shaderlab-TOUzSsQk.js +1 -0
- package/dist/web/assets/shellscript-OexWF5_J.js +1 -0
- package/dist/web/assets/shellsession-BvfMWV1u.js +1 -0
- package/dist/web/assets/slack-dark-DnToyrRv.js +1 -0
- package/dist/web/assets/slack-ochin-B2OO5cIa.js +1 -0
- package/dist/web/assets/smalltalk-B16xEiuN.js +1 -0
- package/dist/web/assets/snazzy-light-4G7pJPwS.js +1 -0
- package/dist/web/assets/solarized-dark-DV17i1UV.js +1 -0
- package/dist/web/assets/solarized-light-DSh2HLQt.js +1 -0
- package/dist/web/assets/solidity-CKzVLygQ.js +1 -0
- package/dist/web/assets/soy-1Ts8SqeB.js +1 -0
- package/dist/web/assets/sparql-D_iOobhT.js +1 -0
- package/dist/web/assets/splunk-BC2Px7Mm.js +1 -0
- package/dist/web/assets/sql-vTZBWSco.js +1 -0
- package/dist/web/assets/ssh-config-BgfXC-Er.js +1 -0
- package/dist/web/assets/stata-CJkN8qTo.js +1 -0
- package/dist/web/assets/stylus-B6D30XZt.js +1 -0
- package/dist/web/assets/surrealql-CUfiZDpi.js +1 -0
- package/dist/web/assets/svelte-DulJYIRC.js +1 -0
- package/dist/web/assets/swift-DonLKvLd.js +1 -0
- package/dist/web/assets/synthwave-84-nFMaYfgc.js +1 -0
- package/dist/web/assets/system-verilog-DJ5XKQeo.js +1 -0
- package/dist/web/assets/systemd-BxMlprV5.js +1 -0
- package/dist/web/assets/talonscript-CohzipZa.js +1 -0
- package/dist/web/assets/tasl-DMoTqEGO.js +1 -0
- package/dist/web/assets/tcl-CZd0xW_V.js +1 -0
- package/dist/web/assets/templ-BZ7ROlqu.js +1 -0
- package/dist/web/assets/terraform-DswuEJGm.js +1 -0
- package/dist/web/assets/tex-DcGBWEKZ.js +1 -0
- package/dist/web/assets/tokyo-night-oM2G3aXe.js +1 -0
- package/dist/web/assets/toml-CcmNWLt0.js +1 -0
- package/dist/web/assets/ts-tags-DouHFB1S.js +1 -0
- package/dist/web/assets/tsv-sltzmVWM.js +1 -0
- package/dist/web/assets/tsx-CiRUZd3K.js +1 -0
- package/dist/web/assets/turtle-ByJddavk.js +1 -0
- package/dist/web/assets/twig-BCjSdJxv.js +1 -0
- package/dist/web/assets/typescript-ADDIhQ1i.js +1 -0
- package/dist/web/assets/typespec-B88KGewJ.js +1 -0
- package/dist/web/assets/typst-DI99ib-x.js +1 -0
- package/dist/web/assets/v-DETTlOr0.js +1 -0
- package/dist/web/assets/vala-zf12oZj6.js +1 -0
- package/dist/web/assets/vb-Djn5o6TS.js +1 -0
- package/dist/web/assets/verilog-CiiDBU1e.js +1 -0
- package/dist/web/assets/vesper-D5bVUKB1.js +1 -0
- package/dist/web/assets/vhdl-BroJfC0k.js +1 -0
- package/dist/web/assets/viml-DvXPmvsu.js +1 -0
- package/dist/web/assets/vitesse-black-fwtXNY1n.js +1 -0
- package/dist/web/assets/vitesse-dark-BZCL-v6S.js +1 -0
- package/dist/web/assets/vitesse-light-VbXTXTou.js +1 -0
- package/dist/web/assets/vue-CX7K7OKr.js +1 -0
- package/dist/web/assets/vue-html-CF73fXni.js +1 -0
- package/dist/web/assets/vue-vine-Cn-S0gik.js +1 -0
- package/dist/web/assets/vyper-CgoNMtux.js +1 -0
- package/dist/web/assets/wasm-BnjxR4X6.js +1 -0
- package/dist/web/assets/wasm-ByWQv1Qj.js +1 -0
- package/dist/web/assets/wenyan-C8pVoKbM.js +1 -0
- package/dist/web/assets/wgsl-BsKzXJz4.js +1 -0
- package/dist/web/assets/wikitext-ClFFjSW2.js +1 -0
- package/dist/web/assets/wit-DdvCle-K.js +1 -0
- package/dist/web/assets/wolfram-DLL8P-h_.js +1 -0
- package/dist/web/assets/xml-B1waHz2v.js +1 -0
- package/dist/web/assets/xsl-Cv1v3TC6.js +1 -0
- package/dist/web/assets/yaml-DNjWMruY.js +1 -0
- package/dist/web/assets/zenscript-BnlCZFoB.js +1 -0
- package/dist/web/assets/zig-CMLA9XwU.js +1 -0
- package/dist/web/index.html +14 -0
- package/dist/workflow-cli.js +311 -0
- package/dist/workflow-context.js +88 -0
- package/dist/workflow-flag.js +8 -0
- package/dist/workflow-manager.js +572 -0
- package/dist/workflow-runner-child.js +437 -0
- package/dist/workflow-runner.js +329 -0
- package/dist/workflow-schema.js +47 -0
- package/dist/workflow-script.js +139 -0
- package/dist/workflow-store.js +69 -0
- package/dist/workflow-types.js +23 -0
- package/dist/workflow-workspaces.js +71 -0
- package/dist/workspace-activity-journal.js +221 -0
- package/dist/workspace-activity-store.js +227 -0
- package/dist/workspace-activity.js +49 -0
- package/dist/workspace-instruction-discovery.js +103 -0
- package/dist/workspace-store.js +225 -0
- package/dist/workspace-web.js +287 -0
- package/dist/workspaces.js +531 -0
- package/dist/worktree-prune.js +25 -0
- package/examples/agents/claude-implementer.md +30 -0
- package/examples/agents/codex-explorer.md +27 -0
- package/examples/agents/codex-qa-tester.md +29 -0
- package/examples/agents/codex-worker.md +25 -0
- package/examples/agents/copilot-reviewer.md +25 -0
- package/examples/agents/cursor-agent-worker.md +26 -0
- package/examples/agents/grok-builder.md +10 -0
- package/examples/agents/opencode-explorer.md +27 -0
- package/examples/agents/pi-reviewer.md +27 -0
- package/package.json +101 -4
- package/schema/v1/devspace.schema.json +390 -0
- package/scripts/dev-state.ts +176 -0
- package/scripts/dev.ts +35 -0
- package/scripts/generate-config-schema.ts +10 -0
- package/scripts/qa/host/host-styles.ts +49 -0
- package/scripts/qa/host/host.css +102 -0
- package/scripts/qa/host/index.html +14 -0
- package/scripts/qa/host/main.ts +248 -0
- package/scripts/qa/publish-evidence.sh +52 -0
- package/scripts/qa/run.ts +854 -0
- package/scripts/qa/scenario.ts +86 -0
- package/scripts/qa/scenarios/auto-surface-chatgpt.json +46 -0
- package/scripts/qa/scenarios/auto-surface-claude.json +60 -0
- package/scripts/qa/scenarios/auto-surface-unknown.json +60 -0
- package/scripts/qa/scenarios/claude-edit-review.json +71 -0
- package/scripts/qa/scenarios/code-mode-disabled.json +53 -0
- package/scripts/qa/scenarios/code-mode.json +54 -0
- package/scripts/qa/scenarios/codex-edit-review.json +54 -0
- package/scripts/qa/scenarios/workspace-turns.json +50 -0
- package/scripts/qa/scenarios/worktree-open.json +41 -0
- package/scripts/qa/transcript.ts +42 -0
- package/scripts/qa/tsconfig.json +13 -0
- package/skills/subagents/SKILL.md +142 -0
- package/skills/workflows/SKILL.md +59 -0
- package/skills/workflows/patterns.md +312 -0
- package/skills/workflows/reference.md +139 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { constants } from "node:fs";
|
|
3
|
+
import { access, lstat, mkdir, readFile, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
4
|
+
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
5
|
+
import { TextDecoder } from "node:util";
|
|
6
|
+
import { createTwoFilesPatch, FILE_HEADERS_ONLY } from "diff";
|
|
7
|
+
function patchError(message) {
|
|
8
|
+
return new Error(`Invalid patch: ${message}`);
|
|
9
|
+
}
|
|
10
|
+
export function parsePatch(patch) {
|
|
11
|
+
const lines = patchLines(patch);
|
|
12
|
+
if (lines.shift()?.trim() !== "*** Begin Patch") {
|
|
13
|
+
throw patchError("missing *** Begin Patch marker");
|
|
14
|
+
}
|
|
15
|
+
if (lines.pop()?.trim() !== "*** End Patch") {
|
|
16
|
+
throw patchError("missing *** End Patch marker");
|
|
17
|
+
}
|
|
18
|
+
const actions = [];
|
|
19
|
+
let index = 0;
|
|
20
|
+
while (index < lines.length) {
|
|
21
|
+
const header = lines[index++].trim();
|
|
22
|
+
if (header === "")
|
|
23
|
+
continue;
|
|
24
|
+
if (header.startsWith("*** Environment ID: ")) {
|
|
25
|
+
if (!header.slice("*** Environment ID: ".length).trim()) {
|
|
26
|
+
throw patchError("environment id cannot be empty");
|
|
27
|
+
}
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
if (header.startsWith("*** Add File: ")) {
|
|
31
|
+
const path = header.slice("*** Add File: ".length);
|
|
32
|
+
const content = [];
|
|
33
|
+
while (index < lines.length && !isTopLevelHeader(lines[index])) {
|
|
34
|
+
const line = lines[index++];
|
|
35
|
+
if (!line.startsWith("+")) {
|
|
36
|
+
throw patchError(`added file line must start with +: ${line}`);
|
|
37
|
+
}
|
|
38
|
+
content.push(line.slice(1));
|
|
39
|
+
}
|
|
40
|
+
if (content.length === 0)
|
|
41
|
+
throw patchError(`add file for ${path} has no content`);
|
|
42
|
+
actions.push({
|
|
43
|
+
kind: "add",
|
|
44
|
+
path,
|
|
45
|
+
content: `${content.join("\n")}\n`,
|
|
46
|
+
});
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if (header.startsWith("*** Delete File: ")) {
|
|
50
|
+
actions.push({ kind: "delete", path: header.slice("*** Delete File: ".length) });
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (header.startsWith("*** Update File: ")) {
|
|
54
|
+
const path = header.slice("*** Update File: ".length);
|
|
55
|
+
let moveTo;
|
|
56
|
+
const hunks = [];
|
|
57
|
+
if (lines[index]?.trim().startsWith("*** Move to: ")) {
|
|
58
|
+
moveTo = lines[index++].trim().slice("*** Move to: ".length);
|
|
59
|
+
}
|
|
60
|
+
let current;
|
|
61
|
+
const finishCurrent = () => {
|
|
62
|
+
if (!current)
|
|
63
|
+
return;
|
|
64
|
+
if (current.lines.length === 0)
|
|
65
|
+
throw patchError(`empty update hunk for ${path}`);
|
|
66
|
+
hunks.push(current);
|
|
67
|
+
current = undefined;
|
|
68
|
+
};
|
|
69
|
+
while (index < lines.length) {
|
|
70
|
+
const line = lines[index];
|
|
71
|
+
const trimmed = line.trim();
|
|
72
|
+
if (!current && trimmed === "") {
|
|
73
|
+
index++;
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (trimmed === "*** End of File") {
|
|
77
|
+
if (!current)
|
|
78
|
+
throw patchError(`end-of-file marker without update hunk for ${path}`);
|
|
79
|
+
current.endOfFile = true;
|
|
80
|
+
index++;
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
if ((!current || !line.startsWith(" ")) && isTopLevelHeader(line))
|
|
84
|
+
break;
|
|
85
|
+
if (trimmed.startsWith("@@") && !line.startsWith(" ")) {
|
|
86
|
+
finishCurrent();
|
|
87
|
+
const changeContext = trimmed.slice(2).trim();
|
|
88
|
+
current = { lines: [], changeContext: changeContext || undefined };
|
|
89
|
+
index++;
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
current ??= { lines: [] };
|
|
93
|
+
index++;
|
|
94
|
+
if (line.startsWith(" "))
|
|
95
|
+
current.lines.push({ kind: "context", text: line.slice(1) });
|
|
96
|
+
else if (line.startsWith("+"))
|
|
97
|
+
current.lines.push({ kind: "add", text: line.slice(1) });
|
|
98
|
+
else if (line.startsWith("-"))
|
|
99
|
+
current.lines.push({ kind: "remove", text: line.slice(1) });
|
|
100
|
+
else if (line === "\")
|
|
101
|
+
continue;
|
|
102
|
+
else
|
|
103
|
+
throw patchError(`hunk line must start with space, +, or -: ${line}`);
|
|
104
|
+
}
|
|
105
|
+
finishCurrent();
|
|
106
|
+
if (hunks.length === 0 && !moveTo) {
|
|
107
|
+
throw patchError(`update for ${path} has no hunks or move destination`);
|
|
108
|
+
}
|
|
109
|
+
actions.push({ kind: "update", path, moveTo, hunks });
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
throw patchError(`unknown action header: ${header}`);
|
|
113
|
+
}
|
|
114
|
+
if (actions.length === 0)
|
|
115
|
+
throw patchError("contains no file actions");
|
|
116
|
+
return actions;
|
|
117
|
+
}
|
|
118
|
+
function patchLines(patch) {
|
|
119
|
+
let lines = patch.replace(/\r\n/g, "\n").trim().split("\n");
|
|
120
|
+
const first = lines[0]?.trim();
|
|
121
|
+
const last = lines.at(-1)?.trim();
|
|
122
|
+
if ((first === "<<EOF" || first === "<<'EOF'" || first === '<<"EOF"') &&
|
|
123
|
+
last?.endsWith("EOF") &&
|
|
124
|
+
lines.length >= 4) {
|
|
125
|
+
lines = lines.slice(1, -1);
|
|
126
|
+
}
|
|
127
|
+
return lines;
|
|
128
|
+
}
|
|
129
|
+
function isTopLevelHeader(line) {
|
|
130
|
+
const trimmed = line.trim();
|
|
131
|
+
return (trimmed.startsWith("*** Add File: ") ||
|
|
132
|
+
trimmed.startsWith("*** Delete File: ") ||
|
|
133
|
+
trimmed.startsWith("*** Update File: ") ||
|
|
134
|
+
trimmed.startsWith("*** Environment ID: "));
|
|
135
|
+
}
|
|
136
|
+
function isInside(root, path) {
|
|
137
|
+
const rel = relative(root, path);
|
|
138
|
+
return rel === "" || (!rel.startsWith("..") && !isAbsolute(rel));
|
|
139
|
+
}
|
|
140
|
+
async function resolveConfinedPath(root, input) {
|
|
141
|
+
if (!input || input.includes("\0") || isAbsolute(input)) {
|
|
142
|
+
throw patchError(`path must be relative to the workspace: ${input}`);
|
|
143
|
+
}
|
|
144
|
+
const rootPath = await realpath(root);
|
|
145
|
+
const target = resolve(rootPath, input);
|
|
146
|
+
if (!isInside(rootPath, target)) {
|
|
147
|
+
throw patchError(`path escapes the workspace: ${input}`);
|
|
148
|
+
}
|
|
149
|
+
let existing = target;
|
|
150
|
+
while (true) {
|
|
151
|
+
try {
|
|
152
|
+
const resolved = await realpath(existing);
|
|
153
|
+
if (!isInside(rootPath, resolved)) {
|
|
154
|
+
throw patchError(`path resolves outside the workspace: ${input}`);
|
|
155
|
+
}
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
// SAFETY: The surrounding checks or construction already match this type.
|
|
160
|
+
const code = error.code;
|
|
161
|
+
if (code !== "ENOENT")
|
|
162
|
+
throw error;
|
|
163
|
+
const parent = dirname(existing);
|
|
164
|
+
if (parent === existing)
|
|
165
|
+
throw error;
|
|
166
|
+
existing = parent;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return target;
|
|
170
|
+
}
|
|
171
|
+
function splitFile(content) {
|
|
172
|
+
const eol = content.includes("\r\n") ? "\r\n" : "\n";
|
|
173
|
+
const normalized = content.replace(/\r\n/g, "\n");
|
|
174
|
+
const finalNewline = normalized.endsWith("\n");
|
|
175
|
+
const lines = normalized.split("\n");
|
|
176
|
+
if (finalNewline)
|
|
177
|
+
lines.pop();
|
|
178
|
+
return { lines, eol, finalNewline };
|
|
179
|
+
}
|
|
180
|
+
function findSequence(haystack, needle, from, endOfFile = false) {
|
|
181
|
+
if (needle.length === 0)
|
|
182
|
+
return from;
|
|
183
|
+
const matchAt = (index, normalize) => needle.every((line, offset) => normalize(haystack[index + offset] ?? "") === normalize(line));
|
|
184
|
+
for (const normalize of [
|
|
185
|
+
(value) => value,
|
|
186
|
+
(value) => value.trimEnd(),
|
|
187
|
+
(value) => value.trim(),
|
|
188
|
+
]) {
|
|
189
|
+
const start = endOfFile ? haystack.length - needle.length : from;
|
|
190
|
+
const end = haystack.length - needle.length;
|
|
191
|
+
for (let index = start; index <= end; index += 1) {
|
|
192
|
+
if (index >= from && matchAt(index, normalize))
|
|
193
|
+
return index;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return -1;
|
|
197
|
+
}
|
|
198
|
+
function applyHunks(path, content, hunks) {
|
|
199
|
+
const file = splitFile(content);
|
|
200
|
+
const lines = [...file.lines];
|
|
201
|
+
let cursor = 0;
|
|
202
|
+
for (const hunk of hunks) {
|
|
203
|
+
if (hunk.changeContext) {
|
|
204
|
+
const contextIndex = findSequence(lines, [hunk.changeContext], cursor);
|
|
205
|
+
if (contextIndex < 0) {
|
|
206
|
+
throw patchError(`could not find hunk context in ${path}: ${hunk.changeContext}`);
|
|
207
|
+
}
|
|
208
|
+
cursor = contextIndex + 1;
|
|
209
|
+
}
|
|
210
|
+
const oldLines = hunk.lines
|
|
211
|
+
.filter((line) => line.kind !== "add")
|
|
212
|
+
.map((line) => line.text);
|
|
213
|
+
const newLines = hunk.lines
|
|
214
|
+
.filter((line) => line.kind !== "remove")
|
|
215
|
+
.map((line) => line.text);
|
|
216
|
+
const index = hunk.endOfFile && oldLines.length === 0
|
|
217
|
+
? lines.length
|
|
218
|
+
: findSequence(lines, oldLines, cursor, hunk.endOfFile);
|
|
219
|
+
if (index < 0) {
|
|
220
|
+
const preview = oldLines.slice(0, 3).join("\n");
|
|
221
|
+
throw patchError(`could not find hunk context in ${path}: ${preview}`);
|
|
222
|
+
}
|
|
223
|
+
lines.splice(index, oldLines.length, ...newLines);
|
|
224
|
+
cursor = index + newLines.length;
|
|
225
|
+
}
|
|
226
|
+
const normalized = `${lines.join("\n")}\n`;
|
|
227
|
+
return file.eol === "\r\n" ? normalized.replace(/\n/g, "\r\n") : normalized;
|
|
228
|
+
}
|
|
229
|
+
async function fileExists(path) {
|
|
230
|
+
try {
|
|
231
|
+
await access(path, constants.F_OK);
|
|
232
|
+
return true;
|
|
233
|
+
}
|
|
234
|
+
catch {
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
export async function replaceFile(temporary, destination, destinationExists, platform = process.platform) {
|
|
239
|
+
if (platform !== "win32" || !destinationExists) {
|
|
240
|
+
await rename(temporary, destination);
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const backup = `${temporary}.original`;
|
|
244
|
+
await rename(destination, backup);
|
|
245
|
+
try {
|
|
246
|
+
await rename(temporary, destination);
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
await rename(backup, destination);
|
|
250
|
+
throw error;
|
|
251
|
+
}
|
|
252
|
+
await rm(backup, { force: true });
|
|
253
|
+
}
|
|
254
|
+
export async function isSamePatchFile(source, destination, readIdentity = lstat) {
|
|
255
|
+
if (source === destination)
|
|
256
|
+
return true;
|
|
257
|
+
if (source.toLowerCase() !== destination.toLowerCase())
|
|
258
|
+
return false;
|
|
259
|
+
try {
|
|
260
|
+
const [sourceIdentity, destinationIdentity] = await Promise.all([
|
|
261
|
+
readIdentity(source),
|
|
262
|
+
readIdentity(destination),
|
|
263
|
+
]);
|
|
264
|
+
return sourceIdentity.dev === destinationIdentity.dev && sourceIdentity.ino === destinationIdentity.ino;
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
// SAFETY: The surrounding checks or construction already match this type.
|
|
268
|
+
const code = error.code;
|
|
269
|
+
if (code === "ENOENT" || code === "ENOTDIR")
|
|
270
|
+
return false;
|
|
271
|
+
throw error;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
export async function applyPatch(root, patch) {
|
|
275
|
+
const actions = parsePatch(patch);
|
|
276
|
+
const results = [];
|
|
277
|
+
const patches = [];
|
|
278
|
+
const staged = new Map();
|
|
279
|
+
const readStagedOptional = async (absolute, displayPath) => {
|
|
280
|
+
if (staged.has(absolute))
|
|
281
|
+
return staged.get(absolute) ?? null;
|
|
282
|
+
const file = await readOptionalTextFile(absolute, displayPath);
|
|
283
|
+
staged.set(absolute, file);
|
|
284
|
+
return file;
|
|
285
|
+
};
|
|
286
|
+
const readStagedRequired = async (absolute, displayPath) => {
|
|
287
|
+
const file = await readStagedOptional(absolute, displayPath);
|
|
288
|
+
if (!file)
|
|
289
|
+
throw patchError(`file does not exist: ${displayPath}`);
|
|
290
|
+
return file;
|
|
291
|
+
};
|
|
292
|
+
for (const action of actions) {
|
|
293
|
+
if (action.kind === "add") {
|
|
294
|
+
const absolute = await resolveConfinedPath(root, action.path);
|
|
295
|
+
const original = await readStagedOptional(absolute, action.path);
|
|
296
|
+
staged.set(absolute, { content: action.content, mode: original?.mode });
|
|
297
|
+
patches.push(unifiedFilePatch(action.path, action.path, original?.content ?? null, action.content));
|
|
298
|
+
results.push({ path: action.path, operation: original ? "update" : "add" });
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
const absolute = await resolveConfinedPath(root, action.path);
|
|
302
|
+
const file = await readStagedRequired(absolute, action.path);
|
|
303
|
+
if (action.kind === "delete") {
|
|
304
|
+
staged.set(absolute, null);
|
|
305
|
+
patches.push(unifiedFilePatch(action.path, action.path, file.content, null));
|
|
306
|
+
results.push({ path: action.path, operation: "delete" });
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
const updated = applyHunks(action.path, file.content, action.hunks);
|
|
310
|
+
if (action.moveTo) {
|
|
311
|
+
const destination = await resolveConfinedPath(root, action.moveTo);
|
|
312
|
+
const samePatchFile = await isSamePatchFile(absolute, destination);
|
|
313
|
+
if (!samePatchFile)
|
|
314
|
+
await readStagedOptional(destination, action.moveTo);
|
|
315
|
+
if (samePatchFile)
|
|
316
|
+
staged.delete(absolute);
|
|
317
|
+
staged.set(destination, { content: updated, mode: file.mode });
|
|
318
|
+
if (!samePatchFile)
|
|
319
|
+
staged.set(absolute, null);
|
|
320
|
+
patches.push(unifiedFilePatch(action.path, action.moveTo, file.content, updated));
|
|
321
|
+
results.push({ path: action.moveTo, previousPath: action.path, operation: "move" });
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
staged.set(absolute, { content: updated, mode: file.mode });
|
|
325
|
+
patches.push(unifiedFilePatch(action.path, action.path, file.content, updated));
|
|
326
|
+
results.push({ path: action.path, operation: "update" });
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
for (const [absolute, file] of staged) {
|
|
330
|
+
if (file)
|
|
331
|
+
await writeTextFile(absolute, file.content, file.mode);
|
|
332
|
+
}
|
|
333
|
+
for (const [absolute, file] of staged) {
|
|
334
|
+
if (!file)
|
|
335
|
+
await rm(absolute, { force: true });
|
|
336
|
+
}
|
|
337
|
+
const unifiedPatch = patches.filter(Boolean).join("\n");
|
|
338
|
+
const stats = countPatchStats(unifiedPatch);
|
|
339
|
+
return { files: results, patch: unifiedPatch, ...stats };
|
|
340
|
+
}
|
|
341
|
+
async function readOptionalTextFile(absolute, displayPath) {
|
|
342
|
+
if (!(await fileExists(absolute)))
|
|
343
|
+
return null;
|
|
344
|
+
const metadata = await stat(absolute);
|
|
345
|
+
if (!metadata.isFile())
|
|
346
|
+
throw patchError(`path is not a regular file: ${displayPath}`);
|
|
347
|
+
return { content: await readUtf8Text(absolute, displayPath), mode: metadata.mode };
|
|
348
|
+
}
|
|
349
|
+
async function readUtf8Text(absolute, displayPath) {
|
|
350
|
+
const bytes = await readFile(absolute);
|
|
351
|
+
let content;
|
|
352
|
+
try {
|
|
353
|
+
content = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
throw patchError(`file is not valid UTF-8 text: ${displayPath}`);
|
|
357
|
+
}
|
|
358
|
+
if (content.includes("\0"))
|
|
359
|
+
throw patchError(`file appears to be binary: ${displayPath}`);
|
|
360
|
+
return content;
|
|
361
|
+
}
|
|
362
|
+
async function writeTextFile(destination, content, mode) {
|
|
363
|
+
await mkdir(dirname(destination), { recursive: true });
|
|
364
|
+
const temporary = `${destination}.devspace-patch-${process.pid}-${randomUUID()}`;
|
|
365
|
+
try {
|
|
366
|
+
await writeFile(temporary, content, mode === undefined ? undefined : { mode });
|
|
367
|
+
await replaceFile(temporary, destination, await fileExists(destination));
|
|
368
|
+
}
|
|
369
|
+
catch (error) {
|
|
370
|
+
await rm(temporary, { force: true });
|
|
371
|
+
throw error;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function unifiedFilePatch(oldPath, newPath, oldContent, newContent) {
|
|
375
|
+
const oldFileName = oldContent === null ? "/dev/null" : `a/${oldPath}`;
|
|
376
|
+
const newFileName = newContent === null ? "/dev/null" : `b/${newPath}`;
|
|
377
|
+
const body = createTwoFilesPatch(oldFileName, newFileName, oldContent ?? "", newContent ?? "", "", "", { context: 3, headerOptions: FILE_HEADERS_ONLY });
|
|
378
|
+
return [
|
|
379
|
+
`diff --git a/${oldPath} b/${newPath}`,
|
|
380
|
+
oldContent === null ? "new file mode 100644" : undefined,
|
|
381
|
+
newContent === null ? "deleted file mode 100644" : undefined,
|
|
382
|
+
stripFinalNewline(body),
|
|
383
|
+
]
|
|
384
|
+
.filter((line) => line !== undefined)
|
|
385
|
+
.join("\n");
|
|
386
|
+
}
|
|
387
|
+
function stripFinalNewline(value) {
|
|
388
|
+
if (value.endsWith("\r\n"))
|
|
389
|
+
return value.slice(0, -2);
|
|
390
|
+
if (value.endsWith("\n"))
|
|
391
|
+
return value.slice(0, -1);
|
|
392
|
+
return value;
|
|
393
|
+
}
|
|
394
|
+
function countPatchStats(patch) {
|
|
395
|
+
let additions = 0;
|
|
396
|
+
let removals = 0;
|
|
397
|
+
for (const line of patch.split("\n")) {
|
|
398
|
+
if (line.startsWith("+") && !line.startsWith("+++"))
|
|
399
|
+
additions += 1;
|
|
400
|
+
if (line.startsWith("-") && !line.startsWith("---"))
|
|
401
|
+
removals += 1;
|
|
402
|
+
}
|
|
403
|
+
return { additions, removals };
|
|
404
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { close, constants as fsConstants, fstat, fsync, write, } from "node:fs";
|
|
2
|
+
import koffi from "koffi";
|
|
3
|
+
import { ArtifactError } from "./artifact-error.js";
|
|
4
|
+
const NO_FOLLOW = fsConstants.O_NOFOLLOW ?? 0;
|
|
5
|
+
const O_CLOEXEC = 0x01000000;
|
|
6
|
+
const DIRECTORY_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_DIRECTORY ?? 0) | NO_FOLLOW | O_CLOEXEC;
|
|
7
|
+
const AT_SYMLINK_NOFOLLOW = 0x0020;
|
|
8
|
+
const S_IFMT = 0o170000;
|
|
9
|
+
const S_IFREG = 0o100000;
|
|
10
|
+
export async function prepareDarwinArtifactDestinationDirectory(workspaceRoot, parentParts) {
|
|
11
|
+
const libc = darwinLibc();
|
|
12
|
+
const directoryFds = [];
|
|
13
|
+
let rootFd = libc.open(workspaceRoot, DIRECTORY_FLAGS);
|
|
14
|
+
if (rootFd < 0) {
|
|
15
|
+
throw new ArtifactError("artifact_workspace_unsafe", "Selected workspace root is not a real directory.");
|
|
16
|
+
}
|
|
17
|
+
let parentFd = rootFd;
|
|
18
|
+
try {
|
|
19
|
+
for (const part of parentParts) {
|
|
20
|
+
if (libc.mkdirat(parentFd, part, 0o755) < 0
|
|
21
|
+
&& koffi.errno() !== koffi.os.errno.EEXIST) {
|
|
22
|
+
throw new ArtifactError("artifact_destination_parent_unsafe", "Artifact destination parent could not be created safely.");
|
|
23
|
+
}
|
|
24
|
+
const childFd = libc.openat(parentFd, part, DIRECTORY_FLAGS);
|
|
25
|
+
if (childFd < 0) {
|
|
26
|
+
throw new ArtifactError("artifact_destination_parent_unsafe", "Artifact destination parent must be a real directory inside the workspace.");
|
|
27
|
+
}
|
|
28
|
+
directoryFds.push(childFd);
|
|
29
|
+
parentFd = childFd;
|
|
30
|
+
}
|
|
31
|
+
const finalParentFd = parentFd;
|
|
32
|
+
return {
|
|
33
|
+
async createExclusiveFile(name, mode) {
|
|
34
|
+
const fd = libc.openat(finalParentFd, name, fsConstants.O_WRONLY
|
|
35
|
+
| fsConstants.O_CREAT
|
|
36
|
+
| fsConstants.O_EXCL
|
|
37
|
+
| NO_FOLLOW
|
|
38
|
+
| O_CLOEXEC, mode);
|
|
39
|
+
if (fd < 0) {
|
|
40
|
+
throw new ArtifactError("artifact_partial_unsafe", "Native file partial could not be created safely.");
|
|
41
|
+
}
|
|
42
|
+
return artifactFileFromFd(fd);
|
|
43
|
+
},
|
|
44
|
+
async statRegularFile(name) {
|
|
45
|
+
// Darwin's LP64 struct stat is 144 bytes. Use a raw buffer here instead
|
|
46
|
+
// of nested Koffi output marshalling, then read only the fields we need.
|
|
47
|
+
const entry = Buffer.alloc(144);
|
|
48
|
+
if (libc.fstatat(finalParentFd, name, entry, AT_SYMLINK_NOFOLLOW) < 0) {
|
|
49
|
+
const errno = koffi.errno();
|
|
50
|
+
if (errno === koffi.os.errno.ENOENT)
|
|
51
|
+
return undefined;
|
|
52
|
+
throw new ArtifactError("artifact_entry_unsafe", `Artifact entry could not be inspected safely (errno ${errno}).`);
|
|
53
|
+
}
|
|
54
|
+
return darwinArtifactEntry(entry);
|
|
55
|
+
},
|
|
56
|
+
async link(sourceName, destinationName) {
|
|
57
|
+
if (libc.linkat(finalParentFd, sourceName, finalParentFd, destinationName, 0) === 0) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const errno = koffi.errno();
|
|
61
|
+
if (errno === koffi.os.errno.EEXIST) {
|
|
62
|
+
// SAFETY: The surrounding checks or construction already match this type.
|
|
63
|
+
const error = new Error("Artifact destination already exists.");
|
|
64
|
+
error.code = "EEXIST";
|
|
65
|
+
throw error;
|
|
66
|
+
}
|
|
67
|
+
throw new ArtifactError("artifact_destination_publish_failed", `Native file could not be published at the requested destination (errno ${errno}).`);
|
|
68
|
+
},
|
|
69
|
+
async unlink(name) {
|
|
70
|
+
if (libc.unlinkat(finalParentFd, name, 0) === 0)
|
|
71
|
+
return;
|
|
72
|
+
const errno = koffi.errno();
|
|
73
|
+
if (errno === koffi.os.errno.ENOENT)
|
|
74
|
+
return;
|
|
75
|
+
throw new Error(`Could not unlink artifact entry (errno ${errno}).`);
|
|
76
|
+
},
|
|
77
|
+
listEntries: () => listDirectoryEntries(finalParentFd, libc),
|
|
78
|
+
async close() {
|
|
79
|
+
for (const fd of directoryFds.reverse()) {
|
|
80
|
+
await closeFd(fd).catch(() => undefined);
|
|
81
|
+
}
|
|
82
|
+
if (rootFd >= 0) {
|
|
83
|
+
await closeFd(rootFd).catch(() => undefined);
|
|
84
|
+
rootFd = -1;
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
for (const fd of directoryFds.reverse()) {
|
|
91
|
+
await closeFd(fd).catch(() => undefined);
|
|
92
|
+
}
|
|
93
|
+
await closeFd(rootFd).catch(() => undefined);
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
let cachedDarwinLibc;
|
|
98
|
+
function darwinLibc() {
|
|
99
|
+
cachedDarwinLibc ??= createDarwinLibc();
|
|
100
|
+
return cachedDarwinLibc;
|
|
101
|
+
}
|
|
102
|
+
function createDarwinLibc() {
|
|
103
|
+
const libc = koffi.load("/usr/lib/libSystem.B.dylib");
|
|
104
|
+
const open = libc.func("int open(const char *path, int flags, ...)");
|
|
105
|
+
const openat = libc.func("int openat(int fd, const char *path, int flags, ...)");
|
|
106
|
+
const DIR = koffi.opaque("DevSpaceArtifactDarwinDIR");
|
|
107
|
+
const DIR_PTR = koffi.pointer(DIR);
|
|
108
|
+
const DIRENT = koffi.struct("DevSpaceArtifactDarwinDirent", {
|
|
109
|
+
d_ino: "uint64_t",
|
|
110
|
+
d_seekoff: "uint64_t",
|
|
111
|
+
d_reclen: "uint16_t",
|
|
112
|
+
d_namlen: "uint16_t",
|
|
113
|
+
d_type: "uint8_t",
|
|
114
|
+
d_name: koffi.array("char", 1024, "String"),
|
|
115
|
+
});
|
|
116
|
+
const DIRENT_PTR = koffi.pointer(DIRENT);
|
|
117
|
+
// SAFETY: The surrounding checks or construction already match this type.
|
|
118
|
+
return {
|
|
119
|
+
open(path, flags, mode) {
|
|
120
|
+
return mode === undefined ? open(path, flags) : open(path, flags, "int", mode);
|
|
121
|
+
},
|
|
122
|
+
openat(fd, path, flags, mode) {
|
|
123
|
+
return mode === undefined
|
|
124
|
+
? openat(fd, path, flags)
|
|
125
|
+
: openat(fd, path, flags, "int", mode);
|
|
126
|
+
},
|
|
127
|
+
mkdirat: libc.func("mkdirat", "int", ["int", "str", "uint32_t"]),
|
|
128
|
+
fstatat: libc.func("fstatat", "int", ["int", "str", "void *", "int"]),
|
|
129
|
+
linkat: libc.func("linkat", "int", ["int", "str", "int", "str", "int"]),
|
|
130
|
+
unlinkat: libc.func("unlinkat", "int", ["int", "str", "int"]),
|
|
131
|
+
dup: libc.func("dup", "int", ["int"]),
|
|
132
|
+
fdopendir: libc.func("fdopendir", DIR_PTR, ["int"]),
|
|
133
|
+
readdir: libc.func("readdir", DIRENT_PTR, [DIR_PTR]),
|
|
134
|
+
closedir: libc.func("closedir", "int", [DIR_PTR]),
|
|
135
|
+
DIRENT,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function darwinArtifactEntry(entry) {
|
|
139
|
+
const mode = entry.readUInt16LE(4);
|
|
140
|
+
if ((mode & S_IFMT) !== S_IFREG)
|
|
141
|
+
return undefined;
|
|
142
|
+
const mtimeSeconds = Number(entry.readBigInt64LE(48));
|
|
143
|
+
const mtimeNanoseconds = Number(entry.readBigInt64LE(56));
|
|
144
|
+
return {
|
|
145
|
+
dev: entry.readInt32LE(0),
|
|
146
|
+
ino: Number(entry.readBigUInt64LE(8)),
|
|
147
|
+
size: Number(entry.readBigInt64LE(96)),
|
|
148
|
+
uid: entry.readUInt32LE(16),
|
|
149
|
+
mtimeMs: (mtimeSeconds * 1_000) + (mtimeNanoseconds / 1_000_000),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
async function listDirectoryEntries(parentFd, libc) {
|
|
153
|
+
const duplicateFd = libc.dup(parentFd);
|
|
154
|
+
if (duplicateFd < 0) {
|
|
155
|
+
throw new ArtifactError("artifact_directory_unsafe", "Artifact destination directory could not be inspected safely.");
|
|
156
|
+
}
|
|
157
|
+
const directory = libc.fdopendir(duplicateFd);
|
|
158
|
+
if (directory === null) {
|
|
159
|
+
await closeFd(duplicateFd).catch(() => undefined);
|
|
160
|
+
throw new ArtifactError("artifact_directory_unsafe", "Artifact destination directory could not be inspected safely.");
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
const entries = [];
|
|
164
|
+
while (true) {
|
|
165
|
+
koffi.errno(0);
|
|
166
|
+
const pointer = libc.readdir(directory);
|
|
167
|
+
if (pointer === null) {
|
|
168
|
+
const errno = koffi.errno();
|
|
169
|
+
if (errno !== 0) {
|
|
170
|
+
throw new ArtifactError("artifact_directory_unsafe", `Artifact destination directory enumeration failed (errno ${errno}).`);
|
|
171
|
+
}
|
|
172
|
+
return entries;
|
|
173
|
+
}
|
|
174
|
+
// SAFETY: The surrounding checks or construction already match this type.
|
|
175
|
+
const entry = koffi.decode(pointer, libc.DIRENT);
|
|
176
|
+
const name = entry.d_name;
|
|
177
|
+
if (name && name !== "." && name !== "..")
|
|
178
|
+
entries.push(name);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
libc.closedir(directory);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function artifactFileFromFd(fd) {
|
|
186
|
+
let open = true;
|
|
187
|
+
return {
|
|
188
|
+
async writeAll(buffer, position) {
|
|
189
|
+
let offset = 0;
|
|
190
|
+
while (offset < buffer.length) {
|
|
191
|
+
const bytesWritten = await writeFd(fd, buffer, offset, buffer.length - offset, position + offset);
|
|
192
|
+
if (bytesWritten <= 0) {
|
|
193
|
+
throw new ArtifactError("artifact_short_write", "Native file was not fully written.");
|
|
194
|
+
}
|
|
195
|
+
offset += bytesWritten;
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
sync: () => fsyncFd(fd),
|
|
199
|
+
stat: () => fstatFd(fd),
|
|
200
|
+
async close() {
|
|
201
|
+
if (!open)
|
|
202
|
+
return;
|
|
203
|
+
open = false;
|
|
204
|
+
await closeFd(fd);
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function writeFd(fd, buffer, offset, length, position) {
|
|
209
|
+
return new Promise((resolve, reject) => {
|
|
210
|
+
write(fd, buffer, offset, length, position, (error, bytesWritten) => {
|
|
211
|
+
if (error)
|
|
212
|
+
reject(error);
|
|
213
|
+
else
|
|
214
|
+
resolve(bytesWritten);
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function fsyncFd(fd) {
|
|
219
|
+
return new Promise((resolve, reject) => {
|
|
220
|
+
fsync(fd, (error) => error ? reject(error) : resolve());
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
function fstatFd(fd) {
|
|
224
|
+
return new Promise((resolve, reject) => {
|
|
225
|
+
fstat(fd, (error, stats) => error ? reject(error) : resolve(stats));
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
function closeFd(fd) {
|
|
229
|
+
return new Promise((resolve, reject) => {
|
|
230
|
+
close(fd, (error) => error ? reject(error) : resolve());
|
|
231
|
+
});
|
|
232
|
+
}
|