@crewx/sdk 0.9.0-rc.9 → 0.9.0-rc.91

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 (192) hide show
  1. package/README.md +1 -1
  2. package/dist/account/auth-client.d.ts +61 -0
  3. package/dist/account/auth-json-v2.d.ts +1 -0
  4. package/dist/account/auth-json.d.ts +30 -0
  5. package/dist/account/config.d.ts +8 -0
  6. package/dist/account/errors.d.ts +24 -0
  7. package/dist/account/index.d.ts +10 -0
  8. package/dist/account/index.js +1 -0
  9. package/dist/account/session-manager.d.ts +47 -0
  10. package/dist/activity-log/builder.d.ts +55 -6
  11. package/dist/config/canonicalize-agent-options.d.ts +17 -0
  12. package/dist/config/global-settings.d.ts +33 -0
  13. package/dist/config/migrate-grok-mode.d.ts +6 -0
  14. package/dist/config/model-compat.d.ts +31 -0
  15. package/dist/config/models.generated.d.ts +37 -0
  16. package/dist/config/models.remote.d.ts +1 -0
  17. package/dist/config/overdrive.d.ts +7 -0
  18. package/dist/config/pricing.d.ts +8 -5
  19. package/dist/config/pricing.generated.d.ts +4 -0
  20. package/dist/config/pricing.types.d.ts +4 -10
  21. package/dist/config/timeout.config.d.ts +3 -0
  22. package/dist/config/wi-boards.d.ts +19 -0
  23. package/dist/context-budget/continuity.d.ts +61 -0
  24. package/dist/context-budget/index.d.ts +140 -0
  25. package/dist/conversation/index.d.ts +1 -1
  26. package/dist/conversation/sqlite-provider.d.ts +5 -1
  27. package/dist/conversation/to-template-messages.d.ts +7 -0
  28. package/dist/conversation/types.d.ts +43 -0
  29. package/dist/desktop/command-runner.d.ts +4 -0
  30. package/dist/desktop/default-adapters.d.ts +4 -0
  31. package/dist/desktop/global-install.d.ts +19 -0
  32. package/dist/desktop/index.d.ts +2 -0
  33. package/dist/desktop/index.js +3 -0
  34. package/dist/desktop/install.d.ts +5 -0
  35. package/dist/desktop/lnk.d.ts +22 -0
  36. package/dist/desktop/manifest.d.ts +21 -0
  37. package/dist/desktop/types.d.ts +67 -0
  38. package/dist/desktop/version.d.ts +1 -0
  39. package/dist/desktop/windows-paths.d.ts +21 -0
  40. package/dist/desktop/wrapper.d.ts +18 -0
  41. package/dist/esm/account/index.js +1 -0
  42. package/dist/esm/desktop/index.js +3 -0
  43. package/dist/esm/index.js +354 -99
  44. package/dist/esm/plugins/index.js +213 -103
  45. package/dist/esm/publish/index.js +1 -0
  46. package/dist/esm/repository/index.js +200 -94
  47. package/dist/esm/testing/index.js +1 -1
  48. package/dist/events/types.d.ts +4 -0
  49. package/dist/facade/Crewx.d.ts +40 -2
  50. package/dist/highlight/thread-highlight-prompt.d.ts +2 -0
  51. package/dist/highlight/thread-highlighter.d.ts +326 -0
  52. package/dist/index.browser.d.ts +11 -1
  53. package/dist/index.browser.js +6 -2
  54. package/dist/index.d.ts +73 -11
  55. package/dist/index.js +354 -99
  56. package/dist/internal/console-decoder.d.ts +38 -0
  57. package/dist/internal/windows-spawn.d.ts +10 -0
  58. package/dist/layout/types.d.ts +17 -1
  59. package/dist/local-server/base-url.d.ts +18 -0
  60. package/dist/local-server/index.d.ts +8 -0
  61. package/dist/local-server/opencode.d.ts +8 -0
  62. package/dist/local-server/probe.d.ts +3 -0
  63. package/dist/local-server/runtime.d.ts +26 -0
  64. package/dist/local-server/types.d.ts +43 -0
  65. package/dist/migrations/0008_careful_black_bird.sql +17 -0
  66. package/dist/migrations/0009_hot_dark_phoenix.sql +1 -0
  67. package/dist/migrations/0010_analyze_stats.sql +6 -0
  68. package/dist/migrations/0011_far_black_tarantula.sql +1 -0
  69. package/dist/migrations/0012_blue_turbo.sql +23 -0
  70. package/dist/migrations/0013_hesitant_adam_destine.sql +15 -0
  71. package/dist/migrations/0014_organic_mongu.sql +73 -0
  72. package/dist/migrations/0015_panoramic_gorilla_man.sql +71 -0
  73. package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
  74. package/dist/migrations/0017_project_stage_sdk_migration.sql +29 -0
  75. package/dist/migrations/0018_bored_jackal.sql +33 -0
  76. package/dist/migrations/0019_backfill_task_thread_ids.sql +74 -0
  77. package/dist/migrations/0020_useful_iron_lad.sql +55 -0
  78. package/dist/migrations/0021_dashing_peter_quill.sql +51 -0
  79. package/dist/migrations/0022_wandering_bucky.sql +1 -0
  80. package/dist/migrations/0023_red_payback.sql +1 -0
  81. package/dist/migrations/meta/0008_snapshot.json +1327 -0
  82. package/dist/migrations/meta/0009_snapshot.json +1335 -0
  83. package/dist/migrations/meta/0010_snapshot.json +1335 -0
  84. package/dist/migrations/meta/0011_snapshot.json +1342 -0
  85. package/dist/migrations/meta/0012_snapshot.json +1494 -0
  86. package/dist/migrations/meta/0013_snapshot.json +1592 -0
  87. package/dist/migrations/meta/0014_snapshot.json +1975 -0
  88. package/dist/migrations/meta/0015_snapshot.json +2315 -0
  89. package/dist/migrations/meta/0016_snapshot.json +2419 -0
  90. package/dist/migrations/meta/0017_snapshot.json +2419 -0
  91. package/dist/migrations/meta/0018_snapshot.json +2570 -0
  92. package/dist/migrations/meta/0020_snapshot.json +2895 -0
  93. package/dist/migrations/meta/0021_snapshot.json +3031 -0
  94. package/dist/migrations/meta/0022_snapshot.json +3039 -0
  95. package/dist/migrations/meta/0023_snapshot.json +3047 -0
  96. package/dist/migrations/meta/_journal.json +112 -0
  97. package/dist/paths.d.ts +1 -0
  98. package/dist/plugin/types.d.ts +1 -0
  99. package/dist/plugins/index.js +213 -103
  100. package/dist/plugins/sqlite-tracing.d.ts +23 -0
  101. package/dist/provider/acp/connection.d.ts +6 -0
  102. package/dist/provider/acp/meta.d.ts +11 -0
  103. package/dist/provider/bridge.d.ts +6 -0
  104. package/dist/provider/classify-task-error.d.ts +2 -0
  105. package/dist/provider/cli/adapter.types.d.ts +8 -1
  106. package/dist/provider/cli/adapters/agent-call.util.d.ts +1 -1
  107. package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
  108. package/dist/provider/cli/adapters/grok.d.ts +2 -0
  109. package/dist/provider/cli/adapters/index.d.ts +1 -0
  110. package/dist/provider/cli/index.d.ts +1 -1
  111. package/dist/provider/cli/meta.d.ts +5 -0
  112. package/dist/provider/cli/protocol-envelope.d.ts +2 -0
  113. package/dist/provider/errors.d.ts +1 -0
  114. package/dist/provider/idle-watchdog.d.ts +19 -0
  115. package/dist/provider/models.d.ts +17 -12
  116. package/dist/provider/order.d.ts +1 -1
  117. package/dist/provider/parse-usage.d.ts +6 -0
  118. package/dist/provider/provider-selection.d.ts +8 -0
  119. package/dist/provider/redact-technical-message.d.ts +1 -0
  120. package/dist/provider/task-error.types.d.ts +16 -0
  121. package/dist/publish/constants.d.ts +6 -0
  122. package/dist/publish/index.d.ts +26 -0
  123. package/dist/publish/index.js +1 -0
  124. package/dist/publish/manifest.d.ts +17 -0
  125. package/dist/publish/marketplace-api.constants.d.ts +1 -0
  126. package/dist/publish/pack.d.ts +2 -0
  127. package/dist/publish/scan.d.ts +9 -0
  128. package/dist/publish/secrets.d.ts +6 -0
  129. package/dist/publish/upload.d.ts +18 -0
  130. package/dist/remote/execution-profile.d.ts +9 -0
  131. package/dist/remote/index.d.ts +1 -0
  132. package/dist/remote/types.d.ts +28 -0
  133. package/dist/repository/agent-suggestion.repository.d.ts +34 -0
  134. package/dist/repository/common-code.repository.d.ts +45 -0
  135. package/dist/repository/db.d.ts +8 -0
  136. package/dist/repository/index.d.ts +28 -4
  137. package/dist/repository/index.js +200 -94
  138. package/dist/repository/notification.repository.d.ts +58 -0
  139. package/dist/repository/project.repository.d.ts +90 -0
  140. package/dist/repository/request-log.repository.d.ts +1 -0
  141. package/dist/repository/task-log-migration.d.ts +74 -0
  142. package/dist/repository/task-log.repository.d.ts +44 -0
  143. package/dist/repository/task.repository.d.ts +120 -0
  144. package/dist/repository/thread-history.repository.d.ts +193 -0
  145. package/dist/repository/thread-title-common-code-migration.d.ts +13 -0
  146. package/dist/repository/thread-title.types.d.ts +29 -0
  147. package/dist/repository/thread.repository.d.ts +21 -2
  148. package/dist/repository/usage-report.repository.d.ts +27 -0
  149. package/dist/repository/workspace.repository.d.ts +3 -0
  150. package/dist/schema/agent-suggestions.d.ts +199 -0
  151. package/dist/schema/common-codes.d.ts +216 -0
  152. package/dist/schema/index.d.ts +9 -0
  153. package/dist/schema/notifications.d.ts +303 -0
  154. package/dist/schema/projects.d.ts +610 -0
  155. package/dist/schema/task-log-events.d.ts +119 -0
  156. package/dist/schema/tasks.d.ts +53 -0
  157. package/dist/schema/thread-history.d.ts +734 -0
  158. package/dist/schema/threads.d.ts +2 -0
  159. package/dist/schema/ui-action-receipts.d.ts +303 -0
  160. package/dist/schema/ui-instances.d.ts +267 -0
  161. package/dist/schema/usage-reports.d.ts +252 -0
  162. package/dist/schema/workspaces.d.ts +17 -0
  163. package/dist/task-log/anchor-child-tasks.d.ts +7 -0
  164. package/dist/task-log/delegation-trailer.d.ts +34 -0
  165. package/dist/testing/index.js +1 -1
  166. package/dist/types/index.d.ts +1536 -3
  167. package/dist/types/task-log.types.d.ts +2 -0
  168. package/dist/ui-card/index.d.ts +2 -0
  169. package/dist/ui-card/legacy-card-parser.d.ts +11 -0
  170. package/dist/ui-instance/definition.d.ts +6 -0
  171. package/dist/ui-instance/errors.d.ts +17 -0
  172. package/dist/ui-instance/index.d.ts +6 -0
  173. package/dist/ui-instance/json.d.ts +5 -0
  174. package/dist/ui-instance/runtime.d.ts +13 -0
  175. package/dist/ui-instance/store.d.ts +65 -0
  176. package/dist/ui-instance/types.d.ts +200 -0
  177. package/dist/ui-plugin/index.d.ts +3 -0
  178. package/dist/ui-plugin/manifest.d.ts +3 -0
  179. package/dist/ui-plugin/types.d.ts +76 -0
  180. package/dist/ui-plugin/validator.d.ts +9 -0
  181. package/dist/utils/crewx-executable.d.ts +54 -0
  182. package/dist/utils/crewx-home.d.ts +1 -0
  183. package/dist/utils/env-defaults.d.ts +2 -0
  184. package/dist/utils/id.d.ts +1 -1
  185. package/dist/utils/timestamp.d.ts +1 -0
  186. package/dist/wi/create.d.ts +48 -0
  187. package/dist/wi/select.d.ts +20 -0
  188. package/package.json +25 -2
  189. package/templates/agents/default.yaml +244 -120
  190. package/templates/documents/crewx-manual.md +138 -138
  191. package/templates/workflows/wi-default-flow.yaml +65 -0
  192. package/templates/workflows/wi-plan-flow.yaml +140 -0
@@ -0,0 +1,29 @@
1
+ export declare const THREAD_PRIORITIES: readonly ["urgent", "high", "medium", "low"];
2
+ export type ThreadPriority = (typeof THREAD_PRIORITIES)[number];
3
+ export declare const BUILTIN_THREAD_STATES: readonly ["investigating", "in-progress", "in-review", "on-hold", "done"];
4
+ export type BuiltinThreadState = (typeof BUILTIN_THREAD_STATES)[number];
5
+ export type StableThreadState = BuiltinThreadState | `c_${string}`;
6
+ export type LegacyThreadState = `custom:${string}`;
7
+ export type ThreadState = StableThreadState | LegacyThreadState;
8
+ export interface ThreadTitleMeta {
9
+ priority?: ThreadPriority;
10
+ state?: ThreadState;
11
+ }
12
+ export interface ThreadTitlePatch {
13
+ priority?: ThreadPriority | null;
14
+ state?: ThreadState | null;
15
+ }
16
+ export declare function isThreadPriority(value: unknown): value is ThreadPriority;
17
+ export declare function isThreadState(value: unknown): value is ThreadState;
18
+ export declare function customStateLabel(state: ThreadState): string | undefined;
19
+ export declare function hasThreadTitleKey(metadataJson: string | null | undefined): boolean;
20
+ export declare function readThreadTitleMeta(metadataJson: string | null | undefined): ThreadTitleMeta;
21
+ export declare function mergeThreadTitleMeta(metadataJson: string | null | undefined, patch: ThreadTitlePatch): string | null;
22
+ export declare function threadTitleSearchHaystack(meta: ThreadTitleMeta, labelNames?: ReadonlyMap<string, string>): string;
23
+ export interface ThreadTitleFilter {
24
+ values: Set<string>;
25
+ includeNone: boolean;
26
+ }
27
+ export declare function parseThreadPriorityFilter(raw: string | undefined): ThreadTitleFilter | undefined;
28
+ export declare function parseThreadStateFilter(raw: string | undefined): ThreadTitleFilter | undefined;
29
+ export declare function matchesThreadTitleFilter(current: string | undefined, filter: ThreadTitleFilter | undefined): boolean;
@@ -1,8 +1,23 @@
1
1
  import { BaseSqliteRepository } from './base-sqlite-repository.js';
2
+ import { RepositoryError } from './errors.js';
2
3
  import { threads } from '../schema/index.js';
3
- import type { TaskRow } from './task.repository.js';
4
+ import type { TaskRow, TaskListRow } from './task.repository.js';
4
5
  export type ThreadRow = typeof threads.$inferSelect;
5
6
  export type NewThread = typeof threads.$inferInsert;
7
+ export interface ThreadTitleMetadataPatch {
8
+ priority?: string | null;
9
+ state?: string | null;
10
+ }
11
+ export interface ThreadTitleMetadataPatchResult {
12
+ threadId: string;
13
+ priority: string | null;
14
+ state: string | null;
15
+ }
16
+ export type ThreadTitleMetadataPatchErrorReason = 'THREAD_TITLE_PATCH_EMPTY' | 'THREAD_TITLE_PATCH_INVALID';
17
+ export declare class ThreadTitleMetadataPatchError extends RepositoryError {
18
+ readonly reason: ThreadTitleMetadataPatchErrorReason;
19
+ constructor(reason: ThreadTitleMetadataPatchErrorReason, message?: string);
20
+ }
6
21
  export declare class ThreadRepository extends BaseSqliteRepository {
7
22
  private readonly dbPath?;
8
23
  constructor(opts?: {
@@ -14,6 +29,7 @@ export declare class ThreadRepository extends BaseSqliteRepository {
14
29
  private validateWorkspaceId;
15
30
  private topLevelTaskPredicateSql;
16
31
  findAllThreads(workspaceId?: string): ThreadRow[];
32
+ findThreadsByIdsOrTitles(ids: string[], workspaceId?: string): ThreadRow[];
17
33
  findThreadById(threadId: string, workspaceId?: string): ThreadRow | undefined;
18
34
  threadExists(threadId: string, workspaceId?: string): boolean;
19
35
  aggregateTaskStats(threadId: string, workspaceId?: string): {
@@ -30,7 +46,9 @@ export declare class ThreadRepository extends BaseSqliteRepository {
30
46
  task: TaskRow;
31
47
  children: TaskRow[];
32
48
  } | undefined;
33
- batchFetchTasks(threadIds: string[], workspaceId?: string): Map<string, TaskRow[]>;
49
+ private batchFetchTasksQuery;
50
+ batchFetchTasks(threadIds: string[], workspaceId?: string): Map<string, TaskListRow[]>;
51
+ explainBatchFetchTasksPlan(threadIds: string[], workspaceId?: string): string[];
34
52
  updateThreadTitle(threadId: string, title: string, workspaceId?: string): void;
35
53
  upsertThread(threadId: string, opts: {
36
54
  platform: string;
@@ -56,6 +74,7 @@ export declare class ThreadRepository extends BaseSqliteRepository {
56
74
  title?: string;
57
75
  titleLocked?: boolean;
58
76
  }): void;
77
+ patchThreadTitleMetadata(threadId: string, patch: ThreadTitleMetadataPatch, workspaceId?: string): ThreadTitleMetadataPatchResult | ThreadTitleMetadataPatchError | null;
59
78
  togglePin(threadId: string, workspaceId?: string): {
60
79
  pinned: boolean;
61
80
  } | null;
@@ -0,0 +1,27 @@
1
+ import { BaseSqliteRepository } from './base-sqlite-repository.js';
2
+ import { usage_reports } from '../schema/index.js';
3
+ export type UsageReportRow = typeof usage_reports.$inferSelect;
4
+ export type NewUsageReport = typeof usage_reports.$inferInsert;
5
+ export interface PublishReportInput {
6
+ id: string;
7
+ workspaceId: string;
8
+ month: string;
9
+ generatedAt: string;
10
+ sourceRange: string;
11
+ tier: string;
12
+ totalTokens: number;
13
+ totalCostUsd: number;
14
+ payload: string;
15
+ }
16
+ export declare class UsageReportRepository extends BaseSqliteRepository {
17
+ private readonly dbPath?;
18
+ constructor(opts?: {
19
+ dbPath?: string;
20
+ dbRoot?: string;
21
+ });
22
+ resolveDbPath(): string;
23
+ private openHandle;
24
+ publish(input: PublishReportInput): UsageReportRow;
25
+ findByMonth(workspaceId: string, month: string): UsageReportRow | undefined;
26
+ listByWorkspace(workspaceId: string): UsageReportRow[];
27
+ }
@@ -48,6 +48,9 @@ export declare class WorkspaceRepository extends BaseSqliteRepository {
48
48
  total: number;
49
49
  };
50
50
  findById(id: string): ProjectRow | undefined;
51
+ toggleStar(id: string): {
52
+ starred: boolean;
53
+ } | null;
51
54
  findAgentsByProject(id: string): string[];
52
55
  findThreadsByProject(id: string, params: {
53
56
  limit: number;
@@ -0,0 +1,199 @@
1
+ export declare const agent_suggestions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "agent_suggestions";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: "id";
7
+ tableName: "agent_suggestions";
8
+ dataType: "string";
9
+ columnType: "SQLiteText";
10
+ data: string;
11
+ driverParam: string;
12
+ notNull: true;
13
+ hasDefault: false;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: false;
17
+ enumValues: [string, ...string[]];
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {
22
+ length: number | undefined;
23
+ }>;
24
+ workspace_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
25
+ name: "workspace_id";
26
+ tableName: "agent_suggestions";
27
+ dataType: "string";
28
+ columnType: "SQLiteText";
29
+ data: string;
30
+ driverParam: string;
31
+ notNull: true;
32
+ hasDefault: false;
33
+ isPrimaryKey: false;
34
+ isAutoincrement: false;
35
+ hasRuntimeDefault: false;
36
+ enumValues: [string, ...string[]];
37
+ baseColumn: never;
38
+ identity: undefined;
39
+ generated: undefined;
40
+ }, {}, {
41
+ length: number | undefined;
42
+ }>;
43
+ agent_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
44
+ name: "agent_id";
45
+ tableName: "agent_suggestions";
46
+ dataType: "string";
47
+ columnType: "SQLiteText";
48
+ data: string;
49
+ driverParam: string;
50
+ notNull: true;
51
+ hasDefault: false;
52
+ isPrimaryKey: false;
53
+ isAutoincrement: false;
54
+ hasRuntimeDefault: false;
55
+ enumValues: [string, ...string[]];
56
+ baseColumn: never;
57
+ identity: undefined;
58
+ generated: undefined;
59
+ }, {}, {
60
+ length: number | undefined;
61
+ }>;
62
+ task_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
63
+ name: "task_id";
64
+ tableName: "agent_suggestions";
65
+ dataType: "string";
66
+ columnType: "SQLiteText";
67
+ data: string;
68
+ driverParam: string;
69
+ notNull: false;
70
+ hasDefault: false;
71
+ isPrimaryKey: false;
72
+ isAutoincrement: false;
73
+ hasRuntimeDefault: false;
74
+ enumValues: [string, ...string[]];
75
+ baseColumn: never;
76
+ identity: undefined;
77
+ generated: undefined;
78
+ }, {}, {
79
+ length: number | undefined;
80
+ }>;
81
+ type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
82
+ name: "type";
83
+ tableName: "agent_suggestions";
84
+ dataType: "string";
85
+ columnType: "SQLiteText";
86
+ data: string;
87
+ driverParam: string;
88
+ notNull: true;
89
+ hasDefault: false;
90
+ isPrimaryKey: false;
91
+ isAutoincrement: false;
92
+ hasRuntimeDefault: false;
93
+ enumValues: [string, ...string[]];
94
+ baseColumn: never;
95
+ identity: undefined;
96
+ generated: undefined;
97
+ }, {}, {
98
+ length: number | undefined;
99
+ }>;
100
+ status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
101
+ name: "status";
102
+ tableName: "agent_suggestions";
103
+ dataType: "string";
104
+ columnType: "SQLiteText";
105
+ data: string;
106
+ driverParam: string;
107
+ notNull: true;
108
+ hasDefault: true;
109
+ isPrimaryKey: false;
110
+ isAutoincrement: false;
111
+ hasRuntimeDefault: false;
112
+ enumValues: [string, ...string[]];
113
+ baseColumn: never;
114
+ identity: undefined;
115
+ generated: undefined;
116
+ }, {}, {
117
+ length: number | undefined;
118
+ }>;
119
+ payload: import("drizzle-orm/sqlite-core").SQLiteColumn<{
120
+ name: "payload";
121
+ tableName: "agent_suggestions";
122
+ dataType: "string";
123
+ columnType: "SQLiteText";
124
+ data: string;
125
+ driverParam: string;
126
+ notNull: true;
127
+ hasDefault: false;
128
+ isPrimaryKey: false;
129
+ isAutoincrement: false;
130
+ hasRuntimeDefault: false;
131
+ enumValues: [string, ...string[]];
132
+ baseColumn: never;
133
+ identity: undefined;
134
+ generated: undefined;
135
+ }, {}, {
136
+ length: number | undefined;
137
+ }>;
138
+ applied_commit_sha: import("drizzle-orm/sqlite-core").SQLiteColumn<{
139
+ name: "applied_commit_sha";
140
+ tableName: "agent_suggestions";
141
+ dataType: "string";
142
+ columnType: "SQLiteText";
143
+ data: string;
144
+ driverParam: string;
145
+ notNull: false;
146
+ hasDefault: false;
147
+ isPrimaryKey: false;
148
+ isAutoincrement: false;
149
+ hasRuntimeDefault: false;
150
+ enumValues: [string, ...string[]];
151
+ baseColumn: never;
152
+ identity: undefined;
153
+ generated: undefined;
154
+ }, {}, {
155
+ length: number | undefined;
156
+ }>;
157
+ created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
158
+ name: "created_at";
159
+ tableName: "agent_suggestions";
160
+ dataType: "string";
161
+ columnType: "SQLiteText";
162
+ data: string;
163
+ driverParam: string;
164
+ notNull: true;
165
+ hasDefault: false;
166
+ isPrimaryKey: false;
167
+ isAutoincrement: false;
168
+ hasRuntimeDefault: false;
169
+ enumValues: [string, ...string[]];
170
+ baseColumn: never;
171
+ identity: undefined;
172
+ generated: undefined;
173
+ }, {}, {
174
+ length: number | undefined;
175
+ }>;
176
+ updated_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
177
+ name: "updated_at";
178
+ tableName: "agent_suggestions";
179
+ dataType: "string";
180
+ columnType: "SQLiteText";
181
+ data: string;
182
+ driverParam: string;
183
+ notNull: true;
184
+ hasDefault: false;
185
+ isPrimaryKey: false;
186
+ isAutoincrement: false;
187
+ hasRuntimeDefault: false;
188
+ enumValues: [string, ...string[]];
189
+ baseColumn: never;
190
+ identity: undefined;
191
+ generated: undefined;
192
+ }, {}, {
193
+ length: number | undefined;
194
+ }>;
195
+ };
196
+ dialect: "sqlite";
197
+ }>;
198
+ export type AgentSuggestion = typeof agent_suggestions.$inferSelect;
199
+ export type NewAgentSuggestion = typeof agent_suggestions.$inferInsert;
@@ -0,0 +1,216 @@
1
+ export declare const COMMON_CODE_GROUPS: readonly ["THREAD_STATE", "THREAD_PRIORITY"];
2
+ export type CommonCodeGroup = (typeof COMMON_CODE_GROUPS)[number];
3
+ export declare const COMMON_CODE_COLORS: readonly ["gray", "blue", "violet", "green", "amber", "orange", "red", "pink"];
4
+ export type CommonCodeColor = (typeof COMMON_CODE_COLORS)[number];
5
+ export declare const common_codes: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
6
+ name: "common_codes";
7
+ schema: undefined;
8
+ columns: {
9
+ code_group: import("drizzle-orm/sqlite-core").SQLiteColumn<{
10
+ name: "code_group";
11
+ tableName: "common_codes";
12
+ dataType: "string";
13
+ columnType: "SQLiteText";
14
+ data: string;
15
+ driverParam: string;
16
+ notNull: true;
17
+ hasDefault: false;
18
+ isPrimaryKey: false;
19
+ isAutoincrement: false;
20
+ hasRuntimeDefault: false;
21
+ enumValues: [string, ...string[]];
22
+ baseColumn: never;
23
+ identity: undefined;
24
+ generated: undefined;
25
+ }, {}, {
26
+ length: number | undefined;
27
+ }>;
28
+ code: import("drizzle-orm/sqlite-core").SQLiteColumn<{
29
+ name: "code";
30
+ tableName: "common_codes";
31
+ dataType: "string";
32
+ columnType: "SQLiteText";
33
+ data: string;
34
+ driverParam: string;
35
+ notNull: true;
36
+ hasDefault: false;
37
+ isPrimaryKey: false;
38
+ isAutoincrement: false;
39
+ hasRuntimeDefault: false;
40
+ enumValues: [string, ...string[]];
41
+ baseColumn: never;
42
+ identity: undefined;
43
+ generated: undefined;
44
+ }, {}, {
45
+ length: number | undefined;
46
+ }>;
47
+ code_name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
48
+ name: "code_name";
49
+ tableName: "common_codes";
50
+ dataType: "string";
51
+ columnType: "SQLiteText";
52
+ data: string;
53
+ driverParam: string;
54
+ notNull: false;
55
+ hasDefault: false;
56
+ isPrimaryKey: false;
57
+ isAutoincrement: false;
58
+ hasRuntimeDefault: false;
59
+ enumValues: [string, ...string[]];
60
+ baseColumn: never;
61
+ identity: undefined;
62
+ generated: undefined;
63
+ }, {}, {
64
+ length: number | undefined;
65
+ }>;
66
+ color: import("drizzle-orm/sqlite-core").SQLiteColumn<{
67
+ name: "color";
68
+ tableName: "common_codes";
69
+ dataType: "string";
70
+ columnType: "SQLiteText";
71
+ data: string;
72
+ driverParam: string;
73
+ notNull: true;
74
+ hasDefault: true;
75
+ isPrimaryKey: false;
76
+ isAutoincrement: false;
77
+ hasRuntimeDefault: false;
78
+ enumValues: [string, ...string[]];
79
+ baseColumn: never;
80
+ identity: undefined;
81
+ generated: undefined;
82
+ }, {}, {
83
+ length: number | undefined;
84
+ }>;
85
+ sort_order: import("drizzle-orm/sqlite-core").SQLiteColumn<{
86
+ name: "sort_order";
87
+ tableName: "common_codes";
88
+ dataType: "number";
89
+ columnType: "SQLiteInteger";
90
+ data: number;
91
+ driverParam: number;
92
+ notNull: true;
93
+ hasDefault: false;
94
+ isPrimaryKey: false;
95
+ isAutoincrement: false;
96
+ hasRuntimeDefault: false;
97
+ enumValues: undefined;
98
+ baseColumn: never;
99
+ identity: undefined;
100
+ generated: undefined;
101
+ }, {}, {}>;
102
+ workspace_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
103
+ name: "workspace_id";
104
+ tableName: "common_codes";
105
+ dataType: "string";
106
+ columnType: "SQLiteText";
107
+ data: string;
108
+ driverParam: string;
109
+ notNull: false;
110
+ hasDefault: false;
111
+ isPrimaryKey: false;
112
+ isAutoincrement: false;
113
+ hasRuntimeDefault: false;
114
+ enumValues: [string, ...string[]];
115
+ baseColumn: never;
116
+ identity: undefined;
117
+ generated: undefined;
118
+ }, {}, {
119
+ length: number | undefined;
120
+ }>;
121
+ is_builtin: import("drizzle-orm/sqlite-core").SQLiteColumn<{
122
+ name: "is_builtin";
123
+ tableName: "common_codes";
124
+ dataType: "number";
125
+ columnType: "SQLiteInteger";
126
+ data: number;
127
+ driverParam: number;
128
+ notNull: true;
129
+ hasDefault: true;
130
+ isPrimaryKey: false;
131
+ isAutoincrement: false;
132
+ hasRuntimeDefault: false;
133
+ enumValues: undefined;
134
+ baseColumn: never;
135
+ identity: undefined;
136
+ generated: undefined;
137
+ }, {}, {}>;
138
+ is_archived: import("drizzle-orm/sqlite-core").SQLiteColumn<{
139
+ name: "is_archived";
140
+ tableName: "common_codes";
141
+ dataType: "number";
142
+ columnType: "SQLiteInteger";
143
+ data: number;
144
+ driverParam: number;
145
+ notNull: true;
146
+ hasDefault: true;
147
+ isPrimaryKey: false;
148
+ isAutoincrement: false;
149
+ hasRuntimeDefault: false;
150
+ enumValues: undefined;
151
+ baseColumn: never;
152
+ identity: undefined;
153
+ generated: undefined;
154
+ }, {}, {}>;
155
+ metadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
156
+ name: "metadata";
157
+ tableName: "common_codes";
158
+ dataType: "string";
159
+ columnType: "SQLiteText";
160
+ data: string;
161
+ driverParam: string;
162
+ notNull: false;
163
+ hasDefault: false;
164
+ isPrimaryKey: false;
165
+ isAutoincrement: false;
166
+ hasRuntimeDefault: false;
167
+ enumValues: [string, ...string[]];
168
+ baseColumn: never;
169
+ identity: undefined;
170
+ generated: undefined;
171
+ }, {}, {
172
+ length: number | undefined;
173
+ }>;
174
+ created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
175
+ name: "created_at";
176
+ tableName: "common_codes";
177
+ dataType: "string";
178
+ columnType: "SQLiteText";
179
+ data: string;
180
+ driverParam: string;
181
+ notNull: true;
182
+ hasDefault: false;
183
+ isPrimaryKey: false;
184
+ isAutoincrement: false;
185
+ hasRuntimeDefault: false;
186
+ enumValues: [string, ...string[]];
187
+ baseColumn: never;
188
+ identity: undefined;
189
+ generated: undefined;
190
+ }, {}, {
191
+ length: number | undefined;
192
+ }>;
193
+ updated_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
194
+ name: "updated_at";
195
+ tableName: "common_codes";
196
+ dataType: "string";
197
+ columnType: "SQLiteText";
198
+ data: string;
199
+ driverParam: string;
200
+ notNull: true;
201
+ hasDefault: false;
202
+ isPrimaryKey: false;
203
+ isAutoincrement: false;
204
+ hasRuntimeDefault: false;
205
+ enumValues: [string, ...string[]];
206
+ baseColumn: never;
207
+ identity: undefined;
208
+ generated: undefined;
209
+ }, {}, {
210
+ length: number | undefined;
211
+ }>;
212
+ };
213
+ dialect: "sqlite";
214
+ }>;
215
+ export type CommonCode = typeof common_codes.$inferSelect;
216
+ export type NewCommonCode = typeof common_codes.$inferInsert;
@@ -1,8 +1,17 @@
1
1
  export * from './workspaces.js';
2
2
  export * from './tasks.js';
3
+ export * from './task-log-events.js';
3
4
  export * from './threads.js';
4
5
  export * from './spans.js';
5
6
  export * from './tool-calls.js';
6
7
  export * from './thread-boxes.js';
7
8
  export * from './request-logs.js';
8
9
  export * from './usage-limit-snapshots.js';
10
+ export * from './usage-reports.js';
11
+ export * from './notifications.js';
12
+ export * from './agent-suggestions.js';
13
+ export * from './ui-instances.js';
14
+ export * from './ui-action-receipts.js';
15
+ export * from './projects.js';
16
+ export * from './common-codes.js';
17
+ export * from './thread-history.js';