Feat v0.9.2 Starlark converter consolidation + snapshot cleanup (#75)
All checks were successful
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Has been skipped
CI/CD / test-runners (pull_request) Has been skipped
CI/CD / e2e-smoke (pull_request) Has been skipped
CI/CD / test-go-pg (pull_request) Successful in 2m43s
CI/CD / test-sqlite (pull_request) Successful in 2m52s
CI/CD / build-and-deploy (pull_request) Successful in 2m15s

Consolidate duplicate Go↔Starlark converters into sandbox/convert.go
and snapshot parsers into models/snapshot.go. Standardize snapshot
creation on wrapped format. Net -393 lines across 21 files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-03 14:20:05 +00:00
parent d03dfe502f
commit b8a4c516ff
24 changed files with 362 additions and 479 deletions

View File

@@ -5,6 +5,8 @@ import (
"testing"
"go.starlark.net/starlark"
"armature/sandbox"
)
// ── parseOnAdvanceResult ────────────────────
@@ -82,7 +84,7 @@ func TestParseOnAdvanceResult_EmptyDict(t *testing.T) {
}
}
// ── starlarkDictToMap ───────────────────────
// ── DictToMap ───────────────────────
func TestStarlarkDictToMap_NestedStructure(t *testing.T) {
inner := starlark.NewDict(1)
@@ -98,7 +100,7 @@ func TestStarlarkDictToMap_NestedStructure(t *testing.T) {
_ = outer.SetKey(starlark.String("nested"), inner)
_ = outer.SetKey(starlark.String("members"), members)
m := starlarkDictToMap(outer)
m := sandbox.DictToMap(outer)
if m["title"] != "Test" {
t.Errorf("expected title='Test', got %v", m["title"])