Commite2134d8cRecorded6 Sep 2026Repositorysigil-image

Use implicit core imports and keep shared Sigil guidance at user scope

Changed
 AGENTS.md                  | 3 ---
 src/sigil/image.sgl        | 3 +--
 src/sigil/image/native.sgl | 3 +--
 test/test-image.sgl        | 3 +--
 4 files changed, 3 insertions(+), 9 deletions(-)
Diff
AGENTS.mdmodified
@@ -1,11 +1,8 @@
1
# sigil-image
2
−3
Use hierarchical modules: `(sigil image)` and `(sigil image native)`.
3
Keep the codec memory-only and independent of desktop graphics and applications.
4
Keep explicit input, dimension and pixel budgets before allocating decoded pixels.
5
Do not add upload permissions, storage configuration or customer policy here.
6
Preserve STB provenance and license notices when updating vendored headers.
−8
Format Sigil with readable line breaks and consistent indentation; do not compress
−9
multiple bindings, statements or condition branches onto one line.
7
Run `sigil build` and `sigil test --sgl --strict` after codec changes. Keep tests
8
self-contained with synthetic fixtures and README limits accurate.
src/sigil/image.sglmodified
@@ -1,6 +1,5 @@
1
(define-library (sigil image)
−2
(import (sigil core)
−3
(sigil image native))
+2
(import (sigil image native))
3
4
(export image-normalize-png)
5
src/sigil/image/native.sglmodified
@@ -1,4 +1,3 @@
1
(define-library (sigil image native)
−2
(import (sigil core))
−3
(export normalize-png-bytes)
+2
(export normalize-png-bytes)
3
(begin))
test/test-image.sglmodified
@@ -1,5 +1,4 @@
−1
(import (sigil core)
−2
(sigil io)
+1
(import (sigil io)
2
(sigil test)
3
(sigil image))
4