feat(*): 创作配置 - 支持 Midjourney、多图保存与自定义公告

Co-authored-by: ddcat666 <26564566+ddcat666@users.noreply.github.com>
This commit is contained in:
DAO-QINandddcat666 authored and ddcat666 committed 2026-10-04 10:43:31 +08:00
1 parent 002a45f0c3
commit 853c7d2ce7
107 files changed
+9261 -408

No files matched your search

+3 -2
View File
@@ -10,7 +10,7 @@ import (
)
const (
cloudAgentCompilerVersion = "cloud-agent-policy-compiler/v4"
cloudAgentCompilerVersion = "cloud-agent-policy-compiler/v5"
cloudAgentDefaultReasoning = "off"
)
@@ -100,7 +100,7 @@ func cloudAgentSkillManifestDescription(description string) string {
return strings.TrimSpace(string(runes[:maxRunes])) + "…"
}
func compileCloudAgentPolicies(req CloudAgentRequest, skills []cloudAgentSkill, canvasSummary string, profile cloudAgentProfileSnapshot, anchors ...cloudAgentCreativeAnchor) (string, cloudAgentPolicySnapshot, error) {
func compileCloudAgentPolicies(req CloudAgentRequest, agentName string, skills []cloudAgentSkill, canvasSummary string, profile cloudAgentProfileSnapshot, anchors ...cloudAgentCreativeAnchor) (string, cloudAgentPolicySnapshot, error) {
system, media, err := prompts.LoadAgentPolicies()
if err != nil {
return "", cloudAgentPolicySnapshot{}, err
@@ -123,6 +123,7 @@ func compileCloudAgentPolicies(req CloudAgentRequest, skills []cloudAgentSkill,
// Behavior belongs to versioned policies; the compiler only projects facts.
context := map[string]any{
"source": "server_snapshot", "permissionMode": req.PermissionMode,
"agentIdentity": map[string]string{"name": firstNonEmpty(strings.TrimSpace(agentName), defaultCanvasAppearance().AgentName)},
"reasoningMode": mode,
"budget": map[string]any{
"maxCredits": req.Budget.MaxCredits, "maxSteps": cloudAgentStepLimit(req),