Skip to content

Add ContextWithMetadata to IntentResult - #2020

Open
julianna-ciq wants to merge 1 commit into
mainfrom
agent/add-context-with-metadata-to-intent-result
Open

Add ContextWithMetadata to IntentResult#2020
julianna-ciq wants to merge 1 commit into
mainfrom
agent/add-context-with-metadata-to-intent-result

Conversation

@julianna-ciq

Copy link
Copy Markdown
Contributor

What changed

  • Added ContextWithMetadata to the TypeScript IntentResult union.
  • Updated the matching API reference documentation.

Why

The IntentResult documentation explains that intent handlers may return ContextWithMetadata, but the documented and exported TypeScript union omitted it. This made the type declaration inconsistent with the supported handler result described immediately below it.

Impact

TypeScript consumers can now use ContextWithMetadata as an IntentResult, and the published API reference accurately reflects the union.

Validation

  • npm test --workspace packages/fdc3-standard — 5 test files passed, 14 tests passed.
  • git diff --check

@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for fdc3 failed. Why did it fail? →

Name Link
🔨 Latest commit 6e7b3c1
🔍 Latest deploy log https://app.netlify.com/projects/fdc3/deploys/6a622d4bd735ba000816ed4b

@julianna-ciq
julianna-ciq marked this pull request as ready for review July 23, 2026 15:06
@julianna-ciq
julianna-ciq requested a review from a team as a code owner July 23, 2026 15:06

@kriswest kriswest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently fixing this causing an example app to blow up as its expecting a type property on a non-void result (both channel and context have type). So a legitimate build fail apparently.

See the netlify build log: server-apps/security-demo-app1/src/app1.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants