feat: 清理openspec

This commit is contained in:
npc0-hue
2026-08-20 17:58:36 +08:00
parent 49669a9d5d
commit 40b35b05c7
522 changed files with 168 additions and 19538 deletions
+15 -1
View File
@@ -152,10 +152,24 @@ func (svc *CoreService) CreateServerInstanceWorkflow(create domain.ServerLifecyc
}), nil
}
func dedicatedRunEndpointID(serverInstanceID string) string {
func generatedRunEndpointID(serverInstanceID string) string {
return "server-run-" + serverInstanceID
}
// dedicatedRunEndpointID remains a compatibility helper for legacy fixtures.
// Production flow uses generatedRunEndpointID only when building a package and
// attaches the active endpoint from the first authenticated Run heartbeat.
func dedicatedRunEndpointID(serverInstanceID string) string {
return generatedRunEndpointID(serverInstanceID)
}
func runEndpointIDForDistribution(instance domain.ServerInstance) string {
if endpointID := strings.TrimSpace(instance.RunEndpointID); endpointID != "" {
return endpointID
}
return generatedRunEndpointID(instance.ID)
}
func (svc *CoreService) CreateServerInstanceWorkflowForSession(sessionID string, create domain.ServerLifecycleCreate) (domain.ServerLifecycleResult, error) {
user, err := svc.GetCurrentUser(sessionID)
if err != nil {