@looopy-ai/core 2.1.13 → 2.1.15

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.
@@ -3,7 +3,7 @@ import z from 'zod';
3
3
  import type { AnyEvent, ExecutionContext, Plugin } from '../types';
4
4
  import type { ToolCall, ToolDefinition } from '../types/tools';
5
5
  export type HeaderFactory<AuthContext> = (context: ExecutionContext<AuthContext>, card: AgentCard) => Promise<Record<string, string | undefined>>;
6
- declare const cardSchema: z.ZodObject<{
6
+ export declare const cardSchema: z.ZodObject<{
7
7
  name: z.ZodString;
8
8
  description: z.ZodOptional<z.ZodString>;
9
9
  url: z.ZodURL;
@@ -13,12 +13,11 @@ declare const cardSchema: z.ZodObject<{
13
13
  description: z.ZodOptional<z.ZodString>;
14
14
  }, z.core.$strip>>>;
15
15
  auth: z.ZodOptional<z.ZodObject<{
16
- issuer: z.ZodString;
17
- audience: z.ZodString;
16
+ token_endpoint: z.ZodString;
18
17
  scopes: z.ZodArray<z.ZodString>;
19
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
20
19
  }, z.core.$strip>;
21
- type AgentCard = z.infer<typeof cardSchema>;
20
+ export type AgentCard = z.infer<typeof cardSchema>;
22
21
  export declare class AgentToolProvider<AuthContext> implements Plugin<AuthContext> {
23
22
  readonly card: AgentCard;
24
23
  readonly getHeaders?: HeaderFactory<AuthContext> | undefined;
@@ -33,4 +32,3 @@ export declare class AgentToolProvider<AuthContext> implements Plugin<AuthContex
33
32
  listTools(): Promise<ToolDefinition[]>;
34
33
  executeTool(toolCall: ToolCall, context: ExecutionContext<AuthContext>): Observable<AnyEvent>;
35
34
  }
36
- export {};
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import z from 'zod';
5
5
  import { getLogger } from '../core';
6
6
  import { toolErrorEvent } from './tool-result-events';
7
- const cardSchema = z.object({
7
+ export const cardSchema = z.object({
8
8
  name: z.string(),
9
9
  description: z.string().optional(),
10
10
  url: z.url(),
@@ -17,10 +17,10 @@ const cardSchema = z.object({
17
17
  .optional(),
18
18
  auth: z
19
19
  .object({
20
- issuer: z.string(),
21
- audience: z.string(),
20
+ token_endpoint: z.string(),
22
21
  scopes: z.array(z.string()),
23
22
  })
23
+ .loose()
24
24
  .optional(),
25
25
  });
26
26
  const safeName = (name) => name.replace(/[^a-zA-Z0-9-]+/g, '-').toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@looopy-ai/core",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "description": "RxJS-based AI agent framework",
5
5
  "repository": {
6
6
  "url": "https://github.com/looopy-ai/lib"