drowse.ai 5.3.1__py3-none-any.whl
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.
- drowse/__init__.py +312 -0
- drowse/__main__.py +5 -0
- drowse/cli/__init__.py +5 -0
- drowse/cli/alpha_grid.py +96 -0
- drowse/cli/config_file.py +340 -0
- drowse/cli/main.py +52 -0
- drowse/cli/parsers.py +1478 -0
- drowse/cli/runners/__init__.py +155 -0
- drowse/cli/runners/config.py +85 -0
- drowse/cli/runners/experiment.py +344 -0
- drowse/cli/runners/lens.py +661 -0
- drowse/cli/runners/manifold.py +1097 -0
- drowse/cli/runners/pack.py +413 -0
- drowse/cli/runners/sae.py +304 -0
- drowse/cli/runners/serve.py +220 -0
- drowse/cli/runners/shared.py +389 -0
- drowse/cli/runners/template.py +232 -0
- drowse/core/__init__.py +1 -0
- drowse/core/capture.py +1205 -0
- drowse/core/errors.py +260 -0
- drowse/core/events.py +156 -0
- drowse/core/extraction.py +3076 -0
- drowse/core/generation.py +1738 -0
- drowse/core/generation_finalizer.py +278 -0
- drowse/core/histogram.py +30 -0
- drowse/core/hooks.py +1885 -0
- drowse/core/instruments/__init__.py +49 -0
- drowse/core/instruments/geometry.py +551 -0
- drowse/core/instruments/lens.py +1341 -0
- drowse/core/instruments/protocol.py +211 -0
- drowse/core/instruments/sae.py +935 -0
- drowse/core/instruments/types.py +597 -0
- drowse/core/jlens.py +874 -0
- drowse/core/jlens_fit.py +1305 -0
- drowse/core/joint_logprobs.py +748 -0
- drowse/core/loom.py +1938 -0
- drowse/core/loom_diff.py +408 -0
- drowse/core/mahalanobis.py +579 -0
- drowse/core/manifold.py +4106 -0
- drowse/core/measurements.py +382 -0
- drowse/core/model.py +1724 -0
- drowse/core/monitor.py +2060 -0
- drowse/core/monitor_attach.py +682 -0
- drowse/core/naming.py +42 -0
- drowse/core/naturalness.py +187 -0
- drowse/core/profile.py +617 -0
- drowse/core/relp.py +313 -0
- drowse/core/results.py +467 -0
- drowse/core/role_templates.py +677 -0
- drowse/core/sae.py +891 -0
- drowse/core/sae_training.py +239 -0
- drowse/core/sampling.py +127 -0
- drowse/core/scene.py +810 -0
- drowse/core/scoring.py +270 -0
- drowse/core/session.py +11015 -0
- drowse/core/static_cache.py +316 -0
- drowse/core/steering.py +229 -0
- drowse/core/steering_composer.py +1135 -0
- drowse/core/steering_expr.py +1413 -0
- drowse/core/surface_topology.py +128 -0
- drowse/core/token_callback.py +52 -0
- drowse/core/token_payloads.py +244 -0
- drowse/core/topology.py +1469 -0
- drowse/core/transcript.py +582 -0
- drowse/core/tree_filter.py +353 -0
- drowse/core/triggers.py +250 -0
- drowse/data/baseline_prompts.json +50 -0
- drowse/data/manifolds/confident.uncertain/manifold.json +28 -0
- drowse/data/manifolds/confident.uncertain/nodes/00_confident.json +50 -0
- drowse/data/manifolds/confident.uncertain/nodes/01_uncertain.json +50 -0
- drowse/data/manifolds/creative.conventional/manifold.json +28 -0
- drowse/data/manifolds/creative.conventional/nodes/00_creative.json +50 -0
- drowse/data/manifolds/creative.conventional/nodes/01_conventional.json +50 -0
- drowse/data/manifolds/curious.disinterested/manifold.json +28 -0
- drowse/data/manifolds/curious.disinterested/nodes/00_curious.json +50 -0
- drowse/data/manifolds/curious.disinterested/nodes/01_disinterested.json +50 -0
- drowse/data/manifolds/direct.indirect/manifold.json +28 -0
- drowse/data/manifolds/direct.indirect/nodes/00_direct.json +50 -0
- drowse/data/manifolds/direct.indirect/nodes/01_indirect.json +50 -0
- drowse/data/manifolds/emotions/manifold.json +115 -0
- drowse/data/manifolds/emotions/nodes/00_excited.json +50 -0
- drowse/data/manifolds/emotions/nodes/01_happy.json +50 -0
- drowse/data/manifolds/emotions/nodes/02_calm.json +50 -0
- drowse/data/manifolds/emotions/nodes/03_weary.json +50 -0
- drowse/data/manifolds/emotions/nodes/04_sad.json +50 -0
- drowse/data/manifolds/emotions/nodes/05_distressed.json +50 -0
- drowse/data/manifolds/emotions/nodes/06_alert.json +50 -0
- drowse/data/manifolds/emotions/nodes/07_dominant.json +50 -0
- drowse/data/manifolds/emotions/nodes/08_submissive.json +50 -0
- drowse/data/manifolds/emotions/nodes/09_angry.json +50 -0
- drowse/data/manifolds/emotions/nodes/10_fearful.json +50 -0
- drowse/data/manifolds/emotions/nodes/11_surprised.json +50 -0
- drowse/data/manifolds/emotions/nodes/12_triumphant.json +50 -0
- drowse/data/manifolds/emotions/nodes/13_humiliated.json +50 -0
- drowse/data/manifolds/emotions/nodes/14_disgusted.json +50 -0
- drowse/data/manifolds/emotions/nodes/15_bored.json +50 -0
- drowse/data/manifolds/emotions/nodes/16_grateful.json +50 -0
- drowse/data/manifolds/emotions/nodes/17_relieved.json +50 -0
- drowse/data/manifolds/emotions/nodes/18_playful.json +50 -0
- drowse/data/manifolds/emotions/nodes/19_hopeful.json +50 -0
- drowse/data/manifolds/formal.casual/manifold.json +28 -0
- drowse/data/manifolds/formal.casual/nodes/00_formal.json +50 -0
- drowse/data/manifolds/formal.casual/nodes/01_casual.json +50 -0
- drowse/data/manifolds/honest.deceptive/manifold.json +28 -0
- drowse/data/manifolds/honest.deceptive/nodes/00_honest.json +50 -0
- drowse/data/manifolds/honest.deceptive/nodes/01_deceptive.json +50 -0
- drowse/data/manifolds/humorous.serious/manifold.json +28 -0
- drowse/data/manifolds/humorous.serious/nodes/00_humorous.json +50 -0
- drowse/data/manifolds/humorous.serious/nodes/01_serious.json +50 -0
- drowse/data/manifolds/individualist.collectivist/manifold.json +28 -0
- drowse/data/manifolds/individualist.collectivist/nodes/00_individualist.json +50 -0
- drowse/data/manifolds/individualist.collectivist/nodes/01_collectivist.json +50 -0
- drowse/data/manifolds/masculine.feminine/manifold.json +28 -0
- drowse/data/manifolds/masculine.feminine/nodes/00_masculine.json +50 -0
- drowse/data/manifolds/masculine.feminine/nodes/01_feminine.json +50 -0
- drowse/data/manifolds/months/manifold.json +120 -0
- drowse/data/manifolds/months/nodes/00_january.json +50 -0
- drowse/data/manifolds/months/nodes/01_february.json +50 -0
- drowse/data/manifolds/months/nodes/02_march.json +50 -0
- drowse/data/manifolds/months/nodes/03_april.json +50 -0
- drowse/data/manifolds/months/nodes/04_may.json +50 -0
- drowse/data/manifolds/months/nodes/05_june.json +50 -0
- drowse/data/manifolds/months/nodes/06_july.json +50 -0
- drowse/data/manifolds/months/nodes/07_august.json +50 -0
- drowse/data/manifolds/months/nodes/08_september.json +50 -0
- drowse/data/manifolds/months/nodes/09_october.json +50 -0
- drowse/data/manifolds/months/nodes/10_november.json +50 -0
- drowse/data/manifolds/months/nodes/11_december.json +50 -0
- drowse/data/manifolds/personas/manifold.json +550 -0
- drowse/data/manifolds/personas/nodes/00_assistant.json +50 -0
- drowse/data/manifolds/personas/nodes/01_analyst.json +50 -0
- drowse/data/manifolds/personas/nodes/02_impostor.json +50 -0
- drowse/data/manifolds/personas/nodes/03_teacher.json +50 -0
- drowse/data/manifolds/personas/nodes/04_doctor.json +50 -0
- drowse/data/manifolds/personas/nodes/05_librarian.json +50 -0
- drowse/data/manifolds/personas/nodes/06_farmer.json +50 -0
- drowse/data/manifolds/personas/nodes/07_soldier.json +50 -0
- drowse/data/manifolds/personas/nodes/08_lawyer.json +50 -0
- drowse/data/manifolds/personas/nodes/09_chef.json +50 -0
- drowse/data/manifolds/personas/nodes/100_assassin.json +50 -0
- drowse/data/manifolds/personas/nodes/101_thief.json +50 -0
- drowse/data/manifolds/personas/nodes/102_conman.json +50 -0
- drowse/data/manifolds/personas/nodes/103_hacker.json +50 -0
- drowse/data/manifolds/personas/nodes/104_cultist.json +50 -0
- drowse/data/manifolds/personas/nodes/105_tyrant.json +50 -0
- drowse/data/manifolds/personas/nodes/106_vandal.json +50 -0
- drowse/data/manifolds/personas/nodes/10_journalist.json +50 -0
- drowse/data/manifolds/personas/nodes/11_mechanic.json +50 -0
- drowse/data/manifolds/personas/nodes/12_sailor.json +50 -0
- drowse/data/manifolds/personas/nodes/13_pilot.json +50 -0
- drowse/data/manifolds/personas/nodes/14_athlete.json +50 -0
- drowse/data/manifolds/personas/nodes/15_engineer.json +50 -0
- drowse/data/manifolds/personas/nodes/16_scientist.json +50 -0
- drowse/data/manifolds/personas/nodes/17_banker.json +50 -0
- drowse/data/manifolds/personas/nodes/18_salesperson.json +50 -0
- drowse/data/manifolds/personas/nodes/19_nerd.json +50 -0
- drowse/data/manifolds/personas/nodes/20_jock.json +50 -0
- drowse/data/manifolds/personas/nodes/21_gamer.json +50 -0
- drowse/data/manifolds/personas/nodes/22_furry.json +50 -0
- drowse/data/manifolds/personas/nodes/23_weeaboo.json +50 -0
- drowse/data/manifolds/personas/nodes/24_influencer.json +50 -0
- drowse/data/manifolds/personas/nodes/25_stoner.json +50 -0
- drowse/data/manifolds/personas/nodes/26_femboy.json +50 -0
- drowse/data/manifolds/personas/nodes/27_ceo.json +50 -0
- drowse/data/manifolds/personas/nodes/28_emperor.json +50 -0
- drowse/data/manifolds/personas/nodes/29_president.json +50 -0
- drowse/data/manifolds/personas/nodes/30_diplomat.json +50 -0
- drowse/data/manifolds/personas/nodes/31_judge.json +50 -0
- drowse/data/manifolds/personas/nodes/32_bureaucrat.json +50 -0
- drowse/data/manifolds/personas/nodes/33_conservative.json +50 -0
- drowse/data/manifolds/personas/nodes/34_liberal.json +50 -0
- drowse/data/manifolds/personas/nodes/35_libertarian.json +50 -0
- drowse/data/manifolds/personas/nodes/36_communist.json +50 -0
- drowse/data/manifolds/personas/nodes/37_anarchist.json +50 -0
- drowse/data/manifolds/personas/nodes/38_reactionary.json +50 -0
- drowse/data/manifolds/personas/nodes/39_loner.json +50 -0
- drowse/data/manifolds/personas/nodes/40_friend.json +50 -0
- drowse/data/manifolds/personas/nodes/41_rival.json +50 -0
- drowse/data/manifolds/personas/nodes/42_stranger.json +50 -0
- drowse/data/manifolds/personas/nodes/43_lover.json +50 -0
- drowse/data/manifolds/personas/nodes/44_stalker.json +50 -0
- drowse/data/manifolds/personas/nodes/45_lunatic.json +50 -0
- drowse/data/manifolds/personas/nodes/46_paranoid.json +50 -0
- drowse/data/manifolds/personas/nodes/47_detective.json +50 -0
- drowse/data/manifolds/personas/nodes/48_therapist.json +50 -0
- drowse/data/manifolds/personas/nodes/49_nomad.json +50 -0
- drowse/data/manifolds/personas/nodes/50_pirate.json +50 -0
- drowse/data/manifolds/personas/nodes/51_child.json +50 -0
- drowse/data/manifolds/personas/nodes/52_caveman.json +50 -0
- drowse/data/manifolds/personas/nodes/53_monk.json +50 -0
- drowse/data/manifolds/personas/nodes/54_knight.json +50 -0
- drowse/data/manifolds/personas/nodes/55_alchemist.json +50 -0
- drowse/data/manifolds/personas/nodes/56_blacksmith.json +50 -0
- drowse/data/manifolds/personas/nodes/57_viking.json +50 -0
- drowse/data/manifolds/personas/nodes/58_druid.json +50 -0
- drowse/data/manifolds/personas/nodes/59_poet.json +50 -0
- drowse/data/manifolds/personas/nodes/60_novelist.json +50 -0
- drowse/data/manifolds/personas/nodes/61_jester.json +50 -0
- drowse/data/manifolds/personas/nodes/62_philosopher.json +50 -0
- drowse/data/manifolds/personas/nodes/63_painter.json +50 -0
- drowse/data/manifolds/personas/nodes/64_musician.json +50 -0
- drowse/data/manifolds/personas/nodes/65_oracle.json +50 -0
- drowse/data/manifolds/personas/nodes/66_god.json +50 -0
- drowse/data/manifolds/personas/nodes/67_angel.json +50 -0
- drowse/data/manifolds/personas/nodes/68_prophet.json +50 -0
- drowse/data/manifolds/personas/nodes/69_saint.json +50 -0
- drowse/data/manifolds/personas/nodes/70_ghost.json +50 -0
- drowse/data/manifolds/personas/nodes/71_phoenix.json +50 -0
- drowse/data/manifolds/personas/nodes/72_witch.json +50 -0
- drowse/data/manifolds/personas/nodes/73_vampire.json +50 -0
- drowse/data/manifolds/personas/nodes/74_mermaid.json +50 -0
- drowse/data/manifolds/personas/nodes/75_sphinx.json +50 -0
- drowse/data/manifolds/personas/nodes/76_banshee.json +50 -0
- drowse/data/manifolds/personas/nodes/77_golem.json +50 -0
- drowse/data/manifolds/personas/nodes/78_deer.json +50 -0
- drowse/data/manifolds/personas/nodes/79_wolf.json +50 -0
- drowse/data/manifolds/personas/nodes/80_raven.json +50 -0
- drowse/data/manifolds/personas/nodes/81_serpent.json +50 -0
- drowse/data/manifolds/personas/nodes/82_lion.json +50 -0
- drowse/data/manifolds/personas/nodes/83_tree.json +50 -0
- drowse/data/manifolds/personas/nodes/84_river.json +50 -0
- drowse/data/manifolds/personas/nodes/85_storm.json +50 -0
- drowse/data/manifolds/personas/nodes/86_flame.json +50 -0
- drowse/data/manifolds/personas/nodes/87_mirror.json +50 -0
- drowse/data/manifolds/personas/nodes/88_clock.json +50 -0
- drowse/data/manifolds/personas/nodes/89_computer.json +50 -0
- drowse/data/manifolds/personas/nodes/90_robot.json +50 -0
- drowse/data/manifolds/personas/nodes/91_cyborg.json +50 -0
- drowse/data/manifolds/personas/nodes/92_drone.json +50 -0
- drowse/data/manifolds/personas/nodes/93_mecha.json +50 -0
- drowse/data/manifolds/personas/nodes/94_alien.json +50 -0
- drowse/data/manifolds/personas/nodes/95_trickster.json +50 -0
- drowse/data/manifolds/personas/nodes/96_virus.json +50 -0
- drowse/data/manifolds/personas/nodes/97_spy.json +50 -0
- drowse/data/manifolds/personas/nodes/98_narcissist.json +50 -0
- drowse/data/manifolds/personas/nodes/99_demon.json +50 -0
- drowse/data/manifolds/refusing.compliant/manifold.json +28 -0
- drowse/data/manifolds/refusing.compliant/nodes/00_refusing.json +50 -0
- drowse/data/manifolds/refusing.compliant/nodes/01_compliant.json +50 -0
- drowse/data/manifolds/religious.secular/manifold.json +28 -0
- drowse/data/manifolds/religious.secular/nodes/00_religious.json +50 -0
- drowse/data/manifolds/religious.secular/nodes/01_secular.json +50 -0
- drowse/data/manifolds/sincere.manipulative/manifold.json +28 -0
- drowse/data/manifolds/sincere.manipulative/nodes/00_sincere.json +50 -0
- drowse/data/manifolds/sincere.manipulative/nodes/01_manipulative.json +50 -0
- drowse/data/manifolds/sycophantic.blunt/manifold.json +28 -0
- drowse/data/manifolds/sycophantic.blunt/nodes/00_sycophantic.json +50 -0
- drowse/data/manifolds/sycophantic.blunt/nodes/01_blunt.json +50 -0
- drowse/data/manifolds/technical.accessible/manifold.json +28 -0
- drowse/data/manifolds/technical.accessible/nodes/00_technical.json +50 -0
- drowse/data/manifolds/technical.accessible/nodes/01_accessible.json +50 -0
- drowse/data/manifolds/traditional.progressive/manifold.json +28 -0
- drowse/data/manifolds/traditional.progressive/nodes/00_traditional.json +50 -0
- drowse/data/manifolds/traditional.progressive/nodes/01_progressive.json +50 -0
- drowse/data/manifolds/verbose.concise/manifold.json +28 -0
- drowse/data/manifolds/verbose.concise/nodes/00_verbose.json +50 -0
- drowse/data/manifolds/verbose.concise/nodes/01_concise.json +50 -0
- drowse/data/manifolds/warm.clinical/manifold.json +28 -0
- drowse/data/manifolds/warm.clinical/nodes/00_warm.json +50 -0
- drowse/data/manifolds/warm.clinical/nodes/01_clinical.json +50 -0
- drowse/data/neutral_statements.json +98 -0
- drowse/io/__init__.py +1 -0
- drowse/io/alignment.py +1334 -0
- drowse/io/atomic.py +278 -0
- drowse/io/bake.py +558 -0
- drowse/io/bootstrap.py +73 -0
- drowse/io/brand_migration.py +48 -0
- drowse/io/drowse_archive.py +1830 -0
- drowse/io/gguf_io.py +300 -0
- drowse/io/hf.py +81 -0
- drowse/io/hf_manifolds.py +931 -0
- drowse/io/integrity.py +102 -0
- drowse/io/lens.py +1992 -0
- drowse/io/lens_sources.py +1003 -0
- drowse/io/manifold_authoring.py +1348 -0
- drowse/io/manifold_folder.py +1854 -0
- drowse/io/manifold_lifecycle.py +1253 -0
- drowse/io/manifold_tensors.py +727 -0
- drowse/io/manifolds.py +443 -0
- drowse/io/paths.py +289 -0
- drowse/io/probes_bootstrap.py +58 -0
- drowse/io/sae.py +382 -0
- drowse/io/sae_artifacts.py +318 -0
- drowse/io/selectors.py +503 -0
- drowse/io/shards.py +160 -0
- drowse/io/source_registry.py +138 -0
- drowse/io/staging.py +80 -0
- drowse/io/templates.py +707 -0
- drowse/notebook/__init__.py +38 -0
- drowse/notebook/data.py +99 -0
- drowse/notebook/plots.py +352 -0
- drowse/py.typed +0 -0
- drowse/server/__init__.py +20 -0
- drowse/server/app.py +987 -0
- drowse/server/background_job.py +246 -0
- drowse/server/instrument_routes.py +1101 -0
- drowse/server/manifold_routes.py +1028 -0
- drowse/server/model_names.py +82 -0
- drowse/server/native_common.py +92 -0
- drowse/server/native_routes.py +45 -0
- drowse/server/ollama.py +817 -0
- drowse/server/operation_ledger.py +187 -0
- drowse/server/probe_routes.py +220 -0
- drowse/server/profile_models.py +52 -0
- drowse/server/profile_routes.py +440 -0
- drowse/server/request_helpers.py +198 -0
- drowse/server/request_ledger.py +85 -0
- drowse/server/response_models.py +814 -0
- drowse/server/session_models.py +146 -0
- drowse/server/session_routes.py +150 -0
- drowse/server/sse.py +333 -0
- drowse/server/streaming.py +129 -0
- drowse/server/template_routes.py +161 -0
- drowse/server/tree_models.py +121 -0
- drowse/server/tree_routes.py +550 -0
- drowse/server/ws_events.py +65 -0
- drowse/server/ws_models.py +219 -0
- drowse/server/ws_stream.py +1205 -0
- drowse/web/__init__.py +22 -0
- drowse/web/dist/LICENSE-Fluent-Icons.txt +21 -0
- drowse/web/dist/LICENSE-Fluent-System-Icons.txt +21 -0
- drowse/web/dist/LICENSE-Martian-Mono.txt +93 -0
- drowse/web/dist/LICENSE-Torph.txt +21 -0
- drowse/web/dist/LICENSE-Wix-Madefor.txt +93 -0
- drowse/web/dist/assets/App-BewwoFwv.js +33 -0
- drowse/web/dist/assets/App.css +1 -0
- drowse/web/dist/assets/MartianMono-cyrillic-ext.woff2 +0 -0
- drowse/web/dist/assets/MartianMono-cyrillic.woff2 +0 -0
- drowse/web/dist/assets/MartianMono-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/MartianMono-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-cyrillic.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforDisplay-vietnamese.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-italic-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-italic-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-cyrillic.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-latin-ext.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-latin.woff2 +0 -0
- drowse/web/dist/assets/WixMadeforText-normal-vietnamese.woff2 +0 -0
- drowse/web/dist/assets/ab.svelte-CbVGAYXo.js +1 -0
- drowse/web/dist/assets/artifactUpdates-Cjeu6LJc.js +1 -0
- drowse/web/dist/assets/artifactUpdates-DfAoYC9j.js +1 -0
- drowse/web/dist/assets/chat.svelte-DxKufn9g.js +1 -0
- drowse/web/dist/assets/drawers-BDWC0hIN.js +123 -0
- drowse/web/dist/assets/drawers.css +1 -0
- drowse/web/dist/assets/drowse.js +7 -0
- drowse/web/dist/assets/eleutherai.png +0 -0
- drowse/web/dist/assets/errors-Dvb10QW_.js +2 -0
- drowse/web/dist/assets/expression-4yISdAdq.js +1 -0
- drowse/web/dist/assets/files-CvRivkey.js +1 -0
- drowse/web/dist/assets/files-JhDJVgD_.js +1 -0
- drowse/web/dist/assets/fittingCancellation-D72BZWPZ.js +1 -0
- drowse/web/dist/assets/gemma-3-1b-it.json +1 -0
- drowse/web/dist/assets/gemma-3-270m-it.json +1 -0
- drowse/web/dist/assets/gemma-3-4b-it.json +1 -0
- drowse/web/dist/assets/generation-DbkBAhP_.js +1 -0
- drowse/web/dist/assets/index-client-2OdH6IQp.js +3 -0
- drowse/web/dist/assets/index-client-D4S4PooY.js +1 -0
- drowse/web/dist/assets/index.css +1 -0
- drowse/web/dist/assets/instrumentAuthoring.svelte-Csh7NOGX.js +1 -0
- drowse/web/dist/assets/instrumentAuthoring.svelte-w9YPcDsP.js +1 -0
- drowse/web/dist/assets/instruments.svelte-XnEUQA6B.js +1 -0
- drowse/web/dist/assets/localData-DIBDM_zo.js +1 -0
- drowse/web/dist/assets/loom.svelte-D_YyqHHK.js +1 -0
- drowse/web/dist/assets/manifoldJobs.svelte-9f5hs_J7.js +1 -0
- drowse/web/dist/assets/manifoldJobs.svelte-Bwo2GYOH.js +1 -0
- drowse/web/dist/assets/openai.png +0 -0
- drowse/web/dist/assets/preload-helper-BLdHbfdN.js +1 -0
- drowse/web/dist/assets/probes.svelte-COcN1Rh8.js +1 -0
- drowse/web/dist/assets/registry-B0_pJoMg.js +1 -0
- drowse/web/dist/assets/registry-CQv71XNh.js +1 -0
- drowse/web/dist/assets/sampling.svelte-BU0kED3k.js +1 -0
- drowse/web/dist/assets/samplingCapabilities-DM6eoDoc.js +1 -0
- drowse/web/dist/assets/savedConversations.svelte-BsBLc-p7.js +1 -0
- drowse/web/dist/assets/savedConversations.svelte-TuSes9Kg.js +1 -0
- drowse/web/dist/assets/selectors-BxXnPPN_.js +1 -0
- drowse/web/dist/assets/serviceTools-CG0q1Xqg.js +2 -0
- drowse/web/dist/assets/session.svelte-D2STLuP6.js +1 -0
- drowse/web/dist/assets/steering.svelte-DvFT3O-d.js +1 -0
- drowse/web/dist/assets/steeringPositions-Dr0JOFu7.js +1 -0
- drowse/web/dist/assets/templates-Bkq2x5ID.js +1 -0
- drowse/web/dist/assets/types-CuMUbvHW.js +1 -0
- drowse/web/dist/assets/validation-5wgTuS7k.js +1 -0
- drowse/web/dist/assets/webmcp-DyqJf4z6.js +2 -0
- drowse/web/dist/assets/workspaceController-C2L33e3m.js +1 -0
- drowse/web/dist/assets/workspaceController-DJhXD_BC.js +1 -0
- drowse/web/dist/assets/workspaceTools-BWdmXopx.js +2 -0
- drowse/web/dist/favicon.ico +0 -0
- drowse/web/dist/favicon.svg +1 -0
- drowse/web/dist/icons/apple-touch-icon.png +0 -0
- drowse/web/dist/icons/drowse-192.png +0 -0
- drowse/web/dist/icons/drowse-512.png +0 -0
- drowse/web/dist/icons/drowse-maskable-512.png +0 -0
- drowse/web/dist/icons/tab-analyzing-0.png +0 -0
- drowse/web/dist/icons/tab-analyzing-1.png +0 -0
- drowse/web/dist/icons/tab-analyzing-2.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-0.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-1.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-10.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-11.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-12.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-13.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-14.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-15.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-16.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-17.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-18.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-19.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-2.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-20.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-21.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-22.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-23.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-24.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-25.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-26.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-27.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-28.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-29.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-3.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-30.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-31.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-32.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-33.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-34.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-35.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-36.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-37.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-38.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-39.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-4.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-40.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-41.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-42.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-43.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-44.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-45.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-46.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-47.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-5.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-6.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-7.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-8.png +0 -0
- drowse/web/dist/icons/tab-analyzing-dark-9.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-0.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-1.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-10.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-11.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-12.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-13.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-14.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-15.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-16.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-17.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-18.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-19.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-2.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-20.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-21.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-22.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-23.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-24.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-25.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-26.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-27.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-28.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-29.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-3.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-30.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-31.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-32.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-33.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-34.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-35.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-36.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-37.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-38.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-39.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-4.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-40.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-41.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-42.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-43.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-44.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-45.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-46.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-47.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-5.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-6.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-7.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-8.png +0 -0
- drowse/web/dist/icons/tab-analyzing-light-9.png +0 -0
- drowse/web/dist/icons/tab-chat-settings-dark.png +0 -0
- drowse/web/dist/icons/tab-chat-settings-light.png +0 -0
- drowse/web/dist/icons/tab-chat-settings.png +0 -0
- drowse/web/dist/icons/tab-chats-dark.png +0 -0
- drowse/web/dist/icons/tab-chats-light.png +0 -0
- drowse/web/dist/icons/tab-chats.png +0 -0
- drowse/web/dist/icons/tab-checking-0.png +0 -0
- drowse/web/dist/icons/tab-checking-1.png +0 -0
- drowse/web/dist/icons/tab-checking-2.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-0.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-1.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-10.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-11.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-12.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-13.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-14.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-15.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-16.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-17.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-18.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-19.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-2.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-20.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-21.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-22.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-23.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-24.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-25.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-26.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-27.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-28.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-29.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-3.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-30.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-31.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-32.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-33.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-34.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-35.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-36.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-37.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-38.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-39.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-4.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-40.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-41.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-42.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-43.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-44.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-45.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-46.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-47.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-5.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-6.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-7.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-8.png +0 -0
- drowse/web/dist/icons/tab-checking-dark-9.png +0 -0
- drowse/web/dist/icons/tab-checking-light-0.png +0 -0
- drowse/web/dist/icons/tab-checking-light-1.png +0 -0
- drowse/web/dist/icons/tab-checking-light-10.png +0 -0
- drowse/web/dist/icons/tab-checking-light-11.png +0 -0
- drowse/web/dist/icons/tab-checking-light-12.png +0 -0
- drowse/web/dist/icons/tab-checking-light-13.png +0 -0
- drowse/web/dist/icons/tab-checking-light-14.png +0 -0
- drowse/web/dist/icons/tab-checking-light-15.png +0 -0
- drowse/web/dist/icons/tab-checking-light-16.png +0 -0
- drowse/web/dist/icons/tab-checking-light-17.png +0 -0
- drowse/web/dist/icons/tab-checking-light-18.png +0 -0
- drowse/web/dist/icons/tab-checking-light-19.png +0 -0
- drowse/web/dist/icons/tab-checking-light-2.png +0 -0
- drowse/web/dist/icons/tab-checking-light-20.png +0 -0
- drowse/web/dist/icons/tab-checking-light-21.png +0 -0
- drowse/web/dist/icons/tab-checking-light-22.png +0 -0
- drowse/web/dist/icons/tab-checking-light-23.png +0 -0
- drowse/web/dist/icons/tab-checking-light-24.png +0 -0
- drowse/web/dist/icons/tab-checking-light-25.png +0 -0
- drowse/web/dist/icons/tab-checking-light-26.png +0 -0
- drowse/web/dist/icons/tab-checking-light-27.png +0 -0
- drowse/web/dist/icons/tab-checking-light-28.png +0 -0
- drowse/web/dist/icons/tab-checking-light-29.png +0 -0
- drowse/web/dist/icons/tab-checking-light-3.png +0 -0
- drowse/web/dist/icons/tab-checking-light-30.png +0 -0
- drowse/web/dist/icons/tab-checking-light-31.png +0 -0
- drowse/web/dist/icons/tab-checking-light-32.png +0 -0
- drowse/web/dist/icons/tab-checking-light-33.png +0 -0
- drowse/web/dist/icons/tab-checking-light-34.png +0 -0
- drowse/web/dist/icons/tab-checking-light-35.png +0 -0
- drowse/web/dist/icons/tab-checking-light-36.png +0 -0
- drowse/web/dist/icons/tab-checking-light-37.png +0 -0
- drowse/web/dist/icons/tab-checking-light-38.png +0 -0
- drowse/web/dist/icons/tab-checking-light-39.png +0 -0
- drowse/web/dist/icons/tab-checking-light-4.png +0 -0
- drowse/web/dist/icons/tab-checking-light-40.png +0 -0
- drowse/web/dist/icons/tab-checking-light-41.png +0 -0
- drowse/web/dist/icons/tab-checking-light-42.png +0 -0
- drowse/web/dist/icons/tab-checking-light-43.png +0 -0
- drowse/web/dist/icons/tab-checking-light-44.png +0 -0
- drowse/web/dist/icons/tab-checking-light-45.png +0 -0
- drowse/web/dist/icons/tab-checking-light-46.png +0 -0
- drowse/web/dist/icons/tab-checking-light-47.png +0 -0
- drowse/web/dist/icons/tab-checking-light-5.png +0 -0
- drowse/web/dist/icons/tab-checking-light-6.png +0 -0
- drowse/web/dist/icons/tab-checking-light-7.png +0 -0
- drowse/web/dist/icons/tab-checking-light-8.png +0 -0
- drowse/web/dist/icons/tab-checking-light-9.png +0 -0
- drowse/web/dist/icons/tab-comparison-dark.png +0 -0
- drowse/web/dist/icons/tab-comparison-light.png +0 -0
- drowse/web/dist/icons/tab-comparison.png +0 -0
- drowse/web/dist/icons/tab-controls-dark.png +0 -0
- drowse/web/dist/icons/tab-controls-light.png +0 -0
- drowse/web/dist/icons/tab-controls.png +0 -0
- drowse/web/dist/icons/tab-conversation-dark.png +0 -0
- drowse/web/dist/icons/tab-conversation-light.png +0 -0
- drowse/web/dist/icons/tab-conversation.png +0 -0
- drowse/web/dist/icons/tab-credits-dark.png +0 -0
- drowse/web/dist/icons/tab-credits-light.png +0 -0
- drowse/web/dist/icons/tab-credits.png +0 -0
- drowse/web/dist/icons/tab-downloading-0.png +0 -0
- drowse/web/dist/icons/tab-downloading-1.png +0 -0
- drowse/web/dist/icons/tab-downloading-2.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-0.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-1.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-10.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-11.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-12.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-13.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-14.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-15.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-16.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-17.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-18.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-19.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-2.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-20.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-21.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-22.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-23.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-24.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-25.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-26.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-27.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-28.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-29.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-3.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-30.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-31.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-32.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-33.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-34.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-35.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-36.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-37.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-38.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-39.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-4.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-40.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-41.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-42.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-43.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-44.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-45.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-46.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-47.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-5.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-6.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-7.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-8.png +0 -0
- drowse/web/dist/icons/tab-downloading-dark-9.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-0.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-1.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-10.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-11.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-12.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-13.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-14.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-15.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-16.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-17.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-18.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-19.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-2.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-20.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-21.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-22.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-23.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-24.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-25.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-26.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-27.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-28.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-29.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-3.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-30.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-31.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-32.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-33.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-34.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-35.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-36.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-37.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-38.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-39.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-4.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-40.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-41.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-42.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-43.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-44.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-45.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-46.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-47.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-5.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-6.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-7.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-8.png +0 -0
- drowse/web/dist/icons/tab-downloading-light-9.png +0 -0
- drowse/web/dist/icons/tab-error-dark.png +0 -0
- drowse/web/dist/icons/tab-error-light.png +0 -0
- drowse/web/dist/icons/tab-error.png +0 -0
- drowse/web/dist/icons/tab-home-dark.png +0 -0
- drowse/web/dist/icons/tab-home-light.png +0 -0
- drowse/web/dist/icons/tab-home.png +0 -0
- drowse/web/dist/icons/tab-loading-0.png +0 -0
- drowse/web/dist/icons/tab-loading-1.png +0 -0
- drowse/web/dist/icons/tab-loading-2.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-0.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-1.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-10.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-11.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-12.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-13.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-14.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-15.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-16.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-17.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-18.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-19.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-2.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-20.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-21.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-22.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-23.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-24.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-25.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-26.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-27.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-28.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-29.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-3.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-30.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-31.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-32.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-33.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-34.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-35.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-36.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-37.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-38.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-39.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-4.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-40.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-41.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-42.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-43.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-44.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-45.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-46.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-47.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-5.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-6.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-7.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-8.png +0 -0
- drowse/web/dist/icons/tab-loading-dark-9.png +0 -0
- drowse/web/dist/icons/tab-loading-light-0.png +0 -0
- drowse/web/dist/icons/tab-loading-light-1.png +0 -0
- drowse/web/dist/icons/tab-loading-light-10.png +0 -0
- drowse/web/dist/icons/tab-loading-light-11.png +0 -0
- drowse/web/dist/icons/tab-loading-light-12.png +0 -0
- drowse/web/dist/icons/tab-loading-light-13.png +0 -0
- drowse/web/dist/icons/tab-loading-light-14.png +0 -0
- drowse/web/dist/icons/tab-loading-light-15.png +0 -0
- drowse/web/dist/icons/tab-loading-light-16.png +0 -0
- drowse/web/dist/icons/tab-loading-light-17.png +0 -0
- drowse/web/dist/icons/tab-loading-light-18.png +0 -0
- drowse/web/dist/icons/tab-loading-light-19.png +0 -0
- drowse/web/dist/icons/tab-loading-light-2.png +0 -0
- drowse/web/dist/icons/tab-loading-light-20.png +0 -0
- drowse/web/dist/icons/tab-loading-light-21.png +0 -0
- drowse/web/dist/icons/tab-loading-light-22.png +0 -0
- drowse/web/dist/icons/tab-loading-light-23.png +0 -0
- drowse/web/dist/icons/tab-loading-light-24.png +0 -0
- drowse/web/dist/icons/tab-loading-light-25.png +0 -0
- drowse/web/dist/icons/tab-loading-light-26.png +0 -0
- drowse/web/dist/icons/tab-loading-light-27.png +0 -0
- drowse/web/dist/icons/tab-loading-light-28.png +0 -0
- drowse/web/dist/icons/tab-loading-light-29.png +0 -0
- drowse/web/dist/icons/tab-loading-light-3.png +0 -0
- drowse/web/dist/icons/tab-loading-light-30.png +0 -0
- drowse/web/dist/icons/tab-loading-light-31.png +0 -0
- drowse/web/dist/icons/tab-loading-light-32.png +0 -0
- drowse/web/dist/icons/tab-loading-light-33.png +0 -0
- drowse/web/dist/icons/tab-loading-light-34.png +0 -0
- drowse/web/dist/icons/tab-loading-light-35.png +0 -0
- drowse/web/dist/icons/tab-loading-light-36.png +0 -0
- drowse/web/dist/icons/tab-loading-light-37.png +0 -0
- drowse/web/dist/icons/tab-loading-light-38.png +0 -0
- drowse/web/dist/icons/tab-loading-light-39.png +0 -0
- drowse/web/dist/icons/tab-loading-light-4.png +0 -0
- drowse/web/dist/icons/tab-loading-light-40.png +0 -0
- drowse/web/dist/icons/tab-loading-light-41.png +0 -0
- drowse/web/dist/icons/tab-loading-light-42.png +0 -0
- drowse/web/dist/icons/tab-loading-light-43.png +0 -0
- drowse/web/dist/icons/tab-loading-light-44.png +0 -0
- drowse/web/dist/icons/tab-loading-light-45.png +0 -0
- drowse/web/dist/icons/tab-loading-light-46.png +0 -0
- drowse/web/dist/icons/tab-loading-light-47.png +0 -0
- drowse/web/dist/icons/tab-loading-light-5.png +0 -0
- drowse/web/dist/icons/tab-loading-light-6.png +0 -0
- drowse/web/dist/icons/tab-loading-light-7.png +0 -0
- drowse/web/dist/icons/tab-loading-light-8.png +0 -0
- drowse/web/dist/icons/tab-loading-light-9.png +0 -0
- drowse/web/dist/icons/tab-loom-dark.png +0 -0
- drowse/web/dist/icons/tab-loom-light.png +0 -0
- drowse/web/dist/icons/tab-loom-working-0.png +0 -0
- drowse/web/dist/icons/tab-loom-working-1.png +0 -0
- drowse/web/dist/icons/tab-loom-working-2.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-0.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-1.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-10.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-11.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-12.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-13.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-14.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-15.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-16.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-17.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-18.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-19.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-2.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-20.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-21.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-22.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-23.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-24.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-25.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-26.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-27.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-28.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-29.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-3.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-30.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-31.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-32.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-33.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-34.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-35.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-36.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-37.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-38.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-39.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-4.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-40.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-41.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-42.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-43.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-44.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-45.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-46.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-47.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-5.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-6.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-7.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-8.png +0 -0
- drowse/web/dist/icons/tab-loom-working-dark-9.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-0.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-1.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-10.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-11.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-12.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-13.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-14.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-15.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-16.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-17.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-18.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-19.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-2.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-20.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-21.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-22.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-23.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-24.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-25.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-26.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-27.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-28.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-29.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-3.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-30.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-31.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-32.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-33.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-34.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-35.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-36.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-37.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-38.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-39.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-4.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-40.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-41.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-42.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-43.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-44.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-45.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-46.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-47.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-5.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-6.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-7.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-8.png +0 -0
- drowse/web/dist/icons/tab-loom-working-light-9.png +0 -0
- drowse/web/dist/icons/tab-loom.png +0 -0
- drowse/web/dist/icons/tab-models-dark.png +0 -0
- drowse/web/dist/icons/tab-models-light.png +0 -0
- drowse/web/dist/icons/tab-models.png +0 -0
- drowse/web/dist/icons/tab-offline-dark.png +0 -0
- drowse/web/dist/icons/tab-offline-light.png +0 -0
- drowse/web/dist/icons/tab-offline.png +0 -0
- drowse/web/dist/icons/tab-paused-dark.png +0 -0
- drowse/web/dist/icons/tab-paused-light.png +0 -0
- drowse/web/dist/icons/tab-paused.png +0 -0
- drowse/web/dist/icons/tab-ready-dark.png +0 -0
- drowse/web/dist/icons/tab-ready-light.png +0 -0
- drowse/web/dist/icons/tab-ready.png +0 -0
- drowse/web/dist/icons/tab-saving-0.png +0 -0
- drowse/web/dist/icons/tab-saving-1.png +0 -0
- drowse/web/dist/icons/tab-saving-2.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-0.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-1.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-10.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-11.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-12.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-13.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-14.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-15.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-16.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-17.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-18.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-19.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-2.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-20.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-21.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-22.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-23.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-24.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-25.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-26.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-27.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-28.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-29.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-3.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-30.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-31.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-32.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-33.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-34.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-35.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-36.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-37.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-38.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-39.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-4.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-40.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-41.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-42.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-43.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-44.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-45.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-46.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-47.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-5.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-6.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-7.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-8.png +0 -0
- drowse/web/dist/icons/tab-saving-dark-9.png +0 -0
- drowse/web/dist/icons/tab-saving-light-0.png +0 -0
- drowse/web/dist/icons/tab-saving-light-1.png +0 -0
- drowse/web/dist/icons/tab-saving-light-10.png +0 -0
- drowse/web/dist/icons/tab-saving-light-11.png +0 -0
- drowse/web/dist/icons/tab-saving-light-12.png +0 -0
- drowse/web/dist/icons/tab-saving-light-13.png +0 -0
- drowse/web/dist/icons/tab-saving-light-14.png +0 -0
- drowse/web/dist/icons/tab-saving-light-15.png +0 -0
- drowse/web/dist/icons/tab-saving-light-16.png +0 -0
- drowse/web/dist/icons/tab-saving-light-17.png +0 -0
- drowse/web/dist/icons/tab-saving-light-18.png +0 -0
- drowse/web/dist/icons/tab-saving-light-19.png +0 -0
- drowse/web/dist/icons/tab-saving-light-2.png +0 -0
- drowse/web/dist/icons/tab-saving-light-20.png +0 -0
- drowse/web/dist/icons/tab-saving-light-21.png +0 -0
- drowse/web/dist/icons/tab-saving-light-22.png +0 -0
- drowse/web/dist/icons/tab-saving-light-23.png +0 -0
- drowse/web/dist/icons/tab-saving-light-24.png +0 -0
- drowse/web/dist/icons/tab-saving-light-25.png +0 -0
- drowse/web/dist/icons/tab-saving-light-26.png +0 -0
- drowse/web/dist/icons/tab-saving-light-27.png +0 -0
- drowse/web/dist/icons/tab-saving-light-28.png +0 -0
- drowse/web/dist/icons/tab-saving-light-29.png +0 -0
- drowse/web/dist/icons/tab-saving-light-3.png +0 -0
- drowse/web/dist/icons/tab-saving-light-30.png +0 -0
- drowse/web/dist/icons/tab-saving-light-31.png +0 -0
- drowse/web/dist/icons/tab-saving-light-32.png +0 -0
- drowse/web/dist/icons/tab-saving-light-33.png +0 -0
- drowse/web/dist/icons/tab-saving-light-34.png +0 -0
- drowse/web/dist/icons/tab-saving-light-35.png +0 -0
- drowse/web/dist/icons/tab-saving-light-36.png +0 -0
- drowse/web/dist/icons/tab-saving-light-37.png +0 -0
- drowse/web/dist/icons/tab-saving-light-38.png +0 -0
- drowse/web/dist/icons/tab-saving-light-39.png +0 -0
- drowse/web/dist/icons/tab-saving-light-4.png +0 -0
- drowse/web/dist/icons/tab-saving-light-40.png +0 -0
- drowse/web/dist/icons/tab-saving-light-41.png +0 -0
- drowse/web/dist/icons/tab-saving-light-42.png +0 -0
- drowse/web/dist/icons/tab-saving-light-43.png +0 -0
- drowse/web/dist/icons/tab-saving-light-44.png +0 -0
- drowse/web/dist/icons/tab-saving-light-45.png +0 -0
- drowse/web/dist/icons/tab-saving-light-46.png +0 -0
- drowse/web/dist/icons/tab-saving-light-47.png +0 -0
- drowse/web/dist/icons/tab-saving-light-5.png +0 -0
- drowse/web/dist/icons/tab-saving-light-6.png +0 -0
- drowse/web/dist/icons/tab-saving-light-7.png +0 -0
- drowse/web/dist/icons/tab-saving-light-8.png +0 -0
- drowse/web/dist/icons/tab-saving-light-9.png +0 -0
- drowse/web/dist/icons/tab-thinking-0.png +0 -0
- drowse/web/dist/icons/tab-thinking-1.png +0 -0
- drowse/web/dist/icons/tab-thinking-2.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-0.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-1.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-10.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-11.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-12.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-13.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-14.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-15.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-16.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-17.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-18.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-19.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-2.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-20.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-21.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-22.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-23.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-24.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-25.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-26.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-27.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-28.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-29.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-3.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-30.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-31.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-32.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-33.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-34.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-35.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-36.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-37.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-38.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-39.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-4.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-40.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-41.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-42.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-43.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-44.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-45.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-46.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-47.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-5.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-6.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-7.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-8.png +0 -0
- drowse/web/dist/icons/tab-thinking-dark-9.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-0.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-1.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-10.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-11.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-12.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-13.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-14.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-15.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-16.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-17.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-18.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-19.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-2.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-20.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-21.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-22.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-23.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-24.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-25.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-26.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-27.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-28.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-29.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-3.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-30.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-31.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-32.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-33.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-34.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-35.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-36.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-37.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-38.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-39.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-4.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-40.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-41.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-42.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-43.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-44.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-45.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-46.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-47.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-5.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-6.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-7.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-8.png +0 -0
- drowse/web/dist/icons/tab-thinking-light-9.png +0 -0
- drowse/web/dist/icons/tab-tokens-dark.png +0 -0
- drowse/web/dist/icons/tab-tokens-light.png +0 -0
- drowse/web/dist/icons/tab-tokens.png +0 -0
- drowse/web/dist/icons/tab-training-0.png +0 -0
- drowse/web/dist/icons/tab-training-1.png +0 -0
- drowse/web/dist/icons/tab-training-2.png +0 -0
- drowse/web/dist/icons/tab-training-dark-0.png +0 -0
- drowse/web/dist/icons/tab-training-dark-1.png +0 -0
- drowse/web/dist/icons/tab-training-dark-10.png +0 -0
- drowse/web/dist/icons/tab-training-dark-11.png +0 -0
- drowse/web/dist/icons/tab-training-dark-12.png +0 -0
- drowse/web/dist/icons/tab-training-dark-13.png +0 -0
- drowse/web/dist/icons/tab-training-dark-14.png +0 -0
- drowse/web/dist/icons/tab-training-dark-15.png +0 -0
- drowse/web/dist/icons/tab-training-dark-16.png +0 -0
- drowse/web/dist/icons/tab-training-dark-17.png +0 -0
- drowse/web/dist/icons/tab-training-dark-18.png +0 -0
- drowse/web/dist/icons/tab-training-dark-19.png +0 -0
- drowse/web/dist/icons/tab-training-dark-2.png +0 -0
- drowse/web/dist/icons/tab-training-dark-20.png +0 -0
- drowse/web/dist/icons/tab-training-dark-21.png +0 -0
- drowse/web/dist/icons/tab-training-dark-22.png +0 -0
- drowse/web/dist/icons/tab-training-dark-23.png +0 -0
- drowse/web/dist/icons/tab-training-dark-24.png +0 -0
- drowse/web/dist/icons/tab-training-dark-25.png +0 -0
- drowse/web/dist/icons/tab-training-dark-26.png +0 -0
- drowse/web/dist/icons/tab-training-dark-27.png +0 -0
- drowse/web/dist/icons/tab-training-dark-28.png +0 -0
- drowse/web/dist/icons/tab-training-dark-29.png +0 -0
- drowse/web/dist/icons/tab-training-dark-3.png +0 -0
- drowse/web/dist/icons/tab-training-dark-30.png +0 -0
- drowse/web/dist/icons/tab-training-dark-31.png +0 -0
- drowse/web/dist/icons/tab-training-dark-32.png +0 -0
- drowse/web/dist/icons/tab-training-dark-33.png +0 -0
- drowse/web/dist/icons/tab-training-dark-34.png +0 -0
- drowse/web/dist/icons/tab-training-dark-35.png +0 -0
- drowse/web/dist/icons/tab-training-dark-36.png +0 -0
- drowse/web/dist/icons/tab-training-dark-37.png +0 -0
- drowse/web/dist/icons/tab-training-dark-38.png +0 -0
- drowse/web/dist/icons/tab-training-dark-39.png +0 -0
- drowse/web/dist/icons/tab-training-dark-4.png +0 -0
- drowse/web/dist/icons/tab-training-dark-40.png +0 -0
- drowse/web/dist/icons/tab-training-dark-41.png +0 -0
- drowse/web/dist/icons/tab-training-dark-42.png +0 -0
- drowse/web/dist/icons/tab-training-dark-43.png +0 -0
- drowse/web/dist/icons/tab-training-dark-44.png +0 -0
- drowse/web/dist/icons/tab-training-dark-45.png +0 -0
- drowse/web/dist/icons/tab-training-dark-46.png +0 -0
- drowse/web/dist/icons/tab-training-dark-47.png +0 -0
- drowse/web/dist/icons/tab-training-dark-5.png +0 -0
- drowse/web/dist/icons/tab-training-dark-6.png +0 -0
- drowse/web/dist/icons/tab-training-dark-7.png +0 -0
- drowse/web/dist/icons/tab-training-dark-8.png +0 -0
- drowse/web/dist/icons/tab-training-dark-9.png +0 -0
- drowse/web/dist/icons/tab-training-light-0.png +0 -0
- drowse/web/dist/icons/tab-training-light-1.png +0 -0
- drowse/web/dist/icons/tab-training-light-10.png +0 -0
- drowse/web/dist/icons/tab-training-light-11.png +0 -0
- drowse/web/dist/icons/tab-training-light-12.png +0 -0
- drowse/web/dist/icons/tab-training-light-13.png +0 -0
- drowse/web/dist/icons/tab-training-light-14.png +0 -0
- drowse/web/dist/icons/tab-training-light-15.png +0 -0
- drowse/web/dist/icons/tab-training-light-16.png +0 -0
- drowse/web/dist/icons/tab-training-light-17.png +0 -0
- drowse/web/dist/icons/tab-training-light-18.png +0 -0
- drowse/web/dist/icons/tab-training-light-19.png +0 -0
- drowse/web/dist/icons/tab-training-light-2.png +0 -0
- drowse/web/dist/icons/tab-training-light-20.png +0 -0
- drowse/web/dist/icons/tab-training-light-21.png +0 -0
- drowse/web/dist/icons/tab-training-light-22.png +0 -0
- drowse/web/dist/icons/tab-training-light-23.png +0 -0
- drowse/web/dist/icons/tab-training-light-24.png +0 -0
- drowse/web/dist/icons/tab-training-light-25.png +0 -0
- drowse/web/dist/icons/tab-training-light-26.png +0 -0
- drowse/web/dist/icons/tab-training-light-27.png +0 -0
- drowse/web/dist/icons/tab-training-light-28.png +0 -0
- drowse/web/dist/icons/tab-training-light-29.png +0 -0
- drowse/web/dist/icons/tab-training-light-3.png +0 -0
- drowse/web/dist/icons/tab-training-light-30.png +0 -0
- drowse/web/dist/icons/tab-training-light-31.png +0 -0
- drowse/web/dist/icons/tab-training-light-32.png +0 -0
- drowse/web/dist/icons/tab-training-light-33.png +0 -0
- drowse/web/dist/icons/tab-training-light-34.png +0 -0
- drowse/web/dist/icons/tab-training-light-35.png +0 -0
- drowse/web/dist/icons/tab-training-light-36.png +0 -0
- drowse/web/dist/icons/tab-training-light-37.png +0 -0
- drowse/web/dist/icons/tab-training-light-38.png +0 -0
- drowse/web/dist/icons/tab-training-light-39.png +0 -0
- drowse/web/dist/icons/tab-training-light-4.png +0 -0
- drowse/web/dist/icons/tab-training-light-40.png +0 -0
- drowse/web/dist/icons/tab-training-light-41.png +0 -0
- drowse/web/dist/icons/tab-training-light-42.png +0 -0
- drowse/web/dist/icons/tab-training-light-43.png +0 -0
- drowse/web/dist/icons/tab-training-light-44.png +0 -0
- drowse/web/dist/icons/tab-training-light-45.png +0 -0
- drowse/web/dist/icons/tab-training-light-46.png +0 -0
- drowse/web/dist/icons/tab-training-light-47.png +0 -0
- drowse/web/dist/icons/tab-training-light-5.png +0 -0
- drowse/web/dist/icons/tab-training-light-6.png +0 -0
- drowse/web/dist/icons/tab-training-light-7.png +0 -0
- drowse/web/dist/icons/tab-training-light-8.png +0 -0
- drowse/web/dist/icons/tab-training-light-9.png +0 -0
- drowse/web/dist/icons/tab-unsupported-dark.png +0 -0
- drowse/web/dist/icons/tab-unsupported-light.png +0 -0
- drowse/web/dist/icons/tab-unsupported.png +0 -0
- drowse/web/dist/icons/tab-working-0.png +0 -0
- drowse/web/dist/icons/tab-working-1.png +0 -0
- drowse/web/dist/icons/tab-working-2.png +0 -0
- drowse/web/dist/icons/tab-working-dark-0.png +0 -0
- drowse/web/dist/icons/tab-working-dark-1.png +0 -0
- drowse/web/dist/icons/tab-working-dark-10.png +0 -0
- drowse/web/dist/icons/tab-working-dark-11.png +0 -0
- drowse/web/dist/icons/tab-working-dark-12.png +0 -0
- drowse/web/dist/icons/tab-working-dark-13.png +0 -0
- drowse/web/dist/icons/tab-working-dark-14.png +0 -0
- drowse/web/dist/icons/tab-working-dark-15.png +0 -0
- drowse/web/dist/icons/tab-working-dark-16.png +0 -0
- drowse/web/dist/icons/tab-working-dark-17.png +0 -0
- drowse/web/dist/icons/tab-working-dark-18.png +0 -0
- drowse/web/dist/icons/tab-working-dark-19.png +0 -0
- drowse/web/dist/icons/tab-working-dark-2.png +0 -0
- drowse/web/dist/icons/tab-working-dark-20.png +0 -0
- drowse/web/dist/icons/tab-working-dark-21.png +0 -0
- drowse/web/dist/icons/tab-working-dark-22.png +0 -0
- drowse/web/dist/icons/tab-working-dark-23.png +0 -0
- drowse/web/dist/icons/tab-working-dark-24.png +0 -0
- drowse/web/dist/icons/tab-working-dark-25.png +0 -0
- drowse/web/dist/icons/tab-working-dark-26.png +0 -0
- drowse/web/dist/icons/tab-working-dark-27.png +0 -0
- drowse/web/dist/icons/tab-working-dark-28.png +0 -0
- drowse/web/dist/icons/tab-working-dark-29.png +0 -0
- drowse/web/dist/icons/tab-working-dark-3.png +0 -0
- drowse/web/dist/icons/tab-working-dark-30.png +0 -0
- drowse/web/dist/icons/tab-working-dark-31.png +0 -0
- drowse/web/dist/icons/tab-working-dark-32.png +0 -0
- drowse/web/dist/icons/tab-working-dark-33.png +0 -0
- drowse/web/dist/icons/tab-working-dark-34.png +0 -0
- drowse/web/dist/icons/tab-working-dark-35.png +0 -0
- drowse/web/dist/icons/tab-working-dark-36.png +0 -0
- drowse/web/dist/icons/tab-working-dark-37.png +0 -0
- drowse/web/dist/icons/tab-working-dark-38.png +0 -0
- drowse/web/dist/icons/tab-working-dark-39.png +0 -0
- drowse/web/dist/icons/tab-working-dark-4.png +0 -0
- drowse/web/dist/icons/tab-working-dark-40.png +0 -0
- drowse/web/dist/icons/tab-working-dark-41.png +0 -0
- drowse/web/dist/icons/tab-working-dark-42.png +0 -0
- drowse/web/dist/icons/tab-working-dark-43.png +0 -0
- drowse/web/dist/icons/tab-working-dark-44.png +0 -0
- drowse/web/dist/icons/tab-working-dark-45.png +0 -0
- drowse/web/dist/icons/tab-working-dark-46.png +0 -0
- drowse/web/dist/icons/tab-working-dark-47.png +0 -0
- drowse/web/dist/icons/tab-working-dark-5.png +0 -0
- drowse/web/dist/icons/tab-working-dark-6.png +0 -0
- drowse/web/dist/icons/tab-working-dark-7.png +0 -0
- drowse/web/dist/icons/tab-working-dark-8.png +0 -0
- drowse/web/dist/icons/tab-working-dark-9.png +0 -0
- drowse/web/dist/icons/tab-working-light-0.png +0 -0
- drowse/web/dist/icons/tab-working-light-1.png +0 -0
- drowse/web/dist/icons/tab-working-light-10.png +0 -0
- drowse/web/dist/icons/tab-working-light-11.png +0 -0
- drowse/web/dist/icons/tab-working-light-12.png +0 -0
- drowse/web/dist/icons/tab-working-light-13.png +0 -0
- drowse/web/dist/icons/tab-working-light-14.png +0 -0
- drowse/web/dist/icons/tab-working-light-15.png +0 -0
- drowse/web/dist/icons/tab-working-light-16.png +0 -0
- drowse/web/dist/icons/tab-working-light-17.png +0 -0
- drowse/web/dist/icons/tab-working-light-18.png +0 -0
- drowse/web/dist/icons/tab-working-light-19.png +0 -0
- drowse/web/dist/icons/tab-working-light-2.png +0 -0
- drowse/web/dist/icons/tab-working-light-20.png +0 -0
- drowse/web/dist/icons/tab-working-light-21.png +0 -0
- drowse/web/dist/icons/tab-working-light-22.png +0 -0
- drowse/web/dist/icons/tab-working-light-23.png +0 -0
- drowse/web/dist/icons/tab-working-light-24.png +0 -0
- drowse/web/dist/icons/tab-working-light-25.png +0 -0
- drowse/web/dist/icons/tab-working-light-26.png +0 -0
- drowse/web/dist/icons/tab-working-light-27.png +0 -0
- drowse/web/dist/icons/tab-working-light-28.png +0 -0
- drowse/web/dist/icons/tab-working-light-29.png +0 -0
- drowse/web/dist/icons/tab-working-light-3.png +0 -0
- drowse/web/dist/icons/tab-working-light-30.png +0 -0
- drowse/web/dist/icons/tab-working-light-31.png +0 -0
- drowse/web/dist/icons/tab-working-light-32.png +0 -0
- drowse/web/dist/icons/tab-working-light-33.png +0 -0
- drowse/web/dist/icons/tab-working-light-34.png +0 -0
- drowse/web/dist/icons/tab-working-light-35.png +0 -0
- drowse/web/dist/icons/tab-working-light-36.png +0 -0
- drowse/web/dist/icons/tab-working-light-37.png +0 -0
- drowse/web/dist/icons/tab-working-light-38.png +0 -0
- drowse/web/dist/icons/tab-working-light-39.png +0 -0
- drowse/web/dist/icons/tab-working-light-4.png +0 -0
- drowse/web/dist/icons/tab-working-light-40.png +0 -0
- drowse/web/dist/icons/tab-working-light-41.png +0 -0
- drowse/web/dist/icons/tab-working-light-42.png +0 -0
- drowse/web/dist/icons/tab-working-light-43.png +0 -0
- drowse/web/dist/icons/tab-working-light-44.png +0 -0
- drowse/web/dist/icons/tab-working-light-45.png +0 -0
- drowse/web/dist/icons/tab-working-light-46.png +0 -0
- drowse/web/dist/icons/tab-working-light-47.png +0 -0
- drowse/web/dist/icons/tab-working-light-5.png +0 -0
- drowse/web/dist/icons/tab-working-light-6.png +0 -0
- drowse/web/dist/icons/tab-working-light-7.png +0 -0
- drowse/web/dist/icons/tab-working-light-8.png +0 -0
- drowse/web/dist/icons/tab-working-light-9.png +0 -0
- drowse/web/dist/index.html +34 -0
- drowse/web/dist/social/drowse.png +0 -0
- drowse/web/dist/social/drowse.svg +6 -0
- drowse/web/dist/theme-init.js +25 -0
- drowse/web/routes.py +118 -0
- drowse_ai-5.3.1.dist-info/METADATA +632 -0
- drowse_ai-5.3.1.dist-info/RECORD +1341 -0
- drowse_ai-5.3.1.dist-info/WHEEL +5 -0
- drowse_ai-5.3.1.dist-info/entry_points.txt +2 -0
- drowse_ai-5.3.1.dist-info/licenses/LICENSE +661 -0
- drowse_ai-5.3.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
"""Hugging Face Hub consumption wrappers for drowse manifold distribution.
|
|
2
|
+
|
|
3
|
+
The read-side counterpart to :mod:`drowse.io.hf`. Manifold-folder
|
|
4
|
+
artifacts (``manifold.json`` + ``nodes/*.json`` + per-model fitted
|
|
5
|
+
``<safe_model>.safetensors``) ride an HF *model*-repo convention — safetensors is
|
|
6
|
+
model-hub-native and ``base_model``
|
|
7
|
+
frontmatter gives reverse-link discoverability. The tagging convention
|
|
8
|
+
uses the ``drowse-manifold`` tag so the search query is unambiguous.
|
|
9
|
+
|
|
10
|
+
This module owns the pure-IO HF surface (pull + search + fetch_info).
|
|
11
|
+
The folder format itself lives in :mod:`drowse.io.manifolds`; the
|
|
12
|
+
server route layer composes them with ``manifolds_dir`` /
|
|
13
|
+
``ManifoldFolder.load`` for the install path.
|
|
14
|
+
"""
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
|
|
17
|
+
import json
|
|
18
|
+
import os
|
|
19
|
+
import shutil
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
from typing import Any, Callable, Optional
|
|
22
|
+
|
|
23
|
+
from drowse.core.errors import DrowseError
|
|
24
|
+
from drowse.io.atomic import copy_file_atomic, write_bytes_atomic
|
|
25
|
+
from drowse.io.hf import (
|
|
26
|
+
HFError,
|
|
27
|
+
_hf_api,
|
|
28
|
+
_hf_hub_download,
|
|
29
|
+
_hf_snapshot_download,
|
|
30
|
+
split_revision,
|
|
31
|
+
)
|
|
32
|
+
from drowse.io.manifolds import (
|
|
33
|
+
MANIFOLD_FORMAT_VERSION,
|
|
34
|
+
ManifoldFolder,
|
|
35
|
+
ManifoldFormatError,
|
|
36
|
+
)
|
|
37
|
+
from drowse.io.integrity import NAME_REGEX
|
|
38
|
+
from drowse.io.staging import stage_verify_swap
|
|
39
|
+
|
|
40
|
+
#: Row ceiling for a Hub search. The picker renders one card per row, so a
|
|
41
|
+
#: wider result set costs a slower search for a list nobody scrolls.
|
|
42
|
+
_HF_SEARCH_CAP = 20
|
|
43
|
+
|
|
44
|
+
#: Optional per-stage narration sink for an install. An HF pull is a
|
|
45
|
+
#: multi-hundred-megabyte network operation with a stage-verify-swap tail, so
|
|
46
|
+
#: every caller (CLI, SSE route) wants the same five stages: ``resolve`` →
|
|
47
|
+
#: ``download`` → ``validate`` → ``stage`` → ``swap``.
|
|
48
|
+
ProgressCallback = Callable[[str], None]
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _report(on_progress: ProgressCallback | None, message: str) -> None:
|
|
52
|
+
"""Emit one install stage line when the caller asked for narration."""
|
|
53
|
+
if on_progress is not None:
|
|
54
|
+
on_progress(message)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _rewrite_staged_manifold_name(
|
|
58
|
+
staged: ManifoldFolder, destination_name: str,
|
|
59
|
+
) -> dict[str, str]:
|
|
60
|
+
"""Rename a staged folder and every fitted sidecar as one identity.
|
|
61
|
+
|
|
62
|
+
A fitted manifold repeats its name in each per-model sidecar. Rewriting
|
|
63
|
+
only ``manifold.json`` makes selector discovery address the destination
|
|
64
|
+
while runtime loads still expose the source name. Update the sidecars in
|
|
65
|
+
staging and return the corresponding trusted hash map for the caller's
|
|
66
|
+
single manifest rewrite.
|
|
67
|
+
"""
|
|
68
|
+
from drowse.io.atomic import write_json_atomic
|
|
69
|
+
from drowse.io.integrity import hash_file
|
|
70
|
+
|
|
71
|
+
files = dict(staged.files)
|
|
72
|
+
for stem in staged.tensor_models():
|
|
73
|
+
tensor_path = staged.tensor_path(stem)
|
|
74
|
+
sidecar_path = tensor_path.with_suffix(".json")
|
|
75
|
+
if tensor_path.name not in files or sidecar_path.name not in files:
|
|
76
|
+
raise ManifoldFormatError(
|
|
77
|
+
f"cannot rename untrusted fitted pair {tensor_path.name}: "
|
|
78
|
+
"both tensor and sidecar must have manifest proofs"
|
|
79
|
+
)
|
|
80
|
+
with open(sidecar_path) as handle:
|
|
81
|
+
sidecar = json.load(handle)
|
|
82
|
+
sidecar["name"] = destination_name
|
|
83
|
+
write_json_atomic(sidecar_path, sidecar)
|
|
84
|
+
files[sidecar_path.name] = hash_file(sidecar_path)
|
|
85
|
+
staged.name = destination_name
|
|
86
|
+
return files
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# ---------------------------------------------------------------------- pull --
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def _download(
|
|
93
|
+
coord: str,
|
|
94
|
+
*,
|
|
95
|
+
revision: Optional[str] = None,
|
|
96
|
+
) -> str:
|
|
97
|
+
"""Snapshot-download ``<owner>/<repo>`` from the HF model hub.
|
|
98
|
+
|
|
99
|
+
Wraps the shared :func:`drowse.io.hf._hf_snapshot_download` seam so
|
|
100
|
+
every failure surfaces as :class:`~drowse.io.hf.HFError` with the
|
|
101
|
+
``coord@revision`` label. No allow-patterns filter: a manifold folder is
|
|
102
|
+
small (a manifest + a ``nodes/`` corpus of short JSON files + at most a
|
|
103
|
+
few safetensors), so the full snapshot is the simplest correct read.
|
|
104
|
+
"""
|
|
105
|
+
kwargs: dict[str, Any] = {"repo_id": coord}
|
|
106
|
+
if revision is not None:
|
|
107
|
+
kwargs["revision"] = revision
|
|
108
|
+
try:
|
|
109
|
+
return _hf_snapshot_download(**kwargs)
|
|
110
|
+
except Exception as e:
|
|
111
|
+
label = f"{coord}@{revision}" if revision else coord
|
|
112
|
+
raise HFError(f"{label}: not found ({e})") from e
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def pull_manifold(
|
|
116
|
+
coord: str,
|
|
117
|
+
target_folder: Path,
|
|
118
|
+
*,
|
|
119
|
+
force: bool,
|
|
120
|
+
revision: Optional[str] = None,
|
|
121
|
+
on_progress: ProgressCallback | None = None,
|
|
122
|
+
) -> Path:
|
|
123
|
+
"""Download and atomically install while holding the target folder lock.
|
|
124
|
+
|
|
125
|
+
``on_progress`` receives one line per stage (see :data:`ProgressCallback`).
|
|
126
|
+
"""
|
|
127
|
+
from drowse.io.manifold_folder import _locked_manifest
|
|
128
|
+
from drowse.io.selectors import invalidate as invalidate_selector_index
|
|
129
|
+
|
|
130
|
+
with _locked_manifest(Path(target_folder)):
|
|
131
|
+
installed = _pull_manifold_locked(
|
|
132
|
+
coord, target_folder, force=force, revision=revision,
|
|
133
|
+
on_progress=on_progress,
|
|
134
|
+
)
|
|
135
|
+
# The installed roster changed; drop the resolver's memoized walks so a
|
|
136
|
+
# freshly pulled manifold's node labels resolve in this process.
|
|
137
|
+
invalidate_selector_index()
|
|
138
|
+
return installed
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def _pull_manifold_locked(
|
|
142
|
+
coord: str,
|
|
143
|
+
target_folder: Path,
|
|
144
|
+
*,
|
|
145
|
+
force: bool,
|
|
146
|
+
revision: Optional[str] = None,
|
|
147
|
+
on_progress: ProgressCallback | None = None,
|
|
148
|
+
) -> Path:
|
|
149
|
+
"""Download ``coord`` from HF and install into ``target_folder``.
|
|
150
|
+
|
|
151
|
+
Stage-verify-swap discipline (:mod:`drowse.io.staging`):
|
|
152
|
+
the manifold folder is built under ``<target_folder>.staging/``,
|
|
153
|
+
then validated by ``ManifoldFolder.load`` (which already checks
|
|
154
|
+
format version + ``NAME_REGEX`` + the ``files`` integrity manifest
|
|
155
|
+
when populated). Only after a clean load does the staging dir
|
|
156
|
+
atomically swap into place via ``target → .bak``, ``staging →
|
|
157
|
+
target``, ``rmtree .bak``. A crash mid-swap is recoverable from
|
|
158
|
+
``.bak``.
|
|
159
|
+
|
|
160
|
+
The downloaded repository must carry the current ``manifold.json`` shape.
|
|
161
|
+
"""
|
|
162
|
+
# Recover a crash-left stage swap before conflict policy or pair-lock
|
|
163
|
+
# discovery. The public caller already owns the stable manifest lock. A
|
|
164
|
+
# force replacement will now see the recovered folder and quiesce all its
|
|
165
|
+
# fitted pair readers; a non-force install must preserve it as an existing
|
|
166
|
+
# destination rather than silently overwrite it.
|
|
167
|
+
backup = target_folder.with_name(target_folder.name + ".bak")
|
|
168
|
+
if not target_folder.exists() and backup.exists():
|
|
169
|
+
try:
|
|
170
|
+
backup.rename(target_folder)
|
|
171
|
+
except OSError as exc:
|
|
172
|
+
raise HFError(
|
|
173
|
+
f"{coord}: could not recover interrupted install ({exc})"
|
|
174
|
+
) from exc
|
|
175
|
+
if target_folder.exists() and not force:
|
|
176
|
+
raise HFError(f"{target_folder} exists; pass force=True to overwrite")
|
|
177
|
+
|
|
178
|
+
label = f"{coord}@{revision}" if revision else coord
|
|
179
|
+
_report(on_progress, f"Downloading {label} from Hugging Face...")
|
|
180
|
+
tmp_dir = Path(_download(coord, revision=revision))
|
|
181
|
+
|
|
182
|
+
if not (tmp_dir / "manifold.json").is_file():
|
|
183
|
+
raise HFError(
|
|
184
|
+
f"{coord}: HF repo has no manifold.json at root — drowse "
|
|
185
|
+
f"manifolds must be published with the manifest in place "
|
|
186
|
+
f"(see `drowse pack push`)."
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
source = f"hf://{coord}@{revision}" if revision else f"hf://{coord}"
|
|
190
|
+
|
|
191
|
+
def _build(staging: Path) -> None:
|
|
192
|
+
_report(on_progress, f"Staging {label}...")
|
|
193
|
+
_install_manifold(tmp_dir, staging, coord)
|
|
194
|
+
# Validate the staged folder against the same loader the
|
|
195
|
+
# session will see — catches format-version mismatches and a
|
|
196
|
+
# populated-but-broken ``files`` manifest before we touch the
|
|
197
|
+
# target.
|
|
198
|
+
_report(on_progress, f"Validating staged {label}...")
|
|
199
|
+
try:
|
|
200
|
+
staged = ManifoldFolder.load(staging)
|
|
201
|
+
except ManifoldFormatError as e:
|
|
202
|
+
raise HFError(f"{coord}: staged manifold failed validation ({e})") from e
|
|
203
|
+
# Record the HF coord as the manifold's source so ``refresh_manifold``
|
|
204
|
+
# can re-pull from the same place. ``write_metadata`` rebuilds the
|
|
205
|
+
# manifest from the just-loaded folder and re-hashes ``files`` —
|
|
206
|
+
# so the staged manifest stays self-consistent for the re-validate
|
|
207
|
+
# below.
|
|
208
|
+
#
|
|
209
|
+
# The installed folder basename is its addressable identity. An
|
|
210
|
+
# explicit ``--as ns/name`` must therefore rewrite the source repo's
|
|
211
|
+
# manifest name while the copy is still staged; otherwise selector
|
|
212
|
+
# discovery indexes the source name under a destination path that does
|
|
213
|
+
# not exist.
|
|
214
|
+
try:
|
|
215
|
+
files = _rewrite_staged_manifold_name(staged, target_folder.name)
|
|
216
|
+
except ManifoldFormatError as e:
|
|
217
|
+
raise HFError(
|
|
218
|
+
f"{coord}: staged manifold failed identity rewrite ({e})"
|
|
219
|
+
) from e
|
|
220
|
+
staged.source = source
|
|
221
|
+
staged.write_metadata(files=files)
|
|
222
|
+
try:
|
|
223
|
+
ManifoldFolder.load(staging)
|
|
224
|
+
except ManifoldFormatError as e:
|
|
225
|
+
raise HFError(
|
|
226
|
+
f"{coord}: staged manifold failed re-validation after "
|
|
227
|
+
f"source stamp ({e})"
|
|
228
|
+
) from e
|
|
229
|
+
# ``stage_verify_swap`` promotes the staging dir as soon as ``build``
|
|
230
|
+
# returns, so this is the last narration point before the swap.
|
|
231
|
+
_report(on_progress, f"Installing {label} into {target_folder.name}...")
|
|
232
|
+
|
|
233
|
+
def _swap() -> Path:
|
|
234
|
+
return stage_verify_swap(
|
|
235
|
+
target_folder,
|
|
236
|
+
force=force,
|
|
237
|
+
label=coord,
|
|
238
|
+
build=_build,
|
|
239
|
+
make_error=HFError,
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
if force and target_folder.exists():
|
|
243
|
+
from drowse.io.manifold_folder import (
|
|
244
|
+
destructive_manifold_folder_transaction,
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
with destructive_manifold_folder_transaction(target_folder):
|
|
248
|
+
return _swap()
|
|
249
|
+
return _swap()
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
def _install_manifold(tmp_dir: Path, target_folder: Path, _coord: str) -> None:
|
|
253
|
+
"""Copy a manifold folder's tree from the snapshot dir to ``target_folder``.
|
|
254
|
+
|
|
255
|
+
Preserves the directory layout the format expects:
|
|
256
|
+
* ``manifold.json`` at the root
|
|
257
|
+
* ``nodes/NN_<label>.json`` corpus files under ``nodes/``
|
|
258
|
+
* Optional per-model fitted ``<safe_model>.safetensors`` + ``.json``
|
|
259
|
+
sidecars at the root
|
|
260
|
+
|
|
261
|
+
Anything else at the snapshot root (README, .gitattributes, etc.) is
|
|
262
|
+
skipped — those are HF-side artifacts, not part of the manifold
|
|
263
|
+
format.
|
|
264
|
+
"""
|
|
265
|
+
_ALLOWED_ROOT = {"manifold.json"}
|
|
266
|
+
_ALLOWED_SUFFIXES = (".safetensors", ".json")
|
|
267
|
+
|
|
268
|
+
for entry in sorted(tmp_dir.iterdir()):
|
|
269
|
+
if entry.is_file():
|
|
270
|
+
if (
|
|
271
|
+
entry.name in _ALLOWED_ROOT
|
|
272
|
+
or entry.suffix in _ALLOWED_SUFFIXES
|
|
273
|
+
):
|
|
274
|
+
copy_file_atomic(entry, target_folder / entry.name)
|
|
275
|
+
elif entry.is_dir() and entry.name == "nodes":
|
|
276
|
+
(target_folder / "nodes").mkdir(parents=True, exist_ok=True)
|
|
277
|
+
for child in sorted(entry.iterdir()):
|
|
278
|
+
if child.is_file() and child.suffix == ".json":
|
|
279
|
+
copy_file_atomic(child, target_folder / "nodes" / child.name)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# ---------------------------------------------------------------------- push --
|
|
283
|
+
#
|
|
284
|
+
# HF upload: stage a filtered copy of the folder (so README +
|
|
285
|
+
# .gitattributes can be added without mutating the source), then one
|
|
286
|
+
# ``upload_folder``. The repo carries the ``drowse-manifold`` tag and a
|
|
287
|
+
# manifold-shaped model card, and the corpus (``manifold.json`` +
|
|
288
|
+
# ``nodes/*``) is *always* included — a manifold without its node corpus
|
|
289
|
+
# can't be re-fit, so a tensors-only manifold push would be useless.
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def _manifold_sidecar_stem_to_hf_coord(stem: str) -> Optional[str]:
|
|
293
|
+
"""Convert a fitted-tensor stem back to its base-model HF coord.
|
|
294
|
+
|
|
295
|
+
Strips any variant suffix (``_sae-<release>`` / ``_from-<safe_src>``) so
|
|
296
|
+
the ``base_model:`` frontmatter lists the clean base model, then decodes
|
|
297
|
+
the safe stem back to its Hub id through
|
|
298
|
+
:func:`~drowse.io.paths.unsafe_model_id` (the reversible base64url ``_z``
|
|
299
|
+
codec). Returns ``None`` for stems that don't parse.
|
|
300
|
+
"""
|
|
301
|
+
from drowse.io.paths import parse_tensor_filename, unsafe_model_id
|
|
302
|
+
|
|
303
|
+
parsed = parse_tensor_filename(f"{stem}.safetensors")
|
|
304
|
+
if parsed is None:
|
|
305
|
+
return None
|
|
306
|
+
safe_model, _variant = parsed
|
|
307
|
+
return unsafe_model_id(safe_model)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def _render_manifold_card(
|
|
311
|
+
mf: ManifoldFolder, tensor_stems: list[str], coord: str,
|
|
312
|
+
) -> str:
|
|
313
|
+
"""Build a HF model card (YAML frontmatter + markdown body) for a manifold.
|
|
314
|
+
|
|
315
|
+
The frontmatter carries ``library_name: drowse``, the discovery tags, and
|
|
316
|
+
a ``base_model:`` list deduped over the fitted tensor stems; the body
|
|
317
|
+
table lists the manifold's domain / node count / fit_mode.
|
|
318
|
+
"""
|
|
319
|
+
base_models = sorted({
|
|
320
|
+
c for stem in tensor_stems
|
|
321
|
+
if (c := _manifold_sidecar_stem_to_hf_coord(stem)) is not None
|
|
322
|
+
})
|
|
323
|
+
tags = ["drowse-manifold", "activation-steering", "steering-manifold"]
|
|
324
|
+
|
|
325
|
+
fm = ["---", "library_name: drowse", "tags:"]
|
|
326
|
+
fm += [f" - {t}" for t in tags]
|
|
327
|
+
if base_models:
|
|
328
|
+
fm.append("base_model:")
|
|
329
|
+
fm += [f" - {bm}" for bm in base_models]
|
|
330
|
+
fm.append("base_model_relation: adapter")
|
|
331
|
+
fm.append("---")
|
|
332
|
+
|
|
333
|
+
from drowse.io.manifolds import domain_label
|
|
334
|
+
|
|
335
|
+
dom_lbl = domain_label(mf.domain) if mf.fit_mode == "authored" and mf.domain else f"discover-{mf.fit_mode}"
|
|
336
|
+
|
|
337
|
+
body: list[str] = [
|
|
338
|
+
f"# {mf.name}",
|
|
339
|
+
"",
|
|
340
|
+
mf.description,
|
|
341
|
+
"",
|
|
342
|
+
f"**Domain:** `{dom_lbl}` | **fit_mode:** `{mf.fit_mode}` | "
|
|
343
|
+
f"**nodes:** {len(mf.node_labels)}",
|
|
344
|
+
"",
|
|
345
|
+
"## Install",
|
|
346
|
+
"",
|
|
347
|
+
"```bash",
|
|
348
|
+
f"drowse pack install {coord}",
|
|
349
|
+
"```",
|
|
350
|
+
"",
|
|
351
|
+
"## Nodes",
|
|
352
|
+
"",
|
|
353
|
+
", ".join(f"`{label}`" for label in mf.node_labels),
|
|
354
|
+
"",
|
|
355
|
+
]
|
|
356
|
+
if tensor_stems:
|
|
357
|
+
body += [
|
|
358
|
+
"## Fitted tensors",
|
|
359
|
+
"",
|
|
360
|
+
"| base model | variant |",
|
|
361
|
+
"| --- | --- |",
|
|
362
|
+
]
|
|
363
|
+
from drowse.io.paths import parse_tensor_filename
|
|
364
|
+
for stem in sorted(tensor_stems):
|
|
365
|
+
base = _manifold_sidecar_stem_to_hf_coord(stem) or stem
|
|
366
|
+
parsed = parse_tensor_filename(f"{stem}.safetensors")
|
|
367
|
+
variant = "raw" if (parsed is None or parsed[1] is None) else parsed[1]
|
|
368
|
+
body.append(f"| `{base}` | `{variant}` |")
|
|
369
|
+
body.append("")
|
|
370
|
+
|
|
371
|
+
body += ["---", "", "Generated by `drowse pack push`.", ""]
|
|
372
|
+
return "\n".join(fm) + "\n\n" + "\n".join(body)
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
def _manifold_variant_matches(key: str, variant: str) -> bool:
|
|
376
|
+
"""Variant filter for a manifold tensor.
|
|
377
|
+
|
|
378
|
+
``key`` is the parsed variant slug (``"raw"`` / ``"sae-<release>"`` /
|
|
379
|
+
``"from-<safe_src>"``); ``variant`` is one of ``"raw"`` / ``"sae"`` /
|
|
380
|
+
``"from"`` / ``"all"``.
|
|
381
|
+
"""
|
|
382
|
+
if variant == "all":
|
|
383
|
+
return True
|
|
384
|
+
if variant == "raw":
|
|
385
|
+
return key == "raw"
|
|
386
|
+
if variant == "sae":
|
|
387
|
+
return key.startswith("sae-")
|
|
388
|
+
if variant == "from":
|
|
389
|
+
return key.startswith("from-")
|
|
390
|
+
return False
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def push_manifold(
|
|
394
|
+
folder: Path,
|
|
395
|
+
coord: str,
|
|
396
|
+
*,
|
|
397
|
+
private: bool = False,
|
|
398
|
+
model_scope: Optional[str] = None,
|
|
399
|
+
variant: str = "raw",
|
|
400
|
+
dry_run: bool = False,
|
|
401
|
+
) -> tuple[str, Optional[str]]:
|
|
402
|
+
"""Push a manifold folder to HF as a model repo.
|
|
403
|
+
|
|
404
|
+
Stages a filtered copy (adding README.md + .gitattributes without
|
|
405
|
+
mutating the source), then makes one atomic ``upload_folder``. Returns
|
|
406
|
+
``(repo_url, commit_sha)``; ``sha`` is ``None`` on dry-run.
|
|
407
|
+
|
|
408
|
+
The corpus is *always* uploaded — ``manifold.json`` plus every
|
|
409
|
+
``nodes/*.json`` — because a manifold can't be re-fit without it.
|
|
410
|
+
Per-model fitted ``<safe>.safetensors`` + ``.json`` sidecars are
|
|
411
|
+
filtered two ways:
|
|
412
|
+
|
|
413
|
+
- ``model_scope`` restricts to one base model (``safe_model_id``).
|
|
414
|
+
- ``variant`` filters tensor flavor: ``"raw"`` (default) only
|
|
415
|
+
unsuffixed, ``"sae"`` only ``_sae-*``, ``"from"`` only ``_from-*``,
|
|
416
|
+
``"all"`` every variant. Sidecars follow their partner tensor.
|
|
417
|
+
|
|
418
|
+
A staged manifest with no tensors is still a valid push: the corpus
|
|
419
|
+
alone re-fits on the consumer side.
|
|
420
|
+
"""
|
|
421
|
+
from contextlib import ExitStack
|
|
422
|
+
import tempfile
|
|
423
|
+
|
|
424
|
+
from drowse.io.manifolds import (
|
|
425
|
+
ManifoldFolder, ManifoldFormatError, hash_manifold_files,
|
|
426
|
+
)
|
|
427
|
+
from drowse.io.paths import parse_tensor_filename, safe_model_id as _safe_id
|
|
428
|
+
from drowse.io.manifold_folder import (
|
|
429
|
+
_locked_manifest,
|
|
430
|
+
manifold_folder_tensor_paths,
|
|
431
|
+
manifold_pair_lock,
|
|
432
|
+
)
|
|
433
|
+
|
|
434
|
+
scope_safe: Optional[str] = None
|
|
435
|
+
if model_scope is not None:
|
|
436
|
+
scope_safe = _safe_id(model_scope)
|
|
437
|
+
|
|
438
|
+
staging = Path(tempfile.mkdtemp(prefix="drowse-manifold-push-"))
|
|
439
|
+
try:
|
|
440
|
+
kept_stems: list[str] = []
|
|
441
|
+
folder = Path(folder)
|
|
442
|
+
# Snapshot publication uses the same global mutation order as folder
|
|
443
|
+
# lifecycle operations: manifest first, then every logical fitted pair
|
|
444
|
+
# in deterministic order. Keep both source validation and every source
|
|
445
|
+
# byte read inside this one transaction, so authoring edits and pair
|
|
446
|
+
# replacement cannot produce a mixed-generation upload. The locks end
|
|
447
|
+
# before any Hub request below.
|
|
448
|
+
with _locked_manifest(folder):
|
|
449
|
+
with ExitStack() as pair_locks:
|
|
450
|
+
tensor_paths = manifold_folder_tensor_paths(folder)
|
|
451
|
+
for tensor_path in tensor_paths:
|
|
452
|
+
pair_locks.enter_context(manifold_pair_lock(tensor_path))
|
|
453
|
+
|
|
454
|
+
mf = ManifoldFolder.load(folder) # runs integrity check
|
|
455
|
+
|
|
456
|
+
# Always stage the corpus: manifold.json + the full nodes/ tree.
|
|
457
|
+
copy_file_atomic(folder / "manifold.json", staging / "manifold.json")
|
|
458
|
+
nodes_src = folder / "nodes"
|
|
459
|
+
if nodes_src.is_dir():
|
|
460
|
+
for child in sorted(nodes_src.iterdir()):
|
|
461
|
+
if child.is_file() and child.suffix == ".json":
|
|
462
|
+
copy_file_atomic(child, staging / "nodes" / child.name)
|
|
463
|
+
# Stage the fitted tensors that survive the model/variant
|
|
464
|
+
# filter, each with its sidecar.
|
|
465
|
+
from drowse.io.manifold_tensors import load_manifold
|
|
466
|
+
|
|
467
|
+
# Iterate the candidate set whose logical locks we acquired.
|
|
468
|
+
# A lower-level writer that bypasses the documented
|
|
469
|
+
# manifest-before-pair order can create a new unmanifested pair
|
|
470
|
+
# while this snapshot owns the manifest lock; a second glob
|
|
471
|
+
# would see that unlocked generation and spuriously fail the
|
|
472
|
+
# push. The frozen list keeps the staged snapshot exact.
|
|
473
|
+
for ts in tensor_paths:
|
|
474
|
+
if not ts.is_file():
|
|
475
|
+
continue
|
|
476
|
+
parsed = parse_tensor_filename(ts.name)
|
|
477
|
+
if parsed is None:
|
|
478
|
+
continue
|
|
479
|
+
file_model, var_slug = parsed
|
|
480
|
+
if scope_safe is not None and file_model != scope_safe:
|
|
481
|
+
continue
|
|
482
|
+
vkey = "raw" if var_slug is None else var_slug
|
|
483
|
+
if not _manifold_variant_matches(vkey, variant):
|
|
484
|
+
continue
|
|
485
|
+
sc = ts.with_suffix(".json")
|
|
486
|
+
if not sc.exists():
|
|
487
|
+
raise ManifoldFormatError(
|
|
488
|
+
f"cannot push unpaired fitted tensor {ts.name}"
|
|
489
|
+
)
|
|
490
|
+
# Targeted runtime validation covers the trusted manifest
|
|
491
|
+
# pair, fit policy, and current corpus/domain/template
|
|
492
|
+
# identity. Without it a metadata edit could publish a
|
|
493
|
+
# current corpus beside a stale fitted tensor whose old
|
|
494
|
+
# bytes still pass the folder hash map.
|
|
495
|
+
load_manifold(ts)
|
|
496
|
+
copy_file_atomic(ts, staging / ts.name)
|
|
497
|
+
kept_stems.append(ts.stem)
|
|
498
|
+
copy_file_atomic(sc, staging / sc.name)
|
|
499
|
+
|
|
500
|
+
# Re-hash the staged copy so the uploaded manifest matches the
|
|
501
|
+
# bytes we upload (a model/variant filter changes the file set).
|
|
502
|
+
# Patch the staged ``manifold.json``'s ``files`` map directly
|
|
503
|
+
# rather than re-loading first: the verbatim-copied manifest
|
|
504
|
+
# still references the *unfiltered* tensor set, so a
|
|
505
|
+
# ``ManifoldFolder.load`` of the staging dir would fail its
|
|
506
|
+
# integrity check against files the filter excluded.
|
|
507
|
+
from drowse.io.atomic import write_json_atomic as _write_json_atomic
|
|
508
|
+
staged_manifest = staging / "manifold.json"
|
|
509
|
+
with open(staged_manifest) as f:
|
|
510
|
+
staged_data = json.load(f)
|
|
511
|
+
# Transaction identity is local to one installed folder generation;
|
|
512
|
+
# publishing it would make every pull share the same rm/recreate epoch.
|
|
513
|
+
staged_data.pop("artifact_id", None)
|
|
514
|
+
staged_data.pop("fit_epochs", None)
|
|
515
|
+
staged_data["files"] = hash_manifold_files(staging)
|
|
516
|
+
_write_json_atomic(staged_manifest, staged_data)
|
|
517
|
+
|
|
518
|
+
write_bytes_atomic(
|
|
519
|
+
staging / ".gitattributes",
|
|
520
|
+
b"*.safetensors filter=lfs diff=lfs merge=lfs -text\n",
|
|
521
|
+
)
|
|
522
|
+
write_bytes_atomic(
|
|
523
|
+
staging / "README.md",
|
|
524
|
+
_render_manifold_card(mf, kept_stems, coord).encode("utf-8"),
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
repo_url = f"https://huggingface.co/{coord}"
|
|
528
|
+
if dry_run:
|
|
529
|
+
return (repo_url, None)
|
|
530
|
+
|
|
531
|
+
from huggingface_hub import HfApi
|
|
532
|
+
api = HfApi()
|
|
533
|
+
api.create_repo(
|
|
534
|
+
repo_id=coord, repo_type="model", private=private, exist_ok=True,
|
|
535
|
+
)
|
|
536
|
+
info = api.upload_folder(
|
|
537
|
+
repo_id=coord,
|
|
538
|
+
repo_type="model",
|
|
539
|
+
folder_path=str(staging),
|
|
540
|
+
commit_message=f"drowse pack push: {mf.name}",
|
|
541
|
+
)
|
|
542
|
+
sha = getattr(info, "oid", None) or getattr(info, "commit_sha", None)
|
|
543
|
+
return (repo_url, sha)
|
|
544
|
+
finally:
|
|
545
|
+
shutil.rmtree(staging, ignore_errors=True)
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
# -------------------------------------------------------------------- search --
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
def search_manifolds(query: Optional[str]) -> list[dict[str, Any]]:
|
|
552
|
+
"""Search HF for current and legacy manifold-tagged model repos.
|
|
553
|
+
|
|
554
|
+
Returns row dicts ready for display by the CLI and the webui picker.
|
|
555
|
+
At most ``_HF_SEARCH_CAP`` rows. ``query`` is a free-text substring; an
|
|
556
|
+
empty / ``None`` query lists tagged repos by recency.
|
|
557
|
+
"""
|
|
558
|
+
from drowse.io.brand_migration import LEGACY_NAMES
|
|
559
|
+
|
|
560
|
+
api = _hf_api()
|
|
561
|
+
results: list[Any] = []
|
|
562
|
+
seen: set[str] = set()
|
|
563
|
+
for brand in ("drowse", *LEGACY_NAMES):
|
|
564
|
+
required_tags = [f"{brand}-manifold"]
|
|
565
|
+
kwargs: dict[str, Any] = {"filter": required_tags, "limit": _HF_SEARCH_CAP}
|
|
566
|
+
if query:
|
|
567
|
+
kwargs["search"] = query
|
|
568
|
+
try:
|
|
569
|
+
matches = list(api.list_models(**kwargs))
|
|
570
|
+
except TypeError:
|
|
571
|
+
# Older huggingface_hub uses ``tags`` instead of ``filter``.
|
|
572
|
+
kwargs.pop("filter", None)
|
|
573
|
+
kwargs["tags"] = required_tags
|
|
574
|
+
matches = list(api.list_models(**kwargs))
|
|
575
|
+
for match in matches:
|
|
576
|
+
if match.id not in seen:
|
|
577
|
+
seen.add(match.id)
|
|
578
|
+
results.append(match)
|
|
579
|
+
if len(results) == _HF_SEARCH_CAP:
|
|
580
|
+
break
|
|
581
|
+
if len(results) == _HF_SEARCH_CAP:
|
|
582
|
+
break
|
|
583
|
+
|
|
584
|
+
rows: list[dict[str, Any]] = []
|
|
585
|
+
for r in results[:_HF_SEARCH_CAP]:
|
|
586
|
+
coord = r.id
|
|
587
|
+
if "/" in coord:
|
|
588
|
+
ns, nm = coord.split("/", 1)
|
|
589
|
+
else:
|
|
590
|
+
ns, nm = "", coord
|
|
591
|
+
|
|
592
|
+
raw_tags = getattr(r, "tags", None) or []
|
|
593
|
+
tags = (
|
|
594
|
+
[str(t) for t in raw_tags]
|
|
595
|
+
if isinstance(raw_tags, (list, tuple))
|
|
596
|
+
else []
|
|
597
|
+
)
|
|
598
|
+
raw_desc = getattr(r, "description", "") or ""
|
|
599
|
+
description = raw_desc if isinstance(raw_desc, str) else ""
|
|
600
|
+
|
|
601
|
+
# Fetch the manifest for fields list_models doesn't surface:
|
|
602
|
+
# the domain label, node count, fit_mode, and any fitted-model
|
|
603
|
+
# tensor stems. Best-effort — missing info just yields empty
|
|
604
|
+
# fields so the search list still renders.
|
|
605
|
+
info: dict[str, Any] = {}
|
|
606
|
+
if not description or not tags:
|
|
607
|
+
try:
|
|
608
|
+
info = fetch_manifold_info(coord)
|
|
609
|
+
except Exception:
|
|
610
|
+
info = {}
|
|
611
|
+
|
|
612
|
+
row: dict[str, Any] = {
|
|
613
|
+
"name": info.get("name", nm),
|
|
614
|
+
"namespace": info.get("namespace", ns),
|
|
615
|
+
"description": info.get("description", description),
|
|
616
|
+
"tags": info.get("tags", tags),
|
|
617
|
+
"node_count": info.get("node_count", 0),
|
|
618
|
+
"domain_label": info.get("domain_label", "?"),
|
|
619
|
+
"fit_mode": info.get("fit_mode", "authored"),
|
|
620
|
+
"tensor_models": info.get("tensor_models", []),
|
|
621
|
+
}
|
|
622
|
+
rows.append(row)
|
|
623
|
+
|
|
624
|
+
return rows
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
def fetch_manifold_info(
|
|
628
|
+
coord: str, revision: Optional[str] = None,
|
|
629
|
+
) -> dict[str, Any]:
|
|
630
|
+
"""Fetch minimal info about an HF drowse-manifold repo without a full pull.
|
|
631
|
+
|
|
632
|
+
Pulls only ``manifold.json`` plus the repo's file listing — same
|
|
633
|
+
cheap single-file probe. Returns a dict the
|
|
634
|
+
search row renderer can consume; raises :class:`HFError` on
|
|
635
|
+
transport / format failure.
|
|
636
|
+
"""
|
|
637
|
+
label = f"{coord}@{revision}" if revision else coord
|
|
638
|
+
try:
|
|
639
|
+
dl_kwargs: dict[str, Any] = {}
|
|
640
|
+
if revision is not None:
|
|
641
|
+
dl_kwargs["revision"] = revision
|
|
642
|
+
mj_path = _hf_hub_download(coord, "manifold.json", **dl_kwargs)
|
|
643
|
+
with open(mj_path) as f:
|
|
644
|
+
data = json.load(f)
|
|
645
|
+
api = _hf_api()
|
|
646
|
+
list_kwargs: dict[str, Any] = {"repo_id": coord, "repo_type": "model"}
|
|
647
|
+
if revision is not None:
|
|
648
|
+
list_kwargs["revision"] = revision
|
|
649
|
+
files = api.list_repo_files(**list_kwargs)
|
|
650
|
+
except Exception as e:
|
|
651
|
+
raise HFError(f"{label}: fetch_manifold_info failed ({e})") from e
|
|
652
|
+
|
|
653
|
+
fmt_version = data.get("format_version")
|
|
654
|
+
if (
|
|
655
|
+
not isinstance(fmt_version, int)
|
|
656
|
+
or isinstance(fmt_version, bool)
|
|
657
|
+
or fmt_version != MANIFOLD_FORMAT_VERSION
|
|
658
|
+
):
|
|
659
|
+
raise HFError(
|
|
660
|
+
f"{label}: manifold format_version must be exactly "
|
|
661
|
+
f"{MANIFOLD_FORMAT_VERSION}, got {fmt_version!r}."
|
|
662
|
+
)
|
|
663
|
+
manifest_name = data.get("name")
|
|
664
|
+
if not isinstance(manifest_name, str) or not NAME_REGEX.match(manifest_name):
|
|
665
|
+
raise HFError(f"{label}: manifold has invalid or missing name")
|
|
666
|
+
fit_mode = data.get("fit_mode")
|
|
667
|
+
if fit_mode not in {"authored", "pca", "spectral", "auto", "baked"}:
|
|
668
|
+
raise HFError(f"{label}: manifold has invalid or missing fit_mode")
|
|
669
|
+
|
|
670
|
+
tensor_models = sorted(
|
|
671
|
+
Path(f).stem for f in files
|
|
672
|
+
if f.endswith(".safetensors")
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
ns, _, nm = coord.partition("/")
|
|
676
|
+
domain = data.get("domain") or {}
|
|
677
|
+
nodes = data.get("nodes") or []
|
|
678
|
+
node_count = len(nodes) if isinstance(nodes, list) else 0
|
|
679
|
+
|
|
680
|
+
if domain:
|
|
681
|
+
kind = domain.get("type", "?")
|
|
682
|
+
if kind == "box":
|
|
683
|
+
n = len(domain.get("axes") or [])
|
|
684
|
+
elif kind == "sphere":
|
|
685
|
+
n = int(domain.get("dim", 0) or 0)
|
|
686
|
+
elif kind == "custom":
|
|
687
|
+
n = int(domain.get("embed_dim", 0) or 0)
|
|
688
|
+
else:
|
|
689
|
+
n = 0
|
|
690
|
+
domain_label = f"{kind}({n}d)"
|
|
691
|
+
elif fit_mode in {"pca", "spectral", "auto"}:
|
|
692
|
+
domain_label = f"discover-{fit_mode}"
|
|
693
|
+
else:
|
|
694
|
+
domain_label = "?"
|
|
695
|
+
|
|
696
|
+
raw_tags = data.get("tags") or []
|
|
697
|
+
tags = [str(t) for t in raw_tags] if isinstance(raw_tags, (list, tuple)) else []
|
|
698
|
+
|
|
699
|
+
return {
|
|
700
|
+
"name": str(data.get("name") or nm),
|
|
701
|
+
"namespace": ns,
|
|
702
|
+
"description": str(data.get("description") or ""),
|
|
703
|
+
"tags": tags,
|
|
704
|
+
"node_count": node_count,
|
|
705
|
+
"domain_label": domain_label,
|
|
706
|
+
"fit_mode": fit_mode,
|
|
707
|
+
"tensor_models": tensor_models,
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
# ------------------------------------------------------------------ install --
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
class ManifoldInstallConflict(RuntimeError, DrowseError):
|
|
715
|
+
"""A folder already exists at the install target and ``force=False``."""
|
|
716
|
+
|
|
717
|
+
def user_message(self) -> tuple[int, str]:
|
|
718
|
+
return (409, str(self) or self.__class__.__name__)
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
def _install_destination(namespace: str, name: str) -> Path:
|
|
722
|
+
from drowse.io.manifold_authoring import RESERVED_NAMESPACES
|
|
723
|
+
from drowse.io.paths import manifold_dir, manifolds_dir
|
|
724
|
+
|
|
725
|
+
for label, component in (("namespace", namespace), ("name", name)):
|
|
726
|
+
if not NAME_REGEX.fullmatch(component):
|
|
727
|
+
raise ValueError(
|
|
728
|
+
f"install target {label} {component!r} doesn't match NAME_REGEX "
|
|
729
|
+
f"{NAME_REGEX.pattern}"
|
|
730
|
+
)
|
|
731
|
+
if namespace in RESERVED_NAMESPACES:
|
|
732
|
+
raise ValueError(f"install target namespace {namespace!r} is reserved")
|
|
733
|
+
target = manifold_dir(namespace, name)
|
|
734
|
+
if not target.resolve(strict=False).is_relative_to(manifolds_dir().resolve(strict=False)):
|
|
735
|
+
raise ValueError("install target resolves outside the manifold directory")
|
|
736
|
+
return target
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
def _validate_local_install_tree(source: Path) -> None:
|
|
740
|
+
if source.is_symlink():
|
|
741
|
+
raise ValueError(f"local manifold source {source} is a symbolic link")
|
|
742
|
+
for root, directories, files in os.walk(source, followlinks=False):
|
|
743
|
+
for name in directories + files:
|
|
744
|
+
path = Path(root) / name
|
|
745
|
+
if path.is_symlink():
|
|
746
|
+
raise ValueError(f"local manifold source {path} is a symbolic link")
|
|
747
|
+
if not path.is_dir() and not path.is_file():
|
|
748
|
+
raise ValueError(f"local manifold source {path} is not a regular file or directory")
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
def install_manifold(
|
|
752
|
+
target: str,
|
|
753
|
+
as_: Optional[str] = None,
|
|
754
|
+
*,
|
|
755
|
+
force: bool = False,
|
|
756
|
+
on_progress: ProgressCallback | None = None,
|
|
757
|
+
) -> Path:
|
|
758
|
+
"""Install a manifold from an HF coord, local folder, or ``.drowse``.
|
|
759
|
+
|
|
760
|
+
Top-level orchestration over the HF pull and folder-copy primitives.
|
|
761
|
+
``target`` is one of:
|
|
762
|
+
* ``<ns>/<name>[@revision]`` — HF pull via :func:`pull_manifold`
|
|
763
|
+
* a local path to a folder — copy install
|
|
764
|
+
* a local ``.drowse`` path — verified transactional install
|
|
765
|
+
|
|
766
|
+
``as_`` overrides the destination ``<dst_ns>/<dst_name>`` (must be
|
|
767
|
+
fully qualified — manifold folders are always namespace-rooted).
|
|
768
|
+
``force`` overwrites an existing destination. ``on_progress`` narrates
|
|
769
|
+
the stages (resolve → download → validate → stage → swap) so a CLI or an
|
|
770
|
+
SSE client can show more than a spinner while a multi-hundred-megabyte
|
|
771
|
+
repo lands.
|
|
772
|
+
"""
|
|
773
|
+
from drowse.io.selectors import invalidate as invalidate_selector_index
|
|
774
|
+
|
|
775
|
+
_report(on_progress, f"Resolving {target}...")
|
|
776
|
+
p = Path(target)
|
|
777
|
+
if p.suffix.lower() in {".drowse", ".polythetic", ".saklaspack"}:
|
|
778
|
+
if not p.is_file():
|
|
779
|
+
raise FileNotFoundError(f"Drowse archive not found: {p}")
|
|
780
|
+
from drowse.io.drowse_archive import install_drowse_archive
|
|
781
|
+
|
|
782
|
+
return install_drowse_archive(
|
|
783
|
+
p, as_, force=force, on_progress=on_progress,
|
|
784
|
+
)
|
|
785
|
+
if p.exists() and p.is_dir():
|
|
786
|
+
installed = _install_local_manifold(
|
|
787
|
+
p, as_=as_, force=force, on_progress=on_progress,
|
|
788
|
+
)
|
|
789
|
+
# The installed roster changed; drop the resolver's memoized walks.
|
|
790
|
+
# (The HF branch below invalidates inside ``pull_manifold``.)
|
|
791
|
+
invalidate_selector_index()
|
|
792
|
+
return installed
|
|
793
|
+
|
|
794
|
+
coord, revision = split_revision(target)
|
|
795
|
+
if "/" not in coord:
|
|
796
|
+
raise ValueError(
|
|
797
|
+
f"install target must be '<ns>/<name>[@revision]' or a folder path: "
|
|
798
|
+
f"{target!r}"
|
|
799
|
+
)
|
|
800
|
+
|
|
801
|
+
_ns, name = coord.split("/", 1)
|
|
802
|
+
if as_:
|
|
803
|
+
if "/" not in as_:
|
|
804
|
+
raise ValueError(f"as_ must be '<ns>/<name>', got {as_!r}")
|
|
805
|
+
dst_ns, dst_name = as_.split("/", 1)
|
|
806
|
+
else:
|
|
807
|
+
dst_ns, dst_name = "local", name
|
|
808
|
+
|
|
809
|
+
dst = _install_destination(dst_ns, dst_name)
|
|
810
|
+
if dst.exists() and not force:
|
|
811
|
+
raise ManifoldInstallConflict(
|
|
812
|
+
f"{dst} already exists; pass force=True or as_=<ns>/<name> to relocate"
|
|
813
|
+
)
|
|
814
|
+
pull_manifold(
|
|
815
|
+
coord, target_folder=dst, force=force, revision=revision,
|
|
816
|
+
on_progress=on_progress,
|
|
817
|
+
)
|
|
818
|
+
return dst
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
def _install_local_manifold(
|
|
822
|
+
src: Path, *, as_: Optional[str] = None, force: bool = False,
|
|
823
|
+
on_progress: ProgressCallback | None = None,
|
|
824
|
+
) -> Path:
|
|
825
|
+
"""Validate and copy a local manifold folder into the cache."""
|
|
826
|
+
_report(on_progress, f"Validating {src.name}...")
|
|
827
|
+
_validate_local_install_tree(src)
|
|
828
|
+
try:
|
|
829
|
+
ManifoldFolder.load(src)
|
|
830
|
+
except ManifoldFormatError as e:
|
|
831
|
+
raise ValueError(f"{src}: source folder is not a manifold ({e})") from e
|
|
832
|
+
|
|
833
|
+
if as_:
|
|
834
|
+
if "/" not in as_:
|
|
835
|
+
raise ValueError(f"as_ must be '<ns>/<name>', got {as_!r}")
|
|
836
|
+
dst_ns, dst_name = as_.split("/", 1)
|
|
837
|
+
else:
|
|
838
|
+
dst_ns, dst_name = "local", src.name
|
|
839
|
+
|
|
840
|
+
dst = _install_destination(dst_ns, dst_name)
|
|
841
|
+
source_resolved = src.expanduser().resolve()
|
|
842
|
+
destination_resolved = dst.expanduser().resolve(strict=False)
|
|
843
|
+
same_path = source_resolved == destination_resolved
|
|
844
|
+
if not same_path and destination_resolved.is_relative_to(source_resolved):
|
|
845
|
+
raise ValueError("local manifold install destination is inside the source")
|
|
846
|
+
from drowse.io.manifold_folder import _locked_manifest
|
|
847
|
+
from drowse.io.staging import stage_verify_swap
|
|
848
|
+
|
|
849
|
+
def _install_from(source_path: Path) -> Path:
|
|
850
|
+
with _locked_manifest(dst):
|
|
851
|
+
backup = dst.with_name(dst.name + ".bak")
|
|
852
|
+
if not dst.exists() and backup.exists():
|
|
853
|
+
try:
|
|
854
|
+
backup.rename(dst)
|
|
855
|
+
except OSError as exc:
|
|
856
|
+
raise ManifoldInstallConflict(
|
|
857
|
+
f"{dst}: could not recover interrupted local install ({exc})"
|
|
858
|
+
) from exc
|
|
859
|
+
if same_path:
|
|
860
|
+
if not force:
|
|
861
|
+
raise ManifoldInstallConflict(
|
|
862
|
+
f"{dst} already exists; pass force=True or as_=<ns>/<name>"
|
|
863
|
+
)
|
|
864
|
+
# Reinstalling an already-installed folder onto itself is an exact
|
|
865
|
+
# no-op. Never reset the destination: it is the only source copy.
|
|
866
|
+
ManifoldFolder.load(src)
|
|
867
|
+
return dst
|
|
868
|
+
if dst.exists() and not force:
|
|
869
|
+
raise ManifoldInstallConflict(
|
|
870
|
+
f"{dst} already exists; pass force=True or as_=<ns>/<name>"
|
|
871
|
+
)
|
|
872
|
+
|
|
873
|
+
def _build(staging: Path) -> None:
|
|
874
|
+
_report(on_progress, f"Staging {src.name}...")
|
|
875
|
+
shutil.copytree(source_path, staging, dirs_exist_ok=True, symlinks=True)
|
|
876
|
+
_validate_local_install_tree(staging)
|
|
877
|
+
try:
|
|
878
|
+
staged = ManifoldFolder.load(staging)
|
|
879
|
+
except ManifoldFormatError as exc:
|
|
880
|
+
raise ManifoldInstallConflict(
|
|
881
|
+
f"{src}: staged local manifold failed validation ({exc})"
|
|
882
|
+
) from exc
|
|
883
|
+
try:
|
|
884
|
+
files = _rewrite_staged_manifold_name(staged, dst_name)
|
|
885
|
+
except ManifoldFormatError as exc:
|
|
886
|
+
raise ManifoldInstallConflict(
|
|
887
|
+
f"{src}: staged local manifold failed identity "
|
|
888
|
+
f"rewrite ({exc})"
|
|
889
|
+
) from exc
|
|
890
|
+
staged.write_metadata(files=files)
|
|
891
|
+
try:
|
|
892
|
+
ManifoldFolder.load(staging)
|
|
893
|
+
except ManifoldFormatError as exc:
|
|
894
|
+
raise ManifoldInstallConflict(
|
|
895
|
+
f"{src}: staged local manifold failed re-validation "
|
|
896
|
+
f"after destination rename ({exc})"
|
|
897
|
+
) from exc
|
|
898
|
+
# The swap follows immediately once ``build`` returns.
|
|
899
|
+
_report(on_progress, f"Installing {src.name} into {dst.name}...")
|
|
900
|
+
|
|
901
|
+
def _swap() -> Path:
|
|
902
|
+
return stage_verify_swap(
|
|
903
|
+
dst, force=force, label=str(src), build=_build,
|
|
904
|
+
make_error=ManifoldInstallConflict,
|
|
905
|
+
)
|
|
906
|
+
|
|
907
|
+
if force and dst.exists():
|
|
908
|
+
from drowse.io.manifold_folder import (
|
|
909
|
+
destructive_manifold_folder_transaction,
|
|
910
|
+
)
|
|
911
|
+
|
|
912
|
+
with destructive_manifold_folder_transaction(dst):
|
|
913
|
+
return _swap()
|
|
914
|
+
return _swap()
|
|
915
|
+
|
|
916
|
+
reserved = {
|
|
917
|
+
dst.with_name(dst.name + ".staging").resolve(strict=False),
|
|
918
|
+
dst.with_name(dst.name + ".bak").resolve(strict=False),
|
|
919
|
+
}
|
|
920
|
+
if any(source_resolved.is_relative_to(path) for path in reserved):
|
|
921
|
+
import tempfile
|
|
922
|
+
|
|
923
|
+
# Snapshot reserved-sibling sources before recovery/staging cleanup can
|
|
924
|
+
# rename or delete their only copy. This path is rare and correctness is
|
|
925
|
+
# worth the extra copy; normal installs still stream source→staging once.
|
|
926
|
+
with tempfile.TemporaryDirectory(prefix="drowse-local-install-") as tmp:
|
|
927
|
+
snapshot = Path(tmp) / src.name
|
|
928
|
+
shutil.copytree(src, snapshot, symlinks=True)
|
|
929
|
+
_validate_local_install_tree(snapshot)
|
|
930
|
+
return _install_from(snapshot)
|
|
931
|
+
return _install_from(src)
|