Make published source self-contained
Browse filesUse the Hugging Face source module identity and remove internal repository import paths.
- source/cmd/vigil-compact/main.go +1 -1
- source/go.mod +1 -1
- source/pkg/bundle/aggregate.go +1 -1
- source/pkg/bundle/bundle.go +1 -1
- source/pkg/bundle/references.go +1 -1
- source/pkg/bundle/scan.go +1 -1
- source/pkg/compactcli/run.go +2 -2
- source/pkg/compactonnx/loader.go +1 -1
- source/pkg/compactonnx/loader_noonnx.go +1 -1
- source/pkg/compactonnx/types.go +1 -1
- source/pkg/compactscan/scan.go +2 -2
- source/pkg/parser/parser.go +1 -1
source/cmd/vigil-compact/main.go
CHANGED
|
@@ -6,7 +6,7 @@ package main
|
|
| 6 |
import (
|
| 7 |
"os"
|
| 8 |
|
| 9 |
-
"
|
| 10 |
)
|
| 11 |
|
| 12 |
func main() {
|
|
|
|
| 6 |
import (
|
| 7 |
"os"
|
| 8 |
|
| 9 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/compactcli"
|
| 10 |
)
|
| 11 |
|
| 12 |
func main() {
|
source/go.mod
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
module
|
| 2 |
|
| 3 |
go 1.26.1
|
| 4 |
|
|
|
|
| 1 |
+
module huggingface.co/turenlabs/Vigil/source
|
| 2 |
|
| 3 |
go 1.26.1
|
| 4 |
|
source/pkg/bundle/aggregate.go
CHANGED
|
@@ -5,7 +5,7 @@ import (
|
|
| 5 |
"path/filepath"
|
| 6 |
"sort"
|
| 7 |
|
| 8 |
-
"
|
| 9 |
)
|
| 10 |
|
| 11 |
// BundleResult is the raw cross-file analysis output for a bundle: every
|
|
|
|
| 5 |
"path/filepath"
|
| 6 |
"sort"
|
| 7 |
|
| 8 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/types"
|
| 9 |
)
|
| 10 |
|
| 11 |
// BundleResult is the raw cross-file analysis output for a bundle: every
|
source/pkg/bundle/bundle.go
CHANGED
|
@@ -17,7 +17,7 @@ import (
|
|
| 17 |
"path/filepath"
|
| 18 |
"strings"
|
| 19 |
|
| 20 |
-
"
|
| 21 |
)
|
| 22 |
|
| 23 |
// FileKind classifies a bundle member by what it actually is (sniffed magic
|
|
|
|
| 17 |
"path/filepath"
|
| 18 |
"strings"
|
| 19 |
|
| 20 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/types"
|
| 21 |
)
|
| 22 |
|
| 23 |
// FileKind classifies a bundle member by what it actually is (sniffed magic
|
source/pkg/bundle/references.go
CHANGED
|
@@ -4,7 +4,7 @@ import (
|
|
| 4 |
"path/filepath"
|
| 5 |
"strings"
|
| 6 |
|
| 7 |
-
"
|
| 8 |
)
|
| 9 |
|
| 10 |
// resolveReferences marks each File.Referenced by searching the SKILL.md for any
|
|
|
|
| 4 |
"path/filepath"
|
| 5 |
"strings"
|
| 6 |
|
| 7 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/types"
|
| 8 |
)
|
| 9 |
|
| 10 |
// resolveReferences marks each File.Referenced by searching the SKILL.md for any
|
source/pkg/bundle/scan.go
CHANGED
|
@@ -7,7 +7,7 @@ import (
|
|
| 7 |
"path/filepath"
|
| 8 |
"strings"
|
| 9 |
|
| 10 |
-
"
|
| 11 |
)
|
| 12 |
|
| 13 |
const (
|
|
|
|
| 7 |
"path/filepath"
|
| 8 |
"strings"
|
| 9 |
|
| 10 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/parser"
|
| 11 |
)
|
| 12 |
|
| 13 |
const (
|
source/pkg/compactcli/run.go
CHANGED
|
@@ -7,8 +7,8 @@ import (
|
|
| 7 |
"flag"
|
| 8 |
"io"
|
| 9 |
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
)
|
| 13 |
|
| 14 |
const (
|
|
|
|
| 7 |
"flag"
|
| 8 |
"io"
|
| 9 |
|
| 10 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/compactonnx"
|
| 11 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/compactscan"
|
| 12 |
)
|
| 13 |
|
| 14 |
const (
|
source/pkg/compactonnx/loader.go
CHANGED
|
@@ -15,7 +15,7 @@ import (
|
|
| 15 |
"strconv"
|
| 16 |
"sync"
|
| 17 |
|
| 18 |
-
"
|
| 19 |
ort "github.com/yalue/onnxruntime_go"
|
| 20 |
)
|
| 21 |
|
|
|
|
| 15 |
"strconv"
|
| 16 |
"sync"
|
| 17 |
|
| 18 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/compactmodel"
|
| 19 |
ort "github.com/yalue/onnxruntime_go"
|
| 20 |
)
|
| 21 |
|
source/pkg/compactonnx/loader_noonnx.go
CHANGED
|
@@ -5,7 +5,7 @@ package compactonnx
|
|
| 5 |
import (
|
| 6 |
"errors"
|
| 7 |
|
| 8 |
-
"
|
| 9 |
)
|
| 10 |
|
| 11 |
type Model struct{}
|
|
|
|
| 5 |
import (
|
| 6 |
"errors"
|
| 7 |
|
| 8 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/compactmodel"
|
| 9 |
)
|
| 10 |
|
| 11 |
type Model struct{}
|
source/pkg/compactonnx/types.go
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
// candidates. It has no embedded model and no legacy scoring fallback.
|
| 3 |
package compactonnx
|
| 4 |
|
| 5 |
-
import "
|
| 6 |
|
| 7 |
const (
|
| 8 |
MetadataSchema = "vigil.compact-onnx-metadata.v1"
|
|
|
|
| 2 |
// candidates. It has no embedded model and no legacy scoring fallback.
|
| 3 |
package compactonnx
|
| 4 |
|
| 5 |
+
import "huggingface.co/turenlabs/Vigil/source/pkg/compactmodel"
|
| 6 |
|
| 7 |
const (
|
| 8 |
MetadataSchema = "vigil.compact-onnx-metadata.v1"
|
source/pkg/compactscan/scan.go
CHANGED
|
@@ -10,8 +10,8 @@ import (
|
|
| 10 |
"path/filepath"
|
| 11 |
"strings"
|
| 12 |
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
)
|
| 16 |
|
| 17 |
// Stats contains only aggregate package accounting; no member names or content
|
|
|
|
| 10 |
"path/filepath"
|
| 11 |
"strings"
|
| 12 |
|
| 13 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/bundle"
|
| 14 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/compactmodel"
|
| 15 |
)
|
| 16 |
|
| 17 |
// Stats contains only aggregate package accounting; no member names or content
|
source/pkg/parser/parser.go
CHANGED
|
@@ -5,7 +5,7 @@ import (
|
|
| 5 |
"os"
|
| 6 |
"strings"
|
| 7 |
|
| 8 |
-
"
|
| 9 |
)
|
| 10 |
|
| 11 |
// Parse reads a Claude Code skill markdown file and extracts frontmatter + body.
|
|
|
|
| 5 |
"os"
|
| 6 |
"strings"
|
| 7 |
|
| 8 |
+
"huggingface.co/turenlabs/Vigil/source/pkg/types"
|
| 9 |
)
|
| 10 |
|
| 11 |
// Parse reads a Claude Code skill markdown file and extracts frontmatter + body.
|