@copilotkit/angular 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, DestroyRef, Injectable, afterRenderEffect, input, signal, computed, ChangeDetectionStrategy, Component, PLATFORM_ID, NgZone, effect, viewChild, ElementRef, CUSTOM_ELEMENTS_SCHEMA, untracked, isDevMode, Injector, afterNextRender, runInInjectionContext, TemplateRef, ViewContainerRef, ViewChild, Inject, Input, Directive, output, HostListener, ViewEncapsulation, ContentChild, Optional, linkedSignal, ChangeDetectorRef, contentChild, forwardRef, Renderer2, EventEmitter, Output, model } from '@angular/core';
2
+ import { InjectionToken, inject, DestroyRef, Injectable, afterRenderEffect, input, signal, computed, ChangeDetectionStrategy, Component, PLATFORM_ID, NgZone, effect, viewChild, ElementRef, CUSTOM_ELEMENTS_SCHEMA, untracked, isDevMode, Injector, afterNextRender, runInInjectionContext, reflectComponentType, inputBinding, outputBinding, TemplateRef, ViewContainerRef, Input, Inject, Directive, output, HostListener, ViewChild, ViewEncapsulation, ContentChild, Optional, linkedSignal, ChangeDetectorRef, contentChild, forwardRef, Renderer2, EventEmitter, Output, model } from '@angular/core';
3
3
  import { CopilotKitCoreRuntimeConnectionStatus, CopilotKitCore, ɵInterruptState as _InterruptState, ProxiedCopilotRuntimeAgent, ɵcreateThreadStore as _createThreadStore, ɵselectThreads as _selectThreads, ɵselectThreadsIsLoading as _selectThreadsIsLoading, ɵselectThreadsError as _selectThreadsError, ɵselectFetchMoreError as _selectFetchMoreError, ɵselectHasNextPage as _selectHasNextPage, ɵselectIsFetchingNextPage as _selectIsFetchingNextPage, ɵselectIsMutating as _selectIsMutating, ɵselectMemories as _selectMemories, ɵselectMemoriesIsLoading as _selectMemoriesIsLoading, ɵselectMemoriesError as _selectMemoriesError, ɵselectMemoriesAvailable as _selectMemoriesAvailable, ɵselectMemoriesRealtimeStatus as _selectMemoriesRealtimeStatus, completePartialMarkdown } from '@copilotkit/core';
4
4
  import { shouldEnableInspector, A2UI_DEFAULT_GENERATION_GUIDELINES, A2UI_DEFAULT_DESIGN_GUIDELINES, schemaToJsonSchema, partialJSONParse, DEFAULT_AGENT_ID, randomUUID as randomUUID$1, TranscriptionErrorCode, copyToClipboard, getSourceUrl, getDocumentIcon, formatFileSize, matchesAcceptFilter, exceedsMaxSize, getModalityFromMimeType, readFileAsBase64, generateVideoThumbnail, createLicenseContextValue } from '@copilotkit/shared';
5
5
  export { TranscriptionErrorCode } from '@copilotkit/shared';
6
6
  import { buildCatalogContextValue, extractCatalogComponentSchemas, A2UI_SCHEMA_CONTEXT_DESCRIPTION } from '@copilotkit/a2ui-renderer/web-components';
7
7
  import { Subject, lastValueFrom, filter, take, map, BehaviorSubject, merge, fromEvent, animationFrameScheduler, EMPTY } from 'rxjs';
8
8
  import * as i1$1 from '@angular/common';
9
- import { isPlatformBrowser, DOCUMENT, NgComponentOutlet, CommonModule, NgTemplateOutlet } from '@angular/common';
9
+ import { isPlatformBrowser, DOCUMENT, NgComponentOutlet, NgTemplateOutlet, CommonModule } from '@angular/common';
10
10
  import { z } from 'zod';
11
11
  import { zodToJsonSchema } from 'zod-to-json-schema';
12
12
  import { randomUUID, HttpAgent, AGUIConnectNotImplementedError } from '@ag-ui/client';
@@ -111,7 +111,7 @@ const COPILOT_KIT_CONFIG = new InjectionToken("COPILOT_KIT_CONFIG");
111
111
  function injectCopilotKitConfig() {
112
112
  return inject(COPILOT_KIT_CONFIG);
113
113
  }
114
- function provideCopilotKit(config) {
114
+ function provideCopilotKit(config = {}) {
115
115
  const resolvedLicense = resolveLicense(config);
116
116
  const headers = config.headers ?? {};
117
117
  if (LICENSE_WATERMARK_ENABLED &&
@@ -4597,9 +4597,52 @@ function injectMemories() {
4597
4597
  */
4598
4598
  const SLOT_CONFIG = new InjectionToken("SLOT_CONFIG");
4599
4599
 
4600
+ /**
4601
+ * Returns the component inputs that should be bound for the current context.
4602
+ *
4603
+ * Context keys are matched against public (template) input names so unknown
4604
+ * keys are ignored without overwriting defaults for omitted inputs. A `props`
4605
+ * input retains the legacy aggregate-context behavior.
4606
+ */
4607
+ function slotInputNames(type, context) {
4608
+ const mirror = reflectComponentType(type);
4609
+ if (!mirror)
4610
+ return [];
4611
+ if (context != null &&
4612
+ mirror.inputs.some(({ templateName }) => templateName === "props")) {
4613
+ return ["props"];
4614
+ }
4615
+ const contextKeys = new Set(Object.keys(context ?? {}));
4616
+ return mirror.inputs
4617
+ .filter(({ templateName }) => contextKeys.has(templateName))
4618
+ .map(({ templateName }) => templateName);
4619
+ }
4620
+ /**
4621
+ * Builds `createComponent` bindings for a slot component.
4622
+ *
4623
+ * The input-name set is fixed for the lifetime of the component; callers must
4624
+ * recreate the component when {@link slotInputNames} changes. Input values and
4625
+ * output handlers remain live through their getters. Every declared output is
4626
+ * bound so handlers can be added, replaced, or removed without recreation.
4627
+ */
4628
+ function slotBindings(type, inputNames, context, outputs) {
4629
+ const mirror = reflectComponentType(type);
4630
+ if (!mirror)
4631
+ return [];
4632
+ const values = () => context();
4633
+ return [
4634
+ ...inputNames.map((templateName) => inputBinding(templateName, () => templateName === "props" ? context() : values()?.[templateName])),
4635
+ ...mirror.outputs.map(({ templateName }) => outputBinding(templateName, (event) => outputs()?.[templateName]?.(event))),
4636
+ ];
4637
+ }
4600
4638
  /**
4601
4639
  * Renders a slot value into a ViewContainerRef.
4602
- * This is the core utility for slot rendering.
4640
+ *
4641
+ * Templates receive `{ $implicit: props, props }` as their context. Components
4642
+ * get individual `props` keys bound to matching inputs, or the entire object
4643
+ * when the component declares a `props` input. `outputs` are matched by public
4644
+ * name via {@link slotBindings}; bindings are applied on the next change
4645
+ * detection pass.
4603
4646
  *
4604
4647
  * @param viewContainer - The ViewContainerRef to render into
4605
4648
  * @param options - Options for rendering the slot
@@ -4625,78 +4668,23 @@ function renderSlot(viewContainer, options) {
4625
4668
  const { slot, defaultComponent, props, injector, outputs } = options;
4626
4669
  viewContainer.clear();
4627
4670
  const effectiveSlot = slot ?? defaultComponent;
4628
- const effectiveInjector = injector ?? viewContainer.injector;
4629
4671
  if (effectiveSlot instanceof TemplateRef) {
4630
- // TemplateRef: render template
4631
4672
  return viewContainer.createEmbeddedView(effectiveSlot, {
4632
4673
  $implicit: props ?? {},
4633
4674
  props: props ?? {},
4634
4675
  });
4635
4676
  }
4636
- else if (isComponentType(effectiveSlot)) {
4637
- // Component type - wrap in try/catch for safety
4638
- try {
4639
- return createComponent(viewContainer, effectiveSlot, props, effectiveInjector, outputs);
4640
- }
4641
- catch (error) {
4642
- console.warn("Failed to create component:", effectiveSlot, error);
4643
- // Fall through to default component
4644
- }
4645
- }
4646
- // Default: render default component if provided
4647
- return defaultComponent
4648
- ? createComponent(viewContainer, defaultComponent, props, effectiveInjector, outputs)
4649
- : null;
4650
- }
4651
- /**
4652
- * Creates a component and applies properties.
4653
- */
4654
- function createComponent(viewContainer, component, props, injector, outputs) {
4655
- const componentRef = viewContainer.createComponent(component, {
4656
- injector,
4677
+ return viewContainer.createComponent(effectiveSlot, {
4678
+ injector: injector ?? viewContainer.injector,
4679
+ bindings: slotBindings(effectiveSlot, slotInputNames(effectiveSlot, props), () => props, () => outputs),
4657
4680
  });
4658
- if (props) {
4659
- // Apply props using setInput, but only for declared inputs
4660
- const cmpDef = component.ɵcmp;
4661
- const declaredInputs = new Set(Object.keys(cmpDef?.inputs ?? {}));
4662
- if (declaredInputs.has("props")) {
4663
- componentRef.setInput("props", props);
4664
- }
4665
- else {
4666
- for (const key in props) {
4667
- if (declaredInputs.has(key)) {
4668
- const value = props[key];
4669
- componentRef.setInput(key, value);
4670
- }
4671
- }
4672
- }
4673
- }
4674
- if (outputs) {
4675
- // Wire up output event handlers with proper cleanup
4676
- const instance = componentRef.instance;
4677
- const subscriptions = [];
4678
- for (const [eventName, handler] of Object.entries(outputs)) {
4679
- if (instance[eventName]?.subscribe) {
4680
- const subscription = instance[eventName].subscribe(handler);
4681
- subscriptions.push(subscription);
4682
- }
4683
- }
4684
- // Register cleanup on component destroy
4685
- componentRef.onDestroy(() => {
4686
- subscriptions.forEach((sub) => sub.unsubscribe());
4687
- });
4688
- }
4689
- // Trigger change detection
4690
- componentRef.changeDetectorRef.detectChanges();
4691
- return componentRef;
4692
4681
  }
4693
4682
  /**
4694
- * Checks if a value is a component type.
4695
- * Simplified check - rely on try/catch for actual validation.
4683
+ * Checks if a value is an Angular component type.
4696
4684
  */
4697
4685
  function isComponentType(value) {
4698
- // Arrow functions and regular functions without a prototype are not components
4699
- return typeof value === "function" && !!value.prototype;
4686
+ return (typeof value === "function" &&
4687
+ reflectComponentType(value) !== null);
4700
4688
  }
4701
4689
  /**
4702
4690
  * Checks if a value is a valid slot value.
@@ -4725,8 +4713,7 @@ function normalizeSlotValue(value, defaultComponent) {
4725
4713
  * @example
4726
4714
  * ```typescript
4727
4715
  * const slots = createSlotConfig({
4728
- standalone: true,
4729
- * sendButton: CustomSendButton,
4716
+ * sendButton: CustomSendButton,
4730
4717
  * toolbar: 'custom-toolbar-class',
4731
4718
  * footer: footerTemplate
4732
4719
  * }, {
@@ -4751,8 +4738,7 @@ function createSlotConfig(overrides, defaults) {
4751
4738
  * @example
4752
4739
  * ```typescript
4753
4740
  * @Component({
4754
- standalone: true,
4755
- * providers: [
4741
+ * providers: [
4756
4742
  * provideSlots({
4757
4743
  * sendButton: CustomSendButton,
4758
4744
  * toolbar: CustomToolbar
@@ -4832,158 +4818,93 @@ function createSlotRenderer(defaultComponent, slotName) {
4832
4818
 
4833
4819
  /**
4834
4820
  * @internal - This component is for internal use only.
4835
- * Simple slot component for rendering custom content or defaults.
4836
- * Supports templates and components only.
4821
+ * Renders a slot override, a default component, or the projected fallback.
4822
+ *
4823
+ * - A `TemplateRef` slot is rendered with `context` as its template context,
4824
+ * so context keys are available as `let-` variables.
4825
+ * - A component slot (or `defaultComponent`) is created with `context` keys
4826
+ * bound to its matching inputs and `outputs` handlers bound to its matching
4827
+ * outputs. Bound values stay live; the component is only recreated when the
4828
+ * resolved type or set of bound input names changes.
4829
+ * - With neither a slot nor a default component, the projected content shows.
4837
4830
  *
4838
4831
  * @example
4839
4832
  * ```html
4840
- * <!-- With template -->
4841
4833
  * <copilot-slot [slot]="sendButtonTemplate" [context]="buttonContext">
4842
4834
  * <button class="default-btn">Default</button>
4843
4835
  * </copilot-slot>
4844
4836
  * ```
4845
4837
  */
4846
4838
  class CopilotSlot {
4847
- viewContainer;
4848
- cdr;
4849
- slot = input(undefined, /* @ts-ignore */
4850
- ...(ngDevMode ? [{ debugName: "slot" }] : /* istanbul ignore next */ []));
4851
- context = input(undefined, /* @ts-ignore */
4852
- ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
4853
- defaultComponent = input(undefined, /* @ts-ignore */
4854
- ...(ngDevMode ? [{ debugName: "defaultComponent" }] : /* istanbul ignore next */ []));
4855
- outputs = input(undefined, /* @ts-ignore */
4856
- ...(ngDevMode ? [{ debugName: "outputs" }] : /* istanbul ignore next */ []));
4857
- slotContainer;
4858
- componentRef;
4859
- constructor(viewContainer, cdr) {
4860
- this.viewContainer = viewContainer;
4861
- this.cdr = cdr;
4862
- }
4863
- ngOnInit() {
4864
- this.renderSlot();
4865
- }
4866
- ngOnChanges(changes) {
4867
- if (changes["slot"]) {
4868
- // Slot changed, need to re-render completely
4869
- this.renderSlot();
4870
- }
4871
- else if (changes["context"] && this.componentRef) {
4872
- // Just context changed, update existing component
4873
- this.updateComponentProps();
4874
- this.cdr.detectChanges();
4875
- }
4876
- else if (changes["context"]) {
4877
- // No component ref yet, render the slot
4878
- this.renderSlot();
4879
- }
4880
- }
4881
- isTemplate(value) {
4882
- return value instanceof TemplateRef;
4883
- }
4884
- renderSlot() {
4885
- // Skip if it's a template (handled by ngTemplateOutlet)
4886
- if (this.slot() && this.isTemplate(this.slot())) {
4887
- this.componentRef = null;
4888
- return;
4889
- }
4890
- // Clear previous content
4891
- this.slotContainer.clear();
4892
- this.componentRef = null;
4893
- // Skip if no slot and no default component
4894
- if (!this.slot() && !this.defaultComponent()) {
4895
- return;
4896
- }
4897
- // Use the utility to render other slot types
4898
- if (this.slot() || this.defaultComponent()) {
4899
- this.componentRef = renderSlot(this.slotContainer, {
4900
- slot: this.slot(),
4901
- defaultComponent: this.defaultComponent(),
4902
- props: this.context(),
4903
- outputs: this.outputs(),
4904
- });
4905
- }
4906
- }
4907
- updateComponentProps() {
4908
- if (!this.componentRef || !this.componentRef.instance) {
4909
- return;
4910
- }
4911
- const props = this.context();
4912
- // Update props using setInput, only for declared inputs
4913
- if (props) {
4914
- const ctor = this.componentRef.instance.constructor;
4915
- const cmpDef = ctor?.ɵcmp;
4916
- const declaredInputs = new Set(Object.keys(cmpDef?.inputs ?? {}));
4917
- if (declaredInputs.has("props")) {
4918
- this.componentRef.setInput("props", props);
4919
- }
4920
- else {
4921
- for (const key in props) {
4922
- if (declaredInputs.has(key)) {
4923
- const value = props[key];
4924
- this.componentRef.setInput(key, value);
4925
- }
4926
- }
4927
- }
4928
- }
4929
- // Trigger change detection
4930
- if (this.componentRef.changeDetectorRef) {
4931
- this.componentRef.changeDetectorRef.detectChanges();
4932
- }
4839
+ slot = input(/* @ts-ignore */
4840
+ ...(ngDevMode ? [undefined, { debugName: "slot" }] : /* istanbul ignore next */ []));
4841
+ context = input(/* @ts-ignore */
4842
+ ...(ngDevMode ? [undefined, { debugName: "context" }] : /* istanbul ignore next */ []));
4843
+ defaultComponent = input(/* @ts-ignore */
4844
+ ...(ngDevMode ? [undefined, { debugName: "defaultComponent" }] : /* istanbul ignore next */ []));
4845
+ outputs = input(/* @ts-ignore */
4846
+ ...(ngDevMode ? [undefined, { debugName: "outputs" }] : /* istanbul ignore next */ []));
4847
+ host = viewChild.required("host", {
4848
+ read: ViewContainerRef,
4849
+ });
4850
+ template = computed(() => {
4851
+ const slot = this.slot();
4852
+ return slot instanceof TemplateRef ? slot : undefined;
4853
+ }, /* @ts-ignore */
4854
+ ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
4855
+ componentType = computed(() => {
4856
+ const slot = this.slot();
4857
+ return slot instanceof TemplateRef
4858
+ ? undefined
4859
+ : (slot ?? this.defaultComponent());
4860
+ }, /* @ts-ignore */
4861
+ ...(ngDevMode ? [{ debugName: "componentType" }] : /* istanbul ignore next */ []));
4862
+ inputNames = computed(() => {
4863
+ const type = this.componentType();
4864
+ return type ? slotInputNames(type, this.context()) : [];
4865
+ }, { ...(ngDevMode ? { debugName: "inputNames" } : /* istanbul ignore next */ {}), equal: (previous, current) => previous.length === current.length &&
4866
+ previous.every((name, index) => name === current[index]) });
4867
+ constructor() {
4868
+ effect((onCleanup) => {
4869
+ const type = this.componentType();
4870
+ if (!type)
4871
+ return;
4872
+ const inputNames = this.inputNames();
4873
+ const ref = untracked(() => this.host().createComponent(type, {
4874
+ bindings: slotBindings(type, inputNames, () => this.context(), () => this.outputs()),
4875
+ }));
4876
+ onCleanup(() => ref.destroy());
4877
+ });
4933
4878
  }
4934
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CopilotSlot, deps: [{ token: ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4935
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CopilotSlot, isStandalone: true, selector: "copilot-slot", inputs: { slot: { classPropertyName: "slot", publicName: "slot", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null }, defaultComponent: { classPropertyName: "defaultComponent", publicName: "defaultComponent", isSignal: true, isRequired: false, transformFunction: null }, outputs: { classPropertyName: "outputs", publicName: "outputs", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "slotContainer", first: true, predicate: ["slotContainer"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: `
4936
- <!-- If slot template provided, render it -->
4937
- @if (slot() && isTemplate(slot)) {
4938
- <ng-container
4939
- [ngTemplateOutlet]="slot"
4940
- [ngTemplateOutletContext]="context || {}"
4941
- >
4942
- </ng-container>
4879
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CopilotSlot, deps: [], target: i0.ɵɵFactoryTarget.Component });
4880
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CopilotSlot, isStandalone: true, selector: "copilot-slot", inputs: { slot: { classPropertyName: "slot", publicName: "slot", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null }, defaultComponent: { classPropertyName: "defaultComponent", publicName: "defaultComponent", isSignal: true, isRequired: false, transformFunction: null }, outputs: { classPropertyName: "outputs", publicName: "outputs", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "host", first: true, predicate: ["host"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `
4881
+ @if (template(); as tpl) {
4882
+ <ng-container *ngTemplateOutlet="tpl; context: context()" />
4943
4883
  }
4944
-
4945
- <!-- If not a template, we'll handle in code -->
4946
- <ng-container #slotContainer></ng-container>
4947
-
4948
- <!-- Default content (only shown if no slot) -->
4949
- @if (!slot && !defaultComponent) {
4950
- <ng-content></ng-content>
4884
+ <ng-container #host />
4885
+ @if (!slot() && !defaultComponent()) {
4886
+ <ng-content />
4951
4887
  }
4952
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4888
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
4953
4889
  }
4954
4890
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CopilotSlot, decorators: [{
4955
4891
  type: Component,
4956
4892
  args: [{
4957
- standalone: true,
4958
4893
  selector: "copilot-slot",
4959
- imports: [CommonModule],
4894
+ imports: [NgTemplateOutlet],
4960
4895
  template: `
4961
- <!-- If slot template provided, render it -->
4962
- @if (slot() && isTemplate(slot)) {
4963
- <ng-container
4964
- [ngTemplateOutlet]="slot"
4965
- [ngTemplateOutletContext]="context || {}"
4966
- >
4967
- </ng-container>
4896
+ @if (template(); as tpl) {
4897
+ <ng-container *ngTemplateOutlet="tpl; context: context()" />
4968
4898
  }
4969
-
4970
- <!-- If not a template, we'll handle in code -->
4971
- <ng-container #slotContainer></ng-container>
4972
-
4973
- <!-- Default content (only shown if no slot) -->
4974
- @if (!slot && !defaultComponent) {
4975
- <ng-content></ng-content>
4899
+ <ng-container #host />
4900
+ @if (!slot() && !defaultComponent()) {
4901
+ <ng-content />
4976
4902
  }
4977
4903
  `,
4978
- changeDetection: ChangeDetectionStrategy.OnPush,
4979
4904
  }]
4980
- }], ctorParameters: () => [{ type: i0.ViewContainerRef, decorators: [{
4981
- type: Inject,
4982
- args: [ViewContainerRef]
4983
- }] }, { type: i0.ChangeDetectorRef }], propDecorators: { slot: [{ type: i0.Input, args: [{ isSignal: true, alias: "slot", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }], defaultComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultComponent", required: false }] }], outputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "outputs", required: false }] }], slotContainer: [{
4984
- type: ViewChild,
4985
- args: ["slotContainer", { read: ViewContainerRef, static: true }]
4986
- }] } });
4905
+ }], ctorParameters: () => [], propDecorators: { slot: [{ type: i0.Input, args: [{ isSignal: true, alias: "slot", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }], defaultComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultComponent", required: false }] }], outputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "outputs", required: false }] }], host: [{ type: i0.ViewChild, args: ["host", { ...{
4906
+ read: ViewContainerRef,
4907
+ }, isSignal: true }] }] } });
4987
4908
 
4988
4909
  /**
4989
4910
  * Directive to manage agent context in CopilotKit.
@@ -7862,6 +7783,102 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
7862
7783
  }]
7863
7784
  }], propDecorators: { message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: true }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], isRunning: [{ type: i0.Input, args: [{ isSignal: true, alias: "isRunning", required: false }] }], inputClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputClass", required: false }] }] } });
7864
7785
 
7786
+ /**
7787
+ * Resolve the activity renderer for an activity type.
7788
+ *
7789
+ * Precedence (first match wins within each tier, in registration order):
7790
+ * 1. a renderer for `activityType` registered for `agentId`
7791
+ * 2. a renderer for `activityType` without an `agentId` (global)
7792
+ * 3. the `"*"` wildcard renderer
7793
+ *
7794
+ * Note that the wildcard is matched regardless of its `agentId`, which differs
7795
+ * from `pickToolCallHandler`, where the wildcard is agent-scoped as well. This
7796
+ * preserves the behaviour `CopilotChatMessageView` has always had.
7797
+ *
7798
+ * Kept internal for now (not part of the public API); it can be exposed later
7799
+ * without a breaking change if there is demand for a headless resolver.
7800
+ */
7801
+ function pickActivityRenderer(options) {
7802
+ const { activityType, agentId, renderers } = options;
7803
+ const matches = renderers.filter((candidate) => candidate.activityType === activityType);
7804
+ return (matches.find((candidate) => candidate.agentId === agentId) ??
7805
+ matches.find((candidate) => candidate.agentId === undefined) ??
7806
+ renderers.find((candidate) => candidate.activityType === "*"));
7807
+ }
7808
+
7809
+ /**
7810
+ * Renders a single activity message through the activity renderer registered
7811
+ * for its `activityType` (see `provideCopilotKit({ renderActivityMessages })`
7812
+ * and `registerRenderActivityMessage`).
7813
+ *
7814
+ * This is the activity counterpart of `RenderToolCalls` and the Angular
7815
+ * equivalent of React's `useRenderActivityMessage()`: `CopilotChatMessageView`
7816
+ * uses it for the `activity` role, and custom chat shells or non-chat surfaces
7817
+ * (dashboards, side panels) can host an activity with it directly instead of
7818
+ * instantiating the whole message view.
7819
+ *
7820
+ * ```html
7821
+ * <copilot-activity [message]="activityMessage" [agentId]="agentId" />
7822
+ * ```
7823
+ *
7824
+ * Renders nothing when no renderer matches or when the renderer's content
7825
+ * schema rejects the message content (a warning is logged in that case).
7826
+ */
7827
+ class CopilotActivity {
7828
+ #copilotKit = inject(CopilotKit);
7829
+ /** The activity message to render. */
7830
+ message = input.required(/* @ts-ignore */
7831
+ ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
7832
+ /** Agent scope used for renderer resolution and passed to the renderer. */
7833
+ agentId = input(/* @ts-ignore */
7834
+ ...(ngDevMode ? [undefined, { debugName: "agentId" }] : /* istanbul ignore next */ []));
7835
+ resolveRender(message) {
7836
+ const agentId = this.agentId();
7837
+ const renderer = pickActivityRenderer({
7838
+ activityType: message.activityType,
7839
+ agentId,
7840
+ renderers: this.#copilotKit.activityMessageRenderConfigs(),
7841
+ });
7842
+ if (!renderer)
7843
+ return undefined;
7844
+ const parseResult = renderer.content.safeParse(message.content);
7845
+ if (parseResult.success === false) {
7846
+ console.warn(`Failed to parse content for activity message '${message.activityType}':`, parseResult.error);
7847
+ return undefined;
7848
+ }
7849
+ return {
7850
+ component: renderer.component,
7851
+ inputs: {
7852
+ activityType: message.activityType,
7853
+ content: parseResult.data,
7854
+ message,
7855
+ agent: agentId ? this.#copilotKit.getAgent(agentId) : undefined,
7856
+ },
7857
+ };
7858
+ }
7859
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CopilotActivity, deps: [], target: i0.ɵɵFactoryTarget.Component });
7860
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: CopilotActivity, isStandalone: true, selector: "copilot-activity", inputs: { message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: true, transformFunction: null }, agentId: { classPropertyName: "agentId", publicName: "agentId", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
7861
+ @let render = resolveRender(message());
7862
+ @if (render) {
7863
+ <ng-container *ngComponentOutlet="render.component; inputs: render.inputs" />
7864
+ }
7865
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
7866
+ }
7867
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CopilotActivity, decorators: [{
7868
+ type: Component,
7869
+ args: [{
7870
+ selector: "copilot-activity",
7871
+ imports: [NgComponentOutlet],
7872
+ changeDetection: ChangeDetectionStrategy.Eager,
7873
+ template: `
7874
+ @let render = resolveRender(message());
7875
+ @if (render) {
7876
+ <ng-container *ngComponentOutlet="render.component; inputs: render.inputs" />
7877
+ }
7878
+ `,
7879
+ }]
7880
+ }], propDecorators: { message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: true }] }], agentId: [{ type: i0.Input, args: [{ isSignal: true, alias: "agentId", required: false }] }] } });
7881
+
7865
7882
  /**
7866
7883
  * CopilotChatMessageView component - Angular port of the React component.
7867
7884
  * Renders a list of chat messages with support for custom slots and layouts.
@@ -7932,7 +7949,6 @@ class CopilotChatMessageView {
7932
7949
  defaultUserComponent = CopilotChatUserMessage;
7933
7950
  defaultReasoningComponent = CopilotChatReasoningMessage;
7934
7951
  defaultCursorComponent = CopilotChatMessageViewCursor;
7935
- copilotKit = inject(CopilotKit);
7936
7952
  // Derived values from inputs
7937
7953
  messagesValue = computed(() => this.messages(), /* @ts-ignore */
7938
7954
  ...(ngDevMode ? [{ debugName: "messagesValue" }] : /* istanbul ignore next */ []));
@@ -8006,35 +8022,6 @@ class CopilotChatMessageView {
8006
8022
  trackByMessageId(index, message) {
8007
8023
  return message?.id || `index-${index}`;
8008
8024
  }
8009
- pickActivityRenderer(message) {
8010
- const agentId = this.agentId();
8011
- const renderers = this.copilotKit.activityMessageRenderConfigs();
8012
- const matches = renderers.filter((renderer) => renderer.activityType === message.activityType);
8013
- return (matches.find((candidate) => candidate.agentId === agentId) ??
8014
- matches.find((candidate) => candidate.agentId === undefined) ??
8015
- renderers.find((candidate) => candidate.activityType === "*"));
8016
- }
8017
- resolveActivityRender(message) {
8018
- const renderer = this.pickActivityRenderer(message);
8019
- if (!renderer)
8020
- return undefined;
8021
- const parseResult = renderer.content.safeParse(message.content);
8022
- if (parseResult.success === false) {
8023
- console.warn(`Failed to parse content for activity message '${message.activityType}':`, parseResult.error);
8024
- return undefined;
8025
- }
8026
- const agentId = this.agentId();
8027
- const agent = agentId ? this.copilotKit.getAgent(agentId) : undefined;
8028
- return {
8029
- component: renderer.component,
8030
- inputs: {
8031
- activityType: message.activityType,
8032
- content: parseResult.data,
8033
- message,
8034
- agent,
8035
- },
8036
- };
8037
- }
8038
8025
  // Event handlers - just pass them through
8039
8026
  handleAssistantThumbsUp(event) {
8040
8027
  this.assistantMessageThumbsUp.emit(event);
@@ -8116,13 +8103,7 @@ class CopilotChatMessageView {
8116
8103
  />
8117
8104
  }
8118
8105
  } @else if (message && message.role === "activity") {
8119
- @let activityRender = resolveActivityRender(message);
8120
- @if (activityRender) {
8121
- <ng-container
8122
- [ngComponentOutlet]="activityRender.component"
8123
- [ngComponentOutletInputs]="activityRender.inputs"
8124
- />
8125
- }
8106
+ <copilot-activity [message]="message" [agentId]="agentId()" />
8126
8107
  }
8127
8108
  }
8128
8109
 
@@ -8149,7 +8130,7 @@ class CopilotChatMessageView {
8149
8130
  }
8150
8131
  </div>
8151
8132
  }
8152
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: CopilotSlot, selector: "copilot-slot", inputs: ["slot", "context", "defaultComponent", "outputs"] }, { kind: "component", type: CopilotChatAssistantMessage, selector: "copilot-chat-assistant-message", inputs: ["markdownRendererClass", "toolbarClass", "copyButtonClass", "thumbsUpButtonClass", "thumbsDownButtonClass", "readAloudButtonClass", "regenerateButtonClass", "toolCallsViewClass", "markdownRendererComponent", "toolbarComponent", "copyButtonComponent", "thumbsUpButtonComponent", "thumbsDownButtonComponent", "readAloudButtonComponent", "regenerateButtonComponent", "toolCallsViewComponent", "message", "messages", "agentId", "isLoading", "additionalToolbarItems", "toolbarVisible", "inputClass"], outputs: ["thumbsUp", "thumbsDown", "readAloud", "regenerate"] }, { kind: "component", type: CopilotChatUserMessage, selector: "copilot-chat-user-message", inputs: ["messageRendererClass", "toolbarClass", "copyButtonClass", "editButtonClass", "branchNavigationClass", "messageRendererComponent", "toolbarComponent", "copyButtonComponent", "editButtonComponent", "branchNavigationComponent", "message", "branchIndex", "numberOfBranches", "additionalToolbarItems", "inputClass"], outputs: ["editMessage", "switchToBranch"] }, { kind: "component", type: CopilotChatReasoningMessage, selector: "copilot-chat-reasoning-message", inputs: ["message", "messages", "isRunning", "inputClass"] }, { kind: "component", type: CopilotChatMessageViewCursor, selector: "copilot-chat-message-view-cursor", inputs: ["inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
8133
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CopilotSlot, selector: "copilot-slot", inputs: ["slot", "context", "defaultComponent", "outputs"] }, { kind: "component", type: CopilotChatAssistantMessage, selector: "copilot-chat-assistant-message", inputs: ["markdownRendererClass", "toolbarClass", "copyButtonClass", "thumbsUpButtonClass", "thumbsDownButtonClass", "readAloudButtonClass", "regenerateButtonClass", "toolCallsViewClass", "markdownRendererComponent", "toolbarComponent", "copyButtonComponent", "thumbsUpButtonComponent", "thumbsDownButtonComponent", "readAloudButtonComponent", "regenerateButtonComponent", "toolCallsViewComponent", "message", "messages", "agentId", "isLoading", "additionalToolbarItems", "toolbarVisible", "inputClass"], outputs: ["thumbsUp", "thumbsDown", "readAloud", "regenerate"] }, { kind: "component", type: CopilotChatUserMessage, selector: "copilot-chat-user-message", inputs: ["messageRendererClass", "toolbarClass", "copyButtonClass", "editButtonClass", "branchNavigationClass", "messageRendererComponent", "toolbarComponent", "copyButtonComponent", "editButtonComponent", "branchNavigationComponent", "message", "branchIndex", "numberOfBranches", "additionalToolbarItems", "inputClass"], outputs: ["editMessage", "switchToBranch"] }, { kind: "component", type: CopilotChatReasoningMessage, selector: "copilot-chat-reasoning-message", inputs: ["message", "messages", "isRunning", "inputClass"] }, { kind: "component", type: CopilotChatMessageViewCursor, selector: "copilot-chat-message-view-cursor", inputs: ["inputClass"] }, { kind: "component", type: CopilotActivity, selector: "copilot-activity", inputs: ["message", "agentId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
8153
8134
  }
8154
8135
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CopilotChatMessageView, decorators: [{
8155
8136
  type: Component,
@@ -8158,12 +8139,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
8158
8139
  host: { "data-copilotkit": "" },
8159
8140
  imports: [
8160
8141
  NgTemplateOutlet,
8161
- NgComponentOutlet,
8162
8142
  CopilotSlot,
8163
8143
  CopilotChatAssistantMessage,
8164
8144
  CopilotChatUserMessage,
8165
8145
  CopilotChatReasoningMessage,
8166
8146
  CopilotChatMessageViewCursor,
8147
+ CopilotActivity,
8167
8148
  ],
8168
8149
  changeDetection: ChangeDetectionStrategy.OnPush,
8169
8150
  encapsulation: ViewEncapsulation.None,
@@ -8234,13 +8215,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
8234
8215
  />
8235
8216
  }
8236
8217
  } @else if (message && message.role === "activity") {
8237
- @let activityRender = resolveActivityRender(message);
8238
- @if (activityRender) {
8239
- <ng-container
8240
- [ngComponentOutlet]="activityRender.component"
8241
- [ngComponentOutletInputs]="activityRender.inputs"
8242
- />
8243
- }
8218
+ <copilot-activity [message]="message" [agentId]="agentId()" />
8244
8219
  }
8245
8220
  }
8246
8221
 
@@ -13264,5 +13239,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
13264
13239
  * Generated bundle index. Do not edit.
13265
13240
  */
13266
13241
 
13267
- export { AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME, AgentStore, AudioRecorderError, COPILOT_CHAT_CONFIGURATION, COPILOT_CHAT_CONFIGURATION_OPTIONS, COPILOT_CHAT_DEFAULT_LABELS, COPILOT_CHAT_LABELS, COPILOT_KIT_CONFIG, ChatState, CopilotA2UIActivityRenderer, CopilotA2UIProgress, CopilotA2UIRecovery, CopilotA2UIToolRenderer, CopilotChat, CopilotChatAddFileButton, CopilotChatAssistantMessage, CopilotChatAssistantMessageCopyButton, CopilotChatAssistantMessageReadAloudButton, CopilotChatAssistantMessageRegenerateButton, CopilotChatAssistantMessageRenderer, CopilotChatAssistantMessageThumbsDownButton, CopilotChatAssistantMessageThumbsUpButton, CopilotChatAssistantMessageToolbar, CopilotChatAssistantMessageToolbarButton, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAttachmentsDirective, CopilotChatAudioRecorder, CopilotChatCancelTranscribeButton, CopilotChatConfiguration, CopilotChatFinishTranscribeButton, CopilotChatInput, CopilotChatInputDefaults, CopilotChatMessageView, CopilotChatMessageViewCursor, CopilotChatReasoningMessage, CopilotChatSendButton, CopilotChatStartTranscribeButton, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatTextarea, CopilotChatToolCallsView, CopilotChatToolbar, CopilotChatToolbarButton, CopilotChatToolsMenu, CopilotChatUserMessage, CopilotChatUserMessageBranchNavigation, CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton, CopilotChatUserMessageRenderer, CopilotChatUserMessageToolbar, CopilotChatUserMessageToolbarButton, CopilotChatView, CopilotChatViewDisclaimer, CopilotChatViewFeather, CopilotChatViewHandlers, CopilotChatViewInputContainer, CopilotChatViewInputMeasure, CopilotChatViewScrollToBottomButton, CopilotChatViewScrollView, CopilotDefaultToolRenderer, CopilotKit, CopilotKitAgentContext, CopilotOpenGenerativeUIActivityRenderer, CopilotOpenGenerativeUIRenderer, CopilotOpenGenerativeUIToolRenderer, CopilotPopup, CopilotSidebar, CopilotSlot, CopilotThreadsDrawer, CopilotThreadsDrawerRow, CopilotTooltip, CopilotkitAgentFactory, CopilotkitThreadsFactory, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_DESCRIPTION, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, InterruptController, InterruptExpiredError, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER, OpenGenerativeUIContentSchema, RENDER_A2UI_TOOL_NAME, RenderA2UIArgsSchema, RenderToolCalls, ResizeObserverService, SLOT_CONFIG, ScrollPosition, StickToBottom, ThreadsStore, TooltipContent, TranscriptionError, anyActivityContentSchema, cn, connectAgentContext, createSlotConfig, createSlotRenderer, getSlotConfig, injectAgentStore, injectCapabilities, injectChatConfiguration, injectChatLabels, injectChatState, injectCopilotKitConfig, injectInterrupt, injectMemories, injectThreads, isComponentType, isSlotValue, normalizeSlotValue, parseToolCallArguments, pickToolCallHandler, provideCopilotChatConfiguration, provideCopilotChatLabels, provideCopilotKit, provideSlots, readA2UILifecycleContent, registerComponent, registerFrontendTool, registerHumanInTheLoop, registerRenderActivityMessage, registerRenderToolCall, renderSlot, safeToolValue, transcribeAudio, ɵCOPILOTKIT_BUILT_IN_ACTIVITY_RENDERERS, ɵCOPILOTKIT_INSPECTOR_DEVELOPMENT_MODE };
13242
+ export { AGUI_SEND_STATE_SNAPSHOT_TOOL_NAME, AgentStore, AudioRecorderError, COPILOT_CHAT_CONFIGURATION, COPILOT_CHAT_CONFIGURATION_OPTIONS, COPILOT_CHAT_DEFAULT_LABELS, COPILOT_CHAT_LABELS, COPILOT_KIT_CONFIG, ChatState, CopilotA2UIActivityRenderer, CopilotA2UIProgress, CopilotA2UIRecovery, CopilotA2UIToolRenderer, CopilotActivity, CopilotChat, CopilotChatAddFileButton, CopilotChatAssistantMessage, CopilotChatAssistantMessageCopyButton, CopilotChatAssistantMessageReadAloudButton, CopilotChatAssistantMessageRegenerateButton, CopilotChatAssistantMessageRenderer, CopilotChatAssistantMessageThumbsDownButton, CopilotChatAssistantMessageThumbsUpButton, CopilotChatAssistantMessageToolbar, CopilotChatAssistantMessageToolbarButton, CopilotChatAttachmentQueue, CopilotChatAttachmentRenderer, CopilotChatAttachmentsDirective, CopilotChatAudioRecorder, CopilotChatCancelTranscribeButton, CopilotChatConfiguration, CopilotChatFinishTranscribeButton, CopilotChatInput, CopilotChatInputDefaults, CopilotChatMessageView, CopilotChatMessageViewCursor, CopilotChatReasoningMessage, CopilotChatSendButton, CopilotChatStartTranscribeButton, CopilotChatSuggestionPill, CopilotChatSuggestionView, CopilotChatTextarea, CopilotChatToolCallsView, CopilotChatToolbar, CopilotChatToolbarButton, CopilotChatToolsMenu, CopilotChatUserMessage, CopilotChatUserMessageBranchNavigation, CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton, CopilotChatUserMessageRenderer, CopilotChatUserMessageToolbar, CopilotChatUserMessageToolbarButton, CopilotChatView, CopilotChatViewDisclaimer, CopilotChatViewFeather, CopilotChatViewHandlers, CopilotChatViewInputContainer, CopilotChatViewInputMeasure, CopilotChatViewScrollToBottomButton, CopilotChatViewScrollView, CopilotDefaultToolRenderer, CopilotKit, CopilotKitAgentContext, CopilotOpenGenerativeUIActivityRenderer, CopilotOpenGenerativeUIRenderer, CopilotOpenGenerativeUIToolRenderer, CopilotPopup, CopilotSidebar, CopilotSlot, CopilotThreadsDrawer, CopilotThreadsDrawerRow, CopilotTooltip, CopilotkitAgentFactory, CopilotkitThreadsFactory, DEFAULT_OPEN_GENERATIVE_UI_DESIGN_SKILL, GENERATE_SANDBOXED_UI_DESCRIPTION, GENERATE_SANDBOXED_UI_TOOL_NAME, GenerateSandboxedUiArgsSchema, InterruptController, InterruptExpiredError, OPEN_GENERATIVE_UI_ACTIVITY_TYPE, OPEN_GENERATIVE_UI_WEBSANDBOX_LOADER, OpenGenerativeUIContentSchema, RENDER_A2UI_TOOL_NAME, RenderA2UIArgsSchema, RenderToolCalls, ResizeObserverService, SLOT_CONFIG, ScrollPosition, StickToBottom, ThreadsStore, TooltipContent, TranscriptionError, anyActivityContentSchema, cn, connectAgentContext, createSlotConfig, createSlotRenderer, getSlotConfig, injectAgentStore, injectCapabilities, injectChatConfiguration, injectChatLabels, injectChatState, injectCopilotKitConfig, injectInterrupt, injectMemories, injectThreads, isComponentType, isSlotValue, normalizeSlotValue, parseToolCallArguments, pickToolCallHandler, provideCopilotChatConfiguration, provideCopilotChatLabels, provideCopilotKit, provideSlots, readA2UILifecycleContent, registerComponent, registerFrontendTool, registerHumanInTheLoop, registerRenderActivityMessage, registerRenderToolCall, renderSlot, safeToolValue, transcribeAudio, ɵCOPILOTKIT_BUILT_IN_ACTIVITY_RENDERERS, ɵCOPILOTKIT_INSPECTOR_DEVELOPMENT_MODE };
13268
13243
  //# sourceMappingURL=copilotkit-angular.mjs.map