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. |
Click to show internal directories.
Click to hide internal directories.