core

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package core provides shared helpers for the watch command: stream processing, update application, and context-update types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextUpdate

type ContextUpdate struct {
	Type        string
	Content     string
	Context     string
	Lesson      string
	Application string
	Rationale   string
	Consequence string
}

ContextUpdate represents a parsed context update command.

Extracted from <context-update> XML tags in the input stream.

Fields:

  • Type: Update type (task, decision, learning, convention, complete)
  • Content: The entry text (title) or search query for complete
  • Context: Context field for learnings/decisions (what prompted this)
  • Lesson: Lesson field for learnings (the key insight)
  • Application: Application field for learnings (how to apply going forward)
  • Rationale: Rationale field for decisions (why this choice)
  • Consequence: Consequence field for decisions (what changes as a result)

Directories

Path Synopsis
Package apply routes context updates to the appropriate handler for writing entries or completing tasks.
Package apply routes context updates to the appropriate handler for writing entries or completing tasks.
Package stream parses stdin for XML context-update tags and dispatches them for processing.
Package stream parses stdin for XML context-update tags and dispatches them for processing.

Jump to

Keyboard shortcuts

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