injector

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assemble

func Assemble(files []InstalledFile) string

Assemble concatenates files into a single ordered markdown string. Each file's content is prepended with a header comment:

# skill: <name>@<version>

The order of files in the output matches the order of the input slice, which must match the install order from mln.lock.

Types

type Directive

type Directive struct {
	Key    string // e.g. "response-format"
	Value  string // e.g. "bullet-points"
	Source string // dep_name that defined this directive — used in conflict reports
}

Directive is a structured instruction line parsed from a markdown file.

type InstalledFile

type InstalledFile struct {
	DepName    string      // e.g. "github.com/user/xlsx-skill"
	Version    string      // e.g. "1.3.1"
	Content    string      // raw markdown content of the entrypoint file
	Directives []Directive // parsed from Content by the compiler
}

InstalledFile is an in-memory representation of a fetched markdown file, used by the compiler.

Jump to

Keyboard shortcuts

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