@crewx/sdk 0.9.0-rc.84 → 0.9.0-rc.85
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/esm/index.js +81 -81
- package/dist/facade/Crewx.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +86 -86
- package/dist/remote/execution-profile.d.ts +9 -0
- package/dist/remote/index.d.ts +1 -0
- package/dist/remote/types.d.ts +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AgentExecutionProfile } from './types.js';
|
|
2
|
+
export declare function resolveAgentExecutionProfiles(input: {
|
|
3
|
+
location: string;
|
|
4
|
+
targetAgentIds: string[];
|
|
5
|
+
}): Map<string, AgentExecutionProfile>;
|
|
6
|
+
export declare function resolveAgentExecutionProfile(input: {
|
|
7
|
+
location: string;
|
|
8
|
+
targetAgentId: string;
|
|
9
|
+
}): AgentExecutionProfile;
|
package/dist/remote/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export { RemoteAgentManager } from './remote-agent-manager.js';
|
|
|
5
5
|
export type { RemoteAgentManagerOptions } from './remote-agent-manager.js';
|
|
6
6
|
export { RemoteProviderRuntime, createRemoteProviderFactory, resolveFileRemoteAgent } from './remote-provider.js';
|
|
7
7
|
export type { ProviderFactoryFn, FileRemoteResolution, FileRemoteResolver } from './remote-provider.js';
|
|
8
|
+
export { resolveAgentExecutionProfile, resolveAgentExecutionProfiles, } from './execution-profile.js';
|
package/dist/remote/types.d.ts
CHANGED
|
@@ -44,6 +44,34 @@ export interface RemoteProviderConfig {
|
|
|
44
44
|
apiKey?: string;
|
|
45
45
|
headers?: Record<string, string>;
|
|
46
46
|
}
|
|
47
|
+
export type AgentExecutionProfileStatus = 'resolved' | 'pending' | 'unavailable';
|
|
48
|
+
export type AgentExecutionProfileErrorCode = 'TARGET_NOT_FOUND' | 'TARGET_AGENT_NOT_FOUND' | 'TARGET_NO_PROVIDER' | 'CHAINED_REMOTE' | 'TARGET_PARSE_FAILED' | 'TRANSPORT_ERROR';
|
|
49
|
+
export interface AgentExecutionProfileSlot {
|
|
50
|
+
provider?: string;
|
|
51
|
+
model?: string;
|
|
52
|
+
effort?: string;
|
|
53
|
+
overdrive?: {
|
|
54
|
+
provider: string;
|
|
55
|
+
model: string;
|
|
56
|
+
mode?: string;
|
|
57
|
+
effort?: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export interface AgentExecutionProfile {
|
|
61
|
+
status: AgentExecutionProfileStatus;
|
|
62
|
+
location?: string;
|
|
63
|
+
agentId?: string;
|
|
64
|
+
provider?: string;
|
|
65
|
+
model?: string;
|
|
66
|
+
options?: {
|
|
67
|
+
query?: AgentExecutionProfileSlot;
|
|
68
|
+
execute?: AgentExecutionProfileSlot;
|
|
69
|
+
};
|
|
70
|
+
error?: {
|
|
71
|
+
code: AgentExecutionProfileErrorCode;
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
47
75
|
export interface RemoteAgentQueryRequest {
|
|
48
76
|
agentId: string;
|
|
49
77
|
query: string;
|