ctxblock

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ctxblock writes the local context-export managed block (CEO-1): the thin v1 payoff that closes the capture loop without Phase-2 retrieval. After a capture is promoted/auto-published, the CLI refreshes a fenced block in a project context file (CLAUDE.md or .promptvm/context.md) so the next session benefits. The block is replaced in place, never duplicated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(lines []string) string

Render builds the managed block body from a list of promoted-capture summary lines. The markers are always included so a later run can find and replace it.

func Upsert

func Upsert(path, block string) (replaced bool, err error)

Upsert replaces an existing managed block in the file at path, or appends one if absent. The file is created if it does not exist. Returns whether an existing block was replaced (vs appended/created).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL