@crewx/sdk 0.9.0-rc.127 → 0.9.0-rc.128
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 +213 -211
- package/dist/esm/plugins/index.js +35 -33
- package/dist/esm/publish/index.js +2 -2
- package/dist/esm/repository/index.js +43 -41
- package/dist/index.d.ts +2 -2
- package/dist/index.js +214 -212
- package/dist/mcp-app/discovery.d.ts +16 -1
- package/dist/mcp-app/index.d.ts +2 -2
- package/dist/mcp-app/types.d.ts +3 -1
- package/dist/mcp-app/workspace-snapshot.d.ts +4 -1
- package/dist/plugins/index.js +35 -33
- package/dist/publish/index.js +2 -2
- package/dist/repository/index.d.ts +1 -0
- package/dist/repository/index.js +43 -41
- package/dist/repository/thread.repository.d.ts +19 -0
- package/dist/ui-plugin/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -12,6 +12,24 @@ export interface ThreadCreationOptions {
|
|
|
12
12
|
createdById?: string | null;
|
|
13
13
|
createdByTaskId?: string | null;
|
|
14
14
|
}
|
|
15
|
+
export interface CreateAppLaunchThreadInput {
|
|
16
|
+
threadId: string;
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
platform: string;
|
|
19
|
+
title: string;
|
|
20
|
+
appId: string;
|
|
21
|
+
createdById: string | null;
|
|
22
|
+
initialAgentId?: string;
|
|
23
|
+
}
|
|
24
|
+
export type CreateAppLaunchThreadResult = {
|
|
25
|
+
status: 'created';
|
|
26
|
+
thread: ThreadRow;
|
|
27
|
+
} | {
|
|
28
|
+
status: 'existing';
|
|
29
|
+
thread: ThreadRow;
|
|
30
|
+
} | {
|
|
31
|
+
status: 'conflict';
|
|
32
|
+
};
|
|
15
33
|
export type ThreadOriginFilter = 'direct' | 'delegated' | 'all';
|
|
16
34
|
type ThreadOriginScope = Exclude<ThreadOriginFilter, 'all'>;
|
|
17
35
|
export interface ThreadTitleMetadataPatch {
|
|
@@ -48,6 +66,7 @@ export declare class ThreadRepository extends BaseSqliteRepository {
|
|
|
48
66
|
explainFindAllThreadsPlan(workspaceId?: string, createdByKind?: ThreadActorKind): string[];
|
|
49
67
|
findThreadsByIdsOrTitles(ids: string[], workspaceId?: string): ThreadRow[];
|
|
50
68
|
findThreadById(threadId: string, workspaceId?: string): ThreadRow | undefined;
|
|
69
|
+
createAppLaunchThread(input: CreateAppLaunchThreadInput): CreateAppLaunchThreadResult;
|
|
51
70
|
threadExists(threadId: string, workspaceId?: string): boolean;
|
|
52
71
|
aggregateTaskStats(threadId: string, workspaceId?: string): {
|
|
53
72
|
taskCount: number;
|
|
@@ -130,6 +130,9 @@ export interface UiPluginManifestV2 {
|
|
|
130
130
|
readonly tone?: UiPluginTone;
|
|
131
131
|
readonly entry: 'ui/index.html';
|
|
132
132
|
readonly entryHash?: string;
|
|
133
|
+
readonly runtime?: {
|
|
134
|
+
readonly wasm: true;
|
|
135
|
+
};
|
|
133
136
|
readonly initialState?: {
|
|
134
137
|
readonly path: 'ui/state.json';
|
|
135
138
|
readonly hash?: string;
|