From 7782f209fa90263d4060a6cb6ece76ce23156d59 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 5 Dec 2026 07:12:01 -0600 Subject: [PATCH 1/3] docs(fix): Preserve indented Elixir examples why: The reference adapter loses code block boundaries in valid indented ExDoc examples and renders the callback as prose. what: - Read top-level indented examples from the Markdown block tree. - Preserve blank lines, relative indentation and IEx output. - Keep list and paragraph continuations in the surrounding prose. --- packages/api-model/src/doc/elixir.ts | 71 ++++++++------------------ packages/api-model/src/doc/markdown.ts | 31 +++++++---- packages/api-model/test/elixir.test.ts | 30 +++++++++++ 3 files changed, 72 insertions(+), 60 deletions(-) diff --git a/packages/api-model/src/doc/elixir.ts b/packages/api-model/src/doc/elixir.ts index 93f0bcbfb..4a4266e28 100644 --- a/packages/api-model/src/doc/elixir.ts +++ b/packages/api-model/src/doc/elixir.ts @@ -1,63 +1,36 @@ -import { parseMarkdownDocFull, type ParsedMarkdownDoc } from './markdown.ts' +import { fromMarkdown } from 'mdast-util-from-markdown' +import { parseMarkdownDocFull, type MarkdownDocLine, type ParsedMarkdownDoc } from './markdown.ts' const FENCE = /^\s*(`{3,}|~{3,})/ -const PROMPT = /^\s*(?:iex(?:\(\d+\))?|\.\.\.(?:\(\d+\))?)>/ +const INDENTED = /^(?: {4}| {0,3}\t)/m /** ExDoc's admonition: `> #### Heading {: .warning}`. */ const ADMONITION = /^>\s*#{1,6}\s+(.*?)\s*\{:\s*\.(warning|error|info|tip|neutral)\s*\}\s*$/ const ADMONITION_KIND: Record = { warning: 'WARNING', error: 'CAUTION', info: 'NOTE', tip: 'TIP', neutral: 'NOTE' } -const indentOf = (line: string) => /^ */.exec(line)![0].length +/** Use Markdown's block boundaries so paragraph and list continuation stays in prose. */ +function indentedExamples(raw: string): MarkdownDocLine[] { + const lines = raw.split('\n') + if (!INDENTED.test(raw)) return lines -/** - * An `iex>` doctest is an indented block in ExDoc's Markdown, and the shared - * parser reads only fenced code. Fence it, keeping the prompts: a doctest is a - * session, and its expected results are the lines without a prompt. - * - * A block belongs to the doctest it starts, so the blank lines inside a run of - * `iex>` expressions do not end it; the first unindented or unprompted line - * after a blank one does. - */ -function fenceDoctests(lines: string[]): string[] { - const out: string[] = [] - let fence: string | undefined - for (let i = 0; i < lines.length; i++) { - const line = lines[i]! - const opening = FENCE.exec(line) - if (fence) { - // A closing fence repeats the opening character at least as many times and carries no info string. - if (opening && opening[1]![0] === fence[0] && opening[1]!.length >= fence.length && !line.replace(/^\s*[`~]+/, '').trim()) fence = undefined - out.push(line) - continue - } - if (opening) { fence = opening[1]!; out.push(line); continue } - if (indentOf(line) >= 4 && PROMPT.test(line)) { - const base = indentOf(line) - const block: string[] = [] - while (i < lines.length) { - const next = lines[i]! - if (next.trim() && indentOf(next) < base) break - if (!next.trim()) { - // A blank line continues the session only while another prompt follows. - const following = lines.slice(i + 1).find((entry) => entry.trim()) - if (!following || indentOf(following) < base || !PROMPT.test(following)) break - } - block.push(next.slice(Math.min(base, indentOf(next)))) - i++ - } - i-- - out.push('```elixir', ...block, '```') - continue - } - out.push(line) + const out: MarkdownDocLine[] = [] + let cursor = 0 + for (const node of fromMarkdown(raw).children) { + if (node.type !== 'code' || !node.position) continue + const first = node.position.start.line - 1 + if (!INDENTED.test(lines[first]!)) continue + out.push(...lines.slice(cursor, first), { code: node.value }) + cursor = node.position.end.line } + out.push(...lines.slice(cursor)) return out } /** Rewrite ExDoc admonitions as the GitHub alerts the shared parser lifts into callouts. */ -function alertAdmonitions(lines: string[]): string[] { - const out: string[] = [] +function alertAdmonitions(lines: MarkdownDocLine[]): MarkdownDocLine[] { + const out: MarkdownDocLine[] = [] let fence = false for (const line of lines) { + if (typeof line !== 'string') { out.push(line); continue } if (FENCE.test(line)) fence = !fence const match = fence ? null : ADMONITION.exec(line) if (!match) { out.push(line); continue } @@ -67,8 +40,8 @@ function alertAdmonitions(lines: string[]): string[] { return out } -/** ExDoc Markdown: fenced and indented `iex>` examples, `## Examples` sections and `{: .warning}` admonitions. */ +/** ExDoc Markdown with fenced and indented examples, example sections and admonitions. */ export function parseElixirDoc(raw: string): ParsedMarkdownDoc { - const lines = alertAdmonitions(fenceDoctests(raw.replaceAll('\r\n', '\n').split('\n'))) - return parseMarkdownDocFull(lines.join('\n'), 'elixir') + const lines = alertAdmonitions(indentedExamples(raw.replaceAll('\r\n', '\n'))) + return parseMarkdownDocFull(lines, 'elixir') } diff --git a/packages/api-model/src/doc/markdown.ts b/packages/api-model/src/doc/markdown.ts index 5c6a0d27c..8a873722b 100644 --- a/packages/api-model/src/doc/markdown.ts +++ b/packages/api-model/src/doc/markdown.ts @@ -169,8 +169,10 @@ export function parseMarkdownDoc(raw: string, defaultLang = 'text'): DocBlock { return parseMarkdownDocFull(raw, defaultLang).doc } -export function parseMarkdownDocFull(raw: string, defaultLang = 'text'): ParsedMarkdownDoc { - const lines = raw.split('\n') +export type MarkdownDocLine = string | { code: string } + +export function parseMarkdownDocFull(raw: string | MarkdownDocLine[], defaultLang = 'text'): ParsedMarkdownDoc { + const lines = typeof raw === 'string' ? raw.split('\n') : raw const prose: string[] = [] const examples: { lang: string; code: string; intro?: string }[] = [] @@ -210,20 +212,27 @@ export function parseMarkdownDocFull(raw: string, defaultLang = 'text'): ParsedM tag = undefined } + const addExample = (lang: string, code: string) => { + examples.push({ + lang, + code: code.replace(/\s+$/, ''), + intro: pending.join(' ').replace(/\s+/g, ' ').trim() || undefined, + }) + pending = [] + } + for (const line of lines) { + if (typeof line !== 'string') { + closeQuote() + addExample(defaultLang, line.code) + continue + } const fenced = FENCE.exec(line) if (fence) { if (fenced) { const open = fence - examples.push({ - lang: open.lang || defaultLang, - code: (defaultLang === 'rust' && (!open.lang || open.lang === 'rust') ? rustdocVisible(open.code) : open.code) - .map((l) => l.slice(open.indent)) - .join('\n') - .replace(/\s+$/, ''), - intro: pending.join(' ').replace(/\s+/g, ' ').trim() || undefined, - }) - pending = [] + const code = defaultLang === 'rust' && (!open.lang || open.lang === 'rust') ? rustdocVisible(open.code) : open.code + addExample(open.lang || defaultLang, code.map((l) => l.slice(open.indent)).join('\n')) fence = undefined continue } diff --git a/packages/api-model/test/elixir.test.ts b/packages/api-model/test/elixir.test.ts index 004dfefed..586506084 100644 --- a/packages/api-model/test/elixir.test.ts +++ b/packages/api-model/test/elixir.test.ts @@ -179,6 +179,36 @@ describe('ExDoc Markdown', () => { expect(doc.body ?? '').not.toContain('iex>') }) + it('keeps a plain indented example together with its blank line and callback indentation', () => { + const code = [ + 'alias LibTmux.Server', + '', + 'Server.with_owned(options, fn server ->', + ' Server.snapshot!(server)', + 'end)', + ].join('\n') + const indented = code.split('\n').map((line) => line ? ` ${line}` : '').join('\n') + const { doc } = parseElixirDoc(`Runs a function.\n\n${indented}\n\nThe server stops when the call returns.`) + expect(doc.examples).toEqual([{ lang: 'elixir', code, intro: undefined }]) + expect(doc.body).toBe('The server stops when the call returns.') + }) + + it('keeps indented paragraphs in Markdown prose', () => { + const { doc } = parseElixirDoc([ + 'Summary.', + '', + 'A paragraph with a', + ' continuation.', + '', + '- A list item.', + '', + ' A second paragraph in the list item.', + ].join('\n')) + expect(doc.examples).toBeUndefined() + expect(doc.body).toContain(' continuation.') + expect(doc.body).toContain(' A second paragraph in the list item.') + }) + it('leaves a fenced block alone and treats a bare fence as Elixir', () => { const { doc } = parseElixirDoc('Summary.\n\n```\nServer.new(socket: "/tmp/tmux")\n```\n') expect(doc.examples).toEqual([{ lang: 'elixir', code: 'Server.new(socket: "/tmp/tmux")', intro: undefined }]) From 85fea3a33fe93206fae9c531785b943654976738 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 5 Dec 2026 15:12:00 -0600 Subject: [PATCH 2/3] fix(site[elixir]) Render released examples from the cached API model why: Shared previews render the committed API model. The 0.1.3 model still put indented callbacks in prose after the adapter learned to extract them. Its owned-server example had no language or highlighting. what: - Regenerate the Elixir model from the same 0.1.3 source and toolchain. - Check the public reference export for the complete owned-server callback, its language, blank line and nested indentation. --- site/src/data/api/elixir.json | 2 +- site/test/api-prose.test.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/site/src/data/api/elixir.json b/site/src/data/api/elixir.json index 1e5c47265..46d89fb60 100644 --- a/site/src/data/api/elixir.json +++ b/site/src/data/api/elixir.json @@ -1 +1 @@ -{"port":"elixir","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractor":"@libtmux/api-model@0.0.1 (Elixir EEP-48 documentation chunks and Code.Typespec v1)","nativeProvenance":{"files":[{"path":"lib/libtmux/action.ex","sha256":"ac53100367a419f864d41b05a2f74e672a056d9ad7b5ad03c23344300979b80b"},{"path":"lib/libtmux/action/completion_error.ex","sha256":"83007cb9b5617eca58624cef1a51f3f11f263e1bea9a52ca218c4735b22fa7cc"},{"path":"lib/libtmux/capture.ex","sha256":"7ce2cedfc97592578be47780965ca74ef57f83549ecb6ab1de296ad21315e452"},{"path":"lib/libtmux/capture/row.ex","sha256":"678bf3b63fe5de2d8b0eb2f3600d70ebc4fbb6fb8c5c28bcc15be074aec41cf6"},{"path":"lib/libtmux/codec.ex","sha256":"5ec0f6d39d9fcb246d0190a2992e2ba5f8b38530e09aa3bee8e359629d2a661d"},{"path":"lib/libtmux/command.ex","sha256":"fcc2ac234c7f6fd546c0734b891d6593fc6696b4a83354e3f7664e08754a9fe2"},{"path":"lib/libtmux/control.ex","sha256":"fee390e3fb25701071a345877face9c82b3173c0df4060b9edb647a99dd2700c"},{"path":"lib/libtmux/control/admission.ex","sha256":"49b59e6a9c740b057842800a8a3110e578807ab3d7336dc35e3a4cfc79051411"},{"path":"lib/libtmux/control/births.ex","sha256":"b5d6aac8ca88c1e55f6db09cbb80694d0567f5d9ad99c01e6be995476387a105"},{"path":"lib/libtmux/control/bootstrap.ex","sha256":"ba74e1d6fa9d22cffef9aa39ebe606d31ce562b2869840bdea6da9bf9b88f037"},{"path":"lib/libtmux/control/connection_supervisor.ex","sha256":"14b12e40c46cd52df11a1065737e6da95b476f4563a94d2273a4af33bb872535"},{"path":"lib/libtmux/control/epoch_host.ex","sha256":"874239ea92a067f4622c91a11639861a8375b2146c58aaa39fff9c299a6c36a9"},{"path":"lib/libtmux/control/epoch_supervisor.ex","sha256":"16c64e39002c17d5d08bfb97dd0bb5a2415b9b3692480dd7418f1c048ebbd5ba"},{"path":"lib/libtmux/control/exchange.ex","sha256":"d496f628edfd3a54d70ad106f4cfe759c9a887c7ac763d239ff2889ebdebf1c1"},{"path":"lib/libtmux/control/execution_error.ex","sha256":"6ed0b7ce5374be1f9bbe5e4443b2653bae3368990b3a057f6553071c79a430d9"},{"path":"lib/libtmux/control/guardian.ex","sha256":"0d4396bde7f804957d9491564355b36ca4f3b624d1aaa17e65753e8df4dd91a6"},{"path":"lib/libtmux/control/inbox.ex","sha256":"34b069ca454a043ac44f669143dd8edfc843bee580f7c765bf92b770d68ae0c4"},{"path":"lib/libtmux/control/lifetime.ex","sha256":"f2057e838250f808f67da41f79692b2a4fcfc4a39abc2c7d9cae17580932e66a"},{"path":"lib/libtmux/control/manager.ex","sha256":"1d7b945c260ffb4b3e8b82d2db218a3cb9682a003326dbbfdfcf74fa7d9de9ec"},{"path":"lib/libtmux/control/owned_term.ex","sha256":"22236edb147924c981a231a3a160e786e8777da5276f38c365962dc57db5b357"},{"path":"lib/libtmux/control/records.ex","sha256":"0d493ec24e9abe91724ec5a9729066316cd80f7a71d83291ba5031d8a5198d2b"},{"path":"lib/libtmux/control/request.ex","sha256":"ae9bffefa62063a77f031099b4e3330b15443372eb2ca361865ca3eb5504ee1f"},{"path":"lib/libtmux/control/router.ex","sha256":"17bc94b85db8280382fa89d19867f23454c572c3b022a1b276caac1c8292b51c"},{"path":"lib/libtmux/control/scope.ex","sha256":"b10638e6fd3f994bc74ddbb8032060225d576fe454cc3645af42e3f5855db5e5"},{"path":"lib/libtmux/control/scope_failure.ex","sha256":"ba106a6c62d69d6bee9048175f498add3565696e14d4ad93021abfb55fe4db9d"},{"path":"lib/libtmux/control/start.ex","sha256":"54a93f995d44be3c2baeeb22dd81c4a554c4fb831e5d6b10de7dccccd8b07257"},{"path":"lib/libtmux/control/supervisor_start.ex","sha256":"70e06a9ba3f69b7e3f9bfdeffc293eed570304db28396a396a5a682255e4060a"},{"path":"lib/libtmux/control/waiters.ex","sha256":"30ed3c3605e8166a28519f58f1b6e01c59020d1831c969bcb58466d07736f734"},{"path":"lib/libtmux/deadline.ex","sha256":"4163ca272f1e59d087585c154fa9d6e6c0230f2a793b543144d452cf2b2d0263"},{"path":"lib/libtmux/entities.ex","sha256":"654386c61cc26c79d76c2b61a4bc7760981ce8fc766b31d4e1d1fe8d32939a2b"},{"path":"lib/libtmux/error.ex","sha256":"156f2ad4f4da0aafa8911b66d7daeee6bcf512b1e047ab057d8315eb3c80ddca"},{"path":"lib/libtmux/filter.ex","sha256":"a9ed5bba343d306ee1710c2fce5d0f28e7e6d1559744ca69fabc14482ec33741"},{"path":"lib/libtmux/filter/evaluator.ex","sha256":"502d7c09e209ff6c167e2ab74b485b77b589d1f8981b8d1a9ba580b07a43a68e"},{"path":"lib/libtmux/filter/wire.ex","sha256":"183928fcd937ed76a5e1718b7bbdf5f4a38be3ea02592ca42207cc087890e8ad"},{"path":"lib/libtmux/format.ex","sha256":"204658005014420ca63033f0bb216dade63dafe8108f26d67e6c0673104394e1"},{"path":"lib/libtmux/operation.ex","sha256":"a963380b1e69c471e1f50b583bb9606c1b9b5ca552c11c28b1ff793864719f3f"},{"path":"lib/libtmux/operation/lifecycle.ex","sha256":"0221ea46f5395f4b2aa86f9846cff7b0ebe932abb91f7ee118d298f68b1f7e8f"},{"path":"lib/libtmux/process_identity.ex","sha256":"5936b66347b803525d90a04bbd596790389bea97bdf8a82554b1d8bd1f6641e5"},{"path":"lib/libtmux/protocol.ex","sha256":"d391c9b1a5560fca17a090a007260aaf20be4f995b7e1fecf3ac99662abecf3c"},{"path":"lib/libtmux/ref.ex","sha256":"f6456c836a12991bf0316d368b159af569bdc4bd9f7ec6589f010fbb94bdc738"},{"path":"lib/libtmux/schema.ex","sha256":"7f140b56ccf7cf86e2b420b5f1e0e3b3b08b6d22e5c7dda66926a07b77946178"},{"path":"lib/libtmux/selection.ex","sha256":"b6cd467f5c4807fcbd9df4dbfb5fdfe230c3f468c395b114724f798d5b4004d8"},{"path":"lib/libtmux/server.ex","sha256":"b7ea7f92dffece1f88a4aafdfd66a9b9be52275cce94a73ee20eaae17488a01d"},{"path":"lib/libtmux/server/daemon.ex","sha256":"93d9d6cf291cebab02f9f136dce912cbbe7fba1e86625cb7f3e497148bff4cb3"},{"path":"lib/libtmux/snapshot.ex","sha256":"662c29cf16416d565bea3211fc5a2b5f154dd2e93343d210809144c40e7fdcbf"},{"path":"lib/libtmux/transport/native.ex","sha256":"4ec14f18472e94d848462f6acc598fdc8124532fe1b55bbf56e845d762852d3a"},{"path":"lib/libtmux/transport/native/driver.ex","sha256":"91a85c2d9ff593bc127d27432bc5d57822949d2b3aa905d35840c492db23028e"},{"path":"lib/libtmux/transport/native/protocol.ex","sha256":"7032f92e640f5d8cfe4b099cb43cdbd684fd8d54a04379259184cc7cb4012a78"},{"path":"lib/libtmux/transport/oneshot.ex","sha256":"9216b90dffab49f22eaf29dadc842c62aed17c803aa26899b230a4fd567901df"},{"path":"lib/libtmux/transport/reply.ex","sha256":"be1bad8d3b00b3ecf609a2887daee001bb9a84e49cb147780ea0c52f58caddf1"},{"path":"lib/libtmux/wire.ex","sha256":"bdb83f5e8cba2e7eab2c655e30fd2b464f53cd87b1d9f6db34646f067f6d4479"},{"path":"mix.exs","sha256":"c16e2678d8cba2ee9e73946d2a3fc1a863c4e60679600b59bd9e609181adf5c5"}],"exporter":{"name":"Elixir EEP-48 documentation chunks and Code.Typespec","version":1,"elixir":"1.20.5","otp":"29.1.3","columns":60}},"sources":[{"product":"core","package":"libtmux","version":"0.1.3","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"}],"symbols":[{"id":"LibTmux.Action","publicId":"LibTmux.Action","name":"Action","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Shared results for explicit pane, window and session actions.","body":"Pass a `LibTmux.Server` for one-shot execution or a `LibTmux.Control` for\nmanaged execution in its qualified connection. No action changes transport,\nreplays a mutation or refreshes an observation. Targeted one-shot actions\ncheck the server incarnation before execution; that check leaves a\ncheck/use race.\n\nOrdinary actions return `{:ok, result}` only for completed commands.\nFailed, skipped and unknown outcomes return\n`{:error, %LibTmux.Action.CompletionError{result: original_result}}`.\n`value` holds the completed command's value; `details` retains the\ntransport's original bounded evidence. Domain bang functions return the\ncompleted value or raise `LibTmux.Action.CompletionError` with the original\nunsuccessful result. Acknowledgement does not prove that a program\nprocessed input or finished running.\n\nAPI errors use `LibTmux.Error`; admitted control errors preserve the recovery\nhandle in `LibTmux.Control.ExecutionError`. Domain bang functions raise\nthese errors unchanged. Lower-level `LibTmux.Control` and `LibTmux.Operation`\nbang functions retain canonical outcomes as values.\n\nAction errors with kind `:invalid_command` include a validation `path` such\nas `[:options, :size]` and a bounded `details.reason` describing accepted\ninputs. The reason appears in the exception message; rejected values are\nnot retained in diagnostic details. Targeted one-shot actions validate both\nnative process specifications before the identity read. Session creation\nhas no observed target; it validates its command and runs without an identity\nread. Native byte/count refusals use paths such as `[:process, :argv]` or\n`[:process, :frame]`.\nPreparation does not check filesystem existence or guarantee execution.\n\nA nonzero one-shot client exit reports `:failed` with `:observed` certainty:\nits exit status is observed, not an authenticated tmux command reply or\nproof that no effects occurred.\n\nKill actions run one-shot only: a Control connection returns\n`unsupported_transport` before any I/O, because it cannot kill what it is\nattached to. A kill command prints nothing, so a completed result has the\nvalue `:ok`.\n\nOptional session context checks physical membership at tmux's command\nresolution. It does not bind a particular WindowLink index when a window\nhas multiple links in that session. WindowLink references are rejected.\nSee `LibTmux.Pane.split/3`, `LibTmux.Pane.send_text/4` and\n`LibTmux.Window.rename/4` for caller examples."},"source":{"file":"lib/libtmux/action.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action"},{"id":"LibTmux.Action.connection/0","publicId":"LibTmux.Action.connection/0","name":"connection/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type connection() ::\n LibTmux.Server.t() | LibTmux.Control.t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"connection() ::\n LibTmux.Server.t() | LibTmux.Control.t()","doc":{"summary":"Explicitly selected one-shot descriptor or pinned qualified connection."},"source":{"file":"lib/libtmux/action.ex","line":54,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-connection-0"},{"id":"LibTmux.Action.option/0","publicId":"LibTmux.Action.option/0","name":"option/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:timeout, 1..600_000} | {:session, LibTmux.Ref.t()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:timeout, 1..600_000} | {:session, LibTmux.Ref.t()}","doc":{"summary":"A 1..600000ms execution budget, default 5000ms; optional exact session context for physical targets."},"source":{"file":"lib/libtmux/action.ex","line":56,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-option-0"},{"id":"LibTmux.Action.creation_option/0","publicId":"LibTmux.Action.creation_option/0","name":"creation_option/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type creation_option() ::\n {:timeout, 1..600_000}\n | {:cwd, binary()}\n | {:command,\n :default\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"creation_option() ::\n {:timeout, 1..600_000}\n | {:cwd, binary()}\n | {:command,\n :default\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","doc":{"summary":"Detached creation on an existing server; default command/shell and directory unless supplied."},"source":{"file":"lib/libtmux/action.ex","line":58,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-creation_option-0"},{"id":"LibTmux.Action.creation_value/0","publicId":"LibTmux.Action.creation_value/0","name":"creation_value/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type creation_value() :: %{id: String.t(), ref: nil}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"creation_value() :: %{id: String.t(), ref: nil}","doc":{"summary":"A created native ID without a bound reference; capture a new observation before another targeted action."},"source":{"file":"lib/libtmux/action.ex","line":63,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-creation_value-0"},{"id":"LibTmux.Action.result/1","publicId":"LibTmux.Action.result/1","name":"result/1","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type result(value) :: %{\n outcome: :completed,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: value,\n details: map()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"result(value) :: %{\n outcome: :completed,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: value,\n details: map()\n }","doc":{"summary":"A completed action's value and original transport evidence.","body":"Only completed results appear in an action's `{:ok, result}` tuple. Command\nacknowledgement remains distinct from external program completion.\n\nA completed split carries `t:LibTmux.Pane.split_value/0`. See\n`LibTmux.Pane.split/3` for its identity and lifetime limits."},"source":{"file":"lib/libtmux/action.ex","line":65,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-result-1"},{"id":"LibTmux.Action.unsuccessful_result/0","publicId":"LibTmux.Action.unsuccessful_result/0","name":"unsuccessful_result/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type unsuccessful_result() :: %{\n outcome: :failed | :skipped | :unknown,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: nil,\n details: map()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"unsuccessful_result() :: %{\n outcome: :failed | :skipped | :unknown,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: nil,\n details: map()\n }","doc":{"summary":"A failed, skipped or unknown action outcome retained inside CompletionError."},"source":{"file":"lib/libtmux/action.ex","line":83,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-unsuccessful_result-0"},{"id":"LibTmux.Action.error/0","publicId":"LibTmux.Action.error/0","name":"error/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type error() ::\n LibTmux.Error.t()\n | LibTmux.Action.CompletionError.t()\n | LibTmux.Control.ExecutionError.t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"error() ::\n LibTmux.Error.t()\n | LibTmux.Action.CompletionError.t()\n | LibTmux.Control.ExecutionError.t()","doc":{"summary":"An API refusal, unsuccessful outcome or managed execution error retaining recovery context."},"source":{"file":"lib/libtmux/action.ex","line":92,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-error-0"},{"id":"LibTmux.Action.CompletionError","publicId":"LibTmux.Action.CompletionError","name":"CompletionError","namespace":"LibTmux.Action","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An action result did not meet an explicit completion requirement.","body":"Returned in an error tuple by domain actions such as `LibTmux.Pane.split/3`\nand raised by their bang variants. `result` preserves the original\nfailed, skipped or unknown outcome, including certainty and transport\nevidence. An unknown outcome remains unknown; this exception does not\ncancel work or authorize replay. Its message omits transport output."},"extends":["Exception"],"source":{"file":"lib/libtmux/action/completion_error.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-completionerror"},{"id":"LibTmux.Action.CompletionError.result","publicId":"LibTmux.Action.CompletionError.result","name":"result","namespace":"LibTmux.Action.CompletionError","parent":"LibTmux.Action.CompletionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Action.unsuccessful_result()","value":"nil","source":{"file":"lib/libtmux/action/completion_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-completionerror-result"},{"id":"LibTmux.Action.CompletionError.t/0","publicId":"LibTmux.Action.CompletionError.t/0","name":"t/0","namespace":"LibTmux.Action.CompletionError","parent":"LibTmux.Action.CompletionError","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Action.CompletionError{\n __exception__: term(),\n result: LibTmux.Action.unsuccessful_result()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Action.CompletionError{\n __exception__: term(),\n result: LibTmux.Action.unsuccessful_result()\n }","doc":{"summary":"The original action result that did not establish command completion."},"source":{"file":"lib/libtmux/action/completion_error.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-completionerror-t-0"},{"id":"LibTmux.Capture","publicId":"LibTmux.Capture","name":"Capture","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Builds a bounded one-shot observation of one existing Linux tmux server.","body":"Capture checks topology and OS server identity before and after field\nreads. Attempts share the original deadline and work budgets; `attempts`\ndefaults to 2 and accepts 1–3. Only inconsistent topology or disappearing\nread targets retry. Decoding and coverage errors remain visible.\n\nDefaults: 1024 topology rows, 512 commands, 8 MiB total response bytes,\n64 KiB per response and 5000 ms. Exhausted capture-wide budgets return an\nerror, never a partial success. Both topology scans count contextual linked rows.\nFree-form fields use one encoded listing per entity kind. One successful\nattempt uses 13 commands when those three listings fit. After a listing\nexceeds the response ceiling and its client retires, capture reads that\nkind's physical entities individually. The failed listing still consumes\ncommands, bytes and time. Duplicate linked text rows consume bytes.\nCapture adds no control attachment. Hooks configured on list commands can\nstill have effects; retries do not replay application mutations."},"source":{"file":"lib/libtmux/capture.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-capture"},{"id":"LibTmux.Capture.option/0","publicId":"LibTmux.Capture.option/0","name":"option/0","namespace":"LibTmux.Capture","parent":"LibTmux.Capture","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:timeout, pos_integer()}\n | {:deadline, LibTmux.Deadline.t()}\n | {:attempts, 1..3}\n | {:max_entities\n | :max_commands\n | :max_bytes\n | :max_response_bytes, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:timeout, pos_integer()}\n | {:deadline, LibTmux.Deadline.t()}\n | {:attempts, 1..3}\n | {:max_entities\n | :max_commands\n | :max_bytes\n | :max_response_bytes, pos_integer()}","doc":{"summary":"Capture-wide budgets shared by all attempts and reads.","body":"Each read uses the smaller of remaining `max_bytes` and `max_response_bytes`.\nThat effective ceiling must fit OneShot's 16 MiB stdout limit. The shared\ndeadline must have at most 600,000 ms remaining when OneShot validates a read.\nInvalid combinations raise `ArgumentError` before that command executes."},"source":{"file":"lib/libtmux/capture.ex","line":25,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-capture-option-0"},{"id":"LibTmux.Capture.fetch/2","publicId":"LibTmux.Capture.fetch/2","name":"fetch/2","namespace":"LibTmux.Capture","parent":"LibTmux.Capture","kind":"function","modifiers":[],"signatures":[{"raw":"fetch(server, options \\\\ [])\n@spec fetch(LibTmux.Server.t(), [option()]) ::\n {:ok, LibTmux.Snapshot.t()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"LibTmux.Server.t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"{:ok, LibTmux.Snapshot.t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Performs bounded capture through an explicit server descriptor.","body":"See `t:option/0` for the composed work, response and remaining-deadline\nconstraints inherited from `LibTmux.Transport.OneShot.run/3`.\n\nSee the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/capture.ex","line":49,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-capture-fetch-2"},{"id":"LibTmux.Client","publicId":"LibTmux.Client","name":"Client","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable attached-client observation, keyed by validated client name."},"source":{"file":"lib/libtmux/entities.ex","line":658,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client"},{"id":"LibTmux.Client.id","publicId":"LibTmux.Client.id","name":"id","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-id"},{"id":"LibTmux.Client.server_instance","publicId":"LibTmux.Client.server_instance","name":"server_instance","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-server_instance"},{"id":"LibTmux.Client.session_id","publicId":"LibTmux.Client.session_id","name":"session_id","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-session_id"},{"id":"LibTmux.Client.pid","publicId":"LibTmux.Client.pid","name":"pid","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-pid"},{"id":"LibTmux.Client.width","publicId":"LibTmux.Client.width","name":"width","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-width"},{"id":"LibTmux.Client.height","publicId":"LibTmux.Client.height","name":"height","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer() | nil)","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-height"},{"id":"LibTmux.Client.control_mode","publicId":"LibTmux.Client.control_mode","name":"control_mode","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-control_mode"},{"id":"LibTmux.Client.t/0","publicId":"LibTmux.Client.t/0","name":"t/0","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Client{\n control_mode: LibTmux.Schema.observed(boolean()),\n height:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n id: String.t(),\n pid: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Client{\n control_mode: LibTmux.Schema.observed(boolean()),\n height:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n id: String.t(),\n pid: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer())\n }","doc":{"summary":"An attached client; a known absent height is distinct from unloaded or unavailable coverage."},"source":{"file":"lib/libtmux/entities.ex","line":671,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-t-0"},{"id":"LibTmux.Codec","publicId":"LibTmux.Codec","name":"Codec","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes bounded field responses and control-output bytes.","body":"A field response contains one free-form field and one framing newline.\nThe default raw mode removes only its framing newline and requires a\nseparately qualified raw source. Use `encoding: :escaped_v1` for output\nproduced by `LibTmux.Format.field/1`, including tmux 3.4's print path.\nThis is a conservative response codec, not a multi-field row codec."},"source":{"file":"lib/libtmux/codec.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec"},{"id":"LibTmux.Codec.field_type/0","publicId":"LibTmux.Codec.field_type/0","name":"field_type/0","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type field_type() :: :bytes | :string | :integer | :boolean","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"field_type() :: :bytes | :string | :integer | :boolean","doc":{"summary":"The required decoded field category; string additionally requires valid UTF-8."},"source":{"file":"lib/libtmux/codec.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-field_type-0"},{"id":"LibTmux.Codec.field_option/0","publicId":"LibTmux.Codec.field_option/0","name":"field_option/0","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type field_option() ::\n {:encoding, :raw | :escaped_v1}\n | {:max_bytes, pos_integer()}\n | {:min | :max, integer() | nil}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"field_option() ::\n {:encoding, :raw | :escaped_v1}\n | {:max_bytes, pos_integer()}\n | {:min | :max, integer() | nil}","doc":{"summary":"Field framing and value validation options; min and max apply only to integer fields."},"source":{"file":"lib/libtmux/codec.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-field_option-0"},{"id":"LibTmux.Codec.decode_field/3","publicId":"LibTmux.Codec.decode_field/3","name":"decode_field/3","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"function","modifiers":["overload"],"signatures":[{"raw":"decode_field(response, type, options \\\\ [])\n@spec decode_field(binary(), :bytes | :string, [\n field_option()\n ]) ::\n {:ok, binary()} | {:error, LibTmux.Error.t()}","params":[{"name":"response","type":"binary()"},{"name":"type","type":":bytes | :string"},{"name":"options","type":"[field_option()]","default":"[]"}],"returns":"{:ok, binary()} | {:error, LibTmux.Error.t()}"},{"raw":"decode_field(response, type, options \\\\ [])\n@spec decode_field(binary(), :integer, [field_option()]) ::\n {:ok, integer()} | {:error, LibTmux.Error.t()}","params":[{"name":"response","type":"binary()"},{"name":"type","type":":integer"},{"name":"options","type":"[field_option()]","default":"[]"}],"returns":"{:ok, integer()} | {:error, LibTmux.Error.t()}"},{"raw":"decode_field(response, type, options \\\\ [])\n@spec decode_field(binary(), :boolean, [field_option()]) ::\n {:ok, boolean()} | {:error, LibTmux.Error.t()}","params":[{"name":"response","type":"binary()"},{"name":"type","type":":boolean"},{"name":"options","type":"[field_option()]","default":"[]"}],"returns":"{:ok, boolean()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Removes one framing newline and validates the complete field value.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/codec.ex","line":22,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-decode_field-3"},{"id":"LibTmux.Codec.decode_output/2","publicId":"LibTmux.Codec.decode_output/2","name":"decode_output/2","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"function","modifiers":[],"signatures":[{"raw":"decode_output(value, options \\\\ [])\n@spec decode_output(binary(), [\n {:max_bytes, pos_integer()}\n ]) ::\n {:ok, binary()} | {:error, LibTmux.Error.t()}","params":[{"name":"value","type":"binary()"},{"name":"options","type":"[{:max_bytes, pos_integer()}]","default":"[]"}],"returns":"{:ok, binary()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes tmux's three-digit octal output escapes as bytes.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/codec.ex","line":48,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-decode_output-2"},{"id":"LibTmux.Command","publicId":"LibTmux.Command","name":"Command","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A command value with separate argv and tmux-text renderers.","body":"Construction performs no I/O. Arguments are bytes without NUL. Rendering\nprotects command syntax; arguments interpreted as formats still require\n`LibTmux.Format`. A command value does not authorize a shared control lane\nor establish completion behavior, including configured hooks and aliases."},"source":{"file":"lib/libtmux/command.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command"},{"id":"LibTmux.Command.t/0","publicId":"LibTmux.Command.t/0","name":"t/0","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Trusted command data without I/O. Format operands need separate encoding before execution."},"source":{"file":"lib/libtmux/command.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-t-0"},{"id":"LibTmux.Command.option/0","publicId":"LibTmux.Command.option/0","name":"option/0","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() :: {:max_bytes, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() :: {:max_bytes, pos_integer()}","doc":{"summary":"A positive byte ceiling for the selected argv or text rendering; encoded output is charged separately."},"source":{"file":"lib/libtmux/command.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-option-0"},{"id":"LibTmux.Command.new/3","publicId":"LibTmux.Command.new/3","name":"new/3","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"function","modifiers":[],"signatures":[{"raw":"new(name, args, options \\\\ [])\n@spec new(String.t(), [binary()], [option()]) :: t()","params":[{"name":"name","type":"String.t()"},{"name":"args","type":"[binary()]"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a trusted command, rejecting invalid arguments and input size.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/command.ex","line":19,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-new-3"},{"id":"LibTmux.Command.argv/2","publicId":"LibTmux.Command.argv/2","name":"argv/2","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"function","modifiers":[],"signatures":[{"raw":"argv(command, options \\\\ [])\n@spec argv(t(), [option()]) :: [binary()]","params":[{"name":"command","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"[binary()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns process arguments, preserving terminal semicolons in tmux's argv parser.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/command.ex","line":39,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-argv-2"},{"id":"LibTmux.Command.render/2","publicId":"LibTmux.Command.render/2","name":"render/2","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"function","modifiers":[],"signatures":[{"raw":"render(command, options \\\\ [])\n@spec render(t(), [option()]) :: binary()","params":[{"name":"command","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Renders one newline-free tmux command line within its encoded byte budget.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/command.ex","line":52,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-render-2"},{"id":"LibTmux.Control","publicId":"LibTmux.Control","name":"Control","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A qualified control connection for scoped and managed execution.","body":"Start with `with_connection/2` to own startup and cleanup around a callback.\nUse `execute/3` to obtain a command outcome after wire retirement and record\nreclamation. Canonical `:failed`, `:skipped` and `:unknown` outcomes remain\nvalues, including from bang functions; acknowledgement does not prove\nexternal program completion. See the [managed control guide](managed-control.html).\n\nA successful scope returns `{:ok, callback_value}` after proven cleanup.\n`LibTmux.Control.ScopeFailure` preserves the callback outcome when cleanup\nfails. `LibTmux.Control.ExecutionError` carries the operation handle and\nrecovery context for errors after admission.\n\nStarting a connection explicitly attaches to an existing session. The host\nmust qualify effective hooks, aliases and stream writers for its lifetime;\n`lane: :host_qualified` declares that work without performing it. Each handle\nstays pinned to one epoch. Pinning does not authenticate unqualified output\nor defend against arbitrary writes to internal tables. Local selections\nnever attach, and commands never replay, refresh or change transport.\n\nFor independently retained results, use `submit/3` and `LibTmux.Operation`.\nAwaiting a retained result does not reclaim its record. See the\n[advanced execution guide](advanced-execution.html) for explicit ownership.\n`request_close/1` closes write authority for the entire epoch through reserved\ncapacity; it neither proves retirement nor rolls back effects."},"source":{"file":"lib/libtmux/control.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control"},{"id":"LibTmux.Control.t/0","publicId":"LibTmux.Control.t/0","name":"t/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A handle pinned to one owner and connection epoch; it never follows a replacement."},"source":{"file":"lib/libtmux/control.ex","line":46,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-t-0"},{"id":"LibTmux.Control.start_option/0","publicId":"LibTmux.Control.start_option/0","name":"start_option/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type start_option() ::\n {:server, LibTmux.Server.t()}\n | {:session, {:existing, String.t()}}\n | {:lane, :host_qualified}\n | {:timeout, 1..600_000}\n | {:capacity\n | :metadata_capacity\n | :waiter_capacity, 1..256}\n | {:retention_ms, 1..600_000}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"start_option() ::\n {:server, LibTmux.Server.t()}\n | {:session, {:existing, String.t()}}\n | {:lane, :host_qualified}\n | {:timeout, 1..600_000}\n | {:capacity\n | :metadata_capacity\n | :waiter_capacity, 1..256}\n | {:retention_ms, 1..600_000}","doc":{"summary":"Explicit attachment policy and bounded startup settings; capacities count slots and timeouts use milliseconds."},"source":{"file":"lib/libtmux/control.ex","line":49,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-start_option-0"},{"id":"LibTmux.Control.call_option/0","publicId":"LibTmux.Control.call_option/0","name":"call_option/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type call_option() :: {:timeout, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"call_option() :: {:timeout, pos_integer()}","doc":{"summary":"A positive millisecond budget shared by all stages of one lifecycle or submission call."},"source":{"file":"lib/libtmux/control.ex","line":58,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-call_option-0"},{"id":"LibTmux.Control.scope_option/0","publicId":"LibTmux.Control.scope_option/0","name":"scope_option/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type scope_option() ::\n start_option() | {:cleanup_timeout, 1..950}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"scope_option() ::\n start_option() | {:cleanup_timeout, 1..950}","doc":{"summary":"Startup options plus a separate cleanup allowance of 1..950ms, default 950ms; callback duration has no library timer."},"source":{"file":"lib/libtmux/control.ex","line":61,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scope_option-0"},{"id":"LibTmux.Control.terminal_diagnostic/0","publicId":"LibTmux.Control.terminal_diagnostic/0","name":"terminal_diagnostic/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type terminal_diagnostic() :: %{\n reason: atom(),\n phase: atom(),\n stderr: binary()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"terminal_diagnostic() :: %{\n reason: atom(),\n phase: atom(),\n stderr: binary()\n }","doc":{"summary":"An observed close reason, its error phase and at most 8192 captured stderr bytes; not proof of effects or complete stderr."},"source":{"file":"lib/libtmux/control.ex","line":64,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-terminal_diagnostic-0"},{"id":"LibTmux.Control.connection_status/0","publicId":"LibTmux.Control.connection_status/0","name":"connection_status/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type connection_status() :: %{\n epoch: reference() | nil,\n generation: non_neg_integer(),\n phase:\n :starting\n | :ready\n | :closing\n | :retired\n | :unknown,\n instance: String.t() | nil,\n terminal: terminal_diagnostic() | nil | :unavailable\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"connection_status() :: %{\n epoch: reference() | nil,\n generation: non_neg_integer(),\n phase:\n :starting\n | :ready\n | :closing\n | :retired\n | :unknown,\n instance: String.t() | nil,\n terminal: terminal_diagnostic() | nil | :unavailable\n }","doc":{"summary":"A pinned epoch's current phase, identity and terminal evidence; retirement and unknown cleanup are distinct."},"source":{"file":"lib/libtmux/control.ex","line":67,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-connection_status-0"},{"id":"LibTmux.Control.start_link/1","publicId":"LibTmux.Control.start_link/1","name":"start_link/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"start_link(options)\n@spec start_link([start_option()]) ::\n {:ok, pid(), t()} | {:error, LibTmux.Error.t()}","params":[{"name":"options","type":"[start_option()]"}],"returns":"{:ok, pid(), t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Starts a linked connection and returns `{:ok, root, control}`.","body":"Require `server: %LibTmux.Server{}`, `session: {:existing, \"$id\"}` and\n`lane: :host_qualified`. No session is created. The attachment is visible in\ntmux's client counts and can update session state. `no-output,ignore-size`\nsuppresses pane output and excludes this client from window sizing.\n\n`timeout` defaults to 5000ms and accepts 1..600000ms. One budget covers input\npreparation, Root startup, bootstrap, ready waiting and handoff. A fresh\nfactory returns a ready handle. Runtime failures return a structured error;\ninvalid trusted options raise `ArgumentError`. Ordinary OTP links remain:\nan asynchronous fatal Root exit can terminate a non-trapping caller.\n\nFailed startup fences its lifetime and requests exact-Root cleanup. Error\ndetails distinguish observed Root exit from a kill request; unknown native\ncleanup is never success. OTP can await Root exit after its initialization\ntimer expires, so a strict wall-clock caller-return bound remains unqualified.\n\nOptional `capacity`, `metadata_capacity` and `waiter_capacity` default to 32\nand accept 1..256. `retention_ms` defaults to 60000 and accepts 1..600000.\n\nReady connections buffer at most 64 KiB or 128 stdout chunks behind the\nreader. Overflow closes the whole epoch with `resource_limit`; it never\nreplays commands. These receive limits do not cap borrowed-server memory.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":76,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-start_link-1"},{"id":"LibTmux.Control.with_connection/2","publicId":"LibTmux.Control.with_connection/2","name":"with_connection/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"with_connection(options, callback)\n@spec with_connection([scope_option()], (t() -> value)) ::\n {:ok, value}\n | {:error,\n LibTmux.Error.t()\n | LibTmux.Control.ScopeFailure.t(value)}\n when value: var","params":[{"name":"options","type":"[scope_option()]"},{"name":"callback","type":"(t() -> value)"}],"returns":"{:ok, value} | {:error, LibTmux.Error.t() | LibTmux.Control.ScopeFailure.t(value)}","typeParams":["value: var"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs a callback with one connection and owns its native and supervisor cleanup.","body":"Takes the explicit server, existing session and host qualification options\nfrom `start_link/1`. The callback runs in the calling process. Its duration\nis separate from startup and `cleanup_timeout` (default 950ms). A dedicated\nconnection owner also requests cleanup when that caller dies.\n\nReturns `{:ok, value}` after proven connection retirement and Root exit.\nCleaned-up exceptions, throws and exits are re-raised with their original\nstacktrace. If cleanup fails, returns `{:error, ScopeFailure}` containing the\ncallback's original value or exception and separate cleanup evidence.\nStartup failures return `{:error, Error}`; invalid options raise.\n\nThe control handle is scoped to the callback. Explicit reconnect is allowed\ninside it; cleanup permanently fences new epochs and retires the current one.\nEscaped handles cannot reconnect after the scope. Startup retains `start_link/1`'s OTP initialization\nlimitation; a timeout can report unknown cleanup while its owner is still\nunwinding startup. It does not promise a hard native process-exit deadline.\n\n alias LibTmux.Control\n\n Control.with_connection(options, fn control ->\n Control.execute(control, LibTmux.Control.Request.field(\"pid\"))\n end)"},"source":{"file":"lib/libtmux/control.ex","line":110,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-with_connection-2"},{"id":"LibTmux.Control.child_spec/1","publicId":"LibTmux.Control.child_spec/1","name":"child_spec/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"child_spec(options)\n@spec child_spec([start_option()]) ::\n Supervisor.child_spec()","params":[{"name":"options","type":"[start_option()]"}],"returns":"Supervisor.child_spec()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Builds a permanent supervisor child spec without attaching.","body":"Prepares bounded detached inputs and one lifetime shared by all factory\ninvocations. Each invocation starts its own configured startup budget.\nA restarted nonfresh lifetime returns an inert handle and never attaches\nautomatically. Proven retirement permits explicit `reconnect/2`; unknown\ncleanup refuses it. Old handles never follow a replacement Root or Manager.\n\n`Supervisor.start_child/2` and `Supervisor.restart_child/2` return the new\nhandle as their third info element. After an automatic restart, use\n`Supervisor.terminate_child/2` followed by `Supervisor.restart_child/2` for\nfresh info. This does not clear unknown cleanup or authorize replay.\n\nSee the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":157,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-child_spec-1"},{"id":"LibTmux.Control.submit/3","publicId":"LibTmux.Control.submit/3","name":"submit/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"submit(control, request, options \\\\ [])\n@spec submit(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) ::\n {:ok, LibTmux.Operation.t()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Operation.t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Admits one request and returns its retained operation handle.","body":"`timeout` defaults to 5000ms and covers validation, admission, queueing,\nwrites and replies under one monotonic deadline. Request binaries are\ndetached before publication. Invalid input, overload or stale context before\nadmission returns a no-write error. Every successful admission returns its\nOperation, even if its context disappears before publication. Inspect that\nhandle for the eventual canonical result or an explicit lost-context error.\n\nClosing the connection can affect sibling operations. Command replies do\nnot prove external program exit. Caller timeout does not authorize replay.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":212,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-submit-3"},{"id":"LibTmux.Control.execute/3","publicId":"LibTmux.Control.execute/3","name":"execute/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"execute(control, request, options \\\\ [])\n@spec execute(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) ::\n {:ok, LibTmux.Operation.result()}\n | {:error,\n LibTmux.Error.t()\n | LibTmux.Control.ExecutionError.t()}","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Operation.result()} | {:error, LibTmux.Error.t() | LibTmux.Control.ExecutionError.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Executes one qualified request, returning its result after wire retirement and record reclamation. Repeated successful calls need no manual forget.","body":"The default 5000ms budget covers preparation, admission, execution and\ncollection. Failed, skipped and unknown canonical outcomes remain values;\nacknowledgement does not establish external program completion.\n\nPre-admission errors have no-write certainty. An error after admission is\na `LibTmux.Control.ExecutionError` with the exact Operation and retained or\nlost context. Inspect that handle when available; never replay on timeout.\nThe original caller owns recovery: its death permits reclamation after wire\nretirement, even if it passed the handle to another process. A live caller's\ntimeout leaves the record subject to normal retention and explicit forget.\n`Operation.status/1` and `Operation.result/1` inspect it without a waiter.\nA new await needs its own slot; the expired collector releases its slot\nasynchronously when the owner processes closure.\nUse `submit/3` when a retained handle is required after successful waiting.\n\n alias LibTmux.Control\n\n Control.execute(control, LibTmux.Control.Request.field(\"pid\"))"},"source":{"file":"lib/libtmux/control.ex","line":236,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-execute-3"},{"id":"LibTmux.Control.execute!/3","publicId":"LibTmux.Control.execute!/3","name":"execute!/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"execute!(control, request, options \\\\ [])\n@spec execute!(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) :: LibTmux.Operation.result()","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"LibTmux.Operation.result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Executes and reclaims as in `execute/3`; raises API/context errors, preserving canonical failures as values.","body":"See the [worked example](managed-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":288,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-execute-bang-3"},{"id":"LibTmux.Control.submit!/3","publicId":"LibTmux.Control.submit!/3","name":"submit!/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"submit!(control, request, options \\\\ [])\n@spec submit!(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) :: LibTmux.Operation.t()","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"LibTmux.Operation.t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Admits a request or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":325,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-submit-bang-3"},{"id":"LibTmux.Control.status/1","publicId":"LibTmux.Control.status/1","name":"status/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"status(control)\n@spec status(t()) ::\n {:ok, connection_status()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"}],"returns":"{:ok, connection_status()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads the pinned epoch's phase, identity and terminal diagnostics without I/O.","body":"`terminal` is `nil` before a terminal report, or `:unavailable` when the\nreport is missing or an ended epoch has no report. A report contains `reason`, its error\n`phase` and at most 8192 raw `stderr` bytes. Empty stderr means no bytes were\ncaptured; the buffer may be incomplete and need not be UTF-8. It can contain\napplication data and is never logged automatically.\n\nA terminal report can coexist with `:closing` or unknown cleanup. Its reason\nis an observed cause, not necessarily the original cause, and does not alter\noperation outcomes. Status fields are separate observations, not an atomic\nsnapshot. A replacement epoch starts without the old report; old handles\nremain stale. Losing the status owner returns the existing context error.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":333,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-status-1"},{"id":"LibTmux.Control.status!/1","publicId":"LibTmux.Control.status!/1","name":"status!/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"status!(control)\n@spec status!(t()) :: connection_status()","params":[{"name":"control","type":"t()"}],"returns":"connection_status()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads pinned connection status or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":378,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-status-bang-1"},{"id":"LibTmux.Control.request_close/1","publicId":"LibTmux.Control.request_close/1","name":"request_close/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"request_close(control)\n@spec request_close(t()) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests whole-epoch closure without claiming an operation or metadata slot.","body":"Repeated requests for the same closing or proven-retired generation return\n`:ok`. Success is a request or previously known retirement, not a cleanup\nacknowledgement. A replacement Manager or epoch is never followed.\n\nSee the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":386,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request_close-1"},{"id":"LibTmux.Control.request_close!/1","publicId":"LibTmux.Control.request_close!/1","name":"request_close!/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"request_close!(control)\n@spec request_close!(t()) :: :ok","params":[{"name":"control","type":"t()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests epoch closure or raises the same structured error.","body":"See the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":417,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request_close-bang-1"},{"id":"LibTmux.Control.close/2","publicId":"LibTmux.Control.close/2","name":"close/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"close(control, options \\\\ [])\n@spec close(t(), [call_option()]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests closure and waits for proven retirement of the pinned epoch.","body":"`timeout` defaults to 5000ms. The original budget includes validation and\nretirement waiting. Closure still happens if the bounded metadata wait cannot\nbe admitted. Timeout, overload or lost ownership reports unknown certainty;\nit never proves cleanup. `:ok` requires known native and actor retirement.\n\nThe connection supervisor and retained records remain available for explicit\nreconnect and inspection. This does not stop the supervisor or roll back\nsibling effects.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":425,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-close-2"},{"id":"LibTmux.Control.close!/2","publicId":"LibTmux.Control.close!/2","name":"close!/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"close!(control, options \\\\ [])\n@spec close!(t(), [call_option()]) :: :ok","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Waits for retirement or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":458,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-close-bang-2"},{"id":"LibTmux.Control.reconnect/2","publicId":"LibTmux.Control.reconnect/2","name":"reconnect/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"reconnect(control, options \\\\ [])\n@spec reconnect(t(), [call_option()]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Explicitly obtains the ready epoch, starting a replacement only after retirement.","body":"A ready epoch returns itself. Call `close/2` first to require replacement.\nThe default 5000ms budget covers metadata admission, retirement and startup.\nA successful reply pins the acknowledged endpoint even if it becomes stale\nbefore this caller resumes. It never follows a later view or replays work.\nErrors report unknown certainty about existing effects. Attachment counts\ninclude the control client; reconnect can attach one replacement client.\n\nSee the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":466,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-reconnect-2"},{"id":"LibTmux.Control.reconnect!/2","publicId":"LibTmux.Control.reconnect!/2","name":"reconnect!/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"reconnect!(control, options \\\\ [])\n@spec reconnect!(t(), [call_option()]) :: t()","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Obtains the ready epoch or raises the same structured error.","body":"See the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":492,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-reconnect-bang-2"},{"id":"LibTmux.Control.ExecutionError","publicId":"LibTmux.Control.ExecutionError","name":"ExecutionError","namespace":"LibTmux.Control","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A managed execution reported an error after admission.","body":"`error` explains the wait or context failure. `operation` is the exact\nadmitted handle. `context` reports whether its record was retained when\ninspected; expiry, Manager loss or death of the original `execute/3` caller\ncan invalidate it later. Passing the handle to another process does not\ntransfer recovery ownership; use `Control.submit/3` for durable retention\nindependent of the submitting caller. `:lost` never\nestablishes that the command was unwritten and does not authorize replay.\nInspect a retained handle with `LibTmux.Operation.status/1` before leaving\nits owning scope. See the [recovery example](recovery.html)."},"extends":["Exception"],"source":{"file":"lib/libtmux/control/execution_error.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror"},{"id":"LibTmux.Control.ExecutionError.error","publicId":"LibTmux.Control.ExecutionError.error","name":"error","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Error.t()","value":"nil","source":{"file":"lib/libtmux/control/execution_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-error"},{"id":"LibTmux.Control.ExecutionError.operation","publicId":"LibTmux.Control.ExecutionError.operation","name":"operation","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Operation.t()","value":"nil","source":{"file":"lib/libtmux/control/execution_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-operation"},{"id":"LibTmux.Control.ExecutionError.context","publicId":"LibTmux.Control.ExecutionError.context","name":"context","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":":retained | :lost","value":"nil","source":{"file":"lib/libtmux/control/execution_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-context"},{"id":"LibTmux.Control.ExecutionError.t/0","publicId":"LibTmux.Control.ExecutionError.t/0","name":"t/0","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Control.ExecutionError{\n __exception__: term(),\n context: :retained | :lost,\n error: LibTmux.Error.t(),\n operation: LibTmux.Operation.t()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Control.ExecutionError{\n __exception__: term(),\n context: :retained | :lost,\n error: LibTmux.Error.t(),\n operation: LibTmux.Operation.t()\n }","doc":{"summary":"Recovery evidence after admission; the original operation deadline is unchanged."},"source":{"file":"lib/libtmux/control/execution_error.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-t-0"},{"id":"LibTmux.Control.Request","publicId":"LibTmux.Control.Request","name":"Request","namespace":"LibTmux.Control","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Data for the qualified control lane's supported commands.","body":"Field reads encode one named variable losslessly. Server user options accept\nliteral binary values. Domain actions use the same lane for split, rename\nand literal/named input. Constructing a request performs no I/O; use\n`LibTmux.Control.execute/3` or retain a handle with `LibTmux.Control.submit/3`.\nThe host must qualify hooks, aliases and mode-dependent input bindings along\nwith other stream writers. Arbitrary commands, formats and raw control lines\nrequire separate qualification and are not accepted by this lane."},"source":{"file":"lib/libtmux/control/request.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request"},{"id":"LibTmux.Control.Request.t/0","publicId":"LibTmux.Control.Request.t/0","name":"t/0","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Command data for the qualified lane; construction does not validate admission or perform I/O."},"source":{"file":"lib/libtmux/control/request.ex","line":18,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-t-0"},{"id":"LibTmux.Control.Request.field/2","publicId":"LibTmux.Control.Request.field/2","name":"field/2","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"function","modifiers":[],"signatures":[{"raw":"field(variable, target \\\\ nil)\n@spec field(String.t(), LibTmux.Ref.t() | nil) :: t()","params":[{"name":"variable","type":"String.t()"},{"name":"target","type":"LibTmux.Ref.t() | nil","default":"nil"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads a named format variable, optionally from an exact instance-bound target.","body":"Existing empty fields succeed. A target that disappears before the read\nproduces an acknowledged failed operation and leaves the connection usable.\nA reference does not reserve the object's lifetime.\n\nSee the [worked example](managed-control.html)."},"source":{"file":"lib/libtmux/control/request.ex","line":21,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-field-2"},{"id":"LibTmux.Control.Request.set_user_option/2","publicId":"LibTmux.Control.Request.set_user_option/2","name":"set_user_option/2","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"function","modifiers":[],"signatures":[{"raw":"set_user_option(name, value)\n@spec set_user_option(String.t(), binary()) :: t()","params":[{"name":"name","type":"String.t()"},{"name":"value","type":"binary()"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Sets a server user option with an `@name` and a literal binary value.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/control/request.ex","line":34,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-set_user_option-2"},{"id":"LibTmux.Control.Request.verify_reply/3","publicId":"LibTmux.Control.Request.verify_reply/3","name":"verify_reply/3","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"function","modifiers":[],"signatures":[{"raw":"verify_reply(request, status, lines)\n@spec verify_reply(t(), :ok | :error, [binary()]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"request","type":"t()"},{"name":"status","type":":ok | :error"},{"name":"lines","type":"[binary()]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Checks a qualified request's reply shape; a tmux error reply remains a command outcome.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/control/request.ex","line":95,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-verify_reply-3"},{"id":"LibTmux.Control.ScopeFailure","publicId":"LibTmux.Control.ScopeFailure","name":"ScopeFailure","namespace":"LibTmux.Control","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A scoped callback finished, but connection cleanup was not proved.","body":"`primary` preserves either `{:return, value}` or\n`{:raise, kind, reason, stacktrace}`. `cleanup` holds the separate structured\ncleanup error. Callback values stay in the calling process; this wrapper\ndoes not copy them through a bounded connection mailbox or discard them.\nSee `LibTmux.Control.with_connection/2` for the complete return contract."},"extends":["Exception"],"source":{"file":"lib/libtmux/control/scope_failure.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scopefailure"},{"id":"LibTmux.Control.ScopeFailure.primary/1","publicId":"LibTmux.Control.ScopeFailure.primary/1","name":"primary/1","namespace":"LibTmux.Control.ScopeFailure","parent":"LibTmux.Control.ScopeFailure","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type primary(value) ::\n {:return, value}\n | {:raise, :error | :throw | :exit, term(), list()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"primary(value) ::\n {:return, value}\n | {:raise, :error | :throw | :exit, term(), list()}","doc":{"summary":"The callback's original value or caught exception, throw or exit with its stacktrace."},"source":{"file":"lib/libtmux/control/scope_failure.ex","line":13,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scopefailure-primary-1"},{"id":"LibTmux.Control.ScopeFailure.t/1","publicId":"LibTmux.Control.ScopeFailure.t/1","name":"t/1","namespace":"LibTmux.Control.ScopeFailure","parent":"LibTmux.Control.ScopeFailure","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t(value) :: %LibTmux.Control.ScopeFailure{\n __exception__: term(),\n cleanup: LibTmux.Error.t(),\n primary: primary(value)\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"t(value) :: %LibTmux.Control.ScopeFailure{\n __exception__: term(),\n cleanup: LibTmux.Error.t(),\n primary: primary(value)\n }","doc":{"summary":"Both primary callback evidence and unproved cleanup; neither implies no command effects."},"source":{"file":"lib/libtmux/control/scope_failure.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scopefailure-t-1"},{"id":"LibTmux.Deadline","publicId":"LibTmux.Deadline","name":"Deadline","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A node-local monotonic deadline shared by every stage of an operation.","body":"Construct it once at admission. Passing it between stages preserves the\noriginal budget; it is not a portable timestamp or a wire value."},"source":{"file":"lib/libtmux/deadline.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline"},{"id":"LibTmux.Deadline.t/0","publicId":"LibTmux.Deadline.t/0","name":"t/0","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A node-local monotonic millisecond cutoff. Share it between stages; never serialize it as a portable deadline."},"source":{"file":"lib/libtmux/deadline.ex","line":12,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-t-0"},{"id":"LibTmux.Deadline.option/0","publicId":"LibTmux.Deadline.option/0","name":"option/0","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() :: {:now, integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() :: {:now, integer()}","doc":{"summary":"An optional node-local monotonic clock sample in milliseconds, used instead of sampling the current clock."},"source":{"file":"lib/libtmux/deadline.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-option-0"},{"id":"LibTmux.Deadline.new/2","publicId":"LibTmux.Deadline.new/2","name":"new/2","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"function","modifiers":[],"signatures":[{"raw":"new(milliseconds, options \\\\ [])\n@spec new(pos_integer(), [option()]) :: t()","params":[{"name":"milliseconds","type":"pos_integer()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Creates a deadline from a positive millisecond budget.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/deadline.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-new-2"},{"id":"LibTmux.Deadline.remaining/2","publicId":"LibTmux.Deadline.remaining/2","name":"remaining/2","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"function","modifiers":[],"signatures":[{"raw":"remaining(deadline, options \\\\ [])\n@spec remaining(t(), [option()]) :: non_neg_integer()","params":[{"name":"deadline","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"non_neg_integer()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the remaining milliseconds, clamped to zero after expiry.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/deadline.ex","line":33,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-remaining-2"},{"id":"LibTmux.Error","publicId":"LibTmux.Error","name":"Error","namespace":"LibTmux","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An inspectable failure with its phase and certainty about effects.","body":"`retryable` describes a recovery option; it never authorizes replay of a\nmutation. Diagnostic details must stay within the producing operation's\nbyte budget. Bang functions raise this same structure."},"extends":["Exception"],"source":{"file":"lib/libtmux/error.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error"},{"id":"LibTmux.Error.kind","publicId":"LibTmux.Error.kind","name":"kind","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"atom()","value":"nil","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-kind"},{"id":"LibTmux.Error.phase","publicId":"LibTmux.Error.phase","name":"phase","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"atom()","value":":validation","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-phase"},{"id":"LibTmux.Error.certainty","publicId":"LibTmux.Error.certainty","name":"certainty","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"certainty()","value":":unknown","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-certainty"},{"id":"LibTmux.Error.retryable","publicId":"LibTmux.Error.retryable","name":"retryable","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"boolean()","value":"false","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-retryable"},{"id":"LibTmux.Error.path","publicId":"LibTmux.Error.path","name":"path","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"[path_component()]","value":"[]","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-path"},{"id":"LibTmux.Error.details","publicId":"LibTmux.Error.details","name":"details","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"map()","value":"%{}","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-details"},{"id":"LibTmux.Error.certainty/0","publicId":"LibTmux.Error.certainty/0","name":"certainty/0","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type certainty() ::\n :no_write | :acknowledged | :observed | :unknown","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"certainty() ::\n :no_write | :acknowledged | :observed | :unknown","doc":{"summary":"Evidence about effects, independent of whether cleanup or arbitrary program completion is proved."},"source":{"file":"lib/libtmux/error.ex","line":19,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-certainty-0"},{"id":"LibTmux.Error.path_component/0","publicId":"LibTmux.Error.path_component/0","name":"path_component/0","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type path_component() ::\n atom() | non_neg_integer() | LibTmux.Ref.id()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"path_component() ::\n atom() | non_neg_integer() | LibTmux.Ref.id()","doc":{"summary":"A field, array index or observed identity locating an error; links retain their contextual tuple ID."},"source":{"file":"lib/libtmux/error.ex","line":21,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-path_component-0"},{"id":"LibTmux.Error.t/0","publicId":"LibTmux.Error.t/0","name":"t/0","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Error{\n __exception__: term(),\n certainty: certainty(),\n details: map(),\n kind: atom(),\n path: [path_component()],\n phase: atom(),\n retryable: boolean()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Error{\n __exception__: term(),\n certainty: certainty(),\n details: map(),\n kind: atom(),\n path: [path_component()],\n phase: atom(),\n retryable: boolean()\n }","doc":{"summary":"A structured API failure. Kind and phase are extensible; retryable never permits automatic mutation replay."},"source":{"file":"lib/libtmux/error.ex","line":23,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-t-0"},{"id":"LibTmux.Filter","publicId":"LibTmux.Filter","name":"Filter","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A validated portable predicate over one observed entity type.","body":"Keywords are trusted shorthand for maps. Fields in one object conjoin;\nduplicate keyword keys are rejected recursively. `not` at a field negates\nequality, while Boolean `not` takes one criteria object. Lists require an\nexplicit operator. Native callbacks belong to `LibTmux.Selection.filter/2`.\nThis value contains data; executable preparation remains separate."},"source":{"file":"lib/libtmux/filter.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter"},{"id":"LibTmux.Filter.criteria/0","publicId":"LibTmux.Filter.criteria/0","name":"criteria/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type criteria() ::\n %{optional(atom()) => term()} | keyword(term())","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"criteria() ::\n %{optional(atom()) => term()} | keyword(term())","doc":{"summary":"Local map criteria or keyword shorthand; field and operand domains are validated at construction."},"source":{"file":"lib/libtmux/filter.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-criteria-0"},{"id":"LibTmux.Filter.input/0","publicId":"LibTmux.Filter.input/0","name":"input/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type input() :: criteria() | t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"input() :: criteria() | t()","doc":{"summary":"Trusted criteria data or a previously validated filter for the same entity."},"source":{"file":"lib/libtmux/filter.ex","line":18,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-input-0"},{"id":"LibTmux.Filter.limit_option/0","publicId":"LibTmux.Filter.limit_option/0","name":"limit_option/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type limit_option() ::\n {:max_bytes, pos_integer()}\n | {:max_depth, pos_integer()}\n | {:max_nodes, pos_integer()}\n | {:max_list, pos_integer()}\n | {:max_string_bytes, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"limit_option() ::\n {:max_bytes, pos_integer()}\n | {:max_depth, pos_integer()}\n | {:max_nodes, pos_integer()}\n | {:max_list, pos_integer()}\n | {:max_string_bytes, pos_integer()}","doc":{"summary":"A positive resource ceiling; byte, depth, node, list and string budgets validate independently."},"source":{"file":"lib/libtmux/filter.ex","line":20,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-limit_option-0"},{"id":"LibTmux.Filter.limits/0","publicId":"LibTmux.Filter.limits/0","name":"limits/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type limits() :: %{\n max_bytes: pos_integer(),\n max_depth: pos_integer(),\n max_nodes: pos_integer(),\n max_list: pos_integer(),\n max_string_bytes: pos_integer()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"limits() :: %{\n max_bytes: pos_integer(),\n max_depth: pos_integer(),\n max_nodes: pos_integer(),\n max_list: pos_integer(),\n max_string_bytes: pos_integer()\n }","doc":{"summary":"Resolved constructor budgets; wire limits also cover the versioned envelope."},"source":{"file":"lib/libtmux/filter.ex","line":27,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-limits-0"},{"id":"LibTmux.Filter.t/0","publicId":"LibTmux.Filter.t/0","name":"t/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validated portable predicate data; executable predicates are prepared separately."},"source":{"file":"lib/libtmux/filter.ex","line":43,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-t-0"},{"id":"LibTmux.Filter.new/3","publicId":"LibTmux.Filter.new/3","name":"new/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"new(entity, criteria, options \\\\ [])\n@spec new(LibTmux.Schema.entity_selector(), input(), [\n limit_option()\n ]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"criteria","type":"input()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Normalizes criteria and validates field/operator/value domains before evaluation.","body":"An existing filter retains its constructor's validation when no new limits\nare supplied. Explicit limits check the normalized tree directly, without\nexpanding it into synthetic input syntax.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":46,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-new-3"},{"id":"LibTmux.Filter.new!/3","publicId":"LibTmux.Filter.new!/3","name":"new!/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"new!(entity, criteria, options \\\\ [])\n@spec new!(LibTmux.Schema.entity_selector(), input(), [\n limit_option()\n ]) :: t()","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"criteria","type":"input()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a filter or raises its structured validation error.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":98,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-new-bang-3"},{"id":"LibTmux.Filter.to_predicate/2","publicId":"LibTmux.Filter.to_predicate/2","name":"to_predicate/2","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"to_predicate(filter, options)\n@spec to_predicate(t(), [\n {:snapshot, LibTmux.Snapshot.t()}\n ]) :: (LibTmux.Schema.observation() ->\n boolean())","params":[{"name":"filter","type":"t()"},{"name":"options","type":"[{:snapshot, LibTmux.Snapshot.t()}]"}],"returns":"(LibTmux.Schema.observation() -> boolean())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Prepares a local unary predicate after validating captured coverage, including empty domains.","body":"Relationship and count predicates require each input to equal the\nobservation stored under its ID in `snapshot`. A missing or different\nobservation raises `LibTmux.Error` with kind `:observation_mismatch`.\nRelated values always come from the prepared snapshot; equal inputs from\nanother capture are accepted.\n\nScalar-only predicates read the supplied observation and may be reused\nacross captures. Each referenced field must be loaded: `:unloaded` raises\n`:field_not_loaded` and `:unavailable` raises `:field_unavailable` before\nBoolean evaluation. Known nullable values keep their comparison semantics;\nunreferenced fields need not be loaded. The snapshot validates coverage\nwhen preparing the predicate.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":111,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-to_predicate-2"},{"id":"LibTmux.Filter.from_wire/3","publicId":"LibTmux.Filter.from_wire/3","name":"from_wire/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"from_wire(entity, payload, options \\\\ [])\n@spec from_wire(LibTmux.Schema.entity_selector(), term(), [\n limit_option()\n ]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"payload","type":"term()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes a whitelisted versioned map; raw JSON must use from_json to retain duplicate keys.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":136,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-from_wire-3"},{"id":"LibTmux.Filter.from_json/3","publicId":"LibTmux.Filter.from_json/3","name":"from_json/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"from_json(entity, json, options \\\\ [])\n@spec from_json(\n LibTmux.Schema.entity_selector(),\n binary(),\n [limit_option()]\n ) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"json","type":"binary()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes bounded JSON, rejecting duplicate object keys and trailing data.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":146,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-from_json-3"},{"id":"LibTmux.Filter.to_wire/1","publicId":"LibTmux.Filter.to_wire/1","name":"to_wire/1","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"to_wire(filter)\n@spec to_wire(t()) :: LibTmux.Wire.object()","params":[{"name":"filter","type":"t()"}],"returns":"LibTmux.Wire.object()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the explicit versioned string-keyed wire representation.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":156,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-to_wire-1"},{"id":"LibTmux.Format","publicId":"LibTmux.Format","name":"Format","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs literal operands for tmux formats without evaluating their text.","body":"Command quoting and format quoting are separate. A literal may contain\nnewlines or arbitrary non-NUL bytes; this does not qualify its output for\na shared line-oriented control lane."},"source":{"file":"lib/libtmux/format.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-format"},{"id":"LibTmux.Format.field/1","publicId":"LibTmux.Format.field/1","name":"field/1","namespace":"LibTmux.Format","parent":"LibTmux.Format","kind":"function","modifiers":[],"signatures":[{"raw":"field(name)\n@spec field(String.t()) :: binary()","params":[{"name":"name","type":"String.t()"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Encodes one named field for `LibTmux.Codec.decode_field/3` with `encoding: :escaped_v1`.","body":"Backslashes are replaced first, then dollars and ASCII control bytes.\nThis protects values from tmux 3.4's ambiguous print escaping. The `v1:`\nprefix and encoded newlines prevent field text from becoming reply guards.\nThis encodes one field. Capture composes these fields inside its versioned\nrow framing; this is not an arbitrary format wrapper. The caller must still\nbound the response and validate the\nfield against its schema and the connected server's capabilities.\n\nSee the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/format.ex","line":26,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-format-field-1"},{"id":"LibTmux.Format.literal/1","publicId":"LibTmux.Format.literal/1","name":"literal/1","namespace":"LibTmux.Format","parent":"LibTmux.Format","kind":"function","modifiers":[],"signatures":[{"raw":"literal(value)\n@spec literal(binary()) :: binary()","params":[{"name":"value","type":"binary()"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a format expression that expands to exactly the supplied non-NUL bytes.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/format.ex","line":47,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-format-literal-1"},{"id":"LibTmux.Operation","publicId":"LibTmux.Operation","name":"Operation","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A retained operation handle pinned to its original owner, tables and epoch.","body":"`result/1` and `status/1` read local retained values. `await/2` owns a separate\nbounded waiter; its timeout never stops the operation. `stop/1` requests\nclosure of the operation's entire connection epoch, including siblings.\nIt does not roll back effects or prove native cleanup.\n\nCanonical results carry `outcome`, `certainty` and `evidence`. Completed,\nfailed, skipped and unknown outcomes remain values, including in bang APIs.\nBang functions raise only API or metadata errors. A command reply is distinct\nfrom wire retirement and arbitrary program exit.\n\nNormal reconnect preserves retained records until forget or expiry. Owner\nreplacement loses those tables; a handle never follows a replacement view.\nHandles recovered from `LibTmux.Control.execute/3` errors also remain owned\nby that original caller: its death permits reclamation after wire retirement."},"source":{"file":"lib/libtmux/operation.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation"},{"id":"LibTmux.Operation.t/0","publicId":"LibTmux.Operation.t/0","name":"t/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A retained owner-bound operation handle; it is not a command result or a reservation."},"source":{"file":"lib/libtmux/operation.ex","line":28,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-t-0"},{"id":"LibTmux.Operation.command_result/0","publicId":"LibTmux.Operation.command_result/0","name":"command_result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type command_result() :: %{\n outcome: :completed | :failed,\n certainty: :acknowledged,\n evidence: :command_reply,\n guard: LibTmux.Protocol.guard_id(),\n lines: [binary()]\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"command_result() :: %{\n outcome: :completed | :failed,\n certainty: :acknowledged,\n evidence: :command_reply,\n guard: LibTmux.Protocol.guard_id(),\n lines: [binary()]\n }","doc":{"summary":"A qualified command reply, independently of wire retirement or program completion."},"source":{"file":"lib/libtmux/operation.ex","line":30,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-command_result-0"},{"id":"LibTmux.Operation.skipped_result/0","publicId":"LibTmux.Operation.skipped_result/0","name":"skipped_result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type skipped_result() :: %{\n outcome: :skipped,\n certainty: :no_write,\n evidence: :cancelled | :timeout | :epoch_closed\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"skipped_result() :: %{\n outcome: :skipped,\n certainty: :no_write,\n evidence: :cancelled | :timeout | :epoch_closed\n }","doc":{"summary":"A canonical no-write outcome, with the reason it was skipped before dispatch."},"source":{"file":"lib/libtmux/operation.ex","line":38,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-skipped_result-0"},{"id":"LibTmux.Operation.unknown_result/0","publicId":"LibTmux.Operation.unknown_result/0","name":"unknown_result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type unknown_result() :: %{\n outcome: :unknown,\n certainty: :unknown,\n evidence: :epoch_closed\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"unknown_result() :: %{\n outcome: :unknown,\n certainty: :unknown,\n evidence: :epoch_closed\n }","doc":{"summary":"An epoch closed without enough evidence to classify the operation's effects."},"source":{"file":"lib/libtmux/operation.ex","line":44,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-unknown_result-0"},{"id":"LibTmux.Operation.result/0","publicId":"LibTmux.Operation.result/0","name":"result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type result() ::\n command_result()\n | skipped_result()\n | unknown_result()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"result() ::\n command_result()\n | skipped_result()\n | unknown_result()","doc":{"summary":"The immutable canonical outcome; failed, skipped and unknown outcomes remain values."},"source":{"file":"lib/libtmux/operation.ex","line":46,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-result-0"},{"id":"LibTmux.Operation.wire/0","publicId":"LibTmux.Operation.wire/0","name":"wire/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type wire() ::\n :unpublished\n | :unsent\n | :writing\n | :awaiting\n | :closing\n | :retired","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"wire() ::\n :unpublished\n | :unsent\n | :writing\n | :awaiting\n | :closing\n | :retired","doc":{"summary":"Wire progress for this operation; retired wire does not prove connection cleanup."},"source":{"file":"lib/libtmux/operation.ex","line":48,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-wire-0"},{"id":"LibTmux.Operation.status/0","publicId":"LibTmux.Operation.status/0","name":"status/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type status() :: %{wire: wire(), result: result() | nil}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"status() :: %{wire: wire(), result: result() | nil}","doc":{"summary":"Retained wire progress and the canonical result, or nil while no outcome is established."},"source":{"file":"lib/libtmux/operation.ex","line":50,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-status-0"},{"id":"LibTmux.Operation.option/0","publicId":"LibTmux.Operation.option/0","name":"option/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() :: {:timeout, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() :: {:timeout, pos_integer()}","doc":{"summary":"A positive millisecond budget for one waiter or record-reclamation call."},"source":{"file":"lib/libtmux/operation.ex","line":52,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-option-0"},{"id":"LibTmux.Operation.status/1","publicId":"LibTmux.Operation.status/1","name":"status/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"status(operation)\n@spec status(t()) ::\n {:ok, status()} | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"}],"returns":"{:ok, status()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads retained wire state and canonical result without contacting tmux.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":109,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-status-1"},{"id":"LibTmux.Operation.status!/1","publicId":"LibTmux.Operation.status!/1","name":"status!/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"status!(operation)\n@spec status!(t()) :: status()","params":[{"name":"operation","type":"t()"}],"returns":"status()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads retained status or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":123,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-status-bang-1"},{"id":"LibTmux.Operation.result/1","publicId":"LibTmux.Operation.result/1","name":"result/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"result(operation)\n@spec result(t()) ::\n :pending\n | {:ok, result()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"}],"returns":":pending | {:ok, result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a canonical result, `:pending`, or a retained-context error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":131,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-result-1"},{"id":"LibTmux.Operation.result!/1","publicId":"LibTmux.Operation.result!/1","name":"result!/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"result!(operation)\n@spec result!(t()) :: :pending | result()","params":[{"name":"operation","type":"t()"}],"returns":":pending | result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads a result or `:pending`; raises API errors, preserving all canonical outcomes.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":145,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-result-bang-1"},{"id":"LibTmux.Operation.await/2","publicId":"LibTmux.Operation.await/2","name":"await/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"await(operation, options \\\\ [])\n@spec await(t(), [option()]) ::\n {:ok, result()} | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"{:ok, result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Waits for a canonical result under one positive millisecond timeout.","body":"The default is 5000ms. Every call claims an independent bounded waiter slot,\nincluding terminal operations; use `result/1` for immediate inspection.\nCompleted waiter copies survive record reclamation until this caller reads\nthem. Timeout, overload and caller death affect only this waiter.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":153,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-await-2"},{"id":"LibTmux.Operation.await!/2","publicId":"LibTmux.Operation.await!/2","name":"await!/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"await!(operation, options \\\\ [])\n@spec await!(t(), [option()]) :: result()","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Waits or raises API errors; canonical failed, skipped and unknown outcomes remain values.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":169,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-await-bang-2"},{"id":"LibTmux.Operation.forget/2","publicId":"LibTmux.Operation.forget/2","name":"forget/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"forget(operation, options \\\\ [])\n@spec forget(t(), [option()]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests exact-record reclamation with a default 5000ms timeout.","body":"Wire-active records cannot be forgotten. An owner-accepted request remains\nowned after caller timeout. Successful reclamation invalidates this record\nhandle while preserving already-accepted waiter copies.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":181,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-forget-2"},{"id":"LibTmux.Operation.forget!/2","publicId":"LibTmux.Operation.forget!/2","name":"forget!/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"forget!(operation, options \\\\ [])\n@spec forget!(t(), [option()]) :: :ok","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Forgets the retained record or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":196,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-forget-bang-2"},{"id":"LibTmux.Operation.stop/1","publicId":"LibTmux.Operation.stop/1","name":"stop/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"stop(operation)\n@spec stop(t()) :: :ok | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests closure of the pinned epoch through reserved capacity.","body":"Returns `:ok` for an already wire-retired operation or an accepted closure\nrequest, and `{:error, error}` otherwise. Closure can affect sibling work;\nsuccess does not prove retirement or change the canonical result. A stale\nhandle cannot revoke a replacement epoch.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":204,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-stop-1"},{"id":"LibTmux.Operation.stop!/1","publicId":"LibTmux.Operation.stop!/1","name":"stop!/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"stop!(operation)\n@spec stop!(t()) :: :ok","params":[{"name":"operation","type":"t()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests epoch closure or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":231,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-stop-bang-1"},{"id":"LibTmux.Pane","publicId":"LibTmux.Pane","name":"Pane","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable physical pane with explicit actions. It belongs to a window; text may be empty.","body":"## What is on here\n\nA Pane is a value captured in a `LibTmux.Snapshot`. Actions take a\n`LibTmux.Ref` and a Server or Control connection. Start with these groups:\n\n**Finding the pane.** Select panes from a captured snapshot, or look one up by\nits exact ID. Neither contacts tmux. An ID that was not captured returns\n`{:error, error}` with kind `:not_found`. Turn the pane into a reference tied\nto the server incarnation that supplied it, ready for an action.\n\n- Select: `LibTmux.Snapshot.panes/1`\n- By ID: `LibTmux.Snapshot.fetch/3`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Splitting.** Split the pane and get the new pane's ID in the completed value.\nA qualified Control connection also returns a bound reference; one-shot\nexecution returns `ref: nil`. The defaults are a vertical, detached split at\nhalf size; options set the axis, size, directory and command.\n\n- Split: `split/3`\n- Raise on failure: `split!/3`\n\n**Sending input.** Send literal bytes, up to 995 of them, without interpreting\nkey names, or send named keys such as `\"Enter\"` and `\"C-c\"`. An unknown key\nname is rejected. Acknowledgement does not prove the program consumed the\ninput.\n\n- Literal bytes: `send_text/4`, `send_text!/4`\n- Named keys: `send_keys/4`, `send_keys!/4`\n\n**Reading the screen.** Capture the rendered screen through one-shot\nexecution; a Control connection returns `unsupported_transport`. Output over\nthe byte limit is an error, never a partial screen. This reads screen state,\nnot the program's original output stream.\n\n- Capture: `capture/3`\n- Raise on failure: `capture!/3`\n\n**Killing.** Kill the pane through a Server. A Control connection returns\n`unsupported_transport`. Killing the last pane of a window removes the window.\n\n- Kill: `kill/3`\n- Raise on failure: `kill!/3`"},"source":{"file":"lib/libtmux/entities.ex","line":384,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane"},{"id":"LibTmux.Pane.id","publicId":"LibTmux.Pane.id","name":"id","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-id"},{"id":"LibTmux.Pane.server_instance","publicId":"LibTmux.Pane.server_instance","name":"server_instance","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-server_instance"},{"id":"LibTmux.Pane.window_id","publicId":"LibTmux.Pane.window_id","name":"window_id","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-window_id"},{"id":"LibTmux.Pane.index","publicId":"LibTmux.Pane.index","name":"index","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-index"},{"id":"LibTmux.Pane.active","publicId":"LibTmux.Pane.active","name":"active","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-active"},{"id":"LibTmux.Pane.dead","publicId":"LibTmux.Pane.dead","name":"dead","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-dead"},{"id":"LibTmux.Pane.width","publicId":"LibTmux.Pane.width","name":"width","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-width"},{"id":"LibTmux.Pane.height","publicId":"LibTmux.Pane.height","name":"height","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-height"},{"id":"LibTmux.Pane.pid","publicId":"LibTmux.Pane.pid","name":"pid","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer() | nil)","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-pid"},{"id":"LibTmux.Pane.current_command","publicId":"LibTmux.Pane.current_command","name":"current_command","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-current_command"},{"id":"LibTmux.Pane.current_path","publicId":"LibTmux.Pane.current_path","name":"current_path","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-current_path"},{"id":"LibTmux.Pane.title","publicId":"LibTmux.Pane.title","name":"title","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-title"},{"id":"LibTmux.Pane.exit_status","publicId":"LibTmux.Pane.exit_status","name":"exit_status","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer() | nil)","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-exit_status"},{"id":"LibTmux.Pane.t/0","publicId":"LibTmux.Pane.t/0","name":"t/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Pane{\n active: LibTmux.Schema.observed(boolean()),\n current_command:\n LibTmux.Schema.observed(String.t()),\n current_path: LibTmux.Schema.observed(String.t()),\n dead: LibTmux.Schema.observed(boolean()),\n exit_status:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n index: LibTmux.Schema.observed(non_neg_integer()),\n pid:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n server_instance: String.t(),\n title: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer()),\n window_id: LibTmux.Schema.observed(String.t())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Pane{\n active: LibTmux.Schema.observed(boolean()),\n current_command:\n LibTmux.Schema.observed(String.t()),\n current_path: LibTmux.Schema.observed(String.t()),\n dead: LibTmux.Schema.observed(boolean()),\n exit_status:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n index: LibTmux.Schema.observed(non_neg_integer()),\n pid:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n server_instance: String.t(),\n title: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer()),\n window_id: LibTmux.Schema.observed(String.t())\n }","doc":{"summary":"A physical pane; PID and exit status can be known absent, with separate coverage sentinels.","body":"`pid` is `nil` when tmux reports no PID. A reported PID or its absence does\nnot establish process liveness or cleanup."},"source":{"file":"lib/libtmux/entities.ex","line":449,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-t-0"},{"id":"LibTmux.Pane.split_value/0","publicId":"LibTmux.Pane.split_value/0","name":"split_value/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type split_value() :: %{\n id: String.t(),\n ref: LibTmux.Ref.t() | nil\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"split_value() :: %{\n id: String.t(),\n ref: LibTmux.Ref.t() | nil\n }","doc":{"summary":"A created pane ID; `ref` is bound for qualified control and `nil` for one-shot."},"source":{"file":"lib/libtmux/entities.ex","line":471,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split_value-0"},{"id":"LibTmux.Pane.split_option/0","publicId":"LibTmux.Pane.split_option/0","name":"split_option/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type split_option() ::\n LibTmux.Action.option()\n | {:axis, :horizontal | :vertical}\n | {:size, {:cells, 1..32767} | {:percent, 1..99}}\n | {:before | :detached, boolean()}\n | {:cwd, binary()}\n | {:command,\n :default\n | :empty\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"split_option() ::\n LibTmux.Action.option()\n | {:axis, :horizontal | :vertical}\n | {:size, {:cells, 1..32767} | {:percent, 1..99}}\n | {:before | :detached, boolean()}\n | {:cwd, binary()}\n | {:command,\n :default\n | :empty\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","doc":{"summary":"Split geometry and process arguments."},"source":{"file":"lib/libtmux/entities.ex","line":474,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split_option-0"},{"id":"LibTmux.Pane.capture_option/0","publicId":"LibTmux.Pane.capture_option/0","name":"capture_option/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type capture_option() ::\n LibTmux.Action.option()\n | {:start_line, -32768..32767}\n | {:end_line, -32768..32767 | :last}\n | {:join_lines, boolean()}\n | {:max_bytes, 0..1_048_576}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"capture_option() ::\n LibTmux.Action.option()\n | {:start_line, -32768..32767}\n | {:end_line, -32768..32767 | :last}\n | {:join_lines, boolean()}\n | {:max_bytes, 0..1_048_576}","doc":{"summary":"Bounded one-shot screen capture; line numbers are relative to the visible screen, with negative history offsets."},"source":{"file":"lib/libtmux/entities.ex","line":486,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-capture_option-0"},{"id":"LibTmux.Pane.split/3","publicId":"LibTmux.Pane.split/3","name":"split/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"split(connection, ref, options \\\\ [])\n@spec split(LibTmux.Action.connection(), LibTmux.Ref.t(), [\n split_option()\n ]) ::\n {:ok, LibTmux.Action.result(split_value())}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[split_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(split_value())} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Splits an exact pane and returns its ID and optional bound reference as `value`.","body":"A completed value contains `id` and `ref`. Qualified control binds the reference.\nUse it for another action without recapturing. It identifies the pane in\nthat server incarnation, contains no fresh fields and does not reserve its\nlifetime. Closing the connection does not invalidate the reference while\nthe pane and server remain. One-shot execution does not establish this\nbinding and returns `ref: nil`. Unsuccessful outcomes return\n`{:error, %LibTmux.Action.CompletionError{}}` with the original result.\n\nDefaults: vertical split, half size, detached, after the target, and tmux's\nsession default shell/command and directory. `axis: :horizontal` places panes\nside by side; `size: {:percent, n}` uses `-l n%` on every supported release.\nOptional `cwd` is literal format text. Choose `command: :default`, `:empty`,\n`{:shell, nonempty_bytes}` or `{:argv, [program | arguments]}`. Shell text\nuses the session's configured shell; argv uses `execvp` semantics, including\nPATH lookup and executable-text fallback. Empty argv/program and empty\nexplicit shell text are rejected. At most 64 argv entries and the existing\ncommand byte bounds apply; bytes must be NUL-free.\n\nSingleton argv uses the packaged helper to preserve exactly one argument.\nIt replaces itself with the pane program. tmux retains the helper path in\n`pane_start_command`; commandless respawn requires that installation to\nremain available. See [command forms](one-shot-actions.html#command-forms).\nSplit acknowledgement does not prove program startup or completion.\n\n`session: session_ref` selects exact membership/context, not a WindowLink\nindex. `timeout` defaults to 5000ms. No snapshot is changed; capture again\nwhen a new observation is needed. See `LibTmux.Action` for outcomes and the\none-shot identity check/use limitation.\n\n alias LibTmux.Pane\n\n {:ok, %{value: %{ref: created}}} =\n Pane.split(control, pane_ref, axis: :horizontal, size: {:percent, 30})\n Pane.send_text(control, created, \"hello\")"},"source":{"file":"lib/libtmux/entities.ex","line":494,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split-3"},{"id":"LibTmux.Pane.split!/3","publicId":"LibTmux.Pane.split!/3","name":"split!/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"split!(connection, ref, options \\\\ [])\n@spec split!(LibTmux.Action.connection(), LibTmux.Ref.t(), [\n split_option()\n ]) :: split_value()","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[split_option()]","default":"[]"}],"returns":"split_value()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the created pane value when `split/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":537,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split-bang-3"},{"id":"LibTmux.Pane.send_text/4","publicId":"LibTmux.Pane.send_text/4","name":"send_text/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_text(connection, ref, bytes, options \\\\ [])\n@spec send_text(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"bytes","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Sends 0..995 literal bytes to an exact pane, without interpreting key names.","body":"Hex-key encoding preserves NUL and invalid UTF-8. Empty input sends nothing.\nBoth transports use the same limit, fitting tmux 3.8's command argument\nceiling. Larger inputs fail validation before I/O; calls are never split.\nThe terminal's line discipline, active mode and application still determine\nhow input is handled; acknowledgement does not prove program consumption.\nOptions and outcomes follow `LibTmux.Action`. For named keys use `send_keys/4`.\n\n alias LibTmux.Pane\n\n Pane.send_text(control, pane_ref, \"printf 'hello'\")"},"source":{"file":"lib/libtmux/entities.ex","line":543,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_text-4"},{"id":"LibTmux.Pane.send_text!/4","publicId":"LibTmux.Pane.send_text!/4","name":"send_text!/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_text!(connection, ref, bytes, options \\\\ [])\n@spec send_text!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) ::\n :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"bytes","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `send_text/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":564,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_text-bang-4"},{"id":"LibTmux.Pane.send_keys/4","publicId":"LibTmux.Pane.send_keys/4","name":"send_keys/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_keys(connection, ref, keys, options \\\\ [])\n@spec send_keys(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [String.t()],\n [LibTmux.Action.option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"keys","type":"[String.t()]"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Sends 1..128 named keys to an exact pane; unknown names are rejected.","body":"Supports Enter, Space, Tab, BTab, BSpace, Escape, arrows, Home, End, PageUp,\nPageDown, Insert, Delete and F1..F12. Distinct C-, M- and S- modifiers may\nprefix arrows, Home/End, PageUp/PageDown, Insert/Delete and F1..F12. Also\naccepts C-a..C-z, conventional ASCII control punctuation, and M- plus one\nprintable ASCII character. Unsupported combinations such as S-a and C-Enter\nfail before admission; tmux could otherwise type their spelling as text.\nOptions and outcomes follow `LibTmux.Action`.\n\n alias LibTmux.Pane\n\n Pane.send_keys(control, pane_ref, [\"Enter\", \"C-c\"])"},"source":{"file":"lib/libtmux/entities.ex","line":571,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_keys-4"},{"id":"LibTmux.Pane.send_keys!/4","publicId":"LibTmux.Pane.send_keys!/4","name":"send_keys!/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_keys!(connection, ref, keys, options \\\\ [])\n@spec send_keys!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [String.t()],\n [LibTmux.Action.option()]\n ) ::\n :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"keys","type":"[String.t()]"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `send_keys/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":593,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_keys-bang-4"},{"id":"LibTmux.Pane.capture/3","publicId":"LibTmux.Pane.capture/3","name":"capture/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"capture(connection, ref, options \\\\ [])\n@spec capture(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [capture_option()]\n ) ::\n {:ok, LibTmux.Action.result(binary())}\n | {:error,\n LibTmux.Error.t()\n | LibTmux.Action.CompletionError.t()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[capture_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(binary())} | {:error, LibTmux.Error.t() | LibTmux.Action.CompletionError.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Captures bounded screen bytes through explicit one-shot execution.","body":"Returns `{:ok, result}` with bytes as `value` after acknowledged completion\nand native retirement. Failed commands return\n`{:error, %LibTmux.Action.CompletionError{}}` with their original evidence.\nDefaults: visible lines 0 through `:last`, no line joining, 65536 stdout\nbytes, 65536 stderr bytes and 5000ms. `:last` is accepted only for `end_line`.\nNegative line numbers include history;\ntmux clamps the requested range to available lines. Output overflow is an\nerror, never a successful partial screen. This observes rendered screen\nstate, not the program's original output stream.\n\nA Control argument returns `unsupported_transport`: arbitrary screen bytes\nare not qualified for shared control framing. No fallback occurs.\n\n alias LibTmux.Pane\n\n Pane.capture(server, pane_ref, start_line: -100, max_bytes: 131_072)"},"source":{"file":"lib/libtmux/entities.ex","line":600,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-capture-3"},{"id":"LibTmux.Pane.capture!/3","publicId":"LibTmux.Pane.capture!/3","name":"capture!/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"capture!(connection, ref, options \\\\ [])\n@spec capture!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [capture_option()]\n ) :: binary()","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[capture_option()]","default":"[]"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns screen bytes when `capture/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":626,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-capture-bang-3"},{"id":"LibTmux.Pane.kill/3","publicId":"LibTmux.Pane.kill/3","name":"kill/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"kill(connection, ref, options \\\\ [])\n@spec kill(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills an exact pane through one-shot execution.","body":"Returns `{:ok, result}` on command completion. Optional `session: session_ref` requires the pane's window to belong to that exact session and `timeout` defaults to 5000ms. The reference is\nchecked against the answering server before dispatch, with the usual one-shot\ncheck/use race. A reference to something that is already gone returns\n`{:error, %LibTmux.Action.CompletionError{}}` with the original evidence.\nControl connections return `unsupported_transport` before any I/O: a\nconnection cannot kill what it is attached to. Observations you already hold\nkeep describing the pane.\n\n alias LibTmux.Pane\n\n Pane.kill(server, pane_ref)"},"source":{"file":"lib/libtmux/entities.ex","line":632,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-kill-3"},{"id":"LibTmux.Pane.kill!/3","publicId":"LibTmux.Pane.kill!/3","name":"kill!/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(connection, ref, options \\\\ [])\n@spec kill!(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) :: :ok","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":652,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-kill-bang-3"},{"id":"LibTmux.Protocol","publicId":"LibTmux.Protocol","name":"Protocol","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Assembles bounded control-mode replies and lexical notifications from bytes.","body":"Reply guards retain timestamp, command number and flags. Inside a block,\nnotification-looking output stays data. The parser cannot authenticate\ninjected matching guards: shared lanes must separately qualify commands,\nhooks and subscription expansion. Notification payloads need semantic\nvalidation before they can update a graph.\n\nA parse error retains already completed events in `error.details.events`.\nIts owner must retire the lane rather than reuse the rejected state."},"source":{"file":"lib/libtmux/protocol.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol"},{"id":"LibTmux.Protocol.guard_id/0","publicId":"LibTmux.Protocol.guard_id/0","name":"guard_id/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type guard_id() ::\n {non_neg_integer(), non_neg_integer(),\n non_neg_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"guard_id() ::\n {non_neg_integer(), non_neg_integer(),\n non_neg_integer()}","doc":{"summary":"A complete tmux reply guard: timestamp, command number and flags, retained for correlation."},"source":{"file":"lib/libtmux/protocol.ex","line":53,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-guard_id-0"},{"id":"LibTmux.Protocol.event/0","publicId":"LibTmux.Protocol.event/0","name":"event/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type event() ::\n {:reply, :ok | :error, guard_id(), [binary()]}\n | {:notification, atom(), binary()}\n | {:unknown, binary()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"event() ::\n {:reply, :ok | :error, guard_id(), [binary()]}\n | {:notification, atom(), binary()}\n | {:unknown, binary()}","doc":{"summary":"A framed reply or lexical notification. Payloads still require semantic validation before graph updates."},"source":{"file":"lib/libtmux/protocol.ex","line":55,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-event-0"},{"id":"LibTmux.Protocol.t/0","publicId":"LibTmux.Protocol.t/0","name":"t/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Immutable parser carry and bounded in-flight frame state; discard it after any parse error."},"source":{"file":"lib/libtmux/protocol.ex","line":60,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-t-0"},{"id":"LibTmux.Protocol.option/0","publicId":"LibTmux.Protocol.option/0","name":"option/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:max_chunk_bytes\n | :max_line_bytes\n | :max_frame_bytes\n | :max_frame_lines\n | :max_events, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:max_chunk_bytes\n | :max_line_bytes\n | :max_frame_bytes\n | :max_frame_lines\n | :max_events, pos_integer()}","doc":{"summary":"A positive parser ceiling, measured in bytes, lines or emitted events as named."},"source":{"file":"lib/libtmux/protocol.ex","line":62,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-option-0"},{"id":"LibTmux.Protocol.new/1","publicId":"LibTmux.Protocol.new/1","name":"new/1","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"function","modifiers":[],"signatures":[{"raw":"new(options \\\\ [])\n@spec new([option()]) :: t()","params":[{"name":"options","type":"[option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a parser with positive byte, line and event limits.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/protocol.ex","line":67,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-new-1"},{"id":"LibTmux.Protocol.feed/2","publicId":"LibTmux.Protocol.feed/2","name":"feed/2","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"function","modifiers":[],"signatures":[{"raw":"feed(state, chunk)\n@spec feed(t(), binary()) ::\n {:ok, [event()], t()} | {:error, LibTmux.Error.t()}","params":[{"name":"state","type":"t()"},{"name":"chunk","type":"binary()"}],"returns":"{:ok, [event()], t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Consumes one byte chunk without performing I/O.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/protocol.ex","line":84,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-feed-2"},{"id":"LibTmux.Protocol.finish/1","publicId":"LibTmux.Protocol.finish/1","name":"finish/1","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"function","modifiers":[],"signatures":[{"raw":"finish(protocol)\n@spec finish(t()) :: :ok | {:error, LibTmux.Error.t()}","params":[{"name":"protocol","type":"t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Rejects a stream ending inside a line or reply block.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/protocol.ex","line":98,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-finish-1"},{"id":"LibTmux.Ref","publicId":"LibTmux.Ref","name":"Ref","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An exact observed target bound to one server instance.","body":"A window-link ID is its observed `{session_id, index, window_id}` binding,\nnot a unique lifetime identifier. Validation detects known stale instances;\nit does not reserve an object or close a one-shot check/use race."},"source":{"file":"lib/libtmux/ref.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref"},{"id":"LibTmux.Ref.entity","publicId":"LibTmux.Ref.entity","name":"entity","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"entity()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/ref.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-entity"},{"id":"LibTmux.Ref.id","publicId":"LibTmux.Ref.id","name":"id","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"id()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/ref.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-id"},{"id":"LibTmux.Ref.server_instance","publicId":"LibTmux.Ref.server_instance","name":"server_instance","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/ref.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-server_instance"},{"id":"LibTmux.Ref.entity/0","publicId":"LibTmux.Ref.entity/0","name":"entity/0","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity() ::\n :session | :window | :pane | :window_link | :client","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity() ::\n :session | :window | :pane | :window_link | :client","doc":{"summary":"The target kind; physical windows and session-relative links have different identities."},"source":{"file":"lib/libtmux/ref.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-entity-0"},{"id":"LibTmux.Ref.id/0","publicId":"LibTmux.Ref.id/0","name":"id/0","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type id() ::\n String.t()\n | {String.t(), non_neg_integer(), String.t()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"id() ::\n String.t()\n | {String.t(), non_neg_integer(), String.t()}","doc":{"summary":"A native ID or observed session/index/window link binding; neither reserves an object's lifetime."},"source":{"file":"lib/libtmux/ref.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-id-0"},{"id":"LibTmux.Ref.t/0","publicId":"LibTmux.Ref.t/0","name":"t/0","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Ref{\n entity: entity(),\n id: id(),\n server_instance: String.t()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Ref{\n entity: entity(),\n id: id(),\n server_instance: String.t()\n }","doc":{"summary":"An exact observed identity bound to a tmux server incarnation, separate from a connection epoch."},"source":{"file":"lib/libtmux/ref.ex","line":19,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-t-0"},{"id":"LibTmux.Ref.new/3","publicId":"LibTmux.Ref.new/3","name":"new/3","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"function","modifiers":[],"signatures":[{"raw":"new(entity, id, instance)\n@spec new(entity(), id(), String.t()) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"entity()"},{"name":"id","type":"id()"},{"name":"instance","type":"String.t()"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validates a native identity and binds it to a nonempty instance token.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/ref.ex","line":22,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-new-3"},{"id":"LibTmux.Ref.from_observation/1","publicId":"LibTmux.Ref.from_observation/1","name":"from_observation/1","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"function","modifiers":[],"signatures":[{"raw":"from_observation(arg1)\n@spec from_observation(LibTmux.Schema.observation()) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"arg1","type":"LibTmux.Schema.observation()"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Builds a reference from an observation's own identity and server instance.","body":"Validates the identity with `new/3` without I/O or a fresh observation.\nMalformed identities and other inputs return an `:invalid_target` error.\nOther captured fields may remain unloaded or unavailable. A reference does\nnot prove that its target still exists. Window links retain their tuple\nbinding and lifetime limitation; domain actions reject window-link refs.","examples":[{"lang":"elixir","code":"iex> pane = %LibTmux.Pane{id: \"%7\", server_instance: \"instance-a\"}\niex> {:ok, ref} = LibTmux.Ref.from_observation(pane)\niex> {ref.entity, ref.id, ref.server_instance}\n{:pane, \"%7\", \"instance-a\"}"}]},"source":{"file":"lib/libtmux/ref.ex","line":36,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-from_observation-1"},{"id":"LibTmux.Ref.validate/2","publicId":"LibTmux.Ref.validate/2","name":"validate/2","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"function","modifiers":[],"signatures":[{"raw":"validate(ref, instance)\n@spec validate(t(), String.t()) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"ref","type":"t()"},{"name":"instance","type":"String.t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Rejects malformed references and known server-instance mismatches.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/ref.ex","line":71,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-validate-2"},{"id":"LibTmux.Schema","publicId":"LibTmux.Schema","name":"Schema","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Defines observed fields, wire names and graph relations.","body":"The table is a semantic overlay on tmux 3.3 format variables. It drives\nobservation validation, portable filtering and reference generation. Empty text\nremains text; only explicitly nullable fields admit `nil`."},"source":{"file":"lib/libtmux/schema.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema"},{"id":"LibTmux.Schema.entity/0","publicId":"LibTmux.Schema.entity/0","name":"entity/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity() ::\n :session | :window | :window_link | :pane | :client","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity() ::\n :session | :window | :window_link | :pane | :client","doc":{"summary":"An entity's canonical local name. Physical windows and membership links are distinct."},"source":{"file":"lib/libtmux/schema.ex","line":10,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity-0"},{"id":"LibTmux.Schema.entity_module/0","publicId":"LibTmux.Schema.entity_module/0","name":"entity_module/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity_module() ::\n LibTmux.Session\n | LibTmux.Window\n | LibTmux.WindowLink\n | LibTmux.Pane\n | LibTmux.Client","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity_module() ::\n LibTmux.Session\n | LibTmux.Window\n | LibTmux.WindowLink\n | LibTmux.Pane\n | LibTmux.Client","doc":{"summary":"The observation struct modules accepted alongside canonical entity names."},"source":{"file":"lib/libtmux/schema.ex","line":13,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity_module-0"},{"id":"LibTmux.Schema.entity_selector/0","publicId":"LibTmux.Schema.entity_selector/0","name":"entity_selector/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity_selector() :: entity() | entity_module()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity_selector() :: entity() | entity_module()","doc":{"summary":"A canonical entity atom or its corresponding observation module."},"source":{"file":"lib/libtmux/schema.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity_selector-0"},{"id":"LibTmux.Schema.observed/1","publicId":"LibTmux.Schema.observed/1","name":"observed/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type observed(value) :: value | :unloaded | :unavailable","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"observed(value) :: value | :unloaded | :unavailable","doc":{"summary":"A known value, unloaded coverage, or an unavailable capability; nil belongs to the value type."},"source":{"file":"lib/libtmux/schema.ex","line":20,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-observed-1"},{"id":"LibTmux.Schema.observation/0","publicId":"LibTmux.Schema.observation/0","name":"observation/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type observation() ::\n LibTmux.Session.t()\n | LibTmux.Window.t()\n | LibTmux.WindowLink.t()\n | LibTmux.Pane.t()\n | LibTmux.Client.t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"observation() ::\n LibTmux.Session.t()\n | LibTmux.Window.t()\n | LibTmux.WindowLink.t()\n | LibTmux.Pane.t()\n | LibTmux.Client.t()","doc":{"summary":"One physical or contextual observation from a captured graph."},"source":{"file":"lib/libtmux/schema.ex","line":23,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-observation-0"},{"id":"LibTmux.Schema.value_type/0","publicId":"LibTmux.Schema.value_type/0","name":"value_type/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type value_type() ::\n :string\n | :integer\n | :nullable_integer\n | :boolean\n | {:id, entity()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"value_type() ::\n :string\n | :integer\n | :nullable_integer\n | :boolean\n | {:id, entity()}","doc":{"summary":"A field's validation category; integer fields use the schema's nonnegative 32-bit range."},"source":{"file":"lib/libtmux/schema.ex","line":31,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-value_type-0"},{"id":"LibTmux.Schema.field/0","publicId":"LibTmux.Schema.field/0","name":"field/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type field() :: %{\n name: atom(),\n wire: String.t(),\n format: String.t() | nil,\n type: value_type(),\n since: String.t(),\n nullable: boolean()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"field() :: %{\n name: atom(),\n wire: String.t(),\n format: String.t() | nil,\n type: value_type(),\n since: String.t(),\n nullable: boolean()\n }","doc":{"summary":"Field metadata shared by validation and documentation; nil format identifies a derived field."},"source":{"file":"lib/libtmux/schema.ex","line":33,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-field-0"},{"id":"LibTmux.Schema.relation/0","publicId":"LibTmux.Schema.relation/0","name":"relation/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type relation() :: {:one | :many, entity()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"relation() :: {:one | :many, entity()}","doc":{"summary":"The cardinality and target entity of one indexed graph relation."},"source":{"file":"lib/libtmux/schema.ex","line":42,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-relation-0"},{"id":"LibTmux.Schema.operator/0","publicId":"LibTmux.Schema.operator/0","name":"operator/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type operator() ::\n :equals\n | :not\n | :in\n | :not_in\n | :lt\n | :lte\n | :gt\n | :gte\n | :contains\n | :starts_with\n | :ends_with","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"operator() ::\n :equals\n | :not\n | :in\n | :not_in\n | :lt\n | :lte\n | :gt\n | :gte\n | :contains\n | :starts_with\n | :ends_with","doc":{"summary":"A scalar filter operator; each field category permits only its applicable subset."},"source":{"file":"lib/libtmux/schema.ex","line":44,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-operator-0"},{"id":"LibTmux.Schema.entities/0","publicId":"LibTmux.Schema.entities/0","name":"entities/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"entities()\n@spec entities() :: [entity()]","params":[],"returns":"[entity()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns supported entity names in a stable order.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":139,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entities-0"},{"id":"LibTmux.Schema.module/1","publicId":"LibTmux.Schema.module/1","name":"module/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"module(entity)\n@spec module(entity()) :: entity_module()","params":[{"name":"entity","type":"entity()"}],"returns":"entity_module()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the ordinary observation struct module for an entity.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":147,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-module-1"},{"id":"LibTmux.Schema.entity/1","publicId":"LibTmux.Schema.entity/1","name":"entity/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"entity(entity)\n@spec entity(entity_selector()) :: entity()","params":[{"name":"entity","type":"entity_selector()"}],"returns":"entity()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Resolves an entity atom or its observation module.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":155,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity-1"},{"id":"LibTmux.Schema.fields/1","publicId":"LibTmux.Schema.fields/1","name":"fields/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"fields(entity)\n@spec fields(entity_selector()) :: %{\n required(atom()) => field()\n }","params":[{"name":"entity","type":"entity_selector()"}],"returns":"%{required(atom()) => field()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the whitelisted field metadata for an entity.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":168,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-fields-1"},{"id":"LibTmux.Schema.field/2","publicId":"LibTmux.Schema.field/2","name":"field/2","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"field(entity, name)\n@spec field(entity_selector(), atom()) :: field() | nil","params":[{"name":"entity","type":"entity_selector()"},{"name":"name","type":"atom()"}],"returns":"field() | nil"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns field metadata, or nil for a field outside the schema.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":188,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-field-2"},{"id":"LibTmux.Schema.relations/1","publicId":"LibTmux.Schema.relations/1","name":"relations/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"relations(entity)\n@spec relations(entity_selector()) :: %{\n required(atom()) => relation()\n }","params":[{"name":"entity","type":"entity_selector()"}],"returns":"%{required(atom()) => relation()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns each relation's cardinality and target entity.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":196,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-relations-1"},{"id":"LibTmux.Schema.relation_wire/1","publicId":"LibTmux.Schema.relation_wire/1","name":"relation_wire/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"relation_wire(name)\n@spec relation_wire(atom()) :: String.t()","params":[{"name":"name","type":"atom()"}],"returns":"String.t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a relation's explicit stable wire name.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":204,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-relation_wire-1"},{"id":"LibTmux.Schema.operators/1","publicId":"LibTmux.Schema.operators/1","name":"operators/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"operators(map)\n@spec operators(field()) :: [operator()]","params":[{"name":"map","type":"field()"}],"returns":"[operator()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the portable operators allowed by a scalar field's value category.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":212,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-operators-1"},{"id":"LibTmux.Selection","publicId":"LibTmux.Selection","name":"Selection","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An ordered, materialized Enumerable over one captured entity type.","body":"Enumeration never refreshes or performs I/O. `where/2` accepts predicate\ndata; `filter/2` accepts unary Elixir functions with Enum truthiness.\nHolding a selection retains its snapshot graph. `Enum.to_list/1` projects\nordinary values when graph context is no longer needed."},"source":{"file":"lib/libtmux/selection.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection"},{"id":"LibTmux.Selection.t/1","publicId":"LibTmux.Selection.t/1","name":"t/1","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t(item)","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["item"],"doc":{"summary":"An ordered selection retaining items of one observation type and their originating snapshot."},"source":{"file":"lib/libtmux/selection.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-t-1"},{"id":"LibTmux.Selection.t/0","publicId":"LibTmux.Selection.t/0","name":"t/0","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: t(LibTmux.Schema.observation())","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: t(LibTmux.Schema.observation())","doc":{"summary":"A selection without a concrete observation type; use `t:t/1` to preserve item types."},"source":{"file":"lib/libtmux/selection.ex","line":22,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-t-0"},{"id":"LibTmux.Selection.new/2","publicId":"LibTmux.Selection.new/2","name":"new/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":["overload"],"signatures":[{"raw":"new(snapshot, entity)\n@spec new(\n LibTmux.Snapshot.t(),\n :session | LibTmux.Session\n ) :: t(LibTmux.Session.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":session | LibTmux.Session"}],"returns":"t(LibTmux.Session.t())"},{"raw":"new(snapshot, entity)\n@spec new(LibTmux.Snapshot.t(), :window | LibTmux.Window) ::\n t(LibTmux.Window.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":window | LibTmux.Window"}],"returns":"t(LibTmux.Window.t())"},{"raw":"new(snapshot, entity)\n@spec new(LibTmux.Snapshot.t(), :pane | LibTmux.Pane) ::\n t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":pane | LibTmux.Pane"}],"returns":"t(LibTmux.Pane.t())"},{"raw":"new(snapshot, entity)\n@spec new(\n LibTmux.Snapshot.t(),\n :window_link | LibTmux.WindowLink\n ) :: t(LibTmux.WindowLink.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":window_link | LibTmux.WindowLink"}],"returns":"t(LibTmux.WindowLink.t())"},{"raw":"new(snapshot, entity)\n@spec new(LibTmux.Snapshot.t(), :client | LibTmux.Client) ::\n t(LibTmux.Client.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":client | LibTmux.Client"}],"returns":"t(LibTmux.Client.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Materializes the observed items of an entity without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":25,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-new-2"},{"id":"LibTmux.Selection.size/1","publicId":"LibTmux.Selection.size/1","name":"size/1","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"size(selection)\n@spec size(t()) :: non_neg_integer()","params":[{"name":"selection","type":"t()"}],"returns":"non_neg_integer()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns cached materialized size in constant time.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":47,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-size-1"},{"id":"LibTmux.Selection.where/2","publicId":"LibTmux.Selection.where/2","name":"where/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"where(selection, criteria)\n@spec where(t(item), LibTmux.Filter.input()) :: t(item)\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()"}],"returns":"t(item)","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Filters validated data while retaining order and captured graph context.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot}\niex> rows = %{window: [%{id: \"@0\"}, %{id: \"@1\"}], pane: [\n...> %{id: \"%0\", window_id: \"@0\", active: true, current_command: \"bash\"},\n...> %{id: \"%1\", window_id: \"@0\", active: false, current_command: \"nvim\"},\n...> %{id: \"%2\", window_id: \"@1\", active: true, current_command: \"nvim\"}]}\niex> {:ok, snapshot} = Snapshot.new(rows,\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> complete: [:pane], fields: %{pane: [:window_id, :active, :current_command]})\niex> snapshot |> Snapshot.windows()\n...> |> Selection.where(panes: [some: [active: true, current_command: \"nvim\"]])\n...> |> Enum.map(& &1.id)\n[\"@1\"]","intro":"One pane must satisfy both conditions inside `some`. Window `@0` has an active shell and an inactive editor; only `@1` has an active editor. See [filtering](filtering.html#predicate-grammar) for the complete semantics."}]},"source":{"file":"lib/libtmux/selection.ex","line":55,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-where-2"},{"id":"LibTmux.Selection.filter/2","publicId":"LibTmux.Selection.filter/2","name":"filter/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"filter(selection, predicate)\n@spec filter(t(item), (item -> as_boolean(term()))) ::\n t(item)\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"predicate","type":"(item -> as_boolean(term()))"}],"returns":"t(item)","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Filters with a unary local function; normal predicate exceptions propagate.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":82,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-filter-2"},{"id":"LibTmux.Selection.member_id?/2","publicId":"LibTmux.Selection.member_id?/2","name":"member_id?/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"member_id?(selection, id)\n@spec member_id?(t(), LibTmux.Ref.id()) :: boolean()","params":[{"name":"selection","type":"t()"},{"name":"id","type":"LibTmux.Ref.id()"}],"returns":"boolean()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Checks native identity separately from Enumerable element membership.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":97,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-member_id-question-2"},{"id":"LibTmux.Selection.one/2","publicId":"LibTmux.Selection.one/2","name":"one/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one(selection, criteria \\\\ [])\n@spec one(t(item), LibTmux.Filter.input()) ::\n {:ok, item} | {:error, LibTmux.Error.t()}\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"{:ok, item} | {:error, LibTmux.Error.t()}","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns exactly one match, or a structured cardinality error; stops at the second match.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot}\niex> {:ok, snapshot} = Snapshot.new(%{pane: [%{id: \"%0\"}, %{id: \"%1\"}]},\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> fields: %{pane: [:id]})\niex> panes = Snapshot.panes(snapshot)\niex> {:ok, pane} = Selection.one(panes, id: \"%1\")\niex> pane.id\n\"%1\"\niex> {:error, error} = Selection.one(panes, id: \"%9\")\niex> error.kind\n:no_match\niex> {:error, error} = Selection.one(panes)\niex> error.kind\n:multiple_matches"}]},"source":{"file":"lib/libtmux/selection.ex","line":105,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one-2"},{"id":"LibTmux.Selection.one!/2","publicId":"LibTmux.Selection.one!/2","name":"one!/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one!(selection, criteria \\\\ [])\n@spec one!(t(item), LibTmux.Filter.input()) :: item\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"item","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns exactly one match or raises its cardinality error.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":129,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one-bang-2"},{"id":"LibTmux.Selection.one_or_nil/2","publicId":"LibTmux.Selection.one_or_nil/2","name":"one_or_nil/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one_or_nil(selection, criteria \\\\ [])\n@spec one_or_nil(t(item), LibTmux.Filter.input()) ::\n {:ok, item | nil} | {:error, LibTmux.Error.t()}\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"{:ok, item | nil} | {:error, LibTmux.Error.t()}","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns one match or nil; a second match remains an error.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot}\niex> {:ok, snapshot} = Snapshot.new(%{pane: [%{id: \"%0\"}, %{id: \"%1\"}]},\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> fields: %{pane: [:id]})\niex> panes = Snapshot.panes(snapshot)\niex> Selection.one_or_nil(panes, id: \"%9\")\n{:ok, nil}\niex> {:ok, pane} = Selection.one_or_nil(panes, id: \"%0\")\niex> pane.id\n\"%0\"\niex> {:error, error} = Selection.one_or_nil(panes)\niex> error.kind\n:multiple_matches"}]},"source":{"file":"lib/libtmux/selection.ex","line":137,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one_or_nil-2"},{"id":"LibTmux.Selection.one_or_nil!/2","publicId":"LibTmux.Selection.one_or_nil!/2","name":"one_or_nil!/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one_or_nil!(selection, criteria \\\\ [])\n@spec one_or_nil!(t(item), LibTmux.Filter.input()) ::\n item | nil\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"item | nil","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns one match or nil, raising on multiple matches.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":160,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one_or_nil-bang-2"},{"id":"LibTmux.Selection.exists?/2","publicId":"LibTmux.Selection.exists?/2","name":"exists?/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"exists?(selection, criteria \\\\ [])\n@spec exists?(t(), LibTmux.Filter.input()) :: boolean()","params":[{"name":"selection","type":"t()"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"boolean()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns true on the first matching observed item.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":168,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-exists-question-2"},{"id":"LibTmux.Selection.count/2","publicId":"LibTmux.Selection.count/2","name":"count/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"count(selection, criteria \\\\ [])\n@spec count(t(), LibTmux.Filter.input()) ::\n non_neg_integer()","params":[{"name":"selection","type":"t()"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"non_neg_integer()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Counts observed matching items; use size/1 for cached unfiltered size.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":177,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-count-2"},{"id":"LibTmux.Server","publicId":"LibTmux.Server","name":"Server","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Describes a local tmux server for capturing state and running commands.","body":"`new/1` takes an absolute `:executable` path. Use\n`System.find_executable/1` to resolve a name such as `\"tmux\"` through PATH\nbefore construction. The optional `:cwd` and `:env` default to the caller's\nworking directory and environment. Construction validates the path forms\nwithout checking that the executable or socket exists. A Server is an\nimmutable value; constructing one with `new/1` neither connects to tmux nor\nstarts it. Commands use `-N`, so a missing daemon is never started\nimplicitly. `start/1` and `with_owned/2` start a private server and return\na Server that `stop/2` can retire.\n\n## Choosing the server\n\n`new/1` picks the socket in this order, and the first rule that applies\nwins:\n\n1. `:socket`, an absolute socket path, passes `-S`.\n2. `:socket_name`, a socket name, passes `-L`. Pass at most one of\n `:socket` and `:socket_name`.\n3. The `LIBTMUX_SOCKET_PATH` variable passes `-S` with its path.\n4. The `LIBTMUX_SOCKET` variable passes `-L` with its name.\n5. Otherwise no socket is passed, and tmux chooses. It follows the server\n that `TMUX` names when `:env` has one, and otherwise uses its default\n socket: `default` in the `tmux-UID` directory of `TMUX_TMPDIR`, or of\n `/tmp`.\n\nAn explicit option ignores both variables, even an invalid one. When both\nvariables are set, the path wins, as `-S` does over `-L` in tmux. A variable\nthat is empty counts as unset, each one alone. The variables come from the\n`:env` option, which defaults to the caller's environment, so a Server built\nwith its own `:env` ignores the caller's variables. A set variable with an\ninvalid value raises `ArgumentError` that names the variable and never\nrepeats its value.\n\nThe choice is made once, in `new/1`, and `t:t/0` records it. A Server that\nchose a socket removes `TMUX` and `TMUX_PANE` from the environment it gives\ntmux, so a surrounding tmux session cannot redirect it. A Server that chose\nnone keeps both, for one-shot execution and for control connections alike,\nso a program run inside tmux reaches the server it runs in. Leave `TMUX` out\nof `:env` to send a Server with no socket to tmux's default socket instead.\n\n## What is on here\n\nServer describes the endpoint. In Elixir, observation, selection and action\nfunctions live in their own modules. Start with these groups:\n\n**Connecting.** Describe the server for one-shot commands, which do not attach\na client. Attach a control client to an existing session for the length of a\ncallback; the client closes afterwards. Run a control client under application\nsupervision. See the [managed control guide](managed-control.html) for\nconnection setup and the host's hook and command-alias requirements.\n\n- Describe: `new/1`\n- Attach for a callback: `LibTmux.Control.with_connection/2`\n- Supervise: `LibTmux.Control.start_link/1`, `LibTmux.Control.child_spec/1`\n\n**Owning a private server.** Start a tmux server in a private directory,\nwith no inherited `TMUX` or `TMUX_PANE`, and stop it when you are done.\n`with_owned/2` does both around a function, so a program needs no shell step\nto start or clean up tmux. The process that starts the server owns it, and the\nserver stops when that process exits. `stop/2` refuses a Server that\n`start/1` did not create; `kill/2` sends `kill-server` to any Server.\n\n- Start and stop around a function: `with_owned/2`\n- Start: `start/1`\n- Stop: `stop/2`\n- Kill any server: `kill/2`\n- Raise on failure: `kill!/2`\n\n**Finding one thing.** Capture a snapshot, then require one match or allow no\nmatch. Both reject multiple matches. Turn the chosen observation into a\nreference tied to the daemon that supplied it, ready for an action.\n\n- Capture: `snapshot/2`\n- Require one: `LibTmux.Selection.one/2`\n- Allow none: `LibTmux.Selection.one_or_nil/2`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Listing everything.** Capture sessions, physical windows, window links, panes\nand attached clients as a `LibTmux.Snapshot`. One accessor per kind returns a\nselection from that captured graph without contacting tmux again. Capture\nfailures return an error, not an empty server. Capture covers an interval\nrather than an atomic transaction; take another snapshot when fresh state is\nneeded.\n\n- Capture: `snapshot/2`\n- Select: `LibTmux.Snapshot.sessions/1`, `LibTmux.Snapshot.windows/1`,\n `LibTmux.Snapshot.window_links/1`, `LibTmux.Snapshot.panes/1`,\n `LibTmux.Snapshot.clients/1`\n\n**Querying things and getting around.** Select by criteria such as\n`active: true`, or by an Elixir function; selections work with `Enum` and\n`Stream`. Navigation functions use the supplied snapshot. Plural helpers return\nselections for further filtering; a `LibTmux.WindowLink` preserves a window's\nmembership in one session.\n\n- By criteria: `LibTmux.Selection.where/2`\n- By function: `LibTmux.Selection.filter/2`\n- Down: `LibTmux.Session.windows/2`, `LibTmux.Session.panes/2`,\n `LibTmux.Window.panes/2`\n- Focused: `LibTmux.Session.active_window/2`\n- Other relationships: `LibTmux.Snapshot.related/4`\n\n**Changing things.** Create detached sessions and windows on an existing server\nusing one-shot execution. Each returns the created ID with `ref: nil`; capture\na fresh observation to obtain a reference. Split a pane to create a pane and\nget its ID in the completed result. A qualified Control connection also\nsupplies a bound reference; one-shot split returns `ref: nil`. Rename a session\nor a window. Send literal bytes or named keys such as `\"Enter\"` to a pane.\nSplit, rename and input take a Server or Control connection followed by a\nreference. Domain bang variants return completed values or raise; nonbang\nvariants return `{:ok, result}` for completed commands and `{:error, error}`\notherwise. See the [action guide](one-shot-actions.html) and\n[recovery guide](recovery.html).\n\n- Create: `new_session/3`, `LibTmux.Session.new_window/4`\n- Split: `LibTmux.Pane.split/3`\n- Rename: `LibTmux.Session.rename/4`, `LibTmux.Window.rename/4`\n- Send literal bytes: `LibTmux.Pane.send_text/4`\n- Send named keys: `LibTmux.Pane.send_keys/4`\n\n**Reading screens, options and formats.** Capture pane screen bytes through\none-shot execution, which requires a Server. On a control connection, execute a\nrequest that reads a field or writes a server user option. Submit the request\nand keep the returned `LibTmux.Operation` when the result needs to remain\navailable for independent inspection.\n\n- Screen: `LibTmux.Pane.capture/3`\n- Execute: `LibTmux.Control.execute/3`\n- Read a field: `LibTmux.Control.Request.field/2`\n- Write a user option: `LibTmux.Control.Request.set_user_option/2`\n- Submit: `LibTmux.Control.submit/3`\n\n**Running any other command.** Build a command to run any other tmux command.\nRunning executes one command with literal arguments and returns bounded output\nand exit evidence. Configured server hooks can still run. Targeted one-shot\nactions check the observed server identity before writing, leaving a race if\nthe daemon is replaced between that check and the command. Use a qualified\nControl connection for mutations bound to one daemon instance.\n\n- Build: `LibTmux.Command.new/2`\n- Run: `run/3`"},"source":{"file":"lib/libtmux/server.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server"},{"id":"LibTmux.Server.executable","publicId":"LibTmux.Server.executable","name":"executable","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-executable"},{"id":"LibTmux.Server.socket","publicId":"LibTmux.Server.socket","name":"socket","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t() | nil","value":"nil","source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-socket"},{"id":"LibTmux.Server.socket_name","publicId":"LibTmux.Server.socket_name","name":"socket_name","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t() | nil","value":"nil","source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-socket_name"},{"id":"LibTmux.Server.cwd","publicId":"LibTmux.Server.cwd","name":"cwd","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-cwd"},{"id":"LibTmux.Server.env","publicId":"LibTmux.Server.env","name":"env","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(binary()) => binary()}","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-env"},{"id":"LibTmux.Server.daemon","publicId":"LibTmux.Server.daemon","name":"daemon","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"pid() | nil","value":"nil","source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-daemon"},{"id":"LibTmux.Server.t/0","publicId":"LibTmux.Server.t/0","name":"t/0","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Server{\n cwd: String.t(),\n daemon: pid() | nil,\n env: %{optional(binary()) => binary()},\n executable: String.t(),\n socket: String.t() | nil,\n socket_name: String.t() | nil\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Server{\n cwd: String.t(),\n daemon: pid() | nil,\n env: %{optional(binary()) => binary()},\n executable: String.t(),\n socket: String.t() | nil,\n socket_name: String.t() | nil\n }","doc":{"summary":"A local server descriptor; constructing it neither connects nor reserves server identity.","body":"At most one of `:socket` and `:socket_name` is set. Both are `nil` when tmux\nchooses its default socket. `daemon` names the process that owns a server\ncreated by `start/1`, and is `nil` for every other Server."},"source":{"file":"lib/libtmux/server.ex","line":204,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-t-0"},{"id":"LibTmux.Server.option/0","publicId":"LibTmux.Server.option/0","name":"option/0","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:executable | :socket | :socket_name | :cwd,\n String.t()}\n | {:env, %{optional(binary()) => binary()}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:executable | :socket | :socket_name | :cwd,\n String.t()}\n | {:env, %{optional(binary()) => binary()}}","doc":{"summary":"Descriptor inputs.","body":"The executable, `:socket` and cwd are absolute NUL-free paths. `:socket_name`\nis a single file name without a slash or NUL that is not `.` or `..`."},"source":{"file":"lib/libtmux/server.ex","line":219,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-option-0"},{"id":"LibTmux.Server.new/1","publicId":"LibTmux.Server.new/1","name":"new/1","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"new(options)\n@spec new([option()]) :: t()","params":[{"name":"options","type":"[option()]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a descriptor for an existing server without connecting or creating it.","body":"`:socket` selects the socket by path and `:socket_name` by name; pass at most\none. With neither, the descriptor reads `LIBTMUX_SOCKET_PATH`, then\n`LIBTMUX_SOCKET`, from `:env`, and selects no socket when neither is set, so\ntmux uses its default. See \"Choosing the server\" in the module\ndocumentation. Raises `ArgumentError` for conflicting or invalid input,\nnaming a variable but never its value.\n\nSee the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/server.ex","line":229,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-new-1"},{"id":"LibTmux.Server.start_option/0","publicId":"LibTmux.Server.start_option/0","name":"start_option/0","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type start_option() ::\n {:executable, String.t()}\n | {:root, String.t()}\n | {:config_file, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:timeout, 1..600_000}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"start_option() ::\n {:executable, String.t()}\n | {:root, String.t()}\n | {:config_file, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:timeout, 1..600_000}","doc":{"summary":"Inputs for `start/1`.","body":"`:executable` is required. `:root` is the directory that holds the private\ndirectory and defaults to `System.tmp_dir!/0`. `:config_file` defaults to\n`\"/dev/null\"`. `:env` overlays the daemon's environment; `TMUX` and\n`TMUX_PANE` never reach it. `:timeout` bounds startup, in milliseconds."},"source":{"file":"lib/libtmux/server.ex","line":312,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-start_option-0"},{"id":"LibTmux.Server.start/1","publicId":"LibTmux.Server.start/1","name":"start/1","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"start(options)\n@spec start([start_option()]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"options","type":"[start_option()]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Starts a private tmux server and returns a Server for it.","body":"The server runs in the foreground under libtmux's native helper, in a\ndirectory of its own below `:root`: the directory has mode 700, holds the\nsocket and is `TMUX_TMPDIR` for the daemon and its panes. The daemon never\ninherits `TMUX` or `TMUX_PANE`, reads `:config_file` (an empty file by\ndefault), and stays up with no session. `start/1` returns when the socket\nanswers, or when `:timeout` (5000 ms by default) ends.\n\nThe process that calls `start/1` owns the server. When it exits, the daemon\nstops and its directory is removed. If the VM is killed, the native helper\nstill retires the daemon, but the directory stays. Other processes may use\nthe returned Server. Stop it with `stop/2` as soon as the work is done, or\nuse `with_owned/2`.\n\nReturns `{:error, error}` for an invalid option, a socket path that would\nexceed the 107 usable bytes of `sun_path`, a daemon that cannot start or\nexits before it answers, and a timeout. A failed start leaves no directory\nbehind. It starts only on Linux, like the rest of libtmux.\n\n alias LibTmux.Server\n\n {:ok, server} = Server.start(executable: System.find_executable(\"tmux\"))\n {:ok, _} = Server.new_session(server, \"demo\", command: {:argv, [\"/bin/cat\"]})\n :ok = Server.stop(server)"},"source":{"file":"lib/libtmux/server.ex","line":327,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-start-1"},{"id":"LibTmux.Server.stop/2","publicId":"LibTmux.Server.stop/2","name":"stop/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"stop(server, options \\\\ [])\n@spec stop(t(), [{:timeout, 1..600_000}]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"t()"},{"name":"options","type":"[{:timeout, 1..600_000}]","default":"[]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Stops a server that `start/1` created and removes its directory.","body":"Sends `kill-server`, waits until the native helper proves that the daemon\nhas exited, and removes the directory. Stopping a server\nthat already stopped returns `:ok`. If the daemon still answers when\n`:timeout` (5000 ms by default) ends, or the directory cannot be removed,\nit returns `{:error, error}` and keeps the directory; call it again to\nretry.\n\nReturns `{:error, error}` with kind `:not_owned` for a Server that `new/1`\nbuilt or that another process started and already stopped."},"source":{"file":"lib/libtmux/server.ex","line":357,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-stop-2"},{"id":"LibTmux.Server.with_owned/2","publicId":"LibTmux.Server.with_owned/2","name":"with_owned/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"with_owned(options, fun)\n@spec with_owned([start_option()], (t() -> result)) ::\n result\n when result: term()","params":[{"name":"options","type":"[start_option()]"},{"name":"fun","type":"(t() -> result)"}],"returns":"result","typeParams":["result: term()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Starts a private server, calls `fun` with it and stops it afterwards.","body":"Takes the options of `start/1`. Returns the value of `fun`. A start failure\nraises its `LibTmux.Error` before `fun` runs. The server stops when `fun`\nreturns, raises, throws or exits. If `fun` completes and the stop fails,\n`with_owned/2` raises the stop error; a failing stop never replaces an\nexception from `fun`.\n\n alias LibTmux.Server\n\n Server.with_owned([executable: System.find_executable(\"tmux\")], fn server ->\n {:ok, _} = Server.new_session(server, \"demo\", command: {:argv, [\"/bin/cat\"]})\n Server.snapshot!(server)\n end)"},"source":{"file":"lib/libtmux/server.ex","line":381,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-with_owned-2"},{"id":"LibTmux.Server.kill/2","publicId":"LibTmux.Server.kill/2","name":"kill/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"kill(server, options \\\\ [])\n@spec kill(t(), [LibTmux.Action.option()]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills the server with `kill-server`, whoever started it.","body":"Returns `{:ok, result}` when tmux acknowledges the command and\n`{:error, error}` otherwise, for example when no server answers. The\ncommand ends every session and pane on the server. It does not remove the\ndirectory of a server from `start/1`; use `stop/2` for that. The only\noption is `timeout` (5000 ms by default). See `LibTmux.Action` for outcomes.\n\n alias LibTmux.Server\n\n Server.kill(server)"},"source":{"file":"lib/libtmux/server.ex","line":421,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-kill-2"},{"id":"LibTmux.Server.kill!/2","publicId":"LibTmux.Server.kill!/2","name":"kill!/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(server, options \\\\ [])\n@spec kill!(t(), [LibTmux.Action.option()]) :: :ok","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/2` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/server.ex","line":439,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-kill-bang-2"},{"id":"LibTmux.Server.new_session/3","publicId":"LibTmux.Server.new_session/3","name":"new_session/3","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"new_session(server, name, options \\\\ [])\n@spec new_session(t(), binary(), [\n LibTmux.Action.creation_option()\n ]) ::\n {:ok,\n LibTmux.Action.result(\n LibTmux.Action.creation_value()\n )}\n | {:error, LibTmux.Action.error()}","params":[{"name":"server","type":"t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(LibTmux.Action.creation_value())} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Creates a named detached session on an existing server through one-shot execution.","body":"Returns `{:ok, result}` on completion, with `%{id: session_id, ref: nil}`\nas its value. Capture a fresh observation for a bound reference. There is\nno observed target to validate; this command acts on the server answering\nat the descriptor's endpoint. It never starts a missing server. A missing\nendpoint or duplicate session name returns an error with execution evidence.\nControl connections are unsupported.\n\nNames contain 1..1024 UTF-8 bytes without control characters. Format syntax\nstays literal; tmux's version-dependent name normalization still applies.\nOptions are `timeout` (5000ms), literal `cwd`, and `command`: `:default`,\n`{:shell, nonempty_bytes}` or `{:argv, [program | arguments]}`. Command forms\nfollow `LibTmux.Pane.split/3`, except `:empty` is unsupported for creation.\nAcknowledgement does not prove that the program started or finished.\nSee `LibTmux.Action` for completion and failure handling.\n\n alias LibTmux.Server\n\n Server.new_session(server, \"extra-work\", command: {:argv, [\"/bin/cat\"]})"},"source":{"file":"lib/libtmux/server.ex","line":443,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-new_session-3"},{"id":"LibTmux.Server.new_session!/3","publicId":"LibTmux.Server.new_session!/3","name":"new_session!/3","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"new_session!(server, name, options \\\\ [])\n@spec new_session!(t(), binary(), [\n LibTmux.Action.creation_option()\n ]) :: LibTmux.Action.creation_value()","params":[{"name":"server","type":"t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"LibTmux.Action.creation_value()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the created session value when `new_session/3` completes; raises the original error otherwise."},"source":{"file":"lib/libtmux/server.ex","line":471,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-new_session-bang-3"},{"id":"LibTmux.Server.run/3","publicId":"LibTmux.Server.run/3","name":"run/3","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"run(server, command, options \\\\ [])\n@spec run(t(), LibTmux.Command.t(), [\n LibTmux.Transport.OneShot.option()\n ]) ::\n {:ok, LibTmux.Transport.OneShot.result()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"t()"},{"name":"command","type":"LibTmux.Command.t()"},{"name":"options","type":"[LibTmux.Transport.OneShot.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Transport.OneShot.result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs one trusted command without attaching; returns bounded output and exit evidence.","body":"The options are those of `LibTmux.Transport.OneShot.run/3`, except\n`:keep_tmux_context`: the Server decides it from its socket, and a value\npassed here is ignored. Raises `ArgumentError` for a Server built by hand\nwhose `socket` or `socket_name` is not `nil` or a string, or that sets both.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/server.ex","line":477,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-run-3"},{"id":"LibTmux.Server.snapshot/2","publicId":"LibTmux.Server.snapshot/2","name":"snapshot/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"snapshot(server, options \\\\ [])\n@spec snapshot(t(), [LibTmux.Capture.option()]) ::\n {:ok, LibTmux.Snapshot.t()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Capture.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Snapshot.t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Captures a new graph explicitly, with bounded work and read retries.","body":"See the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/server.ex","line":553,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-snapshot-2"},{"id":"LibTmux.Server.snapshot!/2","publicId":"LibTmux.Server.snapshot!/2","name":"snapshot!/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"snapshot!(server, options \\\\ [])\n@spec snapshot!(t(), [LibTmux.Capture.option()]) ::\n LibTmux.Snapshot.t()","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Capture.option()]","default":"[]"}],"returns":"LibTmux.Snapshot.t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Captures a graph or raises the same structured capture error.","body":"See the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/server.ex","line":561,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-snapshot-bang-2"},{"id":"LibTmux.Session","publicId":"LibTmux.Session","name":"Session","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable session observation with explicit actions. Attachment retains tmux's client count.","body":"## What is on here\n\nA Session is a value captured in a `LibTmux.Snapshot`. Relationship functions\nread the snapshot you pass; actions take a `LibTmux.Ref` and a Server or\nControl connection. Start with these groups:\n\n**Finding the session.** Select sessions from a captured snapshot, or look one\nup by its exact ID. Neither contacts tmux. An ID that was not captured returns\n`{:error, error}` with kind `:not_found`. Turn the session into a reference\ntied to the server incarnation that supplied it, ready for an action.\n\n- Select: `LibTmux.Snapshot.sessions/1`\n- By ID: `LibTmux.Snapshot.fetch/3`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Looking inside a session.** Read windows, panes and the active window from the\nsnapshot, without I/O. A window linked more than once appears once, and a\ncovered empty relation returns an empty selection. An invalid or stale\nidentity, or a relationship the snapshot did not capture, raises\n`LibTmux.Error`. For per-session window indexes use `LibTmux.Snapshot.related/4`\nwith `:window_links`.\n\n- Windows: `windows/2`\n- Panes: `panes/2`\n- Focused: `active_window/2`\n\n**Creating a window.** Create a named detached window in the session through\none-shot execution. The completed value holds the new ID with `ref: nil`;\ncapture a fresh observation to obtain a reference. A Control connection is\nunsupported, and a missing server is not started.\n\n- Create: `new_window/4`\n- Raise on failure: `new_window!/4`\n\n**Renaming.** Rename the session through a Server or a Control connection.\nA name holds 1..1024 UTF-8 bytes with no control characters, and tmux still\nnormalizes it. Observations you already hold keep the old name.\n\n- Rename: `rename/4`\n- Raise on failure: `rename!/4`\n\n**Killing.** Kill the session and the windows and panes only it holds,\nthrough a Server. A Control connection returns `unsupported_transport`.\nKilling the last session ends a server that exits when empty.\n\n- Kill: `kill/3`\n- Raise on failure: `kill!/3`"},"source":{"file":"lib/libtmux/entities.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session"},{"id":"LibTmux.Session.id","publicId":"LibTmux.Session.id","name":"id","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-id"},{"id":"LibTmux.Session.server_instance","publicId":"LibTmux.Session.server_instance","name":"server_instance","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-server_instance"},{"id":"LibTmux.Session.name","publicId":"LibTmux.Session.name","name":"name","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-name"},{"id":"LibTmux.Session.attached_count","publicId":"LibTmux.Session.attached_count","name":"attached_count","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-attached_count"},{"id":"LibTmux.Session.attached","publicId":"LibTmux.Session.attached","name":"attached","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-attached"},{"id":"LibTmux.Session.t/0","publicId":"LibTmux.Session.t/0","name":"t/0","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Session{\n attached: LibTmux.Schema.observed(boolean()),\n attached_count:\n LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Session{\n attached: LibTmux.Schema.observed(boolean()),\n attached_count:\n LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t()\n }","doc":{"summary":"A session with explicit field coverage and an attachment count separate from its Boolean projection."},"source":{"file":"lib/libtmux/entities.ex","line":62,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-t-0"},{"id":"LibTmux.Session.windows/2","publicId":"LibTmux.Session.windows/2","name":"windows/2","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"windows(snapshot, session)\n@spec windows(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Selection.t(LibTmux.Window.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"session","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Window.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a selection of captured physical windows in first-link order.","body":"Repeated links to a window contribute it once. For membership indexes use\n`LibTmux.Snapshot.related/4` with `:window_links`.\n\nThe supplied snapshot owns all returned fields and relationships. Only the\nsession's ID and incarnation are used; its other fields may be older.\nInvalid or stale identities and missing source/relationship coverage raise\n`LibTmux.Error`. A covered empty relation returns an empty selection.\nNo I/O occurs. The selection retains the supplied snapshot for filtering;\nrelationship predicates still validate their whole captured source domain.\nUse `Enum.to_list/1` when only the list is needed.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Session, Snapshot}\niex> rows = %{session: [%{id: \"$0\"}], window: [%{id: \"@7\"}],\n...> window_link: [%{session_id: \"$0\", window_id: \"@7\", index: 0, active: true},\n...> %{session_id: \"$0\", window_id: \"@7\", index: 3, active: false}],\n...> pane: [%{id: \"%9\", window_id: \"@7\"}]}\niex> {:ok, snapshot} = Snapshot.new(rows,\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> complete: [:window_link, :pane],\n...> fields: %{window_link: [:session_id, :window_id, :active], pane: [:window_id]})\niex> {:ok, session} = Snapshot.fetch(snapshot, :session, \"$0\")\niex> {:ok, window} = Session.windows(snapshot, session) |> Selection.one()\niex> window.id\n\"@7\"\niex> Session.panes(snapshot, session) |> Enum.map(& &1.id)\n[\"%9\"]\niex> Session.active_window(snapshot, session) == window\ntrue"}]},"source":{"file":"lib/libtmux/entities.ex","line":71,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-windows-2"},{"id":"LibTmux.Session.panes/2","publicId":"LibTmux.Session.panes/2","name":"panes/2","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"panes(snapshot, session)\n@spec panes(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Selection.t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"session","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Pane.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a selection of captured physical panes in numeric pane-ID order.","body":"Linked windows contribute their panes once. Identity, coverage, empty-selection\nand no-I/O behavior follow `windows/2`, which includes a worked example."},"source":{"file":"lib/libtmux/entities.ex","line":109,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-panes-2"},{"id":"LibTmux.Session.active_window/2","publicId":"LibTmux.Session.active_window/2","name":"active_window/2","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"active_window(snapshot, session)\n@spec active_window(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Window.t() | nil","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"session","type":"t()"}],"returns":"LibTmux.Window.t() | nil"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the captured active physical window, or `nil` when none is active.","body":"Multiple active links raise `LibTmux.Error`, even when they name the same\nwindow. Unrelated sessions do not affect this lookup. Identity, coverage\nand no-I/O behavior follow `windows/2`, which includes a worked example."},"source":{"file":"lib/libtmux/entities.ex","line":119,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-active_window-2"},{"id":"LibTmux.Session.new_window/4","publicId":"LibTmux.Session.new_window/4","name":"new_window/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"new_window(server, ref, name, options \\\\ [])\n@spec new_window(\n LibTmux.Server.t(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.creation_option()]\n ) ::\n {:ok,\n LibTmux.Action.result(\n LibTmux.Action.creation_value()\n )}\n | {:error, LibTmux.Action.error()}","params":[{"name":"server","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(LibTmux.Action.creation_value())} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Creates a named detached window in an exact session through one-shot execution.","body":"Returns `{:ok, result}` on completion, with `%{id: window_id, ref: nil}`\nas its value. Capture a fresh observation for a bound reference. The session\nreference is checked against the answering server before dispatch, with\nthe usual one-shot check/use race. Missing servers are not started.\nControl connections are unsupported. tmux permits duplicate window names.\n\nNames, `timeout`, `cwd` and explicit `command` forms follow\n`LibTmux.Server.new_session/3`. The new window uses tmux's next available\nindex in this session. Existing observations remain unchanged.\n\n alias LibTmux.Session\n\n Session.new_window(server, session_ref, \"logs\", command: {:argv, [\"/bin/cat\"]})"},"source":{"file":"lib/libtmux/entities.ex","line":130,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-new_window-4"},{"id":"LibTmux.Session.new_window!/4","publicId":"LibTmux.Session.new_window!/4","name":"new_window!/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"new_window!(server, ref, name, options \\\\ [])\n@spec new_window!(\n LibTmux.Server.t(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.creation_option()]\n ) ::\n LibTmux.Action.creation_value()","params":[{"name":"server","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"LibTmux.Action.creation_value()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the created window value when `new_window/4` completes; raises the original error otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":155,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-new_window-bang-4"},{"id":"LibTmux.Session.rename/4","publicId":"LibTmux.Session.rename/4","name":"rename/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"rename(connection, ref, name, options \\\\ [])\n@spec rename(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Control.call_option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Control.call_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Renames an exact session; returns `{:ok, result}` on command completion.","body":"Names contain 1..1024 UTF-8 bytes without Unicode control characters (Cc).\nFormat syntax remains literal;\ntmux still normalizes names (including dollar/backslash escaping, and dots\nand colons on older releases). The only option is `timeout`, which defaults\nto 5000ms.\nOld observations stay unchanged. See `LibTmux.Action` for outcome semantics.\n\n alias LibTmux.Session\n\n Session.rename(server, session_ref, \"work\")"},"source":{"file":"lib/libtmux/entities.ex","line":163,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-rename-4"},{"id":"LibTmux.Session.rename!/4","publicId":"LibTmux.Session.rename!/4","name":"rename!/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"rename!(connection, ref, name, options \\\\ [])\n@spec rename!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Control.call_option()]\n ) ::\n :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Control.call_option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `rename/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":184,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-rename-bang-4"},{"id":"LibTmux.Session.kill/3","publicId":"LibTmux.Session.kill/3","name":"kill/3","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"kill(connection, ref, options \\\\ [])\n@spec kill(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills an exact session through one-shot execution.","body":"Returns `{:ok, result}` on command completion. The only option is `timeout`, 5000ms by default. The reference is\nchecked against the answering server before dispatch, with the usual one-shot\ncheck/use race. A reference to something that is already gone returns\n`{:error, %LibTmux.Action.CompletionError{}}` with the original evidence.\nControl connections return `unsupported_transport` before any I/O: a\nconnection cannot kill what it is attached to. Observations you already hold\nkeep describing the session.\n\n alias LibTmux.Session\n\n Session.kill(server, session_ref)"},"source":{"file":"lib/libtmux/entities.ex","line":191,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-kill-3"},{"id":"LibTmux.Session.kill!/3","publicId":"LibTmux.Session.kill!/3","name":"kill!/3","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(connection, ref, options \\\\ [])\n@spec kill!(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) :: :ok","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":211,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-kill-bang-3"},{"id":"LibTmux.Snapshot","publicId":"LibTmux.Snapshot","name":"Snapshot","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An indexed immutable graph observed over a capture interval.","body":"Construction and traversal perform no I/O. `fields` declares loaded fields\nover the supplied entity IDs; `complete` declares complete server entity\nsets. Missing declarations remain unloaded, including on empty sets.\nUnavailable capabilities use a separate declaration. Relations require\ncomplete join domains. A snapshot reserves no tmux objects."},"source":{"file":"lib/libtmux/snapshot.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot"},{"id":"LibTmux.Snapshot.id","publicId":"LibTmux.Snapshot.id","name":"id","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"pos_integer()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-id"},{"id":"LibTmux.Snapshot.server_instance","publicId":"LibTmux.Snapshot.server_instance","name":"server_instance","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-server_instance"},{"id":"LibTmux.Snapshot.captured_from","publicId":"LibTmux.Snapshot.captured_from","name":"captured_from","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"integer()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-captured_from"},{"id":"LibTmux.Snapshot.captured_until","publicId":"LibTmux.Snapshot.captured_until","name":"captured_until","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"integer()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-captured_until"},{"id":"LibTmux.Snapshot.coverage","publicId":"LibTmux.Snapshot.coverage","name":"coverage","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"coverage()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-coverage"},{"id":"LibTmux.Snapshot.schema_version","publicId":"LibTmux.Snapshot.schema_version","name":"schema_version","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"1","value":"1","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-schema_version"},{"id":"LibTmux.Snapshot.sessions","publicId":"LibTmux.Snapshot.sessions","name":"sessions","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Session.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-sessions"},{"id":"LibTmux.Snapshot.windows","publicId":"LibTmux.Snapshot.windows","name":"windows","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Window.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-windows"},{"id":"LibTmux.Snapshot.window_links","publicId":"LibTmux.Snapshot.window_links","name":"window_links","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(LibTmux.Ref.id()) => LibTmux.WindowLink.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-window_links"},{"id":"LibTmux.Snapshot.panes","publicId":"LibTmux.Snapshot.panes","name":"panes","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Pane.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-panes"},{"id":"LibTmux.Snapshot.clients","publicId":"LibTmux.Snapshot.clients","name":"clients","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Client.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-clients"},{"id":"LibTmux.Snapshot.order","publicId":"LibTmux.Snapshot.order","name":"order","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{required(LibTmux.Schema.entity()) => [LibTmux.Ref.id()]}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-order"},{"id":"LibTmux.Snapshot.indexes","publicId":"LibTmux.Snapshot.indexes","name":"indexes","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"indexes()","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-indexes"},{"id":"LibTmux.Snapshot.entity_coverage/0","publicId":"LibTmux.Snapshot.entity_coverage/0","name":"entity_coverage/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity_coverage() :: %{\n ids: MapSet.t(LibTmux.Ref.id()),\n complete: boolean(),\n fields: %{\n optional(atom()) => :loaded | :unavailable\n }\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity_coverage() :: %{\n ids: MapSet.t(LibTmux.Ref.id()),\n complete: boolean(),\n fields: %{\n optional(atom()) => :loaded | :unavailable\n }\n }","doc":{"summary":"Coverage of one captured entity domain; missing field entries are unloaded."},"source":{"file":"lib/libtmux/snapshot.ex","line":43,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-entity_coverage-0"},{"id":"LibTmux.Snapshot.coverage/0","publicId":"LibTmux.Snapshot.coverage/0","name":"coverage/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type coverage() :: %{\n entities: %{\n required(LibTmux.Schema.entity()) =>\n entity_coverage()\n }\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"coverage() :: %{\n entities: %{\n required(LibTmux.Schema.entity()) =>\n entity_coverage()\n }\n }","doc":{"summary":"Declared entity sets and field availability; completeness is separate from an empty captured set."},"source":{"file":"lib/libtmux/snapshot.ex","line":49,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-coverage-0"},{"id":"LibTmux.Snapshot.indexes/0","publicId":"LibTmux.Snapshot.indexes/0","name":"indexes/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque indexes()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Maps each session ID to the IDs of its window links and clients, and each window ID to the IDs of its window links and panes. Traverse with `related/4`; the layout is not part of the contract."},"source":{"file":"lib/libtmux/snapshot.ex","line":51,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-indexes-0"},{"id":"LibTmux.Snapshot.rows/0","publicId":"LibTmux.Snapshot.rows/0","name":"rows/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type rows() :: %{\n optional(LibTmux.Schema.entity()) => [\n map() | LibTmux.Schema.observation()\n ]\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"rows() :: %{\n optional(LibTmux.Schema.entity()) => [\n map() | LibTmux.Schema.observation()\n ]\n }","doc":{"summary":"Observed rows grouped by canonical entity; construction validates and deduplicates their identities."},"source":{"file":"lib/libtmux/snapshot.ex","line":58,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-rows-0"},{"id":"LibTmux.Snapshot.option/0","publicId":"LibTmux.Snapshot.option/0","name":"option/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:server_instance, String.t()}\n | {:captured_from, integer()}\n | {:captured_until, integer()}\n | {:fields,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}\n | {:complete, [LibTmux.Schema.entity()]}\n | {:unavailable,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:server_instance, String.t()}\n | {:captured_from, integer()}\n | {:captured_until, integer()}\n | {:fields,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}\n | {:complete, [LibTmux.Schema.entity()]}\n | {:unavailable,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}","doc":{"summary":"Construction metadata: one server instance, ordered millisecond timestamps and explicit coverage declarations."},"source":{"file":"lib/libtmux/snapshot.ex","line":60,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-option-0"},{"id":"LibTmux.Snapshot.t/0","publicId":"LibTmux.Snapshot.t/0","name":"t/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Snapshot{\n captured_from: integer(),\n captured_until: integer(),\n clients: %{\n optional(String.t()) => LibTmux.Client.t()\n },\n coverage: coverage(),\n id: pos_integer(),\n indexes: indexes(),\n order: %{\n required(LibTmux.Schema.entity()) => [\n LibTmux.Ref.id()\n ]\n },\n panes: %{optional(String.t()) => LibTmux.Pane.t()},\n schema_version: 1,\n server_instance: String.t(),\n sessions: %{\n optional(String.t()) => LibTmux.Session.t()\n },\n window_links: %{\n optional(LibTmux.Ref.id()) =>\n LibTmux.WindowLink.t()\n },\n windows: %{\n optional(String.t()) => LibTmux.Window.t()\n }\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Snapshot{\n captured_from: integer(),\n captured_until: integer(),\n clients: %{\n optional(String.t()) => LibTmux.Client.t()\n },\n coverage: coverage(),\n id: pos_integer(),\n indexes: indexes(),\n order: %{\n required(LibTmux.Schema.entity()) => [\n LibTmux.Ref.id()\n ]\n },\n panes: %{optional(String.t()) => LibTmux.Pane.t()},\n schema_version: 1,\n server_instance: String.t(),\n sessions: %{\n optional(String.t()) => LibTmux.Session.t()\n },\n window_links: %{\n optional(LibTmux.Ref.id()) =>\n LibTmux.WindowLink.t()\n },\n windows: %{\n optional(String.t()) => LibTmux.Window.t()\n }\n }","doc":{"summary":"An immutable observation interval with indexed entities and explicit coverage."},"source":{"file":"lib/libtmux/snapshot.ex","line":69,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-t-0"},{"id":"LibTmux.Snapshot.new/2","publicId":"LibTmux.Snapshot.new/2","name":"new/2","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"new(rows, options)\n@spec new(rows(), [option()]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"rows","type":"rows()"},{"name":"options","type":"[option()]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validates observed rows, rejecting conflicts, invalid fields and dangling covered references.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":86,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-new-2"},{"id":"LibTmux.Snapshot.items/2","publicId":"LibTmux.Snapshot.items/2","name":"items/2","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"items(snapshot, entity)\n@spec items(t(), LibTmux.Schema.entity_selector()) :: [\n LibTmux.Schema.observation()\n ]","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"}],"returns":"[LibTmux.Schema.observation()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns plain observed items in stable identity order without loading data.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":158,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-items-2"},{"id":"LibTmux.Snapshot.sessions/1","publicId":"LibTmux.Snapshot.sessions/1","name":"sessions/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"sessions(snapshot)\n@spec sessions(t()) ::\n LibTmux.Selection.t(LibTmux.Session.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Session.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized session selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":170,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-sessions-1"},{"id":"LibTmux.Snapshot.windows/1","publicId":"LibTmux.Snapshot.windows/1","name":"windows/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"windows(snapshot)\n@spec windows(t()) ::\n LibTmux.Selection.t(LibTmux.Window.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Window.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized physical window selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":178,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-windows-1"},{"id":"LibTmux.Snapshot.panes/1","publicId":"LibTmux.Snapshot.panes/1","name":"panes/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"panes(snapshot)\n@spec panes(t()) :: LibTmux.Selection.t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Pane.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized physical pane selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":186,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-panes-1"},{"id":"LibTmux.Snapshot.window_links/1","publicId":"LibTmux.Snapshot.window_links/1","name":"window_links/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"window_links(snapshot)\n@spec window_links(t()) ::\n LibTmux.Selection.t(LibTmux.WindowLink.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.WindowLink.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized membership selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":194,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-window_links-1"},{"id":"LibTmux.Snapshot.clients/1","publicId":"LibTmux.Snapshot.clients/1","name":"clients/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"clients(snapshot)\n@spec clients(t()) ::\n LibTmux.Selection.t(LibTmux.Client.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Client.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized attached-client selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":202,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-clients-1"},{"id":"LibTmux.Snapshot.fetch/3","publicId":"LibTmux.Snapshot.fetch/3","name":"fetch/3","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"fetch(snapshot, entity, id)\n@spec fetch(\n t(),\n LibTmux.Schema.entity_selector(),\n LibTmux.Ref.id()\n ) ::\n {:ok, LibTmux.Schema.observation()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"id","type":"LibTmux.Ref.id()"}],"returns":"{:ok, LibTmux.Schema.observation()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Looks up one exact observed ID without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":210,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-fetch-3"},{"id":"LibTmux.Snapshot.require_complete!/2","publicId":"LibTmux.Snapshot.require_complete!/2","name":"require_complete!/2","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"require_complete!(snapshot, entity)\n@spec require_complete!(\n t(),\n LibTmux.Schema.entity_selector()\n ) :: :ok","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requires a declared complete entity set, even when it has no rows.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":230,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-require_complete-bang-2"},{"id":"LibTmux.Snapshot.require_field!/3","publicId":"LibTmux.Snapshot.require_field!/3","name":"require_field!/3","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"require_field!(snapshot, entity, field)\n@spec require_field!(\n t(),\n LibTmux.Schema.entity_selector(),\n atom()\n ) :: :ok","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"field","type":"atom()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requires a loaded field over the captured entity domain before evaluation.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":245,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-require_field-bang-3"},{"id":"LibTmux.Snapshot.require_relation!/4","publicId":"LibTmux.Snapshot.require_relation!/4","name":"require_relation!/4","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"require_relation!(snapshot, entity, relation, ids \\\\ :all)\n@spec require_relation!(\n t(),\n LibTmux.Schema.entity_selector(),\n atom(),\n :all | [LibTmux.Ref.id()]\n ) :: :ok","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"relation","type":"atom()"},{"name":"ids","type":":all | [LibTmux.Ref.id()]","default":":all"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requires relation coverage for the requested source IDs, including known-empty relations.","body":"The default `:all` validates the entire captured source domain. An explicit\nID list does not resolve unrelated sources or their ambiguous relationships.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":262,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-require_relation-bang-4"},{"id":"LibTmux.Snapshot.related/4","publicId":"LibTmux.Snapshot.related/4","name":"related/4","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"related(snapshot, entity, id, relation)\n@spec related(\n t(),\n LibTmux.Schema.entity_selector(),\n LibTmux.Ref.id(),\n atom()\n ) ::\n LibTmux.Schema.observation()\n | nil\n | [LibTmux.Schema.observation()]","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"id","type":"LibTmux.Ref.id()"},{"name":"relation","type":"atom()"}],"returns":"LibTmux.Schema.observation() | nil | [LibTmux.Schema.observation()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Resolves one source's covered relation through captured indexes; never refreshes.","body":"Ambiguity in another source does not affect this lookup. Whole-selection\nfiltering still validates its entire required relationship domain first.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":285,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-related-4"},{"id":"LibTmux.Transport.OneShot","publicId":"LibTmux.Transport.OneShot","name":"OneShot","namespace":"LibTmux.Transport","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Executes one explicitly selected executable with bounded captured output.","body":"This Linux transport owns a native helper and its ordinary finite process\ntree. It never uses a shell. A worker owns the Port and observes caller\ndeath; the helper detects pipe closure after worker or VM death.\nTarget environment entries travel as bytes to child `execve`, preserving\nempty values. The helper inherits the trusted host environment; requested\ntarget variables do not configure the helper. `TMUX` and `TMUX_PANE` are\nremoved from the target environment unless `keep_tmux_context: true`, which\n`LibTmux.Server.run/3` passes only for a Server that chose no socket.\n\nLimits apply per call: stdout defaults to 1 MiB, stderr to 64 KiB, and\nretained chunks to 4096. `max_total_bytes` additionally bounds both streams\ntogether; it defaults to their summed limits. Overload returns an error\nwith a bounded prefix.\nIndependent caller processes require admission limits at their host or\nserver boundary; this primitive maintains no shared request queue.\n\nA positive timeout becomes one execution deadline. Retirement can take\nup to a separate 750 ms cleanup allowance after expiry. Missing retirement\nproof remains `:unknown`. No result authorizes replay. Helper SIGKILL,\nhostile escape and uninterruptible kernel tasks are outside the ordinary\ntree guarantee. Building the native helper requires a C11 compiler."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot"},{"id":"LibTmux.Transport.OneShot.result/0","publicId":"LibTmux.Transport.OneShot.result/0","name":"result/0","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type result() :: %{\n stdout: binary(),\n stderr: binary(),\n exit_status: non_neg_integer(),\n cleanup: :retired\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"result() :: %{\n stdout: binary(),\n stderr: binary(),\n exit_status: non_neg_integer(),\n cleanup: :retired\n }","doc":{"summary":"Captured bytes and child exit status after proven owned-process retirement; nonzero exit remains a transport result."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":32,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-result-0"},{"id":"LibTmux.Transport.OneShot.option/0","publicId":"LibTmux.Transport.OneShot.option/0","name":"option/0","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:timeout, 1..600_000}\n | {:deadline, LibTmux.Deadline.t()}\n | {:cwd, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:keep_tmux_context, boolean()}\n | {:max_stdout_bytes | :max_stderr_bytes,\n 0..16_777_216}\n | {:max_total_bytes, nil | 0..33_554_432}\n | {:max_chunks, 1..65536}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:timeout, 1..600_000}\n | {:deadline, LibTmux.Deadline.t()}\n | {:cwd, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:keep_tmux_context, boolean()}\n | {:max_stdout_bytes | :max_stderr_bytes,\n 0..16_777_216}\n | {:max_total_bytes, nil | 0..33_554_432}\n | {:max_chunks, 1..65536}","doc":{"summary":"Per-call input and capture limits; bytes and chunks are bounded independently.","body":"Timeout and deadline are exclusive. A supplied deadline must have at most\n600,000 ms remaining at validation; it preserves its original cutoff."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":40,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-option-0"},{"id":"LibTmux.Transport.OneShot.run/3","publicId":"LibTmux.Transport.OneShot.run/3","name":"run/3","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"function","modifiers":[],"signatures":[{"raw":"run(executable, arguments, options \\\\ [])\n@spec run(binary(), [binary()], [option()]) ::\n {:ok, result()} | {:error, LibTmux.Error.t()}","params":[{"name":"executable","type":"binary()"},{"name":"arguments","type":"[binary()]"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"{:ok, result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs argv without a shell, retaining exit status separately from stdout and stderr.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":59,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-run-3"},{"id":"LibTmux.Transport.OneShot.run!/3","publicId":"LibTmux.Transport.OneShot.run!/3","name":"run!/3","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"function","modifiers":[],"signatures":[{"raw":"run!(executable, arguments, options \\\\ [])\n@spec run!(binary(), [binary()], [option()]) :: result()","params":[{"name":"executable","type":"binary()"},{"name":"arguments","type":"[binary()]"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs argv, raising the same structured transport error on failure.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":97,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-run-bang-3"},{"id":"LibTmux.Window","publicId":"LibTmux.Window","name":"Window","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable physical window with explicit actions, independent of session membership and index.","body":"## What is on here\n\nA Window is a physical window captured in a `LibTmux.Snapshot`. Its session\nindex and active state belong to a `LibTmux.WindowLink`, so one Window can\nbelong to several sessions. Start with these groups:\n\n**Finding the window.** Select windows from a captured snapshot, or look one\nup by its exact ID. Neither contacts tmux. An ID that was not captured returns\n`{:error, error}` with kind `:not_found`. Turn the window into a reference\ntied to the server incarnation that supplied it, ready for an action.\n\n- Select: `LibTmux.Snapshot.windows/1`\n- By ID: `LibTmux.Snapshot.fetch/3`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Looking inside a window.** Read its panes from the snapshot, in numeric\npane-ID order and without I/O. An invalid or stale identity, or a relationship\nthe snapshot did not capture, raises `LibTmux.Error`. To find the sessions\nthat hold the window, select its links.\n\n- Panes: `panes/2`\n- Links: `LibTmux.Snapshot.window_links/1`\n\n**Renaming.** Rename the window across all its memberships through a Server or\na Control connection. A name holds 1..1024 UTF-8 bytes with no control\ncharacters, and tmux still normalizes it. The optional `session:` reference\nrequires membership in that session; it does not pick a link index.\n\n- Rename: `rename/4`\n- Raise on failure: `rename!/4`\n\n**Killing.** Kill the window, with its panes, in every session that links it,\nthrough a Server. A Control connection returns `unsupported_transport`.\n\n- Kill: `kill/3`\n- Raise on failure: `kill!/3`"},"source":{"file":"lib/libtmux/entities.ex","line":217,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window"},{"id":"LibTmux.Window.id","publicId":"LibTmux.Window.id","name":"id","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-id"},{"id":"LibTmux.Window.server_instance","publicId":"LibTmux.Window.server_instance","name":"server_instance","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-server_instance"},{"id":"LibTmux.Window.name","publicId":"LibTmux.Window.name","name":"name","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-name"},{"id":"LibTmux.Window.width","publicId":"LibTmux.Window.width","name":"width","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-width"},{"id":"LibTmux.Window.height","publicId":"LibTmux.Window.height","name":"height","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-height"},{"id":"LibTmux.Window.layout","publicId":"LibTmux.Window.layout","name":"layout","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-layout"},{"id":"LibTmux.Window.zoomed","publicId":"LibTmux.Window.zoomed","name":"zoomed","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-zoomed"},{"id":"LibTmux.Window.t/0","publicId":"LibTmux.Window.t/0","name":"t/0","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Window{\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n layout: LibTmux.Schema.observed(String.t()),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t(),\n width: LibTmux.Schema.observed(non_neg_integer()),\n zoomed: LibTmux.Schema.observed(boolean())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Window{\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n layout: LibTmux.Schema.observed(String.t()),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t(),\n width: LibTmux.Schema.observed(non_neg_integer()),\n zoomed: LibTmux.Schema.observed(boolean())\n }","doc":{"summary":"A physical window; session index and active-window state belong to a WindowLink."},"source":{"file":"lib/libtmux/entities.ex","line":269,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-t-0"},{"id":"LibTmux.Window.panes/2","publicId":"LibTmux.Window.panes/2","name":"panes/2","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"panes(snapshot, window)\n@spec panes(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Selection.t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"window","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Pane.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a selection of captured physical panes in numeric pane-ID order.","body":"Uses the supplied snapshot and validates the window's ID and incarnation.\nIdentity, coverage, empty-selection and no-I/O behavior follow\n`LibTmux.Session.windows/2`.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot, Window}\niex> rows = %{window: [%{id: \"@0\"}], pane: [\n...> %{id: \"%10\", window_id: \"@0\"}, %{id: \"%2\", window_id: \"@0\"}]}\niex> {:ok, snapshot} = Snapshot.new(rows,\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> complete: [:pane], fields: %{pane: [:id, :window_id]})\niex> {:ok, window} = Snapshot.fetch(snapshot, :window, \"@0\")\niex> Window.panes(snapshot, window) |> Enum.map(& &1.id)\n[\"%2\", \"%10\"]\niex> {:ok, pane} = Window.panes(snapshot, window)\n...> |> Selection.where(id: \"%2\") |> Selection.one()\niex> pane.id\n\"%2\""}]},"source":{"file":"lib/libtmux/entities.ex","line":280,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-panes-2"},{"id":"LibTmux.Window.rename/4","publicId":"LibTmux.Window.rename/4","name":"rename/4","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"rename(connection, ref, name, options \\\\ [])\n@spec rename(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Renames an exact physical window across all its memberships.","body":"Returns `{:ok, result}` on command completion; unsuccessful outcomes return\n`{:error, %LibTmux.Action.CompletionError{}}` with their original evidence.\n\nNames contain 1..1024 UTF-8 bytes without Unicode control characters (Cc),\nwith literal format syntax.\ntmux still applies name normalization, including dollar/backslash escaping.\nControl characters fail before I/O on both transports. Optional `session: session_ref` requires\nmembership in that exact session; it does not select a captured link index.\n`timeout` defaults to 5000ms. See `LibTmux.Action` for transport and outcomes.\n\n alias LibTmux.Window\n\n Window.rename(control, window_ref, \"editor\")"},"source":{"file":"lib/libtmux/entities.ex","line":307,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-rename-4"},{"id":"LibTmux.Window.rename!/4","publicId":"LibTmux.Window.rename!/4","name":"rename!/4","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"rename!(connection, ref, name, options \\\\ [])\n@spec rename!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) :: :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `rename/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":329,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-rename-bang-4"},{"id":"LibTmux.Window.kill/3","publicId":"LibTmux.Window.kill/3","name":"kill/3","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"kill(connection, ref, options \\\\ [])\n@spec kill(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills an exact window through one-shot execution.","body":"Returns `{:ok, result}` on command completion. Optional `session: session_ref` requires membership in that exact session and `timeout` defaults to 5000ms. Killing a window removes it from every session that links it. The reference is\nchecked against the answering server before dispatch, with the usual one-shot\ncheck/use race. A reference to something that is already gone returns\n`{:error, %LibTmux.Action.CompletionError{}}` with the original evidence.\nControl connections return `unsupported_transport` before any I/O: a\nconnection cannot kill what it is attached to. Observations you already hold\nkeep describing the window.\n\n alias LibTmux.Window\n\n Window.kill(server, window_ref)"},"source":{"file":"lib/libtmux/entities.ex","line":335,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-kill-3"},{"id":"LibTmux.Window.kill!/3","publicId":"LibTmux.Window.kill!/3","name":"kill!/3","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(connection, ref, options \\\\ [])\n@spec kill!(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) :: :ok","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":355,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-kill-bang-3"},{"id":"LibTmux.WindowLink","publicId":"LibTmux.WindowLink","name":"WindowLink","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An observed session/index/window binding. Its key is not a link lifetime ID."},"source":{"file":"lib/libtmux/entities.ex","line":361,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink"},{"id":"LibTmux.WindowLink.id","publicId":"LibTmux.WindowLink.id","name":"id","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"{String.t(), non_neg_integer(), String.t()}","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-id"},{"id":"LibTmux.WindowLink.server_instance","publicId":"LibTmux.WindowLink.server_instance","name":"server_instance","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-server_instance"},{"id":"LibTmux.WindowLink.session_id","publicId":"LibTmux.WindowLink.session_id","name":"session_id","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-session_id"},{"id":"LibTmux.WindowLink.window_id","publicId":"LibTmux.WindowLink.window_id","name":"window_id","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-window_id"},{"id":"LibTmux.WindowLink.index","publicId":"LibTmux.WindowLink.index","name":"index","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-index"},{"id":"LibTmux.WindowLink.active","publicId":"LibTmux.WindowLink.active","name":"active","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-active"},{"id":"LibTmux.WindowLink.t/0","publicId":"LibTmux.WindowLink.t/0","name":"t/0","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.WindowLink{\n active: LibTmux.Schema.observed(boolean()),\n id: {String.t(), non_neg_integer(), String.t()},\n index: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n window_id: LibTmux.Schema.observed(String.t())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.WindowLink{\n active: LibTmux.Schema.observed(boolean()),\n id: {String.t(), non_neg_integer(), String.t()},\n index: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n window_id: LibTmux.Schema.observed(String.t())\n }","doc":{"summary":"A captured session/index/window binding, including its session-relative active state."},"source":{"file":"lib/libtmux/entities.ex","line":373,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-t-0"},{"id":"LibTmux.Wire","publicId":"LibTmux.Wire","name":"Wire","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Bounded JSON decoding with duplicate keys preserved until validation.","body":"Uses the built-in JSON decoder callbacks. Object keys stay strings; no\natoms are created. Byte, nesting, node, array and string ceilings apply\nbefore conversion to public maps. Parsing failures retain root paths and\noffsets where supplied; duplicate-key failures identify the object path.\nDepth starts at zero for the root value and increases for every object\nmember or array element; the maximum is inclusive for maps and JSON alike."},"source":{"file":"lib/libtmux/wire.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire"},{"id":"LibTmux.Wire.value/0","publicId":"LibTmux.Wire.value/0","name":"value/0","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type value() ::\n nil\n | boolean()\n | integer()\n | float()\n | String.t()\n | [value()]\n | object()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"value() ::\n nil\n | boolean()\n | integer()\n | float()\n | String.t()\n | [value()]\n | object()","doc":{"summary":"A JSON value with string-keyed objects; invalid external terms return a validation error."},"source":{"file":"lib/libtmux/wire.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-value-0"},{"id":"LibTmux.Wire.object/0","publicId":"LibTmux.Wire.object/0","name":"object/0","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type object() :: %{optional(String.t()) => value()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"object() :: %{optional(String.t()) => value()}","doc":{"summary":"A JSON object whose keys remain strings; validation never creates atoms from external names."},"source":{"file":"lib/libtmux/wire.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-object-0"},{"id":"LibTmux.Wire.decode/2","publicId":"LibTmux.Wire.decode/2","name":"decode/2","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"function","modifiers":[],"signatures":[{"raw":"decode(binary, options \\\\ [])\n@spec decode(binary(), [LibTmux.Filter.limit_option()]) ::\n {:ok, value()} | {:error, LibTmux.Error.t()}","params":[{"name":"binary","type":"binary()"},{"name":"options","type":"[LibTmux.Filter.limit_option()]","default":"[]"}],"returns":"{:ok, value()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes one complete bounded JSON value, rejecting duplicate keys and trailing data.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/wire.ex","line":20,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-decode-2"},{"id":"LibTmux.Wire.validate/2","publicId":"LibTmux.Wire.validate/2","name":"validate/2","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"function","modifiers":[],"signatures":[{"raw":"validate(value, options \\\\ [])\n@spec validate(term(), [LibTmux.Filter.limit_option()]) ::\n {:ok, value()} | {:error, LibTmux.Error.t()}","params":[{"name":"value","type":"term()"},{"name":"options","type":"[LibTmux.Filter.limit_option()]","default":"[]"}],"returns":"{:ok, value()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validates already-decoded JSON data and its complete encoded byte size.","body":"Arrays must be proper lists; a malformed tail reports the containing\narray's path. An excess prefix returns the list limit before inspecting its tail.\n\nSee the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/wire.ex","line":87,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-validate-2"}]} +{"port":"elixir","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractor":"@libtmux/api-model@0.0.1 (Elixir EEP-48 documentation chunks and Code.Typespec v1)","nativeProvenance":{"files":[{"path":"lib/libtmux/action.ex","sha256":"ac53100367a419f864d41b05a2f74e672a056d9ad7b5ad03c23344300979b80b"},{"path":"lib/libtmux/action/completion_error.ex","sha256":"83007cb9b5617eca58624cef1a51f3f11f263e1bea9a52ca218c4735b22fa7cc"},{"path":"lib/libtmux/capture.ex","sha256":"7ce2cedfc97592578be47780965ca74ef57f83549ecb6ab1de296ad21315e452"},{"path":"lib/libtmux/capture/row.ex","sha256":"678bf3b63fe5de2d8b0eb2f3600d70ebc4fbb6fb8c5c28bcc15be074aec41cf6"},{"path":"lib/libtmux/codec.ex","sha256":"5ec0f6d39d9fcb246d0190a2992e2ba5f8b38530e09aa3bee8e359629d2a661d"},{"path":"lib/libtmux/command.ex","sha256":"fcc2ac234c7f6fd546c0734b891d6593fc6696b4a83354e3f7664e08754a9fe2"},{"path":"lib/libtmux/control.ex","sha256":"fee390e3fb25701071a345877face9c82b3173c0df4060b9edb647a99dd2700c"},{"path":"lib/libtmux/control/admission.ex","sha256":"49b59e6a9c740b057842800a8a3110e578807ab3d7336dc35e3a4cfc79051411"},{"path":"lib/libtmux/control/births.ex","sha256":"b5d6aac8ca88c1e55f6db09cbb80694d0567f5d9ad99c01e6be995476387a105"},{"path":"lib/libtmux/control/bootstrap.ex","sha256":"ba74e1d6fa9d22cffef9aa39ebe606d31ce562b2869840bdea6da9bf9b88f037"},{"path":"lib/libtmux/control/connection_supervisor.ex","sha256":"14b12e40c46cd52df11a1065737e6da95b476f4563a94d2273a4af33bb872535"},{"path":"lib/libtmux/control/epoch_host.ex","sha256":"874239ea92a067f4622c91a11639861a8375b2146c58aaa39fff9c299a6c36a9"},{"path":"lib/libtmux/control/epoch_supervisor.ex","sha256":"16c64e39002c17d5d08bfb97dd0bb5a2415b9b3692480dd7418f1c048ebbd5ba"},{"path":"lib/libtmux/control/exchange.ex","sha256":"d496f628edfd3a54d70ad106f4cfe759c9a887c7ac763d239ff2889ebdebf1c1"},{"path":"lib/libtmux/control/execution_error.ex","sha256":"6ed0b7ce5374be1f9bbe5e4443b2653bae3368990b3a057f6553071c79a430d9"},{"path":"lib/libtmux/control/guardian.ex","sha256":"0d4396bde7f804957d9491564355b36ca4f3b624d1aaa17e65753e8df4dd91a6"},{"path":"lib/libtmux/control/inbox.ex","sha256":"34b069ca454a043ac44f669143dd8edfc843bee580f7c765bf92b770d68ae0c4"},{"path":"lib/libtmux/control/lifetime.ex","sha256":"f2057e838250f808f67da41f79692b2a4fcfc4a39abc2c7d9cae17580932e66a"},{"path":"lib/libtmux/control/manager.ex","sha256":"1d7b945c260ffb4b3e8b82d2db218a3cb9682a003326dbbfdfcf74fa7d9de9ec"},{"path":"lib/libtmux/control/owned_term.ex","sha256":"22236edb147924c981a231a3a160e786e8777da5276f38c365962dc57db5b357"},{"path":"lib/libtmux/control/records.ex","sha256":"0d493ec24e9abe91724ec5a9729066316cd80f7a71d83291ba5031d8a5198d2b"},{"path":"lib/libtmux/control/request.ex","sha256":"ae9bffefa62063a77f031099b4e3330b15443372eb2ca361865ca3eb5504ee1f"},{"path":"lib/libtmux/control/router.ex","sha256":"17bc94b85db8280382fa89d19867f23454c572c3b022a1b276caac1c8292b51c"},{"path":"lib/libtmux/control/scope.ex","sha256":"b10638e6fd3f994bc74ddbb8032060225d576fe454cc3645af42e3f5855db5e5"},{"path":"lib/libtmux/control/scope_failure.ex","sha256":"ba106a6c62d69d6bee9048175f498add3565696e14d4ad93021abfb55fe4db9d"},{"path":"lib/libtmux/control/start.ex","sha256":"54a93f995d44be3c2baeeb22dd81c4a554c4fb831e5d6b10de7dccccd8b07257"},{"path":"lib/libtmux/control/supervisor_start.ex","sha256":"70e06a9ba3f69b7e3f9bfdeffc293eed570304db28396a396a5a682255e4060a"},{"path":"lib/libtmux/control/waiters.ex","sha256":"30ed3c3605e8166a28519f58f1b6e01c59020d1831c969bcb58466d07736f734"},{"path":"lib/libtmux/deadline.ex","sha256":"4163ca272f1e59d087585c154fa9d6e6c0230f2a793b543144d452cf2b2d0263"},{"path":"lib/libtmux/entities.ex","sha256":"654386c61cc26c79d76c2b61a4bc7760981ce8fc766b31d4e1d1fe8d32939a2b"},{"path":"lib/libtmux/error.ex","sha256":"156f2ad4f4da0aafa8911b66d7daeee6bcf512b1e047ab057d8315eb3c80ddca"},{"path":"lib/libtmux/filter.ex","sha256":"a9ed5bba343d306ee1710c2fce5d0f28e7e6d1559744ca69fabc14482ec33741"},{"path":"lib/libtmux/filter/evaluator.ex","sha256":"502d7c09e209ff6c167e2ab74b485b77b589d1f8981b8d1a9ba580b07a43a68e"},{"path":"lib/libtmux/filter/wire.ex","sha256":"183928fcd937ed76a5e1718b7bbdf5f4a38be3ea02592ca42207cc087890e8ad"},{"path":"lib/libtmux/format.ex","sha256":"204658005014420ca63033f0bb216dade63dafe8108f26d67e6c0673104394e1"},{"path":"lib/libtmux/operation.ex","sha256":"a963380b1e69c471e1f50b583bb9606c1b9b5ca552c11c28b1ff793864719f3f"},{"path":"lib/libtmux/operation/lifecycle.ex","sha256":"0221ea46f5395f4b2aa86f9846cff7b0ebe932abb91f7ee118d298f68b1f7e8f"},{"path":"lib/libtmux/process_identity.ex","sha256":"5936b66347b803525d90a04bbd596790389bea97bdf8a82554b1d8bd1f6641e5"},{"path":"lib/libtmux/protocol.ex","sha256":"d391c9b1a5560fca17a090a007260aaf20be4f995b7e1fecf3ac99662abecf3c"},{"path":"lib/libtmux/ref.ex","sha256":"f6456c836a12991bf0316d368b159af569bdc4bd9f7ec6589f010fbb94bdc738"},{"path":"lib/libtmux/schema.ex","sha256":"7f140b56ccf7cf86e2b420b5f1e0e3b3b08b6d22e5c7dda66926a07b77946178"},{"path":"lib/libtmux/selection.ex","sha256":"b6cd467f5c4807fcbd9df4dbfb5fdfe230c3f468c395b114724f798d5b4004d8"},{"path":"lib/libtmux/server.ex","sha256":"b7ea7f92dffece1f88a4aafdfd66a9b9be52275cce94a73ee20eaae17488a01d"},{"path":"lib/libtmux/server/daemon.ex","sha256":"93d9d6cf291cebab02f9f136dce912cbbe7fba1e86625cb7f3e497148bff4cb3"},{"path":"lib/libtmux/snapshot.ex","sha256":"662c29cf16416d565bea3211fc5a2b5f154dd2e93343d210809144c40e7fdcbf"},{"path":"lib/libtmux/transport/native.ex","sha256":"4ec14f18472e94d848462f6acc598fdc8124532fe1b55bbf56e845d762852d3a"},{"path":"lib/libtmux/transport/native/driver.ex","sha256":"91a85c2d9ff593bc127d27432bc5d57822949d2b3aa905d35840c492db23028e"},{"path":"lib/libtmux/transport/native/protocol.ex","sha256":"7032f92e640f5d8cfe4b099cb43cdbd684fd8d54a04379259184cc7cb4012a78"},{"path":"lib/libtmux/transport/oneshot.ex","sha256":"9216b90dffab49f22eaf29dadc842c62aed17c803aa26899b230a4fd567901df"},{"path":"lib/libtmux/transport/reply.ex","sha256":"be1bad8d3b00b3ecf609a2887daee001bb9a84e49cb147780ea0c52f58caddf1"},{"path":"lib/libtmux/wire.ex","sha256":"bdb83f5e8cba2e7eab2c655e30fd2b464f53cd87b1d9f6db34646f067f6d4479"},{"path":"mix.exs","sha256":"c16e2678d8cba2ee9e73946d2a3fc1a863c4e60679600b59bd9e609181adf5c5"}],"exporter":{"name":"Elixir EEP-48 documentation chunks and Code.Typespec","version":1,"elixir":"1.20.5","otp":"29.1.3","columns":60}},"sources":[{"product":"core","package":"libtmux","version":"0.1.3","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"}],"symbols":[{"id":"LibTmux.Action","publicId":"LibTmux.Action","name":"Action","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Shared results for explicit pane, window and session actions.","body":"Pass a `LibTmux.Server` for one-shot execution or a `LibTmux.Control` for\nmanaged execution in its qualified connection. No action changes transport,\nreplays a mutation or refreshes an observation. Targeted one-shot actions\ncheck the server incarnation before execution; that check leaves a\ncheck/use race.\n\nOrdinary actions return `{:ok, result}` only for completed commands.\nFailed, skipped and unknown outcomes return\n`{:error, %LibTmux.Action.CompletionError{result: original_result}}`.\n`value` holds the completed command's value; `details` retains the\ntransport's original bounded evidence. Domain bang functions return the\ncompleted value or raise `LibTmux.Action.CompletionError` with the original\nunsuccessful result. Acknowledgement does not prove that a program\nprocessed input or finished running.\n\nAPI errors use `LibTmux.Error`; admitted control errors preserve the recovery\nhandle in `LibTmux.Control.ExecutionError`. Domain bang functions raise\nthese errors unchanged. Lower-level `LibTmux.Control` and `LibTmux.Operation`\nbang functions retain canonical outcomes as values.\n\nAction errors with kind `:invalid_command` include a validation `path` such\nas `[:options, :size]` and a bounded `details.reason` describing accepted\ninputs. The reason appears in the exception message; rejected values are\nnot retained in diagnostic details. Targeted one-shot actions validate both\nnative process specifications before the identity read. Session creation\nhas no observed target; it validates its command and runs without an identity\nread. Native byte/count refusals use paths such as `[:process, :argv]` or\n`[:process, :frame]`.\nPreparation does not check filesystem existence or guarantee execution.\n\nA nonzero one-shot client exit reports `:failed` with `:observed` certainty:\nits exit status is observed, not an authenticated tmux command reply or\nproof that no effects occurred.\n\nKill actions run one-shot only: a Control connection returns\n`unsupported_transport` before any I/O, because it cannot kill what it is\nattached to. A kill command prints nothing, so a completed result has the\nvalue `:ok`.\n\nOptional session context checks physical membership at tmux's command\nresolution. It does not bind a particular WindowLink index when a window\nhas multiple links in that session. WindowLink references are rejected.\nSee `LibTmux.Pane.split/3`, `LibTmux.Pane.send_text/4` and\n`LibTmux.Window.rename/4` for caller examples."},"source":{"file":"lib/libtmux/action.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action"},{"id":"LibTmux.Action.connection/0","publicId":"LibTmux.Action.connection/0","name":"connection/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type connection() ::\n LibTmux.Server.t() | LibTmux.Control.t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"connection() ::\n LibTmux.Server.t() | LibTmux.Control.t()","doc":{"summary":"Explicitly selected one-shot descriptor or pinned qualified connection."},"source":{"file":"lib/libtmux/action.ex","line":54,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-connection-0"},{"id":"LibTmux.Action.option/0","publicId":"LibTmux.Action.option/0","name":"option/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:timeout, 1..600_000} | {:session, LibTmux.Ref.t()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:timeout, 1..600_000} | {:session, LibTmux.Ref.t()}","doc":{"summary":"A 1..600000ms execution budget, default 5000ms; optional exact session context for physical targets."},"source":{"file":"lib/libtmux/action.ex","line":56,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-option-0"},{"id":"LibTmux.Action.creation_option/0","publicId":"LibTmux.Action.creation_option/0","name":"creation_option/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type creation_option() ::\n {:timeout, 1..600_000}\n | {:cwd, binary()}\n | {:command,\n :default\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"creation_option() ::\n {:timeout, 1..600_000}\n | {:cwd, binary()}\n | {:command,\n :default\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","doc":{"summary":"Detached creation on an existing server; default command/shell and directory unless supplied."},"source":{"file":"lib/libtmux/action.ex","line":58,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-creation_option-0"},{"id":"LibTmux.Action.creation_value/0","publicId":"LibTmux.Action.creation_value/0","name":"creation_value/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type creation_value() :: %{id: String.t(), ref: nil}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"creation_value() :: %{id: String.t(), ref: nil}","doc":{"summary":"A created native ID without a bound reference; capture a new observation before another targeted action."},"source":{"file":"lib/libtmux/action.ex","line":63,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-creation_value-0"},{"id":"LibTmux.Action.result/1","publicId":"LibTmux.Action.result/1","name":"result/1","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type result(value) :: %{\n outcome: :completed,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: value,\n details: map()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"result(value) :: %{\n outcome: :completed,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: value,\n details: map()\n }","doc":{"summary":"A completed action's value and original transport evidence.","body":"Only completed results appear in an action's `{:ok, result}` tuple. Command\nacknowledgement remains distinct from external program completion.\n\nA completed split carries `t:LibTmux.Pane.split_value/0`. See\n`LibTmux.Pane.split/3` for its identity and lifetime limits."},"source":{"file":"lib/libtmux/action.ex","line":65,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-result-1"},{"id":"LibTmux.Action.unsuccessful_result/0","publicId":"LibTmux.Action.unsuccessful_result/0","name":"unsuccessful_result/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type unsuccessful_result() :: %{\n outcome: :failed | :skipped | :unknown,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: nil,\n details: map()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"unsuccessful_result() :: %{\n outcome: :failed | :skipped | :unknown,\n certainty: LibTmux.Error.certainty(),\n evidence: atom(),\n transport: :one_shot | :control,\n value: nil,\n details: map()\n }","doc":{"summary":"A failed, skipped or unknown action outcome retained inside CompletionError."},"source":{"file":"lib/libtmux/action.ex","line":83,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-unsuccessful_result-0"},{"id":"LibTmux.Action.error/0","publicId":"LibTmux.Action.error/0","name":"error/0","namespace":"LibTmux.Action","parent":"LibTmux.Action","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type error() ::\n LibTmux.Error.t()\n | LibTmux.Action.CompletionError.t()\n | LibTmux.Control.ExecutionError.t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"error() ::\n LibTmux.Error.t()\n | LibTmux.Action.CompletionError.t()\n | LibTmux.Control.ExecutionError.t()","doc":{"summary":"An API refusal, unsuccessful outcome or managed execution error retaining recovery context."},"source":{"file":"lib/libtmux/action.ex","line":92,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-error-0"},{"id":"LibTmux.Action.CompletionError","publicId":"LibTmux.Action.CompletionError","name":"CompletionError","namespace":"LibTmux.Action","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An action result did not meet an explicit completion requirement.","body":"Returned in an error tuple by domain actions such as `LibTmux.Pane.split/3`\nand raised by their bang variants. `result` preserves the original\nfailed, skipped or unknown outcome, including certainty and transport\nevidence. An unknown outcome remains unknown; this exception does not\ncancel work or authorize replay. Its message omits transport output."},"extends":["Exception"],"source":{"file":"lib/libtmux/action/completion_error.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-completionerror"},{"id":"LibTmux.Action.CompletionError.result","publicId":"LibTmux.Action.CompletionError.result","name":"result","namespace":"LibTmux.Action.CompletionError","parent":"LibTmux.Action.CompletionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Action.unsuccessful_result()","value":"nil","source":{"file":"lib/libtmux/action/completion_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-completionerror-result"},{"id":"LibTmux.Action.CompletionError.t/0","publicId":"LibTmux.Action.CompletionError.t/0","name":"t/0","namespace":"LibTmux.Action.CompletionError","parent":"LibTmux.Action.CompletionError","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Action.CompletionError{\n __exception__: term(),\n result: LibTmux.Action.unsuccessful_result()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Action.CompletionError{\n __exception__: term(),\n result: LibTmux.Action.unsuccessful_result()\n }","doc":{"summary":"The original action result that did not establish command completion."},"source":{"file":"lib/libtmux/action/completion_error.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-action-completionerror-t-0"},{"id":"LibTmux.Capture","publicId":"LibTmux.Capture","name":"Capture","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Builds a bounded one-shot observation of one existing Linux tmux server.","body":"Capture checks topology and OS server identity before and after field\nreads. Attempts share the original deadline and work budgets; `attempts`\ndefaults to 2 and accepts 1–3. Only inconsistent topology or disappearing\nread targets retry. Decoding and coverage errors remain visible.\n\nDefaults: 1024 topology rows, 512 commands, 8 MiB total response bytes,\n64 KiB per response and 5000 ms. Exhausted capture-wide budgets return an\nerror, never a partial success. Both topology scans count contextual linked rows.\nFree-form fields use one encoded listing per entity kind. One successful\nattempt uses 13 commands when those three listings fit. After a listing\nexceeds the response ceiling and its client retires, capture reads that\nkind's physical entities individually. The failed listing still consumes\ncommands, bytes and time. Duplicate linked text rows consume bytes.\nCapture adds no control attachment. Hooks configured on list commands can\nstill have effects; retries do not replay application mutations."},"source":{"file":"lib/libtmux/capture.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-capture"},{"id":"LibTmux.Capture.option/0","publicId":"LibTmux.Capture.option/0","name":"option/0","namespace":"LibTmux.Capture","parent":"LibTmux.Capture","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:timeout, pos_integer()}\n | {:deadline, LibTmux.Deadline.t()}\n | {:attempts, 1..3}\n | {:max_entities\n | :max_commands\n | :max_bytes\n | :max_response_bytes, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:timeout, pos_integer()}\n | {:deadline, LibTmux.Deadline.t()}\n | {:attempts, 1..3}\n | {:max_entities\n | :max_commands\n | :max_bytes\n | :max_response_bytes, pos_integer()}","doc":{"summary":"Capture-wide budgets shared by all attempts and reads.","body":"Each read uses the smaller of remaining `max_bytes` and `max_response_bytes`.\nThat effective ceiling must fit OneShot's 16 MiB stdout limit. The shared\ndeadline must have at most 600,000 ms remaining when OneShot validates a read.\nInvalid combinations raise `ArgumentError` before that command executes."},"source":{"file":"lib/libtmux/capture.ex","line":25,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-capture-option-0"},{"id":"LibTmux.Capture.fetch/2","publicId":"LibTmux.Capture.fetch/2","name":"fetch/2","namespace":"LibTmux.Capture","parent":"LibTmux.Capture","kind":"function","modifiers":[],"signatures":[{"raw":"fetch(server, options \\\\ [])\n@spec fetch(LibTmux.Server.t(), [option()]) ::\n {:ok, LibTmux.Snapshot.t()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"LibTmux.Server.t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"{:ok, LibTmux.Snapshot.t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Performs bounded capture through an explicit server descriptor.","body":"See `t:option/0` for the composed work, response and remaining-deadline\nconstraints inherited from `LibTmux.Transport.OneShot.run/3`.\n\nSee the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/capture.ex","line":49,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-capture-fetch-2"},{"id":"LibTmux.Client","publicId":"LibTmux.Client","name":"Client","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable attached-client observation, keyed by validated client name."},"source":{"file":"lib/libtmux/entities.ex","line":658,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client"},{"id":"LibTmux.Client.id","publicId":"LibTmux.Client.id","name":"id","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-id"},{"id":"LibTmux.Client.server_instance","publicId":"LibTmux.Client.server_instance","name":"server_instance","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-server_instance"},{"id":"LibTmux.Client.session_id","publicId":"LibTmux.Client.session_id","name":"session_id","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-session_id"},{"id":"LibTmux.Client.pid","publicId":"LibTmux.Client.pid","name":"pid","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-pid"},{"id":"LibTmux.Client.width","publicId":"LibTmux.Client.width","name":"width","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-width"},{"id":"LibTmux.Client.height","publicId":"LibTmux.Client.height","name":"height","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer() | nil)","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-height"},{"id":"LibTmux.Client.control_mode","publicId":"LibTmux.Client.control_mode","name":"control_mode","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-control_mode"},{"id":"LibTmux.Client.t/0","publicId":"LibTmux.Client.t/0","name":"t/0","namespace":"LibTmux.Client","parent":"LibTmux.Client","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Client{\n control_mode: LibTmux.Schema.observed(boolean()),\n height:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n id: String.t(),\n pid: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Client{\n control_mode: LibTmux.Schema.observed(boolean()),\n height:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n id: String.t(),\n pid: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer())\n }","doc":{"summary":"An attached client; a known absent height is distinct from unloaded or unavailable coverage."},"source":{"file":"lib/libtmux/entities.ex","line":671,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-client-t-0"},{"id":"LibTmux.Codec","publicId":"LibTmux.Codec","name":"Codec","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes bounded field responses and control-output bytes.","body":"A field response contains one free-form field and one framing newline.\nThe default raw mode removes only its framing newline and requires a\nseparately qualified raw source. Use `encoding: :escaped_v1` for output\nproduced by `LibTmux.Format.field/1`, including tmux 3.4's print path.\nThis is a conservative response codec, not a multi-field row codec."},"source":{"file":"lib/libtmux/codec.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec"},{"id":"LibTmux.Codec.field_type/0","publicId":"LibTmux.Codec.field_type/0","name":"field_type/0","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type field_type() :: :bytes | :string | :integer | :boolean","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"field_type() :: :bytes | :string | :integer | :boolean","doc":{"summary":"The required decoded field category; string additionally requires valid UTF-8."},"source":{"file":"lib/libtmux/codec.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-field_type-0"},{"id":"LibTmux.Codec.field_option/0","publicId":"LibTmux.Codec.field_option/0","name":"field_option/0","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type field_option() ::\n {:encoding, :raw | :escaped_v1}\n | {:max_bytes, pos_integer()}\n | {:min | :max, integer() | nil}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"field_option() ::\n {:encoding, :raw | :escaped_v1}\n | {:max_bytes, pos_integer()}\n | {:min | :max, integer() | nil}","doc":{"summary":"Field framing and value validation options; min and max apply only to integer fields."},"source":{"file":"lib/libtmux/codec.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-field_option-0"},{"id":"LibTmux.Codec.decode_field/3","publicId":"LibTmux.Codec.decode_field/3","name":"decode_field/3","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"function","modifiers":["overload"],"signatures":[{"raw":"decode_field(response, type, options \\\\ [])\n@spec decode_field(binary(), :bytes | :string, [\n field_option()\n ]) ::\n {:ok, binary()} | {:error, LibTmux.Error.t()}","params":[{"name":"response","type":"binary()"},{"name":"type","type":":bytes | :string"},{"name":"options","type":"[field_option()]","default":"[]"}],"returns":"{:ok, binary()} | {:error, LibTmux.Error.t()}"},{"raw":"decode_field(response, type, options \\\\ [])\n@spec decode_field(binary(), :integer, [field_option()]) ::\n {:ok, integer()} | {:error, LibTmux.Error.t()}","params":[{"name":"response","type":"binary()"},{"name":"type","type":":integer"},{"name":"options","type":"[field_option()]","default":"[]"}],"returns":"{:ok, integer()} | {:error, LibTmux.Error.t()}"},{"raw":"decode_field(response, type, options \\\\ [])\n@spec decode_field(binary(), :boolean, [field_option()]) ::\n {:ok, boolean()} | {:error, LibTmux.Error.t()}","params":[{"name":"response","type":"binary()"},{"name":"type","type":":boolean"},{"name":"options","type":"[field_option()]","default":"[]"}],"returns":"{:ok, boolean()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Removes one framing newline and validates the complete field value.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/codec.ex","line":22,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-decode_field-3"},{"id":"LibTmux.Codec.decode_output/2","publicId":"LibTmux.Codec.decode_output/2","name":"decode_output/2","namespace":"LibTmux.Codec","parent":"LibTmux.Codec","kind":"function","modifiers":[],"signatures":[{"raw":"decode_output(value, options \\\\ [])\n@spec decode_output(binary(), [\n {:max_bytes, pos_integer()}\n ]) ::\n {:ok, binary()} | {:error, LibTmux.Error.t()}","params":[{"name":"value","type":"binary()"},{"name":"options","type":"[{:max_bytes, pos_integer()}]","default":"[]"}],"returns":"{:ok, binary()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes tmux's three-digit octal output escapes as bytes.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/codec.ex","line":48,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-codec-decode_output-2"},{"id":"LibTmux.Command","publicId":"LibTmux.Command","name":"Command","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A command value with separate argv and tmux-text renderers.","body":"Construction performs no I/O. Arguments are bytes without NUL. Rendering\nprotects command syntax; arguments interpreted as formats still require\n`LibTmux.Format`. A command value does not authorize a shared control lane\nor establish completion behavior, including configured hooks and aliases."},"source":{"file":"lib/libtmux/command.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command"},{"id":"LibTmux.Command.t/0","publicId":"LibTmux.Command.t/0","name":"t/0","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Trusted command data without I/O. Format operands need separate encoding before execution."},"source":{"file":"lib/libtmux/command.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-t-0"},{"id":"LibTmux.Command.option/0","publicId":"LibTmux.Command.option/0","name":"option/0","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() :: {:max_bytes, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() :: {:max_bytes, pos_integer()}","doc":{"summary":"A positive byte ceiling for the selected argv or text rendering; encoded output is charged separately."},"source":{"file":"lib/libtmux/command.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-option-0"},{"id":"LibTmux.Command.new/3","publicId":"LibTmux.Command.new/3","name":"new/3","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"function","modifiers":[],"signatures":[{"raw":"new(name, args, options \\\\ [])\n@spec new(String.t(), [binary()], [option()]) :: t()","params":[{"name":"name","type":"String.t()"},{"name":"args","type":"[binary()]"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a trusted command, rejecting invalid arguments and input size.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/command.ex","line":19,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-new-3"},{"id":"LibTmux.Command.argv/2","publicId":"LibTmux.Command.argv/2","name":"argv/2","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"function","modifiers":[],"signatures":[{"raw":"argv(command, options \\\\ [])\n@spec argv(t(), [option()]) :: [binary()]","params":[{"name":"command","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"[binary()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns process arguments, preserving terminal semicolons in tmux's argv parser.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/command.ex","line":39,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-argv-2"},{"id":"LibTmux.Command.render/2","publicId":"LibTmux.Command.render/2","name":"render/2","namespace":"LibTmux.Command","parent":"LibTmux.Command","kind":"function","modifiers":[],"signatures":[{"raw":"render(command, options \\\\ [])\n@spec render(t(), [option()]) :: binary()","params":[{"name":"command","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Renders one newline-free tmux command line within its encoded byte budget.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/command.ex","line":52,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-command-render-2"},{"id":"LibTmux.Control","publicId":"LibTmux.Control","name":"Control","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A qualified control connection for scoped and managed execution.","body":"Start with `with_connection/2` to own startup and cleanup around a callback.\nUse `execute/3` to obtain a command outcome after wire retirement and record\nreclamation. Canonical `:failed`, `:skipped` and `:unknown` outcomes remain\nvalues, including from bang functions; acknowledgement does not prove\nexternal program completion. See the [managed control guide](managed-control.html).\n\nA successful scope returns `{:ok, callback_value}` after proven cleanup.\n`LibTmux.Control.ScopeFailure` preserves the callback outcome when cleanup\nfails. `LibTmux.Control.ExecutionError` carries the operation handle and\nrecovery context for errors after admission.\n\nStarting a connection explicitly attaches to an existing session. The host\nmust qualify effective hooks, aliases and stream writers for its lifetime;\n`lane: :host_qualified` declares that work without performing it. Each handle\nstays pinned to one epoch. Pinning does not authenticate unqualified output\nor defend against arbitrary writes to internal tables. Local selections\nnever attach, and commands never replay, refresh or change transport.\n\nFor independently retained results, use `submit/3` and `LibTmux.Operation`.\nAwaiting a retained result does not reclaim its record. See the\n[advanced execution guide](advanced-execution.html) for explicit ownership.\n`request_close/1` closes write authority for the entire epoch through reserved\ncapacity; it neither proves retirement nor rolls back effects."},"source":{"file":"lib/libtmux/control.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control"},{"id":"LibTmux.Control.t/0","publicId":"LibTmux.Control.t/0","name":"t/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A handle pinned to one owner and connection epoch; it never follows a replacement."},"source":{"file":"lib/libtmux/control.ex","line":46,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-t-0"},{"id":"LibTmux.Control.start_option/0","publicId":"LibTmux.Control.start_option/0","name":"start_option/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type start_option() ::\n {:server, LibTmux.Server.t()}\n | {:session, {:existing, String.t()}}\n | {:lane, :host_qualified}\n | {:timeout, 1..600_000}\n | {:capacity\n | :metadata_capacity\n | :waiter_capacity, 1..256}\n | {:retention_ms, 1..600_000}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"start_option() ::\n {:server, LibTmux.Server.t()}\n | {:session, {:existing, String.t()}}\n | {:lane, :host_qualified}\n | {:timeout, 1..600_000}\n | {:capacity\n | :metadata_capacity\n | :waiter_capacity, 1..256}\n | {:retention_ms, 1..600_000}","doc":{"summary":"Explicit attachment policy and bounded startup settings; capacities count slots and timeouts use milliseconds."},"source":{"file":"lib/libtmux/control.ex","line":49,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-start_option-0"},{"id":"LibTmux.Control.call_option/0","publicId":"LibTmux.Control.call_option/0","name":"call_option/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type call_option() :: {:timeout, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"call_option() :: {:timeout, pos_integer()}","doc":{"summary":"A positive millisecond budget shared by all stages of one lifecycle or submission call."},"source":{"file":"lib/libtmux/control.ex","line":58,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-call_option-0"},{"id":"LibTmux.Control.scope_option/0","publicId":"LibTmux.Control.scope_option/0","name":"scope_option/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type scope_option() ::\n start_option() | {:cleanup_timeout, 1..950}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"scope_option() ::\n start_option() | {:cleanup_timeout, 1..950}","doc":{"summary":"Startup options plus a separate cleanup allowance of 1..950ms, default 950ms; callback duration has no library timer."},"source":{"file":"lib/libtmux/control.ex","line":61,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scope_option-0"},{"id":"LibTmux.Control.terminal_diagnostic/0","publicId":"LibTmux.Control.terminal_diagnostic/0","name":"terminal_diagnostic/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type terminal_diagnostic() :: %{\n reason: atom(),\n phase: atom(),\n stderr: binary()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"terminal_diagnostic() :: %{\n reason: atom(),\n phase: atom(),\n stderr: binary()\n }","doc":{"summary":"An observed close reason, its error phase and at most 8192 captured stderr bytes; not proof of effects or complete stderr."},"source":{"file":"lib/libtmux/control.ex","line":64,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-terminal_diagnostic-0"},{"id":"LibTmux.Control.connection_status/0","publicId":"LibTmux.Control.connection_status/0","name":"connection_status/0","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type connection_status() :: %{\n epoch: reference() | nil,\n generation: non_neg_integer(),\n phase:\n :starting\n | :ready\n | :closing\n | :retired\n | :unknown,\n instance: String.t() | nil,\n terminal: terminal_diagnostic() | nil | :unavailable\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"connection_status() :: %{\n epoch: reference() | nil,\n generation: non_neg_integer(),\n phase:\n :starting\n | :ready\n | :closing\n | :retired\n | :unknown,\n instance: String.t() | nil,\n terminal: terminal_diagnostic() | nil | :unavailable\n }","doc":{"summary":"A pinned epoch's current phase, identity and terminal evidence; retirement and unknown cleanup are distinct."},"source":{"file":"lib/libtmux/control.ex","line":67,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-connection_status-0"},{"id":"LibTmux.Control.start_link/1","publicId":"LibTmux.Control.start_link/1","name":"start_link/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"start_link(options)\n@spec start_link([start_option()]) ::\n {:ok, pid(), t()} | {:error, LibTmux.Error.t()}","params":[{"name":"options","type":"[start_option()]"}],"returns":"{:ok, pid(), t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Starts a linked connection and returns `{:ok, root, control}`.","body":"Require `server: %LibTmux.Server{}`, `session: {:existing, \"$id\"}` and\n`lane: :host_qualified`. No session is created. The attachment is visible in\ntmux's client counts and can update session state. `no-output,ignore-size`\nsuppresses pane output and excludes this client from window sizing.\n\n`timeout` defaults to 5000ms and accepts 1..600000ms. One budget covers input\npreparation, Root startup, bootstrap, ready waiting and handoff. A fresh\nfactory returns a ready handle. Runtime failures return a structured error;\ninvalid trusted options raise `ArgumentError`. Ordinary OTP links remain:\nan asynchronous fatal Root exit can terminate a non-trapping caller.\n\nFailed startup fences its lifetime and requests exact-Root cleanup. Error\ndetails distinguish observed Root exit from a kill request; unknown native\ncleanup is never success. OTP can await Root exit after its initialization\ntimer expires, so a strict wall-clock caller-return bound remains unqualified.\n\nOptional `capacity`, `metadata_capacity` and `waiter_capacity` default to 32\nand accept 1..256. `retention_ms` defaults to 60000 and accepts 1..600000.\n\nReady connections buffer at most 64 KiB or 128 stdout chunks behind the\nreader. Overflow closes the whole epoch with `resource_limit`; it never\nreplays commands. These receive limits do not cap borrowed-server memory.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":76,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-start_link-1"},{"id":"LibTmux.Control.with_connection/2","publicId":"LibTmux.Control.with_connection/2","name":"with_connection/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"with_connection(options, callback)\n@spec with_connection([scope_option()], (t() -> value)) ::\n {:ok, value}\n | {:error,\n LibTmux.Error.t()\n | LibTmux.Control.ScopeFailure.t(value)}\n when value: var","params":[{"name":"options","type":"[scope_option()]"},{"name":"callback","type":"(t() -> value)"}],"returns":"{:ok, value} | {:error, LibTmux.Error.t() | LibTmux.Control.ScopeFailure.t(value)}","typeParams":["value: var"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs a callback with one connection and owns its native and supervisor cleanup.","body":"Takes the explicit server, existing session and host qualification options\nfrom `start_link/1`. The callback runs in the calling process. Its duration\nis separate from startup and `cleanup_timeout` (default 950ms). A dedicated\nconnection owner also requests cleanup when that caller dies.\n\nReturns `{:ok, value}` after proven connection retirement and Root exit.\nCleaned-up exceptions, throws and exits are re-raised with their original\nstacktrace. If cleanup fails, returns `{:error, ScopeFailure}` containing the\ncallback's original value or exception and separate cleanup evidence.\nStartup failures return `{:error, Error}`; invalid options raise.\n\nThe control handle is scoped to the callback. Explicit reconnect is allowed\ninside it; cleanup permanently fences new epochs and retires the current one.\nEscaped handles cannot reconnect after the scope. Startup retains `start_link/1`'s OTP initialization\nlimitation; a timeout can report unknown cleanup while its owner is still\nunwinding startup. It does not promise a hard native process-exit deadline.","examples":[{"lang":"elixir","code":"alias LibTmux.Control\n\nControl.with_connection(options, fn control ->\n Control.execute(control, LibTmux.Control.Request.field(\"pid\"))\nend)"}]},"source":{"file":"lib/libtmux/control.ex","line":110,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-with_connection-2"},{"id":"LibTmux.Control.child_spec/1","publicId":"LibTmux.Control.child_spec/1","name":"child_spec/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"child_spec(options)\n@spec child_spec([start_option()]) ::\n Supervisor.child_spec()","params":[{"name":"options","type":"[start_option()]"}],"returns":"Supervisor.child_spec()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Builds a permanent supervisor child spec without attaching.","body":"Prepares bounded detached inputs and one lifetime shared by all factory\ninvocations. Each invocation starts its own configured startup budget.\nA restarted nonfresh lifetime returns an inert handle and never attaches\nautomatically. Proven retirement permits explicit `reconnect/2`; unknown\ncleanup refuses it. Old handles never follow a replacement Root or Manager.\n\n`Supervisor.start_child/2` and `Supervisor.restart_child/2` return the new\nhandle as their third info element. After an automatic restart, use\n`Supervisor.terminate_child/2` followed by `Supervisor.restart_child/2` for\nfresh info. This does not clear unknown cleanup or authorize replay.\n\nSee the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":157,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-child_spec-1"},{"id":"LibTmux.Control.submit/3","publicId":"LibTmux.Control.submit/3","name":"submit/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"submit(control, request, options \\\\ [])\n@spec submit(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) ::\n {:ok, LibTmux.Operation.t()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Operation.t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Admits one request and returns its retained operation handle.","body":"`timeout` defaults to 5000ms and covers validation, admission, queueing,\nwrites and replies under one monotonic deadline. Request binaries are\ndetached before publication. Invalid input, overload or stale context before\nadmission returns a no-write error. Every successful admission returns its\nOperation, even if its context disappears before publication. Inspect that\nhandle for the eventual canonical result or an explicit lost-context error.\n\nClosing the connection can affect sibling operations. Command replies do\nnot prove external program exit. Caller timeout does not authorize replay.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":212,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-submit-3"},{"id":"LibTmux.Control.execute/3","publicId":"LibTmux.Control.execute/3","name":"execute/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"execute(control, request, options \\\\ [])\n@spec execute(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) ::\n {:ok, LibTmux.Operation.result()}\n | {:error,\n LibTmux.Error.t()\n | LibTmux.Control.ExecutionError.t()}","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Operation.result()} | {:error, LibTmux.Error.t() | LibTmux.Control.ExecutionError.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Executes one qualified request, returning its result after wire retirement and record reclamation. Repeated successful calls need no manual forget.","body":"The default 5000ms budget covers preparation, admission, execution and\ncollection. Failed, skipped and unknown canonical outcomes remain values;\nacknowledgement does not establish external program completion.\n\nPre-admission errors have no-write certainty. An error after admission is\na `LibTmux.Control.ExecutionError` with the exact Operation and retained or\nlost context. Inspect that handle when available; never replay on timeout.\nThe original caller owns recovery: its death permits reclamation after wire\nretirement, even if it passed the handle to another process. A live caller's\ntimeout leaves the record subject to normal retention and explicit forget.\n`Operation.status/1` and `Operation.result/1` inspect it without a waiter.\nA new await needs its own slot; the expired collector releases its slot\nasynchronously when the owner processes closure.\nUse `submit/3` when a retained handle is required after successful waiting.","examples":[{"lang":"elixir","code":"alias LibTmux.Control\n\nControl.execute(control, LibTmux.Control.Request.field(\"pid\"))"}]},"source":{"file":"lib/libtmux/control.ex","line":236,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-execute-3"},{"id":"LibTmux.Control.execute!/3","publicId":"LibTmux.Control.execute!/3","name":"execute!/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"execute!(control, request, options \\\\ [])\n@spec execute!(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) :: LibTmux.Operation.result()","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"LibTmux.Operation.result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Executes and reclaims as in `execute/3`; raises API/context errors, preserving canonical failures as values.","body":"See the [worked example](managed-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":288,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-execute-bang-3"},{"id":"LibTmux.Control.submit!/3","publicId":"LibTmux.Control.submit!/3","name":"submit!/3","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"submit!(control, request, options \\\\ [])\n@spec submit!(t(), LibTmux.Control.Request.t(), [\n call_option()\n ]) :: LibTmux.Operation.t()","params":[{"name":"control","type":"t()"},{"name":"request","type":"LibTmux.Control.Request.t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"LibTmux.Operation.t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Admits a request or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":325,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-submit-bang-3"},{"id":"LibTmux.Control.status/1","publicId":"LibTmux.Control.status/1","name":"status/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"status(control)\n@spec status(t()) ::\n {:ok, connection_status()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"}],"returns":"{:ok, connection_status()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads the pinned epoch's phase, identity and terminal diagnostics without I/O.","body":"`terminal` is `nil` before a terminal report, or `:unavailable` when the\nreport is missing or an ended epoch has no report. A report contains `reason`, its error\n`phase` and at most 8192 raw `stderr` bytes. Empty stderr means no bytes were\ncaptured; the buffer may be incomplete and need not be UTF-8. It can contain\napplication data and is never logged automatically.\n\nA terminal report can coexist with `:closing` or unknown cleanup. Its reason\nis an observed cause, not necessarily the original cause, and does not alter\noperation outcomes. Status fields are separate observations, not an atomic\nsnapshot. A replacement epoch starts without the old report; old handles\nremain stale. Losing the status owner returns the existing context error.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":333,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-status-1"},{"id":"LibTmux.Control.status!/1","publicId":"LibTmux.Control.status!/1","name":"status!/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"status!(control)\n@spec status!(t()) :: connection_status()","params":[{"name":"control","type":"t()"}],"returns":"connection_status()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads pinned connection status or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":378,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-status-bang-1"},{"id":"LibTmux.Control.request_close/1","publicId":"LibTmux.Control.request_close/1","name":"request_close/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"request_close(control)\n@spec request_close(t()) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests whole-epoch closure without claiming an operation or metadata slot.","body":"Repeated requests for the same closing or proven-retired generation return\n`:ok`. Success is a request or previously known retirement, not a cleanup\nacknowledgement. A replacement Manager or epoch is never followed.\n\nSee the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":386,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request_close-1"},{"id":"LibTmux.Control.request_close!/1","publicId":"LibTmux.Control.request_close!/1","name":"request_close!/1","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"request_close!(control)\n@spec request_close!(t()) :: :ok","params":[{"name":"control","type":"t()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests epoch closure or raises the same structured error.","body":"See the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":417,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request_close-bang-1"},{"id":"LibTmux.Control.close/2","publicId":"LibTmux.Control.close/2","name":"close/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"close(control, options \\\\ [])\n@spec close(t(), [call_option()]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests closure and waits for proven retirement of the pinned epoch.","body":"`timeout` defaults to 5000ms. The original budget includes validation and\nretirement waiting. Closure still happens if the bounded metadata wait cannot\nbe admitted. Timeout, overload or lost ownership reports unknown certainty;\nit never proves cleanup. `:ok` requires known native and actor retirement.\n\nThe connection supervisor and retained records remain available for explicit\nreconnect and inspection. This does not stop the supervisor or roll back\nsibling effects.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":425,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-close-2"},{"id":"LibTmux.Control.close!/2","publicId":"LibTmux.Control.close!/2","name":"close!/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"close!(control, options \\\\ [])\n@spec close!(t(), [call_option()]) :: :ok","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Waits for retirement or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/control.ex","line":458,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-close-bang-2"},{"id":"LibTmux.Control.reconnect/2","publicId":"LibTmux.Control.reconnect/2","name":"reconnect/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"reconnect(control, options \\\\ [])\n@spec reconnect(t(), [call_option()]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Explicitly obtains the ready epoch, starting a replacement only after retirement.","body":"A ready epoch returns itself. Call `close/2` first to require replacement.\nThe default 5000ms budget covers metadata admission, retirement and startup.\nA successful reply pins the acknowledged endpoint even if it becomes stale\nbefore this caller resumes. It never follows a later view or replays work.\nErrors report unknown certainty about existing effects. Attachment counts\ninclude the control client; reconnect can attach one replacement client.\n\nSee the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":466,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-reconnect-2"},{"id":"LibTmux.Control.reconnect!/2","publicId":"LibTmux.Control.reconnect!/2","name":"reconnect!/2","namespace":"LibTmux.Control","parent":"LibTmux.Control","kind":"function","modifiers":[],"signatures":[{"raw":"reconnect!(control, options \\\\ [])\n@spec reconnect!(t(), [call_option()]) :: t()","params":[{"name":"control","type":"t()"},{"name":"options","type":"[call_option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Obtains the ready epoch or raises the same structured error.","body":"See the [worked example](supervised-control.html)."},"source":{"file":"lib/libtmux/control.ex","line":492,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-reconnect-bang-2"},{"id":"LibTmux.Control.ExecutionError","publicId":"LibTmux.Control.ExecutionError","name":"ExecutionError","namespace":"LibTmux.Control","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A managed execution reported an error after admission.","body":"`error` explains the wait or context failure. `operation` is the exact\nadmitted handle. `context` reports whether its record was retained when\ninspected; expiry, Manager loss or death of the original `execute/3` caller\ncan invalidate it later. Passing the handle to another process does not\ntransfer recovery ownership; use `Control.submit/3` for durable retention\nindependent of the submitting caller. `:lost` never\nestablishes that the command was unwritten and does not authorize replay.\nInspect a retained handle with `LibTmux.Operation.status/1` before leaving\nits owning scope. See the [recovery example](recovery.html)."},"extends":["Exception"],"source":{"file":"lib/libtmux/control/execution_error.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror"},{"id":"LibTmux.Control.ExecutionError.error","publicId":"LibTmux.Control.ExecutionError.error","name":"error","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Error.t()","value":"nil","source":{"file":"lib/libtmux/control/execution_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-error"},{"id":"LibTmux.Control.ExecutionError.operation","publicId":"LibTmux.Control.ExecutionError.operation","name":"operation","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Operation.t()","value":"nil","source":{"file":"lib/libtmux/control/execution_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-operation"},{"id":"LibTmux.Control.ExecutionError.context","publicId":"LibTmux.Control.ExecutionError.context","name":"context","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":":retained | :lost","value":"nil","source":{"file":"lib/libtmux/control/execution_error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-context"},{"id":"LibTmux.Control.ExecutionError.t/0","publicId":"LibTmux.Control.ExecutionError.t/0","name":"t/0","namespace":"LibTmux.Control.ExecutionError","parent":"LibTmux.Control.ExecutionError","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Control.ExecutionError{\n __exception__: term(),\n context: :retained | :lost,\n error: LibTmux.Error.t(),\n operation: LibTmux.Operation.t()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Control.ExecutionError{\n __exception__: term(),\n context: :retained | :lost,\n error: LibTmux.Error.t(),\n operation: LibTmux.Operation.t()\n }","doc":{"summary":"Recovery evidence after admission; the original operation deadline is unchanged."},"source":{"file":"lib/libtmux/control/execution_error.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-executionerror-t-0"},{"id":"LibTmux.Control.Request","publicId":"LibTmux.Control.Request","name":"Request","namespace":"LibTmux.Control","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Data for the qualified control lane's supported commands.","body":"Field reads encode one named variable losslessly. Server user options accept\nliteral binary values. Domain actions use the same lane for split, rename\nand literal/named input. Constructing a request performs no I/O; use\n`LibTmux.Control.execute/3` or retain a handle with `LibTmux.Control.submit/3`.\nThe host must qualify hooks, aliases and mode-dependent input bindings along\nwith other stream writers. Arbitrary commands, formats and raw control lines\nrequire separate qualification and are not accepted by this lane."},"source":{"file":"lib/libtmux/control/request.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request"},{"id":"LibTmux.Control.Request.t/0","publicId":"LibTmux.Control.Request.t/0","name":"t/0","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Command data for the qualified lane; construction does not validate admission or perform I/O."},"source":{"file":"lib/libtmux/control/request.ex","line":18,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-t-0"},{"id":"LibTmux.Control.Request.field/2","publicId":"LibTmux.Control.Request.field/2","name":"field/2","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"function","modifiers":[],"signatures":[{"raw":"field(variable, target \\\\ nil)\n@spec field(String.t(), LibTmux.Ref.t() | nil) :: t()","params":[{"name":"variable","type":"String.t()"},{"name":"target","type":"LibTmux.Ref.t() | nil","default":"nil"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads a named format variable, optionally from an exact instance-bound target.","body":"Existing empty fields succeed. A target that disappears before the read\nproduces an acknowledged failed operation and leaves the connection usable.\nA reference does not reserve the object's lifetime.\n\nSee the [worked example](managed-control.html)."},"source":{"file":"lib/libtmux/control/request.ex","line":21,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-field-2"},{"id":"LibTmux.Control.Request.set_user_option/2","publicId":"LibTmux.Control.Request.set_user_option/2","name":"set_user_option/2","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"function","modifiers":[],"signatures":[{"raw":"set_user_option(name, value)\n@spec set_user_option(String.t(), binary()) :: t()","params":[{"name":"name","type":"String.t()"},{"name":"value","type":"binary()"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Sets a server user option with an `@name` and a literal binary value.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/control/request.ex","line":34,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-set_user_option-2"},{"id":"LibTmux.Control.Request.verify_reply/3","publicId":"LibTmux.Control.Request.verify_reply/3","name":"verify_reply/3","namespace":"LibTmux.Control.Request","parent":"LibTmux.Control.Request","kind":"function","modifiers":[],"signatures":[{"raw":"verify_reply(request, status, lines)\n@spec verify_reply(t(), :ok | :error, [binary()]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"request","type":"t()"},{"name":"status","type":":ok | :error"},{"name":"lines","type":"[binary()]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Checks a qualified request's reply shape; a tmux error reply remains a command outcome.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/control/request.ex","line":95,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-request-verify_reply-3"},{"id":"LibTmux.Control.ScopeFailure","publicId":"LibTmux.Control.ScopeFailure","name":"ScopeFailure","namespace":"LibTmux.Control","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A scoped callback finished, but connection cleanup was not proved.","body":"`primary` preserves either `{:return, value}` or\n`{:raise, kind, reason, stacktrace}`. `cleanup` holds the separate structured\ncleanup error. Callback values stay in the calling process; this wrapper\ndoes not copy them through a bounded connection mailbox or discard them.\nSee `LibTmux.Control.with_connection/2` for the complete return contract."},"extends":["Exception"],"source":{"file":"lib/libtmux/control/scope_failure.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scopefailure"},{"id":"LibTmux.Control.ScopeFailure.primary/1","publicId":"LibTmux.Control.ScopeFailure.primary/1","name":"primary/1","namespace":"LibTmux.Control.ScopeFailure","parent":"LibTmux.Control.ScopeFailure","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type primary(value) ::\n {:return, value}\n | {:raise, :error | :throw | :exit, term(), list()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"primary(value) ::\n {:return, value}\n | {:raise, :error | :throw | :exit, term(), list()}","doc":{"summary":"The callback's original value or caught exception, throw or exit with its stacktrace."},"source":{"file":"lib/libtmux/control/scope_failure.ex","line":13,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scopefailure-primary-1"},{"id":"LibTmux.Control.ScopeFailure.t/1","publicId":"LibTmux.Control.ScopeFailure.t/1","name":"t/1","namespace":"LibTmux.Control.ScopeFailure","parent":"LibTmux.Control.ScopeFailure","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t(value) :: %LibTmux.Control.ScopeFailure{\n __exception__: term(),\n cleanup: LibTmux.Error.t(),\n primary: primary(value)\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"t(value) :: %LibTmux.Control.ScopeFailure{\n __exception__: term(),\n cleanup: LibTmux.Error.t(),\n primary: primary(value)\n }","doc":{"summary":"Both primary callback evidence and unproved cleanup; neither implies no command effects."},"source":{"file":"lib/libtmux/control/scope_failure.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-control-scopefailure-t-1"},{"id":"LibTmux.Deadline","publicId":"LibTmux.Deadline","name":"Deadline","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A node-local monotonic deadline shared by every stage of an operation.","body":"Construct it once at admission. Passing it between stages preserves the\noriginal budget; it is not a portable timestamp or a wire value."},"source":{"file":"lib/libtmux/deadline.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline"},{"id":"LibTmux.Deadline.t/0","publicId":"LibTmux.Deadline.t/0","name":"t/0","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A node-local monotonic millisecond cutoff. Share it between stages; never serialize it as a portable deadline."},"source":{"file":"lib/libtmux/deadline.ex","line":12,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-t-0"},{"id":"LibTmux.Deadline.option/0","publicId":"LibTmux.Deadline.option/0","name":"option/0","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() :: {:now, integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() :: {:now, integer()}","doc":{"summary":"An optional node-local monotonic clock sample in milliseconds, used instead of sampling the current clock."},"source":{"file":"lib/libtmux/deadline.ex","line":14,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-option-0"},{"id":"LibTmux.Deadline.new/2","publicId":"LibTmux.Deadline.new/2","name":"new/2","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"function","modifiers":[],"signatures":[{"raw":"new(milliseconds, options \\\\ [])\n@spec new(pos_integer(), [option()]) :: t()","params":[{"name":"milliseconds","type":"pos_integer()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Creates a deadline from a positive millisecond budget.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/deadline.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-new-2"},{"id":"LibTmux.Deadline.remaining/2","publicId":"LibTmux.Deadline.remaining/2","name":"remaining/2","namespace":"LibTmux.Deadline","parent":"LibTmux.Deadline","kind":"function","modifiers":[],"signatures":[{"raw":"remaining(deadline, options \\\\ [])\n@spec remaining(t(), [option()]) :: non_neg_integer()","params":[{"name":"deadline","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"non_neg_integer()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the remaining milliseconds, clamped to zero after expiry.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/deadline.ex","line":33,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-deadline-remaining-2"},{"id":"LibTmux.Error","publicId":"LibTmux.Error","name":"Error","namespace":"LibTmux","kind":"exception","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An inspectable failure with its phase and certainty about effects.","body":"`retryable` describes a recovery option; it never authorizes replay of a\nmutation. Diagnostic details must stay within the producing operation's\nbyte budget. Bang functions raise this same structure."},"extends":["Exception"],"source":{"file":"lib/libtmux/error.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error"},{"id":"LibTmux.Error.kind","publicId":"LibTmux.Error.kind","name":"kind","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"atom()","value":"nil","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-kind"},{"id":"LibTmux.Error.phase","publicId":"LibTmux.Error.phase","name":"phase","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"atom()","value":":validation","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-phase"},{"id":"LibTmux.Error.certainty","publicId":"LibTmux.Error.certainty","name":"certainty","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"certainty()","value":":unknown","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-certainty"},{"id":"LibTmux.Error.retryable","publicId":"LibTmux.Error.retryable","name":"retryable","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"boolean()","value":"false","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-retryable"},{"id":"LibTmux.Error.path","publicId":"LibTmux.Error.path","name":"path","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"[path_component()]","value":"[]","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-path"},{"id":"LibTmux.Error.details","publicId":"LibTmux.Error.details","name":"details","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"map()","value":"%{}","source":{"file":"lib/libtmux/error.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-details"},{"id":"LibTmux.Error.certainty/0","publicId":"LibTmux.Error.certainty/0","name":"certainty/0","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type certainty() ::\n :no_write | :acknowledged | :observed | :unknown","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"certainty() ::\n :no_write | :acknowledged | :observed | :unknown","doc":{"summary":"Evidence about effects, independent of whether cleanup or arbitrary program completion is proved."},"source":{"file":"lib/libtmux/error.ex","line":19,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-certainty-0"},{"id":"LibTmux.Error.path_component/0","publicId":"LibTmux.Error.path_component/0","name":"path_component/0","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type path_component() ::\n atom() | non_neg_integer() | LibTmux.Ref.id()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"path_component() ::\n atom() | non_neg_integer() | LibTmux.Ref.id()","doc":{"summary":"A field, array index or observed identity locating an error; links retain their contextual tuple ID."},"source":{"file":"lib/libtmux/error.ex","line":21,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-path_component-0"},{"id":"LibTmux.Error.t/0","publicId":"LibTmux.Error.t/0","name":"t/0","namespace":"LibTmux.Error","parent":"LibTmux.Error","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Error{\n __exception__: term(),\n certainty: certainty(),\n details: map(),\n kind: atom(),\n path: [path_component()],\n phase: atom(),\n retryable: boolean()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Error{\n __exception__: term(),\n certainty: certainty(),\n details: map(),\n kind: atom(),\n path: [path_component()],\n phase: atom(),\n retryable: boolean()\n }","doc":{"summary":"A structured API failure. Kind and phase are extensible; retryable never permits automatic mutation replay."},"source":{"file":"lib/libtmux/error.ex","line":23,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-error-t-0"},{"id":"LibTmux.Filter","publicId":"LibTmux.Filter","name":"Filter","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A validated portable predicate over one observed entity type.","body":"Keywords are trusted shorthand for maps. Fields in one object conjoin;\nduplicate keyword keys are rejected recursively. `not` at a field negates\nequality, while Boolean `not` takes one criteria object. Lists require an\nexplicit operator. Native callbacks belong to `LibTmux.Selection.filter/2`.\nThis value contains data; executable preparation remains separate."},"source":{"file":"lib/libtmux/filter.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter"},{"id":"LibTmux.Filter.criteria/0","publicId":"LibTmux.Filter.criteria/0","name":"criteria/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type criteria() ::\n %{optional(atom()) => term()} | keyword(term())","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"criteria() ::\n %{optional(atom()) => term()} | keyword(term())","doc":{"summary":"Local map criteria or keyword shorthand; field and operand domains are validated at construction."},"source":{"file":"lib/libtmux/filter.ex","line":16,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-criteria-0"},{"id":"LibTmux.Filter.input/0","publicId":"LibTmux.Filter.input/0","name":"input/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type input() :: criteria() | t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"input() :: criteria() | t()","doc":{"summary":"Trusted criteria data or a previously validated filter for the same entity."},"source":{"file":"lib/libtmux/filter.ex","line":18,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-input-0"},{"id":"LibTmux.Filter.limit_option/0","publicId":"LibTmux.Filter.limit_option/0","name":"limit_option/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type limit_option() ::\n {:max_bytes, pos_integer()}\n | {:max_depth, pos_integer()}\n | {:max_nodes, pos_integer()}\n | {:max_list, pos_integer()}\n | {:max_string_bytes, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"limit_option() ::\n {:max_bytes, pos_integer()}\n | {:max_depth, pos_integer()}\n | {:max_nodes, pos_integer()}\n | {:max_list, pos_integer()}\n | {:max_string_bytes, pos_integer()}","doc":{"summary":"A positive resource ceiling; byte, depth, node, list and string budgets validate independently."},"source":{"file":"lib/libtmux/filter.ex","line":20,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-limit_option-0"},{"id":"LibTmux.Filter.limits/0","publicId":"LibTmux.Filter.limits/0","name":"limits/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type limits() :: %{\n max_bytes: pos_integer(),\n max_depth: pos_integer(),\n max_nodes: pos_integer(),\n max_list: pos_integer(),\n max_string_bytes: pos_integer()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"limits() :: %{\n max_bytes: pos_integer(),\n max_depth: pos_integer(),\n max_nodes: pos_integer(),\n max_list: pos_integer(),\n max_string_bytes: pos_integer()\n }","doc":{"summary":"Resolved constructor budgets; wire limits also cover the versioned envelope."},"source":{"file":"lib/libtmux/filter.ex","line":27,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-limits-0"},{"id":"LibTmux.Filter.t/0","publicId":"LibTmux.Filter.t/0","name":"t/0","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validated portable predicate data; executable predicates are prepared separately."},"source":{"file":"lib/libtmux/filter.ex","line":43,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-t-0"},{"id":"LibTmux.Filter.new/3","publicId":"LibTmux.Filter.new/3","name":"new/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"new(entity, criteria, options \\\\ [])\n@spec new(LibTmux.Schema.entity_selector(), input(), [\n limit_option()\n ]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"criteria","type":"input()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Normalizes criteria and validates field/operator/value domains before evaluation.","body":"An existing filter retains its constructor's validation when no new limits\nare supplied. Explicit limits check the normalized tree directly, without\nexpanding it into synthetic input syntax.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":46,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-new-3"},{"id":"LibTmux.Filter.new!/3","publicId":"LibTmux.Filter.new!/3","name":"new!/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"new!(entity, criteria, options \\\\ [])\n@spec new!(LibTmux.Schema.entity_selector(), input(), [\n limit_option()\n ]) :: t()","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"criteria","type":"input()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a filter or raises its structured validation error.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":98,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-new-bang-3"},{"id":"LibTmux.Filter.to_predicate/2","publicId":"LibTmux.Filter.to_predicate/2","name":"to_predicate/2","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"to_predicate(filter, options)\n@spec to_predicate(t(), [\n {:snapshot, LibTmux.Snapshot.t()}\n ]) :: (LibTmux.Schema.observation() ->\n boolean())","params":[{"name":"filter","type":"t()"},{"name":"options","type":"[{:snapshot, LibTmux.Snapshot.t()}]"}],"returns":"(LibTmux.Schema.observation() -> boolean())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Prepares a local unary predicate after validating captured coverage, including empty domains.","body":"Relationship and count predicates require each input to equal the\nobservation stored under its ID in `snapshot`. A missing or different\nobservation raises `LibTmux.Error` with kind `:observation_mismatch`.\nRelated values always come from the prepared snapshot; equal inputs from\nanother capture are accepted.\n\nScalar-only predicates read the supplied observation and may be reused\nacross captures. Each referenced field must be loaded: `:unloaded` raises\n`:field_not_loaded` and `:unavailable` raises `:field_unavailable` before\nBoolean evaluation. Known nullable values keep their comparison semantics;\nunreferenced fields need not be loaded. The snapshot validates coverage\nwhen preparing the predicate.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":111,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-to_predicate-2"},{"id":"LibTmux.Filter.from_wire/3","publicId":"LibTmux.Filter.from_wire/3","name":"from_wire/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"from_wire(entity, payload, options \\\\ [])\n@spec from_wire(LibTmux.Schema.entity_selector(), term(), [\n limit_option()\n ]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"payload","type":"term()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes a whitelisted versioned map; raw JSON must use from_json to retain duplicate keys.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":136,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-from_wire-3"},{"id":"LibTmux.Filter.from_json/3","publicId":"LibTmux.Filter.from_json/3","name":"from_json/3","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"from_json(entity, json, options \\\\ [])\n@spec from_json(\n LibTmux.Schema.entity_selector(),\n binary(),\n [limit_option()]\n ) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"json","type":"binary()"},{"name":"options","type":"[limit_option()]","default":"[]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes bounded JSON, rejecting duplicate object keys and trailing data.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":146,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-from_json-3"},{"id":"LibTmux.Filter.to_wire/1","publicId":"LibTmux.Filter.to_wire/1","name":"to_wire/1","namespace":"LibTmux.Filter","parent":"LibTmux.Filter","kind":"function","modifiers":[],"signatures":[{"raw":"to_wire(filter)\n@spec to_wire(t()) :: LibTmux.Wire.object()","params":[{"name":"filter","type":"t()"}],"returns":"LibTmux.Wire.object()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the explicit versioned string-keyed wire representation.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/filter.ex","line":156,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-filter-to_wire-1"},{"id":"LibTmux.Format","publicId":"LibTmux.Format","name":"Format","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs literal operands for tmux formats without evaluating their text.","body":"Command quoting and format quoting are separate. A literal may contain\nnewlines or arbitrary non-NUL bytes; this does not qualify its output for\na shared line-oriented control lane."},"source":{"file":"lib/libtmux/format.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-format"},{"id":"LibTmux.Format.field/1","publicId":"LibTmux.Format.field/1","name":"field/1","namespace":"LibTmux.Format","parent":"LibTmux.Format","kind":"function","modifiers":[],"signatures":[{"raw":"field(name)\n@spec field(String.t()) :: binary()","params":[{"name":"name","type":"String.t()"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Encodes one named field for `LibTmux.Codec.decode_field/3` with `encoding: :escaped_v1`.","body":"Backslashes are replaced first, then dollars and ASCII control bytes.\nThis protects values from tmux 3.4's ambiguous print escaping. The `v1:`\nprefix and encoded newlines prevent field text from becoming reply guards.\nThis encodes one field. Capture composes these fields inside its versioned\nrow framing; this is not an arbitrary format wrapper. The caller must still\nbound the response and validate the\nfield against its schema and the connected server's capabilities.\n\nSee the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/format.ex","line":26,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-format-field-1"},{"id":"LibTmux.Format.literal/1","publicId":"LibTmux.Format.literal/1","name":"literal/1","namespace":"LibTmux.Format","parent":"LibTmux.Format","kind":"function","modifiers":[],"signatures":[{"raw":"literal(value)\n@spec literal(binary()) :: binary()","params":[{"name":"value","type":"binary()"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a format expression that expands to exactly the supplied non-NUL bytes.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/format.ex","line":47,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-format-literal-1"},{"id":"LibTmux.Operation","publicId":"LibTmux.Operation","name":"Operation","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A retained operation handle pinned to its original owner, tables and epoch.","body":"`result/1` and `status/1` read local retained values. `await/2` owns a separate\nbounded waiter; its timeout never stops the operation. `stop/1` requests\nclosure of the operation's entire connection epoch, including siblings.\nIt does not roll back effects or prove native cleanup.\n\nCanonical results carry `outcome`, `certainty` and `evidence`. Completed,\nfailed, skipped and unknown outcomes remain values, including in bang APIs.\nBang functions raise only API or metadata errors. A command reply is distinct\nfrom wire retirement and arbitrary program exit.\n\nNormal reconnect preserves retained records until forget or expiry. Owner\nreplacement loses those tables; a handle never follows a replacement view.\nHandles recovered from `LibTmux.Control.execute/3` errors also remain owned\nby that original caller: its death permits reclamation after wire retirement."},"source":{"file":"lib/libtmux/operation.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation"},{"id":"LibTmux.Operation.t/0","publicId":"LibTmux.Operation.t/0","name":"t/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"A retained owner-bound operation handle; it is not a command result or a reservation."},"source":{"file":"lib/libtmux/operation.ex","line":28,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-t-0"},{"id":"LibTmux.Operation.command_result/0","publicId":"LibTmux.Operation.command_result/0","name":"command_result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type command_result() :: %{\n outcome: :completed | :failed,\n certainty: :acknowledged,\n evidence: :command_reply,\n guard: LibTmux.Protocol.guard_id(),\n lines: [binary()]\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"command_result() :: %{\n outcome: :completed | :failed,\n certainty: :acknowledged,\n evidence: :command_reply,\n guard: LibTmux.Protocol.guard_id(),\n lines: [binary()]\n }","doc":{"summary":"A qualified command reply, independently of wire retirement or program completion."},"source":{"file":"lib/libtmux/operation.ex","line":30,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-command_result-0"},{"id":"LibTmux.Operation.skipped_result/0","publicId":"LibTmux.Operation.skipped_result/0","name":"skipped_result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type skipped_result() :: %{\n outcome: :skipped,\n certainty: :no_write,\n evidence: :cancelled | :timeout | :epoch_closed\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"skipped_result() :: %{\n outcome: :skipped,\n certainty: :no_write,\n evidence: :cancelled | :timeout | :epoch_closed\n }","doc":{"summary":"A canonical no-write outcome, with the reason it was skipped before dispatch."},"source":{"file":"lib/libtmux/operation.ex","line":38,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-skipped_result-0"},{"id":"LibTmux.Operation.unknown_result/0","publicId":"LibTmux.Operation.unknown_result/0","name":"unknown_result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type unknown_result() :: %{\n outcome: :unknown,\n certainty: :unknown,\n evidence: :epoch_closed\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"unknown_result() :: %{\n outcome: :unknown,\n certainty: :unknown,\n evidence: :epoch_closed\n }","doc":{"summary":"An epoch closed without enough evidence to classify the operation's effects."},"source":{"file":"lib/libtmux/operation.ex","line":44,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-unknown_result-0"},{"id":"LibTmux.Operation.result/0","publicId":"LibTmux.Operation.result/0","name":"result/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type result() ::\n command_result()\n | skipped_result()\n | unknown_result()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"result() ::\n command_result()\n | skipped_result()\n | unknown_result()","doc":{"summary":"The immutable canonical outcome; failed, skipped and unknown outcomes remain values."},"source":{"file":"lib/libtmux/operation.ex","line":46,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-result-0"},{"id":"LibTmux.Operation.wire/0","publicId":"LibTmux.Operation.wire/0","name":"wire/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type wire() ::\n :unpublished\n | :unsent\n | :writing\n | :awaiting\n | :closing\n | :retired","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"wire() ::\n :unpublished\n | :unsent\n | :writing\n | :awaiting\n | :closing\n | :retired","doc":{"summary":"Wire progress for this operation; retired wire does not prove connection cleanup."},"source":{"file":"lib/libtmux/operation.ex","line":48,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-wire-0"},{"id":"LibTmux.Operation.status/0","publicId":"LibTmux.Operation.status/0","name":"status/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type status() :: %{wire: wire(), result: result() | nil}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"status() :: %{wire: wire(), result: result() | nil}","doc":{"summary":"Retained wire progress and the canonical result, or nil while no outcome is established."},"source":{"file":"lib/libtmux/operation.ex","line":50,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-status-0"},{"id":"LibTmux.Operation.option/0","publicId":"LibTmux.Operation.option/0","name":"option/0","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() :: {:timeout, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() :: {:timeout, pos_integer()}","doc":{"summary":"A positive millisecond budget for one waiter or record-reclamation call."},"source":{"file":"lib/libtmux/operation.ex","line":52,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-option-0"},{"id":"LibTmux.Operation.status/1","publicId":"LibTmux.Operation.status/1","name":"status/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"status(operation)\n@spec status(t()) ::\n {:ok, status()} | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"}],"returns":"{:ok, status()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads retained wire state and canonical result without contacting tmux.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":109,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-status-1"},{"id":"LibTmux.Operation.status!/1","publicId":"LibTmux.Operation.status!/1","name":"status!/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"status!(operation)\n@spec status!(t()) :: status()","params":[{"name":"operation","type":"t()"}],"returns":"status()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads retained status or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":123,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-status-bang-1"},{"id":"LibTmux.Operation.result/1","publicId":"LibTmux.Operation.result/1","name":"result/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"result(operation)\n@spec result(t()) ::\n :pending\n | {:ok, result()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"}],"returns":":pending | {:ok, result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a canonical result, `:pending`, or a retained-context error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":131,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-result-1"},{"id":"LibTmux.Operation.result!/1","publicId":"LibTmux.Operation.result!/1","name":"result!/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"result!(operation)\n@spec result!(t()) :: :pending | result()","params":[{"name":"operation","type":"t()"}],"returns":":pending | result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Reads a result or `:pending`; raises API errors, preserving all canonical outcomes.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":145,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-result-bang-1"},{"id":"LibTmux.Operation.await/2","publicId":"LibTmux.Operation.await/2","name":"await/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"await(operation, options \\\\ [])\n@spec await(t(), [option()]) ::\n {:ok, result()} | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"{:ok, result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Waits for a canonical result under one positive millisecond timeout.","body":"The default is 5000ms. Every call claims an independent bounded waiter slot,\nincluding terminal operations; use `result/1` for immediate inspection.\nCompleted waiter copies survive record reclamation until this caller reads\nthem. Timeout, overload and caller death affect only this waiter.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":153,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-await-2"},{"id":"LibTmux.Operation.await!/2","publicId":"LibTmux.Operation.await!/2","name":"await!/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"await!(operation, options \\\\ [])\n@spec await!(t(), [option()]) :: result()","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Waits or raises API errors; canonical failed, skipped and unknown outcomes remain values.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":169,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-await-bang-2"},{"id":"LibTmux.Operation.forget/2","publicId":"LibTmux.Operation.forget/2","name":"forget/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"forget(operation, options \\\\ [])\n@spec forget(t(), [option()]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests exact-record reclamation with a default 5000ms timeout.","body":"Wire-active records cannot be forgotten. An owner-accepted request remains\nowned after caller timeout. Successful reclamation invalidates this record\nhandle while preserving already-accepted waiter copies.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":181,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-forget-2"},{"id":"LibTmux.Operation.forget!/2","publicId":"LibTmux.Operation.forget!/2","name":"forget!/2","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"forget!(operation, options \\\\ [])\n@spec forget!(t(), [option()]) :: :ok","params":[{"name":"operation","type":"t()"},{"name":"options","type":"[option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Forgets the retained record or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":196,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-forget-bang-2"},{"id":"LibTmux.Operation.stop/1","publicId":"LibTmux.Operation.stop/1","name":"stop/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"stop(operation)\n@spec stop(t()) :: :ok | {:error, LibTmux.Error.t()}","params":[{"name":"operation","type":"t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests closure of the pinned epoch through reserved capacity.","body":"Returns `:ok` for an already wire-retired operation or an accepted closure\nrequest, and `{:error, error}` otherwise. Closure can affect sibling work;\nsuccess does not prove retirement or change the canonical result. A stale\nhandle cannot revoke a replacement epoch.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":204,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-stop-1"},{"id":"LibTmux.Operation.stop!/1","publicId":"LibTmux.Operation.stop!/1","name":"stop!/1","namespace":"LibTmux.Operation","parent":"LibTmux.Operation","kind":"function","modifiers":[],"signatures":[{"raw":"stop!(operation)\n@spec stop!(t()) :: :ok","params":[{"name":"operation","type":"t()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requests epoch closure or raises the same structured error.","body":"See the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/operation.ex","line":231,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-operation-stop-bang-1"},{"id":"LibTmux.Pane","publicId":"LibTmux.Pane","name":"Pane","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable physical pane with explicit actions. It belongs to a window; text may be empty.","body":"## What is on here\n\nA Pane is a value captured in a `LibTmux.Snapshot`. Actions take a\n`LibTmux.Ref` and a Server or Control connection. Start with these groups:\n\n**Finding the pane.** Select panes from a captured snapshot, or look one up by\nits exact ID. Neither contacts tmux. An ID that was not captured returns\n`{:error, error}` with kind `:not_found`. Turn the pane into a reference tied\nto the server incarnation that supplied it, ready for an action.\n\n- Select: `LibTmux.Snapshot.panes/1`\n- By ID: `LibTmux.Snapshot.fetch/3`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Splitting.** Split the pane and get the new pane's ID in the completed value.\nA qualified Control connection also returns a bound reference; one-shot\nexecution returns `ref: nil`. The defaults are a vertical, detached split at\nhalf size; options set the axis, size, directory and command.\n\n- Split: `split/3`\n- Raise on failure: `split!/3`\n\n**Sending input.** Send literal bytes, up to 995 of them, without interpreting\nkey names, or send named keys such as `\"Enter\"` and `\"C-c\"`. An unknown key\nname is rejected. Acknowledgement does not prove the program consumed the\ninput.\n\n- Literal bytes: `send_text/4`, `send_text!/4`\n- Named keys: `send_keys/4`, `send_keys!/4`\n\n**Reading the screen.** Capture the rendered screen through one-shot\nexecution; a Control connection returns `unsupported_transport`. Output over\nthe byte limit is an error, never a partial screen. This reads screen state,\nnot the program's original output stream.\n\n- Capture: `capture/3`\n- Raise on failure: `capture!/3`\n\n**Killing.** Kill the pane through a Server. A Control connection returns\n`unsupported_transport`. Killing the last pane of a window removes the window.\n\n- Kill: `kill/3`\n- Raise on failure: `kill!/3`"},"source":{"file":"lib/libtmux/entities.ex","line":384,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane"},{"id":"LibTmux.Pane.id","publicId":"LibTmux.Pane.id","name":"id","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-id"},{"id":"LibTmux.Pane.server_instance","publicId":"LibTmux.Pane.server_instance","name":"server_instance","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-server_instance"},{"id":"LibTmux.Pane.window_id","publicId":"LibTmux.Pane.window_id","name":"window_id","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-window_id"},{"id":"LibTmux.Pane.index","publicId":"LibTmux.Pane.index","name":"index","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-index"},{"id":"LibTmux.Pane.active","publicId":"LibTmux.Pane.active","name":"active","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-active"},{"id":"LibTmux.Pane.dead","publicId":"LibTmux.Pane.dead","name":"dead","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-dead"},{"id":"LibTmux.Pane.width","publicId":"LibTmux.Pane.width","name":"width","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-width"},{"id":"LibTmux.Pane.height","publicId":"LibTmux.Pane.height","name":"height","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-height"},{"id":"LibTmux.Pane.pid","publicId":"LibTmux.Pane.pid","name":"pid","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer() | nil)","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-pid"},{"id":"LibTmux.Pane.current_command","publicId":"LibTmux.Pane.current_command","name":"current_command","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-current_command"},{"id":"LibTmux.Pane.current_path","publicId":"LibTmux.Pane.current_path","name":"current_path","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-current_path"},{"id":"LibTmux.Pane.title","publicId":"LibTmux.Pane.title","name":"title","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-title"},{"id":"LibTmux.Pane.exit_status","publicId":"LibTmux.Pane.exit_status","name":"exit_status","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer() | nil)","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-exit_status"},{"id":"LibTmux.Pane.t/0","publicId":"LibTmux.Pane.t/0","name":"t/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Pane{\n active: LibTmux.Schema.observed(boolean()),\n current_command:\n LibTmux.Schema.observed(String.t()),\n current_path: LibTmux.Schema.observed(String.t()),\n dead: LibTmux.Schema.observed(boolean()),\n exit_status:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n index: LibTmux.Schema.observed(non_neg_integer()),\n pid:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n server_instance: String.t(),\n title: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer()),\n window_id: LibTmux.Schema.observed(String.t())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Pane{\n active: LibTmux.Schema.observed(boolean()),\n current_command:\n LibTmux.Schema.observed(String.t()),\n current_path: LibTmux.Schema.observed(String.t()),\n dead: LibTmux.Schema.observed(boolean()),\n exit_status:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n index: LibTmux.Schema.observed(non_neg_integer()),\n pid:\n LibTmux.Schema.observed(non_neg_integer() | nil),\n server_instance: String.t(),\n title: LibTmux.Schema.observed(String.t()),\n width: LibTmux.Schema.observed(non_neg_integer()),\n window_id: LibTmux.Schema.observed(String.t())\n }","doc":{"summary":"A physical pane; PID and exit status can be known absent, with separate coverage sentinels.","body":"`pid` is `nil` when tmux reports no PID. A reported PID or its absence does\nnot establish process liveness or cleanup."},"source":{"file":"lib/libtmux/entities.ex","line":449,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-t-0"},{"id":"LibTmux.Pane.split_value/0","publicId":"LibTmux.Pane.split_value/0","name":"split_value/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type split_value() :: %{\n id: String.t(),\n ref: LibTmux.Ref.t() | nil\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"split_value() :: %{\n id: String.t(),\n ref: LibTmux.Ref.t() | nil\n }","doc":{"summary":"A created pane ID; `ref` is bound for qualified control and `nil` for one-shot."},"source":{"file":"lib/libtmux/entities.ex","line":471,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split_value-0"},{"id":"LibTmux.Pane.split_option/0","publicId":"LibTmux.Pane.split_option/0","name":"split_option/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type split_option() ::\n LibTmux.Action.option()\n | {:axis, :horizontal | :vertical}\n | {:size, {:cells, 1..32767} | {:percent, 1..99}}\n | {:before | :detached, boolean()}\n | {:cwd, binary()}\n | {:command,\n :default\n | :empty\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"split_option() ::\n LibTmux.Action.option()\n | {:axis, :horizontal | :vertical}\n | {:size, {:cells, 1..32767} | {:percent, 1..99}}\n | {:before | :detached, boolean()}\n | {:cwd, binary()}\n | {:command,\n :default\n | :empty\n | {:shell, binary()}\n | {:argv, [binary(), ...]}}","doc":{"summary":"Split geometry and process arguments."},"source":{"file":"lib/libtmux/entities.ex","line":474,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split_option-0"},{"id":"LibTmux.Pane.capture_option/0","publicId":"LibTmux.Pane.capture_option/0","name":"capture_option/0","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type capture_option() ::\n LibTmux.Action.option()\n | {:start_line, -32768..32767}\n | {:end_line, -32768..32767 | :last}\n | {:join_lines, boolean()}\n | {:max_bytes, 0..1_048_576}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"capture_option() ::\n LibTmux.Action.option()\n | {:start_line, -32768..32767}\n | {:end_line, -32768..32767 | :last}\n | {:join_lines, boolean()}\n | {:max_bytes, 0..1_048_576}","doc":{"summary":"Bounded one-shot screen capture; line numbers are relative to the visible screen, with negative history offsets."},"source":{"file":"lib/libtmux/entities.ex","line":486,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-capture_option-0"},{"id":"LibTmux.Pane.split/3","publicId":"LibTmux.Pane.split/3","name":"split/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"split(connection, ref, options \\\\ [])\n@spec split(LibTmux.Action.connection(), LibTmux.Ref.t(), [\n split_option()\n ]) ::\n {:ok, LibTmux.Action.result(split_value())}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[split_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(split_value())} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Splits an exact pane and returns its ID and optional bound reference as `value`.","body":"A completed value contains `id` and `ref`. Qualified control binds the reference.\nUse it for another action without recapturing. It identifies the pane in\nthat server incarnation, contains no fresh fields and does not reserve its\nlifetime. Closing the connection does not invalidate the reference while\nthe pane and server remain. One-shot execution does not establish this\nbinding and returns `ref: nil`. Unsuccessful outcomes return\n`{:error, %LibTmux.Action.CompletionError{}}` with the original result.\n\nDefaults: vertical split, half size, detached, after the target, and tmux's\nsession default shell/command and directory. `axis: :horizontal` places panes\nside by side; `size: {:percent, n}` uses `-l n%` on every supported release.\nOptional `cwd` is literal format text. Choose `command: :default`, `:empty`,\n`{:shell, nonempty_bytes}` or `{:argv, [program | arguments]}`. Shell text\nuses the session's configured shell; argv uses `execvp` semantics, including\nPATH lookup and executable-text fallback. Empty argv/program and empty\nexplicit shell text are rejected. At most 64 argv entries and the existing\ncommand byte bounds apply; bytes must be NUL-free.\n\nSingleton argv uses the packaged helper to preserve exactly one argument.\nIt replaces itself with the pane program. tmux retains the helper path in\n`pane_start_command`; commandless respawn requires that installation to\nremain available. See [command forms](one-shot-actions.html#command-forms).\nSplit acknowledgement does not prove program startup or completion.\n\n`session: session_ref` selects exact membership/context, not a WindowLink\nindex. `timeout` defaults to 5000ms. No snapshot is changed; capture again\nwhen a new observation is needed. See `LibTmux.Action` for outcomes and the\none-shot identity check/use limitation.","examples":[{"lang":"elixir","code":"alias LibTmux.Pane\n\n{:ok, %{value: %{ref: created}}} =\n Pane.split(control, pane_ref, axis: :horizontal, size: {:percent, 30})\nPane.send_text(control, created, \"hello\")"}]},"source":{"file":"lib/libtmux/entities.ex","line":494,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split-3"},{"id":"LibTmux.Pane.split!/3","publicId":"LibTmux.Pane.split!/3","name":"split!/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"split!(connection, ref, options \\\\ [])\n@spec split!(LibTmux.Action.connection(), LibTmux.Ref.t(), [\n split_option()\n ]) :: split_value()","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[split_option()]","default":"[]"}],"returns":"split_value()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the created pane value when `split/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":537,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-split-bang-3"},{"id":"LibTmux.Pane.send_text/4","publicId":"LibTmux.Pane.send_text/4","name":"send_text/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_text(connection, ref, bytes, options \\\\ [])\n@spec send_text(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"bytes","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Sends 0..995 literal bytes to an exact pane, without interpreting key names.","body":"Hex-key encoding preserves NUL and invalid UTF-8. Empty input sends nothing.\nBoth transports use the same limit, fitting tmux 3.8's command argument\nceiling. Larger inputs fail validation before I/O; calls are never split.\nThe terminal's line discipline, active mode and application still determine\nhow input is handled; acknowledgement does not prove program consumption.\nOptions and outcomes follow `LibTmux.Action`. For named keys use `send_keys/4`.","examples":[{"lang":"elixir","code":"alias LibTmux.Pane\n\nPane.send_text(control, pane_ref, \"printf 'hello'\")"}]},"source":{"file":"lib/libtmux/entities.ex","line":543,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_text-4"},{"id":"LibTmux.Pane.send_text!/4","publicId":"LibTmux.Pane.send_text!/4","name":"send_text!/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_text!(connection, ref, bytes, options \\\\ [])\n@spec send_text!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) ::\n :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"bytes","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `send_text/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":564,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_text-bang-4"},{"id":"LibTmux.Pane.send_keys/4","publicId":"LibTmux.Pane.send_keys/4","name":"send_keys/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_keys(connection, ref, keys, options \\\\ [])\n@spec send_keys(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [String.t()],\n [LibTmux.Action.option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"keys","type":"[String.t()]"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Sends 1..128 named keys to an exact pane; unknown names are rejected.","body":"Supports Enter, Space, Tab, BTab, BSpace, Escape, arrows, Home, End, PageUp,\nPageDown, Insert, Delete and F1..F12. Distinct C-, M- and S- modifiers may\nprefix arrows, Home/End, PageUp/PageDown, Insert/Delete and F1..F12. Also\naccepts C-a..C-z, conventional ASCII control punctuation, and M- plus one\nprintable ASCII character. Unsupported combinations such as S-a and C-Enter\nfail before admission; tmux could otherwise type their spelling as text.\nOptions and outcomes follow `LibTmux.Action`.","examples":[{"lang":"elixir","code":"alias LibTmux.Pane\n\nPane.send_keys(control, pane_ref, [\"Enter\", \"C-c\"])"}]},"source":{"file":"lib/libtmux/entities.ex","line":571,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_keys-4"},{"id":"LibTmux.Pane.send_keys!/4","publicId":"LibTmux.Pane.send_keys!/4","name":"send_keys!/4","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"send_keys!(connection, ref, keys, options \\\\ [])\n@spec send_keys!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [String.t()],\n [LibTmux.Action.option()]\n ) ::\n :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"keys","type":"[String.t()]"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `send_keys/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":593,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-send_keys-bang-4"},{"id":"LibTmux.Pane.capture/3","publicId":"LibTmux.Pane.capture/3","name":"capture/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"capture(connection, ref, options \\\\ [])\n@spec capture(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [capture_option()]\n ) ::\n {:ok, LibTmux.Action.result(binary())}\n | {:error,\n LibTmux.Error.t()\n | LibTmux.Action.CompletionError.t()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[capture_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(binary())} | {:error, LibTmux.Error.t() | LibTmux.Action.CompletionError.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Captures bounded screen bytes through explicit one-shot execution.","body":"Returns `{:ok, result}` with bytes as `value` after acknowledged completion\nand native retirement. Failed commands return\n`{:error, %LibTmux.Action.CompletionError{}}` with their original evidence.\nDefaults: visible lines 0 through `:last`, no line joining, 65536 stdout\nbytes, 65536 stderr bytes and 5000ms. `:last` is accepted only for `end_line`.\nNegative line numbers include history;\ntmux clamps the requested range to available lines. Output overflow is an\nerror, never a successful partial screen. This observes rendered screen\nstate, not the program's original output stream.\n\nA Control argument returns `unsupported_transport`: arbitrary screen bytes\nare not qualified for shared control framing. No fallback occurs.","examples":[{"lang":"elixir","code":"alias LibTmux.Pane\n\nPane.capture(server, pane_ref, start_line: -100, max_bytes: 131_072)"}]},"source":{"file":"lib/libtmux/entities.ex","line":600,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-capture-3"},{"id":"LibTmux.Pane.capture!/3","publicId":"LibTmux.Pane.capture!/3","name":"capture!/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"capture!(connection, ref, options \\\\ [])\n@spec capture!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n [capture_option()]\n ) :: binary()","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[capture_option()]","default":"[]"}],"returns":"binary()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns screen bytes when `capture/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":626,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-capture-bang-3"},{"id":"LibTmux.Pane.kill/3","publicId":"LibTmux.Pane.kill/3","name":"kill/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"kill(connection, ref, options \\\\ [])\n@spec kill(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills an exact pane through one-shot execution.","body":"Returns `{:ok, result}` on command completion. Optional `session: session_ref` requires the pane's window to belong to that exact session and `timeout` defaults to 5000ms. The reference is\nchecked against the answering server before dispatch, with the usual one-shot\ncheck/use race. A reference to something that is already gone returns\n`{:error, %LibTmux.Action.CompletionError{}}` with the original evidence.\nControl connections return `unsupported_transport` before any I/O: a\nconnection cannot kill what it is attached to. Observations you already hold\nkeep describing the pane.","examples":[{"lang":"elixir","code":"alias LibTmux.Pane\n\nPane.kill(server, pane_ref)"}]},"source":{"file":"lib/libtmux/entities.ex","line":632,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-kill-3"},{"id":"LibTmux.Pane.kill!/3","publicId":"LibTmux.Pane.kill!/3","name":"kill!/3","namespace":"LibTmux.Pane","parent":"LibTmux.Pane","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(connection, ref, options \\\\ [])\n@spec kill!(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) :: :ok","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":652,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-pane-kill-bang-3"},{"id":"LibTmux.Protocol","publicId":"LibTmux.Protocol","name":"Protocol","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Assembles bounded control-mode replies and lexical notifications from bytes.","body":"Reply guards retain timestamp, command number and flags. Inside a block,\nnotification-looking output stays data. The parser cannot authenticate\ninjected matching guards: shared lanes must separately qualify commands,\nhooks and subscription expansion. Notification payloads need semantic\nvalidation before they can update a graph.\n\nA parse error retains already completed events in `error.details.events`.\nIts owner must retire the lane rather than reuse the rejected state."},"source":{"file":"lib/libtmux/protocol.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol"},{"id":"LibTmux.Protocol.guard_id/0","publicId":"LibTmux.Protocol.guard_id/0","name":"guard_id/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type guard_id() ::\n {non_neg_integer(), non_neg_integer(),\n non_neg_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"guard_id() ::\n {non_neg_integer(), non_neg_integer(),\n non_neg_integer()}","doc":{"summary":"A complete tmux reply guard: timestamp, command number and flags, retained for correlation."},"source":{"file":"lib/libtmux/protocol.ex","line":53,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-guard_id-0"},{"id":"LibTmux.Protocol.event/0","publicId":"LibTmux.Protocol.event/0","name":"event/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type event() ::\n {:reply, :ok | :error, guard_id(), [binary()]}\n | {:notification, atom(), binary()}\n | {:unknown, binary()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"event() ::\n {:reply, :ok | :error, guard_id(), [binary()]}\n | {:notification, atom(), binary()}\n | {:unknown, binary()}","doc":{"summary":"A framed reply or lexical notification. Payloads still require semantic validation before graph updates."},"source":{"file":"lib/libtmux/protocol.ex","line":55,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-event-0"},{"id":"LibTmux.Protocol.t/0","publicId":"LibTmux.Protocol.t/0","name":"t/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Immutable parser carry and bounded in-flight frame state; discard it after any parse error."},"source":{"file":"lib/libtmux/protocol.ex","line":60,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-t-0"},{"id":"LibTmux.Protocol.option/0","publicId":"LibTmux.Protocol.option/0","name":"option/0","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:max_chunk_bytes\n | :max_line_bytes\n | :max_frame_bytes\n | :max_frame_lines\n | :max_events, pos_integer()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:max_chunk_bytes\n | :max_line_bytes\n | :max_frame_bytes\n | :max_frame_lines\n | :max_events, pos_integer()}","doc":{"summary":"A positive parser ceiling, measured in bytes, lines or emitted events as named."},"source":{"file":"lib/libtmux/protocol.ex","line":62,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-option-0"},{"id":"LibTmux.Protocol.new/1","publicId":"LibTmux.Protocol.new/1","name":"new/1","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"function","modifiers":[],"signatures":[{"raw":"new(options \\\\ [])\n@spec new([option()]) :: t()","params":[{"name":"options","type":"[option()]","default":"[]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a parser with positive byte, line and event limits.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/protocol.ex","line":67,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-new-1"},{"id":"LibTmux.Protocol.feed/2","publicId":"LibTmux.Protocol.feed/2","name":"feed/2","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"function","modifiers":[],"signatures":[{"raw":"feed(state, chunk)\n@spec feed(t(), binary()) ::\n {:ok, [event()], t()} | {:error, LibTmux.Error.t()}","params":[{"name":"state","type":"t()"},{"name":"chunk","type":"binary()"}],"returns":"{:ok, [event()], t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Consumes one byte chunk without performing I/O.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/protocol.ex","line":84,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-feed-2"},{"id":"LibTmux.Protocol.finish/1","publicId":"LibTmux.Protocol.finish/1","name":"finish/1","namespace":"LibTmux.Protocol","parent":"LibTmux.Protocol","kind":"function","modifiers":[],"signatures":[{"raw":"finish(protocol)\n@spec finish(t()) :: :ok | {:error, LibTmux.Error.t()}","params":[{"name":"protocol","type":"t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Rejects a stream ending inside a line or reply block.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/protocol.ex","line":98,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-protocol-finish-1"},{"id":"LibTmux.Ref","publicId":"LibTmux.Ref","name":"Ref","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An exact observed target bound to one server instance.","body":"A window-link ID is its observed `{session_id, index, window_id}` binding,\nnot a unique lifetime identifier. Validation detects known stale instances;\nit does not reserve an object or close a one-shot check/use race."},"source":{"file":"lib/libtmux/ref.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref"},{"id":"LibTmux.Ref.entity","publicId":"LibTmux.Ref.entity","name":"entity","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"entity()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/ref.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-entity"},{"id":"LibTmux.Ref.id","publicId":"LibTmux.Ref.id","name":"id","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"id()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/ref.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-id"},{"id":"LibTmux.Ref.server_instance","publicId":"LibTmux.Ref.server_instance","name":"server_instance","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/ref.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-server_instance"},{"id":"LibTmux.Ref.entity/0","publicId":"LibTmux.Ref.entity/0","name":"entity/0","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity() ::\n :session | :window | :pane | :window_link | :client","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity() ::\n :session | :window | :pane | :window_link | :client","doc":{"summary":"The target kind; physical windows and session-relative links have different identities."},"source":{"file":"lib/libtmux/ref.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-entity-0"},{"id":"LibTmux.Ref.id/0","publicId":"LibTmux.Ref.id/0","name":"id/0","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type id() ::\n String.t()\n | {String.t(), non_neg_integer(), String.t()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"id() ::\n String.t()\n | {String.t(), non_neg_integer(), String.t()}","doc":{"summary":"A native ID or observed session/index/window link binding; neither reserves an object's lifetime."},"source":{"file":"lib/libtmux/ref.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-id-0"},{"id":"LibTmux.Ref.t/0","publicId":"LibTmux.Ref.t/0","name":"t/0","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Ref{\n entity: entity(),\n id: id(),\n server_instance: String.t()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Ref{\n entity: entity(),\n id: id(),\n server_instance: String.t()\n }","doc":{"summary":"An exact observed identity bound to a tmux server incarnation, separate from a connection epoch."},"source":{"file":"lib/libtmux/ref.ex","line":19,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-t-0"},{"id":"LibTmux.Ref.new/3","publicId":"LibTmux.Ref.new/3","name":"new/3","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"function","modifiers":[],"signatures":[{"raw":"new(entity, id, instance)\n@spec new(entity(), id(), String.t()) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"entity","type":"entity()"},{"name":"id","type":"id()"},{"name":"instance","type":"String.t()"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validates a native identity and binds it to a nonempty instance token.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/ref.ex","line":22,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-new-3"},{"id":"LibTmux.Ref.from_observation/1","publicId":"LibTmux.Ref.from_observation/1","name":"from_observation/1","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"function","modifiers":[],"signatures":[{"raw":"from_observation(arg1)\n@spec from_observation(LibTmux.Schema.observation()) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"arg1","type":"LibTmux.Schema.observation()"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Builds a reference from an observation's own identity and server instance.","body":"Validates the identity with `new/3` without I/O or a fresh observation.\nMalformed identities and other inputs return an `:invalid_target` error.\nOther captured fields may remain unloaded or unavailable. A reference does\nnot prove that its target still exists. Window links retain their tuple\nbinding and lifetime limitation; domain actions reject window-link refs.","examples":[{"lang":"elixir","code":"iex> pane = %LibTmux.Pane{id: \"%7\", server_instance: \"instance-a\"}\niex> {:ok, ref} = LibTmux.Ref.from_observation(pane)\niex> {ref.entity, ref.id, ref.server_instance}\n{:pane, \"%7\", \"instance-a\"}"}]},"source":{"file":"lib/libtmux/ref.ex","line":36,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-from_observation-1"},{"id":"LibTmux.Ref.validate/2","publicId":"LibTmux.Ref.validate/2","name":"validate/2","namespace":"LibTmux.Ref","parent":"LibTmux.Ref","kind":"function","modifiers":[],"signatures":[{"raw":"validate(ref, instance)\n@spec validate(t(), String.t()) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"ref","type":"t()"},{"name":"instance","type":"String.t()"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Rejects malformed references and known server-instance mismatches.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/ref.ex","line":71,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-ref-validate-2"},{"id":"LibTmux.Schema","publicId":"LibTmux.Schema","name":"Schema","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Defines observed fields, wire names and graph relations.","body":"The table is a semantic overlay on tmux 3.3 format variables. It drives\nobservation validation, portable filtering and reference generation. Empty text\nremains text; only explicitly nullable fields admit `nil`."},"source":{"file":"lib/libtmux/schema.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema"},{"id":"LibTmux.Schema.entity/0","publicId":"LibTmux.Schema.entity/0","name":"entity/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity() ::\n :session | :window | :window_link | :pane | :client","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity() ::\n :session | :window | :window_link | :pane | :client","doc":{"summary":"An entity's canonical local name. Physical windows and membership links are distinct."},"source":{"file":"lib/libtmux/schema.ex","line":10,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity-0"},{"id":"LibTmux.Schema.entity_module/0","publicId":"LibTmux.Schema.entity_module/0","name":"entity_module/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity_module() ::\n LibTmux.Session\n | LibTmux.Window\n | LibTmux.WindowLink\n | LibTmux.Pane\n | LibTmux.Client","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity_module() ::\n LibTmux.Session\n | LibTmux.Window\n | LibTmux.WindowLink\n | LibTmux.Pane\n | LibTmux.Client","doc":{"summary":"The observation struct modules accepted alongside canonical entity names."},"source":{"file":"lib/libtmux/schema.ex","line":13,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity_module-0"},{"id":"LibTmux.Schema.entity_selector/0","publicId":"LibTmux.Schema.entity_selector/0","name":"entity_selector/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity_selector() :: entity() | entity_module()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity_selector() :: entity() | entity_module()","doc":{"summary":"A canonical entity atom or its corresponding observation module."},"source":{"file":"lib/libtmux/schema.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity_selector-0"},{"id":"LibTmux.Schema.observed/1","publicId":"LibTmux.Schema.observed/1","name":"observed/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type observed(value) :: value | :unloaded | :unavailable","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["value"],"type":"observed(value) :: value | :unloaded | :unavailable","doc":{"summary":"A known value, unloaded coverage, or an unavailable capability; nil belongs to the value type."},"source":{"file":"lib/libtmux/schema.ex","line":20,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-observed-1"},{"id":"LibTmux.Schema.observation/0","publicId":"LibTmux.Schema.observation/0","name":"observation/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type observation() ::\n LibTmux.Session.t()\n | LibTmux.Window.t()\n | LibTmux.WindowLink.t()\n | LibTmux.Pane.t()\n | LibTmux.Client.t()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"observation() ::\n LibTmux.Session.t()\n | LibTmux.Window.t()\n | LibTmux.WindowLink.t()\n | LibTmux.Pane.t()\n | LibTmux.Client.t()","doc":{"summary":"One physical or contextual observation from a captured graph."},"source":{"file":"lib/libtmux/schema.ex","line":23,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-observation-0"},{"id":"LibTmux.Schema.value_type/0","publicId":"LibTmux.Schema.value_type/0","name":"value_type/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type value_type() ::\n :string\n | :integer\n | :nullable_integer\n | :boolean\n | {:id, entity()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"value_type() ::\n :string\n | :integer\n | :nullable_integer\n | :boolean\n | {:id, entity()}","doc":{"summary":"A field's validation category; integer fields use the schema's nonnegative 32-bit range."},"source":{"file":"lib/libtmux/schema.ex","line":31,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-value_type-0"},{"id":"LibTmux.Schema.field/0","publicId":"LibTmux.Schema.field/0","name":"field/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type field() :: %{\n name: atom(),\n wire: String.t(),\n format: String.t() | nil,\n type: value_type(),\n since: String.t(),\n nullable: boolean()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"field() :: %{\n name: atom(),\n wire: String.t(),\n format: String.t() | nil,\n type: value_type(),\n since: String.t(),\n nullable: boolean()\n }","doc":{"summary":"Field metadata shared by validation and documentation; nil format identifies a derived field."},"source":{"file":"lib/libtmux/schema.ex","line":33,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-field-0"},{"id":"LibTmux.Schema.relation/0","publicId":"LibTmux.Schema.relation/0","name":"relation/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type relation() :: {:one | :many, entity()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"relation() :: {:one | :many, entity()}","doc":{"summary":"The cardinality and target entity of one indexed graph relation."},"source":{"file":"lib/libtmux/schema.ex","line":42,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-relation-0"},{"id":"LibTmux.Schema.operator/0","publicId":"LibTmux.Schema.operator/0","name":"operator/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type operator() ::\n :equals\n | :not\n | :in\n | :not_in\n | :lt\n | :lte\n | :gt\n | :gte\n | :contains\n | :starts_with\n | :ends_with","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"operator() ::\n :equals\n | :not\n | :in\n | :not_in\n | :lt\n | :lte\n | :gt\n | :gte\n | :contains\n | :starts_with\n | :ends_with","doc":{"summary":"A scalar filter operator; each field category permits only its applicable subset."},"source":{"file":"lib/libtmux/schema.ex","line":44,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-operator-0"},{"id":"LibTmux.Schema.entities/0","publicId":"LibTmux.Schema.entities/0","name":"entities/0","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"entities()\n@spec entities() :: [entity()]","params":[],"returns":"[entity()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns supported entity names in a stable order.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":139,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entities-0"},{"id":"LibTmux.Schema.module/1","publicId":"LibTmux.Schema.module/1","name":"module/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"module(entity)\n@spec module(entity()) :: entity_module()","params":[{"name":"entity","type":"entity()"}],"returns":"entity_module()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the ordinary observation struct module for an entity.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":147,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-module-1"},{"id":"LibTmux.Schema.entity/1","publicId":"LibTmux.Schema.entity/1","name":"entity/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"entity(entity)\n@spec entity(entity_selector()) :: entity()","params":[{"name":"entity","type":"entity_selector()"}],"returns":"entity()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Resolves an entity atom or its observation module.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":155,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-entity-1"},{"id":"LibTmux.Schema.fields/1","publicId":"LibTmux.Schema.fields/1","name":"fields/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"fields(entity)\n@spec fields(entity_selector()) :: %{\n required(atom()) => field()\n }","params":[{"name":"entity","type":"entity_selector()"}],"returns":"%{required(atom()) => field()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the whitelisted field metadata for an entity.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":168,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-fields-1"},{"id":"LibTmux.Schema.field/2","publicId":"LibTmux.Schema.field/2","name":"field/2","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"field(entity, name)\n@spec field(entity_selector(), atom()) :: field() | nil","params":[{"name":"entity","type":"entity_selector()"},{"name":"name","type":"atom()"}],"returns":"field() | nil"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns field metadata, or nil for a field outside the schema.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":188,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-field-2"},{"id":"LibTmux.Schema.relations/1","publicId":"LibTmux.Schema.relations/1","name":"relations/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"relations(entity)\n@spec relations(entity_selector()) :: %{\n required(atom()) => relation()\n }","params":[{"name":"entity","type":"entity_selector()"}],"returns":"%{required(atom()) => relation()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns each relation's cardinality and target entity.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":196,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-relations-1"},{"id":"LibTmux.Schema.relation_wire/1","publicId":"LibTmux.Schema.relation_wire/1","name":"relation_wire/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"relation_wire(name)\n@spec relation_wire(atom()) :: String.t()","params":[{"name":"name","type":"atom()"}],"returns":"String.t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a relation's explicit stable wire name.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":204,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-relation_wire-1"},{"id":"LibTmux.Schema.operators/1","publicId":"LibTmux.Schema.operators/1","name":"operators/1","namespace":"LibTmux.Schema","parent":"LibTmux.Schema","kind":"function","modifiers":[],"signatures":[{"raw":"operators(map)\n@spec operators(field()) :: [operator()]","params":[{"name":"map","type":"field()"}],"returns":"[operator()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the portable operators allowed by a scalar field's value category.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/schema.ex","line":212,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-schema-operators-1"},{"id":"LibTmux.Selection","publicId":"LibTmux.Selection","name":"Selection","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An ordered, materialized Enumerable over one captured entity type.","body":"Enumeration never refreshes or performs I/O. `where/2` accepts predicate\ndata; `filter/2` accepts unary Elixir functions with Enum truthiness.\nHolding a selection retains its snapshot graph. `Enum.to_list/1` projects\nordinary values when graph context is no longer needed."},"source":{"file":"lib/libtmux/selection.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection"},{"id":"LibTmux.Selection.t/1","publicId":"LibTmux.Selection.t/1","name":"t/1","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque t(item)","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","typeParams":["item"],"doc":{"summary":"An ordered selection retaining items of one observation type and their originating snapshot."},"source":{"file":"lib/libtmux/selection.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-t-1"},{"id":"LibTmux.Selection.t/0","publicId":"LibTmux.Selection.t/0","name":"t/0","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: t(LibTmux.Schema.observation())","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: t(LibTmux.Schema.observation())","doc":{"summary":"A selection without a concrete observation type; use `t:t/1` to preserve item types."},"source":{"file":"lib/libtmux/selection.ex","line":22,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-t-0"},{"id":"LibTmux.Selection.new/2","publicId":"LibTmux.Selection.new/2","name":"new/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":["overload"],"signatures":[{"raw":"new(snapshot, entity)\n@spec new(\n LibTmux.Snapshot.t(),\n :session | LibTmux.Session\n ) :: t(LibTmux.Session.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":session | LibTmux.Session"}],"returns":"t(LibTmux.Session.t())"},{"raw":"new(snapshot, entity)\n@spec new(LibTmux.Snapshot.t(), :window | LibTmux.Window) ::\n t(LibTmux.Window.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":window | LibTmux.Window"}],"returns":"t(LibTmux.Window.t())"},{"raw":"new(snapshot, entity)\n@spec new(LibTmux.Snapshot.t(), :pane | LibTmux.Pane) ::\n t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":pane | LibTmux.Pane"}],"returns":"t(LibTmux.Pane.t())"},{"raw":"new(snapshot, entity)\n@spec new(\n LibTmux.Snapshot.t(),\n :window_link | LibTmux.WindowLink\n ) :: t(LibTmux.WindowLink.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":window_link | LibTmux.WindowLink"}],"returns":"t(LibTmux.WindowLink.t())"},{"raw":"new(snapshot, entity)\n@spec new(LibTmux.Snapshot.t(), :client | LibTmux.Client) ::\n t(LibTmux.Client.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"entity","type":":client | LibTmux.Client"}],"returns":"t(LibTmux.Client.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Materializes the observed items of an entity without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":25,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-new-2"},{"id":"LibTmux.Selection.size/1","publicId":"LibTmux.Selection.size/1","name":"size/1","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"size(selection)\n@spec size(t()) :: non_neg_integer()","params":[{"name":"selection","type":"t()"}],"returns":"non_neg_integer()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns cached materialized size in constant time.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":47,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-size-1"},{"id":"LibTmux.Selection.where/2","publicId":"LibTmux.Selection.where/2","name":"where/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"where(selection, criteria)\n@spec where(t(item), LibTmux.Filter.input()) :: t(item)\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()"}],"returns":"t(item)","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Filters validated data while retaining order and captured graph context.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot}\niex> rows = %{window: [%{id: \"@0\"}, %{id: \"@1\"}], pane: [\n...> %{id: \"%0\", window_id: \"@0\", active: true, current_command: \"bash\"},\n...> %{id: \"%1\", window_id: \"@0\", active: false, current_command: \"nvim\"},\n...> %{id: \"%2\", window_id: \"@1\", active: true, current_command: \"nvim\"}]}\niex> {:ok, snapshot} = Snapshot.new(rows,\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> complete: [:pane], fields: %{pane: [:window_id, :active, :current_command]})\niex> snapshot |> Snapshot.windows()\n...> |> Selection.where(panes: [some: [active: true, current_command: \"nvim\"]])\n...> |> Enum.map(& &1.id)\n[\"@1\"]","intro":"One pane must satisfy both conditions inside `some`. Window `@0` has an active shell and an inactive editor; only `@1` has an active editor. See [filtering](filtering.html#predicate-grammar) for the complete semantics."}]},"source":{"file":"lib/libtmux/selection.ex","line":55,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-where-2"},{"id":"LibTmux.Selection.filter/2","publicId":"LibTmux.Selection.filter/2","name":"filter/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"filter(selection, predicate)\n@spec filter(t(item), (item -> as_boolean(term()))) ::\n t(item)\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"predicate","type":"(item -> as_boolean(term()))"}],"returns":"t(item)","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Filters with a unary local function; normal predicate exceptions propagate.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":82,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-filter-2"},{"id":"LibTmux.Selection.member_id?/2","publicId":"LibTmux.Selection.member_id?/2","name":"member_id?/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"member_id?(selection, id)\n@spec member_id?(t(), LibTmux.Ref.id()) :: boolean()","params":[{"name":"selection","type":"t()"},{"name":"id","type":"LibTmux.Ref.id()"}],"returns":"boolean()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Checks native identity separately from Enumerable element membership.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":97,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-member_id-question-2"},{"id":"LibTmux.Selection.one/2","publicId":"LibTmux.Selection.one/2","name":"one/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one(selection, criteria \\\\ [])\n@spec one(t(item), LibTmux.Filter.input()) ::\n {:ok, item} | {:error, LibTmux.Error.t()}\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"{:ok, item} | {:error, LibTmux.Error.t()}","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns exactly one match, or a structured cardinality error; stops at the second match.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot}\niex> {:ok, snapshot} = Snapshot.new(%{pane: [%{id: \"%0\"}, %{id: \"%1\"}]},\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> fields: %{pane: [:id]})\niex> panes = Snapshot.panes(snapshot)\niex> {:ok, pane} = Selection.one(panes, id: \"%1\")\niex> pane.id\n\"%1\"\niex> {:error, error} = Selection.one(panes, id: \"%9\")\niex> error.kind\n:no_match\niex> {:error, error} = Selection.one(panes)\niex> error.kind\n:multiple_matches"}]},"source":{"file":"lib/libtmux/selection.ex","line":105,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one-2"},{"id":"LibTmux.Selection.one!/2","publicId":"LibTmux.Selection.one!/2","name":"one!/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one!(selection, criteria \\\\ [])\n@spec one!(t(item), LibTmux.Filter.input()) :: item\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"item","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns exactly one match or raises its cardinality error.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":129,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one-bang-2"},{"id":"LibTmux.Selection.one_or_nil/2","publicId":"LibTmux.Selection.one_or_nil/2","name":"one_or_nil/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one_or_nil(selection, criteria \\\\ [])\n@spec one_or_nil(t(item), LibTmux.Filter.input()) ::\n {:ok, item | nil} | {:error, LibTmux.Error.t()}\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"{:ok, item | nil} | {:error, LibTmux.Error.t()}","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns one match or nil; a second match remains an error.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot}\niex> {:ok, snapshot} = Snapshot.new(%{pane: [%{id: \"%0\"}, %{id: \"%1\"}]},\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> fields: %{pane: [:id]})\niex> panes = Snapshot.panes(snapshot)\niex> Selection.one_or_nil(panes, id: \"%9\")\n{:ok, nil}\niex> {:ok, pane} = Selection.one_or_nil(panes, id: \"%0\")\niex> pane.id\n\"%0\"\niex> {:error, error} = Selection.one_or_nil(panes)\niex> error.kind\n:multiple_matches"}]},"source":{"file":"lib/libtmux/selection.ex","line":137,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one_or_nil-2"},{"id":"LibTmux.Selection.one_or_nil!/2","publicId":"LibTmux.Selection.one_or_nil!/2","name":"one_or_nil!/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"one_or_nil!(selection, criteria \\\\ [])\n@spec one_or_nil!(t(item), LibTmux.Filter.input()) ::\n item | nil\n when item: LibTmux.Schema.observation()","params":[{"name":"selection","type":"t(item)"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"item | nil","typeParams":["item: LibTmux.Schema.observation()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns one match or nil, raising on multiple matches.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":160,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-one_or_nil-bang-2"},{"id":"LibTmux.Selection.exists?/2","publicId":"LibTmux.Selection.exists?/2","name":"exists?/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"exists?(selection, criteria \\\\ [])\n@spec exists?(t(), LibTmux.Filter.input()) :: boolean()","params":[{"name":"selection","type":"t()"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"boolean()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns true on the first matching observed item.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":168,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-exists-question-2"},{"id":"LibTmux.Selection.count/2","publicId":"LibTmux.Selection.count/2","name":"count/2","namespace":"LibTmux.Selection","parent":"LibTmux.Selection","kind":"function","modifiers":[],"signatures":[{"raw":"count(selection, criteria \\\\ [])\n@spec count(t(), LibTmux.Filter.input()) ::\n non_neg_integer()","params":[{"name":"selection","type":"t()"},{"name":"criteria","type":"LibTmux.Filter.input()","default":"[]"}],"returns":"non_neg_integer()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Counts observed matching items; use size/1 for cached unfiltered size.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/selection.ex","line":177,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-selection-count-2"},{"id":"LibTmux.Server","publicId":"LibTmux.Server","name":"Server","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Describes a local tmux server for capturing state and running commands.","body":"`new/1` takes an absolute `:executable` path. Use\n`System.find_executable/1` to resolve a name such as `\"tmux\"` through PATH\nbefore construction. The optional `:cwd` and `:env` default to the caller's\nworking directory and environment. Construction validates the path forms\nwithout checking that the executable or socket exists. A Server is an\nimmutable value; constructing one with `new/1` neither connects to tmux nor\nstarts it. Commands use `-N`, so a missing daemon is never started\nimplicitly. `start/1` and `with_owned/2` start a private server and return\na Server that `stop/2` can retire.\n\n## Choosing the server\n\n`new/1` picks the socket in this order, and the first rule that applies\nwins:\n\n1. `:socket`, an absolute socket path, passes `-S`.\n2. `:socket_name`, a socket name, passes `-L`. Pass at most one of\n `:socket` and `:socket_name`.\n3. The `LIBTMUX_SOCKET_PATH` variable passes `-S` with its path.\n4. The `LIBTMUX_SOCKET` variable passes `-L` with its name.\n5. Otherwise no socket is passed, and tmux chooses. It follows the server\n that `TMUX` names when `:env` has one, and otherwise uses its default\n socket: `default` in the `tmux-UID` directory of `TMUX_TMPDIR`, or of\n `/tmp`.\n\nAn explicit option ignores both variables, even an invalid one. When both\nvariables are set, the path wins, as `-S` does over `-L` in tmux. A variable\nthat is empty counts as unset, each one alone. The variables come from the\n`:env` option, which defaults to the caller's environment, so a Server built\nwith its own `:env` ignores the caller's variables. A set variable with an\ninvalid value raises `ArgumentError` that names the variable and never\nrepeats its value.\n\nThe choice is made once, in `new/1`, and `t:t/0` records it. A Server that\nchose a socket removes `TMUX` and `TMUX_PANE` from the environment it gives\ntmux, so a surrounding tmux session cannot redirect it. A Server that chose\nnone keeps both, for one-shot execution and for control connections alike,\nso a program run inside tmux reaches the server it runs in. Leave `TMUX` out\nof `:env` to send a Server with no socket to tmux's default socket instead.\n\n## What is on here\n\nServer describes the endpoint. In Elixir, observation, selection and action\nfunctions live in their own modules. Start with these groups:\n\n**Connecting.** Describe the server for one-shot commands, which do not attach\na client. Attach a control client to an existing session for the length of a\ncallback; the client closes afterwards. Run a control client under application\nsupervision. See the [managed control guide](managed-control.html) for\nconnection setup and the host's hook and command-alias requirements.\n\n- Describe: `new/1`\n- Attach for a callback: `LibTmux.Control.with_connection/2`\n- Supervise: `LibTmux.Control.start_link/1`, `LibTmux.Control.child_spec/1`\n\n**Owning a private server.** Start a tmux server in a private directory,\nwith no inherited `TMUX` or `TMUX_PANE`, and stop it when you are done.\n`with_owned/2` does both around a function, so a program needs no shell step\nto start or clean up tmux. The process that starts the server owns it, and the\nserver stops when that process exits. `stop/2` refuses a Server that\n`start/1` did not create; `kill/2` sends `kill-server` to any Server.\n\n- Start and stop around a function: `with_owned/2`\n- Start: `start/1`\n- Stop: `stop/2`\n- Kill any server: `kill/2`\n- Raise on failure: `kill!/2`\n\n**Finding one thing.** Capture a snapshot, then require one match or allow no\nmatch. Both reject multiple matches. Turn the chosen observation into a\nreference tied to the daemon that supplied it, ready for an action.\n\n- Capture: `snapshot/2`\n- Require one: `LibTmux.Selection.one/2`\n- Allow none: `LibTmux.Selection.one_or_nil/2`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Listing everything.** Capture sessions, physical windows, window links, panes\nand attached clients as a `LibTmux.Snapshot`. One accessor per kind returns a\nselection from that captured graph without contacting tmux again. Capture\nfailures return an error, not an empty server. Capture covers an interval\nrather than an atomic transaction; take another snapshot when fresh state is\nneeded.\n\n- Capture: `snapshot/2`\n- Select: `LibTmux.Snapshot.sessions/1`, `LibTmux.Snapshot.windows/1`,\n `LibTmux.Snapshot.window_links/1`, `LibTmux.Snapshot.panes/1`,\n `LibTmux.Snapshot.clients/1`\n\n**Querying things and getting around.** Select by criteria such as\n`active: true`, or by an Elixir function; selections work with `Enum` and\n`Stream`. Navigation functions use the supplied snapshot. Plural helpers return\nselections for further filtering; a `LibTmux.WindowLink` preserves a window's\nmembership in one session.\n\n- By criteria: `LibTmux.Selection.where/2`\n- By function: `LibTmux.Selection.filter/2`\n- Down: `LibTmux.Session.windows/2`, `LibTmux.Session.panes/2`,\n `LibTmux.Window.panes/2`\n- Focused: `LibTmux.Session.active_window/2`\n- Other relationships: `LibTmux.Snapshot.related/4`\n\n**Changing things.** Create detached sessions and windows on an existing server\nusing one-shot execution. Each returns the created ID with `ref: nil`; capture\na fresh observation to obtain a reference. Split a pane to create a pane and\nget its ID in the completed result. A qualified Control connection also\nsupplies a bound reference; one-shot split returns `ref: nil`. Rename a session\nor a window. Send literal bytes or named keys such as `\"Enter\"` to a pane.\nSplit, rename and input take a Server or Control connection followed by a\nreference. Domain bang variants return completed values or raise; nonbang\nvariants return `{:ok, result}` for completed commands and `{:error, error}`\notherwise. See the [action guide](one-shot-actions.html) and\n[recovery guide](recovery.html).\n\n- Create: `new_session/3`, `LibTmux.Session.new_window/4`\n- Split: `LibTmux.Pane.split/3`\n- Rename: `LibTmux.Session.rename/4`, `LibTmux.Window.rename/4`\n- Send literal bytes: `LibTmux.Pane.send_text/4`\n- Send named keys: `LibTmux.Pane.send_keys/4`\n\n**Reading screens, options and formats.** Capture pane screen bytes through\none-shot execution, which requires a Server. On a control connection, execute a\nrequest that reads a field or writes a server user option. Submit the request\nand keep the returned `LibTmux.Operation` when the result needs to remain\navailable for independent inspection.\n\n- Screen: `LibTmux.Pane.capture/3`\n- Execute: `LibTmux.Control.execute/3`\n- Read a field: `LibTmux.Control.Request.field/2`\n- Write a user option: `LibTmux.Control.Request.set_user_option/2`\n- Submit: `LibTmux.Control.submit/3`\n\n**Running any other command.** Build a command to run any other tmux command.\nRunning executes one command with literal arguments and returns bounded output\nand exit evidence. Configured server hooks can still run. Targeted one-shot\nactions check the observed server identity before writing, leaving a race if\nthe daemon is replaced between that check and the command. Use a qualified\nControl connection for mutations bound to one daemon instance.\n\n- Build: `LibTmux.Command.new/2`\n- Run: `run/3`","examples":[{"lang":"elixir","code":"alias LibTmux.{Selection, Server, Snapshot}\n\ntmux = System.find_executable(\"tmux\")\n\nServer.with_owned([executable: tmux], fn server ->\n {:ok, _} = Server.new_session(server, \"demo\", command: {:argv, [\"/bin/cat\"]})\n\n server\n |> Server.snapshot!()\n |> Snapshot.panes()\n |> Enum.map(& &1.id)\nend)","intro":"Start a private server for the length of a function. This creates a session, lists its panes, and leaves nothing behind:"},{"lang":"elixir","code":"alias LibTmux.{Selection, Server, Snapshot}\n\nserver =\n Server.new(\n executable: executable,\n socket: socket,\n env: Map.drop(System.get_env(), [\"TMUX\", \"TMUX_PANE\"])\n )\n\nsnapshot = Server.snapshot!(server)\n\nsnapshot\n|> Snapshot.panes()\n|> Selection.where(active: true)\n|> Enum.map(& &1.id)","intro":"The result is `[\"%0\"]`. To inspect a server that already runs, set `executable` to the absolute tmux executable and `socket` to the absolute socket path of that server. Leave out `socket` to follow `LIBTMUX_SOCKET_PATH`, `LIBTMUX_SOCKET` or tmux's default socket. This example captures once and lists each physical window's active pane:"}]},"source":{"file":"lib/libtmux/server.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server"},{"id":"LibTmux.Server.executable","publicId":"LibTmux.Server.executable","name":"executable","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-executable"},{"id":"LibTmux.Server.socket","publicId":"LibTmux.Server.socket","name":"socket","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t() | nil","value":"nil","source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-socket"},{"id":"LibTmux.Server.socket_name","publicId":"LibTmux.Server.socket_name","name":"socket_name","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t() | nil","value":"nil","source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-socket_name"},{"id":"LibTmux.Server.cwd","publicId":"LibTmux.Server.cwd","name":"cwd","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-cwd"},{"id":"LibTmux.Server.env","publicId":"LibTmux.Server.env","name":"env","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(binary()) => binary()}","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-env"},{"id":"LibTmux.Server.daemon","publicId":"LibTmux.Server.daemon","name":"daemon","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"pid() | nil","value":"nil","source":{"file":"lib/libtmux/server.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-daemon"},{"id":"LibTmux.Server.t/0","publicId":"LibTmux.Server.t/0","name":"t/0","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Server{\n cwd: String.t(),\n daemon: pid() | nil,\n env: %{optional(binary()) => binary()},\n executable: String.t(),\n socket: String.t() | nil,\n socket_name: String.t() | nil\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Server{\n cwd: String.t(),\n daemon: pid() | nil,\n env: %{optional(binary()) => binary()},\n executable: String.t(),\n socket: String.t() | nil,\n socket_name: String.t() | nil\n }","doc":{"summary":"A local server descriptor; constructing it neither connects nor reserves server identity.","body":"At most one of `:socket` and `:socket_name` is set. Both are `nil` when tmux\nchooses its default socket. `daemon` names the process that owns a server\ncreated by `start/1`, and is `nil` for every other Server."},"source":{"file":"lib/libtmux/server.ex","line":204,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-t-0"},{"id":"LibTmux.Server.option/0","publicId":"LibTmux.Server.option/0","name":"option/0","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:executable | :socket | :socket_name | :cwd,\n String.t()}\n | {:env, %{optional(binary()) => binary()}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:executable | :socket | :socket_name | :cwd,\n String.t()}\n | {:env, %{optional(binary()) => binary()}}","doc":{"summary":"Descriptor inputs.","body":"The executable, `:socket` and cwd are absolute NUL-free paths. `:socket_name`\nis a single file name without a slash or NUL that is not `.` or `..`."},"source":{"file":"lib/libtmux/server.ex","line":219,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-option-0"},{"id":"LibTmux.Server.new/1","publicId":"LibTmux.Server.new/1","name":"new/1","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"new(options)\n@spec new([option()]) :: t()","params":[{"name":"options","type":"[option()]"}],"returns":"t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Constructs a descriptor for an existing server without connecting or creating it.","body":"`:socket` selects the socket by path and `:socket_name` by name; pass at most\none. With neither, the descriptor reads `LIBTMUX_SOCKET_PATH`, then\n`LIBTMUX_SOCKET`, from `:env`, and selects no socket when neither is set, so\ntmux uses its default. See \"Choosing the server\" in the module\ndocumentation. Raises `ArgumentError` for conflicting or invalid input,\nnaming a variable but never its value.\n\nSee the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/server.ex","line":229,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-new-1"},{"id":"LibTmux.Server.start_option/0","publicId":"LibTmux.Server.start_option/0","name":"start_option/0","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type start_option() ::\n {:executable, String.t()}\n | {:root, String.t()}\n | {:config_file, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:timeout, 1..600_000}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"start_option() ::\n {:executable, String.t()}\n | {:root, String.t()}\n | {:config_file, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:timeout, 1..600_000}","doc":{"summary":"Inputs for `start/1`.","body":"`:executable` is required. `:root` is the directory that holds the private\ndirectory and defaults to `System.tmp_dir!/0`. `:config_file` defaults to\n`\"/dev/null\"`. `:env` overlays the daemon's environment; `TMUX` and\n`TMUX_PANE` never reach it. `:timeout` bounds startup, in milliseconds."},"source":{"file":"lib/libtmux/server.ex","line":312,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-start_option-0"},{"id":"LibTmux.Server.start/1","publicId":"LibTmux.Server.start/1","name":"start/1","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"start(options)\n@spec start([start_option()]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"options","type":"[start_option()]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Starts a private tmux server and returns a Server for it.","body":"The server runs in the foreground under libtmux's native helper, in a\ndirectory of its own below `:root`: the directory has mode 700, holds the\nsocket and is `TMUX_TMPDIR` for the daemon and its panes. The daemon never\ninherits `TMUX` or `TMUX_PANE`, reads `:config_file` (an empty file by\ndefault), and stays up with no session. `start/1` returns when the socket\nanswers, or when `:timeout` (5000 ms by default) ends.\n\nThe process that calls `start/1` owns the server. When it exits, the daemon\nstops and its directory is removed. If the VM is killed, the native helper\nstill retires the daemon, but the directory stays. Other processes may use\nthe returned Server. Stop it with `stop/2` as soon as the work is done, or\nuse `with_owned/2`.\n\nReturns `{:error, error}` for an invalid option, a socket path that would\nexceed the 107 usable bytes of `sun_path`, a daemon that cannot start or\nexits before it answers, and a timeout. A failed start leaves no directory\nbehind. It starts only on Linux, like the rest of libtmux.","examples":[{"lang":"elixir","code":"alias LibTmux.Server\n\n{:ok, server} = Server.start(executable: System.find_executable(\"tmux\"))\n{:ok, _} = Server.new_session(server, \"demo\", command: {:argv, [\"/bin/cat\"]})\n:ok = Server.stop(server)"}]},"source":{"file":"lib/libtmux/server.ex","line":327,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-start-1"},{"id":"LibTmux.Server.stop/2","publicId":"LibTmux.Server.stop/2","name":"stop/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"stop(server, options \\\\ [])\n@spec stop(t(), [{:timeout, 1..600_000}]) ::\n :ok | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"t()"},{"name":"options","type":"[{:timeout, 1..600_000}]","default":"[]"}],"returns":":ok | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Stops a server that `start/1` created and removes its directory.","body":"Sends `kill-server`, waits until the native helper proves that the daemon\nhas exited, and removes the directory. Stopping a server\nthat already stopped returns `:ok`. If the daemon still answers when\n`:timeout` (5000 ms by default) ends, or the directory cannot be removed,\nit returns `{:error, error}` and keeps the directory; call it again to\nretry.\n\nReturns `{:error, error}` with kind `:not_owned` for a Server that `new/1`\nbuilt or that another process started and already stopped."},"source":{"file":"lib/libtmux/server.ex","line":357,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-stop-2"},{"id":"LibTmux.Server.with_owned/2","publicId":"LibTmux.Server.with_owned/2","name":"with_owned/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"with_owned(options, fun)\n@spec with_owned([start_option()], (t() -> result)) ::\n result\n when result: term()","params":[{"name":"options","type":"[start_option()]"},{"name":"fun","type":"(t() -> result)"}],"returns":"result","typeParams":["result: term()"]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Starts a private server, calls `fun` with it and stops it afterwards.","body":"Takes the options of `start/1`. Returns the value of `fun`. A start failure\nraises its `LibTmux.Error` before `fun` runs. The server stops when `fun`\nreturns, raises, throws or exits. If `fun` completes and the stop fails,\n`with_owned/2` raises the stop error; a failing stop never replaces an\nexception from `fun`.","examples":[{"lang":"elixir","code":"alias LibTmux.Server\n\nServer.with_owned([executable: System.find_executable(\"tmux\")], fn server ->\n {:ok, _} = Server.new_session(server, \"demo\", command: {:argv, [\"/bin/cat\"]})\n Server.snapshot!(server)\nend)"}]},"source":{"file":"lib/libtmux/server.ex","line":381,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-with_owned-2"},{"id":"LibTmux.Server.kill/2","publicId":"LibTmux.Server.kill/2","name":"kill/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"kill(server, options \\\\ [])\n@spec kill(t(), [LibTmux.Action.option()]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills the server with `kill-server`, whoever started it.","body":"Returns `{:ok, result}` when tmux acknowledges the command and\n`{:error, error}` otherwise, for example when no server answers. The\ncommand ends every session and pane on the server. It does not remove the\ndirectory of a server from `start/1`; use `stop/2` for that. The only\noption is `timeout` (5000 ms by default). See `LibTmux.Action` for outcomes.","examples":[{"lang":"elixir","code":"alias LibTmux.Server\n\nServer.kill(server)"}]},"source":{"file":"lib/libtmux/server.ex","line":421,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-kill-2"},{"id":"LibTmux.Server.kill!/2","publicId":"LibTmux.Server.kill!/2","name":"kill!/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(server, options \\\\ [])\n@spec kill!(t(), [LibTmux.Action.option()]) :: :ok","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/2` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/server.ex","line":439,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-kill-bang-2"},{"id":"LibTmux.Server.new_session/3","publicId":"LibTmux.Server.new_session/3","name":"new_session/3","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"new_session(server, name, options \\\\ [])\n@spec new_session(t(), binary(), [\n LibTmux.Action.creation_option()\n ]) ::\n {:ok,\n LibTmux.Action.result(\n LibTmux.Action.creation_value()\n )}\n | {:error, LibTmux.Action.error()}","params":[{"name":"server","type":"t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(LibTmux.Action.creation_value())} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Creates a named detached session on an existing server through one-shot execution.","body":"Returns `{:ok, result}` on completion, with `%{id: session_id, ref: nil}`\nas its value. Capture a fresh observation for a bound reference. There is\nno observed target to validate; this command acts on the server answering\nat the descriptor's endpoint. It never starts a missing server. A missing\nendpoint or duplicate session name returns an error with execution evidence.\nControl connections are unsupported.\n\nNames contain 1..1024 UTF-8 bytes without control characters. Format syntax\nstays literal; tmux's version-dependent name normalization still applies.\nOptions are `timeout` (5000ms), literal `cwd`, and `command`: `:default`,\n`{:shell, nonempty_bytes}` or `{:argv, [program | arguments]}`. Command forms\nfollow `LibTmux.Pane.split/3`, except `:empty` is unsupported for creation.\nAcknowledgement does not prove that the program started or finished.\nSee `LibTmux.Action` for completion and failure handling.","examples":[{"lang":"elixir","code":"alias LibTmux.Server\n\nServer.new_session(server, \"extra-work\", command: {:argv, [\"/bin/cat\"]})"}]},"source":{"file":"lib/libtmux/server.ex","line":443,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-new_session-3"},{"id":"LibTmux.Server.new_session!/3","publicId":"LibTmux.Server.new_session!/3","name":"new_session!/3","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"new_session!(server, name, options \\\\ [])\n@spec new_session!(t(), binary(), [\n LibTmux.Action.creation_option()\n ]) :: LibTmux.Action.creation_value()","params":[{"name":"server","type":"t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"LibTmux.Action.creation_value()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the created session value when `new_session/3` completes; raises the original error otherwise."},"source":{"file":"lib/libtmux/server.ex","line":471,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-new_session-bang-3"},{"id":"LibTmux.Server.run/3","publicId":"LibTmux.Server.run/3","name":"run/3","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"run(server, command, options \\\\ [])\n@spec run(t(), LibTmux.Command.t(), [\n LibTmux.Transport.OneShot.option()\n ]) ::\n {:ok, LibTmux.Transport.OneShot.result()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"t()"},{"name":"command","type":"LibTmux.Command.t()"},{"name":"options","type":"[LibTmux.Transport.OneShot.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Transport.OneShot.result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs one trusted command without attaching; returns bounded output and exit evidence.","body":"The options are those of `LibTmux.Transport.OneShot.run/3`, except\n`:keep_tmux_context`: the Server decides it from its socket, and a value\npassed here is ignored. Raises `ArgumentError` for a Server built by hand\nwhose `socket` or `socket_name` is not `nil` or a string, or that sets both.\n\nSee the [worked example](advanced-execution.html)."},"source":{"file":"lib/libtmux/server.ex","line":477,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-run-3"},{"id":"LibTmux.Server.snapshot/2","publicId":"LibTmux.Server.snapshot/2","name":"snapshot/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"snapshot(server, options \\\\ [])\n@spec snapshot(t(), [LibTmux.Capture.option()]) ::\n {:ok, LibTmux.Snapshot.t()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Capture.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Snapshot.t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Captures a new graph explicitly, with bounded work and read retries.","body":"See the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/server.ex","line":553,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-snapshot-2"},{"id":"LibTmux.Server.snapshot!/2","publicId":"LibTmux.Server.snapshot!/2","name":"snapshot!/2","namespace":"LibTmux.Server","parent":"LibTmux.Server","kind":"function","modifiers":[],"signatures":[{"raw":"snapshot!(server, options \\\\ [])\n@spec snapshot!(t(), [LibTmux.Capture.option()]) ::\n LibTmux.Snapshot.t()","params":[{"name":"server","type":"t()"},{"name":"options","type":"[LibTmux.Capture.option()]","default":"[]"}],"returns":"LibTmux.Snapshot.t()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Captures a graph or raises the same structured capture error.","body":"See the [worked example](first-task.html)."},"source":{"file":"lib/libtmux/server.ex","line":561,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-server-snapshot-bang-2"},{"id":"LibTmux.Session","publicId":"LibTmux.Session","name":"Session","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable session observation with explicit actions. Attachment retains tmux's client count.","body":"## What is on here\n\nA Session is a value captured in a `LibTmux.Snapshot`. Relationship functions\nread the snapshot you pass; actions take a `LibTmux.Ref` and a Server or\nControl connection. Start with these groups:\n\n**Finding the session.** Select sessions from a captured snapshot, or look one\nup by its exact ID. Neither contacts tmux. An ID that was not captured returns\n`{:error, error}` with kind `:not_found`. Turn the session into a reference\ntied to the server incarnation that supplied it, ready for an action.\n\n- Select: `LibTmux.Snapshot.sessions/1`\n- By ID: `LibTmux.Snapshot.fetch/3`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Looking inside a session.** Read windows, panes and the active window from the\nsnapshot, without I/O. A window linked more than once appears once, and a\ncovered empty relation returns an empty selection. An invalid or stale\nidentity, or a relationship the snapshot did not capture, raises\n`LibTmux.Error`. For per-session window indexes use `LibTmux.Snapshot.related/4`\nwith `:window_links`.\n\n- Windows: `windows/2`\n- Panes: `panes/2`\n- Focused: `active_window/2`\n\n**Creating a window.** Create a named detached window in the session through\none-shot execution. The completed value holds the new ID with `ref: nil`;\ncapture a fresh observation to obtain a reference. A Control connection is\nunsupported, and a missing server is not started.\n\n- Create: `new_window/4`\n- Raise on failure: `new_window!/4`\n\n**Renaming.** Rename the session through a Server or a Control connection.\nA name holds 1..1024 UTF-8 bytes with no control characters, and tmux still\nnormalizes it. Observations you already hold keep the old name.\n\n- Rename: `rename/4`\n- Raise on failure: `rename!/4`\n\n**Killing.** Kill the session and the windows and panes only it holds,\nthrough a Server. A Control connection returns `unsupported_transport`.\nKilling the last session ends a server that exits when empty.\n\n- Kill: `kill/3`\n- Raise on failure: `kill!/3`"},"source":{"file":"lib/libtmux/entities.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session"},{"id":"LibTmux.Session.id","publicId":"LibTmux.Session.id","name":"id","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-id"},{"id":"LibTmux.Session.server_instance","publicId":"LibTmux.Session.server_instance","name":"server_instance","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-server_instance"},{"id":"LibTmux.Session.name","publicId":"LibTmux.Session.name","name":"name","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-name"},{"id":"LibTmux.Session.attached_count","publicId":"LibTmux.Session.attached_count","name":"attached_count","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-attached_count"},{"id":"LibTmux.Session.attached","publicId":"LibTmux.Session.attached","name":"attached","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-attached"},{"id":"LibTmux.Session.t/0","publicId":"LibTmux.Session.t/0","name":"t/0","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Session{\n attached: LibTmux.Schema.observed(boolean()),\n attached_count:\n LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t()\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Session{\n attached: LibTmux.Schema.observed(boolean()),\n attached_count:\n LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t()\n }","doc":{"summary":"A session with explicit field coverage and an attachment count separate from its Boolean projection."},"source":{"file":"lib/libtmux/entities.ex","line":62,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-t-0"},{"id":"LibTmux.Session.windows/2","publicId":"LibTmux.Session.windows/2","name":"windows/2","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"windows(snapshot, session)\n@spec windows(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Selection.t(LibTmux.Window.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"session","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Window.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a selection of captured physical windows in first-link order.","body":"Repeated links to a window contribute it once. For membership indexes use\n`LibTmux.Snapshot.related/4` with `:window_links`.\n\nThe supplied snapshot owns all returned fields and relationships. Only the\nsession's ID and incarnation are used; its other fields may be older.\nInvalid or stale identities and missing source/relationship coverage raise\n`LibTmux.Error`. A covered empty relation returns an empty selection.\nNo I/O occurs. The selection retains the supplied snapshot for filtering;\nrelationship predicates still validate their whole captured source domain.\nUse `Enum.to_list/1` when only the list is needed.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Session, Snapshot}\niex> rows = %{session: [%{id: \"$0\"}], window: [%{id: \"@7\"}],\n...> window_link: [%{session_id: \"$0\", window_id: \"@7\", index: 0, active: true},\n...> %{session_id: \"$0\", window_id: \"@7\", index: 3, active: false}],\n...> pane: [%{id: \"%9\", window_id: \"@7\"}]}\niex> {:ok, snapshot} = Snapshot.new(rows,\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> complete: [:window_link, :pane],\n...> fields: %{window_link: [:session_id, :window_id, :active], pane: [:window_id]})\niex> {:ok, session} = Snapshot.fetch(snapshot, :session, \"$0\")\niex> {:ok, window} = Session.windows(snapshot, session) |> Selection.one()\niex> window.id\n\"@7\"\niex> Session.panes(snapshot, session) |> Enum.map(& &1.id)\n[\"%9\"]\niex> Session.active_window(snapshot, session) == window\ntrue"}]},"source":{"file":"lib/libtmux/entities.ex","line":71,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-windows-2"},{"id":"LibTmux.Session.panes/2","publicId":"LibTmux.Session.panes/2","name":"panes/2","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"panes(snapshot, session)\n@spec panes(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Selection.t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"session","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Pane.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a selection of captured physical panes in numeric pane-ID order.","body":"Linked windows contribute their panes once. Identity, coverage, empty-selection\nand no-I/O behavior follow `windows/2`, which includes a worked example."},"source":{"file":"lib/libtmux/entities.ex","line":109,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-panes-2"},{"id":"LibTmux.Session.active_window/2","publicId":"LibTmux.Session.active_window/2","name":"active_window/2","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"active_window(snapshot, session)\n@spec active_window(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Window.t() | nil","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"session","type":"t()"}],"returns":"LibTmux.Window.t() | nil"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the captured active physical window, or `nil` when none is active.","body":"Multiple active links raise `LibTmux.Error`, even when they name the same\nwindow. Unrelated sessions do not affect this lookup. Identity, coverage\nand no-I/O behavior follow `windows/2`, which includes a worked example."},"source":{"file":"lib/libtmux/entities.ex","line":119,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-active_window-2"},{"id":"LibTmux.Session.new_window/4","publicId":"LibTmux.Session.new_window/4","name":"new_window/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"new_window(server, ref, name, options \\\\ [])\n@spec new_window(\n LibTmux.Server.t(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.creation_option()]\n ) ::\n {:ok,\n LibTmux.Action.result(\n LibTmux.Action.creation_value()\n )}\n | {:error, LibTmux.Action.error()}","params":[{"name":"server","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(LibTmux.Action.creation_value())} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Creates a named detached window in an exact session through one-shot execution.","body":"Returns `{:ok, result}` on completion, with `%{id: window_id, ref: nil}`\nas its value. Capture a fresh observation for a bound reference. The session\nreference is checked against the answering server before dispatch, with\nthe usual one-shot check/use race. Missing servers are not started.\nControl connections are unsupported. tmux permits duplicate window names.\n\nNames, `timeout`, `cwd` and explicit `command` forms follow\n`LibTmux.Server.new_session/3`. The new window uses tmux's next available\nindex in this session. Existing observations remain unchanged.","examples":[{"lang":"elixir","code":"alias LibTmux.Session\n\nSession.new_window(server, session_ref, \"logs\", command: {:argv, [\"/bin/cat\"]})"}]},"source":{"file":"lib/libtmux/entities.ex","line":130,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-new_window-4"},{"id":"LibTmux.Session.new_window!/4","publicId":"LibTmux.Session.new_window!/4","name":"new_window!/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"new_window!(server, ref, name, options \\\\ [])\n@spec new_window!(\n LibTmux.Server.t(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.creation_option()]\n ) ::\n LibTmux.Action.creation_value()","params":[{"name":"server","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.creation_option()]","default":"[]"}],"returns":"LibTmux.Action.creation_value()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns the created window value when `new_window/4` completes; raises the original error otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":155,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-new_window-bang-4"},{"id":"LibTmux.Session.rename/4","publicId":"LibTmux.Session.rename/4","name":"rename/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"rename(connection, ref, name, options \\\\ [])\n@spec rename(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Control.call_option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Control.call_option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Renames an exact session; returns `{:ok, result}` on command completion.","body":"Names contain 1..1024 UTF-8 bytes without Unicode control characters (Cc).\nFormat syntax remains literal;\ntmux still normalizes names (including dollar/backslash escaping, and dots\nand colons on older releases). The only option is `timeout`, which defaults\nto 5000ms.\nOld observations stay unchanged. See `LibTmux.Action` for outcome semantics.","examples":[{"lang":"elixir","code":"alias LibTmux.Session\n\nSession.rename(server, session_ref, \"work\")"}]},"source":{"file":"lib/libtmux/entities.ex","line":163,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-rename-4"},{"id":"LibTmux.Session.rename!/4","publicId":"LibTmux.Session.rename!/4","name":"rename!/4","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"rename!(connection, ref, name, options \\\\ [])\n@spec rename!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Control.call_option()]\n ) ::\n :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Control.call_option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `rename/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":184,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-rename-bang-4"},{"id":"LibTmux.Session.kill/3","publicId":"LibTmux.Session.kill/3","name":"kill/3","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"kill(connection, ref, options \\\\ [])\n@spec kill(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills an exact session through one-shot execution.","body":"Returns `{:ok, result}` on command completion. The only option is `timeout`, 5000ms by default. The reference is\nchecked against the answering server before dispatch, with the usual one-shot\ncheck/use race. A reference to something that is already gone returns\n`{:error, %LibTmux.Action.CompletionError{}}` with the original evidence.\nControl connections return `unsupported_transport` before any I/O: a\nconnection cannot kill what it is attached to. Observations you already hold\nkeep describing the session.","examples":[{"lang":"elixir","code":"alias LibTmux.Session\n\nSession.kill(server, session_ref)"}]},"source":{"file":"lib/libtmux/entities.ex","line":191,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-kill-3"},{"id":"LibTmux.Session.kill!/3","publicId":"LibTmux.Session.kill!/3","name":"kill!/3","namespace":"LibTmux.Session","parent":"LibTmux.Session","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(connection, ref, options \\\\ [])\n@spec kill!(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) :: :ok","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":211,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-session-kill-bang-3"},{"id":"LibTmux.Snapshot","publicId":"LibTmux.Snapshot","name":"Snapshot","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An indexed immutable graph observed over a capture interval.","body":"Construction and traversal perform no I/O. `fields` declares loaded fields\nover the supplied entity IDs; `complete` declares complete server entity\nsets. Missing declarations remain unloaded, including on empty sets.\nUnavailable capabilities use a separate declaration. Relations require\ncomplete join domains. A snapshot reserves no tmux objects."},"source":{"file":"lib/libtmux/snapshot.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot"},{"id":"LibTmux.Snapshot.id","publicId":"LibTmux.Snapshot.id","name":"id","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"pos_integer()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-id"},{"id":"LibTmux.Snapshot.server_instance","publicId":"LibTmux.Snapshot.server_instance","name":"server_instance","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-server_instance"},{"id":"LibTmux.Snapshot.captured_from","publicId":"LibTmux.Snapshot.captured_from","name":"captured_from","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"integer()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-captured_from"},{"id":"LibTmux.Snapshot.captured_until","publicId":"LibTmux.Snapshot.captured_until","name":"captured_until","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"integer()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-captured_until"},{"id":"LibTmux.Snapshot.coverage","publicId":"LibTmux.Snapshot.coverage","name":"coverage","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"coverage()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-coverage"},{"id":"LibTmux.Snapshot.schema_version","publicId":"LibTmux.Snapshot.schema_version","name":"schema_version","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"1","value":"1","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-schema_version"},{"id":"LibTmux.Snapshot.sessions","publicId":"LibTmux.Snapshot.sessions","name":"sessions","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Session.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-sessions"},{"id":"LibTmux.Snapshot.windows","publicId":"LibTmux.Snapshot.windows","name":"windows","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Window.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-windows"},{"id":"LibTmux.Snapshot.window_links","publicId":"LibTmux.Snapshot.window_links","name":"window_links","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(LibTmux.Ref.id()) => LibTmux.WindowLink.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-window_links"},{"id":"LibTmux.Snapshot.panes","publicId":"LibTmux.Snapshot.panes","name":"panes","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Pane.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-panes"},{"id":"LibTmux.Snapshot.clients","publicId":"LibTmux.Snapshot.clients","name":"clients","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{optional(String.t()) => LibTmux.Client.t()}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-clients"},{"id":"LibTmux.Snapshot.order","publicId":"LibTmux.Snapshot.order","name":"order","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"%{required(LibTmux.Schema.entity()) => [LibTmux.Ref.id()]}","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-order"},{"id":"LibTmux.Snapshot.indexes","publicId":"LibTmux.Snapshot.indexes","name":"indexes","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"indexes()","value":"%{}","source":{"file":"lib/libtmux/snapshot.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-indexes"},{"id":"LibTmux.Snapshot.entity_coverage/0","publicId":"LibTmux.Snapshot.entity_coverage/0","name":"entity_coverage/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type entity_coverage() :: %{\n ids: MapSet.t(LibTmux.Ref.id()),\n complete: boolean(),\n fields: %{\n optional(atom()) => :loaded | :unavailable\n }\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"entity_coverage() :: %{\n ids: MapSet.t(LibTmux.Ref.id()),\n complete: boolean(),\n fields: %{\n optional(atom()) => :loaded | :unavailable\n }\n }","doc":{"summary":"Coverage of one captured entity domain; missing field entries are unloaded."},"source":{"file":"lib/libtmux/snapshot.ex","line":43,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-entity_coverage-0"},{"id":"LibTmux.Snapshot.coverage/0","publicId":"LibTmux.Snapshot.coverage/0","name":"coverage/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type coverage() :: %{\n entities: %{\n required(LibTmux.Schema.entity()) =>\n entity_coverage()\n }\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"coverage() :: %{\n entities: %{\n required(LibTmux.Schema.entity()) =>\n entity_coverage()\n }\n }","doc":{"summary":"Declared entity sets and field availability; completeness is separate from an empty captured set."},"source":{"file":"lib/libtmux/snapshot.ex","line":49,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-coverage-0"},{"id":"LibTmux.Snapshot.indexes/0","publicId":"LibTmux.Snapshot.indexes/0","name":"indexes/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":["opaque"],"signatures":[{"raw":"@opaque indexes()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Maps each session ID to the IDs of its window links and clients, and each window ID to the IDs of its window links and panes. Traverse with `related/4`; the layout is not part of the contract."},"source":{"file":"lib/libtmux/snapshot.ex","line":51,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-indexes-0"},{"id":"LibTmux.Snapshot.rows/0","publicId":"LibTmux.Snapshot.rows/0","name":"rows/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type rows() :: %{\n optional(LibTmux.Schema.entity()) => [\n map() | LibTmux.Schema.observation()\n ]\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"rows() :: %{\n optional(LibTmux.Schema.entity()) => [\n map() | LibTmux.Schema.observation()\n ]\n }","doc":{"summary":"Observed rows grouped by canonical entity; construction validates and deduplicates their identities."},"source":{"file":"lib/libtmux/snapshot.ex","line":58,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-rows-0"},{"id":"LibTmux.Snapshot.option/0","publicId":"LibTmux.Snapshot.option/0","name":"option/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:server_instance, String.t()}\n | {:captured_from, integer()}\n | {:captured_until, integer()}\n | {:fields,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}\n | {:complete, [LibTmux.Schema.entity()]}\n | {:unavailable,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:server_instance, String.t()}\n | {:captured_from, integer()}\n | {:captured_until, integer()}\n | {:fields,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}\n | {:complete, [LibTmux.Schema.entity()]}\n | {:unavailable,\n %{optional(LibTmux.Schema.entity()) => [atom()]}}","doc":{"summary":"Construction metadata: one server instance, ordered millisecond timestamps and explicit coverage declarations."},"source":{"file":"lib/libtmux/snapshot.ex","line":60,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-option-0"},{"id":"LibTmux.Snapshot.t/0","publicId":"LibTmux.Snapshot.t/0","name":"t/0","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Snapshot{\n captured_from: integer(),\n captured_until: integer(),\n clients: %{\n optional(String.t()) => LibTmux.Client.t()\n },\n coverage: coverage(),\n id: pos_integer(),\n indexes: indexes(),\n order: %{\n required(LibTmux.Schema.entity()) => [\n LibTmux.Ref.id()\n ]\n },\n panes: %{optional(String.t()) => LibTmux.Pane.t()},\n schema_version: 1,\n server_instance: String.t(),\n sessions: %{\n optional(String.t()) => LibTmux.Session.t()\n },\n window_links: %{\n optional(LibTmux.Ref.id()) =>\n LibTmux.WindowLink.t()\n },\n windows: %{\n optional(String.t()) => LibTmux.Window.t()\n }\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Snapshot{\n captured_from: integer(),\n captured_until: integer(),\n clients: %{\n optional(String.t()) => LibTmux.Client.t()\n },\n coverage: coverage(),\n id: pos_integer(),\n indexes: indexes(),\n order: %{\n required(LibTmux.Schema.entity()) => [\n LibTmux.Ref.id()\n ]\n },\n panes: %{optional(String.t()) => LibTmux.Pane.t()},\n schema_version: 1,\n server_instance: String.t(),\n sessions: %{\n optional(String.t()) => LibTmux.Session.t()\n },\n window_links: %{\n optional(LibTmux.Ref.id()) =>\n LibTmux.WindowLink.t()\n },\n windows: %{\n optional(String.t()) => LibTmux.Window.t()\n }\n }","doc":{"summary":"An immutable observation interval with indexed entities and explicit coverage."},"source":{"file":"lib/libtmux/snapshot.ex","line":69,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-t-0"},{"id":"LibTmux.Snapshot.new/2","publicId":"LibTmux.Snapshot.new/2","name":"new/2","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"new(rows, options)\n@spec new(rows(), [option()]) ::\n {:ok, t()} | {:error, LibTmux.Error.t()}","params":[{"name":"rows","type":"rows()"},{"name":"options","type":"[option()]"}],"returns":"{:ok, t()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validates observed rows, rejecting conflicts, invalid fields and dangling covered references.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":86,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-new-2"},{"id":"LibTmux.Snapshot.items/2","publicId":"LibTmux.Snapshot.items/2","name":"items/2","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"items(snapshot, entity)\n@spec items(t(), LibTmux.Schema.entity_selector()) :: [\n LibTmux.Schema.observation()\n ]","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"}],"returns":"[LibTmux.Schema.observation()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns plain observed items in stable identity order without loading data.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":158,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-items-2"},{"id":"LibTmux.Snapshot.sessions/1","publicId":"LibTmux.Snapshot.sessions/1","name":"sessions/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"sessions(snapshot)\n@spec sessions(t()) ::\n LibTmux.Selection.t(LibTmux.Session.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Session.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized session selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":170,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-sessions-1"},{"id":"LibTmux.Snapshot.windows/1","publicId":"LibTmux.Snapshot.windows/1","name":"windows/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"windows(snapshot)\n@spec windows(t()) ::\n LibTmux.Selection.t(LibTmux.Window.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Window.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized physical window selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":178,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-windows-1"},{"id":"LibTmux.Snapshot.panes/1","publicId":"LibTmux.Snapshot.panes/1","name":"panes/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"panes(snapshot)\n@spec panes(t()) :: LibTmux.Selection.t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Pane.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized physical pane selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":186,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-panes-1"},{"id":"LibTmux.Snapshot.window_links/1","publicId":"LibTmux.Snapshot.window_links/1","name":"window_links/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"window_links(snapshot)\n@spec window_links(t()) ::\n LibTmux.Selection.t(LibTmux.WindowLink.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.WindowLink.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized membership selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":194,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-window_links-1"},{"id":"LibTmux.Snapshot.clients/1","publicId":"LibTmux.Snapshot.clients/1","name":"clients/1","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"clients(snapshot)\n@spec clients(t()) ::\n LibTmux.Selection.t(LibTmux.Client.t())","params":[{"name":"snapshot","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Client.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a materialized attached-client selection without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":202,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-clients-1"},{"id":"LibTmux.Snapshot.fetch/3","publicId":"LibTmux.Snapshot.fetch/3","name":"fetch/3","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"fetch(snapshot, entity, id)\n@spec fetch(\n t(),\n LibTmux.Schema.entity_selector(),\n LibTmux.Ref.id()\n ) ::\n {:ok, LibTmux.Schema.observation()}\n | {:error, LibTmux.Error.t()}","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"id","type":"LibTmux.Ref.id()"}],"returns":"{:ok, LibTmux.Schema.observation()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Looks up one exact observed ID without I/O.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":210,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-fetch-3"},{"id":"LibTmux.Snapshot.require_complete!/2","publicId":"LibTmux.Snapshot.require_complete!/2","name":"require_complete!/2","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"require_complete!(snapshot, entity)\n@spec require_complete!(\n t(),\n LibTmux.Schema.entity_selector()\n ) :: :ok","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requires a declared complete entity set, even when it has no rows.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":230,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-require_complete-bang-2"},{"id":"LibTmux.Snapshot.require_field!/3","publicId":"LibTmux.Snapshot.require_field!/3","name":"require_field!/3","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"require_field!(snapshot, entity, field)\n@spec require_field!(\n t(),\n LibTmux.Schema.entity_selector(),\n atom()\n ) :: :ok","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"field","type":"atom()"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requires a loaded field over the captured entity domain before evaluation.","body":"See the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":245,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-require_field-bang-3"},{"id":"LibTmux.Snapshot.require_relation!/4","publicId":"LibTmux.Snapshot.require_relation!/4","name":"require_relation!/4","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"require_relation!(snapshot, entity, relation, ids \\\\ :all)\n@spec require_relation!(\n t(),\n LibTmux.Schema.entity_selector(),\n atom(),\n :all | [LibTmux.Ref.id()]\n ) :: :ok","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"relation","type":"atom()"},{"name":"ids","type":":all | [LibTmux.Ref.id()]","default":":all"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Requires relation coverage for the requested source IDs, including known-empty relations.","body":"The default `:all` validates the entire captured source domain. An explicit\nID list does not resolve unrelated sources or their ambiguous relationships.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":262,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-require_relation-bang-4"},{"id":"LibTmux.Snapshot.related/4","publicId":"LibTmux.Snapshot.related/4","name":"related/4","namespace":"LibTmux.Snapshot","parent":"LibTmux.Snapshot","kind":"function","modifiers":[],"signatures":[{"raw":"related(snapshot, entity, id, relation)\n@spec related(\n t(),\n LibTmux.Schema.entity_selector(),\n LibTmux.Ref.id(),\n atom()\n ) ::\n LibTmux.Schema.observation()\n | nil\n | [LibTmux.Schema.observation()]","params":[{"name":"snapshot","type":"t()"},{"name":"entity","type":"LibTmux.Schema.entity_selector()"},{"name":"id","type":"LibTmux.Ref.id()"},{"name":"relation","type":"atom()"}],"returns":"LibTmux.Schema.observation() | nil | [LibTmux.Schema.observation()]"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Resolves one source's covered relation through captured indexes; never refreshes.","body":"Ambiguity in another source does not affect this lookup. Whole-selection\nfiltering still validates its entire required relationship domain first.\n\nSee the [worked example](api-examples.html#local-graph-and-filtering)."},"source":{"file":"lib/libtmux/snapshot.ex","line":285,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-snapshot-related-4"},{"id":"LibTmux.Transport.OneShot","publicId":"LibTmux.Transport.OneShot","name":"OneShot","namespace":"LibTmux.Transport","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Executes one explicitly selected executable with bounded captured output.","body":"This Linux transport owns a native helper and its ordinary finite process\ntree. It never uses a shell. A worker owns the Port and observes caller\ndeath; the helper detects pipe closure after worker or VM death.\nTarget environment entries travel as bytes to child `execve`, preserving\nempty values. The helper inherits the trusted host environment; requested\ntarget variables do not configure the helper. `TMUX` and `TMUX_PANE` are\nremoved from the target environment unless `keep_tmux_context: true`, which\n`LibTmux.Server.run/3` passes only for a Server that chose no socket.\n\nLimits apply per call: stdout defaults to 1 MiB, stderr to 64 KiB, and\nretained chunks to 4096. `max_total_bytes` additionally bounds both streams\ntogether; it defaults to their summed limits. Overload returns an error\nwith a bounded prefix.\nIndependent caller processes require admission limits at their host or\nserver boundary; this primitive maintains no shared request queue.\n\nA positive timeout becomes one execution deadline. Retirement can take\nup to a separate 750 ms cleanup allowance after expiry. Missing retirement\nproof remains `:unknown`. No result authorizes replay. Helper SIGKILL,\nhostile escape and uninterruptible kernel tasks are outside the ordinary\ntree guarantee. Building the native helper requires a C11 compiler."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot"},{"id":"LibTmux.Transport.OneShot.result/0","publicId":"LibTmux.Transport.OneShot.result/0","name":"result/0","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type result() :: %{\n stdout: binary(),\n stderr: binary(),\n exit_status: non_neg_integer(),\n cleanup: :retired\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"result() :: %{\n stdout: binary(),\n stderr: binary(),\n exit_status: non_neg_integer(),\n cleanup: :retired\n }","doc":{"summary":"Captured bytes and child exit status after proven owned-process retirement; nonzero exit remains a transport result."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":32,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-result-0"},{"id":"LibTmux.Transport.OneShot.option/0","publicId":"LibTmux.Transport.OneShot.option/0","name":"option/0","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type option() ::\n {:timeout, 1..600_000}\n | {:deadline, LibTmux.Deadline.t()}\n | {:cwd, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:keep_tmux_context, boolean()}\n | {:max_stdout_bytes | :max_stderr_bytes,\n 0..16_777_216}\n | {:max_total_bytes, nil | 0..33_554_432}\n | {:max_chunks, 1..65536}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"option() ::\n {:timeout, 1..600_000}\n | {:deadline, LibTmux.Deadline.t()}\n | {:cwd, String.t()}\n | {:env, %{optional(binary()) => binary()}}\n | {:keep_tmux_context, boolean()}\n | {:max_stdout_bytes | :max_stderr_bytes,\n 0..16_777_216}\n | {:max_total_bytes, nil | 0..33_554_432}\n | {:max_chunks, 1..65536}","doc":{"summary":"Per-call input and capture limits; bytes and chunks are bounded independently.","body":"Timeout and deadline are exclusive. A supplied deadline must have at most\n600,000 ms remaining at validation; it preserves its original cutoff."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":40,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-option-0"},{"id":"LibTmux.Transport.OneShot.run/3","publicId":"LibTmux.Transport.OneShot.run/3","name":"run/3","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"function","modifiers":[],"signatures":[{"raw":"run(executable, arguments, options \\\\ [])\n@spec run(binary(), [binary()], [option()]) ::\n {:ok, result()} | {:error, LibTmux.Error.t()}","params":[{"name":"executable","type":"binary()"},{"name":"arguments","type":"[binary()]"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"{:ok, result()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs argv without a shell, retaining exit status separately from stdout and stderr.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":59,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-run-3"},{"id":"LibTmux.Transport.OneShot.run!/3","publicId":"LibTmux.Transport.OneShot.run!/3","name":"run!/3","namespace":"LibTmux.Transport.OneShot","parent":"LibTmux.Transport.OneShot","kind":"function","modifiers":[],"signatures":[{"raw":"run!(executable, arguments, options \\\\ [])\n@spec run!(binary(), [binary()], [option()]) :: result()","params":[{"name":"executable","type":"binary()"},{"name":"arguments","type":"[binary()]"},{"name":"options","type":"[option()]","default":"[]"}],"returns":"result()"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Runs argv, raising the same structured transport error on failure.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/transport/oneshot.ex","line":97,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-transport-oneshot-run-bang-3"},{"id":"LibTmux.Window","publicId":"LibTmux.Window","name":"Window","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An immutable physical window with explicit actions, independent of session membership and index.","body":"## What is on here\n\nA Window is a physical window captured in a `LibTmux.Snapshot`. Its session\nindex and active state belong to a `LibTmux.WindowLink`, so one Window can\nbelong to several sessions. Start with these groups:\n\n**Finding the window.** Select windows from a captured snapshot, or look one\nup by its exact ID. Neither contacts tmux. An ID that was not captured returns\n`{:error, error}` with kind `:not_found`. Turn the window into a reference\ntied to the server incarnation that supplied it, ready for an action.\n\n- Select: `LibTmux.Snapshot.windows/1`\n- By ID: `LibTmux.Snapshot.fetch/3`\n- Reference: `LibTmux.Ref.from_observation/1`\n\n**Looking inside a window.** Read its panes from the snapshot, in numeric\npane-ID order and without I/O. An invalid or stale identity, or a relationship\nthe snapshot did not capture, raises `LibTmux.Error`. To find the sessions\nthat hold the window, select its links.\n\n- Panes: `panes/2`\n- Links: `LibTmux.Snapshot.window_links/1`\n\n**Renaming.** Rename the window across all its memberships through a Server or\na Control connection. A name holds 1..1024 UTF-8 bytes with no control\ncharacters, and tmux still normalizes it. The optional `session:` reference\nrequires membership in that session; it does not pick a link index.\n\n- Rename: `rename/4`\n- Raise on failure: `rename!/4`\n\n**Killing.** Kill the window, with its panes, in every session that links it,\nthrough a Server. A Control connection returns `unsupported_transport`.\n\n- Kill: `kill/3`\n- Raise on failure: `kill!/3`"},"source":{"file":"lib/libtmux/entities.ex","line":217,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window"},{"id":"LibTmux.Window.id","publicId":"LibTmux.Window.id","name":"id","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-id"},{"id":"LibTmux.Window.server_instance","publicId":"LibTmux.Window.server_instance","name":"server_instance","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-server_instance"},{"id":"LibTmux.Window.name","publicId":"LibTmux.Window.name","name":"name","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-name"},{"id":"LibTmux.Window.width","publicId":"LibTmux.Window.width","name":"width","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-width"},{"id":"LibTmux.Window.height","publicId":"LibTmux.Window.height","name":"height","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-height"},{"id":"LibTmux.Window.layout","publicId":"LibTmux.Window.layout","name":"layout","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-layout"},{"id":"LibTmux.Window.zoomed","publicId":"LibTmux.Window.zoomed","name":"zoomed","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-zoomed"},{"id":"LibTmux.Window.t/0","publicId":"LibTmux.Window.t/0","name":"t/0","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.Window{\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n layout: LibTmux.Schema.observed(String.t()),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t(),\n width: LibTmux.Schema.observed(non_neg_integer()),\n zoomed: LibTmux.Schema.observed(boolean())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.Window{\n height: LibTmux.Schema.observed(non_neg_integer()),\n id: String.t(),\n layout: LibTmux.Schema.observed(String.t()),\n name: LibTmux.Schema.observed(String.t()),\n server_instance: String.t(),\n width: LibTmux.Schema.observed(non_neg_integer()),\n zoomed: LibTmux.Schema.observed(boolean())\n }","doc":{"summary":"A physical window; session index and active-window state belong to a WindowLink."},"source":{"file":"lib/libtmux/entities.ex","line":269,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-t-0"},{"id":"LibTmux.Window.panes/2","publicId":"LibTmux.Window.panes/2","name":"panes/2","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"panes(snapshot, window)\n@spec panes(LibTmux.Snapshot.t(), t()) ::\n LibTmux.Selection.t(LibTmux.Pane.t())","params":[{"name":"snapshot","type":"LibTmux.Snapshot.t()"},{"name":"window","type":"t()"}],"returns":"LibTmux.Selection.t(LibTmux.Pane.t())"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns a selection of captured physical panes in numeric pane-ID order.","body":"Uses the supplied snapshot and validates the window's ID and incarnation.\nIdentity, coverage, empty-selection and no-I/O behavior follow\n`LibTmux.Session.windows/2`.","examples":[{"lang":"elixir","code":"iex> alias LibTmux.{Selection, Snapshot, Window}\niex> rows = %{window: [%{id: \"@0\"}], pane: [\n...> %{id: \"%10\", window_id: \"@0\"}, %{id: \"%2\", window_id: \"@0\"}]}\niex> {:ok, snapshot} = Snapshot.new(rows,\n...> server_instance: \"example\", captured_from: 0, captured_until: 0,\n...> complete: [:pane], fields: %{pane: [:id, :window_id]})\niex> {:ok, window} = Snapshot.fetch(snapshot, :window, \"@0\")\niex> Window.panes(snapshot, window) |> Enum.map(& &1.id)\n[\"%2\", \"%10\"]\niex> {:ok, pane} = Window.panes(snapshot, window)\n...> |> Selection.where(id: \"%2\") |> Selection.one()\niex> pane.id\n\"%2\""}]},"source":{"file":"lib/libtmux/entities.ex","line":280,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-panes-2"},{"id":"LibTmux.Window.rename/4","publicId":"LibTmux.Window.rename/4","name":"rename/4","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"rename(connection, ref, name, options \\\\ [])\n@spec rename(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Renames an exact physical window across all its memberships.","body":"Returns `{:ok, result}` on command completion; unsuccessful outcomes return\n`{:error, %LibTmux.Action.CompletionError{}}` with their original evidence.\n\nNames contain 1..1024 UTF-8 bytes without Unicode control characters (Cc),\nwith literal format syntax.\ntmux still applies name normalization, including dollar/backslash escaping.\nControl characters fail before I/O on both transports. Optional `session: session_ref` requires\nmembership in that exact session; it does not select a captured link index.\n`timeout` defaults to 5000ms. See `LibTmux.Action` for transport and outcomes.","examples":[{"lang":"elixir","code":"alias LibTmux.Window\n\nWindow.rename(control, window_ref, \"editor\")"}]},"source":{"file":"lib/libtmux/entities.ex","line":307,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-rename-4"},{"id":"LibTmux.Window.rename!/4","publicId":"LibTmux.Window.rename!/4","name":"rename!/4","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"rename!(connection, ref, name, options \\\\ [])\n@spec rename!(\n LibTmux.Action.connection(),\n LibTmux.Ref.t(),\n binary(),\n [LibTmux.Action.option()]\n ) :: :ok","params":[{"name":"connection","type":"LibTmux.Action.connection()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"name","type":"binary()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `rename/4` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":329,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-rename-bang-4"},{"id":"LibTmux.Window.kill/3","publicId":"LibTmux.Window.kill/3","name":"kill/3","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"kill(connection, ref, options \\\\ [])\n@spec kill(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) ::\n {:ok, LibTmux.Action.result(:ok)}\n | {:error, LibTmux.Action.error()}","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":"{:ok, LibTmux.Action.result(:ok)} | {:error, LibTmux.Action.error()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Kills an exact window through one-shot execution.","body":"Returns `{:ok, result}` on command completion. Optional `session: session_ref` requires membership in that exact session and `timeout` defaults to 5000ms. Killing a window removes it from every session that links it. The reference is\nchecked against the answering server before dispatch, with the usual one-shot\ncheck/use race. A reference to something that is already gone returns\n`{:error, %LibTmux.Action.CompletionError{}}` with the original evidence.\nControl connections return `unsupported_transport` before any I/O: a\nconnection cannot kill what it is attached to. Observations you already hold\nkeep describing the window.","examples":[{"lang":"elixir","code":"alias LibTmux.Window\n\nWindow.kill(server, window_ref)"}]},"source":{"file":"lib/libtmux/entities.ex","line":335,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-kill-3"},{"id":"LibTmux.Window.kill!/3","publicId":"LibTmux.Window.kill!/3","name":"kill!/3","namespace":"LibTmux.Window","parent":"LibTmux.Window","kind":"function","modifiers":[],"signatures":[{"raw":"kill!(connection, ref, options \\\\ [])\n@spec kill!(LibTmux.Server.t(), LibTmux.Ref.t(), [\n LibTmux.Action.option()\n ]) :: :ok","params":[{"name":"connection","type":"LibTmux.Server.t()"},{"name":"ref","type":"LibTmux.Ref.t()"},{"name":"options","type":"[LibTmux.Action.option()]","default":"[]"}],"returns":":ok"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Returns `:ok` when `kill/3` completes; raises API errors or `LibTmux.Action.CompletionError` otherwise."},"source":{"file":"lib/libtmux/entities.ex","line":355,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-window-kill-bang-3"},{"id":"LibTmux.WindowLink","publicId":"LibTmux.WindowLink","name":"WindowLink","namespace":"LibTmux","kind":"struct","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"An observed session/index/window binding. Its key is not a link lifetime ID."},"source":{"file":"lib/libtmux/entities.ex","line":361,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink"},{"id":"LibTmux.WindowLink.id","publicId":"LibTmux.WindowLink.id","name":"id","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"{String.t(), non_neg_integer(), String.t()}","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-id"},{"id":"LibTmux.WindowLink.server_instance","publicId":"LibTmux.WindowLink.server_instance","name":"server_instance","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"String.t()","doc":{"summary":"Required: building the struct without this key is an error."},"source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-server_instance"},{"id":"LibTmux.WindowLink.session_id","publicId":"LibTmux.WindowLink.session_id","name":"session_id","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-session_id"},{"id":"LibTmux.WindowLink.window_id","publicId":"LibTmux.WindowLink.window_id","name":"window_id","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(String.t())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-window_id"},{"id":"LibTmux.WindowLink.index","publicId":"LibTmux.WindowLink.index","name":"index","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(non_neg_integer())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-index"},{"id":"LibTmux.WindowLink.active","publicId":"LibTmux.WindowLink.active","name":"active","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"property","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","type":"LibTmux.Schema.observed(boolean())","value":":unloaded","source":{"file":"lib/libtmux/entities.ex","repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-active"},{"id":"LibTmux.WindowLink.t/0","publicId":"LibTmux.WindowLink.t/0","name":"t/0","namespace":"LibTmux.WindowLink","parent":"LibTmux.WindowLink","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type t() :: %LibTmux.WindowLink{\n active: LibTmux.Schema.observed(boolean()),\n id: {String.t(), non_neg_integer(), String.t()},\n index: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n window_id: LibTmux.Schema.observed(String.t())\n }","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"t() :: %LibTmux.WindowLink{\n active: LibTmux.Schema.observed(boolean()),\n id: {String.t(), non_neg_integer(), String.t()},\n index: LibTmux.Schema.observed(non_neg_integer()),\n server_instance: String.t(),\n session_id: LibTmux.Schema.observed(String.t()),\n window_id: LibTmux.Schema.observed(String.t())\n }","doc":{"summary":"A captured session/index/window binding, including its session-relative active state."},"source":{"file":"lib/libtmux/entities.ex","line":373,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-windowlink-t-0"},{"id":"LibTmux.Wire","publicId":"LibTmux.Wire","name":"Wire","namespace":"LibTmux","kind":"module","modifiers":[],"signatures":[],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Bounded JSON decoding with duplicate keys preserved until validation.","body":"Uses the built-in JSON decoder callbacks. Object keys stay strings; no\natoms are created. Byte, nesting, node, array and string ceilings apply\nbefore conversion to public maps. Parsing failures retain root paths and\noffsets where supplied; duplicate-key failures identify the object path.\nDepth starts at zero for the root value and increases for every object\nmember or array element; the maximum is inclusive for maps and JSON alike."},"source":{"file":"lib/libtmux/wire.ex","line":1,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire"},{"id":"LibTmux.Wire.value/0","publicId":"LibTmux.Wire.value/0","name":"value/0","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type value() ::\n nil\n | boolean()\n | integer()\n | float()\n | String.t()\n | [value()]\n | object()","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"value() ::\n nil\n | boolean()\n | integer()\n | float()\n | String.t()\n | [value()]\n | object()","doc":{"summary":"A JSON value with string-keyed objects; invalid external terms return a validation error."},"source":{"file":"lib/libtmux/wire.ex","line":15,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-value-0"},{"id":"LibTmux.Wire.object/0","publicId":"LibTmux.Wire.object/0","name":"object/0","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"typealias","modifiers":[],"signatures":[{"raw":"@type object() :: %{optional(String.t()) => value()}","params":[]}],"package":"libtmux","product":"core","apiScope":"exported","type":"object() :: %{optional(String.t()) => value()}","doc":{"summary":"A JSON object whose keys remain strings; validation never creates atoms from external names."},"source":{"file":"lib/libtmux/wire.ex","line":17,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-object-0"},{"id":"LibTmux.Wire.decode/2","publicId":"LibTmux.Wire.decode/2","name":"decode/2","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"function","modifiers":[],"signatures":[{"raw":"decode(binary, options \\\\ [])\n@spec decode(binary(), [LibTmux.Filter.limit_option()]) ::\n {:ok, value()} | {:error, LibTmux.Error.t()}","params":[{"name":"binary","type":"binary()"},{"name":"options","type":"[LibTmux.Filter.limit_option()]","default":"[]"}],"returns":"{:ok, value()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Decodes one complete bounded JSON value, rejecting duplicate keys and trailing data.","body":"See the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/wire.ex","line":20,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-decode-2"},{"id":"LibTmux.Wire.validate/2","publicId":"LibTmux.Wire.validate/2","name":"validate/2","namespace":"LibTmux.Wire","parent":"LibTmux.Wire","kind":"function","modifiers":[],"signatures":[{"raw":"validate(value, options \\\\ [])\n@spec validate(term(), [LibTmux.Filter.limit_option()]) ::\n {:ok, value()} | {:error, LibTmux.Error.t()}","params":[{"name":"value","type":"term()"},{"name":"options","type":"[LibTmux.Filter.limit_option()]","default":"[]"}],"returns":"{:ok, value()} | {:error, LibTmux.Error.t()}"}],"package":"libtmux","product":"core","apiScope":"exported","doc":{"summary":"Validates already-decoded JSON data and its complete encoded byte size.","body":"Arrays must be proper lists; a malformed tail reports the containing\narray's path. An excess prefix returns the list limit before inspecting its tail.\n\nSee the [worked example](api-examples.html#encoding-and-protocol)."},"source":{"file":"lib/libtmux/wire.ex","line":87,"repo":"libtmux/libtmux-elixir","revision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688","extractedRevision":"86ad4ca80f157adb0c11f6bf7c371b04ca5aa688"},"slug":"libtmux-wire-validate-2"}]} diff --git a/site/test/api-prose.test.ts b/site/test/api-prose.test.ts index 1d464b276..049d2fac2 100644 --- a/site/test/api-prose.test.ts +++ b/site/test/api-prose.test.ts @@ -13,6 +13,16 @@ import config from '../ec.config.mjs' import { codeLang } from '../src/lib/highlight' describe('shared API prose blocks', () => { + it('exports the owned-server callback in one Elixir code block', () => { + const model = API_MODELS.elixir! + const symbol = model.symbols.find((entry) => entry.id === 'LibTmux.Server.with_owned/2')! + const blocks = fromMarkdown(symbolMarkdown({ model, symbol })).children.filter((node) => node.type === 'code') + const callbacks = blocks.filter((block) => block.value.includes('Server.with_owned(')) + expect(callbacks.map((block) => block.lang)).toEqual(['elixir']) + expect(callbacks[0]!.value).toContain('alias LibTmux.Server\n\n') + expect(callbacks[0]!.value).toContain('\n Server.snapshot!(server)\nend)') + }) + it('routes ExDoc guides from nested symbol pages and keeps section fragments', () => { const model = API_MODELS.elixir! const version = '0.1.3' From 917418af12bfd89d286ca9ecfc0184985a073d2a Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 5 Dec 2026 15:19:41 -0600 Subject: [PATCH 3/3] test(site[elixir]) Match the owned-server example to its source why: Checking the language and the ends of the callback let a missing session creation pass. Both released indented code and the newer fenced form have a complete example in the pinned source. what: - Read the documented block from the source paired with the API model. - Compare the exported language and every code line with that block. --- site/test/api-prose.test.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/site/test/api-prose.test.ts b/site/test/api-prose.test.ts index 049d2fac2..1e2abd7fd 100644 --- a/site/test/api-prose.test.ts +++ b/site/test/api-prose.test.ts @@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest' import { readFileSync } from 'node:fs' import { fromMarkdown } from 'mdast-util-from-markdown' import { API_MODELS, createApiIndex } from '../src/lib/api-models' +import { pinnedSource } from '../src/lib/api-source-pages' import { symbolMarkdown } from '../src/lib/symbol-markdown' import { SymbolIndex, tokenizeDoc } from '@libtmux/api-model/reference' import { parseApiProse } from '@libtmux/api-model/reference' @@ -16,11 +17,23 @@ describe('shared API prose blocks', () => { it('exports the owned-server callback in one Elixir code block', () => { const model = API_MODELS.elixir! const symbol = model.symbols.find((entry) => entry.id === 'LibTmux.Server.with_owned/2')! + const source = pinnedSource('elixir', symbol.source.file)! + expect(source.revision).toBe(symbol.source.revision) + // The EEP-48 line names @doc. Its closing heredoc sets the Markdown indentation. + const lines = source.content.split('\n').slice(symbol.source.line) + const end = lines.findIndex((line) => line.trim() === '"""') + expect(end).toBeGreaterThan(0) + const indent = lines[end]!.indexOf('"""') + const doc = lines.slice(0, end).map((line) => line.slice(indent)).join('\n') + const expected = fromMarkdown(doc).children.filter((node) => node.type === 'code') + expect(expected).toHaveLength(1) + expect(expected[0]!.value).toContain('Server.with_owned(') + const blocks = fromMarkdown(symbolMarkdown({ model, symbol })).children.filter((node) => node.type === 'code') const callbacks = blocks.filter((block) => block.value.includes('Server.with_owned(')) - expect(callbacks.map((block) => block.lang)).toEqual(['elixir']) - expect(callbacks[0]!.value).toContain('alias LibTmux.Server\n\n') - expect(callbacks[0]!.value).toContain('\n Server.snapshot!(server)\nend)') + expect(callbacks.map(({ lang, value }) => ({ lang, value }))).toEqual([ + { lang: 'elixir', value: expected[0]!.value }, + ]) }) it('routes ExDoc guides from nested symbol pages and keeps section fragments', () => {