Skip to content

Document complete Lua API programs - #78

Merged
tony merged 5 commits into
mainfrom
feat-lua-api-examples
Oct 3, 2026
Merged

tony merged 5 commits into
mainfrom
feat-lua-api-examples

Conversation

@tony

@tony tony commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Lua API pages now show complete programs for connection, session/window/pane snapshots, session and window creation, queries, input, and capture. Eleven native API targets receive seven source-owned programs, each with the exact dependency setup, a complete launcher for a private daemon, error handling, cleanup, and pinned source links.

The Lua adapter reads the opt-in manifest and full files from the native artifact at 0395620d362ef75c74cd488f9577afda68922586, which is reachable from merged libtmux/libtmux-lua#13. The 773 existing symbol contracts and ordering are unchanged; the model changes only source provenance and the eleven example arrays. Existing guide example bytes are unchanged at the new revision.

The committed Lua guide cache uses the same 0395620 source revision as the API model. A fresh native export and committed-source comparison verify all 16 full guide files. The source README adds its logo wrapper; staging removes that wrapper, leaving only one additional blank line in the overview besides refreshed citations. This repairs the initial hosted failure: the stale guide cache had stopped publication before the version-slug rejection checks ran. The exact six version controls and 31 focused staging/Lua tests now pass; model and cached-guide freshness checks pass. Independent exact-patch review found no blocker. The initial hosted failure and prior local timing limits remain recorded; the next hosted run will validate the complete publication pipeline.

The console copy classifier also recognizes unquoted trailing &&, ||, and |. The actual Lua page copy check exposed that these valid command continuations had been copied as only the first line. Quote, escape, comment, and output controls preserve the existing session behavior without changing the verified native recipes.

Validation: a fresh Lua build emits 836 pages in 34.61 seconds. All 44 actual clipboard clicks on the eleven example pages, all 22 source links, and all Markdown fences match the recorded files and commands. The shared checker also accepts the twenty existing Go and new Lua pages and rejects wrong-citation and corrupted-launcher controls. The focused site/Markdown suite passes 53 tests; adapter tests pass 11 tests; the shell parser passes 19 tests, including a real renderer case. Source proof includes a clean public HTTPS checkout with Git URL rewrites disabled, the displayed Lua 5.5.1/LuaRocks 3.13.0/luv 1.52.1-0 setup, all seven exact program files and launcher on tmux 3.2a and 3.7c (14 successful runs), and four import/runtime failure-and-cleanup controls. All 24 hosted checks passed before source PR13 merged. The native receipt binds full source file hashes and commands; generated-model mapping proves those same bytes on all eleven pages, rather than claiming a new native run of a different model hash.

Source files and Markdown fences retain LF and one final newline. HTML clipboard payloads omit that final newline, and console payloads also omit $ prompts; fixtures record source and clipboard hashes separately.

Local timing limits remain explicit: the Lua source medium/outer attempts exceeded an existing five-second tooling-test subprocess limit; both docs outer attempts reached the unchanged 60-second budget after completed unit suites passed. A standalone docs browser attempt reached an unrelated ten-second root-page navigation timeout in the clipboard widget check. No deadline was raised. The full docs type check passed before the isolated shell-parser change, and the final parser TypeScript check passes. The final outer attempt completed 328 API-model, 36 theme, and 1,794 site tests; its unfinished browser and full type checks remain unverified locally. Fresh independent parser, generated-model, HTML, Markdown, and mobile clipboard review found no correctness blocker on the exact final diff.

The generated Lua model SHA-256 is 965fb2fddfd320ac4ebd792a93349b5614776aa94b1b03f8089160b9cfffad73; its code/setup mapping is checked against native receipt SHA-256 d918c604660888ae5a4d6abe1b40ba13e90140bed884a1e5dc3d2651a840f3b9. The fixture records each source revision, file hash, clipboard hash, recipe, expected output, and both tested tmux releases.

The branch now includes main 9e6cfe3 at integration head 4433c88. The only conflict combined main's responsive signature probe with the complete-example checker's Ruby routes; all 13 Lua/shared example files are byte-identical to the reviewed b88d669 head and no derived data was regenerated. Fresh focused validation passes 11 adapter tests and 142 site tests, with 13 assembled-output tests skipped; model, guide, mention and checker-syntax checks pass. The prior public-preview proof covers b88d669 and remains separate from the required new-head hosted checks and independent integration review. No full local build was repeated during the active outer gate.

tony added 4 commits October 2, 2026 16:59
why: Complete Lua and Ruby programs cite their own source files and
carry exact clipboard hashes alongside canonical source bytes.

what:
- Check each repository and per-file source citation in rendered HTML
- Compare copied setup commands and explicit clipboard hashes
- Expose Ruby reference routes in the isolated browser test server
- Keep the Go fixture test scoped to its own model

Validation: independent helper review and focused 53 site tests pass.
The required outer attempt passed its completed unit suites but hit its
60-second budget before browser and type checks finished. Standalone
checks and the Lua render remain in progress for the complete branch.
why: Valid multiline console commands ending in shell operators copied
only their first line, leaving the Lua setup and run recipes incomplete.

what:
- Continue unquoted AND, OR and pipeline commands across subsequent lines
- Keep the operand pending across comments and blank lines
- Preserve quoted, escaped, output and existing backslash boundaries
- Check the actual Expressive Code clipboard payload

Validation: 19 focused tests and focused TypeScript checks pass. A fresh
Lua build passes all 44 real copy clicks across 11 API pages, preserving
the already executed source recipes. Independent review found no blocker.
The required outer attempts hit the unchanged 60-second limit after
completed unit suites passed; unfinished checks remain unverified.
why: Core Lua API pages lacked complete programs that a reader could
copy and run with visible dependencies, input and cleanup.

what:
- Import seven opt-in source programs and their full private launcher
- Attach them to eleven native connection, listing and operation APIs
- Pin the merged and publicly tested source revision 0395620
- Record exact source, clipboard, command and Markdown byte contracts
- Preserve existing signatures, identities and other-port fixtures

Validation: exact public setup and seven programs pass on tmux 3.2a and
3.7c, with four failure cleanup controls. Source PR13 passed 24 hosted
checks before merge. A fresh 836-page Lua build passes 44 real copy clicks,
source links and Markdown hashes. Independent final review is clear.
Focused 53 site and 11 adapter tests pass. Required outer attempts reached
the unchanged 60-second deadline after completed suites passed; unfinished
checks and the unrelated standalone browser navigation timeout remain
explicit limitations in the PR. Native receipts were not rewritten.
Regenerate the Lua guide cache at the API model source revision so publication preflight reaches the version guards. Preserve the native guide bytes and source README wrapper; staging already strips the wrapper.

The native exporter and committed-source comparison agree on all 16 guide files. The six version controls, 31 focused staging and Lua tests, and model/cache freshness checks pass. Independent exact-patch review accepted18788053; prior full outer timing failures remain disclosed.
@tony
tony deployed to docs-preview October 2, 2026 23:13 — with GitHub Actions Active
Retain the responsive signature probe from main and the existing Ruby test routes in the complete API example checker. All Lua model, native program, recipe, source cache and fixture bytes remain identical to the reviewed b88d669 head.

Focused validation passes 11 adapter tests and 142 site tests, with 13 assembled-output cases skipped. Lua model, cached guide and mention freshness checks pass. No derived data was regenerated and no full local build was run during the concurrent outer gate.
@tony
tony deployed to docs-preview October 3, 2026 00:08 — with GitHub Actions Active
@tony
tony merged commit 3deacb8 into main Oct 3, 2026
3 checks passed
@tony
tony deployed to docs-preview-cleanup October 3, 2026 00:45 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
docs-preview-cleanup — 4433c88f Deployed Oct 3, 2026 by tony via cleanup #72
docs-preview — 4433c88f Deployed Oct 3, 2026 by tony via publish-preview / publish #429
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant