Files
agent-radar 2ed3415fb7
Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
2026-09-01 20:17:27 +08:00

38 lines
1.2 KiB
Go

package references
import (
cliservice "github.com/tutti-os/tutti/services/tuttid/service/cli"
"github.com/tutti-os/tutti/services/tuttid/service/cli/providers/refresolve"
)
const appID = "references"
// AppReferences / IssueOutputs are the unified egresses to app / task produced artifacts.
// Defined in refresolve (shared with inline issue-detail reference expansion); aliased here so
// the provider constructor signature stays stable.
type (
AppReferences = refresolve.AppReferences
IssueOutputs = refresolve.IssueOutputs
)
// Provider backs the `reference list` CLI command. It resolves a workspace-reference
// mention handle (app+group / topic+issue) into a flat list of artifact files, so the
// agent can read them on demand instead of receiving every path pre-expanded.
type Provider struct {
workspaces cliservice.WorkspaceCatalog
apps AppReferences
issues IssueOutputs
}
func NewProvider(workspaces cliservice.WorkspaceCatalog, apps AppReferences, issues IssueOutputs) Provider {
return Provider{workspaces: workspaces, apps: apps, issues: issues}
}
func (Provider) AppID() string {
return appID
}
func (p Provider) Commands() []cliservice.Command {
return []cliservice.Command{p.newReferenceListCommand()}
}