diff --git a/AGENTS.md b/AGENTS.md index b8281bae..1ad4a91f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,7 +1,7 @@ # AGENTS.md — Guia para agentes de IA no Noxy VM -Máquina virtual de bytecode para a linguagem Noxy, em Go (módulo `noxy-vm`, -Go 1.25). Versão corrente: `v0.24.0` (`internal/version/version.go`). +Máquina virtual de bytecode para a linguagem Noxy, em Go (módulo `github.com/estevaofon/noxy`, +Go 1.25). Versão corrente: `v0.25.0` (`internal/version/version.go`). **Fonte da verdade da linguagem: `docs/NOXY_LANGUAGE_SPEC.md`.** Regra de linguagem vem da spec ou de teste no binário — nunca de um exemplo. Este @@ -24,7 +24,7 @@ Source → Lexer → Parser → AST → Compiler → Bytecode (Chunk) → VM | `internal/stdlib` | Módulos `.nx` embutidos (`//go:embed *.nx`, sem registro) | | `cmd/noxy` | CLI, REPL (`runREPL`), `diagOut` (destino único dos diagnósticos da CLI) | | `internal/ext`, `sdk/noxyplugin` | Extensões wasm e por processo (`noxy-plugin/1`); o SDK é módulo Go aninhado, testado à parte (`go test ./...` dentro dele) | -| `internal/pkgmanager` (`--get`/`--sync`, `noxy.sum` v2, `FindRoot`), `internal/lineedit`, `internal/console`, `internal/version`, `internal/plugin` (deprecado, sai na v0.25.0) | Periferia | +| `internal/pkgmanager` (`--get`/`--sync`, `noxy.sum` v2, `FindRoot`), `internal/lineedit`, `internal/console`, `internal/version`, `internal/plugin` (deprecado, sai na v0.26.0) | Periferia | ## Verificação obrigatória @@ -179,4 +179,4 @@ hashes de todos em `noxy.sum`. Ver `docs/EXTENSIONS.md` e --- -**Versão**: 1.2 (Noxy VM 0.23.5) — atualizado em 2026-09-04 +**Versão**: 1.2 (Noxy VM 0.25.0) — atualizado em 2026-09-05 diff --git a/CHANGELOG.md b/CHANGELOG.md index deaf6d82..259e467a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [0.25.0] - 2026-09-05 + +### Changed +- Caminho do módulo Go passa de `noxy-vm` para `github.com/estevaofon/noxy`, + o que habilita `go install github.com/estevaofon/noxy/cmd/noxy@latest` + (a partir da primeira tag publicada após esta mudança). Imports internos + e o `README.md` (seção *Installation*, `cd noxy` após o clone) foram + atualizados; nada muda para programas Noxy. + +### Deprecated +- `sys_load_plugin`: a remoção (com `internal/plugin` e + `compiler.PluginNativeNames`) passa da v0.25.0 para a **v0.26.0**; o aviso + no stderr, `docs/EXTENSIONS.md` e a spec §10.1 refletem a nova janela. + ## [0.24.0] - 2026-09-04 Package manager: `noxy --sync` reconstrói `noxy_libs` a partir de `noxy.mod` diff --git a/README.md b/README.md index 8519729b..bfb45104 100644 --- a/README.md +++ b/README.md @@ -184,14 +184,30 @@ Fixing beats staying compatible, until 1.0 says otherwise. ## Installation +### With `go install` (recommended) + +Requires Go 1.25+. Installs the `noxy` binary into `$(go env GOPATH)/bin` +(make sure that directory is in your `PATH`): + +```bash +go install github.com/estevaofon/noxy/cmd/noxy@latest +``` + +To install a specific release, replace `@latest` with a tag (e.g. `@v0.25.0`). + +### From source + ```bash # Clone the repository git clone https://github.com/estevaofon/noxy.git -cd noxy-vm +cd noxy # Build go build -o noxy ./cmd/noxy +# Or install into $(go env GOPATH)/bin +go install ./cmd/noxy + # Or run directly go run ./cmd/noxy/main.go file.nx ``` @@ -222,7 +238,7 @@ exits with code `1`. Noxy includes a powerful REPL (Read-Eval-Print Loop) for interactive coding. Just run `noxy` without arguments. ```noxy -Noxy REPL v0.24.0 +Noxy REPL v0.25.0 Type 'exit' to quit. >>> let x: int = 10 >>> x + 5 @@ -290,7 +306,7 @@ go run cmd/noxy/main.go noxy_examples/run_all_tests_concurrent.nx ## Architecture ``` -noxy-vm/ +noxy/ ├── cmd/noxy/main.go # Main CLI ├── internal/ │ ├── lexer/ # Tokenization diff --git a/cmd/noxy/main.go b/cmd/noxy/main.go index 8c5171c4..5572de1b 100644 --- a/cmd/noxy/main.go +++ b/cmd/noxy/main.go @@ -5,17 +5,17 @@ import ( "errors" "flag" "fmt" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/console" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/lineedit" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/token" + "github.com/estevaofon/noxy/internal/version" + "github.com/estevaofon/noxy/internal/vm" "io" - "noxy-vm/internal/ast" - "noxy-vm/internal/compiler" - "noxy-vm/internal/console" - "noxy-vm/internal/lexer" - "noxy-vm/internal/lineedit" - "noxy-vm/internal/parser" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/token" - "noxy-vm/internal/version" - "noxy-vm/internal/vm" "os" "path/filepath" "runtime" diff --git a/cmd/noxy/main_test.go b/cmd/noxy/main_test.go index f854322e..f43498ba 100644 --- a/cmd/noxy/main_test.go +++ b/cmd/noxy/main_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "noxy-vm/internal/lineedit" + "github.com/estevaofon/noxy/internal/lineedit" ) func captureStdout(t *testing.T, run func()) string { diff --git a/cmd/noxy/process_exit_test.go b/cmd/noxy/process_exit_test.go index 3aeeb66e..f4bdabcb 100644 --- a/cmd/noxy/process_exit_test.go +++ b/cmd/noxy/process_exit_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "noxy-vm/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/ext/exttest" ) // sys_exit chama os.Exit direto: o unico jeito de provar que fecha as @@ -32,8 +32,8 @@ func TestSysExitClosesProcessExtensions(t *testing.T) { t.Fatal(err) } for name, data := range map[string][]byte{ - "noxy_ext.toml": []byte(manifest), - "guest.nx": []byte("func pid() -> int\n return guest_pid()\nend\n"), + "noxy_ext.toml": []byte(manifest), + "guest.nx": []byte("func pid() -> int\n return guest_pid()\nend\n"), filepath.Join("bin", asset): bin, } { if err := os.WriteFile(filepath.Join(pkg, name), data, 0o755); err != nil { diff --git a/docs/EXTENSIONS.md b/docs/EXTENSIONS.md index 0e78052d..5e19d848 100644 --- a/docs/EXTENSIONS.md +++ b/docs/EXTENSIONS.md @@ -248,7 +248,7 @@ it); list exactly those asset names in `[binaries]`. ### `sys_load_plugin` (deprecated) The line-delimited JSON plugin builtin is deprecated since v0.23.0 and -will be removed in v0.25.0 together with `internal/plugin` and the +will be removed in v0.26.0 together with `internal/plugin` and the compiler's `PluginNativeNames` special case; it prints a warning on first use. Migrate by publishing the plugin as a `kind = "process"` extension. diff --git a/docs/NOXY_LANGUAGE_SPEC.md b/docs/NOXY_LANGUAGE_SPEC.md index 5948faff..466e1d2e 100644 --- a/docs/NOXY_LANGUAGE_SPEC.md +++ b/docs/NOXY_LANGUAGE_SPEC.md @@ -2786,7 +2786,7 @@ io.close(f) ### System (`sys`) `sys.version` is the version of the Noxy running the program — the same -string `noxy --version` prints (`v0.24.0`). It is a module binding, not a +string `noxy --version` prints (`v0.25.0`). It is a module binding, not a call: `use sys` then `print(sys.version)`, or `use sys select version`, which brings it in typed as `string`. diff --git a/docs/index.html b/docs/index.html index 854e4f05..44471ab5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -55,7 +55,7 @@
- v0.24.0 + v0.25.0 Latest release · changelog @@ -383,7 +383,7 @@

Standard Library

print(time.now()) // unix timestamp print(length(sys.argv())) // command-line args -print(sys.version) // v0.24.0 +print(sys.version) // v0.25.0 let user: map[string, any] = {"name": "Ana", "age": 30} print(json_dumps(user)) // {"age":30,"name":"Ana"} diff --git a/docs/superpowers/specs/2026-08-29-process-extensions-design.md b/docs/superpowers/specs/2026-08-29-process-extensions-design.md index d0f0ea62..22ed1265 100644 --- a/docs/superpowers/specs/2026-08-29-process-extensions-design.md +++ b/docs/superpowers/specs/2026-08-29-process-extensions-design.md @@ -707,10 +707,10 @@ anywhere. - **v0.23.0 (this delivery):** the builtin keeps working. Its first call in a process prints once to stderr: `warning: sys_load_plugin is deprecated - since v0.23.0 and will be removed in v0.25.0; publish the plugin as a kind + since v0.23.0 and will be removed in v0.26.0; publish the plugin as a kind = "process" extension (docs/EXTENSIONS.md)`. `docs/` mark it deprecated; the CHANGELOG states the window. -- **v0.25.0:** remove `sys_load_plugin`, `internal/plugin`, +- **v0.26.0** (janela estendida na v0.25.0, que só renomeou o módulo Go): remove `sys_load_plugin`, `internal/plugin`, `compiler.PluginNativeNames` and its three call sites, and the JSON protocol from `docs/`. @@ -852,7 +852,7 @@ One release, v0.23.0, in the order of issue #80's checkboxes: 6. `noxy_terminal` migrated and released (checkbox 5). 7. `noxy_dynamodb` migrated and released (checkbox 6). 8. Deprecation warning for `sys_load_plugin`, CHANGELOG entry with the - removal window (checkbox 8, first half; second half at v0.25.0). + removal window (checkbox 8, first half; second half at v0.26.0). Steps 2–4 are one PR to `develop`; 5–8 follow as small PRs. diff --git a/go.mod b/go.mod index 78a6df0d..5005629a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module noxy-vm +module github.com/estevaofon/noxy go 1.25.0 diff --git a/internal/ast/ast.go b/internal/ast/ast.go index 66e604a9..7d425b95 100644 --- a/internal/ast/ast.go +++ b/internal/ast/ast.go @@ -3,7 +3,7 @@ package ast import ( "bytes" "fmt" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" "strings" ) diff --git a/internal/ast/string_golden_test.go b/internal/ast/string_golden_test.go index f23d1a32..829c450e 100644 --- a/internal/ast/string_golden_test.go +++ b/internal/ast/string_golden_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // ast.Node.String() é o texto que aparece em diagnósticos ("addr(ref x)", diff --git a/internal/chunk/chunk.go b/internal/chunk/chunk.go index 68752fdf..e43f1a04 100644 --- a/internal/chunk/chunk.go +++ b/internal/chunk/chunk.go @@ -2,7 +2,7 @@ package chunk import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" "sync" "sync/atomic" ) diff --git a/internal/chunk/chunk_test.go b/internal/chunk/chunk_test.go index f7d72427..5baf35da 100644 --- a/internal/chunk/chunk_test.go +++ b/internal/chunk/chunk_test.go @@ -7,11 +7,11 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" ) // OpCode.String() e o disassembler (`noxy --disassembly`, `DisassembleAll` no diff --git a/internal/compiler/arith_operand_checks.go b/internal/compiler/arith_operand_checks.go index c8fa5ca1..1d1affb4 100644 --- a/internal/compiler/arith_operand_checks.go +++ b/internal/compiler/arith_operand_checks.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // Checagem estatica dos operandos de `+ - * / %` e `< > <= >=` (issue #75): diff --git a/internal/compiler/arith_operand_checks_test.go b/internal/compiler/arith_operand_checks_test.go index 6b00150e..343c750e 100644 --- a/internal/compiler/arith_operand_checks_test.go +++ b/internal/compiler/arith_operand_checks_test.go @@ -13,7 +13,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) func TestArithmeticOperandMismatchIsCompileError(t *testing.T) { diff --git a/internal/compiler/borrow_place.go b/internal/compiler/borrow_place.go index a2a1fa64..e5d94a12 100644 --- a/internal/compiler/borrow_place.go +++ b/internal/compiler/borrow_place.go @@ -1,9 +1,9 @@ package compiler import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // O empréstimo como LUGAR (issue #83). diff --git a/internal/compiler/builtin_calls.go b/internal/compiler/builtin_calls.go index affd67fe..8d149353 100644 --- a/internal/compiler/builtin_calls.go +++ b/internal/compiler/builtin_calls.go @@ -2,8 +2,8 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" ) func builtinType(name string) ast.NoxyType { diff --git a/internal/compiler/builtin_calls_test.go b/internal/compiler/builtin_calls_test.go index 847dbb0b..ac26bb45 100644 --- a/internal/compiler/builtin_calls_test.go +++ b/internal/compiler/builtin_calls_test.go @@ -1,7 +1,7 @@ package compiler import ( - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" "strings" "testing" ) diff --git a/internal/compiler/builtin_return_types.go b/internal/compiler/builtin_return_types.go index 3418d185..de4b95b3 100644 --- a/internal/compiler/builtin_return_types.go +++ b/internal/compiler/builtin_return_types.go @@ -1,6 +1,6 @@ package compiler -import "noxy-vm/internal/ast" +import "github.com/estevaofon/noxy/internal/ast" // Tipo de retorno estatico dos builtins CENTRAIS (os que existem sem `use`: // registrados pela VM em defineNatives, sem wrapper tipado na stdlib). Ate a diff --git a/internal/compiler/call_result.go b/internal/compiler/call_result.go index f289e4c5..579cb9b8 100644 --- a/internal/compiler/call_result.go +++ b/internal/compiler/call_result.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // call_result (issue #105 item 2): a fronteira sincrona de erro devolve diff --git a/internal/compiler/compiler.go b/internal/compiler/compiler.go index 177dcd71..3cfb7b50 100644 --- a/internal/compiler/compiler.go +++ b/internal/compiler/compiler.go @@ -2,10 +2,10 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/value" "path/filepath" "strings" ) diff --git a/internal/compiler/compiler_test.go b/internal/compiler/compiler_test.go index 350b79db..43224549 100644 --- a/internal/compiler/compiler_test.go +++ b/internal/compiler/compiler_test.go @@ -2,11 +2,11 @@ package compiler import ( "bytes" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" "strings" "testing" ) diff --git a/internal/compiler/cow_lowering.go b/internal/compiler/cow_lowering.go index 5bfc74a7..047478e1 100644 --- a/internal/compiler/cow_lowering.go +++ b/internal/compiler/cow_lowering.go @@ -3,9 +3,9 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // compileLValueBase compila a BASE de um lvalue emitindo a cadeia de opcodes diff --git a/internal/compiler/cow_lowering_test.go b/internal/compiler/cow_lowering_test.go index fbbe289a..11ba10da 100644 --- a/internal/compiler/cow_lowering_test.go +++ b/internal/compiler/cow_lowering_test.go @@ -3,10 +3,10 @@ package compiler import ( "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" ) func compileSource(t *testing.T, source string) *chunk.Chunk { diff --git a/internal/compiler/default_init.go b/internal/compiler/default_init.go index b41c5e1f..a225f545 100644 --- a/internal/compiler/default_init.go +++ b/internal/compiler/default_init.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // typeWithoutDefault responde qual (sub)tipo impede `let nome: tipo` sem diff --git a/internal/compiler/explicit_ref.go b/internal/compiler/explicit_ref.go index 60f783eb..fe27340f 100644 --- a/internal/compiler/explicit_ref.go +++ b/internal/compiler/explicit_ref.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // refReadHint e o hint que acompanha todo erro "esperava T, veio ref T" diff --git a/internal/compiler/field_index.go b/internal/compiler/field_index.go index cd011728..4f13fd5b 100644 --- a/internal/compiler/field_index.go +++ b/internal/compiler/field_index.go @@ -1,9 +1,9 @@ package compiler import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Campo de struct por indice em compilacao (issue #96). diff --git a/internal/compiler/float_ops_compile_test.go b/internal/compiler/float_ops_compile_test.go index dd924077..e632e11c 100644 --- a/internal/compiler/float_ops_compile_test.go +++ b/internal/compiler/float_ops_compile_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" ) // TestFloatArithmeticOpcodesEmitted fixa, por bytecode, que operandos diff --git a/internal/compiler/function_types.go b/internal/compiler/function_types.go index 3eaaf507..3168cb20 100644 --- a/internal/compiler/function_types.go +++ b/internal/compiler/function_types.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) func normalizeReturnType(t ast.NoxyType) ast.NoxyType { diff --git a/internal/compiler/function_types_benchmark_test.go b/internal/compiler/function_types_benchmark_test.go index e8a05731..6528f2f2 100644 --- a/internal/compiler/function_types_benchmark_test.go +++ b/internal/compiler/function_types_benchmark_test.go @@ -2,8 +2,8 @@ package compiler import ( "fmt" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" "strings" "testing" ) diff --git a/internal/compiler/function_types_test.go b/internal/compiler/function_types_test.go index c3297164..510cbdf4 100644 --- a/internal/compiler/function_types_test.go +++ b/internal/compiler/function_types_test.go @@ -1,9 +1,9 @@ package compiler import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" "strings" "testing" ) diff --git a/internal/compiler/fused_jump_compile_test.go b/internal/compiler/fused_jump_compile_test.go index e91ea77d..367c9004 100644 --- a/internal/compiler/fused_jump_compile_test.go +++ b/internal/compiler/fused_jump_compile_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) func compileFusedSource(t *testing.T, source string) error { diff --git a/internal/compiler/generics.go b/internal/compiler/generics.go index 6825f0b1..c39b2b58 100644 --- a/internal/compiler/generics.go +++ b/internal/compiler/generics.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" ) // FuncTemplate guarda a declaracao original (nao compilada) de uma funcao diff --git a/internal/compiler/generics_modules_test.go b/internal/compiler/generics_modules_test.go index f187000b..8fa6dddf 100644 --- a/internal/compiler/generics_modules_test.go +++ b/internal/compiler/generics_modules_test.go @@ -15,7 +15,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) func TestModuleWithOnlyATemplateIsLoadable(t *testing.T) { diff --git a/internal/compiler/generics_repl_test.go b/internal/compiler/generics_repl_test.go index 590f585c..9848af80 100644 --- a/internal/compiler/generics_repl_test.go +++ b/internal/compiler/generics_repl_test.go @@ -3,7 +3,7 @@ package compiler import ( "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // Task 14 (spec §5): o REPL cria um *Compiler NOVO a cada linha (correto — diff --git a/internal/compiler/generics_struct_test.go b/internal/compiler/generics_struct_test.go index ddd89144..deab2fda 100644 --- a/internal/compiler/generics_struct_test.go +++ b/internal/compiler/generics_struct_test.go @@ -9,9 +9,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func TestGenericStructArityError(t *testing.T) { diff --git a/internal/compiler/generics_structs.go b/internal/compiler/generics_structs.go index 7d00b9dc..8e7120a6 100644 --- a/internal/compiler/generics_structs.go +++ b/internal/compiler/generics_structs.go @@ -11,7 +11,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // structInstanceKey guarda a tupla de tipos que gerou uma instancia de struct. diff --git a/internal/compiler/generics_substitute.go b/internal/compiler/generics_substitute.go index 9539e745..061858e4 100644 --- a/internal/compiler/generics_substitute.go +++ b/internal/compiler/generics_substitute.go @@ -3,7 +3,7 @@ package compiler import ( "strings" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // instanceName monta o nome qualificado de uma instancia monomorfizada: diff --git a/internal/compiler/generics_substitute_test.go b/internal/compiler/generics_substitute_test.go index 60316715..7e6c513f 100644 --- a/internal/compiler/generics_substitute_test.go +++ b/internal/compiler/generics_substitute_test.go @@ -1,7 +1,7 @@ package compiler import ( - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" "testing" ) diff --git a/internal/compiler/generics_target.go b/internal/compiler/generics_target.go index ea614d61..0f25d43a 100644 --- a/internal/compiler/generics_target.go +++ b/internal/compiler/generics_target.go @@ -10,7 +10,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // instantiateForTarget e o hook central do §3: quando name nomeia um template @@ -222,6 +222,7 @@ func (c *Compiler) rejectBareGenericTemplateIdentifier(identifier *ast.Identifie // - os dois concretos: mesma recursão estrutural e mesmas folgas de // compatibilidade de unify (any/null não bindam, `func` nu aceita // qualquer chamável). +// // unifyBidirectionalAnnotated e unifyBidirectional com a MESMA ponte de nomes // de instancia que unifyAnnotation aplica no caminho principal (I5). Aqui os // dois lados podem trazer as duas formas: expected sai de diff --git a/internal/compiler/generics_target_test.go b/internal/compiler/generics_target_test.go index 6aebd845..198ec0b0 100644 --- a/internal/compiler/generics_target_test.go +++ b/internal/compiler/generics_target_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) func TestGenericWithoutConcreteTargetIsError(t *testing.T) { diff --git a/internal/compiler/generics_test.go b/internal/compiler/generics_test.go index 5d96c32e..eb68765a 100644 --- a/internal/compiler/generics_test.go +++ b/internal/compiler/generics_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" ) func TestGenericFunctionDeclarationEmitsNothing(t *testing.T) { diff --git a/internal/compiler/generics_twopass_test.go b/internal/compiler/generics_twopass_test.go index 85d33f2e..2568b202 100644 --- a/internal/compiler/generics_twopass_test.go +++ b/internal/compiler/generics_twopass_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func TestMemoizationSingleInstance(t *testing.T) { diff --git a/internal/compiler/generics_unify.go b/internal/compiler/generics_unify.go index ab292db8..1d6c0e7b 100644 --- a/internal/compiler/generics_unify.go +++ b/internal/compiler/generics_unify.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // conflictError e o erro estruturado que unify devolve quando um parametro de diff --git a/internal/compiler/generics_unify_test.go b/internal/compiler/generics_unify_test.go index 18394cc9..16bea270 100644 --- a/internal/compiler/generics_unify_test.go +++ b/internal/compiler/generics_unify_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) func tInt() ast.NoxyType { return &ast.PrimitiveType{Name: "int"} } diff --git a/internal/compiler/inc_local_compile_test.go b/internal/compiler/inc_local_compile_test.go index fb372063..2000eb14 100644 --- a/internal/compiler/inc_local_compile_test.go +++ b/internal/compiler/inc_local_compile_test.go @@ -3,7 +3,7 @@ package compiler import ( "testing" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" ) // TestIncLocalIntFuses prova, por bytecode, que `i = i + 1` sobre um local int diff --git a/internal/compiler/known_globals.go b/internal/compiler/known_globals.go index 87bbe69e..e7803662 100644 --- a/internal/compiler/known_globals.go +++ b/internal/compiler/known_globals.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // Issue #47 parte 3: um global inexistente e erro de COMPILACAO, nao um diff --git a/internal/compiler/let_inference.go b/internal/compiler/let_inference.go index 294a0e1b..4afb3c2d 100644 --- a/internal/compiler/let_inference.go +++ b/internal/compiler/let_inference.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // Inferencia local de tipo em `let` (issue #41, spec §3): `let x = expr` sem diff --git a/internal/compiler/let_inference_test.go b/internal/compiler/let_inference_test.go index d73c81ff..ead1b4a3 100644 --- a/internal/compiler/let_inference_test.go +++ b/internal/compiler/let_inference_test.go @@ -13,7 +13,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) const cannotInferText = "cannot infer type for" diff --git a/internal/compiler/let_redeclaration_test.go b/internal/compiler/let_redeclaration_test.go index a2362c7b..8b4063c9 100644 --- a/internal/compiler/let_redeclaration_test.go +++ b/internal/compiler/let_redeclaration_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) const redeclaredText = "redeclared in this scope" diff --git a/internal/compiler/map_member_write.go b/internal/compiler/map_member_write.go index 27e3f9da..db2c9f68 100644 --- a/internal/compiler/map_member_write.go +++ b/internal/compiler/map_member_write.go @@ -3,9 +3,9 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // compileMapMemberAssignment compila `m.chave = v` quando m tem tipo estatico diff --git a/internal/compiler/member_access_typing_test.go b/internal/compiler/member_access_typing_test.go index 36ceb096..68388fda 100644 --- a/internal/compiler/member_access_typing_test.go +++ b/internal/compiler/member_access_typing_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Issue #58 item 1: o acesso a membro de um valor tipado por um struct de diff --git a/internal/compiler/member_types.go b/internal/compiler/member_types.go index bc686f01..bd3f354d 100644 --- a/internal/compiler/member_types.go +++ b/internal/compiler/member_types.go @@ -3,7 +3,7 @@ package compiler import ( "strings" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // memberType devolve o tipo estatico do campo member de um valor do tipo diff --git a/internal/compiler/module_exports.go b/internal/compiler/module_exports.go index bfa327c4..a360003c 100644 --- a/internal/compiler/module_exports.go +++ b/internal/compiler/module_exports.go @@ -2,12 +2,12 @@ package compiler import ( "fmt" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/stdlib" "maps" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/stdlib" "os" "path/filepath" "strings" diff --git a/internal/compiler/module_exports_test.go b/internal/compiler/module_exports_test.go index 959b3174..8083def4 100644 --- a/internal/compiler/module_exports_test.go +++ b/internal/compiler/module_exports_test.go @@ -1,7 +1,7 @@ package compiler import ( - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" "os" "path/filepath" "testing" diff --git a/internal/compiler/namespace_member_types.go b/internal/compiler/namespace_member_types.go index c684da96..8b399e8b 100644 --- a/internal/compiler/namespace_member_types.go +++ b/internal/compiler/namespace_member_types.go @@ -1,6 +1,6 @@ package compiler -import "noxy-vm/internal/ast" +import "github.com/estevaofon/noxy/internal/ast" // namespaceMemberType devolve o tipo estatico de `alias.member` quando alias // e um `use m [as alias]` (forma de namespace) nao sombreado por local ou diff --git a/internal/compiler/namespace_member_typing_test.go b/internal/compiler/namespace_member_typing_test.go index 57ab9983..bcf0a2da 100644 --- a/internal/compiler/namespace_member_typing_test.go +++ b/internal/compiler/namespace_member_typing_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Issue #126 item 2: `m.f(...)` e `m.x` pelo namespace carregam o tipo diff --git a/internal/compiler/namespace_write.go b/internal/compiler/namespace_write.go index f296f90e..ffff1672 100644 --- a/internal/compiler/namespace_write.go +++ b/internal/compiler/namespace_write.go @@ -3,9 +3,9 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Issue #133 item 1: `m.x = v` pelo namespace. Precedente: Python, Go diff --git a/internal/compiler/narrowing.go b/internal/compiler/narrowing.go index 7c95bf84..a5ae30bd 100644 --- a/internal/compiler/narrowing.go +++ b/internal/compiler/narrowing.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // Narrowing de nulidade (spec §2.4, issue #105 item 1) — modelo Kotlin/Dart. diff --git a/internal/compiler/nullable.go b/internal/compiler/nullable.go index dece9da6..69635ac9 100644 --- a/internal/compiler/nullable.go +++ b/internal/compiler/nullable.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" + "github.com/estevaofon/noxy/internal/ast" ) // Helpers de nulidade (spec §2.4, issue #105 item 1). `T?` e ast.NullableType; diff --git a/internal/compiler/project_root_test.go b/internal/compiler/project_root_test.go index dc6dfcdf..412983ae 100644 --- a/internal/compiler/project_root_test.go +++ b/internal/compiler/project_root_test.go @@ -1,9 +1,9 @@ package compiler import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" "os" "path/filepath" "strings" diff --git a/internal/compiler/ref_base_field_assignment_test.go b/internal/compiler/ref_base_field_assignment_test.go index 38a674ac..891083ad 100644 --- a/internal/compiler/ref_base_field_assignment_test.go +++ b/internal/compiler/ref_base_field_assignment_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #50, Parte 1: atribuicao a campo atraves de uma base `ref` e checada diff --git a/internal/compiler/reference_arguments_test.go b/internal/compiler/reference_arguments_test.go index 7ee871f9..dfd9dcb2 100644 --- a/internal/compiler/reference_arguments_test.go +++ b/internal/compiler/reference_arguments_test.go @@ -1,7 +1,7 @@ package compiler import ( - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" "strings" "testing" ) diff --git a/internal/compiler/runtime_types.go b/internal/compiler/runtime_types.go index df6a5b59..80224c9d 100644 --- a/internal/compiler/runtime_types.go +++ b/internal/compiler/runtime_types.go @@ -6,9 +6,9 @@ import ( "strings" "unicode" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func (c *Compiler) runtimeTypeInfo(t ast.NoxyType) *value.RuntimeTypeInfo { diff --git a/internal/compiler/runtime_types_test.go b/internal/compiler/runtime_types_test.go index 67e996d4..7e4a4238 100644 --- a/internal/compiler/runtime_types_test.go +++ b/internal/compiler/runtime_types_test.go @@ -1,8 +1,8 @@ package compiler import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/value" "testing" ) diff --git a/internal/compiler/sized_array_compat_test.go b/internal/compiler/sized_array_compat_test.go index 3d20cabc..468bcfeb 100644 --- a/internal/compiler/sized_array_compat_test.go +++ b/internal/compiler/sized_array_compat_test.go @@ -3,8 +3,8 @@ package compiler import ( "testing" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Regressao da #133: a identidade de struct por Decl removeu de diff --git a/internal/compiler/struct_field_index_compile_test.go b/internal/compiler/struct_field_index_compile_test.go index 699824f7..703ad378 100644 --- a/internal/compiler/struct_field_index_compile_test.go +++ b/internal/compiler/struct_field_index_compile_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" ) // Campo de struct por índice em compilação (issue #96). Quando o tipo diff --git a/internal/compiler/struct_identity.go b/internal/compiler/struct_identity.go index 7e26526d..5452af4f 100644 --- a/internal/compiler/struct_identity.go +++ b/internal/compiler/struct_identity.go @@ -1,6 +1,6 @@ package compiler -import "noxy-vm/internal/ast" +import "github.com/estevaofon/noxy/internal/ast" // Issue #133: o tipo de um struct e a sua DECLARACAO, nao a grafia. Este // arquivo concentra as duas operacoes de identidade: diff --git a/internal/compiler/struct_identity_test.go b/internal/compiler/struct_identity_test.go index 9dcadd21..a66b2e79 100644 --- a/internal/compiler/struct_identity_test.go +++ b/internal/compiler/struct_identity_test.go @@ -3,9 +3,9 @@ package compiler import ( "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Issue #133: o tipo de struct carrega a identidade da declaracao (Decl); diff --git a/internal/compiler/superinstr_compile_test.go b/internal/compiler/superinstr_compile_test.go index 6b3b8d2e..f733f73e 100644 --- a/internal/compiler/superinstr_compile_test.go +++ b/internal/compiler/superinstr_compile_test.go @@ -3,8 +3,8 @@ package compiler import ( "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // containsOpcodeTree e containsOpcode sobre a funcao E toda funcao constante diff --git a/internal/compiler/try.go b/internal/compiler/try.go index e6d65498..9d80cae5 100644 --- a/internal/compiler/try.go +++ b/internal/compiler/try.go @@ -3,9 +3,9 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // compileTry abaixa `try expr` (spec §7, issue #105 item 2). expr deve ter diff --git a/internal/compiler/try_test.go b/internal/compiler/try_test.go index 18e05c32..53e133e7 100644 --- a/internal/compiler/try_test.go +++ b/internal/compiler/try_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Issue #105 item 2: `try expr` propaga a falha de um Result. diff --git a/internal/compiler/typed_index.go b/internal/compiler/typed_index.go index ab5588a1..031fa644 100644 --- a/internal/compiler/typed_index.go +++ b/internal/compiler/typed_index.go @@ -3,8 +3,8 @@ package compiler import ( "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" ) // Indexacao tipada de array (issue #66, item 1): o compilador sabe quando a diff --git a/internal/compiler/typed_index_compile_test.go b/internal/compiler/typed_index_compile_test.go index a5d31d1c..f0f8046d 100644 --- a/internal/compiler/typed_index_compile_test.go +++ b/internal/compiler/typed_index_compile_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) var opNamePattern = regexp.MustCompile(`\bOP_[A-Z_]+\b`) diff --git a/internal/compiler/unknown_type_test.go b/internal/compiler/unknown_type_test.go index 35ccd953..0c064fe0 100644 --- a/internal/compiler/unknown_type_test.go +++ b/internal/compiler/unknown_type_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Issue #58 item 2: um nome de tipo que nao foi declarado em lugar nenhum diff --git a/internal/compiler/warnings_test.go b/internal/compiler/warnings_test.go index 26b28eeb..4264b42d 100644 --- a/internal/compiler/warnings_test.go +++ b/internal/compiler/warnings_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) // Issue #61 item 3: o aviso "rebinding ref parameter" saia em STDOUT via diff --git a/internal/ext/backend.go b/internal/ext/backend.go index 7d80ff71..950d6254 100644 --- a/internal/ext/backend.go +++ b/internal/ext/backend.go @@ -3,7 +3,7 @@ package ext import ( "context" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Backend e a fronteira que o VM enxerga de uma extensao carregada, seja diff --git a/internal/ext/bench_test.go b/internal/ext/bench_test.go index d33cfaf6..7ba57f61 100644 --- a/internal/ext/bench_test.go +++ b/internal/ext/bench_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/value" ) // benchManifest espelha o literal de testManifest (Task 4), mas com diff --git a/internal/ext/call.go b/internal/ext/call.go index 24928773..5b73d424 100644 --- a/internal/ext/call.go +++ b/internal/ext/call.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // acquire devolve uma instancia pronta e a funcao de release. No modo diff --git a/internal/ext/call_test.go b/internal/ext/call_test.go index 5a848d8b..b6245d83 100644 --- a/internal/ext/call_test.go +++ b/internal/ext/call_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/value" ) func loadTestModule(t *testing.T, concurrency string) *Module { diff --git a/internal/ext/exttest/exttest.go b/internal/ext/exttest/exttest.go index 1f376b9a..7e68eda9 100644 --- a/internal/ext/exttest/exttest.go +++ b/internal/ext/exttest/exttest.go @@ -39,7 +39,7 @@ func isUnsupportedToolchainOutput(output string) bool { // repoRoot sobe a partir do diretorio do pacote em teste (o cwd de todo // "go test") ate o go.mod deste modulo. Nao usa runtime.Caller: com // GOFLAGS=-trimpath (configuracao de maquina) o caminho gravado no binario -// e relativo ao modulo ("noxy-vm/...") e o chdir do go build dos guests +// e relativo ao modulo ("github.com/estevaofon/noxy/...") e o chdir do go build dos guests // falhava. func repoRoot(tb testing.TB) string { tb.Helper() @@ -50,13 +50,13 @@ func repoRoot(tb testing.TB) string { for { if data, err := os.ReadFile(filepath.Join(dir, "go.mod")); err == nil { first := strings.TrimSpace(strings.SplitN(string(data), "\n", 2)[0]) - if first == "module noxy-vm" { + if first == "module github.com/estevaofon/noxy" { return dir } } parent := filepath.Dir(dir) if parent == dir { - tb.Fatal("exttest: go.mod of module noxy-vm not found above the test directory") + tb.Fatal("exttest: go.mod of module github.com/estevaofon/noxy not found above the test directory") } dir = parent } diff --git a/internal/ext/exttest/exttest_test.go b/internal/ext/exttest/exttest_test.go index 8f49802f..7e1639d3 100644 --- a/internal/ext/exttest/exttest_test.go +++ b/internal/ext/exttest/exttest_test.go @@ -9,7 +9,7 @@ import ( // repoRoot tem de ser absoluto e apontar para o go.mod deste modulo mesmo // com GOFLAGS=-trimpath (configuracao de maquina): com runtime.Caller o -// caminho gravado no binario e relativo ao modulo ("noxy-vm/...") e o chdir +// caminho gravado no binario e relativo ao modulo ("github.com/estevaofon/noxy/...") e o chdir // do go build dos guests falhava. func TestRepoRootFindsModuleRoot(t *testing.T) { root := repoRoot(t) @@ -21,8 +21,8 @@ func TestRepoRootFindsModuleRoot(t *testing.T) { t.Fatalf("go.mod at repoRoot %q: %v", root, err) } first := strings.TrimSpace(strings.SplitN(string(data), "\n", 2)[0]) - if first != "module noxy-vm" { - t.Fatalf("repoRoot %q is not the noxy-vm module (first line %q)", root, first) + if first != "module github.com/estevaofon/noxy" { + t.Fatalf("repoRoot %q is not the github.com/estevaofon/noxy module (first line %q)", root, first) } } diff --git a/internal/ext/loader_test.go b/internal/ext/loader_test.go index be74515c..2178d368 100644 --- a/internal/ext/loader_test.go +++ b/internal/ext/loader_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/ext/exttest" "github.com/tetratelabs/wazero/api" ) diff --git a/internal/ext/nxb.go b/internal/ext/nxb.go index 6b729ae3..5a26b99e 100644 --- a/internal/ext/nxb.go +++ b/internal/ext/nxb.go @@ -8,7 +8,7 @@ import ( "math" "sort" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Tags NXB v1 — append-only (spec §10): valores existentes nunca mudam. diff --git a/internal/ext/nxb_golden_test.go b/internal/ext/nxb_golden_test.go index 44524bfe..38ebbbfd 100644 --- a/internal/ext/nxb_golden_test.go +++ b/internal/ext/nxb_golden_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func loadNXBVectors(t testing.TB) map[string][]byte { diff --git a/internal/ext/nxb_test.go b/internal/ext/nxb_test.go index 59edc26a..0c7597bc 100644 --- a/internal/ext/nxb_test.go +++ b/internal/ext/nxb_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func mustRoundTrip(t *testing.T, v value.Value) value.Value { diff --git a/internal/ext/process.go b/internal/ext/process.go index 3f7c529e..639b05c8 100644 --- a/internal/ext/process.go +++ b/internal/ext/process.go @@ -12,7 +12,7 @@ import ( "sync" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Carencias do host (spec §2.7, §4.3). Variaveis para os testes encurtarem. diff --git a/internal/ext/process_bench_test.go b/internal/ext/process_bench_test.go index 2d015b10..98cbbf39 100644 --- a/internal/ext/process_bench_test.go +++ b/internal/ext/process_bench_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/value" ) // benchGuest sobe o guest fora da medicao (o start e da primeira chamada). diff --git a/internal/ext/process_exec_test.go b/internal/ext/process_exec_test.go index 79d97719..adfa5c69 100644 --- a/internal/ext/process_exec_test.go +++ b/internal/ext/process_exec_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/value" ) // TestMain: com NOXY_EXT_HELPER=plugin o binario de teste vira um plugin diff --git a/internal/ext/process_guest_test.go b/internal/ext/process_guest_test.go index df824d8c..5afaedf5 100644 --- a/internal/ext/process_guest_test.go +++ b/internal/ext/process_guest_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/value" ) const processGuestManifest = ` diff --git a/internal/ext/process_proto.go b/internal/ext/process_proto.go index 37968ab6..59cdd28a 100644 --- a/internal/ext/process_proto.go +++ b/internal/ext/process_proto.go @@ -3,7 +3,7 @@ package ext import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Corpos dos quadros fora de chamada (HELLO, ERROR, LOG — spec §2.4, §2.6) diff --git a/internal/ext/process_proto_test.go b/internal/ext/process_proto_test.go index aca1e39b..8bf1c5da 100644 --- a/internal/ext/process_proto_test.go +++ b/internal/ext/process_proto_test.go @@ -3,7 +3,7 @@ package ext import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestHelloBodyCarriesExportsInOrder(t *testing.T) { diff --git a/internal/ext/process_test.go b/internal/ext/process_test.go index eb108b81..f985ee8a 100644 --- a/internal/ext/process_test.go +++ b/internal/ext/process_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // fakeConn e o par de pipes que o host enxerga como o processo do plugin. diff --git a/internal/ext/rustguest_test.go b/internal/ext/rustguest_test.go index edf51096..cafb2388 100644 --- a/internal/ext/rustguest_test.go +++ b/internal/ext/rustguest_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) //go:embed testdata/rustguest/rustguest.wasm diff --git a/internal/lexer/escapes_test.go b/internal/lexer/escapes_test.go index b2766883..20c32c63 100644 --- a/internal/lexer/escapes_test.go +++ b/internal/lexer/escapes_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" ) // firstToken lexes source and returns its first token, which for every case diff --git a/internal/lexer/lexer.go b/internal/lexer/lexer.go index 7d8a8126..4e5903a4 100644 --- a/internal/lexer/lexer.go +++ b/internal/lexer/lexer.go @@ -4,7 +4,7 @@ import ( "unicode" "unicode/utf8" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" ) type Lexer struct { diff --git a/internal/lexer/lexer_test.go b/internal/lexer/lexer_test.go index 86242328..43bbbffb 100644 --- a/internal/lexer/lexer_test.go +++ b/internal/lexer/lexer_test.go @@ -1,7 +1,7 @@ package lexer import ( - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" "testing" ) diff --git a/internal/lexer/literals_test.go b/internal/lexer/literals_test.go index 2ab31812..44560fe0 100644 --- a/internal/lexer/literals_test.go +++ b/internal/lexer/literals_test.go @@ -3,7 +3,7 @@ package lexer import ( "testing" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" ) // Literais inteiros binários (spec §2.1: `0b…` ao lado de `0x…`) — o único diff --git a/internal/lexer/question_token_test.go b/internal/lexer/question_token_test.go index cd102eff..c60f42a9 100644 --- a/internal/lexer/question_token_test.go +++ b/internal/lexer/question_token_test.go @@ -3,7 +3,7 @@ package lexer import ( "testing" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" ) func TestQuestionMarkIsAToken(t *testing.T) { diff --git a/internal/lexer/unicode_identifiers_test.go b/internal/lexer/unicode_identifiers_test.go index bf6959d1..1a4747c3 100644 --- a/internal/lexer/unicode_identifiers_test.go +++ b/internal/lexer/unicode_identifiers_test.go @@ -3,7 +3,7 @@ package lexer import ( "testing" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/token" ) type wantToken struct { diff --git a/internal/parser/contextual_keywords_test.go b/internal/parser/contextual_keywords_test.go index da20cdf4..32012788 100644 --- a/internal/parser/contextual_keywords_test.go +++ b/internal/parser/contextual_keywords_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" ) // Issue #134 (spec §1.2): as keywords de tipo sao contextuais — reservadas diff --git a/internal/parser/expect_peek_errors_test.go b/internal/parser/expect_peek_errors_test.go index 7df3ef4c..293a7529 100644 --- a/internal/parser/expect_peek_errors_test.go +++ b/internal/parser/expect_peek_errors_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/lexer" ) // Programa cortado em cada ponto onde o parser exige um token específico diff --git a/internal/parser/function_type_test.go b/internal/parser/function_type_test.go index 760f1a3f..49309b7a 100644 --- a/internal/parser/function_type_test.go +++ b/internal/parser/function_type_test.go @@ -1,8 +1,8 @@ package parser import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" "testing" ) diff --git a/internal/parser/generics_parser_test.go b/internal/parser/generics_parser_test.go index 2cde83d2..f4b6b417 100644 --- a/internal/parser/generics_parser_test.go +++ b/internal/parser/generics_parser_test.go @@ -1,8 +1,8 @@ package parser import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" "testing" ) diff --git a/internal/parser/int_literal_test.go b/internal/parser/int_literal_test.go index 245803cb..2c767abb 100644 --- a/internal/parser/int_literal_test.go +++ b/internal/parser/int_literal_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" ) func TestIntLiteralOutOfRangeIsError(t *testing.T) { diff --git a/internal/parser/let_inference_test.go b/internal/parser/let_inference_test.go index fefb6162..51c7d7dd 100644 --- a/internal/parser/let_inference_test.go +++ b/internal/parser/let_inference_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" ) // Issue #41: `let x = expr` e aceito sem anotacao — o tipo fica para o diff --git a/internal/parser/nullable_type_test.go b/internal/parser/nullable_type_test.go index 0dc5fb30..588c9d67 100644 --- a/internal/parser/nullable_type_test.go +++ b/internal/parser/nullable_type_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" ) // Spec §2.4 (issue #105): `T?` e o unico sufixo de nulidade; e o pos-fixo diff --git a/internal/parser/parser.go b/internal/parser/parser.go index 84fa7b33..022ebd59 100644 --- a/internal/parser/parser.go +++ b/internal/parser/parser.go @@ -3,9 +3,9 @@ package parser import ( "errors" "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/token" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/token" "strconv" ) diff --git a/internal/parser/parser_test.go b/internal/parser/parser_test.go index d2d22de4..1b5a5d87 100644 --- a/internal/parser/parser_test.go +++ b/internal/parser/parser_test.go @@ -1,8 +1,8 @@ package parser import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" "strings" "testing" ) diff --git a/internal/parser/syntax_errors_test.go b/internal/parser/syntax_errors_test.go index 90f3d205..b58caa0b 100644 --- a/internal/parser/syntax_errors_test.go +++ b/internal/parser/syntax_errors_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/lexer" + "github.com/estevaofon/noxy/internal/lexer" ) // Diagnósticos de sintaxe com texto próprio (não o genérico "expected X, diff --git a/internal/pkgmanager/manager.go b/internal/pkgmanager/manager.go index be258f08..403f11ff 100644 --- a/internal/pkgmanager/manager.go +++ b/internal/pkgmanager/manager.go @@ -4,8 +4,8 @@ import ( "crypto/sha256" "encoding/hex" "fmt" - "noxy-vm/internal/ext" - "noxy-vm/internal/version" + "github.com/estevaofon/noxy/internal/ext" + "github.com/estevaofon/noxy/internal/version" "os" "os/exec" "path/filepath" diff --git a/internal/pkgmanager/release.go b/internal/pkgmanager/release.go index 112cc141..8b17a380 100644 --- a/internal/pkgmanager/release.go +++ b/internal/pkgmanager/release.go @@ -14,7 +14,7 @@ import ( "strings" "time" - "noxy-vm/internal/ext" + "github.com/estevaofon/noxy/internal/ext" ) // Costuras trocadas pelos testes (servidor httptest, repositorio local). diff --git a/internal/pkgmanager/release_fetch_test.go b/internal/pkgmanager/release_fetch_test.go index 994951ee..10fafd2e 100644 --- a/internal/pkgmanager/release_fetch_test.go +++ b/internal/pkgmanager/release_fetch_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "noxy-vm/internal/ext" + "github.com/estevaofon/noxy/internal/ext" ) const fetchManifest = ` diff --git a/internal/pkgmanager/resolve.go b/internal/pkgmanager/resolve.go index 6f378f3a..a60f2e1a 100644 --- a/internal/pkgmanager/resolve.go +++ b/internal/pkgmanager/resolve.go @@ -7,7 +7,7 @@ import ( "path/filepath" "sort" - "noxy-vm/internal/version" + "github.com/estevaofon/noxy/internal/version" ) type closureInput struct { diff --git a/internal/pkgmanager/semver_test.go b/internal/pkgmanager/semver_test.go index d4e31872..57dca815 100644 --- a/internal/pkgmanager/semver_test.go +++ b/internal/pkgmanager/semver_test.go @@ -26,7 +26,7 @@ func TestCompareVersionsOrdersTagsAndPseudoVersions(t *testing.T) { "v0.1.0", "v0.1.1-0.20260301000000-cccccccccccc", // pseudo acima da base v0.1.0 "v0.1.1-0.20260302000000-dddddddddddd", - "v0.1.1", // release acima da sua pre-release + "v0.1.1", // release acima da sua pre-release "v1.0.0", } for i := 0; i+1 < len(order); i++ { diff --git a/internal/pkgmanager/sumfile.go b/internal/pkgmanager/sumfile.go index f9056df7..c905db3e 100644 --- a/internal/pkgmanager/sumfile.go +++ b/internal/pkgmanager/sumfile.go @@ -9,8 +9,10 @@ import ( ) // SumEntry e uma linha do noxy.sum v2 (spec §3.2): -// sha256: → File == "" (hash de arvore) -// sha256: → artefato de extensao +// +// sha256: → File == "" (hash de arvore) +// sha256: → artefato de extensao +// // Linhas v1 (" sha256:") entram com Version // "" e sao descartadas no proximo Save. type SumEntry struct { diff --git a/internal/pkgmanager/sync.go b/internal/pkgmanager/sync.go index a327d365..255dc10c 100644 --- a/internal/pkgmanager/sync.go +++ b/internal/pkgmanager/sync.go @@ -10,7 +10,7 @@ import ( "sort" "strings" - "noxy-vm/internal/ext" + "github.com/estevaofon/noxy/internal/ext" ) type SyncOptions struct { diff --git a/internal/plugin/plugin.go b/internal/plugin/plugin.go index bf305620..4d45c1b5 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -4,8 +4,8 @@ import ( "bufio" "encoding/json" "fmt" + "github.com/estevaofon/noxy/internal/value" "io" - "noxy-vm/internal/value" "os" "os/exec" "path/filepath" diff --git a/internal/plugin/plugin_test.go b/internal/plugin/plugin_test.go index ae257f29..b083736a 100644 --- a/internal/plugin/plugin_test.go +++ b/internal/plugin/plugin_test.go @@ -3,7 +3,7 @@ package plugin import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // InterfaceToValue constroi via value.NewArray/NewMapWithData: o contêiner e diff --git a/internal/value/owners_test.go b/internal/value/owners_test.go index 6abb0f94..15364f17 100644 --- a/internal/value/owners_test.go +++ b/internal/value/owners_test.go @@ -56,11 +56,11 @@ func TestReleaseSingleCompareMatchesRange(t *testing.T) { cases := []struct { start, want int32 }{ - {0, 0}, // clamp: dec a mais nao desce - {-1, -1}, // negativo nunca e tocado - {math.MinInt32, math.MinInt32}, // borda do overflow de current-1 - {1, 0}, // ultimo dono vai a zero - {2, 1}, // decremento normal + {0, 0}, // clamp: dec a mais nao desce + {-1, -1}, // negativo nunca e tocado + {math.MinInt32, math.MinInt32}, // borda do overflow de current-1 + {1, 0}, // ultimo dono vai a zero + {2, 1}, // decremento normal {ownersSaturation - 1, ownersSaturation - 2}, // ainda rastreado {ownersSaturation, ownersSaturation}, // saturado: permanentemente compartilhado {ownersSaturation + 5, ownersSaturation + 5}, // acima da saturacao idem diff --git a/internal/version/version.go b/internal/version/version.go index 9145810c..0b27f9c2 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "v0.24.0" +const Version = "v0.25.0" diff --git a/internal/vm/any_boundary_guard_test.go b/internal/vm/any_boundary_guard_test.go index a525a910..f7df9785 100644 --- a/internal/vm/any_boundary_guard_test.go +++ b/internal/vm/any_boundary_guard_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #118 item 1: a fronteira `any` -> slot tipado e checada em runtime em diff --git a/internal/vm/architecture_importer_windows_test.go b/internal/vm/architecture_importer_windows_test.go index e5c91123..d6ff31a9 100644 --- a/internal/vm/architecture_importer_windows_test.go +++ b/internal/vm/architecture_importer_windows_test.go @@ -15,7 +15,7 @@ func TestArchitectureImporterLoadsWindowsModuleExportData(t *testing.T) { } func TestArchitectureImporterReportsUnresolvedModule(t *testing.T) { - loaded, err := newArchitectureImporter(t).Import("noxy-vm/internal/architecture_missing_package") + loaded, err := newArchitectureImporter(t).Import("github.com/estevaofon/noxy/internal/architecture_missing_package") if err == nil { t.Fatalf("loaded=%v, want module resolution error", loaded) } diff --git a/internal/vm/architecture_test.go b/internal/vm/architecture_test.go index 1a254d7c..23f1d138 100644 --- a/internal/vm/architecture_test.go +++ b/internal/vm/architecture_test.go @@ -22,7 +22,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func setTestMap(mapping *value.ObjMap, key interface{}, item value.Value) { @@ -355,10 +355,10 @@ func (loader *architectureImporter) Import(importPath string) (*types.Package, e if loaded := loader.packages[importPath]; loaded != nil { return loaded, nil } - if strings.HasPrefix(importPath, "noxy-vm/") && !loader.loading[importPath] { + if strings.HasPrefix(importPath, "github.com/estevaofon/noxy/") && !loader.loading[importPath] { loader.loading[importPath] = true defer delete(loader.loading, importPath) - directory := filepath.Join(loader.moduleRoot, filepath.FromSlash(strings.TrimPrefix(importPath, "noxy-vm/"))) + directory := filepath.Join(loader.moduleRoot, filepath.FromSlash(strings.TrimPrefix(importPath, "github.com/estevaofon/noxy/"))) sources, err := readArchitectureSources(directory) if err == nil && len(sources) != 0 { checked := checkArchitecturePackage(importPath, sources, loader, true) @@ -660,7 +660,7 @@ func typeCheckProductionPackages(t *testing.T) []*architecturePackage { if err != nil { t.Fatal(err) } - packagePath := "noxy-vm" + packagePath := "github.com/estevaofon/noxy" if relativeDirectory != "." { packagePath += "/" + filepath.ToSlash(relativeDirectory) } @@ -886,7 +886,7 @@ func runtimeNamedType(typ types.Type, checked *architecturePackage, name string) if object == nil || object.Name() != name { return false } - return object.Pkg() == checked.pkg || object.Pkg() != nil && object.Pkg().Path() == "noxy-vm/internal/value" + return object.Pkg() == checked.pkg || object.Pkg() != nil && object.Pkg().Path() == "github.com/estevaofon/noxy/internal/value" } func (checked *architecturePackage) runtimeSelectorIsField(selector *ast.SelectorExpr, ownerType, fieldName string) bool { @@ -1129,7 +1129,7 @@ func TestUnwindArchitectureCentralizesTerminalFrameTeardown(t *testing.T) { if err != nil { t.Fatal(err) } - checked := typeCheckArchitecturePackage(t, "noxy-vm/internal/vm", sources) + checked := typeCheckArchitecturePackage(t, "github.com/estevaofon/noxy/internal/vm", sources) for _, match := range checked.unwindTerminalMutationMatches("unwind.go") { t.Errorf("terminal frame teardown must remain in unwind.go: %s", match) } @@ -1231,7 +1231,7 @@ func TestUnwindArchitectureMatcherUsesExactSyntax(t *testing.T) { { name: "stack clearing loop", source: `package vm - import "noxy-vm/internal/value" + import "github.com/estevaofon/noxy/internal/value" type CallFrame struct { StackBase int } type VM struct { stack []value.Value } func teardown(vm *VM, frame *CallFrame, top int) { diff --git a/internal/vm/arithmetic_semantics_test.go b/internal/vm/arithmetic_semantics_test.go index 562b1309..8ebd4799 100644 --- a/internal/vm/arithmetic_semantics_test.go +++ b/internal/vm/arithmetic_semantics_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Testes de semântica aritmética/relacional do executor (spec §8) que o diff --git a/internal/vm/borrow_place_test.go b/internal/vm/borrow_place_test.go index f0aa03ce..9164990f 100644 --- a/internal/vm/borrow_place_test.go +++ b/internal/vm/borrow_place_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // O empréstimo como LUGAR (issue #83). diff --git a/internal/vm/borrow_slot_test.go b/internal/vm/borrow_slot_test.go index 33b328f9..57d456ef 100644 --- a/internal/vm/borrow_slot_test.go +++ b/internal/vm/borrow_slot_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Slot no ObjRef (issue #93b): OP_REF_PROPERTY resolve o indice do campo uma diff --git a/internal/vm/builtins.go b/internal/vm/builtins.go index f67b3a2c..c76aeef5 100644 --- a/internal/vm/builtins.go +++ b/internal/vm/builtins.go @@ -4,7 +4,7 @@ import ( "bufio" "os" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (shared *SharedState) initializeState() { diff --git a/internal/vm/builtins_call_result.go b/internal/vm/builtins_call_result.go index b873690f..266a92f3 100644 --- a/internal/vm/builtins_call_result.go +++ b/internal/vm/builtins_call_result.go @@ -4,8 +4,8 @@ import ( "fmt" "runtime/debug" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineCallResultBuiltins() { diff --git a/internal/vm/builtins_call_result_test.go b/internal/vm/builtins_call_result_test.go index f33955dc..f3777034 100644 --- a/internal/vm/builtins_call_result_test.go +++ b/internal/vm/builtins_call_result_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestErrorsModuleShapes(t *testing.T) { diff --git a/internal/vm/builtins_codes_test.go b/internal/vm/builtins_codes_test.go index 16e5bf1a..7661f6fd 100644 --- a/internal/vm/builtins_codes_test.go +++ b/internal/vm/builtins_codes_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // codesOf calls the strings_codes native directly and returns the decoded diff --git a/internal/vm/builtins_collections.go b/internal/vm/builtins_collections.go index ec8c95d4..097fa9a7 100644 --- a/internal/vm/builtins_collections.go +++ b/internal/vm/builtins_collections.go @@ -5,7 +5,7 @@ import ( "math" "unicode/utf8" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // maxRangeLength limita o array que range materializa: acima disso o erro e diff --git a/internal/vm/builtins_collections_test.go b/internal/vm/builtins_collections_test.go index a1f2f5c6..9365dcd2 100644 --- a/internal/vm/builtins_collections_test.go +++ b/internal/vm/builtins_collections_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func pointerReference(target *value.Value) value.Value { diff --git a/internal/vm/builtins_concurrency.go b/internal/vm/builtins_concurrency.go index 8cde77b2..a6c05d73 100644 --- a/internal/vm/builtins_concurrency.go +++ b/internal/vm/builtins_concurrency.go @@ -5,7 +5,7 @@ import ( "os" "runtime/debug" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineConcurrencyBuiltins() { diff --git a/internal/vm/builtins_concurrency_test.go b/internal/vm/builtins_concurrency_test.go index 2df7aeba..6ebc28f6 100644 --- a/internal/vm/builtins_concurrency_test.go +++ b/internal/vm/builtins_concurrency_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) const statefulBuiltinTimeout = 2 * time.Second diff --git a/internal/vm/builtins_convert.go b/internal/vm/builtins_convert.go index 9eb6cfd2..784423b3 100644 --- a/internal/vm/builtins_convert.go +++ b/internal/vm/builtins_convert.go @@ -6,7 +6,7 @@ import ( "math" "strconv" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // conversionInputLimit bounds how much of a rejected value appears in an error diff --git a/internal/vm/builtins_convert_test.go b/internal/vm/builtins_convert_test.go index fd93047a..891705e5 100644 --- a/internal/vm/builtins_convert_test.go +++ b/internal/vm/builtins_convert_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func convertResultField(t *testing.T, machine *VM, native string, arg value.Value, field string) value.Value { diff --git a/internal/vm/builtins_core.go b/internal/vm/builtins_core.go index d27880a3..40c246e1 100644 --- a/internal/vm/builtins_core.go +++ b/internal/vm/builtins_core.go @@ -8,7 +8,7 @@ import ( "regexp" "strings" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineCoreBuiltins() { diff --git a/internal/vm/builtins_core_test.go b/internal/vm/builtins_core_test.go index c82c2cae..a5da8f5f 100644 --- a/internal/vm/builtins_core_test.go +++ b/internal/vm/builtins_core_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func assertBuiltinValue(t *testing.T, got, want value.Value) { diff --git a/internal/vm/builtins_crypto.go b/internal/vm/builtins_crypto.go index d0e8859a..91ac7dd9 100644 --- a/internal/vm/builtins_crypto.go +++ b/internal/vm/builtins_crypto.go @@ -8,7 +8,7 @@ import ( "crypto/sha256" "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #121: nenhuma destas natives devolve null por argumento invalido. diff --git a/internal/vm/builtins_crypto_test.go b/internal/vm/builtins_crypto_test.go index 3e7c4070..d459c424 100644 --- a/internal/vm/builtins_crypto_test.go +++ b/internal/vm/builtins_crypto_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // requireBuiltinError chama o native esperando erro tipado cuja mensagem diff --git a/internal/vm/builtins_io.go b/internal/vm/builtins_io.go index de3b54f6..aafbce10 100644 --- a/internal/vm/builtins_io.go +++ b/internal/vm/builtins_io.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "noxy-vm/internal/console" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/console" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineIOBuiltins() { diff --git a/internal/vm/builtins_io_seek_test.go b/internal/vm/builtins_io_seek_test.go index 116bbdcd..d407a860 100644 --- a/internal/vm/builtins_io_seek_test.go +++ b/internal/vm/builtins_io_seek_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func testIOPositionResultDefinition() value.Value { diff --git a/internal/vm/builtins_io_test.go b/internal/vm/builtins_io_test.go index c6d2a614..654ba21c 100644 --- a/internal/vm/builtins_io_test.go +++ b/internal/vm/builtins_io_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func testFileDefinition() value.Value { diff --git a/internal/vm/builtins_json.go b/internal/vm/builtins_json.go index 2bae90d8..d6f2a432 100644 --- a/internal/vm/builtins_json.go +++ b/internal/vm/builtins_json.go @@ -7,7 +7,7 @@ import ( "strings" "unicode/utf8" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineJSONBuiltins() { diff --git a/internal/vm/builtins_json_test.go b/internal/vm/builtins_json_test.go index b2130440..8b0bf7bc 100644 --- a/internal/vm/builtins_json_test.go +++ b/internal/vm/builtins_json_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestStrictJSONValToGoAcceptsJSONDomain(t *testing.T) { diff --git a/internal/vm/builtins_math.go b/internal/vm/builtins_math.go index 9352f764..d3d2853f 100644 --- a/internal/vm/builtins_math.go +++ b/internal/vm/builtins_math.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #126 item 1: modulo `math` da stdlib — wrappers finos sobre o math diff --git a/internal/vm/builtins_math_test.go b/internal/vm/builtins_math_test.go index 38ef05c8..9bdc1345 100644 --- a/internal/vm/builtins_math_test.go +++ b/internal/vm/builtins_math_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #126 item 1: wrappers finos sobre o math do Go. Dominio invalido e diff --git a/internal/vm/builtins_net.go b/internal/vm/builtins_net.go index d77a5495..b91416ae 100644 --- a/internal/vm/builtins_net.go +++ b/internal/vm/builtins_net.go @@ -9,7 +9,7 @@ import ( "os" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type deadlineListener interface { diff --git a/internal/vm/builtins_net_deadlines_test.go b/internal/vm/builtins_net_deadlines_test.go index 0c9f3eae..fea8b8a3 100644 --- a/internal/vm/builtins_net_deadlines_test.go +++ b/internal/vm/builtins_net_deadlines_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "noxy-vm/internal/stdlib" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/stdlib" + "github.com/estevaofon/noxy/internal/value" ) type controlledDeadlineConn struct { diff --git a/internal/vm/builtins_net_test.go b/internal/vm/builtins_net_test.go index a7305095..67060093 100644 --- a/internal/vm/builtins_net_test.go +++ b/internal/vm/builtins_net_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func callBuiltinWithinBound(t *testing.T, machine *VM, name string, args ...value.Value) value.Value { diff --git a/internal/vm/builtins_net_typed_socket_test.go b/internal/vm/builtins_net_typed_socket_test.go index 7bbff3ff..e0418ff8 100644 --- a/internal/vm/builtins_net_typed_socket_test.go +++ b/internal/vm/builtins_net_typed_socket_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #121: net_accept/net_recv/net_send aceitavam so o map que o runtime diff --git a/internal/vm/builtins_range_test.go b/internal/vm/builtins_range_test.go index e909f92a..41c6bb90 100644 --- a/internal/vm/builtins_range_test.go +++ b/internal/vm/builtins_range_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func intValues(numbers ...int64) []value.Value { diff --git a/internal/vm/builtins_registry_test.go b/internal/vm/builtins_registry_test.go index 0f810f7f..efbb1d6e 100644 --- a/internal/vm/builtins_registry_test.go +++ b/internal/vm/builtins_registry_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestBuiltinRegistrySnapshot(t *testing.T) { diff --git a/internal/vm/builtins_sqlite.go b/internal/vm/builtins_sqlite.go index b2b29951..10cc2177 100644 --- a/internal/vm/builtins_sqlite.go +++ b/internal/vm/builtins_sqlite.go @@ -4,7 +4,7 @@ import ( "database/sql" "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" _ "modernc.org/sqlite" ) diff --git a/internal/vm/builtins_sqlite_test.go b/internal/vm/builtins_sqlite_test.go index d9288570..d5a84289 100644 --- a/internal/vm/builtins_sqlite_test.go +++ b/internal/vm/builtins_sqlite_test.go @@ -10,7 +10,7 @@ import ( "sync" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type sqliteTestDefinitions struct { diff --git a/internal/vm/builtins_strings.go b/internal/vm/builtins_strings.go index 93b5d225..4bc356d2 100644 --- a/internal/vm/builtins_strings.go +++ b/internal/vm/builtins_strings.go @@ -5,7 +5,7 @@ import ( "strings" "unicode/utf8" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // requireTextArgument rejects a bytes value where text is expected. Value.String() @@ -426,7 +426,7 @@ func (vm *VM) defineStringBuiltins() { if idx < 0 || idx >= len(s) { return value.NewString(""), nil } - return value.NewString(s[idx:idx+1]), nil + return value.NewString(s[idx : idx+1]), nil } runes := []rune(s) if idx < 0 || idx >= len(runes) { diff --git a/internal/vm/builtins_strings_test.go b/internal/vm/builtins_strings_test.go index 82e9c90f..eb2ff3a9 100644 --- a/internal/vm/builtins_strings_test.go +++ b/internal/vm/builtins_strings_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestStringBuiltinsScalarTables(t *testing.T) { diff --git a/internal/vm/builtins_sys.go b/internal/vm/builtins_sys.go index a322188a..94a125bc 100644 --- a/internal/vm/builtins_sys.go +++ b/internal/vm/builtins_sys.go @@ -12,17 +12,17 @@ import ( "syscall" "time" - "noxy-vm/internal/plugin" - "noxy-vm/internal/value" - "noxy-vm/internal/version" + "github.com/estevaofon/noxy/internal/plugin" + "github.com/estevaofon/noxy/internal/value" + "github.com/estevaofon/noxy/internal/version" ) // pluginDeprecationWarned: um unico aviso por processo (spec 2026-08-29 // §10.1). sys_load_plugin, internal/plugin e compiler.PluginNativeNames -// saem juntos na v0.25.0. +// saem juntos na v0.26.0. var pluginDeprecationWarned atomic.Bool -const pluginDeprecationWarning = "warning: sys_load_plugin is deprecated since v0.23.0 and will be removed in v0.25.0; publish the plugin as a kind = \"process\" extension (docs/EXTENSIONS.md)" +const pluginDeprecationWarning = "warning: sys_load_plugin is deprecated since v0.23.0 and will be removed in v0.26.0; publish the plugin as a kind = \"process\" extension (docs/EXTENSIONS.md)" func (vm *VM) defineSystemBuiltins() { vm.DefineNative("sys_signal_notify", func(args []value.Value) value.Value { diff --git a/internal/vm/builtins_sys_plugin_test.go b/internal/vm/builtins_sys_plugin_test.go index 022ceddc..11f5ca43 100644 --- a/internal/vm/builtins_sys_plugin_test.go +++ b/internal/vm/builtins_sys_plugin_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // sys_load_plugin avisa UMA vez por processo que esta deprecado (spec @@ -16,7 +16,7 @@ func TestSysLoadPluginWarnsDeprecationOnce(t *testing.T) { callBuiltin(t, machine, "sys_load_plugin", value.NewString("nope"), value.NewString("noxy-plugin-does-not-exist")) } first := captureConcurrencyStderr(t, load) - if !strings.Contains(first, "warning: sys_load_plugin is deprecated since v0.23.0 and will be removed in v0.25.0") { + if !strings.Contains(first, "warning: sys_load_plugin is deprecated since v0.23.0 and will be removed in v0.26.0") { t.Fatalf("first call must warn, got %q", first) } second := captureConcurrencyStderr(t, load) diff --git a/internal/vm/builtins_sys_test.go b/internal/vm/builtins_sys_test.go index 4201d2c8..3afc0fd5 100644 --- a/internal/vm/builtins_sys_test.go +++ b/internal/vm/builtins_sys_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // sysCatCommand returns a Noxy exec_output command string that dumps the diff --git a/internal/vm/builtins_sys_version_test.go b/internal/vm/builtins_sys_version_test.go index 4de5b23d..c1595cfa 100644 --- a/internal/vm/builtins_sys_version_test.go +++ b/internal/vm/builtins_sys_version_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/value" - "noxy-vm/internal/version" + "github.com/estevaofon/noxy/internal/value" + "github.com/estevaofon/noxy/internal/version" ) func TestSysVersionNativeReportsBuildVersion(t *testing.T) { diff --git a/internal/vm/builtins_tasks.go b/internal/vm/builtins_tasks.go index 68253234..7214ee17 100644 --- a/internal/vm/builtins_tasks.go +++ b/internal/vm/builtins_tasks.go @@ -6,7 +6,7 @@ import ( "runtime/debug" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineTaskBuiltins() { diff --git a/internal/vm/builtins_tasks_test.go b/internal/vm/builtins_tasks_test.go index a4dbbd82..9fbe6c70 100644 --- a/internal/vm/builtins_tasks_test.go +++ b/internal/vm/builtins_tasks_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func spawnCompiledTestTask(t *testing.T, machine *VM, source, functionName string) value.Value { diff --git a/internal/vm/builtins_time.go b/internal/vm/builtins_time.go index 34af4e3b..9c3252c3 100644 --- a/internal/vm/builtins_time.go +++ b/internal/vm/builtins_time.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) defineTimeBuiltins() { diff --git a/internal/vm/builtins_time_test.go b/internal/vm/builtins_time_test.go index 664920c1..ff0a96e4 100644 --- a/internal/vm/builtins_time_test.go +++ b/internal/vm/builtins_time_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func testDateTimeDefinition() value.Value { diff --git a/internal/vm/builtins_type_test.go b/internal/vm/builtins_type_test.go index 2738740e..e260fe56 100644 --- a/internal/vm/builtins_type_test.go +++ b/internal/vm/builtins_type_test.go @@ -9,7 +9,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func expectReportedString(t *testing.T, got value.Value, want string, msg string) { diff --git a/internal/vm/call_alloc_bench_test.go b/internal/vm/call_alloc_bench_test.go index 4a78fd5c..a6c71a08 100644 --- a/internal/vm/call_alloc_bench_test.go +++ b/internal/vm/call_alloc_bench_test.go @@ -3,10 +3,10 @@ package vm import ( "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" ) func compileVMSourceForBench(b *testing.B, source string) *chunk.Chunk { diff --git a/internal/vm/call_protocol_test.go b/internal/vm/call_protocol_test.go index 6a8633d7..7f20047d 100644 --- a/internal/vm/call_protocol_test.go +++ b/internal/vm/call_protocol_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Os fast paths de OP_RETURN e OP_CALL_STATIC (issue #66, item 3) so podem diff --git a/internal/vm/call_result_envelope.go b/internal/vm/call_result_envelope.go index 54f05cff..c6dd4c95 100644 --- a/internal/vm/call_result_envelope.go +++ b/internal/vm/call_result_envelope.go @@ -3,7 +3,7 @@ package vm import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // resultDefs sao as definicoes de struct que o COMPILADOR entrega a diff --git a/internal/vm/call_static_test.go b/internal/vm/call_static_test.go index 4284ed79..b0c630ad 100644 --- a/internal/vm/call_static_test.go +++ b/internal/vm/call_static_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Chamada tipada in-module: caminho que a Task 3 acelera. O resultado não diff --git a/internal/vm/call_validation.go b/internal/vm/call_validation.go index 2849cf6f..4892b5fd 100644 --- a/internal/vm/call_validation.go +++ b/internal/vm/call_validation.go @@ -2,7 +2,7 @@ package vm import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func runtimeValueMode(v value.Value) string { diff --git a/internal/vm/calls.go b/internal/vm/calls.go index cc909cd5..6a65788c 100644 --- a/internal/vm/calls.go +++ b/internal/vm/calls.go @@ -1,8 +1,8 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) callValue(callee value.Value, argCount int, c *chunk.Chunk, ip int) (bool, error) { diff --git a/internal/vm/calls_characterization_test.go b/internal/vm/calls_characterization_test.go index 9884c753..202bfd5b 100644 --- a/internal/vm/calls_characterization_test.go +++ b/internal/vm/calls_characterization_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestScriptCallCopiesOnlyTopLevelCompositeArgument(t *testing.T) { diff --git a/internal/vm/constant_pool_overflow_test.go b/internal/vm/constant_pool_overflow_test.go index 0e20f144..4af854b3 100644 --- a/internal/vm/constant_pool_overflow_test.go +++ b/internal/vm/constant_pool_overflow_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // OP_GET_GLOBAL, OP_SET_GLOBAL, OP_GET_PROPERTY, OP_SET_PROPERTY, OP_IMPORT, diff --git a/internal/vm/container_owners_test.go b/internal/vm/container_owners_test.go index 793032a0..e1fe5791 100644 --- a/internal/vm/container_owners_test.go +++ b/internal/vm/container_owners_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Sondas e reproducoes da issue #55: contêineres criados por natives passam diff --git a/internal/vm/cow.go b/internal/vm/cow.go index 40df87ff..c9992ca3 100644 --- a/internal/vm/cow.go +++ b/internal/vm/cow.go @@ -4,7 +4,7 @@ import ( "fmt" "sync/atomic" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // cloneCount conta clones CoW; visível para testes e diagnóstico. diff --git a/internal/vm/cow_builtins_test.go b/internal/vm/cow_builtins_test.go index 83dd18b5..74f35b8c 100644 --- a/internal/vm/cow_builtins_test.go +++ b/internal/vm/cow_builtins_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // newMarkingVM registra um native test_mark_shared que retém o composto diff --git a/internal/vm/cow_equality_test.go b/internal/vm/cow_equality_test.go index c4c88eb5..eceee188 100644 --- a/internal/vm/cow_equality_test.go +++ b/internal/vm/cow_equality_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestStructuralEqualityArrays(t *testing.T) { diff --git a/internal/vm/cow_mut_opcodes_test.go b/internal/vm/cow_mut_opcodes_test.go index b8f176c5..ef9864f2 100644 --- a/internal/vm/cow_mut_opcodes_test.go +++ b/internal/vm/cow_mut_opcodes_test.go @@ -3,8 +3,8 @@ package vm import ( "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Os chunks destes testes terminam sem OP_RETURN de propósito: o loop do diff --git a/internal/vm/cow_natives.go b/internal/vm/cow_natives.go index 5985308a..8420b067 100644 --- a/internal/vm/cow_natives.go +++ b/internal/vm/cow_natives.go @@ -1,6 +1,6 @@ package vm -import "noxy-vm/internal/value" +import "github.com/estevaofon/noxy/internal/value" // stampReadonlyArgs estampa o flag CoW de native só-leitura no registro, // para o hot path de chamada não pagar lookup de mapa por nome. diff --git a/internal/vm/cow_nested_container_test.go b/internal/vm/cow_nested_container_test.go index 7ad6c3e6..50fedcfe 100644 --- a/internal/vm/cow_nested_container_test.go +++ b/internal/vm/cow_nested_container_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Semântica de valor (spec §2.2/§4.3, CRITICAL): uma escrita aninhada através diff --git a/internal/vm/cow_test.go b/internal/vm/cow_test.go index 9fe67d49..09bac0b5 100644 --- a/internal/vm/cow_test.go +++ b/internal/vm/cow_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // shareByOwners estabelece a precondição "compartilhado" pelo mecanismo de diff --git a/internal/vm/defer.go b/internal/vm/defer.go index 98512021..0bce4deb 100644 --- a/internal/vm/defer.go +++ b/internal/vm/defer.go @@ -3,7 +3,7 @@ package vm import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type PreparedCall struct { diff --git a/internal/vm/defer_test.go b/internal/vm/defer_test.go index 17ec6e35..4eba5a2c 100644 --- a/internal/vm/defer_test.go +++ b/internal/vm/defer_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func testStructConstructor(name string, fields []string, params []*value.RuntimeTypeInfo) value.Value { diff --git a/internal/vm/dynamic_boundary_test.go b/internal/vm/dynamic_boundary_test.go index 760c9057..85f77d31 100644 --- a/internal/vm/dynamic_boundary_test.go +++ b/internal/vm/dynamic_boundary_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Fronteira dinâmica, parte 2: com `any` o executor é quem valida índice, diff --git a/internal/vm/executor.go b/internal/vm/executor.go index c7e3554a..4eb5f23e 100644 --- a/internal/vm/executor.go +++ b/internal/vm/executor.go @@ -2,8 +2,8 @@ package vm import ( "fmt" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" "reflect" "unicode/utf8" ) diff --git a/internal/vm/executor_characterization_test.go b/internal/vm/executor_characterization_test.go index c28204f8..76e994e2 100644 --- a/internal/vm/executor_characterization_test.go +++ b/internal/vm/executor_characterization_test.go @@ -1,7 +1,7 @@ package vm import ( - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" "testing" ) diff --git a/internal/vm/explicit_ref_runtime_test.go b/internal/vm/explicit_ref_runtime_test.go index 10826f1e..2d7e5142 100644 --- a/internal/vm/explicit_ref_runtime_test.go +++ b/internal/vm/explicit_ref_runtime_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // print/to_str/f-string recebem o ref como valor e mostram a referencia diff --git a/internal/vm/extensions.go b/internal/vm/extensions.go index 03631e3b..eb601af5 100644 --- a/internal/vm/extensions.go +++ b/internal/vm/extensions.go @@ -10,10 +10,10 @@ import ( "runtime" "strings" - "noxy-vm/internal/ext" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/value" - "noxy-vm/internal/version" + "github.com/estevaofon/noxy/internal/ext" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/value" + "github.com/estevaofon/noxy/internal/version" ) // extensionLoaderPermits permite aos testes liberar modulos de import extras diff --git a/internal/vm/extensions_e2e_test.go b/internal/vm/extensions_e2e_test.go index 1da62640..21421943 100644 --- a/internal/vm/extensions_e2e_test.go +++ b/internal/vm/extensions_e2e_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/value" ) const testExtManifest = ` diff --git a/internal/vm/field_ops.go b/internal/vm/field_ops.go index f887479f..8e78af02 100644 --- a/internal/vm/field_ops.go +++ b/internal/vm/field_ops.go @@ -1,8 +1,8 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Campo de struct por indice (issue #96): OP_GET_FIELD / OP_SET_FIELD / diff --git a/internal/vm/float_ops_test.go b/internal/vm/float_ops_test.go index 4f51073f..b33b7058 100644 --- a/internal/vm/float_ops_test.go +++ b/internal/vm/float_ops_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestFloatArithmeticSpecialized(t *testing.T) { diff --git a/internal/vm/function_types_test.go b/internal/vm/function_types_test.go index 6e840191..d1b6c80e 100644 --- a/internal/vm/function_types_test.go +++ b/internal/vm/function_types_test.go @@ -1,7 +1,7 @@ package vm import ( - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" "strings" "testing" ) diff --git a/internal/vm/fused_jump_test.go b/internal/vm/fused_jump_test.go index acb9aa70..4d6df9b7 100644 --- a/internal/vm/fused_jump_test.go +++ b/internal/vm/fused_jump_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Frame raiz: stack[0] = script closure; empilhamos a,b e o opcode fundido diff --git a/internal/vm/generics_interactions_test.go b/internal/vm/generics_interactions_test.go index 3ec11b73..1418d074 100644 --- a/internal/vm/generics_interactions_test.go +++ b/internal/vm/generics_interactions_test.go @@ -9,7 +9,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestLambdaInsideGenericBody(t *testing.T) { diff --git a/internal/vm/generics_modules_e2e_test.go b/internal/vm/generics_modules_e2e_test.go index 511e8fd9..f1d3a38a 100644 --- a/internal/vm/generics_modules_e2e_test.go +++ b/internal/vm/generics_modules_e2e_test.go @@ -6,12 +6,12 @@ package vm // os.WriteFile + compiler com RootPath apontando para o TempDir). import ( - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" "os" "path/filepath" "strings" diff --git a/internal/vm/global_cache_test.go b/internal/vm/global_cache_test.go index 070fecea..16cd1769 100644 --- a/internal/vm/global_cache_test.go +++ b/internal/vm/global_cache_test.go @@ -3,8 +3,8 @@ package vm import ( "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Guarda o cache de globais contra staleness: a função lê o global duas diff --git a/internal/vm/http_parser_framing_test.go b/internal/vm/http_parser_framing_test.go index b5e961f2..e99cd728 100644 --- a/internal/vm/http_parser_framing_test.go +++ b/internal/vm/http_parser_framing_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func captureParserInt(t *testing.T, body string) int64 { diff --git a/internal/vm/http_server_framing_test.go b/internal/vm/http_server_framing_test.go index d718856a..008d138b 100644 --- a/internal/vm/http_server_framing_test.go +++ b/internal/vm/http_server_framing_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func captureServerInt(t *testing.T, body string) int64 { diff --git a/internal/vm/inc_local_test.go b/internal/vm/inc_local_test.go index 40d9ad17..a3dfc902 100644 --- a/internal/vm/inc_local_test.go +++ b/internal/vm/inc_local_test.go @@ -3,8 +3,8 @@ package vm import ( "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Frame raiz: LocalBase = 1, slot local 0 = stack[1]. Empilha 5 no slot e diff --git a/internal/vm/index_ops.go b/internal/vm/index_ops.go index 7e4b5503..afd9c24d 100644 --- a/internal/vm/index_ops.go +++ b/internal/vm/index_ops.go @@ -1,8 +1,8 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // setIndexGeneric e o corpo de OP_SET_INDEX: desempilha valor, indice e diff --git a/internal/vm/instance_slots_crash_test.go b/internal/vm/instance_slots_crash_test.go index e4ed4497..c1d4926d 100644 --- a/internal/vm/instance_slots_crash_test.go +++ b/internal/vm/instance_slots_crash_test.go @@ -5,7 +5,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Issue #86: duas routines escrevendo o mesmo ObjInstance derrubavam o diff --git a/internal/vm/json_loads_cow_test.go b/internal/vm/json_loads_cow_test.go index a3b9c6fd..7d0edb0d 100644 --- a/internal/vm/json_loads_cow_test.go +++ b/internal/vm/json_loads_cow_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // json_loads respeita a semântica de valor nos níveis ANINHADOS (issue #53 diff --git a/internal/vm/json_population.go b/internal/vm/json_population.go index 6eda77b1..d9799243 100644 --- a/internal/vm/json_population.go +++ b/internal/vm/json_population.go @@ -2,9 +2,9 @@ package vm import ( "encoding/json" + "github.com/estevaofon/noxy/internal/value" "math" "math/big" - "noxy-vm/internal/value" "sort" ) diff --git a/internal/vm/json_strict.go b/internal/vm/json_strict.go index 2416f6e1..341cd346 100644 --- a/internal/vm/json_strict.go +++ b/internal/vm/json_strict.go @@ -5,7 +5,7 @@ import ( "math" "unicode/utf8" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) var ( diff --git a/internal/vm/loop_break_test.go b/internal/vm/loop_break_test.go index b9516477..6dea80d0 100644 --- a/internal/vm/loop_break_test.go +++ b/internal/vm/loop_break_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // traceVMSource roda o programa coletando os inteiros passados a test_trace(), diff --git a/internal/vm/malformed_reference_test.go b/internal/vm/malformed_reference_test.go index 99c70d62..e08b9a68 100644 --- a/internal/vm/malformed_reference_test.go +++ b/internal/vm/malformed_reference_test.go @@ -1,11 +1,11 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" "strings" "testing" ) diff --git a/internal/vm/module_cache.go b/internal/vm/module_cache.go index 1065b7e6..614a3134 100644 --- a/internal/vm/module_cache.go +++ b/internal/vm/module_cache.go @@ -6,7 +6,7 @@ import ( "strings" "sync" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type moduleKey struct { diff --git a/internal/vm/module_cache_test.go b/internal/vm/module_cache_test.go index a3ae748c..d80ac283 100644 --- a/internal/vm/module_cache_test.go +++ b/internal/vm/module_cache_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestModuleCacheInitializesKeyOnce(t *testing.T) { diff --git a/internal/vm/module_encoding_test.go b/internal/vm/module_encoding_test.go index f49607f1..da8b505d 100644 --- a/internal/vm/module_encoding_test.go +++ b/internal/vm/module_encoding_test.go @@ -1,7 +1,7 @@ package vm import ( - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" "os" "path/filepath" "strings" diff --git a/internal/vm/module_exports_test.go b/internal/vm/module_exports_test.go index 3ed6018f..e3841797 100644 --- a/internal/vm/module_exports_test.go +++ b/internal/vm/module_exports_test.go @@ -2,12 +2,12 @@ package vm import ( "errors" - "noxy-vm/internal/ast" - "noxy-vm/internal/chunk" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" "os" "path/filepath" "slices" diff --git a/internal/vm/module_struct_fields_test.go b/internal/vm/module_struct_fields_test.go index 79596208..3a34ce0d 100644 --- a/internal/vm/module_struct_fields_test.go +++ b/internal/vm/module_struct_fields_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // A struct defined in the importing module with a field typed as a struct diff --git a/internal/vm/modules.go b/internal/vm/modules.go index e990e691..e4ff427e 100644 --- a/internal/vm/modules.go +++ b/internal/vm/modules.go @@ -3,13 +3,13 @@ package vm import ( "errors" "fmt" - "noxy-vm/internal/ast" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/stdlib" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/stdlib" + "github.com/estevaofon/noxy/internal/value" "os" "path/filepath" "strings" diff --git a/internal/vm/native_ref_args.go b/internal/vm/native_ref_args.go index 9287f324..00e175a5 100644 --- a/internal/vm/native_ref_args.go +++ b/internal/vm/native_ref_args.go @@ -3,8 +3,8 @@ package vm import ( "fmt" - "noxy-vm/internal/compiler" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/value" ) // rejectRefArgs e o gemeo dinamico de rejectRefArgumentsForValueNatives diff --git a/internal/vm/native_signatures_test.go b/internal/vm/native_signatures_test.go index f7b4fb2f..84566248 100644 --- a/internal/vm/native_signatures_test.go +++ b/internal/vm/native_signatures_test.go @@ -7,10 +7,10 @@ import ( "sync" "testing" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" ) func TestIOModuleExposesObservableResultsAndPreservesLegacyCalls(t *testing.T) { diff --git a/internal/vm/network_poller.go b/internal/vm/network_poller.go index 7b82de77..e83aa2cf 100644 --- a/internal/vm/network_poller.go +++ b/internal/vm/network_poller.go @@ -9,7 +9,7 @@ import ( "syscall" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type platformNetworkWake interface { diff --git a/internal/vm/network_poller_integration_test.go b/internal/vm/network_poller_integration_test.go index d01d2b3d..7830fdb1 100644 --- a/internal/vm/network_poller_integration_test.go +++ b/internal/vm/network_poller_integration_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func networkPollIntegrationSelect( diff --git a/internal/vm/network_poller_linux_test.go b/internal/vm/network_poller_linux_test.go index c9ce1bc7..043d9956 100644 --- a/internal/vm/network_poller_linux_test.go +++ b/internal/vm/network_poller_linux_test.go @@ -10,7 +10,7 @@ import ( "golang.org/x/sys/unix" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestUnixReadHangupMatchesLinuxPOLLRDHUP(t *testing.T) { diff --git a/internal/vm/network_poller_test.go b/internal/vm/network_poller_test.go index bb03dbbf..9b6776a0 100644 --- a/internal/vm/network_poller_test.go +++ b/internal/vm/network_poller_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type fakePlatformWake struct { diff --git a/internal/vm/network_poller_windows_test.go b/internal/vm/network_poller_windows_test.go index b691e7e7..adc9b9ba 100644 --- a/internal/vm/network_poller_windows_test.go +++ b/internal/vm/network_poller_windows_test.go @@ -13,7 +13,7 @@ import ( "golang.org/x/sys/windows" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestWSAPollFDLayout(t *testing.T) { diff --git a/internal/vm/process_extensions_e2e_test.go b/internal/vm/process_extensions_e2e_test.go index a91eeec6..76132cf4 100644 --- a/internal/vm/process_extensions_e2e_test.go +++ b/internal/vm/process_extensions_e2e_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "noxy-vm/internal/ext/exttest" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ext/exttest" + "github.com/estevaofon/noxy/internal/value" ) const testProcessExtManifest = ` diff --git a/internal/vm/project_root_test.go b/internal/vm/project_root_test.go index 0dd4b224..88cce62b 100644 --- a/internal/vm/project_root_test.go +++ b/internal/vm/project_root_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/pkgmanager" ) func writeProject(t *testing.T) (root, sub string) { diff --git a/internal/vm/qualified_struct_fields_test.go b/internal/vm/qualified_struct_fields_test.go index 6343c6b4..a6ffb6d3 100644 --- a/internal/vm/qualified_struct_fields_test.go +++ b/internal/vm/qualified_struct_fields_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func assertReportedInt(t *testing.T, got value.Value, want int64) { diff --git a/internal/vm/rc_uniqueness_test.go b/internal/vm/rc_uniqueness_test.go index 26d2d675..42b683fd 100644 --- a/internal/vm/rc_uniqueness_test.go +++ b/internal/vm/rc_uniqueness_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // markProbeReadonly estampa ReadonlyArgs=true no native de sonda registrado diff --git a/internal/vm/ref_container_and_closure_test.go b/internal/vm/ref_container_and_closure_test.go index 9fe3503c..d2722245 100644 --- a/internal/vm/ref_container_and_closure_test.go +++ b/internal/vm/ref_container_and_closure_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Refs cujo contêiner é ele mesmo um ref (`ref r.x`, `ref r[i]` com r: ref diff --git a/internal/vm/ref_equality_strict_runtime_test.go b/internal/vm/ref_equality_strict_runtime_test.go index ba9c14b8..62e4cd00 100644 --- a/internal/vm/ref_equality_strict_runtime_test.go +++ b/internal/vm/ref_equality_strict_runtime_test.go @@ -11,7 +11,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func requireBoolResults(t *testing.T, src string, want []bool) { diff --git a/internal/vm/ref_field_copy_test.go b/internal/vm/ref_field_copy_test.go index 93e817fe..85bd6e59 100644 --- a/internal/vm/ref_field_copy_test.go +++ b/internal/vm/ref_field_copy_test.go @@ -5,7 +5,7 @@ import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Contrato da spec §2.2 regra 6 / §4.3 / §5 Self-Reference (issue #92): uma diff --git a/internal/vm/ref_operand_semantics_test.go b/internal/vm/ref_operand_semantics_test.go index 16c4ebfa..09dc24e8 100644 --- a/internal/vm/ref_operand_semantics_test.go +++ b/internal/vm/ref_operand_semantics_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Refs como operandos (spec 2026-08-24-explicit-ref, R2/R3): a leitura e diff --git a/internal/vm/ref_slot_invariant_test.go b/internal/vm/ref_slot_invariant_test.go index fee81dd2..0aad6395 100644 --- a/internal/vm/ref_slot_invariant_test.go +++ b/internal/vm/ref_slot_invariant_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) const refSlotPrelude = ` diff --git a/internal/vm/ref_slots.go b/internal/vm/ref_slots.go index 5686321f..7a26cbf1 100644 --- a/internal/vm/ref_slots.go +++ b/internal/vm/ref_slots.go @@ -3,7 +3,7 @@ package vm import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Invariante do slot `ref T` (spec docs/superpowers/specs/ diff --git a/internal/vm/reference_ownership_test.go b/internal/vm/reference_ownership_test.go index 30bacf48..4ad415f5 100644 --- a/internal/vm/reference_ownership_test.go +++ b/internal/vm/reference_ownership_test.go @@ -1,8 +1,8 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" "testing" ) diff --git a/internal/vm/references.go b/internal/vm/references.go index ed92615b..aa296ea4 100644 --- a/internal/vm/references.go +++ b/internal/vm/references.go @@ -4,7 +4,7 @@ import ( "fmt" "reflect" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func referenceMapKey(index value.Value) (interface{}, error) { diff --git a/internal/vm/references_test.go b/internal/vm/references_test.go index 02fec610..85eba58a 100644 --- a/internal/vm/references_test.go +++ b/internal/vm/references_test.go @@ -1,7 +1,7 @@ package vm import ( - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" "testing" ) diff --git a/internal/vm/resources.go b/internal/vm/resources.go index aa085aab..08bac8c7 100644 --- a/internal/vm/resources.go +++ b/internal/vm/resources.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) type handleRegistry[T any] struct { diff --git a/internal/vm/runtime_context_test.go b/internal/vm/runtime_context_test.go index a305710c..e8e28d25 100644 --- a/internal/vm/runtime_context_test.go +++ b/internal/vm/runtime_context_test.go @@ -3,7 +3,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestContextualNativeReceivesCallingVM(t *testing.T) { diff --git a/internal/vm/runtime_errors.go b/internal/vm/runtime_errors.go index 69a169e4..dbe74867 100644 --- a/internal/vm/runtime_errors.go +++ b/internal/vm/runtime_errors.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "noxy-vm/internal/chunk" + "github.com/estevaofon/noxy/internal/chunk" ) // SourceLocation identifies a Noxy source position associated with a runtime error. diff --git a/internal/vm/runtime_errors_test.go b/internal/vm/runtime_errors_test.go index 6cb1a5e2..77365363 100644 --- a/internal/vm/runtime_errors_test.go +++ b/internal/vm/runtime_errors_test.go @@ -2,8 +2,8 @@ package vm import ( "errors" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" "strings" "testing" ) diff --git a/internal/vm/runtime_type_name.go b/internal/vm/runtime_type_name.go index 0fc600f2..bd0688fa 100644 --- a/internal/vm/runtime_type_name.go +++ b/internal/vm/runtime_type_name.go @@ -4,7 +4,7 @@ import ( "fmt" "regexp" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // moduleQualifierPattern casa cada qualificador de modulo (`main::`, diff --git a/internal/vm/runtime_type_validation.go b/internal/vm/runtime_type_validation.go index d1d4d344..50fdfbde 100644 --- a/internal/vm/runtime_type_validation.go +++ b/internal/vm/runtime_type_validation.go @@ -2,7 +2,7 @@ package vm import ( "fmt" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func (vm *VM) appendItemCompatible(target *value.ObjRef, item value.Value) bool { @@ -94,7 +94,6 @@ func validStructConstructorType(definition *value.ObjStruct) (*value.RuntimeType return schema, true } - // runtimeTagAccepted informa, em O(profundidade do tipo), se uma tag de // runtime existente satisfaz o esquema esperado. Tag aceita vale como prova // do conteudo: os elementos foram validados quando a tag foi gravada e as diff --git a/internal/vm/runtime_type_validation_test.go b/internal/vm/runtime_type_validation_test.go index 2b2c74de..d8cd1873 100644 --- a/internal/vm/runtime_type_validation_test.go +++ b/internal/vm/runtime_type_validation_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Estes testes fixam o contrato O(1) da validação por tag: quando um contêiner diff --git a/internal/vm/stack.go b/internal/vm/stack.go index 26cb7ef5..c848ca7d 100644 --- a/internal/vm/stack.go +++ b/internal/vm/stack.go @@ -1,6 +1,6 @@ package vm -import "noxy-vm/internal/value" +import "github.com/estevaofon/noxy/internal/value" func (vm *VM) readShort() uint16 { vm.ip += 2 diff --git a/internal/vm/stack_characterization_test.go b/internal/vm/stack_characterization_test.go index 976b2518..42620b7e 100644 --- a/internal/vm/stack_characterization_test.go +++ b/internal/vm/stack_characterization_test.go @@ -1,8 +1,8 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" "testing" ) diff --git a/internal/vm/stack_growth_test.go b/internal/vm/stack_growth_test.go index 6520bd6d..daf20b9b 100644 --- a/internal/vm/stack_growth_test.go +++ b/internal/vm/stack_growth_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // depth(n) recursivo: 10000 niveis exigem ~10001 frames e dezenas de milhares diff --git a/internal/vm/stdlib_hygiene_test.go b/internal/vm/stdlib_hygiene_test.go index dc74cea9..b487e3c8 100644 --- a/internal/vm/stdlib_hygiene_test.go +++ b/internal/vm/stdlib_hygiene_test.go @@ -16,12 +16,12 @@ import ( "time" "unicode/utf8" - "noxy-vm/internal/ast" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/stdlib" - "noxy-vm/internal/token" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/ast" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/stdlib" + "github.com/estevaofon/noxy/internal/token" + "github.com/estevaofon/noxy/internal/value" ) var nativeRegistrationHelpers = map[string]bool{ diff --git a/internal/vm/string_ordering.go b/internal/vm/string_ordering.go index fa3dae3f..25e6e6ac 100644 --- a/internal/vm/string_ordering.go +++ b/internal/vm/string_ordering.go @@ -1,6 +1,6 @@ package vm -import "noxy-vm/internal/value" +import "github.com/estevaofon/noxy/internal/value" // stringOperands reconhece o par (string, string) para os opcodes de // ordenacao OP_GREATER/OP_LESS. Segue o mesmo criterio do branch de strings diff --git a/internal/vm/string_ordering_test.go b/internal/vm/string_ordering_test.go index 34c11345..eea43f46 100644 --- a/internal/vm/string_ordering_test.go +++ b/internal/vm/string_ordering_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // A spec (§1.4/§8) lista `>`, `<`, `>=`, `<=` como operadores de comparacao diff --git a/internal/vm/struct_field_index_e2e_test.go b/internal/vm/struct_field_index_e2e_test.go index 96eb1f1a..2e2a8b94 100644 --- a/internal/vm/struct_field_index_e2e_test.go +++ b/internal/vm/struct_field_index_e2e_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Ponta a ponta (fonte -> compilador -> VM) do campo de struct por índice diff --git a/internal/vm/task_execution.go b/internal/vm/task_execution.go index 78e3de41..780d75b8 100644 --- a/internal/vm/task_execution.go +++ b/internal/vm/task_execution.go @@ -3,8 +3,8 @@ package vm import ( "fmt" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) type preparedTaskCall struct { diff --git a/internal/vm/task_execution_test.go b/internal/vm/task_execution_test.go index cad81500..a03ff38a 100644 --- a/internal/vm/task_execution_test.go +++ b/internal/vm/task_execution_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) func TestPreparedTaskCallReturnsExplicitResult(t *testing.T) { diff --git a/internal/vm/typed_index_e2e_test.go b/internal/vm/typed_index_e2e_test.go index 35a6798f..93bd34c7 100644 --- a/internal/vm/typed_index_e2e_test.go +++ b/internal/vm/typed_index_e2e_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // Ponta a ponta (fonte -> compilador -> VM) da indexacao tipada de array diff --git a/internal/vm/typed_index_test.go b/internal/vm/typed_index_test.go index aa29fd74..b8034ee5 100644 --- a/internal/vm/typed_index_test.go +++ b/internal/vm/typed_index_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "noxy-vm/internal/chunk" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/value" ) // Frame raiz: LocalBase = 1, slot local 0 = stack[1]. Os testes deste arquivo diff --git a/internal/vm/unwind.go b/internal/vm/unwind.go index adfb6ea9..5ff79418 100644 --- a/internal/vm/unwind.go +++ b/internal/vm/unwind.go @@ -1,6 +1,6 @@ package vm -import "noxy-vm/internal/value" +import "github.com/estevaofon/noxy/internal/value" type frameOutcome struct { Result value.Value diff --git a/internal/vm/unwind_test.go b/internal/vm/unwind_test.go index 9c1bd525..f6f532e0 100644 --- a/internal/vm/unwind_test.go +++ b/internal/vm/unwind_test.go @@ -5,7 +5,7 @@ import ( "slices" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestDeferredCallsRunLIFOOnExplicitReturn(t *testing.T) { diff --git a/internal/vm/value_format_test.go b/internal/vm/value_format_test.go index 0e7e7320..362a8376 100644 --- a/internal/vm/value_format_test.go +++ b/internal/vm/value_format_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) // print/iprint/eprint escrevem `Value.String()` de cada argumento unido por diff --git a/internal/vm/value_semantics_test.go b/internal/vm/value_semantics_test.go index 866cc0f0..f0fb793d 100644 --- a/internal/vm/value_semantics_test.go +++ b/internal/vm/value_semantics_test.go @@ -6,7 +6,7 @@ package vm import ( "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func expectInt(t *testing.T, got value.Value, want int64, msg string) { diff --git a/internal/vm/vm.go b/internal/vm/vm.go index 0e24f25a..ed41efa9 100644 --- a/internal/vm/vm.go +++ b/internal/vm/vm.go @@ -3,10 +3,10 @@ package vm import ( "bufio" "fmt" - "noxy-vm/internal/chunk" - "noxy-vm/internal/ext" - "noxy-vm/internal/pkgmanager" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/ext" + "github.com/estevaofon/noxy/internal/pkgmanager" + "github.com/estevaofon/noxy/internal/value" "os" "sync" ) diff --git a/internal/vm/vm_test.go b/internal/vm/vm_test.go index 81ccab0d..87e7f6b9 100644 --- a/internal/vm/vm_test.go +++ b/internal/vm/vm_test.go @@ -1,7 +1,7 @@ package vm import ( - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" "strings" "testing" ) diff --git a/internal/vm/vm_test_helpers_test.go b/internal/vm/vm_test_helpers_test.go index 21709a71..8b19bed9 100644 --- a/internal/vm/vm_test_helpers_test.go +++ b/internal/vm/vm_test_helpers_test.go @@ -1,11 +1,11 @@ package vm import ( - "noxy-vm/internal/chunk" - "noxy-vm/internal/compiler" - "noxy-vm/internal/lexer" - "noxy-vm/internal/parser" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/chunk" + "github.com/estevaofon/noxy/internal/compiler" + "github.com/estevaofon/noxy/internal/lexer" + "github.com/estevaofon/noxy/internal/parser" + "github.com/estevaofon/noxy/internal/value" "testing" ) diff --git a/internal/vm/zeros_test.go b/internal/vm/zeros_test.go index 9536dc47..391fe170 100644 --- a/internal/vm/zeros_test.go +++ b/internal/vm/zeros_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "noxy-vm/internal/value" + "github.com/estevaofon/noxy/internal/value" ) func TestZerosNegativeSizeIsRuntimeError(t *testing.T) { diff --git a/sdk/noxyplugin/README.md b/sdk/noxyplugin/README.md index 6ec0bc0f..14aa6bb7 100644 --- a/sdk/noxyplugin/README.md +++ b/sdk/noxyplugin/README.md @@ -3,7 +3,7 @@ `noxyplugin` is the Go SDK for writing Noxy process extensions: executables that speak `noxy-plugin/1` over their stdin/stdout. It is a nested Go module (`github.com/estevaofon/noxy/sdk/noxyplugin`) with no dependency on -`noxy-vm` — it carries its own NXB codec over Go types, because the wire +`github.com/estevaofon/noxy` — it carries its own NXB codec over Go types, because the wire format is the contract, not a shared package. Protocol design: `docs/superpowers/specs/2026-08-29-process-extensions-design.md` in the main repository; user-facing docs: `docs/EXTENSIONS.md`. @@ -109,6 +109,6 @@ go test ./... ``` This module's tests (frame codec, golden NXB vectors, a fake host over -`io.Pipe`) run independently of the root `noxy-vm` module's `go test +`io.Pipe`) run independently of the root `github.com/estevaofon/noxy` module's `go test ./...` — CI runs both (see `.github/workflows/network-deadlines.yml`, job `network-semantics`).