@chainfuse/ai-tools 1.1.5 → 1.1.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/dist/base.d.mts CHANGED
@@ -4,6 +4,6 @@ export declare class AiBase {
4
4
  protected _config: AiConfig;
5
5
  constructor(config: AiConfig);
6
6
  get config(): Readonly<Omit<AiConfig, 'backgroundContext'>> & Pick<AiConfig, 'backgroundContext'>;
7
- protected get gatewayName(): "nocost" | "production-passive-human" | "production-passive-bot" | "production-active-human" | "production-active-bot" | "preview-passive-human" | "preview-passive-bot" | "preview-active-human" | "preview-active-bot";
7
+ protected get gatewayName(): "nocost" | "production-passive-user" | "production-passive-bot" | "production-active-user" | "production-active-bot" | "preview-passive-user" | "preview-passive-bot" | "preview-active-user" | "preview-active-bot";
8
8
  protected get gatewayLog(): boolean;
9
9
  }
package/dist/types.d.mts CHANGED
@@ -22,7 +22,7 @@ export interface AiConfig<C extends Pick<ExecutionContext | DurableObjectState,
22
22
  } | {
23
23
  noCost: false;
24
24
  environment: 'production' | 'preview';
25
- user: 'human' | 'bot';
25
+ user: 'user' | 'bot';
26
26
  action: 'passive' | 'active';
27
27
  };
28
28
  providers: AiConfigProviders;
@@ -77,7 +77,7 @@ export type PrivacyRegion = Extract<Servers[number], {
77
77
  */
78
78
  export type AiRequestIdempotencyId = UuidExport['utf8'];
79
79
  export interface AiRequestExecutor {
80
- type: 'worker' | 'queue' | 'workflow' | 'githubCicd';
80
+ type: 'worker' | 'durableObject' | 'queue' | 'workflow' | 'githubCicd';
81
81
  id: string;
82
82
  }
83
83
  export interface AiRequestConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/ai-tools",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/ai-tools#readme",
@@ -66,5 +66,5 @@
66
66
  "@cloudflare/workers-types": "^4.20260113.0",
67
67
  "openai": "^6.16.0"
68
68
  },
69
- "gitHead": "6a0fa4e0bf52f62d7035cad1079ec26f896680d2"
69
+ "gitHead": "800de28050c9e4cbe6e1409dad4312c9e3de4258"
70
70
  }