@crewx/sdk 0.9.0-rc.100 → 0.9.0-rc.101
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/agent/agent-list-view.d.ts +19 -0
- package/dist/esm/index.js +121 -118
- package/dist/esm/plugins/index.js +46 -46
- package/dist/esm/repository/index.js +51 -51
- package/dist/facade/Crewx.d.ts +10 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +123 -120
- package/dist/lifecycle/task-stop.d.ts +20 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +44 -44
- package/dist/plugins/sqlite-tracing.d.ts +11 -0
- package/dist/repository/index.js +51 -51
- package/dist/repository/task.repository.d.ts +9 -0
- package/dist/template/helpers/exec.browser.d.ts +1 -1
- package/dist/template/helpers/exec.d.ts +1 -1
- package/dist/template/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AgentConfig } from '../types';
|
|
2
|
+
export interface AgentListFilters {
|
|
3
|
+
role?: string;
|
|
4
|
+
team?: string;
|
|
5
|
+
provider?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AgentListSnapshot {
|
|
8
|
+
agents: AgentConfig[];
|
|
9
|
+
total: number;
|
|
10
|
+
configPath: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface AgentListFormatOptions {
|
|
13
|
+
agents: readonly AgentConfig[];
|
|
14
|
+
total: number;
|
|
15
|
+
isFiltered: boolean;
|
|
16
|
+
configPath?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export declare function filterAgentConfigs(agents: readonly AgentConfig[], filters: AgentListFilters): AgentConfig[];
|
|
19
|
+
export declare function formatAgentList(options: AgentListFormatOptions): string;
|