Skip to content

Commit 6fb861a

Browse files
committed
chore: revert formatting-only changes from feature commit
1 parent a9b401a commit 6fb861a

8 files changed

Lines changed: 8 additions & 3 deletions

File tree

internal/cli/cli_ux_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,4 @@ func TestLegacyFeishuAdapterCommandShowsMigrationHint(t *testing.T) {
100100
t.Fatalf("err = %v, want contains adapter feishu", err)
101101
}
102102
}
103+

internal/runtime/ask_session.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ func normalizeAskMessageRole(role string) string {
4545
return "assistant"
4646
}
4747
}
48+

internal/runtime/ask_store.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,4 @@ func (s *inMemoryAskSessionStore) cleanupExpiredLocked(now time.Time) {
117117
delete(s.sessions, sessionID)
118118
}
119119
}
120+

internal/runtime/hooks/executor_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,3 +1052,4 @@ func TestExecutorSkipsHookWhenMatcherMissed(t *testing.T) {
10521052
t.Fatalf("len(Results) = %d, want 0 when matcher missed", len(output.Results))
10531053
}
10541054
}
1055+

internal/runtime/hooks/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ type HookSpec struct {
197197
Timeout time.Duration
198198
FailurePolicy FailurePolicy
199199
Handler HookHandler
200-
Matcher *HookMatcher
200+
Matcher *HookMatcher
201201
}
202202

203203
// normalizeAndValidate 将 HookSpec 归一化并校验当前阶段可用字段。

internal/runtime/hooks_integration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/json"
66
"strings"
77

8-
providertypes "neo-code/internal/provider/types"
98
runtimehooks "neo-code/internal/runtime/hooks"
9+
providertypes "neo-code/internal/provider/types"
1010
)
1111

1212
const (

internal/runtime/repo_hooks_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ func TestValidateRepoHookItemRejectsExternalKindsWithP6LiteMessage(t *testing.T)
596596
}
597597
}
598598

599+
599600
func TestValidateRepoHookItemAllowsWarnOnToolCallWithMatchOnly(t *testing.T) {
600601
t.Parallel()
601602

internal/runtime/repository_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strings"
77

88
agentcontext "neo-code/internal/context"
9-
providertypes "neo-code/internal/provider/types"
109
"neo-code/internal/repository"
10+
providertypes "neo-code/internal/provider/types"
1111
)
1212

1313
// buildRepositoryContext 返回最小 Git 摘要(迁移期保留),不再自动注入 changed-files 或 retrieval。

0 commit comments

Comments
 (0)