Skip to main content

FLARE kernel runtime package

Project description

flare-kernel

通用编排与执行内核。

职责:

  1. Decision 路由与策略入口。
  2. Execution 流程推进与状态管理。
  3. Runtime(含重试、超时、追踪)。
  4. 加载 domain pack 并执行。

Day 2 最小骨架

目录:

  1. src/flare_kernel/router:接口路由
  2. src/flare_kernel/runtimetrace_id 与基础日志
  3. src/flare_kernel/contracts:请求/响应契约

最小接口:

  1. POST /kernel/run
  2. POST /kernel/stream
  3. GET /kernel/health

kernel 现已输出 mode/context 运行时占位事件与字段。

Instance 注入(品牌信息)

  1. kernel 支持从 instance 的 domain-pack 读取品牌配置: branding/instance-branding.json
  2. 读取优先级:
    • 环境变量 FLARE_DOMAIN_PACK_ROOT
    • 自动探测 apps/<instance_id>/domain-pack
  3. 注入位置:
    • POST /kernel/run 响应 result.instance_profile
    • POST /kernel/stream SSE 事件 instance_profile

说明:品牌注入仅在 instance 层配置,core 不写死产品名、logo、标签。

本地启动(示例):

uvicorn flare_kernel.main:app --app-dir packages/flare-kernel/src --host 0.0.0.0 --port 8002

最小发布说明

  1. 当前包版本:0.1.0
  2. 发布元数据:packages/flare-kernel/pyproject.toml
  3. 本地构建:python -m build
  4. 本地安装:pip install packages/flare-kernel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flare_kernel-0.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flare_kernel-0.1.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file flare_kernel-0.1.0.tar.gz.

File metadata

  • Download URL: flare_kernel-0.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flare_kernel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19b4bb8d664a8ce399b4a40ab4a3717333d4adf593c500d526b5b9a26ae5f799
MD5 4d9b152a0cbb69ecd466b3d9d21011f3
BLAKE2b-256 b381809f2548c5989f43ab61da991245957a74b57351327e6e200f7364d58848

See more details on using hashes here.

File details

Details for the file flare_kernel-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: flare_kernel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for flare_kernel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb9b37c2b377530683230a453ee834f5850cd040cc1361f8e10c1db90278e2e0
MD5 fa92dd24c9412acc839be423d18d949f
BLAKE2b-256 ff514daeed9422d904be5b60d385f509e7a7cb5f5934830f9d3044acc3da338f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page