@crewx/sdk 0.9.0-rc.100 → 0.9.0-rc.102
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
package/dist/facade/Crewx.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { AgentListSnapshot } from '../agent/agent-list-view';
|
|
1
2
|
import { TypedEventEmitter } from '../events/TypedEventEmitter';
|
|
2
3
|
import type { CrewxPlugin } from '../plugin';
|
|
3
4
|
import type { IFsAdapter } from '../platform/IFsAdapter';
|
|
4
5
|
import type { ChannelAdapterRegistration } from '../adapter/types';
|
|
5
6
|
import type { CrewxProjectConfig, AgentConfig, CrewxOptions, QueryOptions, QueryResult, ExecuteOptions, ExecuteResult } from '../types';
|
|
6
|
-
import type { TemplateContext } from '../template/types';
|
|
7
|
+
import type { PromptListResolver, TemplateContext } from '../template/types';
|
|
7
8
|
import type { CustomLayoutDefinition, LayoutCapabilities } from '../layout/types';
|
|
8
9
|
import type { ConversationThreadState, SemanticContinuityContext, TemplateMessage } from '../conversation/types';
|
|
9
10
|
import type { HandlerOptions, CrewxHandler } from '../server/handler';
|
|
@@ -101,6 +102,14 @@ export declare class Crewx extends TypedEventEmitter {
|
|
|
101
102
|
team?: string;
|
|
102
103
|
provider?: string;
|
|
103
104
|
}): AgentConfig[];
|
|
105
|
+
private readonly _promptListProviders;
|
|
106
|
+
registerPromptListProvider(resolver: PromptListResolver): void;
|
|
107
|
+
static readAgentListSnapshot(options: {
|
|
108
|
+
cwd: string;
|
|
109
|
+
env: Record<string, string>;
|
|
110
|
+
configPath?: string;
|
|
111
|
+
}): AgentListSnapshot;
|
|
112
|
+
static createAgentListPromptResolver(configPath?: string): PromptListResolver;
|
|
104
113
|
renderAgentPrompt(agentId: string): string;
|
|
105
114
|
renderPrompt(template: string, context?: TemplateContext): Promise<string>;
|
|
106
115
|
registerLayout(name: string, template: string | CustomLayoutDefinition): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -163,3 +163,6 @@ export type { SyncWindow, AdapterContextOptions } from './adapter/context-builde
|
|
|
163
163
|
export type { ChannelAdapterPluginSpec } from './adapter/plugin-helper';
|
|
164
164
|
export { resolveExecutablePath, resolveWindowsSpawnProgram, materializeWindowsSpawnProgram, resolveWindowsExecutablePath, } from './internal/windows-spawn';
|
|
165
165
|
export type { WindowsSpawnProgram, WindowsSpawnInvocation, ResolveWindowsSpawnProgramParams, } from './internal/windows-spawn';
|
|
166
|
+
export { filterAgentConfigs, formatAgentList } from './agent/agent-list-view';
|
|
167
|
+
export type { AgentListFilters, AgentListSnapshot, AgentListFormatOptions } from './agent/agent-list-view';
|
|
168
|
+
export type { PromptListResolver } from './template/types';
|