@crewx/sdk 0.9.0-rc.107 → 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.
Files changed (48) hide show
  1. package/dist/config/timeout.config.d.ts +1 -0
  2. package/dist/context-budget/index.d.ts +1 -0
  3. package/dist/conversation/sqlite-provider.d.ts +2 -2
  4. package/dist/conversation/types.d.ts +3 -1
  5. package/dist/esm/index.js +246 -208
  6. package/dist/esm/plugins/index.js +95 -57
  7. package/dist/esm/publish/index.js +2 -1
  8. package/dist/esm/repository/index.js +107 -69
  9. package/dist/esm/skills/index.js +1 -0
  10. package/dist/events/types.d.ts +3 -0
  11. package/dist/facade/Crewx.d.ts +5 -2
  12. package/dist/highlight/thread-highlighter.d.ts +12 -12
  13. package/dist/index.browser.d.ts +1 -0
  14. package/dist/index.browser.js +3 -3
  15. package/dist/index.d.ts +7 -5
  16. package/dist/index.js +248 -210
  17. package/dist/mcp-app/catalog.d.ts +7 -0
  18. package/dist/mcp-app/discovery.d.ts +1 -1
  19. package/dist/mcp-app/index.d.ts +2 -0
  20. package/dist/mcp-app/types.d.ts +65 -1
  21. package/dist/migrations/0031_petite_arclight.sql +6 -0
  22. package/dist/migrations/meta/0031_snapshot.json +3251 -0
  23. package/dist/migrations/meta/_journal.json +8 -1
  24. package/dist/plugins/index.js +91 -53
  25. package/dist/provider/bridge.d.ts +2 -1
  26. package/dist/provider/cli/adapter.types.d.ts +1 -0
  27. package/dist/provider/errors.d.ts +4 -1
  28. package/dist/publish/errors.d.ts +7 -0
  29. package/dist/publish/index.d.ts +25 -1
  30. package/dist/publish/index.js +2 -1
  31. package/dist/publish/manifest.d.ts +31 -1
  32. package/dist/publish/pack.d.ts +5 -1
  33. package/dist/publish/secrets.d.ts +1 -1
  34. package/dist/publish/upload.d.ts +1 -0
  35. package/dist/repository/index.d.ts +1 -1
  36. package/dist/repository/index.js +101 -63
  37. package/dist/repository/task.repository.d.ts +11 -0
  38. package/dist/repository/thread.repository.d.ts +26 -3
  39. package/dist/schema/tasks.d.ts +38 -0
  40. package/dist/schema/threads.d.ts +57 -0
  41. package/dist/skills/index.d.ts +7 -0
  42. package/dist/skills/index.js +1 -0
  43. package/dist/skills/types.d.ts +18 -0
  44. package/dist/types/index.d.ts +29 -2
  45. package/dist/ui-instance/index.d.ts +1 -1
  46. package/dist/ui-instance/types.d.ts +6 -0
  47. package/dist/ui-plugin/types.d.ts +3 -0
  48. package/package.json +9 -2
@@ -4,5 +4,6 @@ export interface TimeoutConfig {
4
4
  idleMs: number;
5
5
  }
6
6
  export declare const DEFAULT_IDLE_MS: number;
7
+ export declare const DEFAULT_RESUME_TIMEOUT_MS = 60000;
7
8
  export declare function parseIdleEnvOverride(env?: NodeJS.ProcessEnv): number | undefined;
8
9
  export declare function getProviderTimeoutConfig(env?: NodeJS.ProcessEnv): TimeoutConfig;
@@ -103,6 +103,7 @@ export interface ContextBudgetManifest {
103
103
  highlightLookupFailed: boolean;
104
104
  layoutCapability: ContextBudgetLayoutCapability;
105
105
  overBudget: boolean;
106
+ overdriveProviderSuppressed?: boolean;
106
107
  }
107
108
  export interface TokenCountResult {
108
109
  tokenCount: number;
@@ -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>;