Skip to content

WaypointSDK/Waypoint-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaypointSDK

9AyKTgKpNfVQCebAPdMs5fPJA7QtyJMF7PkWjtbUpump

WaypointSDK is a TypeScript runtime kit for coordinating autonomous creator workflows.

It gives creator-agent systems a clean local execution layer: typed pipeline stages, deterministic agent handoffs, provider adapter boundaries, artifact tracking, analytics feedback, and versioned memory records. The SDK is built to make complex content operations inspectable, testable, and ready to evolve into real provider integrations.

TypeScript Node.js Vitest GitHub X

npm install
npm run waypoint -- run gaming

Why WaypointSDK

Autonomous creator systems need more than isolated model calls. They need a runtime that can answer:

  • Which agent owns each stage?
  • What typed input and output crossed the stage boundary?
  • Which artifacts were generated?
  • Which platform actions were attempted?
  • What changed in memory after the run?
  • How did analytics influence the next content decision?
  • Can every decision be inspected after execution?

WaypointSDK is the coordination layer for those questions.

Runtime Map

Creator Objective
      |
      v
WaypointSDK Runtime Coordinator
      |
      +-- Creator Agents
      |     trend discovery
      |     strategy
      |     scriptwriting
      |     media generation
      |     editing
      |     publishing
      |     community
      |     analytics
      |     optimization
      |
      +-- Provider Adapters
      |     social platforms
      |     media generation
      |     render jobs
      |
      +-- Memory Layer
      |     identity
      |     commits
      |     strategy history
      |     execution history
      |
      v
Artifacts + Analytics Feedback

What Is Included

  • Node.js + TypeScript runtime coordinator.
  • Typed staged pipeline model.
  • Specialized creator-agent classes with structured outputs.
  • Social provider adapter mocks for Instagram, TikTok, YouTube, X, Telegram, and Meta Graph.
  • Media provider mocks, including a Remotion-style renderer.
  • Local JSON persistence under data/.
  • Gitlawb-style memory abstraction with DID-style agent IDs and versioned commits.
  • CLI for running, inspecting, and cleaning sample runs.
  • Vitest coverage for runtime completion, memory commits, provider adapters, and analytics scoring.

What Is Deliberately Local

WaypointSDK ships with local deterministic adapters so runtime behavior can be tested without external accounts or secrets. The current adapters do not call real AI models, social APIs, media renderers, or Gitlawb infrastructure.

That keeps the coordination contract clear:

  • provider boundaries are explicit
  • runtime outputs are reproducible
  • no API keys are required
  • every run can be inspected from local JSON

Pipeline Stages

The sample pipelines cover an end-to-end creator workflow:

trend_discovery
  -> strategy_planning
  -> scriptwriting
  -> media_generation
  -> video_editing
  -> remotion_render
  -> platform_publish
  -> community_engagement
  -> analytics_review
  -> optimization_loop

Each stage includes an ID, type, name, assigned agent, status, schema names, and generated artifacts.

Agent Contract

Agents implement a small runtime contract:

{
  id: string;
  name: string;
  role: string;
  capabilities: string[];
  run(context, input): Promise<AgentResult>;
}

Implemented agents:

  • TrendDiscoveryAgent
  • StrategyAgent
  • ScriptwritingAgent
  • VideoGenerationAgent
  • EditingAgent
  • PublishingAgent
  • CommunityAgent
  • AnalyticsAgent
  • OptimizationAgent

Provider Adapter Contract

Social providers expose:

  • publishPost()
  • schedulePost()
  • fetchAnalytics()
  • fetchComments()
  • replyToComment()

Media providers expose composition, render, image, and voice-generation shaped methods. Local implementations return structured records that match the runtime contract.

Memory Model

GitlawbMemoryStore records local versioned memory commits:

did:gitlawb:agent:waypointsdk:trend-discovery

Commit records include:

  • id
  • repo
  • authorAgentId
  • message
  • timestamp
  • parentCommitId
  • filesChanged
  • metadata

CLI

Install dependencies:

npm install

Run the gaming sample:

npm run waypoint -- run gaming

Run the lifestyle sample:

npm run waypoint -- run lifestyle

Inspect a stored run:

npm run waypoint -- inspect <runId>

List local memory commits:

npm run waypoint -- memory

Clean local JSON records:

npm run waypoint -- clean

Data Layout

data/
  runs/              persisted PipelineRun JSON
  memory/            Gitlawb-style commit JSON
  artifacts/         generated artifact metadata JSON
  provider-actions/  social provider action JSON

Directories are created automatically by the JSON storage layer.

Development

Requirements:

  • Node.js 20 or newer
  • npm

Commands:

npm install
npm run lint
npm test
npm run waypoint -- run gaming

Test Coverage

Vitest covers:

  • full pipeline completion
  • memory commit creation and parent links
  • duplicate run ID prevention
  • structured provider responses
  • analytics scoring recommendations

Run:

npm test

Roadmap

  • Stronger zod input and output schemas per stage.
  • Runtime retry policies and resumable runs.
  • Pluggable agent registry.
  • Real provider adapter implementations behind the existing interfaces.
  • Queue-backed execution.
  • First-class artifact store.
  • Human review gates.
  • Policy checks for platform safety and brand constraints.
  • Memory backend integration behind the current contract.
  • Render job abstraction for Remotion or alternate renderers.

Security Notes

WaypointSDK stores local JSON files and does not handle secrets. Do not add real API keys to this repository. Real provider integrations should use encrypted secret storage, audit logs, permission boundaries, data retention controls, and platform policy review.

Links

License

No license has been selected yet. Add a license before publishing publicly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors