@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,303 @@
1
+ export declare const notifications: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "notifications";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: "id";
7
+ tableName: "notifications";
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: "notifications";
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: "notifications";
46
+ dataType: "string";
47
+ columnType: "SQLiteText";
48
+ data: string;
49
+ driverParam: string;
50
+ notNull: false;
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: "notifications";
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
+ thread_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
82
+ name: "thread_id";
83
+ tableName: "notifications";
84
+ dataType: "string";
85
+ columnType: "SQLiteText";
86
+ data: string;
87
+ driverParam: string;
88
+ notNull: false;
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
+ source: import("drizzle-orm/sqlite-core").SQLiteColumn<{
101
+ name: "source";
102
+ tableName: "notifications";
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
+ level: import("drizzle-orm/sqlite-core").SQLiteColumn<{
120
+ name: "level";
121
+ tableName: "notifications";
122
+ dataType: "string";
123
+ columnType: "SQLiteText";
124
+ data: string;
125
+ driverParam: string;
126
+ notNull: true;
127
+ hasDefault: true;
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
+ title: import("drizzle-orm/sqlite-core").SQLiteColumn<{
139
+ name: "title";
140
+ tableName: "notifications";
141
+ dataType: "string";
142
+ columnType: "SQLiteText";
143
+ data: string;
144
+ driverParam: string;
145
+ notNull: true;
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
+ body: import("drizzle-orm/sqlite-core").SQLiteColumn<{
158
+ name: "body";
159
+ tableName: "notifications";
160
+ dataType: "string";
161
+ columnType: "SQLiteText";
162
+ data: string;
163
+ driverParam: string;
164
+ notNull: false;
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
+ target_user_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
177
+ name: "target_user_id";
178
+ tableName: "notifications";
179
+ dataType: "string";
180
+ columnType: "SQLiteText";
181
+ data: string;
182
+ driverParam: string;
183
+ notNull: false;
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
+ created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
196
+ name: "created_at";
197
+ tableName: "notifications";
198
+ dataType: "string";
199
+ columnType: "SQLiteText";
200
+ data: string;
201
+ driverParam: string;
202
+ notNull: true;
203
+ hasDefault: false;
204
+ isPrimaryKey: false;
205
+ isAutoincrement: false;
206
+ hasRuntimeDefault: false;
207
+ enumValues: [string, ...string[]];
208
+ baseColumn: never;
209
+ identity: undefined;
210
+ generated: undefined;
211
+ }, {}, {
212
+ length: number | undefined;
213
+ }>;
214
+ metadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
215
+ name: "metadata";
216
+ tableName: "notifications";
217
+ dataType: "string";
218
+ columnType: "SQLiteText";
219
+ data: string;
220
+ driverParam: string;
221
+ notNull: false;
222
+ hasDefault: false;
223
+ isPrimaryKey: false;
224
+ isAutoincrement: false;
225
+ hasRuntimeDefault: false;
226
+ enumValues: [string, ...string[]];
227
+ baseColumn: never;
228
+ identity: undefined;
229
+ generated: undefined;
230
+ }, {}, {
231
+ length: number | undefined;
232
+ }>;
233
+ };
234
+ dialect: "sqlite";
235
+ }>;
236
+ export declare const notification_reads: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
237
+ name: "notification_reads";
238
+ schema: undefined;
239
+ columns: {
240
+ notification_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
241
+ name: "notification_id";
242
+ tableName: "notification_reads";
243
+ dataType: "string";
244
+ columnType: "SQLiteText";
245
+ data: string;
246
+ driverParam: string;
247
+ notNull: true;
248
+ hasDefault: false;
249
+ isPrimaryKey: false;
250
+ isAutoincrement: false;
251
+ hasRuntimeDefault: false;
252
+ enumValues: [string, ...string[]];
253
+ baseColumn: never;
254
+ identity: undefined;
255
+ generated: undefined;
256
+ }, {}, {
257
+ length: number | undefined;
258
+ }>;
259
+ user_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
260
+ name: "user_id";
261
+ tableName: "notification_reads";
262
+ dataType: "string";
263
+ columnType: "SQLiteText";
264
+ data: string;
265
+ driverParam: string;
266
+ notNull: true;
267
+ hasDefault: false;
268
+ isPrimaryKey: false;
269
+ isAutoincrement: false;
270
+ hasRuntimeDefault: false;
271
+ enumValues: [string, ...string[]];
272
+ baseColumn: never;
273
+ identity: undefined;
274
+ generated: undefined;
275
+ }, {}, {
276
+ length: number | undefined;
277
+ }>;
278
+ read_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
279
+ name: "read_at";
280
+ tableName: "notification_reads";
281
+ dataType: "string";
282
+ columnType: "SQLiteText";
283
+ data: string;
284
+ driverParam: string;
285
+ notNull: true;
286
+ hasDefault: false;
287
+ isPrimaryKey: false;
288
+ isAutoincrement: false;
289
+ hasRuntimeDefault: false;
290
+ enumValues: [string, ...string[]];
291
+ baseColumn: never;
292
+ identity: undefined;
293
+ generated: undefined;
294
+ }, {}, {
295
+ length: number | undefined;
296
+ }>;
297
+ };
298
+ dialect: "sqlite";
299
+ }>;
300
+ export type Notification = typeof notifications.$inferSelect;
301
+ export type NewNotification = typeof notifications.$inferInsert;
302
+ export type NotificationRead = typeof notification_reads.$inferSelect;
303
+ export type NewNotificationRead = typeof notification_reads.$inferInsert;