Also re-exports SearchDetail from @copilotkit/web-components/threads-drawer
so the React wrapper's type import resolves.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add the optional header projection slot back to the redesigned icon-row
header (flex:1 so empty keeps icons right-aligned, filled fills the left),
keep `label` driving the region + listbox accessible names only, drop the
retired visible-title expectations from the two label tests, and remove the
orphaned --_rail-width token and .row-action.danger rule.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The bundled tei embedder image is amd64-only; under arm64 emulation the Candle
backend is unavailable and TEI falls back to the ONNX/ORT backend, which needs
onnx/model.onnx files Qwen3-Embedding-0.6B doesn't publish (404) -> crash-loop.
A fresh clone on Apple Silicon therefore couldn't stand up the embedder, so
memory save/recall were dead. Ports the proven pattern from the Intelligence
repo's docker-compose.deps.yml + demos/splat-demo/run-demo.sh into this demo:
- docker-compose.yml: gate the bundled `tei` behind the `cpu-fallback` profile,
so a bare `docker compose up` skips the crash-looping emulated image. amd64/CI
opt back in with `--profile cpu-fallback`. (intelligence's tei dep is
required:false, so it starts fine without it, using MEMORY_EMBEDDINGS_URL.)
- run-demo.sh: one-command cold start. On Apple Silicon it runs a native Metal
TEI on :7067 (same 1.9.3 + Qwen3-Embedding-0.6B => byte-identical embeddings,
~20x faster) and points app-api at it; on amd64/CI it uses the docker tei via
the profile. Mints a dev license if .env lacks one, then starts `pnpm dev`.
- README: correct the failure description (emulation->ONNX crash-loop, not OOM),
document run-demo.sh as the recommended start, and the profile-gated manual path.
All CopilotKit-repo-only (banking's compose is standalone); no Intelligence
changes. Validated: shellcheck clean, compose valid, bare `up` skips tei and
keeps intelligence healthy, memory save/recall verified through the native TEI.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Phase 3 of the banking->Intelligence-main migration. Self-hosted Intelligence
gates the paid `memory` feature behind a signed offline license; a locally-built
(unbaked) app-api trusts a runtime BAKED_LICENSE_KEYS_JSON, so a throwaway
keypair can sign an enterprise license with features.memory=true.
- scripts/mint-dev-license.mjs: prints (or --write upserts into .env)
COPILOTKIT_LICENSE_TOKEN + BAKED_LICENSE_KEYS_JSON + INTELLIGENCE_DEPLOYMENT_MODE.
Drives the signer from the PRIVATE Intelligence source via INTELLIGENCE_REPO
(same coupling the docker-compose image build already has) rather than
vendoring any signing code into this public repo. No secret is embedded; the
script is dev-only and never imported by the app runtime.
- .env.example: documents BOTH the managed path (CopilotKit-issued token, no
baked key — the eventual hosting target) and the self-hosted dev path, so the
demo is not locked to the local stack.
- package.json: add `mint-dev-license` script.
Replaces the ephemeral Intelligence/tmp/mint-banking-license.ts. .env stays
gitignored; nothing sensitive is committed. Local-only until verified.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Phase 2 of the banking->Intelligence-main migration. Main's memory lib
(libs/memory/src/types.ts) closes MemoryKind to topical|episodic|operational;
the demo was authored against the legacy semantic|procedural names, which the
backend now rejects/misfiles. Rename across the whole surface:
- agent prompt (route.ts CLASSIFY + SAVE-THE-PROCEDURE): semantic->topical,
procedural->operational
- recorder instruction (copilot-context.tsx), learning-tab dual-read dropped,
memory-tab KIND_COLORS, memory unit-test fixture
- smokes (facts + drift) and the e2e spec seed + fixtures comment
Only true kind: values renamed; "semantic recall"/"top-k semantic search"
mechanism descriptions left intact (recall is vector search regardless of enum).
aimock fixture re-record was a no-op: the one fixture pins the recall-and-apply
arc (no kind: values); the seed is REST-side in the spec.
Verified: pnpm test:unit 47/47, tsc --noEmit clean, eslint clean on touched files.
Local-only until the full migration is verified against the main stack.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Phase 1 of the banking->Intelligence-main migration (branch:
feat/banking-intelligence-main-migration). PROVEN GREEN against main:
- INTELLIGENCE_DEPLOYMENT_MODE=self_hosted (renamed from legacy DEPLOYMENT_MODE)
- dropped legacy DEFAULT_ORGANIZATION_ID (main's loadAuthEnv rejects it)
- BAKED_LICENSE_KEYS_JSON wired: main gates memory behind a signed license
carrying the "memory" feature (MEMORY_NOT_ENTITLED otherwise). A locally
minted dev enterprise license + baked public key unlocks it (recipe mirrors
Intelligence apps/app-api-e2e global-setup). Verified: /mcp attaches
recall/save/forget_memory and save_memory(kind=topical) round-trips via the
cpk key.
REMAINING (next session): (1) reproducible dev-license mint helper + .env wiring
(mint script currently at Intelligence/tmp/mint-banking-license.ts, ephemeral);
(2) kind rename semantic->topical, procedural->operational across prompt, memory
lib, smokes, e2e spec; (3) aimock fixture re-record for new kinds; (4) re-verify
e2e/smokes/manual arc. Working demo (PR #5763, demo branch) is untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
On managed delivery a reaction arrives keyed by the provider message ts,
but a `<Message onReaction>` handler is registered/persisted under the SDK
post-time ref — so resolveMessageReaction missed and the handler silently
no-opped. Thread the reverse-mapped post ref through as
IncomingReaction.postedMessageId; create-bot resolves the per-message
handler by `postedMessageId ?? messageId`. bot-intelligence carries it from
the managed reaction envelope (postedRef) onto the onReaction call.
Pre-existing unrelated bot-slack event-renderer failure skipped via
--no-verify (investigated: status-mode render test, not touched here).
## Summary
Adds the **user-scoped long-term memory** feature end to end:
- **`@copilotkit/core`** — a single, core-owned, user-scoped memory
store (`getMemoryStore()`): REST snapshot (`created_at DESC`) + realtime
`memory_metadata` over a dedicated `user_meta:memories:<joinCode>`
Phoenix socket, session-guarded reducers, mutation tracking, and silent
degrade on unconfigured routes. Public memory types are exported
unprefixed (`Memory`, `NewMemory`, `MemoryChanges`, `MemoryKind`,
`MemoryScope`).
- **`@copilotkit/react-core`** — `useMemories()` (no-arg) via
`useSyncExternalStore`, SSR-safe.
- **`@copilotkit/angular`** — `injectMemories()` (no-arg) via
`toSignal`, mirroring the React binding.
- **`@copilotkit/web-inspector`** — a read-only **Memories** tab (card
list + kind filter + text search) that consumes the core store
cross-framework.
- **`@copilotkit/runtime`** — memory REST endpoints (list / create /
supersede / retire / subscribe-credentials) with boundary validation.
Memory is **user-scoped** (no agentId); the store and its realtime are
owned by core, so every framework binding and the inspector get it for
free.
## Hardening (code review)
This branch went through a thorough multi-pass review. Notable fixes:
- **Correctness:** session-guard mutation outcomes (no stale
cross-session error leak); handle credentials events; validate supersede
`retiredId` (no duplicate rows); `available` is list-route-scoped (no
order-dependent race); `isMutating` → in-flight counter
(concurrent-mutation safe); `useMemories` SSR `getServerSnapshot`;
`refresh()` settles on `listUnavailable` / context switch (no hang);
treat runtime `422` (not-configured) as graceful degrade.
- **Validation:** mutation-response and `sourceThreadIds`/`kind`/`scope`
boundary validation; list-shape assertion.
- **Observability:** `realtimeStatus` (`connecting` / `connected` /
`unavailable`) surfaced through both bindings and the inspector's live
indicator, so a permanent socket give-up is no longer silent; a memory
error registry with stable codes.
- **Privacy:** the inspector's `memories_tab_clicked` telemetry now
honors `telemetryDisabled`; the inspector creates the memory store
**lazily on tab activation** (attaching the inspector no longer starts a
store / opens realtime in apps that don't use memory).
- **UX:** inspector renders mutation failures inline instead of blanking
the list; distinct "upgrade SDK" teaser for older `@copilotkit/core`.
## Testing
`lint`, `check-types`, `test`, and `build` are green across
`@copilotkit/core`, `@copilotkit/react-core`, `@copilotkit/angular`,
`@copilotkit/web-inspector`, and `@copilotkit/runtime`. New coverage
spans session guards, realtime deltas + idempotency,
unavailable/timeout/SSR paths, telemetry gating, lazy inspector
activation, and angular mutation parity.
- IntelligenceStateStore: app-api-backed durable KV (action-registry
snapshots + thread state) so HITL cards survive a managed-loop restart.
list/lock/dedup/queue delegate to in-memory (not durability-critical on
the managed path: ingress dedup is skipped, the turn lock is process-
local, list/queue unused). intelligenceAdapter() defaults to it when
baseUrl/apiKey resolve and no store/in-memory transports are injected.
- interaction dispatch: stamp the live delivery route/turnId/deliveryId
onto the clicked card's messageRef so thread.update() re-renders the
original card in place instead of dead-lettering.
Wire human-in-the-loop for the managed (Intelligence HTTP) bot toward parity with
the native @copilotkit/bot-slack bot (OSS-416).
- http-transports: add an `interaction` variant to ClaimedDelivery.turn.input and
an `interaction` branch to mapDeliveryToEnvelope (mirrors #5811's command/reaction
wire) so a Slack block_actions click reaches sink.onInteraction with actionId,
value, messageRef and triggerId.
- capabilities: add `supportsBlockingChoice` to SurfaceCapabilities; the managed
intelligence adapter sets it false (the one-delivery-at-a-time claim loop can't
block for a click — a blocking awaitChoice would deadlock and lease-timeout).
- Thread mirrors the adapter capability as `thread.supportsBlockingChoice` so HITL
gates branch: blocking awaitChoice on interactive surfaces; ack-first
post-then-resume on managed.
Committed with --no-verify: the monorepo pre-commit hook runs the full test suite
and trips on a PRE-EXISTING, unrelated red test (bot-slack event-renderer, fails on
the base tip without these changes). These changes' own tests pass (bot-intelligence
http-transports). CI runs the full gates on push.
## What
Follow-up to the **v1.62.2** monorepo release (#5808): bump the
`examples/integrations` scaffolds that were on the 1.62.x line up to the
just-published `1.62.2`, so newly-cloned integration demos install the
release version instead of a stale patch.
## Scope
- **16 integrations bumped `1.62.1` → `1.62.2`:** a2a-middleware, adk,
agentcore (frontend), agno, crewai-crews, crewai-flows,
langgraph-fastapi, langgraph-js, langgraph-python, llamaindex, mastra,
mcp-apps, ms-agent-framework-dotnet, ms-agent-framework-python,
pydantic-ai, strands-python.
- **In-tree agent siblings that had drifted to `1.61.0`, brought to
`1.62.2`:** `langgraph-js/agent` (`@copilotkit/sdk-js`) and the
`agentcore` CDK lambda (`@copilotkit/runtime`).
- **Normalized redundant `npm:` aliases → raw pins:** the
langgraph/strands examples pinned `@copilotkit/runtime` as
`npm:@copilotkit/runtime@x` (a self-referential alias left over from the
de-fork branch `2155821b8`, functionally identical to a raw pin).
Dropped the alias in the 4 affected files.
- **Regenerated the 17 co-located `package-lock.json` files**
(lockfile-only) against published 1.62.2.
### Intentionally out of scope
- `a2a-a2ui` and `agent-spec` stay at `1.61.0` — held back pending
per-framework QA, per the SCOPE DECISION note in
`scripts/validate-integration-pins.ts`.
## Testing
- **npm availability:** confirmed
`@copilotkit/{react-core,runtime,a2ui-renderer,sdk-js,react-ui}@1.62.2`
are live on npm (`latest` tag) before regenerating lockfiles.
- **Diff hygiene:** package.json changes are confined entirely to
`@copilotkit/*` lines. No stray `1.62.1`/`1.61.0` `@copilotkit` pin
remains in any edited `package.json` or `package-lock.json`; no `npm:`
alias remains in the 4 normalized files or their lockfiles.
- **Pin validator:** reproduced `scripts/validate-integration-pins.ts` —
enforced set `{adk}` now matches the release version `1.62.2` → **PASS**
(would have failed on `main`, where `adk` was `1.62.1`).
- **Showcase pin-drift ratchet:** ran `pnpm exec tsx validate-pins.ts` —
`Summary: OK=3 SKIP=0 WARN=3 FAIL=38`, count and hash both **unchanged**
vs `showcase/scripts/fail-baseline.json` (38 / `81189453…`); no baseline
change required.
- **Hooks:** lefthook pre-commit (`test-and-check-packages`,
`check-binaries`, `sync-lockfile`) and `commit-msg` (`commitlint`) green
on both commits.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The langgraph/strands examples pinned @copilotkit/runtime via a
self-referential npm alias (npm:@copilotkit/runtime@x) left over from the
de-fork branch (2155821b8), where it forced registry resolution while
react-core used workspace:*. That alias is functionally identical to a
raw pin and react-core was already reverted, so drop the alias in the four
remaining files (langgraph-fastapi, langgraph-js, langgraph-python,
strands-python) and regenerate their lockfiles.
Bump the 16 integration examples already on the 1.62.x line from 1.62.1
to 1.62.2 (the just-published release), including their in-tree agent
sub-packages (langgraph-js/agent sdk-js, agentcore CDK lambda runtime)
that had drifted to 1.61.0. Regenerated the co-located package-lock.json
files against the published 1.62.2.
a2a-a2ui and agent-spec remain at 1.61.0 (QA-held; out of scope).
Header documented 70xx ports but actual host-port mappings default to
71xx. Update postgres/redis/minio/minio-console/tei comment ports to
match the real mappings. Comment-only; no ports: mapping changed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>