@theoremjs/agents 0.3.5-next.958.gc25a02b → 0.3.5-next.960.g9f17ea5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { TheoremError } from '../../guardrails/error.js';
2
2
  import { labelText, } from '../../guardrails/labels.js';
3
3
  import { base64ToBytes, bytesToBase64 } from '../util/base64.js';
4
4
  import { mimeEssence } from '../util/mime.js';
5
- import { mimeAllowed, profileAccept } from './catalog.js';
5
+ import { mediaKindForMime, mimeAllowed, profileAccept } from './catalog.js';
6
6
  const B64_PAD = 2;
7
7
  const B64_WORD = 4;
8
8
  const B64_TRIPLET = 3;
@@ -254,7 +254,7 @@ function named(issue, name) {
254
254
  }
255
255
  function mimeIssues(accept, files, channel) {
256
256
  return files
257
- .filter((file) => !mimeAllowed(accept, file.mimeType))
257
+ .filter((file) => !mediaKindForMime(file.mimeType) || !mimeAllowed(accept, file.mimeType))
258
258
  .map((file) => named({ code: 'mime_not_allowed', params: { mimeType: file.mimeType, channel } }, file.name));
259
259
  }
260
260
  function limitIssues(files, limits) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/agents",
3
- "version": "0.3.5-next.958.gc25a02b",
3
+ "version": "0.3.5-next.960.g9f17ea5",
4
4
  "description": "A flat TypeScript agent kernel for typed profiles, deterministic turn execution, registered tools, provider adapters, guardrails, and host-injected traces.",
5
5
  "keywords": [
6
6
  "agent",