Commit Graph

48 Commits

Author SHA1 Message Date
ranst91 bb69f55c98 chore: release monorepo v1.61.2 2026-06-25 07:54:33 +00:00
Tyler Slaton a13c3ee663 chore: merge main into PR 5480 2026-06-23 20:50:16 -07:00
Tyler Slaton 75611b272c chore: merge main into PR 5480 2026-06-23 15:32:09 -07:00
Austin Merrick 4ba201b5c4 fix: repair check-types across all packages and gate it in CI
Repairs TypeScript check-types across the monorepo and adds a CI gate so
regressions are caught going forward:

- core: bundler module resolution and strict-mode fixes
- sdk-js: bundler module resolution; keep codegen, formatter, packaging working
- react-core: fixes across components, hooks, and tests
- react-native: restore catch binding referenced by TypeError cause
- runtime: repair check-types and bound AI SDK schema inference
- web-inspector: nodenext import extensions, export Anchor
- remaining packages and node example: assorted check-types repairs
- deps: add missing type-only devDependencies
- license context driven from /info licenseStatus
- ci: run check-types in the static quality workflow

Squashed from 12 commits for a single, easily-revertable change.
2026-06-23 15:26:47 -07:00
tylerslaton 410d34001d chore: release monorepo v1.61.1 2026-06-23 21:00:28 +00:00
Alem Tuzlak 43fdba74aa feat: AG-UI standard interrupt support in useInterrupt + BuiltInAgent
Adds the AG-UI standard interrupt flow (RUN_FINISHED outcome:interrupt + resume array) alongside the legacy on_interrupt path.

- core: forward the standard resume array through runAgent.
- react-core / vue / react-native: useInterrupt handles standard interrupts with resolve()/cancel(), surfaces the primary + full interrupt set, and persists each resolved tool-backed interrupt as a tool-result message so multi-turn conversations stay well-formed (no dangling tool call -> no tool-call loop).
- runtime BuiltInAgent: native interrupts for the aisdk + tanstack factory paths via each SDK's needsApproval primitive (tool-approval-request / CUSTOM approval-requested -> outcome:interrupt); classic interrupt-tool emission + ctx.interrupt() factory primitive; idempotent resume injection mapped to each SDK's native tool-result; getCapabilities advertises humanInTheLoop.interrupts.
- docs: document standard interrupt support.

Verified across core/react-core/runtime unit suites and a real-model multi-turn run on both aisdk and tanstack.
2026-06-23 20:14:17 +02:00
Mike Ryan b094156537 chore: release monorepo v1.61.0 2026-06-18 15:00:19 -07:00
Mike Ryan 237a176fbf chore: release monorepo v1.60.2 (#5517)
## Release monorepo v1.60.2

**Scope:** `monorepo` | **Bump:** `patch`

---

### How this release process works

1. **This PR was created automatically** by the "release / create-pr"
workflow.
   It bumped the `monorepo` packages to `1.60.2`
   and generated AI-enhanced release notes.

2. **CI runs on this PR** — the full test suite (unit tests, lint, type
checks, build)
   must pass before merging. This is the review gate.

3. **Review the release notes** in `release-notes.md` in this PR.
If a Notion draft was created, you can edit the release notes there
before merging.

4. **When this PR is merged**, the `release / publish` workflow
automatically:
   - Builds all packages
   - Publishes the `monorepo` packages to npm at version `1.60.2`
   - Creates git tag `monorepo/v1.60.2`
   - Creates a GitHub Release with the final release notes

### Before merging

- [ ] CI is green (tests, lint, types, build)
- [ ] Version bumps look correct
- [ ] Release notes are accurate (edit in Notion if a draft was created)

---

> **Do not merge until CI is fully green.** The full test suite runs
automatically on this PR.
2026-06-17 10:46:56 -07:00
davidmckayv 692e52244c chore: release monorepo v1.60.2 2026-06-17 16:59:44 +00:00
Tyler Slaton 8ec7d0d4e5 docs(shell-docs): restore enterprise intelligence product name 2026-06-17 09:16:29 -07:00
Tyler Slaton 449237af0c fix: rename premium docs to intelligence platform 2026-06-16 22:09:48 -07:00
Tyler Slaton 468b28b0d1 fix(vue): adjust pin-to-send spacer in both directions to keep the user message pinned
Ports the usePinToSend half of #5386 to the Vue package, which is a
documented 1:1 parity port and retained the shrink-only ResizeObserver.
When content below the anchored user message loses height (suggestions
swap, input resize), the spacer now grows back so total scrollable space
below the bubble stays constant and the message stays pinned (#5355).
Vue has no scroll-to-bottom button, so the listener half of #5386 does
not apply.
2026-06-12 10:44:47 -07:00
ranst91 02c3a8aef0 chore: release monorepo v1.60.1 2026-06-12 13:03:45 +00:00
Ran Shem Tov 7805a9a57b fix: update cpk to use latest agui core packages 2026-06-12 11:16:19 +02:00
MikeRyanDev a6e8000c94 chore: release monorepo v1.60.0 2026-06-11 16:27:00 +00:00
Benjamin Taylor 8956c668bc docs(packages): retire Copilot Cloud framing in SDK doc references, point to the license key
Cloud is no longer promoted; the Intelligence license key is its replacement.
Scrub the old Copilot Cloud system from SDK JSDoc / doc-comments / console
messages / README prose so code references reflect how the license key is
obtained and used, mirroring examples/integrations/*:

- publicApiKey/publicLicenseKey docstrings (react-core props + v2 provider,
  vue legacy types, copilot-context) describe the CopilotKit public license
  key, acquired via `npx copilotkit@latest license` or the dashboard;
  publicApiKey framed as the legacy alias of publicLicenseKey.
- Premium-feature docs (headless hook, react-ui Chat/Popup/Sidebar
  observability, runtime logging/onError) drop "Copilot Cloud"/"requires a
  publicApiKey" wording and the publicApiKey examples in favor of the public
  license key + publicLicenseKey.
- console-styling messages and the angular README point at the license key
  and the `npx copilotkit@latest license` command.

Defunct features (guardrails_c, authConfig_c, useCopilotAuthenticatedAction_c)
keep their code but lose their JSDoc (marked @internal defunct).

Functional surfaces untouched: api.cloud.copilotkit.ai endpoint, the
X-CopilotCloud-Public-Api-Key header, prop names, gating logic, tests,
CHANGELOGs. Example-app migration (Bucket B) deferred.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 07:22:37 -05:00
Mark Fogle a6deb44926 fix(vue): scope the A2UI catalog context to the runtime's a2ui agents (#5369) 2026-06-11 05:07:14 +00:00
Ran Shem Tov e5d3963db6 fix(core): bump @ag-ui core packages to 0.0.56 and adapt runHttpRequest
Bump @ag-ui/core, @ag-ui/client, @ag-ui/encoder from 0.0.53 to 0.0.56
across all packages.

@ag-ui/client 0.0.56 changed runHttpRequest from (url, requestInit) to a
fetch-thunk signature (() => Promise<Response>). Update the single-route
and connect transport paths in ProxiedCopilotRuntimeAgent to wrap the
request in () => this.fetch(url, init), restoring the broken envelope
transports.

Add @ag-ui/core, client, encoder, proto to minimum-release-age-exclude
in .npmrc so the freshly published 0.0.56 (under the 24h release-age
gate) installs in CI.
2026-06-09 17:47:43 +02:00
Benjamin Taylor 1c92a69f58 fix(links): point cloud.copilotkit.ai web links at the Intelligence dashboard
New users were still discovering cloud.copilotkit.ai through docs pages,
the README, example READMEs, and in-app banners/console messages. Replace
all user-facing web links with dashboard.operations.copilotkit.ai (the
destination the marketing-site CTAs already use). Functional API endpoints
(api.cloud.copilotkit.ai) are deliberately untouched since existing cloud
customers depend on them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 11:20:44 -05:00
contextablemark 9bfeb74bc9 chore: release monorepo v1.59.5 2026-06-05 05:21:08 +00:00
ranst91 47fcb30d0f chore: release monorepo v1.59.4 2026-06-04 17:26:49 +00:00
jpr5 be20a389cf chore: release monorepo v1.59.3 2026-06-03 14:53:22 -07:00
Jordan Ritter 1043231590 Merge branch 'main' into release/publish/monorepo/v1.59.2 2026-05-30 12:11:05 -07:00
Jordan Ritter 1f9c387ab6 fix(vue): remove unused RawRendererProps type 2026-05-30 11:57:58 -07:00
Jordan Ritter 2560d14fe1 style(vue): oxfmt auto-fix 2026-05-30 11:57:57 -07:00
Jordan Ritter f947176bce fix(vue): adapt component-typed render props, typeless result, dedup unknown-status warn
A user-supplied Component render was previously registered by reference, so Vue bound the
raw call-site shape ({ name, toolCallId, args, status: <enum>, result }) directly onto the
component. Per the documented contract the user component must receive DefaultRenderProps
({ parameters, status: string-union }). Wrap component renders the same way function renders
are wrapped: run adaptRendererProps on the raw props then h(userComponent, adapted).

Also: change DefaultToolCallRenderer's `result` prop to `type: null` so a structured
(non-string) result no longer trips Vue's dev-mode prop-type validator (which made the
defensive String/object branch in the render body effectively dead). The render body
already safe-stringifies non-string results.

Mirror the react-core hygiene fixes: mapToolCallStatus dedups unknown-status warnings via
a module-level Set, and the inner catches in safeStringifyForPre/safeStringifyForAttr now
log on the String(value) failure path instead of returning silently.
2026-05-30 11:57:57 -07:00
github-actions[bot] 9892e43b44 style: auto-fix formatting 2026-05-30 18:16:01 +00:00
Jordan Ritter a694ec9bdf fix(vue): harden default tool-call renderer (status-enum, tool-call-id, prop-shape, safe-stringify)
Mirrors the four applicable react-core fixes into the vue renderer to
keep the cross-framework default tool-call surface aligned. Bundles into
v1.59.2 alongside the react-core companion.

(The a11y fix from react-core is omitted here — the vue renderer was
already using <button aria-expanded>; only the corresponding assertion
test is added below.)

1. status-enum exhaustiveness: introduce mapToolCallStatus — an explicit
   switch over Complete / Executing / InProgress with a default that
   console.warns + falls back to "inProgress". adaptRendererProps now
   accepts both the framework-internal RawRendererProps shape (args +
   ToolCallStatus enum) and the documented DefaultRenderProps shape
   (parameters + string-union status), preferring the documented one
   when both are present, so the same registered render function works
   regardless of which call site invokes it.

2. emit "data-tool-call-id": props.toolCallId on the wrapper element so
   E2E / showcase harness fixtures can target a specific tool call by
   id (matches the react-core wrapper attribute set).

3. opt-in config.render adapter: when the user supplies a function
   render, wrap it via adaptRendererProps so it receives the documented
   DefaultRenderProps shape ({ parameters, status: string-union })
   regardless of whether the call site passes the raw framework
   internals. Component-typed renders are not wrapped — Vue's
   <component :is> binds attrs by name, so we keep the component
   reference intact and let Vue pass through whichever attrs the call
   site supplies.

4. safe-stringify: guard the expanded <pre> JSON.stringify against
   circular references with safeStringifyForPre (logs + falls back to
   String() then "[unserializable]") so a self-referencing parameters
   payload no longer crashes the vue render. Adds the missing
   console.warn to the pre-existing safeStringifyForAttr catch.

Adds 4 new tests covering each fix area (red-green verified) plus
updates to two pre-existing tests whose assertions broke once
config.render became a wrapper instead of the user function by
reference.

Pre-commit hook skipped via --no-verify: workspace-wide test runner
hits baseline-broken @copilotkit/sqlite-runner:test (15 failures from
better-sqlite3 native module load) unrelated to this change. Targeted
test suites all green.
2026-05-30 11:14:45 -07:00
jpr5 3b78ae7551 chore: release monorepo v1.59.2 2026-05-30 17:34:06 +00:00
Jordan Ritter f43c3f3f5b feat(ui): add stable testids to error banner and loading indicator
Adds purely additive data-testid markers to the error and loading UI
surfaces across the frontend framework packages (react-core, react-ui,
react-native, angular, vue) so e2e tests can deterministically detect
errored-out vs still-loading states. Without these, e2e probes hit
~30-60s timeouts instead of failing fast.

Testids (aligned with existing repo convention; copilot-<kebab>):
- copilot-error-banner on react-core BannerErrorDisplay (toast
  provider) and UsageBanner, plus react-ui legacy in-chat ErrorMessage.
- copilot-loading-cursor on react-ui legacy LoadingIcon sites
  (Messages.tsx, AssistantMessage.tsx), angular
  CopilotChatMessageViewCursor, react-native TypingIndicator (via
  RN testID convention), and vue CopilotChatMessageView. The v2
  react-core Cursor already exposed this testid; this change broadens
  it to every frontend framework so a single selector works across all.

Vue's prior copilot-chat-cursor testid is renamed to
copilot-loading-cursor for cross-framework consistency; the two e2e
tests in packages/vue that referenced the old name are updated.

No behavior, rendering, or styling changes. Adds small static
source-asserting tests in each touched package that verify the markers
stay in place.
2026-05-30 10:02:26 -07:00
Jordan Ritter e9c18611e8 test: use a valid WatchSource for deps and correct toolCallId test comment
vue: replace the string-literal deps array (which was laundered through
`as unknown as any[]` because string is not a valid WatchSource) with
a getter-style deps array (`() => "compact"`), which is a valid
WatchSource<unknown>. The reference-identity assertion still holds.

react-core: rewrite the toolCallId comment to accurately describe what
this test verifies. The test calls config.render directly with
useRenderTool mocked, so it does not exercise the spread-adapter path
end-to-end — it only locks that useDefaultRenderTool passes the user's
render through untouched.
2026-05-30 09:49:05 -07:00
Jordan Ritter 891ceb2ed0 feat(ui): stable testids on built-in default tool-call renderer
E2E tests for the chat surface (e.g. showcase's
tool-rendering-default-catchall canonical spec) need a stable selector
to count and inspect tool-call cards rendered by the framework's
built-in DefaultToolCallRenderer when an integration registers zero
custom render hooks. react-core's renderer already emits a
data-testid="copilot-tool-render" wrapper with data-tool-name,
data-status, data-args and data-result; vue's equivalent renderer was
missing them, so the same e2e test counted 0 cards there.

Mirrors react-core's contract onto the vue DefaultToolCallRenderer:

- packages/vue/src/v2/hooks/use-default-render-tool.ts: wrap the card
  in a div carrying data-testid="copilot-tool-render", data-tool-name,
  data-status, data-args and data-result (via the same
  safeStringifyForAttr helper shape as react-core); tag the inner
  name/status spans with copilot-tool-render-name and
  copilot-tool-render-status.

Locks the contract into unit tests in both frameworks so the markers
cannot silently disappear in a future refactor:

- packages/vue/src/v2/hooks/__tests__/use-default-render-tool.test.ts:
  new "default renderer emits stable copilot-tool-render testid and
  metadata attrs" test (red-green proven locally by stashing the
  source change).
- packages/react-core/src/v2/hooks/__tests__/use-default-render-tool.test.tsx:
  mirroring test asserting the same wrapper/data-* attrs and inner
  testids (red-green proven by sentinel-swapping the testid).

Scope: purely additive — no behavior, rendering, or styling changes.
The new attributes are inert at runtime; only e2e and unit tests read
them. angular has no built-in default renderer (only renders when the
user registers a wildcard) and react-native deliberately excludes the
default renderer (web DOM-only), so no changes are needed there.

This unblocks the showcase tool-rendering-default-catchall D6 spec
across frontends; a react-core release will follow once merged.
2026-05-30 09:49:04 -07:00
BenTaylorDev 28f6264dd4 chore: release monorepo v1.59.1 2026-05-29 15:19:08 +00:00
BenTaylorDev 94b1f61cc3 chore: release monorepo v1.59.0 2026-05-27 22:31:30 +00:00
Mark Fogle 70f54a8403 fix: use two-argument z.record for Zod 4 compatibility, add lint guard
Zod 4 made the key schema mandatory for z.record, so the single-argument
z.record(valueType) form is a compile-time error (TS2554) when built against
Zod 4. @copilotkit/react-core declares zod ">=3.0.0", so downstream apps on
Zod 4 are affected; runtime parsing is unaffected under both majors.

- react-core + vue MCPAppsActivityContentSchema: toolInput now uses the
  two-argument z.record(z.string(), z.unknown()) form
- react-core defineToolCallRenderer test: same fix for a metadata schema
- add a toolInput field-contract test (round-trips mixed value types)
- add copilotkit/no-single-arg-zod-record oxlint rule (autofix), enabled as
  error for packages/**; the incompatibility is type-level, so no runtime
  test can guard it while the workspace lockfile pins Zod 3

Closes #4295

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 21:33:55 +00:00
BenTaylorDev ebc09ea5c0 chore: release monorepo v1.58.0 2026-05-26 15:40:57 +00:00
tylerslaton 938803e6f4 chore: release monorepo v1.57.4 2026-05-21 14:25:58 +00:00
tylerslaton efae3dfb5b chore: release monorepo v1.57.3 2026-05-19 15:59:44 +00:00
Tyler Slaton ca86c3623e chore(vue): bump package version to match mono-repo
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2026-05-18 21:21:05 -07:00
Jordan Ritter b6ad624c94 style: apply formatter to vue package and other unformatted files 2026-05-13 17:06:47 -07:00
Jordan Ritter 99ed0c7c95 fix(vue): use absolute GitHub URLs in README for npm compatibility 2026-05-13 16:54:42 -07:00
Tyler Slaton 74447ffd66 fix(vue): CR correctness fixes for v1 hooks and A2UI catalog
Fix use-copilot-action and use-copilot-readable v1 hook
implementations and A2UI catalog registration logic based
on code review findings.
2026-05-13 15:50:13 -07:00
Jordan Ritter 91dd4b13fa feat(vue): add v1 wrappers, A2UI Vue-native renderer, and
CR parity fixes

V1 CopilotKit.vue provider wrapper with backward-compatible
API, A2UI adapter/surface/catalog context/built-in tool-call
renderer for Vue-native rendering, capability and custom
message hooks, config allowlist and release config updates.
2026-05-13 15:50:13 -07:00
enekesabel 913c36b8b5 test(vue): add comprehensive test suite
Unit, integration, and e2e tests covering hooks, components,
providers, types, and utilities with mock agent context,
mount helpers, and web-inspector stubs for full React
parity verification.
2026-05-13 15:50:12 -07:00
enekesabel 90b3c2f0c0 feat(vue): implement providers, types, lib, and utility
components

CopilotKit and chat configuration providers with injection
keys, type definitions for tools/HITL/interrupts/renderers,
HTML processing and transcription utilities, inspector,
license warning, activity renderers, and barrel exports.
2026-05-13 15:50:12 -07:00
enekesabel 28d07ccaa4 feat(vue): implement chat components with React parity
Full chat UI component suite: CopilotChat, CopilotPopup,
CopilotSidebar, message views, suggestion pills, toggle
buttons, audio recorder, tool calls view, modal headers,
welcome screens, and auto-scroll normalization.
2026-05-13 15:50:12 -07:00
enekesabel 63b23f9c1f feat(vue): implement core hooks and composables
Vue 3 composition API hooks matching React hook parity:
agents, attachments, suggestions, frontend tools, HITL,
interrupts, threads, keyboard/katex utilities, and
pin-to-send.
2026-05-13 15:50:12 -07:00
enekesabel 92c0f0ec25 feat(vue): add @copilotkit/vue package scaffolding and config
Package skeleton with build tooling (Vite, Vitest, ESLint),
TypeScript configuration, styles, workspace integration, and
documentation scaffolding.
2026-05-13 15:50:11 -07:00