facetmedia 0.1.0b1__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.
- facetmedia-0.1.0b1/.gitattributes +1 -0
- facetmedia-0.1.0b1/.github/workflows/acceptance.yml +42 -0
- facetmedia-0.1.0b1/.github/workflows/ci.yml +13 -0
- facetmedia-0.1.0b1/.github/workflows/release.yml +140 -0
- facetmedia-0.1.0b1/.gitignore +122 -0
- facetmedia-0.1.0b1/CONTRIBUTING.md +88 -0
- facetmedia-0.1.0b1/LICENSE +201 -0
- facetmedia-0.1.0b1/PKG-INFO +90 -0
- facetmedia-0.1.0b1/README.md +72 -0
- facetmedia-0.1.0b1/docs/adding-a-package.md +985 -0
- facetmedia-0.1.0b1/docs/commands.md +905 -0
- facetmedia-0.1.0b1/docs/contract.md +198 -0
- facetmedia-0.1.0b1/docs/index.md +216 -0
- facetmedia-0.1.0b1/docs/licenses.md +158 -0
- facetmedia-0.1.0b1/docs/preview.md +222 -0
- facetmedia-0.1.0b1/pyproject.toml +76 -0
- facetmedia-0.1.0b1/scripts/acceptance.sh +541 -0
- facetmedia-0.1.0b1/scripts/make_banner.py +122 -0
- facetmedia-0.1.0b1/src/facetmedia/__init__.py +5 -0
- facetmedia-0.1.0b1/src/facetmedia/__main__.py +5 -0
- facetmedia-0.1.0b1/src/facetmedia/banner-ansiltr4.txt +4 -0
- facetmedia-0.1.0b1/src/facetmedia/banner-dos-rebel.txt +8 -0
- facetmedia-0.1.0b1/src/facetmedia/banner.py +52 -0
- facetmedia-0.1.0b1/src/facetmedia/check.py +217 -0
- facetmedia-0.1.0b1/src/facetmedia/cli.py +567 -0
- facetmedia-0.1.0b1/src/facetmedia/cli_parser.py +653 -0
- facetmedia-0.1.0b1/src/facetmedia/config.py +250 -0
- facetmedia-0.1.0b1/src/facetmedia/contract.py +148 -0
- facetmedia-0.1.0b1/src/facetmedia/doctor/__init__.py +872 -0
- facetmedia-0.1.0b1/src/facetmedia/doctor/binary.py +53 -0
- facetmedia-0.1.0b1/src/facetmedia/doctor/host.py +77 -0
- facetmedia-0.1.0b1/src/facetmedia/doctor/node.py +80 -0
- facetmedia-0.1.0b1/src/facetmedia/doctor/package.py +220 -0
- facetmedia-0.1.0b1/src/facetmedia/entry.py +25 -0
- facetmedia-0.1.0b1/src/facetmedia/env/__init__.py +872 -0
- facetmedia-0.1.0b1/src/facetmedia/env/binary.py +177 -0
- facetmedia-0.1.0b1/src/facetmedia/env/browser.py +146 -0
- facetmedia-0.1.0b1/src/facetmedia/env/download.py +110 -0
- facetmedia-0.1.0b1/src/facetmedia/env/ffmpeg.py +156 -0
- facetmedia-0.1.0b1/src/facetmedia/env/node.py +299 -0
- facetmedia-0.1.0b1/src/facetmedia/env/package_marker.py +92 -0
- facetmedia-0.1.0b1/src/facetmedia/env/source.py +64 -0
- facetmedia-0.1.0b1/src/facetmedia/example.py +392 -0
- facetmedia-0.1.0b1/src/facetmedia/home.py +296 -0
- facetmedia-0.1.0b1/src/facetmedia/host_freecad_run.py +53 -0
- facetmedia-0.1.0b1/src/facetmedia/installed.py +83 -0
- facetmedia-0.1.0b1/src/facetmedia/introspect.py +698 -0
- facetmedia-0.1.0b1/src/facetmedia/license_accept.py +187 -0
- facetmedia-0.1.0b1/src/facetmedia/licenses.py +256 -0
- facetmedia-0.1.0b1/src/facetmedia/lock.py +173 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/__init__.py +812 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/binary.py +87 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/ffmpeg.py +49 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/field.py +124 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/host.py +80 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/i18n.py +117 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/model.py +169 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/node.py +134 -0
- facetmedia-0.1.0b1/src/facetmedia/manifest/server.py +168 -0
- facetmedia-0.1.0b1/src/facetmedia/plan.py +647 -0
- facetmedia-0.1.0b1/src/facetmedia/preview.py +316 -0
- facetmedia-0.1.0b1/src/facetmedia/preview_build.py +135 -0
- facetmedia-0.1.0b1/src/facetmedia/preview_folder.py +421 -0
- facetmedia-0.1.0b1/src/facetmedia/preview_server.py +435 -0
- facetmedia-0.1.0b1/src/facetmedia/probes.py +161 -0
- facetmedia-0.1.0b1/src/facetmedia/progress.py +226 -0
- facetmedia-0.1.0b1/src/facetmedia/prune.py +440 -0
- facetmedia-0.1.0b1/src/facetmedia/pull_summary.py +201 -0
- facetmedia-0.1.0b1/src/facetmedia/record.py +434 -0
- facetmedia-0.1.0b1/src/facetmedia/registry.py +294 -0
- facetmedia-0.1.0b1/src/facetmedia/registry_types.py +403 -0
- facetmedia-0.1.0b1/src/facetmedia/run.py +601 -0
- facetmedia-0.1.0b1/src/facetmedia/runner.py +828 -0
- facetmedia-0.1.0b1/src/facetmedia/runner_sdk.py +165 -0
- facetmedia-0.1.0b1/src/facetmedia/schema.py +285 -0
- facetmedia-0.1.0b1/src/facetmedia/shared.py +96 -0
- facetmedia-0.1.0b1/src/facetmedia/skill/SKILL.md +111 -0
- facetmedia-0.1.0b1/src/facetmedia/skill.py +162 -0
- facetmedia-0.1.0b1/src/facetmedia/theme.py +69 -0
- facetmedia-0.1.0b1/src/facetmedia/update.py +444 -0
- facetmedia-0.1.0b1/src/facetmedia/updates.py +289 -0
- facetmedia-0.1.0b1/src/facetmedia/wizard.py +179 -0
- facetmedia-0.1.0b1/tests/__init__.py +0 -0
- facetmedia-0.1.0b1/tests/acceptance/voz.toml +10 -0
- facetmedia-0.1.0b1/tests/conftest.py +45 -0
- facetmedia-0.1.0b1/tests/fixtures/models/termsy.bin +1 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/index.toml +10 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/lib/other.py +11 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/lib/textnorm.py +11 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/echo/package.toml +48 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/echo/pyproject.toml +8 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/echo/runner.py +102 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/echo/skill/SKILL.md +37 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/echo/skill/references/batching.md +4 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/echo/uv.lock +8 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/future/package.toml +36 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/future/pyproject.toml +8 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/future/runner.py +35 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/future/skill/SKILL.md +31 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/future/uv.lock +8 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/termsy/package.toml +47 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/termsy/pyproject.toml +8 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/termsy/runner.py +50 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/termsy/skill/SKILL.md +32 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/packages/termsy/uv.lock +8 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/viewers/_kit/base.css +5 -0
- facetmedia-0.1.0b1/tests/fixtures/registry/viewers/generic/index.html +10 -0
- facetmedia-0.1.0b1/tests/golden/discover/echo-text.json +68 -0
- facetmedia-0.1.0b1/tests/golden/discover/list-available.json +73 -0
- facetmedia-0.1.0b1/tests/golden/record/intro.facet.json +89 -0
- facetmedia-0.1.0b1/tests/golden/schema/echo-text.json +22 -0
- facetmedia-0.1.0b1/tests/registry_server.py +188 -0
- facetmedia-0.1.0b1/tests/test_backend_models.py +595 -0
- facetmedia-0.1.0b1/tests/test_banner.py +128 -0
- facetmedia-0.1.0b1/tests/test_binary_engine.py +623 -0
- facetmedia-0.1.0b1/tests/test_brand.py +309 -0
- facetmedia-0.1.0b1/tests/test_check.py +491 -0
- facetmedia-0.1.0b1/tests/test_cli.py +192 -0
- facetmedia-0.1.0b1/tests/test_contract.py +266 -0
- facetmedia-0.1.0b1/tests/test_doctor.py +1321 -0
- facetmedia-0.1.0b1/tests/test_document_kind.py +507 -0
- facetmedia-0.1.0b1/tests/test_example.py +328 -0
- facetmedia-0.1.0b1/tests/test_gallery_open.py +396 -0
- facetmedia-0.1.0b1/tests/test_help.py +293 -0
- facetmedia-0.1.0b1/tests/test_home.py +205 -0
- facetmedia-0.1.0b1/tests/test_host_app.py +667 -0
- facetmedia-0.1.0b1/tests/test_license_accept_wizard.py +287 -0
- facetmedia-0.1.0b1/tests/test_licenses.py +329 -0
- facetmedia-0.1.0b1/tests/test_list_describe.py +620 -0
- facetmedia-0.1.0b1/tests/test_lock.py +255 -0
- facetmedia-0.1.0b1/tests/test_manifest_errors.py +667 -0
- facetmedia-0.1.0b1/tests/test_manifest_i18n.py +80 -0
- facetmedia-0.1.0b1/tests/test_node_engine.py +778 -0
- facetmedia-0.1.0b1/tests/test_preview.py +706 -0
- facetmedia-0.1.0b1/tests/test_preview_folder.py +630 -0
- facetmedia-0.1.0b1/tests/test_probes.py +99 -0
- facetmedia-0.1.0b1/tests/test_progress.py +351 -0
- facetmedia-0.1.0b1/tests/test_prune.py +531 -0
- facetmedia-0.1.0b1/tests/test_pull.py +1270 -0
- facetmedia-0.1.0b1/tests/test_pull_plan.py +781 -0
- facetmedia-0.1.0b1/tests/test_pull_summary.py +180 -0
- facetmedia-0.1.0b1/tests/test_pull_wizard.py +379 -0
- facetmedia-0.1.0b1/tests/test_record.py +507 -0
- facetmedia-0.1.0b1/tests/test_registry.py +348 -0
- facetmedia-0.1.0b1/tests/test_registry_validate.py +531 -0
- facetmedia-0.1.0b1/tests/test_run.py +1412 -0
- facetmedia-0.1.0b1/tests/test_schema.py +393 -0
- facetmedia-0.1.0b1/tests/test_server.py +883 -0
- facetmedia-0.1.0b1/tests/test_skill.py +603 -0
- facetmedia-0.1.0b1/tests/test_source.py +355 -0
- facetmedia-0.1.0b1/tests/test_theme.py +161 -0
- facetmedia-0.1.0b1/tests/test_update.py +715 -0
- facetmedia-0.1.0b1/tests/test_updates.py +426 -0
- facetmedia-0.1.0b1/uv.lock +668 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Acceptance
|
|
2
|
+
|
|
3
|
+
# The v0.1 success metric on a fresh runner, which is a clean Linux by
|
|
4
|
+
# construction: only uv, an empty home, no GPU. The same script a person runs.
|
|
5
|
+
#
|
|
6
|
+
# workflow_dispatch only. GitHub offers the button once this workflow is on the
|
|
7
|
+
# default branch, so the first green run happens by hand after the merge.
|
|
8
|
+
on:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
acceptance:
|
|
16
|
+
name: Clean-home acceptance
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
# The voice run is budgeted at five minutes; the rest downloads models.
|
|
19
|
+
timeout-minutes: 60
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
with:
|
|
23
|
+
persist-credentials: false
|
|
24
|
+
|
|
25
|
+
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
26
|
+
|
|
27
|
+
- name: Run the acceptance script
|
|
28
|
+
env:
|
|
29
|
+
# Avoids the API's anonymous limit (60 requests an hour per IP); the
|
|
30
|
+
# script passes it through and never prints it.
|
|
31
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
32
|
+
run: bash scripts/acceptance.sh --keep --root "$RUNNER_TEMP/acceptance"
|
|
33
|
+
|
|
34
|
+
- name: Upload the envelope and the run logs
|
|
35
|
+
if: always()
|
|
36
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
37
|
+
with:
|
|
38
|
+
name: acceptance
|
|
39
|
+
path: |
|
|
40
|
+
${{ runner.temp }}/acceptance/kokoro.json
|
|
41
|
+
${{ runner.temp }}/acceptance/facet/logs
|
|
42
|
+
if-no-files-found: warn
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Trunk-based release (decision 10eadef1), run by hand on main, like the lab's
|
|
4
|
+
# crates on UniverLab/workflows rust-release-manual.yml:
|
|
5
|
+
#
|
|
6
|
+
# ci - this repo's CI on main (each PR was checked alone; main is where they meet)
|
|
7
|
+
# version - refuses unless pyproject.toml carries a version with no tag yet;
|
|
8
|
+
# the version is raised beforehand by a `chore(release): <version>` PR
|
|
9
|
+
# build - wheel and sdist
|
|
10
|
+
# publish - PyPI in the `production` environment (owner approval, main only),
|
|
11
|
+
# Trusted Publishing (OIDC): no token is stored anywhere
|
|
12
|
+
# release - tag + GitHub release, only after PyPI accepted the files
|
|
13
|
+
#
|
|
14
|
+
# PyPI does not accept a reusable workflow as a Trusted Publisher
|
|
15
|
+
# (pypi/warehouse#11096), so the publish job lives here. PyPI trusts:
|
|
16
|
+
# owner UniverLab, repository facetmedia, workflow release.yml, environment production.
|
|
17
|
+
on:
|
|
18
|
+
workflow_dispatch:
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
|
|
23
|
+
concurrency:
|
|
24
|
+
group: release-${{ github.repository }}
|
|
25
|
+
cancel-in-progress: false
|
|
26
|
+
|
|
27
|
+
jobs:
|
|
28
|
+
ci:
|
|
29
|
+
uses: ./.github/workflows/ci.yml
|
|
30
|
+
|
|
31
|
+
version:
|
|
32
|
+
name: Check Version Bump
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
outputs:
|
|
35
|
+
version: ${{ steps.version.outputs.version }}
|
|
36
|
+
tag: ${{ steps.version.outputs.tag }}
|
|
37
|
+
prerelease: ${{ steps.version.outputs.prerelease }}
|
|
38
|
+
steps:
|
|
39
|
+
- name: Release from main only
|
|
40
|
+
if: github.ref != 'refs/heads/main'
|
|
41
|
+
run: |
|
|
42
|
+
echo "::error::Releases run from main only (this run is on ${{ github.ref }})."
|
|
43
|
+
exit 1
|
|
44
|
+
|
|
45
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
46
|
+
with:
|
|
47
|
+
fetch-depth: 0
|
|
48
|
+
persist-credentials: false
|
|
49
|
+
|
|
50
|
+
- name: Get version from pyproject.toml
|
|
51
|
+
id: version
|
|
52
|
+
run: |
|
|
53
|
+
VERSION=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
|
|
54
|
+
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
|
55
|
+
echo "tag=v${VERSION}" >> "$GITHUB_OUTPUT"
|
|
56
|
+
# PEP 440 pre-releases (0.1.0b1, 0.2.0rc1) and dev versions are marked as pre-releases.
|
|
57
|
+
if echo "$VERSION" | grep -Eq '(a|b|rc|\.dev)[0-9]+'; then echo "prerelease=true" >> "$GITHUB_OUTPUT"; else echo "prerelease=false" >> "$GITHUB_OUTPUT"; fi
|
|
58
|
+
|
|
59
|
+
- name: Check the version was bumped
|
|
60
|
+
run: |
|
|
61
|
+
if git rev-parse "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
|
|
62
|
+
echo "::error::${{ steps.version.outputs.tag }} is already released. Raise the version in pyproject.toml (and uv.lock) in a chore(release) PR first."
|
|
63
|
+
exit 1
|
|
64
|
+
fi
|
|
65
|
+
|
|
66
|
+
build:
|
|
67
|
+
name: Build
|
|
68
|
+
needs: [ci, version]
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
steps:
|
|
71
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
72
|
+
with:
|
|
73
|
+
ref: ${{ github.sha }}
|
|
74
|
+
persist-credentials: false
|
|
75
|
+
|
|
76
|
+
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
|
|
77
|
+
|
|
78
|
+
- name: Build wheel and sdist
|
|
79
|
+
run: uv build
|
|
80
|
+
|
|
81
|
+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
82
|
+
with:
|
|
83
|
+
name: dist
|
|
84
|
+
path: dist/
|
|
85
|
+
|
|
86
|
+
publish:
|
|
87
|
+
name: Publish to PyPI
|
|
88
|
+
needs: [version, build]
|
|
89
|
+
# Waits for the owner's approval; the environment only accepts main.
|
|
90
|
+
environment:
|
|
91
|
+
name: production
|
|
92
|
+
url: https://pypi.org/p/facetmedia
|
|
93
|
+
runs-on: ubuntu-latest
|
|
94
|
+
permissions:
|
|
95
|
+
id-token: write
|
|
96
|
+
steps:
|
|
97
|
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
98
|
+
with:
|
|
99
|
+
name: dist
|
|
100
|
+
path: dist/
|
|
101
|
+
|
|
102
|
+
- name: Publish (trusted publishing)
|
|
103
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
104
|
+
|
|
105
|
+
release:
|
|
106
|
+
name: Tag and GitHub Release
|
|
107
|
+
needs: [version, publish]
|
|
108
|
+
runs-on: ubuntu-latest
|
|
109
|
+
timeout-minutes: 10
|
|
110
|
+
permissions:
|
|
111
|
+
contents: write
|
|
112
|
+
steps:
|
|
113
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
114
|
+
with:
|
|
115
|
+
ref: ${{ github.sha }}
|
|
116
|
+
|
|
117
|
+
- name: Create and push tag
|
|
118
|
+
run: |
|
|
119
|
+
git config user.name "github-actions[bot]"
|
|
120
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
121
|
+
git tag -a "${{ needs.version.outputs.tag }}" -m "Release ${{ needs.version.outputs.tag }}"
|
|
122
|
+
git push origin "${{ needs.version.outputs.tag }}"
|
|
123
|
+
|
|
124
|
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
125
|
+
with:
|
|
126
|
+
name: dist
|
|
127
|
+
path: dist/
|
|
128
|
+
|
|
129
|
+
- name: Generate checksums
|
|
130
|
+
run: |
|
|
131
|
+
cd dist
|
|
132
|
+
sha256sum * > SHA256SUMS.txt
|
|
133
|
+
cat SHA256SUMS.txt
|
|
134
|
+
|
|
135
|
+
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
|
136
|
+
with:
|
|
137
|
+
tag_name: ${{ needs.version.outputs.tag }}
|
|
138
|
+
prerelease: ${{ needs.version.outputs.prerelease }}
|
|
139
|
+
generate_release_notes: true
|
|
140
|
+
files: dist/*
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# AI coding agents (paths derived from the canopy registry)
|
|
2
|
+
.agents/*
|
|
3
|
+
.blackboxcli/*
|
|
4
|
+
.claude/*
|
|
5
|
+
.cline/*
|
|
6
|
+
.clineignore
|
|
7
|
+
.codebuddy/*
|
|
8
|
+
.codex/*
|
|
9
|
+
.commandcode/*
|
|
10
|
+
.continue/*
|
|
11
|
+
.copilot/*
|
|
12
|
+
.cursor/*
|
|
13
|
+
.cursorignore
|
|
14
|
+
.cursorindexingignore
|
|
15
|
+
.devin/*
|
|
16
|
+
.gemini/*
|
|
17
|
+
.kilo/*
|
|
18
|
+
.kilocode/*
|
|
19
|
+
.kiro/*
|
|
20
|
+
.mcp.json
|
|
21
|
+
.mimocode/*
|
|
22
|
+
.opencode/*
|
|
23
|
+
.qoder/*
|
|
24
|
+
.qwen/*
|
|
25
|
+
.utim/*
|
|
26
|
+
.utim_tmp/*
|
|
27
|
+
.vibe/*
|
|
28
|
+
CLAUDE.local.md
|
|
29
|
+
kilo.json
|
|
30
|
+
kilo.jsonc
|
|
31
|
+
mimocode.json
|
|
32
|
+
mimocode.jsonc
|
|
33
|
+
opencode.json
|
|
34
|
+
opencode.jsonc
|
|
35
|
+
skills-lock.json
|
|
36
|
+
__pycache__/
|
|
37
|
+
*.py[cod]
|
|
38
|
+
*$py.class
|
|
39
|
+
*.so
|
|
40
|
+
.Python
|
|
41
|
+
build/
|
|
42
|
+
develop-eggs/
|
|
43
|
+
dist/
|
|
44
|
+
downloads/
|
|
45
|
+
eggs/
|
|
46
|
+
.eggs/
|
|
47
|
+
lib/
|
|
48
|
+
!tests/fixtures/registry/lib/
|
|
49
|
+
lib64/
|
|
50
|
+
parts/
|
|
51
|
+
sdist/
|
|
52
|
+
var/
|
|
53
|
+
wheels/
|
|
54
|
+
share/python-wheels/
|
|
55
|
+
*.egg-info/
|
|
56
|
+
.installed.cfg
|
|
57
|
+
*.egg
|
|
58
|
+
MANIFEST
|
|
59
|
+
*.manifest
|
|
60
|
+
*.spec
|
|
61
|
+
pip-log.txt
|
|
62
|
+
pip-delete-this-directory.txt
|
|
63
|
+
htmlcov/
|
|
64
|
+
.tox/
|
|
65
|
+
.nox/
|
|
66
|
+
.coverage
|
|
67
|
+
.coverage.*
|
|
68
|
+
.cache
|
|
69
|
+
nosetests.xml
|
|
70
|
+
coverage.xml
|
|
71
|
+
*.cover
|
|
72
|
+
*.py,cover
|
|
73
|
+
.hypothesis/
|
|
74
|
+
.pytest_cache/
|
|
75
|
+
cover/
|
|
76
|
+
*.mo
|
|
77
|
+
*.pot
|
|
78
|
+
*.log
|
|
79
|
+
local_settings.py
|
|
80
|
+
db.sqlite3
|
|
81
|
+
db.sqlite3-journal
|
|
82
|
+
instance/
|
|
83
|
+
.webassets-cache
|
|
84
|
+
.scrapy
|
|
85
|
+
docs/_build/
|
|
86
|
+
.pybuilder/
|
|
87
|
+
target/
|
|
88
|
+
.ipynb_checkpoints
|
|
89
|
+
profile_default/
|
|
90
|
+
ipython_config.py
|
|
91
|
+
.pdm.toml
|
|
92
|
+
__pypackages__/
|
|
93
|
+
celerybeat-schedule
|
|
94
|
+
celerybeat.pid
|
|
95
|
+
*.sage.py
|
|
96
|
+
.env
|
|
97
|
+
.venv
|
|
98
|
+
env/
|
|
99
|
+
# facetmedia's env package is source, not a virtualenv
|
|
100
|
+
!src/facetmedia/env/
|
|
101
|
+
venv/
|
|
102
|
+
ENV/
|
|
103
|
+
env.bak/
|
|
104
|
+
venv.bak/
|
|
105
|
+
.spyderproject
|
|
106
|
+
.spyproject
|
|
107
|
+
.ropeproject
|
|
108
|
+
/site
|
|
109
|
+
.mypy_cache/
|
|
110
|
+
.dmypy.json
|
|
111
|
+
dmypy.json
|
|
112
|
+
.pyre/
|
|
113
|
+
.pytype/
|
|
114
|
+
cython_debug/
|
|
115
|
+
poetry.toml
|
|
116
|
+
.ruff_cache/
|
|
117
|
+
pyrightconfig.json
|
|
118
|
+
|
|
119
|
+
# instruction files stay committable
|
|
120
|
+
!.claude/CLAUDE.md
|
|
121
|
+
!.continue/rules/
|
|
122
|
+
!.cursor/rules/
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Contributing to facetmedia
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing!
|
|
4
|
+
|
|
5
|
+
## Development workflow
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/UniverLab/facetmedia.git
|
|
9
|
+
cd facetmedia
|
|
10
|
+
uv sync
|
|
11
|
+
uv run pytest
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Trunk-based: branch off `main` and open the PR against `main`.
|
|
15
|
+
|
|
16
|
+
## CI/CD and required secrets
|
|
17
|
+
|
|
18
|
+
This project uses GitHub Actions for CI (`.github/workflows/ci.yml`).
|
|
19
|
+
|
|
20
|
+
### Required repository secrets
|
|
21
|
+
|
|
22
|
+
| Secret | Description | Where to get it |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| `PYPI_API_TOKEN` | API token to publish packages to [PyPI](https://pypi.org) | [pypi.org/manage/account/token](https://pypi.org/manage/account/token/) → API Tokens → New Token |
|
|
25
|
+
|
|
26
|
+
Configure secrets at:
|
|
27
|
+
`https://github.com/UniverLab/facetmedia/settings/secrets/actions`
|
|
28
|
+
|
|
29
|
+
> **Tip:** If you use [ghscaff](https://github.com/UniverLab/ghscaff), you can run `ghscaff apply` to configure missing secrets interactively, or set the env var before running:
|
|
30
|
+
> ```bash
|
|
31
|
+
> export PYPI_API_TOKEN=<your_token>
|
|
32
|
+
> ghscaff apply
|
|
33
|
+
> ```
|
|
34
|
+
|
|
35
|
+
## Release process
|
|
36
|
+
|
|
37
|
+
Releases are automated via the `publish.yml` workflow. To cut a release:
|
|
38
|
+
|
|
39
|
+
1. Bump the version in `pyproject.toml`
|
|
40
|
+
2. Commit: `chore: release vX.Y.Z`
|
|
41
|
+
3. Open PR to `main` — on merge, the workflow publishes to PyPI
|
|
42
|
+
|
|
43
|
+
## Acceptance
|
|
44
|
+
|
|
45
|
+
v0.1 is done when its success metric is measured, not assumed: from a clean
|
|
46
|
+
Linux with only `uv` installed, one command produces a voice clip that
|
|
47
|
+
transcribes with a word error rate under 5 %, in under five minutes, without a
|
|
48
|
+
GPU. `scripts/acceptance.sh` reproduces that condition and proves it.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
bash scripts/acceptance.sh # build the wheel, clean home, remove it
|
|
52
|
+
bash scripts/acceptance.sh --keep # keep the root to inspect assets and logs
|
|
53
|
+
bash scripts/acceptance.sh --wheel dist/facetmedia-0.1.0b1-py3-none-any.whl
|
|
54
|
+
bash scripts/acceptance.sh --registry-ref main
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The script builds the wheel, points `HOME`, `FACET_HOME` and every uv cache at
|
|
58
|
+
one temporary root, installs the wheel with `uv tool install`, and times
|
|
59
|
+
`facet run kokoro.speak tests/acceptance/voz.toml` — including the registry's
|
|
60
|
+
first-use download. It then runs the other v0.1 packages' examples (Whisper,
|
|
61
|
+
FFmpeg, CAD, ASCII) from the registry snapshot, re-hashing every input and
|
|
62
|
+
checking every preview, and finally checks `facet list --available` and
|
|
63
|
+
`facet skill kokoro`.
|
|
64
|
+
|
|
65
|
+
It downloads about 2 GB of models and packages; with every environment unpacked
|
|
66
|
+
the temporary root reaches about 3.5 GiB. Run it **alone**, one heavy job at a
|
|
67
|
+
time on the lab machine.
|
|
68
|
+
|
|
69
|
+
Set `GITHUB_TOKEN` in the environment to stay clear of the GitHub API's
|
|
70
|
+
anonymous limit (60 requests an hour per IP), which a shared runner reaches
|
|
71
|
+
easily. The script passes the token through to the registry download and never
|
|
72
|
+
prints it.
|
|
73
|
+
|
|
74
|
+
`.github/workflows/acceptance.yml` runs the same script on a fresh
|
|
75
|
+
`ubuntu-latest` runner and uploads the voice envelope and the run logs. It is
|
|
76
|
+
`workflow_dispatch` only: GitHub offers the button once the workflow is on the
|
|
77
|
+
default branch, so the first green run happens by hand after the merge.
|
|
78
|
+
|
|
79
|
+
## Code style
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
uv run ruff format .
|
|
83
|
+
uv run ruff check .
|
|
84
|
+
uv run mypy src/
|
|
85
|
+
uv run pytest
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
All four must pass before merging.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 UniverLab
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|