Commit Graph

387 Commits

Author SHA1 Message Date
Max Korp 382e0ebef3 Merge branch 'main' into feat/intelligence-thread-plumbing 2026-03-13 14:00:17 -07:00
Max Korp 4c1dc17412 fix: bootstrap runid in reconnect 2026-03-13 13:50:14 -07:00
Max Korp 7953709afd Reapply "fix: cleanup shouldn't cleanup other connections"
This reverts commit d1f452b215.
2026-03-13 13:34:10 -07:00
Benjamin Taylor a33d250f13 Merge branch 'feat/intelligence-thread-plumbing' of github.com:CopilotKit/CopilotKit into feat/intelligence-thread-plumbing 2026-03-13 15:33:07 -05:00
Max Korp d1f452b215 Revert "fix: cleanup shouldn't cleanup other connections"
This reverts commit 74bfa7825a.
2026-03-13 13:32:39 -07:00
Benjamin Taylor 398edaa0ed Merge branch 'feat/intelligence-thread-plumbing' of github.com:CopilotKit/CopilotKit into feat/intelligence-thread-plumbing 2026-03-13 15:32:34 -05:00
Benjamin Taylor 9c7370abd8 fix(client): Detach agent state when stopping a run 2026-03-13 15:30:49 -05:00
Max Korp 74bfa7825a fix: cleanup shouldn't cleanup other connections 2026-03-13 13:29:12 -07:00
Benjamin Taylor 80c31f0a84 fix(client): detachActiveRun was causing a deadlock 2026-03-13 15:02:31 -05:00
github-actions[bot] 8ce7d4a55c chore(post-release): update version to 1.54.0 2026-03-13 18:50:45 +00:00
Tyler Slaton a6de73aa96 chore(cli): release 1.0.0
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-13 14:49:17 -04:00
Max Korp 19a4eb3367 Merge remote-tracking branch 'origin/main' into feat/intelligence-thread-plumbing 2026-03-13 11:46:36 -07:00
Tyler Slaton 3e60b48c1f chore(cli): release 1.54.0
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-13 14:38:42 -04:00
Max Korp 9fa9de3bb1 Merge remote-tracking branch 'origin/main' into feat/intelligence-thread-plumbing 2026-03-13 11:19:25 -07:00
Mike Ryan 8e2557d378 fix(runtime): Forward generateThreadNames from the delegating runtime 2026-03-13 11:16:34 -07:00
Benjamin Taylor 4829b0315a fix(client): Map running state from delegate to proxied agent 2026-03-13 11:12:50 -07:00
Benjamin Taylor a1ba076d6a feat(runtime): Add constant usage and add agent detach 2026-03-13 11:12:44 -07:00
Max Korp 426ccc24a4 fix: detach active run when new run starts? 2026-03-13 10:32:40 -07:00
Tyler Slaton bb96398854 fix(cli): remove prepare script on install
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-03-12 20:44:56 -04:00
github-actions[bot] ea746d4629 chore(post-release): update version to 1.54.0 2026-03-12 22:32:04 +00:00
Max Korp c1d3faa16d fix: live streaming of active agent 2026-03-12 14:47:43 -07:00
Max Korp 3cdd5cc8f2 fix: Sync messages back from delegate to proxy 2026-03-12 14:36:32 -07:00
Max Korp 6f9bf82526 fix: delegate connectAgent 2026-03-12 14:12:19 -07:00
Jordan Ritter 13da6bde76 feat: consolidate 73 standalone demo repos into monorepo (#3418)
## Summary

Migrates 47 standalone demo repositories from the CopilotKit GitHub org
into the monorepo under `examples/`, organized by category
(integrations, showcases, canvas). History is intentionally dropped —
shallow clone + file copy only.

Also migrates the `copilotkit` CLI package from CopilotCloud into
`packages/v1/cli` (previously stacked as PR #3419, now merged into this
branch).

### Demo consolidation

- **47 demos** imported across 4 groups (A=22, B=21, C=2, D=2)
- **26 repos excluded** — all 13 experiments (old/irrelevant
prototypes), 6 showcases (autotale, agui, campaign-manager, chat-sso,
crewai-enterprise, crm), and 7 starters (textarea, todos-app,
coagents-langgraph, coagents-crewai-flows, llamaindex-hitl,
enterprise-runner, react-vite-agent) dropped to reduce consolidation
footprint
- **Git LFS** tracks binary assets (png, jpg, jpeg, gif, mp4, webm, pdf)
— svg removed from LFS (text-based, breaks `GIT_LFS_SKIP_SMUDGE=1` clone
instructions)
- **Image deduplication** via `examples/images/` with symlinks from
individual examples
- **Tutorial branches** imported as `start/` and `final/` subdirectories
- **Cross-link rewriting** — all standalone repo URLs in READMEs and
docs updated to monorepo paths
- **Doc updates** — 18 tutorial/doc files updated with new clone
instructions and paths
- **Renovate config** — `examples/**` dependencies grouped into weekly
Monday PRs, v1/v2 legacy dirs excluded
- **`examples/README.md`** — full index of all 47 demos by category
- **Archive script** — `scripts/archive-demo-repos.sh` ready to
deprecate+archive original repos post-merge
- **Prettier** — all example files formatted to match monorepo standards
- **Example bug fixes** — Gemini agents (unguarded variables, sync
blocking, dead OpenAI route), langgraph-python (debug print, docstring
placement), StackBlitz URLs

### CLI migration (from CopilotCloud)

- `TEMPLATE_REPOS` updated to use monorepo subdirectory sparse checkout
for all CopilotKit-owned templates
- Tarball download fallback preserved for external repos
(ag2ai/ag2-copilotkit-starter)
- Package metadata (bugs, homepage, repository) updated to point to
monorepo
- Removed stale tsconfig paths/references to non-existent
`@repo/trpc-cli`
- **Pre-existing bug fixes:**
  - `base-command.ts`: unguarded `fetch()` crashed CLI when offline
  - `init.ts`: dropped all user flags when delegating to `create`
- `detect-endpoint-type.utils.ts`: Promise.all destructuring mismatch (5
promises, 4 variables)
- `auth.service.ts`: OAuth state validated after analytics, Promise
never settled on mismatch

### Category breakdown

| Category | Count | Path |
|----------|-------|------|
| Integrations | 17 | `examples/integrations/` |
| Canvas | 7 | `examples/canvas/` |
| Showcases | 23 | `examples/showcases/` |

### What happens after merge
- Run `scripts/archive-demo-repos.sh` to deprecate+archive the 47
consolidated repos
- 26 excluded repos (experiments + 6 showcases + 7 starters) left as-is
on GitHub
- Community announcement (Slack draft prepared)
- Post-merge verification (README rendering, LFS quotas, CLI test)

## Test plan

- [ ] `examples/README.md` renders correctly on GitHub with all links
working
- [ ] LFS-tracked images render in GitHub READMEs
- [ ] Spot-check 3-5 examples can `npm install && npm run dev`
successfully
- [ ] Symlinks in `examples/images/` resolve correctly
- [ ] No `.git/`, `.github/`, `node_modules/`, or `.env` files in any
example
- [ ] Doc tutorial paths point to existing `start/`/`final/` directories
- [ ] No remaining standalone repo URLs in docs
- [ ] `nx run copilotkit:test` passes (46/46)
- [ ] `copilotkit create` scaffolds from monorepo subdirectory
- [ ] CLI works offline (version check doesn't crash)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-03-12 16:29:54 -04:00
Jordan Ritter fd34bbfbf6 style: format all example files with prettier
Run prettier on ~1,865 files across examples/ to match the monorepo's
formatting standards. These files were imported as-is from standalone
repos that used different prettier configs.
2026-03-12 13:06:04 -07:00
Jordan Ritter f36dcc708f fix: resolve pre-existing bugs in CLI package
- base-command: wrap checkCLIVersion() fetch in try-catch so CLI
  doesn't crash when offline (version check is non-critical)
- init: forward argv to Create instead of dropping all flags, remove
  misleading flag definitions (init is just a deprecated redirect)
- detect-endpoint-type: fix Promise.all destructuring (5 promises but
  only 4 variables caused isCopilot to receive the LangGraph FastAPI
  result), add missing isMCP branch, use isLangGraphFastAPI result
- auth.service: validate OAuth state parameter before tracking analytics
  with user data, add reject()+server.close() on state mismatch so the
  Promise settles instead of hanging the CLI forever
- create.test: fix quote-style assertion to match prettier output
2026-03-12 13:06:03 -07:00
Jordan Ritter ad81aaa524 fix: address review findings in migrated CLI package
- Remove copy-paste triplication in scaffoldAgent (LangSmith block
  duplicated twice, causing duplicate .env entries and redundant writes)
- Update AgentTemplates URLs to point to monorepo paths instead of
  archived standalone repos
- Fix flags.projectName → args.projectName in banner logic (projectName
  is an Args field, not Flags)
- Remove stale trpc-cli path mapping and project reference from
  tsconfig.json (package doesn't exist in this monorepo)
2026-03-12 13:06:03 -07:00
Jordan Ritter bee70690bb feat: move CLI package from CopilotCloud into monorepo
Migrate the copilotkit CLI (npx copilotkit create/init/dev) from
CopilotCloud into packages/v1/cli. TEMPLATE_REPOS updated to use
monorepo subdirectory sparse checkout for all CopilotKit-owned
templates, with tarball fallback for external repos (ag2).
2026-03-12 13:06:03 -07:00
Benjamin Taylor fd81932515 feat(core): Add explicit named exports for intelligence-platform in runtime barrel 2026-03-12 13:04:26 -07:00
Max Korp 9be1088cb0 fix: fix intelligence agent stop 2026-03-12 13:03:06 -07:00
Benjamin Taylor 8aea0205c9 feat(runtime, client): Simplifications suggested in PR comments 2026-03-12 13:03:06 -07:00
Benjamin Taylor 72d6164538 fix(core): add inlineOnly flag for core builds to avoid tsdown warning 2026-03-12 13:03:06 -07:00
Benjamin Taylor 6ac9898447 fix(core): Tweak bundling configuration for 'phoenix' to avoid 'tsdown' errors 2026-03-12 13:03:06 -07:00
Mike Ryan c1d1c471de chore: Run prettier on Phoenix code 2026-03-12 13:03:06 -07:00
Mike Ryan 3b09b8875e refactor(core,react): Clean up rxjs code around Phoenix channels 2026-03-12 13:03:06 -07:00
Benjamin Taylor 1110616c91 feat(runtime, client): Some cleanup and terms alignment 2026-03-12 13:03:05 -07:00
Benjamin Taylor 9ec28e22df fix(runtime): Revert a fix that is outside the scope of this branch 2026-03-12 13:03:02 -07:00
Benjamin Taylor 3700524904 fix(runtime): Resolve more prefix issues 2026-03-12 13:03:02 -07:00
Maximiliano Korp 0f4b2d8018 fix: a few missing thetas 2026-03-12 13:03:02 -07:00
Benjamin Taylor 9657eed270 feat(runtime, react): Refactors, bug fixes, doc strings 2026-03-12 13:02:46 -07:00
Benjamin Taylor a1e63ae148 feat(runtime, react, angular): Back up version bumps and small refactor 2026-03-12 13:02:46 -07:00
Benjamin Taylor 39070f2dc5 feat(react, runtime): Refactor to not have SDK in intelligence names 2026-03-12 13:02:46 -07:00
Benjamin Taylor 1522bff534 feat(runtime, react): Made error for missing intelligence client explicit 2026-03-12 13:02:46 -07:00
Mike Ryan 265a4bbeca fix(runtime): Correctly wire up archive and delete 2026-03-12 13:02:46 -07:00
Mike Ryan 5bdbef7c36 feat(runtime): Automatically generate titles for threads 2026-03-12 13:02:45 -07:00
Mike Ryan e8b544f4f6 feat(core,react,runtime): Support live updates for CRUD on threads 2026-03-12 13:02:41 -07:00
Mike Ryan 1c0257e897 refactor(runtime): Clearly split up Intelligence and SSE runtime paths 2026-03-12 13:02:37 -07:00
Mike Ryan de6e4007cb feat(runtime,core): Automatic opt-in to Intelligence when an SDK is provided 2026-03-12 13:02:33 -07:00
Mike Ryan 124ed10e27 refactor(runtime): Implement connect strategies 2026-03-12 13:02:17 -07:00
Mike Ryan dcb6419acf feat(core,runtime): Implement connecting and restoring behavior 2026-03-12 13:02:17 -07:00