Skip to content

Releases

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 29 Aug 00:13

Fixed

  • bun run release now refreshes and stages bun.lock with 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's bun install --frozen-lockfile rejected 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

Choose a tag to compare

Fixed

  • Credential field names are matched by word instead of by substring. secretary, tokenCount, cookieBanner, and credentialsPolicy were treated as credentials and blanked in digests, artifacts, and node state; a name now qualifies only when its last word is a credential word, so apiKey, access_token, and clientSecret still match.
  • structuredResponse.generatedAt is 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-flash reported 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 custom systemPrompt as well as the default one.

Added

  • Digest items carry a short ref, and collectXnewsEvidence / resolveXnewsCitation turn a citation back into the record the tools returned. A news item's own id is provider|guid|title and runs past 260 characters, so a model asked to cite it truncates at the provider|guid boundary: 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.
  • ref is a reserved field derived from a namespaced identity — tool, provider, and the record's stable identifier (id, or sourceId on a WorkRecord). An event id is unique only within its provider, so an xnews_events across result carrying alert 1 from two providers would otherwise give both the same handle and resolve to whichever arrived first. A provider record carrying its own ref cannot 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 no ref, 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. citationRef takes { 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

Choose a tag to compare

Fixed

  • Runtime-secret collection no longer turns ordinary OCR settings into redaction patterns. Every nested string under context.ocr was treated as a secret, so an imageMode of "base" rewrote the word "database" in public provider text and a model of "Unlimited-OCR" would blank the model name wherever it appeared. Only ocr.apiKey, ocr.baseUrl, and values under credential-named keys inside ocr.extraBody are collected now; 0.2.1 shipped with the wider collection.
  • The @xbbg/xnews peer range tracks the shared version line and now names ^0.2.2.

xnews LangGraph 0.2.1

Choose a tag to compare

Changed

  • The companion now shares the core's version line: @xbbg/xnews-langgraph and @xbbg/xnews are released at the same version, and the @xbbg/xnews peer range is the version they ship together (^0.2.1). The jump from 0.1.0 to 0.2.1 is that alignment, not a change in scope.

Fixed

  • Redaction no longer destroys public content. redactUrl blanked every query value and any path segment over 24 mixed characters, and redactText stripped 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 inside secUserAgent), credential-named fields, Bearer tokens, URL userinfo, and credential-named query parameters such as api_key, token, key, and sig. The key-name list no longer covers email, phone, contact, userAgent, mirror, or baseUrl, which named upstream record fields as often as operator configuration.

v0.2.1

Choose a tag to compare

@m3ridian-zero m3ridian-zero released this 28 Aug 23:26

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, or googlevideo.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

Choose a tag to compare

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 rejects anyOf at 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. projectToolSchema flattens each discriminated operation union into one closed object, restates in each property's description which operations require or accept it, inlines internal pointers such as #/anyOf/0/properties/minSeverity that 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 its reconcile drops 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. resolve returns provider candidates for host review, and the host must bind an approved WorkFile under workFiles before download_file will 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 createXnewsAnalyst built on the current LangChain createAgent API. It infers its structured result type from the supplied resultSchema across both supported Zod majors, so a caller-provided schema yields a typed structuredResponse rather than the default union; XnewsAnalystContextSchemaLike and XnewsAnalystResultSchemaLike are 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's ToolStrategy.parse only JSON-Schema-validates and returns those arguments unchanged: without this, the result schema's redaction never ran, and the agent copies that value into structuredResponse, a ToolMessage, and a closing AIMessage that 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 the maxEvents retention bound, and context.timeoutMs acts 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, or phone becomes [REDACTED] at every depth and a provider payload cannot carry operator PII or credentials into checkpointed state.
  • Runtime context guards reject a malformed WorkRecord or WorkFile at 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

Choose a tag to compare

@github-actions github-actions released this 25 Aug 22:08

Breaking

  • sec.gov requests now fail closed with a config error unless secUserAgent or userAgent is set. SEC's fair-access policy requires a declared contact; the old contact@example.com default 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 XnewsFetchError values with a machine-readable code (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 (allowCrossOriginRedirects opts back in). A caller that relied on the previous permissive behavior must now say so explicitly.

Added

  • Added ./catalog, ./parsers, and ./asr subpath exports. @xbbg/xnews/catalog is structurally network-free: its import graph never reaches the fetch layer.
  • Added parsePublishedAt and PUBLISHED_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 tagged engine.
  • Added ProviderResult.undatedExcluded to report items dropped by a since or until window because they lack a parseable date.
  • Added ProviderError.code and SourceFetchOptions.redirect; "follow" defaults to at most ten policy-checked hops while the injected fetch receives "manual" for each hop.
  • FIXED_FEEDS entries now carry suggestedMinPollSeconds; new PROVIDER_POLICIES records capture per-provider operational facts, including SEC's 10 requests/second limit and declared-user-agent requirement and EMMA's terms; new NEWS_ITEM_ID_SCHEME_VERSION documents the provider|guid-or-link|title item 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-run validates without changing anything.
  • npm-publish.yml now cuts the GitHub release from the matching CHANGELOG.md section, 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: DataSource binds a scheduled data publisher's dataset to its transport, fetchDataRelease wraps any source in the news lane's non-throwing status taxonomy, and createDataReleaseWatcher polls until a release with a new asOf appears, deduplicating consecutive identical failures. New NewsItem.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-supplied apiKey and is disabled without one.
  • Added geospatial current-state APIs for NYC, London TfL, Delaware, and New
    Zealand traffic cameras plus DeepStateMap territory polygons, and a
    smoke:world live 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, a cftc-cot provider policy documenting Socrata throttling and the Friday 15:30 ET release cadence, and a smoke:cot live 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 __VIEWSTATE threading), a dependency-free ZIP reader over the runtime's DecompressionStream, 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 an ffiec-cdr provider policy records the session-cookie and archive-size facts.
  • Added DataFetchOptions.ifNewerThan, a skip hint the release watcher now passes with the last seen asOf so heavy sources (FFIEC's ~6 MB archives) can answer "nothing new" from a cheap page probe instead of re-downloading; DataRelease.updatedAt carries the publisher's revision stamp (FFIEC's "Call Updated") beside the reporting-period asOf.
  • 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 in raw, 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.sequence orders releases within a day (DTCC slice IDs), DataFetchOptions.afterSequence requests the earliest unseen release, and createDataReleaseWatcher now drains sequenced backlogs in order without sleeping between polls, with sinceSequence for 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, and parseCsvRecords/parseCsvTable handle quoted fields, escaped quotes, and embedded newlines for DTCC trade files. Both ship from @xbbg/xnews/parsers and the root export alongside ZipEntry and MAX_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 observed Set-Cookie values, sharing fetchText's timeout, redirect, policy-header, and error semantics.
  • Added the hf-transcripts provider: full earnings-call transcripts (~685 US large-cap issuers, 2005 onward) fetched keylessly from the Hugging Face datasets-server over the MIT-licensed kurry/sp500_earnings_transcripts snapshot. fetchEarningsCallTranscripts returns typed transcripts with speaker-attributed turns, fetchEarningsCallTranscriptNews bridges them into company feeds (opt-in via sources), and the generic hfDatasetRowsUrl/hfDatasetFilterUrl/hfDatasetSearchUrl builders 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...
Read more

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 28 Jul 23:42

Changed

  • Published by CI through npm trusted publishing (OIDC), so the tarball carries a provenance attestation. 0.1.0 was published from a maintainer token and has none.

v0.1.0

Choose a tag to compare

@m3ridian-zero m3ridian-zero released this 28 Jul 23:38

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, and signal support across every provider.
  • Apache-2.0 LICENSE and full npm release metadata (repository, homepage, bugs, keywords, author, engines, publishConfig).
  • ./package.json subpath export so tooling can resolve the manifest through the package name.
  • npm-publish.yml workflow publishing through npm trusted publishing (OIDC) with provenance attestation on vX.Y.Z tags.
  • Packaging validation gates: publint, @arethetypeswrong/cli, and a smoke:packaged-install test 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=external emitted dist/index.js.map without a sourceMappingURL comment, shipping ~308 KB of unreachable data.
  • Declaration maps no longer point at ../src, which is not part of the published tarball; declarationMap is disabled for the build config.