Skip to content

Releases: astack-tech/astack

@astack-tech/core v0.2.0-beta.1 - Type-Safe Port System

23 Jan 08:13

Choose a tag to compare

🎯 Highlights

Introduced a type-safe Port system for component communication, replacing the previous PortMapper with better TypeScript integration and developer experience.

✨ What's New

Type-Safe Port System

  • New Port type - Strongly typed port mapper with full ReactiveX integration

    export type Port = (portName: string) => {
      receive: <T = unknown>(callback: (data: T) => void) => Subscription;
      send: (data: unknown) => void;
      $: Subject<unknown>;
    };
  • Replaced PortMapper naming with more intuitive Port type

  • All _transform methods now use typed Port parameters for better type inference

Pipeline Refactoring

  • Refactored Pipeline implementation with improved type safety and maintainability
  • Enhanced error handling and data flow management
  • 100% backward compatible - no breaking changes to existing APIs

🔧 Code Quality Improvements

  • ✅ Removed all ESLint suppressions across the package
  • ✅ Improved TypeScript type safety (replaced any with unknown where appropriate)
  • ✅ Converted all code comments from Chinese to English for better international collaboration
  • ✅ Zero technical debt in code quality checks

📦 Installation

Install latest beta version

npm install @astack-tech/core@beta

Or install specific version

npm install @astack-tech/core@0.2.0-beta.1

🔄 Migration Guide

No migration needed! This release is 100% backward compatible with previous versions.

The new Port type is automatically available when you import from @astack-tech/core/component:

import type { Port } from '@astack-tech/core';

class MyComponent extends Component {
  _transform($i: Port, $o: Port) {
    $i('in').receive((data) => {
      // Your logic here
      $o('out').send(result);
    });
  }
}

📝 Full Changelog

See https://github.com/astack-tech/astack/blob/dev/packages/core/CHANGELOG.md for complete details.

🙏 Acknowledgments

This release strengthens the foundation for building composable AI applications with improved type safety and developer experience.


⚠️ Note: This is a beta release. For production use, please wait for the stable 0.2.0 release.

🎉 AStack v0.1.1-beta.0

02 Jun 18:12

Choose a tag to compare

Pre-release

AStack v0.1.1-beta.0

We're excited to announce the first beta release of AStack, a powerful composable framework for building AI applications.

Key Features

Component-Based Architecture

  • "Everything is a component" design philosophy
  • All components inherit from the Component base class
  • Input/output port system for structured data flow
  • Semantic port naming for intuitive interfaces

Dual Operation Modes

  • Standalone Mode: Direct data processing via run() method
  • Pipeline Mode: Stream processing via the _transform() method

Advanced Computation Model

  • Operator composition for functional programming paradigms
  • Workflow orchestration with branching and merging
  • Reactive data streams with event-driven processing
  • Inter-agent event communication

Zero-Adaptation Design

  • Direct compatibility with model providers and tools
  • No intermediate adaptation layers required
  • Consistent API across all components

More: https://astack.tech