@everworker/oneringai 0.1.3 → 0.1.4
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/README.md +26 -24
- package/dist/{ImageModel-DtN780fU.d.cts → ImageModel-DSY7SNsq.d.cts} +11 -31
- package/dist/{ImageModel-BkAX5Rr5.d.ts → ImageModel-qNJHPh4q.d.ts} +11 -31
- package/dist/Vendor-DYh_bzwo.d.cts +31 -0
- package/dist/Vendor-DYh_bzwo.d.ts +31 -0
- package/dist/capabilities/agents/index.d.cts +1 -1
- package/dist/capabilities/agents/index.d.ts +1 -1
- package/dist/capabilities/images/index.d.cts +2 -1
- package/dist/capabilities/images/index.d.ts +2 -1
- package/dist/{index-BmOYeqU7.d.ts → index-CEp1H4fV.d.ts} +2 -0
- package/dist/{index-DCzFlLoN.d.cts → index-NOV01LWF.d.cts} +2 -0
- package/dist/index.cjs +1437 -353
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +585 -340
- package/dist/index.d.ts +585 -340
- package/dist/index.js +1315 -245
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +1780 -0
- package/dist/shared/index.cjs.map +1 -0
- package/dist/shared/index.d.cts +266 -0
- package/dist/shared/index.d.ts +266 -0
- package/dist/shared/index.js +1760 -0
- package/dist/shared/index.js.map +1 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
- [4. Session Persistence](#4-session-persistence)
|
|
19
19
|
- [5. Working Memory](#5-working-memory)
|
|
20
20
|
- [6. Research with Search Tools](#6-research-with-search-tools)
|
|
21
|
-
- [
|
|
22
|
-
- [
|
|
23
|
-
- [
|
|
24
|
-
- [
|
|
21
|
+
- [7. Context Management](#7-context-management)
|
|
22
|
+
- [8. InContextMemory](#8-incontextmemory)
|
|
23
|
+
- [9. Persistent Instructions](#9-persistent-instructions)
|
|
24
|
+
- [10. Direct LLM Access](#10-direct-llm-access)
|
|
25
25
|
- [11. Audio Capabilities](#11-audio-capabilities)
|
|
26
26
|
- [12. Model Registry](#12-model-registry)
|
|
27
27
|
- [13. Streaming](#13-streaming)
|
|
@@ -605,7 +605,7 @@ await agent.run('Research AI developments in 2026 and store key findings');
|
|
|
605
605
|
- 📝 **Working Memory** - Store findings with priority-based eviction
|
|
606
606
|
- 🏗️ **Tiered Memory** - Raw → Summary → Findings pattern
|
|
607
607
|
|
|
608
|
-
###
|
|
608
|
+
### 7. Context Management
|
|
609
609
|
|
|
610
610
|
**AgentContextNextGen** is the modern, plugin-based context manager. It provides clean separation of concerns with composable plugins:
|
|
611
611
|
|
|
@@ -689,7 +689,7 @@ console.log(budget.available); // Remaining tokens
|
|
|
689
689
|
console.log(budget.utilizationPercent); // Usage percentage
|
|
690
690
|
```
|
|
691
691
|
|
|
692
|
-
###
|
|
692
|
+
### 8. InContextMemory
|
|
693
693
|
|
|
694
694
|
Store key-value pairs **directly in context** for instant LLM access without retrieval calls:
|
|
695
695
|
|
|
@@ -722,7 +722,7 @@ const state = plugin.get('current_state'); // { step: 2, status: 'active' }
|
|
|
722
722
|
|
|
723
723
|
**Use cases:** Session state, user preferences, counters, flags, small accumulated results.
|
|
724
724
|
|
|
725
|
-
###
|
|
725
|
+
### 9. Persistent Instructions
|
|
726
726
|
|
|
727
727
|
Store agent-level custom instructions that persist across sessions on disk:
|
|
728
728
|
|
|
@@ -758,7 +758,7 @@ const agent = Agent.create({
|
|
|
758
758
|
|
|
759
759
|
**Use cases:** Agent personality/behavior, user preferences, learned rules, tool usage patterns.
|
|
760
760
|
|
|
761
|
-
###
|
|
761
|
+
### 10. Direct LLM Access
|
|
762
762
|
|
|
763
763
|
Bypass all context management for simple, stateless LLM calls:
|
|
764
764
|
|
|
@@ -973,7 +973,8 @@ Connector.create({
|
|
|
973
973
|
});
|
|
974
974
|
|
|
975
975
|
// Generate tools from the connector
|
|
976
|
-
//
|
|
976
|
+
// GitHub connectors get 7 dedicated tools + generic API automatically:
|
|
977
|
+
// search_files, search_code, read_file, get_pr, pr_files, pr_comments, create_pr
|
|
977
978
|
const tools = ConnectorTools.for('github');
|
|
978
979
|
|
|
979
980
|
// Use with an agent
|
|
@@ -983,12 +984,13 @@ const agent = Agent.create({
|
|
|
983
984
|
tools: tools,
|
|
984
985
|
});
|
|
985
986
|
|
|
986
|
-
await agent.run('
|
|
987
|
+
await agent.run('Find all TypeScript files in src/ and show me the entry point');
|
|
988
|
+
await agent.run('Show me PR #42 and summarize the review comments');
|
|
987
989
|
```
|
|
988
990
|
|
|
989
991
|
**Supported Services (35+):**
|
|
990
992
|
- **Communication**: Slack, Discord, Microsoft Teams, Twilio
|
|
991
|
-
- **Development**: GitHub
|
|
993
|
+
- **Development**: GitHub *(7 built-in tools)*, GitLab, Jira, Linear, Bitbucket
|
|
992
994
|
- **Productivity**: Notion, Asana, Monday, Airtable, Trello
|
|
993
995
|
- **CRM**: Salesforce, HubSpot, Zendesk, Intercom
|
|
994
996
|
- **Payments**: Stripe, PayPal, Square
|
|
@@ -1225,21 +1227,21 @@ See [MCP_INTEGRATION.md](./MCP_INTEGRATION.md) for complete documentation.
|
|
|
1225
1227
|
|
|
1226
1228
|
```bash
|
|
1227
1229
|
# Basic examples
|
|
1228
|
-
npm run example:
|
|
1229
|
-
npm run example:
|
|
1230
|
+
npm run example:text # Simple text generation
|
|
1231
|
+
npm run example:agent # Basic agent with tools
|
|
1232
|
+
npm run example:conversation # Multi-turn conversation
|
|
1233
|
+
npm run example:chat # Interactive chat
|
|
1230
1234
|
npm run example:vision # Image analysis
|
|
1231
|
-
npm run example:
|
|
1235
|
+
npm run example:providers # Multi-provider comparison
|
|
1232
1236
|
|
|
1233
|
-
#
|
|
1234
|
-
npm run example:
|
|
1237
|
+
# Tools and hooks
|
|
1238
|
+
npm run example:json-tool # JSON manipulation tool
|
|
1239
|
+
npm run example:hooks # Agent lifecycle hooks
|
|
1240
|
+
npm run example:web # Web research agent
|
|
1235
1241
|
|
|
1236
|
-
#
|
|
1237
|
-
npm run example:
|
|
1238
|
-
npm run example:
|
|
1239
|
-
npm run example:planning-agent # AI-driven planning
|
|
1240
|
-
|
|
1241
|
-
# Context management
|
|
1242
|
-
npm run example:context-management # All strategies demo
|
|
1242
|
+
# OAuth examples
|
|
1243
|
+
npm run example:oauth # OAuth demo
|
|
1244
|
+
npm run example:oauth-registry # OAuth registry
|
|
1243
1245
|
```
|
|
1244
1246
|
|
|
1245
1247
|
## Development
|
|
@@ -1301,4 +1303,4 @@ MIT License - See [LICENSE](./LICENSE) file.
|
|
|
1301
1303
|
|
|
1302
1304
|
---
|
|
1303
1305
|
|
|
1304
|
-
**Version:** 0.1.
|
|
1306
|
+
**Version:** 0.1.4 | **Last Updated:** 2026-02-08 | **[User Guide](./USER_GUIDE.md)** | **[API Reference](./API_REFERENCE.md)** | **[Changelog](./CHANGELOG.md)**
|
|
@@ -1,35 +1,6 @@
|
|
|
1
|
+
import { V as Vendor } from './Vendor-DYh_bzwo.cjs';
|
|
1
2
|
import { I as IProvider } from './IProvider-BP49c93d.cjs';
|
|
2
3
|
|
|
3
|
-
/**
|
|
4
|
-
* Supported AI Vendors
|
|
5
|
-
*
|
|
6
|
-
* Use this enum instead of string literals for type safety.
|
|
7
|
-
* These map to specific provider implementations.
|
|
8
|
-
*/
|
|
9
|
-
declare const Vendor: {
|
|
10
|
-
readonly OpenAI: "openai";
|
|
11
|
-
readonly Anthropic: "anthropic";
|
|
12
|
-
readonly Google: "google";
|
|
13
|
-
readonly GoogleVertex: "google-vertex";
|
|
14
|
-
readonly Groq: "groq";
|
|
15
|
-
readonly Together: "together";
|
|
16
|
-
readonly Perplexity: "perplexity";
|
|
17
|
-
readonly Grok: "grok";
|
|
18
|
-
readonly DeepSeek: "deepseek";
|
|
19
|
-
readonly Mistral: "mistral";
|
|
20
|
-
readonly Ollama: "ollama";
|
|
21
|
-
readonly Custom: "custom";
|
|
22
|
-
};
|
|
23
|
-
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
24
|
-
/**
|
|
25
|
-
* All vendor values as array (useful for validation)
|
|
26
|
-
*/
|
|
27
|
-
declare const VENDORS: ("openai" | "anthropic" | "google" | "google-vertex" | "groq" | "together" | "perplexity" | "grok" | "deepseek" | "mistral" | "ollama" | "custom")[];
|
|
28
|
-
/**
|
|
29
|
-
* Check if a string is a valid vendor
|
|
30
|
-
*/
|
|
31
|
-
declare function isVendor(value: string): value is Vendor;
|
|
32
|
-
|
|
33
4
|
/**
|
|
34
5
|
* Connector - Represents authenticated connection to ANY API
|
|
35
6
|
*
|
|
@@ -72,6 +43,8 @@ interface OAuthConnectorAuth {
|
|
|
72
43
|
audience?: string;
|
|
73
44
|
refreshBeforeExpiry?: number;
|
|
74
45
|
storageKey?: string;
|
|
46
|
+
/** Vendor-specific extra credentials */
|
|
47
|
+
extra?: Record<string, string>;
|
|
75
48
|
}
|
|
76
49
|
/**
|
|
77
50
|
* Static API key authentication
|
|
@@ -82,6 +55,11 @@ interface APIKeyConnectorAuth {
|
|
|
82
55
|
apiKey: string;
|
|
83
56
|
headerName?: string;
|
|
84
57
|
headerPrefix?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Vendor-specific extra credentials beyond the primary API key.
|
|
60
|
+
* E.g., Slack Socket Mode needs { appToken: 'xapp-...', signingSecret: '...' }
|
|
61
|
+
*/
|
|
62
|
+
extra?: Record<string, string>;
|
|
85
63
|
}
|
|
86
64
|
/**
|
|
87
65
|
* JWT Bearer token authentication
|
|
@@ -97,6 +75,8 @@ interface JWTConnectorAuth {
|
|
|
97
75
|
issuer?: string;
|
|
98
76
|
subject?: string;
|
|
99
77
|
audience?: string;
|
|
78
|
+
/** Vendor-specific extra credentials */
|
|
79
|
+
extra?: Record<string, string>;
|
|
100
80
|
}
|
|
101
81
|
/**
|
|
102
82
|
* Complete connector configuration
|
|
@@ -835,4 +815,4 @@ declare function getImageModelsWithFeature(feature: keyof IImageModelDescription
|
|
|
835
815
|
*/
|
|
836
816
|
declare function calculateImageCost(modelName: string, imageCount: number, quality?: 'standard' | 'hd'): number | null;
|
|
837
817
|
|
|
838
|
-
export { type AudioFormat as A, type
|
|
818
|
+
export { type AudioFormat as A, type ImageResponse as B, type ConnectorAccessContext as C, type AspectRatio$1 as D, type OutputFormat as E, type ISourceLinks as F, DEFAULT_CONNECTOR_TIMEOUT as G, DEFAULT_MAX_RETRIES as H, type IConnectorRegistry as I, type JWTConnectorAuth as J, DEFAULT_RETRYABLE_STATUSES as K, DEFAULT_BASE_DELAY_MS as L, DEFAULT_MAX_DELAY_MS as M, type OAuthConnectorAuth as O, type QualityLevel as Q, type StoredToken as S, type VendorOptionSchema as V, type IConnectorAccessPolicy as a, Connector as b, type IBaseModelDescription as c, type IImageProvider as d, type ConnectorFetchOptions as e, type ITokenStorage as f, type ConnectorConfig as g, type ConnectorAuth as h, type ConnectorConfigResult as i, ImageGeneration as j, type ImageGenerationCreateOptions as k, type SimpleGenerateOptions as l, type APIKeyConnectorAuth as m, type IImageModelDescription as n, type ImageModelCapabilities as o, type ImageModelPricing as p, IMAGE_MODELS as q, IMAGE_MODEL_REGISTRY as r, getImageModelInfo as s, getImageModelsByVendor as t, getActiveImageModels as u, getImageModelsWithFeature as v, calculateImageCost as w, type ImageGenerateOptions as x, type ImageEditOptions as y, type ImageVariationOptions as z };
|
|
@@ -1,35 +1,6 @@
|
|
|
1
|
+
import { V as Vendor } from './Vendor-DYh_bzwo.js';
|
|
1
2
|
import { I as IProvider } from './IProvider-BP49c93d.js';
|
|
2
3
|
|
|
3
|
-
/**
|
|
4
|
-
* Supported AI Vendors
|
|
5
|
-
*
|
|
6
|
-
* Use this enum instead of string literals for type safety.
|
|
7
|
-
* These map to specific provider implementations.
|
|
8
|
-
*/
|
|
9
|
-
declare const Vendor: {
|
|
10
|
-
readonly OpenAI: "openai";
|
|
11
|
-
readonly Anthropic: "anthropic";
|
|
12
|
-
readonly Google: "google";
|
|
13
|
-
readonly GoogleVertex: "google-vertex";
|
|
14
|
-
readonly Groq: "groq";
|
|
15
|
-
readonly Together: "together";
|
|
16
|
-
readonly Perplexity: "perplexity";
|
|
17
|
-
readonly Grok: "grok";
|
|
18
|
-
readonly DeepSeek: "deepseek";
|
|
19
|
-
readonly Mistral: "mistral";
|
|
20
|
-
readonly Ollama: "ollama";
|
|
21
|
-
readonly Custom: "custom";
|
|
22
|
-
};
|
|
23
|
-
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
24
|
-
/**
|
|
25
|
-
* All vendor values as array (useful for validation)
|
|
26
|
-
*/
|
|
27
|
-
declare const VENDORS: ("openai" | "anthropic" | "google" | "google-vertex" | "groq" | "together" | "perplexity" | "grok" | "deepseek" | "mistral" | "ollama" | "custom")[];
|
|
28
|
-
/**
|
|
29
|
-
* Check if a string is a valid vendor
|
|
30
|
-
*/
|
|
31
|
-
declare function isVendor(value: string): value is Vendor;
|
|
32
|
-
|
|
33
4
|
/**
|
|
34
5
|
* Connector - Represents authenticated connection to ANY API
|
|
35
6
|
*
|
|
@@ -72,6 +43,8 @@ interface OAuthConnectorAuth {
|
|
|
72
43
|
audience?: string;
|
|
73
44
|
refreshBeforeExpiry?: number;
|
|
74
45
|
storageKey?: string;
|
|
46
|
+
/** Vendor-specific extra credentials */
|
|
47
|
+
extra?: Record<string, string>;
|
|
75
48
|
}
|
|
76
49
|
/**
|
|
77
50
|
* Static API key authentication
|
|
@@ -82,6 +55,11 @@ interface APIKeyConnectorAuth {
|
|
|
82
55
|
apiKey: string;
|
|
83
56
|
headerName?: string;
|
|
84
57
|
headerPrefix?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Vendor-specific extra credentials beyond the primary API key.
|
|
60
|
+
* E.g., Slack Socket Mode needs { appToken: 'xapp-...', signingSecret: '...' }
|
|
61
|
+
*/
|
|
62
|
+
extra?: Record<string, string>;
|
|
85
63
|
}
|
|
86
64
|
/**
|
|
87
65
|
* JWT Bearer token authentication
|
|
@@ -97,6 +75,8 @@ interface JWTConnectorAuth {
|
|
|
97
75
|
issuer?: string;
|
|
98
76
|
subject?: string;
|
|
99
77
|
audience?: string;
|
|
78
|
+
/** Vendor-specific extra credentials */
|
|
79
|
+
extra?: Record<string, string>;
|
|
100
80
|
}
|
|
101
81
|
/**
|
|
102
82
|
* Complete connector configuration
|
|
@@ -835,4 +815,4 @@ declare function getImageModelsWithFeature(feature: keyof IImageModelDescription
|
|
|
835
815
|
*/
|
|
836
816
|
declare function calculateImageCost(modelName: string, imageCount: number, quality?: 'standard' | 'hd'): number | null;
|
|
837
817
|
|
|
838
|
-
export { type AudioFormat as A, type
|
|
818
|
+
export { type AudioFormat as A, type ImageResponse as B, type ConnectorAccessContext as C, type AspectRatio$1 as D, type OutputFormat as E, type ISourceLinks as F, DEFAULT_CONNECTOR_TIMEOUT as G, DEFAULT_MAX_RETRIES as H, type IConnectorRegistry as I, type JWTConnectorAuth as J, DEFAULT_RETRYABLE_STATUSES as K, DEFAULT_BASE_DELAY_MS as L, DEFAULT_MAX_DELAY_MS as M, type OAuthConnectorAuth as O, type QualityLevel as Q, type StoredToken as S, type VendorOptionSchema as V, type IConnectorAccessPolicy as a, Connector as b, type IBaseModelDescription as c, type IImageProvider as d, type ConnectorFetchOptions as e, type ITokenStorage as f, type ConnectorConfig as g, type ConnectorAuth as h, type ConnectorConfigResult as i, ImageGeneration as j, type ImageGenerationCreateOptions as k, type SimpleGenerateOptions as l, type APIKeyConnectorAuth as m, type IImageModelDescription as n, type ImageModelCapabilities as o, type ImageModelPricing as p, IMAGE_MODELS as q, IMAGE_MODEL_REGISTRY as r, getImageModelInfo as s, getImageModelsByVendor as t, getActiveImageModels as u, getImageModelsWithFeature as v, calculateImageCost as w, type ImageGenerateOptions as x, type ImageEditOptions as y, type ImageVariationOptions as z };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported AI Vendors
|
|
3
|
+
*
|
|
4
|
+
* Use this enum instead of string literals for type safety.
|
|
5
|
+
* These map to specific provider implementations.
|
|
6
|
+
*/
|
|
7
|
+
declare const Vendor: {
|
|
8
|
+
readonly OpenAI: "openai";
|
|
9
|
+
readonly Anthropic: "anthropic";
|
|
10
|
+
readonly Google: "google";
|
|
11
|
+
readonly GoogleVertex: "google-vertex";
|
|
12
|
+
readonly Groq: "groq";
|
|
13
|
+
readonly Together: "together";
|
|
14
|
+
readonly Perplexity: "perplexity";
|
|
15
|
+
readonly Grok: "grok";
|
|
16
|
+
readonly DeepSeek: "deepseek";
|
|
17
|
+
readonly Mistral: "mistral";
|
|
18
|
+
readonly Ollama: "ollama";
|
|
19
|
+
readonly Custom: "custom";
|
|
20
|
+
};
|
|
21
|
+
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
22
|
+
/**
|
|
23
|
+
* All vendor values as array (useful for validation)
|
|
24
|
+
*/
|
|
25
|
+
declare const VENDORS: ("openai" | "anthropic" | "google" | "google-vertex" | "groq" | "together" | "perplexity" | "grok" | "deepseek" | "mistral" | "ollama" | "custom")[];
|
|
26
|
+
/**
|
|
27
|
+
* Check if a string is a valid vendor
|
|
28
|
+
*/
|
|
29
|
+
declare function isVendor(value: string): value is Vendor;
|
|
30
|
+
|
|
31
|
+
export { Vendor as V, VENDORS as a, isVendor as i };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported AI Vendors
|
|
3
|
+
*
|
|
4
|
+
* Use this enum instead of string literals for type safety.
|
|
5
|
+
* These map to specific provider implementations.
|
|
6
|
+
*/
|
|
7
|
+
declare const Vendor: {
|
|
8
|
+
readonly OpenAI: "openai";
|
|
9
|
+
readonly Anthropic: "anthropic";
|
|
10
|
+
readonly Google: "google";
|
|
11
|
+
readonly GoogleVertex: "google-vertex";
|
|
12
|
+
readonly Groq: "groq";
|
|
13
|
+
readonly Together: "together";
|
|
14
|
+
readonly Perplexity: "perplexity";
|
|
15
|
+
readonly Grok: "grok";
|
|
16
|
+
readonly DeepSeek: "deepseek";
|
|
17
|
+
readonly Mistral: "mistral";
|
|
18
|
+
readonly Ollama: "ollama";
|
|
19
|
+
readonly Custom: "custom";
|
|
20
|
+
};
|
|
21
|
+
type Vendor = (typeof Vendor)[keyof typeof Vendor];
|
|
22
|
+
/**
|
|
23
|
+
* All vendor values as array (useful for validation)
|
|
24
|
+
*/
|
|
25
|
+
declare const VENDORS: ("openai" | "anthropic" | "google" | "google-vertex" | "groq" | "together" | "perplexity" | "grok" | "deepseek" | "mistral" | "ollama" | "custom")[];
|
|
26
|
+
/**
|
|
27
|
+
* Check if a string is a valid vendor
|
|
28
|
+
*/
|
|
29
|
+
declare function isVendor(value: string): value is Vendor;
|
|
30
|
+
|
|
31
|
+
export { Vendor as V, VENDORS as a, isVendor as i };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { aD as AfterToolContext, av as AgentEventName, A as AgentEvents, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, m as AuditEntry, aC as BeforeToolContext, aI as ExecutionCompleteEvent, aw as ExecutionConfig, E as ExecutionContext, l as ExecutionMetrics, aH as ExecutionStartEvent, j as HistoryMode, aA as Hook, H as HookConfig, au as HookManager, az as HookName, aL as LLMRequestEvent, aM as LLMResponseEvent, aB as ModifyingHook, aK as ToolCompleteEvent, aF as ToolModification, aJ as ToolStartEvent } from '../../index-
|
|
1
|
+
export { aD as AfterToolContext, av as AgentEventName, A as AgentEvents, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, m as AuditEntry, aC as BeforeToolContext, aI as ExecutionCompleteEvent, aw as ExecutionConfig, E as ExecutionContext, l as ExecutionMetrics, aH as ExecutionStartEvent, j as HistoryMode, aA as Hook, H as HookConfig, au as HookManager, az as HookName, aL as LLMRequestEvent, aM as LLMResponseEvent, aB as ModifyingHook, aK as ToolCompleteEvent, aF as ToolModification, aJ as ToolStartEvent } from '../../index-NOV01LWF.cjs';
|
|
2
2
|
import '../../IProvider-BP49c93d.cjs';
|
|
3
3
|
import 'eventemitter3';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { aD as AfterToolContext, av as AgentEventName, A as AgentEvents, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, m as AuditEntry, aC as BeforeToolContext, aI as ExecutionCompleteEvent, aw as ExecutionConfig, E as ExecutionContext, l as ExecutionMetrics, aH as ExecutionStartEvent, j as HistoryMode, aA as Hook, H as HookConfig, au as HookManager, az as HookName, aL as LLMRequestEvent, aM as LLMResponseEvent, aB as ModifyingHook, aK as ToolCompleteEvent, aF as ToolModification, aJ as ToolStartEvent } from '../../index-
|
|
1
|
+
export { aD as AfterToolContext, av as AgentEventName, A as AgentEvents, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, m as AuditEntry, aC as BeforeToolContext, aI as ExecutionCompleteEvent, aw as ExecutionConfig, E as ExecutionContext, l as ExecutionMetrics, aH as ExecutionStartEvent, j as HistoryMode, aA as Hook, H as HookConfig, au as HookManager, az as HookName, aL as LLMRequestEvent, aM as LLMResponseEvent, aB as ModifyingHook, aK as ToolCompleteEvent, aF as ToolModification, aJ as ToolStartEvent } from '../../index-CEp1H4fV.js';
|
|
2
2
|
import '../../IProvider-BP49c93d.js';
|
|
3
3
|
import 'eventemitter3';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { y as ImageEditOptions, x as ImageGenerateOptions, j as ImageGeneration, k as ImageGenerationCreateOptions, B as ImageResponse, z as ImageVariationOptions, l as SimpleGenerateOptions } from '../../ImageModel-DSY7SNsq.cjs';
|
|
2
|
+
import '../../Vendor-DYh_bzwo.cjs';
|
|
2
3
|
import '../../IProvider-BP49c93d.cjs';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { y as ImageEditOptions, x as ImageGenerateOptions, j as ImageGeneration, k as ImageGenerationCreateOptions, B as ImageResponse, z as ImageVariationOptions, l as SimpleGenerateOptions } from '../../ImageModel-qNJHPh4q.js';
|
|
2
|
+
import '../../Vendor-DYh_bzwo.js';
|
|
2
3
|
import '../../IProvider-BP49c93d.js';
|
|
@@ -268,6 +268,8 @@ interface ToolContext {
|
|
|
268
268
|
agentId?: string;
|
|
269
269
|
/** Task ID (if running in TaskAgent) */
|
|
270
270
|
taskId?: string;
|
|
271
|
+
/** User ID — set by host app via agent.tools.setToolContext() for per-user operations */
|
|
272
|
+
userId?: string;
|
|
271
273
|
/** Working memory access (if agent has memory feature enabled) */
|
|
272
274
|
memory?: WorkingMemoryAccess;
|
|
273
275
|
/** Abort signal for cancellation */
|
|
@@ -268,6 +268,8 @@ interface ToolContext {
|
|
|
268
268
|
agentId?: string;
|
|
269
269
|
/** Task ID (if running in TaskAgent) */
|
|
270
270
|
taskId?: string;
|
|
271
|
+
/** User ID — set by host app via agent.tools.setToolContext() for per-user operations */
|
|
272
|
+
userId?: string;
|
|
271
273
|
/** Working memory access (if agent has memory feature enabled) */
|
|
272
274
|
memory?: WorkingMemoryAccess;
|
|
273
275
|
/** Abort signal for cancellation */
|