Skip to content

docs(swift): cover marfa-swift v0.0.111 and plugins v0.0.15 - #1292

Merged
aicayzer merged 3 commits into
mainfrom
docs/swift-v0.0.111
Nov 30, 2026
Merged

aicayzer merged 3 commits into
mainfrom
docs/swift-v0.0.111

Conversation

@aicayzer

@aicayzer aicayzer commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The docs pass for plugins v0.0.15 and the Marfa Swift package v0.0.111, which pins marfa v0.0.120. The Swift SDK reference now describes the released package, and the pages that were at their word limits are split by job instead of squeezed.

Closes #1248, #1249, #1259, #1254, #1256, #1274, #1285.

Changes

Plugins v0.0.15:

  • catalog/connectors/readwise: a highlight keeps its passage in text and is named after its source; the connector clears title and body; with Reader on, when text is Reader's passage and what readwise_text keeps. The page gets a 560-word budget, because Reader is a setting of the same connector and a connector page must carry its connector's name.
  • use/install-a-connector-host: new section, "What a connector can do on the machine": Node's permission model, no files, child processes, add-ons, SQLite or FFI, and what the model doesn't stop.
  • build/connector-host: says to run each connector with as little reach as the machine allows, and links that section. The paragraph on what a connector's key reaches moves to build/connectors, which owns that idea; its limit goes from 550 to 570.
  • reference/connector-kit-kinds (new reference page): the options a kind takes, with unreadable(field, value) and what it does to a stored value. reference/connector-kit links it.

Swift package v0.0.111:

  • reference/swift-sdk/sign-in (new, moved out of the Swift SDK page): sign-in, Server, and a new section on signing in again. The app's client is reused, so the grant and what the app made stay. Also covers Credential.clientID, scopesLeftOut, the scope limit, SignInError.keptSignInChanged and a renewal the keychain can't keep. The old line "A new sign-in ends the grant it replaces" now applies only when a new client is registered.
  • reference/swift-sdk (index): itemStats(by:filters:) replaces itemCountsBySource. Type writes send the revision you read (delete(itemType:force:revision:)), updateWebhook sends version, and a stale one throws versionConflict with currentRevision or currentVersion.
  • reference/swift-sdk/items: ItemID.make(), make(at:), make(at:seed:) and isValid(_:), passed as Draft.id. tables.fill() answers nil while another call holds the stream, and what the app does next. Files move to a new page, reference/swift-sdk/files, unchanged apart from headings.
  • reference/swift-sdk/working-copy: CatchUpReport.tables, and a catch-up that answers success when its table fill can't reach the server. SetAside no longer has held, and carried writes keep their instance. The queue moves to a new page.
  • reference/swift-sdk/queue (new, moved out of the working copy page): seq and answeredAfterSeq and how to compare them, .keySpent released or withdrawn, .instanceChanged per write, what withdraw takes, and the later edits that follow a conflicted copy, a landed create or a covered blocked edit, linking build/handle-verdicts.
  • reference/swift-sdk/errors-and-testing is split into errors (adds currentRevision and currentVersion to versionConflict) and testing (adds landedCreates, answeredCreatedAt, the unfilled answer, ID checks and list members). Every link to the old address is changed.
  • build/connect-an-app: ask for more by authorizing again with the client_id you hold, never by registering again, and why. The web page section moves, unchanged apart from headings and its opening line, to the new how-to build/connect-a-web-page. The page's limit drops from 1040 to 920.
  • build/change-a-type: the Swift delete passes revision:, a Swift conflict names currentRevision, and an app's grant grows when it signs in again with the client it holds. The limit goes from 1170 to 1190.

Testing

pnpm test and pnpm build pass. Every Swift name was checked against marfa-swift tag v0.0.111, every plugin claim against plugins tag v0.0.15 (the docs already hold a later plugins commit), and the OAuth scope rules against marfa v0.0.120's keys-and-oauth chapter. The new anchors were checked in the built HTML.

Notes for reviewers

  • No untouched text was shortened. Pages were split or given a reasoned budget instead: readwise and change-a-type got more room. New pages: connector-kit-kinds, connect-a-web-page, and the Swift sign-in, queue, files, errors and testing.
  • errors-and-testing was renamed with no redirect, as content/AGENTS.md asks. The one link to it in the generated changelog is shown as text by unlinkMissingPages.
  • The sign-in page describes a v0.0.120 server, which offers a scope beyond the client's registration. The package's note about older servers is left out.

Checklist

  • Pages follow STYLE.md and their word limits
  • No generated file edited
  • pnpm test and pnpm build run

@aicayzer
aicayzer force-pushed the docs/swift-v0.0.111 branch from bbfe017 to 93dd632 Compare November 30, 2026 22:06
@aicayzer
aicayzer merged commit dffcd82 into main Nov 30, 2026
8 checks passed
@aicayzer
aicayzer deleted the docs/swift-v0.0.111 branch November 30, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment