@crewx/sdk 0.8.3-rc.5 → 0.8.3-rc.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/esm/index.js +39 -39
- package/dist/index.d.ts +1 -1
- package/dist/index.js +39 -39
- package/dist/provider/adapter.types.d.ts +2 -0
- package/dist/{parsers → provider/adapters}/agent-call.util.d.ts +1 -1
- package/dist/provider/adapters/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/parsers/claude.parser.d.ts +0 -2
- package/dist/parsers/codex.parser.d.ts +0 -2
- package/dist/parsers/copilot.parser.d.ts +0 -2
- package/dist/parsers/gemini.parser.d.ts +0 -2
- package/dist/parsers/opencode.parser.d.ts +0 -2
- package/dist/parsers/router.d.ts +0 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ProviderQueryOptions, ProviderUsage } from './bridge.js';
|
|
2
|
+
import type { TaskLogEntry } from '../types/task-log.types.js';
|
|
2
3
|
export interface CliProviderAdapter {
|
|
3
4
|
readonly command: string;
|
|
4
5
|
buildArgs(message: string, options: ProviderQueryOptions, isExecute: boolean): {
|
|
@@ -12,6 +13,7 @@ export interface CliProviderAdapter {
|
|
|
12
13
|
usage?: ProviderUsage | null;
|
|
13
14
|
model?: string | null;
|
|
14
15
|
};
|
|
16
|
+
parseEvent?(line: string, timestamp?: string): TaskLogEntry[];
|
|
15
17
|
}
|
|
16
18
|
export declare class RateLimitError extends Error {
|
|
17
19
|
readonly name = "RateLimitError";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TaskLogEntry } from '
|
|
1
|
+
import type { TaskLogEntry } from '../../types/task-log.types';
|
|
2
2
|
export declare function isAgentCallCommand(command: string): boolean;
|
|
3
3
|
export declare function parseAgentCall(timestamp: string, command: string): TaskLogEntry;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { CliProviderAdapter } from '../adapter.types.js';
|
|
2
|
+
import type { TaskLogEntry } from '../../types/task-log.types.js';
|
|
2
3
|
export { claudeAdapter } from './claude.js';
|
|
3
4
|
export { geminiAdapter } from './gemini.js';
|
|
4
5
|
export { copilotAdapter } from './copilot.js';
|
|
5
6
|
export { codexAdapter } from './codex.js';
|
|
6
7
|
export { opencodeAdapter } from './opencode.js';
|
|
8
|
+
export { isAgentCallCommand, parseAgentCall } from './agent-call.util.js';
|
|
7
9
|
export declare const BUILTIN_ADAPTERS: Record<string, CliProviderAdapter>;
|
|
10
|
+
export declare function parseStdoutEvent(timestamp: string, message: string): TaskLogEntry[];
|
package/package.json
CHANGED
package/dist/parsers/router.d.ts
DELETED