@crewx/sdk 0.9.0-rc.108 → 0.9.0-rc.109
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/conversation/sqlite-provider.d.ts +2 -2
- package/dist/conversation/types.d.ts +3 -1
- package/dist/esm/index.js +232 -211
- package/dist/esm/plugins/index.js +91 -70
- package/dist/esm/publish/index.js +2 -1
- package/dist/esm/repository/index.js +96 -75
- package/dist/esm/skills/index.js +1 -0
- package/dist/events/types.d.ts +3 -0
- package/dist/facade/Crewx.d.ts +3 -0
- package/dist/highlight/thread-highlighter.d.ts +12 -12
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.d.ts +7 -5
- package/dist/index.js +233 -212
- package/dist/mcp-app/catalog.d.ts +7 -0
- package/dist/mcp-app/discovery.d.ts +1 -1
- package/dist/mcp-app/index.d.ts +2 -0
- package/dist/mcp-app/types.d.ts +65 -1
- package/dist/migrations/0031_petite_arclight.sql +6 -0
- package/dist/migrations/meta/0031_snapshot.json +3251 -0
- package/dist/migrations/meta/_journal.json +8 -1
- package/dist/plugins/index.js +86 -65
- package/dist/publish/errors.d.ts +7 -0
- package/dist/publish/index.d.ts +25 -1
- package/dist/publish/index.js +2 -1
- package/dist/publish/manifest.d.ts +31 -1
- package/dist/publish/pack.d.ts +5 -1
- package/dist/publish/secrets.d.ts +1 -1
- package/dist/publish/upload.d.ts +1 -0
- package/dist/repository/index.d.ts +1 -1
- package/dist/repository/index.js +90 -69
- package/dist/repository/task.repository.d.ts +5 -0
- package/dist/repository/thread.repository.d.ts +19 -3
- package/dist/schema/tasks.d.ts +38 -0
- package/dist/schema/threads.d.ts +57 -0
- package/dist/skills/index.d.ts +7 -0
- package/dist/skills/index.js +1 -0
- package/dist/skills/types.d.ts +18 -0
- package/dist/types/index.d.ts +9 -2
- package/dist/ui-instance/index.d.ts +1 -1
- package/dist/ui-instance/types.d.ts +6 -0
- package/dist/ui-plugin/types.d.ts +3 -0
- package/package.json +9 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConversationHighlight, ConversationThread, ConversationThreadState, FetchHistoryOptions, IConversationHistoryProvider, Platform } from './types';
|
|
1
|
+
import type { ConversationHighlight, ConversationThread, ConversationThreadState, FetchHistoryOptions, IConversationHistoryProvider, Platform, ThreadCreationOptions } from './types';
|
|
2
2
|
export declare class SqliteConversationProvider implements IConversationHistoryProvider {
|
|
3
3
|
private readonly dbPath;
|
|
4
4
|
constructor(dbPath?: string);
|
|
@@ -7,7 +7,7 @@ export declare class SqliteConversationProvider implements IConversationHistoryP
|
|
|
7
7
|
updateThread(id: string, patch: {
|
|
8
8
|
title?: string;
|
|
9
9
|
}): void;
|
|
10
|
-
ensureThread(threadId: string, platform: Platform, workspaceId?: string): Promise<{
|
|
10
|
+
ensureThread(threadId: string, platform: Platform, workspaceId?: string, creator?: ThreadCreationOptions): Promise<{
|
|
11
11
|
created: boolean;
|
|
12
12
|
}>;
|
|
13
13
|
fetchHistory(threadId: string, options?: FetchHistoryOptions): Promise<ConversationThread>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ThreadCreationOptions } from '../repository/thread.repository';
|
|
2
|
+
export type { ThreadCreationOptions } from '../repository/thread.repository';
|
|
1
3
|
export interface ConversationMessage {
|
|
2
4
|
id: string;
|
|
3
5
|
userId?: string;
|
|
@@ -78,7 +80,7 @@ export interface FetchHistoryOptions {
|
|
|
78
80
|
currentTraceId?: string;
|
|
79
81
|
}
|
|
80
82
|
export interface IConversationHistoryProvider {
|
|
81
|
-
ensureThread(threadId: string, platform: Platform, workspaceId?: string): Promise<{
|
|
83
|
+
ensureThread(threadId: string, platform: Platform, workspaceId?: string, creator?: ThreadCreationOptions): Promise<{
|
|
82
84
|
created: boolean;
|
|
83
85
|
}>;
|
|
84
86
|
fetchHistory(threadId: string, options?: FetchHistoryOptions): Promise<ConversationThread>;
|