Skip to content

[TypeScript SDK] examples/triggers-demo-ts end-to-end demo + skill docs #512

@santoshkumarradha

Description

@santoshkumarradha

Summary

Land a TypeScript counterpart to examples/triggers-demo/ and add a Go-flavored section to the skill reference so the agentfield-multi-reasoner-builder skill emits correct TS scaffolds.

Part of the epic #507. Depends on the public surface and dispatch path from the sibling issues.

Scope

New Files

File Purpose
examples/triggers-demo-ts/agent.ts Three deterministic reasoners — handle_payment (Stripe), handle_pr (GitHub), handle_tick (cron). Same shape and memory-write semantics as examples/triggers-demo/agent.py
examples/triggers-demo-ts/Dockerfile Build the TS agent into a container
examples/triggers-demo-ts/docker-compose.yml Control plane + TS agent + shared demo secrets — drop-in replacement for the Python demo
examples/triggers-demo-ts/README.md Quick-start + UI tour
examples/triggers-demo-ts/scripts/fire-events.sh Symlink or copy of examples/triggers-demo/scripts/fire-events.sh — same script, same signed payloads

Modified Files

File Change
skills/agentfield-multi-reasoner-builder/references/triggers.md Add a TS-flavored section showing the same trigger declarations in TS so the skill produces correct TS scaffolds

Acceptance

  • cd examples/triggers-demo-ts && docker compose up brings up control-plane + ts-agent
  • ./scripts/fire-events.sh (the existing script, unmodified) fires Stripe + GitHub events that dispatch successfully
  • Cron trigger fires every minute and produces memory writes equivalent to the Python demo
  • Trigger sheet at localhost:8080/ui/triggers shows three triggers, all enabled, with signature: valid on dispatched events
  • Run-detail Inbound section populates for runs originating from the TS agent

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-friendlyWell-documented task suitable for AI-assisted developmentarea:sdkCross-SDK (Python + Go + TS) parity workenhancementNew feature or requesthelp wantedExtra attention is neededsdk:typescriptTypeScript SDK related

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions