Skip to content

Commit 2444e07

Browse files
wesmclaude
andauthored
fix: rename frontend package to agentsview-frontend (#573)
The frontend npm package was still named `agent-session-viewer-frontend`, the project's old working name. This renames it to `agentsview-frontend` in `package.json` and `package-lock.json` so the name matches the rest of the project (the Go module is already `go.kenn.io/agentsview`). The package is private and referenced nowhere else, so this is an identity-only change. No other occurrences of the old name remain in the repo. It also clears two pre-existing `golangci-lint` failures that blocked the pre-commit hook: - Removed the `//go:fix inline` directive from the generic `Ptr[T]` test helpers in `internal/db` and `internal/dbtest`. The Go fix inliner cannot inline generic calls ("type parameter inference is not yet supported"), so every `Ptr(...)` call site raised a `govet` error. - Rewrote the reverse loop in `cmd/agentsview/sync_profile.go` to use `slices.Backward`. `golangci-lint run ./...` now reports no issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c36ba91 commit 2444e07

5 files changed

Lines changed: 6 additions & 9 deletions

File tree

cmd/agentsview/sync_profile.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"runtime"
99
"runtime/pprof"
1010
"runtime/trace"
11+
"slices"
1112
)
1213

1314
// startSyncProfile starts whichever of the hidden --cpuprofile,
@@ -75,8 +76,8 @@ func startSyncProfile(cfg SyncConfig) func() {
7576
return func() {
7677
// Stop in reverse order so trace.Stop runs before file
7778
// close.
78-
for i := len(stoppers) - 1; i >= 0; i-- {
79-
stoppers[i]()
79+
for _, stop := range slices.Backward(stoppers) {
80+
stop()
8081
}
8182
}
8283
}

frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "agent-session-viewer-frontend",
2+
"name": "agentsview-frontend",
33
"private": true,
44
"version": "0.1.0",
55
"type": "module",

internal/db/db_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ func testDB(t *testing.T) *DB {
204204
}
205205

206206
// Ptr returns a pointer to v.
207-
//
208-
//go:fix inline
209207
func Ptr[T any](v T) *T { return new(v) }
210208

211209
// insertSession creates and upserts a session with sensible

internal/dbtest/dbtest.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import (
1313
)
1414

1515
// Ptr returns a pointer to v.
16-
//
17-
//go:fix inline
1816
func Ptr[T any](v T) *T { return new(v) }
1917

2018
// WriteTestFile creates a file at path with the given content,

0 commit comments

Comments
 (0)