metabrowser 0.1.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.
- metabrowser-0.1.0/.flowmarkignore +4 -0
- metabrowser-0.1.0/.gitignore +190 -0
- metabrowser-0.1.0/.node-version +1 -0
- metabrowser-0.1.0/.npmrc +9 -0
- metabrowser-0.1.0/.nvmrc +1 -0
- metabrowser-0.1.0/CHANGELOG.md +26 -0
- metabrowser-0.1.0/CONTRIBUTING.md +51 -0
- metabrowser-0.1.0/LICENSE +21 -0
- metabrowser-0.1.0/Makefile +105 -0
- metabrowser-0.1.0/PKG-INFO +302 -0
- metabrowser-0.1.0/README.md +257 -0
- metabrowser-0.1.0/SECURITY.md +41 -0
- metabrowser-0.1.0/SUPPLY-CHAIN-SECURITY.md +78 -0
- metabrowser-0.1.0/TODO.md +90 -0
- metabrowser-0.1.0/biome.json +56 -0
- metabrowser-0.1.0/devtools/__init__.py +1 -0
- metabrowser-0.1.0/devtools/check_distribution.py +198 -0
- metabrowser-0.1.0/devtools/check_supply_chain.py +144 -0
- metabrowser-0.1.0/devtools/lint.py +102 -0
- metabrowser-0.1.0/devtools/public_hygiene.py +184 -0
- metabrowser-0.1.0/docs/architecture.md +134 -0
- metabrowser-0.1.0/docs/design-system.md +162 -0
- metabrowser-0.1.0/docs/development.md +226 -0
- metabrowser-0.1.0/docs/e2e-testing.md +113 -0
- metabrowser-0.1.0/docs/installation.md +84 -0
- metabrowser-0.1.0/docs/plugins.md +395 -0
- metabrowser-0.1.0/docs/publishing.md +79 -0
- metabrowser-0.1.0/docs/realtime-debugging.md +102 -0
- metabrowser-0.1.0/docs/specs/file-editing.md +56 -0
- metabrowser-0.1.0/docs/specs/metabrowser-v0.1.0.md +277 -0
- metabrowser-0.1.0/docs/specs/scanning-state-and-recent-directories.md +47 -0
- metabrowser-0.1.0/images/metabrowser-overview.jpg +0 -0
- metabrowser-0.1.0/lefthook.yml +39 -0
- metabrowser-0.1.0/package-lock.json +361 -0
- metabrowser-0.1.0/package.json +15 -0
- metabrowser-0.1.0/pyproject.toml +220 -0
- metabrowser-0.1.0/skills/metabrowser/SKILL.md +65 -0
- metabrowser-0.1.0/skills/metabrowser/agents/openai.yaml +4 -0
- metabrowser-0.1.0/src/metabrowser/__init__.py +55 -0
- metabrowser-0.1.0/src/metabrowser/active_tracker.py +193 -0
- metabrowser-0.1.0/src/metabrowser/activity.py +275 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/__init__.py +0 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/agent_log/index.js +375 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/agent_log/manifest.toml +45 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/agent_log/sidekick.py +32 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/binary/index.js +9 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/binary/manifest.toml +15 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/markdown/index.js +186 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/markdown/manifest.toml +34 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/__init__.py +76 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/index.js +149 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/manifest.toml +35 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/parser.py +254 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/preview.js +279 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/styles.css +192 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/structured/tree.js +414 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/text/index.js +68 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/text/manifest.toml +20 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/unknown_jsonl/index.js +30 -0
- metabrowser-0.1.0/src/metabrowser/builtin_plugins/unknown_jsonl/manifest.toml +21 -0
- metabrowser-0.1.0/src/metabrowser/charts.py +286 -0
- metabrowser-0.1.0/src/metabrowser/cli/__init__.py +14 -0
- metabrowser-0.1.0/src/metabrowser/cli/http_readiness.py +69 -0
- metabrowser-0.1.0/src/metabrowser/cli/plugin_paths.py +27 -0
- metabrowser-0.1.0/src/metabrowser/cli/plugins.py +358 -0
- metabrowser-0.1.0/src/metabrowser/cli/remote.py +218 -0
- metabrowser-0.1.0/src/metabrowser/cli/serve.py +566 -0
- metabrowser-0.1.0/src/metabrowser/cli/ssh_utils.py +115 -0
- metabrowser-0.1.0/src/metabrowser/constants.py +16 -0
- metabrowser-0.1.0/src/metabrowser/dotenv.py +47 -0
- metabrowser-0.1.0/src/metabrowser/errors.py +19 -0
- metabrowser-0.1.0/src/metabrowser/events.py +499 -0
- metabrowser-0.1.0/src/metabrowser/events_route.py +755 -0
- metabrowser-0.1.0/src/metabrowser/file_extensions.py +104 -0
- metabrowser-0.1.0/src/metabrowser/file_kinds.py +258 -0
- metabrowser-0.1.0/src/metabrowser/fs_paths.py +90 -0
- metabrowser-0.1.0/src/metabrowser/gz_io.py +484 -0
- metabrowser-0.1.0/src/metabrowser/ignore_filter.py +145 -0
- metabrowser-0.1.0/src/metabrowser/inventory.py +947 -0
- metabrowser-0.1.0/src/metabrowser/jsonl_view.py +260 -0
- metabrowser-0.1.0/src/metabrowser/kpress_adapter.py +144 -0
- metabrowser-0.1.0/src/metabrowser/logutil/__init__.py +0 -0
- metabrowser-0.1.0/src/metabrowser/logutil/parsing.py +1535 -0
- metabrowser-0.1.0/src/metabrowser/mtime_cache.py +155 -0
- metabrowser-0.1.0/src/metabrowser/paths_safe.py +146 -0
- metabrowser-0.1.0/src/metabrowser/plugin_api.py +65 -0
- metabrowser-0.1.0/src/metabrowser/plugin_loader/__init__.py +0 -0
- metabrowser-0.1.0/src/metabrowser/plugin_loader/classify.py +249 -0
- metabrowser-0.1.0/src/metabrowser/plugin_loader/discovery.py +229 -0
- metabrowser-0.1.0/src/metabrowser/plugin_loader/manifest.py +376 -0
- metabrowser-0.1.0/src/metabrowser/plugin_loader/static_assets.py +220 -0
- metabrowser-0.1.0/src/metabrowser/plugin_paths.py +22 -0
- metabrowser-0.1.0/src/metabrowser/projections.py +129 -0
- metabrowser-0.1.0/src/metabrowser/py.typed +0 -0
- metabrowser-0.1.0/src/metabrowser/recent.py +197 -0
- metabrowser-0.1.0/src/metabrowser/server.py +2181 -0
- metabrowser-0.1.0/src/metabrowser/server_utils.py +87 -0
- metabrowser-0.1.0/src/metabrowser/settings.py +186 -0
- metabrowser-0.1.0/src/metabrowser/smoke_probes.py +387 -0
- metabrowser-0.1.0/src/metabrowser/sse.py +344 -0
- metabrowser-0.1.0/src/metabrowser/static/app.js +3939 -0
- metabrowser-0.1.0/src/metabrowser/static/charts.js +456 -0
- metabrowser-0.1.0/src/metabrowser/static/icons.js +124 -0
- metabrowser-0.1.0/src/metabrowser/static/perf.js +443 -0
- metabrowser-0.1.0/src/metabrowser/static/plugin_sdk.js +771 -0
- metabrowser-0.1.0/src/metabrowser/static/styles.css +2893 -0
- metabrowser-0.1.0/src/metabrowser/static/types.d.ts +197 -0
- metabrowser-0.1.0/src/metabrowser/static/vendor/highlight-toml.min.js +15 -0
- metabrowser-0.1.0/src/metabrowser/tree.py +705 -0
- metabrowser-0.1.0/src/metabrowser/walk.py +359 -0
- metabrowser-0.1.0/src/metabrowser/walker.py +458 -0
- metabrowser-0.1.0/src/metabrowser/watch_backends.py +374 -0
- metabrowser-0.1.0/src/metabrowser/wire_models.py +190 -0
- metabrowser-0.1.0/tests/conftest.py +38 -0
- metabrowser-0.1.0/tests/dom/agent_log_plugin_behavior.js +94 -0
- metabrowser-0.1.0/tests/dom/kpress_asset_loading.js +273 -0
- metabrowser-0.1.0/tests/dom/kpress_plugin_sdk_behavior.js +493 -0
- metabrowser-0.1.0/tests/dom/load_plugins.js +338 -0
- metabrowser-0.1.0/tests/dom/render_view.js +123 -0
- metabrowser-0.1.0/tests/dom/test_preview.js +226 -0
- metabrowser-0.1.0/tests/fixtures/sample_plugin/__init__.py +1 -0
- metabrowser-0.1.0/tests/fixtures/sample_plugin/index.js +39 -0
- metabrowser-0.1.0/tests/fixtures/sample_plugin/manifest.toml +22 -0
- metabrowser-0.1.0/tests/fixtures/sample_plugin/styles.css +13 -0
- metabrowser-0.1.0/tests/fixtures/sidekick_sample/__init__.py +1 -0
- metabrowser-0.1.0/tests/fixtures/sidekick_sample/handlers.py +30 -0
- metabrowser-0.1.0/tests/fixtures/sidekick_sample/index.js +25 -0
- metabrowser-0.1.0/tests/fixtures/sidekick_sample/manifest.toml +32 -0
- metabrowser-0.1.0/tests/manual-fixtures/events.jsonl +3 -0
- metabrowser-0.1.0/tests/manual-fixtures/example.py +12 -0
- metabrowser-0.1.0/tests/manual-fixtures/opaque.bin +129 -0
- metabrowser-0.1.0/tests/manual-fixtures/overview.md +14 -0
- metabrowser-0.1.0/tests/manual-fixtures/record.json +9 -0
- metabrowser-0.1.0/tests/manual-fixtures/status.svg +8 -0
- metabrowser-0.1.0/tests/test_active_tracker_event_loop_stall.py +118 -0
- metabrowser-0.1.0/tests/test_agent_log_plugin_behavior_js.py +36 -0
- metabrowser-0.1.0/tests/test_api_file_frontmatter.py +77 -0
- metabrowser-0.1.0/tests/test_api_file_plugin_views.py +105 -0
- metabrowser-0.1.0/tests/test_api_logical_fields.py +243 -0
- metabrowser-0.1.0/tests/test_browser_active_tracker.py +201 -0
- metabrowser-0.1.0/tests/test_browser_assets.py +62 -0
- metabrowser-0.1.0/tests/test_browser_client_filestore.py +682 -0
- metabrowser-0.1.0/tests/test_browser_events.py +276 -0
- metabrowser-0.1.0/tests/test_browser_events_route.py +448 -0
- metabrowser-0.1.0/tests/test_browser_inventory.py +1191 -0
- metabrowser-0.1.0/tests/test_browser_inventory_api.py +325 -0
- metabrowser-0.1.0/tests/test_browser_lifespan_e2e.py +212 -0
- metabrowser-0.1.0/tests/test_browser_projections.py +184 -0
- metabrowser-0.1.0/tests/test_browser_recent.py +252 -0
- metabrowser-0.1.0/tests/test_browser_recent_ui.py +403 -0
- metabrowser-0.1.0/tests/test_browser_v2.py +761 -0
- metabrowser-0.1.0/tests/test_browser_walk.py +328 -0
- metabrowser-0.1.0/tests/test_browser_watch_backends.py +161 -0
- metabrowser-0.1.0/tests/test_browser_wire_shape.py +353 -0
- metabrowser-0.1.0/tests/test_charts.py +94 -0
- metabrowser-0.1.0/tests/test_cli_plugins_dir_merge.py +241 -0
- metabrowser-0.1.0/tests/test_cli_serve.py +449 -0
- metabrowser-0.1.0/tests/test_client_logical_ext.py +97 -0
- metabrowser-0.1.0/tests/test_distribution_policy.py +34 -0
- metabrowser-0.1.0/tests/test_dotenv_loading.py +144 -0
- metabrowser-0.1.0/tests/test_e2e_filesystem_to_sse.py +326 -0
- metabrowser-0.1.0/tests/test_file_extensions.py +96 -0
- metabrowser-0.1.0/tests/test_frontmatter_badge_visible.py +44 -0
- metabrowser-0.1.0/tests/test_frontmatter_error_visible.py +103 -0
- metabrowser-0.1.0/tests/test_gzip_transparency.py +242 -0
- metabrowser-0.1.0/tests/test_index_cdn_origins.py +150 -0
- metabrowser-0.1.0/tests/test_jsonl_view_gzip.py +148 -0
- metabrowser-0.1.0/tests/test_kpress_asset_loading_js.py +52 -0
- metabrowser-0.1.0/tests/test_kpress_dependency_contract.py +32 -0
- metabrowser-0.1.0/tests/test_kpress_dynamic_render_smoke.py +366 -0
- metabrowser-0.1.0/tests/test_kpress_export_route.py +272 -0
- metabrowser-0.1.0/tests/test_kpress_export_seam.py +137 -0
- metabrowser-0.1.0/tests/test_kpress_print_contract.py +107 -0
- metabrowser-0.1.0/tests/test_kpress_render_route.py +352 -0
- metabrowser-0.1.0/tests/test_legacy_view_renderers_gone.py +134 -0
- metabrowser-0.1.0/tests/test_log_adapter_plugins.py +79 -0
- metabrowser-0.1.0/tests/test_markdown_plugin_ownership.py +113 -0
- metabrowser-0.1.0/tests/test_paths_safe.py +109 -0
- metabrowser-0.1.0/tests/test_perf_instrumentation.py +299 -0
- metabrowser-0.1.0/tests/test_plugin_contract_e2e.py +131 -0
- metabrowser-0.1.0/tests/test_plugin_e2e_render.py +163 -0
- metabrowser-0.1.0/tests/test_plugin_extra_assets.py +125 -0
- metabrowser-0.1.0/tests/test_plugin_loader.py +799 -0
- metabrowser-0.1.0/tests/test_plugin_public_api.py +76 -0
- metabrowser-0.1.0/tests/test_plugin_sdk_behavior_js.py +54 -0
- metabrowser-0.1.0/tests/test_plugin_sdk_helpers.py +107 -0
- metabrowser-0.1.0/tests/test_plugins_cli.py +211 -0
- metabrowser-0.1.0/tests/test_proc_browser_tree.py +338 -0
- metabrowser-0.1.0/tests/test_project_local_plugin_discovery.py +184 -0
- metabrowser-0.1.0/tests/test_public_hygiene.py +217 -0
- metabrowser-0.1.0/tests/test_raw_passthrough.py +197 -0
- metabrowser-0.1.0/tests/test_remote.py +197 -0
- metabrowser-0.1.0/tests/test_remote_cli.py +405 -0
- metabrowser-0.1.0/tests/test_sdk_jsonl_endpoint.py +69 -0
- metabrowser-0.1.0/tests/test_serve_open_race.py +177 -0
- metabrowser-0.1.0/tests/test_server_utils.py +34 -0
- metabrowser-0.1.0/tests/test_sse_and_activity_gz.py +79 -0
- metabrowser-0.1.0/tests/test_startup_nonblocking.py +34 -0
- metabrowser-0.1.0/tests/test_structured_e2e.py +116 -0
- metabrowser-0.1.0/tests/test_structured_plugin.py +192 -0
- metabrowser-0.1.0/tests/test_structured_preview_js.py +32 -0
- metabrowser-0.1.0/tests/test_supply_chain.py +121 -0
- metabrowser-0.1.0/tests/test_tree_folder_markers.py +134 -0
- metabrowser-0.1.0/tests/test_visibility_single_source.py +27 -0
- metabrowser-0.1.0/tests/test_zlib_transparency.py +316 -0
- metabrowser-0.1.0/tsconfig.json +32 -0
- metabrowser-0.1.0/tsconfig.legacy.json +21 -0
- metabrowser-0.1.0/uv.lock +1186 -0
- metabrowser-0.1.0/uv.toml +6 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# Additions to standard GitHub .gitignore:
|
|
2
|
+
*.bak
|
|
3
|
+
*.orig
|
|
4
|
+
tmp/
|
|
5
|
+
trash/
|
|
6
|
+
|
|
7
|
+
# Python tool caches
|
|
8
|
+
.ruff_cache/
|
|
9
|
+
|
|
10
|
+
# JavaScript tool caches
|
|
11
|
+
node_modules/
|
|
12
|
+
|
|
13
|
+
# GitHub's standard Python .gitignore:
|
|
14
|
+
|
|
15
|
+
# Byte-compiled / optimized / DLL files
|
|
16
|
+
__pycache__/
|
|
17
|
+
*.py[cod]
|
|
18
|
+
*$py.class
|
|
19
|
+
|
|
20
|
+
# C extensions
|
|
21
|
+
*.so
|
|
22
|
+
|
|
23
|
+
# Distribution / packaging
|
|
24
|
+
.Python
|
|
25
|
+
build/
|
|
26
|
+
develop-eggs/
|
|
27
|
+
dist/
|
|
28
|
+
downloads/
|
|
29
|
+
eggs/
|
|
30
|
+
.eggs/
|
|
31
|
+
lib/
|
|
32
|
+
lib64/
|
|
33
|
+
parts/
|
|
34
|
+
sdist/
|
|
35
|
+
var/
|
|
36
|
+
wheels/
|
|
37
|
+
share/python-wheels/
|
|
38
|
+
*.egg-info/
|
|
39
|
+
.installed.cfg
|
|
40
|
+
*.egg
|
|
41
|
+
MANIFEST
|
|
42
|
+
|
|
43
|
+
# PyInstaller
|
|
44
|
+
# Usually these files are written by a python script from a template
|
|
45
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
46
|
+
*.manifest
|
|
47
|
+
*.spec
|
|
48
|
+
|
|
49
|
+
# Installer logs
|
|
50
|
+
pip-log.txt
|
|
51
|
+
pip-delete-this-directory.txt
|
|
52
|
+
|
|
53
|
+
# Unit test / coverage reports
|
|
54
|
+
htmlcov/
|
|
55
|
+
.tox/
|
|
56
|
+
.nox/
|
|
57
|
+
.coverage
|
|
58
|
+
.coverage.*
|
|
59
|
+
.cache
|
|
60
|
+
nosetests.xml
|
|
61
|
+
coverage.xml
|
|
62
|
+
*.cover
|
|
63
|
+
*.py,cover
|
|
64
|
+
.hypothesis/
|
|
65
|
+
.pytest_cache/
|
|
66
|
+
cover/
|
|
67
|
+
|
|
68
|
+
# Translations
|
|
69
|
+
*.mo
|
|
70
|
+
*.pot
|
|
71
|
+
|
|
72
|
+
# Django stuff:
|
|
73
|
+
*.log
|
|
74
|
+
local_settings.py
|
|
75
|
+
db.sqlite3
|
|
76
|
+
db.sqlite3-journal
|
|
77
|
+
|
|
78
|
+
# Flask stuff:
|
|
79
|
+
instance/
|
|
80
|
+
.webassets-cache
|
|
81
|
+
|
|
82
|
+
# Scrapy stuff:
|
|
83
|
+
.scrapy
|
|
84
|
+
|
|
85
|
+
# Sphinx documentation
|
|
86
|
+
docs/_build/
|
|
87
|
+
|
|
88
|
+
# PyBuilder
|
|
89
|
+
.pybuilder/
|
|
90
|
+
target/
|
|
91
|
+
|
|
92
|
+
# Jupyter Notebook
|
|
93
|
+
.ipynb_checkpoints
|
|
94
|
+
|
|
95
|
+
# IPython
|
|
96
|
+
profile_default/
|
|
97
|
+
ipython_config.py
|
|
98
|
+
|
|
99
|
+
# pyenv
|
|
100
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
101
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
102
|
+
# .python-version
|
|
103
|
+
|
|
104
|
+
# pipenv
|
|
105
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
106
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
107
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
108
|
+
# install all needed dependencies.
|
|
109
|
+
#Pipfile.lock
|
|
110
|
+
|
|
111
|
+
# UV
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
113
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
114
|
+
# commonly ignored for libraries.
|
|
115
|
+
#uv.lock
|
|
116
|
+
|
|
117
|
+
# poetry
|
|
118
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
119
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
120
|
+
# commonly ignored for libraries.
|
|
121
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
122
|
+
#poetry.lock
|
|
123
|
+
|
|
124
|
+
# pdm
|
|
125
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
126
|
+
#pdm.lock
|
|
127
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
128
|
+
# in version control.
|
|
129
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
130
|
+
.pdm.toml
|
|
131
|
+
.pdm-python
|
|
132
|
+
.pdm-build/
|
|
133
|
+
|
|
134
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
135
|
+
__pypackages__/
|
|
136
|
+
|
|
137
|
+
# Celery stuff
|
|
138
|
+
celerybeat-schedule
|
|
139
|
+
celerybeat.pid
|
|
140
|
+
|
|
141
|
+
# SageMath parsed files
|
|
142
|
+
*.sage.py
|
|
143
|
+
|
|
144
|
+
# Environments
|
|
145
|
+
.env
|
|
146
|
+
.venv
|
|
147
|
+
env/
|
|
148
|
+
venv/
|
|
149
|
+
ENV/
|
|
150
|
+
env.bak/
|
|
151
|
+
venv.bak/
|
|
152
|
+
|
|
153
|
+
# Spyder project settings
|
|
154
|
+
.spyderproject
|
|
155
|
+
.spyproject
|
|
156
|
+
|
|
157
|
+
# Rope project settings
|
|
158
|
+
.ropeproject
|
|
159
|
+
|
|
160
|
+
# mkdocs documentation
|
|
161
|
+
/site
|
|
162
|
+
|
|
163
|
+
# mypy
|
|
164
|
+
.mypy_cache/
|
|
165
|
+
.dmypy.json
|
|
166
|
+
dmypy.json
|
|
167
|
+
|
|
168
|
+
# Pyre type checker
|
|
169
|
+
.pyre/
|
|
170
|
+
|
|
171
|
+
# pytype static type analyzer
|
|
172
|
+
.pytype/
|
|
173
|
+
|
|
174
|
+
# Cython debug symbols
|
|
175
|
+
cython_debug/
|
|
176
|
+
|
|
177
|
+
# PyCharm
|
|
178
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
179
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
180
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
181
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
182
|
+
#.idea/
|
|
183
|
+
|
|
184
|
+
# PyPI configuration file
|
|
185
|
+
.pypirc
|
|
186
|
+
|
|
187
|
+
# Agent tool per-user local overrides (tracked scaffolding lives beside these).
|
|
188
|
+
# Claude Code writes local tool-permission grants here with absolute paths.
|
|
189
|
+
.claude/settings.local.json
|
|
190
|
+
.codex/settings.local.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.18.0
|
metabrowser-0.1.0/.npmrc
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Supply-chain policy (see SUPPLY-CHAIN-SECURITY.md): no lifecycle scripts,
|
|
2
|
+
# exact pins, a committed lockfile, and a 14-day release cool-off.
|
|
3
|
+
# min-release-age requires npm 11.10 or newer; CI and publishing pin a Node
|
|
4
|
+
# release that includes a compatible npm.
|
|
5
|
+
ignore-scripts=true
|
|
6
|
+
engine-strict=true
|
|
7
|
+
min-release-age=14
|
|
8
|
+
package-lock=true
|
|
9
|
+
save-exact=true
|
metabrowser-0.1.0/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.18.0
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Metabrowser are documented here.
|
|
4
|
+
|
|
5
|
+
## 0.1.0
|
|
6
|
+
|
|
7
|
+
Initial standalone release:
|
|
8
|
+
|
|
9
|
+
- Local file, log, Markdown, structured-data, image, and binary browsing.
|
|
10
|
+
- Primary `metab` command with a `metabrowser` compatibility alias.
|
|
11
|
+
- Concise zero-install and global-tool onboarding, plus a portable Agent Skill that
|
|
12
|
+
delegates to the pinned `uvx metabrowser@0.1.0` runner.
|
|
13
|
+
- Trusted manifest-driven plugins with JavaScript views and Python data hooks.
|
|
14
|
+
- KPress-backed Markdown rendering through `kpress==0.2.2`.
|
|
15
|
+
- Gzip- and zlib-transparent previews, frontmatter classification, Markdown rendering,
|
|
16
|
+
and KPress export with bounded input, output, and text windows.
|
|
17
|
+
- Background inventory indexing, live filesystem updates, and recent-file navigation.
|
|
18
|
+
- SSH and optional GCP remote tunnels.
|
|
19
|
+
- MIT licensing, PyPI packaging, locked uv environments, and isolated wheel checks.
|
|
20
|
+
- Review hardening for bounded compressed reads, safe rendered labels, byte-accurate
|
|
21
|
+
event streaming, renderer disposal, explicitly repository-configured development
|
|
22
|
+
commands, and release builds without mutable dependency caches.
|
|
23
|
+
|
|
24
|
+
<!-- This document follows common-doc-guidelines.md.
|
|
25
|
+
See github.com/jlevy/practical-prose and review guidelines before editing.
|
|
26
|
+
-->
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome through GitHub issues and pull requests.
|
|
4
|
+
|
|
5
|
+
## Before You Start
|
|
6
|
+
|
|
7
|
+
For a substantial change, open an issue describing the user problem, proposed contract,
|
|
8
|
+
and compatibility impact.
|
|
9
|
+
Security reports follow [SECURITY.md](SECURITY.md), not the public issue tracker.
|
|
10
|
+
|
|
11
|
+
## Development Workflow
|
|
12
|
+
|
|
13
|
+
1. Fork and clone the repository.
|
|
14
|
+
2. Create a focused branch from current `main`.
|
|
15
|
+
3. Install the prerequisites in [development](docs/development.md): uv and the Node
|
|
16
|
+
version pinned for your version manager.
|
|
17
|
+
4. Run `make install`.
|
|
18
|
+
5. Add or update tests with the implementation.
|
|
19
|
+
6. Run `make format` and `make verify`.
|
|
20
|
+
7. Review the diff and built artifacts for unrelated files or private data.
|
|
21
|
+
8. Open a pull request with the problem, approach, validation, and compatibility notes.
|
|
22
|
+
|
|
23
|
+
The project uses uv exclusively.
|
|
24
|
+
Do not add requirements files or instructions that invoke raw `pip` or an activated
|
|
25
|
+
virtual environment.
|
|
26
|
+
|
|
27
|
+
## Scope and Compatibility
|
|
28
|
+
|
|
29
|
+
Keep core generic. Consumer-specific schemas, renderers, endpoints, and styles belong in
|
|
30
|
+
plugins. Add capabilities through the documented plugin SDK instead of exposing private
|
|
31
|
+
shell state.
|
|
32
|
+
|
|
33
|
+
Avoid breaking public CLI flags, Python plugin types, manifest fields, HTTP envelopes,
|
|
34
|
+
or browser SDK methods without an explicit migration plan and release note.
|
|
35
|
+
|
|
36
|
+
## Documentation and Tests
|
|
37
|
+
|
|
38
|
+
Apply `tbd guidelines common-doc-guidelines` when creating or restructuring
|
|
39
|
+
documentation, and format Markdown with Flowmark through `make format`. Documentation
|
|
40
|
+
must be safe for a public repository and must not contain credentials, private paths,
|
|
41
|
+
private issue IDs, or copied operational data.
|
|
42
|
+
|
|
43
|
+
Choose the narrowest test layer that proves the behavior.
|
|
44
|
+
See [end-to-end testing](docs/e2e-testing.md) for the suite structure.
|
|
45
|
+
|
|
46
|
+
By contributing, you agree that your contribution is licensed under the repository’s
|
|
47
|
+
[MIT License](LICENSE).
|
|
48
|
+
|
|
49
|
+
<!-- This document follows common-doc-guidelines.md.
|
|
50
|
+
See github.com/jlevy/practical-prose and review guidelines before editing.
|
|
51
|
+
-->
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Joshua Levy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Makefile for easy development workflows.
|
|
2
|
+
# See docs/development.md for docs.
|
|
3
|
+
# GitHub Actions use these targets so local and CI gates stay aligned.
|
|
4
|
+
|
|
5
|
+
.DEFAULT_GOAL := default
|
|
6
|
+
# Keep install and quality stages ordered even when callers pass `-j`.
|
|
7
|
+
.NOTPARALLEL:
|
|
8
|
+
|
|
9
|
+
# Safe default for every dependency resolution invoked through this Makefile.
|
|
10
|
+
UV_EXCLUDE_NEWER ?= 14 days
|
|
11
|
+
export UV_EXCLUDE_NEWER
|
|
12
|
+
# Prevent machine-global uv policy from changing the repository lock. Pass the
|
|
13
|
+
# checked-in configuration explicitly so every command is self-contained and
|
|
14
|
+
# reviewable instead of depending on an inherited UV_CONFIG_FILE setting.
|
|
15
|
+
UV := uv --config-file $(CURDIR)/uv.toml
|
|
16
|
+
UVX := uvx --config-file $(CURDIR)/uv.toml
|
|
17
|
+
UV_RUN := $(UV) run --frozen
|
|
18
|
+
# First-party exception reviewed in SUPPLY-CHAIN-SECURITY.md. The cutoff is
|
|
19
|
+
# package-scoped and only admits the exact formatter release pinned here.
|
|
20
|
+
FLOWMARK_VERSION := 0.3.2
|
|
21
|
+
FLOWMARK_EXCEPTION := 2026-07-16T00:00:00Z
|
|
22
|
+
FLOWMARK := $(UVX) --exclude-newer-package 'flowmark-rs=$(FLOWMARK_EXCEPTION)' flowmark-rs@$(FLOWMARK_VERSION)
|
|
23
|
+
|
|
24
|
+
# Some managed agent environments export pnpm-style npm variables that npm 11
|
|
25
|
+
# treats as unknown configuration. Repository policy lives in .npmrc, so prevent
|
|
26
|
+
# those ambient aliases from adding warnings or changing command behavior.
|
|
27
|
+
unexport NPM_CONFIG_FROZEN_LOCKFILE
|
|
28
|
+
unexport NPM_CONFIG_MINIMUM_RELEASE_AGE
|
|
29
|
+
# A host-level publication cutoff conflicts with the repository's release-age gate in
|
|
30
|
+
# npm 11. Repository installs must use the reviewed .npmrc policy instead.
|
|
31
|
+
unexport NPM_CONFIG_BEFORE
|
|
32
|
+
|
|
33
|
+
.PHONY: default install hooks-install biome-fix browser-types format format-markdown lint lint-check test audit lock upgrade build verify clean
|
|
34
|
+
|
|
35
|
+
default: install format lint test
|
|
36
|
+
|
|
37
|
+
install:
|
|
38
|
+
# --locked also asserts uv.lock matches pyproject.toml and uv.toml, so a
|
|
39
|
+
# stale or locally contaminated lock fails here instead of shipping.
|
|
40
|
+
$(UV) sync --all-extras --all-groups --locked
|
|
41
|
+
npm ci
|
|
42
|
+
|
|
43
|
+
hooks-install: install
|
|
44
|
+
npx --no-install lefthook install
|
|
45
|
+
|
|
46
|
+
biome-fix:
|
|
47
|
+
npx --no-install biome check --write --unsafe --no-errors-on-unmatched $(STAGED_FILES)
|
|
48
|
+
|
|
49
|
+
browser-types:
|
|
50
|
+
npx --no-install tsc --noEmit -p tsconfig.json
|
|
51
|
+
npx --no-install tsc --noEmit -p tsconfig.legacy.json
|
|
52
|
+
|
|
53
|
+
format lint lint-check test audit build: | install
|
|
54
|
+
|
|
55
|
+
lint:
|
|
56
|
+
$(UV_RUN) python -m devtools.lint
|
|
57
|
+
$(UV_RUN) python -m devtools.public_hygiene
|
|
58
|
+
$(UV_RUN) python -m devtools.check_supply_chain
|
|
59
|
+
|
|
60
|
+
format:
|
|
61
|
+
$(MAKE) format-markdown
|
|
62
|
+
$(UV_RUN) ruff format src tests devtools
|
|
63
|
+
npx --no-install biome format --write \
|
|
64
|
+
src/metabrowser/static src/metabrowser/builtin_plugins tests/dom \
|
|
65
|
+
biome.json package.json tsconfig.json tsconfig.legacy.json
|
|
66
|
+
|
|
67
|
+
format-markdown:
|
|
68
|
+
$(FLOWMARK) --auto --inplace --nobackup .
|
|
69
|
+
|
|
70
|
+
# Check-only lint, matching CI (does not modify files).
|
|
71
|
+
lint-check:
|
|
72
|
+
$(UV_RUN) python -m devtools.lint --check
|
|
73
|
+
$(UV_RUN) python -m devtools.public_hygiene
|
|
74
|
+
$(UV_RUN) python -m devtools.check_supply_chain
|
|
75
|
+
$(FLOWMARK) --auto --check .
|
|
76
|
+
|
|
77
|
+
test:
|
|
78
|
+
$(UV_RUN) pytest
|
|
79
|
+
|
|
80
|
+
audit:
|
|
81
|
+
npm audit --audit-level=moderate
|
|
82
|
+
$(UV) --preview-features audit-command audit --frozen
|
|
83
|
+
|
|
84
|
+
lock:
|
|
85
|
+
$(UV) lock
|
|
86
|
+
|
|
87
|
+
upgrade:
|
|
88
|
+
$(UV) lock --upgrade
|
|
89
|
+
$(UV) sync --all-extras --all-groups --frozen
|
|
90
|
+
|
|
91
|
+
build:
|
|
92
|
+
$(UV) build --clear --no-build-isolation
|
|
93
|
+
$(UV_RUN) python -m devtools.check_distribution
|
|
94
|
+
|
|
95
|
+
verify: install lint-check test audit build
|
|
96
|
+
|
|
97
|
+
clean:
|
|
98
|
+
-rm -rf dist/
|
|
99
|
+
-rm -rf *.egg-info/
|
|
100
|
+
-rm -rf .pytest_cache/
|
|
101
|
+
-rm -rf .ruff_cache/
|
|
102
|
+
-rm -rf .mypy_cache/
|
|
103
|
+
-rm -rf .venv/
|
|
104
|
+
-rm -rf node_modules/
|
|
105
|
+
-find . -type d -name "__pycache__" -exec rm -rf {} +
|