Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

flare-kernel

通用编排与执行内核。

边界文档:

  1. packages/flare-kernel/docs/KERNEL-BOUNDARY.md
  2. docs/contracts/core/agent.md
  3. packages/flare-kernel/docs/replay-snapshot-technical-spec.md

职责:

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

Day 2 最小骨架

目录:

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

最小接口:

  1. POST /kernel/run
  2. POST /kernel/stream
  3. GET /kernel/health
  4. POST /kernel/knowledge/ingest
  5. POST /kernel/knowledge/search

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

品牌注入(可选)

  1. kernel 支持从 domain-pack 读取品牌配置: branding/instance-branding.json
  2. 读取方式:
    • 优先通过环境变量 FLARE_DOMAIN_PACK_ROOT 显式指定
    • 本地仓库运行时可回退到仓库根目录下的 domain-packs/
  3. 注入位置:
    • POST /kernel/run 响应 result.instance_profile
    • POST /kernel/stream SSE 事件 instance_profile

说明:品牌注入通过外部 domain-pack 配置,core 不写死产品名、logo、标签。

本地启动(示例):

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

环境变量(真实链路):

  1. APIPRO_API_KEY(必填,真实 APIPro 调用)
  2. LLM_PROVIDER_BACKEND(当前本地模板为 apipro)
  3. FLARE_POSTGRES_DSN
  4. FLARE_REDIS_URL
  5. FLARE_QDRANT_URL

健康检查会输出依赖状态:

  1. llm_ready
  2. postgres_ready
  3. redis_ready
  4. qdrant_ready

模式决策优先级(/kernel/run 与 /kernel/stream):

  1. intent_override(外部业务侧注入)
  2. 消息意图识别(内置关键词)
  3. manual_mode
  4. current_mode
  5. fallback(intent/default)

安装与依赖

从 PyPI 安装:

pip install flare-kernel

启用可选的 RapidOCR 支持:

pip install "flare-kernel[ocr]"

本包要求 Python 3.11 或更高版本,并依赖 flare-engines >=1.0.0,<2.0.0。完整第三方依赖及可选依赖以 pyproject.toml 为准。

仓库内本地安装仍可使用 pip install packages/flare-kernel;发布元数据位于 packages/flare-kernel/pyproject.toml。

Metadata

Release files for flare-kernel 1.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for flare-kernel 1.1.23
File Size Uploaded Provenance
flare_kernel-1.1.23.tar.gz 3.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for flare-kernel 1.1.23
File Interpreter ABI Platform
flare_kernel-1.1.23-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 MB

Release files / flare_kernel-1.1.23.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL flare_kernel-1.1.23.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
3f03037644a63675416eb7d7eb91efcf695902f1fb526bbb056b8e2b606d5121
BLAKE2b-256 checksum
How to use checksums
a11ca5b23702bf3b7276817f96a2793ed9360a647fd66d6a32e50b7ceefdc0a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / flare_kernel-1.1.23-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL flare_kernel-1.1.23-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
54a2cb8aae84d3ed28f8b1113eacf7f91c577c38bf4e00e5420f5702315a70c3
BLAKE2b-256 checksum
How to use checksums
49fcbf5105eb79dbe41b4a1f15347582f03ef245a25605ebb1b9b2db907618f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for flare-kernel 1.1.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 1.1.16 2 files With provenance
  • Added 1.1.23 2 files Without provenance

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.23 This release

2 release files Loss of provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page