Skip to content

feat: export kernel/provider-factory subpath #43

@stackbilt-admin

Description

@stackbilt-admin

Context

buildLLMProviderFactory lives at src/kernel/provider-factory.ts but is not in the package exports map. Consumers that want to use the factory directly (without going through buildLLMProviderFactory — e.g., the daemon's standalone scheduled tasks) currently can't import it cleanly.

Ask

Add to exports in web/package.json:

"./kernel/provider-factory": "./src/kernel/provider-factory.ts"

This lets consumers do:

import { buildLLMProviderFactory } from '@stackbilt/aegis-core/kernel/provider-factory';

Instead of re-constructing the factory from createLLMProviderFactory with duplicated EdgeEnv field wiring.

Why now

Phase D (v0.6.3) migrated all core executors to the factory. The daemon's synthesis.ts was migrated to use createLLMProviderFactory directly from @stackbilt/llm-providers as a workaround. Once this export is added, that call site can be simplified to use buildLLMProviderFactory(env).

Related

  • v0.6.3 Phase D migration
  • aegis daemon web/src/kernel/memory/synthesis.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions