STRΛTΛ19
Tools

strata19.library_ingest_preview

Composite member tool

What it does

Preview of a Library ingestion source (project files, a project directory, a user-confirmed folder anywhere on this computer, written/pasted text, or a conversation capture) before anything is committed: discovered/ready/excluded/blocked/duplicate counts, per-item status and proposed kind, secret/privacy outcomes, and a stable previewDigest the commit call must echo back. Every knob except the source is optional (limits, tags, kindDefault, privacyPolicyRef and idempotencyKey are default-filled server-side), so a call can pass just a path. Works in docs-only folders (no code index needed). ChatGPT transcripts and "Export data" archives become one speaker-attributed conversation_capture per conversation. Near-identical documents are flagged duplicate_near and need an explicit decision at commit. Read-only on the filesystem; it creates NO Library artifact and changes no existing one, only one local, cancellable preview row so the commit can prove the source bytes did not change. Uploads nothing and calls no model (PF-LIB-012). Device files/folders are sent as base64 chunks first, then previewed; for a whole folder prefer source kind external_directory with userConfirmed:true.

When to use it

Use when: "add this file to the library" · "import this folder" · "preview importing these docs" · "import my Downloads folder"

Also use when: before any library_ingest_commit call — commit requires the previewId and previewDigest this tool returns

When not to use it

you already have body text to save directly — use library_manage action create for a single hand-typed artifact HUMAN ONLY (authority table): when the source is a url (an outbound GET to that URL, which can itself carry data out). These need a person's gestureToken; assistant calls are refused (requires_human). Ask the person.

Availability

TierComposite member
LifecycleLive
Taught bystrata19-project-library