@copilotkitnext/angular 1.51.3 → 1.51.4-next.1

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,5 +1,5 @@
1
1
  import { Signal, Type } from "@angular/core";
2
- import { FrontendTool } from "@copilotkitnext/core";
2
+ import { FrontendTool, FrontendToolHandlerContext } from "@copilotkitnext/core";
3
3
  import { z } from "zod";
4
4
  export type AngularToolCall<Args extends Record<string, unknown> = Record<string, unknown>> = {
5
5
  args: Partial<Args>;
@@ -50,7 +50,7 @@ export interface FrontendToolConfig<Args extends Record<string, unknown> = Recor
50
50
  description: string;
51
51
  parameters: z.ZodType<Args>;
52
52
  component?: Type<ToolRenderer<Args>>;
53
- handler: (args: Args) => Promise<unknown>;
53
+ handler: (args: Args, context: FrontendToolHandlerContext) => Promise<unknown>;
54
54
  agentId?: string;
55
55
  }
56
56
  export interface HumanInTheLoopConfig<Args extends Record<string, unknown> = Record<string, unknown>> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkitnext/angular",
3
- "version": "1.51.3",
3
+ "version": "1.51.4-next.1",
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": "1.51.3",
33
- "@copilotkitnext/shared": "1.51.3"
32
+ "@copilotkitnext/core": "1.51.4-next.1",
33
+ "@copilotkitnext/shared": "1.51.4-next.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@angular/cdk": "^18.0.0 || ^19.0.0",
@@ -74,8 +74,8 @@
74
74
  "vite": "^7.1.4",
75
75
  "vitest": "^2.0.5",
76
76
  "zone.js": "^0.14.0",
77
- "@copilotkitnext/eslint-config": "1.51.3",
78
- "@copilotkitnext/typescript-config": "1.51.3"
77
+ "@copilotkitnext/eslint-config": "1.51.4-next.1",
78
+ "@copilotkitnext/typescript-config": "1.51.4-next.1"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public"
package/vitest.config.mts CHANGED
@@ -26,6 +26,8 @@ export default defineConfig(({ mode }) => ({
26
26
  include: ['src/**/*.{spec,test}.{ts,tsx}'],
27
27
  pool: 'threads',
28
28
  poolOptions: { threads: { singleThread: true } },
29
+ reporters: [['default', { summary: false }]],
30
+ silent: true,
29
31
  coverage: {
30
32
  provider: 'v8',
31
33
  reporter: ['text', 'json', 'html'],