@teqfw/github-flows
v0.1.1
Published
Event-driven workflows for repository-based agent execution.
Downloads
156
Maintainers
Readme
github-flows
@teqfw/github-flows is a TeqFW library that exposes a fixed GitHub webhook ingress and starts at most one isolated execution for each admitted event.
It is not a standalone application. The host application owns process lifecycle, runtime infrastructure, and startup orchestration.
If you want a ready-to-run web server application built on top of this package, see github-flows-app. That application provides the runtime wrapper around this package and may add extra services or host-level behavior.
This package is the base functionality. Wrappers can extend it with additional runtime services, deployment behavior, or other host-specific features without changing the package boundary.
Public Surface
Github_Flows_Config_Runtimefor package runtime configuration.Github_Flows_Event_Attribute_Provider_Holderfor one optional host-provided event-attribute provider.Github_Flows_Web_Serverfor starting the HTTP ingress surface.Github_Flows_Web_Handler_Webhookfor the public webhook handler surface.
Package Scope
The package:
- accepts GitHub webhook requests only on
/webhooks/github; - derives package-owned event attributes;
- may ask the host for additional event attributes for the current admitted event;
- resolves candidate profiles from
workspaceRoot/cfg/; - selects zero or one effective execution profile;
- delegates the permitted execution to the host runtime boundary.
The package does not:
- own deployment or container infrastructure;
- own process lifecycle;
- interpret task meaning;
- orchestrate multiple executions;
- maintain cross-event decision state.
Host Startup
The host should initialize the package in this order:
- create the runtime configuration DTO;
- configure
Github_Flows_Config_Runtime; - optionally register one
Github_Flows_Event_Attribute_Provider; - resolve
Github_Flows_Web_Server; - start the web server.
Runtime Configuration
The runtime configuration is flat and uses these fields:
httpHost- optional, defaults to127.0.0.1;httpPort- optional, defaults to3000;workspaceRoot- required;runtimeImage- required;webhookSecret- required.
Event Attribute Provider
The optional host-provided provider must implement:
async getAttributes({ headers, loggingContext, payload })The provider returns additional attributes for the current admitted event only. It does not return execution permission.
Release Contents
The npm package publishes:
src/ai/README.mdCHANGELOG.mdLICENSEtypes.d.ts
