Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions .github/workflows/publish-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
id-token: write

concurrency:
group: firexcore-agent-orbs-npmjs-v0.2.0
group: firexcore-agent-orbs-npmjs-v0.3.0
cancel-in-progress: false

jobs:
Expand All @@ -33,31 +33,29 @@ jobs:
node --version
npm --version
npm config get registry
node -e "const p=require('./package.json'); if(p.name!=='@firexcore/agent-orbs'||p.version!=='0.2.0'||p.private===true)process.exit(1)"
node -e "const p=require('./package.json'); if(p.name!=='@firexcore/agent-orbs'||p.version!=='0.3.0'||p.private===true)process.exit(1)"
node -e "const p=require('./package.json');if(p.repository?.url!=='https://github.com/FireXCore/agent-orbs.git')process.exit(1)"
- name: Build and test
run: |
npm install
npm run check
node --input-type=module -e "const m=await import('./dist/index.js');for(const n of ['AgentOrb','InteractiveOrb','MonoLatticeOrb','ThinkingOrb'])if(typeof m[n]!=='function')throw Error(n)"
node -e "const m=require('./dist/index.cjs');for(const n of ['AgentOrb','InteractiveOrb','MonoLatticeOrb','ThinkingOrb'])if(typeof m[n]!=='function')throw Error(n)"
node --input-type=module -e "const m=await import('./dist/index.js');for(const n of ['AgentOrb','InteractiveOrb','MonoLatticeOrb','ThinkingOrb'])if(typeof m[n]!=='function')throw Error(n);if(!m.ORB_STATES.includes('waiting')||m.WAITING_VARIANTS.join(',')!=='fold,aperture,wave')throw Error('Missing Waiting exports')"
node -e "const m=require('./dist/index.cjs');for(const n of ['AgentOrb','InteractiveOrb','MonoLatticeOrb','ThinkingOrb'])if(typeof m[n]!=='function')throw Error(n);if(!m.ORB_STATES.includes('waiting')||m.WAITING_VARIANTS.join(',')!=='fold,aperture,wave')throw Error('Missing Waiting exports')"
test -f third_party/thinking-orbs/LICENSE
test -f third_party/thinking-orbs/NOTICE.md
npm pack --dry-run --json > /tmp/agent-orbs-npm-pack.json
node -e "const p=require('/tmp/agent-orbs-npm-pack.json')[0];for(const f of ['dist/index.js','dist/index.d.ts','third_party/thinking-orbs/LICENSE','third_party/thinking-orbs/NOTICE.md']) if(!p.files.some(x=>x.path===f)) throw Error('Missing '+f)"
- name: Publish public package v0.2.0 on npmjs.org
# Temporary workaround for Sigstore Rekor TLOG_CREATE_ENTRY_ERROR (409):
# the equivalent provenance entry already exists but package publish failed.
# Keep registry verification; re-enable provenance for a future release.
node -e "const p=require('/tmp/agent-orbs-npm-pack.json')[0];for(const f of ['dist/index.js','dist/index.d.ts','preview/waiting/fold.webp','preview/waiting/aperture.webp','preview/waiting/wave.webp','third_party/thinking-orbs/LICENSE','third_party/thinking-orbs/NOTICE.md']) if(!p.files.some(x=>x.path===f)) throw Error('Missing '+f)"
- name: Publish public package v0.3.0 on npmjs.org
# Keep the existing publish configuration while using the same registry verification.
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: 'false'
run: |
set -euo pipefail
if npm view '@firexcore/agent-orbs@0.2.0' version --registry=https://registry.npmjs.org/ >/dev/null 2>&1; then
actual="$(npm view '@firexcore/agent-orbs@0.2.0' repository.url --registry=https://registry.npmjs.org/)"
if npm view '@firexcore/agent-orbs@0.3.0' version --registry=https://registry.npmjs.org/ >/dev/null 2>&1; then
actual="$(npm view '@firexcore/agent-orbs@0.3.0' repository.url --registry=https://registry.npmjs.org/)"
test "$actual" = 'git+https://github.com/FireXCore/agent-orbs.git' -o "$actual" = 'https://github.com/FireXCore/agent-orbs.git'
echo 'Version 0.2.0 already exists on npmjs.org with correct repository source'
echo 'Version 0.3.0 already exists on npmjs.org with correct repository source'
else
if test -z "$NODE_AUTH_TOKEN"; then
echo 'No NPM_TOKEN secret: attempting npm trusted publishing via GitHub OIDC'
Expand All @@ -68,14 +66,14 @@ jobs:
- name: Confirm public registry metadata
run: |
set -euo pipefail
url='https://registry.npmjs.org/%40firexcore%2Fagent-orbs/0.2.0'
url='https://registry.npmjs.org/%40firexcore%2Fagent-orbs/0.3.0'
# npm may return success while its public metadata is still processing.
for attempt in $(seq 1 36); do
http="$(curl --silent --show-error --location --max-time 12 --output /tmp/agent-orbs-public.json --write-out '%{http_code}' "$url" || true)"
if [[ "$http" == '200' ]] && node - <<'NODE'
const p=require('/tmp/agent-orbs-public.json');
const repo=typeof p.repository==='string'?p.repository:p.repository?.url||'';
if(p.name!=='@firexcore/agent-orbs'||p.version!=='0.2.0'||!p.dist?.tarball?.startsWith('https://registry.npmjs.org/')||!repo.includes('github.com/FireXCore/agent-orbs'))process.exit(1);
if(p.name!=='@firexcore/agent-orbs'||p.version!=='0.3.0'||!p.dist?.tarball?.startsWith('https://registry.npmjs.org/')||!repo.includes('github.com/FireXCore/agent-orbs'))process.exit(1);
console.log('PUBLIC_NPMJS_VERIFIED',p.name,p.version,p.dist.tarball);
NODE
then
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v0.3.0 — Waiting orb designs (2026-11-17)

- Adds `state="waiting"` with `fold`, `aperture`, and `wave` designs for `AgentOrb` and `AgentOrbLabel`.
- Includes the three concept images in the package and displays live regular and 24 px previews in the galleries.
- Covers compact and full-size geometry, distinct variants and repeatable motion cycles.

## v0.2.0 — Interactive contour and Mono Lattice package release (2026-11-03)

- Preserves the nine independently authored FireXCore Canvas 2D motion states, APIs and appearance.
Expand Down
48 changes: 35 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# FireXCore Agent Orbs

[![Live Demo](https://img.shields.io/badge/Live_Demo-Vercel-121212?logo=vercel)](https://agent-orbs-demo.vercel.app/) [![MIT License](https://img.shields.io/badge/License-MIT-blue)](LICENSE) [![Release v0.2.0](https://img.shields.io/badge/Release-v0.2.0-0a7)](https://github.com/FireXCore/agent-orbs/releases/tag/v0.2.0) [![CI](https://github.com/FireXCore/agent-orbs/actions/workflows/ci.yml/badge.svg)](https://github.com/FireXCore/agent-orbs/actions/workflows/ci.yml)
[![Live Demo](https://img.shields.io/badge/Live_Demo-Vercel-121212?logo=vercel)](https://agent-orbs-demo.vercel.app/) [![MIT License](https://img.shields.io/badge/License-MIT-blue)](LICENSE) [![npm](https://img.shields.io/npm/v/@firexcore/agent-orbs)](https://www.npmjs.com/package/@firexcore/agent-orbs) [![CI](https://github.com/FireXCore/agent-orbs/actions/workflows/ci.yml/badge.svg)](https://github.com/FireXCore/agent-orbs/actions/workflows/ci.yml)

**[Interactive live demo](https://agent-orbs-demo.vercel.app/)** · [Release v0.2.0](https://github.com/FireXCore/agent-orbs/releases/tag/v0.2.0) · [Source repository](https://github.com/FireXCore/agent-orbs) · [Changelog](CHANGELOG.md)
**[Interactive live demo](https://agent-orbs-demo.vercel.app/)** · [npm package](https://www.npmjs.com/package/@firexcore/agent-orbs) · [Source repository](https://github.com/FireXCore/agent-orbs) · [Changelog](CHANGELOG.md)


FireXCore provides nine independently authored procedural orb states for React + TypeScript. Version 0.2 additionally includes an **optional, MIT-licensed adaptation** of the Schoolees thinking-orbs engine with a separate renderer. The original nine-state implementation remains independent and unchanged. The named `MonoLatticeOrb` component uses the heritage engine's original grayscale classic renderer.
FireXCore provides ten procedural orb states for React + TypeScript. Version 0.2 additionally includes an **optional, MIT-licensed adaptation** of the Schoolees thinking-orbs engine with a separate renderer. The original engine also includes a dedicated Waiting state in three designs. The named `MonoLatticeOrb` component uses the heritage engine's original grayscale classic renderer.

<p align="center">
<a href="https://agent-orbs-demo.vercel.app/">
Expand Down Expand Up @@ -34,15 +34,15 @@ The GIF is rendered from the original `buildScene` implementation, not a marketi
**Live controls:** Original, Contour and Mono Lattice visual families across two engines, dark/light theme, 0.5–2× speed, classic/contour treatment, pause/resume, pointer distortion and copyable integration snippets.

<details>
<summary>View the compact original nine-state contact sheet</summary>
<summary>View the original engine contact sheet</summary>

![Original procedural animation states](assets/gallery.svg)

</details>

## Features

- Nine states: `working`, `searching`, `solving`, `listening`, `connecting`, `weaving`, `composing`, `breathing`, `shaping`.
- Ten original states: `working`, `searching`, `solving`, `listening`, `connecting`, `weaving`, `composing`, `breathing`, `shaping`, `waiting`.
- True procedural 3D coordinate rotation and depth sorting, painted on a **Canvas 2D** surface (no WebGL, video, GIF or animation dependency).
- Small (24 px) and regular (76 px) geometry presets; arbitrary custom diameter (12–256 px).
- Single shared animation clock and per-instance offscreen pause.
Expand All @@ -52,6 +52,27 @@ The GIF is rendered from the original `buildScene` implementation, not a marketi
- Accessible `AgentOrbLabel` combines a compact animation with `role="status"` text.
- React 18+ peer dependency, SSR-compatible static import, ESM/CJS/types build, strict TypeScript.

## Waiting for a response (v0.3.0)

| Particle Fold | Particle Aperture | Inner Wave |
| --- | --- | --- |
| ![Particle Fold concept](preview/waiting/fold.webp) | ![Particle Aperture concept](preview/waiting/aperture.webp) | ![Inner Wave concept](preview/waiting/wave.webp) |
| A light travels along a folded particle surface. | A four-lobed volume gently opens and relaxes. | A moving wave lights up the inside of a stable particle volume. |

The stills above are design references. The [live Waiting gallery](https://agent-orbs-demo.vercel.app/#waiting) shows procedural 3D point geometry drawn on Canvas 2D at 156px and 24px. Each animation loops without reporting completion or elapsed time.

```tsx
import { AgentOrb, AgentOrbLabel } from '@firexcore/agent-orbs';

<AgentOrb state="waiting" waitingVariant="fold" />
<AgentOrb state="waiting" waitingVariant="aperture" size={96} />
<AgentOrbLabel state="waiting" waitingVariant="wave">
Waiting for a response…
</AgentOrbLabel>
```

`waitingVariant` defaults to `fold` and applies only to `state="waiting"`.

## Contour and interactive family (v0.2.0)

This opt-in engine adds features absent from the original FireXCore engine: `idle` and `responding` states, `classic` and `contour` modes for nine states, native `32/64/96/128px` presets, pointer/touch distortion with spring-back, an imperative DOM controller and a `<thinking-orb>` custom element. The original `AgentOrb` API and animation states are preserved.
Expand Down Expand Up @@ -132,7 +153,7 @@ Open http://127.0.0.1:5174/preview/. The preview is generated from the exact sam

## Use in RMS (or any React application)

To install from GitHub Packages after configuring authenticated access, use `@firexcore/agent-orbs@0.2.0`. For local development, install from a sibling folder:
Install the current package with `npm install @firexcore/agent-orbs@0.3.0`. For local development, install from a sibling folder:

```bash
npm install ../agent-orbs
Expand All @@ -158,15 +179,16 @@ Make the selected `state` reflect an actual action: for example, only display `l
## Architecture

- `src/scenes.ts` — pure, independently authored mathematical scenes, no DOM or React.
- `src/waiting.ts` — procedural particle geometry for the three Waiting designs.
- `src/geometry.ts` — spatial transforms, distributions and interpolation.
- `src/render.ts` — depth-sorted Canvas 2D painter.
- `src/clock.ts` — shared RAF scheduler.
- `src/appearance.ts` — theme and reduced-motion observability.
- `src/AgentOrb.tsx` — React/Canvas bridge and offscreen lifecycle.
- `src/AgentOrbLabel.tsx` — accessible status + small orb.
- `demo/` — responsive gallery with 9 large/small examples and controls.
- `demo/` — responsive gallery with large/small examples and controls.
- `tests/` — geometry, finite-frame, determinism and state coverage.
- `scripts/build-gallery-svg.mjs` — reproducible vector contact sheet of all nine states.
- `scripts/build-gallery-svg.mjs` — reproducible vector contact sheet of the original engine.

## Deployment

Expand All @@ -176,25 +198,25 @@ Make the selected `state` reflect an actual action: for example, only display `l

## Releases

- **Latest release:** [v0.2.0](https://github.com/FireXCore/agent-orbs/releases/tag/v0.2.0)
- **GitHub release for v0.2.0:** [v0.2.0](https://github.com/FireXCore/agent-orbs/releases/tag/v0.2.0)
- **Downloadable distributable:** [firexcore-agent-orbs-0.2.0.tgz](https://github.com/FireXCore/agent-orbs/releases/download/v0.2.0/firexcore-agent-orbs-0.2.0.tgz)
- **Changelog:** [CHANGELOG.md](CHANGELOG.md)
- **Interactive demo:** [agent-orbs-demo.vercel.app](https://agent-orbs-demo.vercel.app/)

**Public npmjs.org:** [@firexcore/agent-orbs@0.2.0](https://www.npmjs.com/package/@firexcore/agent-orbs) — confirmed in the public npm registry. Install without any GitHub Packages authentication:
**Public npmjs.org:** Install [@firexcore/agent-orbs@0.3.0](https://www.npmjs.com/package/@firexcore/agent-orbs/v/0.3.0) without GitHub Packages authentication:

```bash
npm install @firexcore/agent-orbs@0.2.0
npm install @firexcore/agent-orbs@0.3.0
```

If you previously configured `@firexcore` to use GitHub Packages, remove the old registry override before installing from npmjs.org:

```bash
npm config delete @firexcore:registry
npm install @firexcore/agent-orbs@0.2.0 --registry=https://registry.npmjs.org/
npm install @firexcore/agent-orbs@0.3.0 --registry=https://registry.npmjs.org/
```

The GitHub release [v0.2.0](https://github.com/FireXCore/agent-orbs/releases/tag/v0.2.0) also provides the downloadable `.tgz`. The same version remains available separately through GitHub Packages for authenticated users.
The GitHub release [v0.2.0](https://github.com/FireXCore/agent-orbs/releases/tag/v0.2.0) also provides the downloadable `.tgz`. Version 0.2.0 is also available from GitHub Packages for authenticated users.

**Provenance note:** The initial public npmjs release was published without Sigstore provenance because duplicate transparency-log entry `TLOG_CREATE_ENTRY_ERROR (409)` blocked earlier publish attempts. Future releases should restore provenance using npm Trusted Publishing (OIDC) after resolving the upstream signing issue. CI and package build tests passed, and independent public-registry metadata verification succeeded.

Expand Down
Loading
Loading