@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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.127",
3
+ "version": "0.9.0-rc.128",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"