Skip to content

Commit 3139883

Browse files
jkyberneeesclaude
andcommitted
Rename module from go-prompt-injection-detector to go-prompt-injection-guard
Updates all Go import paths, go.mod module declaration, README title, Docker image references, and usage examples to reflect the new repository name. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 84c9400 commit 3139883

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# go-prompt-injection-detector
1+
# go-prompt-injection-guard
22

33
Fast local prompt injection detector for macOS / Linux
44

@@ -184,8 +184,8 @@ coverage, Dockerfile smoke builds) runs on every push and pull request. Pushing
184184
attaches a linux-amd64 binary tarball (with checksum) to a GitHub release and
185185
publishes container images to GHCR:
186186

187-
- `ghcr.io/backendstack21/go-prompt-injection-detector` — the daemon
188-
- `ghcr.io/backendstack21/go-prompt-injection-detector-gateway` — the HTTP gateway
187+
- `ghcr.io/backendstack21/go-prompt-injection-guard` — the daemon
188+
- `ghcr.io/backendstack21/go-prompt-injection-guard-gateway` — the HTTP gateway
189189

190190
```bash
191191
git tag v0.1.0 && git push origin v0.1.0
@@ -365,7 +365,7 @@ $ time piguard "test"
365365
The detector is also usable as a Go package:
366366

367367
```bash
368-
go get github.com/BackendStack21/go-prompt-injection-detector
368+
go get github.com/BackendStack21/go-prompt-injection-guard
369369
```
370370

371371
> **Note:** the package uses cgo. Consumers must have the `libtokenizers.a`
@@ -374,7 +374,7 @@ go get github.com/BackendStack21/go-prompt-injection-detector
374374
> Run `make libtokenizers` in this repo to fetch it.
375375
376376
```go
377-
import piguard "github.com/BackendStack21/go-prompt-injection-detector"
377+
import piguard "github.com/BackendStack21/go-prompt-injection-guard"
378378

379379
det, err := piguard.Load(piguard.DefaultModelDir())
380380
if err != nil {

cmd/piguard-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import (
4646
"syscall"
4747
"time"
4848

49-
piguard "github.com/BackendStack21/go-prompt-injection-detector"
49+
piguard "github.com/BackendStack21/go-prompt-injection-guard"
5050
)
5151

5252

cmd/piguard-server/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"testing"
1515
"time"
1616

17-
piguard "github.com/BackendStack21/go-prompt-injection-detector"
18-
"github.com/BackendStack21/go-prompt-injection-detector/internal/testutil"
17+
piguard "github.com/BackendStack21/go-prompt-injection-guard"
18+
"github.com/BackendStack21/go-prompt-injection-guard/internal/testutil"
1919
)
2020

2121
var ortAvailable bool

cmd/piguard/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"path/filepath"
1111
"time"
1212

13-
piguard "github.com/BackendStack21/go-prompt-injection-detector"
13+
piguard "github.com/BackendStack21/go-prompt-injection-guard"
1414
)
1515

1616
// tokenizerCommit is the HuggingFace commit SHA the tokenizer.json is fetched

cmd/piguard/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"strings"
1818
"time"
1919

20-
piguard "github.com/BackendStack21/go-prompt-injection-detector"
20+
piguard "github.com/BackendStack21/go-prompt-injection-guard"
2121
)
2222

2323
// version is stamped at build time via -ldflags "-X main.version=<tag>".

cmd/piguard/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"strings"
1313
"testing"
1414

15-
piguard "github.com/BackendStack21/go-prompt-injection-detector"
16-
"github.com/BackendStack21/go-prompt-injection-detector/internal/testutil"
15+
piguard "github.com/BackendStack21/go-prompt-injection-guard"
16+
"github.com/BackendStack21/go-prompt-injection-guard/internal/testutil"
1717
)
1818

1919
var ortAvailable bool

detector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
tokenizers "github.com/daulet/tokenizers"
1313
ort "github.com/yalue/onnxruntime_go"
1414

15-
"github.com/BackendStack21/go-prompt-injection-detector/internal/testutil"
15+
"github.com/BackendStack21/go-prompt-injection-guard/internal/testutil"
1616
)
1717

1818
var errInject = errors.New("injected failure")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/BackendStack21/go-prompt-injection-detector
1+
module github.com/BackendStack21/go-prompt-injection-guard
22

33
go 1.24.7
44

0 commit comments

Comments
 (0)