chore: README update demo and Error Fix (#126)

* docs: Update README with demo gif

* fix: Proxy remove dependency on interaction

* fix: Update demo gif width

* Update docs/demo/pmg-intro.tape

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com>

* fix: PMG demo

---------

Signed-off-by: Abhisek Datta <abhisek.datta@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Abhisek Datta
2026-01-18 16:00:37 +05:30
committed by GitHub
co-authored by Copilot
parent 6a3821d44a
commit edfdd543e0
16 changed files with 163 additions and 38 deletions
-2
View File
@@ -10,7 +10,6 @@ import (
"github.com/safedep/dry/log"
"github.com/safedep/pmg/analyzer"
"github.com/safedep/pmg/config"
"github.com/safedep/pmg/guard"
"github.com/safedep/pmg/internal/eventlog"
"github.com/safedep/pmg/proxy"
)
@@ -21,7 +20,6 @@ type baseRegistryInterceptor struct {
analyzer analyzer.PackageVersionAnalyzer
cache AnalysisCache
confirmationChan chan *ConfirmationRequest
interaction guard.PackageManagerGuardInteraction
}
var _ proxy.Interceptor = (*baseRegistryInterceptor)(nil)
-3
View File
@@ -8,7 +8,6 @@ import (
packagev1 "buf.build/gen/go/safedep/api/protocolbuffers/go/safedep/messages/package/v1"
"github.com/safedep/pmg/analyzer"
"github.com/safedep/pmg/guard"
"github.com/safedep/pmg/proxy"
"github.com/stretchr/testify/assert"
)
@@ -119,11 +118,9 @@ func TestBaseRegistryInterceptor_HandleAnalysisResult(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
confirmationChan := make(chan *ConfirmationRequest, 1)
interaction := guard.PackageManagerGuardInteraction{}
base := &baseRegistryInterceptor{
confirmationChan: confirmationChan,
interaction: interaction,
}
parsedURL, _ := url.Parse("https://registry.npmjs.org/test")