Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1157 commits
Select commit Hold shift + click to select a range
38e7b6d
test(web): send comment media test uploads as a Blob body
Nov 13, 2026
c8c7d66
refactor: share webhook endpoint input schemas
Nov 13, 2026
90df2ad
feat: console server actions for webhook endpoints
Nov 13, 2026
df3e4b8
feat: Webhooks page in the Infra console
Nov 13, 2026
9a1f783
fix(web): restrict every address that serves the embed
Nov 13, 2026
93788a8
fix(web): remove allowed sites through the shared Effect runtime
Nov 13, 2026
af8f86d
Merge branch 'main' into fix/comment-media-quota-atomic
richiemcilroy Nov 13, 2026
5cb6aad
fix(web): keep event times through a native HLS quality switch and a …
Nov 13, 2026
bbec29b
fix(web): read Auto on the quality control before the first play
Nov 13, 2026
4961fb1
docs: say why the embed snippet keeps allow autoplay
Nov 13, 2026
c4df061
Merge pull request #4165 from CapSoftware/fix/comment-media-quota-atomic
richiemcilroy Nov 13, 2026
40f2dfb
Merge branch 'main' into feat/infra-embed-allowed-domains
richiemcilroy Nov 13, 2026
1418b27
Merge remote-tracking branch 'origin/main' into HEAD
Nov 13, 2026
ea0a650
feat(infra): show the import on Get Video and Get Video Status
Nov 13, 2026
f5cedaa
docs(infra): describe importDeveloperVideo in the OpenAPI document
Nov 13, 2026
b3be34a
feat(infra-mcp): videos_import on the hosted MCP
Nov 13, 2026
dbb645b
docs(infra): document importing a video from a URL
Nov 13, 2026
07564d0
Add Cap Infra to the site navigation
Nov 13, 2026
a19582e
Merge pull request #4205 from CapSoftware/feat/infra-embed-allowed-do…
richiemcilroy Nov 13, 2026
b48b78c
Compress Infra rendition playlists at the edge and purge cached playb…
Nov 13, 2026
02ece69
Merge branch 'main' into fix/processing-retry-limit
richiemcilroy Nov 13, 2026
65070fa
fix(web): start first month charging at the first real first month ch…
Nov 13, 2026
28fc84f
fix(web): restore a shortfall only from a top-up after the charge tha…
Nov 13, 2026
a3961e8
test(web): top-ups and Pro credit record available credit, and fakes …
Nov 13, 2026
d0f0989
test(web): pin the first month start and the restore rules on a real …
Nov 13, 2026
e7e04cf
Merge pull request #4168 from CapSoftware/fix/processing-retry-limit
richiemcilroy Nov 13, 2026
923343c
fix(media-server): Cap Infra posters up to 1920 on the long side
Nov 13, 2026
55129d5
test(media-server): run the Infra poster test in both image builds
Nov 13, 2026
7ebae89
improve: tighten Webhooks page layout
Nov 13, 2026
3bbbad3
fix(web): narrow the measured size in the oEmbed route
Nov 13, 2026
8d6fa32
Merge remote-tracking branch 'origin/main' into feat/infra-video-impo…
Nov 13, 2026
81af7fc
build(infra-mcp): write the npm package as @cap.so/infra-mcp
richiemcilroy Nov 13, 2026
5e2b3da
docs(infra-mcp): install with npx and say how to publish
richiemcilroy Nov 13, 2026
1102ff7
docs(api): point agents at the local MCP server for uploads from disk
richiemcilroy Nov 13, 2026
315516f
fix: transcripts from a video inherit the video's userId
Nov 13, 2026
09e42ab
fix: keyed video ids use the same alphabet and length as other video ids
Nov 13, 2026
a437f35
fix: videos_create_upload returns up to 10 part links per result
Nov 13, 2026
6e133b9
docs: say the shortest wait timeout that checks more than once
Nov 13, 2026
f11ee6a
feat: usage reports the monthly cost of every stored video
Nov 13, 2026
87f38cc
docs: list the 405 method_not_allowed response in the OpenAPI document
Nov 13, 2026
54c02d6
feat: discovery for the Cap Infra MCP server and /infra as Markdown
Nov 13, 2026
ed9677f
test: type the tool description read in the hosted MCP test
Nov 13, 2026
ea26563
fix: list a video caption track only once its WebVTT file is written
Nov 13, 2026
307caea
feat: videos also report their length as durationSeconds
Nov 13, 2026
ff04ba0
fix: hide a shown secret when its endpoint is deleted
Nov 13, 2026
fe14259
style(infra-mcp): format the npm package script
richiemcilroy Nov 13, 2026
fd6bc41
fix(web): build the available credit expression when a restore is che…
Nov 13, 2026
8a0afcd
test(web): fakes answer the first month start and held credit reads
Nov 13, 2026
487605d
Merge remote-tracking branch 'origin/main' into fix/infra-first-month…
Nov 13, 2026
bb620f4
fix(web): oEmbed iframe allows autoplay, route uses HttpApi, drop nar…
Nov 13, 2026
1de994a
test(web): type the HttpApi handler stub in the oEmbed test
Nov 13, 2026
a2fe257
fix(infra): check the balance as an undeclared import grows, keep sig…
Nov 13, 2026
0d3c302
Merge pull request #4209 from CapSoftware/fix/infra-ladder-bitrate-po…
richiemcilroy Nov 13, 2026
e3e213b
fix: console webhook actions spend the REST account budget
Nov 13, 2026
f1782c3
fix: never replace a shown webhook secret with another
Nov 13, 2026
3db251d
Merge branch 'main' into feat/infra-top-nav
richiemcilroy Nov 13, 2026
91f8be6
Merge pull request #4211 from CapSoftware/feat/infra-mcp-npm
richiemcilroy Nov 13, 2026
d89a085
Merge branch 'main' into feat/infra-top-nav
richiemcilroy Nov 13, 2026
a6b9b70
Merge remote-tracking branch 'origin/main' into fix/infra-api-followups
Nov 13, 2026
ff77bf2
docs: link the published local MCP package from /infra as Markdown
Nov 13, 2026
5c671e3
Merge pull request #4206 from CapSoftware/feat/infra-top-nav
richiemcilroy Nov 13, 2026
c08f539
fix(infra): count every import attempt, fail both rows together, abor…
Nov 13, 2026
162324d
fix(infra): reclaim a stale import reservation, replay a keyed import…
Nov 13, 2026
c78ea79
test(web): size the measured-race allowance to the first-month reserv…
Nov 13, 2026
b802afd
ci: run the Infra database suites against MySQL
Nov 13, 2026
5989891
Merge branch 'main' into feat/infra-console-webhooks
richiemcilroy Nov 13, 2026
3313ad3
revert(web): move the shortfall recovery changes to a follow-up PR
Nov 13, 2026
cb21754
fix(web): count only rows written by a first month charge toward the …
Nov 13, 2026
6fc0923
test(web): an upload fee row on a settled video does not move the fir…
Nov 13, 2026
2121310
ci: run the Infra database job only on Infra billing, schema and migr…
Nov 13, 2026
4e13874
Leave Vary off compressed rendition playlists
Nov 13, 2026
eba7cb1
ci: run the Infra database job when developer actions or Infra dashbo…
Nov 13, 2026
02ab828
Merge branch 'main' into fix/infra-first-month-start
richiemcilroy Nov 13, 2026
a3fd18d
fix: lock rotate and delete while a webhook add is in flight
Nov 13, 2026
aa7d8fc
Merge pull request #4214 from CapSoftware/fix/infra-first-month-start
richiemcilroy Nov 13, 2026
586ddea
feat(infra): charge delivered minutes daily behind CAP_INFRA_DELIVERY…
Nov 13, 2026
587bec7
fix(web): record the credit available after each top-up and Pro credi…
Nov 13, 2026
611534f
fix(web): cover a shortfall only with a credit from a later second th…
Nov 13, 2026
4039770
test(web): available credit on top-ups and the Pro credit, and the Pr…
Nov 13, 2026
9625583
test(web): same second credits never cover a shortfall, across 500 se…
Nov 13, 2026
f299ac6
Merge branch 'main' into feat/infra-console-webhooks
richiemcilroy Nov 13, 2026
9674dff
fix(infra): read the latest storage and delivery days together, and l…
Nov 13, 2026
b94b053
Merge pull request #4210 from CapSoftware/feat/infra-console-webhooks
richiemcilroy Nov 13, 2026
29c7316
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
f7a05be
fix(web): no hydration mismatch from comment times on share pages
Nov 13, 2026
26a0032
Merge remote-tracking branch 'origin/main' into feat/infra-video-impo…
Nov 13, 2026
6f11e3e
style: format the hosted MCP test
Nov 13, 2026
4368f11
Merge branch 'main' into fix/infra-restore-order
richiemcilroy Nov 13, 2026
24972aa
feat(infra): meter delivered seconds per app from CDN logs
Nov 13, 2026
f8b0a3a
Merge origin/main into infra-measured-charge-concurrency
Nov 13, 2026
390acf0
perf(web): remember when first month charging began once it is known
Nov 13, 2026
9d70a8b
test(infra): load the auto top-up mock before the delivery sweep impo…
Nov 13, 2026
7d2826a
feat(infra): estimate segment seconds from the video row when the pla…
Nov 13, 2026
fbfe0a6
Drop a comment that restates the subtitle playlist code
Nov 13, 2026
1e4842f
Docs: captions in the HLS master, and the FFmpeg 9 byte-range limit
Nov 13, 2026
a1c752c
feat(infra): record abandoned transfer bytes and renumber the migrati…
Nov 13, 2026
e92acd5
fix(web): keep the first month start only once it is older than any o…
Nov 13, 2026
2ec03fa
test(web): a recent start is read again, and a cached start hands out…
Nov 13, 2026
67b8d99
fix(web): start low without a connection hint and switch at once to a…
Nov 13, 2026
6b0915c
Merge pull request #4213 from CapSoftware/feat/infra-video-import-url
richiemcilroy Nov 13, 2026
19bf9da
fix(web): let ShareNowProvider take children positionally
Nov 13, 2026
a6e616a
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-m…
Nov 13, 2026
0184508
test(web): clear the first month start after each billing and round t…
Nov 13, 2026
bbf1058
fix(web): keep invalid share dates empty and test the shared clock
Nov 13, 2026
032e3bd
Merge branch 'main' into fix/infra-restore-order
richiemcilroy Nov 13, 2026
8c47709
fix(infra): finalize a delivery day only when its log files are all r…
Nov 13, 2026
8d46928
Infra: credit links open the app that needs credit
Nov 13, 2026
9d2c172
Infra console: plain upload errors and true upload copy
Nov 13, 2026
40aef18
Merge remote-tracking branch 'origin/main' into fix/infra-credit-link…
Nov 13, 2026
d28babd
Merge pull request #4217 from CapSoftware/fix/infra-restore-order
richiemcilroy Nov 13, 2026
09e3c7f
feat(infra): keep delivery billing inert until CAP_INFRA_DELIVERY_BIL…
Nov 13, 2026
4933ce0
feat(infra): price delivery at one flat rate on the landing page, doc…
Nov 13, 2026
3ceeb2f
Merge branch 'main' into fix/share-comment-time-hydration
richiemcilroy Nov 13, 2026
187358a
Merge remote-tracking branch 'origin/main' into HEAD
Nov 13, 2026
92d4dd8
Merge remote-tracking branch 'origin/main' into perf/infra-hls-delivery
Nov 13, 2026
8b0b210
Infra: the URL import 402 links the app's Billing page too
Nov 13, 2026
c949ebe
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
c6e3671
fix(infra): report an invalid delivery start day once, not on every s…
Nov 13, 2026
15bea80
fix(infra): label a delivery row Delivery like a storage row, with th…
Nov 13, 2026
f987d4f
Merge pull request #4220 from CapSoftware/fix/share-comment-time-hydr…
richiemcilroy Nov 13, 2026
610d247
docs(infra): add the delivered minutes summary to the definition
Nov 13, 2026
022dd5c
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-m…
richiemcilroy Nov 13, 2026
763b210
fix(infra-mcp): keep the credit lookup inside the call budget
Nov 13, 2026
b8f7e32
fix(web): without a connection hint, step up only once the first fram…
Nov 13, 2026
8a07738
Merge branch 'main' into fix/infra-first-month-start-memo
richiemcilroy Nov 13, 2026
a5b37b1
fix(infra): order delivery days posted in the same second by their day
Nov 13, 2026
09540ad
fix(infra): settle delivery days that go final up to seven days late,…
Nov 13, 2026
06b5bf2
feat(infra): return the delivery rate in GET /usage rates
Nov 13, 2026
6aca8ad
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
329d3d5
fix(infra): finalize a delivery day from the recorded file versions i…
Nov 13, 2026
f008dd3
test(infra): charge the final total once when a recompute lowers a da…
Nov 13, 2026
3b11346
Merge remote-tracking branch 'origin/main' into fix/infra-api-followups
Nov 13, 2026
8b97be0
feat(infra): state the delivery start date on the pricing page and re…
Nov 13, 2026
f3348e2
Merge pull request #4218 from CapSoftware/fix/infra-first-month-start…
richiemcilroy Nov 13, 2026
546d2db
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-m…
Nov 13, 2026
2e7ae84
fix(infra): always show the delivery start date beside the console price
Nov 13, 2026
f7ec049
test(infra): create the delivery rollup table if missing with the met…
Nov 13, 2026
a93ea2c
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
0b15337
Merge remote-tracking branch 'origin/main' into HEAD
Nov 13, 2026
35c334d
Merge branch 'main' into perf/infra-hls-delivery
richiemcilroy Nov 13, 2026
75d8226
Merge pull request #4219 from CapSoftware/feat/infra-delivery-metering
richiemcilroy Nov 13, 2026
f567438
feat(web): read delivered minutes per tier for an Infra app
Nov 13, 2026
c087790
feat(web): show delivered minutes on the Infra Usage page
Nov 13, 2026
5faeca4
feat(web): report delivered minutes in GET /usage, measured and not b…
Nov 13, 2026
fe9b702
docs: delivered minutes in Get Usage are measured, not billed
Nov 13, 2026
c1688dd
test(web): delivered minutes against a real database, console and API…
Nov 13, 2026
2177c5f
feat(web): leave out the audio tier, report the last final day and wa…
Nov 13, 2026
7bbda8d
fix(web): tell a failed delivery read apart from no delivery on Usage
Nov 13, 2026
95b0c85
feat(web): GET /usage delivery reports minutes, tiers and finalThrough
Nov 13, 2026
eb2da84
docs: say how delivered minutes are measured, with no billing claim
Nov 13, 2026
88c2d96
test(web): delivery finality, audio tier and a missing final column a…
Nov 13, 2026
7bd533f
fix(infra): never let an unpaid delivery day lower what an open short…
Nov 13, 2026
c22c01c
Merge branch 'main' into perf/infra-hls-delivery
richiemcilroy Nov 13, 2026
960dc04
refactor(web): read delivery through the shared developerDeliveryDail…
Nov 13, 2026
350cf83
docs: delivered minutes definition and finality in the agreed words
Nov 13, 2026
766e628
test(web): delivery fixtures match the migrated table
Nov 13, 2026
98ac008
Merge remote-tracking branch 'origin/main' into fix/infra-player-foll…
Nov 13, 2026
a9d7b28
fix(web): no oEmbed iframe for a video limited to its owner's sites
Nov 13, 2026
2cf5fdb
fix(web): type the optional frame callback in the player source
Nov 13, 2026
fd48d66
Merge branch 'main' into fix/infra-api-followups
richiemcilroy Nov 13, 2026
527f086
fix(web): switch a sharper pick at once only on a fast line, and name…
Nov 13, 2026
91d35a8
fix(infra): let only a delivery day charged with no shortfall open ca…
Nov 13, 2026
20e802f
refactor(web): share blog post metadata between post routes
richiemcilroy Nov 13, 2026
b15ff68
refactor(web): reusable Cap Infra night shell
richiemcilroy Nov 13, 2026
8ae7ffe
feat(web): Introducing Cap Infra blog post
richiemcilroy Nov 13, 2026
cadee30
Merge pull request #4207 from CapSoftware/perf/infra-hls-delivery
richiemcilroy Nov 13, 2026
3515aad
Merge branch 'main' into fix/infra-api-followups
richiemcilroy Nov 13, 2026
9e8f3a1
test(infra): pass the test database to shortfallOwed as an executor
Nov 13, 2026
603d603
feat(infra-mcp): read the docs from the MCP with docs_read
Nov 13, 2026
087fb27
fix(web): step up at the next segment without a flush when there is n…
Nov 13, 2026
362240b
Merge pull request #4212 from CapSoftware/fix/infra-api-followups
richiemcilroy Nov 13, 2026
3471b20
Merge remote-tracking branch 'origin/main' into feat/infra-mcp-docs-read
richiemcilroy Nov 13, 2026
6b5155a
Merge remote-tracking branch 'origin/main' into fix/infra-credit-link…
Nov 13, 2026
cc19463
Docs: name the FFmpeg releases that stop after one HLS segment
Nov 13, 2026
4b3c320
fix(infra-mcp): time docs fetches without AbortSignal.any and keep bo…
Nov 13, 2026
2e1ea56
perf(web): read the latest first month and storage day charges at once
Nov 13, 2026
a5752b6
test(web): pin an upload create at 7 statements, 5 in a row
Nov 13, 2026
8fe359d
test(web): keep the parallel read test at the end of its file
Nov 13, 2026
0cd6f6a
perf(infra): find the latest delivery day without sorting every row t…
Nov 13, 2026
f7aa3a7
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
6bf475a
fix(web): bill delivery in delivered minutes in the Cap Infra post
richiemcilroy Nov 13, 2026
c036dcb
fix(infra-mcp): a cancelled call stops waiting for a shared credit lo…
Nov 13, 2026
cd59f74
fix(media-server): answer 422 for a source with no video stream on th…
Nov 13, 2026
3ec0f1f
fix(media-server): read audio-only sources on the audio routes
Nov 13, 2026
0833b7e
Merge pull request #4221 from CapSoftware/fix/infra-credit-links-copy
richiemcilroy Nov 13, 2026
472a030
test(media-server): run the audio-only source test in the encoder ima…
Nov 13, 2026
9724d03
Merge remote-tracking branch 'origin/main' into feat/infra-mcp-docs-read
Nov 13, 2026
71a683a
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
0ecffe9
Merge pull request #4224 from CapSoftware/feat/infra-launch-post
richiemcilroy Nov 13, 2026
1d1c098
fix(infra-mcp): report a cancelled docs_read as cancelled
Nov 13, 2026
d70c23e
Merge remote-tracking branch 'origin/main' into feat/infra-mcp-docs-read
richiemcilroy Nov 13, 2026
e30bc79
Merge pull request #4225 from CapSoftware/feat/infra-mcp-docs-read
richiemcilroy Nov 13, 2026
44ee5b4
Merge remote-tracking branch 'origin/main' into fix/infra-player-foll…
Nov 13, 2026
046ff76
perf(web): load sign-in and email code only when a request needs it
Nov 13, 2026
d20b20c
test(web): keep sign-in and email code out of the developer API start…
Nov 13, 2026
96d7304
Merge branch 'main' into docs/infra-ffmpeg-note
richiemcilroy Nov 13, 2026
573ffd2
feat(infra-mcp): serve videos_import from the npm package too
richiemcilroy Nov 13, 2026
569e6e7
chore(infra-mcp): version 0.2.0
richiemcilroy Nov 13, 2026
94c7e62
docs(infra-mcp): list videos_import and ship a changelog
richiemcilroy Nov 13, 2026
9424e60
docs(infra-mcp): note credit links, durationSeconds and userId in the…
richiemcilroy Nov 13, 2026
3ef0b4a
fix(infra-mcp): say each part listed in parts in the hosted upload steps
richiemcilroy Nov 13, 2026
9030de3
fix(infra-mcp): local transcripts of a stored video send its videoId
richiemcilroy Nov 13, 2026
920c7eb
docs(infra-mcp): describe videoId transcripts in the 0.2.0 changelog
richiemcilroy Nov 13, 2026
5d690ff
chore(infra-mcp): count docs_read in the stdio tools and the 0.2.0 ch…
richiemcilroy Nov 13, 2026
9623ef0
Merge branch 'main' into feat/infra-delivered-minutes
richiemcilroy Nov 13, 2026
cf02ac1
Merge pull request #4226 from CapSoftware/docs/infra-ffmpeg-note
richiemcilroy Nov 13, 2026
ca35dc3
Merge branch 'main' into fix/infra-player-followups
richiemcilroy Nov 13, 2026
01872bf
fix(web): keep the keyboard on the player when k replays from the Rep…
Nov 13, 2026
b2087a3
Merge remote-tracking branch 'origin/fix/infra-player-followups' into…
Nov 13, 2026
4001d57
chore(web): declare esbuild for the developer API cold path test
Nov 13, 2026
d1ed21c
Merge branch 'main' into feat/infra-delivered-minutes
richiemcilroy Nov 13, 2026
ec21be4
Merge pull request #4223 from CapSoftware/feat/infra-mcp-0-2-0
richiemcilroy Nov 13, 2026
0e3a63a
Merge pull request #4228 from CapSoftware/fix/media-audio-no-video-422
richiemcilroy Nov 13, 2026
d05a2d8
Merge branch 'main' into fix/infra-player-followups
richiemcilroy Nov 13, 2026
c500499
Merge branch 'main' into feat/infra-delivered-minutes
richiemcilroy Nov 13, 2026
eb5c3d2
Merge pull request #4216 from CapSoftware/feat/infra-delivered-minutes
richiemcilroy Nov 13, 2026
03773a6
test(web): GET /usage answers when the delivery read fails
Nov 13, 2026
bf01e88
Merge remote-tracking branch 'origin/main' into feat/infra-delivery-d…
Nov 13, 2026
7044b32
fix(web): a failed delivery read gives delivery null in GET /usage, n…
Nov 13, 2026
e4dfc81
Merge branch 'main' into fix/infra-player-followups
richiemcilroy Nov 13, 2026
e808c1c
Merge pull request #4208 from CapSoftware/fix/infra-player-followups
richiemcilroy Nov 13, 2026
f1a107e
Merge branch 'main' into feat/infra-delivery-debit
richiemcilroy Nov 13, 2026
85c3302
Merge pull request #4222 from CapSoftware/feat/infra-delivery-debit
richiemcilroy Nov 13, 2026
da87f4d
Merge branch 'main' into perf/infra-upload-create
richiemcilroy Nov 13, 2026
2d4991d
Merge pull request #4227 from CapSoftware/perf/infra-upload-create
richiemcilroy Nov 13, 2026
c010037
Merge branch 'main' into fix/infra-usage-delivery-read
richiemcilroy Nov 13, 2026
ddba7b3
Merge remote-tracking branch 'origin/main' into perf/infra-api-cold-path
Nov 13, 2026
8e78cdc
Merge remote-tracking branch 'origin/main' into HEAD
Nov 13, 2026
77031b6
Merge pull request #4230 from CapSoftware/fix/infra-usage-delivery-read
richiemcilroy Nov 13, 2026
e945677
feat(infra): link back to cap.so from the Infra header
richiemcilroy Nov 13, 2026
c53f650
copy(infra): speed figures match the launch film
richiemcilroy Nov 13, 2026
8865834
fix(player): keep the play button off the seek bar on short phone embeds
richiemcilroy Nov 13, 2026
510eaa4
Merge remote-tracking branch 'origin/main' into perf/infra-api-cold-path
Nov 13, 2026
44b0c73
Merge origin/main into infra-measured-charge-concurrency
Nov 13, 2026
49ab0f6
Merge pull request #4229 from CapSoftware/perf/infra-api-cold-path
richiemcilroy Nov 13, 2026
51767f8
fix(web): one delivery row in the Cap Infra post price card
richiemcilroy Nov 13, 2026
5470ce8
feat(infra): Back to Cap link in the Infra header on every screen size
richiemcilroy Nov 13, 2026
6b5deca
Merge pull request #4232 from CapSoftware/fix/infra-post-delivery-con…
richiemcilroy Nov 13, 2026
55c6fcd
fix(infra): full Back to Cap label on phones
richiemcilroy Nov 13, 2026
d31755f
feat(infra): Back to Cap bar above the Infra header
richiemcilroy Nov 13, 2026
d5b514c
chore(infra): tidy header comment
richiemcilroy Nov 13, 2026
5d1519b
style(infra): solid grey Back to Cap bar
richiemcilroy Nov 13, 2026
577be3f
feat(infra): /infra/llms.txt, /infra/llms-full.txt and Markdown disco…
richiemcilroy Nov 13, 2026
c520551
feat(blog): pin Introducing Cap Infra on /blog
richiemcilroy Nov 13, 2026
26d0572
feat(home): hero notice links to Introducing Cap Infra
richiemcilroy Nov 13, 2026
8fbbb18
Merge pull request #4234 from CapSoftware/feat/pin-cap-infra-post
richiemcilroy Nov 13, 2026
13ef1a7
Merge origin/main into infra-measured-charge-concurrency
Nov 13, 2026
8baf0b3
Merge pull request #4215 from CapSoftware/infra-measured-charge-concu…
richiemcilroy Nov 13, 2026
8297fb8
Merge upstream main into smg (2026-11-13)
hjescalona Nov 13, 2026
f69d1af
fix(smg): read upstream's web test step by its command
hjescalona Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
145 changes: 52 additions & 93 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
runs-on: blacksmith-8vcpu-ubuntu-2404
outputs:
rust: ${{ steps.filter.outputs.rust }}
gpui: ${{ steps.filter.outputs.rust == 'true' || steps.filter.outputs.gpui == 'true' }}
# apps/cli is in the root workspace only; the GPUI app is its own
# workspace and never builds it, so CLI-only changes skip the app jobs.
gpui: ${{ steps.filter.outputs.rust-without-cli == 'true' || steps.filter.outputs.gpui == 'true' }}
gpui-patches: ${{ steps.filter.outputs.gpui-patches }}
ios: ${{ steps.filter.outputs.ios }}
steps:
Expand All @@ -46,8 +48,20 @@ jobs:
- 'scripts/setup*'
- 'Cargo.toml'
- 'Cargo.lock'
rust-without-cli:
- '.cargo/**'
- '.github/actions/install-desktop-deps/**'
- '.github/actions/setup-rust-cache/**'
- '.github/workflows/ci.yml'
- 'crates/**'
- 'vendor/**'
- 'scripts/diagnostic-build.rs'
- 'scripts/setup*'
- 'Cargo.toml'
- 'Cargo.lock'
gpui:
- '.gitattributes'
- 'scripts/setup.js'
- 'apps/desktop-gpui/**'
- 'apps/media-server/src/__tests__/fixtures/**'
- 'scripts/build-desktop-binaries*'
Expand Down Expand Up @@ -101,101 +115,24 @@ jobs:
bun test apps/render-farm
bun run --cwd apps/render-farm typecheck

- name: Test web React compatibility
run: >-
bun run --cwd apps/web test
__tests__/unit/add-videos-dialog-retry.test.ts
__tests__/unit/agent-download-access.test.ts
__tests__/unit/analytics-track-route.test.ts
__tests__/unit/caps-analytics-round-trips.test.ts
__tests__/unit/caps-keyboard.test.ts
__tests__/unit/caption-translation-ownership.test.ts
__tests__/unit/checkout-request-limits.test.ts
__tests__/unit/clock-hours.test.ts
__tests__/unit/comment-composer-composition.test.ts
__tests__/unit/currency-hook.test.ts
__tests__/unit/dashboard-analytics-cap-access.test.ts
__tests__/unit/dashboard-analytics-membership.test.ts
__tests__/unit/dashboard-analytics-space-access.test.ts
__tests__/unit/dashboard-search-item-values.test.ts
__tests__/unit/desktop-subscribe-route.test.ts
__tests__/unit/detect-platform.test.ts
__tests__/unit/embed-page-round-trips.test.ts
__tests__/unit/embed-video-playback-chrome.test.ts
__tests__/unit/first-view-email.test.ts
__tests__/unit/folder-delete.test.ts
__tests__/unit/folder-videos.test.ts
__tests__/unit/generate-ai-duration.test.ts
__tests__/unit/homepage-demo-accessibility.test.ts
__tests__/unit/invite-decline-pro-seat.test.ts
__tests__/unit/invite-decline.test.ts
__tests__/unit/linkified-text.test.ts
__tests__/unit/loom-import-ui.test.ts
__tests__/unit/messenger-message-limits.test.ts
__tests__/unit/messenger-poll-ordering.test.ts
__tests__/unit/media-comment-playback-cleanup.test.ts
__tests__/unit/media-client.test.ts
__tests__/unit/media-format-converter-selection.test.ts
__tests__/unit/media-format-converter.test.ts
__tests__/unit/gif-video-errors.test.ts
__tests__/unit/media-player-store-refs.test.ts
__tests__/unit/mobile-cap-view-notification.test.ts
__tests__/unit/mobile-caps-list.test.ts
__tests__/unit/mobile-loom-import.test.ts
__tests__/unit/mobile-organization-analytics.test.ts
__tests__/unit/notification-read-state.test.ts
__tests__/unit/organization-preferences-switch.test.ts
__tests__/unit/organization-preferences-target.test.ts
__tests__/unit/organization-settings-ownership.test.ts
__tests__/unit/organization-switcher-item-values.test.ts
__tests__/unit/playback-store.test.ts
__tests__/unit/pro-checkout-session.test.ts
__tests__/unit/pro-checkout-webhook.test.ts
__tests__/unit/referral-checkout.test.ts
__tests__/unit/remove-organization-member.test.ts
__tests__/unit/reply-notification.test.ts
__tests__/unit/seo-demo-videos.test.ts
__tests__/unit/share-comments-rendering.test.ts
__tests__/unit/share-page-loading.test.ts
__tests__/unit/share-page-round-trips.test.ts
__tests__/unit/share-transcript-rendering.test.ts
__tests__/unit/share-video-quota-loading.test.ts
__tests__/unit/shared-cap-card-delete.test.ts
__tests__/unit/sdk-recorder-hook.test.ts
__tests__/unit/signed-baa-card.test.ts
__tests__/unit/sonner-theme.test.ts
__tests__/unit/space-folder-page-access.test.ts
__tests__/unit/space-page-round-trips.test.ts
__tests__/unit/speed-controller-metadata.test.ts
__tests__/unit/speed-controller-playback-failure.test.ts
__tests__/unit/speed-controller.test.ts
__tests__/unit/subscribe-checkout.test.ts
__tests__/unit/summary-chapters.test.ts
__tests__/unit/summary-editor.test.ts
__tests__/unit/sso-login-pages.test.ts
__tests__/unit/timeline-paused-window.test.ts
__tests__/unit/toggle-pro-seat.test.ts
__tests__/unit/transcript-arrow-text.test.ts
__tests__/unit/transcript-hours.test.ts
__tests__/unit/transcript-numbers.test.ts
__tests__/unit/translate-transcript-once.test.ts
__tests__/unit/trimming-tool-audio.test.ts
__tests__/unit/update-seat-quantity.test.ts
__tests__/unit/video-ai-route-retry.test.ts
__tests__/unit/video-analytics-access.test.ts
__tests__/unit/video-analytics-bulk.test.ts
__tests__/unit/video-create-atomicity.test.ts
__tests__/unit/video-download-info-published.test.ts
__tests__/unit/video-download-key.test.ts
__tests__/unit/video-download-permissions.test.ts
__tests__/unit/video-download-rpc.test.ts
__tests__/unit/video-settings-action.test.ts
__tests__/unit/viewer-download-action.test.ts
__tests__/unit/voice-note-playback.test.ts

- name: Typecheck
run: bun run typecheck

web-tests:
name: Web tests
runs-on: blacksmith-8vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: ./.github/actions/setup-js

- run: bun run --cwd apps/web next typegen

# The whole web unit suite, about a minute on this runner.
- name: Test web
run: bun run --cwd apps/web test __tests__/unit

ios:
name: iOS
needs: changes
Expand Down Expand Up @@ -352,6 +289,10 @@ jobs:
cargo test --locked -p cap --test cli caps_json_errors_include_the_standard_error_field
cargo test --locked -p cap --bin cap caps::tests::cap_operations_validate_wait_timeouts_before_submitting
cargo test --locked -p cap --test cli organization_operations_validate_wait_timeouts_before_submitting
cargo test --locked -p cap --bin cap developer_media::tests
cargo test --locked -p cap --test cli developer_ids_that_begin_with_a_dash_are_read_as_values
cargo test --locked -p cap --test cli developer_dry_runs_show_the_target_and_change_nothing
cargo test --locked -p cap --test cli commands_without_their_own_json_errors_still_print_one
cargo test --locked -p cap-recording --lib -- --test-threads=1
cargo test --locked -p cap-recording --test x11_shm_capture -- --test-threads=1
cargo test --locked -p scap-targets --lib --test linux_targets
Expand All @@ -375,6 +316,12 @@ jobs:
runner: blacksmith-8vcpu-windows-2025
- target: x86_64-unknown-linux-gnu
runner: blacksmith-8vcpu-ubuntu-2404
# The Intel build is not a merge gate and takes over an hour on a
# GitHub-hosted runner, so it runs on main and by hand, not on PRs.
exclude:
- settings:
target: x86_64-apple-darwin
runner: ${{ github.event_name == 'pull_request' && 'macos-26-intel' || 'none' }}
runs-on: ${{ matrix.settings.runner }}
env:
# Full debuginfo for the opt-level 2 dependency tree is most of the
Expand Down Expand Up @@ -413,6 +360,18 @@ jobs:
env:
RUST_TARGET_TRIPLE: ${{ matrix.settings.target }}

# setup.js strips the local symbols from Microsoft's ONNX Runtime dylib
# before Cap bundles it; the C API ort loads through must still resolve
# and run a real inference.
- name: Test the prepared ONNX Runtime
if: ${{ runner.os == 'macOS' }}
shell: bash
run: |
set -euo pipefail
dylib=target/native-deps/onnxruntime/lib/libonnxruntime.dylib
nm -gU "$dylib" | grep -q OrtGetApiBase
cargo test --locked -p cap-camera-effects --lib segmentation::tests::inference_runs_from_a_caller_with_a_tiny_stack -- --ignored --exact

# The test build compiles every line the binary build does (the app has
# no cfg(not(test)) code), so a separate binary build only repeated the
# app crate's compile and link. Release builds still produce the binary.
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/docker-build-media-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,41 @@ jobs:
src/__tests__/lib/hls-ladder.test.ts \
src/__tests__/lib/hls-ladder-encode.integration.test.ts \
src/__tests__/lib/hls-ladder-route.integration.test.ts
docker run --rm --network none --entrypoint bun "$MEDIA_IMAGE" test \
src/__tests__/lib/media-address-guard.test.ts \
src/__tests__/lib/media-relay.integration.test.ts \
src/__tests__/lib/media-input-policy.test.ts
docker run --rm --network none --entrypoint bun "$MEDIA_IMAGE" test \
src/__tests__/lib/source-frame-limit.integration.test.ts \
src/__tests__/lib/media-probe-sample-counts.test.ts
docker run --rm --network none --entrypoint bun "$MEDIA_IMAGE" test \
src/__tests__/lib/encode-stall.test.ts \
src/__tests__/lib/media-edit-stderr.test.ts
docker run --rm --network none --entrypoint bun "$MEDIA_IMAGE" test \
src/__tests__/lib/isolated-worker-pool.test.ts \
src/__tests__/lib/media-probe-hardening.test.ts \
src/__tests__/lib/colour-probe-fallback.test.ts \
src/__tests__/lib/encode-length-limit.test.ts \
src/__tests__/lib/matroska-length.test.ts
docker run --rm --network none --entrypoint bun "$MEDIA_IMAGE" test \
src/__tests__/routes/thumbnail-remote.test.ts \
src/__tests__/routes/health.test.ts \
src/__tests__/routes/peer-jobs.test.ts

- name: Verify the server runs without root in the production image
env:
MEDIA_IMAGE: ${{ github.event_name == 'pull_request' && 'cap-media-server:verification' || format('ghcr.io/{0}/cap-media-server@{1}', env.REPOSITORY_OWNER, steps.build.outputs.digest) }}
run: |
test "$(docker run --rm --network none "$MEDIA_IMAGE" id -u)" = 1000
docker volume create media-gpu-cache
docker run --rm --network none --init \
-e CUDA_CACHE_PATH=/gpu-cache -v media-gpu-cache:/gpu-cache \
--device /dev/null:/dev/nvidia0 --entrypoint sh "$MEDIA_IMAGE" -c \
'chmod 660 /dev/nvidia0 && chgrp 44 /dev/nvidia0 && exec /app/docker-entrypoint.sh sh -c "test \$(id -u) = 1000 && touch /gpu-cache/probe && mktemp -p /tmp && test -r /dev/nvidia0 && test -w /dev/nvidia0"'
docker run --rm --network none --init "$MEDIA_IMAGE" bun test \
src/__tests__/lib/process-hardening.test.ts \
src/__tests__/lib/media-probe-sample-counts.test.ts \
src/__tests__/lib/media-input-policy.test.ts

- name: Verify long recording performance in the production image
env:
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/infra-database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Infra Database

on:
workflow_dispatch:
pull_request:
paths:
- "apps/web/lib/infra-**"
- "apps/web/lib/developer-**"
- "apps/web/__tests__/integration/**"
- "apps/web/actions/developers/**"
- "apps/web/app/(infra)/**"
- "apps/web/app/api/developer/**"
- "apps/web/app/api/cron/developer-storage/**"
- "packages/database/schema.ts"
- "packages/database/migrations/**"
- ".github/workflows/infra-database.yml"
push:
branches: [main]
paths:
- "apps/web/lib/infra-**"
- "apps/web/lib/developer-**"
- "apps/web/__tests__/integration/**"
- "apps/web/actions/developers/**"
- "apps/web/app/(infra)/**"
- "apps/web/app/api/developer/**"
- "apps/web/app/api/cron/developer-storage/**"
- "packages/database/schema.ts"
- "packages/database/migrations/**"
- ".github/workflows/infra-database.yml"

permissions:
contents: read

concurrency:
group: infra-database-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
infra-database:
name: Infra billing and uploads against MySQL
runs-on: ubuntu-24.04
timeout-minutes: 15
services:
mysql:
image: mysql:8.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: cap_infra_tests
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --host=127.0.0.1 --user=root"
--health-interval=5s
--health-timeout=3s
--health-retries=30
env:
DATABASE_URL: mysql://root@127.0.0.1:3306/cap_infra_tests
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-js
- name: Apply migrations
working-directory: packages/database
run: bun run drizzle-kit migrate --config=drizzle.config.ts
# The suites insert billing rows without their parent apps and owners,
# so they run on the migrated schema without foreign keys, the same as
# the local scratch database they were written against. This job does
# not test foreign key behaviour.
- name: Drop foreign keys
run: |
mysql --protocol=TCP -h 127.0.0.1 -u root -N -e \
"SELECT CONCAT('ALTER TABLE \`', TABLE_NAME, '\` DROP FOREIGN KEY \`', CONSTRAINT_NAME, '\`;') FROM information_schema.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = 'cap_infra_tests'" \
| mysql --protocol=TCP -h 127.0.0.1 -u root cap_infra_tests
- name: Run Infra database suites
working-directory: apps/web
env:
CAP_INFRA_TEST_DATABASE_URL: mysql://root@127.0.0.1:3306/cap_infra_tests
CAP_INFRA_ROUND_TRIPS_DATABASE_URL: mysql://root@127.0.0.1:3306/cap_infra_tests
run: bun run vitest run __tests__/integration/infra-*-database.test.ts
2 changes: 1 addition & 1 deletion .github/workflows/smg-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
bun run --cwd apps/web next typegen
bun run typecheck

# Same list upstream's CI runs (read from its ci.yml), plus tests this PR touches.
# The tests upstream's CI runs (read from its ci.yml), plus tests this PR touches.
- name: Web unit tests
env:
BASE_REF: ${{ github.base_ref || 'smg' }}
Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> <x@x>
18 changes: 11 additions & 7 deletions apps/cli/src/developers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ use crate::{

const ABOUT: &str = "\
Cap Infra is Cap's usage-billed video and speech API. A developer app holds its videos,
transcripts, allowed domains, API keys and prepaid credits.
transcripts, its allowed sites, API keys and prepaid credits.

Only the sites added with `cap developers domains` can embed the app's player. With none
added, any site can. Share links, HLS, MP4 and poster URLs stay open to everyone. To limit
a browser upload to one origin, set corsOrigin when your server creates the upload.

Amounts: 100,000 micro-credits are $1. Credit purchases are in cents, from 500 ($5) to
100000 ($1,000). Durations are in seconds.
1000000 ($10,000). Durations are in seconds.

A typical job:
cap developers list --json
Expand Down Expand Up @@ -51,7 +55,7 @@ enum DeveloperCommands {
Update(DeveloperUpdateArgs),
/// Delete an app and revoke its keys
Delete(DeveloperDeleteArgs),
/// Add or remove the origins allowed to use an app's public key
/// Add or remove the sites that can embed an app's player
Domains(DeveloperDomainsArgs),
/// Rotate an app's API keys
Keys(DeveloperKeysArgs),
Expand Down Expand Up @@ -149,17 +153,17 @@ struct DeveloperDomainsArgs {

#[derive(Subcommand)]
enum DeveloperDomainCommands {
/// Allow an origin, for example https://app.example.com
/// Allow a site to embed the player, for example https://app.example.com. Once one is added, only listed sites can
Add(DeveloperDomainAddArgs),
/// Remove an allowed origin by its id or by the origin itself
/// Remove an allowed site by its id or by the origin itself
Remove(DeveloperDomainRemoveArgs),
}

#[derive(Args)]
struct DeveloperDomainAddArgs {
/// App id from `cap developers list`
app: String,
/// Origin to allow, for example https://app.example.com
/// Site to allow, for example https://app.example.com
domain: String,
/// Confirm without a prompt
#[arg(long)]
Expand Down Expand Up @@ -248,7 +252,7 @@ enum DeveloperCreditCommands {
struct DeveloperCreditPurchaseArgs {
/// App id from `cap developers list`
app: String,
/// Amount in cents, from 500 ($5) to 100000 ($1,000)
/// Amount in cents, from 500 ($5) to 1000000 ($10,000)
#[arg(long)]
amount_cents: u32,
/// Print the checkout link without opening a browser
Expand Down
Loading
Loading