@crewx/sdk 0.9.0-rc.11 → 0.9.0-rc.110

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 (246) 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 +37 -0
  6. package/dist/account/env-bootstrap.d.ts +5 -0
  7. package/dist/account/errors.d.ts +24 -0
  8. package/dist/account/index.d.ts +12 -0
  9. package/dist/account/index.js +2 -0
  10. package/dist/account/session-manager.d.ts +47 -0
  11. package/dist/activity-log/builder.d.ts +56 -6
  12. package/dist/agent/agent-list-view.d.ts +19 -0
  13. package/dist/boxing/box.types.d.ts +4 -0
  14. package/dist/config/canonicalize-agent-options.d.ts +17 -0
  15. package/dist/config/default-agent-models.d.ts +11 -0
  16. package/dist/config/global-settings.d.ts +33 -0
  17. package/dist/config/migrate-grok-mode.d.ts +6 -0
  18. package/dist/config/model-compat.d.ts +31 -0
  19. package/dist/config/models.generated.d.ts +37 -0
  20. package/dist/config/models.remote.d.ts +1 -0
  21. package/dist/config/overdrive.d.ts +7 -0
  22. package/dist/config/pricing.d.ts +7 -3
  23. package/dist/config/pricing.generated.d.ts +4 -0
  24. package/dist/config/pricing.types.d.ts +4 -10
  25. package/dist/config/timeout.config.d.ts +4 -0
  26. package/dist/config/wi-boards.d.ts +19 -0
  27. package/dist/context-budget/continuity.d.ts +61 -0
  28. package/dist/context-budget/index.d.ts +141 -0
  29. package/dist/conversation/index.d.ts +1 -1
  30. package/dist/conversation/sqlite-provider.d.ts +6 -2
  31. package/dist/conversation/to-template-messages.d.ts +9 -0
  32. package/dist/conversation/types.d.ts +47 -1
  33. package/dist/desktop/command-runner.d.ts +4 -0
  34. package/dist/desktop/default-adapters.d.ts +4 -0
  35. package/dist/desktop/global-install.d.ts +19 -0
  36. package/dist/desktop/index.d.ts +3 -0
  37. package/dist/desktop/index.js +3 -0
  38. package/dist/desktop/install.d.ts +5 -0
  39. package/dist/desktop/lnk.d.ts +22 -0
  40. package/dist/desktop/manifest.d.ts +21 -0
  41. package/dist/desktop/types.d.ts +67 -0
  42. package/dist/desktop/version.d.ts +1 -0
  43. package/dist/desktop/windows-paths.d.ts +21 -0
  44. package/dist/desktop/wrapper.d.ts +18 -0
  45. package/dist/esm/account/index.js +2 -0
  46. package/dist/esm/desktop/index.js +3 -0
  47. package/dist/esm/index.js +700 -183
  48. package/dist/esm/plugins/index.js +302 -180
  49. package/dist/esm/process/index.js +1 -0
  50. package/dist/esm/publish/index.js +2 -0
  51. package/dist/esm/repository/index.js +370 -170
  52. package/dist/esm/skills/index.js +1 -0
  53. package/dist/esm/testing/index.js +1 -1
  54. package/dist/events/types.d.ts +9 -0
  55. package/dist/facade/Crewx.d.ts +54 -4
  56. package/dist/highlight/thread-highlight-prompt.d.ts +2 -0
  57. package/dist/highlight/thread-highlighter.d.ts +326 -0
  58. package/dist/index.browser.d.ts +14 -1
  59. package/dist/index.browser.js +6 -2
  60. package/dist/index.d.ts +106 -15
  61. package/dist/index.js +700 -183
  62. package/dist/internal/console-decoder.d.ts +38 -0
  63. package/dist/internal/windows-spawn.d.ts +10 -0
  64. package/dist/layout/types.d.ts +18 -1
  65. package/dist/lifecycle/task-heartbeat.d.ts +41 -0
  66. package/dist/lifecycle/task-stop.d.ts +82 -0
  67. package/dist/lifecycle/update-admission.d.ts +44 -0
  68. package/dist/local-server/base-url.d.ts +18 -0
  69. package/dist/local-server/index.d.ts +8 -0
  70. package/dist/local-server/opencode.d.ts +8 -0
  71. package/dist/local-server/probe.d.ts +3 -0
  72. package/dist/local-server/runtime.d.ts +26 -0
  73. package/dist/local-server/types.d.ts +43 -0
  74. package/dist/mcp-app/apps-context.d.ts +5 -0
  75. package/dist/mcp-app/catalog.d.ts +7 -0
  76. package/dist/mcp-app/discovery.d.ts +105 -0
  77. package/dist/mcp-app/errors.d.ts +7 -0
  78. package/dist/mcp-app/index.d.ts +18 -0
  79. package/dist/mcp-app/installed-app-ref.d.ts +25 -0
  80. package/dist/mcp-app/node-app-discovery-fs.d.ts +20 -0
  81. package/dist/mcp-app/projection.d.ts +13 -0
  82. package/dist/mcp-app/registry.d.ts +19 -0
  83. package/dist/mcp-app/state-set.d.ts +9 -0
  84. package/dist/mcp-app/types.d.ts +362 -0
  85. package/dist/mcp-app/workspace-snapshot.d.ts +53 -0
  86. package/dist/migrations/0008_careful_black_bird.sql +17 -0
  87. package/dist/migrations/0009_hot_dark_phoenix.sql +1 -0
  88. package/dist/migrations/0010_analyze_stats.sql +6 -0
  89. package/dist/migrations/0011_far_black_tarantula.sql +1 -0
  90. package/dist/migrations/0012_blue_turbo.sql +23 -0
  91. package/dist/migrations/0013_hesitant_adam_destine.sql +15 -0
  92. package/dist/migrations/0014_organic_mongu.sql +73 -0
  93. package/dist/migrations/0015_panoramic_gorilla_man.sql +71 -0
  94. package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
  95. package/dist/migrations/0017_project_stage_sdk_migration.sql +29 -0
  96. package/dist/migrations/0018_bored_jackal.sql +33 -0
  97. package/dist/migrations/0019_backfill_task_thread_ids.sql +74 -0
  98. package/dist/migrations/0020_useful_iron_lad.sql +55 -0
  99. package/dist/migrations/0021_dashing_peter_quill.sql +51 -0
  100. package/dist/migrations/0022_wandering_bucky.sql +1 -0
  101. package/dist/migrations/0023_red_payback.sql +1 -0
  102. package/dist/migrations/0024_storage_metadata.sql +262 -0
  103. package/dist/migrations/0025_task_heartbeat.sql +8 -0
  104. package/dist/migrations/0025_thread_app_instance_ledger.sql +2 -0
  105. package/dist/migrations/0026_mcp_action_source.sql +47 -0
  106. package/dist/migrations/0027_task_stop_scope_cleanup.sql +5 -0
  107. package/dist/migrations/0027_ui_instance_active_unique.sql +2 -0
  108. package/dist/migrations/0029_nice_rhino.sql +1 -0
  109. package/dist/migrations/0031_petite_arclight.sql +6 -0
  110. package/dist/migrations/meta/0008_snapshot.json +1327 -0
  111. package/dist/migrations/meta/0009_snapshot.json +1335 -0
  112. package/dist/migrations/meta/0010_snapshot.json +1335 -0
  113. package/dist/migrations/meta/0011_snapshot.json +1342 -0
  114. package/dist/migrations/meta/0012_snapshot.json +1494 -0
  115. package/dist/migrations/meta/0013_snapshot.json +1592 -0
  116. package/dist/migrations/meta/0014_snapshot.json +1975 -0
  117. package/dist/migrations/meta/0015_snapshot.json +2315 -0
  118. package/dist/migrations/meta/0016_snapshot.json +2419 -0
  119. package/dist/migrations/meta/0017_snapshot.json +2419 -0
  120. package/dist/migrations/meta/0018_snapshot.json +2570 -0
  121. package/dist/migrations/meta/0020_snapshot.json +2895 -0
  122. package/dist/migrations/meta/0021_snapshot.json +3031 -0
  123. package/dist/migrations/meta/0022_snapshot.json +3039 -0
  124. package/dist/migrations/meta/0023_snapshot.json +3047 -0
  125. package/dist/migrations/meta/0029_snapshot.json +3206 -0
  126. package/dist/migrations/meta/0031_snapshot.json +3251 -0
  127. package/dist/migrations/meta/_journal.json +168 -0
  128. package/dist/paths.d.ts +1 -0
  129. package/dist/plugin/types.d.ts +1 -0
  130. package/dist/plugins/index.d.ts +1 -1
  131. package/dist/plugins/index.js +302 -180
  132. package/dist/plugins/sqlite-tracing.d.ts +46 -0
  133. package/dist/process/index.d.ts +2 -0
  134. package/dist/process/index.js +1 -0
  135. package/dist/process/process-control.d.ts +41 -0
  136. package/dist/prompt/tag-names.d.ts +20 -0
  137. package/dist/provider/acp/connection.d.ts +6 -0
  138. package/dist/provider/acp/meta.d.ts +11 -0
  139. package/dist/provider/bridge.d.ts +7 -1
  140. package/dist/provider/classify-task-error.d.ts +2 -0
  141. package/dist/provider/cli/adapter.types.d.ts +9 -1
  142. package/dist/provider/cli/adapters/agent-call.util.d.ts +1 -1
  143. package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
  144. package/dist/provider/cli/adapters/event-timestamp.util.d.ts +1 -0
  145. package/dist/provider/cli/adapters/grok.d.ts +2 -0
  146. package/dist/provider/cli/adapters/index.d.ts +1 -0
  147. package/dist/provider/cli/index.d.ts +1 -1
  148. package/dist/provider/cli/meta.d.ts +5 -0
  149. package/dist/provider/cli/protocol-envelope.d.ts +2 -0
  150. package/dist/provider/errors.d.ts +5 -1
  151. package/dist/provider/idle-watchdog.d.ts +19 -0
  152. package/dist/provider/models.d.ts +17 -12
  153. package/dist/provider/order.d.ts +1 -1
  154. package/dist/provider/parse-usage.d.ts +6 -0
  155. package/dist/provider/provider-selection.d.ts +8 -0
  156. package/dist/provider/redact-technical-message.d.ts +1 -0
  157. package/dist/provider/task-error.types.d.ts +17 -0
  158. package/dist/publish/constants.d.ts +6 -0
  159. package/dist/publish/errors.d.ts +7 -0
  160. package/dist/publish/index.d.ts +50 -0
  161. package/dist/publish/index.js +2 -0
  162. package/dist/publish/manifest.d.ts +47 -0
  163. package/dist/publish/marketplace-api.constants.d.ts +1 -0
  164. package/dist/publish/pack.d.ts +6 -0
  165. package/dist/publish/scan.d.ts +9 -0
  166. package/dist/publish/secrets.d.ts +6 -0
  167. package/dist/publish/upload.d.ts +19 -0
  168. package/dist/remote/execution-profile.d.ts +9 -0
  169. package/dist/remote/index.d.ts +1 -0
  170. package/dist/remote/types.d.ts +28 -0
  171. package/dist/repository/agent-suggestion.repository.d.ts +34 -0
  172. package/dist/repository/base-sqlite-repository.d.ts +1 -0
  173. package/dist/repository/common-code.repository.d.ts +45 -0
  174. package/dist/repository/db.d.ts +12 -1
  175. package/dist/repository/index.d.ts +38 -5
  176. package/dist/repository/index.js +370 -170
  177. package/dist/repository/notification.repository.d.ts +58 -0
  178. package/dist/repository/project.repository.d.ts +90 -0
  179. package/dist/repository/request-log.repository.d.ts +1 -0
  180. package/dist/repository/storage-metadata.repository.d.ts +64 -0
  181. package/dist/repository/task-log-migration.d.ts +74 -0
  182. package/dist/repository/task-log.repository.d.ts +44 -0
  183. package/dist/repository/task-status.d.ts +14 -0
  184. package/dist/repository/task.repository.d.ts +246 -7
  185. package/dist/repository/thread-history.repository.d.ts +193 -0
  186. package/dist/repository/thread-title.types.d.ts +29 -0
  187. package/dist/repository/thread.repository.d.ts +47 -5
  188. package/dist/repository/usage-backfill.d.ts +62 -0
  189. package/dist/repository/usage-from-logs.d.ts +21 -0
  190. package/dist/repository/usage-report.repository.d.ts +27 -0
  191. package/dist/repository/workspace.repository.d.ts +3 -0
  192. package/dist/schema/agent-suggestions.d.ts +199 -0
  193. package/dist/schema/common-codes.d.ts +216 -0
  194. package/dist/schema/index.d.ts +10 -0
  195. package/dist/schema/notifications.d.ts +303 -0
  196. package/dist/schema/projects.d.ts +610 -0
  197. package/dist/schema/storage-metadata.d.ts +181 -0
  198. package/dist/schema/task-log-events.d.ts +119 -0
  199. package/dist/schema/tasks.d.ts +165 -0
  200. package/dist/schema/thread-history.d.ts +734 -0
  201. package/dist/schema/threads.d.ts +59 -0
  202. package/dist/schema/ui-action-receipts.d.ts +303 -0
  203. package/dist/schema/ui-instances.d.ts +286 -0
  204. package/dist/schema/usage-reports.d.ts +252 -0
  205. package/dist/schema/workspaces.d.ts +17 -0
  206. package/dist/skills/index.d.ts +7 -0
  207. package/dist/skills/index.js +1 -0
  208. package/dist/skills/types.d.ts +18 -0
  209. package/dist/task-log/anchor-child-tasks.d.ts +7 -0
  210. package/dist/task-log/delegation-trailer.d.ts +34 -0
  211. package/dist/template/engine.d.ts +2 -2
  212. package/dist/template/helpers/exec.browser.d.ts +4 -3
  213. package/dist/template/helpers/exec.d.ts +4 -3
  214. package/dist/template/types.d.ts +20 -0
  215. package/dist/testing/index.js +1 -1
  216. package/dist/types/index.d.ts +1569 -3
  217. package/dist/types/task-log.types.d.ts +2 -0
  218. package/dist/ui-card/index.d.ts +2 -0
  219. package/dist/ui-card/legacy-card-parser.d.ts +11 -0
  220. package/dist/ui-instance/definition.d.ts +6 -0
  221. package/dist/ui-instance/errors.d.ts +17 -0
  222. package/dist/ui-instance/index.d.ts +9 -0
  223. package/dist/ui-instance/json.d.ts +5 -0
  224. package/dist/ui-instance/runtime.d.ts +18 -0
  225. package/dist/ui-instance/store.d.ts +99 -0
  226. package/dist/ui-instance/types.d.ts +213 -0
  227. package/dist/ui-plugin/index.d.ts +4 -0
  228. package/dist/ui-plugin/limits.d.ts +27 -0
  229. package/dist/ui-plugin/manifest.d.ts +3 -0
  230. package/dist/ui-plugin/types.d.ts +174 -0
  231. package/dist/ui-plugin/validator.d.ts +15 -0
  232. package/dist/utils/crewx-executable.d.ts +54 -0
  233. package/dist/utils/crewx-home.d.ts +1 -0
  234. package/dist/utils/env-defaults.d.ts +2 -0
  235. package/dist/utils/id.d.ts +1 -1
  236. package/dist/utils/runner-env.d.ts +3 -0
  237. package/dist/utils/timestamp.d.ts +1 -0
  238. package/dist/utils/workspace.d.ts +1 -0
  239. package/dist/wi/create.d.ts +48 -0
  240. package/dist/wi/select.d.ts +20 -0
  241. package/package.json +40 -2
  242. package/templates/agents/default.yaml +269 -127
  243. package/templates/documents/crewx-manual.md +138 -138
  244. package/templates/documents/crewx-quick-guide.md +1 -1
  245. package/templates/workflows/wi-default-flow.yaml +65 -0
  246. package/templates/workflows/wi-plan-flow.yaml +140 -0
@@ -57,6 +57,174 @@
57
57
  "when": 1782812361213,
58
58
  "tag": "0007_add_usage_limit_snapshots",
59
59
  "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "6",
64
+ "when": 1783156310557,
65
+ "tag": "0008_careful_black_bird",
66
+ "breakpoints": true
67
+ },
68
+ {
69
+ "idx": 9,
70
+ "version": "6",
71
+ "when": 1783314424097,
72
+ "tag": "0009_hot_dark_phoenix",
73
+ "breakpoints": true
74
+ },
75
+ {
76
+ "idx": 10,
77
+ "version": "6",
78
+ "when": 1783320073041,
79
+ "tag": "0010_analyze_stats",
80
+ "breakpoints": true
81
+ },
82
+ {
83
+ "idx": 11,
84
+ "version": "6",
85
+ "when": 1784366782566,
86
+ "tag": "0011_far_black_tarantula",
87
+ "breakpoints": true
88
+ },
89
+ {
90
+ "idx": 12,
91
+ "version": "6",
92
+ "when": 1784603327987,
93
+ "tag": "0012_blue_turbo",
94
+ "breakpoints": true
95
+ },
96
+ {
97
+ "idx": 13,
98
+ "version": "6",
99
+ "when": 1784613731643,
100
+ "tag": "0013_hesitant_adam_destine",
101
+ "breakpoints": true
102
+ },
103
+ {
104
+ "idx": 14,
105
+ "version": "6",
106
+ "when": 1786626388681,
107
+ "tag": "0014_organic_mongu",
108
+ "breakpoints": true
109
+ },
110
+ {
111
+ "idx": 15,
112
+ "version": "6",
113
+ "when": 1786969988291,
114
+ "tag": "0015_panoramic_gorilla_man",
115
+ "breakpoints": true
116
+ },
117
+ {
118
+ "idx": 16,
119
+ "version": "6",
120
+ "when": 1787032510253,
121
+ "tag": "0016_fuzzy_hemingway",
122
+ "breakpoints": true
123
+ },
124
+ {
125
+ "idx": 17,
126
+ "version": "6",
127
+ "when": 1787260742100,
128
+ "tag": "0017_project_stage_sdk_migration",
129
+ "breakpoints": true
130
+ },
131
+ {
132
+ "idx": 18,
133
+ "version": "6",
134
+ "when": 1787297645615,
135
+ "tag": "0018_bored_jackal",
136
+ "breakpoints": true
137
+ },
138
+ {
139
+ "idx": 19,
140
+ "version": "6",
141
+ "when": 1787308800000,
142
+ "tag": "0019_backfill_task_thread_ids",
143
+ "breakpoints": true
144
+ },
145
+ {
146
+ "idx": 20,
147
+ "version": "6",
148
+ "when": 1787316463353,
149
+ "tag": "0020_useful_iron_lad",
150
+ "breakpoints": true
151
+ },
152
+ {
153
+ "idx": 21,
154
+ "version": "6",
155
+ "when": 1787567109331,
156
+ "tag": "0021_dashing_peter_quill",
157
+ "breakpoints": true
158
+ },
159
+ {
160
+ "idx": 22,
161
+ "version": "6",
162
+ "when": 1788234280921,
163
+ "tag": "0022_wandering_bucky",
164
+ "breakpoints": true
165
+ },
166
+ {
167
+ "idx": 23,
168
+ "version": "6",
169
+ "when": 1788325893386,
170
+ "tag": "0023_red_payback",
171
+ "breakpoints": true
172
+ },
173
+ {
174
+ "idx": 24,
175
+ "version": "6",
176
+ "when": 1788604428845,
177
+ "tag": "0024_storage_metadata",
178
+ "breakpoints": true
179
+ },
180
+ {
181
+ "idx": 25,
182
+ "version": "6",
183
+ "when": 1788854442066,
184
+ "tag": "0025_thread_app_instance_ledger",
185
+ "breakpoints": true
186
+ },
187
+ {
188
+ "idx": 26,
189
+ "version": "6",
190
+ "when": 1788944186188,
191
+ "tag": "0026_mcp_action_source",
192
+ "breakpoints": true
193
+ },
194
+ {
195
+ "idx": 27,
196
+ "version": "6",
197
+ "when": 1789128000000,
198
+ "tag": "0025_task_heartbeat",
199
+ "breakpoints": true
200
+ },
201
+ {
202
+ "idx": 28,
203
+ "version": "6",
204
+ "when": 1789454217000,
205
+ "tag": "0027_ui_instance_active_unique",
206
+ "breakpoints": true
207
+ },
208
+ {
209
+ "idx": 29,
210
+ "version": "6",
211
+ "when": 1789534727000,
212
+ "tag": "0027_task_stop_scope_cleanup",
213
+ "breakpoints": true
214
+ },
215
+ {
216
+ "idx": 30,
217
+ "version": "6",
218
+ "when": 1789537738489,
219
+ "tag": "0029_nice_rhino",
220
+ "breakpoints": true
221
+ },
222
+ {
223
+ "idx": 31,
224
+ "version": "6",
225
+ "when": 1789704195695,
226
+ "tag": "0031_petite_arclight",
227
+ "breakpoints": true
60
228
  }
61
229
  ]
62
230
  }
package/dist/paths.d.ts CHANGED
@@ -3,3 +3,4 @@ export declare function resolveDefaultAgentsYaml(): {
3
3
  yamlPath: string;
4
4
  dir: string;
5
5
  };
6
+ export declare function resolveWorkflowTemplatesPath(override?: string): string;
@@ -9,6 +9,7 @@ export interface PluginProviderConfig {
9
9
  execute_args: string[];
10
10
  prompt_in_args: boolean;
11
11
  env?: Record<string, string>;
12
+ prefer_local_bin?: boolean;
12
13
  timeout?: {
13
14
  query: number;
14
15
  execute: number;
@@ -1,6 +1,6 @@
1
1
  export { FileLoggerPlugin } from './file-logger';
2
2
  export type { FileLoggerPluginOptions } from './file-logger';
3
3
  export { SqliteTracingPlugin } from './sqlite-tracing';
4
- export type { SqliteTracingPluginOptions } from './sqlite-tracing';
4
+ export type { OwnedTaskRun, SqliteTracingPluginOptions, SqliteTracingRunnerIdentity, } from './sqlite-tracing';
5
5
  export { ConversationPlugin } from './conversation';
6
6
  export type { ConversationPluginOptions } from './conversation';