@copilotkitnext/angular 0.0.17 → 0.0.19

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.
@@ -0,0 +1,12 @@
1
+ import { Injector, Signal } from "@angular/core";
2
+ import { Context } from "@ag-ui/client";
3
+ export interface ConnectAgentContextConfig {
4
+ injector?: Injector;
5
+ }
6
+ /**
7
+ * Connects context to the agent.
8
+ *
9
+ * @param context - The context (or a signal of context) to connect to the agent.
10
+ * @param config - Optional configuration for connecting the context.
11
+ */
12
+ export declare function connectAgentContext(context: Context | Signal<Context>, config?: ConnectAgentContextConfig): void;
@@ -47,7 +47,7 @@ export interface FrontendToolConfig<Args extends Record<string, unknown> = Recor
47
47
  name: string;
48
48
  description: string;
49
49
  args: z.ZodType<Args>;
50
- component: Type<ToolRenderer<Args>>;
50
+ component?: Type<ToolRenderer<Args>>;
51
51
  handler: (args: Args) => Promise<unknown>;
52
52
  agentId?: string;
53
53
  }
@@ -8,6 +8,7 @@ export * from "./lib/chat-state";
8
8
  export * from "./lib/scroll-position";
9
9
  export * from "./lib/resize-observer";
10
10
  export * from "./lib/utils";
11
+ export * from "./lib/agent-context";
11
12
  export * from "./lib/slots";
12
13
  export * from "./lib/directives/copilotkit-agent-context";
13
14
  export * from "./lib/directives/stick-to-bottom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkitnext/angular",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Angular library for CopilotKit",
5
5
  "main": "dist/fesm2022/copilotkitnext-angular.mjs",
6
6
  "module": "dist/fesm2022/copilotkitnext-angular.mjs",
@@ -29,8 +29,8 @@
29
29
  "rxjs": "^7.8.1",
30
30
  "tailwind-merge": "^2.6.0",
31
31
  "zod": "^3.22.4",
32
- "@copilotkitnext/core": "0.0.17",
33
- "@copilotkitnext/shared": "0.0.17"
32
+ "@copilotkitnext/core": "0.0.19",
33
+ "@copilotkitnext/shared": "0.0.19"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@angular/cdk": "^18.0.0 || ^19.0.0",
@@ -73,8 +73,8 @@
73
73
  "vite": "^7.1.4",
74
74
  "vitest": "^2.0.5",
75
75
  "zone.js": "^0.14.0",
76
- "@copilotkitnext/typescript-config": "0.0.0",
77
- "@copilotkitnext/eslint-config": "0.0.0"
76
+ "@copilotkitnext/eslint-config": "0.0.0",
77
+ "@copilotkitnext/typescript-config": "0.0.0"
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public"