chore(assets): retire the dead NO_IMAGING / imaging handling
All checks were successful
PR Checks / client-build (pull_request) Successful in 34s
PR Checks / frozen-manifest (pull_request) Successful in 52s
PR Checks / server-tests (pull_request) Successful in 9m49s

servuo-plugins #39 made the Asset Bridge GDI+-free: the overlay no longer
sends `imaging` on assets.sources and NO_IMAGING can no longer arise. Drop
the consumer side: the model branches in shardAssets/shardItemArt, the
`imaging` passthrough and normalisation, the /libgdiplus/ 503 mapping (a
503 is now always SHARD_DOWN), the admin Client Files banner, the
`shard.imaging` schema and NO_IMAGING enum values, and the test stubs.
Swagger fragment regenerated.

Closes #49

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
This commit is contained in:
2026-11-27 13:42:02 -06:00
parent c8e96fcef6
commit 7a4cf199c2
13 changed files with 22 additions and 184 deletions

View File

@@ -61,7 +61,6 @@ function stubEverything({ manifest, fetched, held = new Map(), meta = null, sour
extractorVersion: 1,
hashing: false,
complete: true,
imaging: { ok: true },
}
bridge.readManifest = async () => manifest
@@ -162,7 +161,6 @@ test('unchanged client files import nothing at all', async (t) => {
extractorVersion: 1,
hashing: false,
complete: true,
imaging: { ok: true },
}
stubEverything({ manifest: manifestOf([]), meta: { sources }, sources })
@@ -177,27 +175,6 @@ test('unchanged client files import nothing at all', async (t) => {
assert.equal(result.status, 'unchanged')
})
test('a host that cannot render images is named rather than walked', async (t) => {
// §4.4: reported on the SOURCE gate, so an operator meets it while setting the
// shard up rather than from an empty bestiary weeks later.
stubEverything({
manifest: manifestOf([]),
sources: {
files: {},
extractorVersion: 1,
hashing: false,
complete: true,
imaging: { ok: false, code: 'NO_IMAGING', reason: 'needs libgdiplus' },
},
})
t.after(restore)
const result = await model.importAssets()
assert.equal(result.status, 'unavailable')
assert.equal(result.code, 'NO_IMAGING')
})
// ── the diff (§6) ─────────────────────────────────────────────────────────
test('only the keys whose hash moved are fetched', async (t) => {