@copilotkitnext/angular 1.54.1-next.6 → 1.54.1-next.7
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.
- package/.attw.json +3 -9
- package/README.md +6 -6
- package/dist/README.md +6 -6
- package/dist/fesm2022/copilotkitnext-angular.mjs +3 -3
- package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -1
- package/dist/lib/components/chat/copilot-chat-input-defaults.d.ts +1 -1
- package/dist/lib/copilotkit.d.ts +1 -1
- package/dist/lib/tools.d.ts +2 -2
- package/package.json +5 -5
- package/tsconfig.json +3 -3
package/.attw.json
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ignoreRules": [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"untyped-resolution"
|
|
6
|
-
],
|
|
7
|
-
"excludeEntrypoints": [
|
|
8
|
-
"./styles.css"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
2
|
+
"ignoreRules": ["cjs-resolves-to-esm", "no-resolution", "untyped-resolution"],
|
|
3
|
+
"excludeEntrypoints": ["./styles.css"]
|
|
4
|
+
}
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Angular bindings for CopilotKit core and AG-UI agents. This package provides ser
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# npm
|
|
9
|
-
npm install @
|
|
9
|
+
npm install @copilotkit/{core,angular}
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
- `@angular/core` and `@angular/common` (19+)
|
|
@@ -21,7 +21,7 @@ Configure runtime and tools in your app config:
|
|
|
21
21
|
|
|
22
22
|
```ts
|
|
23
23
|
import { ApplicationConfig } from "@angular/core";
|
|
24
|
-
import { provideCopilotKit } from "@
|
|
24
|
+
import { provideCopilotKit } from "@copilotkit/angular";
|
|
25
25
|
|
|
26
26
|
export const appConfig: ApplicationConfig = {
|
|
27
27
|
providers: [
|
|
@@ -40,8 +40,8 @@ export const appConfig: ApplicationConfig = {
|
|
|
40
40
|
```ts
|
|
41
41
|
import { Component, inject, signal } from "@angular/core";
|
|
42
42
|
import { Message } from "@ag-ui/client";
|
|
43
|
-
import { CopilotKit, injectAgentStore } from "@
|
|
44
|
-
import { randomUUID } from "@
|
|
43
|
+
import { CopilotKit, injectAgentStore } from "@copilotkit/angular";
|
|
44
|
+
import { randomUUID } from "@copilotkit/shared";
|
|
45
45
|
|
|
46
46
|
@Component({
|
|
47
47
|
template: `
|
|
@@ -178,7 +178,7 @@ Advanced factory for creating `AgentStore` signals. Most apps should use `inject
|
|
|
178
178
|
Connect AG-UI context to the runtime (auto-cleanup when the effect is destroyed):
|
|
179
179
|
|
|
180
180
|
```ts
|
|
181
|
-
import { connectAgentContext } from "@
|
|
181
|
+
import { connectAgentContext } from "@copilotkit/angular";
|
|
182
182
|
|
|
183
183
|
connectAgentContext({
|
|
184
184
|
description: "User preferences",
|
|
@@ -250,7 +250,7 @@ import {
|
|
|
250
250
|
registerFrontendTool,
|
|
251
251
|
registerRenderToolCall,
|
|
252
252
|
registerHumanInTheLoop,
|
|
253
|
-
} from "@
|
|
253
|
+
} from "@copilotkit/angular";
|
|
254
254
|
import { z } from "zod";
|
|
255
255
|
|
|
256
256
|
registerFrontendTool({
|
package/dist/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Angular bindings for CopilotKit core and AG-UI agents. This package provides ser
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# npm
|
|
9
|
-
npm install @
|
|
9
|
+
npm install @copilotkit/{core,angular}
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
- `@angular/core` and `@angular/common` (19+)
|
|
@@ -21,7 +21,7 @@ Configure runtime and tools in your app config:
|
|
|
21
21
|
|
|
22
22
|
```ts
|
|
23
23
|
import { ApplicationConfig } from "@angular/core";
|
|
24
|
-
import { provideCopilotKit } from "@
|
|
24
|
+
import { provideCopilotKit } from "@copilotkit/angular";
|
|
25
25
|
|
|
26
26
|
export const appConfig: ApplicationConfig = {
|
|
27
27
|
providers: [
|
|
@@ -40,8 +40,8 @@ export const appConfig: ApplicationConfig = {
|
|
|
40
40
|
```ts
|
|
41
41
|
import { Component, inject, signal } from "@angular/core";
|
|
42
42
|
import { Message } from "@ag-ui/client";
|
|
43
|
-
import { CopilotKit, injectAgentStore } from "@
|
|
44
|
-
import { randomUUID } from "@
|
|
43
|
+
import { CopilotKit, injectAgentStore } from "@copilotkit/angular";
|
|
44
|
+
import { randomUUID } from "@copilotkit/shared";
|
|
45
45
|
|
|
46
46
|
@Component({
|
|
47
47
|
template: `
|
|
@@ -178,7 +178,7 @@ Advanced factory for creating `AgentStore` signals. Most apps should use `inject
|
|
|
178
178
|
Connect AG-UI context to the runtime (auto-cleanup when the effect is destroyed):
|
|
179
179
|
|
|
180
180
|
```ts
|
|
181
|
-
import { connectAgentContext } from "@
|
|
181
|
+
import { connectAgentContext } from "@copilotkit/angular";
|
|
182
182
|
|
|
183
183
|
connectAgentContext({
|
|
184
184
|
description: "User preferences",
|
|
@@ -250,7 +250,7 @@ import {
|
|
|
250
250
|
registerFrontendTool,
|
|
251
251
|
registerRenderToolCall,
|
|
252
252
|
registerHumanInTheLoop,
|
|
253
|
-
} from "@
|
|
253
|
+
} from "@copilotkit/angular";
|
|
254
254
|
import { z } from "zod";
|
|
255
255
|
|
|
256
256
|
registerFrontendTool({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, inject, Injectable, Injector, signal, runInInjectionContext, DestroyRef, input, Component, computed, ElementRef, effect, TemplateRef, ViewContainerRef, ViewChild, Inject, ChangeDetectionStrategy, Input, Directive, output, HostListener, ViewEncapsulation, ContentChild, Optional, ChangeDetectorRef, PLATFORM_ID, forwardRef } from '@angular/core';
|
|
3
|
-
import { CopilotKitCoreRuntimeConnectionStatus, CopilotKitCore, ProxiedCopilotRuntimeAgent, completePartialMarkdown } from '@
|
|
3
|
+
import { CopilotKitCoreRuntimeConnectionStatus, CopilotKitCore, ProxiedCopilotRuntimeAgent, completePartialMarkdown } from '@copilotkit/core';
|
|
4
4
|
import { Subject, lastValueFrom, filter, take, BehaviorSubject, merge, fromEvent, animationFrameScheduler } from 'rxjs';
|
|
5
5
|
import * as i1$1 from '@angular/common';
|
|
6
6
|
import { NgComponentOutlet, CommonModule, isPlatformBrowser } from '@angular/common';
|
|
7
|
-
import { partialJSONParse, DEFAULT_AGENT_ID, randomUUID } from '@
|
|
7
|
+
import { partialJSONParse, DEFAULT_AGENT_ID, randomUUID } from '@copilotkit/shared';
|
|
8
8
|
import { startWith, throttleTime, map, distinctUntilChanged, takeUntil, debounceTime, filter as filter$1 } from 'rxjs/operators';
|
|
9
9
|
import * as i1 from '@angular/cdk/scrolling';
|
|
10
10
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
@@ -6507,7 +6507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6507
6507
|
*
|
|
6508
6508
|
* @example
|
|
6509
6509
|
* ```typescript
|
|
6510
|
-
* import { CopilotChatInputDefaults } from '@
|
|
6510
|
+
* import { CopilotChatInputDefaults } from '@copilotkit/angular';
|
|
6511
6511
|
*
|
|
6512
6512
|
* @Component({
|
|
6513
6513
|
standalone: true,
|