源码快照 @ 2026-09-01 (source-only, 剔除非源码素材)
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
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
This commit is contained in:
commit
2ed3415fb7
8018 files changed
+1936476
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// Command providercapabilitycatalog emits the canonical agent capability keys.
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/tutti-os/tutti/packages/agent/daemon/providerregistry"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := providerregistry.ValidateMigrated(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
encoder := json.NewEncoder(os.Stdout)
|
||||
encoder.SetIndent("", " ")
|
||||
if err := encoder.Encode(providerregistry.KnownCapabilities()); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
// Command provideridentitycatalog emits the GUI-facing identity and target
|
||||
// catalog for providers that have completed the provider-registry migration.
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/tutti-os/tutti/packages/agent/daemon/providerregistry"
|
||||
)
|
||||
|
||||
type catalogEntry struct {
|
||||
ProviderID string `json:"providerId"`
|
||||
DisplayName string `json:"displayName"`
|
||||
IconKey string `json:"iconKey"`
|
||||
LocaleKey string `json:"localeKey"`
|
||||
Aliases []string `json:"aliases"`
|
||||
ModelPlanProtocol string `json:"modelPlanProtocol"`
|
||||
StatusKind string `json:"statusKind"`
|
||||
Target target `json:"target"`
|
||||
Desktop desktop `json:"desktop"`
|
||||
}
|
||||
|
||||
type target struct {
|
||||
ID string `json:"id"`
|
||||
LaunchRefType string `json:"launchRefType"`
|
||||
Enabled bool `json:"enabled"`
|
||||
SortOrder int `json:"sortOrder"`
|
||||
}
|
||||
|
||||
type desktop struct {
|
||||
Managed bool `json:"managed"`
|
||||
ManagedOrder int `json:"managedOrder"`
|
||||
StatusProbePriority int `json:"statusProbePriority"`
|
||||
UsageProbeKind string `json:"usageProbeKind"`
|
||||
VisibilityGate string `json:"visibilityGate"`
|
||||
RuntimeProbeFallback string `json:"runtimeProbeFallback"`
|
||||
InstallBootstrap bool `json:"installBootstrap"`
|
||||
RefreshOnAccountChange bool `json:"refreshOnAccountChange"`
|
||||
UnavailableDockOrderOffset int `json:"unavailableDockOrderOffset"`
|
||||
DeveloperLogs bool `json:"developerLogs"`
|
||||
DefaultProviderEligible bool `json:"defaultProviderEligible"`
|
||||
DefaultProviderPriority int `json:"defaultProviderPriority"`
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := providerregistry.ValidateMigrated(); err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
|
||||
descriptors := providerregistry.Migrated()
|
||||
entries := make([]catalogEntry, 0, len(descriptors))
|
||||
for _, descriptor := range descriptors {
|
||||
entries = append(entries, catalogEntry{
|
||||
ProviderID: descriptor.Identity.ID,
|
||||
DisplayName: descriptor.Identity.DisplayName,
|
||||
IconKey: descriptor.Identity.IconKey,
|
||||
LocaleKey: descriptor.Identity.LocaleKey,
|
||||
Aliases: append([]string{}, descriptor.Identity.Aliases...),
|
||||
ModelPlanProtocol: string(descriptor.Runtime.Endpoint.ModelPlanProtocol),
|
||||
StatusKind: string(descriptor.Status.Kind),
|
||||
Target: target{
|
||||
ID: descriptor.Target.ID,
|
||||
LaunchRefType: descriptor.Target.LaunchRefType,
|
||||
Enabled: descriptor.Target.Enabled,
|
||||
SortOrder: descriptor.Target.SortOrder,
|
||||
},
|
||||
Desktop: desktop{
|
||||
Managed: descriptor.Desktop.Managed,
|
||||
ManagedOrder: descriptor.Desktop.ManagedOrder,
|
||||
StatusProbePriority: descriptor.Desktop.StatusProbePriority,
|
||||
UsageProbeKind: string(descriptor.Desktop.UsageProbeKind),
|
||||
VisibilityGate: string(descriptor.Desktop.VisibilityGate),
|
||||
RuntimeProbeFallback: string(descriptor.Desktop.RuntimeProbeFallback),
|
||||
InstallBootstrap: descriptor.Desktop.InstallBootstrap,
|
||||
RefreshOnAccountChange: descriptor.Desktop.RefreshOnAccountChange,
|
||||
UnavailableDockOrderOffset: descriptor.Desktop.UnavailableDockOrderOffset,
|
||||
DeveloperLogs: descriptor.Desktop.DeveloperLogs,
|
||||
DefaultProviderEligible: descriptor.Desktop.DefaultProviderEligible,
|
||||
DefaultProviderPriority: descriptor.Desktop.DefaultProviderPriority,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
encoder := json.NewEncoder(os.Stdout)
|
||||
encoder.SetEscapeHTML(false)
|
||||
encoder.SetIndent("", " ")
|
||||
if err := encoder.Encode(entries); err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func fatal(err error) {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
Reference in new issue
Block a user