Repository navigation
Releases
Releases · underloam/xnews
v0.2.2
Fixed
bun run releasenow refreshes and stagesbun.lockwith the version bump. The workspace lockfile records each package's version and peer ranges, so a release commit that changed only the manifest and changelog left the lockfile behind and CI'sbun install --frozen-lockfilerejected the tagged commit before publication. The workspace test that pins the companion's core range now checks that the range admits the core version in the checkout instead of matching a literal string, so it cannot go stale between the two release commits.
xnews LangGraph 0.2.3
Fixed
- Credential field names are matched by word instead of by substring.
secretary,tokenCount,cookieBanner, andcredentialsPolicywere treated as credentials and blanked in digests, artifacts, and node state; a name now qualifies only when its last word is a credential word, soapiKey,access_token, andclientSecretstill match. structuredResponse.generatedAtis stamped by the runtime when the result is parsed instead of being taken from the model. Asked for a result over live 2026 articles, two of three providers dated it to 2024 and one flagged the current articles as "predictive or speculative" — a model reports its training era, not the clock.- Every model call now carries the current UTC date and the rule that goes with it: judge tool dates against that date rather than against training data, and do not discount an item solely because it postdates what the model recalls, while still questioning a record that is malformed or internally inconsistent. Without a clock a model treats anything newer than its training as hypothetical:
gemini-2.5-flashreported live articles as "predictive or speculative rather than current news" and listed their dates as a limitation of the analysis. Both disappear once the date is supplied. The date and rule are restated per model call and accompany a customsystemPromptas well as the default one.
Added
- Digest items carry a short
ref, andcollectXnewsEvidence/resolveXnewsCitationturn a citation back into the record the tools returned. A news item's own id isprovider|guid|titleand runs past 260 characters, so a model asked to cite it truncates at theprovider|guidboundary: measured live across three providers, no cited id matched the id the model had been shown, and every one matched once the trailing title was stripped. Citations are now 24 characters and resolve exactly — 4/4 on every provider — and the index still accepts a full id or a truncated prefix so existing callers keep working. The handle hashes the raw item rather than the summarized copy, so a host can recompute it from the record it holds even when the digest truncated the id. A prefix claimed by two records — the same guid republished under a revised headline — resolves to neither rather than to whichever arrived first, and an unresolved citation is left exactly as the model wrote it. refis a reserved field derived from a namespaced identity — tool, provider, and the record's stable identifier (id, orsourceIdon aWorkRecord). An event id is unique only within its provider, so anxnews_eventsacrossresult carrying alert1from two providers would otherwise give both the same handle and resolve to whichever arrived first. A provider record carrying its ownrefcannot choose the handle a citation resolves through, one handle presented for two identities resolves to neither, and a bare id claimed by two records resolves to neither. A row with no stable identifier — a data release row, an extracted page — carries noref, because a handle invented from its contents would change whenever the provider changed a column; the analyst is told to cite those by the fields they do carry.citationReftakes{ tool, provider, id }. The handle is 96 bits, because provider content is attacker-influenced and grinding a 48-bit collision to make one item resolve as another is roughly 2^24 work.
xnews LangGraph 0.2.2
Fixed
- Runtime-secret collection no longer turns ordinary OCR settings into redaction patterns. Every nested string under
context.ocrwas treated as a secret, so animageModeof"base"rewrote the word "database" in public provider text and amodelof"Unlimited-OCR"would blank the model name wherever it appeared. Onlyocr.apiKey,ocr.baseUrl, and values under credential-named keys insideocr.extraBodyare collected now;0.2.1shipped with the wider collection. - The
@xbbg/xnewspeer range tracks the shared version line and now names^0.2.2.
xnews LangGraph 0.2.1
Changed
- The companion now shares the core's version line:
@xbbg/xnews-langgraphand@xbbg/xnewsare released at the same version, and the@xbbg/xnewspeer range is the version they ship together (^0.2.1). The jump from0.1.0to0.2.1is that alignment, not a change in scope.
Fixed
- Redaction no longer destroys public content.
redactUrlblanked every query value and any path segment over 24 mixed characters, andredactTextstripped every address and phone-like number, so a Google News article id, a Federal Register slug, a search term, and a filing's published contact all came back as[REDACTED]— citations the host could not follow. Redaction now targets the operator's own data: values the host supplied through runtime context (matched at any depth, including addresses and phone numbers insidesecUserAgent), credential-named fields,Bearertokens, URL userinfo, and credential-named query parameters such asapi_key,token,key, andsig. The key-name list no longer coversemail,phone,contact,userAgent,mirror, orbaseUrl, which named upstream record fields as often as operator configuration.
v0.2.1
Fixed
- YouTube caption fetches now require the provider-selected track URL to be HTTPS, free of embedded credentials, and hosted under
youtube.com,youtube-nocookie.com, orgooglevideo.com. The player API response chooses the URL for the second request, so an attacker-influenced or compromised response could previously aim that request at any origin the process could reach, including cloud instance metadata.
xnews LangGraph 0.1.0
Added
- Ten parameterized xnews capability tools with discriminated operation schemas and no approval middleware.
- Model-facing tool schemas are projected into the one JSON Schema shape OpenAI, Anthropic, and Gemini all accept, verified live against all three. A root-level union is not portable: OpenAI rejects any root that is not
type: "object", Anthropic rejectsanyOfat the root of a tool schema, and Gemini rejects the combined decoding-state count of the bound tool set, so seven of the ten seams were unusable on OpenAI models and the analyst could not start on Gemini.projectToolSchemaflattens each discriminatedoperationunion into one closed object, restates in each property's description which operations require or accept it, inlines internal pointers such as#/anyOf/0/properties/minSeveritythat flattening would dangle, and omits the five bounded-repetition keywords (pattern,minLength,maxLength,minItems,maxItems) that exhaust Gemini's budget; enums, numeric ranges, and formats are kept. The projection is model guidance only — the Zod schemas remain the runtime contract and still enforce every omitted bound — and itsreconciledrops properties belonging to other operations of the same union, because a model filling the superset it was shown is not making an error the schema told it to avoid. Properties no operation declares survive and are still rejected. - Resolution and download are separate acts.
resolvereturns provider candidates for host review, and the host must bind an approvedWorkFileunderworkFilesbeforedownload_filewill run. No operation resolves a work and follows a provider-selected URL in one step, so the model cannot reach an origin no host approved. YouTube caption discovery likewise follows only HTTPS caption URLs on YouTube- and Google-owned origins. - Provider-agnostic
createXnewsAnalystbuilt on the current LangChaincreateAgentAPI. It infers its structured result type from the suppliedresultSchemaacross both supported Zod majors, so a caller-provided schema yields a typedstructuredResponserather than the default union;XnewsAnalystContextSchemaLikeandXnewsAnalystResultSchemaLikeare exported for callers that wrap the factory. The analyst advertises the projected result schema and parses the model's arguments with the result schema itself, because LangChain'sToolStrategy.parseonly JSON-Schema-validates and returns those arguments unchanged: without this, the result schema's redaction never ran, and the agent copies that value intostructuredResponse, aToolMessage, and a closingAIMessagethat a checkpointer persists. A rejected result still uses LangChain's built-in retry path. - Finite checkpoint-resumable news, data, event, and realtime-ASR nodes. ASR collection is bounded in work and in time:
maxEventsPerStep(4,000 by default, hard-capped at 10,000) bounds per-step events separately from themaxEventsretention bound, andcontext.timeoutMsacts as an invocation deadline (30 seconds by default, capped at two minutes) raced against providers that ignore abort signals. A step that overflows or times out throws without consuming its queued chunks, so a resumed checkpoint replays them; a stream ending exactly at the cap omitted nothing and is reported as complete. - Bounded deterministic model digests, host-only artifacts, binary caps, hashing, truncation records, and operator PII/secret redaction. Node updates redact by key name as well as by known secret value, so a key such as
authorization,cookie,email, orphonebecomes[REDACTED]at every depth and a provider payload cannot carry operator PII or credentials into checkpointed state. - Runtime context guards reject a malformed
WorkRecordorWorkFileat the boundary: author and warning arrays must hold strings, provenance entries must carry a provider and URL, identity confidence must be a finite value in[0, 1], and availability must be one of the known states. - Public Zod 3.25.76 and Zod 4.2.0 compatible schemas, stable TypeScript types, and exhaustive capability registries.
- Exact-floor packaged-install smoke coverage for both supported Zod majors.
v0.2.0
Breaking
sec.govrequests now fail closed with aconfigerror unlesssecUserAgentoruserAgentis set. SEC's fair-access policy requires a declared contact; the oldcontact@example.comdefault impersonated one.- MSRB EMMA requests now require explicit
msrbAcceptTermsOfUse: true. Accepting EMMA's Terms of Use is now the caller's recorded act. - Transport failures now throw typed
XnewsFetchErrorvalues with a machine-readablecode(config | network | http_status | timeout | aborted). Provider warnings and errors include a credential- and sensitive-query-redacted effective URL. - Transport defaults now fail closed instead of following whatever a host asks for: a response body is capped at a streamed 32 MiB (raise it with
SourceFetchOptions.maxResponseBytes, as file downloads do), and a redirect is refused when it downgrades to HTTP, points at a non-public literal address, or would forward credentials, a body, or caller headers cross-origin (allowCrossOriginRedirectsopts back in). A caller that relied on the previous permissive behavior must now say so explicitly.
Added
- Added
./catalog,./parsers, and./asrsubpath exports.@xbbg/xnews/catalogis structurally network-free: its import graph never reaches the fetch layer. - Added
parsePublishedAtandPUBLISHED_AT_PARSER_VERSION. RSS/Atom and provider-native Finviz, GDELT, and EMMA dates now use one versioned derivation; invalid explicit dates fail closed, missing zones or offsets are read as UTC, and unknown formats are taggedengine. - Added
ProviderResult.undatedExcludedto report items dropped by asinceoruntilwindow because they lack a parseable date. - Added
ProviderError.codeandSourceFetchOptions.redirect;"follow"defaults to at most ten policy-checked hops while the injected fetch receives"manual"for each hop. FIXED_FEEDSentries now carrysuggestedMinPollSeconds; newPROVIDER_POLICIESrecords capture per-provider operational facts, including SEC's 10 requests/second limit and declared-user-agent requirement and EMMA's terms; newNEWS_ITEM_ID_SCHEME_VERSIONdocuments theprovider|guid-or-link|titleitem ID derivation.bun run release <patch|minor|major|X.Y.Z>cuts a release: it verifies the checkout is clean and synced, runs the quality and packaged-install gates, bumps the manifest, promotes[Unreleased]to a dated section with fresh compare links, commits, and writes an annotated tag whose message is the release notes.--dry-runvalidates without changing anything.npm-publish.ymlnow cuts the GitHub release from the matchingCHANGELOG.mdsection, so the tag, the npm tarball, and the GitHub release notes cannot drift apart.- Added federal bank-regulator announcement feeds as fixed providers: FFIEC (
ffiec), FDIC press releases and board notices (fdic), OCC news releases and bulletins (occ), and the CFPB newsroom (cfpb). Like other fixed feeds they are fetched whole, filtered locally against the subject, and marked as press releases. - Added a structured-data lane beside the news lane:
DataSourcebinds a scheduled data publisher's dataset to its transport,fetchDataReleasewraps any source in the news lane's non-throwing status taxonomy, andcreateDataReleaseWatcherpolls until a release with a newasOfappears, deduplicating consecutive identical failures. NewNewsItem.kind: "data"marks items bridged from data releases. - Added an active-events lane for continuously changing alert sets:
EventSource,
fetchEventSnapshot,fetchEventsAcross, and the id-deduplicating
createEventWatcher. Built-in event sources cover NWS alerts, NHC storms,
GDACS disasters, USGS volcanoes, NOAA tsunami messages, GloFAS basin
outlooks, raw GDELT v2 events, FAA airport status, Safecast measurements, and
SondeHub radiosondes. - Added live markets and federal-money adapters: keyless Yahoo quotes/OHLCV and
common futures symbols; normalized Kalshi, Polymarket, and Manifold YES
probabilities; USAspending contract awards; Grants.gov opportunities; and
locally filtered OFAC sanctions actions. - Added macro, climate, energy, cyber, attention, public-health, and
humanitarian data sources: World Bank indicators, NOAA ONI and CO₂, US
Drought Monitor, NASA GISTEMP, GB carbon intensity/generation, CAISO fuel
mix, CISA KEV, IODA outages, OONI censorship anomalies, Wikipedia daily
attention, the 13,269-row historical US Congress edits archive (House/Senate
attribution from the archive's own ranges), and a public RecentChanges
adapter that keeps direct congressional-IP attribution separate from
unattributed Congress-topic relevance, plus CDC wastewater, UNHCR
displacement, WFP HungerMap, and WHO
outbreak notices. WFP has withdrawn anonymous HungerMap access, so its source
requires a caller-suppliedapiKeyand isdisabledwithout one. - Added geospatial current-state APIs for NYC, London TfL, Delaware, and New
Zealand traffic cameras plus DeepStateMap territory polygons, and a
smoke:worldlive gate covering the complete added source surface. - Added CFTC Commitments of Traders as the first data provider (
fetchCotReport,cotDataSource,parseCotRows,cotReleaseToNewsItems) over CFTC's free, keyless Socrata API: all seven datasets (legacy, disaggregated, and TFF in futures-only and combined variants, plus the CIT supplemental), rows typed per family with per-category positions and week-over-week changes, market presets (COT_MARKETS) with alias and historical-code resolution, network-free URL builders and column maps in@xbbg/xnews/catalog, acftc-cotprovider policy documenting Socrata throttling and the Friday 15:30 ET release cadence, and asmoke:cotlive gate. - Added FFIEC CDR bulk data as the second data provider (
fetchFfiecCallReport,ffiecCallDataSource,downloadFfiecBulkData,ffiecReleaseToNewsItems): quarterly Call Report bulk archives fetched by driving the CDR page's stateful ASP.NET postback chain (session cookies plus__VIEWSTATEthreading), a dependency-free ZIP reader over the runtime'sDecompressionStream, and pure bundle parsers for single-period call reports, the four-period subset, and UBPR ratios/ranks/stats TSVs (parseFfiecCallBundle,parseFfiecFourPeriodBundle,parseFfiecUbprBundle). All six CDR bulk products are downloadable in their TSV/XBRL formats; network-free form builders, product registry, and period helpers ship in@xbbg/xnews/catalog, and anffiec-cdrprovider policy records the session-cookie and archive-size facts. - Added
DataFetchOptions.ifNewerThan, a skip hint the release watcher now passes with the last seenasOfso heavy sources (FFIEC's ~6 MB archives) can answer "nothing new" from a cheap page probe instead of re-downloading;DataRelease.updatedAtcarries the publisher's revision stamp (FFIEC's "Call Updated") beside the reporting-periodasOf. - Added DTCC swap dissemination as the third data provider (
fetchDtccSliceCatalog,fetchDtccSliceEvents,fetchDtccCumulativeEvents,dtccSliceDataSource,dtccCumulativeDataSource,dtccReleaseToNewsItems) over DTCC's free, keyless Public Price Dissemination: real-time intraday slices and cumulative end-of-day files for every CFTC and SEC asset class (credits, rates, equities, forex, commodities), trade rows normalized to typed identity/lifecycle/price fields with the full 100+ column row kept verbatim inraw, pure parsers (parseDtccSliceCatalog,parseDtccTradeCsv,parseDtccTradeZip) in@xbbg/xnews/parsers, and network-free URL builders plus the slice file-name parser in@xbbg/xnews/catalog. - Added sequenced releases to the data lane for publishers that emit many releases per date:
DataRelease.sequenceorders releases within a day (DTCC slice IDs),DataFetchOptions.afterSequencerequests the earliest unseen release, andcreateDataReleaseWatchernow drains sequenced backlogs in order without sleeping between polls, withsinceSequencefor gap-free restarts. - The dependency-free ZIP reader and the RFC 4180 CSV reader are shared infrastructure:
readZipEntries(labeled errors, multi-disk rejection, ZIP64 per-entry sizes) backs FFIEC bundles, DTCC archives, EPUB, and CBZ, andparseCsvRecords/parseCsvTablehandle quoted fields, escaped quotes, and embedded newlines for DTCC trade files. Both ship from@xbbg/xnews/parsersand the root export alongsideZipEntryandMAX_ZIP_UNCOMPRESSED_BYTES. - Every decode is bounded, because DEFLATE expands by up to ~1032:1 and a payload that cleared the transport's byte ceiling can still exhaust memory. A ZIP entry must inflate to exactly the size its central directory declares, an entry declaring more than the archive's 512 MiB budget is refused before any decompression, and a PDF stream past 64 MiB is recorded as a per-object warning rather than materialized. CSV text that ends inside a quoted field throws instead of returning a shortened final record that would read as data.
- Added raw governed transport (
fetchRaw,postForm) beneath the fetch layer: byte-preserving responses with content type, disposition, and observedSet-Cookievalues, sharingfetchText's timeout, redirect, policy-header, and error semantics. - Added the
hf-transcriptsprovider: full earnings-call transcripts (~685 US large-cap issuers, 2005 onward) fetched keylessly from the Hugging Face datasets-server over the MIT-licensedkurry/sp500_earnings_transcriptssnapshot.fetchEarningsCallTranscriptsreturns typed transcripts with speaker-attributed turns,fetchEarningsCallTranscriptNewsbridges them into company feeds (opt-in viasources), and the generichfDatasetRowsUrl/hfDatasetFilterUrl/hfDatasetSearchUrlbuilders reach any public dataset served by datasets-server, network-free from@xbbg/xnews/catalog. - Added curated company-commentary packs:
SEC_COMMENTARY_QUERIES(EDGAR full-text queries for prepared remarks, furnished transcr...
v0.1.1
Changed
- Published by CI through npm trusted publishing (OIDC), so the tarball carries a provenance attestation.
0.1.0was published from a maintainer token and has none.
v0.1.0
Added
- Company, topic, and watchlist news feeds over 36 free, keyless public providers.
- SEC EDGAR company, current, and full-text filing sources; MSRB EMMA municipal continuing disclosures; Federal Register and CourtListener.
- 22 fixed market and wire feeds filtered locally against the subject.
- YouTube channel subscriptions, caption transcripts, and realtime audio transcription via local Moonshine or hosted OpenRouter backends.
- Injected
fetch,timeoutMs, andsignalsupport across every provider. - Apache-2.0
LICENSEand full npm release metadata (repository,homepage,bugs,keywords,author,engines,publishConfig). ./package.jsonsubpath export so tooling can resolve the manifest through the package name.npm-publish.ymlworkflow publishing through npm trusted publishing (OIDC) with provenance attestation onvX.Y.Ztags.- Packaging validation gates:
publint,@arethetypeswrong/cli, and asmoke:packaged-installtest that installs the packed tarball into a throwaway project and exercises the public entrypoint under plain Node.
Fixed
- Published bundle now links its source map.
--sourcemap=externalemitteddist/index.js.mapwithout asourceMappingURLcomment, shipping ~308 KB of unreachable data. - Declaration maps no longer point at
../src, which is not part of the published tarball;declarationMapis disabled for the build config.