selfknowledge

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package selfknowledge registers a prompt section describing piglet's current capabilities: working directory, platform, time, registered tools, commands, and keyboard shortcuts.

Timing: content is assembled inside OnInit — after the host sends initialize (CWD is available) but before registrations are transmitted. At that point the host's registry includes all compiled-in extensions and any external packs that initialized before pack-core. The snapshot is intentionally taken here rather than at main() time because CWD and configDir are only available after the initialize handshake.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(e *sdk.Extension)

Register wires the self-knowledge prompt section. Content assembly is deferred to OnInit so that CWD and host-registry data are available when it runs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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