UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

228 lines (227 loc) • 7.69 kB
{ "repo": "core", "package": "@sema-agent/primitives", "schema": 2, "version": "7.73.0", "from": "9ef3bb54f3d11c5e0001a3b4c6a27d05abe1e880", "to": "v7.73.0", "added": [ { "name": "mergeWithheldSpans", "kind": "function", "tier": null, "at": [ "src/index.ts:73", "src/secret-scan.ts:563" ], "criteriaCovered": false, "breaking": false } ], "removed": [], "changed": [], "subpaths": [], "subpathsUnread": [ "from", "to" ], "narrowed": [], "faces": { "open": [], "source": null }, "closedSetMembers": [], "closedSetsUnreadable": [], "typeKeys": [ { "type": "CredentialFamilyId", "at": [ "src/secret-vocabulary.ts" ], "added": [], "addedDetail": [], "addedRequired": [], "removed": [], "madeRequired": [], "madeOptional": [], "retyped": [], "breaking": true, "criteriaCovered": false, "judge": { "verdict": "breaking", "postures": [ "R", "R0", "Rs", "V", "Vo", "Vs" ], "leaves": [ "L-34fcc7d6db3f" ], "subject": "CredentialFamilyId", "judged": true, "home": [ "L-34fcc7d6db3f" ], "gained": [ "cookie-header", "command-line-password" ] } } ], "typeKeysUnreadableArms": [], "typeKeysFlattenedCount": 9, "signatures": [], "versionLiterals": [], "declarationMoves": [], "mintMoves": [], "noticeLineage": [], "criteriaObserves": [], "consumersHint": { "cli": [], "server": [], "sdk": [], "note": "scanned cli@c97d39fea server@a9070a7a5 sdk@93fdd82 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it" }, "judge": { "judgeVersion": "2", "typescript": "5.7.2", "counts": { "same": 280, "breaking": 12 }, "probes": 1497, "leaves": [ { "id": "L-34fcc7d6db3f", "verdict": "breaking", "message": "Type '\"cookie-header\"' is not assignable to type 'CredentialFamilyId'.", "count": 12, "representative": [ "CREDENTIAL_VOCABULARY", "CredentialFamilyId", "CredentialVocabulary", "CredentialVocabulary.values", "SecretScan" ], "culprits": [ "secret-vocabulary.d.ts#CredentialFamilyId" ], "postures": [ "R", "R0", "Rs", "V", "Vo", "Vs" ], "home": "typeKeys:CredentialFamilyId", "answer": { "answer": "breaking", "why": "CREDENTIAL_VOCABULARY (secret-vocabulary) gains two rows, cookie-header and command-line-password, and CredentialFamilyId is derived from the rows' ids, so CredentialFamilyId, CredentialVocabulary.values and what a scan hands out (SecretScan, among the 12 subjects the judge found) carry two new words: a consumer that switches exhaustively on the family, keys a Record<CredentialFamilyId, …> table, or holds a new family as the 7.72.0 union fails to compile (probe K1: a CredentialFamilyId held as the 7.72.0 union is refused), and a value typed typeof CREDENTIAL_VOCABULARY on either side fails against the other." } } ], "mustCheck": [ { "id": "deep-nesting", "form": "a method or callback nested deeper than 10 levels of anonymous object types under an export: the strict postures stop there (a method there is compared bivariantly)", "measured": { "count": 0, "examples": [], "note": "not measured: the depth a consumer reaches is not bounded by the declarations" }, "owed": true, "answer": "Not measurable by the run, so the hole was checked: the package imports nothing from outside itself, and the diff of its two ends' emitted declarations (diff -r of the judge's cached trees) is three hunks: index.d.ts re-exports the new mergeWithheldSpans, secret-scan.d.ts declares it (a new function, no old end), and secret-vocabulary.d.ts gains the two vocabulary rows (object types of readonly literals and a RegExp, no method of the package's own) — the change those rows make is the widened CredentialFamilyId, answered breaking at depth <= 10 under its home; no declaration both ends have changed otherwise, so nothing else can hide behind a bivariant method at any depth." }, { "id": "strict-generic", "form": "a method-syntax member (compared bivariantly) inside a parameter or result of a GENERIC or OVERLOADED exported function: the strict posture is not written for those functions", "measured": { "count": 0, "examples": [] }, "owed": false, "answer": null }, { "id": "ambient-modules", "form": "an ambient module (`declare module \"x\"`) both ends declare: in the one program the judge builds, the two declarations merge, so a change between them is not compared", "measured": { "count": 0, "examples": [] }, "owed": false, "answer": null }, { "id": "shared-dependency", "form": "a type the package takes from another installed package: both ends are judged against the ONE copy installed now, so a dependency that moved between the two refs is not compared", "measured": { "count": 0, "examples": [] }, "owed": false, "answer": null }, { "id": "export-equals", "form": "a module written `export =`: its members are not enumerated as named exports", "measured": { "count": 0, "examples": [] }, "owed": false, "answer": null }, { "id": "exact-optional", "form": "a consumer compiled with `exactOptionalPropertyTypes`: the probes compile without it, so `k?: T` -> `k?: T | undefined` (and back) is not compared under it", "measured": { "count": 0, "examples": [], "note": "not measured: a consumer's compiler option" }, "owed": true, "answer": "Not measurable (a consumer's compiler option): the package imports nothing from outside itself and its declaration diff only adds (mergeWithheldSpans, whose result members are all required, and two vocabulary rows with no optional member), so no member both ends declare gained or lost `?` or `| undefined`." }, { "id": "unresolved-imports", "form": "an import inside the emitted declarations that does not resolve: what it names reads as `any`, which every posture accepts", "measured": { "count": 0, "examples": [] }, "owed": false, "answer": null }, { "id": "declaration-errors", "form": "a declaration the end could not emit cleanly (`declaration emit` errors): the emitted file may say less than the source", "measured": { "count": 0, "examples": [] }, "owed": false, "answer": null } ], "policyNotes": [], "staleAnswers": [], "seconds": { "emitFrom": 0, "emitTo": 0.302, "build": 0.047, "check": 0.193, "total": 0.56 } }, "breakingCount": 1, "breakingItems": [ "closed set gained members: CredentialFamilyId +cookie-header,command-line-password" ], "toResolvedAt": "a03a2cd1e6fc6fbaf1e83d9c5a750abc8faadccb" }