Skip to content

Commit 8302847

Browse files
peyton-altclaude
andcommitted
style: gofmt formatting fixes
Alignment adjustments from gofmt after adding linkage field to condenseOpts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Entire-Checkpoint: d93c08550b35
1 parent c71422f commit 8302847

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

cmd/entire/cli/agent/capabilities.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type DeclaredCaps struct {
2727

2828
// AsHookSupport returns the agent as HookSupport if it both implements the
2929
// interface and (for CapabilityDeclarer agents) has declared the capability.
30-
func AsHookSupport(ag Agent) (HookSupport, bool) { //nolint:ireturn // type-assertion helper must return interface
30+
func AsHookSupport(ag Agent) (HookSupport, bool) {
3131
if ag == nil {
3232
return nil, false
3333
}
@@ -43,7 +43,7 @@ func AsHookSupport(ag Agent) (HookSupport, bool) { //nolint:ireturn // type-asse
4343

4444
// AsTranscriptAnalyzer returns the agent as TranscriptAnalyzer if it both
4545
// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
46-
func AsTranscriptAnalyzer(ag Agent) (TranscriptAnalyzer, bool) { //nolint:ireturn // type-assertion helper must return interface
46+
func AsTranscriptAnalyzer(ag Agent) (TranscriptAnalyzer, bool) {
4747
if ag == nil {
4848
return nil, false
4949
}
@@ -59,7 +59,7 @@ func AsTranscriptAnalyzer(ag Agent) (TranscriptAnalyzer, bool) { //nolint:iretur
5959

6060
// AsTranscriptPreparer returns the agent as TranscriptPreparer if it both
6161
// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
62-
func AsTranscriptPreparer(ag Agent) (TranscriptPreparer, bool) { //nolint:ireturn // type-assertion helper must return interface
62+
func AsTranscriptPreparer(ag Agent) (TranscriptPreparer, bool) {
6363
if ag == nil {
6464
return nil, false
6565
}
@@ -75,7 +75,7 @@ func AsTranscriptPreparer(ag Agent) (TranscriptPreparer, bool) { //nolint:iretur
7575

7676
// AsTokenCalculator returns the agent as TokenCalculator if it both
7777
// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
78-
func AsTokenCalculator(ag Agent) (TokenCalculator, bool) { //nolint:ireturn // type-assertion helper must return interface
78+
func AsTokenCalculator(ag Agent) (TokenCalculator, bool) {
7979
if ag == nil {
8080
return nil, false
8181
}
@@ -91,7 +91,7 @@ func AsTokenCalculator(ag Agent) (TokenCalculator, bool) { //nolint:ireturn // t
9191

9292
// AsTextGenerator returns the agent as TextGenerator if it both
9393
// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
94-
func AsTextGenerator(ag Agent) (TextGenerator, bool) { //nolint:ireturn // type-assertion helper must return interface
94+
func AsTextGenerator(ag Agent) (TextGenerator, bool) {
9595
if ag == nil {
9696
return nil, false
9797
}
@@ -107,7 +107,7 @@ func AsTextGenerator(ag Agent) (TextGenerator, bool) { //nolint:ireturn // type-
107107

108108
// AsHookResponseWriter returns the agent as HookResponseWriter if it both
109109
// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
110-
func AsHookResponseWriter(ag Agent) (HookResponseWriter, bool) { //nolint:ireturn // type-assertion helper must return interface
110+
func AsHookResponseWriter(ag Agent) (HookResponseWriter, bool) {
111111
if ag == nil {
112112
return nil, false
113113
}
@@ -126,7 +126,7 @@ func AsHookResponseWriter(ag Agent) (HookResponseWriter, bool) { //nolint:iretur
126126
// ExtractPrompts is conceptually part of transcript analysis, so it shares the same
127127
// capability gate — this prevents calling extract-prompts on external agent binaries
128128
// that never declared transcript_analyzer support.
129-
func AsPromptExtractor(ag Agent) (PromptExtractor, bool) { //nolint:ireturn // type-assertion helper must return interface
129+
func AsPromptExtractor(ag Agent) (PromptExtractor, bool) {
130130
if ag == nil {
131131
return nil, false
132132
}
@@ -143,7 +143,7 @@ func AsPromptExtractor(ag Agent) (PromptExtractor, bool) { //nolint:ireturn // t
143143
// AsSessionBaseDirProvider returns the agent as SessionBaseDirProvider if it implements
144144
// the interface. No capability declaration is needed since this is a built-in-only feature
145145
// (external agents use the agent binary's own session resolution).
146-
func AsSessionBaseDirProvider(ag Agent) (SessionBaseDirProvider, bool) { //nolint:ireturn // type-assertion helper must return interface
146+
func AsSessionBaseDirProvider(ag Agent) (SessionBaseDirProvider, bool) {
147147
if ag == nil {
148148
return nil, false
149149
}
@@ -156,7 +156,7 @@ func AsSessionBaseDirProvider(ag Agent) (SessionBaseDirProvider, bool) { //nolin
156156

157157
// AsSubagentAwareExtractor returns the agent as SubagentAwareExtractor if it both
158158
// implements the interface and (for CapabilityDeclarer agents) has declared the capability.
159-
func AsSubagentAwareExtractor(ag Agent) (SubagentAwareExtractor, bool) { //nolint:ireturn // type-assertion helper must return interface
159+
func AsSubagentAwareExtractor(ag Agent) (SubagentAwareExtractor, bool) {
160160
if ag == nil {
161161
return nil, false
162162
}

cmd/entire/cli/strategy/manual_commit_condensation.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ func (s *ManualCommitStrategy) getCheckpointLog(ctx context.Context, checkpointI
9090

9191
// condenseOpts provides pre-resolved git objects to avoid redundant reads.
9292
type condenseOpts struct {
93-
shadowRef *plumbing.Reference // Pre-resolved shadow branch ref (nil = resolve from repo)
94-
headTree *object.Tree // Pre-resolved HEAD tree (passed through to calculateSessionAttributions)
95-
parentTree *object.Tree // Pre-resolved parent tree (nil for initial commits, for consistent non-agent line counting)
96-
repoDir string // Repository worktree path for git CLI commands
97-
parentCommitHash string // HEAD's first parent hash for per-commit non-agent file detection
98-
headCommitHash string // HEAD commit hash (passed through for attribution)
93+
shadowRef *plumbing.Reference // Pre-resolved shadow branch ref (nil = resolve from repo)
94+
headTree *object.Tree // Pre-resolved HEAD tree (passed through to calculateSessionAttributions)
95+
parentTree *object.Tree // Pre-resolved parent tree (nil for initial commits, for consistent non-agent line counting)
96+
repoDir string // Repository worktree path for git CLI commands
97+
parentCommitHash string // HEAD's first parent hash for per-commit non-agent file detection
98+
headCommitHash string // HEAD commit hash (passed through for attribution)
9999
linkage *cpkg.LinkageMetadata // Content-based signals for re-linking after history rewrites
100100
}
101101

0 commit comments

Comments
 (0)