beamtime 0.2.0__tar.gz → 0.3.0__tar.gz
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.
- {beamtime-0.2.0 → beamtime-0.3.0}/PKG-INFO +4 -4
- {beamtime-0.2.0 → beamtime-0.3.0}/README.md +3 -3
- {beamtime-0.2.0 → beamtime-0.3.0}/pyproject.toml +2 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/pyproject.toml.orig +3 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/cli/__init__.py +100 -12
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/cli/format.py +235 -101
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/authored.py +4 -3
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/constants.py +3 -1
- beamtime-0.3.0/src/beamtime/format/moves.py +131 -0
- beamtime-0.3.0/src/beamtime/format/place.py +56 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/run.py +27 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/schema.py +1 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/times.py +15 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/__init__.py +135 -17
- beamtime-0.3.0/src/beamtime/guide/examples/code/reference-chart.js +21 -0
- beamtime-0.3.0/src/beamtime/guide/examples/data/reference.csv +9 -0
- beamtime-0.3.0/src/beamtime/guide/examples/data.yaml +25 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/examples/sweep.yaml +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/analysis.md +11 -5
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/anti-patterns.md +1 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/charts.md +6 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/checklist.md +2 -1
- beamtime-0.3.0/src/beamtime/guide/parts/data-files.md +90 -0
- beamtime-0.3.0/src/beamtime/guide/parts/index.md +18 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/kit-api.md +4 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/kit.md +10 -7
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/library.md +2 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/memory.md +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/predictions.md +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/proposals.md +13 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/queries.md +2 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/remote.md +4 -1
- beamtime-0.3.0/src/beamtime/guide/parts/type.md +47 -0
- beamtime-0.2.0/src/beamtime/guide/parts/overview.md → beamtime-0.3.0/src/beamtime/guide/parts/views.md +6 -30
- beamtime-0.3.0/src/beamtime/guide/rules/history/0.1.0.md +15 -0
- beamtime-0.3.0/src/beamtime/guide/rules/rules.md +37 -0
- beamtime-0.3.0/src/beamtime/guide/rules.py +192 -0
- {beamtime-0.2.0/src/beamtime/mcp → beamtime-0.3.0/src/beamtime/guide}/skills.py +2 -2
- beamtime-0.3.0/src/beamtime/index/cache.py +277 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/index/columns.py +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/index/daemon.py +22 -7
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/index/index.py +82 -21
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/index/ingest.py +35 -7
- beamtime-0.3.0/src/beamtime/index/procs.py +191 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/index/store.py +19 -3
- beamtime-0.3.0/src/beamtime/mcp/__init__.py +45 -0
- beamtime-0.3.0/src/beamtime/mcp/server.py +545 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/admin.py +164 -152
- beamtime-0.3.0/src/beamtime/ops/answers.py +730 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/authored.py +6 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/blocks.py +24 -26
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/budget.py +39 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/context.py +5 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/copy.py +3 -2
- beamtime-0.3.0/src/beamtime/ops/procs.py +366 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/reading.py +315 -234
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/record.py +60 -10
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/registry.py +386 -125
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/views.py +134 -31
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/__init__.py +19 -7
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/aggregate.py +17 -5
- {beamtime-0.2.0/src/beamtime/cli → beamtime-0.3.0/src/beamtime/query}/conditions.py +18 -14
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/distinguish.py +23 -7
- beamtime-0.3.0/src/beamtime/query/facts.py +141 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/fields.py +94 -11
- beamtime-0.3.0/src/beamtime/query/files.py +141 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/kinds.py +63 -27
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/models.py +88 -13
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/read.py +38 -3
- beamtime-0.3.0/src/beamtime/query/resolve.py +130 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/select.py +102 -82
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/check.py +26 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/memory.py +1 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/notes.py +21 -3
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/proposals.py +29 -10
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/remote/__init__.py +35 -6
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/remote/client.py +10 -3
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/remote/pull.py +9 -7
- beamtime-0.3.0/src/beamtime/remote/route.py +374 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/remote/sources.py +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/remote/via_serve.py +24 -6
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/env.py +8 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/paths.py +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/run.py +23 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/api.py +93 -108
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/app.py +18 -6
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/auth.py +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/live.py +7 -3
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/server.py +130 -13
- beamtime-0.3.0/src/beamtime/serve/static/app.css +1 -0
- beamtime-0.3.0/src/beamtime/serve/static/app.js +614 -0
- beamtime-0.3.0/src/beamtime/serve/static/chunks/chunk-A2X3XNU4.js +1 -0
- beamtime-0.3.0/src/beamtime/serve/static/chunks/chunk-QXSDQEZJ.js +291 -0
- beamtime-0.3.0/src/beamtime/serve/static/chunks/uplot-2XBUL566.js +1 -0
- beamtime-0.3.0/src/beamtime/serve/static/export/kit.js +539 -0
- beamtime-0.3.0/src/beamtime/serve/static/export/main.css +1 -0
- beamtime-0.3.0/src/beamtime/serve/static/export/main.js +1225 -0
- beamtime-0.3.0/src/beamtime/serve/static/favicon-live.svg +18 -0
- beamtime-0.3.0/src/beamtime/serve/static/favicon.svg +11 -0
- beamtime-0.3.0/src/beamtime/serve/static/kit.js +15 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/tokens.json +49 -49
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/stdio.py +43 -49
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/settings.py +241 -11
- beamtime-0.3.0/src/beamtime/setup/__init__.py +1 -0
- beamtime-0.3.0/src/beamtime/setup/agents.py +567 -0
- beamtime-0.3.0/src/beamtime/setup/apply.py +39 -0
- beamtime-0.3.0/src/beamtime/setup/changes.py +31 -0
- beamtime-0.3.0/src/beamtime/setup/flow.py +2083 -0
- beamtime-0.3.0/src/beamtime/setup/importers/__init__.py +112 -0
- beamtime-0.3.0/src/beamtime/setup/importers/beamtime.py +189 -0
- beamtime-0.3.0/src/beamtime/setup/importers/csv.py +77 -0
- beamtime-0.3.0/src/beamtime/setup/importers/mlflow.py +253 -0
- beamtime-0.3.0/src/beamtime/setup/importers/notes.py +68 -0
- beamtime-0.3.0/src/beamtime/setup/importers/tensorboard.py +247 -0
- beamtime-0.3.0/src/beamtime/setup/importers/wandb.py +220 -0
- beamtime-0.3.0/src/beamtime/setup/importers/write.py +99 -0
- beamtime-0.3.0/src/beamtime/setup/plan.py +1187 -0
- beamtime-0.3.0/src/beamtime/setup/remotes.py +255 -0
- beamtime-0.3.0/src/beamtime/setup/scan.py +751 -0
- beamtime-0.3.0/src/beamtime/setup/sdk.py +101 -0
- beamtime-0.3.0/src/beamtime/setup/stale.py +306 -0
- beamtime-0.3.0/src/beamtime/setup/term.py +734 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/code.py +16 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/compile.py +37 -21
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/defaults.py +112 -33
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/export.py +27 -7
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/library.py +1 -1
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/model.py +40 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/prefs.py +12 -51
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/render.py +21 -11
- beamtime-0.3.0/src/beamtime/views/settings.py +136 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/store.py +24 -7
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/theme.py +2 -2
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/validate.py +119 -20
- beamtime-0.2.0/src/beamtime/format/moves.py +0 -80
- beamtime-0.2.0/src/beamtime/index/cache.py +0 -132
- beamtime-0.2.0/src/beamtime/mcp/__init__.py +0 -23
- beamtime-0.2.0/src/beamtime/mcp/server.py +0 -330
- beamtime-0.2.0/src/beamtime/query/files.py +0 -85
- beamtime-0.2.0/src/beamtime/remote/route.py +0 -563
- beamtime-0.2.0/src/beamtime/serve/static/app.css +0 -1
- beamtime-0.2.0/src/beamtime/serve/static/app.js +0 -567
- beamtime-0.2.0/src/beamtime/serve/static/chunks/chunk-FUNMOJMB.js +0 -1
- beamtime-0.2.0/src/beamtime/serve/static/chunks/chunk-YZ3JESEH.js +0 -282
- beamtime-0.2.0/src/beamtime/serve/static/chunks/uplot-IVBXJZ5O.js +0 -1
- beamtime-0.2.0/src/beamtime/serve/static/export/kit.js +0 -530
- beamtime-0.2.0/src/beamtime/serve/static/export/main.css +0 -1
- beamtime-0.2.0/src/beamtime/serve/static/export/main.js +0 -1169
- beamtime-0.2.0/src/beamtime/serve/static/favicon.svg +0 -11
- beamtime-0.2.0/src/beamtime/serve/static/kit.js +0 -15
- {beamtime-0.2.0 → beamtime-0.3.0}/LICENSE +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/cli/__main__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/ids.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/io.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/names.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/png.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/format/tree.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/examples/ablation.yaml +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/examples/code/phase-map.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/examples/custom.yaml +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/examples/direction.yaml +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/examples/run.yaml +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/notes.md +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/guide/parts/verdicts.md +0 -0
- /beamtime-0.2.0/src/beamtime/guide/parts/instructions.md → /beamtime-0.3.0/src/beamtime/guide/rules/history/0.2.0.md +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/index/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/lightning.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/ops/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/progress.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/query/where.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/plans.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/stats.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/record/status.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/capture.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/data.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/stats.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/sdk/system.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/THIRD_PARTY_LICENSES.txt +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/chunk-O2K4N3UR.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/chunk-RE2SFIGY.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/chunk-VC46IEJQ.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/d3-QBYDBZGT.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/katex-GGDOZORH.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/md-SW3VT2BQ.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/chunks/uPlot.esm-HZSBCFQH.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/IBMPlex-LICENSE.txt +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/IBMPlexMono-Regular.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/IBMPlexSans-Bold.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/IBMPlexSans-Regular.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/XCharter-Bold.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/XCharter-Italic.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/XCharter-LICENSE.txt +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/fonts/XCharter-Roman.woff2 +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/index.html +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/katex.css +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/serve/static/kit/frame.html +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/synth/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/synth/generate.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/synth/summary.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/__init__.py +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/checks.js +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/colormaps.json +0 -0
- {beamtime-0.2.0 → beamtime-0.3.0}/src/beamtime/views/figure.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: beamtime
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Experiment tracking for numerical experiments, shared by people and agents: runs with proposals and verdicts, and views built by agents.
|
|
5
5
|
Author: hummerichsander
|
|
6
6
|
Author-email: hummerichsander <sander.hummerich@gmx.de>
|
|
@@ -35,7 +35,7 @@ for you and your coding agent.
|
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
pip install 'beamtime[serve]'
|
|
38
|
-
beamtime
|
|
38
|
+
beamtime setup # looks at your project, asks a few questions, writes after you confirm
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
```python
|
|
@@ -56,8 +56,8 @@ beamtime mcp install # and in Claude Code
|
|
|
56
56
|
**[hummerichsander.github.io/beamtime](https://hummerichsander.github.io/beamtime/)**: start with
|
|
57
57
|
the [quickstart](https://hummerichsander.github.io/beamtime/quickstart.html), then
|
|
58
58
|
[how it works](https://hummerichsander.github.io/beamtime/how-it-works.html). The guides cover
|
|
59
|
-
agents, proposals and verdicts, pages, clusters, remote machines, PyTorch
|
|
60
|
-
figures, and settings. The same pages are in [`docs/`](docs/index.md).
|
|
59
|
+
setting up a project, agents, proposals and verdicts, pages, clusters, remote machines, PyTorch
|
|
60
|
+
Lightning, sharing and figures, and settings. The same pages are in [`docs/`](docs/index.md).
|
|
61
61
|
|
|
62
62
|
## License
|
|
63
63
|
|
|
@@ -10,7 +10,7 @@ for you and your coding agent.
|
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
pip install 'beamtime[serve]'
|
|
13
|
-
beamtime
|
|
13
|
+
beamtime setup # looks at your project, asks a few questions, writes after you confirm
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
```python
|
|
@@ -31,8 +31,8 @@ beamtime mcp install # and in Claude Code
|
|
|
31
31
|
**[hummerichsander.github.io/beamtime](https://hummerichsander.github.io/beamtime/)**: start with
|
|
32
32
|
the [quickstart](https://hummerichsander.github.io/beamtime/quickstart.html), then
|
|
33
33
|
[how it works](https://hummerichsander.github.io/beamtime/how-it-works.html). The guides cover
|
|
34
|
-
agents, proposals and verdicts, pages, clusters, remote machines, PyTorch
|
|
35
|
-
figures, and settings. The same pages are in [`docs/`](docs/index.md).
|
|
34
|
+
setting up a project, agents, proposals and verdicts, pages, clusters, remote machines, PyTorch
|
|
35
|
+
Lightning, sharing and figures, and settings. The same pages are in [`docs/`](docs/index.md).
|
|
36
36
|
|
|
37
37
|
## License
|
|
38
38
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "beamtime"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.0"
|
|
4
4
|
description = "Experiment tracking for numerical experiments, shared by people and agents: runs with proposals and verdicts, and views built by agents."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -73,3 +73,4 @@ select = [
|
|
|
73
73
|
testpaths = ["tests"]
|
|
74
74
|
addopts = "-n 4 --maxschedchunk=1"
|
|
75
75
|
filterwarnings = ["ignore::DeprecationWarning:scienceplots"]
|
|
76
|
+
markers = ["browser: drives a headless browser (Chromium through Playwright)"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "beamtime"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.0"
|
|
4
4
|
description = "Experiment tracking for numerical experiments, shared by people and agents: runs with proposals and verdicts, and views built by agents."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -65,3 +65,5 @@ testpaths = ["tests"]
|
|
|
65
65
|
addopts = "-n 4 --maxschedchunk=1"
|
|
66
66
|
# scienceplots registers its styles with functions matplotlib 3.11 deprecates; not ours to fix.
|
|
67
67
|
filterwarnings = ["ignore::DeprecationWarning:scienceplots"]
|
|
68
|
+
# tests that drive a headless browser; CI runs them in the web job only (-m browser).
|
|
69
|
+
markers = ["browser: drives a headless browser (Chromium through Playwright)"]
|
|
@@ -5,7 +5,7 @@ import json
|
|
|
5
5
|
import sys
|
|
6
6
|
import types
|
|
7
7
|
from pathlib import Path
|
|
8
|
-
from typing import Annotated, Any, Literal, Union, get_args, get_origin
|
|
8
|
+
from typing import Annotated, Any, Literal, NoReturn, Union, get_args, get_origin
|
|
9
9
|
|
|
10
10
|
EXAMPLES = """examples:
|
|
11
11
|
beamtime runs scaling/lr-sweep --where 'config.lr<1e-3' --sort -metric.val/acc.max
|
|
@@ -27,6 +27,7 @@ GROUPS = {
|
|
|
27
27
|
"view": "build, check and save a group's view",
|
|
28
28
|
"block": "library blocks: list, show, promote, fork, check and save",
|
|
29
29
|
"source": "add, list or remove a remote",
|
|
30
|
+
"run": "make hidden runs count like any run",
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
|
|
@@ -54,16 +55,26 @@ def scalar(text: str) -> Any:
|
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
def step_value(text: str) -> Any:
|
|
57
|
-
"""Read ``--step``: ``last``, ``all``, a step, or ``
|
|
58
|
+
"""Read ``--step``: ``last``, ``all``, a step, ``first:last``, or ``last:step``.
|
|
58
59
|
|
|
59
60
|
:param text: The value as typed.
|
|
60
61
|
:return: The value in the object form."""
|
|
61
62
|
if ":" in text:
|
|
62
63
|
a, b = text.split(":", 1)
|
|
63
|
-
return [int(a), int(b)]
|
|
64
|
+
return [a if a == "last" else int(a), int(b)]
|
|
64
65
|
return scalar(text)
|
|
65
66
|
|
|
66
67
|
|
|
68
|
+
def agent_pairs(text: str) -> list[str]:
|
|
69
|
+
"""Read one ``--agent-set`` value: a pair, or pairs joined by commas.
|
|
70
|
+
|
|
71
|
+
:param text: The flag value.
|
|
72
|
+
:return: The ``KEY=VALUE`` pairs."""
|
|
73
|
+
from beamtime.setup.plan import split_agent_set
|
|
74
|
+
|
|
75
|
+
return split_agent_set(text) or [text]
|
|
76
|
+
|
|
77
|
+
|
|
67
78
|
def pair(text: str) -> tuple[str, str]:
|
|
68
79
|
"""Read a ``name=value`` flag value.
|
|
69
80
|
|
|
@@ -123,13 +134,19 @@ def add_field(parser: argparse.ArgumentParser, field: Any, positional: bool) ->
|
|
|
123
134
|
"type": lambda t: [scalar(v) or None for v in t.split(":")],
|
|
124
135
|
}
|
|
125
136
|
case "step":
|
|
126
|
-
kw |= {"metavar": "last|all|STEP|FIRST:LAST", "type": step_value}
|
|
137
|
+
kw |= {"metavar": "last|all|STEP|FIRST:LAST|last:STEP", "type": step_value}
|
|
127
138
|
case "depth":
|
|
128
139
|
kw |= {"type": scalar, "metavar": "all|N"}
|
|
129
140
|
case "verdict":
|
|
130
141
|
kw |= {"action": "append", "type": pair, "default": [], "metavar": "PREDICTION=VERDICT"}
|
|
131
142
|
case "evidence":
|
|
132
143
|
kw |= {"action": "append", "type": evidence_item, "default": [], "metavar": "ITEM"}
|
|
144
|
+
case "remote" | "skip_remote" | "install_remote" | "ssh_share":
|
|
145
|
+
kw |= {"action": "append", "default": [], "metavar": "NAME"}
|
|
146
|
+
case "agent_set":
|
|
147
|
+
kw |= {"action": "extend", "default": [], "type": agent_pairs, "metavar": "KEY=VALUE"}
|
|
148
|
+
case "import" | "import_notes" | "import_memory":
|
|
149
|
+
kw |= {"action": "append", "default": [], "metavar": "PATH"}
|
|
133
150
|
case _ if members == (bool,):
|
|
134
151
|
# a flag that defaults to on is turned off with --no-<name>.
|
|
135
152
|
kw["action"] = argparse.BooleanOptionalAction if kw.get("default") else "store_true"
|
|
@@ -145,11 +162,28 @@ def add_field(parser: argparse.ArgumentParser, field: Any, positional: bool) ->
|
|
|
145
162
|
kw["type"] = members[0]
|
|
146
163
|
case _:
|
|
147
164
|
pass
|
|
165
|
+
if (meta := describe(field.type)) is not None:
|
|
166
|
+
hidden = (meta.extra or {}).get("hidden")
|
|
167
|
+
kw.setdefault(
|
|
168
|
+
"help", argparse.SUPPRESS if hidden else (meta.description or "").replace("%", "%%")
|
|
169
|
+
)
|
|
148
170
|
parser.add_argument(*flags, **kw)
|
|
149
171
|
|
|
150
172
|
|
|
173
|
+
def describe(tp: Any) -> Any:
|
|
174
|
+
"""Find the ``msgspec.Meta`` of an annotated parameter type.
|
|
175
|
+
|
|
176
|
+
:param tp: The field's type.
|
|
177
|
+
:return: Its ``Meta``, or ``None``."""
|
|
178
|
+
import msgspec
|
|
179
|
+
|
|
180
|
+
if get_origin(tp) is not Annotated:
|
|
181
|
+
return None
|
|
182
|
+
return next((m for m in get_args(tp)[1:] if isinstance(m, msgspec.Meta)), None)
|
|
183
|
+
|
|
184
|
+
|
|
151
185
|
class Version(argparse.Action):
|
|
152
|
-
"""Print the version; looked up only when asked
|
|
186
|
+
"""Print the version, and a note when the serve extra is missing; looked up only when asked."""
|
|
153
187
|
|
|
154
188
|
def __call__(self, parser: Any, namespace: Any, values: Any, option: Any = None):
|
|
155
189
|
"""Print the version and exit.
|
|
@@ -158,12 +192,42 @@ class Version(argparse.Action):
|
|
|
158
192
|
:param namespace: Ignored.
|
|
159
193
|
:param values: Ignored.
|
|
160
194
|
:param option: Ignored."""
|
|
195
|
+
from importlib.util import find_spec
|
|
196
|
+
|
|
161
197
|
from beamtime import __version__
|
|
162
198
|
|
|
163
|
-
|
|
199
|
+
# setup reads the second word to tell whether this install can serve `beamtime mcp`.
|
|
200
|
+
extra = "" if find_spec("mcp") else " (no serve extra)"
|
|
201
|
+
print(f"beamtime {__version__}{extra}")
|
|
164
202
|
parser.exit()
|
|
165
203
|
|
|
166
204
|
|
|
205
|
+
class Parser(argparse.ArgumentParser):
|
|
206
|
+
"""An argument parser whose usage error prints its whole help first."""
|
|
207
|
+
|
|
208
|
+
def parse_known_args(
|
|
209
|
+
self, args: list[str] | None = None, namespace: argparse.Namespace | None = None
|
|
210
|
+
) -> tuple[argparse.Namespace, list[str]]:
|
|
211
|
+
"""Parse like argparse, but report leftovers here, not in the top parser.
|
|
212
|
+
|
|
213
|
+
:param args: The arguments.
|
|
214
|
+
:param namespace: The namespace to fill.
|
|
215
|
+
:return: The namespace and the leftover arguments (always empty)."""
|
|
216
|
+
parsed, rest = super().parse_known_args(args, namespace)
|
|
217
|
+
if rest:
|
|
218
|
+
self.error(f"unrecognized arguments: {' '.join(rest)}")
|
|
219
|
+
return parsed, rest
|
|
220
|
+
|
|
221
|
+
def error(self, message: str) -> NoReturn:
|
|
222
|
+
"""Print the help and the error to stderr and exit with 2.
|
|
223
|
+
|
|
224
|
+
:param message: The error.
|
|
225
|
+
:raises SystemExit: Always, with code 2."""
|
|
226
|
+
print(self.format_help(), file=sys.stderr)
|
|
227
|
+
print(f"{self.prog}: error: {message}", file=sys.stderr)
|
|
228
|
+
sys.exit(2)
|
|
229
|
+
|
|
230
|
+
|
|
167
231
|
def build_parser() -> argparse.ArgumentParser:
|
|
168
232
|
"""Build the parser from the operation registry.
|
|
169
233
|
|
|
@@ -181,7 +245,7 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
181
245
|
help="the canonical answer",
|
|
182
246
|
)
|
|
183
247
|
common.add_argument("--quiet", action="store_true", default=argparse.SUPPRESS)
|
|
184
|
-
parser =
|
|
248
|
+
parser = Parser(
|
|
185
249
|
prog="beamtime",
|
|
186
250
|
description="Experiment tracking for people and their coding agents.",
|
|
187
251
|
epilog=EXAMPLES,
|
|
@@ -191,7 +255,7 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
191
255
|
parser.add_argument("--root", default=None, help="another project's root")
|
|
192
256
|
parser.add_argument("--json", action="store_true", help="the canonical answer as JSON")
|
|
193
257
|
parser.add_argument("--quiet", action="store_true", help="print nothing on success")
|
|
194
|
-
commands = parser.add_subparsers(dest="command", metavar="COMMAND")
|
|
258
|
+
commands = parser.add_subparsers(dest="command", metavar="COMMAND", parser_class=Parser)
|
|
195
259
|
groups: dict[str, Any] = {}
|
|
196
260
|
for op in OPS:
|
|
197
261
|
if op.name == "query":
|
|
@@ -206,7 +270,9 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
206
270
|
if group not in groups:
|
|
207
271
|
help_ = GROUPS[group]
|
|
208
272
|
group_parser = commands.add_parser(group, parents=[common], help=help_)
|
|
209
|
-
groups[group] = group_parser.add_subparsers(
|
|
273
|
+
groups[group] = group_parser.add_subparsers(
|
|
274
|
+
dest=f"{group}_command", parser_class=Parser
|
|
275
|
+
)
|
|
210
276
|
where = groups[group]
|
|
211
277
|
label = op.summary + (" (user only)" if op.user_only else "")
|
|
212
278
|
sub = where.add_parser(name, parents=[common], help=label, description=op.summary)
|
|
@@ -224,8 +290,8 @@ def params_of(op_name: str, args: argparse.Namespace) -> dict[str, Any]:
|
|
|
224
290
|
:return: Parameters by encoded name."""
|
|
225
291
|
import msgspec
|
|
226
292
|
|
|
227
|
-
from beamtime.cli.conditions import parse_where
|
|
228
293
|
from beamtime.ops.registry import BY_NAME
|
|
294
|
+
from beamtime.query.conditions import parse_where
|
|
229
295
|
|
|
230
296
|
op = BY_NAME[op_name]
|
|
231
297
|
if op_name == "query":
|
|
@@ -257,7 +323,7 @@ def read_query(text: str) -> Any:
|
|
|
257
323
|
raise ValueError(
|
|
258
324
|
f"no query file {text!r}; pass a file or an object like {{runs: {{}}}}"
|
|
259
325
|
)
|
|
260
|
-
text = path.read_text()
|
|
326
|
+
text = path.read_text(encoding="utf-8")
|
|
261
327
|
return yaml.safe_load(text) if not text.lstrip().startswith("{") else json_or_yaml(text)
|
|
262
328
|
|
|
263
329
|
|
|
@@ -288,6 +354,26 @@ def join_sort(argv: list[str]) -> list[str]:
|
|
|
288
354
|
return out
|
|
289
355
|
|
|
290
356
|
|
|
357
|
+
def tool_names(argv: list[str]) -> list[str]:
|
|
358
|
+
"""Accept a command by its MCP tool name, as agents write it (``memory_show``).
|
|
359
|
+
|
|
360
|
+
:param argv: The arguments.
|
|
361
|
+
:return: The arguments with a tool name split into its command path."""
|
|
362
|
+
from beamtime.ops.registry import BY_TOOL
|
|
363
|
+
|
|
364
|
+
skip = False
|
|
365
|
+
for i, arg in enumerate(argv):
|
|
366
|
+
if skip:
|
|
367
|
+
skip = False
|
|
368
|
+
elif arg == "--root":
|
|
369
|
+
skip = True
|
|
370
|
+
elif not arg.startswith("-"):
|
|
371
|
+
if "_" in arg and (op := BY_TOOL.get(arg)) is not None:
|
|
372
|
+
return argv[:i] + op.name.split() + argv[i + 1 :]
|
|
373
|
+
return argv
|
|
374
|
+
return argv
|
|
375
|
+
|
|
376
|
+
|
|
291
377
|
def main(argv: list[str] | None = None) -> None:
|
|
292
378
|
"""Run the beamtime command line interface.
|
|
293
379
|
|
|
@@ -299,7 +385,7 @@ def main(argv: list[str] | None = None) -> None:
|
|
|
299
385
|
"The SDK (import beamtime) works on 3.10."
|
|
300
386
|
)
|
|
301
387
|
parser = build_parser()
|
|
302
|
-
args = parser.parse_args(join_sort(sys.argv[1:] if argv is None else argv))
|
|
388
|
+
args = parser.parse_args(tool_names(join_sort(sys.argv[1:] if argv is None else argv)))
|
|
303
389
|
if args.command is None:
|
|
304
390
|
parser.print_help()
|
|
305
391
|
sys.exit(0)
|
|
@@ -331,3 +417,5 @@ def main(argv: list[str] | None = None) -> None:
|
|
|
331
417
|
print(text)
|
|
332
418
|
if answer.get("meta", {}).get("failed"):
|
|
333
419
|
sys.exit(1)
|
|
420
|
+
if code := answer.get("meta", {}).get("exit"):
|
|
421
|
+
sys.exit(code)
|