Documentation
¶
Overview ¶
Package extension defines the stable, protocol-independent vocabulary of a golder extension. It does not grant host authority and imports no internal API.
Index ¶
Constants ¶
const ExecutablePathsEnv = "GOLDER_EXTENSION_EXECUTABLES"
const OperatorConfirmedMeta = "io.golder/operator-confirmed"
const PolicyApprovedMeta = "io.golder/policy-approved"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct {
ID string `json:"id"`
Tool string `json:"tool"`
Arguments json.RawMessage `json:"arguments"`
// OperatorConfirmed is host-only state. MCP transports may attach the
// namespaced metadata marker, never a field in model-controlled arguments.
OperatorConfirmed bool `json:"-"`
// PolicyApproved is a distinct host-only exact-call policy decision; it
// does not assert that a person individually confirmed the operation.
PolicyApproved bool `json:"-"`
}
type ContentBlock ¶
type ContentBlock struct {
Type string `json:"type"` // text, image, resource_link
Text string `json:"text,omitempty"`
Data string `json:"data,omitempty"` // base64 for image
MIMEType string `json:"mimeType,omitempty"`
URI string `json:"uri,omitempty"`
}
ContentBlock is data, never a request to execute or to change host policy.
type Result ¶
type Result struct {
Content []ContentBlock `json:"content"`
StructuredContent json.RawMessage `json:"structuredContent,omitempty"`
IsError bool `json:"isError,omitempty"`
}
type ToolSpec ¶
type ToolSpec struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema json.RawMessage `json:"inputSchema"`
OutputSchema json.RawMessage `json:"outputSchema,omitempty"`
Hints ToolHints `json:"hints,omitempty"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package plugin provides a Go server for golder's existing stdio plugin v1 protocol.
|
Package plugin provides a Go server for golder's existing stdio plugin v1 protocol. |
|
plugins
|
|
|
lark
Package lark contains the static instruction assets distributed with the extension.
|
Package lark contains the static instruction assets distributed with the extension. |
|
lark/cmd/golder-lark
command
|
|
|
lark/internal/larkmcp
Package larkmcp is the host-independent Lark/Project MCP adapter.
|
Package larkmcp is the host-independent Lark/Project MCP adapter. |
|
lark/version
Package version defines the independently maintained golder-lark version.
|
Package version defines the independently maintained golder-lark version. |
|
Package setup defines the small operator-only setup event stream.
|
Package setup defines the small operator-only setup event stream. |